/* Skill Tree v2 — page layout, HUD, in-game style tooltip, below-the-fold content */
:root { --st-header: 80px; --st-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; }
@media (max-width: 768px) { :root { --st-header: 56px; } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body { font-family: var(--st-font); line-height: 1.6; background: #0b0b0c; color: #e0e0e0; }

/* ---- full-screen stage ---- */
.st-stage { position: relative; width: 100%; height: calc(100vh - var(--st-header)); height: calc(100dvh - var(--st-header)); min-height: 460px; background: #111929; overflow: hidden; user-select: none; -webkit-user-select: none; }
.st-stage.st-embed-stage { height: 620px; min-height: 360px; }
.st-canvas { cursor: grab; }
.st-canvas:active { cursor: grabbing; }

.st-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 22px; pointer-events: none; z-index: 3; }
.st-hud-left, .st-hud-right { display: flex; flex-direction: column; gap: 8px; }
.st-hud-right { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.st-hud-right > *, .st-hud-left > * { pointer-events: auto; }
.st-hud-left { pointer-events: none; }

.st-points { display: inline-flex; align-items: center; gap: 10px; color: #eee8df; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.st-points b { font-size: 22px; line-height: 1; color: #fff; font-weight: 700; }
.st-points-icon { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #d9b65a; background: #1b1708 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0cf6b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 13l5-5 5 5'/%3E%3Cpath d='M7 18l5-5 5 5'/%3E%3C/svg%3E") center/18px no-repeat; box-shadow: 0 0 14px rgba(240,207,107,.35); }
.st-hint { color: #8a93a3; font-size: 12px; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.8); }

.st-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(18,20,26,.85); border: 1px solid #2c3140; color: #e4e9f2; padding: 8px 14px; border-radius: 6px; font: 600 13px var(--st-font); cursor: pointer; text-decoration: none; backdrop-filter: blur(6px); transition: border-color .15s, background .15s; white-space: nowrap; }
.st-btn:hover { border-color: #5d657b; background: rgba(28,31,40,.9); }
.st-btn-primary { background: #3a7bc8; border-color: #3a7bc8; color: #fff; }
.st-btn-primary:hover { background: #2c5f9e; border-color: #2c5f9e; }

/* progression (shared-build) bar */
.st-preview { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 22px calc(16px + var(--st-anchor-h, 0px)); background: linear-gradient(to top, rgba(17,25,41,.96) 0%, rgba(17,25,41,.75) 60%, rgba(17,25,41,0) 100%); display: none; z-index: 3; }
.st-preview.is-on { display: block; }
.st-preview-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.st-preview-text { color: #c9ced8; font-size: 13px; }
.st-preview-stage { color: #3a7bc8; font-weight: 700; font-size: 14px; }
.st-slider { width: 100%; height: 8px; border-radius: 4px; outline: none; -webkit-appearance: none; appearance: none; background: linear-gradient(to right, #3a7bc8 0%, #3a7bc8 var(--progress, 0%), #2a2a2a var(--progress, 0%), #2a2a2a 100%); }
.st-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: #3a7bc8; border-radius: 50%; cursor: pointer; border: 2px solid #fff; }
.st-slider::-moz-range-thumb { width: 18px; height: 18px; background: #3a7bc8; border-radius: 50%; cursor: pointer; border: 2px solid #fff; }

/* scroll-down affordance */
.st-scroll-down { position: absolute; left: 50%; bottom: calc(16px + var(--st-anchor-h, 0px)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; background: rgba(18,20,26,.8); border: 1px solid #2c3140; color: #c9ced8; padding: 9px 16px 9px 14px; border-radius: 999px; font: 600 13px var(--st-font); cursor: pointer; z-index: 4; backdrop-filter: blur(6px); transition: opacity .25s, border-color .15s; }
.st-scroll-down:hover { border-color: #5d657b; color: #fff; }
.st-scroll-down svg { width: 16px; height: 16px; animation: st-bob 1.6s ease-in-out infinite; }
.st-scroll-down.is-hidden { opacity: 0; pointer-events: none; }
.st-previewing .st-scroll-down { bottom: calc(92px + var(--st-anchor-h, 0px)); }
@keyframes st-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---- tooltip: in-game card ---- */
.st-tooltip, .st-chooser { position: absolute; left: 0; top: 0; width: 380px; max-width: calc(100% - 16px); z-index: 6; filter: drop-shadow(0 10px 26px rgba(0,0,0,.65)); }
.st-tooltip { pointer-events: none; }
.st-tip-tab { display: inline-flex; align-items: center; gap: 10px; background: #d6bf99; color: #1b1f2e; font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; padding: 11px 18px; border-radius: 6px 6px 0 0; }
.st-tip-card { background: #f7e9d7; color: #1d2233; border-radius: 6px; overflow: hidden; }
.st-tip-tab + .st-tip-card { border-top-left-radius: 0; }
.st-tip-entry { padding: 15px 18px 14px; }
.st-tip-entry + .st-tip-entry { border-top: 2px solid #c9b9a2; }
.st-tip-entry h4 { margin: 0 0 6px; font-size: 19px; line-height: 1.15; font-weight: 800; text-transform: uppercase; color: #171c2b; letter-spacing: .01em; }
.st-tip-entry p { margin: 0; color: #5a6478; font-size: 14.5px; line-height: 1.4; }
.st-tip-tested { margin-top: 8px !important; font-size: 12.5px !important; line-height: 1.4 !important; color: #6f6250 !important; }
.st-tip-tested b { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: #8a7a62; margin-right: 2px; }
.st-tip-unlocks { margin-top: 10px; }
.st-tip-unlocks > span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a7a62; margin-bottom: 6px; }
.st-tip-unlocks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.st-tip-unlocks li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 4px; background: #ecdcc4; color: #1d2233; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.st-tip-unlocks img { width: 22px; height: 22px; object-fit: contain; }
.st-tip-levels { margin-top: 8px !important; font-size: 13px !important; line-height: 1.45 !important; color: #3d4457 !important; font-variant-numeric: tabular-nums; }
.st-tip-levels b { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: #8a7a62; margin-right: 3px; }
.st-tip-levels span { font-weight: 700; }
.st-tip-levels span.is-current { background: #1d2233; color: #f7e9d7; padding: 0 5px; border-radius: 3px; }
.st-tip-levels i { font-style: normal; color: #a99a83; margin: 0 4px; }
.st-tip-levels small { display: block; font-size: 12px; color: #6f6250; margin-top: 1px; }
.st-tip-pairs { margin-top: 6px !important; font-size: 12.5px !important; line-height: 1.4 !important; color: #6f6250 !important; }
.st-tip-pairs b { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: #8a7a62; margin-right: 2px; }
.st-tip-credit { font-style: italic; color: #8a7a62; white-space: nowrap; }
.st-tip-unlocks small { display: block; margin-top: 6px; font-size: 11.5px; color: #8a7a62; font-style: italic; }
.st-tip-note { margin-top: 6px !important; font-size: 12px !important; color: #8a7a62 !important; font-style: italic; }
.st-tip-footer { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 16px; font-weight: 700; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; background: #d6bf99; color: #1b1f2e; }
.st-tip-footer.is-locked { background: #b7280f; color: #fff; }
.st-tip-footer.is-allocated { background: #1d2233; color: #f7e9d7; }
.st-tip-footer.is-available { background: #e6d6bd; }
.st-lock, .st-mouse { display: inline-block; width: 14px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='10' width='16' height='12' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3h-2V7a2 2 0 0 0-4 0v3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='10' width='16' height='12' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3h-2V7a2 2 0 0 0-4 0v3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.st-mouse { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7v6a7 7 0 0 0 14 0V9a7 7 0 0 0-7-7zm-1 2.1V10H7V9a5 5 0 0 1 4-4.9zM17 9v1h-4V4.1A5 5 0 0 1 17 9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7v6a7 7 0 0 0 14 0V9a7 7 0 0 0-7-7zm-1 2.1V10H7V9a5 5 0 0 1 4-4.9zM17 9v1h-4V4.1A5 5 0 0 1 17 9z'/%3E%3C/svg%3E"); }

/* chooser */
.st-chooser .st-tip-card { padding: 0; }
.st-choice { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px 16px; background: none; border: 0; border-top: 2px solid #c9b9a2; cursor: pointer; color: #1d2233; font-family: var(--st-font); }
.st-choice:first-child { border-top: 0; }
.st-choice:hover:not(:disabled) { background: #efdfca; }
.st-choice:disabled { opacity: .45; cursor: not-allowed; }
.st-choice-icon { width: 64px; height: 64px; margin: -15px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #5a6478; }
.st-choice-text b { display: block; font-size: 16px; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.st-choice-text small { display: block; color: #5a6478; font-size: 13px; line-height: 1.35; margin-top: 3px; }
.st-choice-text em { display: block; color: #b7280f; font-style: normal; font-size: 12px; margin-top: 4px; font-weight: 700; }

.st-toast { position: absolute; left: 50%; top: 84px; transform: translate(-50%, -8px); background: #f7e9d7; color: #1d2233; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 7; }
.st-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.st-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #e0e0e0; background: #111; }

/* ---- below the fold ---- */
.st-below { max-width: 1400px; margin: 0 auto; padding: 44px 24px 60px; position: relative; z-index: 1; }
.st-below h1 { color: #fff; font-size: 2.2em; letter-spacing: -.3px; line-height: 1.2; margin: 0 0 10px; }
.st-below h2 { color: #fff; margin: 0 0 16px; }
.st-below .lead { color: #bdbdbd; font-size: 1.1em; max-width: 820px; margin: 0 0 30px; }
.st-section { background: #141414; border-radius: 12px; padding: 26px 28px; box-shadow: 0 4px 20px rgba(0,0,0,.5); margin-bottom: 28px; }
.st-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.st-section-head h2 { margin: 0; font-size: 1.3em; }
.points-display { display: flex; align-items: center; gap: 8px; color: #888; }
.points-allocated { font-weight: 700; color: #fff; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.skill-card { background: #1a1a1a; border: 2px solid #2a2a2a; border-radius: 8px; padding: 14px; }
.skill-card.conditioning { border-color: #12e276; }
.skill-card.mobility { border-color: #ffcb00; }
.skill-card.survival { border-color: #ff1a0c; }
.skill-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.skill-card-name { font-weight: 600; color: #fff; }
.skill-card-points { background: #3a7bc8; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .9em; font-weight: 700; white-space: nowrap; }
.skill-card-description { font-size: .9em; color: #888; line-height: 1.5; }
.empty-state { text-align: center; padding: 30px; color: #666; font-style: italic; grid-column: 1 / -1; }
.btn { padding: 10px 20px; border: none; border-radius: 6px; font: 600 .95em var(--st-font); cursor: pointer; transition: background .2s; }
.btn-primary { background: #3a7bc8; color: #fff; } .btn-primary:hover { background: #2c5f9e; }
.btn-secondary { background: #2a2a2a; color: #e0e0e0; } .btn-secondary:hover { background: #3a3a3a; }
.btn-ghost { background: transparent; color: #888; padding: 10px 12px; } .btn-ghost:hover { color: #fff; }
.button-group { display: flex; gap: 10px; flex-wrap: wrap; }
.share-cta { color: #888; font-style: italic; font-size: .95em; margin: 12px 0 0; }
.st-saved { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #242424; }
.st-saved:first-child { border-top: 0; }
.st-saved-text { flex: 1; min-width: 0; } .st-saved-text b { color: #fff; display: block; } .st-saved-text small { color: #777; }
.st-trees { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin: 0 0 36px; }
.st-tree-box { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px; padding: 22px 24px; }
.st-tree-box h3 { margin: 0 0 12px; }
.st-tree-box ul { margin: 8px 0 14px 20px; line-height: 1.8; padding: 0; }
.st-tree-box.conditioning { border-color: rgba(18,226,118,.3); } .st-tree-box.conditioning h3 { color: #12e276; }
.st-tree-box.mobility { border-color: rgba(255,203,0,.3); } .st-tree-box.mobility h3 { color: #ffcb00; }
.st-tree-box.survival { border-color: rgba(255,26,12,.3); } .st-tree-box.survival h3 { color: #ff3b2e; }
.st-notice { background: #1e2a3a; border: 1px solid #3a7bc8; border-radius: 8px; padding: 14px 18px; color: #d8e6f5; margin-bottom: 28px; }
.recommended-build-badge { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: 2px solid #8b5cf6; border-radius: 12px; padding: 16px 24px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 4px 20px rgba(102,126,234,.3); }
.recommended-build-title { color: #fff; font-weight: 700; font-size: 1.1em; margin-bottom: 4px; }
.recommended-build-description { color: #e0d9ff; font-size: .9em; }
.recommended-build-btn { background: rgba(255,255,255,.95); color: #667eea; padding: 12px 24px; border-radius: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* footer (shared look) */
footer { background: #161616; border-top: 1px solid #2a2a2e; padding: 50px 20px 30px; margin-top: 40px; }
.footer-content { max-width: 1600px; margin: 0 auto 40px; display: grid; grid-template-columns: 2fr 1.2fr .8fr .8fr; gap: 40px; }
.footer-section h3 { color: #fff; font-size: 1em; font-weight: 600; margin: 0 0 15px; text-transform: uppercase; letter-spacing: .5px; }
.footer-section p { color: #888; font-size: .95em; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; } .footer-links li { margin-bottom: 8px; }
.footer-links a { color: #b0b0b0; text-decoration: none; } .footer-links a:hover { color: #3a7bc8; }
.footer-bottom { max-width: 1600px; margin: 0 auto; border-top: 1px solid #2a2a2e; padding-top: 20px; color: #666; font-size: .85em; text-align: center; }
@media (max-width: 968px) { .footer-content { grid-template-columns: repeat(2, 1fr); gap: 30px; } }

@media (max-width: 768px) {
    .st-hud { padding: 12px 12px; }
    .st-hint { display: none; }
    .st-points { font-size: 11px; gap: 8px; } .st-points b { font-size: 18px; } .st-points-icon { width: 24px; height: 24px; background-size: 14px; }
    .st-btn { padding: 7px 10px; font-size: 12px; }
    .st-tooltip, .st-chooser { width: 300px; }
    .st-tip-entry h4 { font-size: 16px; } .st-tip-entry p { font-size: 13.5px; }
    .st-below { padding: 30px 16px 50px; } .st-below h1 { font-size: 1.7em; } .st-section { padding: 20px 16px; }
    .footer-content { grid-template-columns: 1fr; }
    .recommended-build-badge { flex-direction: column; align-items: stretch; }
}

/* HUD controls, top right. Raider UI design system (docs/design/DESIGN-SYSTEM.md): option rows (.opt) for
   expedition points and animations, round icon buttons for sound and fit, grey pill for reset, yellow pill for the main verb. */
.st-hud-right {
    --st-ui: 'Barlow', var(--st-font); --st-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --st-paper: #f8ede1; --st-yellow: #ffc21a; --st-yellow-2: #ffd75a; --st-muted: #8d95a8;
    gap: 10px;
}
.st-hud-right :focus-visible { outline: 2px solid var(--st-paper); outline-offset: 3px; }
.st-opt { display: inline-flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px 0 18px; border-radius: 999px; background: rgba(40,48,70,.92); border: 2px solid transparent; font: 500 14px/1 var(--st-ui); letter-spacing: .04em; text-transform: uppercase; color: #c7cdd9; white-space: nowrap; user-select: none; backdrop-filter: blur(6px); transition: border-color .15s, color .15s; }
.st-opt:hover { color: #fff; }
.st-opt-short { display: none; }
svg.st-opt-short { width: 16px; height: 16px; fill: currentColor; }
.st-opt-val { display: inline-flex; align-items: center; gap: 2px; color: #fff; font-weight: 600; }
.st-expo { padding-right: 8px; }
.st-expo:focus-within { border-color: #fff; }
.st-step { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background .15s; }
.st-step:hover { background: rgba(255,255,255,.1); }
.st-step svg { width: 12px; height: 12px; }
.st-expo input { width: 34px; padding: 0; background: none; border: 0; color: #fff; font: 700 15px/1 var(--st-mono); font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.st-expo input:focus { outline: none; }
.st-expo input::-webkit-outer-spin-button, .st-expo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-anim { cursor: pointer; }
.st-anim:has(input:focus-visible) { outline: 2px solid var(--st-paper); outline-offset: 3px; }
.st-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-switch { min-width: 30px; text-align: right; font-weight: 700; color: #fff; }
.st-switch .is-off { color: var(--st-muted); }
.st-anim input:checked ~ .st-switch .is-off, .st-anim input:not(:checked) ~ .st-switch .is-on { display: none; }
.st-round { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(38,46,66,.92); color: #d8dce6; cursor: pointer; backdrop-filter: blur(6px); transition: background .15s, color .15s; }
.st-round:hover { background: #343e58; color: #fff; }
.st-round svg { width: 20px; height: 20px; display: block; }
.st-sound .st-sound-off, .st-sound.is-muted .st-sound-on { display: none; }
.st-sound.is-muted .st-sound-off { display: inline; }
.st-sound.is-muted { color: var(--st-muted); }
.st-pill { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px; border: 0; border-radius: 999px; font: 700 14px/1 var(--st-ui); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, box-shadow .2s; }
.st-pill-grey { background: #8d8a85; color: #2a2925; }
.st-pill-grey:hover { background: #a3a09a; }
.st-pill-grey.is-armed { background: #e8262b; color: #fff; }   /* points allocated: reset would clear them (brand-stripe red) */
.st-pill-grey.is-armed:hover { background: #f2474b; }
.st-pill-yellow { background: var(--st-yellow); color: #000; box-shadow: 0 6px 20px rgba(255,194,26,.18); }
.st-pill-yellow:hover { background: var(--st-yellow-2); box-shadow: 0 8px 26px rgba(255,194,26,.3); }
@media (max-width: 768px) {
    .st-hud-right { gap: 6px; }
    .st-opt-label { display: none; }
    .st-opt-short { display: inline; } svg.st-opt-short { display: block; }
    .st-opt { height: 36px; gap: 8px; padding: 0 10px 0 12px; font-size: 12px; }
    .st-expo { padding: 0 4px; }
    .st-round { width: 36px; height: 36px; } .st-round svg { width: 18px; height: 18px; }
    .st-pill { height: 36px; padding: 0 14px; font-size: 12px; }
}

/* Publish dialog: cream card (design system .card-paper) over a dimmed stage; tag pills follow the .pill pattern. */
.st-pill-outline { background: rgba(10,14,24,.55); color: #fff; box-shadow: inset 0 0 0 2px #fff; backdrop-filter: blur(6px); }
.st-pill-outline:hover { background: rgba(255,255,255,.12); }
.st-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: rgba(4,6,12,.72); backdrop-filter: blur(3px);
    --st-ui: 'Barlow', var(--st-font); --st-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace; --st-yellow: #ffc21a; --st-yellow-2: #ffd75a; }
.st-modal-card { width: min(520px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; font-family: var(--st-ui); filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.st-modal-card .st-tip-tab { align-self: flex-start; }
.st-modal-body { background: #f8ede1; color: #0d111b; padding: 18px 20px 6px; overflow-y: auto; border-radius: 0 8px 0 0; }
.st-modal-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; background: #ebdfd1; padding: 12px 16px; border-radius: 0 0 8px 8px; }
.st-modal-foot .st-pill { height: 40px; }
.st-pub-as { flex: 1 1 180px; color: #4b5262; font-size: 13.5px; line-height: 1.35; }
.st-pub-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #d9cdbf; font-size: 13px; color: #4b5262; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.st-pub-sum b { font: 700 15px var(--st-mono); color: #0d111b; font-variant-numeric: tabular-nums; }
.st-pub-total { flex-basis: 100%; }
.st-pub-track { display: inline-flex; align-items: center; gap: 6px; }
.st-pub-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px #0d111b; }
.st-pub-picks { flex-basis: 100%; text-transform: none; letter-spacing: 0; font-weight: 500; color: #0d111b; }
.st-field { display: block; margin: 0 0 14px; }
.st-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4b5262; }
.st-field > span em { font-style: normal; font-weight: 500; letter-spacing: .02em; text-transform: none; color: #6f7686; margin-left: 4px; }
.st-field input, .st-field textarea { width: 100%; padding: 10px 12px; border: 2px solid #d9cdbf; border-radius: 6px; background: #fffaf3; color: #0d111b; font: 500 15px/1.4 var(--st-ui); resize: vertical; }
.st-field input:focus, .st-field textarea:focus { outline: none; border-color: #0d111b; }
.st-tagpick { display: flex; flex-wrap: wrap; gap: 6px; }
.st-tagbtn { height: 32px; padding: 0 14px; border-radius: 999px; border: 2px solid #c9bcab; background: transparent; color: #0d111b; font: 600 13px/1 var(--st-ui); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .15s, border-color .15s; }
.st-tagbtn:hover:not(:disabled) { border-color: #0d111b; }
.st-tagbtn[aria-pressed="true"] { background: #0d111b; border-color: #0d111b; color: #f8ede1; }
.st-tagbtn:disabled { opacity: .4; cursor: not-allowed; }
.st-pub-err { margin: 0 0 12px; padding: 8px 12px; border-radius: 4px; background: #b7280f; color: #fff; font-size: 14px; font-weight: 600; }
.st-pub-done { margin: 4px 0 14px; font-size: 16px; line-height: 1.45; }
.st-modal :focus-visible { outline: 2px solid #0d111b; outline-offset: 2px; }
.st-community-link { display: inline-flex; align-items: center; gap: 6px; color: #ffc21a; font-weight: 600; text-decoration: none; }
.st-community-link:hover { text-decoration: underline; }
.st-pub-link { display: flex; gap: 8px; }
.st-pub-link input { flex: 1; min-width: 0; font: 600 14px var(--st-mono); }
.st-pub-link .st-pill { height: 44px; flex: none; }
.st-preview-text b { color: #fff; }
.st-pub-card { display: block; width: 100%; aspect-ratio: 1200 / 630; margin: 0 0 14px; border-radius: 4px; box-shadow: 0 0 0 1px #d9cdbf; background: #111929; }
