:root {
  --bg: #f4f1e8;
  --surface: #fffdf7;
  --ink: #1f2725;
  --muted: #6f7975;
  --line: #d7d8d2;
  --accent: #2f6555;
  --accent-2: #d9eadf;
  --gold: #c59a43;
  --danger: #8c3f3f;
  --shadow: 0 14px 36px rgba(31,39,37,.09);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", system-ui, sans-serif; }
body { margin: 0; min-height: 100vh; background:
  radial-gradient(circle at 10% 0%, rgba(47,101,85,.10), transparent 30rem),
  var(--bg); }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1080px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 48px; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:26px; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.brand-mark { width:44px; height:44px; display:grid; place-items:center; background:var(--ink); color:white; border-radius:14px; font-weight:900; letter-spacing:-1px; }
.brand h1 { font-size:1.15rem; margin:0; }
.brand p { margin:2px 0 0; color:var(--muted); font-size:.82rem; }
.profile-pill { border:1px solid var(--line); background:rgba(255,255,255,.7); border-radius:999px; padding:7px 10px 7px 7px; display:flex; align-items:center; gap:8px; color:var(--ink); }
.avatar { width:30px; height:30px; border-radius:50%; background:var(--accent); color:white; display:grid; place-items:center; font-weight:800; }
.hero { display:grid; grid-template-columns: 1.4fr .8fr; gap:18px; align-items:stretch; margin-bottom:18px; }
.card { background:rgba(255,253,247,.92); border:1px solid rgba(215,216,210,.9); border-radius:var(--radius); box-shadow:var(--shadow); }
.hero-main { padding:30px; }
.eyebrow { color:var(--accent); font-weight:800; text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; }
.hero h2 { font-size:clamp(2rem,5vw,4rem); line-height:.95; letter-spacing:-.055em; margin:10px 0 14px; max-width:700px; }
.hero p { margin:0; max-width:650px; color:var(--muted); font-size:1.02rem; line-height:1.55; }
.hero-side { padding:22px; display:flex; flex-direction:column; justify-content:space-between; }
.hero-side strong { font-size:2.4rem; letter-spacing:-.05em; }
.small { color:var(--muted); font-size:.86rem; line-height:1.45; }
.section-title { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:28px 4px 12px; }
.section-title h3 { margin:0; font-size:1.15rem; }
.game-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.game-card { padding:20px; text-decoration:none; color:inherit; transition:.18s transform, .18s box-shadow; }
.game-card:hover { transform:translateY(-2px); box-shadow:0 18px 42px rgba(31,39,37,.13); }
.game-icon { width:58px; height:58px; border-radius:17px; background:var(--accent-2); color:var(--accent); display:grid; place-items:center; font-weight:900; margin-bottom:20px; }
.game-card h4 { margin:0 0 6px; font-size:1.25rem; }
.game-card p { margin:0; color:var(--muted); line-height:1.45; }
.leaderboard { overflow:hidden; }
.rank-row { display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:10px; padding:14px 18px; border-top:1px solid var(--line); }
.rank-row:first-child { border-top:0; }
.rank { font-weight:900; color:var(--muted); }
.rank-name { display:flex; align-items:center; gap:10px; font-weight:750; }
.points { font-weight:900; font-variant-numeric:tabular-nums; }
.points span { color:var(--muted); font-size:.74rem; font-weight:650; margin-left:4px; }
.profile-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-top:14px; }
.profile-choice { border:1px solid var(--line); background:white; border-radius:16px; padding:14px; display:flex; align-items:center; gap:10px; text-align:left; }
.profile-choice.selected { border-color:var(--accent); box-shadow:0 0 0 2px rgba(47,101,85,.12); }
.install-note { margin-top:18px; padding:15px 18px; border-radius:16px; background:rgba(47,101,85,.08); color:#3d514a; font-size:.88rem; line-height:1.45; }
.footer { text-align:center; color:var(--muted); font-size:.78rem; margin-top:34px; }
@media (max-width:720px) {
  .shell { width:min(100% - 20px,1080px); padding-top:12px; }
  .hero { grid-template-columns:1fr; }
  .hero-main { padding:24px 20px; }
  .hero-side { min-height:160px; }
  .brand p { display:none; }
}

.game-icon img { width:100%;height:100%;object-fit:contain;border-radius:inherit; }
