:root {
  color-scheme: dark;
  --ipcp-yellow: #ffe400;
  --ipcp-black: #15170f;
  --ipcp-green: #218f45;
  --ipcp-green-dark: #126332;
  --ipcp-red: #b91e2b;
  --paper: #f8f4e8;
  --ink: #171913;
  --muted: #b9bda9;
  --panel: rgba(17, 20, 13, 0.94);
  --line: rgba(255, 255, 255, 0.16);
  --app-chrome-height: 94px;
  --lobby-grass-background:
    linear-gradient(90deg, rgba(8, 11, 6, 0.72), rgba(8, 11, 6, 0.48) 50%, rgba(8, 11, 6, 0.72)),
    linear-gradient(rgba(8, 11, 6, 0.16), rgba(8, 11, 6, 0.64)),
    url("assets/textures/grassbg.png") center top / cover fixed no-repeat;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  color: var(--paper);
  background: var(--lobby-grass-background), #173c25;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: 100%;
  height: 100dvh;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: 8px;
  overflow: hidden;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--ipcp-yellow);
  border-bottom: 6px solid var(--ipcp-black);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-crop {
  width: 38px;
  height: 48px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 7px;
}

.brand-logo-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-sunburst {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--ipcp-yellow);
  background: var(--ipcp-black);
  border-radius: 7px;
  font: 900 34px/1 Georgia, serif;
  box-shadow: inset 0 0 0 3px var(--ipcp-yellow);
}

.brand-name {
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: clamp(14px, 2vw, 23px);
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-status {
  display: flex;
  gap: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.round-metrics { display:flex; align-items:center; gap:18px; }

.settings-button,
.header-button {
  min-height: 34px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .06em;
}

.header-button {
  color: var(--paper);
  background: var(--ink);
}

.game-stage {
  position: relative;
  overflow: hidden;
  width: min(100%, calc((100dvh - var(--app-chrome-height)) * 1400 / 820));
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1400 / 820;
  place-self: center;
  min-width: 0;
  min-height: 0;
  background: #536f31;
  border: 0;
  box-shadow: inset 0 0 0 3px var(--ipcp-yellow), 0 20px 60px rgba(0, 0, 0, 0.42);
}

.game-stage:has(#start-screen:not(.hidden)) {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  place-self: stretch;
}

.early-scores-button { position:absolute; z-index:6; left:50%; bottom:calc(8.3% + 14px); transform:translateX(-50%); width:min(430px,calc(100% - 28px)); min-height:50px; }
#demo-end-button { position:absolute; z-index:6; right:clamp(12px,1.5vw,24px); bottom:clamp(12px,2vh,20px); min-height:36px; padding:6px 12px; }

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1400 / 820;
  background: #58773a;
  touch-action: none;
}

.screen-overlay,
.preparation-overlay,
.countdown-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 11, 6, 0.68);
  backdrop-filter: blur(3px);
}

.preparation-overlay {
  z-index: 11;
  color: var(--paper);
  background: rgba(8, 24, 14, .9);
  font-size: clamp(34px, 7vw, 82px);
  font-weight: 1000;
  letter-spacing: .04em;
  text-shadow: 0 5px 0 var(--ipcp-black);
}

#start-screen {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 8px;
  scrollbar-gutter: stable;
  scrollbar-color: var(--ipcp-yellow) #0a2116;
  scrollbar-width: thin;
  background: var(--lobby-grass-background), #173c25;
}
#start-screen::-webkit-scrollbar,
.settings-card::-webkit-scrollbar { width:10px; height:10px; }
#start-screen::-webkit-scrollbar-track,
.settings-card::-webkit-scrollbar-track { background:#0a2116; }
#start-screen::-webkit-scrollbar-thumb,
.settings-card::-webkit-scrollbar-thumb { background:var(--ipcp-yellow); border:2px solid #0a2116; border-radius:8px; }

.countdown-overlay {
  color: var(--ipcp-yellow);
  font-size: clamp(80px, 22vw, 250px);
  font-weight: 1000;
  text-shadow: 0 10px 0 var(--ipcp-black), 0 0 50px rgba(255, 228, 0, 0.45);
}

.overlay-card {
  width: min(760px, 95%);
  padding: clamp(20px, 4vw, 42px);
  color: var(--paper);
  background: rgba(17, 49, 31, 0.96);
  border: 2px solid rgba(244, 239, 218, 0.44);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

#start-screen .overlay-card {
  background: rgba(8, 36, 23, 0.72);
  backdrop-filter: blur(2px);
}

.start-card,
.results-card {
  text-align: center;
}

.start-card {
  position: relative;
  width: min(1480px, 100%);
  max-width: none;
  flex: 0 0 auto;
  margin: auto;
  padding: 8px 12px 6px;
}
.start-card .lobby-section-heading { margin:7px auto 3px; color:#f4fff2; font:1000 19px/1.05 system-ui,sans-serif; letter-spacing:.16em; text-align:center; }
.challenge-heading + .lobby-section-heading { max-width:1180px; margin-top:6px; padding:5px 12px; color:#fff; background:rgba(51,118,71,.94); border-top:2px solid rgba(190,224,192,.55); border-bottom:2px solid rgba(8,30,18,.75); }
.gameplay-carousel-shell { position:relative; max-width:1180px; margin:0 auto 4px; }
.gameplay-carousel { position:relative; width:100%; background:rgba(27,65,38,.88); border:1px solid rgba(181,217,179,.42); border-top:0; box-shadow:0 8px 22px rgba(0,0,0,.22); font:800 18px/1.18 system-ui,sans-serif; }
.gameplay-primer { padding:12px; }
.primer-page { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.primer-row { position:relative; display:grid; grid-template-rows:130px auto auto; place-items:center; align-content:start; gap:6px; min-width:0; min-height:228px; padding:10px 12px 11px; background:rgba(62,123,77,.62); border:2px solid rgba(207,232,199,.3); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); text-align:center; }
.primer-row > h3 { margin:0; color:var(--ipcp-yellow); font:1000 14px/1.08 system-ui,sans-serif; letter-spacing:.045em; }
.primer-row > p { margin:0; color:#fffdf0; font-size:14px; line-height:1.22; text-align:center; }
.primer-navigation { position:absolute; inset:0; pointer-events:none; }
.carousel-arrow { position:absolute; z-index:4; top:50%; display:grid; place-items:center; width:25px; height:35px; padding:0 0 3px; color:#efffed; background:rgba(37,116,65,.94); border:1px solid #80c98d; border-radius:3px; font:900 25px/1 system-ui,sans-serif; box-shadow:0 2px 5px rgba(0,0,0,.42); pointer-events:auto; transform:translateY(-50%); }
.carousel-arrow:first-child { left:0; transform:translate(-38%,-50%); }
.carousel-arrow:last-child { right:0; transform:translate(38%,-50%); }
.carousel-arrow:hover,.carousel-arrow:focus-visible { color:#fff; background:#398b55; border-color:#b9e8bf; }
.carousel-arrow.is-unavailable { visibility:hidden; pointer-events:none; }
.primer-page-indicator { position:absolute; z-index:3; right:17px; bottom:16px; min-width:31px; padding:2px 3px; color:#d8ebd9; background:rgba(17,64,35,.86); border-radius:3px; font:900 9px/1 system-ui,sans-serif; letter-spacing:.04em; text-align:center; pointer-events:none; }
.primer-page .primer-row:last-child > p { padding-right:18px; }
.food-values { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; width:100%; max-width:100%; overflow:hidden; }
.food-values > span { display:grid; grid-template-rows:76px auto auto; place-items:center; min-width:0; text-align:center; }
.food-values img { display:block; max-width:66px; max-height:72px; object-fit:contain; }
.food-values b { color:#fff; font-size:7.5px; line-height:1.05; }
.food-values strong { color:var(--ipcp-yellow); font-size:9px; }
.aphid-leaf { position:relative; width:68px; height:72px; }
.aphid-leaf img:first-child { width:68px; height:68px; }
.aphid-leaf img:last-child { position:absolute; width:25px; height:25px; left:27px; top:20px; }
.nest-bait-picture { position:relative; display:flex; align-items:center; justify-content:center; gap:5px; width:100%; height:82px; padding-top:6px; }
.dead-nest { position:relative; display:block; width:70px; height:56px; }
.dead-nest > img:first-child { width:70px; height:56px; object-fit:contain; filter:grayscale(1) brightness(.78); }
.dead-nest .menu-toxic { position:absolute; z-index:3; left:50%; top:-20px; width:29px; height:24px; object-fit:contain; filter:none; transform:translateX(-50%); }
.dead-nest b { position:absolute; inset:50% auto auto 50%; color:#e32332; font:800 42px/.8 Arial,system-ui,sans-serif; text-shadow:-1px -1px 0 #171913,1px -1px 0 #171913,-1px 1px 0 #171913,1px 1px 0 #171913; transform:translate(-50%,-50%); }
.nest-bait-picture .menu-station { width:58px; height:75px; object-fit:fill; }
.menu-bait-ant { position:relative; display:block; width:53px; height:64px; }
.menu-bait-ant > img:first-child { position:absolute; left:4px; top:5px; width:44px; height:59px; object-fit:contain; transform:rotate(-88deg); }
.menu-bait-ant > img:last-child { position:absolute; z-index:3; left:-11px; top:32px; width:18px; height:18px; }
.menu-bait-meter { position:absolute; left:50%; top:0; width:116px; height:9px; border:2px solid #f2eed9; border-radius:8px; background:#243226; overflow:hidden; transform:translateX(-50%); }
.menu-bait-meter i { display:block; width:86%; height:100%; background:#e5484d; }
.pull-picture { position:relative; display:block; width:190px; height:82px; }
.pull-picture .pull-station { position:absolute; right:13px; top:0; width:59px; height:76px; object-fit:fill; }
.pull-picture .pull-ant { position:absolute; left:26px; bottom:-3px; width:46px; height:70px; object-fit:contain; transform:rotate(75deg); }
.pull-picture .pull-bait { position:absolute; left:43px; bottom:25px; width:18px; height:18px; object-fit:contain; transform:rotate(75deg); }
.pull-picture b { position:absolute; left:46px; top:0; color:#ffe400; font:1000 30px/1 system-ui,sans-serif; text-shadow:0 2px 0 #111; }
.pull-rings,.pull-rings::before,.pull-rings::after { position:absolute; right:39px; top:32px; width:36px; height:36px; border:3px solid rgba(255,228,0,.72); border-radius:50%; content:""; transform:translate(50%,-50%); }
.pull-rings::before { right:50%; top:50%; width:56px; height:56px; }
.pull-rings::after { right:50%; top:50%; width:76px; height:76px; }
.bonk-picture { position:relative; display:block; width:180px; height:82px; }
.bonk-picture .bonk-attacker { position:absolute; left:22px; top:11px; width:50px; height:72px; object-fit:contain; transform:rotate(68deg); }
.bonk-picture b { position:absolute; z-index:2; left:39px; top:0; color:#ffe400; font:1000 14px/1 system-ui,sans-serif; transform:rotate(-8deg); }
.bonk-splat { position:absolute; right:20px; bottom:4px; width:70px; height:59px; object-fit:contain; }
.bonk-picture .lost-lunch { position:absolute; z-index:3; right:11px; top:2px; width:24px; height:24px; object-fit:contain; transform:rotate(14deg); }
.score-picture,.loot-picture,.bait-steal-picture,.safe-carry-picture,.hazard-picture,.hazard-off-picture,.warning-picture,.corn-picture { position:relative; display:block; width:190px; height:82px; }
.outlast-picture { position:relative; display:block; width:190px; height:82px; }
.outlast-nest { position:absolute; left:8px; bottom:0; width:66px; height:52px; }
.outlast-nest img { width:66px; height:52px; object-fit:contain; filter:grayscale(1) brightness(.72); }
.outlast-nest b { position:absolute; inset:50% auto auto 50%; color:#e32332; font:1000 35px/.8 system-ui,sans-serif; text-shadow:0 2px 0 #171913; transform:translate(-50%,-50%); }
.outlast-carrier { position:absolute; right:15px; bottom:-2px; width:50px; height:72px; transform:rotate(-72deg); filter:grayscale(1) saturate(.18) brightness(.9); }
.outlast-carrier img:first-child { width:50px; height:72px; object-fit:contain; }
.outlast-carrier img:last-child { position:absolute; left:50%; top:-4px; width:19px; height:19px; transform:translateX(-50%); }
.outlast-picture .menu-bait-meter { top:2px; width:104px; }
.score-picture { padding:4px 7px; background:rgba(18,50,29,.7); border:1px solid rgba(218,241,213,.45); }
.score-picture > b { position:absolute; left:7px; top:5px; color:var(--ipcp-yellow); font:1000 10px/1 system-ui,sans-serif; }
.score-rank { position:absolute; left:9px; bottom:8px; display:grid; place-items:center; width:27px; height:27px; color:#18321f; background:var(--ipcp-yellow); border-radius:50%; font:1000 17px/1 system-ui,sans-serif; }
.score-picture > strong { position:absolute; left:43px; bottom:15px; color:#fff; font:1000 11px/1 system-ui,sans-serif; }
.score-breakdown { position:absolute; right:7px; top:8px; display:grid; gap:5px; color:#fff; font-size:10px; text-align:left; }
.score-breakdown i { padding:4px 5px; background:#234d35; border-left:3px solid var(--ipcp-yellow); font-style:normal; white-space:nowrap; }
.loot-picture > img:not(.loot-drop) { position:absolute; object-fit:contain; }
.loot-splat { left:21px; bottom:4px; width:69px; height:58px; }
.loot-ant-right { right:20px; bottom:-4px; width:47px; height:70px; transform:rotate(-72deg); }
.loot-drop { position:absolute; left:50%; bottom:11px; width:28px; height:28px; transform:translateX(-50%); }
.loot-picture b,.hazard-off-picture b { position:absolute; left:50%; top:0; color:var(--ipcp-yellow); font:1000 12px/1 system-ui,sans-serif; transform:translateX(-50%); white-space:nowrap; }
.bait-carrier,.bait-receiver { position:absolute; bottom:-4px; width:48px; height:72px; filter:grayscale(1) saturate(.18) brightness(.9); }
.bait-carrier { left:21px; transform:rotate(70deg); }
.bait-receiver { right:19px; transform:rotate(-70deg); }
.bait-carrier img:first-child,.bait-receiver img:first-child { width:48px; height:72px; object-fit:contain; }
.bait-carrier img:last-child,.bait-receiver img:last-child { position:absolute; left:50%; top:-4px; width:19px; height:19px; transform:translateX(-50%); }
.bait-steal-picture strong { position:absolute; left:50%; bottom:7px; color:var(--ipcp-yellow); font-size:24px; transform:translateX(-50%); }
.safe-carry-picture .pull-rings { right:37px; top:32px; opacity:.45; }
.safe-carry-station { position:absolute; right:10px; top:2px; width:56px; height:73px; object-fit:fill; }
.safe-carry-ant { position:absolute; left:27px; bottom:-2px; width:48px; height:71px; transform:rotate(72deg); }
.safe-carry-ant > img:first-child { width:48px; height:71px; object-fit:contain; }
.safe-carry-ant > img:last-child { position:absolute; left:50%; top:-5px; width:24px; height:24px; transform:translateX(-50%); }
.safe-carry-picture b { position:absolute; left:50%; top:2px; padding:3px 6px; color:#102919; background:var(--ipcp-yellow); font:1000 11px/1 system-ui,sans-serif; transform:translateX(-50%) rotate(-4deg); white-space:nowrap; }
.hazard-picture > span { position:absolute; top:5px; width:54px; height:72px; }
.hazard-picture > span > img:first-child { width:46px; height:68px; object-fit:contain; }
.stunned-ant { left:5px; filter:grayscale(1) saturate(.08) brightness(.82); transform:rotate(18deg); }
.stunned-ant b { position:absolute; right:-2px; top:-4px; color:#ffb13b; font:1000 24px/1 system-ui,sans-serif; }
.sticky-ant { left:68px; transform:rotate(-5deg); }
.sticky-ant img:last-child { position:absolute; left:3px; top:8px; width:46px; height:49px; filter:drop-shadow(0 0 3px rgba(255,90,140,.7)); }
.pushed-ant { right:2px; transform:rotate(65deg); }
.pushed-ant b { position:absolute; right:-9px; top:21px; color:#d8f4ff; font:1000 25px/1 system-ui,sans-serif; transform:rotate(-65deg); }
.hazard-off-picture > img:not(.contest-food) { position:absolute; width:39px; height:57px; object-fit:contain; }
.contest-gold { left:13px; top:18px; transform:rotate(68deg); }
.contest-blue { right:13px; top:18px; transform:rotate(-68deg); }
.contest-red { left:52px; top:-4px; filter:hue-rotate(310deg) saturate(1.8); transform:rotate(145deg); }
.contest-purple { right:52px; top:-4px; transform:rotate(-145deg); }
.hazard-off-picture .contest-food { position:absolute; left:50%; top:31px; width:37px; height:37px; object-fit:contain; transform:translate(-50%,-50%); }
.hazard-off-picture b { position:absolute; left:50%; bottom:0; color:var(--ipcp-yellow); font:1000 11px/1 system-ui,sans-serif; transform:translateX(-50%); }
.warning-picture > span { position:absolute; left:50%; top:50%; width:72px; height:72px; border:4px dashed #ff3445; border-radius:50%; transform:translate(-50%,-50%); }
.warning-picture img { position:absolute; left:50%; top:50%; width:48px; height:72px; object-fit:contain; transform:translate(-50%,-50%) rotate(12deg); }
.warning-picture b { position:absolute; right:8px; top:-1px; color:var(--ipcp-yellow); font:1000 13px/1 system-ui,sans-serif; transform:rotate(8deg); }
.warning-picture > span { animation:primer-warning-pulse 1.2s ease-in-out infinite; }
.corn-picture { width:180px; height:130px; }
.corn-picture img { display:block; width:108px; height:108px; margin:10px auto 0; object-fit:contain; }
.corn-picture b { position:absolute; right:2px; top:4px; padding:4px 6px; color:#132018; background:var(--ipcp-yellow); font:1000 11px/1 system-ui,sans-serif; transform:rotate(5deg); }
.gameplay-shot { position:relative; display:block; width:190px; max-width:100%; height:130px; overflow:hidden; background:#214c30; border:1px solid rgba(224,244,218,.58); box-shadow:0 2px 7px rgba(0,0,0,.28); }
.gameplay-shot > img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.bonk-shot > img { object-position:center 60%; }
.cargo-shot > img { object-position:center; }
.contest-shot > img { object-position:center center; }
.outlast-shot > img { object-position:left center; }
.damage-hud { position:absolute; z-index:2; left:7px; top:7px; display:flex; align-items:center; gap:3px; }
.damage-hud > img { width:31px; height:25px; object-fit:contain; image-rendering:auto; }
.damage-hud > span { display:block; width:99px; height:12px; padding:2px; background:#18231a; border:2px solid #edf4dd; box-shadow:0 1px 3px rgba(0,0,0,.55); }
.damage-hud i { display:block; width:31%; height:100%; background:#7bd546; }
.gameplay-slideshow > img { opacity:0; }
.two-frame > img { animation:primer-two-frame 10s ease-in-out infinite; }
.two-frame > img:nth-child(2) { animation-delay:-5s; }
.three-frame > img { animation:primer-three-frame 15s ease-in-out infinite; }
.three-frame > img:nth-child(2) { animation-delay:-10s; }
.three-frame > img:nth-child(3) { animation-delay:-5s; }
.four-frame > img { animation:primer-four-frame 20s ease-in-out infinite; }
.four-frame > img:nth-child(2) { animation-delay:-15s; }
.four-frame > img:nth-child(3) { animation-delay:-10s; }
.four-frame > img:nth-child(4) { animation-delay:-5s; }
.score-picture { position:relative; display:block; width:190px; height:130px; overflow:hidden; padding:0; background:transparent; border:0; }
.score-ledger { position:absolute; left:50%; top:0; display:flex; flex-direction:column; width:174px; height:128px; color:#fff; font-family:system-ui,sans-serif; text-align:left; transform:translateX(-50%); }
.score-deliveries { display:flex; flex-direction:column; }
.score-deliveries i { display:flex; align-items:center; justify-content:flex-start; gap:7px; width:92px; height:18px; min-width:0; font-style:normal; }
.score-deliveries img { width:26px; height:19px; object-fit:contain; }
.score-deliveries b { color:var(--ipcp-yellow); font-size:11px; line-height:1; text-shadow:-1px -1px 0 #342b18,1px -1px 0 #342b18,-1px 1px 0 #342b18,1px 1px 0 #342b18; }
.score-deposit-nest { position:absolute; right:0; top:8px; width:76px; height:62px; object-fit:contain; }
.score-subtotal { margin-top:2px; padding-top:3px; border-top:1px solid rgba(244,255,239,.72); color:var(--ipcp-yellow); font-size:11px; font-weight:1000; line-height:1; }
.score-time { margin-top:4px; font-size:10px; font-weight:900; line-height:1; }
.score-ledger > strong { margin-top:4px; color:#ff6670; font-size:15px; font-weight:1000; line-height:1; text-shadow:0 2px 2px rgba(0,0,0,.65); }
@keyframes primer-two-frame { 0%,44% { opacity:1; } 50%,94% { opacity:0; } 100% { opacity:1; } }
@keyframes primer-three-frame { 0%,29% { opacity:1; } 34%,95% { opacity:0; } 100% { opacity:1; } }
@keyframes primer-four-frame { 0%,21% { opacity:1; } 25%,96% { opacity:0; } 100% { opacity:1; } }
@keyframes primer-warning-pulse { 50% { opacity:.45; transform:translate(-50%,-50%) scale(.88); } }
@media (prefers-reduced-motion:reduce) {
  .gameplay-slideshow > img { animation:none; opacity:0; }
  .gameplay-slideshow > img:first-child { opacity:1; }
}

.start-card h1 { display:flex; justify-content:center; gap:.18em; font-size:clamp(52px,6vw,76px); }
.start-card h1 em { margin:0; }
.challenge-heading { max-width:1080px; margin:5px auto 7px; color:var(--ipcp-yellow); font-size:clamp(16px,1.55vw,20px); font-weight:1000; line-height:1.18; }
.host-setup-grid { grid-template-columns:1fr 1fr; max-width:600px; margin:8px auto; }
.room-line { display:flex; justify-content:center; gap:24px; color:var(--muted); font-size:13px; }
.room-line strong { color:var(--ipcp-yellow); letter-spacing:.12em; }
.debug-room-line { position:absolute; right:18px; bottom:18px; justify-content:flex-end; font-size:11px; }
.performance-monitor {
  position: fixed;
  z-index: 70;
  right: 14px;
  bottom: 14px;
  width: min(330px, calc(100vw - 28px));
  padding: 10px 12px;
  color: #dfffdc;
  background: rgba(4, 18, 11, .9);
  border: 2px solid #176b3b;
  border-radius: 7px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .48);
  pointer-events: none;
  font: 700 11px/1.35 Consolas, "Courier New", monospace;
}
.performance-monitor strong { display:block; margin-bottom:4px; color:var(--ipcp-yellow); letter-spacing:.1em; }
.performance-monitor pre { margin:0; white-space:pre-wrap; font:inherit; }
.screenshot-status {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 20px;
  max-width: min(620px, calc(100vw - 32px));
  padding: 9px 14px;
  color: #edffe9;
  background: rgba(5, 38, 20, .94);
  border: 2px solid #55c96b;
  border-radius: 7px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .42);
  transform: translateX(-50%);
  pointer-events: none;
  font: 900 12px/1.25 system-ui, sans-serif;
  letter-spacing: .035em;
}
.screenshot-status.is-error { color:#fff0ec; background:rgba(65,12,9,.95); border-color:#ff695c; }
.fullscreen-status {
  position:fixed;
  z-index:92;
  left:50%;
  top:82px;
  max-width:min(620px,calc(100vw - 32px));
  padding:9px 14px;
  color:#edffe9;
  background:rgba(5,38,20,.94);
  border:2px solid #55c96b;
  border-radius:7px;
  box-shadow:0 7px 22px rgba(0,0,0,.42);
  transform:translateX(-50%);
  pointer-events:none;
  font:900 12px/1.25 system-ui,sans-serif;
  letter-spacing:.035em;
  text-align:center;
}
.fullscreen-status.is-error { color:#fff0ec; background:rgba(65,12,9,.95); border-color:#ff695c; }
.fullscreen-status {
  position:fixed;
  z-index:92;
  left:50%;
  top:82px;
  max-width:min(620px,calc(100vw - 32px));
  padding:9px 14px;
  color:#edffe9;
  background:rgba(5,38,20,.94);
  border:2px solid #55c96b;
  border-radius:7px;
  box-shadow:0 7px 22px rgba(0,0,0,.42);
  transform:translateX(-50%);
  pointer-events:none;
  font:900 12px/1.25 system-ui,sans-serif;
  letter-spacing:.035em;
  text-align:center;
}
.fullscreen-status.is-error { color:#fff0ec; background:rgba(65,12,9,.95); border-color:#ff695c; }
.fullscreen-status {
  position:fixed;
  z-index:92;
  left:50%;
  top:82px;
  max-width:min(620px,calc(100vw - 32px));
  padding:9px 14px;
  color:#edffe9;
  background:rgba(5,38,20,.94);
  border:2px solid #55c96b;
  border-radius:7px;
  box-shadow:0 7px 22px rgba(0,0,0,.42);
  transform:translateX(-50%);
  pointer-events:none;
  font:900 12px/1.25 system-ui,sans-serif;
  letter-spacing:.035em;
  text-align:center;
}
.fullscreen-status.is-error { color:#fff0ec; background:rgba(65,12,9,.95); border-color:#ff695c; }
.diagnostic-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.diagnostic-actions button:last-child { grid-column:auto; }
.diagnostic-report { max-height:220px; overflow:auto; margin:0; padding:9px; color:#dfffdc; background:#07170e; border:1px solid #356f49; white-space:pre-wrap; font:700 10px/1.35 Consolas,"Courier New",monospace; }
.settings-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.settings-section-heading h3 { margin:0; }
.settings-heading-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.settings-heading-actions .secondary-button { min-height:38px; padding:7px 12px; font-size:12px; line-height:1; }
.settings-restart-button { min-height:38px; padding:7px 14px; color:#171913; background:linear-gradient(#fff34f,#ffe000); border:2px solid #fff2a3; border-radius:9px; box-shadow:0 4px 0 #8e7900,inset 0 2px 0 rgba(255,255,255,.8); font:800 12px/1 var(--theme-button-font,"Arial Rounded MT Bold",system-ui,sans-serif); letter-spacing:.045em; }
.settings-restart-button:active { transform:translateY(3px); box-shadow:0 1px 0 #8e7900; }
.admin-restart-button { justify-self:start; min-height:34px; padding:6px 12px; font-size:11px; }
.admin-diagnostics { border:1px solid #71907d; border-radius:8px; background:rgba(4,28,15,.28); }
.admin-diagnostics summary { padding:10px 12px; color:var(--ipcp-yellow); cursor:pointer; font:900 13px/1.1 var(--theme-button-font,"Arial Rounded MT Bold",system-ui,sans-serif); letter-spacing:.07em; }
.admin-diagnostics-content { display:grid; gap:10px; padding:2px 12px 12px; }
.seat-lobby { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:6px 0; }
.shared-phone-join { display:flex; align-items:center; justify-content:center; gap:12px; width:min(440px,100%); margin:5px auto 7px; padding:7px 11px; color:#f4fff2; background:rgba(22,76,43,.9); border:2px solid rgba(179,226,183,.48); text-align:left; }
.shared-phone-join img { width:72px; height:72px; flex:0 0 auto; padding:3px; background:#fff; image-rendering:pixelated; }
.shared-phone-join div { display:grid; gap:2px; }
.shared-phone-join strong { color:var(--ipcp-yellow); font-size:15px; letter-spacing:.07em; }
.shared-phone-join span { font:800 12px/1.15 system-ui,sans-serif; }
.shared-phone-join small { color:#d4e8d6; font:900 10px/1.1 system-ui,sans-serif; letter-spacing:.08em; }
.shared-phone-join b { color:#fff; }
.lobby-lower-grid { display:grid; grid-template-columns:1fr; align-items:start; gap:2px; width:100%; max-width:1180px; margin:0 auto; }
.lobby-controls,.lobby-join { min-width:0; }
.lobby-heading-with-help { display:flex; align-items:center; justify-content:center; gap:8px; }
.lobby-heading-with-help .lobby-section-heading { margin-inline:0; }
.controls-help-button { display:grid; place-items:center; width:25px; height:25px; padding:0; color:#17301f; background:var(--ipcp-yellow); border:2px solid #f7f0c6; border-radius:50%; font:1000 16px/1 system-ui,sans-serif; }
.quick-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; width:min(620px,100%); min-height:50px; margin:0 auto; padding:4px; color:#f4fff2; background:rgba(27,65,38,.88); border:1px solid rgba(181,217,179,.42); box-shadow:0 8px 22px rgba(0,0,0,.22); font-family:system-ui,sans-serif; text-align:center; cursor:pointer; }
.quick-controls:hover,.quick-controls:focus-visible { background:rgba(37,86,51,.94); border-color:#9bd3a6; }
.quick-control { display:flex; align-items:center; justify-content:center; gap:8px; min-width:0; min-height:42px; padding:2px 9px; border-right:1px solid rgba(225,239,214,.22); }
.quick-control > strong { color:var(--ipcp-yellow); font-size:12px; letter-spacing:.08em; }
.quick-control .controller-key { width:28px; min-width:28px; height:28px; padding:0; color:#fff; }
.quick-move .gamepad-move { transform:scale(.78); transform-origin:center; }
.lobby-lower-grid .seat-lobby { grid-template-columns:repeat(4,minmax(0,1fr)); }
.lobby-lower-grid .seat-card { padding:5px 3px; }
.lobby-lower-grid .seat-card h3 { margin-bottom:2px; font-size:14px; }
.lobby-lower-grid .seat-card p { min-height:12px; margin:2px 0; font-size:10px; }
.lobby-lower-grid .seat-card button { min-height:24px; padding:2px 6px; font-size:9px; }
.lobby-lower-grid .shared-phone-join { padding:5px 9px; }
.lobby-lower-grid .shared-phone-join img { width:90px; height:90px; }
.lobby-lower-grid .instruction { max-width:760px; }
.lobby-lower-grid .lobby-join {
  display:grid;
  grid-template-columns:minmax(220px,.72fr) minmax(0,1.8fr);
  grid-template-areas:
    "heading heading"
    "phone seats"
    "instruction instruction"
    "start start";
  column-gap:10px;
  row-gap:4px;
}
.lobby-lower-grid .lobby-join .lobby-section-heading { grid-area:heading; margin:5px 0 0; }
.lobby-lower-grid .lobby-join .shared-phone-join { grid-area:phone; width:100%; height:96px; margin:0; }
.lobby-lower-grid .lobby-join .shared-phone-join img { width:84px; height:84px; }
.lobby-lower-grid .lobby-join .seat-lobby { grid-area:seats; height:96px; margin:0; }
.lobby-lower-grid .lobby-join .instruction { grid-area:instruction; margin:0 auto; font-size:10px; line-height:1.2; }
.lobby-lower-grid .lobby-join #start-button { grid-area:start; justify-self:center; width:min(390px,100%); min-height:34px; height:34px; margin:0; padding:5px 18px; white-space:nowrap; }
.seat-card { padding:6px 8px; border:3px solid #4f5a49; background:rgba(61,112,70,.76); }
.lobby-lower-grid .seat-card { display:grid; align-content:center; justify-items:stretch; }
.seat-card[data-seat="0"]{--seat:#ffe400}.seat-card[data-seat="1"]{--seat:#26bde2}.seat-card[data-seat="2"]{--seat:#ef476f}.seat-card[data-seat="3"]{--seat:#a984ff}
.seat-card.is-ready { border-color:var(--seat); box-shadow:inset 0 0 0 2px rgba(255,255,255,.15); }
.seat-card h3 { margin:0 0 5px; color:var(--seat); }
.seat-card p { margin:4px 0; min-height:18px; color:#f3efd8; font-size:12px; font-weight:800; }
.seat-card div { display:flex; gap:5px; justify-content:center; }
.seat-card button { min-height:30px; padding:4px 12px; border:2px solid #fff3a0; color:#171913; background:var(--ipcp-yellow); font-size:11px; font-weight:1000; }
.seat-card button.is-selected { color:#17130f; background:var(--seat); border-color:var(--seat); }
.seat-card .seat-ready { color:#17130f; background:var(--ipcp-yellow); border:2px solid #fff4a0; }
.seat-card .claim-flash { min-width:126px; }
.seat-card .claim-prompt-text { animation:arcade-text-blink 2.2s ease-in infinite; }
@keyframes arcade-text-blink {
  0%,42% { opacity:1; }
  100% { opacity:.1; }
}
.seat-name-input { width:min(100%,190px); min-height:32px; padding:5px 8px; color:#172017; background:#f5f4e8; border:2px solid var(--seat); font-size:12px; font-weight:900; text-align:center; }
.demo-button { position:absolute; left:18px; bottom:14px; min-height:34px; padding:7px 11px; font-size:11px; }
.map-mode-button { min-width:132px; min-height:30px; padding:5px 10px; border:1px solid #78967e; color:#e9f3e9; background:#244d35; font-size:11px; font-weight:900; letter-spacing:.045em; box-shadow:0 3px 0 #10271a; }
.map-mode-button.is-selected { color:#f4fff2; background:#36794e; border-color:#8fca9d; box-shadow:inset 0 2px 0 rgba(0,0,0,.22),0 1px 0 #10271a; transform:translateY(2px); }
.map-choice { width:100%; min-height:40px; padding:6px; color:#172017; background:#f4f2e8; border:2px solid #8fca9d; font-weight:900; }
.select-row { display:grid; grid-template-columns:1fr minmax(170px,auto); align-items:center; gap:12px; color:#dce9df; font:800 12px/1.2 system-ui,sans-serif; }
.select-row select { min-height:36px; padding:5px 8px; color:#172017; background:#f4f2e8; border:2px solid #8fca9d; font-weight:900; }
.controls-aid { display:grid; grid-template-columns:1fr; align-items:stretch; justify-content:center; gap:8px; width:100%; max-width:1180px; margin:4px auto 8px; padding:12px; color:#fff; background:rgba(27,65,38,.88); border:1px solid rgba(181,217,179,.42); box-shadow:0 8px 22px rgba(0,0,0,.22); }
.control-box { display:grid; place-items:stretch; align-content:stretch; gap:10px; min-height:136px; padding:0; background:transparent; border:0; text-align:center; }
.combined-controls { grid-template-columns:repeat(3,minmax(0,1fr)); justify-content:stretch; }
.control-cluster { display:grid; grid-template-rows:auto 52px 42px; place-items:center; align-content:center; gap:5px; min-width:0; min-height:112px; padding:10px 22px; background:rgba(62,123,77,.62); border:2px solid rgba(207,232,199,.3); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
.control-cluster + .control-cluster { border-left:2px solid rgba(207,232,199,.3); }
.control-title { color:var(--ipcp-yellow); font-size:13px; letter-spacing:.08em; }
.control-title small { display:block; margin-top:2px; color:#eff4e8; font-size:8px; letter-spacing:.05em; }
.controls-aid p { display:grid; gap:2px; margin:0; }
.controls-aid p span { color:#e8eadf; font:700 16px/1.18 system-ui,sans-serif; }
.movement-keys { display:flex; align-items:center; gap:6px; }
.movement-keys b { color:var(--muted); font-size:10px; }
.movement-keys>.wasd,.movement-keys>.arrow-keys { display:grid; grid-template-columns:repeat(3,25px); grid-template-rows:repeat(2,23px); gap:2px; }
.movement-keys .wasd kbd:first-child,.movement-keys .arrow-keys kbd:first-child { grid-column:2; }
.movement-keys span kbd:nth-child(2) { grid-column:1; grid-row:2; }
.movement-keys span kbd:nth-child(3) { grid-column:2; grid-row:2; }
.movement-keys span kbd:nth-child(4) { grid-column:3; grid-row:2; }
kbd { display:grid; place-items:center; min-width:25px; padding:2px 5px; color:#171913; background:#f8f4e8; border:1px solid #aaa794; border-bottom-width:4px; border-radius:4px; font:900 12px/1 system-ui,sans-serif; box-shadow:0 2px 0 rgba(0,0,0,.4); }
.space-key { min-width:86px; min-height:32px; }
.enter-key { min-width:64px; min-height:32px; }
.escape-key { min-width:46px; min-height:32px; }
.backspace-key { min-width:82px; min-height:32px; }
.controller-key { width:34px; min-width:34px; height:34px; padding:0; border:3px solid #f5f5ed; border-radius:50%; color:white; text-shadow:0 2px 0 rgba(0,0,0,.4); }
.controller-a { background:#2c9b51; }
.controller-b { background:#d43b45; }
.gamepad-move { display:grid; grid-template-columns:30px 30px; grid-template-rows:28px 11px; align-items:center; justify-items:center; gap:0 4px; min-width:68px; }
.gamepad-move small { grid-column:1/3; color:#eef4e9; font-size:7px; font-weight:1000; letter-spacing:.04em; }
.stick-icon { position:relative; width:25px; height:25px; border:3px solid #e9eee6; border-radius:50%; background:#30352f; box-shadow:inset 0 0 0 3px #121511; }
.stick-icon i { position:absolute; width:10px; height:10px; left:8px; top:4px; border-radius:50%; background:#d7ddd4; }
.dpad-icon { color:#e9eee6; font:1000 31px/.8 system-ui,sans-serif; text-shadow:0 2px 0 #111; }
.action-keys { display:flex; align-items:center; justify-content:center; gap:9px; }
.action-keys b { color:var(--muted); font-size:10px; }
.keyboard-input-line { align-self:center; }
.controller-input-line { display:flex; align-items:center; justify-content:center; width:100%; min-height:40px; padding-top:5px; border-top:1px solid rgba(225,239,214,.2); }
.start-card .instruction { margin:8px auto; font-size:13px; }
.start-card .fine-print { margin-top:9px; }
.primary-button:disabled { opacity:.45; box-shadow:none; }

.eyebrow {
  margin: 0 0 5px;
  color: var(--ipcp-yellow);
  font-weight: 900;
  letter-spacing: 0.15em;
}

h1,
h2 {
  margin: 0;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

h1 {
  display: grid;
  color: var(--paper);
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 1000;
}

h1 span,
h1 em {
  display: block;
  font-style: normal;
}

h1 em {
  width: max-content;
  margin: 2px auto 0;
  padding: 0 0.12em 0.06em;
  color: #8bd05f;
  text-shadow: 0 5px 0 rgba(10, 34, 20, 0.7);
}

h2 {
  font-size: clamp(42px, 7vw, 74px);
}

.lead {
  margin: 12px 0 22px;
  font-size: clamp(19px, 3vw, 30px);
  font-weight: 800;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
  text-align: left;
}

.setup-grid label,
.tuning-content label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

select,
input[type="text"],
input[inputmode="numeric"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--paper);
  background: #25291e;
  border: 1px solid #4b513e;
  border-radius: 4px;
}

/* Public static builds keep the shared runtime but do not expose exhibit operator controls. */
.public-build #admin-toggle,
.public-build #admin-content,
.public-build #admin-results-data,
.public-build #debug-room-line,
.public-build #performance-monitor,
.public-build #screenshot-status { display:none !important; }
.public-room-join { display:none; }
.public-build .public-room-join,
.public-build #copy-room-link { display:none !important; }
.public-build .public-room-join {
  display:block;
  width:100%;
  margin:0;
  color:#f4fff2;
  text-align:center;
}
.public-build .public-room-join > label { display:block; margin-bottom:5px; color:var(--ipcp-yellow); font:900 12px/1.1 var(--theme-button-font,"Arial Rounded MT Bold",system-ui,sans-serif); letter-spacing:.08em; }
.public-build .public-room-join > div { display:grid; grid-template-columns:minmax(70px,1fr) auto; gap:6px; }
.public-build .public-room-join input { min-width:0; height:40px; padding:7px 10px; border:2px solid #9ab6a6; border-radius:7px; color:#141712; background:#fff; font:900 19px/1 Consolas,monospace; letter-spacing:.18em; text-align:center; text-transform:uppercase; }
.public-build .public-room-join button { min-height:40px; padding:7px 10px; border:2px solid #fff2a3; border-radius:7px; color:#17130f; background:linear-gradient(#fff34f,#ffe000); box-shadow:0 3px 0 #8e7900; font:900 11px/1 var(--theme-button-font,"Arial Rounded MT Bold",system-ui,sans-serif); }
.public-build .public-room-join > #copy-room-link { width:100%; margin-bottom:8px; }
.public-build .public-room-join p { min-height:16px; margin:5px 0 0; color:#ffd0d7; font-size:12px; font-weight:800; }
@media (max-width:760px) {
  .public-build .public-room-join > div { grid-template-columns:minmax(90px,1fr) auto; }
}
.turnstile-slot { width:100%; min-height:0; }

.seed-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.fresh-layout-option {
  align-content: end;
}

.fresh-layout-row {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 9px;
  padding: 8px 10px;
  color: var(--paper);
  background: #25291e;
  border: 1px solid #4b513e;
  border-radius: 4px;
}

.fresh-layout-row input {
  accent-color: var(--ipcp-green);
}

.instruction {
  max-width: 650px;
  margin: 18px auto;
  font-family: system-ui, sans-serif;
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.admin-toggle {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 3px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.primary-button {
  color: var(--ink);
  background: var(--ipcp-yellow);
  box-shadow: 0 5px 0 #967e00;
}

.primary-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #967e00;
}

.secondary-button,
.admin-toggle {
  color: var(--paper);
  background: #353a2d;
  border: 1px solid #69705c;
}

.admin-restart-button {
  width: 100%;
  margin-top: 4px;
  background: #174f37;
  border-color: #3f7f58;
}

.admin-map-picker {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 11px;
  border: 1px solid #5f8068;
  background: rgba(11, 48, 30, .55);
}

.admin-map-picker legend {
  padding: 0 6px;
  color: #dce9df;
  font: 900 12px/1 system-ui, sans-serif;
  letter-spacing: .06em;
}

.tuning-content .admin-map-row {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.tuning-content .admin-map-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dce9df;
  font-weight: 900;
}

.admin-map-radio input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ipcp-yellow);
}

.admin-map-row-single {
  grid-template-columns: 1fr !important;
}

.fine-print {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 11px;
}

.event-banner {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  max-width: min(360px, 58%);
  padding: 8px 12px;
  color: var(--paper);
  background: rgba(19, 24, 15, 0.9);
  border-left: 5px solid var(--ipcp-red);
  text-align: left;
  font-family: system-ui, sans-serif;
  font-size: clamp(12px, 1.4vw, 17px);
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.settings-panel {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 4, .76);
  backdrop-filter: blur(5px);
}

.settings-card {
  position:relative;
  width: min(650px, 96%);
  max-height: 94%;
  overflow-y: auto;
  overflow-x:hidden;
  scrollbar-color:var(--ipcp-yellow) #0a2116;
  scrollbar-width:thin;
  padding: 22px;
  color: var(--paper);
  background: #112f20;
  border: 3px solid #28613d;
  box-shadow: 0 24px 70px rgba(0,0,0,.65);
}

.settings-card > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.settings-card h2 { font-size: clamp(38px, 7vw, 64px); }

.controls-guide-card { width:min(780px,96%); overflow-y:auto; }
.controls-guide-carousel { min-height:285px; }
.controls-guide-page { display:grid; align-content:start; gap:18px; min-height:285px; padding:20px; background:rgba(0,0,0,.2); border:1px solid var(--line); text-align:center; }
.controls-guide-page > p:last-child { margin:0; color:#f3f2e8; font:800 17px/1.3 system-ui,sans-serif; }
.controls-guide-page > p:last-child kbd { display:inline-grid; min-width:auto; min-height:28px; padding:4px 9px; vertical-align:middle; font-size:11px; }
.controls-guide-kicker { margin:0; color:var(--ipcp-yellow); font:1000 18px/1 system-ui,sans-serif; letter-spacing:.1em; }
.controls-guide-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.controls-guide-options.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.controls-guide-options article { display:grid; place-items:center; align-content:center; gap:10px; min-height:158px; padding:14px; color:#eff6eb; background:rgba(62,123,77,.62); border:2px solid rgba(207,232,199,.3); font:800 14px/1.2 system-ui,sans-serif; }
.controls-guide-options article > strong { color:var(--ipcp-yellow); font-size:15px; letter-spacing:.08em; }
.controls-guide-options article > kbd { min-height:42px; padding:8px 12px; font-size:16px; }
.guide-key-row { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; }
.guide-key-row kbd { min-height:38px; font-size:13px; }
.guide-key-row .controller-key { width:38px; min-width:38px; height:38px; padding:0; color:#fff; }
.controller-map { position:relative; width:min(650px,100%); aspect-ratio:1448/1086; margin:-26px auto -34px; }
.controller-map > img { display:block; width:100%; height:100%; object-fit:contain; }
.controller-callout-lines { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.controller-callout-lines path { fill:none; stroke:var(--ipcp-yellow); stroke-width:.65; vector-effect:non-scaling-stroke; filter:drop-shadow(0 1px 1px #000); }
.controller-callout-lines circle { fill:var(--ipcp-yellow); stroke:#132719; stroke-width:.35; vector-effect:non-scaling-stroke; }
.controller-callout { position:absolute; z-index:2; display:grid; gap:1px; padding:4px 7px; color:#171913; background:var(--ipcp-yellow); border:2px solid #fff3a0; border-radius:7px; box-shadow:0 3px 0 #8e7900,0 2px 8px rgba(0,0,0,.5); font-family:var(--theme-button-font,"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif); line-height:1; text-align:center; white-space:nowrap; }
.controller-callout b { font-size:13px; letter-spacing:.06em; }
.controller-callout small { font-size:8px; font-weight:800; }
.callout-move { left:0; top:13%; }
.callout-left-bumper { left:7%; top:-3%; }
.callout-right-bumper { right:7%; top:-3%; }
.callout-settings { left:51%; top:0; transform:translateX(-50%); }
.callout-back { right:0; top:19%; }
.callout-action { right:0; bottom:8%; }
.controls-guide-steps { display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.controls-guide-steps li { display:grid; grid-template-columns:46px 1fr; align-items:center; gap:14px; min-height:64px; padding:10px 16px; color:#f3f2e8; background:rgba(62,123,77,.62); border:2px solid rgba(207,232,199,.3); text-align:left; font:850 16px/1.25 system-ui,sans-serif; }
.controls-guide-steps b { display:grid; place-items:center; width:42px; height:42px; color:#172017; background:var(--ipcp-yellow); border-radius:50%; font-size:22px; }
.controls-guide-carousel { position:relative; }
.controls-guide-navigation .carousel-arrow:first-child { left:0; transform:translate(-38%,-50%); }
.controls-guide-navigation .carousel-arrow:last-child { right:0; transform:translate(38%,-50%); }
.controls-guide-navigation .primer-page-indicator { right:12px; bottom:10px; }

.leaderboard-card { width:min(720px,96%); }
.leaderboard-list { display:grid; gap:8px; margin:0; padding:0; counter-reset:forager; list-style:none; }
.leaderboard-list li { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:12px; min-height:50px; padding:9px 14px; background:rgba(0,0,0,.25); border-left:5px solid #4f6d55; counter-increment:forager; font-size:18px; font-weight:900; }
.leaderboard-list li::before { content:counter(forager); color:var(--ipcp-yellow); font-size:24px; text-align:center; }
.leaderboard-list li.empty::before { content:"—"; }
.leaderboard-list li strong { color:var(--ipcp-yellow); font-size:20px; }

.settings-close {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.55);
  color: white;
  background: #263a2c;
  font: 800 34px/1 system-ui, sans-serif;
}

.controller-menu-focus {
  outline: 4px solid #356f49 !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .58) !important;
}

.radio-setting.controller-menu-focus .controller-choice-focus {
  outline: 3px solid #4d8b62;
  outline-offset: -3px;
  transform: translateY(-1px);
}

.settings-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(0,0,0,.2);
  border: 1px solid var(--line);
  text-align: left;
}

.settings-section h3 { margin: 0; color: var(--ipcp-yellow); letter-spacing: .08em; }
.settings-section label { display: grid; gap: 7px; font-weight: 900; }
.settings-section select { min-height: 44px; padding: 8px; color: var(--ink); background: var(--paper); }
.settings-section .check-row { display: flex; align-items: center; gap: 9px; }
.settings-section input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ipcp-yellow); }
.general-settings { margin-bottom:8px; }
.display-aids-setting { display:grid; gap:7px; margin:0; padding:10px; border:1px solid #5f8068; background:rgba(11,48,30,.55); }
.display-aids-setting legend { padding:0 6px; color:#dce9df; font:900 12px/1 system-ui,sans-serif; letter-spacing:.06em; }
.radio-setting { display:grid; gap:8px; margin:0; padding:10px; border:1px solid #5f8068; background:rgba(11,48,30,.55); }
.radio-setting legend { padding:0 6px; color:#dce9df; font:900 12px/1 system-ui,sans-serif; letter-spacing:.06em; }
.radio-setting>small { color:#afc5b5; font-size:10px; text-align:right; }
.radio-options { display:grid; gap:7px; }
.radio-options.four-options { grid-template-columns:repeat(4,minmax(0,1fr)); }
.radio-options.five-options { grid-template-columns:repeat(5,minmax(0,1fr)); }
.radio-options.two-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
.radio-options label { min-height:36px; display:flex; grid-template-columns:none; flex-direction:row; align-items:center; justify-content:center; gap:6px; padding:6px 8px; border:1px solid #78967e; color:#dce9df; background:#244d35; font:900 11px/1.1 system-ui,sans-serif; text-align:center; cursor:pointer; }
.radio-options label:has(input:checked) { color:#15130f; background:var(--ipcp-yellow); border-color:#fff2a3; box-shadow:inset 0 2px 0 rgba(0,0,0,.18); }
.radio-options input[type="radio"] { position:absolute; width:1px; height:1px; margin:0; opacity:0; pointer-events:none; }
.radio-options label:has(input:focus-visible) { outline:3px solid #dff4df; outline-offset:2px; }
.check-row small { margin-left:auto; color:#afc5b5; font-size:10px; }
.settings-map { position:relative; display:grid; gap:7px; }
.settings-map .map-mode-button { width:100%; min-height:42px; font-size:14px; text-align:left; }
.audio-settings { margin-bottom:8px; }
.audio-row { display:grid; grid-template-columns:auto minmax(250px,1fr); align-items:center; gap:18px; }
.volume-row { display:grid !important; grid-template-columns:auto minmax(130px,1fr); align-items:center; gap:12px !important; }
.volume-row > span { white-space:nowrap; }
.audio-settings input[type="range"] { width:100%; accent-color:var(--ipcp-yellow); }
.version-settings { grid-template-columns:1fr auto; align-items:center; margin-top:8px; }
.version-settings p { margin:5px 0 0; color:#dce9df; font-weight:800; }
.version-settings strong { color:var(--ipcp-yellow); }
.version-settings .public-build-status { margin-top:8px; color:#fff3a0; font-size:13px; line-height:1.35; }
.version-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.version-settings .secondary-button { min-height:42px; margin:0; white-space:nowrap; }
.release-notes-panel { z-index:16; }
.release-notes-card { width:min(720px,96%); }
.release-notes-card > header { margin-bottom:12px; }
.release-notes-card h2 { font-size:clamp(34px,6vw,58px); }
.release-history-list { display:grid; gap:14px; text-align:left; }
.release-history-list.show-all { max-height:min(42vh,380px); padding-right:8px; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:var(--ipcp-yellow) #0a2116; scrollbar-width:thin; }
.release-history-list.show-all::-webkit-scrollbar { width:10px; }
.release-history-list.show-all::-webkit-scrollbar-track { background:#0a2116; }
.release-history-list.show-all::-webkit-scrollbar-thumb { background:var(--ipcp-yellow); border:2px solid #0a2116; }
.release-entry { padding:16px 18px; background:rgba(0,0,0,.24); border-left:5px solid #4f8a5f; }
.release-entry.is-latest { border-left-color:var(--ipcp-yellow); }
.release-entry header { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 12px; margin-bottom:8px; }
.release-entry h3 { margin:0; color:var(--ipcp-yellow); font-size:22px; letter-spacing:.04em; }
.release-entry time { color:#b9d1bf; font-size:13px; font-weight:900; }
.release-entry h4 { flex-basis:100%; margin:0; color:#f4efda; font-size:17px; }
.release-entry ul { display:grid; gap:7px; margin:0; padding-left:21px; color:#e5eee7; font-size:15px; font-weight:700; line-height:1.35; }
.release-dismiss-row { display:flex; align-items:center; gap:9px; margin:16px 0 0; padding:11px 13px; color:#e5eee7; background:rgba(0,0,0,.2); font-weight:900; text-align:left; }
.release-dismiss-row input { width:22px; height:22px; flex:0 0 auto; accent-color:var(--ipcp-yellow); }
.release-notes-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }
.release-notes-actions button { min-width:180px; margin:0; }
.credits-panel { z-index:17; }
.credits-card { width:min(720px,96%); }
.credits-card h2 { font-size:clamp(32px,5.5vw,54px); }
.credits-intro,.music-credit,.sound-credit { padding:16px 18px; background:rgba(0,0,0,.24); border-left:5px solid #4f8a5f; text-align:left; }
.credits-intro { margin-bottom:12px; }
.sound-credit { margin-top:12px; }
.credits-intro h3,.music-credit h3,.sound-credit h3 { margin:0 0 8px; color:var(--ipcp-yellow); font-size:22px; }
.credits-intro p,.music-credit p,.sound-credit p { margin:0; color:#e5eee7; font-size:15px; font-weight:700; line-height:1.45; }
.credits-card p.credits-copy { font-family:system-ui,sans-serif; font-size:16px; font-weight:700; line-height:1.5; font-style:normal; }
.credits-more-info { margin-top:10px; }
.credits-more-info summary { width:max-content; margin-left:auto; color:var(--ipcp-yellow); font-size:15px; font-weight:1000; letter-spacing:.07em; text-decoration:underline; text-decoration-color:#9ccf9f; text-underline-offset:4px; cursor:pointer; }
.credits-more-info summary:hover,.credits-more-info summary:focus-visible { color:#fff39a; }
.credits-more-info > div { display:grid; gap:10px; margin-top:12px; }
.music-credit .eyebrow,.sound-credit .eyebrow { margin-bottom:5px; color:#b9d1bf; font-size:14px; }
.music-credit a,.sound-credit a { color:var(--ipcp-yellow); text-decoration-color:#9ccf9f; text-underline-offset:4px; }
.music-credit a:hover,.music-credit a:focus-visible,.sound-credit a:hover,.sound-credit a:focus-visible { color:#fff39a; }
.credits-track-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 22px; margin:14px 0; padding-left:21px; color:#f4efda; font-weight:900; }
.music-credit .credits-note { color:#b9d1bf; font-size:15px; }
.menu-tools { position:absolute; z-index:30; right:14px; bottom:10px; display:flex; align-items:center; gap:6px; }
.menu-icon { position:relative; display:grid; place-items:center; width:38px; height:38px; padding:3px; color:var(--ipcp-yellow); background:transparent; border:0; filter:drop-shadow(0 2px 2px #000); }
.menu-icon svg { width:30px; height:30px; fill:currentColor; }
.music-toggle.is-muted::after { content:""; position:absolute; width:38px; height:4px; background:var(--ipcp-yellow); transform:rotate(-45deg); box-shadow:0 0 0 1px #171913; }

@media (max-width: 620px) {
  .settings-section-heading { flex-wrap:wrap; }
  .settings-heading-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .settings-heading-actions button { min-width:0; }
  .audio-row,.volume-row { grid-template-columns:1fr; }
  .version-settings { grid-template-columns:1fr; }
  .version-actions { justify-content:stretch; }
  .version-actions button { flex:1 1 180px; }
  .radio-options.four-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .radio-options.five-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .release-notes-actions { flex-direction:column-reverse; }
  .release-notes-actions button { width:100%; min-width:0; }
  .credits-track-list { grid-template-columns:1fr; }
}

.admin-toggle {
  width: 100%;
  margin-top: 14px;
  text-align: left;
}

.tuning-content {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 14px;
  background: rgba(18, 21, 14, 0.95);
  border: 1px solid var(--line);
  text-align: left;
}

.tuning-content output {
  color: var(--ipcp-yellow);
}

.tuning-content input[type="range"] {
  width: 100%;
  accent-color: var(--ipcp-yellow);
}

.tuning-content .check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tuning-content small {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.colony-strip {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 8px;
}

.colony-card {
  position: relative;
  overflow: hidden;
  min-height: 82px;
  padding: 10px 12px;
  background: #1c2016;
  border-top: 5px solid var(--colony-color);
}

.colony-card.is-out {
  filter: grayscale(1);
  opacity: 0.55;
}

.colony-card-head,
.colony-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.colony-card-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--colony-color);
  text-shadow: -1px -1px 0 var(--colony-dark), 1px -1px 0 var(--colony-dark), -1px 1px 0 var(--colony-dark), 1px 1px 0 var(--colony-dark);
}

.colony-type {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 11px;
}

.colony-card-stats {
  margin-top: 8px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
}

.dose-track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  background: #050505;
  border: 2px solid #050505;
}

.dose-row { display:flex; align-items:center; gap:9px; margin-top:9px; color:var(--muted); font:900 11px/1 system-ui,sans-serif; }

.dose-fill {
  height: 100%;
  background: var(--ipcp-green);
  transition: width 180ms ease-out;
}

.winner-name {
  margin: 8px 0 22px;
  color: var(--ipcp-yellow);
  font-size: clamp(30px, 6vw, 60px);
  font-weight: 1000;
}

.scoreboard {
  display: grid;
  gap: 6px;
  margin: 12px auto 18px;
}

.score-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  font-family: system-ui, sans-serif;
  text-align: left;
}

.score-row .place {
  color: var(--ipcp-yellow);
  font-weight: 900;
}

.score-row .score {
  font-weight: 900;
}

.score-row .status {
  color: var(--muted);
  font-size: 12px;
}

.results-links {
  display:flex;
  justify-content:center;
  gap:12px;
  margin:18px 0;
}
.results-links a { display:inline-grid; place-items:center; text-decoration:none; }

.host-contact-card { width:min(820px,100%); min-height:0; container-type:inline-size; text-align:left; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; scrollbar-width:auto; }
.host-contact-card > header { margin-bottom:10px; }
.host-contact-card h2 { font-size:clamp(32px,5vw,52px); }
.host-contact-card > div > p { color:var(--muted); font-family:system-ui,sans-serif; }
.host-contact-card form { display:grid; gap:8px; padding-bottom:8px; }
.host-contact-card form > label { display:grid; gap:6px; font-weight:900; }
.host-contact-card input[type="text"],.host-contact-card input[type="email"],.host-contact-card input:not([type]) { width:100%; min-height:46px; padding:9px 11px; color:var(--ink); background:white; border:2px solid #92aa9a; font-size:17px; }
.host-contact-card fieldset { display:grid; align-content:center; gap:5px; min-width:0; margin:0; padding:10px; border:1px solid #71907d; }
.host-contact-card fieldset label { display:grid; grid-template-columns:25px 1fr; align-items:center; gap:8px; font-family:system-ui,sans-serif; }
.host-contact-card fieldset:not(.contact-followup) label { min-height:34px; }
.host-contact-card .contact-followup label { grid-template-columns:1fr; gap:6px; font-weight:900; }
.host-contact-card .contact-followup input { max-width:320px; }
.host-contact-card input[type="checkbox"] { width:21px; height:21px; accent-color:var(--ipcp-yellow); }
.host-contact-card input[type="radio"] { width:21px; height:21px; margin:0; accent-color:var(--ipcp-yellow); }
.host-contact-card .contact-choice label { align-items:center; }
.host-contact-card .contact-other-option { grid-template-columns:25px auto minmax(120px,1fr); }
.host-contact-card .contact-other-option input:not([type]) { min-height:38px; padding:6px 9px; font-size:15px; }
.host-contact-card .contact-other-option input:disabled { opacity:.42; }
.host-contact-card .contact-other-inquiry { grid-template-columns:25px auto minmax(0,1fr); }
.host-contact-card .contact-other-inquiry input[name="otherInquiry"] { min-width:0; min-height:38px; padding:6px 9px; font-size:15px; }
.host-contact-card .contact-other-inquiry input:disabled { opacity:.42; }
@container (min-width:620px) {
  .host-contact-card form { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; column-gap:14px; }
  .host-contact-card form > :not(fieldset) { grid-column:1 / -1; }
}
.host-contact-card::-webkit-scrollbar { width:16px; }
.form-error { min-height:18px; margin:0; color:#ffc6ce; font-weight:900; text-align:center; }
.cloud-leads-section { grid-column:1 / -1; }
.cloud-leads-section form { display:grid; gap:12px; }
.cloud-leads-help { margin:0; line-height:1.35; }
#lead-data-summary { font-size:14px; color:#d9e7dc; }
#cloud-leads-status { margin:0; font-size:14px; }
#cloud-leads-status.is-error { color:#ffc6ce; }
#lead-output-warning { color:#ffe400; }
.local-data-section { grid-column:1 / -1; }
.local-data-section summary span { color:#ffe512; }
.current-event-card { display:grid; gap:7px; padding:11px 12px; border:1px solid #4b785b; border-radius:7px; background:rgba(255,255,255,.035); }
.admin-field-label { margin:0; color:#d9e7dc; font-size:12px; font-weight:900; letter-spacing:.05em; }
h3.admin-field-label { font-size:14px; }
.public-leads-admin { display:grid; gap:9px; padding:0; }
.public-leads-admin h3 { margin:0; color:#d9e7dc; font-size:14px; }
.public-leads-admin #public-game-summary { font-size:14px; color:#d9e7dc; }
.public-leads-admin p { margin:0; }
.public-leads-manage { border:1px solid #4b785b; border-radius:7px; padding:9px 10px; }
.public-leads-manage > summary { cursor:pointer; color:#ffe512; font-weight:900; }
.public-leads-manage-content { display:grid; gap:9px; padding-top:10px; }
.public-leads-manage-content label { font-size:13px; }
.public-leads-manage-content input { min-height:38px; padding:6px 9px; }
.public-leads-list { display:grid; gap:7px; max-height:360px; overflow:auto; }
.public-leads-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:8px; border:1px solid #669774; border-radius:6px; }
.public-leads-row span { display:grid; gap:3px; min-width:0; overflow-wrap:anywhere; }
#current-event-summary { color:#ffe512; font-size:18px; line-height:1.25; }
.change-event-details { margin-top:2px; }
.local-data-content, .event-form { display:grid; gap:10px; }
.event-selection-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.danger-button { color:#fff4f2; background:#622b29; border-color:#b86c66; }
.danger-button:hover:not(:disabled), .danger-button:focus-visible:not(:disabled) { background:#7b3531; border-color:#ef9a91; }
.local-data-content label, .event-form label { display:grid; gap:5px; font-weight:900; }
.local-data-content select, .event-form input { min-height:42px; padding:7px 10px; border:1px solid #719678; border-radius:5px; background:#f7f3e8; color:#25271f; font:700 15px system-ui,sans-serif; }
.event-date-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.nested-admin-details { border:1px solid #4b785b; border-radius:7px; padding:8px 10px; }
.nested-admin-details > summary { cursor:pointer; color:#ffe512; font-weight:900; }
.nested-admin-details[open] > summary { margin-bottom:10px; }
.cloud-sync-actions { display:flex; flex-wrap:wrap; gap:9px; }
.cloud-sync-actions > * { flex:1 1 180px; }
.event-setup-card { width:min(620px, calc(100vw - 36px)); max-height:calc(100vh - 36px); overflow:auto; }
.event-setup-card > p { margin:0 0 14px; }
.event-existing { display:grid; gap:10px; margin-bottom:14px; padding:12px; border:1px solid #4b785b; border-radius:7px; }
.event-existing label { display:grid; gap:5px; font-weight:900; }
.event-existing select { min-height:44px; padding:7px 10px; }
#current-event-status.is-error { color:#ffc6ce; }
@media (max-width:600px) { .event-date-row, .event-selection-actions { grid-template-columns:1fr; } }
.contact-thanks { padding:28px 12px; text-align:center; }
.contact-thanks h3 { margin:8px 0; font-size:34px; }

.telemetry-summary {
  font-family: system-ui, sans-serif;
}

.telemetry-summary {
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-results-data {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,.28);
}

.admin-results-data .secondary-button { min-height: 34px; padding: 7px 12px; font-size: 11px; }

.result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

@media (max-width: 780px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .colony-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-name {
    display: none;
  }

  .seat-lobby { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1180px) {
  .round-status { gap:9px; }
  .round-metrics { gap:10px; font-size:13px; }
  .brand-bar.is-round .brand-name { display:none; }
}

@media (max-width: 1120px) {
  .primer-page { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; }
  .primer-row { min-height:228px; }
  .combined-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .control-cluster:last-child { grid-column:1/-1; }
}

@media (max-width: 1000px) {
  .lobby-lower-grid { grid-template-columns:1fr; }
  .lobby-lower-grid .seat-lobby { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .quick-controls { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .quick-control { grid-template-columns:1fr; gap:3px; padding-inline:4px; }
  .controls-guide-options,.controls-guide-options.two { grid-template-columns:1fr; }
  .controls-guide-page,.controls-guide-carousel { min-height:0; }
  .controls-guide-page { padding:12px; }
  .controls-guide-options article { min-height:118px; }
  .controller-map { width:100%; margin:-12px auto -22px; }
  .primer-page,.controls-aid { grid-template-columns:1fr; }
  .primer-row { justify-items:center; gap:8px; min-height:228px; text-align:center; }
  .combined-controls { grid-template-columns:1fr; }
  .control-cluster:last-child { grid-column:auto; }
  .control-cluster + .control-cluster { border-left:2px solid rgba(207,232,199,.3); }
}

@media (max-width: 600px) {
  .brand-bar { gap:8px; min-height:54px; padding:6px 8px; }
  .brand-logo-crop { width:34px; height:42px; }
  .brand-logo-crop img { height:42px; }
  .round-status { gap:6px; }
  .brand-bar.is-round .brand-mark { display:none; }
  .brand-bar.is-round .round-status { width:100%; justify-content:space-between; }
  .brand-bar.is-round .round-metrics { gap:6px; font-size:10px; }
  .settings-button,.header-button { min-height:38px; padding:6px 8px; font-size:10px; }
  #start-screen { padding:8px; }
  .start-card { padding:12px 10px 18px; }
  .start-card h1 { flex-wrap:wrap; font-size:clamp(38px,13vw,58px); line-height:.88; }
  .challenge-heading { font-size:15px; line-height:1.25; }
  .start-card .lobby-section-heading { font-size:16px; letter-spacing:.11em; }
  .gameplay-primer { padding:9px; }
  .primer-page { grid-template-columns:1fr; gap:10px; }
  .primer-row { min-height:228px; padding:11px; }
  .controls-aid { padding:9px; }
  .control-cluster { padding:10px 8px; }
  .seat-lobby { grid-template-columns:1fr; gap:10px; }
  .lobby-lower-grid .seat-lobby { grid-template-columns:1fr; }
  .seat-card { padding:12px; }
  .seat-card img { width:112px; height:112px; }
  .seat-card p { font-size:13px; }
  .seat-card button { min-height:40px; font-size:12px; }
  .start-card .instruction { font-size:14px; line-height:1.35; }
  .demo-button { position:static; margin-top:8px; }
  .debug-room-line { position:static; justify-content:center; margin-top:8px; }
  .menu-tools { position:static; justify-content:center; margin-top:8px; }
}

@media (max-width: 480px) {
  :root { --app-chrome-height:60px; }

  .app-shell {
    padding: 0;
  }

  .screen-overlay {
    padding: 8px;
  }

  .overlay-card {
    padding: 18px;
  }

  .result-actions {
    flex-direction: column;
  }
}

:fullscreen,
:fullscreen body {
  background-color:#173c25;
}

:fullscreen .app-shell {
  width:100%;
  height:100dvh;
  max-width:none;
}

:fullscreen #start-screen { padding-block:12px; }

:fullscreen .start-card {
  width:min(1480px,calc(100% - 32px));
  height:auto;
  max-width:none;
}

:fullscreen .gameplay-carousel-shell,
:fullscreen .lobby-lower-grid {
  width:100%;
  max-width:none;
}

/* Chrome F11 does not expose :fullscreen, so large exhibit windows use the
   same fluid container behavior as the app Full Screen button. */
@media (min-width:1500px) and (min-height:900px) {
  .start-card {
    width:min(1480px,calc(100% - 32px));
    height:auto;
    max-width:none;
  }

  .gameplay-carousel-shell,
  .lobby-lower-grid {
    width:100%;
    max-width:none;
  }

}

@media (min-width:1600px) and (min-height:1080px) {
  :fullscreen #start-screen { padding-block:4px; }
  :fullscreen .start-card { padding-block:19px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================================================== */
/* Chunky exhibit UI theme                                                    */
/* Remove `ui-theme-chunky` from <body> to restore the underlying base theme. */
/* ========================================================================== */

@font-face { font-family:"TLC Fredoka"; src:url("assets/fonts/Fredoka-Variable.ttf") format("truetype"); font-style:normal; font-weight:300 700; font-display:swap; }
@font-face { font-family:"TLC Lilita One"; src:url("assets/fonts/LilitaOne-Regular.ttf") format("truetype"); font-style:normal; font-weight:400; font-display:swap; }
@font-face { font-family:"TLC Titan One"; src:url("assets/fonts/TitanOne-Regular.ttf") format("truetype"); font-style:normal; font-weight:400; font-display:swap; }
@font-face { font-family:"TLC Baloo 2"; src:url("assets/fonts/Baloo2-Variable.ttf") format("truetype"); font-style:normal; font-weight:400 800; font-display:swap; }
@font-face { font-family:"TLC Coiny"; src:url("assets/fonts/Coiny-Regular.ttf") format("truetype"); font-style:normal; font-weight:400; font-display:swap; }
@font-face { font-family:"TLC Nunito"; src:url("assets/fonts/Nunito-Variable.ttf") format("truetype"); font-style:normal; font-weight:200 1000; font-display:swap; }
@font-face { font-family:"TLC M PLUS Rounded"; src:url("assets/fonts/MPLUSRounded1c-Medium.ttf") format("truetype"); font-style:normal; font-weight:500; font-display:swap; }
@font-face { font-family:"TLC Quicksand"; src:url("assets/fonts/Quicksand-Variable.ttf") format("truetype"); font-style:normal; font-weight:300 700; font-display:swap; }

.ui-theme-chunky {
  --theme-cream:#fff8df;
  --theme-green:#2d6943;
  --theme-green-light:#397d50;
  --theme-green-dark:#123822;
  --theme-edge:#153e27;
  --theme-yellow-edge:#a67e00;
  --theme-radius:10px;
  --theme-body-font:"TLC Quicksand","Trebuchet MS",system-ui,sans-serif;
  --theme-button-font:"TLC Baloo 2","Arial Rounded MT Bold",system-ui,sans-serif;
  --theme-title-font:"Arial Narrow","Roboto Condensed",Impact,system-ui,sans-serif;
  --theme-section-font:"Arial Narrow","Roboto Condensed",Impact,system-ui,sans-serif;
  --theme-body-weight:600;
  --theme-button-weight:650;
}

.ui-theme-chunky[data-body-font="current"] { --theme-body-font:"Arial Narrow","Roboto Condensed",system-ui,sans-serif; --theme-body-weight:700; }
.ui-theme-chunky[data-body-font="fredoka"] { --theme-body-font:"TLC Fredoka",system-ui,sans-serif; --theme-body-weight:500; }
.ui-theme-chunky[data-body-font="nunito"] { --theme-body-font:"TLC Nunito",system-ui,sans-serif; --theme-body-weight:650; }
.ui-theme-chunky[data-body-font="mplus"] { --theme-body-font:"TLC M PLUS Rounded",system-ui,sans-serif; --theme-body-weight:500; }
.ui-theme-chunky[data-body-font="quicksand"] { --theme-body-font:"TLC Quicksand",system-ui,sans-serif; --theme-body-weight:600; }
.ui-theme-chunky[data-button-font="current"] { --theme-button-font:"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif; --theme-button-weight:700; }
.ui-theme-chunky[data-button-font="fredoka"] { --theme-button-font:"TLC Fredoka",system-ui,sans-serif; --theme-button-weight:500; }
.ui-theme-chunky[data-button-font="quicksand"] { --theme-button-font:"TLC Quicksand",system-ui,sans-serif; --theme-button-weight:650; }
.ui-theme-chunky[data-button-font="baloo"] { --theme-button-font:"TLC Baloo 2",system-ui,sans-serif; --theme-button-weight:650; }
.ui-theme-chunky[data-title-font="titan"] { --theme-title-font:"TLC Titan One","Arial Narrow",Impact,sans-serif; }
.ui-theme-chunky[data-title-font="baloo"] { --theme-title-font:"TLC Baloo 2","Arial Narrow",Impact,sans-serif; }
.ui-theme-chunky[data-title-font="coiny"] { --theme-title-font:"TLC Coiny","Arial Narrow",Impact,sans-serif; }
.ui-theme-chunky[data-title-font="fredoka-black"] { --theme-title-font:"TLC Fredoka","Arial Narrow",Impact,sans-serif; }
.ui-theme-chunky[data-section-font="lilita"] { --theme-section-font:"TLC Lilita One","Arial Narrow",Impact,sans-serif; }
.ui-theme-chunky[data-section-font="titan"] { --theme-section-font:"TLC Titan One","Arial Narrow",Impact,sans-serif; }

.ui-theme-chunky .start-card h1 { font-family:var(--theme-title-font); }
.ui-theme-chunky[data-title-font="titan"] .start-card h1,
.ui-theme-chunky[data-title-font="coiny"] .start-card h1 { font-weight:400; text-shadow:0 3px 0 rgba(0,0,0,.42); }
.ui-theme-chunky[data-title-font="baloo"] .start-card h1 { font-weight:800; text-shadow:0 3px 0 rgba(0,0,0,.38); }
.ui-theme-chunky[data-title-font="fredoka-black"] .start-card h1 { font-weight:700; text-shadow:0 3px 0 rgba(0,0,0,.38); }
.ui-theme-chunky :is(.lobby-section-heading,.settings-card h2,.controls-guide-kicker) { font-family:var(--theme-section-font); }
.ui-theme-chunky[data-section-font="lilita"] :is(.lobby-section-heading,.settings-card h2,.controls-guide-kicker),
.ui-theme-chunky[data-section-font="titan"] :is(.lobby-section-heading,.settings-card h2,.controls-guide-kicker) { font-weight:400; text-shadow:0 2px 0 rgba(0,0,0,.42); }
.ui-theme-chunky .brand-name { font-family:Georgia,serif !important; }

.ui-theme-chunky { font-family:var(--theme-body-font); font-weight:var(--theme-body-weight); }
.ui-theme-chunky :is(.challenge-heading,.shared-phone-join,.seat-card,.settings-section,.radio-setting,.display-aids-setting,.controls-guide-page,.instruction,.fine-print) { font-family:var(--theme-body-font); }
.ui-theme-chunky .challenge-heading { font-weight:var(--theme-body-weight); }
.ui-theme-chunky .shared-phone-join strong { font-family:var(--theme-section-font); font-weight:400; }
.ui-theme-chunky .shared-phone-join span { font:var(--theme-body-weight) 13px/1.18 var(--theme-body-font); }
.ui-theme-chunky .shared-phone-join small { font:var(--theme-body-weight) 11px/1.1 var(--theme-body-font); }
.ui-theme-chunky .shared-phone-join b { font-family:var(--theme-body-font); font-weight:700; }
.ui-theme-chunky .seat-card h3 { font-family:var(--theme-section-font); font-weight:400; }
.ui-theme-chunky .seat-card :is(p,.seat-status) { font-family:var(--theme-body-font); font-weight:var(--theme-body-weight); }

.ui-theme-chunky button,
.ui-theme-chunky .primary-button,
.ui-theme-chunky .secondary-button,
.ui-theme-chunky .admin-toggle,
.ui-theme-chunky .settings-button,
.ui-theme-chunky .header-button {
  font-family:var(--theme-button-font);
  font-weight:var(--theme-button-weight);
  font-size:max(1em,12px);
  border-radius:9px;
  transition:transform .1s ease,box-shadow .1s ease,filter .12s ease,background-color .12s ease;
}

.ui-theme-chunky .brand-bar {
  margin:0;
  min-height:66px;
  padding:5px 15px;
  background:linear-gradient(180deg,#fff34f 0%,#ffe000 78%);
  border:2px solid #173b25;
  border-radius:12px;
  box-shadow:0 5px 0 #071d11,inset 0 2px 0 rgba(255,255,255,.78);
}
.ui-theme-chunky .brand-logo-crop { width:44px; height:54px; }
.ui-theme-chunky .brand-logo-crop img { height:54px; }
.ui-theme-chunky .brand-name {
  color:#000;
  font-family:Georgia,serif !important;
  font-size:25px;
  font-weight:700;
  letter-spacing:0;
  text-shadow:none;
}

.ui-theme-chunky button:not(:disabled):hover,
.ui-theme-chunky .primary-button:not(:disabled):hover,
.ui-theme-chunky .secondary-button:not(:disabled):hover {
  filter:brightness(1.07);
}

.ui-theme-chunky button:not(:disabled):active,
.ui-theme-chunky .primary-button:not(:disabled):active,
.ui-theme-chunky .secondary-button:not(:disabled):active {
  transform:translateY(3px);
  box-shadow:0 1px 0 rgba(0,0,0,.5),inset 0 2px 3px rgba(0,0,0,.18);
}
.ui-theme-chunky .early-scores-button:not(:disabled):active { transform:translate(-50%,3px); }

.ui-theme-chunky .settings-button,
.ui-theme-chunky .header-button {
  border:2px solid #161b12;
  background:linear-gradient(#ffef4f,#ffe000);
  box-shadow:0 4px 0 #8e7900,inset 0 2px 0 rgba(255,255,255,.9);
}

.ui-theme-chunky .overlay-card,
.ui-theme-chunky .settings-card {
  border-radius:14px;
  border-color:#3d7f52;
  box-shadow:0 7px 0 #071d11,0 24px 70px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.08);
}

.ui-theme-chunky .start-card {
  border-color:rgba(157,204,163,.62);
}

.ui-theme-chunky .menu-section { min-width:0; margin:0; padding:8px 10px 10px; border:2px solid #4b855d; border-radius:11px; background:rgba(8,40,24,.34); box-shadow:0 4px 0 rgba(5,25,13,.58); }
.ui-theme-chunky .menu-section > .lobby-section-heading { width:auto; margin:0 0 0 8px; padding:0 8px; color:#fff4a8; background:#092b1a; font-size:23px; text-align:left; letter-spacing:.11em; }
.ui-theme-chunky .gameplay-section { margin-top:14px; }
.ui-theme-chunky .gameplay-carousel-shell { max-width:none; margin:0; }
.ui-theme-chunky .gameplay-carousel { padding-top:0; border:0; border-radius:8px; background:transparent; box-shadow:none; }
.ui-theme-chunky .gameplay-primer { padding:7px 0 0; }
.ui-theme-chunky .lobby-lower-grid { gap:15px; margin-top:16px; }
.ui-theme-chunky .lobby-controls,.ui-theme-chunky .lobby-join { position:relative; padding:7px 10px 10px; }
.ui-theme-chunky .lobby-lower-grid .lobby-join { grid-template-columns:repeat(5,minmax(0,1fr)); grid-template-areas:"phone seats seats seats seats" "instruction instruction instruction instruction instruction" "start start start start start"; column-gap:10px; row-gap:7px; }
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join { height:96px; }
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join img { width:72px; height:72px; }
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join strong { font-size:14px; letter-spacing:.03em; }
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join span { font-size:12px; }
.ui-theme-chunky .lobby-lower-grid .lobby-join .instruction { margin:3px auto 0; font-size:12px; line-height:1.3; }
.ui-theme-chunky .lobby-footer { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; min-height:46px; margin-top:9px; padding:0 8px; }
.ui-theme-chunky .lobby-footer .demo-button,.ui-theme-chunky .lobby-footer .menu-tools,.ui-theme-chunky .lobby-footer .debug-room-line { position:static; margin:0; }
.ui-theme-chunky .lobby-footer .demo-button { justify-self:start; }
.ui-theme-chunky .lobby-footer .fine-print { grid-column:2; margin:0; }
.ui-theme-chunky .lobby-footer .menu-tools { grid-column:3; justify-self:end; }
.ui-theme-chunky .quick-controls { width:min(760px,100%); }
.ui-theme-chunky .quick-control > strong { font-size:14px; letter-spacing:.065em; }

.ui-theme-chunky .primer-row,
.ui-theme-chunky .control-cluster,
.ui-theme-chunky .seat-card,
.ui-theme-chunky .controls-guide-options article,
.ui-theme-chunky .controls-guide-steps li {
  border-radius:9px;
  border-color:rgba(186,225,188,.42);
  background:linear-gradient(180deg,rgba(64,131,82,.82),rgba(48,105,67,.82));
  box-shadow:0 4px 0 rgba(8,38,20,.78),inset 0 2px 0 rgba(255,255,255,.09);
}

/* Gameplay tiles stay as responsive grid items, but their container chrome is
   visually quiet so the imagery and copy carry the hierarchy. */
.ui-theme-chunky .primer-row {
  border-color:transparent;
  background:transparent;
  box-shadow:none;
}

.ui-theme-chunky .gameplay-shot,
.ui-theme-chunky .score-picture {
  border-radius:8px;
  box-shadow:0 3px 0 rgba(8,35,19,.7),0 3px 8px rgba(0,0,0,.24);
}

.ui-theme-chunky .score-picture {
  background:linear-gradient(#1c5333,#17452b);
  border:1px solid rgba(224,244,218,.58);
}

.ui-theme-chunky .primer-row > h3 {
  width:auto;
  padding:0;
  color:var(--ipcp-yellow);
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  font-family:var(--theme-section-font);
  font-size:15px;
  font-weight:400;
  letter-spacing:.045em;
  text-shadow:-1px -1px 0 #17301f,1px -1px 0 #17301f,-1px 1px 0 #17301f,1px 1px 0 #17301f,0 2px 0 rgba(0,0,0,.52);
}

.ui-theme-chunky .primer-row > p {
  font-family:var(--theme-body-font);
  font-size:13px;
  line-height:1.18;
}

.ui-theme-chunky .primer-row:has(.controls-guide-trigger) {
  grid-template-rows:130px auto minmax(42px,auto) auto;
  gap:5px;
}

.card-control-copy .controller-key {
  display:inline-grid;
  width:25px;
  min-width:25px;
  height:25px;
  margin:0 2px;
  padding:0;
  vertical-align:middle;
  font-size:11px;
}

.inline-stick {
  position:relative;
  display:inline-block;
  width:20px;
  height:20px;
  margin:0 2px -5px;
  border:2px solid #e9eee6;
  border-radius:50%;
  background:#30352f;
  box-shadow:inset 0 0 0 2px #121511,0 2px 0 rgba(0,0,0,.45);
}
.inline-stick i { position:absolute; left:6px; top:3px; width:7px; height:7px; border-radius:50%; background:#d7ddd4; }
.inline-dpad { display:inline-block; margin:0 2px; color:#f2f5ef; font:900 25px/.65 system-ui,sans-serif; vertical-align:-3px; text-shadow:0 2px 0 #111; }
.controls-guide-trigger { display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:2px 4px; color:#fff4a8; background:transparent; border:0; border-radius:5px; box-shadow:none; font:500 13px/1 var(--theme-button-font); letter-spacing:.04em; text-shadow:0 2px 0 rgba(0,0,0,.6); }
.controls-guide-trigger .help-symbol { display:grid; place-items:center; width:23px; height:23px; color:#17301f; background:var(--ipcp-yellow); border:2px solid #fff3a0; border-radius:50%; box-shadow:0 2px 0 #8e7900; font:700 15px/1 var(--theme-button-font); text-shadow:none; }
.controls-guide-trigger:hover,.controls-guide-trigger:focus-visible { color:#fff; background:rgba(255,255,255,.08); transform:translateY(-1px); }
.controls-guide-trigger.controller-menu-focus { outline:3px solid #fff; outline-offset:3px; }

.ui-theme-chunky .carousel-arrow {
  border:2px solid #8fd39b;
  border-radius:9px;
  background:linear-gradient(#3c955b,#287243);
  box-shadow:0 4px 0 #153e27,inset 0 2px 0 rgba(255,255,255,.14);
}

.ui-theme-chunky .quick-controls,
.ui-theme-chunky .shared-phone-join {
  border:2px solid #57936a;
  border-radius:11px;
  background:linear-gradient(#215d38,#194a2d);
  box-shadow:0 4px 0 #0b2e1a,inset 0 2px 0 rgba(255,255,255,.08);
}

.ui-theme-chunky .quick-controls.controller-menu-focus {
  outline:4px solid var(--ipcp-yellow);
  outline-offset:3px;
  box-shadow:0 5px 0 #0b2e1a,0 0 0 7px rgba(10,30,17,.72),inset 0 2px 0 rgba(255,255,255,.09);
}

.ui-theme-chunky .controls-help-button {
  box-shadow:0 3px 0 var(--theme-yellow-edge),inset 0 2px 0 rgba(255,255,255,.55);
}

.ui-theme-chunky .shared-phone-join img {
  border-radius:7px;
  box-shadow:0 3px 0 #0b2e1a;
}

.ui-theme-chunky .seat-card {
  border-width:2px;
  gap:2px;
  padding-block:8px;
  font-size:12px;
}

.ui-theme-chunky .seat-card h3 { font-size:15px; text-shadow:-1px -1px 0 #132019,1px -1px 0 #132019,-1px 1px 0 #132019,1px 1px 0 #132019; }
.ui-theme-chunky .seat-card p { font-size:11px; }
.ui-theme-chunky .seat-card button { min-height:28px; font-size:11px; }

.ui-theme-chunky .seat-card.is-ready {
  box-shadow:0 4px 0 color-mix(in srgb,var(--seat) 48%,#102719),inset 0 0 0 2px rgba(255,255,255,.16);
}

.ui-theme-chunky .seat-card button,
.ui-theme-chunky .primary-button {
  color:#1d2117;
  border:1px solid #fff1a0;
  background:linear-gradient(#ffec3a,#ffe000);
  box-shadow:0 4px 0 var(--theme-yellow-edge),inset 0 2px 0 rgba(255,255,255,.55);
}

.ui-theme-chunky .primary-button:disabled,
.ui-theme-chunky .seat-card button:disabled {
  box-shadow:0 3px 0 #6d671f,inset 0 1px 0 rgba(255,255,255,.25);
}

.ui-theme-chunky .secondary-button,
.ui-theme-chunky .admin-toggle,
.ui-theme-chunky .demo-button {
  border:1px solid #7c8873;
  background:linear-gradient(#465040,#30392d);
  box-shadow:0 4px 0 #171d15,inset 0 2px 0 rgba(255,255,255,.09);
}

.ui-theme-chunky .settings-close {
  position:absolute;
  z-index:3;
  top:12px;
  right:12px;
  width:46px;
  height:46px;
  color:#172017;
  border:2px solid #fff2a3;
  background:linear-gradient(#ffef4f,#ffe000);
  box-shadow:0 4px 0 var(--theme-yellow-edge),inset 0 2px 0 rgba(255,255,255,.65);
  font-size:21px;
  font-weight:900;
  line-height:1;
}

.ui-theme-chunky .settings-card > header {
  align-items:center;
  padding:0 52px 4px 3px;
}

.ui-theme-chunky .settings-section,
.ui-theme-chunky .radio-setting,
.ui-theme-chunky .display-aids-setting,
.ui-theme-chunky .controls-guide-page,
.ui-theme-chunky .release-entry,
.ui-theme-chunky .tuning-content {
  border-radius:10px;
  border-color:#507a5b;
  background:linear-gradient(180deg,rgba(9,45,27,.82),rgba(7,36,22,.82));
  box-shadow:inset 0 2px 0 rgba(255,255,255,.035);
}

.ui-theme-chunky .radio-options label,
.ui-theme-chunky .map-mode-button {
  border:1px solid #71927a;
  border-radius:8px;
  background:linear-gradient(#336245,#275239);
  box-shadow:0 3px 0 #102f1d,inset 0 1px 0 rgba(255,255,255,.08);
  font-family:var(--theme-button-font);
  font-size:clamp(13px,1.25vw,15px);
}

.ui-theme-chunky .admin-restart-button {
  justify-self:end;
  width:auto;
  min-height:34px;
  padding:6px 14px;
  color:#171913;
  border:2px solid #fff2a3;
  background:linear-gradient(#fff34f,#ffe000);
  box-shadow:0 3px 0 var(--theme-yellow-edge),inset 0 2px 0 rgba(255,255,255,.8);
  font-size:12px;
}

.ui-theme-chunky .diagnostic-actions { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.ui-theme-chunky .diagnostic-actions .secondary-button { min-height:36px; padding:6px 8px; font-size:11px; }

.ui-theme-chunky .radio-options label:has(input:checked),
.ui-theme-chunky .map-mode-button.is-selected {
  color:#18170f;
  border-color:#fff2a3;
  background:linear-gradient(#ffef4f,#ffe000);
  box-shadow:0 3px 0 var(--theme-yellow-edge),inset 0 2px 0 rgba(255,255,255,.52);
}

.ui-theme-chunky .settings-section input[type="checkbox"] {
  border-radius:5px;
}

.ui-theme-chunky .version-actions .secondary-button {
  color:#20231d;
  border-color:#fff;
  background:linear-gradient(#fffef7,#f0ead8);
  box-shadow:0 4px 0 #9b9687,inset 0 2px 0 #fff;
}

.ui-theme-chunky .settings-section select,
.ui-theme-chunky .seat-name-input,
.ui-theme-chunky input[type="text"],
.ui-theme-chunky input[type="email"] {
  border-radius:8px;
  background:var(--theme-cream);
  box-shadow:inset 0 2px 3px rgba(44,43,25,.15);
}

.ui-theme-chunky .controls-guide-card > header,
.ui-theme-chunky .settings-card > header {
  padding-bottom:4px;
}

/* The help carousel uses the same open exhibit style as the gameplay primer. */
.ui-theme-chunky .controls-guide-card {
  width:min(820px,96%);
  overflow:hidden;
  border-width:2px;
}
.ui-theme-chunky .controls-guide-carousel,
.ui-theme-chunky .controls-guide-page {
  min-height:430px;
}
.ui-theme-chunky .controls-guide-page {
  padding:12px 58px 48px;
  background:transparent;
  border:1px solid #507a5b;
  border-radius:10px;
  box-shadow:none;
}
.ui-theme-chunky .controls-guide-page[data-controls-page="1"] { padding-top:8px; }
.ui-theme-chunky .controls-guide-page[data-controls-page="1"] .controller-map { margin-top:0; }
.ui-theme-chunky .controls-guide-kicker { font-size:23px; }
.ui-theme-chunky .controls-guide-options article { min-height:184px; }
.ui-theme-chunky .controls-guide-options article > strong { font-size:20px; }
.ui-theme-chunky .controls-guide-page > p:last-child { font-size:19px; }
.ui-theme-chunky .controls-guide-page .movement-keys { gap:10px; }
.ui-theme-chunky .controls-guide-page .movement-keys > .wasd,
.ui-theme-chunky .controls-guide-page .movement-keys > .arrow-keys {
  grid-template-columns:repeat(3,36px);
  grid-template-rows:repeat(2,32px);
  gap:3px;
}
.ui-theme-chunky .controls-guide-page .movement-keys kbd { font-size:15px; }
.ui-theme-chunky .controls-guide-page .movement-keys b { font-size:13px; }
.ui-theme-chunky .controls-guide-page .gamepad-move {
  grid-template-columns:44px 44px;
  grid-template-rows:42px 14px;
  min-width:96px;
  column-gap:7px;
}
.ui-theme-chunky .controls-guide-page .gamepad-move small { font-size:9px; }
.ui-theme-chunky .controls-guide-page .stick-icon { width:38px; height:38px; }
.ui-theme-chunky .controls-guide-page .stick-icon i { left:12px; top:7px; width:14px; height:14px; }
.ui-theme-chunky .controls-guide-page .dpad-icon { font-size:46px; }
.ui-theme-chunky .controls-guide-page .guide-key-row kbd { min-height:46px; padding-inline:13px; font-size:16px; }
.ui-theme-chunky .controls-guide-page .guide-key-row .controller-key { width:46px; min-width:46px; height:46px; }
.ui-theme-chunky .controls-guide-steps li { font-size:18px; }
.ui-theme-chunky .controls-guide-steps b { width:48px; height:48px; font-size:25px; }
.ui-theme-chunky .controls-guide-page[data-controls-page="2"] .controls-guide-steps {
  gap:19px;
  padding-left:44px;
}
.ui-theme-chunky .controls-guide-page[data-controls-page="2"] .controls-guide-steps li {
  grid-template-columns:40px minmax(0,1fr);
  gap:16px;
  min-height:72px;
  font-size:clamp(20px,2.5vw,23px);
  line-height:1.24;
}
.ui-theme-chunky .controls-guide-page[data-controls-page="2"] .controls-guide-steps b {
  width:40px;
  height:40px;
  font-size:22px;
}
.ui-theme-chunky .controls-guide-options article,
.ui-theme-chunky .controls-guide-steps li {
  background:transparent;
  border:0;
  box-shadow:none;
}
.ui-theme-chunky .controls-guide-navigation .primer-page-indicator {
  left:50%;
  right:auto;
  bottom:12px;
  transform:translateX(-50%);
}
.ui-theme-chunky .controls-guide-navigation .carousel-arrow:first-child,
.ui-theme-chunky .controls-guide-navigation .carousel-arrow:first-child:not(:disabled):active {
  left:8px;
  transform:translateY(-50%);
}
.ui-theme-chunky .controls-guide-navigation .carousel-arrow:last-child,
.ui-theme-chunky .controls-guide-navigation .carousel-arrow:last-child:not(:disabled):active {
  right:8px;
  transform:translateY(-50%);
}

.ui-theme-chunky .controls-guide-kicker,
.ui-theme-chunky .control-title,
.ui-theme-chunky .quick-control > strong,
.ui-theme-chunky .quick-controls-more,
.ui-theme-chunky .seat-card,
.ui-theme-chunky .settings-section,
.ui-theme-chunky .radio-setting,
.ui-theme-chunky .display-aids-setting {
  font-family:var(--theme-body-font);
}

.ui-theme-chunky :is(.control-title,.controls-guide-kicker) { font-family:var(--theme-section-font); }
.ui-theme-chunky :is(.quick-control > strong,.quick-controls-more) { font-family:var(--theme-button-font); }
.ui-theme-chunky .food-values b { color:#fffef0; font-family:var(--theme-body-font); font-size:9px; line-height:1; white-space:nowrap; text-shadow:0 2px 1px rgba(0,0,0,.85); }
.ui-theme-chunky .food-values strong { font-family:var(--theme-body-font); font-size:11px; line-height:1; text-shadow:0 2px 1px rgba(0,0,0,.8); }

.ui-theme-chunky .fine-print,
.ui-theme-chunky .instruction {
  color:#e9f0e4;
}

/* The opening guide page is intentionally a two-up exhibit instruction panel.
   Later pages retain the four-up carousel grid. */
.ui-theme-chunky .featured-primer-page {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
  width:min(1040px,100%);
  margin:0 auto;
}
.ui-theme-chunky .primer-page { transform:translateY(-14px); }
.ui-theme-chunky .gameplay-primer { display:grid; align-items:center; height:272px; padding-bottom:40px; }
.ui-theme-chunky .featured-primer-page .primer-row {
  grid-template-rows:155px auto minmax(48px,auto);
  min-height:228px;
  padding-inline:22px;
}
.ui-theme-chunky .featured-primer-page .gameplay-shot {
  width:280px;
  height:150px;
}
.ui-theme-chunky .featured-primer-page .food-values > span {
  grid-template-rows:100px auto auto;
}
.ui-theme-chunky .featured-primer-page .food-values img {
  max-width:104px;
  max-height:98px;
}
.ui-theme-chunky .featured-primer-page .food-values > span:nth-child(2) > img { transform:scale(.82); }
.ui-theme-chunky .featured-primer-page .food-values > span:nth-child(3) > img { transform:scale(.84); }
.ui-theme-chunky .featured-primer-page .aphid-leaf {
  width:104px;
  height:100px;
}
.ui-theme-chunky .featured-primer-page .aphid-leaf img:first-child { width:104px; height:100px; object-fit:contain; }
.ui-theme-chunky .featured-primer-page .aphid-leaf img:last-child { left:42px; top:29px; width:38px; height:38px; image-rendering:auto; }
.ui-theme-chunky .featured-primer-page .food-values b { font-size:13px; }
.ui-theme-chunky .featured-primer-page .food-values strong { font-size:14px; }
.ui-theme-chunky .featured-primer-page .primer-row > h3 { font-size:19px; }
.ui-theme-chunky .featured-primer-page .primer-row > p { max-width:470px; font-size:15px; line-height:1.18; }
.ui-theme-chunky .featured-rivals > h3 { margin-top:0; }
.ui-theme-chunky .three-up-primer-page { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; width:min(1000px,100%); margin:0 auto; }
.ui-theme-chunky .three-up-primer-page .primer-row { grid-template-rows:140px auto minmax(42px,auto); min-height:228px; }
.ui-theme-chunky .three-up-primer-page .gameplay-shot { width:235px; height:135px; }
.ui-theme-chunky .three-up-primer-page .primer-row > h3 { font-size:19px; }
.ui-theme-chunky .three-up-primer-page .primer-row > p { font-size:15px; line-height:1.18; }
.ui-theme-chunky .three-up-primer-page .score-picture { width:235px; height:135px; }
.ui-theme-chunky .three-up-primer-page .score-ledger { transform:translateX(-50%) scale(1.05); transform-origin:top center; }

/* Persistent, modern carousel controls. */
.ui-theme-chunky .primer-navigation .controls-guide-trigger {
  position:absolute;
  z-index:5;
  left:2px;
  bottom:2px;
  pointer-events:auto;
}
.ui-theme-chunky .primer-navigation::before {
  display:none;
}
.ui-theme-chunky .primer-page-indicator {
  left:50%;
  right:auto;
  bottom:10px;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:0;
  background:transparent;
  transform:translateX(-50%);
  pointer-events:auto;
}
.ui-theme-chunky .primer-page-indicator button {
  width:11px;
  min-width:11px;
  height:11px;
  min-height:11px;
  padding:0;
  border:2px solid rgba(235,247,232,.78);
  border-radius:50%;
  background:transparent;
  box-shadow:none;
}
.ui-theme-chunky .primer-page-indicator button.is-active { background:#fff; border-color:#fff; box-shadow:0 0 0 2px rgba(34,122,67,.9); }
.ui-theme-chunky .carousel-arrow {
  width:68px;
  height:92px;
  color:#f4fff2;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  font-size:78px;
  text-shadow:0 3px 0 rgba(0,0,0,.62);
}
.ui-theme-chunky .carousel-arrow:hover,
.ui-theme-chunky .carousel-arrow:focus-visible { color:var(--ipcp-yellow); background:transparent; border-color:transparent; }
.ui-theme-chunky .carousel-arrow:first-child { left:-7px; transform:translate(-50%,-50%); }
.ui-theme-chunky .carousel-arrow:last-child { right:-7px; transform:translate(50%,-50%); }
.ui-theme-chunky .carousel-arrow:first-child:not(:disabled):active { transform:translate(-50%,-50%); }
.ui-theme-chunky .carousel-arrow:last-child:not(:disabled):active { transform:translate(50%,-50%); }
.ui-theme-chunky #primer-previous::after,
.ui-theme-chunky #primer-next::after,
.ui-theme-chunky #controls-guide-previous::after,
.ui-theme-chunky #controls-guide-next::after {
  position:absolute;
  top:50%;
  display:grid;
  place-items:center;
  width:38px;
  height:29px;
  color:#172315;
  background:linear-gradient(#fff35e,#ffe200);
  border:2px solid #fff5a7;
  box-shadow:0 4px 0 #8e7900,inset 0 2px 0 rgba(255,255,255,.75);
  font:900 15px/1 var(--theme-button-font,system-ui,sans-serif);
  text-shadow:none;
  pointer-events:none;
}
.ui-theme-chunky #primer-previous::after,
.ui-theme-chunky #controls-guide-previous::after {
  content:"LB";
  left:55px;
  border-radius:10px 14px 6px 6px;
  transform:translateY(-50%) rotate(-4deg);
}
.ui-theme-chunky #primer-next::after,
.ui-theme-chunky #controls-guide-next::after {
  content:"RB";
  right:55px;
  border-radius:14px 10px 6px 6px;
  transform:translateY(-50%) rotate(4deg);
}
.ui-theme-chunky .controls-guide-panel[data-page="1"] #controls-guide-previous::after,
.ui-theme-chunky .controls-guide-panel[data-page="1"] #controls-guide-next::after { display:none; }

/* Colony Selection is one two-part composition: joining on the left and the
   four player states/actions on the right. Internal grids remain responsive. */
.ui-theme-chunky .lobby-lower-grid .lobby-join {
  --join-qr-size:128px;
  --join-copy-width:160px;
  grid-template-columns:var(--join-copy-width) minmax(0,1fr);
  grid-template-areas:"phone players";
  align-items:stretch;
  column-gap:24px;
  min-height:225px;
  padding:12px 22px 14px;
}
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join {
  grid-area:phone;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  height:auto;
  padding:4px 0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  text-align:left;
}
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join img { width:var(--join-qr-size); height:var(--join-qr-size); box-shadow:0 3px 0 #0b2e1a; }
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join div {
  align-self:flex-start;
  width:calc(var(--join-copy-width) + ((var(--join-copy-width) - var(--join-qr-size)) / 2));
  padding-left:calc((var(--join-copy-width) - var(--join-qr-size)) / 2);
  justify-items:start;
}
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join strong { font-size:17px; }
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join span { width:100%; font-size:14px; }
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join small { font-size:13px; }
.ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join[role="button"]:focus-visible { outline:4px solid var(--ipcp-yellow); outline-offset:5px; }
.ui-theme-chunky .colony-player-panel {
  grid-area:players;
  display:grid;
  grid-template-rows:1fr;
  align-content:center;
  align-items:center;
  gap:9px;
  min-width:0;
}
.ui-theme-chunky .lobby-join .colony-player-panel > * { grid-area:auto !important; }
.ui-theme-chunky .colony-player-panel .seat-lobby { align-items:stretch; height:100%; margin:0; }
.ui-theme-chunky .colony-player-panel .instruction { align-self:end; margin:0 auto; font-size:14px; line-height:1.32; }
.ui-theme-chunky .colony-player-panel .seat-card {
  grid-template-rows:auto 1fr auto auto;
  align-content:stretch;
  height:100%;
  min-height:154px;
  padding:0 5px 10px;
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}
.ui-theme-chunky .colony-player-panel .seat-card.is-ready { border-color:var(--seat); }
.ui-theme-chunky .colony-player-panel .seat-card .claim-flash { width:min(160px,100%); min-width:0; max-width:none; }
.ui-theme-chunky .colony-player-panel .seat-card > div { align-self:end; }
.ui-theme-chunky .seat-ant-stage { align-self:center; display:block; width:100%; height:50px; overflow:hidden; }
.ui-theme-chunky .seat-ant { display:block; width:112px; height:50px; margin:0 auto; opacity:.8; transition:opacity .24s ease; }
.ui-theme-chunky .seat-card.is-active .seat-ant { opacity:1; filter:none; }
.ui-theme-chunky .seat-card .seat-status { display:none !important; }
.ui-theme-chunky .colony-player-panel .seat-card h3 { align-self:start; margin:0 0 4px; font-size:24px; }
.ui-theme-chunky .colony-player-panel .seat-card button {
  height:48px;
  min-height:48px;
  max-height:48px;
  padding:6px 12px;
  font-size:14px;
  line-height:1.05;
}
.ui-theme-chunky .lobby-footer {
  grid-template-rows:38px 14px;
  row-gap:10px;
  column-gap:12px;
  min-height:62px;
  margin-top:14px;
}

/* Mid-size fullscreen/windowed layouts have enough horizontal room for the
   larger cards, but less vertical room than the kiosk breakpoint. */
@media (min-width:1200px) and (max-width:1499px) and (min-height:850px) {
  .ui-theme-chunky .three-up-primer-page {
    width:min(1100px,100%);
    gap:30px;
    transform:translateY(-24px);
  }
  .ui-theme-chunky .three-up-primer-page .primer-row {
    grid-template-rows:165px auto minmax(42px,auto);
  }
  .ui-theme-chunky .three-up-primer-page .gameplay-shot,
  .ui-theme-chunky .three-up-primer-page .score-picture {
    width:270px;
    height:160px;
  }
  .ui-theme-chunky .three-up-primer-page .score-ledger {
    transform:translateX(-50%) scale(1.24);
  }
  .ui-theme-chunky .three-up-primer-page .primer-row > h3 { font-size:21px; }
}
.ui-theme-chunky .lobby-footer #start-button { grid-column:2; grid-row:1; width:min(520px,100%); height:38px; margin:0; }
.ui-theme-chunky .lobby-footer .demo-button { grid-column:1; grid-row:1/3; align-self:center; }
.ui-theme-chunky .lobby-footer .fine-print { grid-column:2; grid-row:2; align-self:end; }
.ui-theme-chunky .lobby-footer .menu-tools { grid-column:3; grid-row:1/3; align-self:center; }

@media (min-width:1500px) and (min-height:900px) {
  .ui-theme-chunky .start-card { padding:12px 18px 10px; }
  .ui-theme-chunky .start-card h1 { font-size:84px; }
  .ui-theme-chunky .challenge-heading { max-width:1220px; font-size:21px; }
  .ui-theme-chunky .menu-section > .lobby-section-heading { font-size:23px; }
  .ui-theme-chunky .gameplay-primer { display:grid; align-items:center; height:334px; min-height:334px; padding:8px 0 42px; }
  .ui-theme-chunky .primer-page:not(.featured-primer-page) { gap:18px; }
  .ui-theme-chunky .primer-page:not(.featured-primer-page) .primer-row { grid-template-rows:160px auto minmax(44px,auto); min-height:272px; gap:8px; padding-inline:14px; }
  .ui-theme-chunky .primer-page:not(.featured-primer-page) .gameplay-shot,
  .ui-theme-chunky .primer-page:not(.featured-primer-page) .score-picture { width:230px; height:160px; }
  .ui-theme-chunky .primer-page:not(.featured-primer-page) .corn-picture { height:160px; }
  .ui-theme-chunky .primer-page:not(.featured-primer-page) .corn-picture img { width:130px; height:138px; }
  .ui-theme-chunky .primer-page:not(.featured-primer-page) .score-ledger { transform:translateX(-50%) scale(1.18); transform-origin:top center; }
  .ui-theme-chunky .primer-row > h3 { font-size:17px; }
  .ui-theme-chunky .primer-row > p { font-size:15px; line-height:1.24; }
  .ui-theme-chunky .featured-primer-page { gap:54px; width:min(1240px,100%); }
  .ui-theme-chunky .featured-primer-page .primer-row { grid-template-rows:180px auto minmax(54px,auto); min-height:286px; }
  .ui-theme-chunky .featured-primer-page .gameplay-shot { width:330px; height:175px; }
  .ui-theme-chunky .featured-primer-page .food-values > span { grid-template-rows:148px auto auto; }
  .ui-theme-chunky .featured-primer-page .food-values img { max-width:136px; max-height:142px; }
  .ui-theme-chunky .featured-primer-page .aphid-leaf { width:136px; height:144px; }
  .ui-theme-chunky .featured-primer-page .aphid-leaf img:first-child { width:136px; height:136px; }
  .ui-theme-chunky .featured-primer-page .aphid-leaf img:last-child { left:55px; top:40px; width:48px; height:48px; }
  .ui-theme-chunky .featured-primer-page .food-values b { font-size:14px; }
  .ui-theme-chunky .featured-primer-page .food-values strong { font-size:16px; }
  .ui-theme-chunky .featured-primer-page .primer-row > h3 { font-size:22px; }
  .ui-theme-chunky .featured-primer-page .primer-row > p { font-size:17px; line-height:1.18; }
  .ui-theme-chunky .three-up-primer-page { width:min(1180px,100%); gap:34px; }
  .ui-theme-chunky .three-up-primer-page .primer-row { grid-template-rows:185px auto minmax(44px,auto); min-height:272px; }
  .ui-theme-chunky .three-up-primer-page .gameplay-shot { width:300px; height:180px; }
  .ui-theme-chunky .three-up-primer-page .primer-row > h3 { font-size:22px; }
  .ui-theme-chunky .three-up-primer-page .primer-row > p { font-size:17px; line-height:1.18; }
  .ui-theme-chunky .three-up-primer-page .score-picture { width:300px; height:180px; }
  .ui-theme-chunky .three-up-primer-page .score-ledger { transform:translateX(-50%) scale(1.38); transform-origin:top center; }
  .ui-theme-chunky .controls-guide-trigger { font-size:15px; }
  .ui-theme-chunky .controls-guide-trigger .help-symbol { width:27px; height:27px; font-size:17px; }
  .ui-theme-chunky .lobby-lower-grid .lobby-join { --join-qr-size:136px; min-height:228px; }
  .ui-theme-chunky .colony-player-panel .seat-card .claim-flash { width:min(190px,100%); }
  .ui-theme-chunky .lobby-footer #start-button { width:min(600px,100%); font-size:16px; }
  .ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join strong { font-size:17px; }
  .ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join span { font-size:14px; }
  .ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join small { font-size:13px; }
  .ui-theme-chunky .seat-card h3 { font-size:24px; }
  .ui-theme-chunky .seat-ant-stage { height:56px; }
  .ui-theme-chunky .seat-ant { width:126px; height:56px; }
  .ui-theme-chunky .seat-card p { font-size:14px; }
  .ui-theme-chunky .lobby-lower-grid .seat-card button { min-height:40px; font-size:14px; }
  .ui-theme-chunky .lobby-lower-grid .lobby-join .instruction { font-size:14px; }
  .ui-theme-chunky .lobby-footer { min-height:56px; }
  .ui-theme-chunky .lobby-footer .demo-button { font-size:14px; }
  .ui-theme-chunky .lobby-footer .fine-print { font-size:13px; }
}

@media (max-width:700px) {
  .ui-theme-chunky .featured-primer-page,
  .ui-theme-chunky .three-up-primer-page { grid-template-columns:1fr; }
  .ui-theme-chunky .gameplay-primer.is-mobile-primer .primer-page {
    width:100%;
    transform:translateY(-14px);
  }
  .ui-theme-chunky .gameplay-primer.is-mobile-primer .primer-row {
    width:min(430px,calc(100% - 34px));
    margin-inline:auto;
  }
  .ui-theme-chunky .gameplay-primer.is-mobile-primer .featured-primer-page .primer-row,
  .ui-theme-chunky .gameplay-primer.is-mobile-primer .three-up-primer-page .primer-row {
    grid-template-rows:140px auto minmax(42px,auto);
    min-height:228px;
  }
  .ui-theme-chunky .gameplay-primer.is-mobile-primer .gameplay-shot,
  .ui-theme-chunky .gameplay-primer.is-mobile-primer .score-picture {
    width:250px;
    height:135px;
  }
  .ui-theme-chunky .gameplay-primer.is-mobile-primer .primer-page-indicator { gap:6px; }
  .ui-theme-chunky .lobby-lower-grid .lobby-join {
    grid-template-columns:1fr;
    grid-template-areas:"phone" "players";
    row-gap:12px;
  }
  .ui-theme-chunky .lobby-lower-grid .lobby-join .shared-phone-join { justify-self:center; width:var(--join-copy-width); }
  .ui-theme-chunky .colony-player-panel .seat-lobby { grid-template-columns:repeat(2,minmax(0,1fr)); height:auto; }
  .ui-theme-chunky .lobby-footer { grid-template-columns:150px minmax(220px,1fr) 52px; }
}

@media (max-width:600px) {
  .ui-theme-chunky .overlay-card,
  .ui-theme-chunky .settings-card { border-radius:10px; }
  .ui-theme-chunky .controls-guide-page { padding:12px 10px 48px; }
  .ui-theme-chunky .controls-guide-page[data-controls-page="2"] .controls-guide-steps { padding-left:0; }
  .ui-theme-chunky .controls-guide-page[data-controls-page="2"] .controls-guide-steps li { padding-inline:8px; font-size:clamp(18px,4vw,21px); }
  .ui-theme-chunky .controller-map { width:min(330px,100%); margin:-8px auto -18px; }
  .ui-theme-chunky .controller-callout { padding:3px 5px; }
  .ui-theme-chunky .controller-callout b { font-size:11px; }
  .ui-theme-chunky .controller-callout small { font-size:7px; }
  .ui-theme-chunky .controls-guide-navigation .carousel-arrow {
    top:auto;
    bottom:0;
    width:46px;
    height:44px;
    font-size:48px;
    transform:none !important;
  }
  .ui-theme-chunky .controls-guide-navigation .carousel-arrow:first-child { left:4px; }
  .ui-theme-chunky .controls-guide-navigation .carousel-arrow:last-child { right:4px; }
  .ui-theme-chunky .quick-controls { border-radius:9px; }
  .ui-theme-chunky .lobby-lower-grid .lobby-join { grid-template-columns:1fr; grid-template-areas:"phone" "players"; }
  .ui-theme-chunky .lobby-footer {
    grid-template-columns:1fr;
    grid-template-rows:auto;
    grid-auto-rows:auto;
    justify-items:center;
    min-height:0;
    row-gap:10px;
    padding-block:8px 12px;
  }
  .ui-theme-chunky .lobby-footer .demo-button,
  .ui-theme-chunky .lobby-footer #start-button,
  .ui-theme-chunky .lobby-footer .fine-print,
  .ui-theme-chunky .lobby-footer .menu-tools { grid-column:1; grid-row:auto; justify-self:center; }
}

@media (max-width:460px) {
  .ui-theme-chunky .colony-player-panel .seat-lobby { grid-template-columns:1fr; }
}

.public-preview-badge {
  display:inline-block;
  margin-left:10px;
  padding:3px 7px;
  border:1px solid var(--ipcp-yellow);
  border-radius:4px;
  color:var(--ipcp-yellow);
  font:800 11px/1.1 system-ui,sans-serif;
  letter-spacing:.05em;
  vertical-align:middle;
}
