.or-page,
.or-overlay {
  margin: 0;
  min-height: 100vh;
  color: #f8fff7;
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  background: radial-gradient(circle at 52% 35%, #376e57 0, #174634 38%, #0c271e 78%, #091c17 100%);
}
.or-page *,
.or-overlay * {
  box-sizing: border-box;
}
.or-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: auto;
}
.or-page::before,
.or-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 43%, #d0ffca18, transparent 40%),
    linear-gradient(90deg, transparent 98%, #b8ffdd0b 98%),
    linear-gradient(transparent 98%, #b8ffdd0b 98%);
  background-size:
    auto,
    28px 28px,
    28px 28px;
}
.or-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 840px;
  margin: auto;
  padding: 26px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
}
.or-main {
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.or-copy {
  text-align: center;
}
.or-copy h1 {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: clamp(23px, 3.6vw, 34px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.or-copy h1 span {
  color: #bdf1bd;
}
.or-cabinet {
  width: min(100%, 350px);
  padding: 13px 13px 16px;
  border: 4px solid #a2e6ad;
  border-radius: 27px 27px 39px 39px;
  background: linear-gradient(145deg, #498d68, #2c684f 65%, #21583f);
  box-shadow:
    inset 4px 4px 0 #c8f7c8,
    inset -5px -5px 0 #1c4c39,
    0 12px 0 #143f31,
    0 25px 44px #02140e9c;
}
.or-cabinet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 4px 10px;
  color: #f3ffe7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
}
.or-counter {
  padding: 4px 8px;
  background: #123c32;
  border: 1px solid #9cecb0;
  color: #d7ffdb;
}
.or-tank {
  position: relative;
  padding: 8px;
  border: 4px solid #194f49;
  border-radius: 17px;
  background: #173e47;
  box-shadow:
    inset 3px 3px 0 #a7e5c2,
    inset -3px -3px 0 #0d3435,
    0 5px 0 #19543e;
}
.or-tank canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6/7;
  background: #57c7dc;
  image-rendering: pixelated;
  border-radius: 7px;
}
.or-tank::after {
  content: '';
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 2px solid #d8ffff87;
  border-radius: 5px;
  box-shadow:
    inset 9px 0 0 #e5ffff20,
    inset -8px -3px 0 #04346b1d;
}
.or-status {
  min-height: 22px;
  margin: 10px 4px 7px;
  color: #e0f6d4;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.4;
}
.or-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 0 4px;
}
.or-pump,
.or-dismiss {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.or-pump {
  min-height: 60px;
  border: 3px solid #174737;
  border-radius: 22px;
  background: #d8f292;
  color: #164932;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow:
    inset 0 5px 0 #efffca,
    inset 0 -7px 0 #84bd7a,
    0 6px 0 #153e31;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.or-pump[data-side='right'] {
  background: #7be0bf;
  box-shadow:
    inset 0 5px 0 #c1ffe6,
    inset 0 -7px 0 #36a883,
    0 6px 0 #153e31;
}
.or-pump:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 2px 0 #efffca,
    inset 0 -3px 0 #84bd7a,
    0 1px 0 #153e31;
}
.or-pump[data-side='right']:active {
  box-shadow:
    inset 0 2px 0 #c1ffe6,
    inset 0 -3px 0 #36a883,
    0 1px 0 #153e31;
}
.or-cabinet-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 14px 5px 0;
  color: #d4f4d0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.or-dismiss {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 2;
  margin: 11px 15px 0 0;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b9eac0;
  border-radius: 8px;
  background: #174a37;
  color: #f2fff0;
  font-size: 11px;
  font-weight: 900;
}
.or-pump:focus-visible,
.or-dismiss:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.or-cabinet.is-win {
  box-shadow:
    inset 4px 4px 0 #c8f7c8,
    inset -5px -5px 0 #1c4c39,
    0 12px 0 #143f31,
    0 0 35px #bcf49c,
    0 25px 44px #02140e9c;
}
@media (max-width: 480px) {
  .or-wrap {
    padding: 17px 13px 22px;
    gap: 13px;
  }
  .or-main {
    gap: 11px;
  }
  .or-cabinet {
    width: min(100%, 315px);
    padding: 10px;
    border-width: 3px;
  }
  .or-copy h1 {
    font-size: 23px;
  }
  .or-pump {
    min-height: 55px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .or-pump {
    transition: none;
  }
}
