@font-face { font-family: "Routed Gothic"; src: url("/fonts/routed-gothic.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Routed Gothic"; src: url("/fonts/routed-gothic-italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Routed Gothic Narrow"; src: url("/fonts/routed-gothic-narrow.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Routed Gothic Wide"; src: url("/fonts/routed-gothic-wide.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --enamel: #6f8a7c;
  --enamel-hi: #86a092;
  --enamel-lo: #566e62;
  --groove: #33443b;
  --room: #2a322d;
  --laminate: #1b1c1a;
  --ivory: #ede8d8;
  --ivory-dim: #a9a595;
  --red: #cf2f27;
  --yellow: #f0b610;
  --green: #2e9a55;
  --blue: #2b62c4;
  --steel: #b9bdb8;
  --recess: #121411;
  --lamp-off: #4a2a26;
  --lamp-on: #ffb23e;
  --face: "Routed Gothic", "DIN Alternate", "Avenir Next Condensed", system-ui, sans-serif;
  --face-narrow: "Routed Gothic Narrow", "Routed Gothic", "DIN Condensed", system-ui, sans-serif;
  --face-wide: "Routed Gothic Wide", "Routed Gothic", system-ui, sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --screws: radial-gradient(circle at 14px 14px, #d9dcd6 0 1.5px, #7e837d 2px 4.5px, #2c302c 5px 5.6px, transparent 6px),
            radial-gradient(circle at calc(100% - 14px) 14px, #d9dcd6 0 1.5px, #7e837d 2px 4.5px, #2c302c 5px 5.6px, transparent 6px),
            radial-gradient(circle at 14px calc(100% - 14px), #d9dcd6 0 1.5px, #7e837d 2px 4.5px, #2c302c 5px 5.6px, transparent 6px),
            radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #d9dcd6 0 1.5px, #7e837d 2px 4.5px, #2c302c 5px 5.6px, transparent 6px);
}

body.night {
  --enamel: #33423b;
  --enamel-hi: #41534a;
  --enamel-lo: #26322c;
  --groove: #141a17;
  --room: #0d100e;
  --lamp-off: #3a1f1c;
}

* { box-sizing: border-box; }
html { background: var(--room); }
body {
  margin: 0;
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ivory);
  background: var(--room);
  transition: background .5s;
  -webkit-font-smoothing: antialiased;
  padding: clamp(10px, 2.5vw, 34px);
}

.panel {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 26px);
  background: var(--noise), linear-gradient(178deg, var(--enamel-hi), var(--enamel) 22%, var(--enamel-lo));
  border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22), inset 0 -3px 0 rgba(0,0,0,.3), 0 30px 60px rgba(0,0,0,.55);
  position: relative;
  transition: background-color .5s;
}

.rating {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 28px;
  align-items: end;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 44px 14px;
  color: #23261f;
  background: var(--screws), linear-gradient(175deg, #d8d2b4, #b9b08a 55%, #a59c77);
  border-radius: 4px;
  box-shadow: 0 2px 3px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.5);
}
.rating-name { font-family: var(--face-wide); font-weight: 400; font-size: clamp(26px, 4.2vw, 44px); line-height: 1; margin: 0; letter-spacing: .02em; text-transform: uppercase; }
.rating-fields { display: flex; gap: 0; margin: 0; }
.rating-fields div { border: 1.5px solid #23261f; border-left-width: 0; padding: 3px 12px 4px; min-width: 0; }
.rating-fields div:first-child { border-left-width: 1.5px; }
.rating-fields dt { font-family: var(--face-narrow); font-size: 12px; line-height: 1.2; opacity: .75; }
.rating-fields dd { margin: 0; font-size: 18px; line-height: 1.15; white-space: nowrap; }
.rating-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; }

.mod {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  padding: 30px 18px 20px;
  background: var(--screws), linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.06));
  border-radius: 5px;
  box-shadow: 0 0 0 1.5px var(--groove), 0 0 0 3px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.16);
}
.mount { display: grid; place-items: center; min-height: 148px; width: 100%; position: relative; }

.lamp {
  position: absolute; top: 11px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a5a50, var(--lamp-off) 60%);
  box-shadow: 0 0 0 2px #23281f, 0 1px 0 3px rgba(255,255,255,.14);
}
.mod[data-state="run"] .lamp { animation: blink .5s steps(2, jump-none) infinite; }
.mod[data-lit="1"] .lamp { background: radial-gradient(circle at 35% 30%, #fff3c9, var(--lamp-on) 55%, #c9781a); box-shadow: 0 0 0 2px #23281f, 0 0 12px 3px rgba(255,178,62,.75); }
@keyframes blink { 0% { background: var(--lamp-on); box-shadow: 0 0 0 2px #23281f, 0 0 10px 2px rgba(255,178,62,.7); } 100% { background: var(--lamp-off); } }

.legend {
  margin: 0;
  font-family: var(--face);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  color: var(--ivory);
  text-shadow: 0 -1px 0 rgba(0,0,0,.9);
  padding: 8px 26px 7px;
  max-width: 100%;
  background:
    radial-gradient(circle at 11px 50%, #9c9f99 0 2px, #1b1c1a 2.6px 3.4px, transparent 4px),
    radial-gradient(circle at calc(100% - 11px) 50%, #9c9f99 0 2px, #1b1c1a 2.6px 3.4px, transparent 4px),
    linear-gradient(180deg, #2a2b28, var(--laminate));
  border-radius: 2px;
  box-shadow: 0 1.5px 2px rgba(0,0,0,.5), inset 0 0 0 1px rgba(237,232,216,.5), inset 0 0 0 3px var(--laminate);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
.mod--tape .legend {
  font-style: italic; letter-spacing: .02em; text-transform: none; font-size: 19px;
  color: #2b2a26; text-shadow: none; padding: 6px 18px;
  background: linear-gradient(180deg, #efe6c6, #e2d7b2);
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
  border-radius: 1px;
  transform: rotate(calc(-3deg + var(--tilt, 0deg)));
  clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 0, 100% 94%, 97% 100%, 4% 96%, 0 100%);
}

.win {
  width: 100%;
  max-width: 330px;
  min-height: 96px;
  padding: 11px 13px 12px;
  background: var(--recess);
  border-radius: 3px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.2);
  text-align: left;
  display: grid;
  align-content: start;
  gap: 7px;
  transition: background-color .25s, box-shadow .25s;
}
.mod[data-state="idle"] .win { background: transparent; box-shadow: none; }
.bar { height: 9px; background: #252923; border-radius: 1px; overflow: hidden; box-shadow: inset 0 1px 2px #000; }
.bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--yellow) 0 7px, #c08f08 7px 9px); }
.win-run, .win-head, .win-fine { margin: 0; }
.win-run { font-size: 14.5px; color: var(--ivory-dim); min-height: 1.45em; }
.win-head { font-size: 19px; line-height: 1.2; color: var(--ivory); }
.win-fine { font-size: 14.5px; line-height: 1.4; color: var(--ivory-dim); }
.mod[data-state="idle"] .win-head, .mod[data-state="idle"] .win-fine,
.mod[data-state="run"] .win-head, .mod[data-state="run"] .win-fine,
.mod[data-state="done"] .bar, .mod[data-state="done"] .win-run { display: none; }
.mod[data-state="done"] .win-head { animation: settle .35s ease-out; }
@keyframes settle { from { opacity: 0; transform: translateY(3px); } }

.master { display: grid; justify-items: center; margin: clamp(18px, 3vw, 34px) auto clamp(16px, 2.4vw, 28px); }
.master .mod { width: min(100%, 620px); padding: 40px 26px 30px; gap: 18px; }
.master .mount { min-height: 262px; }
.master .legend { font-family: var(--face-wide); font-size: clamp(20px, 3.4vw, 27px); padding: 11px 36px 10px; }
.master .win { max-width: 420px; min-height: 118px; }
.master .win-head { font-size: 24px; }
.master .win-fine, .master .win-run { font-size: 16px; }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); grid-auto-flow: dense; gap: 12px; }
.mod--w2 { grid-column: span 2; }

.btn {
  -webkit-tap-highlight-color: transparent;
  appearance: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
  position: relative; display: grid; place-items: center;
  width: var(--s, 116px); height: var(--s, 116px);
  background: none; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 7px; }
.cap { display: block; transition: transform .07s ease-out, box-shadow .07s ease-out, filter .2s; }

.c-red { --c: var(--red); } .c-yellow { --c: var(--yellow); } .c-green { --c: var(--green); } .c-blue { --c: var(--blue); }
.c-ivory { --c: #e9e2cc; } .c-black { --c: #2a2b29; } .c-amber { --c: #f08a1c; }

.btn--dome, .btn--mush, .btn--lift, .btn--cross { border-radius: 50%; }
.btn--dome {
  background: radial-gradient(circle at 50% 30%, #f1f2ee, #a3a7a1 42%, #555953 68%, #1f211f 100%);
  box-shadow: 0 7px 12px rgba(0,0,0,.45), inset 0 0 0 2px rgba(0,0,0,.35);
}
.btn--dome .cap {
  width: 75%; height: 75%; border-radius: 50%;
  background: radial-gradient(circle at 36% 26%, color-mix(in srgb, var(--c) 45%, white), var(--c) 46%, color-mix(in srgb, var(--c) 58%, black));
  box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 42%, black), 0 14px 16px rgba(0,0,0,.55), inset 0 -7px 12px rgba(0,0,0,.28), inset 0 6px 9px rgba(255,255,255,.3);
  transform: translateY(-6px);
}
.btn--dome:active .cap, .btn--dome.is-down .cap {
  transform: translateY(1px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 42%, black), 0 3px 5px rgba(0,0,0,.55), inset 0 -4px 10px rgba(0,0,0,.4), inset 0 4px 8px rgba(255,255,255,.18);
}
.master .btn { --s: 236px; }

.btn--mush { --s: 138px; background: radial-gradient(circle, #1d1e1c 0 37%, var(--yellow) 37.6% 96%, #8f6c05 97%); box-shadow: 0 6px 10px rgba(0,0,0,.4); }
.btn--mush .cap {
  width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle at 38% 24%, #ff8076, var(--red) 40%, #7c1611 98%);
  box-shadow: 0 10px 0 #5d100c, 0 18px 18px rgba(0,0,0,.55), inset 0 -10px 16px rgba(0,0,0,.3), inset 0 8px 10px rgba(255,255,255,.3);
  transform: translateY(-8px);
}
.btn--mush:active .cap, .btn--mush.is-down .cap { transform: translateY(1px); box-shadow: 0 1px 0 #5d100c, 0 4px 6px rgba(0,0,0,.55), inset 0 -8px 16px rgba(0,0,0,.4), inset 0 5px 8px rgba(255,255,255,.2); }

.btn--sq { border-radius: 16px; background: linear-gradient(160deg, #3b3d3a, #131412); box-shadow: 0 6px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--sq .cap {
  width: 78%; height: 78%; border-radius: 10px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 55%, #55584f), color-mix(in srgb, var(--c) 40%, #1c1d1b));
  box-shadow: 0 5px 0 rgba(0,0,0,.55), inset 0 2px 3px rgba(255,255,255,.3), inset 0 -8px 14px rgba(0,0,0,.35);
  transform: translateY(-4px);
}
.btn--sq:active .cap, .btn--sq.is-down .cap { transform: translateY(0); box-shadow: 0 1px 0 rgba(0,0,0,.55), inset 0 2px 3px rgba(255,255,255,.2), inset 0 -8px 14px rgba(0,0,0,.4); }
.mod[data-lit="1"] .btn--sq .cap, .mod[data-state="run"] .btn--sq .cap {
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 35%, white), var(--c) 70%);
  box-shadow: 0 5px 0 rgba(0,0,0,.55), 0 0 26px 4px color-mix(in srgb, var(--c) 70%, transparent), inset 0 2px 3px rgba(255,255,255,.5);
}

.btn--lift { --s: 92px; background: conic-gradient(from 20deg, #d5d8d3, #8b8f8a, #e6e8e4, #8d918c, #cfd2cd, #858984, #d5d8d3); box-shadow: 0 4px 8px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(0,0,0,.35); }
.btn--lift .cap {
  width: 66%; height: 66%; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--face-wide); font-size: 22px; line-height: 1; color: #3b3e3a;
  background: radial-gradient(circle at 40% 30%, #f3f4f1, #b3b7b2 70%);
  box-shadow: 0 0 0 4px #30332f, 0 0 0 5px rgba(255,255,255,.3), 0 3px 3px 4px rgba(0,0,0,.35);
}
.btn--lift:active .cap, .btn--lift.is-down .cap { transform: scale(.955); }
.mod[data-lit="1"] .btn--lift .cap, .mod[data-state="run"] .btn--lift .cap { box-shadow: 0 0 0 4px var(--c), 0 0 16px 6px color-mix(in srgb, var(--c) 75%, transparent); color: var(--c); }

.btn--cross { --s: 132px; border-radius: 22px; background: linear-gradient(170deg, #f6c429, var(--yellow) 50%, #b98a06); box-shadow: 0 6px 10px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.4), inset 0 0 0 5px rgba(0,0,0,.12); }
.btn--cross .cap {
  width: 60%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #fbfbf9, #b6bab5 48%, #5f635e);
  box-shadow: 0 0 0 7px #2a2b28, 0 6px 0 7px rgba(0,0,0,.25), inset 0 -6px 10px rgba(0,0,0,.25);
}
.btn--cross:active .cap, .btn--cross.is-down .cap { transform: scale(.94); filter: brightness(.9); }

.btn--key { --s: 104px; border-radius: 12px; background: linear-gradient(180deg, #3d3f3c, #171816); box-shadow: 0 9px 0 #0c0d0c, 0 14px 14px rgba(0,0,0,.5); transform: translateY(-5px); transition: transform .07s, box-shadow .07s; }
.btn--key .cap {
  width: 80%; height: 76%; margin-top: -8%; border-radius: 8px; display: grid; place-items: end start; padding: 0 0 8px 10px;
  font-size: 19px; line-height: 1; color: var(--ivory);
  background: linear-gradient(170deg, #4b4d49, #2b2c2a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--key:active, .btn--key.is-down { transform: translateY(2px); box-shadow: 0 2px 0 #0c0d0c, 0 4px 6px rgba(0,0,0,.5); }

.btn--bell { --s: 132px; width: 78px; border-radius: 39px; background: linear-gradient(100deg, #9a7a2d, #e6c66d 30%, #b8943c 62%, #8a6a22); box-shadow: 0 5px 9px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.4); }
.btn--bell .cap {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fffdf2, #efe3bb 60%, #b9a871);
  box-shadow: 0 0 0 5px #3a2d0e, 0 3px 0 5px rgba(0,0,0,.3), 0 0 14px 2px rgba(255,236,170,.55);
}
.btn--bell:active .cap, .btn--bell.is-down .cap { transform: scale(.9); filter: brightness(.85); }

.btn--pin { --s: 76px; border-radius: 50%; }
.btn--pin .cap {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #6a2d28, #0d0d0c 62%);
  box-shadow: 0 0 0 3px #23281f, 0 0 0 4.5px rgba(255,255,255,.22), inset 0 3px 4px #000;
}
.btn--pin:active .cap, .btn--pin.is-down .cap { background: radial-gradient(circle at 50% 60%, #2a1614, #050505 62%); }

.btn--rock { --s: 118px; width: 84px; border-radius: 9px; background: linear-gradient(180deg, #313330, #111211); box-shadow: 0 5px 9px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--rock .cap {
  width: 74%; height: 84%; border-radius: 5px; position: relative;
  background: linear-gradient(180deg, #5c5e5a 0 6%, #2f302e 46%, #1a1b1a 54%, #272826 100%);
  box-shadow: inset 0 0 0 1px #000, 0 2px 3px rgba(0,0,0,.6);
  transition: background .12s;
}
.btn--rock .cap::before, .btn--rock .cap::after { content: ""; position: absolute; left: 50%; }
.btn--rock .cap::before { top: 14%; width: 2px; height: 14px; margin-left: -1px; background: var(--ivory); opacity: .8; }
.btn--rock .cap::after { bottom: 13%; width: 13px; height: 13px; margin-left: -6.5px; border: 2px solid var(--ivory); border-radius: 50%; opacity: .45; }
.btn--rock[aria-pressed="true"] .cap { background: linear-gradient(180deg, #1c1d1c 0 46%, #353634 54%, #5c5e5a 96%, #272826 100%); }
.btn--rock[aria-pressed="true"] .cap::before { opacity: .45; }
.btn--rock[aria-pressed="true"] .cap::after { opacity: .9; border-color: var(--lamp-on); box-shadow: 0 0 8px rgba(255,178,62,.8); }

.btn--tog { --s: 128px; width: 92px; }
.btn--tog::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: conic-gradient(from 0deg, #cfd2cd, #7f837e, #e3e5e1, #868a85, #cfd2cd, #7f837e, #e3e5e1, #868a85, #cfd2cd);
  box-shadow: 0 3px 6px rgba(0,0,0,.5), inset 0 0 0 9px rgba(0,0,0,.18), inset 0 0 0 16px #1e201e;
}
.btn--tog .cap {
  position: absolute; left: 50%; top: 50%; width: 19px; height: 58px; margin-left: -9.5px; border-radius: 10px 10px 8px 8px;
  background: linear-gradient(90deg, #7b7f7a, #f4f5f2 38%, #c1c5c0 62%, #6f736e);
  box-shadow: 0 6px 6px rgba(0,0,0,.5);
  transform-origin: 50% 0; transform: translateY(-4px) scaleY(.92);
  transition: transform .12s cubic-bezier(.4, 1.8, .6, 1), margin .12s;
}
.btn--tog[aria-pressed="true"] .cap { transform-origin: 50% 100%; margin-top: -58px; transform: translateY(4px) scaleY(.92); box-shadow: 0 -2px 4px rgba(0,0,0,.35); }
.guard {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 92px; margin: -46px 0 0 -31px; border-radius: 8px 8px 14px 14px;
  background: linear-gradient(180deg, rgba(232,60,50,.92), rgba(190,36,28,.82));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 0 0 2px rgba(120,16,10,.8), 0 5px 8px rgba(0,0,0,.4);
  transform-origin: 50% 0; transition: transform .22s cubic-bezier(.4, 1.5, .6, 1), opacity .22s;
  z-index: 2;
}
.btn[data-stage="1"] .guard, .btn[data-stage="2"] .guard { transform: translateY(-34px) scaleY(.3); opacity: .95; }

.btn--glass { --s: 140px; border-radius: 9px; background: linear-gradient(180deg, #e0392f, #a81f17); box-shadow: 0 6px 10px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.35); }
.btn--glass::before { content: ""; position: absolute; inset: 13px; border-radius: 4px; background: #161715; box-shadow: inset 0 3px 8px #000; }
.btn--glass .cap {
  position: relative; width: 44px; height: 44px; border-radius: 50%; margin-top: 26px;
  background: radial-gradient(circle at 38% 28%, #6c6f6a, #232422 62%);
  box-shadow: 0 4px 0 #050505, 0 0 0 4px #3b3d39;
}
.btn--glass.is-down .cap { transform: translateY(3px); box-shadow: 0 1px 0 #050505, 0 0 0 4px #3b3d39; }
.pane {
  position: absolute; inset: 13px; border-radius: 4px; z-index: 2; display: grid; place-items: start center; padding: 11px 8px 0;
  font-family: var(--face-narrow); font-size: 14px; line-height: 1.12; letter-spacing: .05em; text-transform: uppercase; text-align: center; color: #fff;
  background: linear-gradient(125deg, rgba(255,255,255,.34), rgba(255,255,255,.06) 38%, rgba(255,255,255,.2) 62%, rgba(255,255,255,.04));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  transition: opacity .25s, transform .35s ease-in;
}
.btn[data-stage="1"] .pane {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M58 62 L20 8 M58 62 L96 30 M58 62 L84 98 M58 62 L8 78 M58 62 L44 100 M39 35 L62 22 M74 46 L70 12 M33 71 L22 96' stroke='white' stroke-opacity='.85' stroke-width='1.1' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(125deg, rgba(255,255,255,.34), rgba(255,255,255,.06) 38%, rgba(255,255,255,.2) 62%, rgba(255,255,255,.04));
}
.btn[data-stage="2"] .pane { opacity: 0; transform: translateY(26px) rotate(4deg) scale(.96); pointer-events: none; }

.vent {
  position: relative; margin: 14px 0 6px; height: 74px; border-radius: 5px;
  background: repeating-linear-gradient(90deg, transparent 0 14px, #0f120f 14px 24px, rgba(255,255,255,.12) 24px 25.5px, transparent 25.5px 34px);
  box-shadow: 0 0 0 1.5px var(--groove), 0 0 0 3px rgba(255,255,255,.1);
  background-position: 6px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0 14px, #000 14px calc(100% - 14px), transparent calc(100% - 14px));
  mask-image: linear-gradient(180deg, transparent 0 14px, #000 14px calc(100% - 14px), transparent calc(100% - 14px));
}
.eyes { position: absolute; width: 22px; height: 8px; animation: peek 5.5s ease-in-out infinite; animation-delay: var(--d, 0s); opacity: 0; }
.eyes::before, .eyes::after { content: ""; position: absolute; top: 0; width: 7px; height: 8px; border-radius: 50%; background: radial-gradient(circle, #fff6c2 0 22%, #f5c21a 50%, #7a5200); box-shadow: 0 0 7px 1px rgba(245,194,26,.7); }
.eyes::before { left: 0; } .eyes::after { right: 0; }
@keyframes peek { 0%, 8% { opacity: 0; } 14%, 46% { opacity: 1; transform: none; } 48% { transform: scaleY(.1); } 50%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

.grass { position: fixed; left: 0; right: 0; bottom: 0; height: 0; pointer-events: none; z-index: 5; }
.grass i {
  position: absolute; bottom: -4px; width: var(--w, 9px); height: var(--h, 40px); left: var(--x, 0);
  background: linear-gradient(180deg, #7fd06a, #2f8f3c 55%, #1d5f2a);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%; transform: rotate(var(--r, 0deg)) scaleY(0);
  animation: grow .9s cubic-bezier(.2, 1.4, .4, 1) forwards, sway 3.6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + .9s);
}
@keyframes grow { to { transform: rotate(var(--r, 0deg)) scaleY(1); } }
@keyframes sway { from { transform: rotate(calc(var(--r, 0deg) - 3deg)) scaleY(1); } to { transform: rotate(calc(var(--r, 0deg) + 3deg)) scaleY(1); } }

.scratch { position: absolute; width: 19%; height: 46%; pointer-events: none; opacity: 0; transition: opacity .5s; overflow: visible; }
.scratch--a { left: 0; bottom: 2%; transform: rotate(-24deg); }
.scratch--b { right: 0; top: 0; transform: rotate(-24deg); }
body.feral .scratch { opacity: 1; }
.scratch path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
body.feral .scratch path { animation: gouge .45s ease-out forwards; animation-delay: var(--d, 0s); }
@keyframes gouge { to { stroke-dashoffset: 0; } }
body.feral .mod[data-lit="1"] .lamp { animation: wild 2.8s steps(1) infinite; animation-delay: var(--ld, 0s); }
@keyframes wild { 0%, 91% { opacity: 1; } 92%, 94% { opacity: .25; } 95% { opacity: 1; } 97% { opacity: .4; } 98%, 100% { opacity: 1; } }

.stamp { margin: 12px 4px 2px; font-size: 15px; color: #14201a; max-width: 70ch; }
body.night .stamp { color: var(--ivory-dim); }
.stamp p { margin: 2px 0; }
.stamp a { color: inherit; text-underline-offset: 2px; }
.stamp a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.nojs { max-width: 60ch; margin: 20px auto; color: var(--ivory); }

body.og { padding: 26px; }
body.og .stamp, body.og .vent { display: none; }

@media (max-width: 520px) {
  body { font-size: 16px; padding: 8px; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .mod { padding: 26px 9px 26px; gap: 11px; }
  .master .mod { padding: 34px 14px 30px; }
  .master .legend { font-size: 18px; padding: 9px 24px 8px; letter-spacing: .04em; }
  .mod--w2 { grid-column: span 2; }
  .mount { min-height: 128px; }
  .btn { --s: 100px; }
  .btn--mush { --s: 118px; } .btn--cross { --s: 112px; } .btn--glass { --s: 128px; } .btn--lift { --s: 84px; } .btn--pin { --s: 76px; }
  .master .btn { --s: 190px; }
  .master .mount { min-height: 214px; }
  .legend { font-size: 14px; letter-spacing: .04em; padding: 7px 20px 6px; }
  .mod--tape .legend { font-size: 16px; }
  .win { padding: 9px 9px 10px; min-height: 104px; }
  .win-head { font-size: 16.5px; }
  .win-fine, .win-run { font-size: 13.5px; }
  .rating { grid-template-columns: 1fr; padding: 14px 30px 12px; gap: 8px; }
  .rating-fields dd { font-size: 16px; }
  .rating-fields div { padding: 3px 8px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .cap, .legend, .guard, .pane, .btn--key { transition: none; }
  .mod[data-state="run"] .lamp, body.feral .mod[data-lit="1"] .lamp, .eyes, .mod[data-state="done"] .win-head { animation: none; }
  .eyes { opacity: 1; }
  .grass i { animation: none; transform: rotate(var(--r, 0deg)) scaleY(1); }
  body.feral .scratch path { animation: none; stroke-dashoffset: 0; }
  .legend { transform: none; }
  .mod--tape .legend { transform: rotate(-3deg); }
}
