/* Landmark Rush website and admin. Car-type colours: muscle red, balanced blue, sports yellow. */
:root {
    --bg: #0d0f14;
    --bg-elev: #12161f;
    --panel: #161a22;
    --line: #262c38;
    --line-strong: #364156;
    --text: #e9edf3;
    --muted: #9aa3b2;
    --red: #e5483f;
    --blue: #3d8bfd;
    --yellow: #f5c518;
    --ok: #3ccf8e;
    --radius: 12px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.1em 0.35em;
    word-break: break-all;
}

h1, h2, h3 { line-height: 1.25; }

.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.error { color: var(--red); }
.ok { color: var(--ok); }

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--yellow);
    color: #111;
    border: 1px solid var(--yellow);
    border-radius: 999px;
    padding: 0.65em 1.45em;
    font: 700 0.96rem/1.2 var(--font);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.button:hover { filter: brightness(1.07); text-decoration: none; transform: translateY(-1px); }
.button.ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line-strong); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--muted); }
.button.small { padding: 0.4em 0.95em; font-size: 0.85rem; }
.button.danger { color: var(--red); border-color: var(--red); background: transparent; }
button.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
form.inline { display: inline; }

input, select, textarea {
    font: inherit;
    color: var(--text);
    background: #0f1218;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.5em 0.7em;
    max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; }

/* Public layout & header */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 15, 20, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(38, 44, 56, 0.9);
}
.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.85rem clamp(1.1rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.brand { color: var(--text); font-weight: 900; font-style: italic; font-size: 1.18rem; letter-spacing: 0.07em; }
.brand span { color: var(--yellow); }
.brand small { color: var(--muted); font-weight: 500; font-style: normal; letter-spacing: 0; margin-left: 0.4em; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; }
.site-header nav a:not(.button) { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.site-header nav a:not(.button):hover { color: var(--text); text-decoration: none; }
.site-header .lang {
    color: var(--muted) !important;
    font-size: 0.82rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}
.site-header .lang:hover { color: var(--text) !important; border-color: var(--line-strong); }
.player-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    max-width: 100%;
    padding: 0.2em 0.8em 0.2em 0.2em;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
}
.player-badge:hover { text-decoration: none; border-color: var(--muted); }
.site-header nav a.player-badge, .site-header nav a.player-badge:hover { color: var(--text); }
.player-badge img { width: 28px; height: 28px; flex: none; }
.player-badge .player-name { font-weight: 700; max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-badge .player-tier { color: var(--muted); font-size: 0.85em; white-space: nowrap; }
.tile strong.tier { display: flex; align-items: center; gap: 0.35em; }
.tile strong.tier img { width: 2.2rem; height: 2.2rem; flex: none; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6.2rem) 0 clamp(3.5rem, 8vw, 5.5rem);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-bg.jpg");
    background-size: cover;
    background-position: center 22%;
    filter: brightness(0.3) saturate(1.15);
    transform: scale(1.03);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13, 15, 20, 0.96) 0%, rgba(13, 15, 20, 0.84) 50%, rgba(13, 15, 20, 0.48) 100%),
        radial-gradient(900px 420px at 82% 20%, rgba(61, 139, 253, 0.24), transparent 65%),
        radial-gradient(700px 360px at 8% 95%, rgba(229, 72, 63, 0.2), transparent 65%);
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}
.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--yellow);
    font-weight: 800;
    font-size: 0.84rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.7rem;
}
.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 10px var(--ok);
    display: inline-block;
}
.hero h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.03em;
    font-style: italic;
}
.hero-sub {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
}
.hero .tagline {
    font-size: clamp(1.12rem, 2.2vw, 1.42rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.7rem;
}
.hero-lead {
    margin: 0 0 1.65rem;
    color: #c8d2e2;
    font-size: 1rem;
    max-width: 540px;
}
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.actions-center { justify-content: center; }
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin-top: 1.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.hero-visual {
    background: rgba(22, 26, 34, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.9rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.hero-visual img { width: 100%; border-radius: 10px; background: #10131a; }
.hero-visual-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.7rem;
    font-size: 0.82rem;
    color: var(--muted);
}
.pill-mini {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid var(--line-strong);
    color: var(--text);
}
.hero-stripes {
    position: absolute;
    right: -60px;
    bottom: 24px;
    width: 340px;
    display: grid;
    gap: 10px;
    transform: skewX(-28deg);
    opacity: 0.88;
    z-index: 1;
}
.hero-stripes span { display: block; height: 10px; border-radius: 2px; }
.hero-stripes .red { background: var(--red); width: 65%; margin-left: 35%; }
.hero-stripes .blue { background: var(--blue); width: 82%; margin-left: 18%; }
.hero-stripes .yellow { background: var(--yellow); }

/* Landing sections */
.block {
    padding: clamp(3.2rem, 6vw, 5rem) 0;
    border-bottom: 1px solid var(--line);
}
.block-subtle { background: var(--bg-elev); }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
}
.section-kicker {
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
}
.section-head h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-desc { margin: 0; color: var(--muted); max-width: 520px; font-size: 0.95rem; }

/* 3 Pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.pillar-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.pillar-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.pillar-card.p-red::before { background: var(--red); }
.pillar-card.p-blue::before { background: var(--blue); }
.pillar-card.p-yellow::before { background: var(--yellow); }
.pillar-num { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.6rem; }
.pillar-card h3 { margin: 0 0 0.55rem; font-size: 1.2rem; font-weight: 800; }
.pillar-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Vehicles */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
}
.car-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.car-card:hover { transform: translateY(-3px); }
.car-card.muscle:hover { border-color: var(--red); }
.car-card.balanced:hover { border-color: var(--blue); }
.car-card.sports:hover { border-color: var(--yellow); }
.car-img-wrap {
    background: radial-gradient(circle at 50% 60%, #242b3a 0%, #12161f 75%);
    padding: 1rem 0.85rem 0.6rem;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.car-img-wrap img { width: 92%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)); }
.car-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.muscle .car-badge { background: rgba(229, 72, 63, 0.18); color: #ff7b74; border: 1px solid rgba(229, 72, 63, 0.45); }
.balanced .car-badge { background: rgba(61, 139, 253, 0.18); color: #7bb3ff; border: 1px solid rgba(61, 139, 253, 0.45); }
.sports .car-badge { background: rgba(245, 197, 24, 0.18); color: #ffd954; border: 1px solid rgba(245, 197, 24, 0.45); }
.car-body { padding: 1.3rem 1.35rem 1.45rem; flex: 1; display: flex; flex-direction: column; }
.car-title { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.car-title h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.car-speed { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.car-role { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.88rem; }
.stats { display: grid; gap: 0.5rem; margin-top: auto; }
.stat-row { display: grid; grid-template-columns: 74px 1fr 22px; align-items: center; gap: 0.6rem; font-size: 0.8rem; }
.stat-label { color: var(--muted); }
.stat-bar { height: 7px; background: #0d1016; border-radius: 999px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); }
.stat-fill { height: 100%; border-radius: 999px; }
.muscle .stat-fill { background: var(--red); }
.balanced .stat-fill { background: var(--blue); }
.sports .stat-fill { background: var(--yellow); }
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }
.stat-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Tracks */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
    margin-bottom: 1.4rem;
}
.track-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.track-thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: #0e1218; }
.track-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pos-right-bottom { object-position: right bottom; }
.pos-center-top { object-position: center top; }
.pos-center { object-position: center center; }
.track-tag {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: rgba(13, 15, 20, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}
.track-body { padding: 1.2rem 1.25rem; }
.track-body h3 { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 800; }
.track-body p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.88rem; }
.track-meta { display: flex; gap: 0.45rem; flex-wrap: wrap; font-size: 0.75rem; }
.track-chip { background: #0f131b; border: 1px solid var(--line); color: var(--muted); padding: 0.18rem 0.55rem; border-radius: 6px; }
.upcoming-strip {
    background: var(--bg-elev);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 0.95rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--muted);
}
.city-pills { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.city-pill { background: var(--panel); border: 1px solid var(--line); padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.78rem; color: var(--text); }

/* Modes & Chess Tiers */
.modes-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.mode-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem;
}
.mode-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.mode-top strong { font-size: 0.96rem; }
.mode-card p { margin: 0; font-size: 0.83rem; color: var(--muted); }
.mode-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--yellow);
    white-space: nowrap;
}

.tier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}
.tier-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tier-card.king {
    border-color: rgba(245, 197, 24, 0.55);
    background: linear-gradient(180deg, rgba(245, 197, 24, 0.08) 0%, var(--panel) 100%);
}
.tier-head { display: flex; align-items: center; gap: 0.85rem; }
.tier-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #10141d;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
}
.tier-card.king .tier-icon { color: var(--yellow); border-color: rgba(245, 197, 24, 0.5); }
.tier-head h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.tier-head h3 small { color: var(--muted); font-weight: 600; font-size: 0.8rem; margin-left: 0.25rem; }
.tier-pts { display: block; font-size: 0.78rem; color: var(--yellow); font-weight: 600; }
.tier-card p { margin: 0; font-size: 0.87rem; color: var(--muted); }
.tier-tag {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.74rem;
    color: var(--text);
    background: #10141d;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
}

.fair-box {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    background: rgba(60, 207, 142, 0.08);
    border: 1px solid rgba(60, 207, 142, 0.35);
    border-radius: var(--radius);
    padding: 1.05rem 1.25rem;
}
.fair-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(60, 207, 142, 0.18);
    color: var(--ok);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}
.fair-box strong { color: var(--ok); display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.fair-box p { margin: 0; font-size: 0.86rem; color: #c7d4e2; }

/* News cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.news-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.news-card:hover { border-color: var(--yellow); transform: translateY(-2px); text-decoration: none; }
.news-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--muted); }
.news-tag { padding: 0.15rem 0.55rem; border-radius: 999px; font-weight: 700; background: rgba(61, 139, 253, 0.16); color: #82b6ff; }
.news-tag.patch { background: rgba(245, 197, 24, 0.16); color: var(--yellow); }
.news-card h3 { margin: 0; font-size: 1.04rem; font-weight: 700; }

/* CTA Banner */
.cta-section {
    padding: clamp(3.5rem, 6vw, 4.8rem) 0;
    background:
        radial-gradient(800px 300px at 50% 0%, rgba(245, 197, 24, 0.12), transparent 70%),
        var(--bg-elev);
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.cta-section h2 { margin: 0 0 0.7rem; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
.cta-section p { color: var(--muted); max-width: 560px; margin: 0 auto 1.6rem; }

/* Standard pages (download, news, tester guide, account) */
.content { max-width: 900px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem); }
.prose-wide { max-width: 900px; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose img { max-width: 100%; border-radius: var(--radius); }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.meta { color: var(--muted); font-size: 0.9em; }

.code-form { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.button.steam { background: #171a21; color: #fff; border-color: #66c0f4; }
.notice { background: rgba(61, 139, 253, 0.12); border: 1px solid var(--blue); border-radius: var(--radius); padding: 0.4rem 1.2rem; margin: 1rem 0; }
details.invite { margin: 1.5rem 0; }
details.invite summary { cursor: pointer; color: var(--muted); }
.code-form input { font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase; width: 26ch; }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.download-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.download-card h2 { margin: 0 0 0.3rem; }
.download-card .hash { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; }

.site-footer { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 2rem 1rem 3rem; border-top: 1px solid var(--line); }

/* Admin */
body.admin { background: #10131a; }
.admin-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.admin-header nav { display: flex; gap: 1rem; flex-wrap: wrap; flex: 1; }
.admin-header nav a { color: var(--muted); }
.admin-header nav a.active { color: var(--text); font-weight: 700; }
.admin-header .who { display: flex; gap: 0.8rem; align-items: center; font-size: 0.9em; }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.narrow { max-width: 420px; margin: 3rem auto; }
.stack { display: grid; gap: 0.5rem; }
.stack .button { margin-top: 0.6rem; justify-self: start; }

.flash { background: rgba(60, 207, 142, 0.12); border: 1px solid var(--ok); border-radius: 6px; padding: 0.6rem 1rem; }
.warn { background: rgba(245, 197, 24, 0.1); border: 1px solid var(--yellow); border-radius: 6px; padding: 0.6rem 1rem; }
.reveal { background: rgba(61, 139, 253, 0.12); border: 1px solid var(--blue); border-radius: var(--radius); padding: 0.8rem 1.2rem; margin: 1rem 0; }
.big-code code { font-size: 1.3rem; padding: 0.3em 0.6em; user-select: all; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--text); display: grid; }
.tile strong { font-size: 2rem; }
.tile span { color: var(--muted); }
.tile:hover { text-decoration: none; border-color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 2rem; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
tr.off td { opacity: 0.45; }
td.actions { white-space: nowrap; }
td.actions .button { margin: 0 0.2rem 0.2rem 0; }

.chip { display: inline-block; border-radius: 999px; padding: 0.05em 0.7em; font-size: 0.85em; border: 1px solid var(--line); white-space: nowrap; }
.chip.dev { color: var(--muted); }
.chip.tester { color: var(--blue); border-color: var(--blue); }
.chip.public { color: var(--ok); border-color: var(--ok); }
.chip.player-pending { color: var(--yellow); border-color: var(--yellow); }
.chip.player-approved { color: var(--ok); border-color: var(--ok); }
.chip.player-blocked { color: var(--red); border-color: var(--red); }
.chip.founder { color: var(--yellow); border-color: var(--yellow); font-weight: 700; }
th.num, td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mileage { color: var(--yellow); font-variant-numeric: tabular-nums; }

/* Game servers (admin) */
.host { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.5rem; }
.host.alert { border-color: var(--red); }
.host-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.host-head h2 { margin: 0; }
.host-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; margin: 0.8rem 0; }
.host th { white-space: nowrap; }
.host-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.spark { display: block; width: 120px; height: 28px; }
.spark polyline { fill: none; stroke: var(--blue); stroke-width: 1.5; }
.chip.ok { color: var(--ok); border-color: var(--ok); }
.chip.warn { color: var(--yellow); border-color: var(--yellow); }
.chip.bad { color: var(--red); border-color: var(--red); }
td.error, strong.error { color: var(--red); }
pre.log { max-height: 24rem; overflow: auto; font-size: 0.78rem; white-space: pre-wrap; word-break: break-all; }

.row-form, .filters { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.editor label { display: grid; gap: 0.3rem; margin-bottom: 0.8rem; }
.editor label.check { display: flex; align-items: center; gap: 0.4rem; }
.editor .row { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.editor .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.codes { columns: 2; font-size: 1.05rem; }
.qr { background: #fff; border-radius: 8px; padding: 8px; display: block; margin: 1rem 0; }
.key { font-size: 1rem; }

@media (max-width: 960px) {
    .hero-grid, .pillars-grid, .cars-grid, .tracks-grid, .tier-cards, .news-grid {
        grid-template-columns: 1fr;
    }
    .modes-strip { grid-template-columns: repeat(2, 1fr); }
    .site-header nav .nav-anchor { display: none; }
}

@media (max-width: 720px) {
    .editor .two { grid-template-columns: 1fr; }
    .modes-strip { grid-template-columns: 1fr; }
    table { display: block; overflow-x: auto; }
    .hero-stripes { width: 110%; right: -40%; opacity: 0.45; }
}
