/* Skins (html[data-skin]) and the video framing (html.rec). Base look = mission, in styles.css. */
#over { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ============ doodle: a notebook ============ */
html[data-skin=doodle] {
  --ground: #f4efe3; --ink: rgba(31, 36, 51, 0.92); --dim: rgba(31, 36, 51, 0.58); --line: rgba(31, 36, 51, 0.38); --hot: #cc3428;
  --mono: Kalam, 'Comic Sans MS', cursive;
  --sketch: 255px 14px 225px 14px / 14px 225px 14px 255px;
}
html[data-skin=doodle] body {
  background-color: #f4efe3;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.2 0 0 0 0.11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(70, 112, 190, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 112, 190, 0.13) 1px, transparent 1px);
  background-size: 260px 260px, 28px 28px, 28px 28px;
}
html[data-skin=doodle] .vignette { background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(120, 96, 60, 0.16)); }
html[data-skin=doodle] .hud { text-shadow: 0 0 4px #f4efe3, 0 0 10px #f4efe3; }
html[data-skin=doodle] .kicker { text-transform: none; letter-spacing: 0; font-size: 15px; }
html[data-skin=doodle] .clock { font-weight: 700; letter-spacing: 0; }
html[data-skin=doodle] .sub { text-transform: none; letter-spacing: 0; font-size: 15px; }
html[data-skin=doodle] .sub.hot { color: var(--hot); text-decoration: underline wavy var(--hot); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
html[data-skin=doodle] .vbtn, html[data-skin=doodle] .mc-x { background: #f8f4ea; border: 1.5px solid var(--line); border-radius: var(--sketch); text-transform: none; letter-spacing: 0; font-size: 14px; }
html[data-skin=doodle] .menu, html[data-skin=doodle] .card { background: #f8f4ea; border: 1.5px solid var(--line); border-radius: 6px 14px 8px 12px; text-transform: none; letter-spacing: 0; }
html[data-skin=doodle] .mc {
  background: #f8f4ea; border: 2px solid rgba(31, 36, 51, 0.75); border-radius: 16px 6px 20px 8px / 8px 18px 6px 16px;
  box-shadow: 4px 5px 0 rgba(31, 36, 51, 0.12);
}
html[data-skin=doodle] .mc.open { transform: rotate(-0.5deg); }
html[data-skin=doodle] .mc-head { border-bottom: 1.5px solid var(--line); }
html[data-skin=doodle] .mc-title { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 17px; }
html[data-skin=doodle] .mc-sub { text-transform: none; letter-spacing: 0; }
html[data-skin=doodle] .tile { text-transform: none; letter-spacing: 0; font-size: 12px; }
html[data-skin=doodle] .tile:nth-child(odd) { transform: rotate(0.6deg); }
html[data-skin=doodle] .tile:nth-child(even) { transform: rotate(-0.5deg); }
html[data-skin=doodle] .tile::before { border: 1.6px solid rgba(31, 36, 51, 0.7); border-radius: var(--sketch); }
html[data-skin=doodle] #rain { mix-blend-mode: multiply; }
/* infrared redrawn as graphite (cold cloud tops dark); true colour taped in like a photo */
html[data-skin=doodle] .tb img { filter: grayscale(1) invert(1) contrast(1.3) brightness(1.05); mix-blend-mode: multiply; background: none; }
html[data-skin=doodle] .t-tc .tb { overflow: visible; }
html[data-skin=doodle] .t-tc .tb img { filter: sepia(0.25) saturate(0.85) contrast(1.05); mix-blend-mode: normal; width: 92%; height: 92%; transform: rotate(-1.2deg); box-shadow: 1px 2px 3px rgba(60, 40, 20, 0.25); }
html[data-skin=doodle] .t-tc .tb::after { content: ''; position: absolute; top: 0; left: 50%; width: 44px; height: 13px; margin-left: -22px; transform: rotate(-3deg);
  background: rgba(236, 226, 190, 0.78); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
html[data-skin=doodle] .tb .cross { border: 1.5px solid var(--hot); border-radius: 50%; }
html[data-skin=doodle] .tf, html[data-skin=doodle] .rows p span { text-transform: none; letter-spacing: 0; font-size: 11px; }
html[data-skin=doodle] .kv { border-bottom: 1px dashed rgba(31, 36, 51, 0.2); }
html[data-skin=doodle] .timeline { border-top: 1.5px solid var(--line); }
html[data-skin=doodle] .days span { text-transform: none; letter-spacing: 0; font-size: 13px; }
html[data-skin=doodle] .landfall { background: var(--hot); border-radius: 4px; }
html[data-skin=doodle] .head { width: 2px; background: var(--ink); border-radius: 2px; }
html[data-skin=doodle] .ramp { border-radius: 3px; }
html[data-skin=doodle] .toggle { text-transform: none; letter-spacing: 0; font-size: 14px; }
html[data-skin=doodle] .toggle input { accent-color: #2c48a8; }
html[data-skin=doodle] .now { border-left: 2px solid var(--hot); }
html[data-skin=doodle] .now span { color: var(--hot); text-transform: none; letter-spacing: 0; font-size: 12px; }
html[data-skin=doodle] #__tap i { border-width: 2.5px; border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%; }

/* ============ pixel: a handheld screen ============ */
html[data-skin=pixel] {
  --ground: #100e26; --ink: #fff6dc; --dim: rgba(255, 246, 220, 0.6); --line: rgba(255, 246, 220, 0.42); --hot: #ff4f5e;
  --mono: Silkscreen, 'Courier New', monospace;
  -webkit-font-smoothing: none;
}
html[data-skin=pixel] body { background: #100e26; }
html[data-skin=pixel] .vignette { background: linear-gradient(to top, rgba(16, 14, 38, 0.8), transparent 110px); }
html[data-skin=pixel] .hud { text-shadow: 2px 2px 0 #100e26, -2px 0 0 #100e26, 0 -2px 0 #100e26; }
html[data-skin=pixel] .kicker { letter-spacing: 0.04em; }
html[data-skin=pixel] .clock { font-family: 'Pixelify Sans', Silkscreen, monospace; font-weight: 700; letter-spacing: 0.02em; }
html[data-skin=pixel] .sub { letter-spacing: 0.02em; }
html[data-skin=pixel] .sub.hot { color: var(--hot); }
html[data-skin=pixel] .vbtn, html[data-skin=pixel] .mc-x, html[data-skin=pixel] #play { background: #1d1a45; border: 2px solid var(--line); border-style: solid; }
html[data-skin=pixel] .menu, html[data-skin=pixel] .card { background: #1d1a45; border: 3px solid var(--ink); }
html[data-skin=pixel] .mc { background: #1d1a45; border: 4px solid var(--ink); box-shadow: 0 0 0 4px #100e26, 8px 8px 0 4px rgba(0, 0, 0, 0.45); }
html[data-skin=pixel] .mc-head { border-bottom: 4px solid rgba(255, 246, 220, 0.25); }
html[data-skin=pixel] .tile::before { border: 3px solid rgba(255, 246, 220, 0.6); }
html[data-skin=pixel] .tile:nth-child(3n+1)::before { border-color: #7fd6f0; }
html[data-skin=pixel] .tile:nth-child(3n+2)::before { border-color: #ffd84e; }
html[data-skin=pixel] .tile:nth-child(3n)::before { border-color: #ff7ad9; }
html[data-skin=pixel] .tb img { filter: url(#px); image-rendering: pixelated; background: #120f2a; }
html[data-skin=pixel] .tb .cross { border: 3px solid #ffd84e; }
html[data-skin=pixel] .kv { border-bottom: 2px dotted rgba(255, 246, 220, 0.2); }
html[data-skin=pixel] .timeline { border-top: 4px solid var(--line); }
html[data-skin=pixel] .days span { border-left-width: 4px; }
html[data-skin=pixel] .landfall { background: var(--hot); height: 12px; top: -8px; }
html[data-skin=pixel] .head { width: 8px; height: 20px; top: -12px; background: var(--ink); }
html[data-skin=pixel] .tb canvas { image-rendering: pixelated; }

/* ============ future: a holo table ============ */
html[data-skin=future] {
  --ground: #01050b; --ink: #d8fbff; --dim: rgba(130, 230, 255, 0.6); --line: rgba(90, 220, 255, 0.35); --hot: #ffb02e;
  --mono: 'Share Tech Mono', ui-monospace, monospace;
}
html[data-skin=future] body { background: radial-gradient(ellipse 80% 60% at 50% 55%, #03182a, #01050b 70%); }
html[data-skin=future] #stage { transform: perspective(1500px) rotateX(28deg) scale(1.34); transform-origin: 50% 64%; }
html[data-skin=future] .vignette {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 75% 65% at 50% 55%, transparent 55%, rgba(1, 5, 11, 0.85));
}
html[data-skin=future] .hud { text-shadow: 0 0 10px rgba(0, 190, 255, 0.45); }
html[data-skin=future] .clock { font-family: Rajdhani, sans-serif; font-weight: 600; letter-spacing: 0.04em; color: #ecfdff; }
html[data-skin=future] .sub.hot { color: var(--hot); text-shadow: 0 0 10px rgba(255, 176, 46, 0.6); }
html[data-skin=future] .vbtn, html[data-skin=future] .mc-x, html[data-skin=future] #play { background: rgba(2, 16, 28, 0.7); border: 1px solid var(--line); }
html[data-skin=future] .menu, html[data-skin=future] .card { background: rgba(2, 14, 24, 0.9); border: 1px solid var(--line); }
html[data-skin=future] .mc {
  background: linear-gradient(180deg, rgba(4, 26, 42, 0.86), rgba(2, 12, 22, 0.9)); border: 1px solid rgba(90, 220, 255, 0.5);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  box-shadow: inset 0 0 50px rgba(0, 170, 255, 0.12);
}
html[data-skin=future] .mc-title { font-family: Rajdhani, sans-serif; font-weight: 700; letter-spacing: 0.12em; }
html[data-skin=future] .mc-head { border-bottom: 1px solid var(--line); }
html[data-skin=future] .tile::before { border: 1px solid rgba(90, 220, 255, 0.28); }
html[data-skin=future] .tile::after { /* corner brackets */
  content: ''; position: absolute; inset: -1px; pointer-events: none; opacity: 0;
  background:
    linear-gradient(#7ff0ff, #7ff0ff) 0 0 / 12px 2px no-repeat, linear-gradient(#7ff0ff, #7ff0ff) 0 0 / 2px 12px no-repeat,
    linear-gradient(#7ff0ff, #7ff0ff) 100% 100% / 12px 2px no-repeat, linear-gradient(#7ff0ff, #7ff0ff) 100% 100% / 2px 12px no-repeat;
}
html[data-skin=future] .mc.open .tile::after { animation: fill 0.2s ease forwards; animation-delay: calc(0.2s + var(--i) * 45ms); }
html[data-skin=future] .tb img { filter: grayscale(1) sepia(1) hue-rotate(150deg) saturate(3.2) brightness(0.92) contrast(1.2); }
html[data-skin=future] .tb::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px); }
html[data-skin=future] .tb .cross { border-color: var(--hot); }
html[data-skin=future] .kv { border-bottom: 1px solid rgba(90, 220, 255, 0.12); }
html[data-skin=future] .landfall { background: var(--hot); box-shadow: 0 0 8px var(--hot); }
html[data-skin=future] .head { background: #7ff0ff; box-shadow: 0 0 8px #7ff0ff; }

/* ============ graphite: after Bungie's Marathon (5 Nov), our own marks. Lime only where it matters ============ */
html[data-skin=graphite] {
  --ground: #0e0f10; --ink: #f2f3f4; --dim: #8d9399; --line: #3a3d41; --hot: #c8f31d;
  --panel: #17181a; --tile: #1e2023; --block: #e4e4e2; --soft: #b4b9be;
  --mono: 'DM Mono', ui-monospace, monospace; --narrow: 'Big Shoulders', 'Archivo Narrow', sans-serif; --wide: Archivo, sans-serif;
}
html[data-skin=graphite] body { background: var(--ground); }
html[data-skin=graphite] .vignette {
  background: radial-gradient(ellipse 640px 380px at 0 0, rgba(14, 15, 16, 0.82), transparent 72%),
              linear-gradient(to top, rgba(14, 15, 16, 0.8), transparent 120px);
}
/* live: the globe sits in space a step darker than the sea, so the corner shade is space-coloured there */
html.live[data-skin=graphite] .vignette {
  background: radial-gradient(ellipse 640px 380px at 0 0, rgba(8, 9, 10, 0.82), transparent 72%),
              linear-gradient(to top, rgba(8, 9, 10, 0.8), transparent 120px);
}
html[data-skin=graphite] .hud { text-shadow: none; }
html[data-skin=graphite] .kicker { font-size: 10.5px; letter-spacing: 0.06em; }
html[data-skin=graphite] .title {
  display: block; margin-top: 12px; font-family: var(--narrow); font-weight: 800; font-size: 104px; line-height: 0.82;
  text-transform: uppercase; letter-spacing: 0.005em; color: var(--ink);
}
html[data-skin=graphite] .clock { display: none; }
html[data-skin=graphite] .sub {
  display: inline-block; margin-top: 12px; padding: 3px 0; font-family: var(--wide); font-stretch: 125%; font-weight: 800;
  font-size: 11px; letter-spacing: 0.03em; color: var(--soft);
}
html[data-skin=graphite] .sub.hot { color: var(--ground); background: var(--hot); padding: 3px 7px; }
html[data-skin=graphite] .leaders { display: block; width: 300px; margin-top: 10px; }
html[data-skin=graphite] .ld { display: flex; align-items: baseline; gap: 6px; font-size: 11px; line-height: 1.65; text-transform: uppercase; letter-spacing: 0.04em; }
html[data-skin=graphite] .ld span { color: var(--dim); }
html[data-skin=graphite] .ld i { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
html[data-skin=graphite] .ld b { font-weight: 400; color: var(--ink); white-space: nowrap; }
/* corner crosshairs */
html[data-skin=graphite] .frame {
  display: block; position: fixed; inset: 0; z-index: 2; pointer-events: none; --c: #5d6267;
  background:
    linear-gradient(var(--c), var(--c)) 7px 18px / 23px 1px no-repeat, linear-gradient(var(--c), var(--c)) 18px 7px / 1px 23px no-repeat,
    linear-gradient(var(--c), var(--c)) calc(100% - 7px) 18px / 23px 1px no-repeat, linear-gradient(var(--c), var(--c)) calc(100% - 18px) 7px / 1px 23px no-repeat,
    linear-gradient(var(--c), var(--c)) 7px calc(100% - 18px) / 23px 1px no-repeat, linear-gradient(var(--c), var(--c)) 18px calc(100% - 7px) / 1px 23px no-repeat,
    linear-gradient(var(--c), var(--c)) calc(100% - 7px) calc(100% - 18px) / 23px 1px no-repeat, linear-gradient(var(--c), var(--c)) calc(100% - 18px) calc(100% - 7px) / 1px 23px no-repeat;
}
/* views as tabs: the selected one a light block */
html[data-skin=graphite] .vbtn { background: var(--tile); border: 0; padding: 7px 12px; color: var(--soft); font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 10px; letter-spacing: 0.04em; }
html[data-skin=graphite] .vbtn:hover { color: var(--ink); }
html[data-skin=graphite] .vbtn.on { background: var(--block); color: var(--ground); }
html[data-skin=graphite] :focus-visible { outline: 1px solid var(--hot); outline-offset: 2px; }
/* recent storms: an opaque list that drops from the tabs over the title; the open storm carries a lime edge */
html[data-skin=graphite] .menu { width: 400px; background: var(--panel); border: 0; padding: 0; animation: drop 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes drop { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
html[data-skin=graphite] .menu button { grid-template-columns: 28px 1fr; gap: 4px 8px; padding: 11px 14px 11px 12px; border-bottom: 1px dotted var(--line); }
html[data-skin=graphite] .menu button:hover { background: var(--tile); }
html[data-skin=graphite] .menu button.on { background: var(--tile); box-shadow: inset 3px 0 0 var(--hot); }
html[data-skin=graphite] .menu .n { padding-top: 4px; }
html[data-skin=graphite] .menu button.on .n { color: var(--hot); }
html[data-skin=graphite] .menu .nm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-family: var(--narrow); font-weight: 800; font-size: 24px; line-height: 0.9; letter-spacing: 0.01em; }
html[data-skin=graphite] .menu .nm em { margin: 0; font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 9px; letter-spacing: 0.03em; color: var(--soft); }
html[data-skin=graphite] .menu .wh { margin-top: 2px; }
/* legend: a segmented meter, the rain switch a halftone square */
html[data-skin=graphite] .tr { width: 232px; }
html[data-skin=graphite] .ramp { height: 8px; margin-top: 9px;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px); mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px); }
html[data-skin=graphite] .ticks { margin-top: 5px; }
html[data-skin=graphite] .toggle { margin-top: 14px; gap: 8px; font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 10px; letter-spacing: 0.04em; color: var(--soft); }
html[data-skin=graphite] .toggle input { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border: 1px solid var(--line); background: var(--tile); cursor: pointer; }
html[data-skin=graphite] .toggle input:checked { border-color: #7c60ff; background: radial-gradient(circle, #8f78ff 1.3px, transparent 1.6px) 0 0 / 4px 4px, var(--tile); }
/* zoom: tabs like the views, World a light block when the whole world is in view */
html[data-skin=graphite] .zoom { gap: 2px; }
html[data-skin=graphite] .zoom button { background: var(--tile); border: 0; color: var(--soft); font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 12px; }
html[data-skin=graphite] .zoom button[data-z=world] { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; padding: 0 12px; }
html[data-skin=graphite] .zoom button.on { background: var(--block); color: var(--ground); }
html[data-skin=graphite] .zoom .hint { letter-spacing: 0.05em; }
/* hover card: the position on a light block, dotted rows, the click hint lime over a storm */
html[data-skin=graphite] .card { background: var(--panel); border: 0; padding: 0 10px 8px; }
html[data-skin=graphite] .card-head { margin: 0 -10px 5px; padding: 5px 10px; border: 0; background: var(--block); color: var(--ground);
  font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 10px; letter-spacing: 0.03em; }
html[data-skin=graphite] .card .row { padding: 3px 0 2px; border-bottom: 1px dotted var(--line); }
html[data-skin=graphite] .card .row .v { color: var(--ink); }
html[data-skin=graphite] .card-foot { border: 0; padding-top: 7px; margin-top: 0; font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 9px; letter-spacing: 0.03em; color: var(--soft); }
html[data-skin=graphite] .card-foot.hot { color: var(--hot); }
/* mission control: flat graphite tiles, no frames to speak of */
html[data-skin=graphite] .mc { background: var(--panel); border: 0; padding: 0 2px 2px; }
/* corner brackets, the storm's lime (they echo its mark on the map), a point's grey */
html[data-skin=graphite] .mc::after {
  content: ''; position: absolute; inset: -5px; pointer-events: none; --c: #5d6267;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 2px 14px no-repeat;
}
html[data-skin=graphite] .mc[data-kind=storm]::after { --c: var(--hot); }
html.rec[data-skin=graphite] .mc::after { display: none; } /* keep the approved video cut as it was */
html[data-skin=graphite] .mc-head { align-items: center; padding: 9px 8px; margin-bottom: 0; border-bottom: 0; }
html[data-skin=graphite] .mc-title { font-family: var(--narrow); font-weight: 800; font-size: 26px; line-height: 0.9; letter-spacing: 0.01em; }
html[data-skin=graphite] .mc-sub { margin-top: 4px; }
html[data-skin=graphite] .mc-x { border: 1px solid var(--line); color: var(--soft); }
html[data-skin=graphite] .mc-grid { gap: 2px; }
html[data-skin=graphite] .tile { background: var(--tile); padding: 8px 9px; }
html[data-skin=graphite] .tile::before { border: 1px solid #2e3135; }
html[data-skin=graphite] .th { grid-template-columns: 20px 1fr; row-gap: 5px; }
html[data-skin=graphite] .th .r { grid-column: 1 / -1; font-family: var(--narrow); font-weight: 800; font-size: 20px; line-height: 0.85; letter-spacing: 0.01em; }
html[data-skin=graphite] .tb img { filter: grayscale(1) contrast(1.25); background: var(--ground); }
html[data-skin=graphite] .t-ir .tb::after, html[data-skin=graphite] .t-tc .tb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
}
html[data-skin=graphite] .tb .cross { border: 1px solid var(--hot); }
html[data-skin=graphite] .kv { border-bottom: 1px dotted var(--line); }
/* the Tag (tag.js): a small card by the mark; More data extends it outward */
html[data-skin=graphite] .mc.tag { width: auto; padding: 0; }
.tag-body { display: flex; align-items: stretch; max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: none; }
.mc.tag.left .tag-body { flex-direction: row-reverse; }
.tag-main { width: 300px; flex: none; display: flex; flex-direction: column; }
.mc.tag.open .tag-main { animation: drop 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tag-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 11px 12px 10px; }
.tag-id { min-width: 0; }
.tag-kick { font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 9px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--soft); }
.tag-name { margin-top: 5px; font-family: var(--narrow); font-weight: 800; font-size: 30px; line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.mc.tag[data-kind=point] .tag-name { font-size: 28px; }
.mc.tag .mc-x { flex: none; }
.sat { position: relative; height: 150px; flex: none; overflow: hidden; background: var(--ground); }
.sat img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25); }
.sat.is-tc img { filter: grayscale(1) brightness(0.7) contrast(1.6); } /* true colour: thick cloud is near white, so pull it down to keep its detail */
.sat img.missing { visibility: hidden; }
.sat::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px); }
.sat .cross { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -8px 0 0 -8px; border: 1px solid var(--hot); z-index: 1; }
.sat.no-cross .cross { display: none; }
.sat .chip { position: absolute; z-index: 1; right: 8px; top: 8px; padding: 3px 6px; background: rgba(14, 15, 16, 0.85); font-family: var(--narrow); font-weight: 800; font-size: 15px; line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.chip-l { white-space: pre; }
.sat .cap { display: none; position: absolute; z-index: 1; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); text-align: center; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.sat:has(img.missing) .cap { display: block; }
.sat:has(img.missing) .cross, .sat:has(img.missing) .chip { display: none; }
.tag-read { padding: 10px 12px 8px; }
.tag-num { display: flex; align-items: baseline; gap: 8px; }
.tag-num b { font-family: var(--narrow); font-weight: 800; font-size: 84px; line-height: 0.9; letter-spacing: 0.01em; }
.tag-num span { font-family: var(--narrow); font-weight: 800; font-size: 26px; line-height: 0.9; text-transform: uppercase; color: var(--soft); }
.tag-cap { margin-top: 6px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.tag-rows { padding: 0 12px; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.tag .kv { align-items: baseline; gap: 10px; padding: 5px 0 4px; }
.tag-btn { margin-top: auto; padding: 10px 12px 12px; }
.tag-more { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px; border: 0; cursor: pointer; background: var(--block); color: var(--ground); font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase; }
.tag-more i { font-style: normal; font-size: 13px; line-height: 1; }
.tag-x { display: none; width: 270px; flex: none; flex-direction: column; border-left: 1px solid #2e3135; }
.mc.tag.left .tag-x { border-left: 0; border-right: 1px solid #2e3135; }
.mc.tag.more .tag-x { display: flex; animation: tagx 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.mc.tag.left.more .tag-x { animation-name: tagxl; }
@keyframes tagx { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tagxl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.tag-x .sat { height: 92px; }
.tag-x .chip { left: 6px; right: auto; top: 6px; font-size: 13px; }
.tag-lanes { padding: 9px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.lane-h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.lane-h span:first-child { color: var(--soft); }
.lane canvas { display: block; }
.tag-axis { position: relative; height: 14px; margin-top: 2px; }
.tag-axis span { position: absolute; top: 0; padding-left: 4px; border-left: 1px solid var(--line); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.tag-rows2:empty, .tag-note:empty { display: none; }
.tag-note { padding: 6px 12px 0; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.tag-notes { margin-top: 9px; padding: 9px 12px 12px; border-top: 1px solid #2e3135; flex: 1; }
.tag-notes[hidden] { display: none; }
.tag-notes-h { font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 9px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--soft); }
.tag-notes-b p { margin: 6px 0 0; font-size: 10.5px; line-height: 1.3; }
.tag-notes-b p span { display: block; margin-top: 2px; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .mc.tag.open .tag-main, .mc.tag.more .tag-x { animation: none; } }
/* timeline: a hatched bar that fills in, the landfall window as a lime block */
html[data-skin=graphite] #play { background: var(--block); color: var(--ground); border: 0; }
html[data-skin=graphite] .timeline { border-top: 0; }
html[data-skin=graphite] .timeline::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 10px; background: repeating-linear-gradient(135deg, #4a4e53 0 1px, transparent 1px 4px); }
html[data-skin=graphite] .done { display: block; position: absolute; left: 0; top: -5px; width: 100%; height: 10px; background: rgba(242, 243, 244, 0.88); transform-origin: 0 0; transform: scaleX(0); will-change: transform; }
html[data-skin=graphite] .landfall { background: var(--hot); top: -8px; height: 16px; }
html[data-skin=graphite] .head { top: -9px; height: 22px; background: var(--ink); }
html[data-skin=graphite] .days span { top: 8px; height: 6px; padding-top: 7px; border-left-color: #5d6267; }
html[data-skin=graphite] .now { border-left-color: var(--hot); }
html[data-skin=graphite] .now span { color: var(--hot); }
/* the landfall band: wipes open from the middle, then the words */
html[data-skin=graphite] .band.on {
  display: block; position: fixed; z-index: 3; left: 50%; top: 60%; width: min(620px, calc(100vw - 48px)); transform: translateX(-50%);
  pointer-events: none; text-align: center; color: var(--ground); padding: 14px 20px 16px;
  background:
    linear-gradient(var(--ground), var(--ground)) 8px 8px / 6px 6px no-repeat, linear-gradient(var(--ground), var(--ground)) calc(100% - 8px) 8px / 6px 6px no-repeat,
    linear-gradient(var(--ground), var(--ground)) 8px calc(100% - 8px) / 6px 6px no-repeat, linear-gradient(var(--ground), var(--ground)) calc(100% - 8px) calc(100% - 8px) / 6px 6px no-repeat,
    var(--hot);
  animation: band-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes band-in { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
html[data-skin=graphite] .band-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
html[data-skin=graphite] .band-row span { font-family: var(--narrow); font-weight: 800; font-size: 92px; line-height: 0.9; text-transform: uppercase; letter-spacing: 0.01em; }
html[data-skin=graphite] .band-row i { flex: 0 0 44px; height: 22px; background: linear-gradient(var(--ground), var(--ground)) 0 50% / 100% 1px no-repeat, linear-gradient(var(--ground), var(--ground)) 50% 0 / 1px 100% no-repeat; }
html[data-skin=graphite] .band-s { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--ground); font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; }
html[data-skin=graphite] .band-m { margin-top: 6px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
html[data-skin=graphite] .band.on > * { animation: fill 0.25s 0.22s ease both; }
/* phone: a compact title block (the storm stays in view), the band low and clear of the storm, the sheet's close button without "esc" */
@media (max-width: 760px) {
  html[data-skin=graphite] .tl { top: 52px; max-width: calc(100vw - 32px); }
  html[data-skin=graphite] .kicker { font-size: 9.5px; }
  html[data-skin=graphite] .title { font-size: 54px; margin-top: 8px; }
  html[data-skin=graphite] .sub { font-size: 9.5px; margin-top: 8px; line-height: 1.3; }
  html[data-skin=graphite] .frame { background: /* top corners only: the credits use the bottom edge */
    linear-gradient(var(--c), var(--c)) 7px 18px / 23px 1px no-repeat, linear-gradient(var(--c), var(--c)) 18px 7px / 1px 23px no-repeat,
    linear-gradient(var(--c), var(--c)) calc(100% - 7px) 18px / 23px 1px no-repeat, linear-gradient(var(--c), var(--c)) calc(100% - 18px) 7px / 1px 23px no-repeat; }
  html[data-skin=graphite] .leaders { width: min(300px, 100%); margin-top: 6px; }
  html[data-skin=graphite] .ld { font-size: 10px; line-height: 1.55; }
  html[data-skin=graphite] .menu { width: calc(100vw - 32px); }
  html[data-skin=graphite] .band.on { top: auto; bottom: 124px; padding: 10px 14px 12px; }
  html[data-skin=graphite] .band-row { gap: 12px; }
  html[data-skin=graphite] .band-row span { font-size: 52px; }
  html[data-skin=graphite] .band-row i { flex-basis: 26px; }
  html[data-skin=graphite] .band-s { margin-top: 8px; padding-top: 8px; font-size: 10px; }
  html[data-skin=graphite] .band-m { font-size: 9.5px; }
  html[data-skin=graphite] .mc::after { display: none; } /* the sheet scrolls: a lime top edge instead of brackets */
  html[data-skin=graphite] .mc[data-kind=storm] { border-top: 2px solid var(--hot); }
  html[data-skin=graphite] .mc-title { font-size: 22px; }
  html[data-skin=graphite] .mc-x .esc { display: none; }
  .by { display: block; margin: 0; padding: 4px 0 0; font-size: 10px; line-height: 16px; } /* its own line under the sources */
  html[data-skin=graphite] .bottom { bottom: 74px; }
  html[data-skin=graphite] .zoom { bottom: 118px; }
  html[data-skin=graphite] .mc.tag { bottom: 114px; }
  /* the Tag on a phone: a sheet above the timeline, image beside the number; More data scrolls inside it */
  html[data-skin=graphite] .mc.tag { max-height: calc(100dvh - 170px); overflow-y: auto; }
  .tag-body { display: block; max-height: none; overflow: visible; }
  .tag-main { width: auto; display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 12px; }
  .tag-head { grid-column: 1 / -1; position: sticky; top: 0; z-index: 2; background: var(--panel); }
  .mc.tag .mc-x { min-width: 44px; min-height: 44px; margin: -8px -6px 0 0; font-size: 13px; }
  .tag-main .sat { height: 112px; margin-left: 12px; width: 120px; }
  .tag-main .sat .chip { left: 4px; right: 4px; top: auto; bottom: 4px; padding: 2px 4px; font-size: 12px; text-align: center; }
  .tag-main .sat .chip-l { display: none; }
  .tag-read { padding: 0 12px 0 0; align-self: center; }
  .tag-num b { font-size: 72px; }
  .tag-main .tag-rows { grid-column: 1 / -1; margin-top: 8px; }
  .tag-btn { grid-column: 1 / -1; }
  .tag-more { min-height: 44px; }
  .tag-x { width: auto; border-left: 0; border-top: 1px solid #2e3135; }
  .mc.tag.left .tag-x { border-right: 0; }
  .mc.tag.more .tag-x { animation: none; }
  .tag-x .sat { height: 130px; }
}

/* ============ video framing (?rec): 810x1440 CSS px, recorded at 4/3 -> 1080x1920 ============ */
html.rec .by, html.rec .views, html.rec .card, html.rec .tr, html.rec #play, html.rec .mc-x, html.rec .fps, html.rec .zoom { display: none !important; }
html.rec #marks { cursor: none; }
html.rec .vignette { background: linear-gradient(to bottom, var(--ground) 0, transparent 330px), linear-gradient(to top, var(--ground) 0, transparent 420px); opacity: 0.85; }
html.rec[data-skin=future] .vignette {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom, #01050b 0, transparent 330px), linear-gradient(to top, #01050b 0, transparent 420px);
}
html.rec[data-skin=doodle] .vignette { background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(120, 96, 60, 0.16)); opacity: 1; }
html.rec .tl { top: 150px; left: 40px; max-width: 730px; }
html.rec .kicker { font-size: 18px; }
html.rec .clock { font-size: 54px; margin-top: 8px; }
html.rec .sub { font-size: 19px; margin-top: 10px; }
html.rec[data-skin=doodle] .kicker { font-size: 22px; }
html.rec[data-skin=doodle] .sub { font-size: 23px; }
html.rec[data-skin=doodle] .clock { font-size: 60px; }
html.rec[data-skin=pixel] .kicker { font-size: 16px; }
html.rec[data-skin=pixel] .sub { font-size: 16px; }
html.rec[data-skin=pixel] .clock { font-size: 56px; }
html.rec[data-skin=future] .kicker { font-size: 19px; }
html.rec[data-skin=future] .sub { font-size: 20px; }
html.rec[data-skin=future] .clock { font-size: 64px; }
html.rec .mc { left: 24px !important; right: 96px; top: 730px !important; /* right edge clears Instagram's buttons */ bottom: auto; width: auto; max-height: none; overflow: visible; padding: 14px 16px 16px; }
html.rec .mc-title { font-size: 20px; }
html.rec .mc-sub { font-size: 14px; }
html.rec .mc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html.rec .tile { height: 140px; font-size: 13px; padding: 7px 9px; }
html.rec .tf { font-size: 11px; }
html.rec[data-skin=doodle] .tf { font-size: 12px; }
html.rec[data-skin=doodle] .tile { font-size: 14px; }
html.rec[data-skin=doodle] .rows { gap: 1px; }
html.rec[data-skin=doodle] .kv { padding-bottom: 1px; }
html.rec .tb canvas { width: 100% !important; height: 100% !important; object-fit: contain; }
html.rec .mc .tile:nth-child(2), html.rec .mc .tile:nth-child(9),
html.rec .mc[data-kind=storm] .tile:nth-child(7), html.rec .mc[data-kind=point] .tile:nth-child(5) { display: none; }
html.rec .bottom { bottom: auto; top: 1150px; left: 40px; right: 40px; }
html.rec .days span { font-size: 13px; }
html.rec .credits { right: 40px; left: 40px; bottom: auto; top: 1196px; font-size: 11px; line-height: 1.5; }
/* graphite in the video: the title block ends above Ongole (y 435 in the sea framing), the band sits under the coast */
html.rec[data-skin=graphite] .tl { top: 130px; }
html.rec[data-skin=graphite] .kicker { font-size: 17px; }
html.rec[data-skin=graphite] .title { font-size: 140px; margin-top: 12px; }
html.rec[data-skin=graphite] .sub { font-size: 18px; margin-top: 14px; }
html.rec[data-skin=graphite] .leaders { width: 430px; margin-top: 10px; }
html.rec[data-skin=graphite] .ld { font-size: 17px; }
html.rec[data-skin=graphite] .mc-title { font-size: 34px; }
html.rec[data-skin=graphite] .th .r { font-size: 26px; }
html.rec[data-skin=graphite] .band.on { left: 24px; right: 96px; width: auto; transform: none; top: 760px; padding: 20px 24px 22px; }
html.rec[data-skin=graphite] .band-row span { font-size: 132px; }
html.rec[data-skin=graphite] .band-row i { flex-basis: 54px; }
html.rec[data-skin=graphite] .band-s { font-size: 17px; }
html.rec[data-skin=graphite] .band-m { font-size: 16px; }
