/* Family Game Night — shared look (matches the GatherPlay-style mockup:
   deep navy-purple, glowing gradient cards, orange-to-pink accent). */
:root {
  --bg: #0c0a26;
  --bg2: #1a1450;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #ffffff;
  --soft: #b9b4e3;
  --brand: #ff7a3d;
  --brand2: #ff3d7f;
  --blue: #4f7cff;
  --purple: #8b5cf6;
  --green: #2fd18b;
  --gold: #ffc53d;
  --grad: linear-gradient(135deg, var(--brand), var(--brand2));
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 122, 61, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.5;
}
h1, h2, h3, .btn, .logo, .display { font-family: 'Fredoka', 'Nunito', sans-serif; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* header */
header.top { padding: 18px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.35rem; text-decoration: none; }
.logo .brandmark { height: 46px; width: auto; display: block; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
@media (max-width: 600px) { .logo .brandmark { height: 38px; } }
.logo .mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 6px 18px rgba(255, 61, 127, 0.4);
}
.top-right { display: flex; gap: 10px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--ink);
}
.stars-pill { color: var(--gold); }

/* panels */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
}

/* buttons */
.btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--grad); color: #fff;
  font-size: 1.05rem; font-weight: 600;
  padding: 13px 24px; border-radius: 999px;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 22px rgba(255, 61, 127, 0.35);
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: var(--panel-strong); box-shadow: none; border: 1px solid var(--line); }
.btn.blue { background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 8px 22px rgba(79, 124, 255, 0.35); }
.btn.big { font-size: 1.35rem; padding: 18px 34px; }

input[type=text] {
  width: 100%; font: inherit; font-size: 1.2rem; color: var(--ink);
  background: rgba(0, 0, 0, 0.25); border: 2px solid var(--line); border-radius: 16px;
  padding: 14px 16px; outline: none;
}
input[type=text]:focus { border-color: var(--brand); }

.notice {
  max-width: 560px; margin: 16px auto 0; padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 61, 127, 0.15); border: 1px solid rgba(255, 61, 127, 0.4);
  text-align: center; font-weight: 700;
}
.notice[hidden] { display: none; }
.muted { color: var(--soft); }
.center { text-align: center; padding: 48px 0; }
.center .big { font-size: 4rem; }

/* toast (stars earned etc.) */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: #221a5c; border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 20px; font-weight: 800; box-shadow: var(--shadow); z-index: 50;
  transition: transform 0.35s cubic-bezier(.2, 1.4, .4, 1);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---- packs page ---- */
.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px; line-height: 1.1; }
.hero p { color: var(--soft); font-size: 1.1rem; margin: 0 auto; max-width: 560px; }

.pass {
  margin: 32px auto 8px; background: var(--grad); border-radius: 24px; padding: 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; box-shadow: var(--shadow);
}
.pass h2 { margin: 0 0 4px; font-size: 1.7rem; }
.pass p { margin: 0; opacity: 0.95; }
.pass .price { font-family: 'Fredoka', sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.pass .price small { font-size: 0.9rem; font-weight: 500; opacity: 0.9; display: block; margin-top: 4px; }
.pass .btn { background: #fff; color: #e2462a; box-shadow: none; }
.pass-right { text-align: center; display: grid; gap: 12px; justify-items: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 28px 0 40px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; box-shadow: var(--shadow);
}
.card .emoji { font-size: 2.4rem; line-height: 1; }
.card h3 { margin: 0; font-size: 1.3rem; }
.card p { margin: 0; color: var(--soft); flex: 1; }
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.card .price { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.4rem; }
.card .count { color: var(--soft); font-size: 0.9rem; }
.card .btn { width: 100%; }
.tag {
  position: absolute; top: 16px; right: 16px; background: var(--gold); color: #3a2a00;
  font-weight: 800; font-size: 0.75rem; padding: 3px 10px; border-radius: 999px;
}
.owned { color: var(--green); font-weight: 800; }
.trust { text-align: center; color: var(--soft); font-size: 0.95rem; padding: 0 0 48px; }
.trust strong { color: var(--ink); }

@media (max-width: 640px) {
  .pass { grid-template-columns: 1fr; text-align: center; padding: 22px; }
  .pass .btn { width: 100%; }
  .pass-right { justify-items: stretch; }
}

.logo, .pill { white-space: nowrap; }
html, body { overflow-x: hidden; }
@media (max-width: 520px) {
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo .mark { width: 32px; height: 32px; font-size: 1rem; }
  .pill { padding: 7px 11px; font-size: .9rem; }
}

[hidden] { display: none !important; }

html { background: var(--bg); }

/* option chips (shared by every game) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  appearance: none; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 2px solid var(--line); border-radius: 999px; padding: 9px 16px;
}
.chip.on { border-color: var(--brand); background: rgba(255, 122, 61, 0.15); }

/* Scrollbars (Kita 2026-10-04: "fix the ugly scroller at the side" — her TV's browser drew a plain white bar):
   a slim pink-to-purple bar on a see-through track, on every page that loads this file. */
html { scrollbar-width: thin; scrollbar-color: #c04dff transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(#ff3dc8, #9b5cff); border-radius: 8px; }
::-webkit-scrollbar-corner { background: transparent; }
