/* ==========================================================================
   Concursuri Pescuit design system  (see DESIGN_SYSTEM.md)
   1 fonts · 2 tokens · 3 base · 4 layout · 5 header/footer · 6 buttons · 7 forms · 8 components · 9 pages · 10 app shell · 11 utilities
   ========================================================================== */

/* 1. Fonts — Inter variable, self-hosted (SIL OFL). latin-ext carries ă ș ț. -------------------------------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 2. Tokens ------------------------------------------------------------------------------------------------ */
:root {
  /* brand */
  --navy: #0A2540; --navy-2: #12355A; --ocean: #0A6FC2; --gold: #F2A93B;
  /* semantic (light) */
  --bg: #F5F8F6; --surface: #FFFFFF; --surface-2: #E9F0EC; --border: #D3DED8; --border-strong: #B3C4BB;
  --text: #0A2540; --text-2: #4D6469;
  --primary: #0A6FC2; --primary-hover: #08589B; --on-primary: #FFFFFF; --link: #0A6FC2;
  --gold-ink: #7A4F00; --on-gold: #0A2540;
  --success: #2E7D4F; --success-bg: #E3F3E8; --success-ink: #1B5E3A;
  --danger: #C23B3B; --danger-bg: #FCEBEB; --danger-ink: #8E2222;
  --warn-bg: #FFF1CC; --warn-ink: #6B4B00; --info-bg: #E2F2F2; --info-ink: #07575E;
  --live: #C23B3B; --focus: #0A6FC2; --muted: var(--text-2); --err: var(--danger-ink);
  --header-bg: #0A2540; --header-text: #FFFFFF;
  /* spacing (4 px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  /* radii, elevation, motion */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(16, 42, 67, .06), 0 1px 3px rgba(16, 42, 67, .08);
  --shadow-2: 0 4px 12px rgba(16, 42, 67, .10);
  --t-fast: 120ms; --t-med: 200ms;
  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .8125rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem; --fs-2xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); --fs-3xl: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  --container: 1200px; --tap: 44px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1D22; --surface: #10292F; --surface-2: #173740; --border: #27474F; --border-strong: #3B636C;
    --text: #E6EFEC; --text-2: #9DB5B4;
    --primary: #4FC3C9; --primary-hover: #86DADF; --on-primary: #062226; --link: #4FC3C9;
    --gold-ink: #F2C660;
    --success: #3CC9A5; --success-bg: #0F3A31; --success-ink: #7FE3C8;
    --danger: #F07A7A; --danger-bg: #4A1D1D; --danger-ink: #FFB4B4;
    --warn-bg: #4A3A0F; --warn-ink: #F7D98A; --info-bg: #0F3A3F; --info-ink: #86DADF;
    --live: #D13438; --focus: #4FC3C9;
    --header-bg: #0A1D22;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35); --shadow-2: 0 6px 18px rgba(0, 0, 0, .45);
  }
}

/* 3. Base -------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font: 400 var(--fs-md)/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 var(--s-3); font-weight: 700; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3, .h3 { font-size: var(--fs-lg); } h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s-3); } ul, ol { margin: 0 0 var(--s-3); padding-left: 1.25rem; }
a { color: var(--link); text-underline-offset: 3px; } a:hover { color: var(--primary-hover); }
img, svg { max-width: 100%; } img { height: auto; }
code { font: .875em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-5) 0; }
small { font-size: var(--fs-sm); } [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--text); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); box-shadow: var(--shadow-2); }
.skip:focus { left: 8px; }
.sr, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ico { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* 4. Layout ------------------------------------------------------------------------------------------------ */
.container, .wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 860px) { .container, .wrap { padding-inline: var(--s-5); } }
main { padding-block: var(--s-5) var(--s-7); min-height: 62vh; }
.section { margin-block: var(--s-7); } .section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.section-head h2 { margin: 0; } .section-head p { margin: var(--s-1) 0 0; color: var(--text-2); }
.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-bottom: var(--s-5); }
.two { display: grid; gap: 0 var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; margin-top: var(--s-4); }
.inline { display: inline; }

/* 5. Header, navigation, footer ---------------------------------------------------------------------------- */
.announce { background: var(--gold); color: var(--on-gold); text-align: center; padding: var(--s-2) var(--s-4); font-weight: 600; font-size: var(--fs-sm); }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bar { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; } .brand-mark { width: 32px; height: 32px; flex: none; } .brand b { color: var(--gold); font-weight: 800; }
.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a, .nav .link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-sm); color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav .link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); }
.nav .btn { margin-left: var(--s-2); } .nav .lang { border: 1px solid rgba(255, 255, 255, .28); min-width: var(--tap); justify-content: center; font-weight: 700; letter-spacing: .04em; }
.menu-toggle { display: none; min-width: var(--tap); min-height: var(--tap); align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.user-menu { position: relative; } .user-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-sm); color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.user-menu summary::-webkit-details-marker { display: none; } .user-menu summary:hover { background: rgba(255, 255, 255, .1); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.user-menu .menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: var(--s-2); display: grid; }
.user-menu .menu-panel a, .user-menu .menu-panel button { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 500; background: none; border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.user-menu .menu-panel a:hover, .user-menu .menu-panel button:hover { background: var(--surface-2); }
.menu-panel hr { margin: var(--s-1) 0; }
@media (max-width: 859px) {
  .menu-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--header-bg); padding: var(--s-3) var(--s-4) var(--s-5); border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-2); max-height: calc(100vh - 64px); overflow-y: auto; }
  .js .nav.open { display: flex; } .js .nav a, .js .nav .link { min-height: 48px; font-size: var(--fs-md); } .nav .btn { margin: var(--s-2) 0 0; justify-content: center; }
  .no-js .nav { flex-wrap: wrap; } .no-js .bar { flex-wrap: wrap; padding-block: var(--s-2); }
  .js .user-menu .menu-panel { position: static; box-shadow: none; background: rgba(255, 255, 255, .06); border: 0; margin-top: var(--s-1); } .js .user-menu .menu-panel a, .js .user-menu .menu-panel button { color: #fff; } .js .user-menu .menu-panel a:hover, .js .user-menu .menu-panel button:hover { background: rgba(255, 255, 255, .12); }
}
.site-footer { background: var(--navy); color: #C9D6E3; padding: var(--s-7) 0 var(--s-5); margin-top: var(--s-7); font-size: var(--fs-sm); }
.site-footer a { color: #E6EFEC; } .site-footer a:hover { color: var(--gold); } .site-footer h2 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s-3); }
.footer-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); } .footer-grid ul { list-style: none; padding: 0; margin: 0; } .footer-grid li { margin-bottom: var(--s-2); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: var(--s-6); padding-top: var(--s-4); display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; color: #9BB5B3; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); list-style: none; padding: 0; margin: 0 0 var(--s-4); font-size: var(--fs-sm); color: var(--text-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--border-strong); } .breadcrumbs a { color: var(--text-2); } .breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }

/* 6. Buttons ----------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-5); font: 600 var(--fs-md)/1 var(--font); color: var(--on-primary); background: var(--primary); border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer; text-decoration: none; transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), border-color var(--t-fast); }
.btn:hover { background: var(--primary-hover); color: var(--on-primary); box-shadow: var(--shadow-1); } .btn:active { transform: translateY(1px); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-sm); border-radius: var(--r-sm); } .btn-lg { min-height: 52px; padding: 0 var(--s-6); font-size: var(--fs-lg); }
.btn-gold { background: var(--gold); color: var(--on-gold); } .btn-gold:hover { background: #F7BC5F; color: var(--on-gold); }
.btn-alt, .btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); } .btn-alt:hover, .btn-outline:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-2); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--link); } .btn-ghost:hover { background: var(--info-bg); color: var(--link); box-shadow: none; }
.btn-danger { background: var(--danger); color: #fff; } .btn-danger:hover { background: #A93030; color: #fff; }
@media (prefers-color-scheme: dark) { .btn-danger { background: #F07A7A; color: #2A0A0A; } .btn-danger:hover { background: #F59A9A; color: #2A0A0A; } }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; } .btn[aria-busy="true"]::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--on-primary); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-alt[aria-busy="true"]::after { border-color: var(--text); border-right-color: transparent; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
form > .btn:last-child { margin-top: var(--s-4); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 7. Forms ------------------------------------------------------------------------------------------------- */
label { display: block; font-weight: 600; font-size: var(--fs-sm); margin: var(--s-4) 0 var(--s-1); }
label.choice { display: flex; gap: var(--s-3); align-items: center; min-height: var(--tap); font-weight: 400; font-size: var(--fs-md); margin: 0; cursor: pointer; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea { width: 100%; min-height: 48px; padding: 10px var(--s-3); font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566B84' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: var(--text-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--text-2); cursor: not-allowed; }
input[aria-invalid="true"], .is-invalid { border-color: var(--danger) !important; } .field-error { color: var(--danger-ink); font-size: var(--fs-sm); margin-top: var(--s-1); display: flex; gap: var(--s-1); }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--primary); flex: none; margin: 0; }
input[type=file] { width: 100%; padding: var(--s-3); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); background: var(--surface-2); font: inherit; }
input::placeholder, textarea::placeholder { color: var(--text-2); opacity: .8; }
small, .hint { color: var(--text-2); } fieldset { border: 0; padding: 0; margin: var(--s-4) 0 0; min-width: 0; } legend { font-weight: 600; font-size: var(--fs-sm); padding: 0; margin-bottom: var(--s-2); }
.input-group { position: relative; } .input-group .reveal { position: absolute; right: 4px; top: 4px; min-height: 40px; min-width: 40px; background: none; border: 0; color: var(--text-2); cursor: pointer; border-radius: var(--r-sm); } .input-group input { padding-right: 52px; }

/* 8. Components -------------------------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-4); box-shadow: var(--shadow-1); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; } .card.flat { box-shadow: none; } .card.pad-0 { padding: 0; overflow: hidden; }
.narrow { max-width: 520px; margin-inline: auto; } .wide { max-width: 760px; }
.badge, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; line-height: 1.5; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); white-space: nowrap; }
.badge::before, .chip.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.b-nodot::before { display: none; }
.badge.s-published, .badge.b-before { background: var(--info-bg); color: var(--info-ink); border-color: transparent; }
.badge.reg-pending, .badge.reg-waitlisted, .badge.s-awaiting_validation, .badge.b-review { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.badge.s-in_progress, .badge.b-live { background: var(--live); color: #fff; border-color: transparent; } .badge.s-in_progress::before, .badge.b-live::before { animation: pulse 1.6s ease-in-out infinite; }
.badge.s-finalized, .badge.b-final { background: var(--navy); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { .badge.s-finalized, .badge.b-final { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); } }
.badge.s-cancelled, .badge.b-cancelled, .badge.reg-rejected, .badge.reg-withdrawn { background: var(--danger-bg); color: var(--danger-ink); border-color: transparent; }
.badge.reg, .badge.b-reg, .badge.reg-confirmed, .badge.ok { background: var(--success-bg); color: var(--success-ink); border-color: transparent; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.flash { display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); margin-bottom: var(--s-4); border: 1px solid transparent; font-size: var(--fs-md); }
.flash ul { margin: 0; padding-left: 1.1rem; } .flash.ok { background: var(--success-bg); color: var(--success-ink); border-color: color-mix(in srgb, var(--success) 35%, transparent); } .flash.err { background: var(--danger-bg); color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger) 35%, transparent); } .flash.info { background: var(--info-bg); color: var(--info-ink); }
.flash a { color: inherit; font-weight: 600; } .flash form.inline .link { color: inherit; }
.toasts { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 90; display: grid; gap: var(--s-2); width: min(360px, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: var(--s-3); align-items: flex-start; background: var(--navy); color: #fff; border-radius: var(--r-md); padding: var(--s-3) var(--s-4); box-shadow: var(--shadow-2); animation: toast-in var(--t-med) ease-out; border-left: 4px solid var(--gold); }
.toast.ok { border-left-color: #3CC9A5; } .toast.err { border-left-color: #F07A7A; } .toast button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; min-width: 32px; min-height: 32px; font-size: 1.1rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
dialog.dlg { border: 0; border-radius: var(--r-lg); padding: var(--s-5); max-width: min(440px, calc(100vw - 2rem)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); } dialog.dlg::backdrop { background: rgba(8, 20, 34, .6); }
dialog.dlg[open] { animation: toast-in var(--t-med) ease-out; } dialog.dlg h2 { font-size: var(--fs-lg); } .dlg-actions { display: flex; gap: var(--s-2); justify-content: flex-end; margin-top: var(--s-5); flex-wrap: wrap; }
.tabs { display: flex; gap: var(--s-1); flex-wrap: wrap; margin: 0 0 var(--s-4); }
.tab { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); transition: background var(--t-fast); }
.tab:hover { background: var(--surface-2); color: var(--text); } .tab.on, .tab[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .tab.on, .tab[aria-current="page"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); } }
.pager { display: flex; gap: var(--s-4); align-items: center; justify-content: center; margin: var(--s-5) 0; flex-wrap: wrap; }
.table-wrap, .tw { overflow-x: auto; margin-bottom: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table, .tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); vertical-align: top; } .table th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); background: var(--surface-2); white-space: nowrap; font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; } .table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); } .num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { white-space: nowrap; } .row-actions .btn, .row-actions form { margin: 2px 4px 2px 0; }
.empty { text-align: center; padding: var(--s-7) var(--s-4); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-2); margin-bottom: var(--s-4); }
.empty .ico { width: 40px; height: 40px; color: var(--text-2); margin-bottom: var(--s-3); } .empty h2, .empty h3 { color: var(--text); margin-bottom: var(--s-2); font-size: var(--fs-lg); } .empty p { max-width: 46ch; margin-inline: auto; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); min-height: 1em; } .skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.progress { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; } .progress > span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width var(--t-med); }
.muted { color: var(--text-2); } .small { font-size: var(--fs-sm); } .prose { max-width: 70ch; overflow-wrap: anywhere; } .prose p { margin-bottom: var(--s-4); }
details > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 600; }
pre.code { background: #0A1D22; color: #E6EFEC; padding: var(--s-4); border-radius: var(--r-md); overflow-x: auto; font-size: var(--fs-sm); line-height: 1.55; border: 1px solid #1F4249; } pre.code code { background: none; padding: 0; color: inherit; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); } .kpi b { display: block; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .kpi span { color: var(--text-2); font-size: var(--fs-sm); }
.kpi .kpi-label { display: block; font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; margin-top: var(--s-1); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: var(--s-2); } .gallery a { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); } .gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-med); } .gallery a:hover img { transform: scale(1.04); }
.steps { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; list-style: none; padding: var(--s-3) 0 0; margin: 0; }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); padding-top: var(--s-6); } .steps li::before { content: counter(step); position: absolute; top: -16px; left: var(--s-5); width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-1); } .steps h3 { margin-bottom: var(--s-1); } .steps p { margin: 0; color: var(--text-2); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); } .feature-list li { display: flex; gap: var(--s-3); } .feature-list .ico { color: var(--success); margin-top: 3px; }

/* 9. Pages ------------------------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(10,37,64,.94) 0%, rgba(10,37,64,.82) 38%, rgba(10,37,64,.25) 70%, rgba(10,37,64,0) 100%), #0A2540 url("../img/hero.svg") 62% center / cover no-repeat; color: #fff; padding: var(--s-8) 0 calc(var(--s-8) + var(--s-5)); margin: calc(var(--s-5) * -1) 0 var(--s-6); }
.hero .container { position: relative; z-index: 1; display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.08; letter-spacing: -.03em; margin-bottom: var(--s-4); color: #fff; } .hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: var(--fs-lg); color: #D2E4E2; max-width: 52ch; margin-bottom: var(--s-5); } .hero .actions { margin-top: 0; }
.hero .btn-alt { color: #fff; border-color: rgba(255, 255, 255, .45); } .hero .btn-alt:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
@media (max-width: 959px) { .hero-art { display: none; } .hero { padding-bottom: calc(var(--s-8) + var(--s-3)); } }
.hero-art { width: 100%; max-width: 520px; justify-self: center; opacity: .95; } .hero-art svg { display: block; width: 100%; height: auto; }
.search-bar { margin-top: calc(var(--s-7) * -1); position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s-4); display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: end; }
.search-bar label { margin: 0 0 var(--s-1); } .search-bar .btn { width: 100%; }
.comp-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med); }
.comp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.comp-card .cover { position: relative; aspect-ratio: 16 / 7; background: var(--navy); overflow: hidden; } .comp-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comp-card .cover .badges { position: absolute; left: var(--s-3); top: var(--s-3); display: flex; gap: var(--s-1); flex-wrap: wrap; z-index: 2; }
.comp-card .body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; } .comp-card h3 { font-size: var(--fs-lg); margin: 0; } .comp-card h3 a { color: var(--text); text-decoration: none; } .comp-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } .comp-card h3 a:hover { color: var(--link); }
.comp-card .meta { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--text-2); } .comp-card .meta li { display: flex; gap: var(--s-2); align-items: flex-start; } .comp-card .meta .ico { margin-top: 2px; }
.comp-card .foot { margin-top: auto; padding-top: var(--s-3); display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-sm); } .comp-card .foot .btn { position: relative; z-index: 2; }
.cover-art { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0D5E7C 100%); }
.cover-art svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.cover-carp .cover-art { background: linear-gradient(135deg, #12354A, #1B5A4E 70%, #2B7A5E); } .cover-match .cover-art { background: linear-gradient(135deg, #0A2540, #314E8E 70%, #4467B5); } .cover-spinning .cover-art, .cover-predator .cover-art { background: linear-gradient(135deg, #1C2A44, #2F3E63 60%, #7A4D5E); } .cover-sea .cover-art { background: linear-gradient(135deg, #0C3B5E, #0A6AA1 70%, #19A0C9); } .cover-fly .cover-art, .cover-float .cover-art { background: linear-gradient(135deg, #12334A, #1D5C5C 70%, #3E8E6F); } .cover-ice .cover-art { background: linear-gradient(135deg, #1F3F5C, #5C88AA 70%, #A6C9DD); }
.filters { display: grid; gap: 0 var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); align-items: end; }
.filters .fa { display: flex; gap: var(--s-3); align-items: center; padding-bottom: 2px; flex-wrap: wrap; } .filters .btn { margin-top: 0; }
.chips-row { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); } .chip.removable a { color: inherit; text-decoration: none; }
.event-hero { position: relative; background: var(--navy); color: #fff; margin: calc(var(--s-5) * -1) 0 var(--s-5); overflow: hidden; }
.event-hero .cover-img { position: absolute; inset: 0; } .event-hero .cover-img img { width: 100%; height: 100%; object-fit: cover; opacity: .35; } .event-hero .cover-art { opacity: 1; }
.event-hero .container { position: relative; padding-block: var(--s-6); display: grid; gap: var(--s-4); } .event-hero h1 { color: #fff; font-size: var(--fs-3xl); line-height: 1.1; margin: 0; }
.event-hero .breadcrumbs, .event-hero .breadcrumbs a, .event-hero .breadcrumbs [aria-current] { color: #C9D6E3; } .event-hero .breadcrumbs li + li::before { color: #6F88A1; } .event-hero .breadcrumbs { margin: 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: #E1EBF5; font-size: var(--fs-sm); } .event-meta span { display: inline-flex; gap: var(--s-2); align-items: center; } .event-meta a { color: #fff; }
.event-layout { display: grid; gap: var(--s-5); align-items: start; } @media (min-width: 960px) { .event-layout { grid-template-columns: minmax(0, 1fr) 340px; } .event-aside { position: sticky; top: 140px; } }
.event-order { display: flex; flex-direction: column; } .event-order > .sec { margin-bottom: var(--s-4); }
.event-nav { display: flex; gap: var(--s-1); overflow-x: auto; margin: 0 0 var(--s-4); padding-bottom: 2px; border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 20; background: var(--bg); scrollbar-width: none; } .event-nav::-webkit-scrollbar { display: none; }
.event-nav a { flex: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-4); color: var(--text-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); border-bottom: 3px solid transparent; margin-bottom: -1px; } .event-nav a:hover { color: var(--text); } .event-nav a.on { color: var(--link); border-color: var(--primary); }
.facts { display: grid; gap: var(--s-3) var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; } .facts div { min-width: 0; } .facts dt { font-size: var(--fs-xs); color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; } .facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.aside-card { padding: var(--s-5); } .aside-card .big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; } .aside-card .btn { width: 100%; margin-top: var(--s-4); } .aside-card .progress { margin: var(--s-3) 0 var(--s-1); }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--border); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); display: flex; gap: var(--s-3); align-items: center; box-shadow: 0 -4px 16px rgba(16, 42, 67, .12); } .cta-bar .btn { flex: 1; } .cta-bar span { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.3; }
@media (min-width: 960px) { .cta-bar { display: none; } } @media (max-width: 959px) { body.has-cta { padding-bottom: 76px; } }
.live-line { display: flex; gap: var(--s-2) var(--s-3); flex-wrap: wrap; align-items: center; color: var(--text-2); font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); align-items: end; margin: var(--s-2) 0 var(--s-5); }
.pod { position: relative; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4) var(--s-2); display: grid; gap: 2px; justify-items: center; align-content: end; min-width: 0; }
.pod .r { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; background: var(--surface-2); color: var(--text); margin-bottom: var(--s-2); } .pod strong { font-size: var(--fs-sm); line-height: 1.25; overflow-wrap: anywhere; } .pod .w { font-size: var(--fs-lg); font-weight: 800; font-variant-numeric: tabular-nums; } .pod .sub { font-size: var(--fs-xs); color: var(--text-2); }
.pod.p1 { order: 2; padding-block: var(--s-6) var(--s-5); border-color: var(--gold); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 20%, var(--surface)), var(--surface)); } .pod.p1 .r { background: var(--gold); color: var(--on-gold); width: 46px; height: 46px; font-size: 1.3rem; }
.pod.p2 { order: 1; padding-block: var(--s-5) var(--s-4); } .pod.p2 .r { background: #C9D2DD; color: #0A2540; } .pod.p3 { order: 3; } .pod.p3 .r { background: #D9A679; color: #3A2008; }
@media (max-width: 479px) { .podium { gap: var(--s-2); } .pod { padding-inline: var(--s-1); } .pod .w { font-size: var(--fs-md); } }
.rank-table { width: 100%; border-collapse: collapse; } .rank-table th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); padding: var(--s-2) var(--s-3); font-weight: 600; border-bottom: 1px solid var(--border); }
.rank-table td { padding: var(--s-3); border-bottom: 1px solid var(--border); vertical-align: middle; } .rank-table .pos { width: 52px; } .rank-table .pos span { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-table tr.p1 .pos span { background: var(--gold); color: var(--on-gold); } .rank-table tr.p2 .pos span { background: #C9D2DD; color: #0A2540; } .rank-table tr.p3 .pos span { background: #D9A679; color: #3A2008; }
.rank-table .who strong { display: block; } .rank-table .who small { color: var(--text-2); } .rank-table .w { text-align: right; font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 639px) { .rank-table thead { display: none; } .rank-table, .rank-table tbody, .rank-table tr, .rank-table td { display: block; } .rank-table tr { display: grid; grid-template-columns: 44px 1fr auto; gap: 0 var(--s-2); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--border); } .rank-table td { border: 0; padding: 0; } .rank-table .stand { grid-column: 2; font-size: var(--fs-sm); color: var(--text-2); } .rank-table .pos { width: auto; } }
.updated-flash { animation: flash-bg 1.2s ease-out; } @keyframes flash-bg { from { background: color-mix(in srgb, var(--gold) 28%, transparent); } to { background: transparent; } }
.note { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border-left: 4px solid var(--primary); background: var(--info-bg); color: var(--info-ink); margin-bottom: var(--s-4); } .note.live { border-color: var(--live); background: var(--danger-bg); color: var(--danger-ink); } .note.provisional { border-color: var(--gold); background: var(--warn-bg); color: var(--warn-ink); } .note.final { border-color: var(--success); background: var(--success-bg); color: var(--success-ink); }
.plist { columns: 2 260px; padding-left: 1.25rem; margin: 0; } .plist li { padding: 2px 0; break-inside: avoid; }
.stand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: var(--s-2); }
.stand { border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: var(--s-2) var(--s-3); min-height: 72px; background: var(--surface); font-size: var(--fs-sm); } .stand strong { display: block; font-size: var(--fs-md); } .stand.taken { border-style: solid; border-color: var(--primary); } .stand select { min-height: 40px; padding: 4px 8px; font-size: var(--fs-sm); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-4); } .photo img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--r-sm); display: block; } .photo.dim img { opacity: .45; }
.lang-block { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); background: var(--surface-2); }
.agenda { list-style: none; padding: 0; } .agenda li { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.auth { display: grid; gap: var(--s-5); max-width: 980px; margin: var(--s-5) auto; align-items: stretch; } @media (min-width: 860px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-side { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: var(--s-6); display: none; position: relative; overflow: hidden; } @media (min-width: 860px) { .auth-side { display: flex; flex-direction: column; justify-content: end; min-height: 460px; } }
.auth-side h2 { color: #fff; font-size: var(--fs-xl); position: relative; z-index: 1; } .auth-side p, .auth-side li { color: #D2E4E2; position: relative; z-index: 1; } .auth-side svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.auth .card { margin: 0; padding: var(--s-6); } .auth .card h1 { font-size: var(--fs-xl); } .auth .btn { width: 100%; }
.pw-strength { height: 6px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; margin-top: var(--s-2); } .pw-strength span { display: block; height: 100%; width: 0; background: var(--danger); transition: width var(--t-med), background var(--t-med); }

/* 10. App shell (organizer + admin) ------------------------------------------------------------------------ */
.app-shell { display: grid; gap: var(--s-5); align-items: start; } @media (min-width: 960px) { .app-shell { grid-template-columns: 252px minmax(0, 1fr); } }
.app-main { min-width: 0; }
.sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-3); } @media (min-width: 960px) { .sidebar { position: sticky; top: 84px; } }
.sidebar .org-name { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-3) var(--s-3); border-bottom: 1px solid var(--border); margin-bottom: var(--s-2); } .sidebar .org-name .avatar { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--navy); color: var(--gold); font-size: 1rem; } .sidebar .org-name strong { display: block; line-height: 1.2; } .sidebar .org-name small { color: var(--text-2); }
.sidebar h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin: var(--s-3) var(--s-3) var(--s-1); }
.sidebar nav { display: grid; gap: 2px; } .sidebar a { display: flex; align-items: center; gap: var(--s-3); min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); } .sidebar a:hover { background: var(--surface-2); } .sidebar a[aria-current="page"] { background: var(--info-bg); color: var(--info-ink); font-weight: 700; } .sidebar a .ico { color: var(--text-2); } .sidebar a[aria-current="page"] .ico { color: inherit; }
.sidebar summary { display: none; }
@media (max-width: 959px) { .sidebar { padding: var(--s-2); } .sidebar summary { display: flex; padding: 0 var(--s-3); border-radius: var(--r-sm); } .sidebar details:not([open]) > .side-body { display: none; } .sidebar .org-name { display: none; } }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); } .page-head h1 { margin: 0; } .page-head p { margin: var(--s-1) 0 0; color: var(--text-2); }
.quick-actions { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: var(--s-5); } .quick-actions a { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; transition: border-color var(--t-fast), box-shadow var(--t-fast); } .quick-actions a:hover { border-color: var(--primary); box-shadow: var(--shadow-1); } .quick-actions .ico { color: var(--primary); width: 1.6em; height: 1.6em; }
.comp-row { display: grid; gap: var(--s-3); grid-template-columns: 1fr; padding: var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: var(--s-3); } @media (min-width: 760px) { .comp-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } } .comp-row h3 { margin: 0 0 var(--s-1); font-size: var(--fs-md); } .comp-row .actions { margin: 0; }
.admin-nav { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); } .admin-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4); border: 1px solid var(--border-strong); border-radius: var(--r-pill); text-decoration: none; color: var(--text); background: var(--surface); font-size: var(--fs-sm); font-weight: 600; } .admin-nav a:hover { background: var(--surface-2); } .admin-nav a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .admin-nav a.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); } }

/* 11. Utilities, motion, print ------------------------------------------------------------------------------ */
.center { text-align: center; } .nowrap { white-space: nowrap; } .mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .badge, .chip, .btn { border: 1px solid CanvasText; } }
@media print { .site-header, .site-footer, .actions, .flash, form, .nav, .cta-bar, .toasts, .sidebar, .event-nav { display: none !important; } body { background: #fff; color: #000; } .card { border: 0; box-shadow: none; } .app-shell { display: block; } }
.app-shell .admin-nav { display: none; }
.auth-side em, .hero h1 em { font-style: normal; color: var(--gold); }

.search-bar .grow { grid-column: span 2; min-width: 0; } @media (max-width: 639px) { .search-bar .grow { grid-column: auto; } }
.section-head > a { display: inline-flex; align-items: center; min-height: var(--tap); }
.input-group .reveal { min-height: 44px; min-width: 44px; top: 2px; right: 2px; }
@media (max-width: 959px) { .btn-sm { min-height: 44px; } .tab { min-height: 44px; } .admin-nav a { min-height: 44px; } }
.table-wrap:focus-visible { outline: 3px solid var(--focus); }

/* illustrated covers (generated SVG, see public/assets/img) */
.cover-art { background: #0A2540 url("../img/cover-default.svg") center / cover no-repeat !important; }
.cover-art svg { display: none; }
.cover-carp .cover-art { background-image: url("../img/cover-carp.svg") !important; } .cover-match .cover-art { background-image: url("../img/cover-match.svg") !important; }
.cover-spinning .cover-art { background-image: url("../img/cover-spinning.svg") !important; } .cover-predator .cover-art { background-image: url("../img/cover-predator.svg") !important; }
.cover-sea .cover-art { background-image: url("../img/cover-sea.svg") !important; } .cover-fly .cover-art { background-image: url("../img/cover-fly.svg") !important; }
.cover-float .cover-art { background-image: url("../img/cover-float.svg") !important; } .cover-ice .cover-art { background-image: url("../img/cover-ice.svg") !important; }
.event-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,37,64,.74), rgba(10,37,64,.9)); }
.event-hero .container { z-index: 1; }
.comp-card .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,37,64,.35), rgba(10,37,64,0) 45%); pointer-events: none; }
.auth-side { background: linear-gradient(180deg, rgba(10,37,64,.1), rgba(10,37,64,.9) 78%), #0A2540 url("../img/hero.svg") 66% center / cover no-repeat; }
.auth-side svg { display: none; }
@media (max-width: 959px) { .hero { background: linear-gradient(180deg, rgba(10,37,64,.9), rgba(10,37,64,.7)), #0A2540 url("../img/hero.svg") 70% center / cover no-repeat; } }
.empty-art { width: 160px; height: auto; margin: 0 auto var(--s-3); display: block; border-radius: var(--r-lg); }
.empty-art { object-fit: cover; aspect-ratio: 200 / 88; width: 200px; }

/* Charity competitions */
.badge.b-charity { background: var(--gold); color: var(--on-gold); border-color: transparent; } .badge.b-charity svg { width: 13px; height: 13px; fill: currentColor; stroke: currentColor; }
.card-charity { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s-2); font-size: var(--fs-sm); color: var(--gold-ink); font-weight: 600; } .card-charity svg { width: 16px; height: 16px; flex: none; fill: currentColor; stroke: currentColor; }
.charity { padding: var(--s-5); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border)); background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--gold) 11%, var(--surface)) 100%); position: relative; overflow: hidden; }
.charity::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 40%, var(--ocean))); }
.charity-head { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); } .charity-head h2 { margin: 0; line-height: 1.2; }
.charity-head .eyebrow { margin: 0 0 2px; color: var(--gold-ink); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.charity-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; flex: none; box-shadow: 0 4px 14px color-mix(in srgb, var(--gold) 45%, transparent); } .charity-ico svg { width: 24px; height: 24px; fill: currentColor; }
.charity-grid { display: grid; gap: var(--s-5); } @media (min-width: 760px) { .charity-grid { grid-template-columns: 1.35fr 1fr; align-items: stretch; } }
.charity-story > * { margin: 0 0 var(--s-4); } .charity-story > :last-child { margin-bottom: 0; } .charity .prose { line-height: 1.65; }
.charity-share { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md, 12px); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--gold) 60%, var(--border)); font-size: var(--fs-sm); }
.charity-share strong { font-size: 1.75rem; line-height: 1; font-weight: 800; color: var(--gold-ink); letter-spacing: -.02em; }
.charity-meter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg, 16px); padding: var(--s-5); display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-1); }
.charity-meter p { margin: 0; } .meter-label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.meter-amount { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: var(--s-1) 0 var(--s-4) !important; font-variant-numeric: tabular-nums; color: var(--text); }
.charity .progress { height: 14px; background: var(--surface-2); border-radius: var(--r-pill); box-shadow: inset 0 1px 2px rgba(0,0,0,.12); margin: 0 0 var(--s-2); }
.charity .progress > span { background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 70%, #fff)); border-radius: inherit; min-width: 14px; }
.meter-foot { font-size: var(--fs-sm); } .meter-foot strong { font-size: var(--fs-base, 1rem); }
.charity-note { display: flex; gap: var(--s-2); align-items: flex-start; margin: var(--s-4) 0 0; font-size: var(--fs-xs); color: var(--text-2); } .charity-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.charity .btn svg { width: 16px; height: 16px; }
.charity-fields legend svg { width: 16px; height: 16px; vertical-align: -2px; fill: var(--gold-ink); stroke: var(--gold-ink); } .small { font-size: var(--fs-sm); }
.choice-cell { display: flex; align-items: flex-end; } .choice-cell .choice svg { width: 16px; height: 16px; fill: var(--gold-ink); stroke: var(--gold-ink); vertical-align: -2px; }
.inline-form { display: flex; gap: var(--s-3); align-items: flex-end; flex-wrap: wrap; } .inline-form input { max-width: 14rem; }
@media (max-width: 759px) { .charity-meter { order: -1; } }
.charity-fields:has(#is_charity:not(:checked)) .charity-body { display: none; }

/* Social sign-in */
.social { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.btn-social { display: flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 48px; padding: 0 var(--s-4); border-radius: var(--r-md, 12px); font-weight: 600; font-size: var(--fs-base, 1rem); text-decoration: none; border: 1px solid var(--border-strong, var(--border)); transition: box-shadow var(--t-fast, .12s), transform var(--t-fast, .12s); }
.btn-social svg { width: 22px; height: 22px; flex: none; } .btn-social:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); text-decoration: none; }
.btn-google { background: #fff; color: #1F1F1F; } .btn-google:hover { color: #1F1F1F; }
.btn-facebook { background: #1462D6; color: #fff; border-color: #1462D6; } .btn-facebook:hover { color: #fff; background: #0F52B5; border-color: #0F52B5; }
.social-note { margin: 0; font-size: var(--fs-xs); color: var(--text-2); text-align: center; line-height: 1.5; }
.divider { display: flex; align-items: center; gap: var(--s-3); color: var(--text-2); font-size: var(--fs-sm); } .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
@media (prefers-reduced-motion: reduce) { .btn-social { transition: none; } .btn-social:hover { transform: none; } }

/* Charity: usability aids */
.tab-charity { display: inline-flex; align-items: center; gap: 6px; } .tab-charity svg { width: 15px; height: 15px; fill: var(--gold-ink); stroke: var(--gold-ink); }
.tab-charity[aria-current] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); } .tab-charity[aria-current] svg { fill: currentColor; stroke: currentColor; }
.aside-charity { display: flex; gap: var(--s-2); align-items: flex-start; margin: var(--s-3) 0 0; padding: var(--s-3); border-radius: var(--r-md, 12px); background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.aside-charity svg { width: 18px; height: 18px; flex: none; fill: var(--gold-ink); stroke: var(--gold-ink); margin-top: 1px; } .aside-charity:hover { text-decoration: underline; }
.how-mini { list-style: none; counter-reset: s; display: grid; gap: var(--s-2); margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md, 12px); background: var(--surface); border: 1px solid var(--border); }
@media (min-width: 760px) { .how-mini { grid-template-columns: repeat(3, 1fr); } }
.how-mini li { counter-increment: s; display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); } .how-mini li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 800; font-size: var(--fs-xs); display: grid; place-items: center; }
.section-head h2 svg { width: 22px; height: 22px; fill: var(--gold-ink); stroke: var(--gold-ink); vertical-align: -3px; }
/* organizer form */
.charity-guide { border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--border)); border-radius: var(--r-lg, 16px); padding: var(--s-4); background: color-mix(in srgb, var(--gold) 6%, var(--surface)); margin: var(--s-4) 0; }
.switch-card { display: flex; align-items: center; gap: var(--s-3); cursor: pointer; margin: 0; position: relative; }
.switch-card input { position: absolute; opacity: 0; width: 52px; height: 32px; right: 0; margin: 0; cursor: pointer; }
.switch-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; flex: none; } .switch-ico svg { width: 22px; height: 22px; fill: currentColor; }
.switch-text { flex: 1; display: grid; gap: 2px; } .switch-text small { color: var(--text-2); font-weight: 400; }
.switch-ui { flex: none; width: 52px; height: 32px; border-radius: 16px; background: var(--border-strong, #9fb3ae); position: relative; transition: background var(--t-fast, .12s); }
.switch-ui::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform var(--t-fast, .12s); }
.switch-card input:checked ~ .switch-ui { background: var(--primary); } .switch-card input:checked ~ .switch-ui::after { transform: translateX(20px); }
.switch-card input:focus-visible ~ .switch-ui { outline: 3px solid var(--focus, var(--primary)); outline-offset: 2px; }
.charity-body { margin-top: var(--s-4); } .charity-body small { display: block; margin-top: 4px; }
.mini-steps { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); list-style: none; counter-reset: m; margin: 0 0 var(--s-4); padding: 0; font-size: var(--fs-sm); color: var(--text-2); }
.mini-steps li { counter-increment: m; display: flex; gap: 6px; align-items: center; } .mini-steps li::before { content: counter(m); width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: var(--fs-xs); font-weight: 700; display: grid; place-items: center; }
.chips-pick { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-2); }
.chip-btn { min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--border-strong, var(--border)); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; } .chip-btn:hover { border-color: var(--primary); }
.chip-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.charity-preview { margin: var(--s-4) 0; } .preview-label { margin: 0 0 var(--s-2); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.preview-card { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4); border-radius: var(--r-lg, 16px); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border)); background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--gold) 11%, var(--surface))); }
.preview-card p { margin: 2px 0 0; font-size: var(--fs-sm); }
.auth .card h1 { margin-bottom: var(--s-4); }
.chip-btn { padding: 0 var(--s-3); min-width: 56px; }

/* Standard rules: form */
.std-form { box-shadow: none; border: 1px dashed var(--border-strong, var(--border)); margin: var(--s-4) 0; }
.std-group { border: 0; padding: 0; margin: var(--s-4) 0 0; } .std-group legend { font-weight: 800; padding: 0; margin-bottom: var(--s-2); }
.std-grid { display: grid; gap: var(--s-3) var(--s-4); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } .std-grid label { font-size: var(--fs-sm); }
.std-num { display: flex; align-items: center; gap: var(--s-2); } .std-num input { min-width: 0; } .std-num span { color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; }

/* Standard rules: public */
.std { margin-top: var(--s-6); } .std-head h3 { margin: 0; } .std-head p { margin: 4px 0 var(--s-4); }
.std h4 { margin: var(--s-5) 0 var(--s-3); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.std-two { display: grid; gap: var(--s-5); } @media (min-width: 760px) { .std-two { grid-template-columns: 1fr 1fr; } }
.std-sched, .std-prizes { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.std-sched li, .std-prizes li { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-3); padding: 10px var(--s-4); border-top: 1px solid var(--border); align-items: baseline; } .std-sched li:first-child, .std-prizes li:first-child { border-top: 0; }
.std-sched time { font-weight: 800; font-variant-numeric: tabular-nums; } .std-prizes b { display: grid; place-items: center; width: 36px; height: 28px; border-radius: 6px; background: var(--surface-2); font-weight: 800; }
.std-prizes .pz1 b { background: #E0A526; color: #0A2540; } .std-prizes .pz2 b { background: #AEB8C4; color: #0A2540; } .std-prizes .pz3 b { background: #B9794A; color: #0A2540; }
.std-facts { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 0; }
.sf { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px var(--s-3); display: grid; gap: 2px; } .sf dt { font-size: var(--fs-xs); color: var(--text-2); } .sf dd { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sf svg { width: 16px; height: 16px; flex: none; stroke-width: 3; } .sf-yes svg { color: var(--success, #1E7B52); } .sf-no svg { color: var(--danger, #B3261E); }

/* Share + embed (competition page) */
.act-bar { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: 0 0 var(--s-4); }
.act-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 var(--s-4); border-radius: 999px; border: 1px solid var(--border-strong, var(--border)); background: var(--surface); color: var(--text); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
.act-btn:hover { background: var(--surface-2); } .act-btn svg { width: 18px; height: 18px; }
dialog.sh-dlg { border: 0; border-radius: 16px; padding: 0; width: min(480px, calc(100vw - 2rem)); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); } dialog.sh-dlg.sh-wide { width: min(640px, calc(100vw - 2rem)); } dialog.sh-dlg::backdrop { background: rgba(8, 20, 34, .62); }
.sh-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); margin: 0; } .sh-head h2 { margin: 0; font-size: var(--fs-lg); }
.sh-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; } .sh-x:hover { background: var(--surface-2); } .sh-x svg { width: 20px; height: 20px; }
.sh-body { padding: var(--s-5); display: grid; gap: var(--s-3); } .sh-label { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.sh-targets { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-3); flex-wrap: wrap; } .sh-t { display: grid; justify-items: center; gap: 6px; width: 72px; text-decoration: none; color: var(--text); font-size: var(--fs-xs); font-weight: 600; text-align: center; }
.sh-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff; background: #5B6B7F; } .sh-t:hover .sh-ico { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.sh-wa .sh-ico { background: #128C4A; } .sh-fb .sh-ico { background: #1462D6; } .sh-x .sh-ico { background: #111; } .sh-tg .sh-ico { background: #1C7FB5; } .sh-in .sh-ico { background: #0A66C2; } .sh-mail .sh-ico { background: #5B6B7F; }
.sh-copy { display: flex; gap: var(--s-2); } .sh-copy input { flex: 1; min-width: 0; } .sh-native { width: 100%; }
.sh-opts { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } .sh-opts label { font-size: var(--fs-sm); }
.sh-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); } .sh-tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 700; color: var(--text-2); cursor: pointer; border-bottom: 3px solid transparent; min-height: 44px; } .sh-tabs button[aria-selected="true"] { color: var(--text); border-color: var(--primary); }
.sh-code { width: 100%; font: 500 .8rem/1.5 ui-monospace, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: var(--s-3); resize: vertical; color: var(--text); }
.sh-actions { display: flex; justify-content: flex-end; } .sh-preview summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; } .sh-preview iframe { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: #fff; margin-top: var(--s-2); }

.row-edit { margin-top: 6px; } .row-edit summary { cursor: pointer; color: var(--link); font-size: var(--fs-sm); font-weight: 600; min-height: 32px; display: flex; align-items: center; } .row-edit form { margin-top: var(--s-2); min-width: 280px; display: grid; gap: var(--s-2); }

.footer-credits { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-5); flex-wrap: wrap; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--fs-sm); }
.footer-credits p { margin: 0; display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; } .footer-credits a { color: #fff; font-weight: 700; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; } .fc-partners span { opacity: .75; }
.fc-made strong { letter-spacing: .06em; }
