/* Playzards: a night sky, violet and gold magic, and the games' gems floating by. */

@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --night: #0a0e24;
  --night-2: #12183a;
  --night-3: #1b2350;
  --violet: #8b5cf6;
  --violet-2: #b79bff;
  --gold: #ffc93c;
  --gold-2: #ffe27a;
  --cyan: #5fd3ff;
  --text: #eef1ff;
  --muted: #aab3d9;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(183, 155, 255, 0.18);
  --radius: 22px;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 700px at 70% -10%, #2b1a6b 0%, transparent 60%),
              radial-gradient(900px 600px at 0% 30%, #10295e 0%, transparent 60%),
              linear-gradient(180deg, var(--night) 0%, var(--night-2) 60%, var(--night) 100%);
  background-color: var(--night);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- the night sky ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.6; animation: twinkle 4s ease-in-out infinite; }
.star.big { width: 5px; height: 5px; box-shadow: 0 0 10px 2px rgba(255, 233, 168, 0.6); background: var(--gold-2); }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 0.95; transform: scale(1.15); } }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 36, 0.6);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.5px; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
nav.links { display: flex; gap: 26px; font-weight: 700; }
nav.links a { color: var(--muted); }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; text-align: center; padding: 96px 0 120px; }
.hero .hat { width: 150px; margin: 0 auto -18px; filter: drop-shadow(0 18px 30px rgba(124, 78, 242, 0.55)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.wordmark {
  font-family: var(--display); font-weight: 700; margin: 0;
  font-size: clamp(64px, 12vw, 140px); line-height: 1; letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff 0%, #e2d7ff 55%, #b79bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(54, 20, 140, 0.55)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}
.tagline { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3.6vw, 36px); margin: 18px 0 6px; color: var(--gold-2); }
.lede { max-width: 640px; margin: 0 auto 34px; color: var(--muted); font-size: 20px; }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 20px; color: #1a1033;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 6px 0 #b9790c, 0 14px 30px rgba(255, 201, 60, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 0 #b9790c, 0 18px 34px rgba(255, 201, 60, 0.35); }
.btn.ghost { color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet-2); }

/* floating gems */
.gem { position: absolute; z-index: -1; opacity: 0.9; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45)); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-22px) rotate(calc(var(--r, 0deg) + 10deg)); } }

/* ---------- sections ---------- */
section { position: relative; z-index: 1; padding: 84px 0; }
.eyebrow { font-family: var(--display); font-weight: 600; color: var(--violet-2); letter-spacing: 3px; text-transform: uppercase; font-size: 15px; margin: 0 0 8px; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; }
.muted { color: var(--muted); }

/* the game */
.eyebrow.spell { display: flex; align-items: center; gap: 10px; }
.wand { width: 46px; height: 46px; margin: -8px 0; flex: none; overflow: visible; transform-origin: 15% 85%; filter: drop-shadow(0 0 6px rgba(255, 201, 60, 0.45)); animation: wave 3.2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-12deg); } }
.wand .spark { transform-box: fill-box; transform-origin: center; animation: sparkle 1.8s ease-in-out infinite; }
.wand .s2 { animation-delay: -0.6s; }
.wand .s3 { animation-delay: -1.2s; }
@keyframes sparkle { 0%, 100% { opacity: 0.5; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.15); } }
.game { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.game-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-head img { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.game-head h3 { font-family: var(--display); font-size: 40px; margin: 0; line-height: 1; }
.game-head p { margin: 6px 0 0; color: var(--gold-2); font-weight: 700; }
.points { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 5px; background: linear-gradient(135deg, var(--violet-2), var(--violet)); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: #000; border: 1px solid #3a3f5a; color: #fff; font-weight: 700; }
.badge small { display: block; font-size: 11px; font-weight: 600; color: #b8bdd6; letter-spacing: 0.5px; line-height: 1.1; }
.badge .play { width: 24px; height: 24px; }

.phones { position: relative; height: 620px; }
.phone {
  position: absolute; width: 250px; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #2a2f4f, #11142a);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 26px; }
.phone.a { left: 0; top: 70px; transform: rotate(-8deg); }
.phone.b { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.phone.c { right: 0; top: 80px; transform: rotate(8deg); }

/* the Playzards way */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(183, 155, 255, 0.45); }
.card svg { width: 46px; height: 46px; margin-bottom: 12px; }
.card h3 { font-family: var(--display); font-size: 23px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }

/* soon strip */
.soon { text-align: center; background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(95, 211, 255, 0.12)); border: 1px solid var(--line); border-radius: 30px; padding: 54px 24px; }
.soon h2 { margin-bottom: 8px; }

/* ---------- pages (privacy, support) ---------- */
.page { position: relative; z-index: 1; padding: 64px 0 90px; }
.page article { background: rgba(18, 24, 58, 0.72); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 56px); max-width: 860px; margin: 0 auto; }
.page h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 54px); margin: 0 0 6px; }
.page h2 { font-size: 28px; margin: 36px 0 8px; }
.page h3 { font-family: var(--display); font-size: 21px; margin: 24px 0 4px; }
.page li { margin: 6px 0; }
.note { background: rgba(255, 201, 60, 0.12); border: 1px solid rgba(255, 201, 60, 0.4); border-radius: 14px; padding: 12px 16px; color: var(--gold-2); font-weight: 700; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 21px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--violet-2); }
details[open] summary::after { content: "–"; }
details p { margin: 8px 0 0; color: var(--muted); }

/* ---------- footer ---------- */
footer.site { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); }
footer.site .wrap { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; }
footer.site nav a { color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .phones { height: 520px; max-width: 520px; margin: 0 auto; }
  .phone { width: 200px; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  nav.links { gap: 16px; font-size: 15px; }
  .brand { font-size: 22px; }
  .hero { padding: 64px 0 90px; }
  .hero .gem { width: 52px !important; opacity: 0.55; }
  .phones { height: 400px; }
  .phone { width: 150px; border-radius: 24px; padding: 7px; }
  .phone img { border-radius: 18px; }
  .cards { grid-template-columns: 1fr; }
}

/* Calm down for players who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
