/* 🎵 Buy anthems (js/anthems.js): the window's cards and 📻 ZAZA FM's station tabs, a trade's line in the chat, and the
   note at the top of the screen while a buy's anthem or song plays. 📻 ZAZA RADIO (js/radio.js): its round button by the
   minimap's +, its station wheel and its banner. */
.an-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 6px; }
.an-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 12px 6px 9px; border: 2px solid var(--edge-light); border-radius: 9px; background: linear-gradient(180deg, var(--stone-3), var(--stone)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); text-align: center; line-height: 1.1; transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s; }
.an-card:hover { border-color: var(--gold-2); transform: translateY(-1px); }
.an-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.an-card .an-ico { font-size: 30px; line-height: 1.15; }
.an-card b { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--text); }
.an-card small { font-size: 13px; color: var(--muted); }
.an-card.on { border-color: var(--gold); background: linear-gradient(180deg, #3a3f7c, #1f2a5c); box-shadow: inset 0 0 0 1px var(--gold), 0 0 14px rgba(255, 210, 63, 0.35); }
.an-card.on b { color: var(--gold); }
.an-yours { display: none; position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 13px; color: var(--gold); }
.an-card.on .an-yours { display: block; }
.an-card .an-eq { position: absolute; top: 6px; left: 8px; opacity: 0; transition: opacity 0.15s; }
.an-card.playing .an-eq { opacity: 1; }
.an-card.playing { border-color: var(--cyan); }
.an-card.playing.on { border-color: var(--gold); }
/* The bars dancing while an anthem plays. */
.an-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.an-eq > i { width: 3px; height: 35%; border-radius: 1px; background: var(--gold); }
.an-card.playing .an-eq > i, .an-now .an-eq > i { animation: an-bar 0.42s ease-in-out infinite alternate; }
.an-eq > i:nth-child(2) { animation-delay: -0.17s !important; }
.an-eq > i:nth-child(3) { animation-delay: -0.31s !important; }
.an-eq > i:nth-child(4) { animation-delay: -0.08s !important; }
@keyframes an-bar { from { height: 18%; } to { height: 100%; } }
/* 📻 ZAZA FM: a tab per station on air, scrolling sideways on a phone; your pick's station has a gold dot. */
.fm-dial { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 8px; padding: 2px 2px 6px; scrollbar-width: thin; }
.fm-st { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 10px 6px; border: 2px solid var(--edge-light); border-radius: 9px; background: var(--stone); color: var(--muted); line-height: 1.1; text-align: left; }
.fm-st b { font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.fm-st span { font-size: 13px; white-space: nowrap; }
.fm-st:hover { border-color: var(--gold-2); }
.fm-st:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.fm-st.on { border-color: var(--gold); background: linear-gradient(180deg, #3a3f7c, #1f2a5c); color: var(--text); }
.fm-st.on b { color: var(--gold); }
.fm-st.yours b::after { content: " ●"; color: var(--gold); font-size: 11px; vertical-align: 2px; }
.an-grid.fm .an-card b { font-size: 15px; }

/* 📻 The radio's round button (js/radio.js), right of the map's + on the minimap's ring (#zoom2d, world.css): an orb like
   the zoom's, its icon gold while the radio plays. A phone has no room right of the +, so it sits just above it, in the
   minimap box's corner. The Open World menu moves + and − round to the edge and puts ⚓ and ⚔ in their places, so there
   it sits above the +. */
#zoom2d > .zoom-radio[hidden] { display: none !important; }
#zoom2d > .zoom-radio.on .orb-icon { background: radial-gradient(circle at 40% 35%, #ffe066, #b88a10); }
/* Pip's quest asks you to tune in (js/radio.js asked): the button pulses gold till a station comes in. */
#zoom2d > .zoom-radio.quest { animation: radioAsk 1.3s ease-out infinite; }
@keyframes radioAsk { 0% { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 0 rgba(255, 210, 63, 0.85); } 100% { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 10px rgba(255, 210, 63, 0); } }
@media (prefers-reduced-motion: reduce) { #zoom2d > .zoom-radio.quest { animation: none; box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px rgba(255, 210, 63, 0.85); } }
/* The Daily card's 📻 Tune in (js/radio.js pointRadio): the button lit up, a bigger pulse, and a gold tip pointing at it
   from the left till it's tapped (or 15 s). */
#zoom2d > .zoom-radio.point { z-index: 2; animation: radioPoint 1s ease-out infinite; }
@keyframes radioPoint { 0% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 0 rgba(255, 210, 63, 0.95); } 100% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 16px rgba(255, 210, 63, 0); } }
.radio-point { position: fixed; z-index: 60; translate: 0 -50%; padding: 7px 12px; border-radius: 10px; background: var(--gold); color: #1a1405; font: 17px/1.1 var(--display); white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); pointer-events: none; animation: radioPointNudge 1s ease-in-out infinite; }
.radio-point::after { content: ""; position: absolute; left: 100%; top: 50%; translate: 0 -50%; border: 8px solid transparent; border-left-color: var(--gold); }
@keyframes radioPointNudge { 50% { transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) { #zoom2d > .zoom-radio.point { animation: none; box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 5px rgba(255, 210, 63, 0.9); } .radio-point { animation: none; } }
@media (min-width: 761px) and (min-height: 501px) {
  #zoom2d > .zoom-radio { top: 136px; right: -9px; width: 28px; min-width: 0; height: 28px; padding: 0; border-radius: 50%; }
  #zoom2d > .zoom-radio .orb-icon { width: 22px; height: 22px; }
  html.ow-menu #zoom2d > .zoom-radio { top: 67px; right: -34px; }
}
@media (max-width: 760px), (orientation: landscape) and (max-height: 500px) and (min-width: 561px) {
  /* A phone keeps only the round radio control: its gold state says that the radio is on without spending a row on
     the station/song pill. Computers keep the pill under the minimap. */
  .mini-radio-row { display: none !important; }
  .touch-zoom > .zoom-radio { width: 24px; height: 24px; top: 85px; right: -4px; }
  .touch-zoom > .zoom-radio .orb-icon { width: 18px; height: 18px; }
  html.ow-menu .touch-zoom > .zoom-radio { top: 37px; right: -33px; }
  /* Every other window hides the phone's map controls. The radio wheel is the exception: keep −, + and the gold radio
     control in their normal places, above its backdrop, while the rest of the HUD stays dimmed below it. */
  html.modal-open:has(.rwheel) .hud { z-index: auto; }
  html.modal-open:has(.rwheel) .touch-zoom { display: block !important; z-index: 21; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .touch-zoom > .zoom-radio { top: 74px; right: -4px; }
  html.ow-menu .touch-zoom > .zoom-radio { top: 26px; right: -24px; }
}
/* …while it plays (or is paused), ⏸ / ▶ and the station and song under the minimap (like the hidden cards' pill), bars
   dancing while it plays. */
.mini-radio-row { display: flex; gap: 4px; }
.mini-radio-row[hidden] { display: none; }
.mini-radio-play { flex: none; display: grid; place-items: center; box-sizing: border-box; width: 25px; height: 25px; padding: 0; border-radius: 8px; background: rgba(6, 12, 40, 0.8); border: 1px solid var(--gold); color: var(--gold); cursor: pointer; }
.mini-radio-play svg { width: 11px; height: 11px; fill: currentColor; pointer-events: none; }
.mini-radio-play:hover { box-shadow: 0 0 8px rgba(255, 210, 63, 0.45); }
.mini-radio-row.paused .an-eq > i { animation: none; height: 30%; }
.mini-radio { display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; max-width: 230px; height: 25px; padding: 0 10px; border-radius: 8px; background: rgba(6, 12, 40, 0.8); border: 1px solid var(--gold); font-size: 14px; color: #dfe6ff; white-space: nowrap; cursor: pointer; }
.mini-radio[hidden] { display: none; }
.mini-radio:hover { box-shadow: 0 0 8px rgba(255, 210, 63, 0.45); }
.mini-radio b { font-family: var(--display); font-weight: 400; color: var(--gold); font-variant-numeric: tabular-nums; }
.mini-radio span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mini-radio .an-eq { height: 12px; }
.mini-radio .an-eq > i { animation: an-bar 0.42s ease-in-out infinite alternate; }
/* …its window, a GTA-style station wheel (radio.js openRadio): no window frame, the backdrop darker at the edges; round
   badges in each station's colour (--c) on a dark ring, each a picture of its genre with the genre on a tag under it,
   yours lit with a white ring, the one you point at grown; the centre in the colour of what it shows: the brand, the
   station's name big and slanted, its genre big on a pill in its colour, the song, the volume. */
#modal:has(.rwheel) { place-items: center; background: radial-gradient(circle, rgba(3, 8, 30, 0.35), rgba(3, 8, 30, 0.85)); }
#modal .modal:has(.rwheel) { width: auto; max-height: none; padding: 0; overflow: visible; border: 0; background: none; box-shadow: none; }
#modal .modal:has(.rwheel) > .modal-x { display: none; }
.rwheel { --R: 168px; --b: 74px; --c: #ffc400; position: relative; width: calc(2 * var(--R) + var(--b) + 24px); height: calc(2 * var(--R) + var(--b) + 24px); max-width: 100%; }
.rw-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(5, 9, 28, 0.25) 0 38%, rgba(5, 9, 28, 0.7) 39% 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 10px 40px rgba(0, 0, 0, 0.5); }
.rw-st { position: absolute; top: 50%; left: 50%; width: var(--b); height: var(--b); margin: calc(var(--b) / -2) 0 0 calc(var(--b) / -2); padding: 0; display: grid; place-items: center; border: 3px solid rgba(255, 255, 255, 0.85); border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55); transform: rotate(var(--a)) translateY(calc(-1 * var(--R))) rotate(calc(-1 * var(--a))); transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; }
.rw-st span { font-size: calc(var(--b) * 0.42); line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)); }
.rw-st .rw-art { width: calc(var(--b) * 0.68); height: calc(var(--b) * 0.68); margin-top: -4px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)); pointer-events: none; }
.rw-tag { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); padding: 2px 7px 3px; border: 2px solid var(--c); border-radius: 8px; background: #0a0e28; font: 400 12px/1 var(--display); font-style: normal; letter-spacing: 0.05em; color: #fff; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); pointer-events: none; }
.rw-st:hover, .rw-st:focus-visible { transform: rotate(var(--a)) translateY(calc(-1 * var(--R))) rotate(calc(-1 * var(--a))) scale(1.16); box-shadow: 0 0 0 3px var(--c), 0 6px 18px rgba(0, 0, 0, 0.6); outline: none; z-index: 2; }
.rw-st.on { box-shadow: 0 0 0 4px #fff, 0 0 26px var(--c), 0 6px 18px rgba(0, 0, 0, 0.6); }
.rw-center { position: absolute; top: 50%; left: 50%; width: calc(var(--R) * 1.25); height: calc(var(--R) * 1.25); transform: translate(-50%, -50%); display: grid; align-content: center; justify-items: center; gap: 4px; padding: 0 14px; box-sizing: border-box; border-radius: 50%; background: radial-gradient(circle, rgba(4, 7, 22, 0.92) 60%, rgba(4, 7, 22, 0.75)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 70%, transparent), 0 0 30px color-mix(in srgb, var(--c) 35%, transparent); text-align: center; cursor: pointer; transition: box-shadow 0.2s; }
.rw-brand { font-size: 12px; letter-spacing: 0.18em; color: #c9d2f5; }
.rw-name { max-width: 100%; font-family: var(--display); font-weight: 400; font-style: italic; font-size: 25px; line-height: 1.05; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 #000, 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); overflow-wrap: anywhere; }
.rw-genre { max-width: 100%; box-sizing: border-box; padding: 4px 14px 5px; border-radius: 999px; background: var(--c); font: 400 20px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.6); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 50%, #000), 0 0 16px color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-genre:empty { display: none; }
.rw-song { max-width: 100%; font-size: 14px; color: #e6ebff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-ctl { display: flex; align-items: center; gap: 8px; width: 80%; margin-top: 4px; }
.rw-play { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--c); color: #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 50%, #000), 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); cursor: pointer; }
.rw-play[hidden] { display: none; }
.rw-play svg { width: 14px; height: 14px; fill: currentColor; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.5)); pointer-events: none; } /* the tap's target stays the button when its icon is redrawn */
.rw-play:hover, .rw-play:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 60%, #fff), 0 0 16px var(--c); }
.rw-vol { flex: 1; min-width: 0; width: 70%; margin: 0; accent-color: var(--c); cursor: pointer; }
/* …and GTA-style at the top of the screen for a moment when a station comes in or the next song starts, the song's genre
   on a pill over it (a phone: in the middle, clear of the level box and the minimap; radio.js banner puts it there). */
.radio-now { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 80px); left: 50%; z-index: 12; display: grid; justify-items: center; max-width: calc(100vw - 32px); padding: 4px 22px 6px; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45), transparent 70%); text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, -12px); transition: opacity 0.3s, transform 0.3s; }
.radio-now.show { opacity: 1; transform: translate(-50%, 0); }
.radio-now b { font-family: var(--display); font-weight: 400; font-style: italic; font-size: 28px; line-height: 1.05; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 #000, 0 0 2px #000, 0 0 16px var(--c, #ffc400); }
.radio-now i { margin-bottom: 3px; padding: 3px 10px 4px; border-radius: 999px; background: var(--c, #ffc400); font: 400 14px/1 var(--display); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.6); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.radio-now span { font-size: 16px; color: #fff; text-shadow: 0 1px 2px #000, 0 0 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* A computer: in the stack of banners at the top (world.css .hud-bars), under the team's announcement and a new X post. */
.hud-bars > .radio-now { position: relative; top: auto; left: auto; max-width: 100%; transform: translateY(-12px); }
.hud-bars > .radio-now.show { transform: none; }
/* …and below the place's name banner (world.css .area-banner, 65 px tall), which drops in at the stack's own height as you
   walk into a place, so as the World opens in ZAZA Town with the radio coming on. It follows that banner down under
   ZAZA live on X, and under the dungeon bar in a run (owner, 2026-11-03, with a shot of the song over "ZAZA Town": "the
   radio song is still displaying over stuff on desktop, i want it lower"). */
@media (min-width: 761px) and (min-height: 501px) {
  .hud-bars > .radio-now { margin-top: 76px; }
  .hud.fold-quests:has(> .dungeon-bar:not([hidden])) .hud-bars > .radio-now { margin-top: 120px; }
  html:has(.hud:not(.fold-quests, .hide-live) .hud-tr #xLive:not([hidden])) .hud-bars > .radio-now { translate: 0 var(--xlive-push, 130px); }
}
.an-say { min-height: 1.3em; margin: 0 0 6px !important; font-size: 15px !important; color: var(--muted); }
.an-say:empty { display: none; }
.an-opts small { display: block; font-size: 13px; line-height: 1.2; color: var(--muted); }
.an-opts .toggle input { flex: none; } /* full size beside a long label */
.an-opts b { color: var(--gold); font-weight: 400; }

/* A $ZAZA trade that names its hero: the name in gold (a tap opens their profile), the anthem their buy played. */
.tr-hero { color: var(--gold); }
.tr-hero[data-pf] { cursor: pointer; }
.tr-hero[data-pf]:hover { text-decoration: underline; }
.tr-tune { font-style: normal; color: var(--cyan); }

/* Now playing: the anthem, who bought and how much, under the top of the screen for as long as it plays. */
.an-now { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 64px); left: 50%; z-index: 12; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 6px 16px 6px 12px; border: 2px solid var(--gold); border-radius: 999px; background: linear-gradient(180deg, rgba(36, 55, 138, 0.96), rgba(6, 18, 79, 0.96)); box-shadow: 0 0 18px rgba(255, 210, 63, 0.4), 0 6px 16px rgba(0, 0, 0, 0.4); color: var(--text); font-size: 18px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -14px) scale(0.96); transition: opacity 0.25s, transform 0.25s; }
.an-now.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.an-now .an-now-ico { font-size: 22px; line-height: 1; }
.an-now b { font-family: var(--display); font-weight: 400; color: var(--gold); }
.an-now .an-now-who { overflow: hidden; text-overflow: ellipsis; }
/* …a ZAZA FM song's: its station under it, and a bar running for as long as it plays. */
.an-now.fm { flex-wrap: wrap; justify-content: center; row-gap: 0; padding-bottom: 9px; border-radius: 18px; overflow: hidden; }
.an-now .an-now-st { flex-basis: 100%; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.an-now .an-now-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.an-now.show .an-now-bar { animation: an-run linear forwards; }
@keyframes an-run { to { transform: scaleX(1); } }

/* A phone, on its side too: at full size the wheel is taller than that screen. */
@media (max-width: 560px), (max-height: 470px) {
  .rwheel { --R: min(128px, calc(50vw - 56px), calc(50vh - 56px)); --b: 54px; }
  .rw-name { font-size: 19px; }
  .rw-song { font-size: 13px; }
  .rw-play { width: 30px; height: 30px; }
  .rw-tag { bottom: -9px; padding: 1px 5px 2px; border-radius: 6px; font-size: 10px; }
  .rw-genre { padding: 3px 9px 4px; font-size: 15px; letter-spacing: 0.02em; }
}

@media (max-width: 560px) {
  .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-now { top: 50%; width: max-content; padding: 6px 22px 8px; transform: translate(-50%, calc(-50% - 10px)); }
  .radio-now.show { transform: translate(-50%, -50%); }
  .radio-now b { font-size: 24px; }
  .radio-now span { font-size: 14px; }
  .radio-now i { font-size: 12px; }
  /* A phone: a two-line card on the left under the level box, clear of the minimap and its buttons. */
  .an-now { display: grid; grid-template-columns: auto auto auto; justify-content: start; row-gap: 0; left: 8px; top: calc(env(safe-area-inset-top, 0px) + 70px); width: max-content; max-width: min(220px, 56vw); padding: 5px 12px 6px 10px; border-radius: 14px; font-size: 15px; transform: translateY(-10px) scale(0.96); }
  .an-now.show { transform: none; }
  .an-now .an-now-who, .an-now .an-now-st { grid-column: 1 / -1; text-align: left; }
  .an-now.fm { grid-template-columns: auto auto minmax(0, 1fr); justify-content: start; }
  .an-now.fm b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .an-card, .an-now { transition: none; }
  .an-card.playing .an-eq > i, .an-now .an-eq > i { animation: none; height: 70%; }
  .rw-st, .rw-center, .radio-now { transition: none; }
  .mini-radio .an-eq > i { animation: none; height: 70%; }
  .an-now.show .an-now-bar { animation: none; transform: scaleX(1); }
}

/* 📻 Someone listening to ZAZA Radio (radio.js RADIO_MARK): a little gold speaker on their face's top right corner, in the
   online list (round the picture, .online-av) and on their box in a fight (.gba-face); its waves pulse. Their name tag
   draws the same (render.js drawRadioMark). */
.online-av { position: relative; flex: none; display: block; line-height: 0; font-style: normal; }
.radio-mark { position: absolute; top: -4px; right: -5px; z-index: 1; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #ffd23f; box-shadow: 0 0 0 1.5px #1b1424; font-style: normal; line-height: 0; }
.radio-mark svg { width: 12px; height: 12px; fill: #1b1424; }
.radio-mark svg .w { fill: none; stroke: #1b1424; stroke-width: 1.6; stroke-linecap: round; animation: radio-wave 1.2s ease-in-out infinite; }
@keyframes radio-wave { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .radio-mark svg .w { animation: none; } }
