:root {
    --ink: #102f4e;
    --muted: #52677a;
    --paper: #fff8e7;
    --purple: #0877b9;
    --purple-dark: #075884;
    --purple-soft: #dff4ff;
    --orange: #ff713e;
    --green: #20a66a;
    --gold: #ffc928;
    --line: #d6c79f;
    --shadow: 0 18px 0 rgba(16, 47, 78, .08), 0 24px 55px rgba(16, 47, 78, .14);
    font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 85% 12%, #dff7ff 0, transparent 24rem), var(--paper); }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .75rem 1rem; border-radius: .75rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header, main, .site-footer { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.05rem; font-weight: 850; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: white; background: var(--purple); box-shadow: 0 8px 18px rgba(102, 55, 216, .25); }
.site-actions, .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.1rem; border: 2px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 4px solid rgba(102, 55, 216, .28); outline-offset: 2px; }
.button-primary { color: white; background: var(--purple); box-shadow: 0 9px 18px rgba(102, 55, 216, .22); }
.button-primary:hover { background: var(--purple-dark); }
.button-quiet { border-color: var(--line); background: rgba(255, 255, 255, .72); }
.button-large { min-height: 52px; padding-inline: 1.35rem; }

.hero { min-height: 570px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4rem; padding: 4rem 3.5rem; border: 1px solid rgba(102, 55, 216, .08); border-radius: 38px; background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,240,255,.94)); box-shadow: var(--shadow); overflow: hidden; }
.eyebrow { margin: 0 0 .75rem; color: var(--purple); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 680px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.25rem); line-height: .98; letter-spacing: -.055em; }
.hero-text { max-width: 610px; margin: 1.5rem 0 1.75rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.approval-note { margin: 1.25rem 0 0; color: var(--muted); font-size: .94rem; }
.approval-note span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: .3rem; border-radius: 50%; color: white; background: var(--green); }

.score-orbit { position: relative; min-height: 390px; display: grid; place-items: center; }
.score-orbit::before, .score-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 2px dashed rgba(102,55,216,.17); }
.score-orbit::before { width: 320px; height: 320px; }
.score-orbit::after { width: 220px; height: 220px; }
.orbit-center { z-index: 1; display: grid; place-items: center; width: 160px; height: 160px; border-radius: 50%; color: white; background: linear-gradient(145deg, #7b4ce2, #4b24b0); font-size: 1.5rem; font-weight: 900; box-shadow: 0 20px 40px rgba(76, 36, 176, .3); }
.orbit-card { position: absolute; z-index: 2; width: 145px; display: grid; padding: 1rem; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.orbit-card span { font-size: 1.35rem; }
.orbit-card strong { font-size: 1.4rem; }
.orbit-card small { color: var(--muted); }
.orbit-card-one { left: 0; top: 2rem; transform: rotate(-5deg); }
.orbit-card-two { right: 0; bottom: 2rem; transform: rotate(5deg); }

.games-section { padding: 6rem 0 3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
.status-badge, .coming-soon { display: inline-flex; width: fit-content; padding: .42rem .72rem; border-radius: 999px; color: var(--purple-dark); background: var(--purple-soft); font-size: .78rem; font-weight: 850; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.game-card { min-height: 330px; display: flex; flex-direction: column; align-items: flex-start; padding: 1.6rem; border-radius: 28px; border: 1px solid var(--line); background: white; box-shadow: 0 12px 32px rgba(54, 34, 94, .08); }
.game-card-purple { border-top: 7px solid var(--purple); }
.game-card-orange { border-top: 7px solid var(--orange); }
.game-card-green { border-top: 7px solid var(--green); }
.game-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.3rem; border-radius: 20px; background: #f6f2ff; font-size: 2rem; }
.card-label { margin: 0 0 .25rem; color: var(--muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.game-card h3 { margin: 0; font-size: 1.55rem; }
.game-card p:not(.card-label) { color: var(--muted); }
.game-card .coming-soon { margin-top: auto; }

.safe-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem auto 5rem; padding: 2rem; border-radius: 28px; background: var(--ink); color: white; }
.safe-section div { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; }
.safe-section span { grid-row: 1 / 3; font-size: 1.7rem; }
.safe-section strong { font-size: 1.02rem; }
.safe-section p { margin: .2rem 0 0; color: #d8d0e8; font-size: .9rem; }
.site-footer { padding: 1.5rem 0 2.5rem; color: var(--muted); text-align: center; }
.inline-form { margin: 0; }

.auth-shell { min-height: calc(100vh - 180px); display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); padding: 4rem clamp(0rem, 3vw, 2rem) 6rem; }
.auth-shell-compact { max-width: 980px; margin-inline: auto; }
.auth-intro h1, .message-card h1, .dashboard-hero h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.05em; }
.auth-intro > p:last-of-type { max-width: 540px; color: var(--muted); font-size: 1.1rem; }
.privacy-note { max-width: 540px; display: flex; gap: .9rem; align-items: flex-start; margin-top: 2rem; padding: 1.1rem; border-radius: 20px; background: var(--purple-soft); }
.privacy-note > span { font-size: 1.35rem; }
.privacy-note p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.form-card { display: grid; gap: 1rem; padding: clamp(1.4rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.field { display: grid; gap: .38rem; }
.field label { font-weight: 850; }
.field label span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.field input { width: 100%; min-height: 50px; padding: .72rem .9rem; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); background: white; font: inherit; }
.field input:focus { border-color: var(--purple); outline: 4px solid rgba(102,55,216,.13); }
.field small { color: var(--muted); }
.field .field-error { color: #a1273a; font-weight: 750; }
.check-row { min-height: 48px; display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 14px; font-weight: 750; }
.check-row input { width: 1.2rem; height: 1.2rem; accent-color: var(--purple); }
.alert { padding: .9rem 1rem; border-left: 5px solid var(--orange); border-radius: 12px; color: #653300; background: #fff3df; font-weight: 700; }
.button-full { width: 100%; border: 0; cursor: pointer; font: inherit; }
.form-link { margin: .3rem 0 0; color: var(--muted); text-align: center; }
.form-link a { color: var(--purple-dark); font-weight: 800; }
.message-card { max-width: 720px; min-height: calc(100vh - 220px); display: flex; flex-direction: column; align-items: center; justify-content: center; margin-inline: auto; padding: 4rem 1rem 6rem; text-align: center; }
.message-card p:not(.eyebrow) { max-width: 580px; margin: 1.4rem 0 2rem; color: var(--muted); font-size: 1.08rem; }
.message-icon { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 1.3rem; border-radius: 28px; background: var(--purple-soft); font-size: 2.5rem; }
.dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 2.5rem 0 1.5rem; padding: clamp(2rem, 6vw, 4.5rem); border-radius: 34px; background: linear-gradient(135deg, #f1eaff, #fff); box-shadow: var(--shadow); }
.dashboard-hero p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.dashboard-badge { min-width: 180px; display: grid; place-items: center; gap: .5rem; padding: 1.5rem; border-radius: 24px; color: white; background: var(--purple); text-align: center; }
.dashboard-badge span { font-size: 2rem; }
.admin-hero { background: linear-gradient(135deg, #fff1df, #fff); }
.admin-hero .dashboard-badge { background: #9b5017; }
.admin-nav { display: flex; gap: .55rem; margin: 2rem 0 0; padding: .45rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.85); }
.admin-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: .65rem 1rem; border-radius: 13px; color: var(--muted); font-weight: 800; text-decoration: none; white-space: nowrap; }
.admin-nav a:hover, .admin-nav a:focus-visible { color: var(--purple-dark); background: var(--purple-soft); outline: none; }
.admin-nav a[aria-current="page"] { color: white; background: var(--purple); }
.empty-panel { display: grid; place-items: center; margin-bottom: 5rem; padding: 3rem 1.5rem; border: 2px dashed var(--line); border-radius: 28px; text-align: center; }
.empty-panel > span { font-size: 2.5rem; }
.empty-panel h2 { margin-top: .6rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.empty-panel p { max-width: 620px; color: var(--muted); }

@media (max-width: 850px) {
    .hero { grid-template-columns: 1fr; padding: 3.2rem 2rem 2rem; gap: 1rem; }
    .score-orbit { min-height: 330px; }
    .game-grid, .safe-section { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
    .dashboard-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
    .site-header { min-height: 74px; }
    .site-actions .button-quiet { display: none; }
    .brand span:last-child { display: none; }
    .hero { padding: 2.5rem 1.25rem 1rem; border-radius: 26px; }
    .hero-actions { display: grid; }
    .score-orbit { min-height: 300px; transform: scale(.9); }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .games-section { padding-top: 4rem; }
    .safe-section { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Visual-first adventure home */
.adventure-home { background: #fff8e7; }
.adventure-home::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .2; pointer-events: none; background-image: radial-gradient(#0877b9 1px, transparent 1px); background-size: 24px 24px; }
.adventure-home .site-header { min-height: 92px; }
.adventure-home .brand { color: var(--ink); font-size: 1.2rem; letter-spacing: .08em; }
.adventure-home .brand-mark { width: 50px; height: 50px; border: 3px solid var(--ink); border-radius: 50% 50% 45% 55%; color: var(--ink); background: var(--gold); box-shadow: 4px 5px 0 var(--ink); font-size: 1.35rem; transform: rotate(-4deg); }
.adventure-home .button { border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.adventure-home .button:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.adventure-home .button-primary { color: #fff; background: var(--orange); }
.adventure-home .button-primary:hover { background: #e95325; }
.adventure-home .button-quiet { color: var(--ink); background: #fff; }
.adventure-hero { min-height: 620px; grid-template-columns: .82fr 1.18fr; gap: 1.1rem; padding: clamp(1.2rem, 3vw, 2.4rem); border: 4px solid var(--ink); border-radius: 42px 42px 42px 16px; background: linear-gradient(125deg, #fff6ce, #fff); box-shadow: 10px 12px 0 var(--ink); overflow: visible; }
.adventure-hero .hero-copy { position: relative; z-index: 2; padding: clamp(1.2rem, 4vw, 3.2rem); }
.adventure-hero .eyebrow { width: fit-content; padding: .45rem .8rem; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--gold); transform: rotate(-2deg); }
.adventure-hero h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); text-transform: uppercase; text-shadow: 3px 4px 0 #fff, 5px 6px 0 rgba(16,47,78,.18); }
.adventure-hero h1 span { color: var(--orange); }
.adventure-hero .hero-text { max-width: 420px; margin-block: 1rem 1.35rem; color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; }
.adventure-hero .approval-note { width: fit-content; padding: .55rem .8rem; border-radius: 12px; color: var(--ink); background: #dff9eb; font-weight: 850; }
.hero-visual { position: relative; align-self: stretch; min-height: 520px; }
.hero-visual > img { width: 100%; height: 100%; min-height: 520px; display: block; border: 4px solid var(--ink); border-radius: 34px 34px 34px 90px; object-fit: cover; object-position: 58% center; }
.hero-sticker { position: absolute; min-width: 112px; display: grid; place-items: center; padding: .7rem; border: 3px solid var(--ink); color: var(--ink); background: #fff; box-shadow: 5px 6px 0 var(--ink); text-align: center; transform: rotate(-4deg); }
.hero-sticker span { font-size: 1.6rem; }
.hero-sticker strong { font-size: 1.35rem; line-height: 1; }
.hero-sticker small { font-size: .68rem; font-weight: 950; letter-spacing: .12em; }
.hero-sticker-score { left: -1.5rem; top: 2rem; border-radius: 22px 12px 22px 12px; }
.hero-sticker-rank { right: -1.5rem; bottom: 2rem; border-radius: 50%; background: var(--gold); transform: rotate(5deg); }
.quest-steps { width: min(820px, calc(100% - 1rem)); display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 3vw, 1.6rem); margin: 3rem auto 0; padding: .75rem; border: 3px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 6px 7px 0 var(--ink); }
.quest-steps div { min-height: 54px; display: flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px; background: var(--purple-soft); }
.quest-steps div:nth-of-type(2) { background: #fff0cc; }
.quest-steps div:nth-of-type(3) { background: #dff9eb; }
.quest-steps div > span { font-size: 1.5rem; }
.step-arrow { color: var(--orange); font-size: 1.4rem; font-weight: 950; }
.adventure-home .games-section { padding-top: 5rem; }
.adventure-home .section-heading h2 { color: var(--ink); text-transform: uppercase; }
.adventure-home .status-badge { gap: .35rem; border: 2px solid var(--ink); color: var(--ink); background: var(--gold); }
.adventure-home .game-grid { gap: 1.5rem; }
.adventure-home .game-card { min-height: 0; padding: .7rem .7rem 1.1rem; border: 3px solid var(--ink); border-top-width: 3px; border-radius: 26px 26px 26px 10px; box-shadow: 7px 8px 0 var(--ink); transition: transform .18s ease; overflow: hidden; }
.adventure-home .game-card:hover { transform: translateY(-5px) rotate(-.5deg); }
.game-art { width: 100%; aspect-ratio: 3 / 2; display: block; border: 2px solid var(--ink); border-radius: 18px; object-fit: cover; }
.adventure-home .card-label { margin: .9rem .5rem .15rem; color: var(--purple-dark); }
.adventure-home .game-card h3 { margin-inline: .5rem; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.2rem); }
.adventure-home .coming-soon { gap: .3rem; margin: .8rem .5rem 0; border: 2px solid var(--ink); color: var(--ink); background: #fff0cc; }
.adventure-home .safe-section { border: 4px solid var(--ink); border-radius: 34px 12px 34px 12px; background: #0877b9; box-shadow: 8px 9px 0 var(--ink); }
.adventure-home .safe-section div { padding: .75rem; border-radius: 18px; background: rgba(255,255,255,.1); }
.adventure-home .safe-section span { font-size: 2rem; }
.adventure-home .safe-section strong { font-size: 1.1rem; }
.adventure-home .safe-section p { color: #e5f7ff; }

@media (max-width: 900px) {
    .adventure-hero { grid-template-columns: 1fr; padding-bottom: 1rem; }
    .adventure-hero .hero-copy { padding-bottom: .5rem; }
    .hero-visual { min-height: 400px; }
    .hero-visual > img { min-height: 400px; border-radius: 28px 28px 28px 65px; }
}

@media (max-width: 600px) {
    .adventure-home .site-header { min-height: 76px; }
    .adventure-home .site-actions { gap: .45rem; }
    .adventure-home .site-actions .button { min-height: 42px; padding: .5rem .72rem; font-size: .88rem; }
    .adventure-home .site-actions .button-quiet { display: inline-flex; }
    .adventure-hero { min-height: 0; border-radius: 28px 28px 28px 10px; box-shadow: 6px 7px 0 var(--ink); }
    .adventure-hero .hero-copy { padding: 1rem .6rem 1rem; }
    .adventure-hero h1 { font-size: clamp(2.75rem, 15vw, 4.1rem); }
    .adventure-hero .hero-actions { display: grid; }
    .hero-visual, .hero-visual > img { min-height: 300px; }
    .hero-visual > img { object-position: 68% center; }
    .hero-sticker { min-width: 86px; padding: .5rem; }
    .hero-sticker-score { left: -.4rem; top: .7rem; }
    .hero-sticker-rank { right: -.4rem; bottom: .7rem; }
    .quest-steps { gap: .2rem; border-radius: 22px; }
    .quest-steps div { min-width: 0; display: grid; place-items: center; gap: 0; padding: .45rem .55rem; text-align: center; }
    .quest-steps div > span { font-size: 1.25rem; }
    .quest-steps strong { font-size: .76rem; }
    .step-arrow { font-size: .8rem; }
}

/* Shared adventure UI */
.portal-shell .site-header { min-height: 90px; }
.portal-shell .brand { color: var(--ink); font-size: 1.15rem; letter-spacing: .08em; }
.portal-shell .brand-mark { width: 48px; height: 48px; border: 3px solid var(--ink); color: var(--ink); background: var(--gold); box-shadow: 4px 5px 0 var(--ink); transform: rotate(-4deg); }
.portal-shell .button { border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.portal-shell .button:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.portal-shell .button-primary { background: var(--orange); }
.portal-shell .button-primary:hover { background: #e95325; }
.portal-shell .button-quiet { color: var(--ink); background: #fff; }
.portal-shell .auth-shell { gap: clamp(1.5rem, 5vw, 4rem); }
.portal-shell .auth-intro { min-height: 570px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18rem clamp(1.3rem, 4vw, 2.5rem) 2rem; border: 4px solid var(--ink); border-radius: 36px 36px 36px 12px; background-color: #fff4d7; background-image: linear-gradient(to bottom, transparent 0 46%, #fff4d7 58%), url('/assets/images/hero-adventure-v2.webp'); background-repeat: no-repeat; background-size: 100% 100%, 100% 320px; background-position: center, center top; box-shadow: 8px 9px 0 var(--ink); overflow: hidden; }
.portal-shell .auth-intro h1 { color: var(--ink); text-transform: uppercase; }
.portal-shell .auth-intro > p:last-of-type { margin-bottom: .25rem; color: var(--ink); font-weight: 750; }
.portal-shell .eyebrow { color: var(--purple-dark); }
.portal-shell .privacy-note { margin-top: 1rem; border: 2px solid var(--ink); color: var(--ink); background: #dff9eb; }
.portal-shell .form-card { border: 4px solid var(--ink); border-radius: 30px 30px 12px 30px; background: #fff; box-shadow: 9px 10px 0 var(--ink); }
.portal-shell .field input { border-color: #9bb1c2; border-width: 3px; color: var(--ink); background: #fffefb; }
.portal-shell .field input:focus { border-color: var(--purple); outline-color: rgba(8,119,185,.18); }
.portal-shell .alert { border: 3px solid var(--ink); border-left-width: 8px; color: var(--ink); background: #fff0cc; }
.portal-shell .message-card { min-height: 600px; margin-top: 2rem; padding: 3rem; border: 4px solid var(--ink); border-radius: 40px 40px 15px 40px; background: linear-gradient(rgba(255,248,231,.9), rgba(255,248,231,.97)), url('/assets/images/game-garden-match-v2.webp') center / cover; box-shadow: 10px 11px 0 var(--ink); }
.portal-shell .message-icon { width: 110px; height: 110px; border: 3px solid var(--ink); border-radius: 50%; background: var(--gold); box-shadow: 5px 6px 0 var(--ink); font-size: 3.2rem; }
.portal-shell .dashboard-hero { position: relative; min-height: 390px; align-items: flex-end; border: 4px solid var(--ink); border-radius: 38px 38px 38px 14px; background: linear-gradient(110deg, #fff2ca 0 52%, #dff4ff 52%); box-shadow: 9px 10px 0 var(--ink); overflow: hidden; }
.portal-shell .dashboard-hero h1 { color: var(--ink); text-transform: uppercase; }
.portal-shell .dashboard-art { width: min(46%, 440px); align-self: stretch; margin: -2rem 0 -2rem auto; border-inline: 4px solid var(--ink); object-fit: cover; }
.portal-shell .dashboard-badge { z-index: 1; min-width: 150px; border: 3px solid var(--ink); color: var(--ink); background: var(--gold); box-shadow: 5px 6px 0 var(--ink); }
.portal-shell .admin-hero { min-height: 300px; background: linear-gradient(135deg, #fff1cf, #fff); }
.portal-shell .admin-hero .dashboard-badge { color: #fff; background: var(--orange); }
.portal-shell .admin-nav { gap: .65rem; padding: .6rem; border: 3px solid var(--ink); background: #fff; box-shadow: 6px 7px 0 var(--ink); }
.portal-shell .admin-nav a { gap: .45rem; border: 2px solid transparent; }
.portal-shell .admin-nav a > span { font-size: 1.2rem; }
.portal-shell .admin-nav a[aria-current="page"] { border-color: var(--ink); color: var(--ink); background: var(--gold); }
.portal-shell .empty-panel { border: 4px dashed var(--ink); background: rgba(255,255,255,.7); }
.crew-panel { margin-bottom: 5rem; padding: clamp(1rem, 3vw, 2rem); border: 4px solid var(--ink); border-radius: 34px 34px 14px 34px; background: #fff8e7; box-shadow: 8px 9px 0 var(--ink); }
.crew-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.crew-card { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: 1.1rem; border: 3px solid var(--ink); border-radius: 24px 24px 10px 24px; background: #fff; }
.crew-avatar { width: 58px; height: 58px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--gold); font-size: 1.7rem; }
.crew-identity h3 { margin: 0; color: var(--ink); font-size: 1.3rem; }
.crew-identity p, .crew-date { margin: .2rem 0 0; color: var(--muted); font-weight: 750; }
.crew-date { font-size: .82rem; }
.crew-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.action-confirm { border: 2px solid var(--ink); border-radius: 16px; background: #fff; overflow: hidden; }
.action-confirm summary { min-height: 44px; display: grid; place-items: center; padding: .65rem; color: var(--ink); font-weight: 900; cursor: pointer; list-style-position: inside; }
.action-confirm summary:focus-visible { outline: 4px solid rgba(8,119,185,.24); outline-offset: -4px; }
.action-confirm-approve summary { background: #dff9eb; }
.action-confirm-reject summary { background: #ffe1dc; }
.action-confirm[open] { padding-bottom: .75rem; }
.action-confirm[open] summary { margin-bottom: .65rem; border-bottom: 2px solid var(--ink); }
.action-confirm p { margin: .4rem .75rem .65rem; color: var(--muted); text-align: center; }
.action-confirm form { margin: 0 .75rem; }
.action-confirm .button { width: 100%; border-width: 2px; box-shadow: 3px 4px 0 var(--ink); cursor: pointer; font: inherit; }
.button-danger { color: #fff; background: #b83245; }
.admin-notice { margin: 1rem 0 1.5rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; font-weight: 850; }

@media (max-width: 850px) {
    .portal-shell .auth-intro { min-height: 510px; }
    .portal-shell .dashboard-art { width: 100%; height: 260px; order: -1; margin: -2rem -2rem 1rem; border: 0; border-bottom: 4px solid var(--ink); }
    .crew-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .portal-shell .site-header { min-height: 76px; }
    .portal-shell .site-actions .button-quiet { display: inline-flex; }
    .portal-shell .site-actions .button { min-height: 42px; padding: .5rem .65rem; font-size: .84rem; }
    .portal-shell .auth-shell { padding-top: 1.5rem; }
    .portal-shell .auth-intro { min-height: 430px; padding: 14rem 1.2rem 1.4rem; border-radius: 28px 28px 28px 10px; background-size: 100% 100%, 100% 245px; }
    .portal-shell .auth-intro h1 { font-size: clamp(2.25rem, 12vw, 3.3rem); }
    .portal-shell .form-card { border-radius: 25px 25px 10px 25px; box-shadow: 6px 7px 0 var(--ink); }
    .portal-shell .message-card { padding: 2rem 1rem; border-radius: 28px 28px 10px 28px; }
    .crew-card { grid-template-columns: auto 1fr; }
    .crew-date { grid-column: 2; }
    .crew-actions { grid-template-columns: 1fr; }
    .pagination { flex-wrap: wrap; }
}
