/**
 * Shared “Zip Challenge” shell: dashboard-style chrome + one max-width for all routes.
 */
:root {
  --app-max: 960px;
  --chrome-bg: #0b0f14;
  --chrome-bg2: #111827;
  --chrome-accent-glow: rgba(255, 102, 0, 0.18);
  --chrome-border: rgba(255, 102, 0, 0.28);
  --chrome-text: #e8edf4;
  --chrome-muted: #94a3b8;
  --panel-bg: #ffffff;
  --panel-text: #1a1a18;
  --panel-muted: #64748b;
  --accent: #ff6600;
  --accent-hover: #ff8533;
  --radius-lg: 14px;
  --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.app-page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--chrome-bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -15%, var(--chrome-accent-glow), transparent 55%),
    linear-gradient(180deg, var(--chrome-bg2) 0%, var(--chrome-bg) 45%, #07090c 100%);
  color: var(--chrome-text);
  line-height: 1.55;
  padding: 20px 16px 40px;
}

.app-shell {
  max-width: var(--app-max);
  margin: 0 auto;
  width: 100%;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-brand {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.95rem;
}

.app-nav a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.app-nav a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Light content panels on dark chrome (game & tables) */
.app-panel-light {
  background: var(--panel-bg);
  color: var(--panel-text);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-panel);
}

.app-landing-section {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  margin-bottom: 14px;
}

.app-landing-section h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: #fff;
}

.app-landing-section p,
.app-landing-section li {
  font-size: 0.95rem;
  color: var(--chrome-muted);
  margin: 0;
}

.app-landing-section ul {
  padding-left: 1.2em;
  margin-top: 8px;
}

.app-landing-section li {
  margin-bottom: 6px;
}

.app-hero-cta {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 22px auto 0;
  padding: 16px 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, #ff8c42 0%, var(--accent) 55%, #e85a00 100%);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 102, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  transition: filter 0.15s, transform 0.1s;
}

.app-hero-cta:active {
  transform: scale(0.99);
  filter: brightness(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .app-hero-cta:hover {
    filter: brightness(1.06);
  }
}

.app-landing-header {
  text-align: center;
  margin-bottom: 24px;
}

.app-landing-header .tagline {
  color: var(--chrome-muted);
  font-size: 1.05rem;
  max-width: 40ch;
  margin: 10px auto 15px;
}

.app-landing-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--chrome-muted);
}
