/* Echo Kamer: one built cardboard sound-system, not a row of floating assets.
   Poster, cabinets and name slips share a mounting board and a fixed reading spot. */
#zineEchoApp {
  --field: #e5a77d; --ink: #292027; --paper: #f3e5c6;
  --echo-red: #a33125; --echo-teal: #285c55;
  --echo-sheet: url("assets/nachtzine/all-assets-2026-09-13/story-post/note-a-matte-v1.webp");
  --echo-strip: url("assets/nachtzine/all-assets-2026-09-13/global/word-paper-v2.webp");
  --echo-speaker: url("assets/nachtzine/echo-soundstage-2026-09-21/speaker.webp");
  --echo-chassis: url("assets/nachtzine/echo-room-2026-09-23/room.webp");
  --echo-poster-asset: var(--echo-sheet);
  color: var(--ink); font-family: "Nachtzine Print", "Nachtzine Word", sans-serif;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto; align-content: center;
  gap: 14px; width: 100%; height: 100svh;
  min-height: 650px; max-height: none; padding: 52px clamp(22px, 4vw, 76px) 22px;
  background: radial-gradient(ellipse at 50% 42%, #ffdfb85c 15%, #99492824 100%), var(--stock) center / 1000px, var(--field);
  background-blend-mode: normal, multiply, normal; overflow: hidden;
}
#zineEchoApp [hidden] { display: none !important; }
.echo-heading { display: flex; justify-content: center; align-items: center; gap: 28px; min-width: 0; padding: 0 20px 4px; }
.echo-heading h1 { margin: 0; font-size: clamp(42px, 4.8vw, 76px); font-weight: 900; line-height: .98; text-transform: uppercase; transform: rotate(-1deg); letter-spacing: -.025em; }
.echo-heading p { margin: 0; max-width: 230px; font-size: clamp(18px, 1.6vw, 25px); line-height: 1.15; border-left: 2px solid #a3312550; padding-left: 25px; }
.echo-ink { mask: var(--print-impression-mask, none) 0 0 / 256px 192px repeat; }
.echo-sound-system { position: relative; z-index: 1; isolation: isolate; width: min(100%, 1430px); min-height: 0; justify-self: center; display: grid; grid-template-rows: auto auto; padding: 54px 4.5% 40px; }
.echo-backboard { position: absolute; z-index: -2; inset: -6px 0 -4px; background: var(--echo-chassis) center / 100% 100% no-repeat; pointer-events: none; filter: drop-shadow(0 4px 1px #3c262764) drop-shadow(4px 15px 9px #3c262747); }
.echo-studio { position: relative; width: 100%; min-width: 0; min-height: 0; display: grid; grid-template-columns: 17% minmax(0, 1fr) 17%; align-items: center; gap: 0; padding-bottom: 24px; }
.echo-speaker { position: relative; z-index: 1; height: clamp(215px, 30vh, 330px); width: 118%; justify-self: center; transform: rotate(-2deg); filter: drop-shadow(2px 4px 1px #120d1480) drop-shadow(7px 12px 7px #120d144d); transform-origin: 50% 90%; }
.echo-speaker::before { content: ""; position: absolute; inset: 0; background: var(--echo-speaker) center / contain no-repeat; pointer-events: none; }
.echo-speaker-right { transform: rotate(2deg); }
/* Mirror the cabinet, not the world-space shadow or the inward sound rays. */
.echo-speaker-right::before { transform: scaleX(-1); }
.echo-rays { position: absolute; width: 29%; height: 18%; top: 5%; right: -2%; transform: rotate(28deg); opacity: 0; pointer-events: none; }
.echo-rays i { position: absolute; display: block; background: #ebc986 var(--stock) center / 260px; background-blend-mode: multiply; width: 22%; height: 70%; clip-path: polygon(2% 0, 95% 2%, 70% 100%, 38% 91%); }
.echo-rays i:nth-child(1) { transform: rotate(-28deg); left: 0; top: 20%; }
.echo-rays i:nth-child(2) { left: 35%; }
.echo-rays i:nth-child(3) { transform: rotate(28deg); right: 0; top: 20%; }
.echo-speaker-right .echo-rays { right: auto; left: -2%; transform: rotate(-28deg); }
.echo-word-stack { position: relative; z-index: 2; isolation: isolate; min-width: 0; margin-inline: -1%; }
.echo-word-carrier { position: relative; z-index: 2; isolation: isolate; display: grid; grid-template-rows: 25px minmax(100px, 1fr) 42px; align-items: center; width: 100%; height: clamp(240px, 33vh, 350px); padding: 26px 7% 28px; text-align: center; filter: drop-shadow(0 3px 1px #120d1480) drop-shadow(3px 12px 6px #120d1450); }
.echo-word-carrier::before, .echo-word-carrier::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--echo-sheet) center / 100% 100% no-repeat; pointer-events: none; }
.echo-word-carrier::after { z-index: -2; inset: 5px 3px -8px -3px; transform: rotate(-1.2deg); filter: brightness(.86); }
.echo-paper-clamp { position: absolute; z-index: 7; top: -7px; width: 24px; height: 36px; background: linear-gradient(0deg,#533e3720,transparent 18%), var(--stock) 16% 20% / 220px, #c29a69; background-blend-mode: multiply; transform: rotate(-3deg); box-shadow: 1px 2px 1px #160e1466; clip-path: polygon(4% 0,96% 3%,100% 94%,88% 100%,78% 94%,60% 100%,48% 95%,27% 98%,3% 94%); pointer-events: none; }
.echo-paper-clamp-left { left: 13%; } .echo-paper-clamp-right { right: 13%; transform: rotate(4deg); }
.echo-kicker { font-size: clamp(16px, 1.6vw, 24px); color: var(--echo-teal); text-transform: uppercase; letter-spacing: .055em; margin: 0; }
.echo-word { margin: 0; font-size: var(--echo-fit, clamp(58px, 7.4vw, 120px)); line-height: 1.12; font-weight: 900; text-transform: uppercase; white-space: nowrap; min-width: 0; padding: .07em 0; }
.echo-word, .echo-heading h1, .echo-victory-stamp { mask-image: var(--print-stamp-mask); color: #382b2c; }
@supports (background-clip: text) {
  @media (forced-colors: none) {
    #zineEchoApp:not([data-material-state="fallback"]) .echo-word {
      /* Keep the tint in an image layer: Chromium can drop a blended solid
         background-color when clipping to text, silently painting black ink. */
      background-image: url("assets/nachtzine/all-assets-2026-09-13/global/xerox-ink-v2.webp"), linear-gradient(var(--echo-word-ink, #241b1e), var(--echo-word-ink, #241b1e));
      background-position: 23px 17px, 0 0; background-size: 580px, 100% 100%;
      background-blend-mode: screen; background-clip: text; color: transparent;
    }
  }
}
.echo-imprint { position: absolute; z-index: 1; inset: 0 22% auto; height: 44px; display: grid; place-items: center; padding: 8px 6%; background: var(--echo-sheet) center / 100% 100% no-repeat; opacity: 0; pointer-events: none; transform-origin: 50% 85%; filter: drop-shadow(1px 3px 1px #3b191b40); }
.echo-imprint-far { z-index: 0; inset-inline: 29%; height: 36px; padding: 6px 4%; }
.echo-imprint span { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; font-size: clamp(20px, 2vw, 28px); line-height: 1; text-transform: uppercase; color: var(--echo-teal); mask: var(--print-stamp-mask) 0 0 / 256px 192px repeat; }
.echo-imprint-far span { font-size: clamp(18px, 1.6vw, 23px); }
.echo-victory-stamp { position: absolute; top: 14px; left: 50%; transform: translateX(-50%) rotate(-6deg); border: 3px solid currentColor; padding: 2px 14px 3px; font-size: clamp(22px, 2.1vw, 32px); line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--echo-red); visibility: hidden; }
#zineEchoApp[data-phase="complete"]:not([data-echo-busy="true"]) .echo-victory-stamp { visibility: visible; }
.echo-starter { margin: 0; font-size: clamp(18px, 1.7vw, 28px); line-height: 1.12; overflow-wrap: anywhere; }
#zineEchoApp[data-echo-moment="countdown"] .echo-word-carrier { grid-template-rows: 25px minmax(85px, 1fr) 58px; }
#zineEchoApp[data-echo-moment="countdown"] { --echo-word-ink: var(--echo-red); }
#zineEchoApp[data-echo-moment="countdown"] .echo-word { font-size: var(--echo-fit, clamp(72px, 8.5vw, 128px)); }
#zineEchoApp[data-echo-moment="countdown"] .echo-starter { display: grid; gap: 3px; font-size: clamp(17px, 1.5vw, 22px); }
.echo-ready-name { display: block; font-size: clamp(22px, 2.5vw, 34px); font-weight: 900; text-transform: uppercase; line-height: 1; }
#zineEchoApp[data-phase="idle"] .echo-word-carrier { grid-template-rows: 0 auto auto; align-content: center; row-gap: 12px; }
#zineEchoApp[data-phase="idle"] .echo-word { font-size: clamp(40px, 4.6vw, 72px); white-space: normal; }
#zineEchoApp[data-phase="complete"] .echo-kicker { color: var(--echo-red); }
.echo-roster-area { position: relative; z-index: 3; width: min(100%, 1160px); justify-self: center; min-width: 0; }
#zineEchoApp[data-player-count="2"] .echo-roster-area { max-width: 670px; }
#zineEchoApp[data-player-count="3"] .echo-roster-area { max-width: 920px; }
.echo-instruction { text-align: center; margin: 0 0 18px; min-height: 1.3em; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.2; color: #f4dfb4; }
.echo-players { display: grid; grid-template-columns: repeat(var(--echo-cols, 3), minmax(0, 1fr)); gap: 15px 18px; max-width: 100%; margin: auto; }
.echo-player { position: relative; isolation: isolate; display: grid; grid-template-rows: 48px 25px; align-content: center; gap: 2px; min-width: 0; min-height: 108px; border: 0; padding: 13px 8%; background: none; color: var(--ink); font-family: inherit; cursor: pointer; touch-action: manipulation; filter: drop-shadow(0 2px 1px #0c1c197a) drop-shadow(2px 5px 3px #0c1c1950); transform: rotate(var(--echo-tilt, -.6deg)); }
.echo-player::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper) var(--stock) center / 480px; background-blend-mode: multiply; clip-path: polygon(1% 2%,98% 0,100% 6%,99% 97%,3% 100%,0 94%); border-top: 5px solid #a78051; border-bottom: 3px solid #d5b98a; box-shadow: inset 0 4px 2px #48332726; }
.echo-player-name { display: grid; align-content: center; height: 48px; min-width: 0; font-size: clamp(22px, 2.3vw, 34px); font-weight: 900; line-height: 1.03; text-transform: uppercase; overflow-wrap: anywhere; }
.echo-player-name[data-long="true"] { font-size: clamp(20px, 1.8vw, 26px); }
.echo-player:enabled:hover { transform: translateY(-3px) rotate(var(--echo-tilt)); }
.echo-player:enabled:active { transform: translateY(1px); filter: drop-shadow(1px 1px 1px #3b191b70); }
/* Keep keyboard feedback on the paper, not over the shared cabinet rail. */
.echo-player:focus-visible { outline: 3px solid var(--echo-teal); outline-offset: -8px; }
.echo-control:focus-visible { outline: 2px solid var(--echo-teal); outline-offset: 2px; }
.echo-player[data-eliminated="true"] { opacity: 1; filter: grayscale(.7) drop-shadow(0 2px 1px #0c1c1950); }
.echo-player[data-eliminated="true"] :is(.echo-player-name,.echo-hearts) { opacity: .6; }
.echo-player[data-eliminated="true"] .echo-player-name { text-decoration: line-through; text-decoration-thickness: 2px; }
.echo-player:disabled { cursor: default; }
.echo-card-outcome { position: absolute; right: 9%; top: -9px; opacity: 0; background: var(--echo-red); color: var(--paper); padding: 3px 8px 4px; font-size: 18px; line-height: 1; transform: rotate(5deg); pointer-events: none; }
.echo-card-hint { position: absolute; right: 7%; top: -10px; padding: 3px 8px; font-size: 16px; line-height: 1; color: var(--echo-teal); background: var(--paper) var(--stock) center / 260px; outline: 1px solid var(--echo-teal); opacity: 0; pointer-events: none; transform: rotate(2deg); }
#zineEchoApp:not([data-echo-busy="true"]) .echo-player:enabled:not([data-cue="starter"]):is(:hover,:focus-visible) .echo-card-hint { opacity: 1; }
.echo-player[data-impact] { opacity: 1; filter: drop-shadow(2px 4px 1px #3b191b70) drop-shadow(4px 7px 4px #3b191b35); }
.echo-player[data-impact] .echo-card-outcome { opacity: 1; }
.echo-player[data-eliminated="true"] .echo-card-outcome { opacity: 1; background: none; color: var(--ink); border: 2px solid currentColor; top: 9px; right: 8%; transform: rotate(10deg); font-size: 15px; text-transform: uppercase; }
#zineEchoApp[data-echo-busy="true"] .echo-player:enabled:hover { transform: rotate(var(--echo-tilt)); }
.echo-hearts { display: flex; gap: 8px; justify-content: center; align-items: center; height: 28px; }
.echo-heart { width: 25px; height: 25px; display: block; color: var(--echo-red); overflow: visible; }
.echo-heart path { fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.echo-heart[data-lost="true"] { color: #6d6459; }
.echo-heart[data-lost="true"] path { fill: none; stroke-dasharray: 2 2; }
.echo-player[data-cue="starter"]::after { content: "begint"; position: absolute; left: 50%; top: -12px; transform: translateX(-50%) rotate(-3deg); background: var(--echo-teal) var(--stock) center / 200px; background-blend-mode: multiply; color: var(--paper); padding: 2px 12px 4px; font-size: 20px; }
.echo-player[data-winner="true"]::after { content: "winnaar"; position: absolute; left: 50%; top: -12px; transform: translateX(-50%) rotate(-3deg); background: var(--echo-teal) var(--stock) center / 200px; background-blend-mode: multiply; color: var(--paper); padding: 2px 12px 4px; font-size: 20px; }
#zineEchoApp[data-phase="complete"]:not([data-echo-busy="true"]) .echo-word-carrier::after { filter: brightness(.9) sepia(.15); transform: rotate(-3deg) scale(1.025); }
#zineEchoApp[data-phase="complete"]:not([data-echo-busy="true"]) { --echo-word-ink: #164b40; }
#zineEchoApp[data-phase="complete"][data-echo-busy="true"] .echo-player[data-winner="true"]::after { display: none; }
.echo-controls { display: flex; gap: 14px; justify-content: center; align-items: center; min-height: 50px; }
#zineEchoApp > .echo-controls { position: relative; z-index: 0; isolation: isolate; justify-self: center; width: min(100%, 430px); height: 66px; min-height: 66px; margin-top: -42px; padding: 10px 14px 5px; filter: drop-shadow(0 3px 1px #35251e50) drop-shadow(2px 7px 4px #35251e30); }
/* The folded stock has a contact seam and a narrow front return. Shadow is
   applied to the un-clipped parent so it survives the cut-paper silhouette. */
#zineEchoApp > .echo-controls::before { content: ""; position: absolute; z-index: -1; inset: -9px 0 0; background: linear-gradient(#49352670, #49352614 10px, transparent 20px), var(--stock) center / 500px, #bd996e; background-blend-mode: multiply, multiply, normal; border-top: 2px solid #694c39; box-shadow: inset 0 -2px #ebcc9b90; clip-path: polygon(1% 0,99% 0,100% 91%,98% 100%,2% 98%,0 89%); }
#zineEchoApp > .echo-controls::after { content: ""; position: absolute; z-index: -2; left: 1px; right: 0; bottom: -5px; height: 12px; background: #806345 var(--stock) center / 500px; background-blend-mode: multiply; clip-path: polygon(0 0,100% 0,98% 100%,2% 88%); pointer-events: none; }
.echo-control { position: relative; isolation: isolate; border: 0; background: none; padding: 10px 22px 12px; min-height: 46px; font: 400 23px/1.15 "Nachtzine Print", sans-serif; color: var(--ink); }
.echo-control::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--echo-strip) center / 100% 100% no-repeat; }
.echo-control:enabled:hover { transform: translateY(-2px); }
.echo-control:disabled { opacity: .42; }
.echo-primary { filter: drop-shadow(1px 3px 1px #3b191b50); font-weight: 900; }
#zineEchoApp[data-phase="complete"] .echo-primary::before { filter: sepia(.25) saturate(.7); }
.echo-controls > #echoUndoAction { font-size: 20px; }
#zineEchoApp[data-phase="idle"] #echoUndoAction:disabled { visibility: hidden; position: absolute; }
.echo-quiet { font-size: 20px; filter: drop-shadow(0 2px 1px #3b191b40); }
.echo-quiet::before { opacity: .7; }
@media (min-width: 901px) and (min-height: 561px) { #echoBackAction { display: none; } }
.echo-error { position: absolute; bottom: 90px; left: 10%; right: 10%; padding: 20px; text-align: center; background: var(--paper); }
.echo-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.echo-reset-dialog { max-width: min(90vw, 470px); border: 0; padding: 38px; color: var(--ink); background: var(--paper) var(--stock) center / 600px; font: 24px/1.3 "Nachtzine Print", sans-serif; box-shadow: 6px 12px 30px #0005; }
.echo-reset-dialog::backdrop { background: #20171bcc; }
.echo-reset-dialog h2 { font-size: 36px; margin: 0 0 12px; }
.echo-reset-dialog p { margin: 0 0 20px; }
.echo-reset-dialog .echo-controls { flex-wrap: wrap; gap: 10px; }
#zineEchoApp[data-material-state="fallback"] .echo-speaker { visibility: hidden; }
#zineEchoApp[data-material-state="fallback"] :is(.echo-word-carrier,.echo-player,.echo-control) { background: var(--paper); }
#zineEchoApp[data-material-state="fallback"] .echo-backboard { background: var(--echo-teal); border: 8px solid #ba9366; inset: 0; }
#zineEchoApp[data-material-state="fallback"] :is(.echo-word-carrier,.echo-player,.echo-control)::before,
#zineEchoApp[data-material-state="fallback"] .echo-word-carrier::after { display: none; }
@keyframes echo-print { 0% { transform: translateY(-9px) rotate(-1.5deg); } 28% { transform: translateY(3px) rotate(.5deg); } 60% { transform: translateY(-2px) rotate(-.5deg); } 100% { transform: none; } }
@keyframes echo-loss { 0%, 33% { opacity: 1; transform: none; } 16%, 50% { opacity: .12; } 65% { opacity: 1; transform: translateY(3px) rotate(-14deg); } 100% { opacity: 0; transform: translateY(24px) rotate(20deg); } }
@keyframes echo-ticket { 0% { translate: 0 -6px; } 30% { translate: 0 2px; } 65% { translate: 0 -2px; } 100% { translate: 0; } }
@keyframes echo-near { 0% { opacity: 0; transform: translateY(0) rotate(0); } 20% { opacity: 1; transform: translate(-14px,-44px) rotate(-3deg); } 50% { opacity: .8; transform: translate(-20px,-48px) rotate(-4deg); } 75% { opacity: .35; transform: translate(-24px,-52px) rotate(-4deg); } 100% { opacity: 0; transform: translate(-24px,-52px) rotate(-4deg); } }
@keyframes echo-far { 0%,20% { opacity: 0; transform: translateY(0); } 40% { opacity: .9; transform: translate(18px,-80px) rotate(3deg); } 65% { opacity: .6; transform: translate(26px,-86px) rotate(4deg); } 85% { opacity: .25; transform: translate(30px,-90px) rotate(4deg); } 100% { opacity: 0; transform: translate(30px,-90px) rotate(4deg); } }
@keyframes echo-impact { 0%,100% { translate: 0; } 22% { translate: 0 5px; } 45% { translate: -3px 1px; } 72% { translate: 2px 0; } }
@keyframes echo-victory-stamp { 0% { opacity: 0; transform: translateX(-50%) rotate(-14deg) scale(1.35); } 24% { opacity: 1; transform: translateX(-50%) rotate(-5deg) scale(1.04); } 44% { transform: translateX(-50%) rotate(-7deg) scale(.97); } 70%,100% { opacity: 1; transform: translateX(-50%) rotate(-6deg) scale(1); } }
@keyframes echo-salute { 0%,100% { translate: 0; } 25% { translate: 0 -5px; } 50% { translate: 0 2px; } 75% { translate: 0 -2px; } }
@keyframes echo-rays-call { 0%,100% { opacity: .75; scale: 1; } 25% { opacity: 1; scale: 1.12; } 55% { opacity: .85; scale: 1.04; } 75% { opacity: .8; scale: 1.02; } }
/* A little cabinet vibration in held, irregular poses; not a metronome. */
@keyframes echo-speaker-live { 0%,100% { translate: 0; rotate: 0deg; } 18% { translate: 0 -2px; rotate: -.25deg; } 34% { translate: 0; rotate: .15deg; } 53% { translate: 0 -1px; rotate: .3deg; } 71% { translate: 0; rotate: 0deg; } 86% { translate: 0 -2px; rotate: -.15deg; } }
@keyframes echo-rays-live { 0%,100% { opacity: .55; } 27% { opacity: .8; } 49% { opacity: .6; } 76% { opacity: .75; } }
@media (prefers-reduced-motion: no-preference) {
  #zineEchoApp[data-echo-performing="true"] .echo-speaker { animation: echo-speaker-live 2400ms steps(1,end) infinite; }
  #zineEchoApp[data-echo-performing="true"] .echo-speaker-right { animation-delay: -730ms; animation-direction: reverse; }
  #zineEchoApp[data-echo-performing="true"] .echo-rays { animation: echo-rays-live 2700ms steps(1,end) infinite; }
  #zineEchoApp[data-echo-motion="reveal"] .echo-rays { animation: echo-rays-call 560ms steps(1, end); }
  #zineEchoApp[data-echo-motion="reveal"] .echo-speaker-right .echo-rays { animation-delay: 140ms; }
  #zineEchoApp[data-echo-motion="reveal"] .echo-word-carrier { animation: echo-print 360ms steps(1, end); }
  .echo-player[data-cue="starter"] { animation: echo-ticket 480ms steps(1, end); }
  .echo-heart.is-losing { animation: echo-loss 520ms steps(1, end) both; }
  .echo-heart.is-losing path { fill: var(--echo-red); stroke: var(--echo-red); stroke-dasharray: none; }
  .echo-player[data-impact] { animation: echo-impact 520ms steps(1,end); }
  #zineEchoApp[data-echo-motion="reveal"] .echo-imprint-near { animation: echo-near 780ms steps(1,end) both; }
  #zineEchoApp[data-echo-motion="reveal"] .echo-imprint-far { animation: echo-far 780ms steps(1,end) both; }
  #zineEchoApp[data-echo-motion="victory"] .echo-victory-stamp { animation: echo-victory-stamp 900ms steps(1,end) both; }
  #zineEchoApp[data-echo-motion="victory"] :is(.echo-word-carrier,.echo-player[data-winner="true"]) { animation: echo-salute 720ms steps(1,end); }
}
#zineEchoApp[data-echo-suspended="true"] *, #zineEchoApp[data-echo-suspended="true"] *::before, #zineEchoApp[data-echo-suspended="true"] *::after { animation-play-state: paused !important; }
@media (min-width: 1700px) { #zineEchoApp { padding-top: 72px; padding-bottom: 32px; } .echo-sound-system { padding-inline: 64px; } .echo-player { min-height: 120px; } }
@media (max-height: 780px) and (min-width: 901px) {
  #zineEchoApp { min-height: 620px; padding-top: 39px; padding-bottom: 12px; gap: 9px; grid-template-rows: 50px auto 66px; }
  .echo-sound-system { padding-block: 48px 32px; }
  .echo-heading h1 { font-size: 48px; } .echo-word-carrier { height: 215px; padding-block: 17px; }
  #zineEchoApp[data-echo-moment="countdown"] .echo-word { font-size: 88px; }
  .echo-player { min-height: 92px; padding-block: 9px; gap: 2px; grid-template-rows: 44px 24px; } .echo-player-name { font-size: 28px; height: 44px; }
  .echo-player-name[data-long="true"] { font-size: 22px; }
  .echo-instruction { margin-bottom: 8px; }
  .echo-speaker { height: 215px; }
  .echo-studio { padding-bottom: 12px; }
}
@media (max-width: 900px) {
  #zineEchoApp { height: auto; min-height: 100svh; padding: 66px 18px 26px; grid-template-rows: auto auto auto; }
  .echo-sound-system { padding: 26px 5% 40px; }
  .echo-studio { grid-template-columns: 14% minmax(0, 1fr) 14%; gap: 1%; }
  .echo-speaker { height: 170px; } .echo-rays { display: none; }
  .echo-word-carrier { height: 230px; padding-inline: 7%; }
  .echo-players { gap: 12px; } .echo-player { padding-inline: 12%; min-height: 108px; }
}
@media (max-width: 560px) {
  #zineEchoApp { padding-inline: 9px; gap: 12px; }
  .echo-heading { align-items: center; gap: 12px; padding-inline: 8px; } .echo-heading h1 { font-size: 35px; }
  .echo-heading p { font-size: 16px; max-width: 120px; padding-left: 12px; }
  .echo-sound-system { padding: 25px 7% 37px; }
  /* Nine-slice the real cardboard rim; never stretch a wide cabinet into a
     tall phone frame. Only the quiet middle paper texture may expand. */
  .echo-backboard { background: none; border-style: solid; border-color: transparent; border-width: 34px 22px 44px; border-image-source: var(--echo-chassis); border-image-slice: 125 110 140 fill; border-image-repeat: stretch; }
  .echo-studio { display: block; min-height: 260px; padding-top: 12px; }
  .echo-speaker { position: absolute; width: 67px; height: 100px; top: -11px; left: -9px; }
  .echo-speaker-right { left: auto; right: -9px; }
  .echo-word-stack { width: 100%; margin: 42px auto 0; }
  .echo-word-carrier { height: 210px; padding: 18px 8%; grid-template-rows: 26px minmax(65px, 1fr) 40px; }
  .echo-paper-clamp { width: 16px; height: 29px; }
  .echo-word { font-size: var(--echo-fit, 56px); } #zineEchoApp[data-phase="idle"] .echo-word { font-size: 35px; }
  #zineEchoApp[data-echo-moment="countdown"] .echo-word-carrier { grid-template-rows: 24px minmax(70px, 1fr) 54px; }
  #zineEchoApp[data-echo-moment="countdown"] .echo-word { font-size: 72px; }
  .echo-ready-name { font-size: 21px; }
  .echo-players { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .echo-player { min-height: 112px; padding: 13px 8%; gap: 3px; grid-template-rows: 50px 28px; }
  .echo-player-name { height: 50px; }
  .echo-player-name { font-size: 23px; } .echo-player-name[data-long="true"] { font-size: 20px; }
  .echo-controls { flex-wrap: wrap; gap: 8px; } .echo-control { font-size: 20px; padding-inline: 18px; }
  #zineEchoApp > .echo-controls { height: 106px; min-height: 106px; margin-top: -8px; padding-bottom: 24px; align-content: center; }
  .echo-instruction { min-height: 2.4em; font-size: 18px; }
  .echo-card-outcome { font-size: 15px; }
  .echo-imprint { display: none; }
}
@media (forced-colors: active) {
  #zineEchoApp { background: Canvas; color: CanvasText; }
  #zineEchoApp > .echo-controls { filter: none; }
  #zineEchoApp > .echo-controls::before, #zineEchoApp > .echo-controls::after { display: none; }
  .echo-player:focus-visible, .echo-control:focus-visible { outline: 3px solid Highlight; outline-offset: -6px; }
  .echo-word-stack { grid-column: 2; }
  .echo-speaker, .echo-rays, .echo-imprint, .echo-backboard, .echo-paper-clamp, .echo-word-carrier::before, .echo-word-carrier::after, .echo-player::before, .echo-control::before { display: none; }
  .echo-ink { mask: none; } .echo-word-carrier, .echo-player, .echo-control { filter: none; border: 2px solid ButtonText; background: Canvas; color: CanvasText; }
  .echo-kicker, .echo-heart, .echo-instruction { color: CanvasText !important; } .echo-heart.is-losing { animation: none; }
  .echo-word, .echo-heading h1, .echo-victory-stamp, .echo-card-outcome { color: CanvasText !important; mask: none; }
  #zineEchoApp .echo-word { background: transparent; }
  #zineEchoApp *, #zineEchoApp *::before, #zineEchoApp *::after { animation: none !important; }
}
