/* Shared finish for every public and staff page. Keep product colours and
   interaction states in one place instead of restyling each screen separately. */
:root {
    color-scheme: dark;
    --bg: #080f19;
    --panel: #0e1c2a;
    --panel-2: #122637;
    --line: #283c4e;
    --text: #f1f6fc;
    --muted: #afc0d0;
    --accent: #86ddff;
    --gold: #e8c67f;
    --surface-shadow: 0 16px 44px #02071130, inset 0 1px #ffffff04;
}
body {
    background:
        radial-gradient(ellipse at 92% 0%, #18476838, transparent 42%),
        radial-gradient(ellipse at 0% 45%, #132e4720, transparent 45%), var(--bg);
    -webkit-font-smoothing: antialiased;
}
::selection {
    background: #368db766;
    color: #fff;
}
.site-header > nav {
    background: #080f19ed;
    border-color: #2b405258;
}
.site-header .brand img {
    box-shadow:
        0 0 0 1px #345367,
        0 4px 18px #0005;
}
.site-header .links a {
    padding-block: 9px;
    transition: color 0.16s;
}
.site-header .links a[aria-current='page'] {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: #76d5ff66;
    text-underline-offset: 10px;
}
.site-header .menu-button {
    border-radius: 12px;
}
.site-drawer.side-menu {
    background: linear-gradient(150deg, #101f30, #0a131e 70%);
}
.drawer-footer {
    background: #101e2b;
}
.btn,
.choice {
    border-radius: 11px;
    font-weight: 650;
    transition:
        background 0.16s,
        border-color 0.16s,
        box-shadow 0.16s,
        transform 0.16s;
}
.btn-primary,
.hub-card .btn-primary,
.closing-cta .btn {
    color: #fff;
    background: linear-gradient(130deg, #1875ac, #167fb6);
    border: 1px solid #5cbae344;
    box-shadow:
        inset 0 1px #ffffff18,
        0 5px 14px #03101928;
}
.btn-primary:hover,
.hub-card .btn-primary:hover,
.closing-cta .btn:hover {
    background: linear-gradient(130deg, #2186bd, #2394ca);
    box-shadow: 0 6px 20px #071a2e55;
}
.btn:active {
    transform: translateY(1px);
}
.btn:disabled {
    transform: none;
    cursor: not-allowed;
}
.btn[aria-busy='true'] {
    cursor: progress;
}
.btn[aria-busy='true']::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: button-spin 0.8s linear infinite;
}
@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}
:is(
    .hub-card,
    .bot-card,
    .leader,
    .play-card,
    .info-card,
    .pass-profile,
    .objective-card,
    .pass-auth,
    .dashboard-card
) {
    background: linear-gradient(145deg, #102131, #0d1926 85%);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--surface-shadow);
}
:is(.bot-card, .leader, .play-card) {
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
:is(.bot-card, .leader, .play-card):hover {
    border-color: #42627a;
    box-shadow:
        0 18px 48px #02071145,
        inset 0 1px #ffffff08;
}
:is(h1, h2, h3) {
    text-wrap: balance;
}
.kicker,
.team-eyebrow {
    color: var(--accent);
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 700;
}
.hub-intro h1,
.team-intro h1 {
    font-weight: 650;
    letter-spacing: -0.045em;
    max-width: 23ch;
}
.hub-intro > p {
    max-width: 62ch;
    font-size: 17px;
}
.hub-links {
    padding: 7px;
    gap: 5px;
    border: 1px solid #24394c;
    background: #0b1724;
    border-radius: 15px;
    width: fit-content;
    max-width: 100%;
}
.hub-links a {
    border: 0;
    font-size: 13px;
    border-radius: 10px;
    color: #a8becf;
    padding: 10px 14px;
    transition:
        background 0.16s,
        color 0.16s;
}
.hub-links a:hover {
    color: #e5f6ff;
    background: #14293b;
}
.hub-links a[aria-current='page'] {
    background: #1b3a50;
    color: #b7edff;
    box-shadow: inset 0 1px #ffffff08;
}
.hub-grid {
    align-items: start;
}
.hub-card {
    position: relative;
}
.hub-card h2 {
    font-size: 23px;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.3;
}
.hub-card h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.hub-card .metric {
    font-size: clamp(38px, 5vw, 52px);
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    color: #a4e9ff;
}
.hub-card :is(input, select, textarea),
.team-search input {
    background: #09131f;
    border-color: #334b60;
    border-radius: 11px;
    transition:
        border-color 0.16s,
        box-shadow 0.16s;
}
.hub-card :is(input, select, textarea):focus {
    border-color: #77c8eb;
    box-shadow: 0 0 0 3px #60c6ff13;
}
.hub-card label {
    color: #bfd0de;
    line-height: 1.55;
}
.hub-card label:has(input[type='checkbox']) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #122335;
    border: 1px solid #2d4559;
    border-radius: 11px;
    cursor: pointer;
}
.hub-card input[type='checkbox'] {
    accent-color: #72d0f7;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}
.hub-card label:has(input:checked[type='checkbox']) {
    border-color: #5189aa;
    background: #173348;
}
.hub-card .record {
    border: 1px solid #263c50;
    background: #0b1724;
    padding: 18px;
    border-radius: 13px;
    margin-block: 12px;
}
.hub-card .record > p {
    margin-block: 10px;
    font-size: 14px;
}
.hub-card .record > strong {
    display: inline-block;
    margin-right: 10px;
}
.hub-card details[open] > summary {
    margin-bottom: 18px;
}
.hub-card summary {
    line-height: 1.6;
    font-weight: 600;
}
.hub-card summary::marker {
    color: #6bcaee;
}
.hub-card progress {
    appearance: none;
    border: 0;
    border-radius: 99px;
    overflow: hidden;
    height: 9px;
    background: #21374b;
}
.hub-card progress::-webkit-progress-bar {
    background: #21374b;
    border-radius: 99px;
}
.hub-card progress::-webkit-progress-value {
    background: linear-gradient(90deg, #278bc1, #8ee5ef);
    border-radius: 99px;
}
.hub-card progress::-moz-progress-bar {
    background: linear-gradient(90deg, #278bc1, #8ee5ef);
    border-radius: 99px;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid #42627a;
    background: #1a3146;
    color: #b7e5ff;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
    vertical-align: middle;
}
.status-pill[data-tone='success'] {
    background: #12362d;
    border-color: #2d6654;
    color: #9ee5c5;
}
.status-pill[data-tone='warning'] {
    background: #392d19;
    border-color: #6c5730;
    color: #f2d89c;
}
.status-pill[data-tone='danger'] {
    background: #38212b;
    border-color: #764454;
    color: #ffbfcb;
}
.event-date {
    background: #112e44;
    border: 1px solid #2c5169;
    border-radius: 12px;
    padding: 13px 16px;
    color: #c3ecff !important;
}
.event-date time {
    font-weight: 550;
    line-height: 1.6;
}
.event-schedule {
    background: #0a1723;
    border-color: #30485c;
}
.event-time-preview {
    background: #12334a;
    border-color: #305c76;
}
.hub-status[data-toast='true'] {
    position: fixed;
    inset: auto 24px 24px auto;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    max-width: min(520px, calc(100vw - 32px));
    margin: 0;
    padding: 15px 18px;
    background: #122d40;
    border: 1px solid #417490;
    border-radius: 14px;
    color: #d2f3ff;
    box-shadow: 0 15px 60px #0008;
    font-size: 14px;
    line-height: 1.6;
}
.hub-status[data-error='true'] {
    background: #35212c;
    border-color: #865064;
    color: #ffced9;
}
.hub-status button {
    flex-shrink: 0;
    width: 30px;
    min-height: 32px;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 22px;
    cursor: pointer;
}
.empty-state {
    padding-block: 18px;
    color: #98b1c6;
    font-size: 14px;
    line-height: 1.8;
}
.command-row {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 18px;
}
.command-row p {
    margin: 0 !important;
}
.command-row code {
    color: #a1e6ff;
    font-size: 14px;
}
.command-row .btn {
    min-height: 38px;
    font-size: 12px;
    padding: 9px 13px;
}
.bot-profile-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 24px;
    background: #071015;
    margin-bottom: 22px;
    box-shadow:
        0 0 0 1px #395970,
        0 8px 25px #0004;
}
.bot-profile-avatar img {
    position: absolute;
    width: 235.3442%;
    max-width: none;
    height: auto;
    left: -67.6721%;
    top: -32.2235%;
}
.bot-profile-avatar[data-bot='fortuna'] img {
    width: 280%;
    left: -90%;
    top: -48%;
}
body:has([data-page='fortuna']) {
    --accent: var(--gold);
}
.bot-card:has(.bot-avatar--fortuna) {
    border-color: #635332;
    background: linear-gradient(145deg, #28251d, #111b24 80%);
}
.bot-card:has(.bot-avatar--fortuna) .bot-category {
    color: var(--gold);
}
.bot-card .bot-avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    box-shadow:
        0 0 0 1px #3c5c72,
        0 6px 20px #0005;
}
.bot-card-top {
    align-items: center;
}
.bot-heading h3 {
    font-size: 22px;
}
.bot-card .bot-description {
    font-size: 14px;
}
.leader-avatar {
    box-shadow:
        0 0 0 4px #152d40,
        0 0 0 5px #35556b;
}
.roles .role {
    padding: 5px 10px;
    border: 1px solid #385267;
    background: #142a3b;
    color: #c6deed;
    border-radius: 99px;
    font-size: 10px;
    line-height: 1.5;
}
.footer {
    border-color: #2a3d4f;
}
.footer a {
    transition: color 0.16s;
}
.dashboard-tabs [aria-current='page'] {
    background: #18364b;
    border-color: #315b77;
    color: #b7eaff;
}
@media (max-width: 600px) {
    .hub-main,
    .team-main {
        padding-top: 32px;
    }
    .hub-links {
        width: 100%;
    }
    .hub-links a {
        padding: 9px 11px;
        font-size: 12px;
    }
    .hub-card {
        border-radius: 17px;
    }
    .command-row {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }
    .command-row p {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .hub-status[data-toast='true'] {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
    }
}
@media (prefers-reduced-motion: reduce) {
    .btn,
    .choice,
    .site-header .links a,
    .bot-card,
    .leader,
    .play-card {
        transition: none;
    }
    .btn[aria-busy='true']::after {
        animation: none;
        border-right-color: currentColor;
    }
}
.bot-card:has(.bot-avatar--fortuna) .btn-primary,
body:has([data-page='fortuna']) .hub-card .btn-primary {
    color: #171711;
    background: linear-gradient(135deg, #e8c67f, #d8b164);
    border-color: #f4dca35c;
}
.bot-card:has(.bot-avatar--fortuna) .btn-primary:hover,
body:has([data-page='fortuna']) .hub-card .btn-primary:hover {
    color: #171711;
    background: #f1d99f;
}
.event-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 36px;
}
.event-overview,
.event-participation {
    min-width: 0;
}
.event-participation {
    padding-left: 28px;
    border-left: 1px solid #2a4054;
}
.event-participation > h3:first-child {
    margin-top: 0;
}
@media (max-width: 800px) {
    .event-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .event-participation {
        padding-left: 0;
        padding-top: 20px;
        border-left: 0;
        border-top: 1px solid #2a4054;
    }
}
