/* BARO premium shell, presentation only. Load last after existing component styles.
 * Opt-in: body.premium-site. Screen-only intentionally preserves print/export.
 * Do not change --cp-*, --gx-* or --tm-* scene tokens: SVG art and real boards
 * own their colors, dimensions, transforms, hit targets and motion behavior.
 * Deep Shelter's standalone playable PWA does not load this stylesheet.
 */
@media screen {
  body.premium-site {
    --ink:#f2f7ed; --muted:#a5b2a5; --green:#b6f36d;
    --green-light:#223523; --line:#33433a; --paper:#111a17;
    --white:#18251e; --cream:#1e2c23; --radius:20px;
    --bp-bg:#111a17; --bp-panel:#18251e; --bp-raised:#1d2c23;
    --bp-input:#101b15; --bp-line:#33433a; --bp-accent:#b6f36d;
    --bp-text:#f2f7ed; --bp-muted:#a5b2a5; --bp-warning:#edcc85;
    --bp-danger:#ffb3a5; --bp-shadow:0 20px 55px #030b072b;
    color-scheme:dark; background:var(--bp-bg); color:var(--bp-text);
    font-family:Inter,Pretendard,"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
    font-size:15px; line-height:1.75; -webkit-font-smoothing:antialiased;
  }
  body.premium-site :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
    outline:3px solid var(--bp-accent); outline-offset:4px;
  }
  body.premium-site :where(.calculator-page,.utility-page,.timer-page,.prose,.guide-directory,.reading-layout) {
    overflow-wrap:break-word;
  }
  body.premium-site :where(.calculator-page,.utility-page,.timer-page) { padding-bottom:32px; }
  body.premium-site :where(.calculator-page,.utility-page,.timer-page,.prose) h1 {
    font-size:clamp(30px,3.5vw,46px); line-height:1.25; letter-spacing:-.045em;
  }
  body.premium-site :where(.page-heading,.content-section,.guide-section,.prose) :is(h1,h2,h3,h4) { color:var(--bp-text); }
  body.premium-site .page-heading { padding-block:36px 32px; }
  body.premium-site .page-heading h1 { margin-block:12px 16px; }
  body.premium-site .page-heading p { color:var(--bp-muted); font-size:14px; line-height:1.85; max-width:760px; }
  body.premium-site :where(.eyebrow,.section-kicker,.back-link,.walkthrough-return,.guide-tool-link) { color:var(--bp-accent); }
  body.premium-site .breadcrumbs { font-size:12px; color:var(--bp-muted); gap:10px; padding-top:26px; }
  body.premium-site .breadcrumbs a { text-underline-offset:4px; }
  body.premium-site .breadcrumbs a:hover { color:var(--bp-accent); text-decoration:underline; }

  /* Only the document header/footer. Never style nested game or article headers. */
  body.premium-site > header {
    background:#111a17f5; color:var(--bp-text); border-bottom:1px solid var(--bp-line);
    box-shadow:0 10px 28px #02080514; backdrop-filter:blur(18px);
  }
  body.premium-site > header .header-inner {
    width:100%; max-width:1280px; min-height:82px; margin-inline:auto;
    padding:16px 36px; display:flex; align-items:center; gap:44px;
  }
  body.premium-site > header .brand,
  body.premium-site > footer .brand {
    display:inline-flex; align-items:center; gap:10px; color:var(--bp-text);
    font-size:25px; font-weight:850; letter-spacing:-1.3px; white-space:nowrap;
  }
  body.premium-site > header .brand :is(svg,.brand-dot),
  body.premium-site > footer .brand :is(svg,.brand-dot) { color:var(--bp-accent); }
  body.premium-site > header .brand-mark {
    width:22px; height:27px; display:inline-block; flex:none;
    border:2px solid var(--bp-accent); border-radius:7px 7px 7px 2px;
    background:linear-gradient(135deg,transparent 45%,#b6f36d22 46%);
  }
  body.premium-site > header .header-inner > nav {
    display:flex; align-items:center; gap:26px; font-size:13px; font-weight:650;
  }
  body.premium-site > header .header-inner > nav > a { display:inline-flex; align-items:center; gap:7px; min-height:44px; color:#d3dfd0; }
  body.premium-site > header .header-inner > nav > a:hover { color:var(--bp-accent); }
  body.premium-site > header .header-inner > nav small { font-size:10px; color:var(--bp-muted); font-variant-numeric:tabular-nums; }
  body.premium-site > header .baro-header-actions { margin-left:auto; display:flex; align-items:center; gap:22px; flex:none; }
  body.premium-site > header :is(.language-link,.baro-search-link) { display:inline-flex; align-items:center; justify-content:center; min-height:44px; font-size:12px; font-weight:650; }
  body.premium-site > header .language-link { color:var(--bp-accent); border:1px solid var(--bp-line); border-radius:8px; padding:8px 12px; }
  body.premium-site > header .baro-search-link { color:var(--bp-muted); }
  body.premium-site > header :is(.language-link,.baro-search-link):hover { color:var(--bp-accent); border-color:#779563; }
  body.premium-site > header .header-note { color:var(--bp-muted); }
  body.premium-site .skip { background:var(--bp-accent); color:#142013; border-radius:8px; }
  body.premium-site > footer { border-top:1px solid var(--bp-line); background:#0d1611; color:var(--bp-text); }
  body.premium-site > footer .footer-inner { max-width:1280px; padding:40px 36px; gap:32px; }
  body.premium-site > footer .footer-inner p { font-size:12px; line-height:1.85; color:var(--bp-muted); }
  body.premium-site > footer .footer-links { display:flex; flex-wrap:wrap; align-content:start; gap:12px 22px; }
  body.premium-site > footer .footer-inner a:not(.brand) { font-size:12px; color:#c2cfbe; }
  body.premium-site > footer .footer-inner a:hover { color:var(--bp-accent); }

  /* Calculator / utility controls. No selectors reach native game inputs. */
  body.premium-site .calculator-layout { background:var(--bp-panel); border:1px solid var(--bp-line); border-radius:20px; box-shadow:var(--bp-shadow); }
  body.premium-site :where(.calculator-layout,.utility-layout) > .form-panel { background:var(--bp-panel); padding:30px; min-width:0; }
  body.premium-site .utility-layout > .form-panel { border:1px solid var(--bp-line); border-radius:18px; }
  body.premium-site .panel-title { color:var(--bp-text); margin-bottom:24px; }
  body.premium-site .panel-title > span { color:var(--bp-muted); font-size:12px; }
  body.premium-site :where(.calculator-page,.utility-page,.timer-page) .fields { gap:20px 16px; }
  body.premium-site :where(.form-panel,.timer-controls) .field label { color:#dce7d7; font-size:13px; font-weight:650; margin-bottom:8px; }
  body.premium-site :where(.form-panel,.timer-controls) .field small { color:var(--bp-muted); font-size:12px; line-height:1.75; }
  body.premium-site :where(.form-panel,.timer-controls,.directory-search) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea) {
    max-width:100%; min-width:0; border:1px solid #425549; border-radius:10px;
    background:var(--bp-input); color:var(--bp-text); font-family:inherit;
    font-size:16px; line-height:1.5; padding:12px 13px; box-shadow:inset 0 1px 2px #0002;
  }
  body.premium-site :where(.form-panel,.timer-controls) .field :is(input:not([type=checkbox]):not([type=radio]),select) { min-height:48px; height:auto; }
  body.premium-site :where(.form-panel,.timer-controls) :is(input,textarea)::placeholder { color:#829481; opacity:1; }
  body.premium-site :where(.form-panel,.timer-controls) :is(input,select,textarea):hover { border-color:#62765d; }
  body.premium-site :where(.form-panel,.timer-controls) :is(input,select,textarea):focus {
    border-color:var(--bp-accent); outline:2px solid #b6f36d77; outline-offset:2px;
  }
  body.premium-site :where(.form-panel,.timer-controls) :is(input,select,textarea):disabled { opacity:.6; cursor:not-allowed; }
  body.premium-site :where(.form-panel,.timer-controls) :is(input[type=checkbox],input[type=radio],input[type=range]) { accent-color:var(--bp-accent); }
  body.premium-site :where(.form-panel,.timer-controls) select option { color:var(--bp-text); background:var(--bp-panel); }
  body.premium-site .unit { color:var(--bp-muted); }
  body.premium-site :where(.calculator-page,.utility-page,.timer-page) :is(.local-note,.utility-private,.export-note) { color:var(--bp-muted); font-size:12px; line-height:1.8; }
  body.premium-site :where(.calculator-page,.utility-page,.timer-page) .primary,
  body.premium-site .clock-window-page .primary {
    background:var(--bp-accent); color:#152011; border:1px solid var(--bp-accent);
    min-height:48px; border-radius:10px; padding:12px 18px; font-size:14px; font-weight:750;
  }
  body.premium-site :where(.calculator-page,.utility-page,.timer-page) .primary:hover { background:#c5ff83; border-color:#c5ff83; }
  body.premium-site :is(.reset,.copy-button,.preset-button,.reference-link) {
    background:var(--bp-raised); color:#d6e5cc; border:1px solid #486044; border-radius:9px;
    min-height:44px; padding:10px 14px; font-size:12px; line-height:1.5;
  }
  body.premium-site :is(.reset,.copy-button,.preset-button,.reference-link):hover:not(:disabled) {
    background:#293d29; border-color:#89ac6e; color:var(--bp-text);
  }
  body.premium-site :is(.reset,.copy-button,.preset-button,.primary):disabled { opacity:.48; cursor:not-allowed; }
  body.premium-site .form-actions { gap:10px; }
  body.premium-site :is(.result-panel,.utility-result) { background:#1b2b20; border-color:var(--bp-line); padding:30px; color:var(--bp-text); min-width:0; }
  body.premium-site .utility-result { border:1px solid var(--bp-line); border-radius:18px; box-shadow:var(--bp-shadow); }
  body.premium-site .result-label { color:#c0d3b6; font-size:14px; }
  body.premium-site .result-top > span:last-child { color:var(--bp-muted); font-size:12px; }
  body.premium-site .result-number { color:var(--bp-accent); letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
  body.premium-site .result-number > span { font-size:clamp(30px,3.5vw,44px); }
  body.premium-site .result-number small { font-size:16px; color:#cbdcc1; }
  body.premium-site :is(.result-formula,.result-note) { color:var(--bp-muted); font-size:12px; line-height:1.85; }
  body.premium-site :where(.result-panel,.case-card,.case-check,.prose,.content-section) dl { border-color:var(--bp-line); }
  body.premium-site :where(.result-panel,.case-card,.case-check,.prose,.content-section) dt { color:#b3c4aa; }
  body.premium-site :where(.result-panel,.case-card) dd { color:var(--bp-text); font-variant-numeric:tabular-nums; }
  body.premium-site .winner-result { color:var(--bp-accent); }
  body.premium-site :is(.error,.sc-errors) { color:var(--bp-danger); background:#35221f; border-color:#82564b; border-radius:10px; line-height:1.8; }
  body.premium-site :is(.notice,.timer-alert) { color:var(--bp-warning); background:#2d2a1d; border:1px solid #6c6041; border-radius:10px; line-height:1.8; }
  body.premium-site :is(.utility-table,.prose table,.content-section table) { color:var(--bp-text); border-color:var(--bp-line); }
  body.premium-site :is(.utility-table,.prose table,.content-section table) th { background:#233428; color:#d6e8cb; border-color:var(--bp-line); }
  body.premium-site :is(.utility-table,.prose table,.content-section table) td { border-color:var(--bp-line); }
  body.premium-site .table-scroll { border:1px solid var(--bp-line); border-radius:10px; }
  body.premium-site :is(.list-result,.overflow-preview) { background:var(--bp-input); color:var(--bp-text); border:1px solid var(--bp-line); border-radius:10px; }
  body.premium-site .device-settings { background:var(--bp-raised); border-color:var(--bp-line); }
  body.premium-site .device-settings summary { color:var(--bp-accent); }
  body.premium-site .team-editor label { color:#d3e4c7; }
  /* QR paper remains white for reliable scanning; never recolor SVG graphics. */
  body.premium-site .qr-notice { background:var(--bp-panel); border-color:var(--bp-line); }
  body.premium-site .qr-code { background:white; padding:12px; border-radius:8px; }

  /* Timer / server-clock utility shell. */
  body.premium-site .timer-controls { background:var(--bp-panel); border-color:var(--bp-line); padding:28px; border-radius:20px; box-shadow:var(--bp-shadow); }
  body.premium-site .timer-display { background:#1b2b20; border-color:var(--bp-line); padding:32px 24px; border-radius:20px; box-shadow:var(--bp-shadow); }
  body.premium-site .timer-digits { color:var(--bp-accent); font-weight:750; font-size:clamp(38px,5vw,64px); letter-spacing:-.045em; }
  body.premium-site .timer-state { color:#d8eacb; }
  body.premium-site :is(.timer-help,.timer-options,.timer-limit) { color:var(--bp-muted); }
  body.premium-site :is(.timer-limit,.clock-panel,.clock-reference) { border-color:var(--bp-line); }
  body.premium-site .clock-panel strong,
  body.premium-site .clock-window-digits { color:var(--bp-accent); }
  body.premium-site .clock-panel :is(p,span) { color:var(--bp-muted); }
  body.premium-site .timer-display progress,
  body.premium-site .timer-display progress::-webkit-progress-bar { background:#344a36; }
  body.premium-site .timer-display progress::-webkit-progress-value { background:var(--bp-accent); }
  body.premium-site .timer-display progress::-moz-progress-bar { background:var(--bp-accent); }
  body.premium-site .timer-display.is-finished { background:#292d1c; border-color:#a1ad5a; }
  body.premium-site .timer-toast { background:#1d2c23; border-color:var(--bp-line); border-left-color:var(--bp-accent); color:var(--bp-text); box-shadow:0 14px 44px #0006; }
  body.premium-site .timer-toast strong { color:var(--bp-accent); }
  body.premium-site .timer-toast button { color:var(--bp-text); }

  /* Editorial and directory surfaces; screenshots and illustrations stay authored. */
  body.premium-site :is(.content-section,.guide-section) { border-color:var(--bp-line); }
  body.premium-site :is(.content-section > p,.prose p,.guide-intro,.steps) { color:var(--bp-muted); font-size:14px; line-height:1.95; }
  body.premium-site :is(.source-box,.example-screen figcaption) { color:var(--bp-muted); font-size:12px; }
  body.premium-site :is(.formula-box,.aside-note,.next-tools,.case-result,.case-check) { background:var(--bp-raised); border:1px solid var(--bp-line); border-radius:12px; color:var(--bp-text); }
  body.premium-site .formula-box { color:#d0e6bd; }
  body.premium-site .example-box { background:#272a1e; border-left-color:#a38d53; color:var(--bp-warning); }
  body.premium-site .example-box > span { color:var(--bp-warning); }
  body.premium-site .example-box p { color:#c6c8ac; }
  body.premium-site .case-card { background:var(--bp-panel); border-color:var(--bp-line); padding:26px; border-radius:18px; }
  body.premium-site .case-card :is(h3,h4) { color:var(--bp-text); }
  body.premium-site :is(.case-card > p,.case-check p,.case-check ul,.aside-note p) { color:var(--bp-muted); font-size:13px; }
  body.premium-site .walkthrough-grid > a { background:var(--bp-panel); border-color:var(--bp-line); border-radius:14px; padding:22px; }
  body.premium-site .walkthrough-grid > a:hover { background:#223226; border-color:#73945f; }
  body.premium-site .walkthrough-grid span { color:var(--bp-muted); font-size:13px; }
  body.premium-site .reading-aside { border-color:var(--bp-line); }
  body.premium-site .reading-aside > a { color:var(--bp-muted); }
  body.premium-site .reading-aside > a:hover { color:var(--bp-accent); }
  body.premium-site :where(.content-section,.guide-section,.prose,.timer-controls) details { border-color:var(--bp-line); }
  body.premium-site :where(.content-section,.guide-section,.prose,.timer-controls) summary { color:#dbe8d3; min-height:28px; font-size:14px; }
  body.premium-site :where(.content-section,.guide-section,.prose,.timer-controls) details p { color:var(--bp-muted); font-size:13px; }
  body.premium-site :where(.calculator-page,.prose,.guide-directory,.related-grid) .tool-card { background:var(--bp-panel); border-color:var(--bp-line); color:var(--bp-text); }
  body.premium-site :where(.calculator-page,.prose,.guide-directory,.related-grid) .tool-card:hover { background:#223226; border-color:#73945f; }
  body.premium-site :where(.calculator-page,.prose,.guide-directory,.related-grid) .tool-icon { background:#263a27; color:var(--bp-accent); }
  body.premium-site .directory-search { color:var(--bp-text); }
  body.premium-site .favorite-toggle { color:#adbea3; }
  body.premium-site .favorite-toggle[aria-pressed=true] { color:var(--bp-accent); }
  body.premium-site .ad-slot { background:#131e18; border-color:var(--bp-line); color:var(--bp-muted); }

  /* Salary workbench keeps its own token contract and every disclosure/result row. */
  body.premium-site article.salary-check {
    --sc-paper:#111a17; --sc-card:#18251e; --sc-ink:#f2f7ed;
    --sc-muted:#a5b2a5; --sc-line:#33433a; --sc-accent:#b6f36d; --sc-soft:#243625;
    border-radius:20px; background:var(--sc-paper); color:var(--sc-ink);
    padding:clamp(20px,4vw,48px); font-family:inherit;
  }
  body.premium-site .salary-check :is(.sc-panel,.sc-results,.sc-scenario-card) { border-radius:14px; box-shadow:0 12px 32px #020a061a; }
  body.premium-site .salary-check :is(input[type=text],input[type=date]) { border-color:#425549; background:var(--bp-input); color:var(--bp-text); border-radius:9px; font-size:16px; }
  body.premium-site .salary-check .sc-ratio-options label { border-radius:8px; }
  body.premium-site .salary-check button { background:var(--bp-accent); color:#152011; border-color:var(--bp-accent); border-radius:9px; }
  body.premium-site .salary-check button:hover:not(:disabled) { filter:none; background:#c5ff83; }
  body.premium-site .salary-check :is(.sc-secondary,.sc-export button) { background:var(--bp-raised); color:var(--bp-accent); border-color:#486044; }
  body.premium-site .salary-check .sc-field-error { color:var(--bp-danger); }
  body.premium-site .salary-check .sc-errors { color:var(--bp-danger); background:#35221f; border-color:#82564b; }
  body.premium-site .salary-check .sc-scenario-card { padding:18px; }
  body.premium-site .salary-check .sc-demo-banner { border-radius:0 10px 10px 0; }

  /* Native examples: only outer cards, chrome, labels and transcripts.
     Local illustration tokens and svg/canvas descendants remain unchanged. */
  body.premium-site .game-scene { background:var(--bp-panel); color:var(--bp-text); border-color:var(--bp-line); border-radius:16px; }
  body.premium-site .game-scene :is(.gs-heading,.gs-status) { color:#dcebd2; }
  body.premium-site .game-scene :is(.gs-independent,.gs-note,.gs-rules,.gs-captions) { color:var(--bp-muted); }
  body.premium-site .game-scene .gs-controls > button { background:var(--bp-raised); border-color:#486044; color:var(--bp-text); border-radius:8px; }
  body.premium-site .game-scene .gs-controls > button:hover:not(:disabled) { background:#293d29; border-color:#89ac6e; }
  body.premium-site .tool-motion { background:var(--bp-panel); border-color:var(--bp-line); border-top-color:var(--bp-accent); color:var(--bp-text); border-radius:14px; }
  body.premium-site .tool-motion .tm-title { color:var(--bp-text); }
  body.premium-site .tool-motion .tm-eyebrow { color:var(--bp-accent); }
  body.premium-site .tool-motion :is(.tm-fiction,.tm-separate,.tm-note,.tm-transcript) { color:var(--bp-muted); }
  body.premium-site .tool-motion .tm-controls button { background:var(--bp-raised); border-color:#486044; color:var(--bp-accent); border-radius:8px; }
  body.premium-site .tool-motion .tm-controls [data-tm-state-text] { color:var(--bp-muted); }
  body.premium-site .tool-motion .tm-transcript { border-color:var(--bp-line); }
  body.premium-site .tool-motion .tm-steps li { color:var(--bp-muted); }
  body.premium-site .tool-motion .tm-steps [aria-current=step] { color:var(--bp-accent); }
  body.premium-site .tool-motion .tm-steps li span { color:#b2c5a9; }
  /* tm-group/tm-visual/tm-qr/tm-run colors and all row transforms are untouched. */

  /* Campaign shell: explicit outer surfaces only. Do not override cp tokens. */
  body.premium-site .campaign-shell { background:var(--bp-bg); color:var(--bp-text); font-family:inherit; }
  body.premium-site .campaign-shell .cp-top { border-color:var(--bp-line); }
  body.premium-site .campaign-shell .cp-brand { color:var(--bp-text); }
  body.premium-site .campaign-shell .cp-brand-mark { background:#233624; color:var(--bp-accent); box-shadow:none; }
  body.premium-site .campaign-shell .cp-brand small { color:var(--bp-muted); }
  body.premium-site .campaign-shell .cp-top nav button { color:var(--bp-muted); background:transparent; }
  body.premium-site .campaign-shell .cp-top nav button:hover { color:var(--bp-accent); }
  body.premium-site .campaign-shell .cp-footer { color:var(--bp-muted); border-color:var(--bp-line); font-size:11px; letter-spacing:.02em; }
  body.premium-site .campaign-shell :is(.cp-hub-intro,.cp-lobby) h1 { color:var(--bp-text); letter-spacing:-.045em; }
  body.premium-site .campaign-shell :is(.cp-hub-intro,.cp-lobby) h1 em { color:var(--bp-accent); }
  body.premium-site .campaign-shell :is(.cp-lobby-promise,.cp-hub-intro > div > p:last-child) { color:var(--bp-muted); }
  body.premium-site .campaign-shell .cp-lobby-links button { color:#c5d7b9; border-color:#486044; }
  body.premium-site .campaign-shell .cp-game-card { background:var(--bp-panel); border-color:var(--bp-line); color:var(--bp-text); box-shadow:0 12px 28px #02080533; border-radius:20px; }
  body.premium-site .campaign-shell .cp-game-card:hover { border-color:#7e9f66; box-shadow:0 16px 34px #02080544; }
  body.premium-site .campaign-shell .cp-game-card > span:not(.cp-card-art,.cp-card-type,.cp-card-link) { color:var(--bp-muted); font-size:12px; }
  body.premium-site .campaign-shell .cp-game-card :is(.cp-card-type,.cp-card-link) { color:#c1e99c; }
  body.premium-site .campaign-shell .cp-chapter-card { background:var(--bp-panel); border-color:var(--bp-line); box-shadow:none; }
  body.premium-site .campaign-shell .cp-chapter-card > p:not(.cp-eyebrow) { color:var(--bp-muted); }
  body.premium-site .campaign-shell .cp-play-head { color:var(--bp-text); }
  body.premium-site .campaign-shell .cp-play-head #cp-goal { color:var(--bp-muted); font-size:12px; }
  body.premium-site .campaign-shell .cp-play-aside { background:var(--bp-panel); border-color:var(--bp-line); box-shadow:none; }
  body.premium-site .campaign-shell .cp-play-aside h2 { color:var(--bp-text); }
  body.premium-site .campaign-shell .cp-play-aside > p:not(.cp-eyebrow,.cp-fine) { color:var(--bp-muted); font-size:12px; }
  body.premium-site .campaign-shell :is(.cp-back,.cp-secondary,.cp-tools button,.cp-dialog-close) { background:var(--bp-raised); color:#d1e2c4; border-color:#486044; box-shadow:none; }
  body.premium-site .campaign-shell .cp-tools button:hover:not(:disabled) { background:#293d29; }
  body.premium-site .campaign-shell .cp-primary { background:var(--bp-accent); border-color:var(--bp-accent); color:#152011; box-shadow:none; }
  body.premium-site .campaign-shell .cp-primary:hover:not(:disabled) { background:#c5ff83; }
  body.premium-site .campaign-shell .cp-modal { background:var(--bp-panel); color:var(--bp-text); border-color:var(--bp-line); box-shadow:0 28px 80px #0008; }
  body.premium-site .campaign-shell .cp-modal > p:not(.cp-eyebrow) { color:var(--bp-muted); }
  body.premium-site .campaign-page > .campaign-mode-nav { background:var(--bp-panel); color:var(--bp-muted); border-color:var(--bp-line); }
  body.premium-site .campaign-page > .campaign-mode-nav a { background:var(--bp-raised); color:#d6e5cc; border-color:#486044; border-radius:10px; }
  body.premium-site .campaign-page > #rules { color:var(--bp-muted); }
  body.premium-site .campaign-page > #rules :is(h2,h3) { color:var(--bp-text); }
  body.premium-site .campaign-hub > [data-campaign-adventure] { background:var(--bp-panel); border-color:var(--bp-line); }
}

@media screen and (max-width:900px) {
  body.premium-site > header .header-inner { gap:28px; padding-inline:24px; }
  body.premium-site .reading-layout { gap:30px; }
}
@media screen and (max-width:760px) {
  body.premium-site :where(.calculator-layout,.utility-layout) > .form-panel,
  body.premium-site :is(.result-panel,.utility-result,.timer-controls,.timer-display) { padding:24px 20px; }
  body.premium-site .result-panel { border-left:0; border-top-color:var(--bp-line); }
  body.premium-site .timer-display { position:static; }
  body.premium-site .timer-digits { font-size:clamp(36px,10vw,58px); }
  body.premium-site .case-card { padding:21px 18px; }
  body.premium-site .page-heading { padding-block:26px; }
  body.premium-site > footer .footer-inner { padding:30px 22px; }
  body.premium-site .campaign-shell .cp-game-card strong { font-size:20px; }
  body.premium-site .campaign-shell .cp-game-card > span:not(.cp-card-art,.cp-card-type,.cp-card-link) { font-size:11px; }
}
@media screen and (max-width:600px) {
  body.premium-site > header .header-inner { min-height:72px; padding:12px 20px; gap:22px; flex-wrap:wrap; }
  body.premium-site > header .brand { font-size:23px; }
  body.premium-site > header .header-inner > nav { gap:18px; font-size:12px; }
  body.premium-site > header .baro-header-actions { gap:12px; }
  body.premium-site > header .baro-search-link { font-size:11px; }
  body.premium-site > header .language-link { min-height:40px; padding:7px 10px; font-size:11px; }
  body.premium-site .breadcrumbs { font-size:11px; padding-top:20px; }
  body.premium-site .page-heading p { font-size:13px; }
  body.premium-site .salary-check .sc-footnotes { gap:24px; }
  body.premium-site .campaign-shell .cp-game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media screen and (max-width:400px) {
  body.premium-site > header .header-inner { padding-inline:16px; gap:8px 14px; }
  body.premium-site > header .brand { font-size:21px; gap:7px; }
  body.premium-site > header .brand-mark { width:17px; height:22px; }
  body.premium-site > header .header-inner > nav { gap:11px; font-size:11px; }
  body.premium-site > header .header-inner > nav small { font-size:9px; }
  body.premium-site > header .baro-header-actions { gap:8px; }
  body.premium-site > header .baro-search-link { font-size:10px; }
  body.premium-site > header .language-link { padding-inline:8px; }
  body.premium-site .utility-page .fields:not(.timer-duration-fields) { grid-template-columns:minmax(0,1fr); }
  body.premium-site :where(.calculator-layout,.utility-layout) > .form-panel,
  body.premium-site :is(.result-panel,.utility-result,.timer-controls,.timer-display) { padding:20px 16px; }
  body.premium-site .timer-duration-fields { gap:8px; }
  body.premium-site .timer-duration-fields input { font-size:20px; padding-inline:8px; }
  body.premium-site article.salary-check { padding:20px 14px; border-radius:14px; }
  body.premium-site .salary-check .sc-scenario-card { padding:14px; }
  body.premium-site .campaign-shell .cp-game-grid { grid-template-columns:minmax(0,1fr); }
  body.premium-site .campaign-shell .cp-game-card strong { font-size:22px; }
  body.premium-site .campaign-shell .cp-footer { flex-wrap:wrap; font-size:10px; }
}

/* Discovery/library chrome; covers and game art retain authored colors. */
@media screen {
  body.premium-site .search-guide .guide-lead { color:var(--bp-muted); }
  body.premium-site :is(.guide-example,.quick-tools) { background:var(--bp-panel); border-color:var(--bp-line); }
  body.premium-site .guide-update { color:var(--bp-muted); border-color:var(--bp-line); }
  body.premium-site :is(.purpose-grid,.purpose-tool-grid,.quick-tool-grid) > a { background:var(--bp-panel); border-color:var(--bp-line); color:var(--bp-text); }
  body.premium-site :is(.purpose-grid,.purpose-tool-grid,.quick-tool-grid) > a:hover { background:#223226; border-color:#73945f; box-shadow:0 10px 24px #0002; }
  body.premium-site :is(.purpose-grid,.purpose-tool-grid,.quick-tool-grid) span { color:var(--bp-muted); }
  body.premium-site :is(.purpose-grid,.purpose-tool-grid) small,
  body.premium-site :is(.tool-task-guide,.search-guide .content-section) > a { color:var(--bp-accent); }
  body.premium-site .game-library-heading p { color:var(--bp-muted); }
  body.premium-site .library-count { background:#243625; color:#c7e8ab; border:1px solid #41563a; }
  body.premium-site .game-library-card { background:var(--bp-panel); border-color:var(--bp-line); box-shadow:var(--bp-shadow); }
  body.premium-site .game-card-body { color:var(--bp-text); }
  body.premium-site .game-card-body > p { color:var(--bp-muted); }
  body.premium-site .game-card-facts span { background:#253728; color:#c2d5b6; }
  body.premium-site .game-card-actions > a:not(.primary-link) { color:var(--bp-accent); }
  body.premium-site :is(.game-library,.game-public-page) .primary-link { background:var(--bp-accent); color:#152011; border-radius:9px; min-height:44px; }
  body.premium-site :is(.game-library,.game-public-page) .primary-link:hover { background:#c5ff83; }
  body.premium-site .game-library-notice { background:var(--bp-raised); border-color:var(--bp-line); }
  body.premium-site :is(.game-library-notice,.game-library-next) p { color:var(--bp-muted); }
  body.premium-site .game-library-notice a { color:var(--bp-accent); }
  body.premium-site .game-beta-notice { background:#2d2a1d; color:var(--bp-warning); border-color:#6c6041; }
  body.premium-site .game-preview figcaption { color:var(--bp-muted); }
}
/* Browser-confirmed contrast fixes for read-only guide chips and site chrome. */
@media screen {
 body.premium-site .tool-motion :is(.tm-inputs,.tm-outputs) code{background:#203024;color:#f2f7ed;border-color:#40563b}
 body.premium-site .tool-motion .tm-inputs code .tm-typed-text{color:#f2f7ed}
 body.premium-site .page-heading a.primary-link{color:#152011;background:#b6f36d}
 body.premium-site .campaign-shell .cp-brand>span{color:#f2f7ed;background:#233624}
 body.premium-site .campaign-shell .cp-brand{background:transparent}
 body.premium-site .campaign-shell .cp-footer :is(a,button){color:#c8dfb7;background:#203024;border-color:#40563b}
 body.premium-site .campaign-shell .cp-top :is(.cp-language,.cp-lang){color:#c8dfb7;background:#203024;border-color:#40563b}
}
@media screen {
 body.premium-site .campaign-hub .ag-adventure-cover{display:block;width:100%;overflow:hidden}
 body.premium-site .campaign-hub .ag-adventure-cover>img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:1200/680;object-fit:cover}
}
@media screen {
 body.premium-site .campaign-shell button.cp-locale{background:#203024;color:#c8dfb7;border-color:#40563b}
 body.premium-site .campaign-shell .cp-footer{background:#111a17;color:#a5b2a5}
 body.premium-site .campaign-shell .cp-footer>span{background:transparent;color:#a5b2a5}
}
@media screen {
 body.premium-site .campaign-shell .cp-top{background:#111a17}
 body.premium-site .campaign-shell .cp-top button.cp-locale{background:#203024;color:#c8dfb7;border-color:#40563b}
}
