* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --ink: #14291d; --muted: #5f7a6a; --line: #dcece1;
  --accent: #16a34a; --accent2: #059669;
  --bg: #eafbf1; --surface: #ffffff;
  --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: #fff; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  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 -- */
.header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 6px 0 10px; flex-shrink: 0; }
.header-left, .header-right { display: flex; align-items: center; gap: 8px; width: 36px; }
.back-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
}
.snake-logo { height: 34px; width: auto; display: block; }
.icon-btn-sm {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 15px; font-weight: 800; cursor: pointer;
}

/* -- Login gate (same convention as /match, /connect etc.) -- */
.logingate-overlay {
  position: fixed; inset: 0; z-index: 500; background: rgba(20,41,29,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.logingate-card {
  background: #fff; border-radius: 22px; padding: 28px 24px; max-width: 320px; width: 100%;
  text-align: center; box-shadow: 0 20px 50px -12px rgba(0,0,0,.4);
}
.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;
}
