* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --ink: #f1f3f5; --muted: #9aa5ad; --line: #2b333a;
  --accent: #f59e0b; --accent2: #dc2626;
  --bg: #14181c; --surface: #1d2329;
  --danger: #dc2626;
}
html, body { overscroll-behavior: none; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--bg); color: var(--ink);
  min-height: 100vh; min-height: 100dvh;
  padding: 10px 12px 0;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 480px; width: 100%; margin: 0 auto; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* -- Platform logo strip: infinite marquee, same as every other game page -- */
.platform-strip { position: relative; overflow: hidden; padding: 8px 0; flex-shrink: 0; }
.platform-strip::before, .platform-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 32px; z-index: 2; pointer-events: none;
}
.platform-strip::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.platform-strip::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.platform-track {
  display: flex; align-items: center; gap: 10px; width: max-content;
  animation: platformMarquee 36s linear infinite;
}
.platform-strip:hover .platform-track { animation-play-state: paused; }
@keyframes platformMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.platform-card {
  flex: 0 0 auto; width: 76px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.platform-card:active { transform: scale(.92); }
.platform-card img { height: 22px; width: auto; max-width: 90%; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) { .platform-track { animation: none; } }

/* -- Header (unified cross-game pattern -- see snake/word/match's own base.css) -- */
.top {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: 5px 0 4px; gap: 6px; flex-shrink: 0;
}
.top-left { display: flex; align-items: center; gap: 6px; }
.icon-group { display: flex; align-items: center; gap: 6px; }
.brand { height: 44px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brand img { max-height: 100%; width: auto; object-fit: contain; }
.icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 19px; font-weight: 800;
  text-decoration: none; cursor: pointer;
}

/* -- Login gate (same convention as every other game) -- */
.logingate-overlay {
  position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.logingate-card {
  background: var(--surface); border-radius: 22px; padding: 28px 24px; max-width: 320px; width: 100%;
  text-align: center; box-shadow: 0 20px 50px -12px rgba(0,0,0,.6); border: 1px solid var(--line);
}
.logingate-logo { height: 64px; width: auto; margin-bottom: 12px; }
.logingate-title { font-family: 'Baloo 2', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.logingate-sub { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.logingate-btn {
  width: 100%; padding: 13px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  font-weight: 800; font-size: 14px; cursor: pointer; font-family: 'Sora', sans-serif;
}
