/* Atos Games — visual do site (páginas públicas, conta e administração).
   Marca: roxo profundo + amarelo, títulos em Fredoka; textos em fonte do sistema (mais legível em formulários). */
@font-face { font-family: 'Fredoka'; font-weight: 500; src: url('../fonts/fredoka-latin-500-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fredoka'; font-weight: 600; src: url('../fonts/fredoka-latin-600-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fredoka'; font-weight: 700; src: url('../fonts/fredoka-latin-700-normal.woff2') format('woff2'); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #110a2c;
  --bg-2: #1a1145;
  --surface: #1b1344;
  --surface-2: #241a57;
  --surface-3: #2e2369;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --ink: #ffffff;
  --text: #ece8ff;
  --muted: #b3aad9;
  --faint: #8d84bb;
  --yellow: #ffcf3f;
  --yellow-2: #ffb703;
  --yellow-ink: #2b1a00;
  --pink: #ff4fa3;
  --cyan: #3fd0ff;
  --green: #3ccf7f;
  --green-bg: rgba(60, 207, 127, 0.14);
  --red: #ff6b7a;
  --red-bg: rgba(255, 107, 122, 0.12);
  --blue-bg: rgba(63, 208, 255, 0.12);
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 12px 32px rgba(5, 2, 20, 0.45);
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 79, 163, 0.12), transparent 32rem),
    radial-gradient(circle at 90% 5%, rgba(63, 208, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, var(--bg-2), var(--bg) 42rem);
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 600; color: var(--yellow); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

/* ---------- marca ---------- */
.brand { display: inline-flex; align-items: baseline; gap: 0.18em; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.65rem; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand b { font-weight: 700; }
.brand i { font-style: normal; color: var(--yellow-ink); background: var(--yellow); padding: 0.06em 0.34em 0.1em; border-radius: 0.45em; transform: rotate(-4deg); box-shadow: 0 0.12em 0 #c26b00; }
.game-logo { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.game-logo span { color: var(--yellow); display: inline-block; transform: rotate(-4deg); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer; transition: transform 0.08s, background 0.15s, border-color 0.15s, box-shadow 0.15s; white-space: nowrap; color: var(--ink); background: var(--surface-3); }
.btn:hover { color: var(--ink); background: #3a2d80; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(180deg, #ffd95e, var(--yellow-2)); color: var(--yellow-ink); box-shadow: 0 3px 0 #b07800; }
.btn-primary:hover { background: linear-gradient(180deg, #ffe17a, #ffbf1f); color: var(--yellow-ink); }
.btn-outline { background: transparent; border-color: var(--line-2); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-danger { background: transparent; border-color: rgba(255, 107, 122, 0.45); color: var(--red); }
.btn-danger:hover { background: var(--red-bg); color: #ff8f9b; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.875rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--yellow); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- faixa do modo demonstração ---------- */
.demo-bar { background: repeating-linear-gradient(135deg, #3b2a00, #3b2a00 12px, #463300 12px, #463300 24px); color: #ffe7a3; font-size: 0.85rem; text-align: center; padding: 6px 16px; border-bottom: 1px solid rgba(255, 207, 63, 0.3); }
.demo-bar b { color: var(--yellow); }

/* ---------- cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(17, 10, 44, 0.82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 10px; font-size: 0.97rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.guest-only, .user-only { display: flex; align-items: center; gap: 8px; }
html.is-user .guest-only, html:not(.is-user) .user-only, html:not(.is-admin) .admin-only { display: none !important; }
.account { position: relative; }
.account-btn { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 4px; cursor: pointer; min-height: 44px; }
.account-btn:hover { background: rgba(255, 255, 255, 0.1); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: linear-gradient(135deg, var(--pink), #8a4fff); color: #fff; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.4rem; }
.account-name { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-pill { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.plan-pill.plus { background: var(--yellow); color: var(--yellow-ink); }
.account-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; }
.account-pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-pop .who b { display: block; color: var(--ink); }
.account-pop .who span { font-size: 0.85rem; color: var(--muted); word-break: break-all; }
.account-pop a, .account-pop button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; font-size: 0.95rem; }
.account-pop a:hover, .account-pop button:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 1.3rem; }
.mobile-panel { display: none; }

@media (max-width: 860px) {
  .header-in { gap: 12px; min-height: 60px; }
  .main-nav, .header-actions .guest-only .btn-primary, .account-name, .account-btn .plan-pill { display: none; }
  .main-nav { margin-right: 0; }
  .brand { margin-right: auto; font-size: 1.45rem; }
  .menu-btn { display: grid; place-items: center; }
  .account-btn { padding: 4px; }
  .mobile-panel { display: block; border-top: 1px solid var(--line); padding-block: 8px 14px; }
  .mobile-panel a { display: block; padding: 11px 4px; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-panel .row { display: flex; gap: 8px; margin-top: 12px; }
  .mobile-panel .row .btn { flex: 1; }
}

/* ---------- rodapé ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: rgba(10, 6, 28, 0.55); padding: 48px 0 28px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-family: var(--body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--yellow); }
.footer-about p { color: var(--muted); margin-top: 12px; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- cartões, formulários ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card-sm { padding: 18px; border-radius: var(--r); }
.card h3 { margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.field .hint { font-size: 0.82rem; color: var(--faint); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 2, 20, 0.35); color: var(--ink); font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s; }
.input::placeholder { color: #7f77a8; }
.input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 207, 63, 0.2); }
.input[aria-invalid="true"] { border-color: var(--red); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-wrap .peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; font-size: 0.85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--yellow); flex: none; }
.form-error { color: var(--red); background: var(--red-bg); border: 1px solid rgba(255, 107, 122, 0.35); padding: 10px 14px; border-radius: 12px; font-size: 0.92rem; margin-bottom: 16px; }
.form-ok { color: #8ff0b8; background: var(--green-bg); border: 1px solid rgba(60, 207, 127, 0.35); padding: 10px 14px; border-radius: 12px; font-size: 0.92rem; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 0.85rem; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- avisos, selos ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--blue-bg); font-size: 0.94rem; }
.alert.warn { background: rgba(255, 207, 63, 0.1); border-color: rgba(255, 207, 63, 0.35); }
.alert.ok { background: var(--green-bg); border-color: rgba(60, 207, 127, 0.35); }
.alert.bad { background: var(--red-bg); border-color: rgba(255, 107, 122, 0.35); }
.alert .ic { font-size: 1.2rem; line-height: 1.3; }
.alert p { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--text); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.badge.plus { background: var(--yellow); color: var(--yellow-ink); }
.badge.ok { background: var(--green-bg); color: #8ff0b8; }
.badge.warn { background: rgba(255, 207, 63, 0.15); color: var(--yellow); }
.badge.bad { background: var(--red-bg); color: var(--red); }
.badge.info { background: var(--blue-bg); color: var(--cyan); }

/* ---------- avisos rápidos e janelas ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
.toast { background: #2a1f66; border: 1px solid var(--line-2); color: var(--ink); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; animation: toast-in 0.25s ease-out; pointer-events: auto; }
.toast.ok { border-color: rgba(60, 207, 127, 0.5); }
.toast.bad { border-color: rgba(255, 107, 122, 0.6); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }
dialog.modal { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 0; background: var(--surface); color: var(--text); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
dialog.modal.wide { width: min(860px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(8, 4, 24, 0.7); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.modal-head h3 { margin: 0; font-size: 1.3rem; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; }
.modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.modal-body { padding: 16px 24px 24px; overflow-y: auto; max-height: calc(100vh - 140px); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th { text-align: left; font-weight: 600; color: var(--faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 16px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .who b { display: block; color: var(--ink); font-weight: 600; }
.table .who span { color: var(--muted); font-size: 0.85rem; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .big { font-size: 2.4rem; display: block; margin-bottom: 8px; }

/* ---------- abas ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { flex: none; padding: 10px 16px; color: var(--muted); text-decoration: none; font-weight: 600; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .on { color: var(--ink); border-bottom-color: var(--yellow); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.seg button.on { background: var(--ink); color: #1a1145; }
.seg .save { font-size: 0.72rem; background: var(--green); color: #032112; padding: 2px 7px; border-radius: 999px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: transparent; color: var(--text); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 0.9rem; }
.chip:hover { background: rgba(255, 255, 255, 0.06); }
.chip.on { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }

/* ---------- página inicial ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { max-width: 54ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 0.93rem; margin: 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: '✓'; color: var(--green); font-weight: 700; }
.join-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.join-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.join-card .muted { font-size: 0.95rem; margin-bottom: 18px; }
.code-input { text-transform: uppercase; letter-spacing: 0.5em; text-align: center; font-family: var(--display); font-weight: 700; font-size: 2rem !important; padding: 10px 14px !important; min-height: 64px !important; }
.join-status { min-height: 1.4em; font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.join-status.ok { color: var(--green); }
.join-status.bad { color: var(--red); }
.join-status.warn { color: var(--yellow); }
.game-pick { display: grid; gap: 8px; margin-bottom: 12px; }
.pick-btn { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); cursor: pointer; text-align: left; font-size: 1.05rem; }
.pick-btn:hover { background: rgba(255, 255, 255, 0.1); }
.join-foot { font-size: 0.84rem; color: var(--faint); margin: 14px 0 0; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; }
.steps .ic { font-size: 2rem; display: block; margin-bottom: 14px; }
.steps li::after { counter-increment: s; content: counter(s); position: absolute; top: 20px; right: 22px; font-family: var(--display); font-weight: 700; font-size: 2.6rem; color: rgba(255, 255, 255, 0.07); line-height: 1; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* catálogo */
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.catalog-head h2 { margin: 0; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters .label { color: var(--muted); font-weight: 500; margin-right: 4px; }
.row { margin-top: 28px; }
.row h3 { font-size: 1.2rem; margin-bottom: 14px; }
.row-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.row-track > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .row-track { grid-auto-columns: calc((100% - 48px) / 4); } }
.gcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.gcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.gcard-hit { all: unset; cursor: pointer; display: flex; flex-direction: column; flex: 1; }
.gcard-hit:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; border-radius: var(--r-lg); }
.gcard-cover { aspect-ratio: 16 / 9; background: #20164f; overflow: hidden; }
.gcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.gcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard-title { font-size: 1.3rem; }
.gcard-tag { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.gcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.gcard-meta span { font-size: 0.78rem; color: var(--text); background: rgba(255, 255, 255, 0.07); padding: 3px 9px; border-radius: 999px; }
.gcard-meta .free { color: var(--cyan); background: var(--blue-bg); }
.gcard-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.gcard-fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(17, 10, 44, 0.75); color: #fff; cursor: pointer; font-size: 1.05rem; display: grid; place-items: center; backdrop-filter: blur(4px); }
.gcard-fav.on { color: var(--pink); }
.gcard-fav:hover { background: rgba(17, 10, 44, 0.95); }
html:not(.is-user) .gcard-fav { display: none; }
.gcard-play { position: absolute; right: 12px; top: calc((100% - 0px) * 0); }

/* destaque de planos e perguntas */
.plans-teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: linear-gradient(120deg, rgba(255, 207, 63, 0.12), rgba(255, 79, 163, 0.1)); border: 1px solid rgba(255, 207, 63, 0.25); border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.plans-teaser .price { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
.plans-teaser .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; color: var(--ink); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--yellow); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; margin: 0; }

/* detalhes de um jogo */
.game-detail .cover { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; margin-bottom: 18px; background: #20164f; }
.game-detail .cover img { width: 100%; height: 100%; object-fit: cover; }
.game-detail h2 { font-size: 2rem; }
.tier-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.tier-compare div { border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; font-size: 0.93rem; }
.tier-compare b { display: block; margin-bottom: 4px; color: var(--ink); }
.tier-compare .plus { border-color: rgba(255, 207, 63, 0.45); background: rgba(255, 207, 63, 0.06); }

/* ---------- planos ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 32px auto 0; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--yellow); background: linear-gradient(180deg, rgba(255, 207, 63, 0.08), var(--surface) 40%); box-shadow: 0 20px 50px rgba(255, 183, 3, 0.12); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: var(--yellow-ink); font-weight: 700; font-size: 0.78rem; padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.price-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.price-card .for { color: var(--muted); margin-bottom: 20px; min-height: 3em; }
.price-line { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-line .cur { font-size: 1.2rem; font-weight: 600; color: var(--muted); }
.price-line .val { font-family: var(--display); font-size: 3.2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.price-line .per { color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.9rem; min-height: 1.6em; margin-bottom: 22px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; }
.price-card li::before { content: '✓'; color: var(--green); font-weight: 800; flex: none; }
.price-card li.no::before { content: '–'; color: var(--faint); }
.price-card li.no { color: var(--faint); }
.compare-table td:nth-child(2) { color: var(--muted); }
.compare-table td:nth-child(3) { color: var(--ink); }
.how-unlock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* ---------- autenticação ---------- */
.auth-page { display: grid; place-items: center; padding: 48px 16px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card { padding: 32px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: 0.95rem; }
.demo-hint { margin-top: 16px; font-size: 0.85rem; }
.strength { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 2px; }
.strength i { display: block; height: 100%; width: 0; transition: width 0.2s, background 0.2s; }

/* ---------- assinar ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 28px; align-items: start; padding-top: 32px; }
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.plan-opt { display: block; position: relative; border: 2px solid var(--line-2); border-radius: var(--r); padding: 16px; cursor: pointer; background: rgba(255, 255, 255, 0.02); }
.plan-opt:has(input:checked) { border-color: var(--yellow); background: rgba(255, 207, 63, 0.07); }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt b { display: block; color: var(--ink); font-size: 1.05rem; }
.plan-opt .p { font-family: var(--display); font-size: 1.6rem; color: var(--ink); font-weight: 700; }
.plan-opt .s { color: var(--muted); font-size: 0.85rem; }
.plan-opt .badge { position: absolute; top: 12px; right: 12px; }
.saved-cards { display: grid; gap: 10px; margin-bottom: 16px; }
.saved-card { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.saved-card:has(input:checked) { border-color: var(--yellow); }
.saved-card input { accent-color: var(--yellow); width: 18px; height: 18px; }
.card-brand { display: inline-grid; place-items: center; min-width: 52px; height: 32px; border-radius: 6px; background: #fff; color: #1a1145; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.02em; padding: 0 6px; }
.card-brand.Visa { color: #1a1f71; }
.card-brand.Mastercard { color: #eb001b; }
.card-brand.Elo { background: #000; color: #ffcb05; }
.summary { position: sticky; top: 92px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--muted); }
.summary-line b { color: var(--ink); font-weight: 600; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.1rem; }
.summary-total b { font-family: var(--display); font-size: 1.5rem; }
.secure { display: flex; gap: 8px; align-items: center; color: var(--faint); font-size: 0.85rem; margin-top: 14px; }

/* ---------- painel (conta e administração) ---------- */
.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-top: 32px; align-items: start; }
.dash-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.dash-nav .who { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.dash-nav .who b { display: block; color: var(--ink); line-height: 1.3; }
.dash-nav .who > div { min-width: 0; }
.dash-nav .who div span { display: block; font-size: 0.82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-nav a, .dash-nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left; font-size: 0.97rem; }
.dash-nav a:hover, .dash-nav button:hover { background: rgba(255, 255, 255, 0.06); }
.dash-nav a.on { background: rgba(255, 207, 63, 0.12); color: var(--yellow); }
.dash-nav .ic { width: 22px; text-align: center; }
.dash-nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; width: 100%; }
.dash-main h1 { font-size: 1.9rem; margin-bottom: 4px; }
.dash-main > .sub { color: var(--muted); margin-bottom: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2 { font-size: 1.25rem; margin: 0; }
.panel-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.plan-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px; border-radius: var(--r-lg); background: linear-gradient(120deg, rgba(255, 207, 63, 0.16), rgba(255, 79, 163, 0.12)); border: 1px solid rgba(255, 207, 63, 0.3); margin-bottom: 20px; }
.plan-hero.free { background: var(--surface); border-color: var(--line); }
.plan-hero h2 { margin: 0 0 4px; font-size: 1.5rem; }
.plan-hero p { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat .k { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.stat .v { font-family: var(--body); font-size: 1.85rem; font-weight: 650; color: var(--ink); line-height: 1.2; margin: 4px 0 2px; letter-spacing: -0.01em; }
.stat .d { color: var(--faint); font-size: 0.82rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { max-width: 340px; }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.danger-zone { border-color: rgba(255, 107, 122, 0.35); }
.receipt { font-size: 0.95rem; }
.receipt .head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
@media (max-width: 900px) {
  .dash { gap: 16px; padding-top: 16px; }
  .dash-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .dash-nav .who, .dash-nav hr { display: none; }
  .dash-nav a, .dash-nav button { flex: none; padding: 8px 12px; }
}

/* ---------- textos legais ---------- */
.legal { max-width: 780px; margin-inline: auto; padding-top: 40px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 32px; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plans-teaser { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .how-unlock { grid-template-columns: minmax(0, 1fr); }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .card, .panel { padding: 18px; }
  .auth-card .card { padding: 24px 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .plan-options { grid-template-columns: 1fr; }
  .tier-compare { grid-template-columns: 1fr; }
  .join-card { padding: 22px 18px; }
  .row-track { grid-auto-columns: 82%; }
}
@media print {
  body::before, .site-header, .site-footer, .demo-bar, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- página inicial: complementos ---------- */
.gcard-more { justify-content: center; align-items: center; text-align: center; gap: 8px; padding: 28px 22px; border-style: dashed; background: rgba(255, 255, 255, 0.02); color: var(--muted); font-size: 0.92rem; }
.gcard-more:hover { transform: none; box-shadow: none; }
.gcard-more b { color: var(--ink); font-family: var(--display); font-size: 1.15rem; }
.gcard-more .more-art { font-size: 1.8rem; letter-spacing: 0.2em; }
.hero-how { display: none; list-style: none; margin: 0 0 4px; padding: 0; gap: 10px; }
.hero-how li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.hero-how .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); font-size: 1.05rem; }
.hero-how b { color: var(--ink); display: block; }
.join-plan { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 14px 0 0; }
.join-plan.plus { border-color: rgba(255, 207, 63, 0.4); background: rgba(255, 207, 63, 0.07); color: var(--text); }
.join-card .field { margin-bottom: 12px; }
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 800; flex: none; }
.empty { color: var(--muted); padding: 24px 0; }
.lost { text-align: center; padding: 80px 16px; }
@media (max-width: 860px) {
  .hero { padding-top: 24px; }
  .hero-grid { gap: 22px; }
  .hero h1 { font-size: clamp(1.7rem, 7.4vw, 2.3rem); margin-bottom: 12px; }
  .hero .lead { font-size: 1.02rem; margin-bottom: 16px; }
  .hero-actions, .hero .trust { display: none; }
  .hero-how { display: grid; }
}
.compare-table th[scope="row"] .game-logo { font-size: 1.1rem; }
@media (max-width: 860px) {
  .hero .lead { display: none; }
}
@media (max-width: 560px) {
  .demo-bar .long { display: none; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .compare-table tr:last-child { border-bottom: 0; }
  .compare-table th[scope="row"], .compare-table td { padding: 2px 0; border: 0; background: none; }
  .compare-table th[scope="row"] { margin-bottom: 6px; }
  .compare-table td::before { content: attr(data-label) ': '; font-weight: 700; color: var(--faint); }
  .compare-table tbody tr:hover td { background: none; }
}
@media (max-width: 560px) {
  .catalog-head .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .catalog-head .filters .chip, .catalog-head .filters .label { flex: none; }
}
.h-step { font-family: var(--body); font-size: 1.05rem; font-weight: 700; margin: 26px 0 12px; }
.input-wrap .card-brand.peek { padding: 0 6px; height: 26px; top: 50%; right: 10px; background: #fff; }
.input-wrap .card-brand.peek.Elo { background: #000; }
.saved-card > span:last-child { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; }
@media print {
  body.printing-receipt > *:not(dialog) { display: none !important; }
  body.printing-receipt dialog.modal { position: static; border: 0; box-shadow: none; background: #fff; color: #000; width: 100%; max-height: none; }
  body.printing-receipt .modal-head, body.printing-receipt .no-print { display: none !important; }
  body.printing-receipt .kv dt, body.printing-receipt .muted { color: #555 !important; }
  body.printing-receipt .kv dd, body.printing-receipt b { color: #000 !important; }
}
.dash-main { min-width: 0; }
.saved-card { flex-wrap: wrap; }
@media (max-width: 900px) { .dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .toolbar .btn, .plan-hero .btn, .modal-actions .btn { white-space: normal; text-align: center; }
  .plan-hero .btn { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}
/* tabelas que viram lista no celular: cada <td> leva data-label */
@media (max-width: 640px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table.stack tr:last-child { border-bottom: 0; }
  .table.stack td { border: 0; padding: 3px 0; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; text-align: right; }
  .table.stack td.num { text-align: right; }
  .table.stack td[data-label]::before { content: attr(data-label); color: var(--faint); font-size: 0.8rem; font-weight: 600; text-align: left; flex: none; }
  .table.stack td:not([data-label]) { justify-content: flex-end; }
  .table.stack tbody tr:hover td { background: none; }
}

/* ---------- gráficos (administração) ----------
   Cores validadas na superfície escura #1b1344: Plus em destaque (dourado), grátis em cinza de contexto,
   série única em azul. Texto sempre nas cores de texto, nunca na cor da série. */
.viz { --viz-plus: #c98500; --viz-free: #7a7596; --viz-1: #3987e5; --viz-grid: rgba(255, 255, 255, 0.08); --viz-base: rgba(255, 255, 255, 0.24); position: relative; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; color: var(--muted); margin: 0 0 14px; padding: 0; list-style: none; }
.viz-legend li { display: flex; align-items: center; gap: 8px; }
.viz-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.viz-cols { display: grid; grid-template-columns: 34px minmax(0, 1fr); }
.viz-yaxis { position: relative; height: 200px; font-size: 0.72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.viz-yaxis span { position: absolute; right: 8px; transform: translateY(50%); }
.viz-plot { position: relative; height: 200px; border-bottom: 1px solid var(--viz-base); display: flex; align-items: flex-end; }
.viz-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--viz-grid); pointer-events: none; }
.viz-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; cursor: default; outline: none; position: relative; z-index: 1; }
.viz-col .viz-seg { width: min(24px, 62%); min-height: 0; }
.viz-col .viz-seg.plus { background: var(--viz-plus); }
.viz-col .viz-seg.free { background: var(--viz-free); }
.viz-col .viz-seg.top { border-radius: 4px 4px 0 0; }
.viz-col:hover .viz-seg, .viz-col:focus-visible .viz-seg { filter: brightness(1.25); }
.viz-col:focus-visible { box-shadow: inset 0 0 0 2px var(--yellow); border-radius: 6px; }
.viz-xaxis { display: flex; margin-left: 34px; padding-top: 6px; font-size: 0.72rem; color: var(--faint); }
.viz-xaxis span { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: visible; }
@media (max-width: 560px) { .viz-xaxis span:nth-child(even) { visibility: hidden; } }
.viz-bars { display: grid; gap: 10px; }
.viz-bar { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 12px; align-items: center; font-size: 0.92rem; outline: none; border-radius: 8px; padding: 2px 4px; }
.viz-bar:hover, .viz-bar:focus-visible { background: rgba(255, 255, 255, 0.04); }
.viz-bar .name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-bar .track { display: flex; align-items: center; gap: 8px; min-width: 0; height: 24px; border-left: 1px solid var(--viz-base); }
.viz-bar .fill { height: 12px; background: var(--viz-1); border-radius: 0 4px 4px 0; flex: none; }
.viz-bar .val { color: var(--text); font-variant-numeric: tabular-nums; font-size: 0.85rem; white-space: nowrap; }
.viz-tip { position: fixed; z-index: 95; pointer-events: none; background: #0d0826; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 0.85rem; min-width: 150px; }
.viz-tip .t { color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.viz-tip .r { display: flex; align-items: center; gap: 8px; }
.viz-tip .r b { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 2.5ch; }
.viz-tip .r i { width: 12px; height: 2px; border-radius: 2px; display: inline-block; }
.viz-tip .r span { color: var(--muted); }
.viz-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.stat .d b { color: var(--text); font-weight: 600; }
.admin-note { font-size: 0.85rem; color: var(--faint); }
.user-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.user-head h4 { margin: 0; font-size: 1.2rem; }
.user-head .muted { word-break: break-all; }
.modal-section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }
.modal-section h4 { font-family: var(--body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 10px; }
.grant-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.grant-form .field { margin: 0; }
@media (max-width: 700px) { .grant-form { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat .v { font-size: 1.35rem; }
  .table .who span { word-break: break-all; }
  .table td { padding: 10px 12px; }
}
