    :root {
      --bg: #0b0f14;
      --bg-elev: #141922;
      --panel: rgba(20, 25, 34, 0.92);
      --panel-soft: rgba(42, 27, 15, 0.24);
      --line: #3a2a1d;
      --line-strong: #6b3f1d;
      --text: #f8fafc;
      --muted: #cbd5e1;
      --primary: #f59e0b;
      --primary-hover: #d97706;
      --bronze: #b45309;
      --success: #22c55e;
      --danger: #ef4444;
      --shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    }

    * { box-sizing: border-box; }
    html, body { width: 100%; overflow-x: hidden; }
    body {
      margin: 0;
      color: var(--text);
      font-family: Inter, Segoe UI, Arial, sans-serif;
      background:
        radial-gradient(1200px 600px at 15% -20%, rgba(245, 158, 11, 0.16), transparent 55%),
        radial-gradient(900px 420px at 90% 0%, rgba(180, 83, 9, 0.14), transparent 60%),
        linear-gradient(180deg, rgba(11,15,20,.88) 0%, rgba(15,20,28,.86) 100%),
        url('/assets/bg-awp-dragon-lore.jpg') center/cover fixed no-repeat;
      min-height: 100vh;
      padding: 22px;
      letter-spacing: 0.01em;
    }

    .wrap { max-width: 1220px; margin: 0 auto; display: grid; gap: 18px; width: 100%; min-width: 0; }
    .card {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: linear-gradient(180deg, var(--panel) 0%, rgba(16, 21, 30, 0.94) 100%);
      box-shadow: var(--shadow);
      padding: 18px;
    }

    .top {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 14px;
      align-items: center;
      border-color: var(--line-strong);
      background:
        linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(20, 25, 34, 0.96) 35%),
        linear-gradient(180deg, var(--panel) 0%, rgba(16, 21, 30, 0.96) 100%);
    }
    .title { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: .01em; }
    .muted { color: var(--muted); }
    .section-title {
      margin: 0 0 12px;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #f6c783;
      font-weight: 700;
    }

    .profile-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; min-width: 0; }
    .about { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; }
    .avatar {
      width: 88px;
      height: 88px;
      border-radius: 999px;
      background: linear-gradient(145deg, #f59e0b, #b45309);
      display: grid;
      place-items: center;
      font-weight: 800;
      font-size: 30px;
      color: #fffaf0;
      border: 2px solid rgba(248, 250, 252, 0.28);
      box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
    }

    .stats { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 10px; }
    .stat {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px;
      background: linear-gradient(180deg, rgba(20, 25, 34, 0.9), rgba(14, 18, 26, 0.95));
    }
    .stat strong { display: block; font-size: 22px; margin-top: 6px; font-variant-numeric: tabular-nums; }
    .stat small { display: block; margin-top: 5px; font-size: 12px; }

    .chart-wrap { margin-top: 16px; }
    .chart-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
    .chart {
      width: 100%;
      height: 220px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: linear-gradient(180deg, #111722, #0d131c);
      padding: 10px;
    }
    .empty { color: var(--muted); font-size: 13px; }

    #toast {
      position: fixed;
      left: 50%;
      top: 24px;
      transform: translateX(-50%);
      padding: 10px 14px;
      border-radius: 10px;
      font-weight: 700;
      border: 1px solid var(--line);
      background: rgba(15, 23, 42, 0.94);
      color: var(--text);
      z-index: 3000;
      opacity: 0;
      pointer-events: none;
      transition: opacity .15s ease;
      box-shadow: var(--shadow);
    }
    #toast.show { opacity: 1; }
    #toast.success { background: rgba(22, 101, 52, 0.94); border-color: var(--success); }
    #toast.info { background: rgba(20, 25, 34, 0.96); border-color: var(--primary); }
    #toast.error { background: rgba(127, 29, 29, 0.94); border-color: var(--danger); }

    .toolbar {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      margin-top: 6px;
    }

    select, button, input {
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--bg-elev);
      color: var(--text);
      padding: 8px 10px;
      transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }
    button { cursor: pointer; }
    button:hover, select:hover, input:hover { border-color: #8a5126; }
    button:focus-visible, select:focus-visible, input:focus-visible {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28);
    }

    button.primary {
      background: linear-gradient(180deg, var(--primary), var(--primary-hover));
      color: #1e1408;
      border-color: transparent;
      font-weight: 700;
    }
    button.primary:hover { filter: brightness(1.02); }

    .icon-btn {
      background: transparent;
      border: 1px solid var(--line);
      color: var(--text);
      padding: 5px 8px;
      margin-right: 4px;
    }

    table { width: 100%; border-collapse: collapse; margin-top: 12px; display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
    thead, tbody { width: 100%; }
    th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; font-size: 14px; }
    th { position: sticky; top: 0; background: #111821; z-index: 1; }
    td.right { font-variant-numeric: tabular-nums; }
    tbody tr:hover { background: rgba(245, 158, 11, 0.08); }
    tbody tr.manual-row { background: rgba(104, 46, 16, 0.26); }
    tbody tr.manual-row:hover { background: rgba(125, 57, 22, 0.42); }

    .right { text-align: right; }
    .chip {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 2px 8px;
      font-size: 12px;
      color: #e8d7c7;
      background: rgba(180, 83, 9, 0.16);
    }

    .nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .table-shell { border-top: 1px solid var(--line-strong); }
    .clickable-row { cursor: pointer; }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(7, 10, 14, 0.76);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      z-index: 2000;
      backdrop-filter: blur(2px);
    }
    .modal-backdrop.open { display: flex; }
    .modal {
      width: min(720px, 100%);
      border: 1px solid var(--line);
      border-radius: 16px;
      background: linear-gradient(180deg, #111722, #0c121a);
      box-shadow: 0 24px 48px rgba(0, 0, 0, .48);
      overflow: hidden;
    }
    .modal-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(90deg, rgba(180, 83, 9, 0.26), rgba(17, 24, 39, 0.9));
    }
    .modal-grid {
      padding: 14px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .meta-block { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: rgba(20, 25, 34, .5); }
    .meta-label { color: var(--muted); font-size: 12px; }
    .meta-value { margin-top: 4px; font-weight: 600; white-space: pre-wrap; word-break: break-word; }

    .settings-modal {
      width: min(860px, 100%);
      background: linear-gradient(180deg, #101620 0%, #0d131b 100%);
      border-color: var(--line-strong);
      box-shadow: 0 28px 60px rgba(2, 6, 23, 0.65);
    }
    .settings-head {
      background: linear-gradient(90deg, rgba(245, 158, 11, 0.24), rgba(30, 41, 59, 0.88));
      border-bottom-color: #7c4a23;
      padding: 14px 16px;
    }
    .settings-title { display: flex; align-items: center; gap: 8px; }
    .settings-subtitle { color: var(--muted); font-size: 12px; margin-top: 3px; }
    .settings-modal-body { padding: 16px; display: grid; gap: 14px; }
    .settings-section {
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(17, 23, 33, 0.74);
      padding: 12px;
    }
    .settings-section h4 { margin: 0 0 10px; color: var(--text); }

    .game-wrap { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: linear-gradient(180deg, #111722, #0d131c); }
    .game-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
    .game-meta { color: var(--muted); font-size: 12px; }
    .game-score { font-weight: 700; }
    .game-timer { font-weight: 700; color: #f9c67a; }
    .game-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .game-option { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #121927; color: var(--text); text-align: left; }
    .game-option-thumb { width: 144px; height: 144px; border-radius: 10px; border: 1px solid #5a3b24; object-fit: cover; background: #0b1220; margin: 0 auto 8px; display: block; }
    .game-option.selected { outline: 2px solid var(--primary); }
    .game-option.winner { outline: 2px solid var(--success); }
    .game-option.loser { opacity: 0.75; }
    .game-option-title { font-weight: 700; }
    .game-option-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
    .game-option-price { margin-top: 6px; font-size: 13px; }
    .profile-movers { margin-top: 14px; }
    .profile-movers-grid { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
    .profile-movers-col { border:1px solid var(--line); border-radius:10px; background:rgba(17,23,33,.7); padding:10px; min-height:140px; }
    .profile-movers-title { font-size:12px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
    .profile-movers-list { display:grid; gap:6px; }
    .profile-mover-item { border:1px solid rgba(58,42,29,.95); border-radius:8px; padding:7px; background:rgba(17,23,33,.75); font-size:12px; }
    .profile-mover-name { color:var(--text); font-weight:600; }
    .profile-mover-meta { color:var(--muted); }
    .profile-mover-up { color: var(--success); font-weight:700; }
    .profile-mover-down { color: var(--danger); font-weight:700; }

    .confetti-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 2500; }
    .confetti-piece { position: absolute; top: -20px; font-size: 18px; animation: confetti-fall 1800ms linear forwards; }
    @keyframes confetti-fall { to { transform: translateY(110vh) rotate(360deg); opacity: .2; } }

    @media (max-width: 1100px) {
      .top { grid-template-columns: 1fr; }
      .nav { justify-content: flex-start; }
    }
    @media (max-width: 980px) {
      body { padding: 14px; }
      .profile-grid { grid-template-columns: 1fr; }
      .stats { grid-template-columns: 1fr 1fr; }
      .modal-grid { grid-template-columns: 1fr; }
      .game-options { grid-template-columns: 1fr; }
      .profile-movers-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 760px) {
      .table-shell table {
        display: table;
        table-layout: fixed;
        width: 100%;
      }
      .table-shell thead { display: table-header-group; }
      .table-shell th,
      .table-shell td {
        font-size: 12px;
        padding: 7px 5px;
        white-space: nowrap;
      }

      /* Compact portrait view: show only Image + Skin name + Current € */
      .table-shell th:nth-child(2), .table-shell td:nth-child(2),
      .table-shell th:nth-child(4), .table-shell td:nth-child(4),
      .table-shell th:nth-child(5), .table-shell td:nth-child(5),
      .table-shell th:nth-child(6), .table-shell td:nth-child(6),
      .table-shell th:nth-child(7), .table-shell td:nth-child(7),
      .table-shell th:nth-child(9), .table-shell td:nth-child(9),
      .table-shell th:nth-child(10), .table-shell td:nth-child(10),
      .table-shell th:nth-child(11), .table-shell td:nth-child(11) {
        display: none;
      }

      .table-shell td:nth-child(1) img,
      .table-shell td:nth-child(1) div {
        width: 30px !important;
        height: 22px !important;
      }

      .table-shell td:nth-child(3) {
        max-width: 132px;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .table-shell td:nth-child(11) {
        white-space: normal;
      }
      .table-shell .icon-btn {
        margin-right: 3px;
        padding: 3px 6px;
      }
    }

    @media (max-width: 640px) {
      body { padding: 10px; }
      .wrap { max-width: 100%; gap: 12px; }
      .card { padding: 14px; border-radius: 14px; }
      .title { font-size: 22px; line-height: 1.2; }
      .stats { grid-template-columns: 1fr; }
      .about { grid-template-columns: 1fr; justify-items: start; }
      .avatar { width: 72px; height: 72px; font-size: 24px; }

      .nav { width: 100%; }
      .nav button {
        flex: 1 1 calc(50% - 6px);
        min-height: 42px;
      }

      .toolbar > * {
        width: 100%;
        max-width: 100% !important;
      }

      select, button, input {
        font-size: 16px;
        min-height: 42px;
      }

      .game-option-thumb { width: 120px; height: 120px; }
      th, td { font-size: 13px; padding: 9px 6px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; }
    }
  
