/* ---------- The site's look (Nov 2026): a light MapleStory sky over Victoria Island, where everyone is out grinding ----------
   Loaded after style.css, so it wins. A light sky ground, white panels with thin sky-blue lines and dark navy text,
   Rubik for everything, one Maple-yellow button for the thing to do. The bright colours each have one job:
   leaf green = grinding right now, yellow = act, blue = links, green = EXP, orange = mesos. The pictures are the
   game's own (monsters from tools/build_mobs.py, the town banners, item icons): no drawn stand-ins or emoji. */
:root, :root[data-bs-theme="dark"] {
  --f-sky-top: #7cc7ef;
  --f-ground: #d9f0fa;
  --f-panel: #ffffff;
  --f-panel-2: #fff6d6;
  --f-line: #b2dcef;
  --f-head: #0b2a40;
  --f-text: #15364d;
  --f-text-2: #3e5f74;
  --f-yellow: #ffcd2e;
  --f-yellow-hi: #ffd84f;
  --f-yellow-line: #e0a800;
  --f-yellow-ink: #231b00;
  --f-leaf: #2f9e2a;
  --f-link: #0a68ad;
  --f-exp: #3b8a0c;
  --f-meso: #c95d00;
  --f-grass: #5fb846;
  --f-dot: #4fa83a;
  --f-grass-dark: #3f8f36;
  --font-display: "Rubik", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;
  --bs-body-font-family: var(--font-body);
  --bs-body-bg: var(--f-ground);
  --bs-link-color: var(--f-link);
  --bs-link-color-rgb: 10, 104, 173;
  --bs-link-hover-color: #064c80;
  --bs-link-hover-color-rgb: 6, 76, 128;
}

html { scrollbar-color: var(--f-line) var(--f-ground); }
body:not(.admin-ui) {
  color: var(--f-text); overflow-x: clip;
}
::selection { background: var(--f-yellow); color: var(--f-yellow-ink); }
:focus-visible { outline: 3px solid var(--f-link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.01em; }

/* the old scenery (drawn sky, hills, leaves and monsters) belongs to the earlier look */
.sky, .hills, .leaves, .mobs { display: none !important; }

/* ---------- header and footer ---------- */
body:not(.admin-ui) .site-header {
  max-width: none; margin: 0; padding: 12px max(16px, calc(50% - 600px)); align-items: center;
  background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--f-line);
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(8px);
}
body:not(.admin-ui) .brand, body:not(.admin-ui) .brand:hover { color: var(--f-head); }
body:not(.admin-ui) .brand-leaf { fill: #f08a2c; filter: none; width: 30px; height: 30px; }
body:not(.admin-ui) .brand-name { font-size: var(--fs-24, 24px); font-weight: 800; color: var(--f-head); text-shadow: none; }
body:not(.admin-ui) .brand-sub { color: var(--f-text-2); text-shadow: none; font-weight: 500; }
body:not(.admin-ui) .brand-count { color: #237a1f; }
/* the public pages' menu: words, no icons (the app's menu keeps its icons) */
.tabs .tab:not([data-nav]) .bi:not(.bi-discord) { display: none; }
.tabs .tab:not([data-nav]) {
  flex-direction: row; gap: 6px; padding: 8px 12px; font-size: var(--fs-16, 16px); font-weight: 500; color: var(--f-text-2);
  background: none; border: 0; border-radius: 8px; text-shadow: none;
}
.tabs .tab:not([data-nav]):hover { color: var(--f-head); background: rgba(10, 104, 173, .07); }
.tabs .tab:not([data-nav]).active { color: var(--f-head); background: none; box-shadow: inset 0 -3px 0 var(--f-yellow); border-radius: 0; }
.tabs .tab.kofi:not([data-nav]) { color: var(--f-text-2); }
.tabs .tab.kofi:not([data-nav]):hover { color: var(--f-head); }
.tabs .tab.discord-tab, .tabs .tab.discord-tab:hover { background: none; border: 0; box-shadow: none; }
.tabs .tab.discord-tab { color: var(--f-text-2); font-size: var(--fs-20, 20px); }
.tabs .tab.discord-tab:hover { color: #5865f2; }
.tabs .btn-discord {
  white-space: nowrap; flex: none; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-15, 15px);
  color: var(--f-yellow-ink); background: var(--f-yellow); border: 2px solid var(--f-yellow-line); border-radius: 10px; padding: 6px 14px;
  box-shadow: none; text-shadow: none;
}
.tabs .btn-discord:hover { color: var(--f-yellow-ink); background: var(--f-yellow-hi); }
/* with Guilds and Leagues in it the public menu needs about 1130px next to the logo: narrower, it goes under the logo,
   as it does below 992px for every page (the page scrolled sideways) */
@media (max-width: 1199.98px) {
  .site-header:has(> .tabs > .tab:not([data-nav])) { flex-wrap: wrap; }
  .site-header:has(> .tabs > .tab:not([data-nav])) .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
}

body:not(.admin-ui) .site-foot {
  color: var(--f-text-2); font-size: var(--fs-13, 13px); line-height: 1.7; padding: 32px 16px 48px; border-top: 1px solid var(--f-line);
  background: #ffffff; margin-top: 0;
}
body:not(.admin-ui) .site-foot a { color: var(--f-link); }
body:not(.admin-ui) .made-by { background: none; border: 0; padding: 0; color: var(--f-text); font-size: var(--fs-14, 14px); }
body:not(.admin-ui) .made-by strong { color: #a85400; font-family: var(--font-display); }

/* ---------- the start page (pages/home.html) ---------- */
main.wrap:has(> .fh) { max-width: none; padding: 0; }
.fh { --gutter: max(20px, calc(50% - 600px)); }
.fh h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.08; color: var(--f-head); margin: 0 0 14px; text-wrap: balance; }
.fh p, .fh li { text-wrap: pretty; }
.fh p { color: var(--f-text-2); }
.fh a:not(.fh-btn) { color: var(--f-link); text-underline-offset: 3px; }
.fh-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 12px;
  font-family: var(--font-display); font-size: var(--fs-19, 19px); font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  color: var(--f-yellow-ink); background: var(--f-yellow); border: 2px solid var(--f-yellow-line);
  box-shadow: 0 8px 18px rgba(120, 84, 0, .22); transition: background-color .15s ease-out, transform .15s ease-out;
}
.fh-btn:hover { color: var(--f-yellow-ink); background: var(--f-yellow-hi); transform: translateY(-1px); }
.fh-btn .bi { font-size: var(--fs-21, 21px); }
.fh-btn.ghost { color: var(--f-head); background: rgba(255, 255, 255, .85); border-color: var(--f-head); box-shadow: none; }
.fh-btn.ghost:hover { color: var(--f-head); background: #fff; }

/* the first screen: Amherst behind, what it is on the left, the pop-out ticking on the right, monsters on the grass */
.fh-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 48px; align-items: center;
  padding: 72px var(--gutter) 128px; min-height: 620px; overflow: hidden;
  background: linear-gradient(180deg, #78c8ff 0%, #e1f5ff 100%);
}
.fh-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fh-art::before {  /* the town, its left and top edges fading into the sky (no hard edge on wide screens) */
  content: ""; position: absolute; right: -80px; bottom: 26px; height: 560px; aspect-ratio: 1500 / 400;
  background: url("/static/guild_towns/amherst.jpg") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 360px), linear-gradient(180deg, transparent 0, #000 140px);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 360px), linear-gradient(180deg, transparent 0, #000 140px);
  mask-composite: intersect;
}
.fh-art::after { content: ""; position: absolute; inset: 0;  /* the light wash behind the words */
  background: linear-gradient(90deg, rgba(236, 248, 253, .97) 0%, rgba(236, 248, 253, .9) 38%, rgba(236, 248, 253, .2) 62%, rgba(236, 248, 253, 0) 100%); }
.fh-hero-copy { max-width: 600px; position: relative; z-index: 2; }
.fh-hero h1 { font-size: clamp(44px, 6.2vw, 80px); font-weight: 800; line-height: .98; letter-spacing: -0.025em; color: var(--f-head); margin: 0 0 20px; text-wrap: balance; }
.fh-lead { font-size: var(--fs-19, 19px); line-height: 1.5; color: var(--f-text); max-width: 34em; margin: 0 0 28px; }
.fh-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fh-note { font-size: var(--fs-14, 14px); margin: 14px 0 0; color: var(--f-text-2) !important; }

.fh-pop {
  position: relative; z-index: 2; padding: 18px 20px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .97); border: 2px solid var(--f-line); box-shadow: 0 22px 46px rgba(16, 70, 110, .25);
  font-variant-numeric: tabular-nums;
}
.fh-pop-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fh-pop-head b { font-size: var(--fs-18, 18px); color: var(--f-head); }
.fh-pop-head small { display: block; font-size: var(--fs-14, 14px); color: var(--f-text-2); }
.fh-lv { font-size: var(--fs-14, 14px); font-weight: 700; color: #a85400; margin-left: 4px; }
.fh-clock { margin-left: auto; font-size: var(--fs-15, 15px); font-weight: 500; color: var(--f-text-2); }
.fh-sample { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; font-size: var(--fs-12, 12px); font-weight: 700; color: var(--f-text-2); background: #eef6fa; border: 1px solid #dcedf5; vertical-align: 1px; }
.fh-live { width: 12px; height: 12px; border-radius: 50%; background: var(--f-leaf); flex: none; box-shadow: 0 0 0 4px rgba(47, 158, 42, .18); }
.fh-bar { position: relative; height: 22px; border-radius: 6px; background: #e8f3f8; border: 1px solid var(--f-line); overflow: hidden; }
.fh-bar i { position: absolute; inset: 0 auto 0 0; background: #b8ec4a; transition: width .9s ease-out; }
.fh-bar span { position: relative; display: block; text-align: center; font-size: var(--fs-13, 13px); font-weight: 700; line-height: 20px; color: #231b00; }
.fh-pop-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 12px; }
.fh-pop-nums small { display: block; font-size: var(--fs-13, 13px); color: var(--f-text-2); }
.fh-pop-nums b { display: block; font-size: var(--fs-28, 28px); font-weight: 700; line-height: 1.15; color: var(--f-head); }
.fh-pop-nums b.exp { color: var(--f-exp); }
.fh-pop-nums b.meso { color: var(--f-meso); }
.fh-race { display: flex; justify-content: space-between; font-size: var(--fs-14, 14px); color: var(--f-text-2); border-top: 1px solid var(--f-line); padding-top: 10px; }
.fh-race .ahead { color: #237a1f; font-weight: 700; }
.fh-toast {
  position: absolute; left: 50%; top: -18px; transform: translate(-50%, 8px) scale(.9); opacity: 0;
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-20, 20px); color: var(--f-yellow-ink); background: var(--f-yellow);
  border: 2px solid var(--f-yellow-line); padding: 6px 16px; border-radius: 10px; box-shadow: 0 8px 18px rgba(120, 84, 0, .25);
  transition: opacity .3s ease-out, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.fh-toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* the grass, and the monsters walking it (move.gif faces left; .back walks the other way) */
.fh-ground { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 30px; background: var(--f-grass-dark); border-top: 6px solid var(--f-grass); }
/* (--sink: the empty rows under a monster's feet in its picture: the slime's hop leaves 38, so it floated over the grass) */
.fh-mob { position: absolute; bottom: calc(26px - var(--sink, 0px)); left: 0; animation: fh-walk var(--dur) linear var(--delay) infinite; }
.fh-mob.back { animation-name: fh-walk-back; }
.fh-mob.winter { display: none; }
@keyframes fh-walk { from { transform: translateX(105vw); } to { transform: translateX(-120px); } }
@keyframes fh-walk-back { from { transform: translateX(-120px) scaleX(-1); } to { transform: translateX(105vw) scaleX(-1); } }

/* sections below */
.fh-sec { padding: 88px var(--gutter) 24px; }
.fh-sub { font-size: var(--fs-16, 16px); margin: 0 0 32px; }
.fh-crowd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.fh-crowd-copy > p { font-size: var(--fs-17, 17px); line-height: 1.55; max-width: 32em; margin: 0 0 26px; }
.fh-board { padding: 8px; border-radius: 16px; background: var(--f-panel); border: 1px solid var(--f-line); box-shadow: 0 10px 28px rgba(16, 70, 110, .1); font-variant-numeric: tabular-nums; }
.fh-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 10px; }
.fh-row + .fh-row { border-top: 1px solid #dcedf5; border-radius: 0; }
.fh-row.top { background: var(--f-panel-2); }
.fh-row b { display: block; font-size: var(--fs-17, 17px); color: var(--f-head); }
.fh-row small { display: block; font-size: var(--fs-14, 14px); color: var(--f-text-2); }
.fh-rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--f-head); background: #eef7fb; border: 1px solid var(--f-line); }
.fh-row.top .fh-rank { color: var(--f-yellow-ink); background: var(--f-yellow); border-color: var(--f-yellow-line); }
.fh-rate { text-align: right; font-size: var(--fs-22, 22px); font-weight: 700; color: var(--f-exp); line-height: 1.1; }
.fh-rate small { display: block; font-size: var(--fs-12, 12px); font-weight: 500; color: var(--f-text-2); }
.fh-example { font-size: var(--fs-13, 13px) !important; margin: 4px 14px 6px !important; }
.fh-towns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fh-towns figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 3px solid #fff; aspect-ratio: 4 / 3; background: var(--f-panel); box-shadow: 0 10px 24px rgba(16, 70, 110, .16); }
.fh-towns img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 80%; display: block; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.fh-towns figure:hover img { transform: scale(1.04); }
.fh-towns figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 12px; border-radius: 8px; font-size: var(--fs-15, 15px); font-weight: 700; color: var(--f-head); background: rgba(255, 255, 255, .92); }

.fh-what { padding-top: 80px; }
.fh-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 16px; background: var(--f-panel); border: 1px solid var(--f-line); box-shadow: 0 10px 28px rgba(16, 70, 110, .08); }
.fh-group { padding: 26px 24px 14px; }
.fh-group + .fh-group { border-left: 1px solid #dcedf5; }
.fh-group img { image-rendering: pixelated; width: 32px; height: 32px; display: block; margin-bottom: 12px; }
.fh-group h3 { font-size: var(--fs-21, 21px); font-weight: 700; color: var(--f-head); margin: 0 0 12px; }
.fh-group ul { list-style: none; padding: 0; margin: 0; }
.fh-group li { position: relative; padding: 0 0 10px 16px; font-size: var(--fs-15, 15px); line-height: 1.45; color: var(--f-text-2); }
.fh-group li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--f-dot); }
.fh-group em { font-style: normal; font-size: var(--fs-12, 12px); font-weight: 700; letter-spacing: .02em; color: #7a5600; background: #fff3c4; border: 1px solid #f0d27a; border-radius: 6px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }

.fh-steplist { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 84px 0 20px; }
.fh-steplist li { counter-increment: step; position: relative; padding: 26px 24px 24px; border-radius: 16px; background: var(--f-panel); border: 1px solid var(--f-line); box-shadow: 0 10px 28px rgba(16, 70, 110, .08); }
.fh-steplist li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: var(--fs-44, 44px); font-weight: 800; line-height: 1; color: #b06f00; margin-bottom: 12px; }
.fh-steplist b { display: block; font-size: var(--fs-20, 20px); color: var(--f-head); margin-bottom: 6px; }
.fh-steplist span { font-size: var(--fs-15, 15px); line-height: 1.45; color: var(--f-text-2); }
.fh-perch { position: absolute; right: 22px; bottom: calc(100% - 2px); }

.fh-close {
  margin-top: 96px; padding: 96px var(--gutter) 104px; text-align: center;
  background: linear-gradient(180deg, rgba(236, 248, 253, .35) 0%, rgba(236, 248, 253, .82) 100%), url("/static/guild_towns/lith.jpg") center 30% / cover no-repeat;
  border-top: 6px solid var(--f-grass);
}
.fh-close h2 { margin-bottom: 28px; text-shadow: 0 2px 12px rgba(255, 255, 255, .8); }

@media (prefers-reduced-motion: reduce) {
  .fh-mob { animation: none; transform: translateX(var(--x)); }
  .fh-mob.back { transform: translateX(var(--x)) scaleX(-1); }
  .fh-btn, .fh-towns img, .fh-toast, .fh-bar i { transition: none; }
}

@media (max-width: 960px) {
  .fh-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; min-height: 0; }
  .fh-art::before { height: 420px; right: 50%; transform: translateX(50%); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px); mask-image: linear-gradient(180deg, transparent 0, #000 120px); }
  .fh-art::after { background: linear-gradient(180deg, rgba(236, 248, 253, .96) 0%, rgba(236, 248, 253, .85) 45%, rgba(236, 248, 253, .2) 100%); }
  .fh-pop { max-width: 420px; }
  .fh-crowd { grid-template-columns: 1fr; gap: 36px; }
  .fh-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-group:nth-child(3) { border-left: 0; }
  .fh-group:nth-child(n+3) { border-top: 1px solid #dcedf5; }
}
@media (max-width: 640px) {
  .tabs .tab.kofi:not([data-nav]), .tabs .tab.discord-tab:not([data-nav]) { display: none; }  /* (both are in the footer too) */
  .fh-hero { padding-top: 36px; padding-bottom: 120px; }
  .fh-lead { font-size: var(--fs-17, 17px); }
  .fh-btn { font-size: var(--fs-18, 18px); padding: 14px 20px; }
  .fh-actions .fh-btn { flex: 1 1 100%; justify-content: center; }
  .fh-pop-nums b { font-size: var(--fs-22, 22px); }
  #fh-clock { display: none; }  /* (room for the map's name next to the Example mark) */
  .tabs .tab:not([data-nav]) { padding: 8px 9px; }
  .tabs > .tab:not([data-nav]):first-child { display: none; }
  .fh-sec, .fh-what, .fh-steps { padding-top: 64px; }
  .fh-groups { grid-template-columns: 1fr; }
  .fh-group, .fh-group + .fh-group { border-left: 0; }
  .fh-group + .fh-group { border-top: 1px solid #dcedf5; }
  .fh-steplist { grid-template-columns: 1fr; gap: 44px; }
  .fh-close { margin-top: 64px; padding: 72px 20px; }
  .fh-towns { gap: 10px; }
  .fh-towns figcaption { font-size: var(--fs-13, 13px); }
}

/* ---------- Winter (Admin > Controls > Season): Christmas. Happyville, the game's Christmas town, in the snow, the same
   page: the backdrop, a few colours and the monsters change (only the snowy ones walk, and Rudolph), the act colour turns
   Christmas red, a string of lights hangs under the menu, the logo wears a Santa hat and snow lies on the windows. ---------- */
:root[data-bs-theme][data-season="winter"] {
  --f-ground: #e7f1f8; --f-line: #bfd5e4; --f-panel-2: #fdeceb;
  --f-yellow: #d6312f; --f-yellow-hi: #e5443f; --f-yellow-line: #a51f1f; --f-yellow-ink: #ffffff;
  --f-grass: #f4f8fb; --f-grass-dark: #cfe0ec; --f-dot: #c62d2a;
}
html[data-season="winter"] .fh-hero { background: linear-gradient(180deg, #6f97d6 0%, #c9def5 55%, #eef5fc 100%); }
html[data-season="winter"] .fh-art::before { background-image: url("/static/guild_towns/happyville.jpg"); right: -60px; }
html[data-season="winter"] .fh-art::after { background: linear-gradient(90deg, rgba(240, 247, 252, .97) 0%, rgba(240, 247, 252, .9) 38%, rgba(240, 247, 252, .18) 62%, rgba(240, 247, 252, 0) 100%); }
html[data-season="winter"] .fh-hero::before {  /* falling snow: two layers of flakes moving as wholes (cheap) */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .95) 0 2px, transparent 2.5px),
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 1.5px, transparent 2px);
  background-size: 140px 140px, 90px 90px; background-position: 0 0, 40px 60px;
  animation: fh-snow 18s linear infinite;
}
@keyframes fh-snow { to { background-position: 60px 140px, 10px 150px; } }
html[data-season="winter"] .fh-mob.winter { display: block; }
html[data-season="winter"] .fh-mob.not-winter { display: none; }
html[data-season="winter"] .fh-ground { border-top-color: #ffffff; }
html[data-season="winter"] .fh-row.top .fh-rank { color: #fff; }
html[data-season="winter"] .fh-lv, html[data-season="winter"] .made-by strong { color: #b3261e; }
html[data-season="winter"] .fh-steplist li::before { color: #c62d2a; }
html[data-season="winter"] .fh-group em { color: #8c1d18; background: #fde8e6; border-color: #f2b8b3; }
html[data-season="winter"] .fh-close {
  background: linear-gradient(180deg, rgba(240, 247, 252, .3) 0%, rgba(240, 247, 252, .85) 100%), url("/static/guild_towns/happyville.jpg") left 30% / cover no-repeat;
  border-top-color: #ffffff;
}
html[data-season="winter"] .brand-leaf { fill: #d6312f; }
/* a Santa hat on the leaf */
html[data-season="winter"] .brand { position: relative; }
html[data-season="winter"] .brand::before {
  content: ""; position: absolute; left: -7px; top: -9px; width: 26px; height: 22px; transform: rotate(-14deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M3 16C6 7 12 2 19.5 3.5 17.5 7 18.5 11 22 14.5Z' fill='%23d6312f'/%3E%3Cpath d='M12 4.5c3-1.4 5.5-1.6 7.5-1' stroke='%23a51f1f' stroke-width='1.2' fill='none'/%3E%3Crect x='1' y='14.5' width='21' height='5.5' rx='2.75' fill='%23fff'/%3E%3Ccircle cx='21.5' cy='4' r='2.8' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(11, 42, 64, .25));
}
/* a string of Christmas lights hanging under the menu, every page: the wire in scallops, the bulbs at the bottom of each,
   red, gold, green and blue, the colours chasing along (as a whole, in steps: cheap) */
html[data-season="winter"]:not(.app-ui) .site-header::after {  /* (the public pages: the app's menu is a side bar) */
  content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 20px; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 4px 6px at 24px 13px, #ff4b4b 0 85%, transparent 100%) 0 0 / 192px 20px repeat-x,
    radial-gradient(ellipse 4px 6px at 72px 13px, #ffcc33 0 85%, transparent 100%) 0 0 / 192px 20px repeat-x,
    radial-gradient(ellipse 4px 6px at 120px 13px, #3fcf5f 0 85%, transparent 100%) 0 0 / 192px 20px repeat-x,
    radial-gradient(ellipse 4px 6px at 168px 13px, #4aa8ff 0 85%, transparent 100%) 0 0 / 192px 20px repeat-x,
    radial-gradient(circle 11px at 24px 13px, rgba(255, 75, 75, .45), transparent) 0 0 / 192px 20px repeat-x,
    radial-gradient(circle 11px at 72px 13px, rgba(255, 204, 51, .45), transparent) 0 0 / 192px 20px repeat-x,
    radial-gradient(circle 11px at 120px 13px, rgba(63, 207, 95, .45), transparent) 0 0 / 192px 20px repeat-x,
    radial-gradient(circle 11px at 168px 13px, rgba(74, 168, 255, .45), transparent) 0 0 / 192px 20px repeat-x,
    radial-gradient(circle at 24px -14px, transparent 0 20.5px, #2f5d3f 21px 22.5px, transparent 23px) 0 0 / 48px 20px repeat-x;
  animation: xmas-chase 2.4s steps(4) infinite;
}
@keyframes xmas-chase {
  to { background-position: 192px 0, 192px 0, 192px 0, 192px 0, 192px 0, 192px 0, 192px 0, 192px 0, 0 0; }
}
/* snow on the windows: a drift along the top of each title bar */
html[data-season="winter"] .window-title { position: relative; }
html[data-season="winter"] .window-title::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; pointer-events: none;
  background: radial-gradient(circle at 50% 0, #fff 0 8px, transparent 8.5px) 0 0 / 23px 9px repeat-x,
    radial-gradient(circle at 50% 0, #fff 0 6px, transparent 6.5px) 11px 0 / 31px 7px repeat-x;
  filter: drop-shadow(0 1px 0 rgba(11, 42, 64, .12));
}
@media (prefers-reduced-motion: reduce) { html[data-season="winter"] .fh-hero::before, html[data-season="winter"] .site-header::after { animation: none; } }
@media (max-width: 960px) {
  html[data-season="winter"] .fh-art::before { right: 50%; }
  html[data-season="winter"] .fh-art::after { background: linear-gradient(180deg, rgba(240, 247, 252, .96) 0%, rgba(240, 247, 252, .85) 45%, rgba(240, 247, 252, .2) 100%); }
}

/* ---------- The rest of the site and the app: the same sky, white panels, navy text ----------
   The panels keep their old colour names (--wood, --ink, ...: style.css sets them per panel), here they get the new
   colours; the brown title bars, orange buttons and light text meant for a dark sky are put right one by one. */
:root, :root[data-bs-theme="dark"] {
  --sky-top: #7cc7ef; --sky-bottom: #d9f0fa;
  --wood: #ffffff; --wood-2: #ffffff; --wood-3: #eef6fa; --wood-line: #9cc9e0; --wood-line-2: #dcedf5;
  --title-top: #ffffff; --title-bottom: #ffffff;
  --ink: #15364d; --ink-2: #3e5f74; --muted: #5a7a8e; --cream: #0b2a40; --ink-strong: #0b2a40;
  --orange-top: #ffcd2e; --orange-bottom: #ffcd2e; --orange-line: #e0a800; --leaf: #e07b16;
  --bs-body-color: #15364d; --bs-body-color-rgb: 21, 54, 77; --bs-heading-color: #0b2a40; --bs-emphasis-color: #0b2a40;
  --bs-secondary-color: #5a7a8e; --bs-tertiary-color: #5a7a8e; --bs-border-color: #b2dcef; --bs-border-color-translucent: rgba(11, 42, 64, .12);
}
.window, .stat, .game-card, .announce, .welcome, .kpi-card, .pip-body, .health-pill, .bu-sec, .pcard, .gd-card, .rk-card:not(.look), .gl-hero, .live-goal, .support-card {
  --wood: #ffffff; --wood-2: #ffffff; --wood-3: #eef6fa; --wood-line: #9cc9e0; --wood-line-2: #dcedf5;
  --ink: #15364d; --ink-2: #3e5f74; --muted: #5a7a8e; --ink-strong: #0b2a40;
  --exp: #3b8a0c; --meso: #c95d00; --gain: #2f8a1f; --good: #2f8a1f; --live: #2f9e2a;
  --bs-body-color-rgb: 21, 54, 77; --bs-border-color: #dcedf5;
  --bs-link-color: #0a68ad; --bs-link-color-rgb: 10, 104, 173; --bs-link-hover-color: #064c80; --bs-link-hover-color-rgb: 6, 76, 128;
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233e5f74' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
body:not(.admin-ui) .window { background: #fff; border: 1px solid var(--f-line); border-radius: 16px; box-shadow: 0 10px 28px rgba(16, 70, 110, .08); }
body:not(.admin-ui) :is(.window-title, .pip-head) { box-shadow: none; padding: 12px 18px; }
body:not(.admin-ui) .window-name { font-family: var(--font-display); font-size: var(--fs-17, 17px); font-weight: 700; letter-spacing: 0; text-transform: none; }
.alert, .alert-success, .alert-info, .alert-primary { background: #fff; color: var(--f-text); border: 1px solid var(--f-line); }
.alert-warning { background: #fff8de; border-color: #f0d27a; }
.alert a, .board-ask a { color: var(--f-link); }
.session-item:hover, .feedback-kind input:checked + span, .drop-zone:hover, .drop-zone:focus-visible, .drop-zone.over { background: #eef7fb; }
.map-table tr.best td { background: #fff6d6; }
.window .table { --bs-table-hover-bg: rgba(10, 104, 173, .05); }
.update-pic { background: #eef6fa; }

/* buttons: yellow for the thing to do, white for the rest */
.btn-primary {
  --bs-btn-color: var(--f-yellow-ink); --bs-btn-hover-color: var(--f-yellow-ink); --bs-btn-active-color: var(--f-yellow-ink);
  --bs-btn-bg: var(--f-yellow); --bs-btn-border-color: var(--f-yellow-line); --bs-btn-hover-bg: var(--f-yellow-hi); --bs-btn-hover-border-color: var(--f-yellow-line);
  --bs-btn-active-bg: #f2bd12; --bs-btn-active-border-color: var(--f-yellow-line); --bs-btn-disabled-color: #6b5a1a;
  --bs-btn-disabled-bg: #f3e3a6; --bs-btn-disabled-border-color: #e3cd7c;
  background-image: none; text-shadow: none; box-shadow: 0 4px 12px rgba(120, 84, 0, .18); font-weight: 700;
}
.btn-success, .btn-danger, .btn-warning, .btn-info { background-image: none; text-shadow: none; box-shadow: none; }
.btn-primary:hover, .btn-success:hover, .btn-danger:hover, .btn-warning:hover, .btn-info:hover { filter: none; }
.btn-wood, .btn-outline-secondary, .btn-outline-danger, #view .btn-wood:not(.modal .btn-wood) {
  --bs-btn-color: var(--f-head); --bs-btn-bg: #fff; --bs-btn-border-color: #9cc9e0;
  --bs-btn-hover-color: var(--f-head); --bs-btn-hover-bg: #eef7fb; --bs-btn-hover-border-color: #5aa6cf;
  --bs-btn-active-color: var(--f-head); --bs-btn-active-bg: #dff0f8; --bs-btn-active-border-color: #5aa6cf;
  --bs-btn-disabled-color: #7f98a8; --bs-btn-disabled-bg: #fff; --bs-btn-disabled-border-color: #dcedf5;
  box-shadow: none;
}
.btn-outline-danger { --bs-btn-color: #b3261e; --bs-btn-hover-color: #8c1d18; }
.btn-check:checked + .btn-wood, .btn-wood.active { color: var(--f-yellow-ink); background: var(--f-yellow); background-image: none; border-color: var(--f-yellow-line); text-shadow: none; }
.seg button.active, .step-pill.on, .feedback-badge.new { background: var(--f-yellow); color: var(--f-yellow-ink); }

/* titles straight on the sky */
.page-title { color: var(--f-head); text-shadow: none; font-weight: 800; }
.page-sub { color: var(--f-text-2); font-weight: 500; }
.back { color: var(--f-link); }
.back:hover { color: #064c80; }
.gd-top { color: var(--f-text); } .gd-top h1 { color: var(--f-head); font-weight: 800; } .gd-top p { color: var(--f-text-2); }
.board-pill { color: var(--f-text); background: rgba(255, 255, 255, .8); border-color: #9cc9e0; }
.board-pill:hover { border-color: #5aa6cf; }
.board-pill.on { color: var(--f-yellow-ink); background: var(--f-yellow); border-color: var(--f-yellow-line); }
.board-pill.on .bi { color: inherit; }
.board-ask { background: #fff; border-color: var(--f-yellow-line); color: var(--f-text); }
.board-ask-text strong { color: var(--f-head); } .board-ask-text span { color: var(--f-text-2); }
.announce { background: #fff; border: 1px solid var(--f-line); color: var(--f-text); }
.announce.warning { background: #fff8de; border-color: #f0d27a; }

/* the app's menu: icons over words, the page you're on underlined in yellow */
body:not(.admin-ui) .tab[data-nav] { color: var(--f-text-2); font-size: var(--fs-12, 12px); font-weight: 600; background: none; text-shadow: none; }
body:not(.admin-ui) .tab[data-nav]:hover { color: var(--f-head); background: rgba(10, 104, 173, .07); }
body:not(.admin-ui) .tab[data-nav].active { color: var(--f-head); background: none; box-shadow: inset 0 -3px 0 var(--f-yellow); border-radius: 10px 10px 0 0; }
body:not(.admin-ui) .tab[data-nav].active .bi { color: #e07b16; }
body:not(.admin-ui) .tab.kofi[data-nav], body:not(.admin-ui) .tab.kofi[data-nav]:hover { color: #c2367a; background: none; }
body:not(.admin-ui) .user-chip { background: #fff; border: 1px solid var(--f-line); color: var(--f-text); }

/* Report a bug */
.fb-fab { background: #fff; color: var(--f-head); border: 1px solid var(--f-line); box-shadow: 0 8px 20px rgba(16, 70, 110, .18); }
.fb-fab .bi { color: #e07b16; }
.fb-fab:hover, .fb-fab:focus-visible { color: var(--f-head); box-shadow: 0 12px 24px rgba(16, 70, 110, .24); }

/* the Guide: its road and cards in the same white and navy */
.gd-road::before { background: repeating-linear-gradient(#ffcd2e 0 18px, transparent 18px 32px); }
.gd-sign { color: var(--f-yellow-ink); background: var(--f-yellow); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(120, 84, 0, .2); }
.gd-card { color: var(--f-text); background: #fff; border: 1px solid var(--f-line); box-shadow: 0 10px 28px rgba(16, 70, 110, .08); }
.gd-card h2 { color: var(--f-head); font-weight: 800; } .gd-card h2 .bi { color: #e07b16; }
.gd-card a { color: var(--f-link); }
.gd-card kbd { color: #fff; background: var(--f-head); }
.gd-tier { border: 1px solid #dcedf5; } .gd-tier.best { border-color: var(--f-yellow-line); } .gd-tier ul { color: var(--f-text-2); }
.gd-fix { color: var(--f-text-2); border-color: #dcedf5; } .gd-fix > .bi { color: #e07b16; } .gd-fix strong { color: var(--f-head); }
.gd-card details { border-bottom-color: #dcedf5; } .gd-card summary { color: var(--f-head); } .gd-card details p { color: var(--f-text-2); }
.gd-note { color: var(--f-text); background: #fff8de; border: 1px solid #f0d27a; } .gd-note > .bi { color: #c98a00; } .gd-note strong { color: var(--f-head); }

/* What's new: the update's tiles as plain white tiles (no colour band on top) */
.bu-tiles a { background: #fff; border: 1px solid var(--f-line); box-shadow: none; }
.bu-tiles a:hover { box-shadow: 0 8px 18px rgba(16, 70, 110, .14); border-color: #5aa6cf; }

/* What's new: the date line readable on white, and on a phone the banner's button sits under the banner's pills
   instead of on top of them (the card has its own "Read the whole update" button below anyway) */
.update-when { color: #a85400; }
@media (max-width: 575.98px) { .bu-pic-cta { display: none; } }

/* "Stop the monsters" on the start page: a small button over the grass, and everything walking stands still */
.fh-calm {
  margin-top: 10px; padding: 3px 10px; border-radius: 8px;
  font: 600 var(--fs-13, 13px) var(--font-body); color: var(--f-text-2); background: rgba(255, 255, 255, .7); border: 1px solid var(--f-line);
  cursor: var(--cursor-hand, pointer);
}
.fh-calm:hover { background: #fff; color: var(--f-head); }
html.fh-still .fh-mob { animation: none; transform: translateX(var(--x)); }
html.fh-still .fh-mob.back { transform: translateX(var(--x)) scaleX(-1); }
html.fh-still[data-season="winter"] .fh-hero::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .fh-calm { display: none; } }  /* (already still) */

/* the Support page's banner in the site's white and navy (no purple), its button the yellow one */
body:not(.admin-ui) .sup-hero { background: #fff; border: 1px solid var(--f-line); color: var(--f-text); box-shadow: 0 10px 28px rgba(16, 70, 110, .1); }
body:not(.admin-ui) .sup-hero h1 { color: var(--f-head); font-weight: 800; margin-top: 0; }
body:not(.admin-ui) .sup-hero p { color: var(--f-text-2); }
body:not(.admin-ui) .sup-hero-note { color: var(--f-text-2); }
body:not(.admin-ui) .sup-hero-note a { color: var(--f-link); }

/* ---------- More colour (Timmie: the white felt empty): a fuller sky with soft clouds, blue title bars like the
   game's windows, and a green band on the start page. Still one yellow button; blue stays for links and window bars. ---------- */
body:not(.admin-ui) { background: linear-gradient(180deg, #86cdf3 0, #bfe6f8 640px, #d4eefa 1400px) #d4eefa; }
body:not(.admin-ui)::before {  /* a few soft clouds, standing still behind everything */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60px 26px at 12% 18%, rgba(255, 255, 255, .75), transparent 70%),
    radial-gradient(90px 34px at 16% 16%, rgba(255, 255, 255, .6), transparent 70%),
    radial-gradient(110px 36px at 78% 30%, rgba(255, 255, 255, .6), transparent 70%),
    radial-gradient(70px 26px at 84% 28%, rgba(255, 255, 255, .7), transparent 70%),
    radial-gradient(120px 40px at 40% 72%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(80px 28px at 92% 82%, rgba(255, 255, 255, .5), transparent 70%);
}
body:not(.admin-ui) .window { border-color: #8cc7e6; }
body:not(.admin-ui) :is(.window-title, .pip-head) { background: #1f7bbb; color: #fff; border-bottom: 1px solid #17679d; }
body:not(.admin-ui) .window-title { --cream: #fff; }
body:not(.admin-ui) .window-name, body:not(.admin-ui) .window-title :is(h1, h2, h3, strong, b) { color: #fff; }
body:not(.admin-ui) .window-name .bi { color: #ffe27a; }
body:not(.admin-ui) .window-aside, body:not(.admin-ui) .window-title .small, body:not(.admin-ui) .window-title .text-muted-wood { color: #fff; }
body:not(.admin-ui) .window-title a:not(.btn) { color: #fff; }
.gd-card, .fh-board, .fh-groups, .fh-steplist li { border-color: #8cc7e6; }

/* the start page: the lists on a band of fresh grass green, from edge to edge */
.fh-what { margin-top: 96px; padding-bottom: 72px; background: #e4f5dc; border-top: 6px solid var(--f-grass); }
.fh-what .fh-groups { border-color: #b9dfa8; }
.fh-steps { padding-top: 80px; }
html[data-season="winter"] .fh-what { background: #eaf2f8; border-top-color: #ffffff; }
html[data-season="winter"] body:not(.admin-ui) { background: linear-gradient(180deg, #a9cdea 0, #d3e6f4 640px, #e4eff7 1400px) #e4eff7; }
@media (max-width: 640px) { .fh-what { margin-top: 64px; padding-bottom: 48px; } }
body:not(.admin-ui) .window-title :is(.btn-link, .link-btn) { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; color: #fff; }  /* (links in a blue title bar: white) */

/* the start page's live numbers (static/home.js fills them from /api/home-live) */
.fh-now { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: var(--fs-16, 16px); color: var(--f-text) !important; }
.fh-now b { font-size: var(--fs-20, 20px); color: var(--f-head); font-variant-numeric: tabular-nums; }
.fh-busy { margin: 14px 2px 0; font-size: var(--fs-15, 15px); line-height: 1.5; }
.fh-busy b { color: var(--f-head); }

/* ---------- The app's layout (Nov 2026): every page opens on a band like the start page ----------
   static/app.js moves each page's own header (title, line under it, its buttons) into #band: a strip of sky over a town of
   the game, with grass and a few walking monsters (not on the Live page, which sits next to the game). The page under it
   is wider than before and comes in once, rising softly. */
body:not(.admin-ui) main.wrap:not(:has(> .fh)) { max-width: 1232px; }
.app-band { position: relative; overflow: hidden; background: linear-gradient(180deg, #78c8ff 0%, #d6effb 100%); }
.app-band-art { position: absolute; inset: 0; pointer-events: none; }
.app-band-art::before {
  content: ""; position: absolute; right: -60px; top: -16px; height: 330px; aspect-ratio: 1500 / 400;  /* (the top of the town: its houses, not its wall) */
  background: url("/static/guild_towns/amherst.jpg") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 320px), linear-gradient(180deg, transparent 0, #000 90px);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 320px), linear-gradient(180deg, transparent 0, #000 90px);
  mask-composite: intersect;
}
.app-band-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(236, 248, 253, .96) 0%, rgba(236, 248, 253, .88) 40%, rgba(236, 248, 253, .25) 70%, rgba(236, 248, 253, .05) 100%); }
.app-band[data-town="ellinia"] .app-band-art::before { background-image: url("/static/guild_towns/ellinia.jpg"); }
.app-band[data-town="sleepywood"] .app-band-art::before { background-image: url("/static/guild_towns/sleepywood.jpg"); }
.app-band[data-town="perion"] .app-band-art::before { background-image: url("/static/guild_towns/perion.jpg"); }
.app-band[data-town="kerning"] .app-band-art::before { background-image: url("/static/guild_towns/kerning.jpg"); }
.app-band[data-town="lith"] .app-band-art::before { background-image: url("/static/guild_towns/lith.jpg"); }
.app-band[data-town="orbis"] .app-band-art::before { background-image: url("/static/guild_towns/orbis.jpg"); }
.app-band[data-town="ludibrium"] .app-band-art::before { background-image: url("/static/guild_towns/ludibrium.jpg"); }
html[data-season="winter"] .app-band .app-band-art::before { background-image: url("/static/guild_towns/happyville.jpg"); }
html[data-season="winter"] .app-band { background: linear-gradient(180deg, #6f97d6 0%, #dcebf8 100%); }
.app-band-in { position: relative; z-index: 2; max-width: 1232px; margin: 0 auto; padding: 46px 16px 74px; }
.app-band-in > * { margin: 0; }
.app-band-in .page-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; }
.app-band-in .page-sub { font-size: var(--fs-17, 17px); margin-top: 6px; color: var(--f-text); }
.app-band-ground { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 22px; background: var(--f-grass-dark); border-top: 5px solid var(--f-grass); }
html[data-season="winter"] .app-band-ground { border-top-color: #fff; }
.app-band-ground .fh-mob { bottom: calc(18px - var(--sink, 0px)); }
.app-band[data-page="live"] .app-band-ground img { display: none; }  /* (calm next to the game) */
@media (max-width: 760px) {
  .app-band-art::before { height: 200px; right: 50%; transform: translateX(50%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 80px); mask-image: linear-gradient(180deg, transparent 0, #000 80px); }
  .app-band-art::after { background: linear-gradient(180deg, rgba(236, 248, 253, .95) 0%, rgba(236, 248, 253, .8) 55%, rgba(236, 248, 253, .3) 100%); }
  .app-band-in { padding: 24px 16px 70px; }
}

/* a page comes in once */
#view.enter > * { animation: view-rise .55s cubic-bezier(.16, 1, .3, 1) both; }
#view.enter > *:nth-child(2) { animation-delay: .06s; } #view.enter > *:nth-child(3) { animation-delay: .12s; }
#view.enter > *:nth-child(n+4) { animation-delay: .18s; }
@keyframes view-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- the overview (the first page after logging in) ---------- */
.ov { display: flex; flex-direction: column; gap: 22px; }
.ov-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; }
.ov-acts, .lv-start-acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; align-items: stretch; }
.ov-grid > div > .window { height: 100%; margin-top: 0 !important; }
.ov-board { display: flex; flex-direction: column; }
.ov-first h2, .lv-how h2 { font-size: var(--fs-26, 26px); font-weight: 800; color: var(--f-head); margin: 0 0 8px; }
.ov-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 64px 0 16px; }
.ov-steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ov-steps li { counter-increment: step; position: relative; padding: 22px 20px 20px; border-radius: 16px; background: #fff; border: 1px solid #8cc7e6; box-shadow: 0 10px 28px rgba(16, 70, 110, .08); }
.ov-steps li::before { content: counter(step); display: block; font-size: var(--fs-38, 38px); font-weight: 800; line-height: 1; color: #b06f00; margin-bottom: 10px; }
.ov-steps b { display: block; font-size: var(--fs-18, 18px); color: var(--f-head); margin-bottom: 4px; }
.ov-steps span { font-size: var(--fs-15, 15px); line-height: 1.45; color: var(--f-text-2); }
.ov-perch { position: absolute; right: 18px; bottom: calc(100% - 2px); }
.ov-rec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: center; }

/* ---------- the Live page before tracking ---------- */
.lv-start-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; }
.lv-start-err:empty { display: none; }
.lv-start-err { flex-basis: 100%; }
.lv-how-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.lv-how-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: var(--fs-15, 15px); }

@media (max-width: 991.98px) {
  .ov-grid, .ov-rec { grid-template-columns: 1fr; }
  .ov-steps, .ov-steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 60px; }
}
@media (max-width: 575.98px) {
  .ov-steps, .ov-steps.four { grid-template-columns: 1fr; }
  .ov-acts .btn, .lv-start-acts .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { #view.enter > * { animation: none; } }
.wk-reward { display: block; line-height: 1.5; }  /* (one sentence, not three columns) */
.wk-reward > span:first-child { font-size: var(--fs-20, 20px); margin-right: 8px; vertical-align: -3px; }

/* ---------- the overview, round two: you in the band, your numbers with context ---------- */
.ov-head { align-items: center; }
.ov-id { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.ov-avatar { flex: none; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: #fff;
  border: 2px solid #8cc7e6; box-shadow: 0 8px 20px rgba(16, 70, 110, .14); }
.ov-avatar img { image-rendering: pixelated; width: 40px; height: 40px; }
.ov-rank { margin-top: 8px; font-size: var(--fs-15, 15px); color: var(--f-text); }
.ov-rank:empty { display: none; }
.ov-rank a { font-weight: 700; color: var(--f-head); text-decoration: none; }
.ov-rank a:hover { text-decoration: underline; }
.ov-rank .bi { color: #e09a00; }
.ov-id .ov-acts { margin-top: 16px; }

.ov-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.ov-row.wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.ov-row > div > .window { height: 100%; margin-top: 0 !important; }

/* your EXP: a bar a day or a week */
.ov-tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.ov-tab { border: 0; background: none; color: #fff; font: 600 var(--fs-13, 13px) var(--font-body); padding: 3px 10px; border-radius: 8px; cursor: var(--cursor-hand, pointer); }
.ov-tab.on { background: #fff; color: var(--f-head); }
.ov-chart-sum { font-size: var(--fs-15, 15px); color: var(--f-text-2); margin-bottom: 10px; }
.ov-chart-sum b { font-size: var(--fs-24, 24px); color: var(--f-head); font-variant-numeric: tabular-nums; }
.ov-bars { display: flex; align-items: stretch; gap: 4px; height: 190px; }
.ov-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.ov-bar i { display: block; border-radius: 5px 5px 2px 2px; background: #7cc243; min-height: 0; transition: height .5s cubic-bezier(.16, 1, .3, 1); }
.ov-bar:hover i { background: #5fa832; }
.ov-bar span { display: block; height: 18px; margin-top: 4px; font-size: var(--fs-11_5, 11.5px); color: var(--f-text-2); text-align: center; white-space: nowrap; overflow: visible; }

/* how you compare */
.ov-cmp-map { display: flex; align-items: center; gap: 12px; }
.ov-cmp-map img { border-radius: 8px; border: 1px solid #dcedf5; image-rendering: pixelated; background: #eef6fa; }
.ov-cmp-map small { display: block; font-size: var(--fs-13, 13px); color: var(--f-text-2); }
.ov-cmp-map b { font-size: var(--fs-17, 17px); color: var(--f-head); }
.ov-cmp-rate { margin-left: auto; text-align: right; }
.ov-cmp-rate b { display: block; font-size: var(--fs-26, 26px); font-weight: 800; color: var(--f-exp); line-height: 1.1; }
.ov-pct { margin-top: 18px; }
.ov-pct-line { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #f3c3bd, #fbe7a1 50%, #b8e48c); }
.ov-pct-line i { position: absolute; top: -5px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--f-head); border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(16, 70, 110, .3); }
.ov-pct-txt { margin-top: 10px; font-size: var(--fs-15, 15px); color: var(--f-text); }
.ov-pct-txt b { font-size: var(--fs-18, 18px); color: var(--f-head); }
.ov-vs { margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: var(--fs-14, 14px); color: var(--f-text); background: #eef6fa; }
.ov-vs.up { background: #e8f6df; } .ov-vs.down { background: #fdecea; }
.ov-vs .bi { font-size: var(--fs-16, 16px); margin-right: 4px; }
.ov-vs.up .bi { color: #2f8a1f; } .ov-vs.down .bi { color: #c0392b; }

/* your sessions as cards: the map's minimap, a tint when it beat or missed your average, PB and long-session tags */
body:not(.admin-ui) .session-item { border-radius: 12px; }
body:not(.admin-ui) .session-item.better { background: #f1faea; }
body:not(.admin-ui) .session-item.worse { background: #fdf3f1; }
body:not(.admin-ui) .session-item.better:hover { background: #e6f5da; }
body:not(.admin-ui) .session-item.worse:hover { background: #fbe8e5; }
.session-map { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #dcedf5; background: #eef6fa; image-rendering: pixelated; object-fit: cover; }
.chip.pb { color: #7a4a00; background: #ffe9a8; border-color: #f0c860; }
.chip.long { color: #24527a; background: #dff0fa; border-color: #b2dcef; }
.session-vs { font-size: var(--fs-12, 12px); font-weight: 700; margin-top: 2px; white-space: nowrap; }
.session-vs.up { color: #2f7a1f; } .session-vs.down { color: #b3261e; }
.session-vs .bi { font-size: var(--fs-15, 15px); vertical-align: -2px; }

@media (max-width: 1100px) {
  .ov-head { align-items: flex-start; }
}
@media (max-width: 991.98px) {
  .ov-row, .ov-row.wide { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .ov-avatar { width: 56px; height: 56px; }
  .ov-bars { height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .ov-bar i { transition: none; } }

/* phones: the public menu scrolls under a fade, Log in stays put on the right (it fell half off the screen) */
@media (max-width: 640px) {
  .site-header .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 120px), transparent calc(100% - 92px), #000 calc(100% - 90px));
    mask-image: linear-gradient(90deg, #000 calc(100% - 120px), transparent calc(100% - 92px), #000 calc(100% - 90px)); }
  .site-header .tabs .btn-discord { position: sticky; right: 0; flex: none; margin-left: 4px; }
}
