body { overflow: hidden; background: #10281a; color: #f7f1e6; }
.screen { height: 100dvh; display: flex; flex-direction: column; min-height: 0; }
.screen[hidden] { display: none !important; }
.play-chrome {
  position: relative;
  z-index: 20;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: #10281a;
}
.play-chrome .brand img { height: 40px; }
#gallery .play-chrome { flex-direction: row; align-items: center; justify-content: space-between; }
.chrome-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.chrome-row, .tools, .mode-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; overflow: visible; min-width: 0; }
.tools { flex-wrap: wrap; }
.games-home, .site-home { position: relative; z-index: 2; }
.chrome-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 0; width: 100%; }
.chrome-title h1 { margin: 0; font-size: clamp(1.15rem, 4.4vw, 1.5rem); line-height: 1.2; letter-spacing: -0.03em; white-space: normal; overflow: visible; text-overflow: unset; }
.chrome-title p { white-space: normal; }
.chrome-title p, .picker-intro p, .mode-note { margin: 0; }
.mode-note { font-size: 0.85rem; color: rgba(247, 241, 230, 0.8); }
.count { margin: 0; font-weight: 800; white-space: nowrap; flex: none; }
.mode-switch button[aria-pressed="true"] { outline: 2px solid #f0b429; outline-offset: 2px; }
.picker-intro { padding: 8px 16px 0; }
.picker-intro h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; }
.mode-switch button, .tool, .text-btn {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(247,241,230,0.2);
  background: rgba(255,255,255,0.06);
  color: #f7f1e6;
  padding: 0 14px;
  cursor: pointer;
}
.mode-switch button[aria-pressed="true"], .tool.primary, .music-btn.is-on {
  background: #e23d32;
  color: white;
  border-color: transparent;
}
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
  overflow: auto;
}
.card {
  display: grid;
  grid-template-rows: 180px auto;
  text-align: left;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #1b3d2a;
  color: inherit;
  cursor: pointer;
  min-height: 44px;
}
.card-art { overflow: hidden; }
.card-art img { width: 100%; height: 180px; object-fit: cover; object-position: center 30%; }
.card-copy { display: flex; flex-direction: column; padding: 10px 12px 12px; gap: 2px; }
.card-country { color: #f0b429; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card-name { font-weight: 800; }
.card-scene, .card-progress, .card-round { color: rgba(247,241,230,0.75); font-size: 0.9rem; }
.frame-wrap { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 10px; overflow: hidden; }
.frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  contain: paint;
  border-radius: 18px;
  background: #0c1c13;
  touch-action: none;
}
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.scene-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.markers { position: absolute; inset: 0; pointer-events: none; }
.marker { position: absolute; box-sizing: border-box; border-radius: 10px; pointer-events: none; }
.marker.found { border: 3px solid #7dffa2; box-shadow: 0 0 0 2px rgba(16,40,26,0.35); }
.marker.hint { border: 3px solid #f0b429; background: rgba(240,180,41,0.22); animation: glow 1.2s ease-in-out infinite; }
.tick {
  position: absolute; top: 0; right: 0; transform: translate(35%, -35%);
  width: 22px; height: 22px; border-radius: 50%; background: #157a3a; color: white;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.celebrate {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: min(440px, calc(100% - 20px)); z-index: 4;
}
.celebrate-card {
  background: #fff8ee; color: #142117; border-radius: 18px; padding: 16px; text-align: center;
}
.celebrate-card .ghost { color: #142117; border-color: rgba(20,33,23,0.3); }
.frame-msg { position: absolute; inset: auto 12px 12px; margin: 0; }
.dock {
  position: relative;
  z-index: 20;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #10281a;
}
.status { margin: 0; min-height: 1.3em; }
.status.good { color: #b6f7c4; }
.status.miss { color: #ffd0c8; }
.segments { display: flex; gap: 4px; }
.segments i { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.16); }
.segments i.on { background: #f0b429; }
.list { display: flex; gap: 8px; overflow-x: auto; }
.item {
  display: flex; gap: 8px; align-items: center; min-height: 56px; min-width: 168px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04);
  color: inherit; padding: 6px 8px; text-align: left; cursor: pointer;
}
.item.found { background: rgba(47, 143, 78, 0.35); }
.thumb { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; flex: none; background: #fff; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; flex-direction: column; }
.label { font-weight: 700; }
.state { font-size: 0.82rem; color: rgba(247,241,230,0.7); }
.count { margin: 0; font-weight: 800; }
body.is-expert #hint { display: none; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(240,180,41,0.18); } }
@media (max-width: 800px) {
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .card { grid-template-rows: 120px auto; }
  .card-art img { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .marker.hint { animation: none; }
}
