* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #1b1033;
  font-family: Nunito, "Trebuchet MS", system-ui, sans-serif;
  color: #fff;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#touch { position: fixed; inset: 0; z-index: 1; touch-action: none; }
#hud { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

.topbar {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quit {
  pointer-events: auto;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 3px solid #0b0614;
  background: #fff;
  color: #0b0614;
  font: 900 20px Nunito, sans-serif;
}

.phase, .left {
  background: rgba(11, 6, 20, 0.74);
  border-radius: 14px;
  padding: 7px 12px;
  font-weight: 900;
  font-size: 17px;
  text-align: center;
  white-space: nowrap;
}
.phase { flex: 1; }
.phase b {
  font-family: Bangers, Impact, sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #ffe34a;
  margin-left: 8px;
}
.left { min-width: 70px; }

.panel {
  position: absolute;
  top: calc(64px + env(safe-area-inset-top));
  left: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(11, 6, 20, 0.74);
  border-radius: 16px;
  padding: 8px 12px 8px 8px;
}
.swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 3px solid #fff;
  background: #7ed957;
}
.meters { display: flex; flex-direction: column; gap: 6px; width: 170px; }
.meter { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; }
.lbl { min-width: 76px; }
.bar { flex: 1; height: 11px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: #06d6a0; border-radius: 6px; transition: width 0.15s; }
.bar.danger i { background: #ff3b3b; }

.hp { font-size: 15px; line-height: 1; letter-spacing: 2px; }

#cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}
#cross::before, #cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
#cross::before { width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; }
#cross::after { display: none; }

#penalty {
  position: absolute;
  left: 50%;
  top: calc(50% + 40px);
  transform: translateX(-50%);
  font-family: Bangers, Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: #ff3b3b;
  text-shadow: 2px 2px 0 #0b0614;
  opacity: 0;
}
#penalty.show { animation: pen 0.7s ease-out; }
@keyframes pen {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -30px); }
}

#hint {
  position: absolute;
  left: 50%;
  top: calc(134px + env(safe-area-inset-top));
  transform: translateX(-50%);
  width: max-content;
  max-width: 92vw;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(11, 6, 20, 0.7);
  font-weight: 900;
  font-size: 16px;
  text-align: center;
}
#hint:empty { display: none; }
#reveal {
  position: absolute;
  left: 50%;
  top: calc(64px + env(safe-area-inset-top));
  transform: translateX(-50%);
  width: max-content;
  max-width: 94vw;
  padding: 10px 16px;
  border-radius: 16px;
  border: 3px solid #0b0614;
  background: #ffe34a;
  color: #0b0614;
  font-weight: 900;
  font-size: 16px;
  text-align: center;
  box-shadow: 4px 4px 0 #0b0614;
}
#reveal small, #watch small { font-size: 13px; }
#hud.revealing .act, #hud.revealing #camoPanel, #hud.revealing #cross, #hud.revealing #poseGrid, #hud.revealing #toolGrid { display: none; }
#watch {
  position: absolute;
  left: 50%;
  top: calc(64px + env(safe-area-inset-top));
  transform: translateX(-50%);
  width: max-content;
  max-width: 94vw;
  padding: 10px 16px;
  border-radius: 16px;
  border: 3px solid #0b0614;
  background: #06d6a0;
  color: #0b0614;
  font-weight: 900;
  font-size: 16px;
  text-align: center;
  box-shadow: 4px 4px 0 #0b0614;
}
#hud.watching .act, #hud.watching #camoPanel, #hud.watching #cross, #hud.watching #poseGrid, #hud.watching #toolGrid,
#hud.spectating .act, #hud.spectating #camoPanel, #hud.spectating #cross, #hud.spectating #poseGrid, #hud.spectating #toolGrid, #hud.spectating #sizeBar { display: none; }
#hud.specfollow #joy { display: none; }
#specBar {
  position: absolute;
  left: 50%;
  bottom: calc(146px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  max-width: 98vw;
  border-radius: 999px;
  background: rgba(11, 6, 20, 0.88);
  pointer-events: auto;
  touch-action: none;
}
#specBar[hidden] { display: none; }
#hud.specfollow #specBar { bottom: calc(26px + env(safe-area-inset-bottom)); }
#specBar button {
  height: 58px;
  min-width: 58px;
  padding: 0 12px;
  border-radius: 999px;
  border: 3px solid #0b0614;
  background: #ffe34a;
  color: #0b0614;
  font: 900 18px Nunito, sans-serif;
  touch-action: none;
}
#specBar #specMode { background: #19e7ff; font-size: 15px; }
#specName { min-width: 96px; max-width: 34vw; text-align: center; color: #fff; font: 900 15px/1.15 Nunito, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hud.scouting .act:not(.look), #hud.scouting #camoPanel, #hud.scouting #poseGrid { display: none; }
.act.look { left: 16px; bottom: calc(200px + env(safe-area-inset-bottom)); background: #fff; }
#reveal b { font-family: Bangers, Impact, sans-serif; font-weight: 400; font-size: 26px; margin-left: 6px; }
#hint.run { background: #ff3b3b; animation: pulse 0.5s infinite alternate; }
@keyframes pulse { to { transform: translateX(-50%) scale(1.08); } }

#joy {
  position: absolute;
  left: 92px;
  top: calc(100% - 132px - env(safe-area-inset-bottom));
  width: 124px;
  height: 124px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.4);
  opacity: 0.55;
}
#joy.on { opacity: 1; }
#knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#poseGrid {
  position: absolute;
  right: 10px;
  bottom: calc(212px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 58px);
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(11, 6, 20, 0.82);
  pointer-events: auto;
  max-height: calc(100vh - 290px - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}
#poseGrid[hidden] { display: none; }
#poseGrid button {
  position: relative;
  height: 58px;
  border-radius: 14px;
  border: 3px solid #0b0614;
  background: #fff;
  color: #0b0614;
  font: 900 10.5px Nunito, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  touch-action: none;
}
#poseGrid button b { font-size: 21px; font-weight: 400; }
#poseGrid button i {
  position: absolute;
  top: 2px;
  right: 4px;
  font-style: normal;
  font-size: 9px;
  opacity: 0.5;
}
#poseGrid button.on { background: #06d6a0; }

.act {
  position: absolute;
  pointer-events: auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid #0b0614;
  background: #ffe34a;
  color: #0b0614;
  box-shadow: 4px 4px 0 #0b0614;
  font: 900 15px Nunito, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  touch-action: none;
}
.act .ico { font-size: 30px; }
.act.small { width: 70px; height: 70px; font-size: 13px; background: #19e7ff; }
.act.small .ico { font-size: 22px; }
.act.on { background: #06d6a0; }
.act.cool { opacity: 0.5; }
.act:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #0b0614; }
.act.main { right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); }
.act.jump { right: 122px; bottom: calc(18px + env(safe-area-inset-bottom)); background: #ff9f1c; }
.act.pose, .act.ping { right: 26px; bottom: calc(132px + env(safe-area-inset-bottom)); background: #fff; }
.act.ping { background: #19e7ff; }
.act.clone, .act.tool { right: 112px; bottom: calc(108px + env(safe-area-inset-bottom)); background: #c77dff; }
.act.tool { background: #ffe34a; }
#toolGrid {
  position: absolute;
  right: 10px;
  bottom: calc(190px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(92vw, 280px);
  padding: 8px;
  border-radius: 18px;
  background: rgba(11, 6, 20, 0.88);
  pointer-events: auto;
}
#toolGrid button {
  min-height: 64px;
  border-radius: 14px;
  border: 3px solid #0b0614;
  background: #fff;
  color: #0b0614;
  font: 900 14px Nunito, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  touch-action: none;
}
#toolGrid button b { font-size: 22px; }
#toolGrid button.cool { opacity: 0.45; }
#toolGrid button i { font-style: normal; font-size: 12px; }

#joy.sprint { border-color: #ff9f1c; }
#joy.sprint #knob { background: #ff9f1c; }

#hud.studio .act, #hud.studio #joy, #hud.studio #poseGrid, #hud.studio #hint, #hud.studio #sizeBar { display: none; }
#sizeBar {
  position: absolute;
  right: 12px;
  bottom: calc(214px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border-radius: 999px;
  background: rgba(11, 6, 20, 0.85);
  pointer-events: auto;
  touch-action: none;
}
#sizeBar[hidden] { display: none; }
#sizeBar button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #0b0614;
  background: #ffe34a;
  color: #0b0614;
  font: 900 28px/1 Nunito, sans-serif;
  touch-action: none;
}
.size-dotbox { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex: none; }
.size-dotbox i { display: block; border-radius: 50%; border: 3px solid #fff; background: #4cc9f0; box-sizing: border-box; }
.size-row { display: flex; align-items: center; gap: 8px; padding: 0 2px 8px; }
.size-lbl { font-weight: 900; font-size: 14px; flex: none; }
.size-row input[type=range] { flex: 1; min-width: 0; height: 36px; accent-color: #ffe34a; touch-action: pan-x; }

#partName {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(11, 6, 20, 0.75);
  font-weight: 900;
  font-size: 17px;
  opacity: 0;
  transition: opacity 0.2s;
}
#partName.show { opacity: 1; }

.swatch { pointer-events: auto; padding: 0; cursor: pointer; }
.swatch.pop { animation: pop 0.35s ease-out; }
@keyframes pop { 50% { transform: scale(1.3); } }

#studio {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: rgba(20, 12, 38, 0.94);
  border-top: 3px solid #0b0614;
  touch-action: pan-x;
}
.studio-top { display: flex; align-items: center; gap: 12px; }
.studio-top p { margin: 0; font-weight: 800; font-size: 14px; line-height: 1.3; }
.brush {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px #0b0614;
}
.pal {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px;
  scrollbar-width: none;
}
.pal::-webkit-scrollbar { display: none; }
.pal .sw {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 3px solid #0b0614;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.pal .sw.recent { border-radius: 50%; box-shadow: 0 0 0 3px #ffe34a; }
.studio-btns { display: flex; gap: 10px; }
.studio-btns button {
  flex: 1;
  min-height: 50px;
  border: 3px solid #0b0614;
  border-radius: 16px;
  background: #19e7ff;
  color: #0b0614;
  font: 900 1.05rem Nunito, sans-serif;
  box-shadow: 3px 3px 0 #0b0614;
}
.studio-btns #doneBtn { background: #06d6a0; }

.help { flex: none; }
.overlay.top { z-index: 8; align-items: flex-start; }
.card.help-card { width: min(94vw, 560px); text-align: left; }
.overlay.top { background: rgba(11, 6, 20, 0.88); }
.help-card h2 { text-align: center; margin-bottom: 8px; }
.help-sec { margin: 10px 0; }
.help-sec.dim { opacity: 0.45; }
.help-sec h3 { margin: 6px 0; font-size: 1.1rem; color: #19e7ff; }
.help-sec p { margin: 6px 0; font-size: 0.9rem; }
.help-card table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.help-card th { text-align: left; color: #ffe34a; padding: 4px; }
.help-card td { padding: 5px 4px; border-top: 1px solid rgba(255, 255, 255, 0.12); vertical-align: top; }
.help-card td:first-child { font-weight: 900; }
.ghostbig { background: #fff !important; }
.variant { display: flex; gap: 8px; margin: 4px 0; }
.variant button {
  flex: 1;
  min-height: 46px;
  border: 3px solid #0b0614;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: #0b0614;
  font: 900 1rem Nunito, sans-serif;
}
.variant button.on { background: #06d6a0; box-shadow: 0 0 0 3px #ffe34a; }
.setup { margin: 8px 0 4px; text-align: left; }
.setup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.setup-row > span {
  width: 62px;
  flex: none;
  font-weight: 900;
  font-size: 0.95rem;
}
.picks { display: flex; gap: 6px; flex: 1; }
.picks button, .stepper button {
  min-height: 44px;
  border: 3px solid #0b0614;
  border-radius: 12px;
  background: #fff;
  color: #0b0614;
  font: 900 0.92rem Nunito, sans-serif;
}
.picks button { flex: 1; padding: 0 4px; }
.picks button.on { background: #06d6a0; box-shadow: 0 0 0 3px #ffe34a; }
.setup.locked button { pointer-events: none; opacity: 0.8; }
.stepper { display: flex; align-items: center; gap: 8px; flex: 1; }
.stepper button { width: 44px; font-size: 1.4rem; background: #ffe34a; }
.stepper b {
  flex: 1;
  text-align: center;
  font-family: Bangers, Impact, sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: #ffe34a;
}
.variant-note { margin: 4px 0 6px; font-size: 0.8rem; opacity: 0.8; }
.big.online-btn { background: #06d6a0; }
.big:disabled { opacity: 0.5; }
#readyBtn { background: #ffe34a; }
#readyBtn.on { background: #06d6a0; }
.presence { margin: 10px 0 0; font-weight: 900; color: #19e7ff; font-size: 0.92rem; }
.me { margin: 8px 0; font-weight: 800; }
.mini {
  min-height: 34px;
  margin-left: 6px;
  padding: 0 10px;
  border: 2px solid #0b0614;
  border-radius: 10px;
  background: #ffe34a;
  font: 900 0.85rem Nunito, sans-serif;
}
.lobby-label { margin: 10px 0 0; font-weight: 900; }
.lobby-count { display: block; font-family: Bangers, Impact, sans-serif; font-weight: 400; font-size: 84px; color: #ffe34a; line-height: 1; }
.lobby-list { list-style: none; padding: 0; margin: 10px 0; font-weight: 900; font-size: 1.05rem; }
.lobby-list li { padding: 6px 10px; margin: 4px 0; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.bot-row { margin: 10px 0 4px; }
.bot-label { margin: 0 0 6px; font-weight: 900; }
.bot-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.bot-ctrl button {
  width: 52px;
  height: 52px;
  border: 3px solid #0b0614;
  border-radius: 14px;
  background: #ffe34a;
  color: #0b0614;
  font: 900 1.8rem Nunito, sans-serif;
  line-height: 1;
}
.bot-ctrl b {
  min-width: 36px;
  font-family: Bangers, Impact, sans-serif;
  font-size: 2.2rem;
  color: #ffe34a;
  line-height: 1;
}
#botNote { margin: 8px 0 0; }
.map-line { font-weight: 900; margin: 10px 0 0; color: #ffe34a; }

#blind {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: #0b0614;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}
#blind { justify-content: flex-start; }
#blind p { margin: 4px 10px; }
.blind-top { padding: calc(64px + env(safe-area-inset-top)) 10px 4px; }
.bt-title { font-size: 20px; }
.bt-title b { font-family: Bangers, Impact, sans-serif; font-weight: 400; font-size: 44px; color: #ffe34a; margin-left: 6px; }
.wu { font-size: 15px; }
.wu b { color: #ffe34a; }
.wu-score { font-size: 16px; color: #19e7ff; }
.wu-score b { font-family: Bangers, Impact, sans-serif; font-weight: 400; font-size: 30px; color: #06d6a0; }
.wu-score b.neg { color: #ef476f; }
#warmWorst { color: #ff8fa3; }
#warmGoal.got { color: #06d6a0; }
#arena { position: relative; flex: 1; width: 100%; overflow: hidden; }
.wu-pick { display: flex; justify-content: center; gap: 6px; margin: 6px 10px 2px; }
.wu-pick button {
  flex: 1;
  max-width: 96px;
  min-height: 44px;
  border-radius: 14px;
  border: 3px solid #0b0614;
  background: #fff;
  color: #0b0614;
  font: 900 13px Nunito, sans-serif;
  touch-action: none;
}
.wu-pick button.on { background: #06d6a0; box-shadow: 0 0 0 3px #ffe34a; }
.mem, .spot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 380px); display: grid; gap: 8px; }
.mem { grid-template-columns: repeat(3, 1fr); width: min(88vw, 290px); }
.mcard, .scell { aspect-ratio: 1; border-radius: 14px; border: 3px solid #0b0614; box-shadow: 3px 3px 0 #0b0614; touch-action: none; }
.mcard { background: #7b61ff; color: #fff; font-size: 34px; line-height: 1; }
.mcard.up { background: #fff; }
.mcard.done { background: #06d6a0; opacity: 0.55; }
.scell.wrong { opacity: 0.35; }
.tm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 380px); display: flex; flex-direction: column; align-items: center; gap: 28px; }
.tm-bar { position: relative; width: 100%; height: 46px; border-radius: 23px; border: 3px solid #fff; background: #241a3d; }
.tm-zone, .tm-mid { position: absolute; top: 0; bottom: 0; }
.tm-zone { background: rgba(6, 214, 160, 0.55); }
.tm-mid { background: #06d6a0; }
.tm-mark { position: absolute; top: -9px; width: 8px; height: 58px; margin-left: -4px; border-radius: 4px; background: #ffe34a; border: 2px solid #0b0614; }
.tm-btn { width: 100%; min-height: 96px; border-radius: 24px; border: 4px solid #0b0614; background: #ffe34a; color: #0b0614; font: 400 38px Bangers, Impact, sans-serif; box-shadow: 4px 4px 0 #0b0614; touch-action: none; }
.tm-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #0b0614; }
.tgt {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid #0b0614;
  background: #fff;
  font-size: 36px;
  line-height: 1;
  box-shadow: 3px 3px 0 #0b0614;
  animation: tgt 1s linear forwards;
  touch-action: none;
}
.tgt.bomb { background: #ff8a8a; }
.tgt.star { background: #ffe34a; }
@keyframes tgt {
  0% { transform: scale(0.2); }
  15% { transform: scale(1.1); }
  25% { transform: scale(1); }
  100% { transform: scale(0.35); opacity: 0.5; }
}
.pts {
  position: absolute;
  font: 400 30px Bangers, Impact, sans-serif;
  color: #06d6a0;
  pointer-events: none;
  animation: pts 0.6s ease-out forwards;
}
.pts.bad { color: #ff3b3b; }
@keyframes pts { to { transform: translateY(-40px); opacity: 0; } }

#toast {
  position: fixed;
  z-index: 6;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%) scale(0.9);
  max-width: 90vw;
  width: max-content;
  padding: 12px 20px;
  border-radius: 18px;
  border: 3px solid #0b0614;
  background: #fff;
  color: #0b0614;
  font-weight: 900;
  font-size: 20px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
#toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 30%, rgba(27, 16, 51, 0.35), rgba(11, 6, 20, 0.85));
  overflow-y: auto;
  touch-action: pan-y;
}
.card {
  width: min(92vw, 420px);
  padding: 22px 20px 18px;
  border-radius: 26px;
  background: rgba(20, 12, 38, 0.9);
  border: 3px solid #0b0614;
  box-shadow: 6px 6px 0 #0b0614;
  text-align: center;
}
h1, h2 {
  margin: 0;
  font-family: Bangers, Impact, "Arial Black", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: #ffe34a;
  text-shadow: 3px 3px 0 #0b0614;
}
h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
h2 { font-size: 2.6rem; }
.sub { margin: 10px 0 14px; font-weight: 900; font-size: 1.05rem; }
.big {
  display: block;
  width: 100%;
  min-height: 60px;
  margin: 10px 0;
  border: 3px solid #0b0614;
  border-radius: 18px;
  background: #ffe34a;
  color: #0b0614;
  box-shadow: 4px 4px 0 #0b0614;
  font: 900 1.25rem Nunito, sans-serif;
}
.big.alt { background: #19e7ff; }
.big:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #0b0614; }
.ghost {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  background: none;
  color: #fff;
  font: 900 1.05rem Nunito, sans-serif;
  text-decoration: underline;
}
.how { text-align: left; margin: 14px 0 8px; padding-left: 20px; font-size: 0.95rem; line-height: 1.4; }
.how li { margin: 4px 0; }
.note { font-size: 0.85rem; opacity: 0.75; margin: 8px 0; }
.back { display: inline-block; padding: 12px; color: #19e7ff; font-weight: 900; text-decoration: none; }
#endText { font-weight: 800; font-size: 1.1rem; line-height: 1.4; }
#endLooks[hidden] { display: none; }
.looks-title { margin: 10px 0 4px; font-weight: 900; font-size: 1rem; color: #ffe34a; }
.looks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 36vh; overflow-y: auto; padding: 2px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.looks figure { margin: 0; }
.look-img { width: 100%; height: auto; image-rendering: auto; border-radius: 12px; border: 3px solid #0b0614; background: #d6e9ff; display: block; }
.looks figcaption { font-size: 0.78rem; font-weight: 900; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#gameList { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
#gameList[hidden] { display: none; }
