/* The Simcluster Channel — 2000s "Local on the 8s" look on a fixed 640×480 stage. */

@font-face { font-family: "Hind"; src: url("fonts/Hind-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "Hind"; src: url("fonts/Hind-SemiBold.ttf"); font-weight: 600; }
@font-face { font-family: "Hind"; src: url("fonts/Hind-Bold.ttf"); font-weight: 700; }

:root {
  --gold: #f6c945;
  --gold-dim: #d9a92c;
  --ink: #ffffff;
  --ink-soft: #cfe0ff;
  --ink-muted: #9fbbe8;
  --navy: #071a4a;
  --shadow: 1px 1px 1px rgba(0, 0, 0, .75), 0 0 4px rgba(0, 0, 0, .35);
  --warn: #d4241a;
  --advisory: #e8961b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font-family: "Hind", "Frutiger", "Segoe UI", sans-serif; color: var(--ink); }

#stage {
  /* fixed, not absolute: fixed boxes never widen a phone's layout viewport, so the
     browser can't zoom the page out before fit() has sized the stage */
  position: fixed; left: 0; top: 0;
  width: 640px; height: 480px;
  transform-origin: 0 0;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(120, 180, 255, .35), transparent 60%),
    linear-gradient(180deg, #0a2464 0%, #1546a3 55%, #2560c4 100%);
  text-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- header */
#hdr {
  position: absolute; left: 0; top: 0; width: 640px; height: 66px;
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: linear-gradient(180deg, rgba(4, 16, 52, .85), rgba(10, 36, 100, .55));
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold), rgba(246, 201, 69, .15) 75%) 1;
}
.logo {
  width: 58px; height: 54px; flex: none;
  display: flex; flex-direction: column; justify-content: center; padding-left: 4px;
  background: linear-gradient(160deg, #3b80e8, #0c3593 70%);
  border: 1px solid #a9c9ff; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 4px rgba(0, 0, 0, .5);
  font-weight: 700; font-size: 10.5px; line-height: 11px; letter-spacing: -.3px;
  text-shadow: none; text-align: left;
}
.logo.big { width: 150px; height: 140px; font-size: 24px; line-height: 25px; padding-left: 10px; margin: 0 auto 18px; }
.titles { flex: 1; min-width: 0; overflow: hidden; }
#title { font-size: 27px; font-weight: 700; line-height: 1; white-space: nowrap; }
#subtitle { font-size: 13px; color: var(--gold); font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock { text-align: right; line-height: 1.05; }
#clock-time { font-size: 22px; font-weight: 700; }
#clock-date { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
#mock-tag {
  margin-top: 3px; font-size: 8.5px; letter-spacing: .6px; text-transform: uppercase;
  color: #ffd9a8; text-shadow: none;
}

/* ---------------------------------------------------------------- content */
#content { position: absolute; left: 14px; top: 76px; width: 612px; height: 316px; }
.screen { position: absolute; inset: 0; }
.screen.enter { animation: slide-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.screen.leave { animation: slide-out .35s ease-in both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes slide-out { to { opacity: 0; transform: translateX(-36px); } }

.panel {
  position: absolute;
  background: linear-gradient(180deg, rgba(130, 180, 255, .30), rgba(18, 56, 150, .40));
  border: 1px solid rgba(190, 215, 255, .55);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 10px rgba(0, 0, 0, .35);
}
.label { color: var(--gold); font-weight: 700; }
.sub { color: var(--ink-muted); font-size: 10.5px; font-weight: 600; text-shadow: none; }
.icon { display: block; filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .45)); }
.icon svg { width: 100%; height: 100%; overflow: visible; }
.foot { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 11px; color: var(--ink-soft); }

/* intro card */
.intro { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.intro .eights { font-size: 30px; font-weight: 700; line-height: 1; }
.intro .eights b { color: var(--gold); font-size: 74px; vertical-align: -14px; margin-left: 4px; }
.intro .next { margin-top: 26px; font-size: 18px; color: var(--ink-soft); font-weight: 600; }

/* current conditions */
.cc-left { left: 0; top: 0; width: 262px; height: 300px; text-align: center; padding-top: 12px; }
.cc-left .icon { width: 128px; height: 128px; margin: 0 auto; }
.cc-temp { font-size: 64px; font-weight: 700; line-height: .95; margin-top: 4px; }
.unit { font-size: .32em; font-weight: 700; color: var(--ink-soft); margin-left: 5px; letter-spacing: .2px; }
.cc-right .row .v small { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 600; margin-top: -2px; }
.cc-cond { font-size: 22px; font-weight: 700; color: var(--gold); }
.cc-feels { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.cc-right { left: 274px; top: 0; width: 338px; height: 300px; padding: 8px 16px; display: flex; flex-direction: column; justify-content: space-around; }
.cc-right .row { padding: 4px 0 5px; align-items: center; }
.cc-right .row .k { font-size: 17px; }
.cc-right .row .v { font-size: 20px; }
.row { display: flex; align-items: baseline; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.row:last-child { border-bottom: 0; }
.row .k { font-size: 16px; font-weight: 700; color: var(--gold); }
.row .k .sub { display: block; margin-top: -4px; font-size: 10px; }
.row .v { font-size: 19px; font-weight: 700; text-align: right; }

/* radar */
.radar-wrap { left: 0; top: 0; width: 612px; height: 316px; overflow: hidden; padding: 0; }
.radar-wrap canvas { display: block; border-radius: 9px; }  /* sized inline to the content area */
.residents { position: absolute; inset: 0; pointer-events: none; }
.rp { position: absolute; display: flex; align-items: center; gap: 3px; transform: translate(-9px, -9px); pointer-events: auto; }
.rp img, .rp b { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 1px 3px rgba(0, 0, 0, .6); flex: none; object-fit: cover; background: #2a5cc0; }
.rp b { display: flex; align-items: center; justify-content: center; font-size: 10px; }
.rp span { font-size: 10.5px; font-weight: 700; white-space: nowrap; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 3px #000; }
.rp.you span { color: var(--gold); }
.rp.you img { border-color: var(--gold); }
.radar-time {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 10px 1px;
  background: rgba(4, 16, 52, .85); border: 1px solid rgba(190, 215, 255, .6); border-radius: 4px;
  font-size: 17px; font-weight: 700;
}
.radar-time small { color: var(--gold); font-size: 10px; letter-spacing: .8px; margin-right: 6px; }
.radar-legend {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 8px 3px;
  background: rgba(4, 16, 52, .85); border: 1px solid rgba(190, 215, 255, .6); border-radius: 4px;
  font-size: 10px; font-weight: 600; line-height: 1.35;
}
.radar-legend .ramp { display: inline-flex; vertical-align: middle; margin: 0 4px; }
.radar-legend .ramp i { width: 13px; height: 8px; display: block; }

/* 48-hour forecast: period columns above the PostCast chart, on one time axis */
.f48-top { left: 0; top: 0; width: 612px; height: 150px; }
.pcol { position: absolute; top: 6px; bottom: 6px; padding: 0 4px; border-left: 1px dashed rgba(246, 201, 69, .45); display: flex; flex-direction: column; align-items: center; text-align: center; }
.pcol:first-child { border-left: 0; }
:is(.pcol, .pcard) .pname { font-size: 14.5px; font-weight: 700; color: var(--gold); line-height: 1.1; white-space: nowrap; }
:is(.pcol, .pcard) .pmain { display: flex; align-items: center; gap: 3px; margin: 1px 0 0; }
:is(.pcol, .pcard) .pmain .icon { width: 38px; height: 38px; }
:is(.pcol, .pcard) .pval { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
:is(.pcol, .pcard) .pval small { font-size: 8.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); font-weight: 700; text-shadow: none; }
:is(.pcol, .pcard) .pval b { font-size: 22px; }
:is(.pcol, .pcard) .pcond { font-size: 12px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
:is(.pcol, .pcard) .ppop { font-size: 9.5px; font-weight: 700; color: var(--ink-soft); margin: 1px 0 2px; white-space: nowrap; }
:is(.pcol, .pcard) .ptext { font-size: 10.5px; line-height: 1.2; font-weight: 600; color: var(--ink); }
.f48-chart { top: 158px; height: 158px; }
.lg { font-size: 10.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: rgba(4, 16, 52, .8); stroke-width: 3px; }
.lg.unit { fill: var(--ink-soft); }

/* PostCast chart */
.chart-panel { left: 0; top: 0; width: 612px; height: 316px; padding: 6px 8px; }
.f48-chart.chart-panel { top: 158px; height: 158px; padding: 3px 8px; }
.chart-panel svg { display: block; }
.axis { fill: var(--ink-soft); font-size: 10.5px; font-weight: 600; text-shadow: none; }
.chart-panel .dlabel { font-size: 10.5px; font-weight: 700; }
.chart-tip {
  position: absolute; pointer-events: none; padding: 4px 8px; font-size: 11px; line-height: 1.3;
  background: rgba(4, 16, 52, .92); border: 1px solid rgba(190, 215, 255, .6); border-radius: 4px; white-space: nowrap;
}

/* 7-day forecast: range rows */
.ext7 { left: 0; top: 0; width: 612px; height: 316px; padding: 2px 16px; }
.xrow { display: flex; align-items: center; gap: 8px; height: 38px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.xrow:last-child { border-bottom: 0; }
.xhead .xl, .xhead .xh { font-size: 9.5px; color: var(--gold); }
.xrow.xhead { height: 26px; font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); font-weight: 700; text-shadow: none; line-height: 1.05; }
.xd { width: 54px; font-size: 18px; font-weight: 700; }
.xsub { display: none; }
.xi { width: 34px; height: 34px; flex: none; }
.xc { width: 132px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp { width: 50px; text-align: center; font-size: 15px; font-weight: 700; color: #9fd6ff; }
.xhead .xp { color: var(--gold); font-size: 9px; }
.xl { width: 34px; text-align: right; font-size: 17px; font-weight: 700; color: var(--ink-muted); }
.xh { width: 38px; font-size: 18px; font-weight: 700; }
.xt { flex: 1; height: 9px; position: relative; border-radius: 5px; background: rgba(4, 16, 52, .55); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .4); }
.xhead .xt { background: none; box-shadow: none; }
.xt i { position: absolute; inset: 0; border-radius: 5px; background: linear-gradient(90deg, #ffe680, #ffc23a 35%, #ff8a1f 70%, #f04a1c); }
.xt .now { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff; border: 2px solid #0a1f5c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }

/* top chicken */
.tc-left { left: 0; top: 0; width: 352px; height: 316px; padding: 8px 14px; }
.tc-right { left: 364px; top: 0; width: 248px; height: 316px; padding: 10px 14px; }
.tc-row { display: flex; align-items: center; gap: 7px; height: 35px; }
.tc-head { display: flex; gap: 7px; font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); font-weight: 700; text-shadow: none; padding-bottom: 2px; }
/* the header's likes label is wider than its column; keep its right edge on the column's */
.tc-head .h { width: 123px; flex: none; }
.tc-head .lk { width: 76px; flex: none; text-align: right; white-space: nowrap; }
.tc-head .ch { flex: 1; text-align: right; }
.tc-row .lk { width: 46px; flex: none; text-align: right; font-size: 15px; font-weight: 700; }
.tc-row.you .h { color: var(--gold); }
.tc-asof { font-size: 10.5px; color: var(--ink-muted); font-weight: 600; text-shadow: none; text-align: right; margin-top: 4px; }
.tc-row img { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); }
.tc-row .h { width: 120px; flex: none; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-row .bar { flex: 1; height: 14px; position: relative; }
.tc-row .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, #ffe08a, var(--gold) 50%, var(--gold-dim)); border-radius: 0 4px 4px 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.tc-row .pct { width: 44px; flex: none; text-align: right; font-size: 17px; font-weight: 700; }
.tc-field .h { color: var(--ink-muted); }
.tc-field .bar i { background: rgba(207, 224, 255, .45); }
.kv { margin-bottom: 7px; }
.kv .k { font-size: 12px; color: var(--gold); font-weight: 700; }
.kv .v { font-size: 17px; font-weight: 700; line-height: 1.15; }
.kv .v small { font-size: 12px; color: var(--ink-soft); font-weight: 600; }

/* claims */
.cl-chart { left: 0; top: 0; width: 420px; height: 316px; padding: 8px 8px 0; }
.cl-side { left: 430px; top: 0; width: 182px; height: 316px; padding: 10px 12px; }
.cl-side .label { font-size: 13px; margin-bottom: 4px; }
.cl-row { display: grid; grid-template-columns: 1fr auto; column-gap: 6px; padding: 3px 0 5px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.cl-row .w { font-size: 12.5px; font-weight: 700; }
.cl-row .lv { font-size: 12.5px; font-weight: 700; text-align: right; }
.cl-row .note { grid-column: 1 / -1; font-size: 11px; color: var(--ink-soft); font-weight: 600; text-shadow: none; margin-top: 3px; }
.cl-row .meter { grid-column: 1 / -1; display: flex; gap: 3px; margin-top: 3px; }
.meter i { flex: 1; height: 7px; border-radius: 2px; background: rgba(255, 255, 255, .13); }
.meter i.on0 { background: #fff1b8; } .meter i.on1 { background: #f6d465; } .meter i.on2 { background: #e8a92a; } .meter i.on3 { background: #c4740f; }
.cl-sight { margin-top: 8px; font-size: 12px; font-weight: 700; line-height: 1.3; }

/* weekly chart (claims, almanac) */
.wchart { display: block; }
.dl { font-size: 11.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: rgba(4, 16, 52, .85); stroke-width: 3px; }
.wchart .wk:hover rect:not([fill="transparent"]) { filter: brightness(1.25); }
.wlegend { display: flex; gap: 14px; justify-content: flex-end; font-size: 10.5px; font-weight: 600; color: var(--ink-soft); text-shadow: none; padding-right: 10px; }
.wlegend i { display: inline-block; width: 11px; height: 9px; margin-right: 4px; vertical-align: -1px; border-radius: 1.5px; }
.wlegend .lp { background: rgba(170, 200, 255, .62); }
.wlegend .ln { background: #fff; }
.wlegend .lf { background: repeating-linear-gradient(45deg, rgba(246, 201, 69, .7) 0 2px, rgba(246, 201, 69, .15) 2px 4px); border: 1px solid #f6c945; }

/* almanac */
.al-week { left: 0; top: 0; width: 612px; height: 316px; padding: 10px 14px 0; }

/* gm sunrise & gn sunset */
.gg-week { left: 0; top: 0; width: 612px; height: 180px; padding: 6px 14px 0; }
.gg-hour { left: 0; top: 188px; width: 612px; height: 128px; padding: 5px 14px 0; }
.gg-week .label, .gg-hour .label { font-size: 12.5px; }
.gg-week .label .sub, .gg-hour .label .sub { margin-left: 8px; }

/* bulletin */
.bul-stack { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; }
.bul { position: relative; flex: 0 0 auto; padding: 0; overflow: hidden; }
.bul.warning { min-height: 168px; }
.bul.advisory { min-height: 136px; }
.bul .bh { padding: 5px 14px 3px; font-size: 21px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.bul .bh small { font-size: 12px; font-weight: 600; }
.bul.warning .bh { background: linear-gradient(180deg, #ef3b2f, #a8150d); }
.bul.advisory .bh { background: linear-gradient(180deg, #f5aa3a, #b86b07); }
.bul .bt { padding: 7px 14px; font-size: 15.5px; line-height: 1.32; font-weight: 600; }

/* ---------------------------------------------------------------- LDL */
#ldl { position: absolute; left: 0; top: 400px; width: 640px; height: 80px; }
.ldl-top {
  height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: linear-gradient(180deg, #0d2c78, #061747);
  border-top: 1px solid rgba(190, 215, 255, .6);
}
.ldl-bug { font-size: 10px; line-height: 11px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; width: 92px; flex: none; }
#ldl-text { flex: 1; font-size: 21px; font-weight: 700; white-space: nowrap; overflow: hidden; }
#ldl-text.swap { animation: ldl-swap .4s ease-out; }
@keyframes ldl-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#ldl-icon { width: 36px; height: 36px; flex: none; }
.ldl-bottom {
  height: 36px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #ffe27e, var(--gold) 45%, #d29a1f);
  color: #0a1f5c; text-shadow: none;
}
.ldl-bottom.alert { background: linear-gradient(180deg, #f2493d, var(--warn) 50%, #8d1009); color: #fff; }
.crawl { position: absolute; top: 0; left: 0; height: 36px; display: flex; align-items: center; white-space: nowrap; font-size: 17px; font-weight: 700; }
/* the text is in the span twice, so sliding by half its width loops seamlessly */
.crawl span { display: inline-block; animation: crawl var(--crawl-s, 30s) linear infinite; }
@keyframes crawl { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- TV effects */
#scanlines { position: absolute; inset: 0; pointer-events: none; display: none; }
.crt #scanlines {
  display: block;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .11) 0 1px, transparent 1px 3px),
    radial-gradient(120% 95% at 50% 50%, transparent 60%, rgba(0, 0, 0, .45));
}
#tunein {
  position: absolute; inset: 0; z-index: 10; background: #000; display: flex; align-items: center; justify-content: center;
  text-align: center; cursor: pointer;
}
#tunein p { font-size: 18px; font-weight: 600; color: var(--ink-soft); animation: blink 1.6s steps(2) infinite; margin: 6px; }
#tunein p.small { font-size: 11px; color: #6f86b0; animation: none; }
#tunein p.wait, #tunein.standby p.go { display: none; }
#tunein.standby p.wait { display: block; }
@keyframes blink { 50% { opacity: .35; } }
#stage.power-on { animation: power-on .7s ease-out; }
@keyframes power-on {
  0% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(4); }
  45% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(3); }
  100% { clip-path: inset(0 0 0 0); filter: brightness(1); }
}
.paused-tag { position: absolute; right: 8px; top: 70px; font-size: 10px; color: var(--gold); letter-spacing: 1px; }

/* ---------------------------------------------------------------- portrait (phones held upright)
   A 405×720 stage; every screen re-lays out vertically into a 377×540 content area. */
.portrait #hdr { width: 405px; height: 84px; gap: 10px; padding: 0 12px; }
.portrait .logo { width: 52px; height: 50px; font-size: 10px; line-height: 10.5px; }
.portrait #title { font-size: 21px; line-height: 1.05; white-space: normal; }
.portrait #subtitle { font-size: 11px; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.portrait .clock { align-self: flex-start; padding-top: 12px; }
.portrait #clock-time { font-size: 17px; }
.portrait #clock-date { font-size: 10px; }
.portrait #content { left: 14px; top: 92px; width: 377px; height: 540px; }
.portrait #ldl { top: 640px; width: 405px; }
.portrait .ldl-bug { width: 70px; font-size: 9px; line-height: 10px; }
.portrait #ldl-text { font-size: 17px; }
.portrait .crawl { font-size: 15px; }

/* current conditions: big reading on top (icon beside it), the rows below */
.portrait .cc-left { width: 377px; height: 196px; padding: 10px 18px; display: grid; grid-template-columns: 116px 1fr; column-gap: 8px; align-content: center; text-align: left; }
.portrait .cc-left .icon { grid-row: 1 / span 3; width: 112px; height: 112px; margin: 0; }
.portrait .cc-temp { font-size: 56px; margin-top: 0; }
.portrait .cc-cond { font-size: 19px; }
.portrait .cc-feels { font-size: 11.5px; }
.portrait .cc-right { left: 0; top: 206px; width: 377px; height: 334px; }

/* radar: the map is drawn for the tall frame; time stamp moves to the top */
.portrait .radar-wrap { width: 377px; height: 540px; }
.portrait .radar-time { top: 10px; bottom: auto; }

/* 48-hour: a 2×2 grid of periods above the full-width chart */
.portrait .f48-top { width: 377px; height: 262px; padding: 4px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 100%; }
.pcard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 6px; border-color: rgba(246, 201, 69, .45); border-style: dashed; border-width: 0; }
.pcard:nth-child(odd) { border-right-width: 1px; }
.pcard:nth-child(-n+2) { border-bottom-width: 1px; }
.portrait .f48-chart.chart-panel { top: 272px; height: 268px; }

/* 7-day: condition + chance tuck under the day so the range bars keep their width */
.portrait .ext7 { width: 377px; height: 540px; padding: 2px 12px; }
.portrait .xrow { height: 72px; gap: 6px; }
.portrait .xrow.xhead { height: 22px; }
.portrait .xd { width: 118px; line-height: 1.1; }
.portrait .xsub { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portrait .xc, .portrait .xp { display: none; }

/* Top Chicken: odds on top, the facts below in two columns */
.portrait .tc-left { width: 377px; height: 304px; }
.portrait .tc-row .h { width: 140px; }
.portrait .tc-head .h { width: 143px; }
.portrait .tc-right .v small { display: block; }
.portrait .tc-right { left: 0; top: 314px; width: 377px; height: 226px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-content: start; }

/* Claim Count: chart on top, outlook below */
.portrait .cl-chart { width: 377px; height: 290px; }
.portrait .cl-side { left: 0; top: 300px; width: 377px; height: 240px; }

.portrait .al-week { width: 377px; height: 540px; }
.portrait .bul .bh { flex-direction: column; align-items: flex-start; gap: 1px; }
.portrait .gg-week { width: 377px; height: 300px; }
.portrait .gg-hour { top: 310px; width: 377px; height: 230px; }

/* ---------------------------------------------------------------- the remote (on-screen controls) */
#stage { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#remote {
  position: absolute; left: 50%; bottom: 90px; z-index: 6;
  display: flex; align-items: stretch; gap: 6px; padding: 7px 8px;
  background: linear-gradient(180deg, rgba(10, 30, 84, .94), rgba(4, 14, 44, .94));
  border: 1px solid rgba(246, 201, 69, .75); border-radius: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .2);
  opacity: 0; pointer-events: none; transform: translate(-50%, 10px);
  transition: opacity .25s ease, transform .25s ease;
}
#remote.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#remote button {
  width: 56px; height: 56px; padding: 0; border-radius: 11px; cursor: pointer;  /* ≥44 CSS px on a sideways phone */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; background: linear-gradient(180deg, #2f6ad0, #123d95);
  border: 1px solid rgba(190, 215, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 3px rgba(0, 0, 0, .45);
  font: 700 8.5px/1 Hind, sans-serif; letter-spacing: .6px; text-transform: uppercase; text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
  touch-action: manipulation;
}
#remote button span { color: var(--gold); }
#remote button:active { transform: translateY(1px); background: linear-gradient(180deg, #2253b0, #0b2d74); }
#remote button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
#remote svg { width: 24px; height: 24px; fill: currentColor; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
#remote .sep { width: 1px; margin: 6px 2px; background: rgba(190, 215, 255, .3); }
#remote [hidden] { display: none !important; }
#remote .i-play, #remote .i-off, #remote .i-exit { display: none; }
#remote.paused .i-pause, #remote.muted .i-on, #remote.fullscreen .i-enter { display: none; }
#remote.paused svg.i-play, #remote.muted path.i-off, #remote.fullscreen path.i-exit { display: block; }
#remote.paused span.i-play, #remote.muted span.i-off { display: inline; }
/* a lit button for the toggles that are on */
#remote.paused [data-act="pause"], #remote.muted [data-act="sound"], .crt #remote [data-act="crt"] {
  border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(246, 201, 69, .55), inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 3px rgba(0, 0, 0, .45);
}
.portrait #remote { bottom: 92px; gap: 5px; padding: 6px 7px; }
.portrait #remote button { width: 50px; height: 50px; }

/* tune-in hints: keyboard where there's a mouse, gestures where there isn't */
#tunein p.touch { display: none; }
@media (hover: none) { #tunein p.keys { display: none; } #tunein p.touch { display: block; } }
