/* GuruDT — sitio público y de usuario (Edición nocturna)
   Uso en Blade: <link rel="stylesheet" href="/css/gurudt.css"> + <body class="g-body">
   Prefijo de clases: g-   ·   Íconos: Lucide (data-lucide) */
@import url('tokens.css');
@import url('utilities.css');

.g-body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/var(--lh-body) var(--font-body); -webkit-font-smoothing: antialiased; }
.g-body *, .g-body *::before, .g-body *::after { box-sizing: border-box; }
.g-body a { color: inherit; text-decoration: none; }
.g-body a:hover { color: var(--accent); }
.g-body button { font: inherit; cursor: pointer; }
.g-body [data-lucide] { width: 20px; height: 20px; stroke-width: 1.75; }

/* ---------- Layout ---------- */
.g-page { max-width: var(--page-max); margin: 0 auto; padding: var(--sp-8) var(--page-x) var(--sp-10); display: flex; flex-direction: column; gap: var(--sp-9); }
.g-page--tight { gap: var(--sp-7); padding-top: var(--sp-7); }
.g-grid-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--sp-5); }
.g-grid-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); }
.g-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); }
.g-stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.g-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.g-row--between { justify-content: space-between; }

/* ---------- Header ---------- */
.g-header { display: flex; align-items: center; gap: var(--sp-8); height: var(--header-h); padding: 0 var(--page-x); border-top: var(--rule-top) solid var(--accent); border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.g-header--overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; text-shadow: var(--shadow-text); }
.g-logo { font: 800 32px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; color: var(--text); white-space: nowrap; }
.g-logo span { color: var(--accent); }
.g-nav { display: flex; gap: var(--sp-7); height: 100%; margin-right: auto; font: 700 var(--fs-d6) var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-btn); }
.g-nav a { display: flex; align-items: center; color: var(--text-3); white-space: nowrap; }
.g-nav a.is-active { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.g-account { display: flex; align-items: center; gap: var(--sp-5); font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); white-space: nowrap; }
.g-wallet { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--text-2); }
.g-wallet b { font: 500 var(--fs-mono) var(--font-mono); color: var(--accent); }
.g-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--paper); color: var(--ink-950); display: grid; place-items: center; font: 800 15px var(--font-display); text-transform: uppercase; }
.g-avatar--sm { width: 28px; height: 28px; font-size: 13px; }
.g-avatar--muted { background: var(--surface-3); color: var(--text-2); }

/* Barra inferior (solo mobile) */
.g-tabbar { display: none; }

/* ---------- Tipografía ---------- */
.g-hero-title { margin: 0; font: 800 var(--fs-hero)/var(--lh-display) var(--font-display); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.g-d1 { margin: 0; font: 800 var(--fs-d1)/.88 var(--font-display); text-transform: uppercase; }
.g-d2 { margin: 0; font: 800 var(--fs-d2)/1 var(--font-display); text-transform: uppercase; }
.g-d3 { margin: 0; font: 700 var(--fs-d3)/1 var(--font-display); text-transform: uppercase; }
.g-d4 { margin: 0; font: 700 var(--fs-d4)/var(--lh-tight) var(--font-display); text-transform: uppercase; }
.g-d5 { margin: 0; font: 700 var(--fs-d5)/var(--lh-tight) var(--font-display); text-transform: uppercase; }
.g-hl { color: var(--accent); }
.g-hl--urgent { color: var(--urgent); }
.g-lead { margin: 0; font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--text-2); max-width: 600px; text-wrap: pretty; }
.g-text { margin: 0; color: var(--text-2); text-wrap: pretty; }
.g-muted { color: var(--text-3); }
.g-small { font-size: var(--fs-sm); }
.g-mono { font-family: var(--font-mono); font-weight: 500; }
.g-eyebrow { font: 700 var(--fs-d6) var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.g-eyebrow--urgent { color: var(--urgent); }
.g-eyebrow--live { color: var(--live-text); }
.g-eyebrow--accent { color: var(--accent); }
.g-label { font: 500 var(--fs-mono-xs) var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-4); }
.g-back { font: 500 var(--fs-xs) var(--font-mono); color: var(--text-3); }

/* ---------- Botones ---------- */
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 44px; padding: 10px 20px; border: var(--rule-mid) solid transparent; border-radius: var(--r-0); font: 700 17px/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-btn); white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.g-btn--primary { background: var(--accent); color: var(--on-accent) !important; }
.g-btn--primary:hover { background: var(--green-400); }
.g-btn--secondary { border-color: var(--accent); color: var(--accent) !important; background: transparent; }
.g-btn--secondary:hover { background: var(--accent); color: var(--on-accent) !important; }
.g-btn--ghost { border-color: var(--ink-600); color: var(--text) !important; background: transparent; }
.g-btn--ghost:hover { border-color: var(--accent); color: var(--accent) !important; }
.g-btn--dark { background: var(--ink-950); color: var(--paper) !important; }
.g-btn--dark:hover { background: var(--ink-800); }
.g-btn--link { padding: 0; min-height: 0; border: 0; color: var(--text-2) !important; background: none; }
.g-btn--lg { min-height: 54px; padding: 16px 28px; font-size: 20px; }
.g-btn--sm { min-height: 34px; padding: 7px 14px; font-size: 15px; }
.g-btn--block { width: 100%; }
.g-btn:disabled, .g-btn.is-disabled { opacity: .4; pointer-events: none; }
.g-capbtn { width: 34px; height: 34px; flex: none; border-radius: 50%; border: var(--rule-mid) solid var(--urgent); background: transparent; color: var(--urgent); font: 800 15px var(--font-display); display: grid; place-items: center; }
.g-capbtn.is-on { background: var(--urgent); color: var(--ink-950); }

/* ---------- Tags / chips ---------- */
.g-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font: 700 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-label); background: var(--urgent); color: var(--ink-950); white-space: nowrap; }
.g-tag--dark { background: var(--ink-950); color: var(--urgent); }
.g-tag--accent { background: var(--accent); color: var(--ink-950); }
.g-tag--live { background: transparent; color: var(--live-text); padding-left: 0; }
.g-tag--live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.g-tag--outline { background: transparent; color: var(--text-2); border: 1px solid var(--line); }
.g-chip { display: inline-flex; align-items: center; padding: 6px 14px; font: 700 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-btn); border: 1px solid var(--line); color: var(--text-3); }
.g-chip.is-active { background: var(--paper); color: var(--ink-950); border-color: var(--paper); }

/* ---------- Reglas y encabezados de sección ---------- */
.g-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; padding-bottom: var(--sp-3); border-bottom: var(--rule-thick) solid var(--line-strong); }
.g-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Stats ---------- */
.g-stats { display: flex; }
.g-stat { display: flex; flex-direction: column; gap: 4px; padding: 0 var(--sp-6); border-left: 1px solid var(--line); }
.g-stat:last-child { padding-right: 0; }
.g-stat__value { font: 800 48px/1 var(--font-display); }
.g-stat__value small { font-size: .5em; color: var(--ink-500); }
.g-stat__value--accent { color: var(--accent); }
.g-stat__value--urgent { color: var(--urgent); }

/* ---------- Progreso ---------- */
.g-segments { display: flex; gap: 4px; }
.g-segments span { flex: 1; height: 8px; background: var(--ink-veil-20); }
.g-segments span.is-on { background: var(--ink-950); }
.g-segments--dark span { background: var(--line); }
.g-segments--dark span.is-on { background: var(--accent); }
.g-meter { display: block; height: 3px; background: var(--line); }
.g-meter > span { display: block; height: 100%; width: var(--value, 0%); background: var(--paper); }
.g-meter--accent > span { background: var(--accent); }

/* ---------- Bloques ---------- */
.g-slab { position: relative; overflow: hidden; background: var(--accent); color: var(--ink-950); padding: var(--sp-7) 36px; display: flex; flex-direction: column; gap: var(--sp-6); }
.g-slab > * { position: relative; }
.g-slab__circle { position: absolute; right: -60px; bottom: -140px; width: 320px; height: 320px; border-radius: 50%; border: 3px solid var(--ink-veil-14); }
.g-slab__line { position: absolute; right: 100px; top: 0; bottom: 0; border-left: 3px solid var(--ink-veil-14); }
.g-box { border: 1px solid var(--line); padding: 26px 28px; display: flex; flex-direction: column; gap: var(--sp-4); }
.g-box--live { border-top: var(--rule-top) solid var(--live); }
.g-box--urgent { border-top: var(--rule-top) solid var(--urgent); }
.g-box--accent { border-top: var(--rule-top) solid var(--accent); }
.g-box--flush { padding: 0; gap: 0; }
.g-box__section { padding: var(--sp-4) 22px; border-bottom: 1px solid var(--line); }
.g-box__section:last-child { border-bottom: 0; }
.g-band { background: var(--paper); color: var(--ink-950); padding: var(--sp-7) 36px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 36px; align-items: center; }
.g-band__text { font-size: 15px; line-height: 1.55; color: var(--band-text); }
.g-kv { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.g-kv > div { padding: 14px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.g-kv > div:last-child { border-right: 0; }
.g-kv__value { font: 800 30px/1 var(--font-display); text-transform: uppercase; }
.g-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.g-list > * { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }

/* ---------- Ticker de partidos ---------- */
.g-ticker { display: flex; align-items: center; height: 48px; padding: 0 var(--page-x); border-bottom: 1px solid var(--line); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.g-ticker__label { padding-right: var(--sp-5); margin-right: var(--sp-5); border-right: 1px solid var(--line); font: 700 15px var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--urgent); }
.g-ticker__items { display: flex; gap: 32px; }
.g-ticker__item { display: flex; gap: var(--sp-2); align-items: baseline; }
.g-ticker__item b { font: 700 18px var(--font-display); text-transform: uppercase; }
.g-ticker__item span { font: 500 var(--fs-xs) var(--font-mono); color: var(--text-3); }

/* ---------- Tabla editorial ---------- */
.g-table { width: 100%; border-collapse: collapse; }
.g-table th { padding: 10px 16px 10px 0; text-align: left; font: 500 var(--fs-mono-sm) var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-btn); color: var(--text-4); border-bottom: 1px solid var(--line); white-space: nowrap; }
.g-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.g-table td:last-child, .g-table th:last-child { padding-right: 0; text-align: right; }
.g-table--compact td { padding-top: 12px; padding-bottom: 12px; }
.g-table__name { font: 700 26px/1.05 var(--font-display); text-transform: uppercase; }
.g-table__sub { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-3); }
.g-table__num { font: 500 15px var(--font-mono); white-space: nowrap; }
.g-table__prize { font: 800 26px/1 var(--font-display); color: var(--accent); white-space: nowrap; }
.g-table tr.is-selected td { background: var(--accent-wash); }
.g-table-wrap { overflow-x: auto; }

/* ---------- Pasos ---------- */
.g-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.g-step { padding: var(--sp-5) var(--sp-6) 0 0; display: flex; flex-direction: column; gap: 10px; }
.g-step__n { font: 800 64px/1 var(--font-display); color: var(--accent); }
.g-step__t { font: 700 24px/1.05 var(--font-display); text-transform: uppercase; }
.g-step__d { font-size: 15px; line-height: 1.5; color: var(--text-3); }

/* ---------- Hero con video ---------- */
.g-video-hero { position: relative; height: calc(100vh - 96px); min-height: 600px; max-height: 960px; background: var(--ink-900); display: flex; flex-direction: column; overflow: hidden; }
.g-video-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--hero-video-filter); }
.g-video-hero__fade { position: absolute; inset: 0; background: var(--hero-fade); }
.g-video-hero__tint { position: absolute; inset: 0; background: var(--hero-tint); }
.g-video-hero__content { position: relative; margin-top: auto; padding: 0 var(--page-x) 56px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-8); align-items: end; }
.g-video-hero .g-hero-title { text-shadow: var(--shadow-text-lg); }
.g-video-hero .g-lead, .g-video-hero .g-btn--link { color: var(--ink-100) !important; text-shadow: var(--shadow-text); }
.g-video-hero .g-tag { box-shadow: var(--shadow-btn); }
.g-video-hero .g-btn--primary { box-shadow: none; }

/* ---------- Formularios ---------- */
.g-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.g-field > span { font: 500 var(--fs-mono-xs) var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-3); }
.g-input, .g-select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--text); font: 400 15px var(--font-body); outline: none; appearance: none; }
.g-select { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.g-input::placeholder { color: var(--text-4); }
.g-input:focus, .g-select:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.g-input.is-invalid { border-color: var(--danger); }
.g-field__error { font-size: var(--fs-xs); color: var(--danger); }
.g-check { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--text-2); }
.g-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.g-filters { display: flex; gap: 10px; flex-wrap: wrap; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.g-filters > * { flex: 1 1 160px; }
.g-search { position: relative; }
.g-search [data-lucide] { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-4); }
.g-search .g-input { padding-left: 40px; }

/* ---------- Tabs ---------- */
.g-tabs { display: flex; gap: var(--sp-6); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.g-tabs a, .g-tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 0 0 10px; font: 700 19px var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--text-4); }
.g-tabs .is-active { color: var(--text); border-bottom-color: var(--accent); }
.g-tabs small { font: 500 12px var(--font-mono); color: inherit; }
.g-tabs .is-active small { color: var(--accent); }

/* ---------- Cancha ---------- */
.g-pitch { position: relative; height: 720px; background: repeating-linear-gradient(180deg, var(--pitch-a) 0 72px, var(--pitch-b) 72px 144px); padding: 30px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.g-pitch::before { content: ''; position: absolute; inset: 12px; border: 2px solid var(--pitch-line); pointer-events: none; }
.g-pitch__half { position: absolute; left: 12px; right: 12px; top: 50%; border-top: 2px solid var(--pitch-line); }
.g-pitch__circle { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border: 2px solid var(--pitch-line); border-radius: 50%; }
.g-pitch__box { position: absolute; left: 50%; width: 280px; margin-left: -140px; height: 96px; border: 2px solid var(--pitch-line); }
.g-pitch__box--top { top: 12px; border-top: 0; }
.g-pitch__box--bottom { bottom: 12px; border-bottom: 0; }
.g-pitch__label { position: absolute; top: 22px; left: 24px; font: 500 var(--fs-mono-xs) var(--font-mono); color: var(--pitch-label); }
.g-line { position: relative; display: flex; justify-content: space-evenly; gap: var(--sp-2); }
.g-slot { width: 126px; background: var(--paper); color: var(--ink-950); padding: 9px 10px 8px; display: flex; flex-direction: column; gap: 3px; position: relative; box-shadow: var(--shadow-slot); }
.g-slot__name { font: 700 19px/1 var(--font-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-slot__meta { display: flex; justify-content: space-between; font: 500 11px var(--font-mono); color: var(--ink-500); }
.g-slot__meta b { color: var(--ink-950); font-weight: 500; }
.g-slot__cap { position: absolute; top: -11px; right: -11px; width: 24px; height: 24px; border-radius: 50%; background: var(--urgent); color: var(--ink-950); display: grid; place-items: center; font: 800 14px var(--font-display); box-shadow: 0 0 0 3px var(--pitch-a); }
.g-slot__pts { position: absolute; top: -12px; right: -8px; padding: 2px 7px; background: var(--accent); color: var(--ink-950); font: 800 15px var(--font-display); box-shadow: 0 0 0 3px var(--pitch-a); }
.g-slot--empty { height: 54px; background: transparent; box-shadow: none; border: var(--rule-mid) dashed var(--accent-dash); color: var(--accent); align-items: center; justify-content: center; flex-direction: row; gap: 6px; font: 700 15px var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-btn); }
.g-pitch-total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--sp-4) var(--sp-5); background: var(--paper); color: var(--ink-950); }

/* ---------- Jugador en lista ---------- */
.g-player { display: flex; align-items: center; gap: var(--sp-3); }
.g-player__name { font: 700 20px/1.05 var(--font-display); text-transform: uppercase; }
.g-player__club { font-size: var(--fs-xs); color: var(--text-3); }
.g-player__actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- Barra de acción ---------- */
.g-actionbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; border-top: var(--rule-thick) solid var(--line-strong); padding-top: var(--sp-5); }
.g-actionbar__info { display: flex; gap: var(--sp-7); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-3); }
.g-actionbar__info strong { color: var(--text); }

/* ---------- Avisos ---------- */
.g-toast { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 9px 14px; background: var(--urgent); color: var(--ink-950); font-size: var(--fs-sm); font-weight: 600; }
.g-toast--ok { background: var(--accent); }
.g-alert { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-left: 0; background: var(--surface); font-size: var(--fs-sm); color: var(--text-2); }
.g-alert--error { border-color: var(--danger); color: var(--danger-text); }
.g-empty { padding: var(--sp-10) var(--sp-6); border: 1px dashed var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }

/* ---------- Partido ---------- */
.g-match { border: 1px solid var(--line); padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.g-match__teams { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); font: 700 22px/1 var(--font-display); text-transform: uppercase; }
.g-match__teams span { font: 500 var(--fs-mono-sm) var(--font-mono); color: var(--text-4); }
.g-match__score { font: 800 32px/1 var(--font-display); }
.g-match__meta { display: flex; justify-content: space-between; gap: var(--sp-3); font: 500 var(--fs-xs) var(--font-mono); color: var(--text-3); }

/* ---------- Auth ---------- */
.g-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); min-height: calc(100vh - var(--header-h)); }
.g-auth__side { position: relative; overflow: hidden; background: var(--accent); color: var(--ink-950); padding: var(--sp-9); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-5); }
.g-auth__form { padding: var(--sp-9); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-6); }

/* ---------- Modal ficha jugador ---------- */
.g-modal { width: min(640px, calc(100% - 24px)); padding: 0; border: 1px solid var(--line); border-top: var(--rule-top) solid var(--accent); background: var(--surface); color: var(--text); }
.g-modal::backdrop { background: var(--backdrop); }

/* ---------- Modificadores ---------- */
.g-hero-title--md { font-size: clamp(56px, 8vw, 112px); }
.g-hero-title--sm { font-size: clamp(56px, 7.5vw, 104px); }
.g-bignum { font: 800 88px/.9 var(--font-display); }
.g-bignum--64 { font-size: 64px; line-height: 1; }
.g-bignum--40 { font-size: 40px; line-height: 1; }
.g-step__n--sm { font-size: 40px; }
.g-kv--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-kv--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-kv--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-kv--ruled { border-top: 1px solid var(--line); }
.g-kv__value--xl { font-size: 48px; }
.g-grid-cards--sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.g-grid-cards--md { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.g-grid-cards--lg { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.g-grid-builder { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.g-table__score { font-size: 20px; font-weight: 600; }
.g-summary-plain { list-style: none; }

/* ---------- Footer ---------- */
.g-footer { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; padding: var(--sp-5) var(--page-x); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-4); }
.g-footer nav { display: flex; gap: var(--sp-5); }

/* Tablet (≤ 1100px) */
@media (max-width: 1100px) {
  .g-header { gap: var(--sp-5); padding: 0 32px; }
  .g-nav { gap: var(--sp-5); }
  .g-account__link { display: none; }
  .g-page { padding-left: 32px; padding-right: 32px; }
  .g-grid-2, .g-grid-builder { grid-template-columns: minmax(0, 1fr) !important; }
  .g-grid-2 > *, .g-grid-split > * { min-width: 0; }
  .g-band { grid-template-columns: 1fr; gap: var(--sp-4); }
  .g-stats { flex-wrap: wrap; row-gap: var(--sp-4); }
  .g-pitch { max-width: 620px; width: 100%; margin: 0 auto; }
  .g-video-hero__content { grid-template-columns: 1fr; }
}

/* =========================================================
   Mobile (≤ 760px)
   ========================================================= */
@media (max-width: 760px) {
  .g-body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .g-body.g-body--public { padding-bottom: 0; }
  .g-header { height: 60px; gap: var(--sp-3); padding: 0 var(--page-x-mobile); }
  .g-logo { font-size: 26px; margin-right: auto; }
  .g-nav, .g-account__link, .g-hide-mobile { display: none !important; }
  .g-account { gap: var(--sp-2); }
  .g-header .g-btn { min-height: 38px; padding: 8px 12px; font-size: 15px; }
  .g-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--ink-950); border-top: 1px solid var(--line); }
  .g-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 44px; font: 600 11px var(--font-body); color: var(--text-4); }
  .g-tabbar a.is-active { color: var(--accent); box-shadow: inset 0 2px 0 var(--accent); }
  .g-tabbar [data-lucide] { width: 22px; height: 22px; }
  .g-page { padding: var(--sp-6) var(--page-x-mobile) var(--sp-8); gap: var(--sp-8); }
  .g-grid-2, .g-grid-split, .g-band, .g-video-hero__content, .g-auth { grid-template-columns: minmax(0, 1fr) !important; }
  .g-kv { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .g-kv > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .g-kv > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .g-kv > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .g-kv > div:nth-last-child(-n+2):not(:nth-child(odd):nth-last-child(2)) { border-bottom: 0; }
  .g-pitch { max-width: 100%; }
  .g-line { gap: 4px; }
  .g-table td, .g-table th { padding-right: 10px; }
  .g-steps { grid-template-columns: 1fr 1fr; gap: var(--sp-5) 0; }
  .g-step__n { font-size: 44px; }
  .g-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) 0; }
  .g-stat { padding: 0 var(--sp-4); }
  .g-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .g-stat__value { font-size: 36px; }
  .g-slab { padding: var(--sp-6) var(--sp-5); }
  .g-band { padding: var(--sp-6) var(--sp-5); gap: var(--sp-4); }
  .g-box { padding: var(--sp-5); }
  .g-ticker { padding: 0 var(--page-x-mobile); }
  .g-video-hero { height: auto; min-height: calc(100svh - 48px); }
  .g-video-hero__content { padding: 120px var(--page-x-mobile) var(--sp-7); gap: var(--sp-5); }
  .g-pitch { height: 520px; padding: 22px 6px; }
  .g-pitch__box { width: 180px; margin-left: -90px; height: 64px; }
  .g-slot { width: 78px; padding: 6px; }
  .g-slot__name { font-size: 14px; }
  .g-slot__meta { font-size: 9px; }
  .g-slot--empty { height: 40px; font-size: 12px; }
  .g-slot--empty .g-plus { display: none; }
  .g-table--stack thead { display: none; }
  .g-table--stack tr { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
  .g-table--stack td { padding: 0 !important; border: 0; text-align: left !important; }
  .g-table--stack td[data-label]::before { content: attr(data-label) ' '; font: 500 10px var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-4); margin-right: 6px; }
  .g-table--stack td:first-child { grid-column: 1 / -1; }
  .g-table--stack td.g-cell-action { grid-column: 1 / -1; }
  .g-table--stack td.g-cell-action .g-btn { width: 100%; }
  .g-table__name { font-size: 22px; }
  .g-actionbar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 10; background: var(--ink-950); margin: 0 calc(var(--page-x-mobile) * -1); padding: var(--sp-3) var(--page-x-mobile); }
  .g-actionbar__info { display: none; }
  .g-actionbar > div:last-child { width: 100%; }
  .g-actionbar .g-btn--primary { flex: 1; }
  .g-auth__side { padding: var(--sp-7) var(--page-x-mobile); min-height: 220px; }
  .g-auth__form { padding: var(--sp-7) var(--page-x-mobile); }
  .g-kv__value { font-size: 24px; }
  .g-kv > div { padding: 12px 14px; }
  .g-footer { padding: var(--sp-5) var(--page-x-mobile); }
}
