/* /ipo/ rooms: what the site adds inside each room's shadow root, after the original's own stylesheet (ipo-a.css / ipo-b.css).
   Owner 2026-11-09 ~21:00 / ~22:00: the meaning of a move right under its control (.near), the longer readings only after the first
   move, the other question only at the room's end (.bridge). */
[hidden] { display: none !important; }   /* (the originals' display rules would otherwise win over the hidden attribute) */
:host { isolation: isolate; }   /* (the originals' z-index:-1 glow / background art paint above the room's own background, as they did over the page canvas) */

/* (the near line under a control: from → to, then what it means) */
.near-say { margin: 12px 0 0; padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(216,184,135,.07); font-size: 13px; line-height: 1.75; color: var(--ink); }
.near-say .ft { display: block; font-family: Georgia, serif; color: var(--gold2, var(--gold-bright)); font-size: 14px; letter-spacing: 0; margin-bottom: 2px; }
.near-say .still { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.near-say a, .near-ch a { color: var(--gold2, var(--gold-bright)); }
.flash { animation: nearflash .9s ease-out; }
@keyframes nearflash { from { filter: brightness(1.45); } to { filter: none; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }

/* (room B: the original's Δ and its sentence under the presets; the two longer readings wait for the first move once script runs) */
:host(.ipo-room-b) .near { margin-top: 16px; }
:host(.ipo-room-b) .near .result-number { margin-top: 4px; }
:host(.ipo-room-b) .near #delta-description { margin-top: 4px; }
:host(.ipo-room-b) .near-say.c { margin-top: 14px; }
:host(.ipo-room-b[data-live]:not([data-moved])) .discovery, :host(.ipo-room-b[data-live]:not([data-moved])) #stress-discovery { display: none; }
:host(.ipo-room-b[data-moved]) .discovery, :host(.ipo-room-b[data-moved]) #stress-discovery { animation: roomfind .5s ease-out both; }
@keyframes roomfind { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { :host(.ipo-room-b[data-moved]) .discovery, :host(.ipo-room-b[data-moved]) #stress-discovery { animation: none; } }

/* (room A: the three routes between the sliders and the presets; the change line's two lines are reserved so the presets never move) */
:host(.ipo-room-a) .near { margin: 16px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(16,35,51,.55); }
.near-k { margin: 0 0 8px; font-size: 11px; letter-spacing: .06em; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; line-height: 1.4; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-hi); color: var(--muted); }
.chip[data-on=true] { border-color: var(--gold); background: var(--gold); color: #06121d; font-weight: 700; }
.chip[data-miss=true] { opacity: .5; text-decoration: line-through; }
.near-ch { margin: 10px 0 0; min-height: 5.1em; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.near-ch b { color: var(--ink); font-weight: 600; }
@media (max-width: 899px) { .near-ch { min-height: 6.8em; } }   /* (F F-52EF b28e7c0a: since option B (52ef7d45) the longest same-result line (no feasible route, 「 · 다른 경로의 수치도 바뀌었습니다」) takes four lines at 360–899 px on real taps; reserve them below 900 px so the presets never move) */
@media (max-width: 359px) { .near-ch { min-height: 8.5em; } }   /* (F F-52EF: at 344 a sub-1만원 least shortfall with the same suffix takes five lines; reachable: 모두 실패-like states, e.g. reserve 950 ↔ 1,000 with monthly 25, loss 8,200, benefit 600, point year 15 → 「모두 모으기 최대 부족액 104 → 1만원 미만(세 경로 중 최소) · 다른 경로의 수치도 바뀌었습니다」) */
.near-ch em { font-style: normal; color: var(--gold-bright); font-weight: 700; }

/* (the room's end: the other question) */
.bridge { margin: 44px 0 0; padding: 30px 0 8px; border-top: 1px solid var(--line); }
.bridge .eb { font-size: 11px; letter-spacing: .16em; color: var(--gold); }
.bridge a { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding: 20px; border: 1px solid var(--gold); border-radius: 18px;
  background: linear-gradient(135deg, rgba(16,35,53,.9), rgba(12,28,43,.6)); text-decoration: none; color: inherit; }   /* (owner LAB-FINAL-ORDERS §3 A, F: the next question carries the gold edge; the 원문 ↗ exits are gold outlines, same size and place) */
.bridge a strong { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(19px, 4.8vw, 26px); line-height: 1.35; color: var(--ink); }
.bridge a small { display: block; margin-top: 6px; color: var(--dim, var(--soft)); font-size: 12px; }
.bridge a .arr { color: var(--gold); font-size: 22px; }
.bridge a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* (owner LAB-FINAL-ORDERS §3 C, F + W2: below 900 px the English half of 「NN / ENGLISH」, the decorative BASECAMP indexes and the panel eyebrows go;
   the number and every Korean title, side line and technical term stay) */
@media (max-width: 899px) { .en { display: none; } }
