:root {
    --ink: #050a08;
    --pitch: #09120e;
    --panel: #0d1813;
    --panel-2: #122219;
    --line: #1b3024;
    --line-2: #284636;
    --text: #f0f7f3;
    --muted: #9cb3a7;
    --faint: #688173;
    --neon: #2dff8e;
    --neon-deep: #10c868;
    --neon-soft: rgba(45, 255, 142, .1);
    --neon-glow: 0 0 22px rgba(45, 255, 142, .38);
    --gold: #ffd23f;
    --gold-soft: rgba(255, 210, 63, .12);
    --red: #ff4f61;
    --red-soft: rgba(255, 79, 97, .13);
    --blue: #45b6ff;
    --blue-soft: rgba(69, 182, 255, .13);
    --paper: #f3eee2;
    --paper-2: #e7e0cf;
    --paper-ink: #151716;
    --paper-muted: #62665f;
    --paper-line: #c9c0aa;
    --ink-won: #0b8f4d;
    --ink-lost: #cf2436;
    --ink-live: #1768c9;
    --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Courier New", monospace;
    --radius: 4px;
    --pitch-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1050 680' fill='none' stroke='%232dff8e' stroke-width='3'%3E%3Crect x='6' y='6' width='1038' height='668'/%3E%3Cline x1='525' y1='6' x2='525' y2='674'/%3E%3Ccircle cx='525' cy='340' r='91'/%3E%3Ccircle cx='525' cy='340' r='4' fill='%232dff8e'/%3E%3Crect x='6' y='138' width='165' height='404'/%3E%3Crect x='879' y='138' width='165' height='404'/%3E%3Crect x='6' y='248' width='55' height='184'/%3E%3Crect x='989' y='248' width='55' height='184'/%3E%3Cpath d='M171 272a91 91 0 0 1 0 136M879 272a91 91 0 0 0 0 136'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink) repeating-linear-gradient(135deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 10px); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .45em; font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: .005em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-style: italic; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; }
.h-md { font-size: 2rem; }
.h-sm { margin: 34px 0 14px; font-size: 1.35rem; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.pos { color: var(--neon); }
.neg { color: var(--red); }
.gold { color: var(--gold); }
.neon { color: var(--neon); text-shadow: var(--neon-glow); }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; padding: 8px 14px; background: var(--neon); color: var(--ink); font-weight: 700; }

.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: .5em; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 79, 97, .6); animation: pulse 1.6s infinite; vertical-align: .08em; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 79, 97, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 97, 0); } }

.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 14px; color: var(--neon); font: 600 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--neon); box-shadow: var(--neon-glow); transform: skewX(-30deg); }

.btn { position: relative; z-index: 0; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .78em 1.5em; border: 0; background: none; color: var(--text); font: 700 1rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: color .15s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1.5px solid transparent; border-radius: 3px; transform: skewX(-12deg); transition: background .15s, border-color .15s, box-shadow .15s; }
.btn-primary { color: #03140b; }
.btn-primary::before { background: var(--neon); }
.btn-primary:hover::before { background: #6bffb0; box-shadow: var(--neon-glow); }
.btn-ghost::before { border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { color: var(--neon); }
.btn-ghost:hover::before { border-color: var(--neon); }
.btn-danger { color: var(--red); }
.btn-danger::before { border-color: rgba(255, 79, 97, .5); }
.btn-danger:hover::before { background: var(--red-soft); }
.btn-sm { padding: .55em 1.05em; font-size: .88rem; }
.btn-lg { padding: .95em 1.9em; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--red); }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(5, 10, 8, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 3px solid var(--neon); border-bottom: 1px solid var(--line); box-shadow: 0 -2px 18px rgba(45, 255, 142, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55em; color: var(--text); text-decoration: none !important; }
.logo small { margin-left: .2em; padding: .15em .5em; border: 1px solid var(--line-2); color: var(--muted); font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.logo-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; transform: skewX(-16deg); }
.logo-mark i { display: block; width: 6px; background: var(--neon); box-shadow: 0 0 10px rgba(45, 255, 142, .55); }
.logo-mark i:nth-child(1) { height: 10px; opacity: .55; }
.logo-mark i:nth-child(2) { height: 17px; opacity: .8; }
.logo-mark i:nth-child(3) { height: 24px; }
.logo-word { font: italic 800 1.65rem/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.logo-word b { color: var(--neon); font-weight: 800; }
.nav-toggle { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 80; display: flex; flex-direction: column; width: 256px; padding-bottom: 18px; overflow-y: auto; overscroll-behavior: contain; background: #040907 linear-gradient(180deg, rgba(45, 255, 142, .06), transparent 240px); border-top: 3px solid var(--neon); border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.side-top { display: flex; align-items: center; justify-content: space-between; flex: none; height: 70px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.side-close { display: none; }
.side-nav { display: flex; flex-direction: column; padding: 14px 12px 4px; }
.side-nav > a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: var(--muted); font: 700 1.05rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; transition: color .15s, background .15s; }
.side-nav > a .ico { width: 20px; height: 20px; color: var(--faint); transition: color .15s; }
.side-nav > a:hover { color: var(--text); background: rgba(255, 255, 255, .03); text-decoration: none; }
.side-nav > a:hover .ico, .side-nav > a.active .ico { color: var(--neon); }
.side-nav > a.active { color: var(--text); background: linear-gradient(90deg, var(--neon-soft), transparent 85%); }
.side-nav > a.active::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: -12px; width: 4px; background: var(--neon); box-shadow: var(--neon-glow); }
.side-label { display: flex; align-items: center; gap: .7em; margin: 22px 12px 8px; color: var(--neon); font: 600 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.side-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.side-count { margin-left: auto; min-width: 28px; padding: .25em .45em; background: #0a1510; border: 1px solid var(--line-2); color: var(--gold); font: 600 .74rem/1 var(--mono); font-style: normal; text-align: center; }
.side-nav > a.side-sub { padding: 9px 12px 9px 44px; font-size: .98rem; }
.side-sub::after { content: ""; position: absolute; top: 50%; left: 21px; width: 11px; height: 2px; background: var(--line-2); transform: skewX(-30deg); }
.side-sub.active::after, .side-sub:hover::after { background: var(--neon); }
.side-search { position: relative; margin-top: 14px; }
.side-search .ico { position: absolute; top: 50%; left: 12px; width: 18px; height: 18px; color: var(--faint); transform: translateY(-50%); pointer-events: none; }
.side-search input { padding: .62em .8em .62em 2.5em; font-size: .92rem; }
.side-account { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding: 22px 20px 0; }
.side-login { display: inline-flex; align-items: center; justify-content: center; gap: .5em; color: var(--muted); font: 700 .98rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.side-login:hover, .side-login.active { color: var(--neon); text-decoration: none; }
.side-foot { display: flex; align-items: center; gap: 10px; margin: 18px 20px 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: .78rem; line-height: 1.35; }
.side-foot .badge-18 { width: 32px; height: 32px; font-size: .78rem; }
.side-overlay { display: none; }
.shell { display: flex; flex-direction: column; min-height: 100vh; margin-left: 256px; }
.shell > main { flex: 1; }
.topbar { display: none; }
.nav-burger { display: none; }

@media (min-width: 1024px) {
    .hero-title { font-size: clamp(3rem, 5vw, 5.8rem); }
    .hero-grid { gap: 40px; }
}

@media (max-width: 1023px) {
    .sidebar { width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s ease; box-shadow: 24px 0 60px rgba(0, 0, 0, .55); }
    .nav-toggle:checked ~ .sidebar { transform: none; }
    .side-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; }
    .side-close:hover { border-color: var(--neon); color: var(--neon); }
    .side-overlay { position: fixed; inset: 0; z-index: 70; display: block; background: rgba(0, 0, 0, .62); opacity: 0; pointer-events: none; transition: opacity .25s; }
    .nav-toggle:checked ~ .side-overlay { opacity: 1; pointer-events: auto; }
    body:has(.nav-toggle:checked) { overflow: hidden; }
    .shell { margin-left: 0; }
    .topbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px 0 6px; background: rgba(5, 10, 8, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 3px solid var(--neon); border-bottom: 1px solid var(--line); }
    .topbar .logo { margin-right: auto; }
    .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 11px; cursor: pointer; }
    .nav-burger span { height: 2px; background: var(--text); transition: background .15s; }
    .nav-burger span:nth-child(2) { width: 68%; background: var(--neon); }
    .nav-toggle:focus-visible ~ .shell .nav-burger { outline: 2px solid var(--neon); outline-offset: -4px; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar, .side-overlay { transition: none; }
}

.ticker { position: relative; z-index: 5; display: flex; height: 40px; overflow: hidden; background: #07100b; border-bottom: 1px solid var(--line); }
.ticker-label { position: relative; z-index: 2; flex: none; display: flex; align-items: center; padding: 0 22px 0 18px; background: var(--neon); color: #03140b; font: 800 .95rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.ticker-label .live-dot { background: #03140b; animation: none; }
.ticker-track { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-move { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; animation: ticker var(--dur, 40s) linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: .55em; padding: 0 26px; border-right: 1px solid var(--line); font-size: .92rem; }
.ticker-item b { font: 700 1rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.ticker-item em { color: var(--muted); font-style: normal; font-size: .85rem; }
.ticker-item strong { color: var(--gold); font: 600 .9rem/1 var(--mono); }
.ticker-item.is-won .ico { color: var(--neon); }
.ticker-item.is-lost .ico { color: var(--red); }
.ticker-item.is-msg .ico { color: var(--neon); }
.ticker-item.is-msg b { color: var(--muted); }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .ticker-move { animation: none; }
    .ticker-track { overflow-x: auto; }
    .live-dot { animation: none; }
}

.flash { margin: 18px 0 0; padding: 12px 16px; border: 1px solid; border-left-width: 4px; border-radius: var(--radius); font-size: .95rem; }
.flash ul { margin: 0; padding-left: 1.1em; }
.flash-ok { background: var(--neon-soft); border-color: rgba(45, 255, 142, .45); }
.flash-err { background: var(--red-soft); border-color: rgba(255, 79, 97, .5); }
.flash-info { background: var(--blue-soft); border-color: rgba(69, 182, 255, .5); }

.hero { position: relative; overflow: hidden; padding: 60px 0 70px; isolation: isolate; }
.hero::before { content: ""; position: absolute; left: -15%; right: -15%; bottom: -62%; z-index: -2; height: 125%; background: var(--pitch-lines) center / 100% 100% no-repeat; opacity: .13; transform: perspective(650px) rotateX(62deg); -webkit-mask-image: linear-gradient(to top, transparent 5%, #000 55%); mask-image: linear-gradient(to top, transparent 5%, #000 55%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 82% 0%, rgba(255, 255, 255, .07), transparent 70%), linear-gradient(112deg, transparent 58%, rgba(45, 255, 142, .07) 58.2%, rgba(45, 255, 142, .07) 64%, transparent 64.2%), linear-gradient(180deg, transparent 70%, var(--ink)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero-title { display: flex; flex-direction: column; margin-bottom: 18px; font-size: clamp(3.2rem, 7.4vw, 6.3rem); line-height: .88; letter-spacing: -.005em; }
.hero-tag { display: inline-block; position: relative; z-index: 0; margin: 0 0 24px; padding: .3em .9em; color: var(--ink); font: italic 800 1.35rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.hero-tag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: skewX(-14deg); }
.lead { max-width: 36em; color: var(--muted); font-size: 1.14rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; color: var(--muted); font: 600 .8rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.hero-points li::before { content: "//"; margin-right: .5em; color: var(--neon); }
.hero-visual { position: relative; }
.hero-visual .slip-paper { max-width: 420px; transform: rotate(2.4deg); }
.hero-visual .sp-inner { padding: 12px 20px 14px; font-size: .8rem; }
.hero-visual .sp-title { margin-top: 10px; font-size: 1.45rem; }
.hero-visual .sp-tip { padding: 8px 0; }
.hero-visual .sp-teams { margin: 3px 0 2px; font-size: 1.12rem; }
.hero-visual .sp-totals .sp-row { padding: 3px 0; }
.hero-visual .sp-row-big b { font-size: 1.6rem; }
.hero-visual .sp-barcode { margin-top: 10px; }
.hero-visual .barcode { height: 30px; }

@media (max-width: 940px) {
    .hero { padding: 48px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { max-width: 460px; }
}

.board { position: relative; padding: 34px 0 40px; background: linear-gradient(180deg, #07100b, var(--pitch)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.board-title { font: 800 1.1rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.board-head a { display: inline-flex; align-items: center; gap: .4em; font: 700 .95rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.board-note { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }

.scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); background: #040907; border: 1px solid var(--line-2); border-top: 3px solid var(--neon); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px rgba(0, 0, 0, .4); }
.sb-cell { position: relative; padding: 20px 22px 18px; border-right: 1px solid var(--line); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 4px); }
.sb-cell:last-child { border-right: 0; }
.sb-label { display: block; margin-bottom: 8px; color: var(--neon); font: 600 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.sb-value { display: block; font: italic 800 clamp(2rem, 3.8vw, 3.1rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
.sb-sub { display: block; margin-top: 8px; color: var(--faint); font-size: .84rem; }

@media (max-width: 860px) {
    .scoreboard { grid-template-columns: repeat(2, 1fr); }
    .sb-cell:nth-child(2) { border-right: 0; }
    .sb-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.section { padding: 80px 0; }
.section-tight { padding: 28px 0 70px; }
.section-alt { position: relative; background: var(--pitch); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 38px; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: none; }
.title { font-style: italic; }
.page-hero { position: relative; overflow: hidden; padding: 56px 0 14px; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; top: -20%; right: -8%; z-index: -1; width: 560px; height: 360px; background: var(--pitch-lines) center / contain no-repeat; opacity: .08; transform: rotate(-8deg); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { margin-bottom: 24px; }
.empty { padding: 28px; border: 1px dashed var(--line-2); color: var(--muted); text-align: center; background: rgba(255, 255, 255, .01); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.step { position: relative; padding: 30px 28px 32px; border-right: 1px solid var(--line); overflow: hidden; }
.step:last-child { border-right: 0; }
.step-no { display: block; margin-bottom: 10px; color: transparent; font: italic 800 5rem/.9 var(--display); -webkit-text-stroke: 1.5px var(--neon); opacity: .8; }
.step h3 { font-size: 1.55rem; }
.step p { margin: 0; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { position: relative; display: flex; gap: 18px; padding: 26px 26px 26px 24px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--neon); transition: transform .15s, border-color .15s; }
.feature:hover { transform: translateY(-3px); border-color: var(--line-2); border-left-color: var(--neon); }
.feature-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; color: var(--neon); background: var(--neon-soft); border: 1px solid rgba(45, 255, 142, .25); transform: skewX(-8deg); }
.feature-ico .ico { width: 26px; height: 26px; transform: skewX(8deg); }
.feature h3 { font-size: 1.4rem; }
.feature p { margin: 0; color: var(--muted); }
.sports-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 30px; }
.sports-label { margin-right: 6px; color: var(--faint); font: 600 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.sport-tag { position: relative; z-index: 0; padding: .4em .9em; color: var(--text); font: 700 .92rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.sport-tag::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-2); background: var(--panel); transform: skewX(-12deg); }

@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; }
    .step { border-right: 0; border-bottom: 1px solid var(--line); }
    .step:last-child { border-bottom: 0; }
    .features { grid-template-columns: 1fr; }
}

.badge { position: relative; z-index: 0; isolation: isolate; display: inline-flex; align-items: center; padding: .32em .85em; font: 700 .8rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.badge::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-12deg); }
.badge-pending { color: var(--blue); }
.badge-pending::before { background: var(--blue-soft); }
.badge-won { color: var(--neon); }
.badge-won::before { background: var(--neon-soft); }
.badge-lost { color: var(--red); }
.badge-lost::before { background: var(--red-soft); }
.badge-void { color: var(--muted); }
.badge-void::before { background: rgba(156, 179, 167, .13); }
.badge-draft { color: var(--gold); }
.badge-draft::before { background: var(--gold-soft); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.slip-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s; }
.slip-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 36px rgba(0, 0, 0, .45); }
.slip-card-link { position: absolute; inset: 0; z-index: 2; }
.sc-top { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; background: #0a1510; border-bottom: 1px solid var(--line); font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.sc-no { color: var(--faint); }
.sc-status { font-family: var(--display); font-size: .95rem; font-weight: 800; letter-spacing: .1em; }
.slip-card.is-won { box-shadow: inset 0 3px 0 var(--neon); }
.slip-card.is-won .sc-status { color: var(--neon); }
.slip-card.is-lost { box-shadow: inset 0 3px 0 var(--red); }
.slip-card.is-lost .sc-status { color: var(--red); }
.slip-card.is-pending { box-shadow: inset 0 3px 0 var(--blue); }
.slip-card.is-pending .sc-status { color: var(--blue); }
.slip-card.is-void .sc-status { color: var(--muted); }
.sc-body { flex: 1; padding: 16px 16px 12px; }
.sc-body .sc-title { margin: 0 0 4px; font-size: 1.35rem; font-style: normal; }
.sc-body time { color: var(--faint); font: .78rem var(--mono); }
.sc-tips { margin: 12px 0 0; padding: 0; list-style: none; }
.sc-tips li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.sc-tips li.sc-more { color: var(--muted); font-size: .85rem; }
.sc-tips li.tip-won .sc-teams { color: var(--neon); }
.sc-tips li.tip-lost .sc-teams { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1px; }
.sc-teams { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.odd { flex: none; min-width: 52px; padding: .3em .55em; background: #08130d; border: 1px solid var(--line-2); color: var(--gold); font: 700 .9rem/1 var(--mono); text-align: center; }
.sc-locked { position: relative; margin-top: 12px; padding: 16px; border: 1px dashed var(--line-2); background: repeating-linear-gradient(135deg, rgba(255, 210, 63, .05) 0 10px, transparent 10px 20px); }
.sc-locked p { margin: 0; color: var(--muted); font-size: .9rem; }
.sc-locked strong { display: block; color: var(--text); font: 800 1.1rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.sc-lock { float: right; color: var(--gold); }
.sc-lock .ico { width: 26px; height: 26px; }
.sc-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px 14px; background: #0a1510; border-top: 1px solid var(--line); }
.sc-foot small { display: block; margin-bottom: 3px; color: var(--faint); font: 600 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.sc-foot strong { font: 800 1.2rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.odd-big { color: var(--gold); }

.slip-paper { position: relative; max-width: 480px; margin: 0 auto; color: var(--paper-ink); filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .6)); }
.sp-edge { height: 10px; background-repeat: repeat-x; background-size: 16px 10px; }
.sp-edge-top { background-image: radial-gradient(circle at 8px 0, transparent 5.5px, var(--paper) 6px); }
.sp-edge-bottom { background-image: radial-gradient(circle at 8px 10px, transparent 5.5px, var(--paper) 6px); }
.sp-inner { padding: 14px 24px 18px; background: var(--paper) linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 30%); font-family: var(--mono); font-size: .86rem; }
.sp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--paper-ink); }
.sp-brand .logo-mark i { background: var(--paper-ink); box-shadow: none; }
.sp-brand .logo-word { font-size: 1.5rem; }
.sp-brand .logo-word b { color: var(--ink-won); }
.sp-head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: var(--paper-muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.sp-head-meta span:first-child { color: var(--paper-ink); font-weight: 700; }
.sp-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.sp-row-meta { padding: 8px 0; border-bottom: 1px dashed var(--paper-line); color: var(--paper-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.sp-live { display: flex; align-items: center; margin: 10px 0 0; color: var(--ink-live); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sp-title { margin: 14px 0 0; color: var(--paper-ink); font-size: 1.7rem; font-style: italic; }
.sp-tips { margin: 8px 0 0; padding: 0; list-style: none; }
.sp-tip { padding: 12px 0; border-bottom: 1px dashed var(--paper-line); }
.sp-tip-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--paper-muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.sp-teams { margin: 5px 0 4px; font: 800 1.3rem/1.05 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.sp-teams i { color: var(--paper-muted); font-style: normal; font-weight: 600; }
.sp-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sp-market { color: #3b3f3a; }
.sp-odds { padding: .15em .5em; background: var(--paper-ink); color: var(--paper); font-weight: 700; font-size: .95rem; }
.sp-kick { margin-top: 4px; color: var(--paper-muted); font-size: .72rem; }
.sp-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid; border-radius: 50%; font-weight: 800; font-size: .72rem; }
.sp-mark .ico { width: 13px; height: 13px; stroke-width: 3; }
.sp-mark.is-won { color: var(--ink-won); }
.sp-mark.is-lost { color: var(--ink-lost); }
.sp-mark.is-void { color: var(--paper-muted); }
.tip-won .sp-teams { color: var(--ink-won); }
.tip-lost .sp-teams { color: var(--ink-lost); text-decoration: line-through; text-decoration-thickness: 2px; }
.tip-void .sp-teams { color: var(--paper-muted); }
.sp-totals { margin-top: 12px; padding-top: 8px; border-top: 2px solid var(--paper-ink); }
.sp-totals .sp-row b { font-variant-numeric: tabular-nums; }
.sp-row-big { margin-top: 4px; padding: 10px 0 6px; border-top: 1px dashed var(--paper-line); font-size: .95rem; }
.sp-row-big b { font: 800 1.9rem/1 var(--display); }
.sp-totals .pos { color: var(--ink-won); }
.sp-totals .neg { color: var(--ink-lost); }
.sp-note, .sp-proof { margin: 10px 0 0; color: var(--paper-muted); font-size: .72rem; line-height: 1.5; }
.sp-analysis { margin-top: 14px; padding: 12px 14px; background: var(--paper-2); border-left: 3px solid var(--paper-ink); font-family: var(--body); font-size: .95rem; color: #2b2e2a; }
.sp-analysis h3 { margin: 0 0 6px; color: var(--paper-ink); font-size: 1.1rem; }
.sp-analysis p { margin: 0; }
.sp-barcode { margin-top: 16px; text-align: center; }
.barcode { display: block; width: 100%; height: 46px; fill: var(--paper-ink); }
.sp-barcode span { display: block; margin-top: 5px; color: var(--paper-muted); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }
.sp-locked { position: relative; min-height: 240px; }
.sp-ghost { opacity: .45; filter: blur(1.2px); pointer-events: none; user-select: none; }
.ghost { display: inline-block; height: 12px; background: var(--paper-line); vertical-align: middle; }
.w60 { width: 62%; }
.w40 { width: 42%; }
.w12 { width: 14%; }
.sp-lock-box { position: absolute; top: 50%; left: 50%; width: min(330px, 94%); padding: 22px 20px; transform: translate(-50%, -50%); background: var(--ink); border: 1px solid var(--line-2); border-top: 3px solid var(--gold); color: var(--text); font-family: var(--body); text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.sp-lock-ico { display: block; margin-bottom: 8px; color: var(--gold); }
.sp-lock-ico .ico { width: 30px; height: 30px; }
.sp-lock-box strong { display: block; font: 800 1.3rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.sp-lock-box p { margin: 6px 0 16px; color: var(--muted); font-size: .92rem; }
.sp-lock-box .btn-row { justify-content: center; }
.stamp { position: absolute; bottom: 17%; left: 9%; z-index: 3; padding: .18em .5em; border: 4px solid currentColor; border-radius: 6px; font: italic 800 2.5rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; opacity: .82; transform: rotate(-14deg); mix-blend-mode: multiply; box-shadow: inset 0 0 0 2px currentColor; pointer-events: none; }
.stamp-won { color: var(--ink-won); }
.stamp-lost { color: var(--ink-lost); }
.stamp-void { color: var(--paper-muted); }
.stamp-draft, .stamp-demo { color: #b0831c; }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs a { position: relative; z-index: 0; padding: .6em 1.2em; color: var(--muted); font: 700 .95rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.tabs a::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-2); transform: skewX(-12deg); }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: #03140b; }
.tabs a.active::before { background: var(--neon); border-color: var(--neon); }

.pager-wrap { margin-top: 32px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination li a, .pagination li span { display: block; min-width: 40px; padding: 9px 12px; border: 1px solid var(--line-2); color: var(--muted); font: 700 .95rem/1 var(--display); text-align: center; }
.pagination li a:hover { border-color: var(--neon); color: var(--text); text-decoration: none; }
.pagination li.active a, .pagination li.active span { background: var(--neon); border-color: var(--neon); color: #03140b; }

.cta-band { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 44px; padding: 34px 36px 34px 44px; background: var(--panel); border: 1px solid var(--line-2); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; z-index: -1; width: 30px; background: var(--neon); box-shadow: var(--neon-glow); transform: skewX(-12deg); }
.cta-band::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: 45%; background: repeating-linear-gradient(-60deg, rgba(45, 255, 142, .06) 0 14px, transparent 14px 30px); -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-style: italic; }
.cta-band p:not(.eyebrow) { margin: 0; color: var(--muted); }
.cta-band .eyebrow { margin-bottom: 10px; }
.section-tight .cta-band:first-child { margin-top: 0; }
.cta-band-final { margin-top: 0; }

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 700 1.2rem/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); color: var(--neon); font: 700 1.2rem/1 var(--mono); }
.faq details[open] summary { color: var(--neon); }
.faq details[open] summary::after { content: "−"; background: var(--neon); border-color: var(--neon); color: #03140b; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

@media (max-width: 860px) {
    .faq-grid { grid-template-columns: 1fr; gap: 10px; }
}

.chart-card { margin-top: 20px; padding: 20px; background: #040907; border: 1px solid var(--line-2); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chart-head h3 { margin: 0; }
.chart { display: block; width: 100%; height: 220px; }
.chart-area { fill: rgba(45, 255, 142, .09); stroke: none; }
.chart-zero { stroke: var(--line-2); stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--neon); stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(45, 255, 142, .6)); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stats-tables { margin-top: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th { background: #07100b; color: var(--faint); font: 600 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.table tbody tr:hover td { background: rgba(45, 255, 142, .025); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: .9rem; }
.bar { min-width: 80px; height: 8px; background: var(--panel-2); }
.bar i { display: block; height: 100%; background: var(--neon); box-shadow: 0 0 8px rgba(45, 255, 142, .5); }
.bar i.neg { background: var(--red); box-shadow: none; }

@media (max-width: 860px) {
    .grid-2 { grid-template-columns: 1fr; }
}

.card-plain { margin-top: 20px; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--neon); }
.card-plain h2 { font-size: 1.6rem; }
.method { margin-top: 36px; color: var(--muted); font-size: .95rem; }
.method h2 { margin-top: 0; color: var(--text); }
.method ul { margin: 0; padding-left: 1.1em; }
.method li { margin: 6px 0; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; margin: 10px 0; padding-left: 1.8em; color: var(--muted); }
.checklist li::before { content: "//"; position: absolute; left: 0; color: var(--neon); font: 700 .95rem var(--mono); }
.steps-list { padding-left: 1.3em; color: var(--muted); }
.steps-list li { margin: 10px 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.plan { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--neon); text-align: center; }
.plan-price { color: var(--gold); font: italic 800 2.4rem/1 var(--display); }
.hint { margin: 14px 0 0; color: var(--faint); font-size: .86rem; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--faint); font: 600 .78rem/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.kv dd { margin: 0; }

.prose { max-width: 800px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose p, .prose li { color: var(--muted); }
.todo { padding: 0 .35em; background: var(--gold-soft); color: var(--gold); }

.auth-card { position: relative; max-width: 460px; margin: 54px auto; padding: 34px 32px; background: var(--panel); border: 1px solid var(--line-2); border-top: 3px solid var(--neon); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.auth-card .logo { margin-bottom: 22px; }
.auth-card h1 { font-size: 2.3rem; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; color: var(--muted); font: 600 .76rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.field em { color: var(--faint); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=datetime-local], select, textarea { width: 100%; padding: .75em .9em; background: #060e0a; border: 1px solid var(--line-2); border-radius: 2px; color: var(--text); font: 500 1rem var(--body); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-soft), var(--neon-glow); }
input[type=date], input[type=datetime-local] { color-scheme: dark; }
textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: .94rem; }
.check input { width: 18px; height: 18px; margin-top: .2em; accent-color: var(--neon); }
.form-foot { margin-top: 20px; color: var(--muted); font-size: .94rem; text-align: center; }
.back { display: inline-flex; align-items: center; gap: .4em; margin: 10px 0 20px; color: var(--muted); font: 700 .95rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.share { max-width: 480px; margin: 26px auto 0; }
.share label { display: block; margin-bottom: 7px; color: var(--faint); font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

.site-footer { position: relative; overflow: hidden; margin-top: 50px; padding: 56px 0 26px; background: #030705; border-top: 1px solid var(--line); font-size: .94rem; isolation: isolate; }
.footer-mark { position: absolute; right: -2%; bottom: -8%; z-index: -1; color: transparent; font: italic 800 clamp(7rem, 22vw, 17rem)/.8 var(--display); letter-spacing: -.01em; text-transform: uppercase; -webkit-text-stroke: 1px rgba(45, 255, 142, .09); user-select: none; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-about { max-width: 34em; margin-top: 14px; color: var(--muted); }
.footer-grid .footer-h { margin: 0 0 12px; color: var(--faint); font: 600 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.hero-title .eyebrow { align-self: flex-start; margin-bottom: 20px; }
.h1-page { display: block; margin-top: 8px; color: var(--muted); font: 600 .9rem/1 var(--mono); letter-spacing: .12em; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--neon); }
.footer-bottom { display: flex; align-items: flex-start; gap: 18px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .86rem; }
.footer-bottom p { margin: 0 0 6px; }
.badge-18 { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font: 800 1rem/1 var(--display); }

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr; }
}

body.admin { background: #030806; }
.admin-bar { position: sticky; top: 0; z-index: 60; background: rgba(5, 10, 8, .95); border-top: 3px solid var(--neon); border-bottom: 1px solid var(--line); }
.admin-bar-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.admin-bar .logo-word { font-size: 1.35rem; }
.admin-nav { display: flex; align-items: center; flex: 1; flex-wrap: wrap; gap: 8px 20px; }
.admin-nav a:not(.btn) { color: var(--muted); font: 700 .98rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.admin-nav a.active, .admin-nav a:not(.btn):hover { color: var(--neon); text-decoration: none; }
.admin-user { display: flex; align-items: center; gap: 16px; font-size: .92rem; }
.admin-user a { color: var(--muted); }
.admin-user a.active { color: var(--neon); }
.admin-user form { margin: 0; }
.admin-main { padding-top: 26px; padding-bottom: 70px; }
.login-main { min-height: 100vh; padding: 24px 0; background: radial-gradient(600px 300px at 50% 0, rgba(45, 255, 142, .08), transparent 70%); }
.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin: 6px 0 24px; }
.page-head h1 { margin: 0; font-size: 2.3rem; }
.card { margin-bottom: 20px; padding: 22px; background: var(--panel); border: 1px solid var(--line); }
.card h2 { font-size: 1.45rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-head a { font: 700 .9rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.narrow-card { max-width: 540px; }
.tiles { display: grid; gap: 14px; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tile { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-2); }
.tile small { display: block; margin-bottom: 8px; color: var(--neon); font: 600 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.tile strong { display: block; font: italic 800 2.1rem/1 var(--display); font-variant-numeric: tabular-nums; }
.tile span { display: block; margin-top: 6px; color: var(--faint); font-size: .85rem; }
.list-plain { margin: 0; padding: 0; list-style: none; }
.list-plain li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }

@media (max-width: 860px) {
    .tiles-3 { grid-template-columns: 1fr; }
}

.slip-editor { display: grid; grid-template-columns: 1fr 310px; gap: 20px; align-items: start; }
.editor-side { position: sticky; top: 84px; }
.tip-row { margin-bottom: 14px; padding: 16px; background: #07100b; border: 1px solid var(--line); border-left: 3px solid var(--neon); }
.tip-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); font: 800 1.05rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.tip-num { color: var(--neon); }
.tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.tip-grid .span-3 { grid-column: 1 / -1; }
.icon-btn { width: 32px; height: 32px; background: none; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; }
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.calc { border-top: 3px solid var(--neon); }
.calc dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 0 20px; }
.calc dt { color: var(--muted); font: 600 .76rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.calc dd { margin: 0; font: 800 1.3rem/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.calc dd.big { color: var(--gold); font-size: 1.9rem; }
.calc .btn { margin-top: 10px; }
.danger-zone { margin-top: 6px; }
.view-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.view-grid .slip-paper { margin: 0; }
.settle select { min-width: 150px; }
.search { display: flex; gap: 10px; max-width: 480px; margin-bottom: 18px; }
.inline-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.sub-manage { margin-top: 8px; }
.sub-manage summary { color: var(--neon); font: 700 .88rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.sub-manage .inline-form { margin-top: 10px; }
.sub-manage input[type=date] { width: auto; padding: .5em .6em; }

@media (max-width: 980px) {
    .slip-editor, .view-grid { grid-template-columns: 1fr; }
    .editor-side { position: static; }
}

@media (max-width: 700px) {
    .tip-grid { grid-template-columns: 1fr; }
    .page-head h1 { font-size: 1.9rem; }
}

.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.art-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s; }
.art-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 36px rgba(0, 0, 0, .45); }
.art-card-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #07100b; border-bottom: 3px solid var(--neon); }
.art-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.art-card:hover .art-card-img img { transform: scale(1.04); }
.art-card-ph { display: grid; place-items: center; height: 100%; color: var(--line-2); }
.art-card-ph .ico { width: 48px; height: 48px; }
.art-card-body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px; }
.art-cat { position: relative; z-index: 0; align-self: flex-start; margin-bottom: 10px; padding: .32em .8em; color: #03140b; font: 700 .78rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.art-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--neon); transform: skewX(-12deg); }
.art-cat:hover { color: #03140b; text-decoration: none; }
.art-cat:hover::before { background: #6bffb0; }
.art-card .art-cat { z-index: 2; }
.art-card .art-card-title { margin: 0 0 8px; font-size: 1.4rem; font-weight: 800; font-style: normal; line-height: 1.05; letter-spacing: .005em; }
.art-card-title a { color: var(--text); }
.art-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.art-card-title a:hover { color: var(--neon); text-decoration: none; }
.art-card p { display: -webkit-box; margin: 0 0 14px; overflow: hidden; color: var(--muted); font-size: .95rem; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: auto; color: var(--faint); font: 600 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.art-meta span { display: inline-flex; align-items: center; gap: .4em; }
.art-search { display: flex; gap: 10px; max-width: 640px; margin: 0 0 22px; }
.art-search-field { position: relative; flex: 1; display: block; }
.art-search-ico { position: absolute; top: 50%; left: 14px; color: var(--faint); transform: translateY(-50%); pointer-events: none; }
.art-search input { padding-left: 2.6em; }
.result-info { margin: 0 0 18px; color: var(--muted); }
.result-info a { margin-left: 10px; font-size: .9rem; }

.article-head { position: relative; overflow: hidden; padding: 40px 0 26px; isolation: isolate; }
.article-head::after { content: ""; position: absolute; top: -20%; right: -8%; z-index: -1; width: 560px; height: 360px; background: var(--pitch-lines) center / contain no-repeat; opacity: .07; transform: rotate(-8deg); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 18px; color: var(--faint); font: 600 .74rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.crumbs a { color: var(--muted); }
.crumbs span:last-child { display: none; }
.article-head h1 { max-width: 20em; margin-top: 6px; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: .95; }
.article-head .lead { max-width: 44em; }
.article-cover { margin: 6px 0 34px; background: #07100b; border: 1px solid var(--line); border-bottom: 3px solid var(--neon); }
.article-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; align-items: start; }
.article-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
.article-body { max-width: 780px; }
.toc { position: sticky; top: 24px; }
.toc summary { color: var(--neon); font: 600 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--line-2); }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--neon); font: 600 .72rem/1.9 var(--mono); }
.toc a:hover { color: var(--text); border-left-color: var(--neon); text-decoration: none; }
.content { color: #c9d8d0; font-size: 1.08rem; line-height: 1.75; }
.content > :first-child { margin-top: 0; }
.content h2 { margin: 1.8em 0 .6em; color: var(--text); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-style: italic; scroll-margin-top: 84px; }
.content h2::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 12px; background: var(--neon); box-shadow: var(--neon-glow); transform: skewX(-30deg); }
.content h3 { margin: 1.5em 0 .5em; color: var(--text); font-size: 1.35rem; }
.content h4 { margin: 1.3em 0 .4em; color: var(--gold); font-size: 1.1rem; letter-spacing: .06em; }
.content a { text-decoration: underline; text-decoration-color: rgba(45, 255, 142, .4); text-underline-offset: 3px; }
.content strong, .content b { color: var(--text); }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: .4em 0; }
.content li::marker { color: var(--neon); }
.content ol li::marker { font-family: var(--mono); font-weight: 700; }
.content img { display: block; height: auto; margin: 1.6em auto; border: 1px solid var(--line); }
.content blockquote { margin: 1.5em 0; padding: 14px 20px; background: var(--gold-soft); border-left: 4px solid var(--gold); color: var(--text); }
.content .table-wrap { margin: 1.5em 0; }
.content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.content th, .content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.content th { background: #07100b; color: var(--faint); font: 600 .74rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.content hr { height: 1px; margin: 2em 0; border: 0; background: var(--line); }
.article-note { display: flex; align-items: flex-start; gap: 14px; margin-top: 34px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); color: var(--faint); font-size: .9rem; }
.article-note p { margin: 0; }
.related { margin-top: 60px; }
.related .section-head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.related h2 { margin: 0; }

@media (max-width: 1200px) {
    .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .toc { position: static; margin-bottom: 26px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); }
}

@media (max-width: 600px) {
    .art-search { flex-direction: column; }
    .content { font-size: 1.02rem; }
}

.notfound { display: flex; flex-direction: column; align-items: center; gap: 30px; min-height: 100vh; padding: 48px 20px; background: radial-gradient(600px 300px at 50% 0, rgba(45, 255, 142, .08), transparent 70%); border-top: 3px solid var(--neon); }
.notfound-slip { width: 100%; max-width: 420px; transform: rotate(-1.5deg); }
.notfound-text { margin: 10px 0 0; color: var(--paper-muted); font-size: .86rem; line-height: 1.5; }
.notfound-slip .stamp { bottom: 22%; left: auto; right: 10%; }
.notfound-links { justify-content: center; }

.article-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.article-editor .editor-side { position: sticky; top: 84px; }
.cover-preview img { display: block; width: 100%; margin-bottom: 10px; border: 1px solid var(--line-2); }
.table .thumb { display: block; width: 72px; height: 48px; object-fit: cover; border: 1px solid var(--line); }
.table .thumb-ph { display: block; width: 72px; height: 48px; background: #07100b; border: 1px dashed var(--line-2); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-edit { display: grid; grid-template-columns: 1fr 1.6fr 90px auto; gap: 10px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cat-edit .field { margin: 0; }
.char-count { float: right; color: var(--faint); font-family: var(--mono); font-size: .72rem; }
.tox-tinymce { border-color: var(--line-2) !important; border-radius: 2px !important; }

@media (max-width: 980px) {
    .article-editor { grid-template-columns: 1fr; }
    .article-editor .editor-side { position: static; }
    .cat-edit { grid-template-columns: 1fr; }
}
