@font-face {
  font-family: 'OG Inter';
  src: url('../resources/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: block;
}
@font-face {
  font-family: 'OG Rajdhani';
  src: url('../resources/fonts/rajdhani-600.woff2') format('woff2');
  font-weight: 600;
  font-display: block;
}
@font-face {
  font-family: 'OG Rajdhani';
  src: url('../resources/fonts/rajdhani-700.woff2') format('woff2');
  font-weight: 700;
  font-display: block;
}

:root {
  --text-color: #eef0f3;
  --accent-color: #d8b46a;
  --bg-color: #0c0e12;
  --bg-opacity: 1;

  /* one baseline drives every size on the board */
  --u: 1vmin;

  --pad: calc(var(--u) * 3.4);
  --gap: calc(var(--u) * 2.2);
  --rule: calc(var(--u) * 0.18);
  --f-title: calc(var(--u) * 3.1);
  --f-hero: calc(var(--u) * 6.6);
  --f-state: calc(var(--u) * 5.2);
  --f-body: calc(var(--u) * 2.75);
  --f-small: calc(var(--u) * 2.3);
  --f-tiny: calc(var(--u) * 1.95);
  --radius: calc(var(--u) * 1.2);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

body {
  color: var(--text-color);
  font-family: 'OG Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: var(--f-body);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

.widget-root {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.widget-background {
  position: absolute;
  inset: 0;
  background: var(--bg-color);
  opacity: var(--bg-opacity);
}

[hidden] { display: none !important; }

/* ---------- board ---------- */

.board {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  padding: var(--pad) calc(var(--pad) * 1.2) calc(var(--pad) * 1.1);
  gap: calc(var(--gap) * 1.6);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 1.4);
  min-width: 0;
  min-height: 0;
}

.stack:not(:has(> .panel:not([hidden]))) { display: none; }

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.board > .panel + .panel,
.board > .panel + .stack,
.board > .stack + .stack {
  border-left: var(--rule) solid color-mix(in srgb, var(--accent-color) 28%, transparent);
  padding-left: calc(var(--gap) * 1.6);
}

.stack > .panel + .panel {
  border-top: var(--rule) solid color-mix(in srgb, var(--accent-color) 22%, transparent);
  padding-top: calc(var(--gap) * 1.2);
}

.panel-cycles { flex: 1.05 1 0; }
.panel-fissures { flex: 1.35 1 0; }
.stack-ops { flex: 1.05 1 0; }
.stack-trade { flex: 1 1 0; }
.panel-sortie { flex: 1.15 1 0; }
.panel-archon { flex: 1 1 0; }
.panel-baro { flex: 0.8 1 0; }
.panel-nightwave { flex: 1.3 1 0; }

.panel-title {
  display: flex;
  align-items: baseline;
  gap: var(--gap);
  font-family: 'OG Rajdhani', 'OG Inter', sans-serif;
  font-weight: 700;
  font-size: var(--f-title);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
  white-space: nowrap;
  margin-bottom: calc(var(--gap) * 0.9);
  flex: 0 0 auto;
}

.panel-tag,
.panel-time {
  font-family: 'OG Inter', sans-serif;
  font-weight: 600;
  font-size: var(--f-tiny);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-color);
  opacity: 0.6;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* ---------- cycles (the hero) ---------- */

.cycle-list {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(var(--gap) * 0.5);
}

.cycle {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "place next" "mid mid";
  align-content: center;
  column-gap: var(--gap);
  row-gap: calc(var(--gap) * 0.25);
}

.cycle-place {
  grid-area: place;
  font-size: var(--f-tiny);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.58;
  white-space: nowrap;
}

.cycle-mid {
  grid-area: mid;
  display: flex;
  align-items: baseline;
  gap: calc(var(--gap) * 0.9);
  min-width: 0;
  white-space: nowrap;
}

.cycle-state {
  font-family: 'OG Rajdhani', 'OG Inter', sans-serif;
  font-weight: 700;
  font-size: var(--f-state);
  line-height: 1;
  min-width: 3.7em;
}

.cycle.is-warm .cycle-state { color: var(--accent-color); }

.cycle-time {
  font-weight: 700;
  font-size: var(--f-hero);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.cycle-next {
  grid-area: next;
  align-self: baseline;
  text-align: right;
  font-size: var(--f-tiny);
  opacity: 0.55;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.baro-mini {
  display: none;
  flex: 0 0 auto;
  margin-top: var(--gap);
  font-size: var(--f-small);
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baro-mini:empty { display: none !important; }

/* ---------- fissures ---------- */

.fissure-list {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 0.75);
  overflow: hidden;
}

.tier {
  display: grid;
  grid-template-columns: calc(var(--u) * 13) 1fr;
  column-gap: var(--gap);
  min-height: 0;
  flex: 0 0 auto;
}

.tier + .tier {
  padding-top: calc(var(--gap) * 0.75);
  border-top: var(--rule) solid color-mix(in srgb, var(--text-color) 9%, transparent);
}

.tier-name {
  font-family: 'OG Rajdhani', 'OG Inter', sans-serif;
  font-weight: 700;
  font-size: calc(var(--f-body) * 1.2);
  line-height: 1.1;
  color: var(--accent-color);
}

.tier-lines {
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 0.3);
  min-width: 0;
}

.fis {
  display: flex;
  align-items: baseline;
  gap: calc(var(--gap) * 0.7);
  white-space: nowrap;
  min-width: 0;
}

.fis-type { font-weight: 600; flex: 0 0 auto; }

.fis-place {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
}

.fis-planet { opacity: 0.6; font-size: var(--f-small); }

.fis-time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-size: var(--f-small);
  opacity: 0.7;
}

.badge {
  flex: 0 0 auto;
  font-size: var(--f-tiny);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.05em 0.45em;
  border-radius: var(--radius);
  color: var(--bg-color);
  background: var(--accent-color);
}

.empty-line {
  font-size: var(--f-small);
  opacity: 0.6;
}

/* ---------- sortie / archon ---------- */

.boss-line {
  font-weight: 700;
  font-size: calc(var(--f-body) * 1.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: calc(var(--gap) * 0.6);
  flex: 0 0 auto;
}

.mission-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 0.55);
  counter-reset: m;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.mission {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: calc(var(--gap) * 0.7);
  counter-increment: m;
  min-width: 0;
}

.mission::before {
  content: counter(m);
  grid-row: 1 / 3;
  font-family: 'OG Rajdhani', 'OG Inter', sans-serif;
  font-weight: 700;
  font-size: calc(var(--f-body) * 1.3);
  line-height: 1;
  color: var(--accent-color);
  opacity: 0.85;
  min-width: 0.8em;
}

.mission-type { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mission-node,
.mission-mod {
  font-size: var(--f-small);
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  grid-column: 2;
}

.mission-type + .mission-node { grid-column: 2; }

.mission-mod { opacity: 0.85; color: var(--accent-color); }

.panel-sortie .mission { grid-template-rows: auto auto auto; }
.panel-sortie .mission::before { grid-row: 1 / 4; }

/* ---------- baro ---------- */

.baro-state {
  font-size: var(--f-small);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.baro-count {
  font-weight: 700;
  font-size: calc(var(--f-hero) * 0.78);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.baro-where {
  font-size: var(--f-small);
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- nightwave ---------- */

.nw-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 0.35);
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.nw {
  display: flex;
  align-items: baseline;
  gap: calc(var(--gap) * 0.7);
  white-space: nowrap;
  min-width: 0;
  font-size: var(--f-small);
  flex: 0 0 auto;
}

.nw-kind {
  flex: 0 0 calc(var(--u) * 8.5);
  font-size: var(--f-tiny);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.nw.is-elite .nw-kind { color: var(--accent-color); opacity: 0.9; }

.nw-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.nw-rep { flex: 0 0 auto; font-variant-numeric: tabular-nums; opacity: 0.65; }

/* ---------- status + loading/error card ---------- */

.status-line {
  position: absolute;
  right: calc(var(--pad) * 1.2);
  bottom: calc(var(--pad) * 0.3);
  font-size: var(--f-tiny);
  opacity: 0.4;
  z-index: 2;
  white-space: nowrap;
}

.status-line.is-offline { opacity: 0.9; color: var(--accent-color); }

.state-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 70%;
  padding: calc(var(--pad) * 0.9) calc(var(--pad) * 1.2);
  border-radius: calc(var(--radius) * 2);
  background: color-mix(in srgb, var(--bg-color) 86%, var(--text-color));
  border: var(--rule) solid color-mix(in srgb, var(--accent-color) 45%, transparent);
  text-align: center;
  z-index: 3;
}

.state-title {
  font-family: 'OG Rajdhani', 'OG Inter', sans-serif;
  font-weight: 700;
  font-size: var(--f-title);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.state-body { margin-top: 0.4em; font-size: var(--f-small); opacity: 0.8; }

/* cycles come from the clock, so they stay bright while the rest waits for data */
.widget-root[data-state='loading'] .board > :not(.panel-cycles),
.widget-root[data-state='error'] .board > :not(.panel-cycles) { opacity: 0.3; }

/* =========================================================
   Layouts by slot. Horizontal L and XL show every panel;
   smaller slots hide panels instead of shrinking text.
   ========================================================= */

/* Medium horizontal (840 x 696): cycles + fissures */
@media (max-aspect-ratio: 2/1) and (min-aspect-ratio: 1/1) and (min-height: 500px) {
  .stack { display: none !important; }
  .board > .panel-cycles .baro-mini { display: block; }
  .panel-cycles { flex: 1 1 0; }
  .panel-fissures { flex: 1.1 1 0; }
  .tier { grid-template-columns: calc(var(--u) * 11) 1fr; }
}

/* Small slots (840 x 344, 696 x 416): cycles only, plus a one-line Baro note */
@media (max-height: 499px) {
  :root { --u: 5.3px; }
  .board > :not(.panel-cycles) { display: none !important; }
  .panel-cycles .panel-title { display: none; }
  .baro-mini { display: block; }
}

@media (max-height: 499px) and (min-aspect-ratio: 2/1) {
  .cycle-list {
    flex-direction: row;
    gap: calc(var(--gap) * 1.6);
  }
  .cycle {
    grid-template-columns: 1fr;
    grid-template-areas: "place" "mid" "next";
    align-content: center;
  }
  .cycle + .cycle {
    border-left: var(--rule) solid color-mix(in srgb, var(--accent-color) 28%, transparent);
    padding-left: calc(var(--gap) * 1.6);
  }
  .cycle-mid { flex-direction: column; align-items: flex-start; gap: calc(var(--gap) * 0.4); }
  .cycle-state { min-width: 0; }
  .cycle-next { text-align: left; padding-top: 0.3em; }
}

@media (max-height: 499px) and (max-aspect-ratio: 2/1) {
  :root { --u: 4.5px; }
}

/* Vertical slots (696 wide): panels stack top to bottom */
@media (max-aspect-ratio: 1/1) {
  .board { flex-direction: column; gap: calc(var(--gap) * 1.4); }
  .stack { flex-direction: column; }
  .board > .panel + .panel,
  .board > .panel + .stack,
  .board > .stack + .stack {
    border-left: 0;
    padding-left: 0;
    border-top: var(--rule) solid color-mix(in srgb, var(--accent-color) 28%, transparent);
    padding-top: calc(var(--gap) * 1.3);
  }
  .panel-cycles { flex: 0 0 auto; height: calc(var(--u) * 58); }
  .panel-fissures { flex: 1 1 0; min-height: calc(var(--u) * 50); }
  .stack-ops, .stack-trade { flex: 1 1 0; }
}

/* Medium vertical (696 x 840): cycles + fissures */
@media (max-aspect-ratio: 1/1) and (max-height: 1000px) {
  .stack { display: none !important; }
  .panel-cycles .baro-mini { display: block; }
}

/* Large vertical (696 x 1688): adds Sortie and Archon Hunt */
@media (max-aspect-ratio: 1/1) and (min-height: 1001px) and (max-height: 2000px) {
  .stack-trade { display: none !important; }
  .panel-cycles .baro-mini { display: block; }
  .stack-ops { flex: 1.1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* rows that would be cut off are hidden whole by fitRows() in orbiter.js */
.is-overflow { display: none !important; }

/* =========================================================
   1.1: Watch for. The panel leads the board; it exists only
   when a watch is set, so a 1.0 board looks the same as before.
   ========================================================= */

.panel-watch { flex: 0.95 1 0; display: none; }
.widget-root[data-watch='idle'] .panel-watch,
.widget-root[data-watch='lit'] .panel-watch { display: flex; }

.watch-list {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 0.55);
  overflow: hidden;
}

.wf-item {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: calc(var(--gap) * 0.7);
  min-width: 0;
  white-space: nowrap;
  font-size: var(--f-small);
  padding: calc(var(--gap) * 0.2) 0;
}
.wf-item .wf-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.wf-when { flex: 0 0 auto; font-variant-numeric: tabular-nums; opacity: 0.7; }

/* lit: a filled tile with a NOW label and a heavy frame, readable without the colour */
.wf-lit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(var(--gap) * 0.3);
  padding: calc(var(--gap) * 0.8) calc(var(--gap) * 0.9);
  border-radius: calc(var(--radius) * 1.4);
  border: calc(var(--rule) * 3) solid var(--accent-color);
  background: color-mix(in srgb, var(--accent-color) 20%, transparent);
  cursor: pointer;
  white-space: normal;
}
.wf-top { display: flex; align-items: center; gap: calc(var(--gap) * 0.6); min-width: 0; white-space: nowrap; }
.wf-now {
  flex: 0 0 auto;
  font-family: 'OG Rajdhani', 'OG Inter', sans-serif;
  font-weight: 700;
  font-size: var(--f-small);
  letter-spacing: 0.12em;
  padding: 0.05em 0.5em;
  border-radius: var(--radius);
  color: var(--bg-color);
  background: var(--accent-color);
}
.wf-lit .wf-title { font-family: 'OG Rajdhani', 'OG Inter', sans-serif; font-weight: 700; font-size: calc(var(--f-body) * 1.35); line-height: 1.05; }
.wf-detail { font-size: var(--f-small); opacity: 0.88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.wf-hint { font-size: var(--f-tiny); opacity: 0.6; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .wf-lit { animation: wf-breathe 2.6s ease-in-out infinite; }
}
@keyframes wf-breathe { 50% { border-color: color-mix(in srgb, var(--accent-color) 50%, transparent); } }

.watch-note { flex: 0 0 auto; font-size: var(--f-tiny); opacity: 0.75; color: var(--accent-color); white-space: normal; padding-top: calc(var(--gap) * 0.4); }
.watch-note:empty { display: none; }

/* the cycle a watch is set on: a small ring before its name */
.cycle.is-watched .cycle-place::before {
  content: ''; display: inline-block; width: 0.75em; height: 0.75em; margin-right: 0.45em; vertical-align: -0.05em;
  border-radius: 50%; border: calc(var(--rule) * 1.6) solid var(--accent-color);
}

/* the one-line "what's next" for slots too small for the panel */
.watch-mini {
  display: none;
  flex: 0 0 auto;
  margin-top: calc(var(--gap) * 0.5);
  font-size: var(--f-small);
  color: var(--accent-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch-mini:empty { display: none !important; }

/* cycles from the clock stay bright while offline; so does anything lit */
.widget-root[data-state='error'] .board > .panel-watch,
.widget-root[data-state='loading'] .board > .panel-watch { opacity: 1; }
.widget-root[data-watch='lit'] .state-card { display: none; }

/* Medium horizontal: the panel only when something is lit, and then it replaces the fissures */
@media (max-aspect-ratio: 2/1) and (min-aspect-ratio: 1/1) and (min-height: 500px) {
  .widget-root[data-watch='idle'] .panel-watch { display: none; }
  .widget-root[data-watch='idle'] .watch-mini { display: block; }
  .widget-root[data-watch='lit'] .panel-fissures { display: none; }
  .panel-watch { flex: 1.1 1 0; }
}

/* Small slots: idle = one line under the cycles; lit = the lit tile replaces the list */
@media (max-height: 499px) {
  .widget-root[data-watch='idle'] .board > .panel-watch { display: none !important; }
  .widget-root[data-watch='idle'] .watch-mini { display: block; }
  .widget-root[data-watch='idle'] .baro-mini { display: none !important; }
  .widget-root[data-watch='lit'] .board > .panel-cycles { display: none !important; }
  .widget-root[data-watch='lit'] .board > .panel-watch { display: flex !important; flex: 1 1 0; }
  .panel-watch .panel-title { display: none; }
  .wf-lit .wf-title { font-size: calc(var(--f-body) * 1.9); }
  .wf-lit .wf-detail { font-size: var(--f-body); }
}
@media (max-height: 499px) and (min-aspect-ratio: 2/1) {
  .widget-root[data-watch='lit'] .watch-list { flex-direction: row; }
  .widget-root[data-watch='lit'] .watch-list > .wf-item { flex: 1 1 0; min-width: 0; }
  .widget-root[data-watch='lit'] .watch-list > .wf-item:not(.wf-lit) { display: none; }
}
@media (max-height: 499px) and (max-aspect-ratio: 2/1) {
  .widget-root[data-watch='lit'] .watch-list > .wf-item:not(.wf-lit) { display: none; }
}

/* Vertical slots: the panel sits on top, sized to what it holds */
@media (max-aspect-ratio: 1/1) {
  .panel-watch { flex: 0 0 auto; max-height: calc(var(--u) * 62); }
  .watch-list { flex: 0 1 auto; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 1000px) {
  .widget-root[data-watch='idle'] .panel-watch { display: none; }
  .widget-root[data-watch='idle'] .watch-mini { display: block; }
  .widget-root[data-watch='idle'] .panel-cycles .baro-mini { display: none !important; }
  .widget-root[data-watch='lit'] .panel-fissures { display: none; }
  .widget-root[data-watch='lit'] .panel-cycles { height: auto; flex: 1 1 0; }
  .panel-watch { max-height: none; }
}

/* with no watch set, the hidden watch panel must not give the cycles a divider (keeps the 1.0 board exact) */
.widget-root:not([data-watch='idle']):not([data-watch='lit']) .board > .panel-watch + .panel-cycles {
  border-left: 0; border-top: 0; padding-left: 0; padding-top: 0;
}
/* the lit title may take two lines */
.wf-lit .wf-top { white-space: normal; align-items: flex-start; }
.wf-lit .wf-title { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* Large horizontal (1688): the watch panel takes the Baro + Nightwave column; Baro moves to a line under the cycles */
@media (min-aspect-ratio: 2/1) and (min-height: 500px) and (max-width: 2000px) {
  .widget-root[data-watch='idle'] .stack-trade, .widget-root[data-watch='lit'] .stack-trade { display: none !important; }
  .widget-root[data-watch='idle'] .panel-cycles .baro-mini, .widget-root[data-watch='lit'] .panel-cycles .baro-mini { display: block; }
}
/* vertical: the cycles keep their full height under the divider the watch panel brings */
@media (max-aspect-ratio: 1/1) {
  .widget-root[data-watch='idle'] .panel-cycles, .widget-root[data-watch='lit'] .panel-cycles { height: calc(var(--u) * 58 + var(--gap) * 1.3 + var(--rule)); }
}
.fis-place.no-planet .fis-planet { display: none; }
/* slots where an idle watch shows as one line, not a panel: no divider before the cycles either */
@media (max-aspect-ratio: 2/1) and (min-aspect-ratio: 1/1) and (min-height: 500px) {
  .widget-root[data-watch='idle'] .board > .panel-watch + .panel-cycles { border-left: 0; padding-left: 0; }
}
@media (max-height: 499px) {
  .widget-root[data-watch='idle'] .board > .panel-watch + .panel-cycles { border-left: 0; border-top: 0; padding-left: 0; padding-top: 0; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 1000px) {
  .widget-root[data-watch='idle'] .board > .panel-watch + .panel-cycles { border-top: 0; padding-top: 0; height: calc(var(--u) * 58); }
}
.wf-more { display: none; }
@media (max-height: 499px) {
  .widget-root[data-watch='lit'] .wf-lit { align-content: center; gap: calc(var(--gap) * 0.6); }
}
/* the narrow small slot: only the newest lit tile, big, with a count of the others */
@media (max-height: 499px) and (max-aspect-ratio: 2/1) {
  .widget-root[data-watch='lit'] .watch-list > .wf-lit ~ .wf-lit { display: none; }
  .widget-root[data-watch='lit'] .watch-list > .wf-lit:first-child { flex: 1 1 auto; }
  .wf-more { display: inline; }
  .wf-lit .wf-title { font-size: calc(var(--f-body) * 2.3); }
  .wf-lit .wf-detail { white-space: normal; }
  .wf-hint { font-size: var(--f-small); }
}
@media (max-height: 499px) {
  .widget-root[data-watch='lit'] .wf-lit .wf-title { font-size: calc(var(--f-body) * 2.2); }
  .widget-root[data-watch='lit'] .wf-lit .wf-detail { font-size: calc(var(--f-body) * 1.15); white-space: normal; }
  .widget-root[data-watch='lit'] .wf-hint { font-size: var(--f-small); }
  .widget-root[data-watch='lit'] .wf-now { font-size: var(--f-body); }
}
@media (max-height: 499px) and (max-aspect-ratio: 2/1) {
  .widget-root[data-watch='lit'] .wf-lit .wf-title { font-size: calc(var(--f-body) * 3); }
  .widget-root[data-watch='lit'] .wf-lit .wf-detail { font-size: calc(var(--f-body) * 1.5); }
  .widget-root[data-watch='lit'] .wf-hint { font-size: calc(var(--f-body) * 1.1); }
}
@media (max-height: 499px) and (min-aspect-ratio: 2/1) {
  .widget-root[data-watch='lit'] .watch-list > .wf-lit:only-child .wf-title { font-size: calc(var(--f-body) * 3.2); }
  .widget-root[data-watch='lit'] .watch-list > .wf-lit:only-child .wf-detail { font-size: calc(var(--f-body) * 1.6); }
}
