@import url("https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  font-family: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Lilita One", "Trebuchet MS", system-ui, sans-serif;
  background: #0b131b;
  color: #f8f6ee;
  --muted: #b1c1c9;
  --gold: #ffdc79;
  --line: #31434c;
  --panel: #15222b;
  --level-1: #ffaaa4;
  --level-2: #a9e9b2;
  --level-3: #ffdc79;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 300px;
  margin: 0;
  background: radial-gradient(ellipse at 36% 0%, #22323d 0, #101a23 49%, #0b131b 82%);
}
h1, h2, h3, p, ul { margin: 0; }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; width: 1em; height: 1em; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shell { width: min(100% - 72px, 1520px); margin-inline: auto; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 22px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark, .guide-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #6f6847;
  border-radius: 14px;
  background: linear-gradient(145deg, #3a3a29, #232a26);
  color: var(--gold);
  font-size: 29px;
}
.eyebrow {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
}
.brand .eyebrow { color: #a6c3ce; margin-bottom: 3px; }
h1, h2, h3, .result h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.018em;
}
h1 { font-size: clamp(2rem, 4vw, 3.55rem); }
h1 em { color: var(--gold); font-style: normal; }
.masthead-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}
.masthead-note svg { color: var(--level-3); font-size: 1.25rem; }
.masthead-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.fullscreen-control { position: relative; flex: none; }
.fullscreen-control .button { white-space: nowrap; }
#fullscreen-status:not(:empty) {
  position: absolute;
  z-index: 8;
  top: calc(100% + 7px);
  right: 0;
  width: min(220px, 80vw);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #11212b;
  color: #e1e8ec;
  font-size: .8rem;
  line-height: 1.35;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(290px, 25vw, 370px);
  gap: 20px;
  align-items: start;
}
.board, .panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: 0 4px 0 #070d13;
}
.scene {
  --orb-size: clamp(34px, 7.2cqw, 60px);
  --flight-size: min(30cqw, 240px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #152c3d url("assets/arvore.jpg") center / 100% 100% no-repeat;
  container-type: inline-size;
}
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #071421a0, transparent 30%, transparent 74%, #07142178),
    linear-gradient(0deg, #0a172b60, transparent 25%, transparent 82%, #0a172b63);
  box-shadow: inset 0 0 0 2px #071019aa, inset 0 0 0 5px #bccfde24;
  pointer-events: none;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#030b13a0 .75px, transparent 1px);
  background-size: 4px 4px;
  mask-image: linear-gradient(90deg, #000b, transparent 28%, transparent 72%, #000b);
  pointer-events: none;
}
.snow, .level-labels, .ornaments, .result, .confetti { position: absolute; inset: 0; }
.snow, .confetti, .level-labels { pointer-events: none; }
.snow { z-index: 1; }
.snow i {
  position: absolute;
  top: -8%;
  left: var(--left);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #d8f4ff;
  animation: snowfall var(--duration) var(--delay) linear infinite;
  opacity: var(--opacity);
}
@keyframes snowfall { to { transform: translate3d(44px, 75cqw, 0); } }
.level-labels { z-index: 2; }
.level-1 { --level-color: var(--level-1); }
.level-2 { --level-color: var(--level-2); }
.level-3 { --level-color: var(--level-3); }
.level-tag {
  position: absolute;
  top: var(--position);
  left: 2.5%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 107px;
  transform: translateY(-50%);
  padding: 7px 11px 7px 8px;
  border: 1px solid color-mix(in srgb, var(--level-color) 50%, #19252d);
  border-left: 3px solid var(--level-color);
  border-radius: 4px;
  background: #0d1925f2;
  color: var(--level-color);
  box-shadow: 3px 4px 0 #06111ac2;
}
.level-tag.current { box-shadow: 0 0 18px color-mix(in srgb, var(--level-color) 40%, transparent); }
.level-tag strong { font-size: 1.45rem; line-height: 1; }
.level-tag b { display: block; font-size: .75rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .065em; }
.level-tag small { display: block; font-size: .69rem; color: #e0e8eb; }

.ornaments { z-index: 3; }
.ornament {
  --cap: #e8bc76;
  --metal-shadow: #624126;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: var(--glint);
}
.ornament.red {
  --light: #ff7d77; --body: #b0233e; --shade: #4b152e; --glint: #ffd3b4; --rim: #2e101e;
}
.ornament.green {
  --light: #88df9c; --body: #238355; --shade: #113932; --glint: #d9f8c0; --rim: #0d2727;
}
.ornament.gold {
  --light: #ffe899; --body: #bf842c; --shade: #5c361d; --glint: #fff0bd; --rim: #40291e;
}
.orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--orb-size);
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 3px 3px #030c16d0);
  opacity: 1;
  transition: box-shadow 160ms, scale 160ms;
}
.orb-piece, .orb-enamel {
  position: absolute;
  inset: 0;
}
.orb-enamel {
  border: max(1px, .028em) solid var(--rim);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 28% 24%, #fffdf8 0 4%, #fff9 6%, transparent 23%),
    radial-gradient(ellipse at 71% 77%, var(--light), transparent 24%),
    radial-gradient(ellipse at 29% 23%, var(--light), var(--body) 43%, var(--shade) 82%);
  box-shadow: inset 1px 2px 0 #fff6, inset -2px -3px 5px #0008;
}
.orb-upper .orb-enamel { clip-path: inset(0 0 calc(50% - 1px) 0); }
.orb-lower .orb-enamel { clip-path: inset(50% 0 0 0); }
.orb-cap {
  position: absolute;
  left: 50%;
  top: -12%;
  width: 29%;
  height: 16%;
  transform: translateX(-50%);
  border: 1px solid #483221;
  border-radius: 28% 28% 18% 18%;
  background: repeating-linear-gradient(90deg, var(--cap) 0 23%, var(--metal-shadow) 30% 36%);
  box-shadow: inset 0 1px #fff8;
}
.orb-cap::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 49%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid var(--cap);
  border-radius: 50% 50% 36% 36%;
  box-shadow: 0 -1px 1px #070e16;
}
.orb-etching {
  position: absolute;
  inset: 53% 27% 14% 40%;
  display: grid;
  place-items: center;
  opacity: .49;
  rotate: -12deg;
}
.orb-etching svg { width: 100%; height: 100%; }
.orb-core { display: none; }
.orb:not(:disabled) {
  cursor: pointer;
  box-shadow: 0 0 0 2px #fff3c9, 0 0 11px 2px #ffdf7c8c;
  z-index: 1;
}
.orb:not(:disabled):hover { scale: 1.09; }
.orb:focus-visible, .button:focus-visible, input:focus-visible { outline: 3px solid #b4efff; outline-offset: 4px; }
.scene.playing .orb:disabled:not(.hit, .miss, .opening) { filter: brightness(.81) drop-shadow(0 3px 3px #030c16d0); }
.orb.opening { opacity: 0; }
.orb:is(.hit, .miss) .orb-upper { transform: translate(-9%, -15%) rotate(-24deg); }
.orb:is(.hit, .miss) .orb-lower { transform: translate(10%, 14%) rotate(16deg); }
.ornament:is(.hit, .miss) .orb-etching { display: none; }
.ornament:is(.hit, .miss) .orb-core {
  position: absolute;
  inset: 26%;
  display: grid;
  place-items: center;
  border: 1px solid #101a22;
  border-radius: 50%;
  background: #192733;
  color: #fff;
  box-shadow: 0 1px 5px #04090e;
}
.ornament.hit .orb-core { background: #ffe994; color: #302217; box-shadow: 0 0 13px #ffda81e6; }
.ornament.hit .orb-core svg:nth-child(2), .ornament.miss .orb-core svg:first-child { display: none; }
.orb-core svg { width: 77%; height: 77%; }

.opening-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.opening-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% var(--flight-y), #0a132137 15%, #071321b8 100%);
  animation: focus-flight var(--opening-duration) ease both;
}
.opening-layer:has(.returning)::before { display: none; }
.flight-orb {
  position: absolute;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 14px 18px #030812d9);
  animation: lift-orb var(--opening-duration) cubic-bezier(.22,.73,.24,1) both;
}
.flight-orb .orb-cap::before { border-width: 2px; }
.flight-orb .orb-enamel { border-width: 2px; }
.flight-orb .orb-upper { animation: split-upper var(--opening-duration) ease both; }
.flight-orb .orb-lower { animation: split-lower var(--opening-duration) ease both; }
.flight-orb .orb-etching { animation: fade-etching var(--opening-duration) ease both; }
.flight-orb.returning { animation: return-orb var(--return-duration) cubic-bezier(.44,.1,.34,1) both; }
.flight-orb.returning .orb-upper { animation: settle-upper var(--return-duration) ease both; }
.flight-orb.returning .orb-lower { animation: settle-lower var(--return-duration) ease both; }
@keyframes focus-flight { from { opacity: 0; } 52%, 100% { opacity: 1; } }
@keyframes lift-orb {
  from { left: var(--x); top: var(--y); width: var(--orb-size); }
  53%, 100% { left: 50%; top: var(--flight-y); width: var(--flight-size); }
}
@keyframes split-upper {
  0%, 58% { transform: none; }
  100% { transform: translate(-21%, -31%) rotate(-30deg); }
}
@keyframes split-lower {
  0%, 58% { transform: none; }
  100% { transform: translate(21%, 25%) rotate(24deg); }
}
@keyframes fade-etching { 0%, 58% { opacity: .49; } 80%, 100% { opacity: 0; } }
@keyframes return-orb {
  0%, 16% { left: 50%; top: var(--flight-y); width: var(--flight-size); }
  100% { left: var(--x); top: var(--y); width: var(--orb-size); }
}
@keyframes settle-upper {
  from { transform: translate(-21%, -31%) rotate(-30deg); }
  to { transform: translate(-9%, -15%) rotate(-24deg); }
}
@keyframes settle-lower {
  from { transform: translate(21%, 25%) rotate(24deg); }
  to { transform: translate(10%, 14%) rotate(16deg); }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  min-height: 49px;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
  color: #c9d6dc;
  font-size: .875rem;
  font-weight: 600;
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-ready { width: 11px; height: 11px; border: 2px solid var(--gold); border-radius: 50%; box-shadow: 0 0 6px #ffdc7988; }
.legend-good { color: var(--gold); }
.legend-miss { color: #d0dbe1; }

.sidebar { display: grid; gap: 14px; min-width: 0; }
.setup, .play { padding: clamp(16px, 1.7vw, 26px); }
.accent { color: var(--gold); }
.setup h2, .turn h2, dialog h2 {
  margin-top: 7px;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}
.panel-description, .turn > p:last-child { margin-top: 10px; color: var(--muted); line-height: 1.45; }
#setup-form { display: grid; gap: 10px; margin-top: 20px; }
.name-field {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border: 1px solid #40525e;
  border-radius: 10px;
  background: #0e1a23;
}
.name-field:focus-within { border-color: var(--gold); }
.player-number {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #2a3b47;
  color: #d9e6ed;
  font-size: .78rem;
  font-weight: 800;
}
.name-field input {
  width: 100%;
  min-width: 0;
  padding: 4px;
  border: 0;
  outline-offset: 1px;
  background: transparent;
  color: #fff;
  font-weight: 600;
}
.name-field input::placeholder { color: #bac8d1; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}
.button svg { font-size: 1.15em; }
.button:disabled { cursor: default; opacity: .6; }
.primary { background: var(--gold); color: #192129; }
.primary:hover { background: #ffe59a; }
#setup-form .button { margin-top: 4px; }
.secondary { border-color: #526570; background: #1b2a35; color: #ecf2f3; }
.secondary:hover:not(:disabled) { background: #2b3c49; }
.play > .button { width: 100%; margin-top: 16px; }
.turn { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.turn:focus { outline: none; }
.players-heading { margin: 15px 0 10px; color: #afc2cc; }
.players { display: grid; gap: 7px; padding: 0; list-style: none; }
.player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #394b57;
  border-radius: 10px;
  background: #0e1a23;
}
.player.active {
  border-color: #f4ce70;
  background: linear-gradient(90deg, #403c2b, #29322e 78%);
  box-shadow: 0 0 12px #ffdc7930;
}
.player.active .player-number { background: var(--gold); color: #202620; }
.player-name { font-size: .96rem; font-weight: 750; overflow-wrap: anywhere; }
.player-status { display: block; font-size: .75rem; color: var(--muted); }
.player.eliminated { border-color: #62474d; background: #211d27; }
.player.eliminated .player-number { background: #42303a; }
.player.eliminated .player-status { font-weight: 800; color: #ffb7b1; }
.level-chip { color: var(--level-color); font-size: .76rem; font-weight: 750; white-space: nowrap; }
.guide { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.guide-icon { width: 35px; height: 35px; border-radius: 9px; font-size: 17px; }
.guide h2 { margin-bottom: 4px; font-size: 1rem; }
.guide p { color: #c2d0d7; font-size: .875rem; line-height: 1.48; }
footer { color: #a8bbc4; padding: 17px 0 19px; text-align: center; font-size: .8rem; }

.result {
  --result-backdrop: radial-gradient(ellipse at center, #172b38c9, #080f18ef 87%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  text-align: center;
}
.result::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  background: var(--result-backdrop);
}
.result[data-kind="miss"] {
  justify-content: flex-end;
  padding-bottom: 4%;
  --result-backdrop: radial-gradient(ellipse at 52% 44%, #21403477, transparent 53%),
    linear-gradient(0deg, #09131bf2 0%, #14272cb0 43%, #0a14236b 92%);
}
.result[data-kind="miss"]::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  background: repeating-conic-gradient(from 7deg at 50% 43%, transparent 0 12deg, #b4dcc44b 13deg, transparent 14deg 28deg);
  mask-image: radial-gradient(ellipse, transparent 44%, black 89%);
  pointer-events: none;
}
.result[data-kind="hit"] { justify-content: flex-end; padding-bottom: 6%; --result-backdrop: linear-gradient(0deg, #090f17 0%, #101d27d9 29%, #101d276b 69%, #101d274d); }
.result[data-kind="win"] { --result-backdrop: radial-gradient(ellipse at 50% 40%, #735c2be8, #131b23f7 80%); }
.result-visual { position: relative; z-index: 5; color: var(--gold); }
.result-visual > svg {
  width: clamp(36px, 13cqw, 110px);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 18px #fbd37988);
  animation: ascend 650ms ease-out both;
}
.result[data-kind="miss"] .result-visual { min-height: 0; }
.grinch {
  display: block;
  width: min(79cqw, 560px);
  height: auto;
  max-height: 42cqw;
  object-fit: contain;
  transform-origin: center;
  animation: jumpscare 650ms cubic-bezier(.2,.85,.25,1) both;
  filter: drop-shadow(0 10px 24px #000a);
}
.result-copy { position: relative; z-index: 7; width: min(100%, 640px); }
.result-copy .eyebrow { margin-bottom: 8px; color: var(--gold); font-size: clamp(.75rem, 2.5cqw, 1rem); overflow-wrap: anywhere; }
.result h2 { font-size: clamp(1.55rem, 5.6cqw, 3.6rem); overflow-wrap: anywhere; text-wrap: balance; text-shadow: 0 3px 12px #0008; }
#result-detail { margin-top: 8px; color: #e3edf0; font-size: clamp(.9rem, 2.4cqw, 1.2rem); font-weight: 650; }
.elimination-note {
  width: fit-content;
  max-width: 100%;
  margin: 9px auto 0;
  padding: 6px 12px;
  border: 1px solid #916260;
  border-radius: 4px;
  background: #251c26;
  color: #ffceca;
  font-size: clamp(.78rem, 2.65cqw, 1rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}
@keyframes ascend {
  from { transform: translate(var(--from-x), var(--from-y)) scale(.18); opacity: .35; }
  to { transform: translate(var(--rise-x), var(--rise-y)) scale(1); opacity: 1; }
}
@keyframes jumpscare {
  from { transform: translate(var(--from-x), var(--from-y)) scale(.06); opacity: .2; }
  63% { transform: translate(0, 0) scale(1.11) rotate(-2deg); opacity: 1; }
  to { transform: translate(0, 0) scale(1); opacity: 1; }
}
.confetti { z-index: 4; }
.confetti i {
  position: absolute;
  top: -10%;
  left: var(--left);
  width: 8px;
  height: 14px;
  border-radius: 3px;
  background: var(--color);
  animation: confetti-fall var(--duration) var(--delay) linear 3 both;
}
@keyframes confetti-fall {
  to { transform: translate3d(var(--drift), 78cqw, 0) rotate(640deg); }
}

dialog {
  width: min(450px, calc(100% - 30px));
  padding: 24px;
  border: 1px solid #617584;
  border-radius: 17px;
  background: #17242e;
  color: #fff;
  box-shadow: 0 18px 70px #000c;
}
dialog::backdrop { background: #04090dc9; }
dialog h2 { margin-top: 0; }
dialog p { margin: 13px 0 22px; color: #d4dfe4; line-height: 1.55; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

@media (min-width: 1050px) and (min-height: 620px) and (max-height: 870px) {
  .shell { width: min(100% - 56px, calc((100svh - 191px) * 1.5 + clamp(290px, 25vw, 370px) + 20px), 1520px); }
}
@media (min-width: 741px) and (min-height: 520px) {
  :fullscreen .shell {
    width: min(100% - 36px, calc((100svh - 169px) * 1.5 + clamp(265px, 25vw, 370px) + 13px), 1720px);
  }
  :fullscreen .masthead { padding-block: 13px; }
}
@media (max-width: 960px) {
  .shell { width: calc(100% - 36px); }
  .layout { gap: 13px; grid-template-columns: minmax(0, 1fr) 265px; }
  .level-tag { min-width: 0; gap: 6px; padding: 5px 7px; }
}
@media (max-width: 1030px) {
  .masthead-note { display: none; }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 24px); }
  .masthead { padding: 15px 0; }
  .brand { gap: 9px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 10px; font-size: 23px; }
  .masthead-actions .button { min-height: 40px; padding-inline: 9px; font-size: .84rem; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: contents; }
  .setup, .play { grid-row: 1; }
  .board { grid-row: 2; }
  .guide { grid-row: 3; }
  .play { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; }
  .turn { padding: 0; border-bottom: 0; }
  .turn h2 { margin-top: 4px; }
  .turn > p:last-child { margin-top: 5px; }
  .players-heading { grid-column: 1 / -1; margin: 2px 0 0; font-size: .7rem; }
  .players { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .player { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 6px; }
  .player .player-number { display: none; }
  .player-status { font-size: .68rem; }
  .player-name { font-size: .82rem; }
  .play > .button { grid-row: 1; grid-column: 2; margin: 0; }
  .scene { aspect-ratio: 1.18; --orb-size: clamp(27px, 9cqw, 47px); --flight-size: 33cqw; }
  .legend { gap: 7px 12px; font-size: .75rem; }
  @keyframes snowfall { to { transform: translate3d(32px, 100cqw, 0); } }
  @keyframes confetti-fall { to { transform: translate3d(var(--drift), 100cqw, 0) rotate(640deg); } }
}
@media (max-width: 400px) {
  .masthead { gap: 9px; }
  .brand-mark { display: none; }
  h1 { font-size: clamp(1.4rem, 6.3vw, 2rem); }
  .masthead-actions .button { white-space: normal; max-width: 117px; }
  .level-tag { left: 1.5%; gap: 4px; padding: 4px; }
  .level-tag strong { font-size: 1.05rem; }
  .level-tag b, .level-tag small { font-size: .62rem; }
  .play > .button { min-height: 40px; padding-inline: 8px; font-size: .85rem; }
}
@media (orientation: landscape) and (max-height: 519px) and (min-width: 540px) {
  :fullscreen .shell { width: calc(100% - 22px); }
  :fullscreen .masthead { padding-block: 6px; }
  :fullscreen .brand-mark { width: 34px; height: 34px; font-size: 20px; }
  :fullscreen .brand .eyebrow { font-size: .64rem; }
  :fullscreen h1 { font-size: 1.6rem; }
  :fullscreen .layout { grid-template-columns: minmax(0, 1fr) minmax(218px, 30%); gap: 9px; align-items: start; }
  :fullscreen .board { grid-area: 1 / 1 / span 2 / 2; }
  :fullscreen .sidebar { display: contents; }
  :fullscreen :is(.setup, .play) { grid-area: 1 / 2; padding: 9px; }
  :fullscreen .guide { grid-area: 2 / 2; padding: 8px; }
  :fullscreen .scene {
    aspect-ratio: 3 / 2;
    max-height: calc(100svh - 106px);
    --orb-size: min(clamp(24px, 6cqw, 41px), max(20px, calc((100svh - 106px) * .105)));
    --flight-size: min(26cqw, 34svh);
  }
  :fullscreen .play { display: grid; grid-template-columns: 1fr; gap: 5px; }
  :fullscreen .turn { padding-bottom: 4px; }
  :fullscreen .turn h2 { margin-top: 3px; font-size: 1.25rem; }
  :fullscreen .turn > p:last-child { margin-top: 3px; font-size: .82rem; }
  :fullscreen .players-heading { margin: 0; font-size: .65rem; }
  :fullscreen .players { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  :fullscreen .player { grid-template-columns: minmax(0, 1fr); padding: 5px; gap: 2px; }
  :fullscreen .player .player-number { display: none; }
  :fullscreen .player-name, :fullscreen .level-chip { font-size: .72rem; }
  :fullscreen .player-status { font-size: .64rem; }
  :fullscreen .play > .button { grid-area: auto / 1; min-height: 34px; margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .snow i { top: var(--still-top); }
  .confetti i { top: var(--still-top); transform: rotate(25deg); }
  .orb:not(:disabled):hover { scale: 1; }
  .orb.opening { opacity: 1; }
  .opening-layer { display: none; }
}
