/* Radar Now — a Shōwa supermarket flyer, printed at night. Red band, yellow
   starbursts, cyan for the rooms, coupon cut-lines between items. */
:root {
  --ink: #16110f;
  --ink2: #1f1915;
  --ink3: #2a221c;
  --rule: #4a3b30;
  --paper: #fff6e4;
  --dim: #c8b8a2;
  --mute: #8f7f6e;
  --red: #e60012;
  --yellow: #fff100;
  --cyan: #00a0e9;
  --pink: #ff5fa2;
  --up: #34d27b;
  --d: 'Dela Gothic One', 'Arial Black', sans-serif;
  --dot: 'DotGothic16', ui-monospace, monospace;
  --t: 'Zen Kaku Gothic New', system-ui, sans-serif;
  color-scheme: dark;
  accent-color: var(--yellow);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--paper); font: 14px/1.45 var(--t); }
body { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
img { display: block; }
.num { font-family: var(--dot); }

/* ---- header band */
.band { flex: none; display: flex; align-items: center; gap: 18px; padding: 8px 18px; background: var(--red); box-shadow: 0 3px 0 #000; position: relative; z-index: 6; }
.brand { font: 400 30px/1 var(--d); color: var(--yellow); text-decoration: none; text-shadow: 3px 3px 0 #000; letter-spacing: .02em; display: flex; align-items: baseline; gap: 8px; }
.brand i { font: 400 12px var(--dot); font-style: normal; color: #fff; text-shadow: none; letter-spacing: .1em; }
.band nav { display: flex; gap: 2px; }
.band nav a { font: 700 14px var(--t); padding: 6px 11px; text-decoration: none; color: #fff; }
.band nav a:hover { background: rgba(0,0,0,.18); }
.band nav a.on { background: var(--yellow); color: #000; box-shadow: 2px 2px 0 #000; }
.qcheck { display: flex; flex: 1; max-width: 440px; margin-left: 6px; }
.qcheck input { flex: 1; min-width: 0; font: 700 14px var(--t); padding: 7px 12px; border: 2px solid #000; border-right: 0; background: #fff; color: #000; }
.qcheck input::placeholder { color: #6d625a; font-weight: 400; }
.qcheck button { font: 400 14px var(--d); padding: 0 14px; border: 2px solid #000; background: var(--yellow); color: #000; cursor: pointer; }
.qcheck button:hover { background: #fff; }
.wires { margin-left: auto; display: flex; gap: 10px; font: 12px var(--dot); color: #fff; white-space: nowrap; }
.wires span { display: inline-flex; align-items: center; gap: 5px; }
.wires span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 2px #000; }
.wires span.late::before { background: var(--yellow); }
.wires span.dead::before { background: #000; box-shadow: 0 0 0 2px #fff; }

.checkpop:empty { display: none; }
.checkpop { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); z-index: 9; width: min(640px, 94vw); padding: 14px 16px; background: var(--paper); color: #000; border: 3px solid #000; box-shadow: 6px 6px 0 var(--red); }
.verdict { font: 700 15px var(--t); }
.verdict.free::before { content: 'OPEN '; font-family: var(--d); color: #0a7d3b; }
.verdict.taken::before { content: 'TAKEN '; font-family: var(--d); color: var(--red); }
.verdict.used::before, .verdict.tried::before { content: 'USED '; font-family: var(--d); color: #b25d00; }
.checkpop .coins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; gap: 6px; padding: 3px 8px; border: 2px solid #000; text-decoration: none; font-size: 12.5px; background: #fff; }
.chip b { font-family: var(--d); font-weight: 400; }

/* ---- metas: price tags */
.tags { flex: none; display: flex; align-items: center; gap: 12px; padding: 9px 18px; border-bottom: 2px dashed var(--rule); }
.tl { font: 12px var(--dot); color: var(--mute); white-space: nowrap; }
.tagrow { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 4px 0; }
.tag { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 16px; background: var(--yellow); color: #000; font: 700 13px var(--t); clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); white-space: nowrap; }
.tag b { font: 15px var(--dot); }
.tag.word { background: var(--cyan); }
.tag.word b { color: #fff; }

/* ---- starburst sticker */
.burst { flex: none; display: grid; place-items: center; width: 52px; height: 52px; background: var(--yellow); color: var(--red); font: 20px/1 var(--dot);
  clip-path: polygon(50% 0, 59% 14%, 75% 6%, 76% 24%, 94% 25%, 86% 41%, 100% 50%, 86% 59%, 94% 75%, 76% 76%, 75% 94%, 59% 86%, 50% 100%, 41% 86%, 25% 94%, 24% 76%, 6% 75%, 14% 59%, 0 50%, 14% 41%, 6% 25%, 24% 24%, 25% 6%, 41% 14%); }
.burst small { display: block; font: 9px var(--t); font-weight: 900; color: #000; margin-top: -2px; text-align: center; }
.burst.hot { background: var(--red); color: var(--yellow); }
.burst.hot small { color: #fff; }
.burst.cy { background: var(--cyan); color: #fff; }
.burst.cy small { color: #000; }
.burst.sm { width: 30px; height: 30px; font: 16px var(--d); color: #000; }
.fresh .burst, .fresh .bigburst { animation: land .55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes land { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fresh .burst, .fresh .bigburst { animation: none; } }

/* ---- crossfire */
.cross { flex: none; padding: 10px 18px 12px; background: var(--ink2); border-bottom: 3px solid #000; }
.cross h2, .col h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: 400 20px var(--d); }
h2 small { font: 400 12.5px var(--t); color: var(--dim); }
.crossrow { display: flex; gap: 12px; overflow-x: auto; padding: 10px 2px 4px; }
.xt { flex: none; width: 300px; position: relative; background: var(--paper); color: #000; padding: 12px 12px 10px; box-shadow: 4px 4px 0 #000; }
.xt .bigburst { position: absolute; top: -8px; right: -6px; width: 66px; height: 66px; display: grid; place-items: center; text-align: center; background: var(--red); color: var(--yellow); font: 26px/0.9 var(--dot);
  clip-path: polygon(50% 0, 59% 14%, 75% 6%, 76% 24%, 94% 25%, 86% 41%, 100% 50%, 86% 59%, 94% 75%, 76% 76%, 75% 94%, 59% 86%, 50% 100%, 41% 86%, 25% 94%, 24% 76%, 6% 75%, 14% 59%, 0 50%, 14% 41%, 6% 25%, 24% 24%, 25% 6%, 41% 14%); }
.xt .bigburst small { display: block; font: 900 8.5px var(--t); color: #fff; }
.xt .top { display: flex; gap: 10px; align-items: center; padding-right: 54px; }
.xt .top img, .xt .top .ph { width: 40px; height: 40px; object-fit: cover; border: 2px solid #000; background: #ddd; flex: none; }
.xt .sym { font: 400 22px/1 var(--d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt .nm { font-size: 12px; color: #4b4038; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt .mc { font: 15px var(--dot); color: var(--red); }
.xt .lines { margin: 8px 0 6px; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.35; }
.xt .lines li { padding: 3px 0; border-top: 1px dashed #b9ab96; display: flex; gap: 6px; }
.xt .lines li span:last-child { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xt .lk { display: flex; gap: 10px; font: 700 12px var(--t); }
.xt .lk a { color: #000; }
.xt.empty { width: auto; background: transparent; color: var(--dim); box-shadow: none; padding: 6px 0; }

/* source stamps, one colour per feed */
.src { flex: none; font: 900 10.5px/1 var(--t); padding: 3px 5px; color: #000; background: var(--dim); white-space: nowrap; align-self: flex-start; }
.src.finds { background: var(--yellow); }
.src.rooms, .src.popular { background: var(--cyan); color: #fff; }
.src.scans { background: #8fd8ff; }
.src.callouts { background: var(--pink); }
.src.tape { background: var(--red); color: #fff; }
.src.ran { background: #fff; outline: 1px solid #000; }
.also { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font: 11px var(--dot); color: var(--yellow); }

/* ---- feeds */
.tabs { display: none; }
.cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; }
.col { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 3px solid #000; }
.col:last-child { border-right: 0; }
.col > h2 { padding: 8px 14px; flex: none; font-size: 18px; flex-wrap: wrap; gap: 4px 10px; }
.c-surf > h2 { background: var(--yellow); color: #000; }
.c-surf > h2 small { color: #3c3400; }
.c-lant > h2 { background: var(--cyan); color: #fff; }
.c-lant > h2 small { color: #e2f5ff; }
.c-tape > h2 { background: var(--red); color: #fff; }
.c-tape > h2 small { color: #ffd6d9; }
.c-ran > h2 { background: var(--paper); color: #000; }
.c-ran > h2 small { color: #5e5246; }
.feed { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 30px; }
.sub { flex: none; display: flex; border-bottom: 2px solid #000; background: var(--ink2); }
.sub button { flex: 1; font: 700 13px var(--t); padding: 7px 4px; background: none; color: var(--dim); border: 0; border-right: 1px solid var(--rule); cursor: pointer; }
.sub button:last-child { border-right: 0; }
.sub button[aria-selected="true"] { background: var(--paper); color: #000; }
.sub b { font: 12px var(--dot); }

.lbl { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 2px; font: 12px var(--dot); color: var(--mute); }
.lbl.stale { color: var(--yellow); }
.mood { font-size: 13px; color: var(--dim); font-style: italic; margin: 4px 0 2px; }
.empty { color: var(--mute); padding: 18px 2px; font-size: 13px; }

/* one item = one coupon */
.it { padding: 12px 2px; border-bottom: 2px dashed var(--rule); position: relative; }
.it.low { opacity: .7; }
.h { display: flex; gap: 10px; align-items: flex-start; }
.h > img, .h > .ph { width: 38px; height: 38px; object-fit: cover; flex: none; border: 2px solid #000; background: var(--ink3); }
.who { min-width: 0; flex: 1; }
.sym { font: 400 17px/1.15 var(--d); word-break: break-word; }
.kind { font: 11px var(--dot); color: var(--mute); margin-left: 4px; }
.nm { font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r { text-align: right; flex: none; font: 15px var(--dot); }
.r div { font: 11px var(--t); color: var(--mute); }
.up { color: var(--up); }
.dn { color: #ff5a5f; }
.tx { margin-top: 7px; font-size: 13.5px; color: var(--paper); overflow-wrap: anywhere; }
.why { margin-top: 6px; font-size: 13px; color: var(--dim); }
.hook { margin-top: 6px; font-size: 13px; padding-left: 9px; border-left: 3px solid var(--yellow); }
.posts { margin-top: 8px; display: grid; gap: 5px; }
.post { font-size: 13px; padding: 7px 9px; background: var(--ink2); border-left: 3px solid var(--cyan); overflow-wrap: anywhere; }
.post .as { display: block; font: 11px var(--dot); color: var(--mute); margin-bottom: 2px; }
.post a { color: var(--yellow); }
.post.wait { color: var(--mute); border-left-color: var(--rule); }
.f { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12px; color: var(--mute); }
.f b { color: var(--paper); font-family: var(--dot); font-weight: 400; }
.f .links { margin-left: auto; display: flex; gap: 10px; }
.f .links a { font-weight: 700; color: var(--paper); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.f .links a:hover { color: var(--yellow); }
.pill { font: 900 10.5px/1 var(--t); padding: 3px 6px; background: var(--ink3); color: var(--dim); white-space: nowrap; }
.pill.tweet { background: var(--red); color: #fff; }
.pill.name { background: var(--yellow); color: #000; }
.pill.flow { background: var(--cyan); color: #fff; }
.pill.open { background: var(--up); color: #000; }
.pill.taken { background: var(--red); color: #fff; }
.pill.used { background: #b25d00; color: #fff; }
.pill.first { background: var(--yellow); color: #000; }
.pill.call { background: var(--pink); color: #000; }
.pill.thesis { background: #c7a3ff; color: #000; }
.brief { margin-top: 8px; padding: 8px 10px; background: var(--ink2); font-size: 12.5px; }
.brief b.hd { display: block; font-size: 13px; color: var(--paper); margin-bottom: 3px; }
.brief .q { color: var(--dim); margin-top: 3px; }
.brief .q.bull::before { content: '▲ '; color: var(--up); }
.brief .q.bear::before { content: '▼ '; color: #ff5a5f; }
.flow { display: flex; gap: 12px; margin-top: 6px; font: 12px var(--dot); color: var(--dim); }
.grp { font: 11px var(--dot); color: var(--cyan); }

/* ---- smaller screens */
@media (max-width: 1280px) {
  .wires { display: none; }
}
@media (max-width: 1100px) {
  body { height: auto; overflow: auto; }
  .tabs { display: flex; position: sticky; top: 0; z-index: 5; background: #000; }
  .tabs button { flex: 1; font: 400 14px var(--d); padding: 10px 4px; background: var(--ink2); color: var(--dim); border: 0; border-right: 2px solid #000; cursor: pointer; }
  .tabs button[aria-selected="true"] { background: var(--yellow); color: #000; }
  .cols { display: block; }
  .col { display: none; border-right: 0; }
  .col.show { display: flex; }
  .col > h2 { display: none; }
  .feed { overflow: visible; }
  .qcheck { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .band { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .band nav a { padding: 5px 7px; font-size: 13px; }
  .brand { font-size: 24px; }
  .brand i { display: none; }
  .xt { width: 260px; }
  .cross h2 small, .tl { display: none; }
}

/* laptops: keep crossfire to one short row so the feeds get the height */
@media (max-height: 1000px) and (min-width: 1101px) {
  .cross { padding: 6px 18px 8px; }
  .crossrow { padding-top: 8px; }
  .xt { width: 270px; padding: 9px 10px 8px; }
  .xt .top img, .xt .top .ph { width: 32px; height: 32px; }
  .xt .sym { font-size: 18px; }
  .xt .bigburst { width: 54px; height: 54px; font-size: 21px; }
  .xt .lines { margin: 5px 0 4px; font-size: 12px; }
  .xt .lines li span:last-child { -webkit-line-clamp: 1; }
  .xt .lines li:nth-child(n+4) { display: none; }
  .tags { padding: 6px 18px; }
}
