/* Playhouse landing page */
:root {
  --maroon: #511b20;
  --maroon-deep: #2f0e12;
  --maroon-soft: #762e37;
  --gold: #f5cd62;
  --gold-deep: #d7a31a;
  --cream: #fbf8f2;
  --cream-2: #f3ece2;
  --ink: #291719;
  --muted: #796b6d;
  --line: #e8dfd6;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(47, 14, 18, 0.12);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }

.wrap { margin: 0 auto; max-width: var(--wrap); padding: 0 24px; }
.skip { left: -9999px; position: absolute; }
.skip:focus { background: var(--gold); border-radius: 8px; left: 16px; padding: 8px 14px; top: 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 8px; }

.eyebrow {
  align-items: center;
  color: var(--gold);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.eyebrow.dark { color: #a0700b; }
.eyebrow .dot { background: #35a269; border-radius: 50%; box-shadow: 0 0 0 4px rgba(53, 162, 105, 0.25); height: 8px; width: 8px; }
.gold { color: var(--gold); }
.sub { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 620px; }
.sub.light { color: rgba(255, 255, 255, 0.78); }

/* Buttons */
.btn {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  padding: 11px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); box-shadow: 0 8px 22px rgba(245, 205, 98, 0.35); color: var(--maroon-deep); }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-row.center { justify-content: center; }
.store {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  gap: 12px;
  min-width: 190px;
  padding: 11px 20px 11px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store:hover { transform: translateY(-3px); }
.store svg { height: 28px; width: 28px; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 19px; font-weight: 700; line-height: 1.1; }
.store small { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.8; }
.store-dark { background: #120708; border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.store-light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.store.soon { opacity: 0.72; }

/* Navigation */
.nav {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(47, 14, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner { align-items: center; display: flex; gap: 24px; height: 72px; }
.brand { align-items: center; color: #fff; display: inline-flex; font-size: 20px; font-weight: 800; gap: 10px; }
.brand img { border-radius: 11px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(255, 255, 255, 0.78); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--gold); }
.menu-btn { background: none; border: 0; cursor: pointer; display: none; margin-left: auto; padding: 8px; }
.menu-btn span { background: #fff; border-radius: 2px; display: block; height: 2px; margin: 5px 0; transition: transform 0.2s, opacity 0.2s; width: 22px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

/* Hero */
.hero {
  background: radial-gradient(circle at 80% 10%, #7a2a33 0%, transparent 45%), linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff;
  margin-top: -72px;
  overflow: hidden;
  padding: 150px 0 110px;
  position: relative;
}
.hero-glow { background: radial-gradient(circle, rgba(245, 205, 98, 0.18), transparent 65%); height: 700px; left: -200px; position: absolute; top: 160px; width: 700px; }
.hero-grid { align-items: center; display: grid; gap: 40px; grid-template-columns: 1.1fr 0.9fr; position: relative; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); font-weight: 800; }
.lead { color: rgba(255, 255, 255, 0.8); font-size: 18px; margin-top: 22px; max-width: 560px; }
.hero-stats { display: flex; gap: 34px; list-style: none; margin: 40px 0 0; padding: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { color: var(--gold); font-size: 30px; font-weight: 800; line-height: 1; }
.hero-stats span { color: rgba(255, 255, 255, 0.65); font-size: 13px; margin-top: 6px; }

.hero-visual { display: flex; justify-content: center; min-height: 600px; position: relative; }
.phone {
  background: #120708;
  border-radius: 46px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  height: 600px;
  padding: 12px;
  position: relative;
  transform: rotate(-4deg);
  width: 300px;
  animation: float 7s ease-in-out infinite;
}
.phone-notch { background: #120708; border-radius: 0 0 16px 16px; height: 24px; left: 50%; position: absolute; top: 12px; transform: translateX(-50%); width: 110px; z-index: 2; }
.screen { background: #f7f3ed; border-radius: 36px; color: var(--ink); height: 100%; overflow: hidden; padding: 38px 16px 16px; }
.s-top { align-items: center; display: flex; justify-content: space-between; }
.s-hello { color: var(--muted); font-size: 10px; }
.s-name { font-size: 15px; font-weight: 800; }
.s-avatar { align-items: center; background: var(--maroon); border-radius: 12px; color: var(--gold); display: flex; font-size: 14px; font-weight: 800; height: 34px; justify-content: center; width: 34px; }
.s-resume { display: flex; gap: 8px; margin-top: 12px; overflow: hidden; }
.s-resume-card { align-items: center; background: #fff; border: 1.5px solid var(--gold-deep); border-radius: 12px; display: flex; flex: none; gap: 7px; padding: 7px 8px; width: 150px; }
.s-resume-card i { align-items: center; background: var(--c); border-radius: 8px; color: #fff; display: flex; font-size: 13px; font-style: normal; height: 26px; justify-content: center; width: 26px; }
.s-resume-card div { display: flex; flex: 1; flex-direction: column; line-height: 1.2; }
.s-resume-card b { font-size: 10px; }
.s-resume-card small { color: var(--muted); font-size: 8px; }
.s-resume-card em { background: var(--maroon); border-radius: 5px; color: #fff; font-size: 6.5px; font-style: normal; font-weight: 700; padding: 3px 5px; }
.s-level { background: var(--maroon); border-radius: 18px; color: #fff; margin-top: 12px; padding: 14px; }
.s-level-top { align-items: center; display: flex; justify-content: space-between; }
.s-pill { background: rgba(245, 205, 98, 0.18); border-radius: 8px; color: var(--gold); font-size: 8px; font-weight: 700; padding: 3px 7px; }
.s-xp { font-size: 9px; font-weight: 700; opacity: 0.85; }
.s-level-num { font-size: 22px; font-weight: 800; margin-top: 6px; }
.s-track { background: rgba(255, 255, 255, 0.16); border-radius: 4px; height: 6px; margin-top: 6px; overflow: hidden; }
.s-fill { animation: fill 2.4s ease-out 0.4s both; background: #f0cf70; border-radius: 4px; height: 100%; width: 56%; }
.s-hint { font-size: 8px; margin-top: 6px; opacity: 0.7; }
.s-title { font-size: 12px; font-weight: 700; margin-top: 14px; }
.s-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.s-game { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 5px; padding: 10px 4px; }
.s-game span { align-items: center; background: var(--c); border-radius: 11px; color: #fff; display: flex; font-size: 17px; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.s-game b { font-size: 9px; }

.ball { align-items: center; background: #111; border-radius: 50%; box-shadow: inset -3px -3px 0 rgba(255, 255, 255, 0.08); color: #111; display: inline-flex; font-size: 0; height: 26px; justify-content: center; position: relative; width: 26px; }
.ball::after { align-items: center; background: #fff; border-radius: 50%; content: "8"; display: flex; font-size: 9px; font-weight: 800; height: 13px; justify-content: center; width: 13px; }
.s-game span.ball { background: var(--c); }
.ball.sm { height: auto; width: auto; }
.ball.sm::after { background: #fff; box-shadow: 0 0 0 7px #111; color: #111; }
.ball.lg { background: #111; height: 54px; width: 54px; }
.ball.lg::after { font-size: 15px; height: 26px; width: 26px; }

.chip {
  align-items: center;
  animation: bob 6s ease-in-out infinite;
  background: var(--c);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  font-size: 26px;
  height: 66px;
  justify-content: center;
  position: absolute;
  width: 66px;
  z-index: 3;
}
.chip-a { left: 2%; top: 60px; }
.chip-b { animation-delay: -1.5s; right: 2%; top: 30px; }
.chip-c { animation-delay: -3s; left: -2%; top: 330px; }
.chip-d { animation-delay: -2s; right: 0; top: 400px; }
.chip-e { animation-delay: -4s; bottom: 10px; left: 18%; }

@keyframes float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-14px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fill { from { width: 0; } }

/* Marquee */
.marquee { background: var(--gold); color: var(--maroon-deep); overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: -22px -10px 0; position: relative; z-index: 2; }
.marquee-track { animation: scroll 38s linear infinite; display: flex; gap: 46px; white-space: nowrap; width: max-content; }
.marquee span { font-size: 18px; font-weight: 800; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 110px 0; }
.section-cream { background: var(--cream-2); }
.section-dark { background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 100%); color: #fff; }
.section-head { margin-bottom: 44px; max-width: 720px; }

/* Games */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter { background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; transition: all 0.15s; }
.filter:hover { border-color: var(--maroon); }
.filter.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.game-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.game { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.game:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.game.hidden { display: none; }
.game-art { align-items: center; background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.22), transparent 55%), var(--c); display: flex; height: 132px; justify-content: center; position: relative; }
.game-art::after { border: 2px dashed rgba(255, 255, 255, 0.18); border-radius: 50%; content: ""; height: 190px; position: absolute; right: -60px; top: -70px; width: 190px; }

/* Game banners: the same scenes the app's game library draws (mobile/app/home.jsx),
   at the app's sizes, then enlarged a little to suit the wider cards. */
.scene { align-items: center; display: flex; flex-direction: column; height: 116px; justify-content: center; position: relative; transform: scale(1.12); width: 150px; z-index: 1; }
.scene.row { flex-direction: row; }
.scene.top { flex-direction: row; justify-content: center; align-items: flex-start; padding-top: 9px; }
.scene i, .scene b, .scene em { font-style: normal; }

.a-card { background: #fffdf8; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 9px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22); height: 88px; width: 60px; }
.whot-face, .whot-back { align-items: center; display: flex; justify-content: center; position: absolute; top: 14px; }
.whot-face { left: 23px; transform: rotate(-10deg); z-index: 2; }
.whot-face b { color: #511b20; font-size: 11px; font-weight: 800; left: 6px; line-height: 1; position: absolute; top: 5px; }
.whot-face b.flip { bottom: 5px; left: auto; right: 6px; top: auto; transform: rotate(180deg); }
.whot-face i { color: #511b20; font-size: 31px; line-height: 1; }
.whot-back { background: #511b20; right: 22px; transform: rotate(11deg); }
.whot-back span { color: #f2cf6b; font-size: 8px; font-weight: 800; transform: rotate(90deg); }

.a-card.bj { display: flex; flex-direction: column; padding: 7px; }
.a-card.bj.left { transform: rotate(-9deg); }
.a-card.bj.right { margin-left: -18px; transform: rotate(9deg); }
.a-card.bj b { color: #171719; font-size: 16px; font-weight: 800; line-height: 1.2; }
.a-card.bj i { color: #171719; font-size: 31px; line-height: 1.3; text-align: center; }
.a-card.bj.red b, .a-card.bj.red i { color: #c9293c; }
.a-21 { align-items: center; background: #e2bd57; border-radius: 50%; bottom: 9px; color: #30220d; display: flex; font-size: 10px; font-weight: 800; height: 30px; justify-content: center; position: absolute; right: 9px; width: 30px; }

.a-board { border: 3px solid #f5e5c7; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); display: grid; grid-template-columns: repeat(4, 22px); }
.a-board span { align-items: center; display: flex; height: 22px; justify-content: center; }
.a-board span.d { background: #604438; }
.a-board span.l { background: #efe0c5; }
.a-board.chess i { color: #111; font-size: 15px; line-height: 17px; }
.a-board.checkers i { border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%; height: 14px; width: 14px; }
.a-board.checkers i.dark { background: #202024; }
.a-board.checkers i.red { background: #d34e56; }

.a-ayo { background: #c88745; border: 3px solid #f1c77d; border-radius: 14px; display: grid; gap: 3px; grid-template-columns: repeat(6, 16px); padding: 7px; }
.a-ayo span { background: #6d391d; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; height: 28px; position: relative; }
.a-ayo i { background: #f0d074; border-radius: 3px; height: 6px; position: absolute; top: 6px; width: 6px; }
.a-ayo i.r { right: 5px; top: 9px; }

.a-ludo { background: #fff; border: 2px solid rgba(255, 255, 255, 0.8); height: 92px; position: relative; width: 92px; }
.a-ludo span { align-items: center; display: flex; height: 36px; justify-content: center; position: absolute; width: 36px; }
.a-ludo .q1 { background: #e0302f; left: 0; top: 0; }
.a-ludo .q2 { background: #1e9b52; right: 0; top: 0; }
.a-ludo .q3 { background: #1f6fd1; bottom: 0; left: 0; }
.a-ludo .q4 { background: #f4c20d; bottom: 0; right: 0; }
.a-ludo span i { background: rgba(255, 255, 255, 0.85); border-radius: 50%; height: 16px; width: 16px; }
.a-ludo b { align-items: center; background: #fff; border: 1px solid #ddd; color: #333; display: flex; font-size: 20px; height: 30px; justify-content: center; left: 29px; position: absolute; top: 29px; width: 30px; }

.a-pool { background: #5b3420; border: 1px solid #3a2014; border-radius: 9px; box-sizing: border-box; height: 78px; padding: 8px; position: relative; width: 138px; }
.a-pool .felt { background: #16784c; border-radius: 3px; height: 100%; overflow: hidden; position: relative; }
.a-ball { background: var(--b); border-radius: 50%; height: 11px; overflow: hidden; position: absolute; width: 11px; }
.a-ball.stripe { background: linear-gradient(#f7f4ea 22%, var(--b) 22% 78%, #f7f4ea 78%); }
.a-ball.solid::after, .a-ball.stripe::after { background: #fff; border-radius: 50%; content: ""; height: 5.7px; left: 2.65px; position: absolute; top: 2.65px; width: 5.7px; }
.a-pool .aim { background: rgba(255, 255, 255, 0.7); height: 1px; left: 33px; position: absolute; top: 30px; width: 42px; }
.a-pool .cue { background: #c89252; border-radius: 2px; height: 3px; left: -4px; position: absolute; top: 29px; width: 24px; }
.a-pool .pocket { background: #0d0d0f; border-radius: 50%; height: 12px; position: absolute; width: 12px; }

.a-well { background: #1b1719; border: 3px solid #511b20; border-radius: 8px; display: grid; gap: 1px; grid-template-columns: repeat(7, 10px); padding: 2px; }
.a-well span { background: #30282b; border: 1px solid #211b1d; border-radius: 2px; box-sizing: border-box; height: 10px; }
.a-well span.on { background: var(--b); border-color: rgba(255, 255, 255, 0.42); }
.a-well span.ghost { background: rgba(167, 107, 209, 0.18); border-color: rgba(167, 107, 209, 0.75); }
.a-next { align-items: center; background: #292225; border-radius: 8px; display: flex; flex-direction: column; gap: 2px; margin-left: 6px; padding: 5px 7px 6px; }
.a-next small { color: rgba(255, 255, 255, 0.6); font-size: 5.5px; font-weight: 700; margin-bottom: 1px; }
.a-next span { background: #52c7d9; border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 2px; box-sizing: border-box; height: 9px; width: 9px; }

.a-quiz { align-items: center; background: #fff; border-radius: 50%; color: #9a6b20; display: flex; flex-shrink: 0; font-size: 29px; font-weight: 800; height: 58px; justify-content: center; margin-right: 9px; width: 58px; }
.a-quiz-text { display: flex; flex-direction: column; }
.a-quiz-text b { color: #fff; font-size: 11px; font-weight: 800; }
.a-quiz-text small { color: rgba(255, 255, 255, 0.72); font-size: 6px; white-space: nowrap; }

.a-orb { border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 50%; height: 46px; position: absolute; width: 46px; }
.a-label { align-items: center; background: #fff; border-radius: 50%; display: flex; font-size: 9px; font-weight: 800; height: 48px; justify-content: center; position: relative; width: 48px; }

.a-wheel { align-items: center; background: #322532; border: 5px solid #f0c75e; border-radius: 50%; box-sizing: border-box; display: flex; height: 96px; justify-content: center; position: relative; width: 96px; }
.a-wheel i { border-radius: 50%; height: 16px; left: calc(50% - 8px); position: absolute; top: calc(50% - 8px); transform: rotate(var(--r)) translateY(-28px); width: 16px; }
.a-wheel b { align-items: center; background: #fff8e2; border-radius: 50%; color: #511b20; display: flex; font-size: 11px; font-weight: 800; height: 30px; justify-content: center; position: relative; width: 30px; }
.a-pointer { border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 13px solid #fff; height: 0; left: calc(50% - 8px); position: absolute; top: 6px; width: 0; }
.game-body { padding: 18px 20px 22px; }
.game-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.game-tags em { background: var(--cream-2); border-radius: 7px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 700; padding: 3px 9px; }
.game-tags em.live { background: rgba(53, 162, 105, 0.12); color: #268556; }
.game p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Features */
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.f-icon { align-items: center; background: var(--cream-2); border-radius: 16px; display: flex; font-size: 24px; height: 54px; justify-content: center; margin-bottom: 18px; width: 54px; }
.feature p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Levels */
.levels-grid { align-items: center; display: grid; gap: 60px; grid-template-columns: 1fr 1fr; }
.xp-list { display: grid; gap: 10px; list-style: none; margin: 28px 0 0; padding: 0; }
.xp-list li { align-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; color: rgba(255, 255, 255, 0.85); display: flex; font-size: 15px; gap: 12px; padding: 12px 16px; }
.xp-list b { color: var(--gold); min-width: 92px; }
.ladder { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.ladder li { align-items: center; background: rgba(255, 255, 255, 0.05); border-radius: 16px; display: grid; gap: 14px; grid-template-columns: 70px 90px 1fr; overflow: hidden; padding: 14px 18px; }
.ladder .lv { color: rgba(255, 255, 255, 0.6); font-size: 13px; font-weight: 600; }
.ladder b { font-size: 17px; }
.ladder i { background: rgba(255, 255, 255, 0.1); border-radius: 6px; display: block; height: 10px; overflow: hidden; position: relative; }
.ladder i::after { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 6px; content: ""; inset: 0 auto 0 0; position: absolute; transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); width: 0; }
.ladder.visible i::after { width: var(--w); }
.ladder li:first-child { background: linear-gradient(90deg, rgba(245, 205, 98, 0.22), rgba(245, 205, 98, 0.04)); border: 1px solid rgba(245, 205, 98, 0.4); }
.ladder li:first-child b { color: var(--gold); }

/* Cash Arena */
.arena { display: grid; gap: 40px; grid-template-columns: 0.9fr 1.1fr; }
.arena-card { align-self: start; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 38px; position: sticky; top: 100px; }
.age { align-items: center; background: var(--maroon); border-radius: 14px; color: var(--gold); display: inline-flex; font-size: 18px; font-weight: 800; height: 48px; justify-content: center; margin-bottom: 18px; width: 58px; }
.age.small { border-radius: 9px; font-size: 12px; height: 30px; margin: 0; width: 38px; flex: none; }
.arena-points { display: grid; gap: 14px; }
.point { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 18px; padding: 24px; }
.point > span { align-items: center; background: var(--cream-2); border-radius: 12px; color: var(--maroon); display: flex; flex: none; font-weight: 800; height: 40px; justify-content: center; width: 40px; }
.point p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.step-n { color: var(--gold-deep); font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 18px; }
.step p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* About */
.about { align-items: center; display: grid; gap: 60px; grid-template-columns: 0.75fr 1.25fr; }
.about-mark { display: flex; justify-content: center; }
.about-mark img { border-radius: 52px; box-shadow: 0 40px 80px rgba(81, 27, 32, 0.3); transform: rotate(-6deg); width: min(100%, 300px); height: auto; }
.values { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
.values div { background: var(--cream-2); border-radius: 18px; display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.values b { color: var(--maroon); }
.values span { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 700; list-style: none; padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--gold-deep); content: "+"; font-size: 26px; font-weight: 500; position: absolute; right: 0; top: 50%; transform: translateY(-50%); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Download */
.download { background: radial-gradient(circle at 50% 0%, #7a2a33, transparent 60%), linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 100%); color: #fff; padding: 110px 0; text-align: center; }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-icon { border-radius: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); margin-bottom: 26px; }
.download p { color: rgba(255, 255, 255, 0.78); font-size: 18px; margin-top: 14px; }
.device-hint { font-size: 14px !important; margin-top: 18px !important; min-height: 20px; }

/* Footer */
.footer { background: #1c0a0c; color: rgba(255, 255, 255, 0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; }
.footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer nav b { color: #fff; margin-bottom: 4px; }
.footer nav a:hover { color: var(--gold); }
.footer-copy { font-size: 14px; margin-top: 12px; }
.footer-note { align-items: flex-start; display: flex; font-size: 13px; gap: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-wrap: wrap; font-size: 12px; gap: 10px; justify-content: space-between; margin-top: 44px; padding-top: 22px; }

/* Toast */
.toast { background: var(--ink); border-radius: 14px; bottom: 24px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3); color: #fff; font-size: 14px; left: 50%; max-width: calc(100% - 32px); opacity: 0; padding: 12px 18px; pointer-events: none; position: fixed; transform: translate(-50%, 20px); transition: opacity 0.25s, transform 0.25s; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Scroll reveal (only when JS runs; see main.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { background: var(--maroon-deep); border-top: 1px solid rgba(255, 255, 255, 0.08); flex-direction: column; gap: 4px; padding: 12px 24px 22px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { color: #fff; font-weight: 600; padding: 10px 0; }
  .mobile-menu .btn { margin-top: 10px; }
  .hero { padding: 130px 0 90px; }
  .hero-grid, .levels-grid, .arena, .about { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-copy .store-row, .hero-stats { justify-content: center; }
  .game-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .arena-card { position: static; }
  .about-mark img { width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15px; }
  .section, .download { padding: 76px 0; }
  .hero { padding: 116px 0 70px; }
  .lead { font-size: 16px; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 24px; }
  .hero-visual { min-height: 520px; transform: scale(0.88); margin: -20px 0 -40px; }
  .chip { height: 54px; width: 54px; font-size: 21px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .game-grid, .feature-grid, .steps, .values { grid-template-columns: 1fr; }
  .ladder li { grid-template-columns: 58px 76px 1fr; padding: 12px 14px; }
  .arena-card { padding: 28px 22px; }
  .point { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .ladder i::after { width: var(--w); }
}

/* The pool ball draws its own "8"; hide the text the big icon size would show. */
