/* THE COURSES · FRVR Club brand v3 — chrome · black · red · white */
:root {
  --void: #050506; --black: #0A0A0B; --panel: #121214; --panel-2: #0E0E10; --panel-3: #17171A;
  --line: #242428; --line-2: #2F2F34; --line-soft: rgba(244, 243, 240, 0.08);
  --red: #D42A2A; --red-bright: #FF3B30; --crimson: #8E1212;
  --red-glow: rgba(212, 42, 42, 0.38); --red-soft: rgba(212, 42, 42, 0.12);
  --white: #F4F3F0; --dim: #A0A0A6; --ash: #6E6E74; --ok: #4CC97A;
  --chrome-hi: #ECEEF2; --chrome-mid: #9AA0A8; --chrome-lo: #565A60;
  --chrome-grad: linear-gradient(178deg, var(--chrome-hi) 8%, var(--chrome-mid) 42%, var(--chrome-lo) 55%, var(--chrome-hi) 92%);
  --font-display: 'Anton', 'Arial Narrow', sans-serif; --font-body: 'Inter', system-ui, sans-serif; --font-mono: 'Space Mono', ui-monospace, monospace;
  --top: 54px; --gutter: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100%; background: var(--void); color: var(--white); font-family: var(--font-body); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--red); color: var(--void); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
@keyframes sweep { 100% { background-position: 300% 0 } }

/* chrome text */
.chrome, #gate h1 span, .brand b span, .hero h1 span, .card h2 span { background: var(--chrome-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 9s linear infinite; }

/* gate */
#gate { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px var(--gutter); background: radial-gradient(ellipse 70% 55% at 50% 28%, rgba(142, 18, 18, .28), transparent 70%), var(--void); }
#gate .bfly { width: 132px; filter: grayscale(1) contrast(1.25) brightness(1.15); margin-bottom: 18px; opacity: .92; }
#gate .gk, .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; color: var(--red); text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
#gate .gk i, .kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.8s infinite; flex: none; }
#gate h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(54px, 10vw, 112px); line-height: .86; text-transform: uppercase; letter-spacing: .01em; }
#gate p { color: var(--dim); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; margin: 16px 0 26px; text-transform: uppercase; }
#gate .row { display: flex; gap: 10px; }
#gcode { background: var(--panel); border: 1px solid var(--line); padding: 14px 18px; border-radius: 3px; width: 220px; max-width: 60vw; text-align: center; font-family: var(--font-mono); letter-spacing: .3em; text-transform: uppercase; outline: none; }
#gcode:focus { border-color: var(--red); }
#gerr { color: var(--red-bright); font-family: var(--font-mono); font-size: 12px; margin-top: 12px; height: 16px; opacity: 0; transition: opacity .2s; }

/* buttons */
.btn { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 11px 18px; border-radius: 3px; border: 1px solid var(--line); color: var(--white); background: var(--panel); transition: all .16s; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { border-color: var(--chrome-lo); background: var(--panel-3); }
.btn-red { background: var(--red); border-color: var(--red); color: var(--void); }
.btn-red:hover { background: var(--red-bright); border-color: var(--red-bright); box-shadow: 0 0 22px var(--red-glow); }

/* top */
.top { position: sticky; top: 0; z-index: 10; height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: rgba(10, 10, 11, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 30px; filter: grayscale(1) brightness(1.2); flex: none; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .02em; line-height: 1; display: block; }
.brand small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.top .sp { flex: 1; }
.top .count { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }

/* page */
.page { max-width: 1180px; margin: 0 auto; padding: 34px var(--gutter) 60px; position: relative; }
.page::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(142, 18, 18, .18), transparent 70%); }
.page > * { position: relative; z-index: 1; }

.hero { margin-bottom: 30px; animation: rise .5s ease both; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 11vw, 132px); line-height: .88; text-transform: uppercase; letter-spacing: .01em; margin: 6px 0 16px; }
.hero p { color: var(--dim); max-width: 560px; font-size: 15px; font-weight: 300; }

/* grid + cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); position: relative; overflow: hidden; transition: border-color .18s, transform .18s; animation: rise .5s ease both; }
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--chrome-grad); background-size: 300% 100%; opacity: .55; }
.card:hover { border-color: var(--chrome-lo); transform: translateY(-2px); }
.card:hover::after { animation: sweep 3s linear infinite; opacity: 1; }
.card:nth-child(2) { animation-delay: .05s } .card:nth-child(3) { animation-delay: .1s } .card:nth-child(4) { animation-delay: .15s } .card:nth-child(5) { animation-delay: .2s }
.ch { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.ch .num { color: var(--red-bright); font-weight: 700; }
.ch .tag { color: var(--ash); }
.ch .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.ch .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.card h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 6.5vw, 46px); line-height: .92; text-transform: uppercase; letter-spacing: .01em; }
.card .what { color: var(--dim); font-weight: 300; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.meta li { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--dim); }
.cf { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.cf .url { font-size: 10px; letter-spacing: .06em; color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* flow */
.flow { margin-top: 34px; padding: 22px 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--black); animation: rise .5s ease .25s both; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 4px 0 14px; }
.chain a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); transition: border-color .16s; min-width: 120px; }
.chain a:hover { border-color: var(--chrome-lo); }
.chain b { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .02em; line-height: 1; }
.chain small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.chain .arr { color: var(--red-bright); font-family: var(--font-mono); }
.flow .note { color: var(--dim); font-weight: 300; max-width: 720px; }
.flow .note a { color: var(--white); border-bottom: 1px solid var(--red); }

.foot { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }

@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } .card { padding: 24px 22px 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } .card:nth-child(4), .card:nth-child(5) { grid-column: span 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
