/* Kaboom Invite Rewards — theme mirrored from kaboomrust.com
   (Tailwind "rust / industrial / tactical" palette). */
:root {
    --rust-400: #dd7c2a;
    --rust-500: #cd6517;
    --rust-600: #a94c11;
    --industrial-600: #333333;
    --industrial-700: #252525;
    --industrial-800: #1a1a1a;
    --industrial-900: #111111;
    --industrial-950: #0a0a0a;
    --amber: #fbbf24;
    --tactical: #65a30d;   /* success / qualified */
    --blood: #dc2626;      /* danger / rejected */
    --discord: #5865f2;
    --text: #ededed;
    --text-dim: #9ca3af;
    --border: #252525;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    color: var(--text);
    background-color: var(--industrial-950);
    /* subtle rust-tinted grid, exactly as on the main site */
    background-image:
        linear-gradient(#cd651708 1px, transparent 1px),
        linear-gradient(90deg, #cd651708 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
    line-height: 1.55;
}

a { color: var(--rust-400); text-decoration: none; }
a:hover { color: var(--amber); }

.container { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 10;
}
header.site .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand {
    font-weight: 900; font-size: 22px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text);
}
.brand .boom { color: var(--rust-500); }
.brand .sub {
    display: block; font-size: 10px; letter-spacing: 3px;
    color: var(--text-dim); font-weight: 600; margin-top: -4px;
}
.nav-user { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-user img { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--border); }

/* Hero */
.hero { text-align: center; padding: 64px 0 40px; }
.hero h1 {
    font-size: clamp(32px, 6vw, 52px); font-weight: 900;
    text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px;
    line-height: 1.05;
}
.hero h1 .accent { color: var(--rust-500); }
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 620px; margin: 0 auto 32px; }

/* Reward callouts */
.reward-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 28px 0; }
.reward-chip {
    background: var(--industrial-800); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 26px; min-width: 180px;
}
.reward-chip .rp { font-size: 34px; font-weight: 900; color: var(--amber); }
.reward-chip .rp small { font-size: 16px; color: var(--amber); }
.reward-chip .who { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 15px; cursor: pointer;
    padding: 12px 22px; border-radius: var(--radius);
    border: 1px solid transparent; transition: all 0.15s ease;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary { background: var(--rust-500); color: #fff; }
.btn-primary:hover { background: var(--rust-400); color: #fff; }
.btn-steam { background: #171a21; color: #fff; border-color: #2a3f5a; }
.btn-steam:hover { background: #1b2838; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--rust-500); color: var(--rust-400); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* Cards */
.card {
    background: var(--industrial-900); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; margin: 18px 0;
}
.card h2 {
    margin: 0 0 16px; font-size: 15px; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-dim); font-weight: 700;
}

/* Invite link box */
.link-box { display: flex; gap: 10px; flex-wrap: wrap; }
.link-box input {
    flex: 1; min-width: 220px; background: var(--industrial-950);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--rust-400); font-family: ui-monospace, monospace; font-size: 15px;
    padding: 12px 14px;
}

/* Stat grid */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat { background: var(--industrial-800); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat .n { font-size: 28px; font-weight: 900; }
.stat .n.amber { color: var(--amber); }
.stat .n.rust { color: var(--rust-500); }
.stat .l { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }

/* Referral / friend rows */
.row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: none; }
.row img { width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--border); }
.row .name { font-weight: 600; flex: 1; }
.row .meta { color: var(--text-dim); font-size: 13px; }

/* Status badges */
.badge {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge.pending  { background: #3a2a10; color: var(--amber); border: 1px solid #5a3f15; }
.badge.joined   { background: #2a2410; color: var(--rust-400); border: 1px solid #4a3a15; }
.badge.qualified{ background: #1c2a10; color: #9bd65b; border: 1px solid #35521a; }
.badge.rejected { background: #2a1010; color: #f08a8a; border: 1px solid #522020; }

/* Progress bar (referred player's own playtime toward reward) */
.progress { height: 10px; background: var(--industrial-800); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--rust-600), var(--rust-400)); }

/* Flash / notices */
.flash {
    background: #1c2a10; border: 1px solid #35521a; color: #b6e086;
    border-radius: var(--radius); padding: 14px 18px; margin: 18px 0;
}
.muted { color: var(--text-dim); font-size: 14px; }
.center { text-align: center; }

footer.site { text-align: center; color: var(--text-dim); font-size: 13px; padding: 40px 0; }

/* toast */
.copied { color: var(--tactical); font-size: 13px; margin-left: 8px; opacity: 0; transition: opacity 0.2s; }
.copied.show { opacity: 1; }
