    :root {
      --line: rgba(159, 200, 236, 0.13);
      --text: #eef6ff;
      --muted: #94acc4;
      --accent: #5db9ff;
      --accent-2: #8ce0cf;
      --gold: #f3bf69;
      --danger: #ff8f8b;
      --panel: rgba(8, 19, 31, 0.9);
      --soft: rgba(255, 255, 255, 0.045);
      --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
      --r: 22px;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      color: var(--text);
      font-family: "Segoe UI", system-ui, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(93, 185, 255, 0.14), transparent 18%),
        radial-gradient(circle at bottom right, rgba(140, 224, 207, 0.08), transparent 22%),
        linear-gradient(180deg, #040b13 0%, #07111a 34%, #09131d 100%);
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: 0.18;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
      background-size: 32px 32px;
      mask-image: radial-gradient(circle at center, black 45%, transparent 82%);
    }
    button { font: inherit; cursor: pointer; }
    .page { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 24px; }

    .nav,.hero-card,.card,.stat-card,.match-row,.badge-card,.section-shell {
      border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
    }

    /* Nav */
    .nav {
      display: flex; justify-content: space-between; align-items: center; gap: 14px;
      padding: 14px 18px; margin-bottom: 18px; background: rgba(7, 18, 29, 0.72); backdrop-filter: blur(18px);
    }
    .brand { display: flex; align-items: center; gap: 12px; }
    .mark { width: 40px; height: 40px; border-radius: 14px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.16), transparent 36%), linear-gradient(135deg, #1c5d93, #0f2c48); }
    .brand h1 { margin: 0; font-size: 20px; letter-spacing: 0.04em; }
    .brand h1 span { color: var(--accent); }
    .brand p { margin: 0; color: var(--muted); font-size: 12px; }
    .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
    .nav-links span { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.04); color: var(--muted); font-size: 12px; font-weight: 700; }
    .nav-links .active { color: var(--text); background: rgba(93,185,255,0.08); border: 1px solid rgba(93,185,255,0.22); }

    /* Hero Profile Card */
    .hero-card {
      display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
      padding: 28px 24px; margin-bottom: 18px;
      background: linear-gradient(160deg, rgba(9, 24, 38, 0.92), rgba(7, 18, 29, 0.96));
    }
    .avatar {
      width: 96px; height: 96px; border-radius: 28px; display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, rgba(93,185,255,0.28), rgba(140,224,207,0.12));
      font-size: 36px; font-weight: 900; color: var(--text);
      border: 2px solid rgba(93,185,255,0.3);
    }
    .hero-info h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.02em; }
    .hero-info .subtitle { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
    .hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
    .tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(159,200,236,0.12); background: rgba(255,255,255,0.04); font-size: 12px; font-weight: 700; color: var(--muted); }
    .tag.gold { border-color: rgba(243,191,105,0.24); background: rgba(243,191,105,0.1); color: #ffe9bf; }
    .tag.accent { border-color: rgba(93,185,255,0.24); background: rgba(93,185,255,0.1); color: #dff2ff; }
    .tag.mint { border-color: rgba(140,224,207,0.24); background: rgba(140,224,207,0.1); color: #c8f7ec; }
    .hero-actions { display: flex; flex-direction: column; gap: 10px; }
    .btn { padding: 12px 18px; border-radius: 16px; border: 1px solid rgba(159,200,236,0.12); background: rgba(255,255,255,0.05); color: #dcecff; font-size: 14px; font-weight: 700; text-align: center; }
    .btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04111b; border-color: transparent; }

    /* Stats Grid */
    .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
    .stat-card { padding: 18px; background: var(--soft); text-align: center; }
    .stat-card .value { font-size: 32px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 4px; }
    .stat-card .value.accent { color: var(--accent); }
    .stat-card .value.gold { color: var(--gold); }
    .stat-card .value.mint { color: var(--accent-2); }
    .stat-card .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }

    /* Tabs */
    .tabs-bar { display: flex; gap: 8px; padding: 6px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); margin-bottom: 18px; flex-wrap: wrap; }
    .tab-btn { border: 0; padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 700; color: var(--muted); background: transparent; }
    .tab-btn.active { color: var(--text); background: rgba(255,255,255,0.98); color: #07111a; }

    /* Section Shell */
    .section-shell { padding: 20px; margin-bottom: 18px; background: linear-gradient(160deg, rgba(9,24,38,0.92), rgba(7,18,29,0.96)); }
    .section-shell h3 { margin: 0 0 14px; font-size: 20px; }
    .section-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

    /* Ranking per game */
    .ranking-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .rank-card { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--soft); }
    .rank-card .game-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
    .rank-card .elo { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
    .rank-card .elo.up { color: var(--accent-2); }
    .rank-card .rank-meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
    .rank-card .trend { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-top: 8px; }
    .rank-card .trend.positive { background: rgba(140,224,207,0.12); color: #8ce0cf; border: 1px solid rgba(140,224,207,0.2); }
    .rank-card .trend.negative { background: rgba(255,143,139,0.1); color: #ff8f8b; border: 1px solid rgba(255,143,139,0.18); }

    /* Match History */
    .match-list { display: grid; gap: 10px; }
    .match-row { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--soft); }
    .match-row .result { font-size: 14px; font-weight: 800; padding: 6px 12px; border-radius: 12px; text-align: center; }
    .match-row .result.win { background: rgba(140,224,207,0.14); color: #8ce0cf; border: 1px solid rgba(140,224,207,0.22); }
    .match-row .result.loss { background: rgba(255,143,139,0.1); color: #ff8f8b; border: 1px solid rgba(255,143,139,0.18); }
    .match-row .result.draw { background: rgba(159,200,236,0.1); color: var(--muted); border: 1px solid rgba(159,200,236,0.14); }
    .match-row .opponent { font-weight: 700; }
    .match-row .game-type { color: var(--muted); font-size: 13px; }
    .match-row .elo-change { font-size: 14px; font-weight: 700; }
    .match-row .elo-change.pos { color: var(--accent-2); }
    .match-row .elo-change.neg { color: var(--danger); }
    .match-row .time-ago { color: var(--muted); font-size: 12px; white-space: nowrap; }

    /* Achievements */
    .badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
    .badge-card { padding: 16px; background: var(--soft); text-align: center; }
    .badge-card .icon { font-size: 36px; margin-bottom: 8px; }
    .badge-card .badge-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
    .badge-card .badge-desc { color: var(--muted); font-size: 12px; line-height: 1.5; }
    .badge-card.locked { opacity: 0.45; }
    .badge-card.locked .icon { filter: grayscale(1); }

    /* Responsive */
    @media (max-width: 1100px) {
      .hero-card { grid-template-columns: auto 1fr; }
      .hero-actions { flex-direction: row; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .ranking-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 760px) {
      .page { padding: 16px; }
      .hero-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
      .hero-tags { justify-content: center; }
      .hero-actions { flex-direction: row; justify-content: center; }
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .ranking-grid { grid-template-columns: 1fr; }
      .match-row { grid-template-columns: 60px 1fr auto; }
      .match-row .game-type, .match-row .time-ago { display: none; }
      .nav { flex-direction: column; }
    }
