:root {
    --ink: #08081a;
    --horizon: #1a1438;
    --twilight: #2b1f5c;
    --ember: #ff6b47;
    --ember-soft: #f18a6b;
    --gold: #f4c95d;
    --rose: #e8a0bf;
    --mint: #7fd1c0;
    --cream: #faf3e0;
    --fog: rgba(250, 243, 224, 0.65);
    --mist: rgba(250, 243, 224, 0.45);
    --whisper: rgba(250, 243, 224, 0.12);

    /* Calculator interface colors */
    --muted: #607588;
    --sky: #d7f2ff;
    --blue: #2679a8;
    --blue-dark: #17597d;
    --coral: var(--ember);
    --line: #d7e4ea;
    --error: #b63c31;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh; margin: 0; color: var(--ink);
    background: radial-gradient(circle at 12% 10%, #fff 0 4%, transparent 13%), linear-gradient(160deg, var(--sky), #f6fbff 63%, var(--cream));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

input, select { font: inherit; }
.site-shell { width: min(1180px, calc(100% - 40px)); margin: auto; }
.site-header { display: flex; min-height: 92px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.wordmark {
    margin: 0;
    color: var(--cream);
    font-size: clamp(48px, 9vw, 84px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 0.95;
}
.wordmark em {
    color: var(--ember);
    font-style: italic;
    font-weight: 400;
}
.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.brand .wordmark {
    color: var(--ink);
    font-size: clamp(28px, 4vw, 38px);
}
.navigator-name {
    margin-top: 4px;
    color: var(--horizon);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.header-label, .eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.header-label { color: var(--blue-dark); }
.eyebrow { margin: 0 0 10px; color: var(--coral); }
.site-nav { display: flex; gap: 4px; align-items: center; padding: 4px; border: 1px solid rgba(23,51,75,.12); border-radius: 999px; background: rgba(255,255,255,.48); }
.site-nav a { padding: 9px 13px; border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--blue-dark); background: rgba(255,255,255,.7); }
.site-nav a:focus-visible { outline: 3px solid rgba(38,121,168,.3); outline-offset: 1px; }
.site-nav a[aria-current=page] { color: #fff; background: var(--blue-dark); }

.brand-mark { display: block; width: 32px; height: 44px; }
.balloon-svg { display: block; overflow: visible; }
.brand-mark .balloon-svg { width: 32px; height: auto; aspect-ratio: 44 / 60; }

.calculator-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(520px,1.2fr); gap: clamp(42px,7vw,100px); align-items: center; min-height: calc(100vh - 142px); padding: 48px 0 90px; }
h1 { max-width: 480px; margin: 0; font: 700 clamp(3.3rem,7vw,6.4rem)/.89 Georgia, serif; letter-spacing: -.055em; }
.intro-copy { max-width: 440px; margin: 28px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.sky-art { position: relative; height: 190px; margin-top: 30px; overflow: visible; }
.cloud { position: absolute; width: 104px; height: 26px; border-radius: 50px; background: rgba(255,255,255,.75); }
.cloud::before,.cloud::after { position: absolute; border-radius: 50%; background: inherit; content: ""; }
.cloud::before { bottom: 4px; left: 16px; width: 48px; height: 48px; }
.cloud::after { right: 10px; bottom: 3px; width: 36px; height: 36px; }
.cloud-one { top: 33px; left: 0; } .cloud-two { right: 7%; bottom: 17px; transform: scale(.72); }

.floating-balloon { position: absolute; top: 3px; right: 24%; width: 88px; height: 130px; filter: drop-shadow(0 12px 12px rgba(49,91,112,.15)); animation: drift 5s ease-in-out infinite; }
.floating-balloon .balloon-svg { width: 88px; height: auto; aspect-ratio: 44 / 60; }

.calculator-card { padding: clamp(28px,5vw,52px); border: 1px solid rgba(255,255,255,.85); border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: 0 24px 70px rgba(35,91,119,.16); backdrop-filter: blur(14px); }
.field-group { min-width: 0; }
.field-group > label,.unit-toggle legend { display: block; margin-bottom: 10px; font-size: .84rem; font-weight: 800; }
input[type=number],select { width: 100%; height: 54px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--ink); background: #fff; }
input[type=number] { padding: 0 16px; } select { padding: 0 16px; }
input[type=number]:focus,select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(38,121,168,.12); }
input[aria-invalid=true] { border-color: var(--error); }
.distance-row { display: grid; grid-template-columns: minmax(140px,1fr) auto; gap: 12px; }
.unit-toggle { display: flex; height: 54px; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: #f2f7f9; }
.unit-toggle legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.unit-toggle label { cursor: pointer; } .unit-toggle input { position: absolute; opacity: 0; }
.unit-toggle span { display: grid; height: 44px; padding: 0 14px; place-items: center; border-radius: 9px; color: var(--muted); font-size: .77rem; font-weight: 750; }
.unit-toggle input:checked + span { color: var(--blue-dark); background: #fff; box-shadow: 0 3px 10px rgba(34,75,96,.12); }
.unit-toggle input:focus-visible + span { outline: 3px solid rgba(38,121,168,.3); }
.unit-preference-status { min-height: 1em; margin: 5px 0 0; color: var(--muted); font-size: .66rem; font-weight: 700; text-align: right; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.input-with-suffix { position: relative; } .input-with-suffix input { padding-right: 42px; }
.input-with-suffix span { position: absolute; top: 50%; right: 17px; color: var(--muted); transform: translateY(-50%); }
.field-error { min-height: 18px; margin: 6px 2px 0; color: var(--error); font-size: .75rem; }
.balloon-select-enhanced { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; border: 0; clip: rect(0,0,0,0); white-space: nowrap; }
.balloon-picker { position: relative; z-index: 5; }
.balloon-picker-trigger { display: grid; width: 100%; min-height: 54px; padding: 6px 13px; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.balloon-picker-trigger:focus-visible { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(38,121,168,.12); }
.picker-balloon { display: block; width: 24px; height: 33px; overflow: visible; flex: 0 0 auto; filter: drop-shadow(0 3px 2px rgba(8,8,26,.16)); }
.balloon-picker-trigger .picker-balloon { width: 26px; height: 36px; }
.balloon-picker-value { min-width: 0; overflow: hidden; font-size: .78rem; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.balloon-picker-chevron { color: var(--muted); font-size: .8rem; }
.balloon-picker-menu { position: absolute; z-index: 30; top: calc(100% + 7px); right: 0; left: 0; max-height: 330px; padding: 7px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 42px rgba(23,51,75,.22); }
.balloon-picker-menu[hidden] { display: none; }
.balloon-picker-option { display: flex; width: 100%; min-height: 48px; padding: 7px 9px; gap: 11px; align-items: center; border: 0; border-radius: 9px; color: var(--ink); background: transparent; font-size: .76rem; font-weight: 650; line-height: 1.3; text-align: left; cursor: pointer; }
.balloon-picker-option:hover,.balloon-picker-option:focus-visible { outline: 0; background: #edf6fa; }
.balloon-picker-option[aria-selected=true] { color: var(--blue-dark); background: #e2f1f7; }

.results { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(20px,4vw,34px); margin-top: 25px; padding: 25px 26px; border-radius: 20px; color: #fff; background: linear-gradient(135deg,var(--blue-dark),#287ea7); }
.result-item { display: flex; min-width: 0; flex-direction: column; }
.result-label { color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-item strong { margin-top: 7px; overflow: hidden; font: 700 clamp(2rem,5vw,2.8rem)/1 Georgia,serif; text-overflow: ellipsis; }
.result-divider { background: rgba(255,255,255,.2); }
.formula-note { margin: 15px 2px 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }

/* Navigator home */
.home-page {
    color: var(--cream);
    background:
        radial-gradient(circle at 76% 18%, rgba(232,160,191,.18), transparent 24%),
        radial-gradient(circle at 18% 82%, rgba(255,107,71,.12), transparent 25%),
        linear-gradient(145deg, var(--ink), var(--horizon) 54%, var(--twilight));
}
.home-shell { display: flex; width: min(1180px,calc(100% - 40px)); min-height: 100vh; margin: auto; flex-direction: column; }
.home-header { display: flex; min-height: 96px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--whisper); }
.home-brand { display: flex; gap: 16px; align-items: center; color: inherit; text-decoration: none; }
.home-balloon { width: 38px; height: auto; aspect-ratio: 44/60; }
.home-brand-text { display: flex; flex-direction: column; align-items: flex-start; }
.home-brand .wordmark { font-size: clamp(34px,5vw,50px); }
.home-navigator { margin-top: 5px; color: var(--fog); font-size: .65rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; }
.home-kicker { color: var(--mist); font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.home-kicker:hover { color: var(--cream); }
.home-kicker .wordmark { display: inline; color: var(--cream); font-size: inherit; letter-spacing: -.025em; line-height: inherit; text-transform: none; }
.home-hero { display: block; flex: 1; padding: 40px 0 45px; }
.home-copy { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); column-gap: clamp(45px,8vw,110px); align-items: start; }
.home-copy > .home-eyebrow,.home-copy > h1,.home-copy > p { grid-column: 1; }
.home-eyebrow { margin: 0 0 18px; color: var(--ember); font-size: .76rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.home-copy h1 { max-width: 570px; color: var(--cream); font: 800 clamp(3rem,5.5vw,5.6rem)/.94 Georgia,serif; letter-spacing: -.05em; }
.home-copy > p:last-child { max-width: 500px; margin: 30px 0 0; color: var(--fog); font-size: 1.08rem; line-height: 1.7; }
.home-flight-scene { position: relative; width: 100%; max-width: 500px; height: 145px; grid-column: 2; grid-row: 1 / span 2; align-self: start; justify-self: end; overflow: hidden; border: 1px solid rgba(250,243,224,.08); border-radius: 18px 18px 8px 8px; background: linear-gradient(180deg,rgba(38,121,168,.24),rgba(215,242,255,.09)); box-shadow: inset 0 -30px 45px rgba(8,8,26,.14); }
.home-scene-balloon { position: absolute; z-index: 3; top: 23px; left: 57%; width: 58px; height: auto; filter: drop-shadow(0 12px 9px rgba(8,8,26,.28)); animation: home-balloon-float 4.6s ease-in-out infinite; }
.home-scene-cloud { position: absolute; z-index: 1; width: 72px; height: 18px; border-radius: 30px; background: rgba(250,243,224,.52); filter: blur(.2px); animation: home-cloud-pass 13s linear infinite; }
.home-scene-cloud::before,.home-scene-cloud::after { position: absolute; bottom: 3px; border-radius: 50%; background: inherit; content: ""; }
.home-scene-cloud::before { left: 12px; width: 34px; height: 34px; }
.home-scene-cloud::after { right: 8px; width: 25px; height: 25px; }
.home-scene-cloud-one { top: 33px; right: -95px; }
.home-scene-cloud-two { top: 96px; right: -125px; opacity: .68; animation-delay: -6s; animation-duration: 16s; transform: scale(.72); }
.home-wind-gust { position: absolute; z-index: 2; right: -100px; width: 80px; height: 18px; border-top: 2px solid rgba(250,243,224,.32); border-radius: 50%; animation: home-gust-pass 7s ease-in-out infinite; }
.home-wind-gust::after { position: absolute; top: 6px; left: 22px; width: 48px; height: 12px; border-top: 1px solid rgba(250,243,224,.24); border-radius: 50%; content: ""; }
.home-wind-gust-one { top: 58px; }
.home-wind-gust-two { top: 113px; animation-delay: -3.5s; animation-duration: 8.5s; }
.live-totals { width: 100%; max-width: 500px; margin-top: 18px; padding: 17px 18px 15px; grid-column: 2; grid-row: 3; align-self: end; justify-self: end; border: 1px solid var(--whisper); border-radius: 16px; background: rgba(250,243,224,.07); }
.live-totals-heading { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.live-totals .live-totals-label { margin: 0; color: var(--ember-soft); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.live-totals time { color: var(--mist); font-size: .62rem; }
.live-totals-grid { display: grid; grid-template-columns: .9fr .95fr 1.15fr; gap: 10px; margin: 14px 0 0; }
.live-totals-grid div { min-width: 0; }
.live-totals-grid div:last-child { padding-right: 6px; }
.live-totals-grid dt { color: var(--mist); font-size: .62rem; line-height: 1.25; text-transform: uppercase; }
.live-totals-grid dd { margin: 4px 0 0; color: var(--cream); font: 700 clamp(1.15rem,2vw,1.5rem)/1 Georgia,serif; }
.live-totals-unavailable { margin: 12px 0 0; color: var(--fog); font-size: .78rem; }
.inline-wordmark { display: inline; color: var(--cream); font-size: inherit; line-height: inherit; text-decoration: none; }
.inline-wordmark:hover { text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
.destination-grid { display: grid; margin-top: 36px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.destination-card { position: relative; display: grid; min-height: 122px; padding: 17px 50px 16px 18px; overflow: hidden; border: 1px solid var(--whisper); border-radius: 18px; color: var(--cream); background: rgba(250,243,224,.07); text-decoration: none; transition: transform 180ms ease,border-color 180ms ease,background 180ms ease; }
.destination-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ember); content: ""; }
.map-card::before { background: var(--gold); }
.destination-card:hover { border-color: rgba(250,243,224,.25); background: rgba(250,243,224,.11); transform: translateY(-3px); }
.destination-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.destination-number { position: absolute; top: 17px; right: 18px; color: var(--mist); font-size: .66rem; font-weight: 800; }
.destination-content { display: flex; min-width: 0; flex-direction: column; }
.destination-label { margin-bottom: 4px; color: var(--ember-soft); font-size: .63rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.map-card .destination-label { color: var(--gold); }
.destination-content strong { padding-right: 8px; font: 700 clamp(1.3rem,2vw,1.65rem)/1.05 Georgia,serif; }
.destination-content > span:last-child { max-width: 430px; margin-top: 7px; color: var(--fog); font-size: .72rem; line-height: 1.35; }
.destination-arrow { position: absolute; right: 15px; bottom: 14px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--whisper); border-radius: 50%; font-size: .95rem; }
.site-footer { font-size: .78rem; line-height: 1.6; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; font-weight: 800; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ember); }
.site-version::before { margin: 0 .55em; color: var(--mist); content: "·"; }
.home-footer { padding: 24px 0 28px; border-top: 1px solid var(--whisper); color: var(--mist); }
.tools-footer { padding: 24px 0 32px; border-top: 1px solid rgba(23,51,75,.12); color: var(--muted); text-align: center; }

/* Balloon hangar */
.hangar-page {
    position: relative;
    isolation: isolate;
    color: var(--cream);
    background:
        linear-gradient(90deg,rgba(0,0,0,.3),transparent 22% 78%,rgba(0,0,0,.3)),
        repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 2px,transparent 2px 120px),
        linear-gradient(180deg,#111521 0%,#202633 64%,#393a3e 64%,#1b1c20 100%);
    background-attachment: fixed;
}
.hangar-page::before {
    position: absolute;
    z-index: 0;
    top: 96px;
    left: 50%;
    width: min(76vw,980px);
    height: 500px;
    border-radius: 50% 50% 0 0 / 38% 38% 0 0;
    background:
        radial-gradient(ellipse at 22% 28%,rgba(255,255,255,.92) 0 5%,transparent 5.5%),
        radial-gradient(ellipse at 29% 29%,rgba(255,255,255,.8) 0 7%,transparent 7.5%),
        linear-gradient(180deg,transparent 0 66%,#8fbe67 66% 79%,#4f793d 79% 100%),
        linear-gradient(#85d2f2,#d9f3ff 70%);
    box-shadow: 0 0 0 24px #343b47,0 0 0 31px #11151e,0 15px 70px rgba(126,210,244,.2);
    content: "";
    opacity: .82;
    transform: translateX(-50%);
}
.hangar-shell { position: relative; z-index: 1; padding-bottom: 10px; }
.hangar-page .site-header { border-bottom: 1px solid rgba(250,243,224,.14); }
.hangar-page .brand { color: var(--cream); }
.hangar-page .brand .wordmark { color: var(--cream); }
.hangar-page .navigator-name,.hangar-page .header-label { color: var(--fog); }
.hangar-page .site-nav { border-color: rgba(250,243,224,.16); background: rgba(8,8,26,.3); }
.hangar-page .site-nav a { color: var(--fog); }
.hangar-page .site-nav a:hover { color: var(--cream); background: var(--whisper); }
.hangar-page .site-nav a[aria-current=page] { color: var(--ink); background: var(--gold); }
.hangar-intro { max-width: 800px; padding: 70px 0 54px; }
.hangar-intro h1 { max-width: none; color: var(--cream); font-size: clamp(3.2rem,7vw,6.2rem); text-shadow: 0 2px 12px rgba(8,8,26,.6); }
.hangar-intro > p:last-of-type { max-width: 610px; margin: 25px 0 0; color: var(--cream); font-size: 1.08rem; font-weight: 600; line-height: 1.65; text-shadow: 0 2px 8px rgba(8,8,26,.7); }
.hangar-unit-toggle { position: relative; display: inline-flex; margin: 24px 0 0; padding: 4px; border: 1px solid rgba(250,243,224,.22); border-radius: 999px; background: rgba(8,8,26,.42); }
.hangar-unit-toggle legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hangar-unit-toggle label { cursor: pointer; }
.hangar-unit-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.hangar-unit-toggle label > span { display: grid; min-width: 70px; min-height: 38px; padding: 0 16px; place-items: center; border-radius: 999px; color: var(--fog); font-size: .72rem; font-weight: 850; letter-spacing: .1em; transition: color 160ms ease,background 160ms ease; }
.hangar-unit-toggle input:checked + span { color: var(--ink); background: var(--gold); }
.hangar-unit-toggle input:focus-visible + span { outline: 3px solid var(--cream); outline-offset: 3px; }
.hangar-unit-save-status { position: absolute; top: calc(100% + 7px); left: 0; width: 100%; color: var(--cream); font-size: .66rem; font-weight: 700; letter-spacing: 0; text-align: center; white-space: nowrap; }
.balloon-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; padding-bottom: 65px; }
.balloon-card { position: relative; display: flex; overflow: hidden; flex-direction: column; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 24px 55px rgba(0,0,0,.28); }
.balloon-card-top {
    position: relative; display: grid; min-height: 200px; overflow: hidden; place-items: center;
    border-bottom: 5px solid #3b3e47;
    background:
        radial-gradient(ellipse at 20% 30%,rgba(255,255,255,.94) 0 7%,transparent 7.5%),
        radial-gradient(ellipse at 28% 31%,rgba(255,255,255,.82) 0 10%,transparent 10.5%),
        radial-gradient(ellipse at 75% 22%,rgba(255,255,255,.75) 0 6%,transparent 6.5%),
        linear-gradient(#79c9ed,#dff5ff);
}
.balloon-card-top::before,.balloon-card-top::after { position: absolute; z-index: 0; content: ""; }
.balloon-card-top::before { right: 0; bottom: 0; left: 0; height: 42px; background: linear-gradient(170deg,#86b85e 0 46%,#56823f 47% 100%); box-shadow: 0 -6px 18px rgba(58,112,60,.16); }
.balloon-card-top::after { right: 0; bottom: 0; left: 0; height: 8px; background: repeating-linear-gradient(90deg,#34383d 0 28px,#e8bf55 28px 42px,#34383d 42px 70px); }
.hangar-balloon { position: relative; z-index: 1; display: block; width: 88px; height: auto; overflow: visible; filter: drop-shadow(0 18px 12px rgba(0,0,0,.45)); transform-origin: center; animation: drift 5s ease-in-out infinite; }
.balloon-card:nth-child(2n) .hangar-balloon { animation-delay: -1.4s; }
.balloon-card:nth-child(3n) .hangar-balloon { animation-delay: -2.8s; }
.balloon-card[data-speed-tier="1"] .hangar-balloon { animation-duration: 4.5s; }
.balloon-card[data-speed-tier="2"] .hangar-balloon { animation-duration: 4s; }
.balloon-card[data-speed-tier="3"] .hangar-balloon { animation-duration: 3.5s; }
.balloon-card[data-speed-tier="4"] .hangar-balloon { animation-duration: 3s; }
.balloon-card[data-speed-tier="5"] .hangar-balloon { animation-duration: 2.5s; }
.hangar-basket { transform-box: fill-box; transform-origin: center; transition: transform 180ms ease; }
.balloon-card[data-distance-tier="1"] .hangar-basket { transform: scale(1.07); }
.balloon-card[data-distance-tier="2"] .hangar-basket { transform: scale(1.14); }
.balloon-card[data-distance-tier="3"] .hangar-basket { transform: scale(1.21); }
.balloon-card[data-distance-tier="4"] .hangar-basket { transform: scale(1.28); }
.balloon-card[data-distance-tier="5"] .hangar-basket { transform: scale(1.35); }
.rarity { position: absolute; z-index: 2; top: 18px; right: 18px; padding: 7px 10px; border: 1px solid currentColor; border-radius: 999px; background: var(--twilight); font-size: .66rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.rarity-common { color: #9fb0c3; }
.rarity-uncommon { color: #6fcf97; }
.rarity-rare { color: #56a8ff; }
.rarity-epic { color: #b06bff; }
.rarity-legendary { color: #f4c95d; }
.rarity-daily { color: #7fd1c0; }
.balloon-card-heading { padding: 25px 28px 20px; }
.balloon-standard-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .6rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.balloon-card-heading h2 { margin: 0; font: 700 clamp(1.7rem,3vw,2.25rem)/1.05 Georgia,serif; letter-spacing: -.025em; }
.balloon-card-heading p { min-height: 44px; margin: 10px 0 0; color: var(--muted); font-size: .88rem; font-style: italic; line-height: 1.5; }
.balloon-tracking-form { display: contents; }
.balloon-owned-toggle,.balloon-tracking-signin { margin: 0 28px 16px; }
.balloon-owned-toggle { display: flex; gap: 10px; min-height: 44px; padding: 10px 14px; align-items: center; border: 1px solid #cbd9dd; border-radius: 12px; color: var(--twilight); background: #f3f7f8; font-size: .8rem; font-weight: 850; cursor: pointer; }
.balloon-owned-toggle input { width: 20px; height: 20px; margin: 0; accent-color: var(--ember); }
.balloon-owned-toggle.is-static { cursor: default; }
.balloon-custom-name { display: block; margin: 0 28px 16px; }
.balloon-custom-name > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: .65rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.balloon-custom-name small { font: inherit; letter-spacing: normal; text-transform: none; }
.balloon-custom-name input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #cbd9dd; border-radius: 10px; color: var(--ink); background: #fff; font: 750 .86rem/1 system-ui,sans-serif; }
.balloon-custom-name input:focus { border-color: var(--ember); outline: 3px solid rgba(255,107,71,.15); }
.balloon-card.is-owned { border-color: #6fcf97; box-shadow: 0 24px 55px rgba(0,0,0,.28),0 0 0 2px rgba(111,207,151,.28); }
.balloon-tracking-signin { padding: 11px 14px; border: 1px solid rgba(43,31,92,.18); border-radius: 12px; background: #f3f7f8; font-size: .76rem; font-weight: 750; text-align: center; }
.balloon-tracking-signin a { color: var(--twilight); }
.balloon-save-status { min-height: 2.6em; margin: 8px 28px 10px; color: var(--muted); font-size: .72rem; line-height: 1.3; text-align: center; }
.upgrade-panel { margin: 0 28px 24px; border: 1px solid var(--line); border-radius: 15px; background: #f3f7f8; }
.upgrade-panel summary { display: flex; min-height: 52px; padding: 0 16px; align-items: center; justify-content: space-between; color: var(--twilight); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; list-style: none; }
.upgrade-panel summary::-webkit-details-marker { display: none; }
.upgrade-panel summary::after { width: 9px; height: 9px; margin-left: 12px; border-right: 2px solid var(--ember); border-bottom: 2px solid var(--ember); content: ""; transform: rotate(45deg) translateY(-2px); transition: transform 160ms ease; }
.upgrade-panel[open] summary::after { transform: rotate(225deg) translate(-2px,-2px); }
.upgrade-panel summary:focus-visible { border-radius: 14px; outline: 3px solid rgba(255,107,71,.25); outline-offset: 2px; }
.upgrade-panel-hint { margin-left: auto; color: var(--muted); font-size: .62rem; letter-spacing: .04em; }
.upgrade-panel[open] .upgrade-panel-hint { font-size: 0; }
.upgrade-panel[open] .upgrade-panel-hint::after { font-size: .62rem; content: "Hide tiers"; }
.upgrade-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0 18px 18px; }
.upgrade-controls label { min-width: 0; }
.upgrade-controls .upgrade-all { grid-column: 1 / -1; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.upgrade-controls .upgrade-all > span { min-height: 0; }
.tier-select-all { border-color: rgba(255,107,71,.42); background: #fffaf6; }
.upgrade-controls label > span { display: flex; min-height: 2.6em; margin: 0 0 6px 2px; align-items: flex-end; color: var(--muted); font-size: .65rem; font-weight: 850; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; }
.upgrade-controls select { height: 42px; padding: 0 10px; border-radius: 10px; font-size: .82rem; font-weight: 750; }
.daily-fixed-note { display: grid; min-height: 54px; margin: 0 28px 24px; padding: 10px 16px; place-items: center; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); background: #f3f7f8; font-size: .78rem; font-weight: 700; text-align: center; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0 28px 24px; }
.spec-list div { padding: 14px 0; border-top: 1px solid var(--line); }
.spec-list div:nth-child(odd) { padding-right: 16px; }
.spec-list div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.spec-list dd { margin: 6px 0 0; font-size: .96rem; font-weight: 800; }
.balloon-price { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 72px; margin-top: auto; padding: 18px 28px; color: var(--cream); background: var(--horizon); }
.balloon-price > span { color: var(--mist); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.balloon-price strong { text-align: right; font-size: .87rem; }
.data-error { margin: 30px 0 80px; padding: 24px; border-radius: 16px; color: var(--error); background: #fff; text-align: center; }
.hangar-page .tools-footer { border-top-color: rgba(250,243,224,.16); color: var(--mist); }

/* Pilot Atlas */
.countries-page {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background: linear-gradient(#cceafa,#edf8fb 54%,var(--cream));
    background-attachment: fixed;
}
.countries-page::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    background: linear-gradient(90deg,rgba(255,255,255,.28),transparent 25% 75%,rgba(255,255,255,.28));
    content: "";
}
.countries-shell { position: relative; z-index: 1; }
.countries-intro { padding: 34px 0 25px; }
.countries-intro h1 { max-width: none; color: var(--twilight); font-size: clamp(2.7rem,5vw,4.5rem); text-shadow: 0 2px 0 rgba(250,243,224,.55),0 8px 22px rgba(43,31,92,.13); }
.countries-intro > p:last-child { max-width: 760px; margin: 13px 0 0; color: var(--horizon); font-size: .96rem; font-weight: 650; line-height: 1.5; text-shadow: 0 1px 0 rgba(250,243,224,.7); }
.atlas-explorer-layout { display: grid; margin-bottom: 65px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: stretch; }
.atlas-explorer-layout.atlas-explorer-without-map { grid-template-columns: 1fr; }
.atlas-map-column { min-width: 0; }
.atlas-visit-tip { grid-column: 1 / -1; margin: 0; color: var(--horizon); font-size: .74rem; font-weight: 650; line-height: 1.4; }
.atlas-visit-tip strong { color: var(--ember); font-weight: 850; }
.stands-layout { display: grid; margin-bottom: 65px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.stands-map-panel,.stands-list-panel { min-width: 0; padding: 22px; border: 1px solid rgba(250,243,224,.2); border-radius: 22px; background: linear-gradient(145deg,var(--horizon),var(--twilight)); box-shadow: 0 22px 58px rgba(35,91,119,.18); }
.stands-map { position: relative; height: clamp(300px,36vw,430px); overflow: hidden; border-radius: 15px; background: #5e849c; }
.stands-map.leaflet-container { font-family: inherit; }
.stand-map-pin { filter: drop-shadow(0 2px 2px rgba(8,8,26,.45)); transition: filter 150ms ease; }
.stand-map-pin.is-selected { filter: drop-shadow(0 0 3px var(--cream)) drop-shadow(0 0 6px var(--ember)); }
.stands-map-error { display: grid; height: 100%; margin: 0; padding: 20px; place-items: center; color: var(--cream); font-size: .84rem; font-weight: 750; text-align: center; }
.stands-map-heading { margin-bottom: 18px; }
.stands-map-status { margin: 0; color: var(--fog); font-size: .8rem; }
.stands-list-panel { color: var(--cream); }
.stands-list-heading { display: flex; margin-bottom: 14px; align-items: center; justify-content: space-between; }
.stands-list-heading h2 { margin: 0; font: 700 1.8rem/1 Georgia,serif; }
.stands-list-heading span { color: var(--fog); font-size: .72rem; font-weight: 800; }
.stands-list-heading strong { color: var(--ember); font-size: 1rem; }
.stands-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.stands-filters label:first-child { grid-column: 1 / -1; }
.stands-filters label > span { display: block; margin: 0 0 6px 2px; color: var(--fog); font-size: .62rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.stands-filters input,.stands-filters select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid rgba(250,243,224,.22); border-radius: 9px; outline: 0; color: var(--ink); background: var(--cream); font: 700 .72rem/1 system-ui,sans-serif; }
.stands-filters input:focus,.stands-filters select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,201,93,.18); }
.stands-filters p { grid-column: 1 / -1; margin: -2px 2px 0; color: var(--fog); font-size: .68rem; font-weight: 700; }
.stands-list { max-height: clamp(280px,32vw,385px); margin: 0; padding: 0; overflow: auto; list-style: none; }
.stand-row { display: flex; gap: 10px; padding: 10px 0; align-items: center; border-bottom: 1px solid var(--whisper); }
.stand-row[hidden] { display: none; }
.stand-row.is-selected { margin: 0 -10px; padding-right: 10px; padding-left: 10px; border-radius: 9px; background: rgba(244,201,93,.14); box-shadow: inset 4px 0 var(--ember); }
.stand-select { display: flex; min-width: 0; flex: 1; gap: 12px; align-items: center; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.stand-number { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid rgba(244,201,93,.45); border-radius: 50%; color: var(--gold); font-size: .7rem; font-weight: 850; }
.stand-details { display: flex; min-width: 0; gap: 3px; flex-direction: column; }
.stand-details strong { color: var(--cream); font-size: .86rem; }
.stand-details span { color: var(--fog); font-size: .7rem; }
.stands-list .visit-toggle { flex: 0 0 auto; }
.atlas-directory-column { position: relative; min-width: 0; min-height: 0; }
.atlas-map-panel { margin: 0 0 18px; padding: 22px; overflow: hidden; border: 1px solid rgba(250,243,224,.2); border-radius: 22px; color: var(--cream); background: linear-gradient(145deg,var(--horizon),var(--twilight)); box-shadow: 0 22px 58px rgba(35,91,119,.18); }
.atlas-map-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 24px; align-items: center; margin-bottom: 18px; }
.atlas-map-heading > div:first-child { display: contents; }
.atlas-map-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 0; white-space: nowrap; }
.atlas-map-heading h2 { margin: 0; font: 700 clamp(1.7rem,3vw,2.4rem)/1 Georgia,serif; }
.atlas-map-heading p:last-child { grid-column: 1; margin: 0; color: var(--fog); font-size: .8rem; }
.atlas-map-actions { display: flex; grid-column: 2; gap: 8px; align-items: center; }
.atlas-map-actions > button { min-height: 40px; padding: 0 15px; border: 1px solid var(--whisper); border-radius: 10px; color: var(--cream); background: var(--whisper); font-size: .72rem; font-weight: 800; cursor: pointer; }
.atlas-map-actions > button:hover:not(:disabled) { border-color: var(--gold); }
.atlas-map-actions > button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.atlas-map-actions > button:disabled { opacity: .42; cursor: default; }
.atlas-map-width-toggle { white-space: nowrap; }
.atlas-map-canvas { position: relative; height: clamp(300px,36vw,430px); overflow: hidden; border: 1px solid rgba(250,243,224,.2); border-radius: 15px; background: #5e849c; }
.atlas-map-canvas .leaflet-container { font-family: inherit; }
.atlas-map-canvas .leaflet-control-attribution { color: var(--horizon); background: rgba(250,243,224,.88); font-size: 10px; }
.atlas-map-canvas .leaflet-interactive:focus { outline: 3px solid var(--cream); outline-offset: 1px; }
.atlas-map-loading { display: grid; min-height: 280px; margin: 0; place-items: center; color: var(--cream); font-size: .82rem; font-weight: 750; }
.atlas-map-zoom-controls { display: flex; gap: 5px; padding: 3px; border: 1px solid rgba(250,243,224,.28); border-radius: 11px; background: rgba(8,8,26,.72); box-shadow: 0 5px 18px rgba(8,8,26,.25); }
.atlas-map-zoom-controls button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid var(--whisper); border-radius: 7px; color: var(--cream); background: rgba(250,243,224,.1); font-size: 1rem; font-weight: 850; cursor: pointer; }
.atlas-map-zoom-controls button:hover:not(:disabled) { border-color: var(--gold); background: rgba(244,201,93,.18); }
.atlas-map-zoom-controls button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.atlas-map-zoom-controls button:disabled { opacity: .38; cursor: default; }
.atlas-map-svg { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; user-select: none; }
.atlas-map-svg.is-panning { cursor: grabbing; }
.atlas-map-svg > rect,.atlas-map-svg .map-world-copy > rect { fill: #5e849c; }
.atlas-map-svg .land { fill: #78a95f; stroke: #31513a; stroke-width: .55; transition: fill 150ms ease,stroke 150ms ease,filter 150ms ease; }
.atlas-map-svg .land[role=button] { cursor: pointer; }
.atlas-map-svg .land[role=button]:hover { fill: var(--ember-soft); }
.atlas-map-svg .land[role=button]:focus { outline: none; fill: var(--ember-soft); stroke: var(--cream); stroke-width: 1.4; }
.atlas-map-svg .land.is-highlighted { fill: var(--gold); stroke: var(--ember); stroke-width: .7; filter: drop-shadow(0 0 3px rgba(8,8,26,.7)); }
.atlas-map-selection-marker { display: none; fill: rgba(244,201,93,.32); stroke: var(--ember); stroke-width: 1.5; pointer-events: none; vector-effect: non-scaling-stroke; }
.atlas-map-selection-marker.is-visible { display: block; }
.atlas-map-hit-target { fill: transparent; stroke: none; outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.atlas-map-hit-target:focus { outline: none; }
.country-table tbody tr.country-row.is-map-selected { background: #fff5d7; box-shadow: inset 4px 0 0 var(--ember); }
.country-table tbody tr.country-row.is-map-selected:hover { background: #fff5d7; }
.country-filters { display: grid; grid-template-columns: minmax(240px,1fr) minmax(190px,.45fr) auto; gap: 14px; align-items: end; margin-bottom: 18px; padding: 20px; border: 1px solid rgba(255,255,255,.85); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 12px 35px rgba(35,91,119,.09); }
.atlas-map-column .country-filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr); margin-bottom: 0; }
.atlas-map-column .country-search { grid-column: 1 / -1; }
.atlas-map-column .country-filters.has-visit-tracking #clear-country-filters { grid-column: 1 / -1; }
.country-filters label > span { display: block; margin: 0 0 8px 2px; color: var(--ink); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.country-filters input,.country-filters select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: #fff; }
.country-filters input:focus,.country-filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(38,121,168,.12); }
.country-filters button { height: 48px; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; color: var(--blue-dark); background: #fff; font-size: .76rem; font-weight: 800; cursor: pointer; }
.country-filters button:hover:not(:disabled) { border-color: var(--blue); background: #eef8fb; }
.country-filters button:disabled { color: #a9b5bc; cursor: default; }
.country-result-count { grid-column: 1 / -1; margin: 0 2px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.atlas-visit-counts { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; }
.atlas-visit-counts div { padding: 10px 12px; border: 1px solid rgba(43,31,92,.12); border-radius: 11px; background: rgba(255,255,255,.7); }
.atlas-visit-counts dt { color: var(--muted); font-size: .61rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.atlas-visit-counts dd { margin: 4px 0 0; color: var(--twilight); font-size: .9rem; font-weight: 850; }
.atlas-tracking-status { grid-column: 1 / -1; margin: -7px 2px 0; color: var(--muted); font-size: .72rem; }
.country-table-wrap { position: absolute; inset: 0; margin: 0; overflow: auto; border: 1px solid rgba(255,255,255,.85); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 22px 58px rgba(35,91,119,.14); }
.atlas-explorer-without-map { margin-bottom: 0; }
.atlas-explorer-without-map .atlas-directory-column { position: static; }
.atlas-explorer-without-map .country-table-wrap { position: relative; inset: auto; margin-bottom: 65px; }
.country-table { width: 100%; border-collapse: collapse; }
.country-table th { position: sticky; z-index: 2; top: 0; padding: 0; color: var(--cream); background: var(--horizon); text-align: left; }
.country-table th button { display: flex; width: 100%; min-height: 50px; padding: 0 14px; gap: 7px; align-items: center; border: 0; color: inherit; background: transparent; font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-align: left; text-transform: uppercase; cursor: pointer; }
.country-table th button:hover,.country-table th button:focus-visible { outline: 0; background: var(--twilight); }
.country-table th button span { color: var(--gold); }
.country-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.country-table tbody tr:last-child td { border-bottom: 0; }
.country-table tbody tr:hover { background: #f2f8fa; }
.country-table .country-number { width: 52px; color: #91a1ae; text-align: center; }
.country-table th.country-number { color: var(--mist); }
.country-name { color: var(--ink) !important; font-weight: 800; }
.country-expand { display: flex; width: 100%; padding: 0; gap: 0; align-items: center; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.country-expand:hover { color: var(--blue-dark); }
.country-expand:focus-visible { border-radius: 6px; outline: 3px solid rgba(38,121,168,.3); outline-offset: 3px; }
.country-flag { display: inline-block; width: 1.65em; margin-right: 9px; font-size: 1.18rem; line-height: 1; text-align: center; vertical-align: -.12em; }
.country-region-progress { min-width: 0; margin-left: 8px; color: var(--muted); font-size: .64rem; font-weight: 650; line-height: 1.25; text-align: left; }
.country-regions-heading .country-world-region { margin-left: 0; }
.country-expand-icon { display: grid; width: 28px; height: 28px; margin-left: 9px; flex: 0 0 28px; place-items: center; border: 1px solid rgba(38,121,168,.28); border-radius: 50%; color: var(--blue-dark); background: #e8f5f9; font-size: .66rem; line-height: 1; transition: transform 160ms ease,background 160ms ease; }
.country-expand:hover .country-expand-icon { background: #d7eef5; }
.country-expand[aria-expanded=true] .country-expand-icon { transform: rotate(180deg); }
.iso-code { display: inline-grid; min-width: 42px; min-height: 28px; padding: 0 8px; place-items: center; border-radius: 7px; color: var(--horizon); background: #e8edf2; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .76rem; font-weight: 850; letter-spacing: .08em; }
.region-tag { display: inline-block; padding: 5px 8px; border: 1px solid rgba(43,31,92,.13); border-radius: 999px; color: var(--twilight); background: #f1eef9; font-size: .68rem; font-weight: 750; white-space: nowrap; }
.country-links-heading { padding: 0 20px !important; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.country-links { display: flex; gap: 7px; flex-wrap: wrap; }
.country-row-actions,.country-region-actions { display: inline-flex; gap: 7px; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.visit-toggle { min-width: 74px; min-height: 30px; padding: 0 9px; border: 1px solid rgba(43,31,92,.22); border-radius: 999px; color: var(--muted); background: #fff; font-size: .65rem; font-weight: 850; cursor: pointer; }
.visit-toggle { touch-action: manipulation; }
.visit-toggle:hover:not(:disabled) { border-color: var(--ember); color: var(--horizon); }
.visit-toggle:focus-visible { outline: 3px solid rgba(255,107,71,.28); outline-offset: 2px; }
.visit-toggle.is-visited { border-color: #4eaa79; color: #173f2d; background: #ccebd9; }
.visit-toggle.is-visited.is-fully-explored { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.visit-toggle:disabled { opacity: .58; cursor: wait; }
.country-links a { display: inline-flex; min-height: 30px; padding: 0 9px; align-items: center; border: 1px solid rgba(38,121,168,.2); border-radius: 8px; color: var(--blue-dark); background: #eef8fb; font-size: .68rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.country-links a:hover { border-color: var(--blue); background: #dff2f8; }
.country-links a:focus-visible { outline: 3px solid rgba(38,121,168,.3); outline-offset: 1px; }
.country-regions-row td { padding: 0 !important; background: #eaf4f2; }
.country-regions-panel { padding: 22px 28px 26px; border-top: 1px solid #cee1dd; border-bottom: 1px solid var(--line); }
.country-regions-heading { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.country-regions-panel h2 { min-width: 0; margin: 0; color: var(--horizon); font: 700 1.15rem/1.2 Georgia,serif; }
.country-heading-line { display: flex; min-width: 0; gap: 7px; align-items: center; flex-wrap: wrap; }
.country-heading-iso { display: inline-grid; min-width: 30px; min-height: 28px; padding: 0 7px; place-items: center; border: 1px solid rgba(43,31,92,.14); border-radius: 7px; color: var(--twilight); background: rgba(255,255,255,.68); font: 850 .62rem/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; }
.country-heading-line .region-tag { display: inline-flex; min-height: 28px; align-items: center; }
.country-region-map-link { display: inline-flex; min-height: 28px; padding: 0 9px; align-items: center; border: 1px solid rgba(38,121,168,.2); border-radius: 7px; color: var(--blue-dark); background: #eef8fb; font-size: .68rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.country-region-map-link:hover { border-color: var(--blue); background: #dff2f8; }
.country-region-map-link:focus-visible { outline: 3px solid rgba(38,121,168,.3); outline-offset: 1px; }
.country-heading-title { display: grid; min-width: 0; flex: 1 1 auto; gap: 4px; }
.country-capital { display: block; color: var(--horizon); font-size: .76rem; font-weight: 750; }
.country-capital-label { margin-right: 4px; color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.country-capital a { display: inline-flex; gap: 4px; align-items: center; color: inherit; text-decoration-color: rgba(38,121,168,.38); text-underline-offset: 3px; }
.country-capital a::before { content: "⌖"; flex: 0 0 auto; color: var(--ember); font-size: .78rem; text-decoration: none; }
.country-capital a:hover { color: var(--blue-dark); text-decoration-color: var(--blue); }
.country-capital a:focus-visible { border-radius: 4px; outline: 3px solid rgba(38,121,168,.3); outline-offset: 2px; }
.capital-unavailable { color: var(--muted); font-style: italic; font-weight: 650; }
.country-heading-line > .country-region-count { display: inline-flex; min-height: 28px; margin-left: auto; padding: 0 10px; flex: 0 0 auto; align-items: center; border: 1px solid rgba(43,31,92,.14); border-radius: 999px; color: var(--twilight); background: rgba(255,255,255,.65); font-size: .68rem; font-weight: 850; white-space: nowrap; }
.country-regions-panel ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; margin: 0; padding: 0; list-style: none; }
.country-regions-panel li { display: grid; min-width: 0; min-height: 58px; padding: 8px 7px 8px 12px; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; border: 1px solid rgba(38,121,168,.1); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.48); font-size: .76rem; line-height: 1.3; }
.country-region-copy { display: grid; min-width: 0; gap: 4px; }
.country-region-name { min-width: 0; overflow-wrap: anywhere; }
.country-region-capital { display: inline-flex; width: fit-content; max-width: 100%; gap: 4px; align-items: center; color: var(--muted); font-size: .7rem; font-weight: 700; overflow-wrap: anywhere; text-decoration-color: rgba(38,121,168,.38); text-underline-offset: 3px; }
.country-region-capital::before { content: "⌖"; flex: 0 0 auto; color: var(--ember); font-size: .78rem; text-decoration: none; }
.country-region-capital.capital-unavailable::before { content: none; }
.country-region-capital:hover { color: var(--blue-dark); text-decoration-color: var(--blue); }
.country-region-capital:focus-visible { border-radius: 4px; outline: 3px solid rgba(38,121,168,.3); outline-offset: 2px; }
.country-region-actions { justify-self: end; }
.country-region-wikipedia { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid rgba(38,121,168,.16); border-radius: 7px; color: var(--blue-dark); background: rgba(255,255,255,.78); font-size: 1rem; font-weight: 850; line-height: 1; text-decoration: none; transition: border-color 150ms ease,background 150ms ease,transform 150ms ease; }
.country-region-wikipedia img { display: block; width: 17px; height: 17px; object-fit: contain; }
.country-region-wikipedia:hover { border-color: var(--blue); background: #fff; transform: translateY(-1px); }
.country-region-wikipedia:focus-visible { outline: 3px solid rgba(38,121,168,.3); outline-offset: 1px; }
.map-resource-links { display: inline-flex; gap: 3px; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.map-resource-links a { display: grid; width: 27px; height: 27px; min-width: 0; min-height: 27px; padding: 0; flex: 0 0 27px; place-items: center; border: 1px solid rgba(38,121,168,.16); border-radius: 7px; background: rgba(255,255,255,.78); text-decoration: none; transition: border-color 150ms ease,background 150ms ease,transform 150ms ease; }
.map-resource-links a:hover { border-color: var(--blue); background: #fff; transform: translateY(-1px); }
.map-resource-links a:focus-visible { outline: 3px solid rgba(38,121,168,.3); outline-offset: 1px; }
.map-resource-links img { display: block; width: 14px; height: 14px; object-fit: contain; }
.map-resource-links a:first-child img { width: 17px; height: 17px; }
.map-resource-links a:last-child img { width: 13px; height: 15px; }
.country-regions-panel p { margin: 0; color: var(--muted); font-size: .8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Pilot achievements */
.achievements-page { color: var(--cream); background: radial-gradient(circle at 82% 12%,rgba(244,201,93,.16),transparent 25%),radial-gradient(circle at 12% 68%,rgba(255,107,71,.12),transparent 28%),linear-gradient(145deg,var(--ink),var(--horizon) 50%,var(--twilight)); background-attachment: fixed; }
.achievements-page .site-header { border-bottom: 1px solid var(--whisper); }
.achievements-page .brand,.achievements-page .brand .wordmark { color: var(--cream); }
.achievements-page .navigator-name { color: var(--fog); }
.achievements-page .site-nav { border-color: var(--whisper); background: rgba(8,8,26,.34); }
.achievements-page .site-nav a { color: var(--fog); }
.achievements-page .site-nav a:hover { color: var(--cream); background: var(--whisper); }
.achievements-page .site-nav a[aria-current=page] { color: var(--ink); background: var(--gold); }
.achievements-intro { padding: 65px 0 45px; }
.achievements-intro h1 { max-width: none; color: var(--cream); font-size: clamp(3.2rem,7vw,6.2rem); text-shadow: 0 7px 24px rgba(0,0,0,.32); }
.achievements-intro > p:last-child { max-width: 680px; margin: 24px 0 0; color: var(--fog); font-size: 1.06rem; font-weight: 650; line-height: 1.65; }
.achievement-filters { display: grid; grid-template-columns: minmax(240px,1fr) minmax(170px,.45fr) minmax(160px,.38fr) auto; gap: 14px; align-items: end; margin-bottom: 18px; padding: 20px; border: 1px solid var(--whisper); border-radius: 18px; background: rgba(250,243,224,.07); box-shadow: 0 18px 45px rgba(0,0,0,.18); backdrop-filter: blur(12px); }
.achievement-filters label > span { display: block; margin: 0 0 8px 2px; color: var(--cream); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.achievement-filters input,.achievement-filters select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: #fff; }
.achievement-filters input:focus,.achievement-filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(38,121,168,.12); }
.achievement-filters button { height: 48px; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; color: var(--blue-dark); background: #fff; font-size: .76rem; font-weight: 800; cursor: pointer; }
.achievement-filters button:hover:not(:disabled) { border-color: var(--blue); background: #eef8fb; }
.achievement-filters button:disabled { color: #a9b5bc; cursor: default; }
.achievement-result-count { grid-column: 1 / -1; margin: 0 2px; color: var(--fog); font-size: .76rem; font-weight: 750; }
.achievement-list { margin: 0 0 65px; padding: 0; overflow: hidden; border: 1px solid var(--whisper); border-radius: 22px; background: rgba(26,20,56,.82); box-shadow: 0 25px 65px rgba(0,0,0,.28); backdrop-filter: blur(14px); list-style: none; }
.achievement-row { display: grid; min-height: 92px; padding: 14px 22px; grid-template-columns: 64px minmax(0,1fr) auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--whisper); }
.achievement-row:last-child { border-bottom: 0; }
.achievement-row:hover { background: rgba(250,243,224,.06); }
.achievement-row.is-completed { background: linear-gradient(90deg,rgba(244,201,93,.13),rgba(111,207,151,.08)); }
.achievement-row.is-completed .achievement-icon { border-color: #6fcf97; box-shadow: 0 0 0 3px rgba(111,207,151,.12); }
.achievement-row[hidden] { display: none; }
.achievement-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 2px solid var(--gold); border-radius: 13px; background: transparent; box-shadow: 0 5px 12px rgba(91,68,12,.1); font-size: 1.75rem; line-height: 1; }
.achievement-details { display: flex; min-width: 0; flex-direction: column; }
.achievement-details strong { color: var(--cream); font: 700 1.18rem/1.2 Georgia,serif; }
.achievement-details > span { margin-top: 6px; color: var(--fog); font-size: .82rem; line-height: 1.45; }
.achievement-details .achievement-tracking-status { width: fit-content; margin-top: 8px; padding: 4px 8px; border: 1px solid rgba(127,209,192,.32); border-radius: 999px; color: #bcecdf; background: rgba(127,209,192,.1); font-size: .68rem; font-weight: 800; }
.achievement-row.is-completed .achievement-tracking-status { color: var(--ink); background: #7fd1c0; }
.achievement-meta { display: flex; min-width: 128px; gap: 8px; align-items: flex-end; flex-direction: column; }
.achievement-meta > strong { color: var(--gold); font-size: .78rem; }
.achievement-category { display: inline-block; padding: 6px 10px; border: 1px solid rgba(244,201,93,.3); border-radius: 999px; color: var(--cream); background: rgba(244,201,93,.1); font-size: .68rem; font-weight: 800; }
.achievement-empty { margin: 0 0 65px; padding: 35px; border: 1px solid var(--whisper); border-radius: 18px; color: var(--fog); background: rgba(250,243,224,.07); text-align: center; }
.artifact-list .achievement-row { min-height: 82px; }
.artifact-name-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.artifact-name-line .achievement-category { margin: 0; }
.artifact-filters { grid-template-columns: minmax(220px,1fr) minmax(150px,.38fr) minmax(150px,.38fr) auto; }
.artifact-list .achievement-category { text-transform: capitalize; }
.artifact-list .rarity-legendary { border-color: rgba(244,201,93,.55); color: #f4c95d; }
.artifact-list .rarity-epic { border-color: rgba(176,107,255,.55); color: #c895ff; }
.artifact-list .rarity-rare { border-color: rgba(86,168,255,.55); color: #8bc4ff; }
.artifact-list .rarity-uncommon { border-color: rgba(111,207,151,.55); color: #9ce1b8; }
.artifact-list .rarity-common { border-color: rgba(159,176,195,.55); color: #c5d0dc; }
.achievements-page .tools-footer { border-top-color: var(--whisper); color: var(--mist); }

/* Private pilot logbook */
.pilot-page { color: var(--cream); background: radial-gradient(circle at 15% 18%,rgba(255,107,71,.16),transparent 25%),radial-gradient(circle at 84% 70%,rgba(244,201,93,.13),transparent 28%),linear-gradient(145deg,var(--ink),var(--horizon) 48%,var(--twilight)); background-attachment: fixed; }
.pilot-shell { min-height: 100vh; }
.pilot-page .site-header { border-bottom: 1px solid var(--whisper); }
.pilot-page .brand,.pilot-page .brand .wordmark { color: var(--cream); }
.pilot-page .navigator-name { color: var(--fog); }
.pilot-page .site-nav { border-color: var(--whisper); background: rgba(8,8,26,.34); }
.pilot-page .site-nav a { color: var(--fog); }
.pilot-page .site-nav a:hover { color: var(--cream); background: var(--whisper); }
.pilot-page .site-nav a[aria-current=page] { color: var(--ink); background: var(--gold); }
.pilot-onboarding { display: grid; min-height: calc(100vh - 210px); padding: 70px 0 90px; grid-template-columns: minmax(0,1fr) minmax(420px,.75fr); gap: clamp(45px,8vw,110px); align-items: center; }
.pilot-onboarding-copy h1,.pilot-dashboard-heading h1,.pilot-access-card h1 { max-width: 680px; color: var(--cream); font-size: clamp(3.2rem,7vw,6rem); text-shadow: 0 8px 28px rgba(0,0,0,.3); }
.pilot-onboarding-copy > p:not(.eyebrow) { max-width: 620px; margin: 25px 0 0; color: var(--fog); font-size: 1.02rem; line-height: 1.65; }
.pilot-security-note { padding-left: 17px; border-left: 3px solid var(--gold); }
.pilot-access-card { width: min(100%,620px); margin: clamp(45px,8vh,90px) auto; padding: clamp(26px,5vw,48px); border: 1px solid var(--whisper); border-radius: 26px; background: rgba(250,243,224,.09); box-shadow: 0 24px 70px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.pilot-onboarding .pilot-access-card { margin: 0; }
.pilot-access-card h1 { font-size: clamp(2.7rem,6vw,4.8rem); }
.pilot-access-card > p:not(.eyebrow),.pilot-field-help { color: var(--fog); line-height: 1.55; }
.pilot-access-card input[type=text],.pilot-access-card input[type=password] { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--whisper); border-radius: 13px; outline: 0; color: var(--ink); background: #fff; }
.pilot-access-card input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(244,201,93,.18); }
.pilot-field-help { margin: 8px 2px 0; font-size: .76rem; }
.pilot-profile-help { margin: 12px 0 0; padding: 11px 13px; border: 1px solid rgba(127,209,192,.3); border-radius: 10px; color: var(--fog); background: rgba(127,209,192,.08); font-size: .75rem; line-height: 1.5; }
.pilot-profile-help a { color: var(--cream); font-weight: 850; }
.pilot-profile-help em { color: var(--ember); font-style: italic; font-weight: 500; }
.pilot-primary-button,.pilot-secondary-button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; font: 800 .78rem/1 Inter,ui-sans-serif,system-ui,sans-serif; cursor: pointer; }
.pilot-primary-button { width: 100%; margin-top: 23px; color: var(--ink); background: var(--gold); }
.pilot-primary-button:hover { background: #ffdc7a; }
.pilot-secondary-button { border: 1px solid var(--whisper); color: var(--cream); background: rgba(250,243,224,.08); }
.pilot-admin-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pilot-primary-button:focus-visible,.pilot-secondary-button:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
.pilot-secondary-link { display: inline-block; margin-top: 20px; color: var(--gold); font-weight: 750; }
.pilot-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pilot-alert { padding: 13px 15px; border-radius: 11px; font-size: .82rem; line-height: 1.45; }
.pilot-alert-error { border: 1px solid rgba(255,107,71,.45); color: var(--cream); background: rgba(182,60,49,.2); }
.pilot-dashboard { padding: 62px 0 80px; }
.pilot-dashboard-heading { display: flex; gap: 25px; align-items: flex-end; justify-content: space-between; }
.pilot-dashboard-identity { display: flex; gap: 16px; align-items: center; min-width: 0; }
.pilot-profile-avatar { display: grid; width: 64px; height: 64px; flex: 0 0 64px; place-items: center; border: 1px solid rgba(244,201,93,.4); border-radius: 50%; background: rgba(244,201,93,.12); box-shadow: 0 10px 28px rgba(0,0,0,.22); font-size: 2rem; line-height: 1; }
.pilot-dashboard-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pilot-dashboard-actions form { margin: 0; }
.pilot-unit-preference { position: relative; display: flex; min-height: 42px; margin: 0; padding: 3px; gap: 2px; align-items: center; border: 1px solid var(--whisper); border-radius: 10px; background: rgba(250,243,224,.08); }
.pilot-unit-preference legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pilot-unit-options { display: flex; gap: 2px; }
.pilot-unit-options label { cursor: pointer; }
.pilot-unit-options input { position: absolute; opacity: 0; pointer-events: none; }
.pilot-unit-options span { display: grid; min-width: 43px; min-height: 34px; padding: 0 9px; place-items: center; border-radius: 7px; color: var(--fog); font-size: .68rem; font-weight: 850; }
.pilot-unit-options input:checked + span { color: var(--ink); background: var(--gold); }
.pilot-unit-options input:focus-visible + span { outline: 3px solid var(--cream); outline-offset: 2px; }
.pilot-unit-status { position: absolute; top: calc(100% + 4px); left: 0; width: 100%; min-height: .8em; color: var(--fog); font-size: .62rem; font-weight: 700; text-align: center; white-space: nowrap; }
.pilot-dashboard-heading h1 { max-width: none; font-size: clamp(3rem,6vw,5.4rem); }
.pilot-return-link { margin-top: 34px; padding: 24px; border: 2px solid var(--gold); border-radius: 18px; color: var(--cream); background: rgba(244,201,93,.1); }
.pilot-return-link h2 { margin: 0; font: 700 clamp(1.7rem,4vw,2.5rem)/1 Georgia,serif; }
.pilot-return-link p:not(.eyebrow) { color: var(--fog); }
.pilot-return-link a { display: block; padding: 13px 15px; overflow-wrap: anywhere; border-radius: 10px; color: var(--ink); background: var(--cream); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .76rem; }
.pilot-return-link-row { display: flex; gap: 10px; align-items: stretch; }
.pilot-return-link-row .pilot-return-url { flex: 1; display: flex; align-items: center; }
.pilot-copy-button { flex: 0 0 auto; padding: 0 18px; border: 1px solid var(--gold); border-radius: 10px; color: var(--cream); background: var(--twilight); font: 800 .78rem/1 system-ui,sans-serif; cursor: pointer; }
.pilot-copy-button:hover,.pilot-copy-button:focus-visible { color: var(--ink); background: var(--gold); }
.pilot-copy-status { min-height: 1.2em; margin: 8px 0 0!important; font-size: .78rem; }
.pilot-progress-grid { display: grid; margin: 34px 0 0; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.pilot-progress-grid > div { padding: 23px; border: 1px solid var(--whisper); border-radius: 17px; background: rgba(250,243,224,.07); }
.pilot-progress-grid dt { color: var(--fog); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pilot-progress-grid dd { margin: 10px 0 0; color: var(--gold); font: 700 2.7rem/1 Georgia,serif; }
.pilot-progress-grid .pilot-progress-link { position: relative; transition: border-color .2s ease,background-color .2s ease; }
.pilot-progress-grid .pilot-progress-link:hover,.pilot-progress-grid .pilot-progress-link:focus-within { border-color: rgba(244,201,93,.55); background: rgba(250,243,224,.11); }
.pilot-progress-grid dd a { color: inherit; text-decoration: none; }
.pilot-progress-grid .pilot-progress-logged dd a { display: block; font-size: 1.45rem; }
.pilot-progress-grid .pilot-progress-total dd,.pilot-progress-grid .pilot-progress-total dd a { font-size: 1.65rem; }
.pilot-progress-grid .pilot-progress-total dd a { display: block; }
.pilot-progress-grid .pilot-progress-split dd a { display: flex; gap: 12px; flex-direction: column; font-size: 1.45rem; line-height: 1.05; }
.pilot-progress-source { display: flex; min-width: 0; gap: 5px; align-items: flex-start; flex-direction: column; }
.pilot-progress-source small { color: var(--ember); font: 850 .65rem/1 system-ui,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.pilot-progress-source strong { color: var(--gold); font: inherit; overflow-wrap: anywhere; }
.pilot-progress-dice dd { display: flex; gap: 9px; flex-direction: column; }
.pilot-progress-dice .pilot-progress-source strong { font-size: 1.65rem; }
.pilot-progress-dice .dice-medals { color: var(--cream); font: 750 1.25rem/1.1 system-ui,sans-serif; letter-spacing: .02em; white-space: nowrap; }
.pilot-progress-grid .pilot-progress-link a::after { position: absolute; inset: 0; border-radius: 17px; content: ""; cursor: pointer; }
.pilot-progress-grid .pilot-progress-link a:focus-visible { outline: none; }
.pilot-progress-grid .pilot-progress-link a:focus-visible::after { outline: 3px solid var(--gold); outline-offset: 3px; }
.pilot-alert-success { border-color: rgba(111,207,151,.45); color: #d8f6e6; background: rgba(111,207,151,.12); }
.pilot-alert-notice { border-color: rgba(244,201,93,.35); color: var(--cream); background: rgba(244,201,93,.09); }
.pilot-game-profile { display: grid; margin-top: 18px; padding: 22px; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: start; border: 1px solid rgba(127,209,192,.32); border-radius: 17px; background: rgba(127,209,192,.08); }
.pilot-game-profile h2 { margin: 0; color: var(--cream); font: 700 1.55rem/1.1 Georgia,serif; }
.pilot-game-profile > div > p:last-child { margin: 7px 0 0; color: var(--fog); font-size: .74rem; }
.pilot-game-profile > a { padding: 9px 12px; border: 1px solid rgba(127,209,192,.4); border-radius: 9px; color: var(--cream); font-size: .72rem; font-weight: 800; text-decoration: none; }
.pilot-game-profile > a:hover { color: var(--ink); background: #7fd1c0; }
.pilot-game-profile dl { display: grid; margin: 2px 0 0; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: 8px; }
.pilot-game-profile dl > div { padding: 12px; border-radius: 11px; background: rgba(8,8,26,.24); }
.pilot-game-profile dt { color: var(--mist); font-size: .61rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pilot-game-profile dd { margin: 6px 0 0; color: var(--gold); font-weight: 850; }
.pilot-danger-zone { display: flex; margin-top: 34px; padding: 20px 22px; gap: 20px; align-items: center; justify-content: space-between; border: 1px solid rgba(255,107,71,.34); border-radius: 17px; background: rgba(255,107,71,.07); }
.pilot-danger-zone h2 { margin: 0; color: var(--cream); font: 700 1.35rem/1.1 Georgia,serif; }
.pilot-danger-zone p { margin: 7px 0 0; color: var(--fog); font-size: .76rem; line-height: 1.45; }
.pilot-delete-open,.pilot-delete-confirm { min-height: 44px; padding: 0 15px; border: 1px solid #ff6b47; border-radius: 10px; color: var(--cream); background: rgba(255,107,71,.17); font-size: .74rem; font-weight: 850; cursor: pointer; }
.pilot-delete-open:hover,.pilot-delete-open:focus-visible,.pilot-delete-confirm:hover:not(:disabled),.pilot-delete-confirm:focus-visible { color: #fff; background: #b83228; }
.pilot-delete-dialog { width: min(100% - 32px,520px); padding: 0; border: 1px solid rgba(255,107,71,.5); border-radius: 20px; color: var(--cream); background: var(--horizon); box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.pilot-delete-dialog::backdrop { background: rgba(8,8,26,.76); backdrop-filter: blur(5px); }
.pilot-delete-dialog form { padding: 26px; }
.pilot-delete-dialog h2 { margin: 0; color: var(--cream); font: 700 2rem/1.05 Georgia,serif; }
.pilot-delete-dialog p { color: var(--fog); font-size: .86rem; line-height: 1.55; }
.pilot-delete-dialog label { display: block; margin-top: 20px; color: var(--cream); font-size: .76rem; }
.pilot-delete-dialog input { width: 100%; height: 48px; margin-top: 8px; padding: 0 13px; border: 1px solid rgba(255,107,71,.55); border-radius: 10px; color: var(--ink); background: #fff; font-size: 1rem; font-weight: 850; letter-spacing: .08em; }
.pilot-delete-dialog-actions { display: flex; margin-top: 20px; gap: 10px; justify-content: flex-end; }
.pilot-delete-cancel { min-height: 44px; padding: 0 15px; border: 1px solid var(--whisper); border-radius: 10px; color: var(--cream); background: transparent; font-weight: 800; cursor: pointer; }
.pilot-delete-confirm:disabled { cursor: not-allowed; opacity: .42; }
.pilot-page .tools-footer { border-top-color: var(--whisper); color: var(--mist); }

/* Mizak-only pilot administration */
.admin-shell { min-height: 100vh; }
.admin-back-link { padding: 10px 14px; border: 1px solid var(--whisper); border-radius: 999px; color: var(--cream); font-size: .72rem; font-weight: 850; text-decoration: none; }
.admin-back-link:hover { border-color: var(--gold); color: var(--gold); }
.admin-back-link:focus-visible { outline: 3px solid rgba(244,201,93,.3); outline-offset: 2px; }
.admin-intro { padding: 62px 0 38px; }
.admin-intro h1 { max-width: none; color: var(--cream); font-size: clamp(3.2rem,7vw,6rem); text-shadow: 0 8px 28px rgba(0,0,0,.3); }
.admin-intro > p:last-child { max-width: 720px; margin: 22px 0 0; color: var(--fog); font-size: .95rem; line-height: 1.65; }
.admin-alert { margin: 0 0 20px; padding: 15px 18px; border: 1px solid var(--whisper); border-radius: 13px; color: var(--cream); background: rgba(250,243,224,.07); }
.admin-success { border-color: rgba(111,207,151,.45); background: rgba(111,207,151,.1); }
.admin-geo-status { margin-bottom: 38px; padding: 22px; border: 1px solid var(--whisper); border-radius: 18px; background: rgba(26,20,56,.8); box-shadow: 0 22px 55px rgba(0,0,0,.24); }
.admin-geo-status.is-healthy { border-color: rgba(111,207,151,.4); }
.admin-geo-status.has-warning { border-color: rgba(255,122,69,.52); }
.admin-geo-heading-status { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; }
.admin-geo-heading-status > strong { color: var(--gold); font-size: .76rem; }
.admin-geo-sync { display: inline-flex; padding: 6px 9px; border: 1px solid var(--whisper); border-radius: 999px; color: var(--fog); background: rgba(8,8,26,.28); font-size: .62rem; font-weight: 900; letter-spacing: .03em; }
.admin-geo-sync.in-sync { border-color: rgba(111,207,151,.48); color: #b9efd0; background: rgba(111,207,151,.1); }
.admin-geo-sync.out-of-sync { border-color: rgba(255,122,69,.58); color: #ffc0a7; background: rgba(255,122,69,.12); }
.admin-geo-refresh-button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(244,201,93,.48); border-radius: 9px; color: var(--ink); background: var(--gold); font-size: .65rem; font-weight: 900; cursor: pointer; }
.admin-geo-refresh-button:hover { background: #ffe080; }
.admin-geo-refresh-button:focus-visible { outline: 3px solid rgba(244,201,93,.3); outline-offset: 2px; }
.admin-geo-stats { display: grid; margin-top: 20px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.admin-geo-stats > div { padding: 14px; border: 1px solid var(--whisper); border-radius: 12px; background: rgba(8,8,26,.28); }
.admin-geo-stats span { display: block; color: var(--mist); font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.admin-geo-stats strong { display: block; margin-top: 5px; color: var(--cream); font: 700 1.55rem/1 Georgia,serif; }
.admin-geo-refresh { margin: 13px 0 0; color: var(--fog); font-size: .7rem; }
.admin-geo-message { display: flex; margin: 16px 0 0; padding: 12px 14px; align-items: flex-start; gap: 10px; border-radius: 11px; color: var(--cream); background: rgba(111,207,151,.1); font-size: .76rem; line-height: 1.5; }
.has-warning .admin-geo-message { background: rgba(255,122,69,.11); }
.admin-geo-message > span { display: grid; width: 21px; height: 21px; flex: 0 0 21px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--mint); font-weight: 950; }
.has-warning .admin-geo-message > span { background: var(--ember-soft); }
.admin-geo-message p { margin: 3px 0 0; color: var(--fog); }
.admin-geo-differences { display: grid; margin-top: 10px; gap: 6px; }
.admin-geo-differences details { padding: 8px 10px; border: 1px solid rgba(255,122,69,.25); border-radius: 8px; background: rgba(8,8,26,.22); }
.admin-geo-differences summary { color: var(--cream); font-weight: 850; cursor: pointer; }
.admin-geo-differences details p { margin-top: 7px; overflow-wrap: anywhere; }
.admin-geo-differences details p strong { color: var(--ember-soft); }
.admin-orphan-audit { margin-bottom: 38px; padding: 22px; border: 1px solid var(--whisper); border-radius: 18px; background: rgba(26,20,56,.8); box-shadow: 0 22px 55px rgba(0,0,0,.24); }
.admin-orphan-audit.is-healthy { border-color: rgba(111,207,151,.4); }
.admin-orphan-audit.has-warning { border-color: rgba(255,122,69,.52); }
.admin-orphan-table-wrap { margin-top: 15px; overflow-x: auto; border: 1px solid var(--whisper); border-radius: 12px; }
.admin-orphan-table { width: 100%; border-collapse: collapse; }
.admin-orphan-table th,.admin-orphan-table td { padding: 12px 14px; border-bottom: 1px solid var(--whisper); text-align: left; }
.admin-orphan-table tr:last-child td { border-bottom: 0; }
.admin-orphan-table th { color: var(--mist); background: rgba(8,8,26,.34); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; }
.admin-orphan-table td { color: var(--fog); font-size: .73rem; white-space: nowrap; }
.admin-orphan-table td:first-child strong { color: var(--cream); }
.admin-orphan-table small { color: var(--ember-soft); font-weight: 850; }
.admin-orphan-table td:last-child { text-align: right; }
.admin-orphan-table button { min-height: 36px; padding: 0 12px; border: 1px solid rgba(111,207,151,.5); border-radius: 9px; color: var(--ink); background: var(--mint); font-size: .67rem; font-weight: 900; cursor: pointer; white-space: nowrap; }
.admin-orphan-table button:hover { background: #a4ead3; }
.admin-orphan-table button:focus-visible { outline: 3px solid rgba(111,207,151,.3); outline-offset: 2px; }
.admin-error { border-color: rgba(255,107,71,.45); background: rgba(255,107,71,.1); }
.admin-recovery-result { margin-bottom: 28px; padding: 22px; border: 1px solid rgba(244,201,93,.5); border-radius: 18px; background: linear-gradient(135deg,rgba(244,201,93,.13),rgba(111,207,151,.08)); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.admin-recovery-result h2 { margin: 0; color: var(--cream); font: 700 1.8rem/1.1 Georgia,serif; }
.admin-recovery-result > div:first-child > p:last-child { margin: 8px 0 0; color: var(--fog); font-size: .8rem; }
.admin-recovery-link-row { display: flex; margin-top: 18px; gap: 9px; }
.admin-recovery-url { display: flex; min-width: 0; min-height: 46px; padding: 0 13px; flex: 1; align-items: center; overflow: hidden; border: 1px solid var(--whisper); border-radius: 10px; color: var(--cream); background: rgba(8,8,26,.36); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .75rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.admin-copy-button,.admin-pilot-table button { min-height: 42px; padding: 0 14px; border: 1px solid rgba(244,201,93,.45); border-radius: 10px; color: var(--ink); background: var(--gold); font-size: .7rem; font-weight: 900; cursor: pointer; white-space: nowrap; }
.admin-copy-button:hover,.admin-pilot-table button:hover { background: #ffe080; }
.admin-copy-button:focus-visible,.admin-pilot-table button:focus-visible { outline: 3px solid rgba(244,201,93,.3); outline-offset: 2px; }
.admin-copy-status { min-height: 1.2em; margin: 10px 0 0; color: var(--fog); font-size: .72rem; }
.admin-directory { margin-bottom: 65px; }
.admin-directory-heading { display: flex; margin-bottom: 15px; align-items: end; justify-content: space-between; }
.admin-directory-heading h2 { margin: 0; color: var(--cream); font: 700 2.25rem/1 Georgia,serif; }
.admin-directory-heading > strong { color: var(--gold); font-size: .76rem; }
.admin-pilot-table-wrap { overflow-x: auto; border: 1px solid var(--whisper); border-radius: 18px; background: rgba(26,20,56,.8); box-shadow: 0 22px 55px rgba(0,0,0,.24); }
.admin-pilot-table { width: 100%; border-collapse: collapse; }
.admin-pilot-table th,.admin-pilot-table td { padding: 15px 17px; border-bottom: 1px solid var(--whisper); text-align: left; }
.admin-pilot-table tr:last-child td { border-bottom: 0; }
.admin-pilot-table thead { color: var(--mist); background: rgba(8,8,26,.34); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.admin-pilot-table td { color: var(--fog); font-size: .76rem; white-space: nowrap; }
.admin-pilot-table td:first-child { min-width: 180px; }
.admin-pilot-table td:first-child strong { color: var(--cream); font: 700 1rem Georgia,serif; }
.admin-pilot-id { display: inline-block; min-width: 38px; margin-right: 7px; color: var(--ember-soft); font-size: .66rem; font-weight: 850; }
.admin-pilot-table td:last-child { text-align: right; }
.admin-pilot-table tr.is-generated { background: rgba(244,201,93,.1); }

@keyframes drift { 50% { transform: translateY(8px) rotate(1deg); } }
@keyframes home-balloon-float { 0%,100% { transform: translateY(5px) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes home-cloud-pass { from { translate: 0 0; } to { translate: -650px 0; } }
@keyframes home-gust-pass { 0% { translate: 0 0; opacity: 0; } 15%,75% { opacity: 1; } 100% { translate: -650px 0; opacity: 0; } }
@media (max-width:900px) {
    .calculator-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 30px; }
    .intro-panel { text-align: center; } h1,.intro-copy { margin-right: auto; margin-left: auto; }
    .sky-art { height: 130px; margin-top: 14px; } .cloud-one { left: 15%; } .cloud-two { right: 15%; }
    .home-hero { padding: 55px 0; }
    .home-copy { display: block; text-align: left; }
    .home-flight-scene { margin-top: 30px; }
    .destination-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .balloon-grid { grid-template-columns: 1fr; }
    .pilot-onboarding { min-height: 0; grid-template-columns: 1fr; gap: 35px; }
    .pilot-progress-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:1100px) {
    .atlas-explorer-layout { margin-bottom: 0; grid-template-columns: 1fr; }
    .atlas-map-column { position: relative; top: auto; }
    .atlas-map-panel { margin-bottom: 18px; }
    .atlas-map-column .country-filters { margin-bottom: 24px; }
    .atlas-directory-column { position: static; }
    .country-table-wrap { position: relative; inset: auto; margin-bottom: 65px; }
    .atlas-map-width-toggle { display: none; }
    .stands-layout { grid-template-columns: 1fr; }
    .stands-list { max-height: none; }
}
@media (min-width:1101px) {
    .atlas-explorer-layout.is-map-expanded .atlas-map-column { grid-column: 1 / -1; }
    .atlas-explorer-layout.is-map-expanded .atlas-map-panel { position: relative; left: 50%; width: calc(100vw - 40px); transform: translateX(-50%); }
    .atlas-explorer-layout.is-map-expanded .atlas-map-canvas { height: clamp(600px,72vh,820px); }
    .atlas-explorer-layout.is-map-expanded .atlas-map-column .country-filters { max-width: 580px; }
    .atlas-explorer-layout.is-map-expanded .atlas-directory-column { grid-column: 1 / -1; min-height: min(720px,70vh); }
}
@media (max-width:760px) {
    .site-header.has-navigation { padding: 15px 0; flex-direction: column; gap: 14px; align-items: flex-start; }
    .site-nav { display: grid; width: 100%; padding: 5px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; overflow: hidden; border-radius: 18px; }
    .site-nav a { min-width: 0; padding: 9px 6px; text-align: center; }
}
@media (max-width:580px) {
    .stands-filters { grid-template-columns: 1fr; }
    .stands-filters p { grid-column: 1; }
    .site-shell { width: min(100% - 24px,520px); } .site-header { min-height: 76px; } .header-label { display: none; }
    .site-nav a { padding: 8px 10px; font-size: .67rem; }
    .calculator-layout { padding: 25px 0 50px; } h1 { font-size: clamp(3.1rem,16vw,4.6rem); }
    .intro-copy { margin-top: 20px; font-size: .98rem; } .sky-art { height: 160px; }
    .calculator-card { padding: 25px 20px; border-radius: 23px; } .distance-row,.field-grid { grid-template-columns: 1fr; }
    .unit-toggle label,.unit-toggle span { width: 100%; } .results { gap: 16px; padding: 22px 18px; }
    .home-shell { width: min(100% - 28px,520px); }
    .home-header { min-height: 0; padding: 18px 0; flex-direction: column; gap: 13px; align-items: flex-start; }
    .home-kicker { display: block; font-size: .66rem; }
    .home-balloon { width: 31px; }
    .home-brand .wordmark { font-size: 31px; }
    .home-hero { padding: 42px 0; }
    .home-copy h1 { font-size: clamp(2.7rem,12vw,3.8rem); }
    .home-copy > p:last-child { margin-top: 22px; font-size: .98rem; }
    .live-totals { margin-top: 22px; padding: 15px; }
    .home-flight-scene { height: 128px; margin-top: 24px; }
    .home-scene-balloon { top: 17px; width: 52px; }
    .live-totals-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .live-totals-grid { gap: 8px; }
    .live-totals-grid dd { font-size: clamp(1rem,5vw,1.3rem); }
    .destination-grid { margin-top: 28px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .destination-card { min-height: 94px; padding: 14px 36px 13px 14px; border-radius: 15px; }
    .destination-number { display: none; }
    .destination-label { margin-bottom: 5px; font-size: .56rem; line-height: 1.25; }
    .destination-content strong { padding: 0; font-size: clamp(1.05rem,5vw,1.35rem); line-height: 1.1; }
    .destination-content > span:last-child { display: none; }
    .destination-arrow { right: 9px; bottom: 9px; width: 25px; height: 25px; font-size: .8rem; }
    .hangar-intro { padding: 48px 0 38px; text-align: center; }
    .hangar-intro h1 { font-size: clamp(3rem,15vw,4.5rem); }
    .hangar-intro > p:last-of-type { font-size: .98rem; }
    .balloon-card-heading { padding: 23px 22px 18px; }
    .balloon-owned-toggle,.balloon-tracking-signin { margin-right: 22px; margin-left: 22px; }
    .balloon-custom-name { margin-right: 22px; margin-left: 22px; }
    .balloon-save-status { margin-right: 22px; margin-left: 22px; }
    .upgrade-panel { margin-right: 22px; margin-left: 22px; }
    .upgrade-controls { padding: 0 15px 15px; }
    .daily-fixed-note { margin: 0 22px 22px; }
    .spec-list { padding: 0 22px 22px; }
    .balloon-price { padding: 18px 22px; }
    .countries-intro { padding: 28px 0 22px; text-align: center; }
    .countries-intro h1 { font-size: clamp(2.65rem,12vw,3.7rem); }
    .countries-intro > p:last-child { margin-top: 11px; font-size: .9rem; line-height: 1.45; }
    .atlas-map-panel { padding: 15px; border-radius: 16px; }
    .atlas-map-heading { gap: 12px; align-items: start; }
    .atlas-map-heading p:last-child { overflow-wrap: anywhere; }
    .atlas-map-actions { display: contents; }
    .atlas-map-actions > button { width: 100%; min-width: 0; grid-column: 1 / -1; grid-row: 3; }
    .atlas-map-zoom-controls { grid-column: 2; grid-row: 2; align-self: start; }
    .atlas-map-zoom-controls button { width: 42px; height: 42px; font-size: 1.2rem; }
    .atlas-map-canvas { height: 330px; border-radius: 11px; }
    .country-filters,.atlas-map-column .country-filters { grid-template-columns: 1fr; padding: 16px; }
    .atlas-visit-counts { grid-template-columns: 1fr; }
    .atlas-map-column .country-search,.atlas-map-column .country-result-count { grid-column: 1; }
    .country-result-count { grid-column: 1; }
    .country-table-wrap { overflow: hidden; border-radius: 16px; }
    .country-table { display: block; min-width: 0; }
    .country-table thead,.country-table tbody { display: block; }
    .country-table thead tr { display: grid; grid-template-columns: minmax(0,1fr) auto; }
    .country-table th { position: static; display: block; }
    .country-table th.country-number,.country-table th.country-links-heading { display: none; }
    .country-table th button { min-height: 48px; padding: 0 15px; }
    .country-table tbody tr.country-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; padding: 15px; border-bottom: 1px solid var(--line); }
    .country-table tbody tr.country-regions-row { display: block; padding: 0 15px 15px; border-bottom: 1px solid var(--line); }
    .country-table tbody tr[hidden] { display: none; }
    .country-table tbody tr:last-child { border-bottom: 0; }
    .country-table td { display: block; padding: 0; border: 0; }
    .country-table td.country-number { display: none; }
    .country-table .country-row td:nth-child(3) { align-self: center; }
    .country-table .country-row td:last-child { grid-column: 1 / -1; padding-top: 4px; }
    .country-expand-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: .84rem; }
    .country-links { gap: 6px; flex-wrap: nowrap; }
    .country-links a { min-width: 0; flex: 1; justify-content: center; padding: 0 6px; }
    .country-links.map-resource-links { justify-content: flex-start; }
    .country-links.map-resource-links a { flex: 0 0 30px; width: 30px; height: 30px; padding: 0; }
    .country-regions-panel { padding: 18px; border: 1px solid #cee1dd; border-radius: 12px; }
    .country-regions-heading { align-items: center; gap: 8px; }
    .country-regions-panel ul { grid-template-columns: 1fr; gap: 7px; }
    .achievements-intro { padding: 48px 0 36px; text-align: center; }
    .achievements-intro h1 { font-size: clamp(3rem,14vw,4.3rem); }
    .achievements-intro > p:last-child { font-size: .96rem; }
    .achievement-filters { grid-template-columns: 1fr; padding: 16px; }
    .achievement-result-count { grid-column: 1; }
    .achievement-list { border-radius: 16px; }
    .achievement-row { min-height: 0; padding: 15px; grid-template-columns: 54px minmax(0,1fr); gap: 12px; }
    .achievement-icon { width: 50px; height: 50px; border-radius: 11px; font-size: 1.5rem; }
    .achievement-details strong { font-size: 1.05rem; }
    .achievement-meta { grid-column: 2; min-width: 0; align-items: center; flex-direction: row; flex-wrap: wrap; }
    .pilot-onboarding { padding: 48px 0 65px; text-align: center; }
    .pilot-onboarding-copy h1 { font-size: clamp(3rem,14vw,4.5rem); }
    .pilot-security-note { padding: 14px; border: 1px solid rgba(244,201,93,.35); border-radius: 12px; }
    .pilot-access-card { margin: 45px auto; padding: 24px 20px; border-radius: 20px; text-align: left; }
    .pilot-onboarding .pilot-access-card { margin: 0; }
    .pilot-dashboard { padding: 45px 0 65px; }
    .pilot-dashboard-heading { align-items: flex-start; flex-direction: column; }
    .pilot-dashboard-identity { align-items: flex-start; }
    .pilot-profile-avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 1.65rem; }
    .pilot-dashboard-actions { width: 100%; justify-content: flex-start; }
    .pilot-dashboard-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .pilot-dashboard-actions .pilot-unit-preference { width: fit-content; margin-bottom: 14px; grid-column: 1 / -1; justify-self: start; }
    .pilot-dashboard-actions form,.pilot-dashboard-actions .pilot-secondary-button { width: 100%; min-width: 0; }
    .pilot-dashboard-actions .pilot-secondary-button { padding-right: 8px; padding-left: 8px; font-size: .68rem; }
    .pilot-dashboard-heading h1 { font-size: clamp(2.8rem,13vw,4.2rem); }
    .pilot-progress-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pilot-progress-grid > div { padding: 18px; }
    .pilot-progress-grid dd { font-size: 2.2rem; }
    .pilot-game-profile { grid-template-columns: 1fr; }
    .pilot-game-profile > a { width: fit-content; }
    .pilot-game-profile dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pilot-danger-zone { align-items: flex-start; flex-direction: column; }
    .pilot-delete-open { width: 100%; }
    .pilot-delete-dialog-actions { flex-direction: column-reverse; }
    .pilot-delete-dialog-actions button { width: 100%; }
    .pilot-return-link-row { flex-direction: column; }
    .pilot-copy-button { min-height: 44px; }
    .admin-intro { padding: 45px 0 32px; }
    .admin-intro h1 { font-size: clamp(2.8rem,14vw,4.1rem); }
    .admin-recovery-link-row { flex-direction: column; }
    .admin-geo-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-geo-heading-status { align-items: flex-start; }
    .admin-geo-refresh-button { min-height: 40px; }
    .admin-orphan-table-wrap { overflow: visible; border: 0; }
    .admin-orphan-table,.admin-orphan-table tbody { display: block; }
    .admin-orphan-table thead { display: none; }
    .admin-orphan-table tr { display: grid; margin-top: 9px; padding: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; border: 1px solid var(--whisper); border-radius: 12px; background: rgba(8,8,26,.24); }
    .admin-orphan-table td { display: block; padding: 0; border: 0; white-space: normal; }
    .admin-orphan-table td:first-child,.admin-orphan-table td:nth-child(3),.admin-orphan-table td:last-child { grid-column: 1 / -1; }
    .admin-orphan-table td:nth-child(2)::before { display: block; color: var(--mist); font-size: .56rem; content: "Country"; text-transform: uppercase; }
    .admin-orphan-table td:nth-child(3)::before { display: block; color: var(--mist); font-size: .56rem; content: "Saved region"; text-transform: uppercase; }
    .admin-orphan-table td:nth-child(4)::before { display: block; color: var(--mist); font-size: .56rem; content: "Possible match"; text-transform: uppercase; }
    .admin-orphan-table td:nth-child(5)::before { display: block; color: var(--mist); font-size: .56rem; content: "Recorded"; text-transform: uppercase; }
    .admin-orphan-table td:last-child { text-align: left; }
    .admin-orphan-table button { width: 100%; min-height: 42px; }
    .admin-copy-button { min-height: 46px; }
    .admin-directory-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .admin-pilot-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .admin-pilot-table,.admin-pilot-table tbody { display: block; }
    .admin-pilot-table thead { display: none; }
    .admin-pilot-table tr { display: grid; margin-bottom: 9px; padding: 15px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; border: 1px solid var(--whisper); border-radius: 14px; background: rgba(26,20,56,.8); }
    .admin-pilot-table td { display: block; padding: 0; border: 0; white-space: normal; }
    .admin-pilot-table td:first-child,.admin-pilot-table td:last-child { grid-column: 1 / -1; }
    .admin-pilot-table td:nth-child(2)::before { display: block; color: var(--mist); font-size: .58rem; content: "Created"; text-transform: uppercase; }
    .admin-pilot-table td:nth-child(3)::before { display: block; color: var(--mist); font-size: .58rem; content: "Active links"; text-transform: uppercase; }
    .admin-pilot-table td:nth-child(4) { grid-column: 1 / -1; }
    .admin-pilot-table td:nth-child(4)::before { display: block; color: var(--mist); font-size: .58rem; content: "Last used"; text-transform: uppercase; }
    .admin-pilot-table td:last-child { margin-top: 5px; text-align: left; }
    .admin-pilot-table button { width: 100%; }
}
@media (max-width:360px) {
    .site-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) { .floating-balloon,.hangar-balloon,.home-scene-balloon,.home-scene-cloud,.home-wind-gust { animation: none; } }

/* Dice Run guide */
.dice-runs-page { color: var(--cream); background: radial-gradient(circle at 82% 8%,rgba(244,201,93,.19),transparent 25%),radial-gradient(circle at 8% 42%,rgba(255,107,71,.14),transparent 27%),linear-gradient(145deg,var(--ink),var(--horizon) 48%,var(--twilight)); background-attachment: fixed; }
.dice-runs-page .site-header { border-bottom: 1px solid var(--whisper); }
.dice-runs-page .brand,.dice-runs-page .brand .wordmark { color: var(--cream); }
.dice-runs-page .navigator-name { color: var(--fog); }
.dice-runs-page .site-nav { border-color: var(--whisper); background: rgba(8,8,26,.34); }
.dice-runs-page .site-nav a { color: var(--fog); }
.dice-runs-page .site-nav a:hover { color: var(--cream); background: var(--whisper); }
.dice-runs-page .site-nav a[aria-current=page] { color: var(--ink); background: var(--gold); }
.dice-hero { display: grid; min-height: 430px; padding: 72px 0 64px; grid-template-columns: minmax(0,1fr) auto; gap: 50px; align-items: center; }
.dice-title-lockup { display: flex; gap: 18px; align-items: center; }
.dice-title-lockup > span { font-size: clamp(3rem,6vw,5.5rem); filter: drop-shadow(0 8px 18px rgba(0,0,0,.28)); }
.dice-hero h1 { max-width: none; color: var(--cream); font-size: clamp(4.2rem,9vw,8rem); text-shadow: 0 9px 30px rgba(0,0,0,.35); }
.dice-hero p:last-child { max-width: 700px; margin: 26px 0 0; color: var(--fog); font-size: 1.08rem; font-weight: 650; line-height: 1.7; }
.dice-hero-mark { display: grid; grid-template-columns: clamp(120px,15vw,190px); transform: rotate(-7deg); }
.dice-hero-mark span { display: grid; aspect-ratio: 1; place-items: center; border: 2px solid rgba(244,201,93,.7); border-radius: 25%; color: var(--ink); background: var(--cream); box-shadow: 0 18px 35px rgba(0,0,0,.3); font-size: clamp(3.2rem,6vw,5.2rem); line-height: 1; }
.dice-section { margin-bottom: 72px; }
.dice-section-heading { margin-bottom: 25px; }
.dice-section-heading h2 { margin: 0; color: var(--cream); font: 700 clamp(2.15rem,4vw,3.5rem)/1 Georgia,serif; letter-spacing: -.035em; }
.dice-section-heading > p:last-child:not(.eyebrow) { max-width: 720px; margin: 15px 0 0; color: var(--fog); line-height: 1.6; }
.run-type-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.run-type-card { position: relative; min-height: 320px; padding: 26px; overflow: hidden; border: 1px solid var(--whisper); border-radius: 22px; background: linear-gradient(150deg,rgba(250,243,224,.11),rgba(250,243,224,.045)); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.run-type-card::after { position: absolute; right: -28px; bottom: -45px; width: 130px; height: 130px; border: 24px solid rgba(244,201,93,.06); border-radius: 50%; content: ""; }
.run-type-icon { display: grid; width: 55px; height: 55px; place-items: center; border: 1px solid rgba(244,201,93,.4); border-radius: 15px; background: rgba(244,201,93,.1); font-size: 1.7rem; }
.run-type-card h3 { margin: 21px 0 13px; color: var(--cream); font: 700 1.5rem/1.1 Georgia,serif; }
.run-type-card > p:last-child { position: relative; z-index: 1; margin: 18px 0 0; color: var(--fog); font-size: .86rem; line-height: 1.6; }
.run-facts { display: flex; gap: 7px; flex-wrap: wrap; margin: 0; }
.run-facts span,.run-facts strong { padding: 6px 9px; border: 1px solid rgba(244,201,93,.24); border-radius: 999px; color: var(--cream); background: rgba(244,201,93,.08); font-size: .68rem; }
.dice-run-catalog,.dice-achievement-grid { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; list-style: none; }
.dice-run-catalog li,.dice-achievement-grid li { display: grid; min-height: 95px; padding: 16px 18px; grid-template-columns: 46px minmax(0,1fr) auto; gap: 13px; align-items: center; border: 1px solid var(--whisper); border-radius: 16px; background: rgba(250,243,224,.065); }
.dice-run-catalog li { min-height: 76px; }
.dice-run-catalog-icon,.dice-achievement-grid li > span { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(244,201,93,.4); border-radius: 12px; font-size: 1.35rem; }
.dice-run-catalog strong,.dice-achievement-grid strong { color: var(--cream); font-family: Georgia,serif; }
.dice-run-catalog p,.dice-achievement-grid p { margin: 5px 0 0; color: var(--fog); font-size: .75rem; line-height: 1.4; }
.dice-run-catalog b,.dice-achievement-grid b { color: var(--gold); font-size: .72rem; white-space: nowrap; }
.dice-guide-steps { display: grid; margin: 0; padding: 0; gap: 10px; list-style: none; counter-reset: dice-guide; }
.dice-guide-steps li { display: grid; padding: 20px 22px; grid-template-columns: 48px minmax(0,1fr); gap: 16px; align-items: start; border: 1px solid var(--whisper); border-radius: 16px; background: rgba(250,243,224,.06); }
.dice-guide-number { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(244,201,93,.45); border-radius: 12px; color: var(--gold); background: rgba(244,201,93,.09); font-size: .72rem; font-weight: 900; }
.dice-guide-steps h3 { margin: 1px 0 7px; color: var(--cream); font: 700 1.2rem/1.2 Georgia,serif; }
.dice-guide-steps p,.dice-guide-notes p { margin: 0; color: var(--fog); font-size: .84rem; line-height: 1.6; }
.dice-guide-notes { display: grid; margin-top: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.dice-guide-notes article { padding: 20px 22px; border: 1px solid rgba(244,201,93,.27); border-radius: 16px; background: rgba(244,201,93,.07); }
.dice-guide-notes strong { display: block; margin-bottom: 8px; color: var(--gold); font-family: Georgia,serif; }
.dice-did-you-know { display: grid; margin-top: 12px; padding: 18px 22px; grid-template-columns: auto minmax(0,1fr) auto; gap: 15px; align-items: center; border: 1px solid rgba(255,107,71,.48); border-radius: 16px; background: linear-gradient(100deg,rgba(255,107,71,.16),rgba(244,201,93,.09)); box-shadow: 0 14px 30px rgba(0,0,0,.13); }
.dice-did-you-know > span:first-child { font-size: 1.65rem; }
.dice-did-you-know strong { display: block; color: var(--ember-soft); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dice-did-you-know p { margin: 4px 0 0; color: var(--cream); font-size: .88rem; line-height: 1.5; }
.dice-tip-reward { padding: 8px 11px; border: 1px solid rgba(244,201,93,.48); border-radius: 999px; color: var(--gold); background: rgba(8,8,26,.25); font-size: .8rem; font-weight: 900; white-space: nowrap; }
.dice-design-grid { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; list-style: none; }
.dice-design-card { --die-color: #f4efe1; --pip-color: #24202a; display: flex; min-width: 0; padding: 18px 14px 16px; align-items: center; flex-direction: column; border: 1px solid var(--whisper); border-radius: 17px; background: linear-gradient(150deg,rgba(250,243,224,.11),rgba(250,243,224,.045)); box-shadow: 0 16px 35px rgba(0,0,0,.17); text-align: center; }
.dice-design-preview { display: flex; margin-bottom: 14px; gap: 7px; }
.design-die { position: relative; display: block; width: 54px; height: 54px; flex: 0 0 54px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: var(--die-color); box-shadow: inset 0 -4px 7px rgba(0,0,0,.16),0 7px 14px rgba(0,0,0,.2); }
.design-die::before { position: absolute; top: 8px; left: 8px; width: 7px; height: 7px; border-radius: 50%; color: var(--pip-color); background: currentColor; content: ""; }
.design-die.face-six::before { box-shadow: 0 15px,0 30px,30px 0,30px 15px,30px 30px; }
.design-die.face-three::before { box-shadow: 15px 15px,30px 30px; }
.dice-design-card strong { color: var(--cream); font: 700 1rem/1.15 Georgia,serif; }
.dice-design-price { margin-top: 9px; padding: 5px 9px; border: 1px solid rgba(244,201,93,.38); border-radius: 999px; color: var(--gold); background: rgba(244,201,93,.08); font-size: .65rem; font-weight: 900; white-space: nowrap; }
.dice-design-price.is-earned { color: #bcecdf; border-color: rgba(127,209,192,.45); background: rgba(127,209,192,.11); }
.dice-pip-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.design-casino { --die-color: #c8493f; --pip-color: #fff5e7; }
.design-midnight { --die-color: #192643; --pip-color: #e7c85c; }
.design-emerald { --die-color: #238554; --pip-color: #f4f3e9; }
.design-skyfarer { --die-color: #67c7e0; --pip-color: #172c48; }
.design-obsidian { --die-color: #10131c; --pip-color: #f3f1eb; }
.design-gilded { --die-color: #ddb54c; --pip-color: #352b27; }
.design-bonecast { --die-color: #eee7d4; --pip-color: #292526; }
.design-nine-lives { --die-color: #34294d; --pip-color: #d7b96e; }
.design-golden-pips { --die-color: #181a2a; --pip-color: #e7c63d; }
.design-bonecast .design-die::before,.design-nine-lives .design-die::before { display: none; }
.design-bonecast .design-die svg,.design-nine-lives .design-die svg { position: absolute; width: 14px; height: 14px; overflow: visible; fill: var(--pip-color); }
.design-bonecast .design-die .pip-cutout,.design-nine-lives .design-die .pip-cutout { fill: var(--die-color); }
.design-bonecast .face-six svg:nth-child(1),.design-nine-lives .face-six svg:nth-child(1) { top: 4px; left: 5px; }
.design-bonecast .face-six svg:nth-child(2),.design-nine-lives .face-six svg:nth-child(2) { top: 20px; left: 5px; }
.design-bonecast .face-six svg:nth-child(3),.design-nine-lives .face-six svg:nth-child(3) { top: 36px; left: 5px; }
.design-bonecast .face-six svg:nth-child(4),.design-nine-lives .face-six svg:nth-child(4) { top: 4px; right: 5px; }
.design-bonecast .face-six svg:nth-child(5),.design-nine-lives .face-six svg:nth-child(5) { top: 20px; right: 5px; }
.design-bonecast .face-six svg:nth-child(6),.design-nine-lives .face-six svg:nth-child(6) { top: 36px; right: 5px; }
.design-bonecast .face-three svg:nth-child(1),.design-nine-lives .face-three svg:nth-child(1) { top: 5px; left: 5px; }
.design-bonecast .face-three svg:nth-child(2),.design-nine-lives .face-three svg:nth-child(2) { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.design-bonecast .face-three svg:nth-child(3),.design-nine-lives .face-three svg:nth-child(3) { right: 5px; bottom: 5px; }
.medal-table-wrap { overflow-x: auto; border: 1px solid var(--whisper); border-radius: 18px; background: rgba(250,243,224,.07); }
.dice-table { width: 100%; border-collapse: collapse; }
.dice-table th,.dice-table td { padding: 18px 22px; border-bottom: 1px solid var(--whisper); text-align: center; }
.dice-table tr:last-child th,.dice-table tr:last-child td { border-bottom: 0; }
.dice-table th:first-child { text-align: left; }
.dice-table thead { color: var(--gold); background: rgba(8,8,26,.28); font-size: .75rem; text-transform: uppercase; }
.dice-table tbody th { color: var(--cream); font-family: Georgia,serif; }
.dice-table tbody td { color: var(--cream); font-weight: 850; }
.dice-callout,.formula-card { padding: 20px 23px; border: 1px solid rgba(244,201,93,.3); border-radius: 16px; color: var(--fog); background: rgba(244,201,93,.08); line-height: 1.6; }
.dice-callout { margin: 16px 0 0; }
.dice-callout strong { color: var(--gold); }
.roll-chart { display: grid; height: 260px; padding: 22px 20px 18px; grid-template-columns: repeat(11,minmax(38px,1fr)); gap: 9px; align-items: end; overflow-x: auto; border: 1px solid var(--whisper); border-radius: 20px; background: rgba(8,8,26,.3); }
.roll-column { display: grid; min-width: 38px; justify-items: center; align-content: end; }
.roll-percent { margin-bottom: 7px; color: var(--fog); font-size: .62rem; }
.roll-bar { width: min(48px,80%); border-radius: 8px 8px 3px 3px; background: linear-gradient(var(--gold),var(--ember)); box-shadow: 0 8px 20px rgba(255,107,71,.18); }
.roll-bar.roll-ways-1 { height: 22px; }
.roll-bar.roll-ways-2 { height: 44px; }
.roll-bar.roll-ways-3 { height: 66px; }
.roll-bar.roll-ways-4 { height: 88px; }
.roll-bar.roll-ways-5 { height: 110px; }
.roll-bar.roll-ways-6 { height: 132px; }
.roll-column strong { margin-top: 8px; color: var(--cream); }
.roll-column small { margin-top: 2px; color: var(--mist); font-size: .58rem; white-space: nowrap; }
.odds-reference { display: grid; margin: 12px 0; grid-template-columns: repeat(5,1fr); gap: 10px; }
.odds-reference div { display: flex; padding: 13px; align-items: center; justify-content: space-between; border: 1px solid var(--whisper); border-radius: 12px; background: rgba(250,243,224,.06); }
.odds-reference strong { color: var(--gold); }
.odds-reference span { color: var(--fog); font-size: .78rem; }
.formula-card { margin-top: 12px; }
.formula-card h3 { margin: 0 0 10px; color: var(--cream); font: 700 1.3rem Georgia,serif; }
.formula-card p { margin: 8px 0; }
.formula-card ul { margin: 10px 0; }
.formula-card code { color: var(--gold); font-weight: 800; }
.dice-odds-calculator { display: grid; padding: 22px; grid-template-columns: minmax(280px,.72fr) minmax(420px,1.28fr); gap: 22px; border: 1px solid rgba(244,201,93,.3); border-radius: 22px; background: linear-gradient(145deg,rgba(244,201,93,.11),rgba(250,243,224,.055)); box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.dice-odds-calculator form { display: grid; gap: 14px; align-content: start; }
.dice-odds-calculator label > span { display: block; margin: 0 0 7px 2px; color: var(--cream); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.dice-odds-calculator input,.dice-odds-calculator select { width: 100%; height: 48px; padding: 0 13px; border: 1px solid rgba(250,243,224,.28); border-radius: 11px; outline: 0; color: var(--ink); background: var(--cream); }
.dice-odds-calculator input:focus,.dice-odds-calculator select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(244,201,93,.15); }
.dice-odds-calculator button { height: 48px; border: 0; border-radius: 11px; color: var(--ink); background: var(--gold); font-size: .78rem; font-weight: 900; cursor: pointer; }
.dice-odds-calculator button:hover { background: #ffe080; }
.dice-odds-calculator button:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.dice-calculator-error { margin: 0; padding: 10px 12px; border: 1px solid rgba(255,107,71,.55); border-radius: 9px; color: var(--cream); background: rgba(255,107,71,.14); font-size: .76rem; line-height: 1.45; }
.dice-odds-results { display: flex; min-width: 0; padding: 22px; flex-direction: column; justify-content: center; border: 1px solid var(--whisper); border-radius: 17px; background: rgba(8,8,26,.28); }
.dice-result-summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; color: var(--fog); font-size: .75rem; }
.dice-result-summary strong { color: var(--cream); }
.dice-medal-results { display: grid; margin: 22px 0 17px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.dice-medal-results article { display: flex; min-width: 0; padding: 17px 13px; gap: 10px; align-items: center; border: 1px solid var(--whisper); border-radius: 13px; background: rgba(250,243,224,.07); }
.dice-medal-results article > span { font-size: 1.45rem; }
.dice-medal-results article div { display: flex; min-width: 0; flex-direction: column; }
.dice-medal-results small { color: var(--fog); font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dice-medal-results strong { color: var(--cream); font-size: clamp(1.15rem,2.2vw,1.65rem); }
.dice-medal-results .gold-result { border-color: rgba(244,201,93,.4); }
.dice-odds-results > p { margin: 0; color: var(--fog); font-size: .78rem; line-height: 1.5; }
.strategy-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.strategy-grid article { position: relative; padding: 22px 22px 22px 70px; border: 1px solid var(--whisper); border-radius: 16px; background: rgba(250,243,224,.06); }
.strategy-grid article > span { position: absolute; top: 22px; left: 22px; color: var(--ember); font-weight: 900; }
.strategy-grid h3 { margin: 0; color: var(--cream); font: 700 1.15rem Georgia,serif; }
.strategy-grid p { margin: 8px 0 0; color: var(--fog); font-size: .82rem; line-height: 1.55; }
.dice-text-link { display: inline-flex; margin-top: 18px; gap: 8px; align-items: center; color: var(--gold); font-weight: 850; text-decoration: none; }
.dice-text-link:hover { color: var(--cream); }
.dice-source-note { margin: -35px 0 55px; color: var(--mist); font-size: .74rem; font-style: italic; }
.dice-runs-page .tools-footer { border-top-color: var(--whisper); color: var(--mist); }

@media (max-width:850px) {
    .dice-hero { min-height: 0; padding: 55px 0; grid-template-columns: 1fr; }
    .dice-hero-mark { display: none; }
    .run-type-grid { grid-template-columns: 1fr; }
    .run-type-card { min-height: 0; }
    .dice-run-catalog,.dice-achievement-grid { grid-template-columns: 1fr; }
    .dice-odds-calculator { grid-template-columns: 1fr; }
    .dice-guide-notes { grid-template-columns: 1fr; }
    .dice-design-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:580px) {
    .dice-hero { padding: 46px 0; }
    .dice-hero h1 { font-size: clamp(3.7rem,20vw,5.6rem); }
    .dice-title-lockup { gap: 10px; }
    .dice-title-lockup > span { font-size: 2.8rem; }
    .dice-hero p:last-child { font-size: .96rem; }
    .dice-section { margin-bottom: 55px; }
    .dice-section-heading h2 { font-size: 2.25rem; }
    .dice-run-catalog li,.dice-achievement-grid li { padding: 14px; grid-template-columns: 42px minmax(0,1fr); }
    .dice-run-catalog b,.dice-achievement-grid b { grid-column: 2; }
    .dice-table th,.dice-table td { min-width: 105px; padding: 15px 12px; }
    .roll-chart { padding-right: 12px; padding-left: 12px; }
    .odds-reference { grid-template-columns: repeat(2,1fr); }
    .strategy-grid { grid-template-columns: 1fr; }
    .dice-guide-steps li { padding: 17px; grid-template-columns: 42px minmax(0,1fr); gap: 12px; }
    .dice-guide-number { width: 40px; height: 40px; }
    .dice-did-you-know { padding: 16px; grid-template-columns: auto minmax(0,1fr); }
    .dice-tip-reward { grid-column: 2; width: fit-content; }
    .design-die { width: 50px; height: 50px; flex-basis: 50px; transform: scale(.92); }
    .dice-odds-calculator { padding: 15px; }
    .dice-odds-results { padding: 15px; }
    .dice-result-summary { align-items: flex-start; flex-direction: column; }
    .dice-medal-results { grid-template-columns: 1fr; }
    .dice-medal-results article { justify-content: flex-start; }
}
