/* Kharg Island. Built on shared/css/tsm.css tokens only. U.S. = --us, Iran = --red. */
.kh-actions { max-width: 1400px; margin: 12px auto 0; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.kh-learn { max-width: 1400px; margin: 12px auto 0; }
.kh-learn .learn-banner { margin: 0; }
.kh-actions > div { display: flex; gap: 8px; flex-wrap: wrap; }
.kh-flag { margin: 0; font-size: 13px; padding: 5px 10px; border: 1px dashed var(--warn); border-radius: 4px; color: var(--ink); }
.kh-flag b { color: var(--warn); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.mt { margin-top: 14px !important; }

/* Map */
.tsm-sea { fill: var(--sea); }
.tsm-land { fill: var(--land); stroke: var(--coast); stroke-width: 1; }
.tsm-grat line { stroke: var(--grat); stroke-width: 1; }
.tsm-grat text { font: 11px var(--mono); fill: var(--faint); }
.kh-big { font: 700 28px var(--display); letter-spacing: .2em; fill: var(--muted); text-anchor: middle; }
.kh-water { font: italic 16px var(--body); fill: var(--muted); text-anchor: middle; }
.kh-note { font: 12px var(--mono); fill: var(--muted); paint-order: stroke; stroke: var(--sea); stroke-width: 3px; }
.kh-note.mid, .mid { text-anchor: middle; }
.kh-note.end, .end { text-anchor: end; }
.kh-arrow { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.kh-headfill { fill: var(--muted); }
.kh-dist { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 4; }
.kh-scale line { stroke: var(--muted); stroke-width: 2; }
.kh-scale text { font: 12px var(--mono); fill: var(--muted); }
.kh-town { fill: var(--panel); stroke: var(--ink); stroke-width: 2; }
.kh-plabel { font: 600 14px var(--display); fill: var(--ink); paint-order: stroke; stroke: var(--land); stroke-width: 4px; }
.kh-plabel.end { text-anchor: end; }
.kh-ilabel { font: 700 17px var(--display); text-anchor: end; fill: var(--ink); paint-order: stroke; stroke: var(--sea); stroke-width: 4px; }
.kh-ring { fill: none; stroke: var(--us); stroke-width: 2; stroke-dasharray: 8 6; opacity: .75; }
.kh-mine { fill: var(--red); }
.kh-reinf { stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 5; fill: none; opacity: .45; }
.kh-reinf.on { opacity: 1; stroke-width: 3.5; }
.kh-reinf.off { stroke: var(--muted); opacity: .6; }
.kh-usarea { fill: color-mix(in srgb, var(--us) 8%, transparent); stroke: var(--us); stroke-width: 1.5; stroke-dasharray: 6 4; }
.kh-ship { fill: var(--us); stroke: var(--panel); stroke-width: 1; }
.kh-ship.d { fill: color-mix(in srgb, var(--us) 65%, var(--panel)); }
.kh-ship.lost { fill: none; stroke: var(--us); stroke-dasharray: 2 2; opacity: .6; }
.kh-ztitle { font: 600 15px var(--display); fill: var(--ink); paint-order: stroke; stroke: var(--sea); stroke-width: 4px; }
.kh-ztitle.us { fill: var(--us); }
.kh-ztitle.ir { fill: var(--red); stroke: var(--panel); }
.kh-zone rect { fill: var(--panel); stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 6 4; opacity: .96; }
.kh-zone .kh-note { stroke: var(--panel); }
.kh-zl { font: 12px var(--body); fill: var(--ink); }
.kh-tok { fill: var(--red); stroke: var(--panel); stroke-width: 1; }
.kh-tok.dead { fill: none; stroke: var(--muted); stroke-dasharray: 2 2; }
.kh-x { stroke: var(--ink); stroke-width: 1.8; }
.kh-inbox { fill: var(--sea); stroke: var(--ink); stroke-width: 1.5; }
.kh-inset .kh-ztitle { font-size: 16px; }
.kh-hit { fill: transparent; }
.kh-sector { cursor: pointer; }
.kh-sector.dim { cursor: default; opacity: .35; }
.kh-sector:focus-visible { outline: none; }
.kh-sector:focus-visible .kh-route { stroke: var(--accent); stroke-width: 4; }
.kh-route { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 4 4; }
.kh-sector.on .kh-route { stroke: var(--us); stroke-dasharray: none; stroke-width: 3; }
.kh-sector:hover .kh-route { stroke: var(--ink); }
.kh-slabel { font: 600 13px var(--display); fill: var(--ink); paint-order: stroke; stroke: var(--sea); stroke-width: 4px; }
.kh-slabel.start { text-anchor: start; } .kh-slabel.end { text-anchor: end; }
.kh-sector.on .kh-slabel { fill: var(--us); }
.kh-af { stroke: var(--ink); stroke-width: 1.2; }
.kh-af.ir { fill: var(--red); } .kh-af.us { fill: var(--us); } .kh-af.wrecked { fill: var(--muted); stroke-dasharray: 2 2; }
.kh-adv { fill: none; stroke: var(--us); stroke-width: 5; stroke-linecap: round; opacity: .85; }
.kh-lodge circle { fill: var(--us); stroke: var(--panel); stroke-width: 2; opacity: .92; }
.kh-lodge text, .kh-garr text { font: 600 12px var(--mono); fill: var(--panel); text-anchor: middle; pointer-events: none; }
.kh-garr rect { fill: var(--red); stroke: var(--panel); stroke-width: 2; opacity: .9; }

/* Play bar */
.playbar { padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.pb-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.scrub input { width: 100%; accent-color: var(--brand-ink); }
.pb-t { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--ink); }
.playbar .tsm-export { grid-column: 1 / -1; }

/* Turn log and state */
.turncols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.turncols.tracks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.res { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
table.log { font-size: 12px; }
table.log td, table.log th { padding: 5px 7px; }
table.log td.num { white-space: nowrap; }
table.log tr.us td:last-child { color: var(--us); font-weight: 600; }
table.log tr.ir td:last-child { color: var(--red); font-weight: 600; }
.rolls { white-space: normal !important; max-width: 150px; }
.roll { display: inline-block; font-size: 11px; padding: 0 3px; border-radius: 2px; color: var(--muted); }
.roll.hit { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); font-weight: 600; }
.endline { margin: 4px 0 0; padding: 8px 10px; border-left: 3px solid var(--rule); font-size: 13px; }
.endline.win { border-color: var(--us); } .endline.fail { border-color: var(--red); } .endline.mixed { border-color: var(--warn); }
.esc-flag { color: var(--red); }
.readout dd { text-align: right; }
table.crt { border-collapse: collapse; width: 100%; font: 11.5px var(--mono); text-align: center; }
table.crt th, table.crt td { border: 1px solid var(--rule); padding: 3px 2px; }
table.crt th { color: var(--muted); font-weight: 500; }
table.crt th.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
table.crt td.col { background: color-mix(in srgb, var(--accent) 8%, transparent); }
table.crt td.hit { outline: 2px solid var(--accent); outline-offset: -2px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--accent) 25%, transparent); }
.c-AR, .c-AL { color: var(--red); } .c-DL, .c-DR { color: var(--us); } .c-EX { color: var(--muted); }
.crt-key { list-style: none; margin: 4px 0 0; padding: 0; font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; gap: 1px; }
.crt-key b { font-family: var(--mono); display: inline-block; width: 24px; }

/* Escalation and oil tracks */
.lbl { margin: 0 0 6px; font-size: 12.5px; }
.lbl small { color: var(--muted); font-weight: 400; }
.meter { display: block; position: relative; height: 10px; background: var(--chip); border-radius: 5px; overflow: visible; }
.meter > span { display: block; height: 100%; border-radius: 5px; transition: width .3s; }
.meter.esc > span { background: var(--red); } .meter.cost > span { background: var(--warn); }
.meter i { position: absolute; top: -3px; bottom: -3px; border-left: 2px solid var(--ink); }
.chips { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12px; border: 1px solid var(--rule); border-radius: 3px; padding: 3px 7px; color: var(--muted); }
.chips li small { display: block; font-size: 10.5px; }
.chips li.on { border-color: var(--red); color: var(--ink); background: color-mix(in srgb, var(--red) 10%, transparent); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin: 4px 0; }
.sb { flex: 1; height: 100%; display: flex; align-items: flex-end; background: color-mix(in srgb, var(--chip) 60%, transparent); border-radius: 2px; }
.sb > span { display: block; width: 100%; border-radius: 2px; }
.sb .esc { background: var(--red); } .sb .exp { background: var(--us); }
.sb.future > span { opacity: .18; }
.sb.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.readout.oil dt { font-size: 12px; }
.readout.oil dd { white-space: nowrap; }
table.oilparts { width: 100%; border-collapse: collapse; font-size: 12px; }
table.oilparts td { padding: 3px 4px; border-bottom: 1px dotted var(--rule); }
table.oilparts td.num { text-align: right; white-space: nowrap; }

/* Monte Carlo */
.mc.busy { opacity: .5; transition: opacity .2s; }
.mc-bar { display: flex; height: 22px; border-radius: 3px; overflow: hidden; border: 1px solid var(--rule); }
.seg { display: block; height: 100%; transition: width .3s; }
.seg.win, .sw.win { background: var(--us); }
.seg.fail, .sw.fail { background: var(--red); }
.seg.mixed, .sw.mixed { background: color-mix(in srgb, var(--warn) 55%, var(--panel)); }
.mc-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.mc-leg li { display: inline-flex; align-items: center; gap: 6px; }
.sw:not(.orig):not(.trl) { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.mc-cols { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 16px; margin-top: 4px; }
.eb { display: grid; grid-template-columns: minmax(0, 1fr) 70px 38px; gap: 6px; align-items: center; font-size: 12px; padding: 3px 0; border-bottom: 1px dotted var(--rule); }
.eb-bar { height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.eb-bar span { display: block; height: 100%; background: var(--red); }
.eb b { text-align: right; }
table.drv { width: 100%; border-collapse: collapse; font-size: 12px; }
table.drv th { font-weight: 500; color: var(--muted); text-align: left; font-size: 11.5px; padding: 2px 4px; }
table.drv td { padding: 3px 4px; border-bottom: 1px solid var(--rule); }
table.drv tr.ir td:first-child { color: var(--red); }
table.drv td.num { text-align: right; white-space: nowrap; width: 38px; }
td.dbar { width: 22%; min-width: 50px; position: relative; }
td.dbar::before { content: ''; position: absolute; left: 50%; top: 2px; bottom: 2px; border-left: 1px solid var(--muted); }
td.dbar span { position: absolute; top: 5px; height: 10px; border-radius: 2px; }
td.dbar .up { background: var(--us); } td.dbar .down { background: var(--muted); } td.dbar .esc { background: var(--red); }

/* Panel */
.step { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--panel); background: var(--muted); font-size: 12px; margin-right: 6px; letter-spacing: 0; }
.step.us { background: var(--us); } .step.ir { background: var(--red); }
.choices button b { display: block; font-weight: 600; }
.choices button small { display: block; color: var(--muted); font-size: 11.5px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.budget { display: flex; flex-direction: column; gap: 4px; }
.budget .bar { height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.budget .bar span { display: block; height: 100%; background: var(--us); transition: width .2s; }
.budget .flash { color: var(--bad); animation: khflash .6s 2; }
@keyframes khflash { 50% { opacity: .3; } }
.menu { display: flex; flex-direction: column; gap: 6px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px dotted var(--rule); padding-bottom: 5px; }
.st-t { display: flex; flex-direction: column; font-size: 12.5px; min-width: 0; }
.st-t small { color: var(--muted); font-size: 11.5px; }
.st-c { display: flex; align-items: center; gap: 6px; flex: none; }
.st-c output { min-width: 26px; text-align: center; font-size: 14px; }
.st-b { width: 30px; height: 30px; border: 1px solid var(--rule); background: transparent; border-radius: 3px; font-size: 17px; line-height: 1; cursor: pointer; color: var(--ink); }
.st-b:hover:not(:disabled) { border-color: var(--muted); }
.st-b:disabled { opacity: .35; cursor: default; }
.sub { display: flex; flex-direction: column; gap: 10px; }
.sub[hidden] { display: none; }
.seedrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.src-pill { color: var(--blue); text-decoration: none; }
details summary { cursor: pointer; font-size: 13px; }
details summary small { font-weight: 400; }
details[open] summary { margin-bottom: 8px; }
#iran-d .menu { margin-bottom: 8px; }
.as-g { border: 0; padding: 0; margin: 0 0 10px; }
.as-g legend { font: 600 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 4px; }
.as-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; font-size: 12px; padding: 4px 0; border-bottom: 1px dotted var(--rule); }
.as-row.changed .as-t { color: var(--accent); }
.as-t small { display: block; color: var(--muted); font-size: 11px; }
.as-i { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.as-i input { width: 64px; font: 12px var(--mono); padding: 3px 4px; border: 1px solid var(--rule); border-radius: 3px; background: var(--bg); color: var(--ink); }
.as-i small { color: var(--muted); font-size: 10.5px; }

/* Below */
.below h2.mt { margin-top: 22px; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.history li { border-left: 3px solid var(--rule); padding-left: 12px; }
.history h3 { margin: 0 0 3px; font-size: 17px; }
.history p { margin: 0 0 4px; font-size: 13px; }
.h-when { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
#param-table td:nth-child(2) { white-space: nowrap; }
#sources li span { display: block; }
#sources li:target { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.status-mini { display: none; }
.status-mini b { font-size: 18px; }
@media (max-width: 1020px) { .status-mini { display: flex; } }
@media (max-width: 900px) { .turncols, .turncols.tracks, .mc-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  table.log { font-size: 11.5px; }
  table.log td, table.log th { padding: 4px 4px; }
  table.log th { font-size: 10.5px; letter-spacing: .02em; }
  .rolls { max-width: 44px; }
  .playbar { grid-template-columns: 1fr; }
  .choices.three { grid-template-columns: 1fr; }
  .kh-zone, .kh-water { display: none; }
  .kh-note, .kh-scale text { font-size: 17px; }
  .kh-inset .kh-note { font-size: 15px; }
  .kh-inset .kh-ztitle { font-size: 21px; }
  .kh-plabel { font-size: 18px; }
  .kh-ilabel { font-size: 22px; }
  .kh-ztitle { font-size: 18px; }
  .kh-slabel { font-size: 15px; }
  .kh-big { font-size: 40px; }
  .tsm-grat text { font-size: 14px; }
  .kh-lodge text, .kh-garr text { font-size: 14px; }
}
@media (max-width: 520px) { body { padding-inline: 12px; } }
/* Phones: one section at a time (Setup / Play / 1,000 games), the turn bar pinned to the bottom. */
.kh-tabs, .kh-go { display: none; }
@media (max-width: 760px) {
  .kh-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; position: sticky; top: 0; z-index: 30;
    background: var(--bg); padding: 8px 0; margin-top: 8px; }
  .kh-tabs button { font: 600 13px var(--body); color: var(--ink); background: var(--panel); border: 1px solid var(--rule);
    border-radius: 3px; min-height: 44px; padding: 6px 4px; cursor: pointer; }
  .kh-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--bg); }
  .layout { margin-top: 4px; }
  .layout[data-tab="setup"] .stage { display: none; }
  .layout:not([data-tab="setup"]) .panel { display: none; }
  .layout[data-tab="setup"] .kh-go { display: flex; gap: 8px; flex-wrap: wrap; }
  .kh-go .btn { flex: 1 1 140px; min-height: 44px; }
  .layout[data-tab="play"] #mc-card { display: none; }
  .layout[data-tab="mc"] .stage > :not(#mc-card) { display: none; }
  .layout[data-tab="play"] .playbar { position: sticky; bottom: 8px; z-index: 20; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
  /* During the tutorial its card sits at the bottom of the screen, so the turn bar moves above the map and pins under the tabs. */
  body:has(.learn-card) .layout[data-tab="play"] .playbar { order: -1; top: 62px; bottom: auto; }
  .playbar .tsm-export { display: none; }
  .playbar .pb-btns { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 6px; }
  .playbar .btn { min-height: 44px; }
  .playbar input[type="range"] { min-height: 32px; }
  .st-b { min-width: 40px; min-height: 40px; font-size: 18px; }
  .choices button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .seg, .meter > span, .budget .bar span { transition: none; } .budget .flash { animation: none; } }

/* ---- Motion (both looks). Only when the viewer has not asked for reduced motion; see js/fx.js. ---- */
.kh-die { display: none; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes kh-row { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
  @keyframes kh-tumble { 0% { opacity: 0; transform: translateY(-9px) rotate(-220deg) scale(.5); } 70% { opacity: 1; transform: translateY(1px) rotate(12deg) scale(1.08); } 100% { transform: none; } }
  @keyframes kh-hitglow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
  #log.kh-anim tbody tr { animation: kh-row .32s cubic-bezier(.2,.8,.2,1) both; }
  #log.kh-anim .roll { animation: kh-tumble .42s cubic-bezier(.2,.8,.2,1) both; }
  #log.kh-anim .roll.hit { animation: kh-tumble .42s cubic-bezier(.2,.8,.2,1) both, kh-hitglow .6s ease-out; }
  @keyframes kh-col { 0% { background: color-mix(in srgb, var(--accent) 45%, transparent); } 100% { background: color-mix(in srgb, var(--accent) 8%, transparent); } }
  @keyframes kh-cell { 0%, 55% { transform: scale(1); } 75% { transform: scale(1.35); } 100% { transform: scale(1); } }
  #crt.kh-anim td.col { animation: kh-col .5s ease-out both; }
  #crt.kh-anim td.hit { animation: kh-cell .9s cubic-bezier(.2,.8,.2,1) both; position: relative; z-index: 1; }
  @keyframes kh-dieroll { 0% { transform: translate(-26px, -10px) rotate(-540deg) scale(.6); opacity: 0; } 60% { transform: translate(2px, 1px) rotate(12deg) scale(1.05); opacity: 1; } 100% { transform: none; } }
  #crt-note.kh-anim .kh-die { animation: kh-dieroll .65s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes kh-endin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .endline.kh-end { animation: kh-endin .5s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes kh-alarm { 0% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 70%, transparent); } 100% { box-shadow: inset 0 0 0 1px transparent; } }
  .kh-alarm { animation: kh-alarm 1s ease-out; }
  @keyframes kh-grow { from { transform: scaleX(0); } to { transform: none; } }
  #mc.kh-anim .eb-bar span { transform-origin: left; animation: kh-grow .6s cubic-bezier(.2,.8,.2,1) both; }
  #mc.kh-anim td.dbar span { transform-origin: left; animation: kh-grow .5s cubic-bezier(.2,.8,.2,1) both; }
  #mc.kh-anim td.dbar span.down { transform-origin: right; }
  @keyframes kh-done { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
  .mc-bar.kh-done { animation: kh-done .7s ease-out; }
  .kh-filling .mc-bar { background: repeating-linear-gradient(90deg, var(--chip) 0 6px, transparent 6px 10px); }
}

/* ---- Trailer look: the night plotting table. Tokens come from shared/css/trailer.css; these are the extras. ---- */
:root[data-skin="trailer"] { --kh-mixed: #cbbf9f; }
:root[data-skin="trailer"] .seg.mixed, :root[data-skin="trailer"] .sw.mixed { background: var(--kh-mixed); }
:root[data-skin="trailer"] .kh-die { display: inline-grid; grid-template-columns: repeat(3, 4px); grid-auto-rows: 4px; gap: 2px; padding: 3px;
  width: 22px; height: 22px; box-sizing: border-box; margin-right: 7px; vertical-align: -6px; border-radius: 4px; background: var(--ink); box-shadow: var(--glow); }
:root[data-skin="trailer"] .kh-die i { display: block; width: 4px; height: 4px; border-radius: 50%; }
:root[data-skin="trailer"] .kh-die i.p { background: #0b1712; }
:root[data-skin="trailer"] .roll { font-family: var(--mono); border: 1px solid var(--rule); border-radius: 4px; padding: 0 4px; margin: 1px 0; background: var(--chip); }
:root[data-skin="trailer"] .roll.hit { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--chip)); box-shadow: 0 0 10px -3px var(--accent); }
:root[data-skin="trailer"] table.crt td.hit { box-shadow: var(--glow); color: #111; background: var(--accent); }
:root[data-skin="trailer"] table.crt th.on { color: var(--accent); }
:root[data-skin="trailer"] .endline { background: color-mix(in srgb, var(--panel) 70%, transparent); font-family: var(--body); }
:root[data-skin="trailer"] .endline.win { box-shadow: -8px 0 22px -14px var(--us); }
:root[data-skin="trailer"] .endline.fail { box-shadow: -8px 0 22px -14px var(--red); }
:root[data-skin="trailer"] .kh-mine { filter: drop-shadow(0 0 2px var(--red)); }
:root[data-skin="trailer"] .kh-lodge circle { filter: drop-shadow(0 0 5px var(--us)); }
:root[data-skin="trailer"] .kh-garr rect { filter: drop-shadow(0 0 4px var(--red)); }
:root[data-skin="trailer"] .kh-sector.on .kh-route, :root[data-skin="trailer"] .kh-adv { filter: drop-shadow(0 0 4px var(--us)); }
:root[data-skin="trailer"] .kh-inbox { fill: color-mix(in srgb, var(--sea) 80%, #000); stroke: var(--coast); }
:root[data-skin="trailer"] .kh-zone rect { fill: color-mix(in srgb, var(--panel) 92%, transparent); }
:root[data-skin="trailer"] .kh-big { font-style: italic; font-weight: 500; letter-spacing: .12em; fill: color-mix(in srgb, var(--muted) 70%, transparent); }
:root[data-skin="trailer"] .kh-ztitle, :root[data-skin="trailer"] .kh-ilabel, :root[data-skin="trailer"] .kh-plabel, :root[data-skin="trailer"] .kh-slabel { font-style: italic; font-weight: 500; }
:root[data-skin="trailer"] .mc-bar { border-color: var(--rule); box-shadow: 0 0 24px -12px var(--accent); }
:root[data-skin="trailer"] .meter.esc > span { box-shadow: 0 0 10px -2px var(--red); }
:root[data-skin="trailer"] .meter.cost > span { box-shadow: 0 0 10px -2px var(--accent); }
:root[data-skin="trailer"] .kh-flag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
:root[data-skin="trailer"] .kh-tabs { background: #08120d; }
:root[data-skin="trailer"] .kh-tabs button[aria-selected="true"] { color: #111; }
:root[data-skin="trailer"] .layout[data-tab="play"] .playbar { box-shadow: 0 -6px 30px -10px #000; }
:root[data-skin="trailer"] .kh-note { letter-spacing: -.03em; }
:root[data-skin="trailer"] .kh-zone .kh-note { font-size: 10.5px; }
@media (max-width: 760px) { :root[data-skin="trailer"] .layout[data-tab="play"] .playbar { background: var(--panel); backdrop-filter: none; } }
