/* islanoctis.com/weather (portal/weather_events.py, portal/weather.html): the game's weather events on the site.
   Every rule starts with .wx (the page) or .wxs (a sky's layers, drawn by /assets/weather-scene.js), so nothing
   else on the site changes. /assets/weather.js fills the stage, the tiles and the rows with these classes.

   A sky's colours come from weather-scene.js (the same ones as the Discord weather card): --top and --hor (the sky),
   --glow (sun, moon or the weather's own light), --land, --base (its darkest), --scrim (how dark the text side is).
   --kind is an event's colour by what it does: a buff green, a debuff coral, both amber. */

.wx-stage, .wx [data-scene], .wx-thumb {
  --top: #060a1c; --hor: #1b2655; --glow: #cfd9ff; --land: #03050d; --base: #050812; --scrim: .35; --gy: 22%;
  --ink: #fffaf3; --soft: rgba(255, 250, 243, .82); --kind: #ffc54d;
}
.wx-k-buff { --kind: #6fe3a0; } .wx-k-debuff { --kind: #ff8a7a; } .wx-k-mixed { --kind: #ffc54d; }

/* ------------------------------------------------------------------ the stage: the sky right now */
.wx-stage { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: clamp(21rem, 46vh, 31rem);
  color: var(--ink); border-bottom: 1px solid var(--vine, #16303b);
  background: radial-gradient(40rem 33rem at 86% var(--gy), color-mix(in srgb, var(--glow) 42%, transparent), transparent 70%),
              linear-gradient(180deg, var(--top) 0%, var(--hor) 82%); }
.wx-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, var(--scrim)) 0%, rgba(0, 0, 0, calc(var(--scrim) * .75)) 48%, transparent 72%); }
.wx-stage-in { position: relative; display: flex; flex-direction: column; gap: .9rem; width: 100%;
  padding-block: clamp(1rem, 2.2vw, 1.6rem) clamp(.9rem, 1.8vw, 1.3rem); text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }

.wx-top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.wx-brand { display: flex; align-items: center; gap: .6rem; margin: 0; color: var(--ink);
  font: 600 1.08rem/1.2 var(--font-body, sans-serif); letter-spacing: .01em; text-transform: none; white-space: nowrap; }
.wx-brand .wx-ic { width: 1.5rem; height: 1.5rem; fill: currentColor; stroke: none; }
.wx-servers { display: flex; flex-wrap: wrap; gap: .4rem; }
.wx-servers[hidden] { display: none; }
.wx-server { display: inline-flex; align-items: center; gap: .5rem; min-height: 2rem; margin: 0; padding: 0 .85rem; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .9rem/1 var(--font-body, sans-serif); color: var(--soft); background: rgba(255, 255, 255, .14); text-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .15s, color .15s; }
.wx-server:hover { background: rgba(255, 255, 255, .24); color: var(--ink); }
.wx-server:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wx-server[aria-pressed="true"] { background: var(--ink); color: var(--base); }
.wx-server i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; opacity: .55; }
.wx-server.hot i { opacity: 1; background: var(--kind); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--kind) 35%, transparent); }

.wx-live { max-width: min(47rem, 64%); }
.wx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.wx-chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.15rem; padding: .2rem .85rem; border-radius: .7rem;
  font: 700 .98rem/1.15 var(--font-body, sans-serif); color: var(--ink); background: rgba(255, 255, 255, .16); text-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wx-chip svg { flex: none; width: 1.1rem; height: 1.1rem; }
.wx-chip.hot { background: var(--glow); color: var(--base); }
.wx-chip.kind { color: var(--kind); background: rgba(0, 0, 0, .3); }
.wx-chip.soft { font-weight: 600; font-size: .9rem; color: var(--soft); background: rgba(255, 255, 255, .13); }
.wx-chip.soft svg { color: var(--glow); }
.wx-chip.staff { font-weight: 600; font-size: .9rem; color: #ffc98f; background: rgba(0, 0, 0, .3); }
.wx-dot { flex: none; width: .62rem; height: .62rem; border-radius: 50%; background: var(--glow);
  box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--glow) 28%, transparent); }
.wx-chip.hot .wx-dot { background: var(--base); box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--base) 22%, transparent); animation: wx-beat 1.5s ease-out infinite; }
@keyframes wx-beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--base) 45%, transparent); } 100% { box-shadow: 0 0 0 .55rem transparent; } }

.wx-name { margin: .5rem 0 0 -.04em; color: var(--ink); font: italic 800 clamp(3.1rem, 9.5vw, 7.2rem)/.86 var(--font-display, sans-serif);
  text-transform: uppercase; letter-spacing: .005em; overflow-wrap: anywhere; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.wx-name.long { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.wx-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; margin: .6rem 0 0; color: var(--ink);
  font: 700 clamp(1.15rem, 2.3vw, 1.7rem)/1.2 var(--font-body, sans-serif); }
.wx-count { font: italic 800 clamp(2.5rem, 6vw, 4.3rem)/.9 var(--font-display, sans-serif); letter-spacing: .01em; color: var(--glow);
  font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 34px color-mix(in srgb, var(--glow) 45%, transparent); }
.wx-when small { flex-basis: 100%; margin-top: .25rem; font-size: clamp(.98rem, 1.5vw, 1.15rem); font-weight: 500; line-height: 1.4; color: var(--soft); }

.wx-effects { list-style: none; margin: .95rem 0 0; padding: 0; display: grid; gap: .45rem; }
.wx-effects li { display: flex; align-items: center; gap: .75rem; margin: 0; font: 500 clamp(1rem, 1.5vw, 1.12rem)/1.3 var(--font-body, sans-serif); color: var(--ink); }
.wx-eic { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; color: var(--glow); background: rgba(0, 0, 0, .32); }
.wx-eic svg { width: 1.3rem; height: 1.3rem; }

/* calm: the last weathers of the in-game day, oldest first */
.wx-earlier { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1rem 0 0; text-shadow: none; }
.wx-earlier > b { flex-basis: 100%; font: 600 .9rem/1.2 var(--font-body, sans-serif); color: var(--soft); text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.wx-was { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.7rem; padding: .15rem .85rem .15rem .4rem; border-radius: .8rem;
  font: 600 .98rem/1.15 var(--font-body, sans-serif); color: var(--ink); background: rgba(0, 0, 0, .3); }
.wx-was svg { flex: none; width: 2.1rem; height: 2.1rem; }
.wx-was small { font-size: .82rem; font-weight: 600; color: var(--soft); }
.wx-was.now { background: rgba(255, 255, 255, .2); }
.wx-arrow { flex: none; width: 1.1rem; height: 1.1rem; color: var(--soft); }

/* the foot of the stage: how far the event is, or where the in-game day is */
.wx-line { margin-top: auto; padding-top: .4rem; text-shadow: none; }
.wx-line:empty { display: none; }
.wx-run-bar { position: relative; height: .7rem; border-radius: 999px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); overflow: hidden; }
.wx-run-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--glow) 55%, transparent), var(--glow));
  transition: width 1s linear; }
.wx-run.warn .wx-run-bar i { background: repeating-linear-gradient(115deg, var(--glow) 0 .55rem, color-mix(in srgb, var(--glow) 55%, transparent) .55rem 1.1rem); }
.wx-run-ends { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; font: 600 .92rem/1.2 var(--font-body, sans-serif); color: var(--soft);
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.wx-day { position: relative; padding-top: 1.7rem; }
.wx-day-track { position: relative; height: .8rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  background: linear-gradient(90deg, #1b2655 0 25%, #ec9474 25% 29.17%, #86bfe9 29.17% 75%, #ec6441 75% 79.17%, #1b2655 79.17%); }
.wx-day-now { position: absolute; top: 50%; left: 0; width: 1.25rem; height: 1.25rem; margin: -.625rem 0 0 -.625rem; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 .32rem rgba(255, 255, 255, .28), 0 2px 8px rgba(0, 0, 0, .5); transition: left 1s linear; }
.wx-day-now b { position: absolute; left: 50%; bottom: calc(100% + .55rem); transform: translateX(-50%); white-space: nowrap;
  font: 700 .95rem/1 var(--font-body, sans-serif); color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.wx-day-now.left b { left: 0; transform: none; } .wx-day-now.right b { left: auto; right: 0; transform: none; }
.wx-day-ticks { display: flex; justify-content: space-between; margin-top: .45rem; font: 600 .82rem/1 var(--font-body, sans-serif); color: rgba(255, 255, 255, .66);
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

/* ------------------------------------------------------------------ a sky's layers (weather-scene.js) */
.wxs { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; container-type: size; }
.wx-stage > .wxs { animation: wxs-in .9s ease-out; }
@keyframes wxs-in { from { opacity: 0; } }
.wxs-layer { position: absolute; inset: 0; overflow: hidden; }
.wxs svg { display: block; width: 100%; height: 100%; }
canvas.wxs-live { display: block; width: 100%; height: 100%; }   /* the big sky's rain, snow and dust, one by one */
.wxs-slide { display: flex; width: 200%; height: 100%; }
.wxs-slide > svg { flex: none; width: 50%; }
.wxs-drop { position: absolute; inset: 0 0 auto; height: 200%; }
.wxs-drop > svg { height: 50%; }
.wxs-land { position: absolute; inset: auto 0 0; height: clamp(6.5rem, 36%, 11.5rem); }
.wxs-glyph { position: absolute; right: clamp(-3rem, -2vw, -1rem); top: -2.4rem; width: clamp(15rem, 35vw, 28rem); aspect-ratio: 1;
  filter: drop-shadow(0 0 2.75rem color-mix(in srgb, var(--glow) 55%, transparent)); animation: wxs-float 8s ease-in-out infinite alternate; }
.wxs-low .wxs-glyph { top: 1.5rem; }
@keyframes wxs-float { from { transform: translateY(-.35rem); } to { transform: translateY(.45rem); } }

.wxs-tw1 { animation: wxs-twinkle 4.6s ease-in-out infinite alternate; }
.wxs-tw2 { animation: wxs-twinkle 6.8s ease-in-out -2s infinite alternate; }
.wxs-tw3 { animation: wxs-twinkle 9.4s ease-in-out -5s infinite alternate; }
@keyframes wxs-twinkle { from { opacity: 1; } to { opacity: .3; } }
.wxs-clouds .wxs-slide { animation: wxs-slide 140s linear infinite; }
@keyframes wxs-slide { to { transform: translateX(-50%); } }
.wxs-rays, .wxs-turn { transform-box: fill-box; transform-origin: center; animation: wxs-spin 90s linear infinite; }
.wxs-turn { animation-duration: 50s; }
@keyframes wxs-spin { to { transform: rotate(360deg); } }
.wxs-drops { animation: wxs-drip 1.15s ease-in infinite; }
@keyframes wxs-drip { 0% { transform: translate(3px, -7px); opacity: 0; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-3px, 7px); opacity: 0; } }
.wxs-bolt { animation: wxs-bolt 7s linear infinite; }
@keyframes wxs-bolt { 0%, 90%, 96%, 100% { opacity: .92; } 92% { opacity: 1; filter: brightness(1.6); } 93% { opacity: .5; } 94% { opacity: 1; filter: brightness(1.4); } }
.wxs-flash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(60% 90% at 80% 0%, rgba(255, 255, 255, .75), transparent 70%); animation: wxs-flash 7s linear infinite; }
@keyframes wxs-flash { 0%, 91%, 95%, 100% { opacity: 0; } 92% { opacity: .85; } 93% { opacity: .15; } 94% { opacity: .6; } }
.wxs-shoot { position: absolute; left: 62%; top: 9%; width: 7rem; height: 2px; border-radius: 2px; opacity: 0; transform: rotate(-24deg) translateX(0);
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); animation: wxs-shoot 13s ease-in 4s infinite; }
@keyframes wxs-shoot { 0%, 92% { opacity: 0; transform: rotate(-24deg) translateX(9rem); } 93% { opacity: 1; } 99% { opacity: .2; } 100% { opacity: 0; transform: rotate(-24deg) translateX(-16rem); } }

/* rain falls along its own slant: down one picture, left .28 of that */
.wxs-fall.wxs-rain .wxs-drop { left: -30cqh; animation: wxs-rain .72s linear infinite; }
@keyframes wxs-rain { from { transform: translate(28cqh, -50%); } to { transform: translate(0, 0); } }
.wxs-fall.wxs-snow .wxs-drop { animation: wxs-snow 13s linear infinite; }
@keyframes wxs-snow { 0% { transform: translate(0, -50%); } 25% { transform: translate(1.2%, -37.5%); } 50% { transform: translate(0, -25%); }
  75% { transform: translate(-1.2%, -12.5%); } 100% { transform: translate(0, 0); } }
/* a gale drives everything sideways, a little downhill */
.wxs-layer.wxs-gale { inset: -48% -4%; transform: rotate(-9deg); }
.wxs-fall.wxs-gale .wxs-drop { position: static; display: flex; width: 200%; height: 100%; animation: wxs-slide 2.6s linear infinite; }
.wxs-fall.wxs-gale .wxs-drop > svg { flex: none; width: 50%; height: 100%; }
.wxs-blow.wxs-gale .wxs-slide { animation: wxs-slide 3.4s linear infinite; }
.wxs-blow.wxs-haze .wxs-slide { animation: wxs-slide 30s linear infinite; }
/* fog and mist sway in place */
.wxs-blow.wxs-sway { inset: 0 -8%; }
.wxs-blow.wxs-sway .wxs-slide { width: 100%; animation: wxs-sway 17s ease-in-out infinite alternate; }
.wxs-blow.wxs-sway .wxs-slide > svg { width: 100%; }
.wxs-blow.wxs-sway .wxs-slide > svg + svg { display: none; }
@keyframes wxs-sway { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

/* a small sky on a card: the same picture, standing still */
.wxs-mini .wxs-glyph { right: -3%; top: -9%; width: auto; height: 116%; animation: none; filter: drop-shadow(0 0 1.2rem color-mix(in srgb, var(--glow) 55%, transparent)); }
.wxs-mini.wxs-low .wxs-glyph { top: 6%; }
.wxs-mini .wxs-land { height: 38%; }
.wxs-mini :is(.wxs-tw1, .wxs-tw2, .wxs-tw3, .wxs-slide, .wxs-drop, .wxs-rays, .wxs-turn, .wxs-drops, .wxs-bolt) { animation: none !important; }
.wxs-mini .wxs-flash, .wxs-mini .wxs-shoot { display: none; }
.wx [data-scene], .wx-thumb { position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(70% 95% at 84% var(--gy), color-mix(in srgb, var(--glow) 42%, transparent), transparent 70%),
              linear-gradient(180deg, var(--top) 0%, var(--hor) 82%); }

/* ------------------------------------------------------------------ the page */
section.wx { padding-block: clamp(.8rem, 1.6vw, 1.25rem) clamp(1.5rem, 3vw, 2.5rem); }   /* section.: the site gives every section a tall gap */
.wx { --wx: var(--glow, #3fe3f2); --wx-line: rgba(140, 220, 230, .2); --wx-panel: rgba(8, 20, 27, .82); --wx-text: #dbe9ec; --wx-muted: #9fbcc5; }
.wx .wx-k-buff { --wx: #6fe3a0; } .wx .wx-k-debuff { --wx: #ff8a7a; } .wx .wx-k-mixed { --wx: #ffc54d; }
.wx-h { margin: 1.5rem 0 .8rem; font: italic 800 clamp(1.3rem, 2.3vw, 1.7rem)/1 var(--font-display, sans-serif); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.wx-h span { color: var(--glow, #3fe3f2); }
.wx-tabs[data-tabs-on] > [data-tab] > .wx-h:first-child { display: none; }   /* the tab already says it */
.wx-plain { margin: 1rem 0 0; color: var(--wx-text); }
.wx-plain ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.wx-ic { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wx-badge { flex: none; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; color: var(--wx);
  border: 1px solid color-mix(in srgb, var(--wx) 60%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--wx) 22%, transparent), rgba(5, 13, 18, .8) 75%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--wx) 26%, transparent); }
.wx-badge .wx-ic, .wx-badge svg { width: 1.6rem; height: 1.6rem; }
.wx-badge.sm { width: 2.4rem; height: 2.4rem; box-shadow: none; } .wx-badge.sm .wx-ic, .wx-badge.sm svg { width: 1.25rem; height: 1.25rem; }
.wx-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font: 700 .8rem/1.3 var(--font-body, sans-serif);
  color: #dbe9ec; border: 1px solid var(--wx-line); background: rgba(5, 13, 18, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wx-pill svg { width: .95rem; height: .95rem; }
.wx-pill.kind { color: var(--wx); border-color: color-mix(in srgb, var(--wx) 60%, transparent); }
.wx-meter { display: block; width: 7rem; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--wx) 20%, transparent); overflow: hidden; }
.wx-meter[hidden] { display: none; }
.wx-meter i { display: block; height: 100%; border-radius: inherit; background: var(--wx); }

/* Now: what comes next, how the last one went, what the game is doing */
.wx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.wx-tile { display: flex; align-items: flex-start; gap: .95rem; min-width: 0; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--wx) 34%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--wx) 13%, #08141b) 0%, #08141b 62%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.wx-tile.t-next { --wx: var(--glow, #3fe3f2); } .wx-tile.t-last { --wx: #6fe3a0; } .wx-tile.t-warn { --wx: var(--ember, #e8953c); }
.wx-tile > div { display: grid; gap: .3rem; min-width: 0; flex: 1; }
.wx-tile h2 { margin: 0; font: 600 .86rem/1.2 var(--font-body, sans-serif); letter-spacing: .01em; text-transform: none; color: var(--wx-muted); }
.wx-tile-v { margin: 0; font: italic 800 clamp(1.5rem, 2.5vw, 2.05rem)/1 var(--font-display, sans-serif); text-transform: uppercase; letter-spacing: .01em; color: #fff;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wx-tile-s { margin: 0; font-size: .93rem; line-height: 1.4; color: var(--wx-text); }
.wx-tile .wx-meter { width: 100%; margin-top: .2rem; }

/* a card with its own sky for every kind of event */
.wx-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.wx-kind { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--wx) 40%, transparent);
  background: #08141b; box-shadow: 0 16px 36px rgba(0, 0, 0, .3); }
.wx-kind-art { aspect-ratio: 16 / 8.2; }
.wx-kind-art .wx-pill { position: absolute; left: .8rem; top: .8rem; }
.wx-kind.on { box-shadow: 0 0 0 2px var(--wx), 0 16px 36px rgba(0, 0, 0, .3); }
.wx-kind-body { display: grid; gap: .6rem; align-content: start; flex: 1; padding: 1rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--wx) 9%, transparent), transparent 55%); }
.wx-kind h3 { display: flex; align-items: center; gap: .65rem; margin: 0; font: italic 800 1.65rem/1 var(--font-display, sans-serif); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.wx-kind p { margin: 0; color: var(--wx-text); line-height: 1.45; }
.wx-lines { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .45rem; }
.wx-lines li { display: flex; align-items: center; gap: .65rem; margin: 0; color: var(--wx-text); font-size: .96rem; line-height: 1.35; }
.wx-lines li::before { content: ""; flex: none; width: .45rem; height: .45rem; margin: 0 .4rem; border-radius: 50%; background: var(--wx); }
.wx-lines li.has-ic::before { display: none; }
.wx-lines .wx-eic { width: 1.9rem; height: 1.9rem; border-radius: .55rem; color: var(--wx); background: color-mix(in srgb, var(--wx) 13%, transparent); }
.wx-lines .wx-eic svg { width: 1.15rem; height: 1.15rem; }

/* ------------------------------------------------------------------ Recent */
.wx-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); gap: .6rem; }
.wx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; margin: 0; padding: .55rem .95rem .55rem .55rem; border-radius: 14px;
  border: 1px solid var(--wx-line); background: var(--wx-panel); }
.wx-row > .wx-badge { margin-left: .35rem; }
.wx-thumb { width: 5.4rem; height: 3.7rem; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.wx-thumb .wxs-glyph { right: 50%; top: 5%; height: 90%; transform: translateX(50%); filter: none; }
.wx-thumb .wxs-land { height: 30%; }
.wx-row-main { display: grid; gap: .15rem; min-width: 0; }
.wx-row-main b { font: italic 800 1.2rem/1.1 var(--font-display, sans-serif); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.wx-row-main span { font-size: .87rem; color: var(--wx-muted); }
.wx-row-res { display: grid; gap: .3rem; justify-items: end; text-align: right; }
.wx-row-res em { font-style: normal; font-size: .92rem; color: var(--wx-text); font-variant-numeric: tabular-nums; }
.wx-empty { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); align-items: center; padding: 1rem; border-radius: 18px;
  border: 1px solid var(--wx-line); background: var(--wx-panel); }
.wx-empty-art { aspect-ratio: 16 / 10; border-radius: 12px; }
.wx-empty-say { display: grid; gap: .6rem; min-width: 0; }
.wx-empty h3 { margin: 0; font: italic 800 clamp(1.4rem, 2.4vw, 1.8rem)/1.05 var(--font-display, sans-serif); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.wx-empty p { margin: 0; max-width: 62ch; color: var(--wx-text); line-height: 1.45; }
.wx-rows.example { grid-template-columns: minmax(0, 34rem); }
.wx-rows.example .wx-row { border-style: dashed; }

/* ------------------------------------------------------------------ Guide, and the small cards under Recent */
.wx-steps { list-style: none; counter-reset: wx-step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.wx-steps li { counter-increment: wx-step; position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--wx-line); background: var(--wx-panel); }
.wx-step-art { aspect-ratio: 16 / 7.4; }
.wx-steps li::before { content: counter(wx-step); position: absolute; z-index: 1; left: .8rem; top: .8rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; font: italic 800 1.2rem/1 var(--font-display, sans-serif); color: #06171b; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.wx-step-say { display: grid; gap: .35rem; padding: .9rem 1.1rem 1.1rem; }
.wx-steps h3, .wx-facts h3, .wx-where h3 { margin: 0; font: italic 800 1.3rem/1.05 var(--font-display, sans-serif); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.wx-steps p, .wx-facts p, .wx-where p { margin: 0; color: var(--wx-text); font-size: .96rem; line-height: 1.45; }
.wx-facts, .wx-where { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: .8rem; }
.wx-facts li, .wx-where li { display: flex; align-items: flex-start; gap: .85rem; margin: 0; padding: .95rem 1.05rem; border-radius: 14px; border: 1px solid var(--wx-line); background: var(--wx-panel); }
.wx-facts li > div, .wx-where li > div { display: grid; gap: .3rem; min-width: 0; }
.wx-where { --wx: var(--ember, #e8953c); }

@media (max-width: 900px) {
  .wx-tiles, .wx-steps { grid-template-columns: minmax(0, 1fr); }
  .wx-steps li { flex-direction: row; }
  .wx-step-art { flex: none; width: 38%; aspect-ratio: auto; min-height: 7rem; }
  .wx-empty { grid-template-columns: minmax(0, 1fr); }
  .wx-empty-art { aspect-ratio: 16 / 7; }
}
@media (max-width: 640px) {
  .wx-stage { min-height: 0; }
  .wx-live { max-width: none; }
  .wx-brand { font-size: 1rem; }
  .wxs-glyph { width: 12.5rem; right: -2.6rem; top: -1.2rem; opacity: .92; }
  .wxs-low .wxs-glyph { top: .5rem; }
  .wx-stage .wxs-land { height: 5.5rem; }
  .wx-scrim { background: linear-gradient(180deg, rgba(0, 0, 0, calc(var(--scrim) * .55)) 0%, rgba(0, 0, 0, var(--scrim)) 100%); }
  .wx-name { margin-top: 1.1rem; }
  .wx-stage-in { padding-bottom: 1.1rem; }
  .wx-live:last-child { padding-bottom: 3rem; }   /* nothing at the foot: the words stay clear of the island */
  .wx-chip { font-size: .9rem; min-height: 2rem; }
  .wx-chip.soft, .wx-chip.staff { font-size: .84rem; }
  .wx-row { grid-template-columns: auto minmax(0, 1fr); }
  .wx-row-res { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .wx-row .wx-meter { width: 100%; }
  .wx-thumb { width: 4.6rem; height: 3.2rem; }
  .wx-steps li { flex-direction: column; }
  .wx-step-art { width: auto; aspect-ratio: 16 / 7.4; min-height: 0; }
  .wx-day-ticks span:nth-child(even) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .wxs *, .wx-stage > .wxs, .wx-chip.hot .wx-dot { animation: none !important; }
  .wxs-shoot, .wxs-flash { display: none; }
  .wx-run-bar i, .wx-day-now { transition: none; }
}
