/* Doom Desk embeddable widgets (embed-clock.html, embed-record.html). Self-contained: no site CSS needed.
   Fonts are the site's bundled OFL fonts, loaded relative to this file. */
@font-face { font-family: "Pirata One"; src: url("../assets/fonts/PirataOne-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/PlayfairDisplay-Variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/Newsreader-Text.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: transparent; }
/* fill the iframe exactly (no gap under the card if the embed height is generous) */
.w { min-height: 100vh; }
body { font-family: "Newsreader", Georgia, serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.w { --bg: #15120e; --panel: rgba(0,0,0,.22); --ink: #efe6d5; --text: #e9dfcc; --muted: #b7aa92; --dim: #8b7f6b; --line: #4a4033;
  --ember: #ff5a1f; --ember-2: #ff8a3d; --hazard: #ffd23f; --alive: #a6ee7c; --ice: #8fd3ef;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 10px 14px 10px; position: relative; overflow: hidden; }
.w.theme-light { --bg: #f4ecdc; --panel: rgba(60,40,10,.06); --ink: #1b1611; --text: #2a231b; --muted: #5c5040; --dim: #7a6c58; --line: #cbbd9f;
  --ember: #c2410c; --ember-2: #c2410c; --hazard: #8a5a00; --alive: #3f7d1f; --ice: #1d6f8f; }
.w-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.w-kick { font-family: "JetBrains Mono", Consolas, monospace; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #160a04; background: var(--ember); padding: 2px 6px; white-space: nowrap; }
.w.theme-light .w-kick { color: #fff7ea; }
.w-via { font-family: "JetBrains Mono", Consolas, monospace; font-size: 10px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.w-via b { font-family: "Pirata One", Georgia, serif; font-weight: 400; font-size: 15px; letter-spacing: .02em; color: var(--ink); }
.w-lbl { margin: 8px 0 2px; font-family: "JetBrains Mono", Consolas, monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.w-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 18px; line-height: 1.15; color: var(--ink); }
.w-claim { margin: 4px 0 0; font-size: 13.5px; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.w-cap { margin: 8px 0 3px; font-family: "JetBrains Mono", Consolas, monospace; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hazard); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w.state-past .w-cap { color: var(--alive); }
.w-cwrap .w-count { margin-top: 0; }
.w:not(.size-banner) .w-main { margin-top: 5px; }
.w-count { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.9fr); margin: 9px 0 7px; border: 1px solid var(--line); background: var(--panel); }
.w-count .u { text-align: center; padding: 5px 2px 4px; border-left: 1px solid var(--line); min-width: 0; }
.w-count .u:first-child { border-left: 0; }
.w-count b { display: block; font-family: "JetBrains Mono", Consolas, monospace; font-weight: 800; font-size: clamp(15px, 6.4vw, 24px); line-height: 1.05; color: var(--hazard); font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-count .hms b { color: var(--ink); }
.w-count span { font-family: "JetBrains Mono", Consolas, monospace; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.w-foot { margin: 0; font-family: "JetBrains Mono", Consolas, monospace; font-size: 10px; color: var(--muted); letter-spacing: .02em; display: flex; justify-content: space-between; gap: 8px; }
.w-foot > span { white-space: nowrap; }
.w-foot .when { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.w-foot .rec b { color: var(--alive); }
.w.state-past .w-count b { color: var(--alive); }
.w-status { font-family: "JetBrains Mono", Consolas, monospace; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--alive); }

/* compact: one tight block */
.w.size-compact { padding: 8px 11px 8px; }
.w.size-compact .w-lbl { margin-top: 6px; }
.w.size-compact .w-title { -webkit-line-clamp: 1; font-size: 15px; }
.w.size-compact .w-count { margin: 6px 0 5px; }
.w.size-compact .w-count b { font-size: clamp(13px, 5.6vw, 18px); }
.w.size-compact .w-count span { font-size: 7.5px; }
.w.size-compact .w-foot .when { display: none; }
.w.size-compact .w-claim { font-size: 12px; -webkit-line-clamp: 2; margin-top: 2px; }
.w.size-compact .w-cap { margin: 6px 0 2px; font-size: 9px; }

/* banner: one row, fluid width */
.w.size-banner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) auto; align-items: center; gap: 4px 16px; padding: 9px 14px; min-height: 84px; }
.w.size-banner .w-top { flex-direction: column; align-items: flex-start; gap: 5px; grid-column: 3; grid-row: 1; text-align: right; align-items: flex-end; }
.w.size-banner .w-main { grid-column: 1; grid-row: 1; min-width: 0; }
.w.size-banner .w-lbl { margin: 0 0 2px; }
.w.size-banner .w-title { -webkit-line-clamp: 1; font-size: 17px; }
.w.size-banner .w-cwrap { grid-column: 2; grid-row: 1; min-width: 0; }
.w.size-banner .w-cap { margin-top: 0; }
.w.size-banner .w-claim { -webkit-line-clamp: 2; font-size: 12.5px; }
.w.size-banner .w-count { margin: 0; }
.w.size-banner .w-foot { display: none; }
.w.size-banner .w-top .rec { display: block; }
.w .w-top .rec { display: none; font-family: "JetBrains Mono", Consolas, monospace; font-size: 10px; color: var(--muted); }
.w .w-top .rec b { color: var(--alive); }
@media (max-width: 560px) {
  .w.size-banner { grid-template-columns: minmax(0, 1fr) auto; }
  .w.size-banner .w-main { grid-column: 1; }
  .w.size-banner .w-top { grid-column: 2; }
  .w.size-banner .w-cwrap { grid-column: 1 / -1; grid-row: 2; }
}

/* record widget */
.w-score { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 8px 0 6px; border: 1px solid var(--line); background: var(--panel); }
.w-score div { text-align: center; padding: 5px 2px 4px; border-left: 1px solid var(--line); }
.w-score div:first-child { border-left: 0; }
.w-score b { display: block; font-family: "JetBrains Mono", Consolas, monospace; font-weight: 800; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.w-score .wins b { color: var(--ember); }
.w-score .losses b { color: var(--alive); }
.w-score span { font-family: "JetBrains Mono", Consolas, monospace; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.w-tick { margin: 6px 0 4px; }
.w-tick .big { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 20px; line-height: 1.12; color: var(--ink); }
.w-tick .hms { font-family: "JetBrains Mono", Consolas, monospace; font-weight: 800; font-size: 15px; color: var(--alive); font-variant-numeric: tabular-nums; }
.w-tick .what { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-tick .what a { color: var(--text); }
.w.size-badge { padding: 7px 10px 7px; }
.w.size-badge .w-score { margin: 6px 0 0; }
.w.size-badge .w-score b { font-size: 20px; }
/* Doom Wire: the one-line news ticker (record widget, size=ticker) */
.w.size-ticker { display: flex; align-items: stretch; padding: 0; min-height: 0; height: 100vh; max-height: 64px; border-top-width: 1px; font-family: "JetBrains Mono", Consolas, monospace; font-size: 13px; line-height: 1; }
.tk-label { flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--ember); color: #160a04; font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.w.theme-light .tk-label { color: #fff7ea; }
.tk-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: tk-blink 1.6s steps(2, start) infinite; }
@keyframes tk-blink { to { visibility: hidden; } }
.tk-track { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.tk-move { display: flex; width: max-content; animation: tk-crawl 60s linear infinite; will-change: transform; }
.w.size-ticker:hover .tk-move, .w.size-ticker:focus-within .tk-move { animation-play-state: paused; }
@keyframes tk-crawl { to { transform: translateX(-50%); } }
.tk-run { display: flex; align-items: center; flex: none; }
.tk-item { display: inline-flex; align-items: baseline; gap: 7px; padding: 0 4px 0 14px; white-space: nowrap; color: var(--ink); font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 15px; }
.tk-item:hover { text-decoration: none; }
.tk-item:hover .tk-title, a.tk-item:hover { color: var(--hazard); }
.tk-tag { font-family: "JetBrains Mono", Consolas, monospace; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tk-tag.up { color: var(--hazard); }
.tk-tag.bust { color: var(--alive); }
.tk-t { font-family: "JetBrains Mono", Consolas, monospace; font-weight: 700; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tk-rec { font-family: "JetBrains Mono", Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tk-rec b { color: var(--alive); }
.tk-sep { font-style: normal; font-size: 9px; color: var(--ember); padding: 0 6px 0 14px; }
.w.size-ticker .w-via { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-left: 1px solid var(--line); }
@media (max-width: 420px) { .w.size-ticker .w-via { display: none; } .tk-label { padding: 0 9px; letter-spacing: .1em; } }
@media (prefers-reduced-motion: reduce) {
  .tk-track { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .tk-run[aria-hidden] { display: none; }
}
html.solo .w.size-ticker { max-width: 970px; height: 44px; }
.w-err { font-family: "JetBrains Mono", Consolas, monospace; font-size: 11px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* opened directly (not inside an iframe): show it as a specimen instead of stretching it to the window */
html.solo body { padding: 24px 12px; background: #2a241c; }
html.solo .w { min-height: 0; max-width: 380px; margin: 0 auto; }
html.solo .w.size-banner { max-width: 970px; }
