/* Web review, 22.11.2026. Text keeps its reading size; panels may grow and scroll. */
/* The upper/lower decorative strips are separate from the metal perimeter. */
.app :is(.tc-armor-top,.tc-armor-bottom,.tc-hud-mark) { display:none; }

.app {
  --web-copy:#e1edf4;
  --web-secondary:#c5d9e5;
}

/* Operations use content-sized cards at every web width, including platform iframes. */
.app .co-scene :is(.ce-heading > span,.co-active-copy > p,.co-district-copy p,.co-empty,.co-alert span,.co-result span) {
  color:var(--web-copy); font-size:15px; line-height:1.5;
}
.app .co-scene :is(.co-limits small,.co-active-copy > small,.co-steps li,.co-district-copy p > span) {
  color:var(--web-secondary); font-size:13px; line-height:1.4; letter-spacing:.035em;
}
.app .co-scene :is(.co-alert b,.co-result b) { font-size:16px; line-height:1.4; }
.app .co-scene .co-list h3 { font-size:19px; line-height:1.3; color:#f1f8fc; }
.app .co-scene .co-district-copy h3 { font-size:24px; line-height:1.2; }
.app .co-scene .co-district-copy em { font-size:15px; line-height:1.4; }
.app .co-scene .co-district-copy { gap:9px; padding:14px 8px 0; }
.app .co-scene .co-district > .tc-cut-body { padding:18px; gap:6px; }
.app .co-scene .co-district-art { height:150px; flex-shrink:0; }
.app .co-scene .co-district-cta { margin-top:auto; padding:12px 6px 6px; }
.app .co-scene .co-list > .tc-cut-body { padding:26px 30px; gap:14px; }
.app .co-scene .co-alert { grid-template-columns:minmax(0,1fr) minmax(145px,190px); gap:16px; padding-block:14px; }
.app .co-scene .co-result { padding-block:12px; }
.app .co-scene .co-steps { flex-wrap:wrap; gap:8px; }
.app .co-scene .co-steps li { padding:8px 12px; }
.app .co-scene .co-active-copy { padding:26px 34px; gap:12px; }
.app .co-scene .co-active-copy h2 { font-size:26px; line-height:1.2; }
.app .co-scene .co-status { font-size:17px; }
.app .co-scene .co-limits b { font-size:24px; }
.app .co-scene .ce-button { min-height:46px; height:auto; font-size:14px; }
.app .co-scene .ce-button > .tc-cut-body { min-height:46px; height:auto; padding:10px 16px; line-height:1.3; }
.app .co-scene .co-cta .co-go { width:min(300px,100%); }
.app .co-scene .co-district-cta .ce-button { width:100%; }
.app .co-scene .co-rule { color:#ffe0a0; }
.app .co-scene .co-reward b { color:#b5f5d7; }
.app .co-scene .ce-heading h1 { font-size:clamp(28px,3vw,46px); line-height:1.15; }
.app .co-scene .ce-heading > span { max-width:100%; }

@media (min-width:768px) {
  .app.desktop .co-districts { grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:20px; }
  .app.desktop .co-lists { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
}
@media (min-width:768px) and (max-width:1200px) {
  .app.desktop .co-lists { grid-template-columns:1fr; }
  .app.desktop .co-active-copy { width:100%; }
  .app.desktop .co-active .co-pano { width:100%; opacity:.3; }
}
@media (max-width:767px) {
  .app.mobile .co-scene { --ce:1px; padding:16px 8px; }
  .app.mobile .co-content { width:100%; min-width:0; }
  .app.mobile .co-scene .ce-heading { padding:8px 4px; }
  .app.mobile .co-scene .ce-footer { flex-wrap:wrap; }
  .app.mobile .co-scene .ce-footer .ce-button { flex:1 1 130px; }
  .app .co-districts,.app .co-lists { grid-template-columns:1fr; gap:18px; }
  .app .co-scene .co-alert { grid-template-columns:1fr; }
  .app .co-scene .co-active-copy { padding:24px; }
  .app .co-scene .co-list > .tc-cut-body { padding:24px; }
  .app .co-scene .co-limits { flex-wrap:wrap; }
}

/* Small text adjustments only. Keep the existing scene and frame geometry. */
@media (min-width:768px) {
  .app.desktop :is(.city-title small,.city-card-text em,.archive-featured-description,.cd-description,
    .cd-ability-copy p,.deck-battle-rule,.deck-tutorial-guide,.st-note,.st-hint,.st-row-copy small,
    .st-volume-label,.st-account dt,.st-version,.um-rule,.um-ss-copy em,.vt-heading span,
    .vt-pick p,.vt-guarantees p,.vt-history p,.vt-rewards p,.pd-panel-lead,.pd-record blockquote,
    .pd-service small,.mh-meta,.md-meta,.ar-rules,.ar-empty,.org-scene-copy p) { color:#cadde8; }
  .app.desktop .city-district :is(span,small) { color:#d4e4ed; font-size:12.2px; line-height:1.3; }
  .app.desktop .city-district strong { font-size:15.2px; }
  .app.desktop .city-district { min-height:100px; }
  .app.desktop :is(.nav-label,.shell-wallet span,.shell-profile-hint) { font-size:12.25px; }
  .app.desktop :is(.st-note,.st-hint,.st-row-copy small,.st-volume-label,.st-account dt,.st-version,
    .um-button,.um-product-top small,.um-product dt,.um-section small,.pd-record dt,.pd-record dd,
    .pd-account-xp,.pd-portrait-caption p,.pd-emblem p,.pd-emblem strong,.pd-emblem small,
    .pd-location p,.pd-location span,.pd-location strong,.pd-panel-lead) { font-size:13.25px; }
  .app.desktop :is(.bh-status,.gl-status,.pve-op-status,.pb-btn,.pb-card p,.pb-card li,
    .pb-deck-name,.pb-deck-count,.qm-status p,.qm-info-card p,.ct-progress-text,.ct-rewards,
    .ct-claim,.ar-rules,.ar-empty) { font-size:14.25px; }
  .app.desktop :is(.vt-heading span,.vt-pick p,.vt-guarantees p,.vt-history p,.vt-rewards p) { font-size:14.25px; }

  /* Names, rarity and stats each own a separate row inside the original small card. */
  .app.desktop .archive-mini-content { grid-template-rows:minmax(0,1fr) 44px 27px; }
  .app.desktop .archive-mini-name { min-height:0; padding:3px 4px; gap:2px; }
  .app.desktop .archive-mini-name small { font-size:8.5px; line-height:1; }
  .app.desktop .archive-mini-name strong { font-size:11px; line-height:1.05; overflow-wrap:normal; }
  .app.desktop .archive-mini-stats em { min-width:0; min-height:0; padding:3px 4px; font-size:12.25px; }
  .app.desktop .archive-mini-stats small { color:#d4e4ed; font-size:9px; line-height:1.1; white-space:nowrap; }

  /* Match setup keeps both values visible, with the label between them. */
  .app.desktop .qm-card-content > span:not(.qm-card-art) { display:grid; grid-template-columns:14px minmax(0,1fr) 14px; gap:2px; padding:4px; }
  .app.desktop .qm-card-content small { font-size:9px; line-height:1.1; color:#d1e1ea; white-space:nowrap; text-align:center; }
  .app.desktop .qm-card-content b { font-size:12.25px; line-height:1.1; }
  .app.desktop .qm-card-content > strong { font-size:10.25px; }

  /* Bottom actions remain inside each existing profile frame in early-season states too. */
  .app.desktop .pd-panel .pd-content { height:100%; min-height:0; padding:18px; display:flex; flex-direction:column; }
  .app.desktop .pd-panel header { margin-bottom:8px; flex-shrink:0; }
  .app.desktop .pd-panel-detail { min-height:0; flex:1; }
  .app.desktop .pd-panel .pd-panel-button { margin:8px 0 0 auto; flex-shrink:0; min-height:36px; padding:6px 10px; font-size:12.25px; }
  .app.desktop .pd-panel .pd-panel-lead { font-size:11.25px; margin-bottom:6px!important; }
  .app.desktop :is(.pd-task > span,.pd-season-level span,.pd-arena-rating span) { color:#cbdde7; font-size:10.25px; }
  .app.desktop .pd-rewards > small { color:#cbdde7; font-size:9.25px; }
  .app.desktop .deck-card-headline > strong { font-size:9.25px; }
  .app.desktop .deck-card-meta > small { font-size:11.25px!important; }
  .app.desktop .deck-ability small { color:#c4d8e4; font-size:7.25px; }
  .app.desktop .deck-ability strong { font-size:8.25px; }
  .app.desktop :is(.sp-progress-caption > span,.sp-premium-status,.sp-level-badge small,.sp-r-extra,.sp-r-state) { font-size:12.25px; }
  .app.desktop .sp-r-name { font-size:13.25px; }
  .app.desktop :is(.sp-r-extra,.sp-r-state,.mh-stat small,.mh-info small,.md-info small,.md-stats,.cw-message,.cs-stats) { color:#cbdde7; }
}
@media (min-width:768px) and (max-width:1100px) {
  .app.desktop .org-scene-copy > small { margin-bottom:3px; letter-spacing:.035em; }
  .app.desktop .org-scene-copy h2 { font-size:20px; line-height:1.05; }
  .app.desktop .org-scene-copy strong { margin-top:3px; font-size:12.25px; line-height:1.2; }
  .app.desktop .org-scene-copy p { margin-top:2px; padding-top:2px; font-size:13.25px; line-height:1.2; }
}

/* A resolved city event adds a short district note. Keep it inside the existing frame. */
.app.desktop .pb-district > .tc-cut-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#52788c #04101a; }
.app.desktop .pb-district > .tc-cut-body > * { flex-shrink:0; }
.app.desktop .pb-district .pb-note { font-size:13px; line-height:1.35; margin-top:6px; color:#ffadb4; flex-shrink:0; }
@media (min-width:1551px) {
  .app.desktop .pb-district:has(.pb-note) .pb-art { height:calc(84 * var(--p)); margin-block:calc(8 * var(--p)); }
}

/* Large collection/dossier cards: give art the space recovered from compact stat rows. */
.app.desktop .archive-featured-content {
  grid-template-rows:minmax(150px,1fr) 70px 36px 28px 28px minmax(64px,auto);
  gap:4px;
}
.app.desktop .archive-featured-art > img { object-fit:contain; }
.app.desktop .archive-featured-name { padding:5px 8px; }
.app.desktop .archive-featured-name h2 { font-size:20px; line-height:1.1; }
.app.desktop .archive-featured-stats div { padding:3px 9px; }
.app.desktop .archive-featured-stats strong { font-size:20px; }
.app.desktop .archive-featured-effect { min-height:0; padding:3px 9px; }
.app.desktop .archive-featured-effect :is(small,strong) { font-size:11px; }
.app.desktop .archive-featured-description { font-size:13px; line-height:1.35; padding:3px 7px; }

.app.desktop .cd-card-content { grid-template-rows:minmax(130px,1fr) 60px 32px 26px 26px max-content; gap:3px; }
.app.desktop .cd-card .archive-featured-description { font-size:12px; line-height:1.3; }

/* Keep multi-line active-deck headings and their values in normal flow. */
.app.desktop .battle-hub .bh-deck > .tc-cut-body { display:flex; flex-direction:column; align-items:flex-start; gap:5px; padding:calc(27 * var(--bu)) calc(52 * var(--bu)); }
.app.desktop .battle-hub .bh-deck :is(.bh-status,.bh-deck-name,.bh-deck-count) { position:static; flex-shrink:0; width:calc(210 * var(--bu)); margin:0; line-height:1.25; overflow-wrap:anywhere; }
.app.desktop .battle-hub .bh-deck .bh-status { padding-bottom:4px; }
.app.desktop :is(.deck-pool-controls label,.deck-name > span,.deck-slot button small,.deck-slot > span,.deck-slot p,
 .deck-synergy h2,.deck-synergy p,.deck-synergy-hint,.deck-library-hint,.deck-plaque-main small,
 .deck-card-meta > small,.deck-ability small,.deck-inspector-stats small,.deck-inspector p,.deck-save-status,
 .archive-featured-stats small,.archive-featured-effect small,.archive-featured-name > span) { color:#d6e5ee; }
/* Insets protect the slanted bottom corners, including long faction names. */
.app.desktop .pb-opponent > .tc-cut-body { padding-inline:max(22px,calc(22 * var(--p))); padding-bottom:max(24px,calc(24 * var(--p))); }
.app.desktop .pb-opponent :is(h2,p) { flex-shrink:0; overflow-wrap:anywhere; }
.app.desktop .pb-opponent .pb-art { flex-shrink:1; min-height:40px; }

@media (max-width:1550px) {
  .app.desktop .pve-sector .pve-op-status { font-size:12px; line-height:1.25; }
  .app.desktop .pve-sector .pve-op-open { width:100%; justify-content:center; padding-inline:4px; font-size:11px; letter-spacing:.02em; min-height:24px; white-space:nowrap; }
}

.app.desktop .deck-faction-pick button:not(.selected) { color:#d6e5ee; }

/* Local review 26.11.2026: keep the selected card beside the scrolling collection. */
@media (min-width:768px) {
  .app.desktop .archive-stage { grid-template-columns:minmax(240px, min(34%,390px)) minmax(0,1fr); align-items:start; }
  .app.desktop .archive-stage > .archive-index { grid-column:2; grid-row:1; min-width:0; }
  .app.desktop .archive-stage > .archive-featured {
    grid-column:1; grid-row:1; position:sticky; top:116px; align-self:start; justify-self:center;
    width:min(100%,390px,calc((100dvh - 86 * var(--u) - 188px) * 320 / 464));
  }
}
@media (min-width:768px) and (max-width:1200px) {
  .app.desktop .archive-featured-content { grid-template-rows:minmax(0,1fr) max-content 32px 24px 24px max-content; gap:3px; }
  .app.desktop .archive-featured-name { padding:4px 6px; }
  .app.desktop .archive-featured-name h2 { font-size:18px; }
  .app.desktop .archive-featured-name :is(p,span) { font-size:10px; }
  .app.desktop .archive-featured-description { font-size:12px; line-height:1.3; max-height:96px; overflow:auto; scrollbar-width:thin; }
}


/* Low platform iframes need compact rows even when the viewport is wide. */
@media (min-width:768px) and (max-height:800px) {
  .app.desktop .archive-featured-content { grid-template-rows:minmax(0,1fr) max-content 28px 22px 22px max-content; gap:3px; }
  .app.desktop .archive-featured-name { padding:3px 5px; }
  .app.desktop .archive-featured-name h2 { font-size:16px; line-height:1.1; }
  .app.desktop .archive-featured-name :is(p,span) { font-size:9px; }
  .app.desktop .archive-featured-stats div { padding:2px 7px; }
  .app.desktop .archive-featured-effect { padding:2px 6px; }
  .app.desktop .archive-featured-effect :is(small,strong) { font-size:10px; }
  .app.desktop .archive-featured-description { font-size:11px; line-height:1.3; max-height:58px; overflow:auto; scrollbar-width:thin; }
}
@media (min-width:768px) and (max-height:800px) {
  .app.desktop .archive-featured-stats strong { font-size:18px; line-height:1; }
  .app.desktop .archive-featured-stats small { line-height:1; }
}
/* At extreme heights, scroll the preview contents rather than hide the artwork. */
@media (min-width:768px) and (max-height:520px) {
  .app.desktop .archive-featured-content { grid-template-rows:90px max-content 28px 22px 22px max-content; overflow-y:auto; scrollbar-width:thin; }
  .app.desktop .archive-featured-description { max-height:none; overflow:visible; }
}
