/* EXP Tracker: a MapleStory-style night theme on top of Bootstrap 5.3.
   Night sky + hills behind everything, wooden "windows" for panels, orange pill buttons,
   and an in-game style lime EXP bar. Fredoka for headings and numbers, Nunito for text. */
:root,
:root[data-bs-theme="dark"] {
  --gold: #bd982d;
  --live: #4cc23a;
  --exp: #b8e01c;           /* EXP chart + accents */
  --meso: #ffb23e;          /* mesos chart + accents */
  --gain: #4cc23a;
  --level: #b9a2ff;
  --good: #4cc23a;          /* level-up marker, always with a label */
  --bad: #ff6b5e;           /* death marker, always with a label */
  --box-exp: #b8e01c;
  --box-anchor: #f08a2c;
  --box-meso: #4cc23a;
  --box-chat: #b9a2ff;
  --loot: #6ea8fe;          /* loot value accents */
  --total: #ff7eb6;         /* total value accents */
}

body {
  font-size: var(--fs-15, 15px); min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, .display { font-weight: 700; color: #fff; }
.num { font-variant-numeric: tabular-nums; }
.text-muted-wood { color: var(--muted); }
.text-ink-2 { color: var(--ink-2); }

/* ---------- scenery ---------- */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; width: 220px; height: 60px; border-radius: 60px; filter: blur(.5px); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 100px; height: 80px; left: 30px; top: -40px; }
.cloud::after { width: 80px; height: 60px; right: 30px; top: -28px; }
/* Clouds drift slowly left to right across the whole sky and wrap around. Each has its own height,
   size and speed (slower = further away); the negative delays spread them out from the start. */
.cloud { left: 0; animation: float var(--dur) linear var(--delay) infinite; will-change: translate; }
.cloud.c1 { top: 9%; --dur: 140s; --delay: -20s; }
.cloud.c2 { top: 26%; transform: scale(.75); --dur: 190s; --delay: -120s; opacity: .8; }
.cloud.c3 { top: 58%; transform: scale(1.2); opacity: .7; --dur: 120s; --delay: -75s; }
.cloud.c4 { top: 16%; transform: scale(.55); opacity: .6; --dur: 240s; --delay: -170s; }
.cloud.c5 { top: 42%; transform: scale(.9); opacity: .75; --dur: 165s; --delay: -40s; }
@keyframes float { from { translate: -300px 0; } to { translate: calc(100vw + 60px) 0; } }
.hills {
  position: fixed; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; pointer-events: none;
}
/* twinkling stars (spawned by app.js) */
.stars { position: absolute; inset: 0 0 45% 0; }
.star {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff8e1;
  box-shadow: 0 0 6px rgba(255, 248, 225, .8); opacity: .25; animation: twinkle var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes twinkle { 50% { opacity: .9; } }

/* falling maple leaves (spawned by app.js), behind the panels */
.leaves { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.leaf {
  position: absolute; top: -40px; left: var(--x); width: var(--size); height: var(--size); opacity: .85;
  animation: fall var(--dur) linear var(--delay) infinite; will-change: transform;
}
.leaf-sway { width: 100%; height: 100%; animation: sway var(--sway) ease-in-out infinite alternate; }
.leaf svg {
  width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
  animation: spin var(--dur) linear var(--delay) infinite;
}
@keyframes fall { to { transform: translate(var(--drift), calc(100vh + 80px)); } }
@keyframes sway { from { transform: translateX(-18px) rotate(-12deg); } to { transform: translateX(18px) rotate(12deg); } }
@keyframes spin { to { transform: rotate(var(--spin)); } }

/* monsters patrolling the hills: walk to --to, turn around, walk back */
.mobs { position: fixed; left: 0; right: 0; bottom: 0; height: 80px; z-index: -1; pointer-events: none; overflow: hidden; }
.mob { position: absolute; left: 0; bottom: var(--y); animation: patrol var(--dur) ease-in-out var(--delay) infinite; will-change: transform; }
.mob .face { animation: turn var(--dur) steps(1, end) var(--delay) infinite; }
.mob .art { display: block; overflow: visible; transform-origin: 50% 100%; }
.mob.mushroom .art { animation: hop .7s ease-in-out infinite; }
.mob.mushroom.small .art { animation-duration: .55s; }
.mob.snail .art { animation: crawl 1.6s ease-in-out infinite; }
.mob.slime .art { animation: bounce 1.1s ease-in-out infinite; }
@keyframes patrol { 0%, 100% { transform: translateX(var(--from)); } 50% { transform: translateX(var(--to)); } }
@keyframes turn { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(-1); } }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.06, .94); } 50% { transform: translateY(-5px) scale(.97, 1.03); } }
@keyframes crawl { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.07); } }
@keyframes bounce { 0%, 100% { transform: translateY(0) scale(1.1, .9); } 45% { transform: translateY(-9px) scale(.94, 1.07); } 70% { transform: translateY(-4px) scale(1, 1); } }

@media (prefers-reduced-motion: reduce) {
  .cloud, .live-dot, .star, .mob, .mob .face, .mob .art { animation: none !important; }
  .mob { transform: translateX(var(--from)); }
}

/* ---------- header ---------- */
.site-header {
  width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px 16px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-leaf { width: 34px; height: 34px; fill: var(--leaf); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); flex: none; }
.brand-name { display: block; font-family: var(--font-display); font-size: var(--fs-30, 30px); font-weight: 700; line-height: 1.1; }
.brand-sub { display: block; font-size: var(--fs-13, 13px); font-weight: 700; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.brand-count { color: #ffd86b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 16px 16px 140px; flex: 1; }
.wrap > * + * { margin-top: 20px; }
.site-foot { text-align: center; font-size: var(--fs-12, 12px); padding: 0 16px 110px; position: relative; }

/* pill tabs (nav, filters) */
.tabs { display: flex; }
.tab {
  display: inline-flex; align-items: center;
 text-decoration: none;
}
.tab:hover { border-color: #8a6440; }
.tab.active { border-color: var(--orange-line); }
/* Ko-fi: support the tracker (opens in a new tab, so live tracking keeps running) */
.tab.kofi { border-color: #1b7ea6; }
.tab.kofi .bi { color: #ff5e5b; }
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none;
  box-shadow: 0 0 0 3px rgba(76, 194, 58, .25); animation: blink 1.6s ease-in-out infinite;
}
.live-dot.paused { background: var(--orange-top); box-shadow: 0 0 0 3px rgba(255, 178, 62, .25); animation: none; }
.live-dot[hidden] { display: none; }
@keyframes blink { 50% { box-shadow: 0 0 0 6px rgba(76, 194, 58, .05); } }

/* logged-in player (hosted copy) */
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 4px; border-radius: 999px;
  background: var(--wood-2); border: 2px solid var(--wood-line); color: var(--ink-2); font-weight: 800; font-size: var(--fs-13, 13px);
}
.user-chip[hidden] { display: none; }
.user-chip img, .avatar-fallback { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.avatar-fallback { display: grid; place-items: center; background: #5865f2; color: #fff; font-family: var(--font-display); }
.user-chip .user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .btn { --bs-btn-padding-x: .55rem; --bs-btn-padding-y: .15rem; }
.user-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; border-radius: 999px; }
.user-link:hover { color: #fff; }
.user-link:hover .user-name { text-decoration: underline; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; font-size: var(--fs-24, 24px); }
.danger-box { padding: 14px 16px; border-radius: 10px; border: 1px dashed var(--bad); background: rgba(255, 107, 94, .06); }
.btn-discord {
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  --bs-btn-bg: #5865f2; --bs-btn-border-color: #3c45a5; --bs-btn-hover-bg: #4752c4; --bs-btn-hover-border-color: #3c45a5;
  --bs-btn-active-bg: #3c45a5; --bs-btn-active-border-color: #2f3685;
}

/* ---------- windows (panels) ---------- */
.window {
  background: var(--wood); border: 2px solid var(--wood-line); overflow: hidden;
}
.window-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 7px 14px;
 border-bottom: 2px solid var(--wood-line);
}
.window-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-15, 15px); letter-spacing: .06em; text-transform: uppercase; }
.window-name .bi { color: var(--leaf); }
h2.window-name { margin: 0; line-height: inherit; color: inherit; }  /* (a real heading, for search engines: it looks the same) */
.window-aside { font-size: var(--fs-12, 12px); font-weight: 700; }
.window-body { padding: 16px; }
.window-body.lg { padding: 24px; }

/* ---------- board rows ---------- */
.board { display: grid; gap: 10px; }
.rank {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-display); font-size: var(--fs-18, 18px); font-weight: 700; color: var(--ink-2); background: var(--wood-3);
  border: 2px solid rgba(0, 0, 0, .15);
}
.rank.r1 { color: #7a5200; }
.rank.r2 { color: #4a5160; }
.rank.r3 { color: #fff; }
.rank.live { color: #fff; font-size: var(--fs-16, 16px); }
.rank.rec { color: #fff; font-size: var(--fs-16, 16px); }
.who { min-width: 0; }
.who-name { font-family: var(--font-display); font-size: var(--fs-18, 18px); font-weight: 600; line-height: 1.25; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-meta { font-size: var(--fs-13, 13px); color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.status-live { color: var(--live); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.status-rec { color: #8fb0ff; font-weight: 700; }
.row-sub { font-size: var(--fs-12, 12px); color: var(--muted); margin-top: 6px; }
.score { text-align: right; }
.score-value { font-family: var(--font-display); font-size: var(--fs-24, 24px); font-weight: 700; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.score-unit { font-size: var(--fs-12, 12px); color: var(--muted); white-space: nowrap; }
@media (max-width: 767px) {
  .score-value { font-size: var(--fs-20, 20px); }
}

/* ---------- top 5 maps ---------- */
.map-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin: -6px 0; }
.map-table th { font-size: var(--fs-11, 11px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 2px 12px; }
.map-table td { padding: 10px 12px; background: var(--wood-2); border-top: 1px solid var(--wood-line-2); border-bottom: 1px solid var(--wood-line-2); vertical-align: middle; }
.map-table td:first-child { border-left: 1px solid var(--wood-line-2); border-radius: 10px 0 0 10px; }
.map-table td:last-child { border-right: 1px solid var(--wood-line-2); border-radius: 0 10px 10px 0; }
.map-table tr.best td { border-color: var(--gold); }
.map-table .r { text-align: right; }
.map-table .rank-col { width: 52px; }
.rank.sm { width: 30px; height: 30px; font-size: var(--fs-15, 15px); }
.map-name { font-family: var(--font-display); font-size: var(--fs-17, 17px); font-weight: 600; color: var(--ink); line-height: 1.2; }
.map-meta { font-size: var(--fs-12, 12px); color: var(--muted); }
.map-rate { font-family: var(--font-display); font-size: var(--fs-20, 20px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.map-bar { margin: 5px 0 0 auto; width: 120px; max-width: 100%; height: 6px; border-radius: 3px; background: var(--wood-3); overflow: hidden; }
.map-bar span { display: block; height: 100%; border-radius: 3px; }
.map-meso { font-weight: 800; color: var(--meso); font-variant-numeric: tabular-nums; }

/* ---------- live board ---------- */
.nav-count { line-height: 18px; text-align: center; }
.board-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--wood-line-2); }
.board-tools .form-select { width: auto; max-width: 220px; }
.board-tools .live-dot { width: 8px; height: 8px; margin-right: 4px; }
.board-lv { width: 70px; }
.board-body #board-note { padding: 0 16px 14px; }
.class-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; margin-right: 5px; }
.class-dot.warrior { background: #ff6b5e; }
.class-dot.magician { background: #6ea8fe; }
.class-dot.bowman { background: #4cc23a; }
.class-dot.thief { background: #b9a2ff; }
.board-minimap { width: 46px; height: 32px; object-fit: contain; border-radius: 6px; background: var(--wood-3); border: 1px solid var(--wood-line-2); flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }

/* podium: 2 · 1 · 3, the blocks under them gold, silver and bronze */
.podium { display: flex; justify-content: center; gap: 12px; align-items: flex-end; padding: 18px 16px 0; max-width: 760px; margin: 0 auto; }

/* everyone after the top 3 */
.feed { display: flex; flex-direction: column; padding: 12px 16px; border-top: 2px solid var(--wood-line); }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.feed-row.mine { border-color: var(--orange-line); }
.feed-main { flex: 1; min-width: 0; }
.feed-name { font-family: var(--font-display); font-size: var(--fs-16, 16px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-class { font-family: var(--font-body); font-size: var(--fs-12, 12px); font-weight: 600; color: var(--ink-2); margin-left: 4px; }
.feed-where { font-size: var(--fs-12, 12px); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-body #board-note { padding-top: 12px; }
@media (max-width: 575.98px) {
  .podium { gap: 6px; padding: 14px 8px 0; }
  .feed { padding: 10px 8px; }
  .feed-row { gap: 8px; padding: 7px 8px; }
  .feed-row .board-minimap { display: none; }
}
.board-status { font-size: var(--fs-12, 12px); font-weight: 800; padding: 1px 9px; border-radius: 999px; background: var(--wood-3); }
.board-status.live { color: var(--live); }
.board-status.idle { color: var(--orange-top); }
.board-status.paused { color: var(--muted); }

/* ---------- your sessions (scrollable list) ---------- */
.session-tools { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--wood-line-2); color: var(--muted); }
.session-tools .form-control { max-width: 280px; }
.session-scroll { max-height: 560px; overflow-y: auto; padding: 0 12px 12px; scrollbar-width: thin; scrollbar-color: var(--wood-line) var(--wood-3); }
.session-scroll::-webkit-scrollbar { width: 10px; }
.session-scroll::-webkit-scrollbar-track { background: var(--wood-3); }
.session-scroll::-webkit-scrollbar-thumb { background: var(--wood-line); border-radius: 5px; border: 2px solid var(--wood-3); }
.session-day {
  position: sticky; top: 0; z-index: 1; margin: 0 -12px; padding: 10px 16px 6px; background: var(--wood);
  font-size: var(--fs-11, 11px); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-top);
}
.session-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 6px;
  padding: 10px 14px; border-radius: 10px; background: var(--wood-2); border: 1px solid var(--wood-line-2);
  color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s, transform .15s;
}
.session-item:hover { color: var(--ink); border-color: var(--wood-line); transform: translateX(2px); }
.session-item[hidden], .session-day[hidden] { display: none; }
.session-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: var(--fs-15, 15px); border: 2px solid rgba(0, 0, 0, .2); }
.session-name { font-family: var(--font-display); font-size: var(--fs-16, 16px); font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-meta { font-size: var(--fs-12, 12px); color: var(--muted); }
.session-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.chip { font-size: var(--fs-11, 11px); font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--wood-3); border: 1px solid var(--wood-line-2); color: var(--ink-2); white-space: nowrap; }
.chip.exp { color: var(--exp); }
.chip.lvl { color: var(--level); }
.chip.bad { color: var(--bad); }
.chip.meso { color: var(--meso); }
.chip.loot { color: var(--loot); }
.chip.party { color: var(--cream); }
.party-select { width: auto; min-width: 130px; display: inline-block; }
.session-score { text-align: right; }
.session-score .score-value { font-size: var(--fs-22, 22px); }
.session-value { font-size: var(--fs-11, 11px); font-weight: 800; color: var(--total); margin-top: 2px; white-space: nowrap; }
@media (max-width: 575px) {
  .session-item { grid-template-columns: auto minmax(0, 1fr); }
  .session-score { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .session-score .score-value { font-size: var(--fs-18, 18px); }
}

/* ---------- in-game EXP bar ---------- */
.expbar {
  position: relative; height: 22px; border-radius: 6px; overflow: hidden;
  background: #5b5b60; border: 2px solid #3a3a3e;
}
.expbar.lg { height: 30px; }
.expbar-fill {
  position: absolute; inset: 0 auto 0 0; transition: width .6s ease;
}
.expbar-text {
  position: relative; height: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--fs-12, 12px); font-weight: 800; color: #fff; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 0 3px rgba(0, 0, 0, .6);
}
.expbar.lg .expbar-text { font-size: var(--fs-14, 14px); }
.expbar-label { font-family: var(--font-display); font-weight: 700; color: #f2fb7a; }

/* ---------- stat tiles ---------- */
.stat {
  height: 100%; padding: 14px 16px; border-radius: 10px; background: var(--wood-2);
  border: 1px solid var(--wood-line-2); border-top: 3px solid var(--accent);
}
.stat .label { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-13, 13px); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.stat .label .bi { color: var(--accent); font-size: 1.05rem; }
.stat .value { font-family: var(--font-display); font-size: var(--fs-30, 30px); font-weight: 700; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .value.off { font-size: var(--fs-17, 17px); font-weight: 600; color: var(--muted); }
.stat .value img { width: 22px; height: 22px; image-rendering: pixelated; vertical-align: -2px; }
.stat .sub { font-size: var(--fs-12, 12px); color: var(--muted); margin-top: 4px; }
.stat-reset { display: flex; width: fit-content; align-items: center; gap: 5px; margin-top: 7px; padding: 2px 10px; border: 1px solid var(--accent); border-radius: 999px; font-size: var(--fs-12, 12px); font-weight: 800; color: var(--ink); background: transparent; }
.stat-reset:hover:not(:disabled) { color: #1f1812; background: var(--accent); }
.stat-reset:disabled { opacity: .55; cursor: default; }
/* the inventory hasn't been seen a minute into live tracking: no mesos counted, so this tile asks for it, blinking */
.stat.stat-alarm { border-color: #e5484d; border-top-color: #e5484d; animation: stat-alarm 1.1s ease-in-out infinite; }
.stat.stat-alarm .label .bi, .stat.stat-alarm .value { color: #e5484d; }
.stat.stat-alarm .value { font-size: var(--fs-22, 22px); text-transform: uppercase; }
.stat.stat-alarm .sub { color: #e5484d; font-weight: 600; }
/* a calm note in a tile (Potions used: "Quick slots closed"): no blinking, it isn't urgent */
.stat.stat-note .value { font-size: var(--fs-22, 22px); text-transform: uppercase; color: var(--accent); }
@keyframes stat-alarm { 50% { background: rgba(229, 72, 77, .18); box-shadow: 0 0 0 3px rgba(229, 72, 77, .35); } }
/* level up (members): confetti falling over the page, and a banner */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 3000; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 12px; border-radius: 2px; animation: confetti-fall 2.4s linear forwards; }
@keyframes confetti-fall { to { transform: translate(var(--drift), 105vh) rotate(var(--spin)); } }
.levelup-banner { position: absolute; left: 50%; top: 28%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 7vw, 64px); letter-spacing: .04em; color: #ffcf4d; text-shadow: 0 3px 0 #a35a00, 0 0 24px rgba(255, 207, 77, .6);
  animation: levelup-pop 3.6s ease-out forwards; white-space: nowrap; }
@keyframes levelup-pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .stat.stat-alarm { animation: none; background: rgba(229, 72, 77, .12); } }

/* ---------- buttons: orange pills like the game UI ---------- */
.btn {
  --bs-btn-font-family: var(--font-body); --bs-btn-font-weight: 800; --bs-btn-border-width: 2px;
  --bs-btn-border-radius: 999px; --bs-btn-padding-x: 1.1rem; --bs-btn-padding-y: .45rem;
  --bs-btn-border-radius-lg: 999px; --bs-btn-border-radius-sm: 999px;
  --bs-btn-focus-box-shadow: 0 0 0 .2rem rgba(255, 178, 62, .35);
}
.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info {
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-disabled-color: #fff;
}
.btn-success { --bs-btn-border-color: #2b6f1c; --bs-btn-hover-border-color: #2b6f1c; --bs-btn-active-bg: #34871f; --bs-btn-active-border-color: #2b6f1c; --bs-btn-disabled-bg: #4a6b3e; --bs-btn-disabled-border-color: #3a5530; }
.btn-danger { --bs-btn-border-color: #8e1f1c; --bs-btn-hover-border-color: #8e1f1c; --bs-btn-active-bg: #a82824; --bs-btn-active-border-color: #8e1f1c; }
.btn-warning { --bs-btn-border-color: #8c6a0a; --bs-btn-hover-border-color: #8c6a0a; --bs-btn-active-bg: #b0860f; --bs-btn-active-border-color: #8c6a0a; }
.btn-info { --bs-btn-border-color: #26489a; --bs-btn-hover-border-color: #26489a; --bs-btn-active-bg: #2f5dbd; --bs-btn-active-border-color: #26489a; }
.btn:disabled, .btn.disabled { background-image: none; box-shadow: none; text-shadow: none; opacity: .7; }
.btn-group > .btn { border-radius: 999px !important; margin-left: 0 !important; }
.btn-group { gap: 6px; }
.btn-link { --bs-btn-color: var(--orange-top); --bs-btn-hover-color: #ffd28a; }

/* ---------- forms ---------- */
.form-label { font-weight: 700; color: var(--ink-2); }
.form-control, .form-select {
  --bs-body-bg: var(--wood-3); background-color: var(--wood-3); color: var(--ink);
  border: 2px solid var(--wood-line); border-radius: 10px;
}
.form-control::placeholder { color: var(--muted); }
.form-control:focus, .form-select:focus {
  background-color: var(--wood-3); color: var(--ink); border-color: var(--orange-top); box-shadow: 0 0 0 .2rem rgba(255, 178, 62, .25);
}
.input-group > .form-control { border-left-width: 0; }
.input-group > .btn { border-radius: 0 10px 10px 0 !important; }
.form-range::-webkit-slider-thumb { border: 2px solid var(--orange-line); }
.form-range::-moz-range-thumb { background: var(--orange-bottom); border: 2px solid var(--orange-line); }
.form-range::-webkit-slider-runnable-track { background: var(--wood-3); border: 1px solid var(--wood-line); }
summary { color: var(--orange-top); font-weight: 700; }

/* ---------- alerts / badges / misc ---------- */
.alert { border-radius: 10px; }
.alert .bi { color: inherit; }
.alert-warning .bi { color: var(--orange-top); }
.alert-danger .bi { color: var(--bad); }
.badge-map { background: rgba(240, 138, 44, .16); color: var(--orange-top); border: 1px solid rgba(240, 138, 44, .35); font-weight: 700; border-radius: 999px; padding: .3em .7em; }
.spinner-border { color: var(--orange-top); }
.progress { --bs-progress-bg: #5b5b60; height: 22px; border: 2px solid #3a3a3e; border-radius: 6px; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--wood-line-2); --bs-table-hover-bg: rgba(255, 255, 255, .04); }
.table thead th { color: var(--muted); font-size: var(--fs-12, 12px); text-transform: uppercase; letter-spacing: .04em; }
.table td.r, .table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { max-height: 320px; overflow: auto; }
.well { background: var(--wood-3); border: 1px solid var(--wood-line-2); border-radius: 10px; padding: 12px 14px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-14, 14px); }
.kv + .kv { margin-top: 4px; }
.kv .k { color: var(--muted); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .bi { font-size: 2.5rem; color: var(--wood-line); display: block; margin-bottom: 8px; }
.empty .btn .bi { font-size: inherit; color: inherit; display: inline-block; margin-bottom: 0; }  /* (a button's icon stays a button's icon) */
.page-title { font-size: var(--fs-28, 28px); margin: 0; }
.back { font-weight: 700; text-decoration: none; }

/* home: start cards */
.start-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #fff; flex: none;
  border: 2px solid rgba(0, 0, 0, .2);
}
.drop-zone {
  display: flex; align-items: center; gap: 14px; padding: 18px; cursor: var(--cursor-hand, pointer); border-radius: 10px;
  border: 2px dashed var(--wood-line); background: var(--wood-3); color: var(--ink); transition: border-color .15s, background .15s;
}
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.over { border-color: var(--orange-top); outline: none; }
.drop-zone .bi { font-size: 1.8rem; color: var(--orange-top); }

/* ---------- calibration ---------- */
.step-pill { border-radius: 999px; padding: 5px 14px; font-weight: 800; font-size: var(--fs-13, 13px); background: var(--wood-2); color: var(--muted); border: 2px solid var(--wood-line); }
.step-pill.on { border-color: var(--orange-line); }
.step-pill.done { color: var(--live); border-color: #2f6b22; }
.stage-wrap { max-height: 70vh; overflow: auto; border-radius: 8px; background: #000; border: 2px solid #000; }
.stage { position: relative; display: inline-block; vertical-align: top; cursor: crosshair; touch-action: none; user-select: none; }
.stage.fit { display: block; }
.stage img { display: block; width: 100%; }
.box { position: absolute; border: 2px solid; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000; pointer-events: none; }
.box .tag { position: absolute; left: -2px; bottom: 100%; padding: 1px 6px; font-size: var(--fs-11, 11px); font-weight: 800; white-space: nowrap; color: #1a1208; border-radius: 4px 4px 0 0; }
.box.exp { border-color: var(--box-exp); } .box.exp .tag { background: var(--box-exp); }
.box.anchor { border-color: var(--box-anchor); } .box.anchor .tag { background: var(--box-anchor); }
.box.meso { border-color: var(--box-meso); } .box.meso .tag { background: var(--box-meso); }
.box.chat { border-color: var(--box-chat); } .box.chat .tag { background: var(--box-chat); }
/* ---------- public home page ---------- */
.hero { padding: 12px 0 4px; }
.stat.feature { height: 100%; }
.stat.feature p { margin: 8px 0 0; font-size: var(--fs-14, 14px); color: var(--ink-2); }
.site-foot a { color: inherit; }
.made-by { display: inline-block; margin-bottom: 8px; padding: 2px 12px; border-radius: 999px; font-size: var(--fs-12, 12px);
  color: var(--ink-2); background: rgba(43, 33, 25, .7); border: 1px solid var(--wood-line); }
.made-by strong { font-family: var(--font-display); color: var(--orange-top); }

/* ---------- feedback ---------- */
.feedback-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.feedback-kind input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-kind span {
  display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 12px 14px; cursor: var(--cursor-hand, pointer);
  border-radius: 10px; background: var(--wood-2); border: 2px solid var(--wood-line-2); transition: border-color .15s, background .15s;
}
.feedback-kind .bi { grid-row: span 2; font-size: 1.5rem; color: var(--orange-top); }
.feedback-kind strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.feedback-kind small { color: var(--muted); font-size: var(--fs-12, 12px); }
.feedback-kind input:checked + span { border-color: var(--orange-top); }
.feedback-kind input:focus-visible + span { outline: 2px solid var(--orange-top); outline-offset: 2px; }
.feedback-list { display: grid; gap: 10px; max-height: 620px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--wood-line) var(--wood-3); }
.feedback-item { padding: 12px 14px; border-radius: 10px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.feedback-item.new { border-color: var(--orange-top); }
.feedback-item.done { opacity: .7; }
.feedback-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feedback-badge { font-size: var(--fs-11, 11px); font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--wood-3); border: 1px solid var(--wood-line-2); }
.feedback-badge.bug { color: var(--bad); }
.feedback-badge.idea { color: var(--meso); }
.feedback-badge.other { color: var(--loot); }
.feedback-badge.new { border-color: var(--orange-line); }
.feedback-message { margin: 8px 0 0; white-space: pre-wrap; color: var(--ink); }
.feedback-info { margin-top: 6px; font-size: var(--fs-12, 12px); color: var(--muted); }
.feedback-info summary { cursor: var(--cursor-hand, pointer); }
.feedback-info dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 6px 0 0; }
.feedback-info dt { font-weight: 800; text-transform: capitalize; }
.feedback-info dd { margin: 0; word-break: break-word; }
.nav-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: var(--fs-11, 11px); font-weight: 800; color: #fff; background: var(--bad); margin-left: 2px;
}

/* ---------- admin ---------- */
.admin-avatar { width: 24px; height: 24px; border-radius: 50%; vertical-align: -6px; display: inline-grid; place-items: center; font-size: var(--fs-12, 12px); }
.admin-icon { width: 24px; height: 24px; image-rendering: pixelated; vertical-align: -6px; }
.admin-chart { width: 100%; height: 130px; display: block; }
.admin-chart .admin-bar { fill: var(--exp); }
.admin-chart .admin-bar:hover { fill: var(--orange-top); }
.admin-chart .tick { fill: var(--muted); font-size: var(--fs-10, 10px); }
.admin-h { font-family: var(--font-display); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; font-size: var(--fs-13, 13px); }

/* the admin's announcement banner, for everyone */
.announce {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
}
.announce > .bi { font-size: var(--fs-18, 18px); }
.announce-close { margin-left: auto; border: 0; background: none; padding: 2px 6px; border-radius: 8px; }

/* admin: sortable spot table, top finds */
.table-scroll.tall { max-height: 520px; }
.min-w-0 { min-width: 0; }

/* admin: welcome banner and health strip */
.welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 12px;
  background: var(--wood-2); border: 2px solid var(--wood-line);
}
.welcome-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-22, 22px); color: var(--cream); margin: 0; }
.welcome-sub { color: var(--muted); margin: 2px 0 12px; }
.welcome-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.welcome-num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20, 20px); }
.welcome-num small { font-family: var(--font-body); font-size: var(--fs-12, 12px); font-weight: 700; color: var(--muted); }
.health-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.health-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-13, 13px); font-weight: 700;
 background: var(--wood); border: 1px solid var(--wood-line-2);
}
.health-pill.good .bi { color: var(--good); }
.health-pill.warn { color: var(--meso); border-color: var(--orange-line); }
.health-pill.bad { color: var(--bad); border-color: var(--bad); }

/* admin: number cards with an icon, a trend and a little line */
.kpi-card { height: 100%; padding: 14px 16px; border-radius: 12px; background: var(--wood); border: 2px solid var(--wood-line-2); }
.kpi-label { font-size: var(--fs-12, 12px); font-weight: 700; color: var(--muted); margin-top: 10px; }
.welcome .kpi-label { margin-top: 0; }
.kpi-value { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-28, 28px); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 26px; display: block; margin: 4px 0 2px; }

/* admin: usage chart with a switch, reading health gauge */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--wood-3); border: 1px solid var(--wood-line-2); }
.seg button { border: 0; background: none; color: var(--ink-2); font-weight: 800; font-size: var(--fs-13, 13px); padding: 3px 12px; border-radius: 999px; }
.admin-area { width: 100%; height: auto; display: block; }
.admin-area .grid { stroke: var(--wood-line-2); stroke-dasharray: 3 4; }
.admin-area .area { fill: rgba(232, 102, 12, .22); }
.admin-area .line { fill: none; stroke: var(--orange-top); stroke-width: 2.5; stroke-linejoin: round; }
.admin-area .hit { fill: transparent; }
.admin-area .hit:hover { fill: var(--orange-top); }
.admin-area .tick { fill: var(--muted); font-size: var(--fs-11, 11px); }
.gauge { width: 100%; display: block; }
.gauge .track, .gauge .fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.gauge .track { stroke: var(--wood-3); }
.gauge.good .fill { stroke: var(--good); }
.gauge.warn .fill { stroke: var(--meso); }
.gauge.bad .fill { stroke: var(--bad); }
.gauge-num { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-30, 30px); }

/* admin: live session cards, needs attention, top spots */
.live-cards { display: grid; gap: 8px; }
.live-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.live-card .admin-avatar { width: 34px; height: 34px; vertical-align: 0; flex: none; }
.live-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.chip.ok { color: var(--good); }
.live-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.live-side .btn-row { display: flex; gap: 6px; }
/* a live session's tracking health (admin, Live tab): how much is read, not what */
.live-health { padding: 12px; border-radius: 10px; background: var(--wood-3); border: 1px solid var(--wood-line-2); margin-top: -4px; }
.health-verdict { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.health-box { padding: 10px 12px; border-radius: 10px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.health-box h4 { font-size: var(--fs-13, 13px); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 0 0 8px; }
.health-box h4 .bi { color: var(--leaf); margin-right: 6px; }
.health-box .kv { font-size: var(--fs-13, 13px); }
.hbars { display: flex; align-items: flex-end; gap: 2px; height: 40px; margin: 8px 0 2px; }
.hbars span { flex: 1; min-width: 3px; border-radius: 2px 2px 0 0; background: var(--good); }
.hbars span.warn { background: var(--meso); }
.hbars span.bad { background: var(--bad); }
/* live: who and where (character card, map list) */
.game-card { display: grid; border-radius: 12px; overflow: hidden;
  background: var(--wood-2); border: 1px solid var(--wood-line-2); margin-bottom: 8px; }
.game-cell { border-right: 1px solid var(--wood-line-2); min-width: 0; }
.game-cell:last-child { border-right: 0; }
.game-k { font-size: var(--fs-11, 11px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.game-v { font-family: var(--font-display); font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.game-sub { font-size: var(--fs-12, 12px); color: var(--muted); }
.game-level { color: var(--meso); }
.game-pct { color: var(--exp); }
.game-map { display: flex; gap: 10px; align-items: center; }
.minimap-thumb { width: 64px; height: 44px; object-fit: contain; border-radius: 6px; background: var(--wood-3); flex: none; }
.minimap-none { display: inline-grid; place-items: center; color: var(--muted); }
.game-mobs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-13, 13px); }
.map-rows { display: grid; gap: 4px; max-height: 460px; overflow-y: auto; }
.map-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px;
  background: var(--wood-2); border: 1px solid var(--wood-line-2); color: var(--ink); }
.map-row:hover, .map-row.active { border-color: var(--level); }
.map-row-main { flex: 1; min-width: 0; display: grid; }
.map-row-name { font-weight: 800; }
.map-row-sub { font-size: var(--fs-12, 12px); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-row-rate { font-weight: 800; color: var(--good); font-size: var(--fs-13, 13px); flex: none; }

/* a test site (a pull request's preview) */
.test-site-bar { position: sticky; top: 0; z-index: 1000; padding: 6px 12px; text-align: center; font-weight: 800; font-size: var(--fs-13, 13px);
  color: #2b1600; background: repeating-linear-gradient(45deg, #ffb23e 0 14px, #ffd27a 14px 28px); }

/* admin: security checks */
.sec-checks { display: grid; gap: 8px; }
.sec-check { display: flex; gap: 10px; align-items: flex-start; }
.sec-check > .bi { font-size: var(--fs-18, 18px); line-height: 1.3; flex: none; }
.attention { display: grid; gap: 6px; }
.attention-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none;
  background: var(--wood-2); border: 1px solid var(--wood-line-2);
}
.attention-row:hover { color: var(--ink); border-color: var(--wood-line); }
.attention-row .bi { color: var(--leaf); }
.attention-row b { margin-left: auto; font-size: var(--fs-16, 16px); }
.funnel { display: grid; gap: 12px; }
@media (max-width: 575px) {
  .welcome { padding: 14px 16px; }
  .live-card { flex-wrap: wrap; }
  .live-side { flex-direction: row; width: 100%; justify-content: space-between; }
}

/* ---------- guide ---------- */
.box.popout { border-color: var(--live); border-style: dashed; } .box.popout .tag { background: var(--live); }
.guide-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: var(--fs-15, 15px); color: var(--ink-2); }
.guide-checks li { display: flex; gap: 10px; align-items: flex-start; }
.guide-checks .bi { color: var(--orange-top); font-size: 1.2rem; line-height: 1.3; }
/* the Leagues page for visitors (pages/league.html): the six leagues, each with its ore or gem from the game */
.league-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; color: var(--ink); }
.league-tiers li { display: flex; align-items: center; gap: 8px; }
.league-tiers img { image-rendering: pixelated; }
kbd { background: var(--wood-2); border: 1px solid var(--wood-line); color: var(--ink); }
.loot-lines { margin: 4px 0 0; padding-left: 18px; font-size: var(--fs-13, 13px); color: var(--ink-2); }

/* ---------- loot ---------- */
.loot-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.loot-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px; background: var(--wood-2); border: 1px solid var(--wood-line-2);
}
.loot-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.loot-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loot-meta { font-size: var(--fs-12, 12px); color: var(--muted); }
.loot-price { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-18, 18px); text-align: right; }
.loot-list.tall { max-height: none; }
.loot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.not-mine { --bs-btn-padding-y: .1rem; --bs-btn-padding-x: .55rem; --bs-btn-font-size: var(--fs-11, 11px); opacity: .75; }
.not-mine:hover { opacity: 1; --bs-btn-hover-color: #ff9a8f; }
/* the game's item icon in an inventory-style slot */
.item-slot {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 6px;
 border: 2px solid #1d1d20;
}
.item-slot img { max-width: 34px; max-height: 34px; image-rendering: pixelated; }
.item-slot.sm { width: 34px; height: 34px; }
.item-slot.sm img { max-width: 28px; max-height: 28px; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 2px; }
.stat-chip {
  font-size: var(--fs-11, 11px); font-weight: 800; padding: 1px 7px; border-radius: 999px;
  color: #d8f5a2; background: rgba(184, 224, 28, .12); border: 1px solid rgba(184, 224, 28, .3);
}
.loot-meta a { color: var(--orange-top); }
.credit { font-size: var(--fs-12, 12px); color: var(--muted); }
.read-preview { border-radius: 6px; background: #000; max-width: 100%; image-rendering: pixelated; border: 2px solid var(--wood-line); }
.text-success { color: var(--live) !important; }
.text-danger { color: var(--bad) !important; }
.text-warning { color: var(--meso) !important; }

/* ---------- live ---------- */
.preview video { width: 100%; border-radius: 8px; background: #000; display: block; border: 2px solid #000; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; min-height: 220px; }
.chart svg { display: block; overflow: visible; font-family: var(--font-body); }
.chart .grid { stroke-width: 1; }
.chart .axis { stroke: var(--wood-line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: var(--fs-12, 12px); font-weight: 700; }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
/* the ghost (members): your best session on this map, dotted, to race against */
.chart .ghost { fill: none; stroke: #b48cff; stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .9; }
.chart-legend .ghost-key { display: inline-block; width: 22px; vertical-align: middle; border-top: 2px dotted #b48cff; margin-right: 4px; }
.chart-legend .ahead { color: #3f9a2c; }
.chart-legend .behind { color: #d0453a; }
.chart .area { fill: var(--series); opacity: .14; }
.chart .ev-label { fill: var(--ink); font-size: var(--fs-12, 12px); font-weight: 800; }
.chart .ev-up { fill: var(--good); stroke: var(--wood); stroke-width: 2; }
.chart .ev-down { stroke: var(--bad); stroke-width: 3; stroke-linecap: round; }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--series); stroke: var(--wood); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.tip {
  position: absolute; pointer-events: none; z-index: 2; padding: 8px 12px; font-size: var(--fs-13, 13px); line-height: 1.5; white-space: nowrap;
  background: var(--wood-3); color: var(--ink); border: 2px solid var(--wood-line); border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}
.tip .k { color: var(--muted); }

/* ---------- pop-out window ---------- */
.pip-body { min-height: 100vh; margin: 0; }
.pip { min-height: 100vh; display: flex; flex-direction: column; background: var(--wood); border: 2px solid var(--wood-line); }
.lv-badge { font-family: var(--font-display); font-size: var(--fs-12, 12px); white-space: nowrap; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: 2px;
  color: #1f1812; }

/* ---------- what's new: the newest update big, older ones as rows that open ---------- */
.updates { display: flex; flex-direction: column; gap: 12px; }  /* (as wide as the rest of the page, lined up with the menu) */
.update-latest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-color: var(--gold); }
.update-pic { display: flex; align-items: center; justify-content: center; padding: 18px; }
.update-pic img { width: 100%; height: auto; border-radius: 8px; display: block; }
.update-pic[data-showcase] img { max-width: 380px; border-radius: 0; }  /* (the pop-out picture: its own round corners) */
.update-main { padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; }
.update-when { font-size: var(--fs-12, 12px); font-weight: 800; }
.update-title { font-family: var(--font-display); font-size: var(--fs-22, 22px); font-weight: 700; margin: 2px 0 10px; }
.update-row + .update-row { border-top: 1px solid var(--wood-line-2); }
.update-row summary { display: flex; align-items: center; gap: 10px; padding: 11px 16px; cursor: var(--cursor-hand, pointer); list-style: none; }
.update-row summary::-webkit-details-marker { display: none; }
.update-row summary::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: var(--fs-12, 12px); color: var(--muted); transition: transform .15s; }
.update-row[open] summary::before { transform: rotate(90deg); }
.update-row summary:hover { background: var(--wood-2); }
.update-row-name { font-weight: 800; color: var(--ink); }
.update-row-meta { margin-left: auto; font-size: var(--fs-12, 12px); color: var(--muted); white-space: nowrap; }
.update-row .update-list { padding: 0 16px 14px 38px; }
@media (max-width: 767.98px) { .update-latest { grid-template-columns: 1fr; } }
.update-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.update-list li { display: flex; align-items: baseline; gap: 10px; line-height: 1.5; }
.tag { flex: none; min-width: 74px; text-align: center; font-size: var(--fs-11, 11px); font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.new-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-left: 2px; }
.new-dot[hidden] { display: none; }

/* ---------- flat look: solid colours, no gradients, glows or drop shadows (kept last, so it wins) ---------- */
.window { box-shadow: none; border-radius: 10px; }
.window-title { box-shadow: none; }
.btn, .btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-discord { background-image: none; box-shadow: none; text-shadow: none; }
.btn-success { --bs-btn-bg: #3f9e2a; --bs-btn-hover-bg: #48b031; }
.btn-danger { --bs-btn-bg: #c9302c; --bs-btn-hover-bg: #d93c37; }
.btn-warning { --bs-btn-bg: #c99a14; --bs-btn-hover-bg: #d9a91c; }
.btn-info { --bs-btn-bg: #3a6fd8; --bs-btn-hover-bg: #4a7fe6; }
.tab.active, .seg button.active, .step-pill.on, .feedback-badge.new {
 text-shadow: none; }
.lv-badge { background: var(--orange-top); }
.rank, .start-icon, .session-icon { box-shadow: none; }
.rank.r1 { background: #f4c430; }
.rank.r2 { background: #c7ccd4; }
.rank.r3 { background: #d58a4a; }
.rank.live, .start-icon.live, .session-icon.live { background: #3f9e2a; }
.rank.rec, .start-icon.rec, .session-icon.rec { background: #5a78d6; }
.loot-icon.equip { background: #5a78d6; }
.loot-icon.scroll { background: #e8660c; }
.loot-icon.use { background: #d6336c; }
.loot-icon.etc { background: #5c940d; }
.loot-icon.setup { background: #1098ad; }
.loot-icon.cash { background: #7048e8; }
.item-slot { background: #3a3a40; box-shadow: none; }
.expbar { box-shadow: none; }
.expbar-fill { box-shadow: none; }
.progress { box-shadow: none; }
.progress-bar { background: var(--exp); }
.map-bar span { background: var(--exp); }
.form-range::-webkit-slider-thumb { background: var(--orange-bottom); }
.announce, .welcome { box-shadow: none; }

/* ---------- menu: an icon above each label, on one row with the logo ---------- */
.site-header { flex-wrap: nowrap; padding-top: 18px; }
.tabs { gap: 2px; align-items: center; flex-wrap: nowrap; }
.tab {
  position: relative; flex-direction: column; gap: 2px; padding: 6px 9px; border-radius: 10px; border: 0;
  background: transparent; color: var(--muted); font-size: var(--fs-11, 11px); font-weight: 700; white-space: nowrap;
}
.tab .bi { font-size: var(--fs-19, 19px); line-height: 1; }
.tab:hover { color: var(--cream); background: rgba(43, 33, 25, .6); }
.tab.kofi, .tab.kofi:hover { color: #ff9ac3; background: transparent; }
.tab.kofi:hover { background: rgba(43, 33, 25, .6); }
.tab .live-dot, .tab .nav-count, .tab .new-dot { position: absolute; top: 3px; right: 8px; margin: 0; }
.tab .nav-count { min-width: 16px; line-height: 16px; font-size: var(--fs-10, 10px); padding: 0 4px; }
.tabs .user-chip { margin-left: 8px; }
.tabs .btn-discord { margin-left: 8px; }
@media (max-width: 991.98px) {  /* not enough room next to the logo: the menu goes under it and scrolls sideways */
  .site-header { flex-wrap: wrap; }
  .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tabs::-webkit-scrollbar { display: none; }
}

/* ---------- cream panels on the night sky: inside every panel the colours turn light, text dark ----------
   (the sky, header, menu and footer keep the night colours; panels re-define the same colour names) */
.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 {
 --level: #6a52d9; --loot: #2f6fd6;
  --total: #c2367a; --gold: #a07a12; --bad: #d23b2e;
  --bs-body-color: var(--ink); --bs-heading-color: var(--ink-strong); --bs-emphasis-color: var(--ink-strong);
  --bs-secondary-color: var(--muted);
  color: var(--ink);
}
.window { border-color: #7a4f2a; }
.window-title { --cream: #fbe9cc; color: #fbe9cc; }
.window h1, .window h2, .window h3, .window .h4, .window strong, .window b { color: var(--ink-strong); }
.stat .value, .map-rate, .feed-name, .welcome-num, .kpi-value, .gauge-num, .loot-price, .update-title, .announce-close:hover { color: var(--ink-strong); }
.window .table { --bs-table-color: var(--ink); }
.chart .grid { stroke: rgba(122, 79, 42, .14); }
.expbar-fill { background: #9bd12e; }
.expbar.meso .expbar-fill { background: #ffb23e; }
.form-check-input { background-color: #fff; border-color: var(--wood-line); }
.window-title { background: #7a4f2a; }
.tab.active { background: #fff8ec; color: #e8660c; }
.tab-ach.active .bi { color: inherit; filter: none; }  /* (gold on the active tab would disappear) */
.window, .stat, .game-card, .announce, .welcome, .kpi-card, .health-pill { --cream: var(--ink-strong); }
.window .btn-wood, .window .btn-outline-secondary, .window .btn-outline-danger {
  --bs-btn-hover-color: var(--ink-strong); --bs-btn-hover-bg: #f4e8d4; --bs-btn-hover-border-color: #c89a6a;
  --bs-btn-active-color: var(--ink-strong); --bs-btn-active-bg: #eedfc6; --bs-btn-active-border-color: #c89a6a; }
.tag.new { background: #dcefc4; color: #2f5a0a; }
.tag.better { background: #d6e6f8; color: #0c447c; }
.tag.fix { background: #f8dcd9; color: #8a1f1f; }
.alert-success .bi { color: #2f9a1f; }
.alert-info .bi, .alert-primary .bi { color: #2f6fd6; }
.alert-warning { color: #3b2a1a; }
.alert-danger { background: #fdecea; color: #5a1410; border-color: #c9302c; }

/* ---------- sunset sky: warm dusk behind the cream panels (purple at the top, rose, then orange at the horizon) ---------- */
body { background: linear-gradient(180deg, #2e2350 0%, #5a3466 30%, #a8506a 62%, #e8925a 100%) fixed; }
.cloud { background: rgba(255, 196, 170, .16); }
.hills {
  background:
    radial-gradient(120% 140px at 20% 100%, #4a2f3a 60%, transparent 61%),
    radial-gradient(90% 120px at 85% 100%, #3a2430 60%, transparent 61%);
}
.site-foot { color: rgba(255, 240, 225, .85); }
.pip-body { background: #2e2350; }

/* ---------- live page: the character / map / party card, and the live board pill ---------- */
.game-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, .8fr); }
@media (max-width: 767.98px) { .game-card { grid-template-columns: 1fr; } .game-cell { border-right: 0; border-bottom: 1px solid var(--wood-line-2); } }
.game-cell { padding: 12px 16px; }
.game-k { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.game-v { font-size: var(--fs-19, 19px); line-height: 1.25; }
.game-reading { font-family: var(--font-body); font-size: var(--fs-14, 14px); font-weight: 700; color: var(--muted); }
.game-read { white-space: nowrap; font-size: var(--fs-10_5, 10.5px); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); opacity: .85; }
.edit-btn { border: 0; background: none; padding: 0 2px; line-height: 1; font-size: var(--fs-12, 12px); color: var(--muted); cursor: var(--cursor-hand, pointer); }
.edit-btn:hover { color: #c45a08; }
.game-party .party-select { width: 100%; min-width: 0; margin-top: 4px; }
.game-mobs { grid-column: 1 / -1; margin: 0; padding: 9px 16px; border-top: 1px solid var(--wood-line-2); background: #fbf2e2; }
.game-mobs .game-k { margin: 0 4px 0 0; }
.mob-chip { font-size: var(--fs-12, 12px); font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--wood-line-2); border-radius: 999px; padding: 1px 10px; }
.mob-chip b { color: var(--muted); font-weight: 800; margin-left: 2px; }
.stat .pace { font-size: var(--fs-12, 12px); margin-top: 3px; color: var(--muted); }
.stat .pace.up { color: #3f9a2c; }
.stat .pace.down { color: #d0453a; }
.board-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; font-size: var(--fs-13, 13px); font-weight: 800;
 border: 2px solid rgba(246, 227, 210, .35); cursor: var(--cursor-hand, pointer); }

/* the one-time question: show yourself on the live board? */
.board-ask { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px;
 border: 2px solid #f4c430; }
.board-ask > .bi { font-size: var(--fs-26, 26px); color: #c99a14; }
.board-ask-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; }
.board-ask-text strong { font-family: var(--font-display); font-size: var(--fs-17, 17px); }
.board-ask-text span { font-size: var(--fs-13, 13px); }
.board-ask-btns { display: flex; gap: 8px; }
/* wood buttons straight on the sky (next to a page's title): the cream pill of the panels, not a dark plank */
#view .btn-wood:not(:is(.window, .stat, .game-card, .announce, .welcome, .kpi-card, .bu-sec, .prof-panel, .pcard, .hp-card,
  .gd-card, .rk-card, .rk-you, .gl-hero, .live-goal, .support-card, .spots-lock-card, .modal, .rk-stage) .btn-wood) {
  --bs-btn-color: #6b5236; --bs-btn-bg: #fff8ec; --bs-btn-border-color: #c89a6a;
  --bs-btn-hover-color: #2b1a0c; --bs-btn-hover-bg: #ffffff; --bs-btn-hover-border-color: #b4500a;
  --bs-btn-active-color: #2b1a0c; --bs-btn-active-bg: #eedfc6; --bs-btn-active-border-color: #b4500a;
  box-shadow: 0 3px 10px rgba(43, 26, 12, .18); }
.board-ask .btn-wood { --bs-btn-color: #6b5236; --bs-btn-bg: #fff; --bs-btn-border-color: #c89a6a; --bs-btn-hover-bg: #f4e8d4; --bs-btn-hover-color: #2b1a0c; }
#board-ask:empty { display: none; }

/* the announcement banner on the cream look: never stretches the page, readable in both kinds */
.announce-wrap { flex: none; padding-top: 4px; padding-bottom: 0; }
.announce { font-weight: 700; }
.announce > .bi { color: #c06a00; }
.announce.warning > .bi { color: #b06d00; }
.announce-close { color: #9a7b58; }
.announce-close:hover { color: #2b1a0c; background: #f4e8d4; }

/* ---------- Report a bug: a button always in reach in the app ---------- */
.fb-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1030; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-weight: 800; font-size: var(--fs-14, 14px); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fb-fab .bi { font-size: var(--fs-16, 16px); }
.fb-fab:hover, .fb-fab:focus-visible { transform: translateY(-2px); }
.fb-fab[hidden] { display: none; }
@media (max-width: 599.98px) {
  .fb-fab { right: 12px; bottom: 12px; padding: 0; width: 46px; height: 46px; justify-content: center; }
  .fb-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fb-fab .bi { font-size: var(--fs-19, 19px); }
}
.site-foot { padding-bottom: 72px; } /* (room for the button at the very bottom of the page) */

/* ---------- Halloween (data-season="halloween" on the page, see web.py; drawn by scenery.js) ---------- */
html[data-season="halloween"] body {
  background: linear-gradient(180deg, #0f0820 0%, #22103a 34%, #45194d 64%, #a8401a 100%) fixed;
}
html[data-season="halloween"] .cloud { background: rgba(150, 120, 195, .13); }
html[data-season="halloween"] .star { background: #fff3c4; }
html[data-season="halloween"] .hills {
  background:
    radial-gradient(120% 140px at 20% 100%, #1d1028 60%, transparent 61%),
    radial-gradient(90% 120px at 85% 100%, #140b1d 60%, transparent 61%);
}
html[data-season="halloween"] .window-title { background: linear-gradient(#5a2a78, #3a1a52); border-bottom-color: #2a1240; }
html[data-season="halloween"] .window-name .bi { color: #ff9f2e; }
html[data-season="halloween"] .brand-leaf { fill: #ff8c1a; filter: drop-shadow(0 0 8px rgba(255, 140, 26, .55)); }
html[data-season="halloween"] .fb-fab { border-color: #f08c00; }
.moon {
  position: absolute; top: 7%; right: 8%; width: 110px; height: 110px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 38%, rgba(214, 186, 120, .55) 0 9px, transparent 10px),
    radial-gradient(circle at 62% 64%, rgba(214, 186, 120, .45) 0 13px, transparent 14px),
    radial-gradient(circle at 68% 30%, rgba(214, 186, 120, .4) 0 6px, transparent 7px),
    radial-gradient(circle at 40% 40%, #fff8dc, #f6e1a4 60%, #e4c068);
  box-shadow: 0 0 50px 14px rgba(255, 222, 150, .28), 0 0 140px 40px rgba(255, 170, 90, .12);
}
@media (max-width: 599.98px) { .moon { width: 64px; height: 64px; top: 4%; right: 6%; } }
.pumpkins { position: fixed; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; pointer-events: none; }
.pumpkin { position: absolute; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.pumpkin .carve { animation: flicker var(--flicker) ease-in-out infinite; filter: drop-shadow(0 0 3px #ffb52e); }
@keyframes flicker { 0%, 100% { opacity: 1; } 40% { opacity: .7; } 55% { opacity: .95; } 70% { opacity: .6; } }
.witch-hat { transform-origin: 20px 6px; }
.mob.zombie .art { animation: shamble 1.4s ease-in-out infinite; }
.mob.zombie.small .art { width: 28px; height: 28px; }
.mob.stump .art { animation: waddle .9s ease-in-out infinite; }
.mob.pig .art { animation: trot .45s ease-in-out infinite; }
.mob.pig.small .art { width: 32px; height: 28px; }
@keyframes shamble { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-2px); } }
@keyframes waddle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-2px); } }
@keyframes trot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.spooks { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.wraith { position: absolute; left: 0; bottom: var(--y); opacity: .9; animation: haunt var(--dur) ease-in-out var(--delay) infinite; }
.wraith-face { animation: hover-bob var(--bob) ease-in-out infinite, turn var(--dur) steps(1, end) var(--delay) infinite; }
.wraith svg { display: block; overflow: visible; }
.wraith .lantern { filter: drop-shadow(0 0 5px #ffd23f); animation: flicker 2.2s ease-in-out infinite; }
@keyframes haunt { 0%, 100% { transform: translateX(-8vw); } 50% { transform: translateX(102vw); } }
@keyframes hover-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.stirge { position: absolute; left: 0; top: var(--y); animation: fly var(--dur) linear var(--delay) infinite; }
.stirge-bob { scale: var(--size); animation: hover-bob 1.4s ease-in-out infinite; }
.stirge svg { display: block; overflow: visible; }
.stirge .wing { transform-box: fill-box; animation: flap var(--flap) ease-in-out infinite alternate; }
.stirge .wing:first-child { transform-origin: 100% 60%; }
.stirge .wing:nth-child(2) { transform-origin: 0% 60%; }
@keyframes fly { 0% { transform: translateX(-60px); } 50%, 100% { transform: translateX(calc(100vw + 60px)); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.25); } }
@media (prefers-reduced-motion: reduce) {
  .pumpkin .carve, .wraith, .stirge { animation: none !important; }
}

/* ---------- support: the heart on the board, the Support page and the pop-up ---------- */
.chip.supporter { color: #fff; background: #e0457b; border-color: #b02a5c; padding: 0 6px; }
.chip.supporter .bi { font-size: var(--fs-10, 10px); }
/* Tracker Plus (monthly members) on the live board: a gold tag, and the name in gold */
.chip.plus { color: #3b2a1a; background: linear-gradient(135deg, #ffe08a, #f4b73a); border-color: #c98a1a; padding: 0 6px; font-weight: 700; }
.chip.plus .bi { font-size: var(--fs-9, 9px); }
.plus-name { background: linear-gradient(90deg, #e9a21c, #ffcf4d 50%, #e9a21c); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none; }
.btn-supporter { --bs-btn-color: #fff; --bs-btn-bg: #e0457b; --bs-btn-border-color: #b02a5c; --bs-btn-hover-bg: #c93a6b; --bs-btn-hover-color: #fff; }
.text-heart { color: #e0457b; }
.support-pop { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px;
  background: rgba(15, 8, 32, .62); animation: pop-fade .2s ease-out; }
.support-card { position: relative; width: min(420px, 100%); padding: 28px 26px 22px; border-radius: 18px; text-align: center;
  background: #fff8ec; border: 3px solid #7a4f2a; color: #3b2a1a; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  animation: pop-in .25s cubic-bezier(.2, 1.4, .4, 1); }
.support-card h2 { color: #2b1a0c; font-size: var(--fs-24, 24px); margin: 6px 0 10px; }
.support-card p { font-size: var(--fs-15, 15px); color: #5a4330; margin-bottom: 10px; }
.support-hero { width: 64px; height: 64px; margin: -60px auto 0; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(#ff7aa8, #e0457b); border: 3px solid #fff8ec; color: #fff; font-size: var(--fs-28, 28px);
  box-shadow: 0 6px 16px rgba(224, 69, 123, .45); animation: beat 1.6s ease-in-out infinite; }
.support-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.support-btns .btn-wood { --bs-btn-color: #6b5236; --bs-btn-bg: #fff; --bs-btn-border-color: #c89a6a; --bs-btn-hover-bg: #f4e8d4; --bs-btn-hover-color: #2b1a0c; }
.support-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: #9a7b58; font-size: var(--fs-18, 18px); }
.support-x:hover { color: #2b1a0c; }
@keyframes pop-fade { from { opacity: 0; } }
@keyframes pop-in { from { transform: scale(.85); opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .support-pop, .support-card, .support-hero { animation: none; } }
.support-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding: 10px 14px;
  border-radius: 12px; background: #fff; border: 2px dashed #e0457b; }
.support-code-v { font-family: var(--font-display); font-size: var(--fs-26, 26px); font-weight: 700; color: #2b1a0c; letter-spacing: .08em; user-select: all; }
.kofi-msg { max-width: 280px; font-size: var(--fs-13, 13px); color: var(--ink-2); }
/* supporters: a heart on their own picture, top right of the menu */
.user-avatar { position: relative; display: inline-flex; flex: none; }
.user-heart { position: absolute; right: -4px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  background: #e0457b; border: 2px solid var(--wood-2); color: #fff; font-size: var(--fs-7, 7px); line-height: 1; }

/* ---------- top training spots (supporters) ---------- */
.supporter-tag { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 8px; padding: 2px 10px;
  border-radius: 999px; font-family: var(--font-body); font-size: var(--fs-12, 12px); font-weight: 800; color: #fff; background: #e0457b; }
.spot-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 12px; }
.spot-level { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.spot-stepper { display: inline-flex; align-items: center; gap: 4px; }
.spot-stepper input { width: 64px; text-align: center; }
.spot-list { display: grid; gap: 8px; }
.spot-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px 14px;
  padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--wood-line-2); }
.spot-row.top { border-color: #e7c66a; background: #fffaf0; }
.spot-minimap { width: 74px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--wood-line-2); background: #f4ead8; }
.spot-minimap.minimap-none { display: grid; place-items: center; color: var(--muted); }
.spot-name { font-family: var(--font-display); font-size: var(--fs-17, 17px); font-weight: 700; color: #2b1a0c; line-height: 1.2; }
.spot-street { font-size: var(--fs-12, 12px); color: var(--muted); font-weight: 700; }
.spot-mobs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.spot-rates { text-align: right; }
.spot-exp { font-family: var(--font-display); font-size: var(--fs-20, 20px); font-weight: 700; color: #4a7a12; line-height: 1.1; }
.spot-exp span, .spot-meso span { font-family: var(--font-body); font-size: var(--fs-11, 11px); font-weight: 800; color: var(--muted); }
.spot-top { font-size: var(--fs-11, 11px); font-weight: 800; color: #8a6a1a; }
.spot-meso { font-weight: 800; color: #b06d00; }
.spot-who { font-size: var(--fs-13, 13px); font-weight: 800; color: var(--ink-2); text-align: right; white-space: nowrap; }
.spot-who span { font-size: var(--fs-11, 11px); color: var(--muted); }
@media (max-width: 767.98px) {
  .spot-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .spot-row .spot-minimap, .spot-who { display: none; }
}
.spot-class { flex-wrap: wrap; }
.spot-class-you { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: #4a7a12;
  vertical-align: middle; box-shadow: 0 0 0 2px #fff; }
.mob-tip { position: relative; }
.mob-tip:focus-visible { outline: 2px solid #c45a08; outline-offset: 1px; }
.mob-card { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 20; min-width: 170px; padding: 9px 12px;
  transform: translateX(-50%) translateY(4px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s, transform .12s;
  border-radius: 10px; background: #2b1a0c; color: #fbe9cc; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); text-align: left; white-space: nowrap; }
.mob-card::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #2b1a0c; }
.mob-tip:hover .mob-card, .mob-tip:focus .mob-card { opacity: 1; visibility: visible; transform: translateX(-50%); }
.mob-card-name { display: block; font-family: var(--font-display); font-size: var(--fs-14, 14px); margin-bottom: 4px; color: #fff; }
.mob-card-row { display: flex; justify-content: space-between; gap: 14px; font-size: var(--fs-12, 12px); font-weight: 700; color: #d9c3a0; }
.mob-card-row b { color: #fff; font-weight: 800; }

/* ---------- the game's own mouse cursor (exported from the game by tools/build_cursor.py) ----------
   The plain hand everywhere, the hand with a mouse over things you can click, and the usual text cursor where you
   type. The numbers are the click point (the fingertip), from the game files. */
html { cursor: url("/static/ui/cursor.png") 0 3, auto; --cursor-hand: url("/static/ui/cursor-click.png") 4 4, pointer; }
/* (over something you can click the game swaps two pictures, its mouse button red and not; scenery.js sets .cursor-frame2) */
html.cursor-frame2 { --cursor-hand: url("/static/ui/cursor-click-2.png") 3 6, pointer; }
a, button, summary, select, label, [role="button"], [role="switch"], .btn, .tab, .mob-tip, .form-check-input, input[type="checkbox"], input[type="radio"], input[type="range"], input[type="file"], button:not(:disabled), [type="button"]:not(:disabled), [type="submit"]:not(:disabled), [type="reset"]:not(:disabled) {
  cursor: var(--cursor-hand, pointer);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]), textarea { cursor: text; }
button:disabled, .btn.disabled, .btn:disabled { cursor: url("/static/ui/cursor.png") 0 3, not-allowed; }
/* ... and the hand pressing while the mouse button is held down (scenery.js sets .pressing), like in the game */
html.pressing {
  cursor: url("/static/ui/cursor-press.png") 4 1, auto !important;
}

/* Support page: what supporters get, and how */
.perks { display: grid; gap: 10px; }
.perk { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--wood-line-2); }
.perk:first-child { border-color: #e7c66a; background: #fffaf0; }
.perk-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(#ff7aa8, #e0457b); font-size: var(--fs-16, 16px); }
.perk:first-child .perk-icon { background: linear-gradient(#ffd25a, #e8960c); }
.perk-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-17, 17px); color: #2b1a0c; }
.perk-title a { color: inherit; }
.perk-text { font-size: var(--fs-14, 14px); color: var(--ink-2); }
.support-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
.support-steps li { counter-increment: step; }
.support-steps li > span { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.support-steps li > span::before { content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--fs-13, 13px); color: #fff; background: #e0457b; }
.support-steps .support-code { margin: 0; }
.support-thanks-big { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; padding: 14px; border-radius: 12px; background: #fde4ee; color: #8a1f48; }
.support-thanks-big > .bi { font-size: var(--fs-30, 30px); color: #e0457b; }
.support-thanks-big strong { display: block; font-family: var(--font-display); font-size: var(--fs-18, 18px); color: #6b1236; }
.support-thanks-big span { font-size: var(--fs-14, 14px); }

/* ---------- supporter extras: your week, your records, compare ---------- */
.supporter-tag.sm { margin: 0; padding: 1px 7px; font-size: var(--fs-10, 10px); }
.chip.record { color: #6b4b00; background: #ffe9a8; border-color: #e7c66a; }
.wk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wk-tile { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--wood-line-2); }
.wk-k { font-size: var(--fs-11, 11px); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.wk-v { font-family: var(--font-display); font-size: var(--fs-24, 24px); font-weight: 700; color: #2b1a0c; line-height: 1.15; }
.wk-delta { font-size: var(--fs-12, 12px); font-weight: 800; color: var(--muted); }
.wk-delta.up { color: #2f8a1c; }
.wk-delta.down { color: #c0392b; }
.wk-best { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: #fff8e1;
  border: 1px solid #e7c66a; color: #3b2a1a; text-decoration: none; font-size: var(--fs-14, 14px); }
.wk-best .bi { color: #c99a14; }
.rec-list { display: grid; gap: 6px; }
.rec-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px;
  background: #fff; border: 1px solid var(--wood-line-2); color: inherit; text-decoration: none; }
.rec-row:hover { border-color: #e7c66a; }
.rec-name { font-weight: 800; color: #2b1a0c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-name span { display: block; font-size: var(--fs-12, 12px); font-weight: 700; color: var(--muted); }
.rec-rate { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-17, 17px); color: #4a7a12; }
.rec-rate span { font-family: var(--font-body); font-size: var(--fs-11, 11px); color: var(--muted); }
.rec-k { font-size: var(--fs-12, 12px); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lv-recs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lv-rec { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: #fff;
  border: 1px solid var(--wood-line-2); color: #4a7a12; font-weight: 800; font-size: var(--fs-13, 13px); text-decoration: none; }
.lv-rec span { padding: 1px 7px; border-radius: 999px; background: #f4c430; color: #3b2a1a; font-size: var(--fs-11, 11px); }
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.teaser { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px dashed #d9b8c6; }
.teaser .perk-title { font-size: var(--fs-15, 15px); }
.teaser .perk-text { font-size: var(--fs-13, 13px); }
.teaser-lock { font-size: var(--fs-12, 12px); color: #e0457b; }
.session-scroll.picking .session-item { outline: 2px dashed #c9a27a; outline-offset: -2px; }
.session-scroll.picking .session-item.picked { outline: 3px solid #e0457b; background: #fdeef4; }
.compare-bar { position: fixed; left: 50%; bottom: 20px; z-index: 1040; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 16px; border-radius: 999px; background: #2b1a0c; color: #fbe9cc; font-weight: 800; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.compare-bar[hidden] { display: none; }
.cmp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.cmp-dot.a { background: #e8660c; }
.cmp-dot.b { background: #3a6fd8; }
.cmp-chart { width: 100%; height: auto; display: block; }
.cmp-axis { stroke: var(--wood-line-2); stroke-width: 1.5; }
.cmp-label { font-size: var(--fs-11, 11px); font-weight: 700; fill: var(--muted); }
.cmp-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.cmp-line.a { stroke: #e8660c; }
.cmp-line.b { stroke: #3a6fd8; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: var(--fs-13, 13px); font-weight: 800; color: var(--ink-2); }
.spot-maps tr.counted td { background: #f0faea; }
.stat-locked { display: block; text-decoration: none; color: inherit; }
.stat-locked .value.off .bi { color: #e0457b; }
.stat-locked:hover { outline: 2px solid #e0457b; outline-offset: -2px; }
/* monthly members */
.perks-k { margin: 16px 0 8px; font-size: var(--fs-12, 12px); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #8a5a00; }
.perks-k .bi { color: #e8960c; }
.perk.member { border-color: #e7c66a; background: #fffaf0; }
.perk.member .perk-icon { background: linear-gradient(#ffd25a, #e8960c); }
.support-thanks-big.member { background: #fff4d6; color: #6b4b00; }
.support-thanks-big.member > .bi { color: #e8960c; }
.support-thanks-big.member strong { color: #4a3300; }
/* pop-out: the members-only bar */
.btn-member { --bs-btn-color: #4a3300; --bs-btn-bg: #ffd25a; --bs-btn-border-color: #c99a14; --bs-btn-hover-bg: #f4c430; --bs-btn-hover-color: #2b1a0c; }
/* the Discord server: a round icon at the end of the menu (opens in a new tab, so tracking keeps running) */
.tab.discord-tab { justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; margin-left: 4px; border-radius: 50%;
  color: #fff; background: #5865f2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 0 rgba(0, 0, 0, .3); }
.tab.discord-tab:hover { color: #fff; background: #4752c4; }
.tab.discord-tab .bi { font-size: var(--fs-18, 18px); }
/* the live board: how many are tracking right now, also the players who keep the board off (a number only) */
.board-private { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 14px; font-size: var(--fs-13, 13px);
  border-bottom: 1px solid var(--wood-line); color: var(--ink-2); }
.board-private strong { color: var(--ink); }
/* Support page: the player's Discord email is linked (Ko-fi payments with it find them by themselves) */
.email-linked { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; padding: 8px 12px; border-radius: 10px;
  background: #e8f5e3; color: #24501c; font-size: var(--fs-13, 13px); font-weight: 700; }
.email-linked .bi { color: #3f8f2a; font-size: var(--fs-16, 16px); line-height: 1.2; }
.support-other summary { cursor: var(--cursor-hand, pointer); color: var(--ink-2); font-weight: 700; }
/* the supporter extras teaser: the members' extras in gold, in the same columns as the supporters' ones above */
.teaser-grid.members { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.teaser.member { border-color: #e7c66a; background: #fffaf0; }
.teaser.member .perk-icon { background: linear-gradient(#ffd25a, #e8960c); }
.teaser.member .teaser-lock { color: #e8960c; }
.teaser-free { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: var(--fs-11, 11px); font-weight: 800;
  color: #fff; background: #3f8f2a; vertical-align: 2px; }

/* The live page's help when the EXP isn't read: what the tracker gets of the game (app.js, readHelp) */
.read-help-pics { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.read-help-pics figure { margin: 0; min-width: 0; }
.read-help-pics img { display: block; max-width: 100%; border: 1px solid var(--wood-line-2); border-radius: 6px; background: #000; }
#rh-exp { width: 402px; image-rendering: pixelated; }  /* (twice its size: it's small) */
#rh-overview { width: 240px; }
.read-help-pics figcaption { font-size: .78rem; opacity: .8; margin-top: 4px; }

/* The admin's answer under a feedback message (the player's Feedback page and the admin's Feedback tab) */
.feedback-reply { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--orange-top); border-radius: 6px; background: var(--wood-3); }
.feedback-reply.fresh { box-shadow: 0 0 0 1px var(--orange-top); }
.feedback-reply-head { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; margin-bottom: 4px; }
.feedback-answer summary { cursor: var(--cursor-hand, pointer); font-size: .85rem; margin-top: 6px; }
.fb-fab .new-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border: 2px solid #fff; margin: 0; }

/* The admin's Live tab: filters, and everyone running fine as compact table rows */
.live-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.live-filters input { max-width: 220px; }
.live-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.live-filter-chips .chip { cursor: var(--cursor-hand, pointer); border: 1px solid var(--wood-line-2); }
.live-filter-chips .chip.on { outline: 2px solid var(--orange-top); }
.live-table td.live-who { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.live-table .admin-avatar { width: 24px; height: 24px; flex: none; }
.live-table .live-extras i { margin-right: 6px; }
.live-table .btn-sm { padding: 1px 7px; }
.live-table tr.live-health-row td { padding: 0 0 8px; border: 0; }

/* The admin's graphs (lineChart, columnChart, percentBars, weekHeatmap); admin.css colours them per theme */
.admin-graph { width: 100%; height: auto; display: block; overflow: visible; }
.admin-graph .grid { stroke: var(--wood-line-2); stroke-dasharray: 3 4; }
.admin-graph .tick { fill: var(--muted); font-size: var(--fs-11, 11px); }
.admin-graph .ln { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.admin-graph .ln.main, .admin-graph .pt.main { stroke: var(--orange-top); fill: var(--orange-top); }
.admin-graph .ln.main { fill: none; }
.admin-graph .ln.ghost { stroke: var(--muted); stroke-dasharray: 4 3; stroke-width: 1.6; }
.admin-graph .ln.live { stroke: var(--live); }
.admin-graph .limit { stroke: var(--bad); stroke-dasharray: 6 4; }
.admin-graph .limit-text { fill: var(--bad); }
.admin-graph .marker { stroke: var(--meso); stroke-dasharray: 2 3; stroke-width: 1.5; }
.admin-graph .hit { fill: transparent; }
.admin-graph .hit:hover { fill: var(--orange-top); opacity: .35; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-12, 12px); color: var(--muted); margin-top: 4px; }
.chart-legend .sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--orange-top); }
.chart-legend .sw.ghost { background: var(--muted); }
.chart-legend .sw.live { background: var(--live); }
.chart-legend .sw.marker { background: var(--meso); }
.chart-legend .sw.col-all { height: 10px; width: 10px; background: var(--wood-line-2); }
.chart-legend .sw.col-part { height: 10px; width: 10px; background: var(--orange-top); }
.col-chart { display: flex; gap: 6px; align-items: flex-end; min-height: 150px; }
.col-item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.col-value { font-size: var(--fs-12, 12px); font-weight: 600; }
.col-bar { width: 100%; max-width: 46px; height: 110px; display: flex; align-items: flex-end; }
.col-bar > span { position: relative; display: flex; align-items: flex-end; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--orange-top); opacity: .9; }
.retention .col-bar > span, .kofi .col-bar > span { background: var(--wood-line-2); opacity: 1; }
.col-part { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--orange-top); }
.col-label { font-size: var(--fs-11, 11px); color: var(--muted); text-align: center; line-height: 1.2; }
.pct-bars { display: grid; gap: 10px; }
.pct-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 12px; align-items: center; }
.pct-name { font-weight: 600; font-size: var(--fs-13, 13px); }
.pct-name span { display: block; font-weight: 400; font-size: var(--fs-12, 12px); color: var(--muted); }
.pct-tracks { display: grid; gap: 4px; }
.pct-track { display: grid; grid-template-columns: 46px minmax(0, 1fr) 42px; gap: 8px; align-items: center; font-size: var(--fs-12, 12px); }
.pct-kind { color: var(--muted); }
.pct-track b { text-align: right; }
.pct-bar { height: 8px; border-radius: 4px; background: var(--wood-3); overflow: hidden; }
.pct-bar span { display: block; height: 100%; border-radius: 4px; background: var(--muted); }
.pct-bar span.good { background: var(--live); }
.pct-bar span.warn { background: var(--meso); }
.pct-bar span.bad { background: var(--bad); }
.heatmap { display: grid; grid-template-columns: 32px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.hm-day, .hm-hour { font-size: var(--fs-11, 11px); color: var(--muted); }
.hm-hour { white-space: nowrap; }
.hm-cell { height: 16px; border-radius: 3px; background: var(--orange-top); opacity: var(--a); }
@media (max-width: 575px) { .pct-row { grid-template-columns: minmax(0, 1fr); } .hm-cell { height: 12px; } }

/* Race your record (members, live): two game-style EXP bars, yours and your record's, in the pop-out (overlay-card.js
   raceTrack, where the walking monsters were) and above the live chart */
.race { margin: 8px 0 10px; padding: 8px 12px 10px; border-radius: 12px; background: #1a1130; border: 1px solid rgba(180, 140, 255, .25); color: #d9d1e6; }
.ov .race { margin: 8px -14px 0; border-radius: 0; border-width: 1px 0 0; }
.race.won { animation: race-won 1s ease-in-out 3; }
@keyframes race-won { 50% { box-shadow: 0 0 0 2px #ffcf4d, 0 0 18px #ffcf4d; } }
.race-head { display: flex; align-items: center; gap: 7px; font-size: var(--fs-11, 11px); font-weight: 700; margin-bottom: 4px; }
.race-head > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-head .bi { color: #b48cff; }
.race-chip { margin-left: auto; padding: 2px 9px; border-radius: 999px; font-size: var(--fs-12, 12px); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.race-chip.up { background: rgba(143, 227, 106, .15); color: #8fe36a; }
.race-chip.down { background: rgba(255, 123, 123, .15); color: #ff7b7b; }
.race-chip.gold { background: #ffcf4d; color: #3b2a1a; }
.race-row { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 6px; margin-top: 6px; }
.race-who { font-size: var(--fs-10, 10px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #b9aecd; }
.race-row.you .race-who { color: #ffcf4d; }
.race-bar { position: relative; height: 16px; border-radius: 3px; background: #2b2b2b; border: 1px solid #6b6b6b; }
.race-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.race-row.you .race-fill { background: linear-gradient(#e2f77a, #a9d12e 60%, #86ad1f); }
.race-row.rec .race-fill { background: repeating-linear-gradient(135deg, #7d7f6e 0 6px, #6d6f60 6px 12px); opacity: .85; }
.race-tick { position: absolute; top: -1px; bottom: -1px; width: 1px; background: rgba(255, 255, 255, .25); }
.race-pin { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.race-pin::after { content: ""; position: absolute; top: -5px; left: -4px; border: 5px solid transparent; border-top-color: #fff; }
.race-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: var(--fs-10, 10px); font-weight: 800;
  color: #fff; text-shadow: 0 1px 1px #000; font-variant-numeric: tabular-nums; white-space: nowrap; }
.race-row.stretch .race-bar { overflow: hidden; }
.race-row.stretch .race-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30px; width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: race-shine 1.6s linear infinite; }
@keyframes race-shine { to { left: 100%; } }
.race-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: var(--fs-10_5, 10.5px); color: #b9aecd; }
.race-foot b { color: #d9d1e6; } .race-foot .up { color: #8fe36a; } .race-foot .down { color: #ff7b7b; }
@media (prefers-reduced-motion: reduce) { .race.won, .race-row.stretch .race-bar::after { animation: none; } }

/* Tracker Plus members' level-ups on the board: a line at the top, and confetti on their row for a minute */
.board-levelups { display: flex; flex-direction: column; gap: 4px; padding: 8px 14px 0; }
.board-levelup { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; font-size: var(--fs-13, 13px); color: var(--ink);
  background: rgba(255, 207, 77, .1); border: 1px solid rgba(255, 207, 77, .35); }
.board-levelup .bi { color: #ffcf4d; }
.board-levelup .ago { margin-left: auto; font-size: var(--fs-12, 12px); color: var(--muted); white-space: nowrap; }
.chip.lvlup { background: rgba(255, 207, 77, .18); color: #ffcf4d; }
.feed-row.leveled { position: relative; }
.feed-row.leveled::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: radial-gradient(circle, #ffcf4d 0 2.5px, transparent 3px), radial-gradient(circle, #9bd12e 0 2px, transparent 2.5px),
    radial-gradient(circle, #ff7a59 0 2px, transparent 2.5px), radial-gradient(circle, #5aa9ff 0 2.5px, transparent 3px);
  background-size: 47px 41px, 61px 53px, 39px 59px, 71px 37px; animation: row-confetti 2.2s linear infinite; }
@keyframes row-confetti { from { background-position: 0 -60px, 20px -60px, 10px -60px, 35px -60px; }
  to { background-position: 8px 60px, 12px 60px, 22px 60px, 28px 60px; } }

/* the pop-out mentions other players' level-ups for a few seconds */
/* A boss reminder on the page (app.js sayBossBack): bottom right, over everything, until closed or 30 seconds. */
.boss-note { position: fixed; right: 16px; bottom: 16px; z-index: 3000; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px));
  padding: 10px 12px; border-radius: 14px; background: var(--f-panel, #fff); color: var(--f-head, #1d2b3a); border: 2px solid #f0b429;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22); font-weight: 700; animation: boss-note-in .3s ease-out; }
.boss-note img { height: 40px; width: 44px; object-fit: contain; }
.boss-note a { margin-left: auto; white-space: nowrap; font-size: 13px; }
.boss-note button { border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; padding: 0 2px; opacity: .6; }
.boss-note button:hover { opacity: 1; }
.boss-note-pip img { height: 26px; width: 30px; object-fit: contain; }
@keyframes boss-note-in { from { transform: translateY(12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .boss-note { animation: none; } }
.pip-mention { position: fixed; left: 8px; right: 8px; top: 8px; z-index: 2000; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 12px; font-size: var(--fs-13, 13px); font-weight: 700; color: #fff; background: rgba(42, 27, 66, .96); border: 1px solid #ffcf4d;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); animation: pip-mention 8s ease-in-out forwards; }
.pip-mention .bi { color: #ffcf4d; font-size: var(--fs-16, 16px); }
@keyframes pip-mention { 0% { opacity: 0; transform: translateY(-12px); } 6%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .feed-row.leveled::after { animation: none; transition: none; }
}

/* Tracker Plus looks on the live board: the border each member picked (LOOKS in app.js), on their podium spot or row */
@property --look-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.look { --look-bg: var(--wood-2); position: relative; overflow: hidden; isolation: isolate; border: 2px solid #e9a21c; }
.look:not(.look-shine):not(.look-rainbow):not(.look-retro):not(.look-candy) { background: var(--look-bg); }
.look-shine { border-color: transparent; background: linear-gradient(var(--look-bg), var(--look-bg)) padding-box,
  conic-gradient(from var(--look-a), #e9a21c, #e9a21c 55%, #ffcf4d 70%, #fff6d0 75%, #ffcf4d 80%, #e9a21c 92%) border-box;
  animation: look-spin 3.2s linear infinite; }
@keyframes look-spin { to { --look-a: 360deg; } }
/* dark looks: light text on them (the row's own colours are read from these) */
.look-dark { --ink: #fff; --ink-2: #e6dcf2; --muted: #c9bedb; color: #fff; }
.look-dark .feed-where, .look-dark .job-name, .look-dark .feed-class { color: #d9cfe8; }
.look-dark .rank { color: #3b2a1a; }  /* (the rank stays on its own light circle) */
.look-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; border-radius: inherit; }
.look-fx i { position: absolute; font-style: normal; }
/* rainbow: the colours run around, the name shimmers */
.look-rainbow { border: 3px solid transparent; background: linear-gradient(var(--look-bg), var(--look-bg)) padding-box,
  conic-gradient(from var(--look-a), #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #c77dff, #ff6b6b) border-box; animation: look-spin 4s linear infinite; }
.look-rainbow .plus-name { background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #c77dff, #ff6b6b) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; animation: look-slide 3s linear infinite; }
@keyframes look-slide { to { background-position: 200% 0; } }
/* fire: dark, flames flicker along the bottom */
.look-fire { --look-bg: #2a1208; border-color: #e8622c; }
.fx-flame { bottom: -6px; width: 14px; border-radius: 50% 50% 40% 40%; filter: blur(.4px);
  background: radial-gradient(circle at 50% 70%, #fff3a0, #ffb000 40%, #ff4d00 75%, transparent 80%); animation: look-flame .5s ease-in-out infinite alternate; }
@keyframes look-flame { from { transform: scaleY(.7) translateY(4px); } to { transform: scaleY(1.15); } }
/* frost: icy glass, snowflakes falling */
.look-frost { --look-bg: linear-gradient(135deg, #eaf7ff, #d4efff); border-color: #8fd3ff; box-shadow: inset 0 0 12px rgba(143, 211, 255, .9); }
.look-frost .plus-name { background: none; -webkit-text-fill-color: #2b7cc4; color: #2b7cc4; }
.fx-snow { top: -12px; font-size: var(--fs-11, 11px); color: #fff; text-shadow: 0 0 2px #6fb6e8; animation: look-fall 3s linear infinite; }
@keyframes look-fall { to { transform: translateY(160px) rotate(180deg); } }
/* lightning: dark purple, a bolt crackles across every few seconds */
.look-lightning { --look-bg: #1d1438; border-color: #7f5af0; animation: look-flash 2.2s steps(1) infinite; }
@keyframes look-flash { 0%, 100% { box-shadow: none; } 62%, 70% { box-shadow: 0 0 14px 3px #b79dff; } }
.fx-bolt { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: look-bolt 2.2s steps(1) infinite; }
.fx-bolt polyline { fill: none; stroke: #e8dcff; stroke-width: 2; }
@keyframes look-bolt { 0%, 100% { opacity: 0; } 62% { opacity: 1; } 66% { opacity: 0; } 70% { opacity: 1; } 74% { opacity: 0; } }
/* galaxy: a night sky full of stars */
.look-galaxy { --look-bg: radial-gradient(ellipse at 30% 20%, #3a2a7a, #140d2a 70%); border-color: #3b2a6a; }
.fx-star { width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: look-star 1.6s ease-in-out infinite; }
@keyframes look-star { 50% { opacity: .15; transform: scale(.5); } }
/* neon: a pink and blue glowing sign */
.look-neon { --look-bg: #160b1e; border-color: #ff4fd8; animation: look-neon 1.4s ease-in-out infinite; }
.look-neon .plus-name { background: none; -webkit-text-fill-color: #7df9ff; color: #7df9ff; text-shadow: 0 0 6px #7df9ff; }
@keyframes look-neon { 50% { box-shadow: 0 0 0 1px #7df9ff, 0 0 16px #ff4fd8, inset 0 0 10px #ff4fd8; } }
/* slime: green goo drips from the top */
.look-slime { --look-bg: #effbe9; border-color: #3bb86b; }
.look-slime .plus-name { background: none; -webkit-text-fill-color: #2b8a4e; color: #2b8a4e; }
.fx-drip { top: -2px; width: 10px; background: #5fd38a; border-radius: 0 0 6px 6px; animation: look-drip 2.6s ease-in infinite; }
@keyframes look-drip { 0%, 100% { height: 4px; } 70% { height: 16px; } }
/* royal: purple velvet, gold corners, a shine */
.look-royal { --look-bg: linear-gradient(135deg, #4a1d6b, #2a0f42); border-color: #c9a227; }
.look-royal .look-fx { background: linear-gradient(110deg, transparent 40%, rgba(255, 216, 107, .35) 50%, transparent 60%) 0 0 / 250% 100%;
  animation: look-royal 3s linear infinite; }
@keyframes look-royal { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.fx-corner { width: 14px; height: 14px; border: 2px solid #ffd86b; }
.fx-corner.tl { left: 3px; top: 3px; border-right: 0; border-bottom: 0; } .fx-corner.tr { right: 3px; top: 3px; border-left: 0; border-bottom: 0; }
.fx-corner.bl { left: 3px; bottom: 3px; border-right: 0; border-top: 0; } .fx-corner.br { right: 3px; bottom: 3px; border-left: 0; border-top: 0; }
/* retro: 8-bit pixels marching around */
.look-retro { border: 3px solid transparent; background: linear-gradient(var(--look-bg), var(--look-bg)) padding-box,
  repeating-linear-gradient(90deg, #e9a21c 0 8px, #3b2a1a 8px 16px) border-box; animation: look-march .6s steps(4) infinite; }
@keyframes look-march { to { background-position: 0 0, 16px 0; } }
.look-retro .plus-name { font-family: var(--bs-font-monospace, monospace); letter-spacing: .04em; }
.look > * { position: relative; z-index: 2; }
.look > .look-fx { position: absolute; z-index: 1; }  /* (the flames, stars and so on: behind the text) */
.plus-crown { display: inline-block; margin-right: 4px; vertical-align: 1px; animation: crown-bob 1.8s ease-in-out infinite; }
@keyframes crown-bob { 50% { transform: translateY(-2px) rotate(-8deg); } }
.chip.badge-hours, .chip.badge-months, .chip.badge-record { background: rgba(180, 140, 255, .14); color: #7a52c7; border-color: rgba(180, 140, 255, .4); padding: 0 6px; }
.chip.badge-record { background: rgba(255, 207, 77, .18); color: #a36a00; border-color: rgba(233, 162, 28, .45); }
/* "Your look": the borders to pick from */
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.look-pick { width: 100%; text-align: left; cursor: var(--cursor-hand, pointer); color: inherit; font: inherit; }
.look-pick.picked { outline: 3px solid var(--orange-line); outline-offset: 2px; }
.look-check { margin-left: auto; color: #3f8f2a; font-size: var(--fs-18, 18px); }
@media (prefers-reduced-motion: reduce) { .look, .look *, .look::before, .look::after, .plus-crown { animation: none !important; } }

/* Share cards (Tracker Plus): the picture over the page, with Save and Copy */
.share-modal { position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center; padding: 16px; background: rgba(10, 6, 20, .7); }
.share-box { width: min(760px, 100%); padding: 14px; border-radius: 16px; background: #22163a; border: 1px solid rgba(255, 255, 255, .15); }
.share-box img { display: block; width: 100%; border-radius: 10px; }
.share-note { color: #b9aecd; text-align: right; }

/* Tracker Plus on the live page: pictures on the left, what it adds on the right */
.plus-live { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.plus-live-show { display: flex; justify-content: center; }
.plus-live-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.plus-live-list .perk { display: flex; gap: 10px; align-items: flex-start; }
.plus-live-list .perk-icon { background: linear-gradient(#ffd25a, #e8960c); }
.plus-live-list .perk-title { font-size: var(--fs-15, 15px); }
.plus-live-list .perk-text { font-size: var(--fs-13, 13px); }
@media (max-width: 900px) { .plus-live { grid-template-columns: 1fr; } }

/* Map records (Tracker Plus) */
.rec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rec-stat { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--wood-line-2); }
.rec-stat b { display: block; font-family: var(--font-display); font-size: var(--fs-24, 24px); color: #c98a1a; }
.rec-stat span { font-size: var(--fs-12, 12px); color: var(--muted); }
.rec-feed { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.rec-feed-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; font-size: var(--fs-13, 13px);
  background: rgba(255, 207, 77, .12); border: 1px solid rgba(233, 162, 28, .35); }
.rec-feed-row.lost { background: rgba(229, 72, 77, .08); border-color: rgba(229, 72, 77, .3); }
.rec-feed-row .ago { margin-left: auto; font-size: var(--fs-12, 12px); color: var(--muted); white-space: nowrap; }
.rec-crown { color: #e9a21c; }
.rec-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.rec-tools .form-select { width: auto; }
.rec-h { display: flex; align-items: center; gap: 6px; margin: 6px 2px 10px; font-weight: 800; color: var(--ink-2); }
/* your maps: the map in a spotlight, the crown holder on a ribbon (gold when it's your own crown) */
.rec-spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; align-items: stretch; }
.rec-spot { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; border: 2px solid #c9a227; }
.rec-spot.mine { border-color: #e9a21c; box-shadow: 0 0 0 2px rgba(255, 216, 107, .5); }
.rec-spot-band { position: relative; display: grid; place-items: center; height: 196px; flex: none; overflow: hidden; padding: 28px 10px 36px;
  background: radial-gradient(circle at 50% 55%, rgba(255, 216, 107, .55), #3a1f52 68%); }
.rec-spot.mine .rec-spot-band { background: radial-gradient(circle at 50% 55%, rgba(255, 236, 170, .85), #7a4a00 72%); }
.rec-spot-band::before { content: ""; position: absolute; inset: -60%; z-index: 1; animation: rec-rays 16s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 10%, rgba(255, 236, 170, .22) 12%, transparent 16% 35%, rgba(255, 236, 170, .22) 37%,
    transparent 41% 60%, rgba(255, 236, 170, .22) 62%, transparent 66% 85%, rgba(255, 236, 170, .22) 87%, transparent 91%); }
@keyframes rec-rays { to { transform: rotate(1turn); } }
.rec-spot-map { position: relative; z-index: 2; display: block; image-rendering: pixelated; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.rec-spot-map.smooth { image-rendering: auto; }
.rec-spot-nomap { position: relative; z-index: 2; font-size: var(--fs-40, 40px); color: #ffd86b; }
.rec-spot-crown { position: absolute; top: 4px; z-index: 3; font-size: var(--fs-22, 22px); color: #ffd86b; text-shadow: 0 2px 0 #a35a00; animation: rec-crown 2s ease-in-out infinite; }
@keyframes rec-crown { 50% { transform: translateY(-3px) rotate(-6deg); } }
.rec-ribbon { position: absolute; bottom: 7px; z-index: 3; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 3px 18px; font-size: var(--fs-12, 12px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #3b2a1a;
  background: linear-gradient(#ffd86b, #e9a21c); clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); }
.rec-spark { position: absolute; z-index: 3; color: #fff6d0; font-size: var(--fs-10, 10px); animation: rec-spark 1.6s ease-in-out infinite; }
@keyframes rec-spark { 0%, 100% { opacity: 0; transform: scale(.5); } 50% { opacity: 1; transform: scale(1); } }
.rec-spot-info { padding: 9px 11px 4px; flex: 1; }
.rec-spot-alone { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; padding: 5px 10px; border-radius: 10px; font-size: var(--fs-12, 12px); font-weight: 700;
  color: #7a4a00; background: linear-gradient(#fff3d0, #ffe39a); border: 1px solid #e9c25a; }
.rec-spot-alone .bi { color: #c98a1a; }
.rec-spot-rate { margin-top: 3px; font-size: var(--fs-12_5, 12.5px); } .rec-spot-rate b { color: #c98a1a; }
.rec-spot-gap { margin-top: 6px; font-size: var(--fs-12, 12px); color: var(--ink-2); }
.rec-spot-bar { height: 7px; margin: 4px 0 6px; border-radius: 4px; background: #efe3cc; overflow: hidden; }
.rec-spot-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #a9d12e, #d6f56a); transition: width 1.4s ease-out; }
.rec-spot-list { padding: 0 11px 9px; }
/* all other maps: a row each; a click slides it open to the top 5, one line after the other */
.rec-rows { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--wood-line-2); }
.rec-item { border-bottom: 1px solid var(--wood-line-2); animation: rec-row-in .4s ease-out backwards; }
.rec-item:last-child { border-bottom: 0; }
.rec-item:nth-child(2) { animation-delay: .04s; } .rec-item:nth-child(3) { animation-delay: .08s; } .rec-item:nth-child(4) { animation-delay: .12s; }
.rec-item:nth-child(5) { animation-delay: .16s; } .rec-item:nth-child(n+6) { animation-delay: .2s; }
@keyframes rec-row-in { from { opacity: 0; transform: translateX(-12px); } }
.rec-maprow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 76px 18px; gap: 12px; align-items: center; width: 100%; padding: 9px 14px;
  text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: var(--cursor-hand, pointer); transition: background .2s; }
.rec-maprow:hover, .rec-item.open .rec-maprow { background: #fffaf0; }
.rec-maprow-pic { position: relative; width: 64px; height: 46px; border-radius: 8px; display: grid; place-items: center; color: #8f8a9e; overflow: visible;
  background: radial-gradient(ellipse at 50% 35%, #2a3554, #0f1422 75%); border: 1px solid #9aa3b8; }
.rec-maprow-pic img { display: block; max-width: 60px; max-height: 42px; object-fit: contain; } .rec-maprow-pic img.crisp { image-rendering: pixelated; }
.rec-maprow-pic .rec-medal { top: -7px; left: -7px; width: 22px; height: 22px; font-size: var(--fs-11, 11px); }
.rec-maprow-main { display: flex; flex-direction: column; min-width: 0; }
.rec-maprow-main .rec-map, .rec-maprow-main .rec-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-crown-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 180px; padding: 3px 11px 3px 4px; border-radius: 999px; font-size: var(--fs-13, 13px);
  font-weight: 800; color: #7a4a00; background: linear-gradient(#fff3d0, #ffe39a); border: 1px solid #e9c25a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-crown-pill .c { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-12, 12px);
  background: radial-gradient(#ffe9a0, #e9a21c); }
.rec-maprow-v { text-align: right; font-size: var(--fs-16, 16px); font-weight: 800; font-variant-numeric: tabular-nums; }
.rec-maprow-v small { font-size: var(--fs-11, 11px); color: var(--muted); font-weight: 700; }
.rec-maprow-chev { color: var(--muted); transition: transform .3s; }
.rec-item.open .rec-maprow-chev { transform: rotate(180deg); }
.rec-maprow-top { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease-out; background: #fffaf0; }
.rec-item.open .rec-maprow-top { grid-template-rows: 1fr; }
.rec-maprow-top-in { overflow: hidden; }

.rec-top-line { display: grid; grid-template-columns: 28px minmax(0, 1fr) 120px 70px 56px; gap: 10px; align-items: center; padding: 4px 6px;
  font-size: var(--fs-13, 13px); border-radius: 8px; opacity: 0; transform: translateY(-6px); }
.rec-item.open .rec-top-line { animation: rec-line-in .35s ease-out forwards; animation-delay: calc(.08s + var(--i) * .06s); }
@keyframes rec-line-in { to { opacity: 1; transform: none; } }
.rec-top-line .rk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-12, 12px); font-weight: 800; color: var(--muted); }
.rec-top-line .rk.r1 { color: #7a4a00; background: radial-gradient(#ffe9a0, #e9a21c); }
.rec-top-line .rk.r2 { color: #fff; background: radial-gradient(#f2f2f2, #9a9a9a); } .rec-top-line .rk.r3 { color: #fff; background: radial-gradient(#f3c18e, #a8602a); }
.rec-top-line .v { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.rec-top-line.mine { background: rgba(180, 140, 255, .14); }
.rec-top-bar { height: 6px; border-radius: 3px; background: #efe3cc; overflow: hidden; }
.rec-top-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #a9d12e, #d6f56a); transition: width .8s ease-out .2s; }
.rec-item.open .rec-top-bar i { width: var(--w); }
.rec-medal { position: absolute; z-index: 2; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.rec-medal.m1 { background: radial-gradient(#ffe08a, #c98a1a); } .rec-medal.m2 { background: radial-gradient(#f2f2f2, #9a9a9a); }
.rec-medal.m3 { background: radial-gradient(#f3c18e, #a8602a); }
.rec-hot { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: var(--fs-10, 10px); font-weight: 800; color: #fff; vertical-align: 2px;
  background: linear-gradient(#ff8a3d, #e5482c); animation: rec-hot 1s ease-in-out infinite; }
@keyframes rec-hot { 50% { box-shadow: 0 0 10px #ff9a4d; } }
@media (max-width: 700px) {
  .rec-maprow { grid-template-columns: 52px minmax(0, 1fr) 64px 16px; } .rec-maprow-lead { display: none; }
  .rec-maprow-pic { width: 52px; height: 40px; } .rec-maprow-top-in { padding-left: 12px; }
  .rec-top-line { grid-template-columns: 26px minmax(0, 1fr) 64px; } .rec-top-bar, .rec-top-line > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rec-spot-band::before, .rec-spot-crown, .rec-spark, .rec-item, .rec-hot { animation: none; }
  .rec-item.open .rec-top-line { animation: none; opacity: 1; transform: none; } .rec-maprow-top, .rec-top-bar i { transition: none; } }
.rec-line { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13, 13px); padding: 1px 0; }
.rec-line .rk { width: 18px; text-align: center; font-size: var(--fs-12, 12px); color: var(--muted); }
.rec-line .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-line .v { font-variant-numeric: tabular-nums; font-weight: 700; }
.rec-line.mine { background: rgba(180, 140, 255, .14); border-radius: 6px; }

/* the Support page: a banner for Tracker Plus with the pop-out playing, then Free / Supporter / Plus side by side */
.sup-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: center; padding: 26px 28px; border-radius: 18px;
  background: linear-gradient(135deg, #4a1d6b, #7a3d5c); border: 2px solid #c9a227; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.sup-hero h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); font-weight: 700; color: #ffd86b; margin: 10px 0 8px; line-height: 1.1; }
.sup-hero p { font-size: var(--fs-16, 16px); color: #f0e6fa; max-width: 560px; }
.sup-hero-join { min-width: 230px; }
.sup-hero-note { margin-top: 14px; font-size: var(--fs-13, 13px); color: #d9cfe8; }
.sup-hero-note a { color: #ffd86b; }
.sup-hero-card { justify-self: center; width: 100%; max-width: 380px; }
@media (max-width: 900px) { .sup-hero { grid-template-columns: 1fr; padding: 20px 16px; } }
.sup-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-14, 14px); }
.sup-table th, .sup-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--wood-line-2); }
.sup-table thead th { font-family: var(--font-display); font-size: var(--fs-17, 17px); color: var(--ink); border-bottom: 0; }
.sup-table tbody th { text-align: left; font-weight: 700; color: var(--ink); }
.sup-table tbody th .bi { color: #c98a1a; margin-right: 8px; }
.sup-table .sup-price td { font-size: var(--fs-12, 12px); color: var(--muted); padding-top: 0; }
.sup-table .plus { background: rgba(255, 207, 77, .14); }
.sup-table thead th.plus { color: #a36a00; border-radius: 12px 12px 0 0; }
.sup-table tfoot td.plus { border-radius: 0 0 12px 12px; }
.sup-table .lite { background: rgba(29, 158, 117, .1); }
.sup-table thead th.lite { color: #14745a; border-radius: 12px 12px 0 0; }
.sup-table tfoot td.lite { border-radius: 0 0 12px 12px; }
.chip.lite { color: #0e4d3b; background: linear-gradient(135deg, #b8f0da, #6fd3ae); border-color: #1d9e75; padding: 0 6px; font-weight: 700; }
.sup-table tfoot td { border-bottom: 0; padding-top: 12px; }
.sup-yes { color: #3f8f2a; font-size: var(--fs-18, 18px); } .sup-no { color: #c9b9a2; }

/* Map records: the search box, and "Show all" under the cards and the list */
.rec-search { position: relative; flex: 1 1 200px; max-width: 320px; }
.rec-search .bi { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: var(--fs-13, 13px); }
.rec-search input { padding-left: 30px; }
.rec-more { display: block; margin: 10px auto 4px; }

/* map records: a crown taken from you (a banner on every page), and crowns changing hands on the board and in the pop-out */
.crown-lost { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(135deg, #4a1d6b, #7a3d5c); border: 2px solid #c9a227; color: #fff; font-size: var(--fs-14, 14px); }
.crown-lost > span:nth-child(2) { flex: 1 1 260px; }
.crown-lost strong { color: #ffd86b; }
.crown-lost .btn-close { filter: invert(1); }
.crown-lost-icon, .crown-icon { font-size: var(--fs-20, 20px); color: #ffd86b; text-shadow: 0 2px 0 #a35a00; animation: rec-crown 2s ease-in-out infinite; }
.board-levelup.crown { text-decoration: none; background: rgba(255, 207, 77, .16); }
.board-levelup.crown.lost, .pip-mention.crown.lost { border-color: #e5484d; }
.board-levelup.crown.lost { background: rgba(229, 72, 77, .1); }
.pip-mention .crown-icon { font-size: var(--fs-17, 17px); }
@media (prefers-reduced-motion: reduce) { .crown-lost-icon, .crown-icon { animation: none; } }

/* you took a crown: a gold band sweeps across the page, with gold confetti */
.crown-sweep { position: fixed; inset: 0; z-index: 3100; pointer-events: none; overflow: hidden; }
.crown-sweep i { position: absolute; top: -14px; width: 8px; height: 12px; border-radius: 2px; animation: confetti-fall 2.4s linear forwards; }
.crown-sweep-band { position: absolute; left: 0; right: 0; top: 30%; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px;
  background: linear-gradient(90deg, transparent, #e9a21c 15%, #ffd86b 50%, #e9a21c 85%, transparent); color: #3b2a1a;
  box-shadow: 0 0 40px rgba(255, 207, 77, .6); animation: crown-sweep 5s ease-in-out forwards; }
.crown-sweep-band b { display: block; font-family: var(--font-display); font-size: clamp(26px, 6vw, 52px); letter-spacing: .05em; line-height: 1; }
.crown-sweep-band span { font-size: var(--fs-15, 15px); font-weight: 800; }
.crown-sweep-icon { font-size: clamp(36px, 7vw, 64px); text-shadow: 0 3px 0 #a35a00; animation: rec-crown 1.4s ease-in-out infinite; }
@keyframes crown-sweep { 0% { transform: translateX(-110%); } 15%, 80% { transform: none; } 100% { transform: translateX(110%); } }
/* you lost a crown: it shatters, then Take it back pulses */
.crown-shatter { position: relative; width: 30px; height: 30px; flex: none; }
.crown-shatter .whole, .crown-shatter .broken { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-24, 24px); color: #ffd86b; text-shadow: 0 2px 0 #a35a00; }
.crown-shatter .whole { animation: crown-crack .5s .4s forwards; }
.crown-shatter .broken { opacity: 0; filter: grayscale(.8) brightness(.8); animation: crown-broken .4s 1.1s forwards; }
.crown-shatter i { position: absolute; left: 11px; top: 9px; width: 8px; height: 8px; background: #ffd86b; opacity: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 80%); animation: crown-shard 1s .7s ease-in forwards; }
@keyframes crown-crack { 40% { transform: rotate(-12deg) scale(1.15); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes crown-shard { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
@keyframes crown-broken { to { opacity: .55; transform: rotate(18deg) translateY(3px); } }
.crown-lost #crown-back { animation: crown-pulse 1.3s 1.4s ease-in-out infinite; }
@keyframes crown-pulse { 50% { box-shadow: 0 0 0 6px rgba(232, 118, 30, .35); } }
/* the board: the crown flies from one name to the other */
.crown-swap { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.crown-swap .from { color: var(--muted); }
.crown-fly { display: inline-block; color: #e9a21c; font-size: var(--fs-17, 17px); text-shadow: 0 1px 0 #a35a00; }
.board-levelup.fly .crown-fly { animation: crown-fly 1.4s cubic-bezier(.5, -.4, .5, 1.4); }
.board-levelup.fly .to { animation: crown-glow 1s 1.2s 2; }
@keyframes crown-fly { 0% { transform: translateX(-40px) rotate(-20deg); } 50% { transform: translate(0, -14px) rotate(180deg) scale(1.4); } 100% { transform: none; } }
@keyframes crown-glow { 50% { text-shadow: 0 0 10px #ffd86b; } }
/* the pop-out: a kill-feed, bottom right */
#pip-killfeed { position: fixed; right: 8px; bottom: 8px; z-index: 2000; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: calc(100% - 16px); }
.pip-kill { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: var(--fs-12, 12px); color: #fff; white-space: nowrap;
  background: rgba(10, 6, 20, .85); border-left: 3px solid #ffd86b; animation: pip-kill 8s ease-in-out forwards; max-width: 100%; overflow: hidden; }
.pip-kill.lost { border-left-color: #e5484d; } .pip-kill.won { border-left-color: #8fe36a; }
.pip-kill .k { color: #ffd86b; } .pip-kill .you { color: #ff8a8a; font-weight: 800; } .pip-kill .m { color: #b9aecd; overflow: hidden; text-overflow: ellipsis; }
@keyframes pip-kill { 0% { transform: translateX(120%); } 6%, 90% { transform: none; opacity: 1; } 100% { transform: translateX(120%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .crown-sweep-band, .crown-sweep-icon, .crown-shatter *, .crown-lost #crown-back, .board-levelup.fly .crown-fly, .board-levelup.fly .to, .pip-kill { animation: none; }
  .crown-shatter .whole { opacity: 0; } .crown-shatter .broken { opacity: .55; }
}

/* an opened map: a colourful arena. Left the map whole in a glowing frame, sparkles drifting up, its monsters; right the top 3
   on a shining podium (an open spot when nobody's there yet), 4 and 5 with neon bars, and coloured facts */
.rec-open { display: grid; grid-template-columns: 240px minmax(0, 1fr); border-top: 1px solid var(--wood-line-2);
  background: linear-gradient(120deg, #2a1150, #5a1f6b 45%, #8a2d5c 75%, #b5502e); background-size: 200% 200%; animation: rec-arena 12s ease-in-out infinite; }
@keyframes rec-arena { 50% { background-position: 100% 50%; } }
.rec-open-side { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 12px; }
.rec-open-side::before { content: ""; position: absolute; inset: -60%; animation: rec-rays 18s linear infinite; opacity: .8;
  background: conic-gradient(from 0deg, transparent 0 10%, rgba(255, 216, 107, .18) 12%, transparent 16% 35%, rgba(125, 249, 255, .14) 37%,
    transparent 41% 60%, rgba(255, 216, 107, .18) 62%, transparent 66% 85%, rgba(199, 125, 255, .16) 87%, transparent 91%); }
.rec-mote { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: #ffe9a0; box-shadow: 0 0 8px #ffd86b;
  transform: scale(var(--s)); animation: rec-mote 6s linear infinite; }
@keyframes rec-mote { 0% { transform: translateY(0) scale(var(--s)); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-260px) scale(var(--s)); opacity: 0; } }
.rec-open-frame { position: relative; z-index: 1; padding: 6px; border-radius: 14px; animation: rec-float 3.2s ease-in-out infinite;
  background: linear-gradient(#1a1130, #1a1130) padding-box, conic-gradient(from var(--look-a), #ffd86b, #ff6b9d, #7df9ff, #c77dff, #ffd86b) border-box;
  border: 3px solid transparent; box-shadow: 0 0 22px rgba(255, 216, 107, .45), 0 10px 24px rgba(0, 0, 0, .45); }
.rec-item.open .rec-open-frame { animation: rec-float 3.2s ease-in-out infinite, look-spin 6s linear infinite; }
@keyframes rec-float { 50% { translate: 0 -5px; } }
.rec-open-frame img { display: block; image-rendering: pixelated; border-radius: 8px; } .rec-open-frame img.smooth { image-rendering: auto; }
.rec-open-frame > .bi { display: grid; place-items: center; width: 120px; height: 80px; font-size: var(--fs-40, 40px); color: #ffd86b; }
.rec-open-mobs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.rec-open-mobs .mob-chip { color: #fff; border: 0; background: linear-gradient(135deg, #ff6b9d, #c77dff); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.rec-open-mobs .mob-chip:nth-child(2) { background: linear-gradient(135deg, #4d96ff, #7df9ff); color: #10233a; }
.rec-open-mobs .mob-chip:nth-child(3) { background: linear-gradient(135deg, #6bcb77, #d6f56a); color: #173404; }
.rec-open-mobs .mob-chip:nth-child(4) { background: linear-gradient(135deg, #ffb347, #ffd86b); color: #3b2a1a; }
.rec-open-mobs .mob-chip b { color: inherit; opacity: .8; }
.rec-open-main { position: relative; padding: 14px 18px 16px; color: #fff; }
.rec-pod { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding-top: 22px; margin-bottom: 8px; }
.rec-pod-st { width: 112px; text-align: center; }
.rec-item.open .rec-pod-st { animation: rec-rise .7s cubic-bezier(.3, 1.5, .6, 1) backwards; }
.rec-item.open .rec-pod-st.s1 { animation-delay: .3s; } .rec-item.open .rec-pod-st.s2 { animation-delay: .15s; } .rec-item.open .rec-pod-st.s3 { animation-delay: .45s; }
@keyframes rec-rise { from { opacity: 0; transform: translateY(46px) scale(.9); } }
.rec-pod-av { position: relative; display: flex; justify-content: center; height: 34px; }
.rec-pod-av svg { width: 34px; height: 34px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); animation: rec-pod-hop 1.4s ease-in-out infinite; }
.rec-pod-st.s2 .rec-pod-av svg { animation-delay: -.5s; } .rec-pod-st.s3 .rec-pod-av svg { animation-delay: -.9s; }
@keyframes rec-pod-hop { 50% { transform: translateY(-4px); } }
.rec-pod-av.king::before { content: "♛"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: var(--fs-19, 19px); color: #ffd86b;
  text-shadow: 0 0 10px #ffd86b, 0 2px 0 #a35a00; animation: rec-pod-crown 1.8s ease-in-out infinite; }
.rec-pod-st.s1 .rec-pod-av::after { content: ""; position: absolute; inset: -10px 18px; border-radius: 50%; background: radial-gradient(rgba(255, 216, 107, .55), transparent 70%);
  animation: rec-aura 2s ease-in-out infinite; z-index: -1; }
@keyframes rec-aura { 50% { transform: scale(1.3); opacity: .5; } }
.rec-pod-n { font-size: var(--fs-13_5, 13.5px); font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.rec-pod-st.s1 .rec-pod-n { color: #ffd86b; -webkit-text-fill-color: #ffd86b; background: none; }
.rec-pod-c { font-size: var(--fs-11, 11px); color: #e6dcf2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-pod-v { font-size: var(--fs-12_5, 12.5px); font-weight: 800; color: #fff; }
.rec-pod-blk { position: relative; overflow: hidden; margin-top: 4px; border-radius: 10px 10px 0 0; display: grid; place-items: center; color: #fff; font-weight: 800;
  font-size: var(--fs-18, 18px); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18); }
.rec-pod-blk::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: rec-shine 3.5s ease-in-out infinite; }
.rec-pod-st.s2 .rec-pod-blk::after { animation-delay: .6s; } .rec-pod-st.s3 .rec-pod-blk::after { animation-delay: 1.2s; }
@keyframes rec-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.rec-pod-blk.b1 { height: 62px; background: linear-gradient(#ffe08a, #e9a21c 60%, #b8780f); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18), 0 0 22px rgba(255, 216, 107, .6); }
.rec-pod-blk.b2 { height: 44px; background: linear-gradient(#ffffff, #c9cfd8 60%, #8e96a3); color: #3a4250; }
.rec-pod-blk.b3 { height: 32px; background: linear-gradient(#ffc999, #d8803d 60%, #9a5420); }
.rec-pod-st.open { opacity: .75; }
.rec-pod-st.open .rec-pod-n { color: #e6dcf2; font-weight: 700; }
.rec-pod-st.open .rec-pod-blk { background: rgba(255, 255, 255, .08); border: 2px dashed rgba(255, 255, 255, .45); border-bottom: 0; box-shadow: none; color: rgba(255, 255, 255, .6); }
.rec-pod-st.open .rec-pod-blk::after { display: none; }
.rec-open-main .rec-top-line { grid-template-columns: 28px minmax(0, 1fr) 150px 66px; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0; color: #fff; }
.rec-open-main .rec-top-line .rk { width: 26px; height: 26px; color: #fff; background: rgba(255, 255, 255, .14); }
.rec-open-main .rec-top-line .text-muted-wood { color: #d9cfe8 !important; }
.rec-open-main .rec-top-line.mine { background: rgba(199, 125, 255, .25); border-radius: 8px; }
.rec-open-main .rec-top-bar { height: 8px; background: rgba(255, 255, 255, .12); }
.rec-open-main .rec-top-bar i { background: linear-gradient(90deg, #7df9ff, #c77dff, #ff6b9d); box-shadow: 0 0 10px rgba(199, 125, 255, .8); }
.rec-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rec-facts > span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: var(--fs-12, 12px); font-weight: 700; border: 0;
  color: #fff; background: rgba(255, 255, 255, .14); backdrop-filter: blur(2px); }
.rec-facts .f-players { background: linear-gradient(135deg, #4d96ff, #7a5cff); }
.rec-facts .f-crown { background: linear-gradient(135deg, #e9a21c, #ff8a3d); }
.rec-facts .f-date { background: linear-gradient(135deg, #c77dff, #ff6b9d); }
.rec-facts .bi, .rec-fact-crown { color: #fff; }
.rec-facts .goal { color: #173404; background: linear-gradient(135deg, #a9e23a, #d6f56a); animation: rec-goal 1.6s ease-in-out infinite; }
.rec-facts .goal .bi { color: #173404; }
@keyframes rec-goal { 50% { box-shadow: 0 0 0 5px rgba(169, 226, 58, .3); } }
@media (max-width: 700px) { .rec-open { grid-template-columns: 1fr; } .rec-open-main .rec-top-line { grid-template-columns: 28px minmax(0, 1fr) 66px; } }
@media (prefers-reduced-motion: reduce) {
  .rec-open, .rec-open-side::before, .rec-mote, .rec-open-frame, .rec-item.open .rec-open-frame, .rec-item.open .rec-pod-st, .rec-pod-av svg,
  .rec-pod-av.king::before, .rec-pod-st.s1 .rec-pod-av::after, .rec-pod-blk::after, .rec-facts .goal { animation: none; }
}

/* twelve more Tracker Plus looks (LOOKS in app.js; some have bits of their own: lookFx) */
.look-sakura { --look-bg: #fff4f8; border-color: #f4a6c4; }
.fx-petal { top: -10px; width: 9px; height: 7px; border-radius: 60% 0; background: #f7a8c4; animation: look-petal 5s linear infinite; }
@keyframes look-petal { to { transform: translate(30px, 150px) rotate(300deg); } }
.look-coins { --look-bg: #fffbea; border-color: #e9a21c; }
/* the borders you earn by finishing a whole tier of achievements (EARNED_BORDERS in web.py) */
.look-bronze { --look-bg: linear-gradient(135deg, #fbe7cf, #efc99a); border-color: #a8652a; }
.look-silver { --look-bg: linear-gradient(135deg, #f7fafc, #cfd8e1); border-color: #8795a5; }
.look-golden { --look-bg: linear-gradient(135deg, #3a2608, #150c02); border-color: #ffd24a; box-shadow: 0 0 8px rgba(255, 210, 74, .55); }
.look-prism { --look-bg: linear-gradient(135deg, #141a44, #0a0d26); border-color: #9ad8ff; animation: look-prism 5s linear infinite; }
.look-legend { --look-bg: linear-gradient(135deg, #6a1016, #240508); border-color: #ffd24a; box-shadow: 0 0 10px rgba(255, 170, 60, .7); }
@keyframes look-prism { 0%, 100% { border-color: #ff9ad0; } 25% { border-color: #ffe08a; } 50% { border-color: #8cf0c0; } 75% { border-color: #9ad8ff; } }
.look-bronze .look-fx, .look-silver .look-fx, .look-golden .look-fx, .look-legend .look-fx { background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%) 0 0 / 250% 100%; animation: look-sheen 4.5s linear infinite; }
.look-golden .look-fx, .look-legend .look-fx { background-image: linear-gradient(110deg, transparent 40%, rgba(255, 216, 107, .35) 50%, transparent 60%); }
.look-prism .look-fx { background: linear-gradient(100deg, rgba(255, 90, 170, .24), rgba(255, 220, 90, .24), rgba(90, 240, 170, .24), rgba(90, 170, 255, .24), rgba(255, 90, 170, .24)) 0 0 / 300% 100%; animation: look-sheen 7s linear infinite; }
@keyframes look-sheen { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.fx-side { top: 50%; width: 15px; height: 34px; transform: translateY(-50%); } .fx-side.l { left: 3px; } .fx-side.r { right: 3px; transform: translateY(-50%) scaleX(-1); }
.fx-side svg { display: block; width: 100%; height: 100%; }
.look-silver .fx-side { width: 19px; height: 30px; }
.fx-glint { width: 9px; height: 9px; color: #ffe08a; background: currentColor; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: look-glint 2.4s ease-in-out infinite; }
.fx-glint.silver { color: #fff; }
@keyframes look-glint { 0%, 100% { transform: scale(.2); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
.fx-gold-leaf { top: -14px; width: 13px; height: 13px; background: linear-gradient(#ffe9a0, #f0a428); animation: look-petal 5s linear infinite;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 13.6 5.6 16 4.6 15.4 8.6 18.6 7 17.8 9.6 21 10.4 18.2 13 19.2 14.6 15 14.2 15.4 16.8 12.6 15.2 12.6 22 11.4 22 11.4 15.2 8.6 16.8 9 14.2 4.8 14.6 5.8 13 3 10.4 6.2 9.6 5.4 7 8.6 8.6 8 4.6 10.4 5.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 13.6 5.6 16 4.6 15.4 8.6 18.6 7 17.8 9.6 21 10.4 18.2 13 19.2 14.6 15 14.2 15.4 16.8 12.6 15.2 12.6 22 11.4 22 11.4 15.2 8.6 16.8 9 14.2 4.8 14.6 5.8 13 3 10.4 6.2 9.6 5.4 7 8.6 8.6 8 4.6 10.4 5.6Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.fx-coin { top: -12px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3a0, #ffd84a 45%, #c98a1a);
  box-shadow: 0 0 0 1px #a36a00; animation: look-coin 2.6s linear infinite; }
@keyframes look-coin { to { transform: translateY(150px) rotateY(720deg); } }
.look-ocean { --look-bg: linear-gradient(#eaf6ff, #cfe8ff); border-color: #4d96ff; }
.look-ocean .look-fx { background: radial-gradient(circle at 10px -3px, transparent 10px, rgba(77, 150, 255, .45) 11px) bottom / 20px 12px repeat-x;
  animation: look-wave 2s linear infinite; }
@keyframes look-wave { to { background-position: 20px 100%; } }
.look-lava { --look-bg: #2a0f08; border-color: #ff4d00; }
.look-lava .look-fx { background: radial-gradient(circle at 20% 120%, #ff4d00, transparent 40%), radial-gradient(circle at 70% 130%, #ffb000, transparent 45%),
  radial-gradient(circle at 45% 140%, #ff7a00, transparent 40%); animation: look-lava 3s ease-in-out infinite alternate; }
@keyframes look-lava { to { transform: translateY(-6px); filter: hue-rotate(20deg); } }
.look-matrix { --look-bg: #04130b; border-color: #00ff88; }
.look-matrix .plus-name, .look-matrix .name-btn { -webkit-text-fill-color: #7dffb8; color: #7dffb8; background: none; font-family: var(--bs-font-monospace, monospace); }
.look-matrix .look-fx { background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(0, 255, 136, .14) 10px 11px),
  linear-gradient(transparent, rgba(0, 255, 136, .28), transparent) 0 0 / 100% 40px; animation: look-code 1.4s linear infinite; }
@keyframes look-code { to { background-position: 0 0, 0 80px; } }
.look-hearts { --look-bg: #fff0f5; border-color: #e0457b; }
.fx-rise { bottom: -14px; font-size: var(--fs-12, 12px); color: #f7a8c4; animation: look-rise 3s linear infinite; }
.fx-rise.note { color: #c77dff; font-size: var(--fs-14, 14px); }
@keyframes look-rise { 0% { opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-90px) rotate(15deg); opacity: 0; } }
.look-storm { --look-bg: linear-gradient(#3b4257, #232838); border-color: #6c7a99; animation: look-flash 2.6s steps(1) infinite; }
.look-storm .look-fx { background: repeating-linear-gradient(105deg, transparent 0 6px, rgba(200, 220, 255, .22) 6px 7px); animation: look-rain .5s linear infinite; }
@keyframes look-rain { to { background-position: -12px 14px; } }
.look-storm .fx-bolt { animation-duration: 2.6s; }
.look-pixelfire { --look-bg: #fff3e6; border: 3px solid #ff7a00; }
.look-pixelfire .look-fx { background: repeating-linear-gradient(90deg, #ff4d00 0 6px, #ffb000 6px 12px) bottom / 100% 9px no-repeat; animation: look-pixel .3s steps(2) infinite; }
@keyframes look-pixel { 50% { background-size: 100% 14px; } }
.look-warp { --look-bg: radial-gradient(ellipse at 50% 50%, #3a2a7a, #0d0a24); border-color: #7d5cff; }
.fx-warp { width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: look-warp 1.2s linear infinite; }
@keyframes look-warp { from { transform: none; opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(2.5); opacity: 0; } }
.look-candy { border: 3px solid transparent; background: linear-gradient(var(--look-bg), var(--look-bg)) padding-box,
  repeating-linear-gradient(45deg, #ff6b9d 0 8px, #fff 8px 16px) border-box; background-size: auto, 22px 22px; animation: look-candy 1s linear infinite; }
@keyframes look-candy { to { background-position: 0 0, 22px 0; } }
.look-notes { --look-bg: #f8f0ff; border-color: #c77dff; }
.look-spooky { --look-bg: linear-gradient(#2a1530, #160b1e); border-color: #ff8a3d; }
.fx-ghost { top: 4px; left: 8%; font-size: var(--fs-15, 15px); opacity: .8; animation: look-ghost 5s ease-in-out infinite; }
@keyframes look-ghost { 50% { transform: translate(60px, 6px); opacity: .35; } }
.fx-pumpkin { right: 10px; bottom: 4px; font-size: var(--fs-16, 16px); animation: rec-crown 1.6s ease-in-out infinite; }
/* name colours (Tracker Plus): plain, or moving */
.plus-name.ncol-pink { background: none; -webkit-text-fill-color: #e0457b; color: #e0457b; }
.plus-name.ncol-purple { background: none; -webkit-text-fill-color: #7a52c7; color: #7a52c7; }
.plus-name.ncol-teal { background: none; -webkit-text-fill-color: #1d9e75; color: #1d9e75; }
.plus-name.ncol-green { background: none; -webkit-text-fill-color: #3f8f2a; color: #3f8f2a; }
.look-dark .plus-name.ncol-purple { -webkit-text-fill-color: #c9a8ff; color: #c9a8ff; } .look-dark .plus-name.ncol-teal { -webkit-text-fill-color: #6ee7c4; color: #6ee7c4; }
.look-dark .plus-name.ncol-green { -webkit-text-fill-color: #a9e23a; color: #a9e23a; } .look-dark .plus-name.ncol-pink { -webkit-text-fill-color: #ff9ac0; color: #ff9ac0; }
.plus-name.ncol-rainbow, .plus-name.ncol-fire, .plus-name.ncol-ice { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 100%; animation: look-slide 3s linear infinite; }
.plus-name.ncol-rainbow { background-image: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #c77dff, #ff6b6b); }
.plus-name.ncol-fire { background-image: linear-gradient(90deg, #ff4d00, #ffb000, #ff4d00); animation-duration: 2s; }
.plus-name.ncol-ice { background-image: linear-gradient(90deg, #4d96ff, #bff3ff, #4d96ff); }
.name-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: inherit; cursor: var(--cursor-hand, pointer); }
.name-btn.plus-name.ncol-gold { background: linear-gradient(90deg, #e9a21c, #ffcf4d 50%, #e9a21c); -webkit-background-clip: text; background-clip: text; }
/* a title: a tag on the board and Rankings, the banner on a character card. Its colour is how hard it was to earn;
   the two hardest shine, so a title that took work stands out from one anybody has. */
.title-tag { --t1: #ffd968; --t2: #e09a1c; --t-ink: #3b2400; --t-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; padding: 2px 9px; border-radius: 6px;
  vertical-align: 2px; font-family: var(--font-display); font-size: var(--fs-11, 11px); font-weight: 700; line-height: 1.25; letter-spacing: .05em; text-transform: uppercase; text-align: center; white-space: normal;
  color: var(--t-ink); text-shadow: var(--t-shadow); background: linear-gradient(90deg, var(--t2), var(--t1), var(--t2)) 0 0 / 200% 100%; }
.title-tag .bi { flex: none; font-size: var(--fs-9, 9px); }
.title-tag.tier-easy { --t1: #9bdc58; --t2: #4f9a2a; --t-ink: #10300a; }
.title-tag.tier-hard { --t1: #ee5a45; --t2: #b81f30; --t-ink: #fff; --t-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
.title-tag.tier-extreme { --t1: #9a66ff; --t2: #5a28cc; --t-ink: #fff; --t-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
.title-tag.tier-hard, .title-tag.tier-extreme { animation: look-slide 3s linear infinite; }
.title-tag.banner { flex: none; width: calc(100% + 28px); max-width: none; margin: 0 -14px; padding: 6px 38px; border-radius: 0; border-bottom: 2px solid rgba(255, 255, 255, .45); font-size: var(--fs-15, 15px); gap: 8px; }  /* (clear of the close button) */
.title-tag.banner .bi { font-size: var(--fs-12, 12px); }
.feed-name:has(.title-tag) { white-space: normal; }  /* (a long title goes to the next line, it isn't cut off) */
@media (prefers-reduced-motion: reduce) { .title-tag, .look-prism, .look .look-fx *, .look .look-fx, .plus-name.ncol-rainbow, .plus-name.ncol-fire, .plus-name.ncol-ice { animation: none !important; } }

/* your profile (Tracker Plus): a banner in your own look, tabs (Look, Achievements, About you), the previews on the side */
.prof-hero { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px !important; }
.prof-hero > * { position: relative; z-index: 2; }
.prof-hero-ava { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(#ffe9a0, #e9a21c); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.prof-hero-ava svg { width: 46px; height: 46px; }
.prof-hero-name { font-family: var(--font-display); font-size: var(--fs-28, 28px); font-weight: 700; line-height: 1.1; }
.prof-hero-sub { font-size: var(--fs-13, 13px); color: var(--muted); }
.look-dark .prof-hero-sub { color: #d9cfe8; }
.prof-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .prof-grid { grid-template-columns: 1fr; } }
.prof-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px 14px 0 0; background: #7a4a22; }
.prof-tabs button { flex: 1; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: #fff3d6; font: inherit; font-weight: 800; cursor: var(--cursor-hand, pointer); }
.prof-tabs button.active { background: #fff8ec; color: #7a4a22; }
.prof-sec + .prof-sec { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--wood-line-2); }
.prof-sec-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-weight: 800; }
.prof-sec-h .bi { color: #c98a1a; }
.seg-sm button { padding: 2px 10px; font-size: var(--fs-12, 12px); }
/* the border you wear, opening a drop-down of small tiles with the name inside */
.prof-border-now-n small { color: #8a7a6a; font-weight: 700; }
.prof-border-now[aria-expanded="true"] > .bi { transform: rotate(180deg); }

.prof-border-drop { display: grid; gap: 8px; margin-top: 8px; }
.prof-border-drop[hidden] { display: none; }
.prof-border-drop .seg { flex-wrap: wrap; max-width: 100%; }
.prof-borders { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.prof-border { display: block; min-width: 0; padding: 0; border: 0; background: none; font: inherit; cursor: var(--cursor-hand, pointer); text-align: center; }
.prof-border .feed-row { height: 100%; min-height: 42px; justify-content: center; }
.prof-border .feed-row.look { padding: 4px 6px; }
.prof-border:hover .feed-row { filter: brightness(1.06); }
.prof-border.picked .feed-row { outline: 3px solid var(--orange-line); outline-offset: 1px; }
.prof-border.locked .feed-row { filter: saturate(.45); }
.prof-border-t { position: relative; z-index: 2; font-size: var(--fs-11_5, 11.5px); font-weight: 800; line-height: 1.15; color: #3b2a1a; }
.prof-border-t small { display: block; font-size: var(--fs-10_5, 10.5px); font-weight: 700; opacity: .8; }
.look-dark .prof-border-t { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.prof-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.prof-colors-k { width: 60px; font-size: var(--fs-12, 12px); font-weight: 800; }
.prof-color { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--wood-line-2); background: #fff;
  font: inherit; font-weight: 800; cursor: var(--cursor-hand, pointer); }
.prof-color.picked { outline: 3px solid var(--orange-line); outline-offset: 1px; }
.prof-swatch { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.sw-gold { background: linear-gradient(135deg, #ffcf4d, #e9a21c); } .sw-pink { background: #e0457b; } .sw-purple { background: #7a52c7; } .sw-teal { background: #1d9e75; }
.sw-green { background: #3f8f2a; } .sw-rainbow { background: conic-gradient(#ff6b6b, #ffd93d, #6bcb77, #4d96ff, #c77dff, #ff6b6b); }
.sw-fire { background: linear-gradient(135deg, #ff4d00, #ffb000); } .sw-ice { background: linear-gradient(135deg, #4d96ff, #bff3ff); }
.prof-switch { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--wood-line-2); cursor: var(--cursor-hand, pointer); }
.prof-switch + .prof-switch { margin-top: 8px; }
.prof-switch input { margin-top: 4px; width: 18px; height: 18px; accent-color: #e8761e; }
.prof-switch small { display: block; }
.prof-side { position: sticky; top: 12px; }
.prof-side .feed-row { min-height: 60px; }
/* achievements */
.ach-ring span { font-size: var(--fs-10, 10px); color: var(--muted); }
.t-medium .ach-tier-h { background: linear-gradient(90deg, #c98a1a, #f4b73a); }
.ach { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: #f4efe6; border: 1px solid var(--wood-line-2); }
.ach.earned { background: #fff; } .ach.worn { border: 2px solid #e9a21c; box-shadow: 0 0 0 3px rgba(255, 207, 77, .25); }
.t-medium .ach.earned .ach-icon { background: radial-gradient(#ffe08a, #c98a1a); }
.ach:not(.earned) .ach-n { color: var(--muted); }
.ach-worn { font-size: var(--fs-12, 12px); font-weight: 800; color: #c98a1a; white-space: nowrap; }
/* a character card */
.pcard { border-radius: 16px; overflow: hidden; background: #fff; border: 2px solid #c9a227; text-align: left; }
.pcard-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 0 !important; border-width: 0 0 2px !important; }
.pcard-ava { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(#ffe9a0, #e9a21c); }
.pcard-ava svg { width: 40px; height: 40px; }
.pcard-name { font-family: var(--font-display); font-size: var(--fs-20, 20px); font-weight: 700; line-height: 1.1; }
.pcard-job { font-size: var(--fs-12, 12px); }
.pcard-bio { padding: 10px 14px 0; font-style: italic; }
.pcard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; }
.pcard-stats > div { padding: 7px 10px; border-radius: 10px; background: #fff8ec; border: 1px solid var(--wood-line-2); min-width: 0; }
.pcard-stats b { display: block; font-size: var(--fs-15, 15px); color: #c98a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-stats span { font-size: var(--fs-11, 11px); }
.pcard-badges { padding: 0 14px 6px; }
/* the Equips tab: what they have on as tiles, the one picked as the game's own card beside them */
.pce-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; align-items: start; padding: 0 14px 12px; }
@container pcard (max-width: 640px) { .pce-wrap { grid-template-columns: minmax(0, 1fr); } }
.pce-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.pce-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 6px 8px; text-align: left; border-radius: 10px;
  background: #fff8ec; border: 1px solid var(--wood-line-2); color: inherit; }
.pce-item.on { border-color: #7a52c7; box-shadow: 0 0 0 2px rgba(122, 82, 199, .25); }
.pce-pic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(#f4f4f4, #d7dbe4); }
.pce-pic img { max-width: 34px; max-height: 34px; image-rendering: pixelated; }
.pce-text { display: grid; min-width: 0; line-height: 1.25; }
.pce-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13, 13px); }
.pce-slot, .pce-best { font-size: var(--fs-11, 11px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pce-slot { text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.pce-best em { font-style: normal; font-weight: 700; }
.pce-best .up { color: #2f9a45; }
.pce-best .dn { color: #c4453a; }
.pkp-card.pce-card { position: static; width: auto; pointer-events: auto; animation: none; }
.pcard-k { padding: 8px 14px 4px; font-size: var(--fs-12, 12px); font-weight: 800; }
.pcard-line { display: block; width: calc(100% - 28px); height: 60px; margin: 0 14px; }
.pcard-line polyline { fill: none; stroke: #7a52c7; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 600; stroke-dashoffset: 600; animation: pcard-draw 1.4s ease-out forwards; }
@keyframes pcard-draw { to { stroke-dashoffset: 0; } }
.pcard-line-k { display: flex; justify-content: space-between; padding: 0 14px; font-size: var(--fs-11, 11px); }
.pcard-maps { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 14px; }
.pcard-map { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: var(--fs-13, 13px); }
.pcard-map-pic { width: 76px; height: 54px; border-radius: 8px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 35%, #2a3554, #0f1422 75%);
  border: 1px solid #9aa3b8; color: #8f8a9e; overflow: hidden; }
.pcard-map-pic img { display: block; }
.pcard-map-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pcs-old { display: block; margin-top: 8px; }
.pcard-note { margin: 0 14px 14px; padding: 6px 10px; border-radius: 10px; font-size: var(--fs-12_5, 12.5px); background: #eaf6e3; border: 1px solid #b9dca5; color: #2b6f1c; }
.pcard-modal { position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center; padding: 16px; background: rgba(10, 6, 20, .65); overflow: auto; }
.pcard-box { position: relative; width: min(420px, 100%); animation: pcard-in .35s cubic-bezier(.3, 1.4, .6, 1); }
.pcard-box > .pcard { box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.pcard-close { position: absolute; top: 10px; right: 10px; z-index: 3; background-color: rgba(255, 255, 255, .85); border-radius: 50%; padding: 6px; }
/* (on a title banner: small enough to sit inside it) */
.pcard-box:has(.title-tag.banner) .pcard-close { top: 7px; right: 8px; padding: 4px; font-size: var(--fs-11, 11px); }
@keyframes pcard-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .pcard-line polyline { animation: none; stroke-dashoffset: 0; } .pcard-box { animation: none; } }
/* (the profile panel, the card and the banner sit outside the usual windows: dark text of their own, as in a window;
   buttons keep the site's own colours) */
.pcard { color: #3b2a1a; }
.prof-sec-h, .pcard-map-n, .pcard-name:not(.plus-name) { color: #3b2a1a; }
.pcard-bio, .pcard-k { color: #5a4030; }
.prof-colors-k, .prof-switch small, .pcard-stats span, .pcard-line-k, .pcard-job { color: #8a7a6a; }
.prof-hero { --look-bg: #fff8ec; }
.prof-hero:not(.look-dark) .prof-hero-sub { color: #8a7a6a; }
.prof-side, .prof-borders, .pcard-modal, .prof-hero { --wood-2: #fff8ec; }  /* (rows and cards as on the board: the light wood behind them) */

/* the board: room for Tracker Plus rows, and a player showing their card clearly opens it */
.feed { gap: 10px; }
.feed-row.look { padding: 12px 16px; }
.board-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.board-tags .chip { margin: 0; }
.feed-name .title-tag { margin-left: 4px; }
.feed-where .feed-class { margin: 0; }
.has-card { cursor: var(--cursor-hand, pointer); transition: transform .15s ease, box-shadow .15s ease; }
.has-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(122, 82, 199, .28), 0 0 0 2px rgba(122, 82, 199, .35); }
.card-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; font-family: var(--font-body); font-size: var(--fs-11, 11px); font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #8a5fe0, #5f3fc0); box-shadow: 0 2px 6px rgba(95, 63, 192, .35); position: relative; z-index: 1; }
.has-card:hover .card-pill { background: linear-gradient(135deg, #a57cf5, #7a52d8); }
.name-btn { text-decoration: underline dotted rgba(122, 82, 199, .7); text-underline-offset: 3px; }
.board-card-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 14px; font-size: var(--fs-12_5, 12.5px); color: var(--muted); text-align: center; }
.look-dark .chip.badge-record, .look-dark .chip.badge-hours, .look-dark .chip.badge-months { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
@media (max-width: 575.98px) {
  .feed-row.look { padding: 10px 10px; }
}
@media (prefers-reduced-motion: reduce) { .has-card, .has-card:hover { transition: none; transform: none; } }

/* the Achievements page */
.tab-ach .bi { color: #ffcf4d; filter: drop-shadow(0 0 3px rgba(255, 207, 77, .7)); }
@keyframes ach-turn { to { transform: rotate(360deg); } }
@keyframes ach-twinkle { 0%, 100% { opacity: .1; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.2); } }
.ach-medal { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-50, 50px); color: #fff8dc; border: 4px solid #ffe08a;
  background: radial-gradient(circle at 35% 30%, #ffd86b, #e9a21c 55%, #a35a00); box-shadow: 0 0 0 6px rgba(255, 207, 77, .18), 0 0 34px rgba(255, 207, 77, .6); animation: ach-bob 3.2s ease-in-out infinite; }
.ach-medal.r0 { background: radial-gradient(circle at 35% 30%, #d7b48a, #a4754a 60%, #6b4526); border-color: #e2c6a5; }
.ach-medal.r1, .ach-medal.r2 { background: radial-gradient(circle at 35% 30%, #fff, #c7ccd4 55%, #7d8592); border-color: #eef0f4; }
.ach-medal.r5, .ach-medal.r6 { background: radial-gradient(circle at 35% 30%, #bff, #5aa9ff 45%, #7a3fd0); border-color: #dff; }
@keyframes ach-bob { 50% { transform: translateY(-6px); } }
/* The page without Tracker Plus: one card, in the middle */
@keyframes ach-shine { to { background-position: 300% 0; } }
.achc-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; animation: ach-fill 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ach-fill { from { width: 0; } }
.ach-gem span { margin-left: auto; font-size: var(--fs-12, 12px); color: #e5dcf7; }
.ach-gem.t-extreme .bi { color: #c9a0ff; }
.ach-band-n { margin-left: auto; font-weight: 800; }
.ach-band-reward { padding: 1px 10px; border-radius: 999px; font-size: var(--fs-12, 12px); font-weight: 800; color: #fff; text-decoration: none; background: rgba(0, 0, 0, .22); }
.ach-band-reward:hover { color: #fff; background: rgba(0, 0, 0, .34); }
.ach-band-reward.done { color: #3b2a1a; background: #ffd86b; } .ach-band-reward.done:hover { color: #3b2a1a; background: #ffe69a; }
.ach-legend { margin: 14px 0 0; text-align: center; } .ach-legend .ach-band-reward { display: inline-block; padding: 5px 16px; font-size: var(--fs-13_5, 13.5px); background: #5a1418; }
.ach-legend .ach-band-reward:hover { background: #7a1c20; } .ach-legend .ach-band-reward.done { background: #ffd86b; }
.achc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; }
.achc { position: relative; overflow: hidden; display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: #f6f0e4; border: 2px solid var(--wood-line-2); transition: transform .14s ease, box-shadow .14s ease; }
.achc:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(60, 40, 10, .16); }
.achc-medal { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-22, 22px); color: #fff; background: #c9bba5; }
.achc-body { flex: 1; min-width: 0; }
.achc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.achc-top b { font-family: var(--font-display); font-size: var(--fs-15_5, 15.5px); line-height: 1.15; color: #3b2a1a; -webkit-text-fill-color: currentColor; }
/* the achievements you track, on the live page (the pop-out's own colours are in overlay.css) */
.track-win .pip-ach { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 8px; }
.track-win .window-body { padding: 10px 12px; }
.track-win .window-aside a { color: inherit; }
.pip-ach-row { --tier: #6fa82e; } .pip-ach-row.t-medium { --tier: #d99a1c; } .pip-ach-row.t-hard { --tier: #d9473f; } .pip-ach-row.t-extreme { --tier: #8a4fe0; }
.track-win .pip-ach-row { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 9px; border-radius: 10px; background: #fff; border: 1px solid var(--wood-line-2); }
.track-win .pip-ach-medal { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: var(--fs-16, 16px); color: #fff; background: var(--tier); }
.track-win .pip-ach-main { flex: 1; min-width: 0; }
.track-win .pip-ach-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: var(--fs-12_5, 12.5px); font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.track-win .pip-ach-top b { overflow: hidden; font-family: var(--font-display); font-size: var(--fs-15, 15px); text-overflow: ellipsis; white-space: nowrap; }
.track-win .pip-ach-top span { flex: none; }
.track-win .pip-ach-bar { height: 8px; margin: 3px 0; overflow: hidden; border-radius: 4px; background: #e9dfcc; }
.track-win .pip-ach-bar i { display: block; height: 100%; border-radius: 4px; background: var(--tier); }
.track-win .pip-ach-how { overflow: hidden; font-size: var(--fs-12, 12px); color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.track-win .pip-ach-live { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #3f9e2a; }
.track-win .pip-ach-row.done { border-color: var(--tier); } .track-win .pip-ach-row.done .pip-ach-top span { color: var(--tier); }
.track-win .pip-ach-off { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; font-size: var(--fs-10, 10px); color: var(--muted); background: none; }
.track-win .pip-ach-off:hover { color: var(--ink-strong); background: var(--wood-3); }
.track-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.track-hint > .bi { color: #5f3fc0; } .track-hint > span { flex: 1; min-width: 200px; } .track-hint .btn { flex: none; }
.achc-top-r { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.achc-pin { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; font-size: var(--fs-12, 12px); color: #8a7a6a; background: none; }
.achc-pin:hover { color: #5f3fc0; background: #efe6ff; }
.achc-pin.on { color: #fff; background: #5f3fc0; }
.achc-pts { flex: none; padding: 0 7px; border-radius: 999px; font-size: var(--fs-11, 11px); font-weight: 800; color: #7a5a1c; background: #fbe6b0; }
.achc p { margin: 2px 0 0; font-size: var(--fs-12_5, 12.5px); line-height: 1.3; color: #6f5c44; }
.achc-bar { height: 8px; margin-top: 7px; border-radius: 999px; background: #e2d5c0; overflow: hidden; }
.achc.t-easy .achc-bar i { background: linear-gradient(90deg, #5fae35, #a9e36b); } .achc.t-medium .achc-bar i { background: linear-gradient(90deg, #e9a21c, #ffd86b); }
.achc.t-hard .achc-bar i { background: linear-gradient(90deg, #c23a33, #ff8a6b); } .achc.t-extreme .achc-bar i { background: linear-gradient(90deg, #7a3fd0, #e0457b); }
.achc-left { display: flex; justify-content: space-between; margin-top: 2px; font-size: var(--fs-11, 11px); font-weight: 700; color: #6f5c44; }
.ach-note a { color: #7a3fd0; }
.ach-note { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px; font-size: var(--fs-12_5, 12.5px); color: #5a4630; background: #fff8ec; }
.achc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: var(--fs-11_5, 11.5px); }
.achc-done { font-weight: 800; color: #3f8f2a; } .achc-secret { font-weight: 800; color: #b5a9cc; } .achc-worn { font-weight: 800; color: #7a3fd0; }
.achc-wear { padding: 1px 9px; border-radius: 999px; font-size: var(--fs-11_5, 11.5px); font-weight: 800; color: #5f3fc0; background: #efe6ff; border: 1px solid #c9b3f5; }
.achc-wear:hover { background: #e0d0ff; }
  background: linear-gradient(135deg, #ffe08a, #f4b73a); border: 1px solid #c98a1a; }
.achc.earned { background: #fff; }
.achc.earned::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: ach-sweep 6s ease-in-out infinite; pointer-events: none; }
@keyframes ach-sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.achc.earned.t-easy { border-color: #8fc94a; } .achc.earned.t-medium { border-color: #f4b73a; } .achc.earned.t-hard { border-color: #e5484d; }
.achc.earned.t-easy .achc-medal { background: radial-gradient(circle at 35% 30%, #c9f08f, #3f8f2a); box-shadow: 0 0 12px rgba(95, 174, 53, .55); }
.achc.earned.t-medium .achc-medal { background: radial-gradient(circle at 35% 30%, #ffe9a0, #c98a1a); box-shadow: 0 0 12px rgba(233, 162, 28, .6); }
.achc.earned.t-hard .achc-medal { background: radial-gradient(circle at 35% 30%, #ffb3a0, #a3302a); box-shadow: 0 0 14px rgba(229, 72, 77, .6); }
.achc.t-extreme { background: #2a1a4f; border-color: #4a3080; }
.achc.t-extreme b { color: #fff; } .achc.t-extreme p, .achc.t-extreme .achc-left { color: #cfc2ea; } .achc.t-extreme .achc-bar { background: rgba(255, 255, 255, .15); }
.achc.t-extreme .achc-medal { background: #4a3080; color: #cdb8f5; }
.achc.earned.t-extreme { background: linear-gradient(135deg, #2a1050, #5a1f7a, #a02a70); border-color: transparent; box-shadow: 0 0 0 2px #ffcf4d, 0 0 20px rgba(224, 69, 123, .55); }
.achc.earned.t-extreme .achc-medal { color: #fff; background: conic-gradient(from 0deg, #ffcf4d, #e0457b, #7a3fd0, #5aa9ff, #ffcf4d); animation: ach-spin-glow 3s linear infinite; }
.achc.earned.t-extreme .achc-done { color: #ffe08a; }
@keyframes ach-spin-glow { 50% { box-shadow: 0 0 20px rgba(255, 207, 77, .9); } }
.achc.secret.locked { background: repeating-linear-gradient(135deg, #2b2438, #2b2438 10px, #322a42 10px, #322a42 20px); border-color: #4a4060; }
.achc.secret.locked b { color: #e7dcff; } .achc.secret.locked p { color: #b5a9cc; } .achc.secret.locked .achc-medal { background: #4a4060; color: #e7dcff; }
.achc.worn { box-shadow: 0 0 0 3px #7a3fd0, 0 0 16px rgba(122, 63, 208, .4); }
.achc.fresh { animation: ach-pop .7s cubic-bezier(.2, 1.6, .4, 1) both; box-shadow: 0 0 0 3px #ffcf4d, 0 0 26px rgba(255, 207, 77, .9); }
@keyframes ach-pop { from { transform: scale(.7); opacity: 0; } }
@media (max-width: 767.98px) {
  .ach-medal { width: 72px; height: 72px; font-size: var(--fs-34, 34px); }
}
@media (prefers-reduced-motion: reduce) {
  .ach-medal, .achc.earned::after, .achc.earned.t-extreme .achc-medal, .achc.fresh, .achc-bar i { animation: none; }
}

/* What's new: the Achievements page playing by itself, drawn live so it stays sharp at any size. One loop of 10 seconds: two cards
   unlock with confetti while the points count up. Plain CSS, so it also plays on the public page. */
@property --achx-pts { syntax: "<integer>"; inherits: true; initial-value: 905; }
@keyframes achx-rank { 0%, 22% { width: 26%; } 28%, 58% { width: 31%; } 64%, 96% { width: 41%; } 100% { width: 26%; } }
@keyframes achx-count { 0%, 22% { --achx-pts: 830; } 28%, 58% { --achx-pts: 855; } 64%, 96% { --achx-pts: 905; } 100% { --achx-pts: 830; } }
@keyframes achx-banner { 0%, 23%, 42%, 59%, 78%, 100% { transform: translateX(-50%) scale(0); } 26%, 38%, 62%, 74% { transform: translateX(-50%) scale(1); } }
@keyframes achx-fill1 { 0% { width: 70%; } 22%, 100% { width: 100%; } }
@keyframes achx-fill2 { 0%, 28% { width: 62%; } 58%, 100% { width: 100%; } }
@keyframes achx-got1 { 0%, 22% { opacity: 0; transform: scale(.7); } 25% { opacity: 1; transform: scale(1.08); } 28%, 95% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes achx-got2 { 0%, 58% { opacity: 0; transform: scale(.7); } 61% { opacity: 1; transform: scale(1.08); } 64%, 95% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes achx-bit { 0%, 23%, 40%, 59%, 76%, 100% { opacity: 0; transform: translate(0, 0) rotate(0); } 25%, 61% { opacity: 1; transform: translate(calc(var(--dx) * .2), -14px) rotate(60deg); }
  38%, 74% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(420deg); } }
@media (max-width: 420px) {
  .achx-pts { font-size: var(--fs-24, 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .achx-bit, .achx-banner { display: none; }
}

/* The start page: a road from level 1 to level 100, one stop per part of the tracker. The colours are set here, not from
   the theme: the page looks the same in every season. */
.hp { color: #3b2a1a; }
.hp h1, .hp h2 { font-family: var(--font-display); margin: 0; -webkit-text-fill-color: currentColor; }
.hp-chip.plus { color: #3b2a1a; background: linear-gradient(135deg, #ffe08a, #f4b73a); }
.hp-btn.demo { color: #3b2a1a; background: linear-gradient(#ffd27a, #f4a93a); box-shadow: 0 4px 0 #b9761d; }
@keyframes hp-float { 50% { transform: translateY(-7px); } }
@keyframes hp-pulse { 50% { opacity: .45; } }
.hp-lv { margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-family: var(--font-body); font-size: var(--fs-11, 11px); font-weight: 800; color: #3b2a1a; background: #f4b73a; }
.hp-time { margin-left: auto; font-size: var(--fs-13, 13px); font-weight: 800; color: #d9d1e6; font-variant-numeric: tabular-nums; }
.hp-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-11, 11px); font-weight: 800; text-shadow: 0 1px 2px #000; }
.hp-bar.race i { background: linear-gradient(90deg, #ff9d5c, #ffd86b); }
.hp-grid b { font-family: var(--font-display); font-size: var(--fs-20, 20px); font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-next { color: #8fc7ff; }
@keyframes hp-walk { from { left: -10%; } to { left: 105%; } }
.hp-stop.goal { align-self: center; width: min(460px, 100%); text-align: center; }
.hp-stop.goal .hp-sign { position: static; display: inline-block; margin-bottom: 8px; }
.hp-card > p { margin: 0 0 8px; font-size: var(--fs-15, 15px); line-height: 1.45; color: #6f5c44; }
.hp-card.dark h2 { margin-bottom: 12px; color: #ffd86b; }
.hp-nums .b { color: #8fc7ff; }
.hp-brow .r .v { font-size: inherit; color: inherit; }
.hp-rank.n3 { background: #d58a4a; color: #fff !important; }
.hp-ach p { margin: 1px 0 0; font-size: var(--fs-12, 12px); color: #6f5c44; }
.hp-ach.done .m { background: radial-gradient(circle at 35% 30%, #ffe9a0, #c98a1a); box-shadow: 0 0 12px rgba(233, 162, 28, .6); }
.hp-ach.x .m { background: conic-gradient(#ffcf4d, #e0457b, #7a3fd0, #5aa9ff, #ffcf4d); }
.hp-spot .w i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #a9e23a, #6fb31d); }
.hp-pgrid .n { font-family: var(--font-display); font-size: var(--fs-22, 22px); font-weight: 600; color: #5d8a12; }
.hp-pgrid .shine b, .hp-pgrid .shine > i { color: #fff; }
@media (max-width: 860px) {
  .hp-stop.goal { width: auto; margin-left: 52px; }
}

/* The Guide: a road from top to bottom, like the start page. The colours are set here: the same cards in every season. */
.gd { color: #3b2a1a; }
.gd h1, .gd h2 { font-family: var(--font-display); margin: 0; -webkit-text-fill-color: currentColor; }
.gd-top { padding: 30px 0 14px; text-align: center; } .gd-top h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.05; } .gd-top p { max-width: 620px; margin: 10px auto 0; font-size: var(--fs-17, 17px); }
.gd-road { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 6px 0 10px; }
.gd-road::before { content: ""; position: absolute; top: 0; bottom: 0; left: 22px; width: 8px; border-radius: 4px; }
.gd-stop { position: relative; min-width: 0; margin-left: 66px; }
.gd-sign { position: absolute; left: -66px; top: 14px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-size: var(--fs-22, 22px); }
.gd-card { padding: 18px; border-radius: 18px; }
.gd-card h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: var(--fs-24, 24px); }
.gd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .gd-steps li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; color: #6f5c44; } .gd-steps strong { color: #3b2a1a; } .gd-steps b { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-display); font-size: var(--fs-16, 16px); font-weight: 700; color: #fff; background: linear-gradient(#ffb23e, #e8791c); }
.gd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .gd-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; color: #6f5c44; } .gd-list li > .bi { flex: none; font-size: var(--fs-18, 18px); line-height: 1.3; color: #f08a2c; } .gd-list strong { color: #3b2a1a; }
.gd-card kbd { padding: 0 5px; border-radius: 5px; font-size: var(--fs-12, 12px); font-weight: 800; }
.gd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: var(--fs-12, 12px); font-weight: 800; } .gd-chip.free { color: #1f4a0d; background: #cdeb8f; } .gd-chip.sup { color: #6b1f3e; background: #ffc4d6; } .gd-chip.lite { color: #0f4a52; background: #b9ecf0; } .gd-chip.plus { color: #3b2a1a; background: linear-gradient(135deg, #ffe08a, #f4b73a); }
.gd-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; } .gd-tier { min-width: 0; padding: 12px; border-radius: 14px; background: #fff; } .gd-tier ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: var(--fs-14, 14px); } .gd-tier li { padding: 3px 0; } .gd-tier li .bi { margin-right: 6px; color: #4e9a1f; }
.gd-more { display: inline-block; margin-top: 10px; font-weight: 800; }
.gd-fix { display: flex; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; line-height: 1.4; background: #fff; border: 1px solid #e4d3b4; } .gd-fix:first-of-type { margin-top: 0; }
.gd-card details { padding: 10px 2px; border-bottom: 1px solid #e4d3b4; } .gd-card details:last-child { border-bottom: 0; } .gd-card summary { font-family: var(--font-display); font-size: var(--fs-16, 16px); font-weight: 600; } .gd-card details p { margin: 6px 0 0; line-height: 1.45; }
.gd-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: var(--fs-13_5, 13.5px); line-height: 1.45; } .gd-note > .bi { font-size: var(--fs-18, 18px); }
@media (max-width: 800px) { .gd-stop { margin-left: 52px; } .gd-road::before { left: 14px; } .gd-sign { left: -52px; width: 40px; height: 40px; font-size: var(--fs-17, 17px); } }

/* The test site's screen check */
.sc-page { display: grid; gap: 14px; }
.sc-box { padding: 16px; }
.sc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sc-scroll { overflow-x: auto; }
.sc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-13, 13px); }
.sc-table th, .sc-table td { padding: 6px 8px; border-bottom: 1px solid rgba(0, 0, 0, .12); text-align: left; vertical-align: top; }
.sc-table .sc-ok { color: #2f7a12; font-weight: 700; }
.sc-table .sc-bad { color: #b3261e; font-weight: 700; background: #fde8e6; }

.player-code { font-family: var(--bs-font-monospace, monospace); font-size: var(--fs-12_5, 12.5px); white-space: nowrap; user-select: all; }

.gift-box { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.gift-box input { flex: 1 1 200px; min-width: 0; font-family: var(--bs-font-monospace, monospace); text-transform: uppercase; }

/* ---------- rankings: a stage for the top 3, then the list ---------- */
.rk-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 6px; padding: 12px 8px 10px; border-radius: 14px; text-align: center;
  color: #3b2a1a; }
.rk-card:not(.look) { background: #fff8ec; border: 2px solid #e7c66a; }
.rk-card.look { --wood-2: #fff8ec; }
.rk-card.has-card { cursor: var(--cursor-hand, pointer); }
.rk-card > :not(.look-fx) { position: relative; z-index: 2; }
.rk-av { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 50%; font-size: var(--fs-27, 27px); color: #fff; background: #9a8a74; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.rk-av.warrior { background: #e0524a; } .rk-av.magician { background: #4a8be0; } .rk-av.bowman { background: #3f9e2a; } .rk-av.thief { background: #8a6ae0; }
.rk-av.sm { width: 36px; height: 36px; font-size: var(--fs-16, 16px); border-width: 2px; box-shadow: none; }
.rk-name { max-width: 100%; overflow: hidden; font-family: var(--font-display); font-size: var(--fs-19, 19px); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.rk-lv { font-family: var(--font-display); font-size: var(--fs-26, 26px); font-weight: 700; line-height: 1.1; color: #c45a08; }
.look-dark .rk-lv { color: #ffd86b; }
.rk-job { display: flex; align-items: center; gap: 5px; font-size: var(--fs-12_5, 12.5px); font-weight: 700; }
.rk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; }
.rk-classes { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.rk-classes button { padding: 3px 11px; border-radius: 999px; font-size: var(--fs-13, 13px); font-weight: 800; color: var(--ink-2); background: #fff; border: 1px solid var(--wood-line-2); cursor: var(--cursor-hand, pointer); }
.rk-classes button:hover { border-color: var(--wood-line); }
.rk-classes button.active { color: #fff; border-color: #7a4f2a; background: #7a4f2a; }
.rk-classes .warrior.active { background: #e0524a; border-color: #b83a34; } .rk-classes .magician.active { background: #3f7ad0; border-color: #2f62ae; }
.rk-classes .bowman.active { background: #3f9e2a; border-color: #2b6f1c; }
.rk-search { flex: 0 1 190px; min-width: 150px; }
.rk-feed:empty { display: none; }
.rk-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; padding: 0 16px 14px; }
.rk-pager button { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; font-weight: 800; color: var(--ink-2); background: #fff; border: 1px solid var(--wood-line-2); cursor: var(--cursor-hand, pointer); font-variant-numeric: tabular-nums; }
.rk-pager button:hover:not(:disabled) { border-color: var(--wood-line); }
.rk-pager button.active { color: #fff; border-color: #b4500a; background: #e8660c; }
.rk-pager button:disabled { opacity: .4; cursor: default; }
.rk-pager span { color: var(--muted); font-weight: 800; }
.rk-row { --wood-2: #fff8ec; }
.rk-row.has-card { cursor: var(--cursor-hand, pointer); }
.rk-right { flex: 0 0 130px; text-align: right; position: relative; z-index: 2; }
.rk-row-lv { font-family: var(--font-display); font-size: var(--fs-18, 18px); font-weight: 700; color: #c45a08; }
.look-dark .rk-row-lv { color: #ffd86b; }
.rk-admin { position: relative; z-index: 3; font-size: var(--fs-12, 12px); color: var(--muted); text-decoration: none; } .rk-admin:hover { color: var(--ink, inherit); }
.rk-exp { position: relative; height: 14px; margin-top: 3px; overflow: hidden; border-radius: 4px; background: #3a3a3a; border: 1px solid #1c1c1c;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.rk-exp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #f4f78a, #d6dc2a 55%, #a9b018); }
.rk-exp span { position: relative; display: block; font: 800 var(--fs-10, 10px)/12px var(--font-body); color: #fff; text-align: center; text-shadow: 0 1px 1px #000, 0 0 2px #000;
  font-variant-numeric: tabular-nums; }
.rk-card .rk-exp { width: min(130px, 90%); margin: 4px auto 6px; }
.rk-row .feed-main { position: relative; z-index: 2; min-width: 0; } .rk-row .rank, .rk-row .rk-av { position: relative; z-index: 2; }
@media (max-width: 599.98px) {
  .rk-right { flex-basis: 72px; }
}

/* the idle alert (live page): about one flash a second, steady for players who turn off motion */
.idle-alarm { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 18px; border-radius: 14px; color: #fff; border: 3px solid #fff; font-size: var(--fs-15, 15px);
  background: #d92d34; animation: idle-flicker 1.1s steps(2, jump-none) infinite; }
.idle-alarm > .bi { font-size: var(--fs-26, 26px); }
.idle-alarm > div { flex: 1; min-width: 180px; }
.idle-alarm strong { display: block; font-family: var(--font-display); font-size: var(--fs-22, 22px); line-height: 1.15; }
.idle-alarm .btn { color: #fff; border: 2px solid #fff; background: rgba(0, 0, 0, .25); }
@keyframes idle-flicker { 0% { background: #d92d34; } 100% { background: #e8660c; } }

/* your profit */
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pf-map { padding: 6px 0; }
.pf-map-n { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; color: var(--ink); }
.pf-map-n span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-map-n b { color: #1f8a4c; white-space: nowrap; } .pf-map-n b.loss { color: #c5303a; }
.pf-map.best .pf-map-n span::before { content: "\2605"; margin-right: 5px; color: #e9a21c; }
.pf-bar { height: 9px; margin: 3px 0 2px; border-radius: 99px; overflow: hidden; background: #f2e6d0; }
.pf-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3fb56b, #a8e04a); }
.pf-bar i.loss { background: linear-gradient(90deg, #e5484d, #ff9a6b); }
.pf-map-s { font-size: var(--fs-11_5, 11.5px); color: var(--muted); }
.pf-weeks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; height: 130px; margin-top: 6px; }
.pf-week { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; height: 100%; padding: 14px 0 16px; }
.pf-week i { display: block; border-radius: 5px 5px 0 0; background: linear-gradient(#ffcf4d, #e8660c); }
.pf-week i.loss { background: linear-gradient(#ff9a6b, #e5484d); }
.pf-week-v { position: absolute; top: 0; inset-inline: -4px; font-size: var(--fs-10, 10px); font-weight: 800; text-align: center; color: var(--ink-2); white-space: nowrap; }
.pf-week-k { position: absolute; bottom: 0; inset-inline: -4px; font-size: var(--fs-9_5, 9.5px); text-align: center; color: var(--muted); white-space: nowrap; overflow: hidden; }
.pf-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.pf-levels div { padding: 5px 8px; border-radius: 9px; background: #fff; border: 1px solid var(--wood-line-2); font-size: var(--fs-12, 12px); color: var(--muted); }
.pf-levels b { display: block; font-size: var(--fs-15, 15px); color: #c5303a; }
@media (max-width: 720px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }

/* your goal */
.goal-form { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px; align-items: end; }
@media (max-width: 480px) { .goal-form { grid-template-columns: minmax(0, 1fr); } }
.goal-top { display: flex; align-items: center; gap: 12px; }
.goal-big { font-family: var(--font-display); font-size: var(--fs-40, 40px); font-weight: 700; line-height: 1; color: #e8660c; white-space: nowrap; }
.goal-by { font-weight: 800; color: var(--ink); }
.goal-chip { display: inline-block; margin-top: 2px; padding: 1px 9px; border-radius: 99px; font-size: var(--fs-12, 12px); font-weight: 800; color: #5a4030; background: #efe3cd; white-space: nowrap; }
.goal-chip.good { color: #fff; background: #1f8a4c; } .goal-chip.warn { color: #3b2400; background: #ffcf4d; } .goal-chip.bad { color: #fff; background: #c5303a; }
.goal-bar { position: relative; height: 24px; margin-top: 12px; border-radius: 99px; overflow: hidden; background: #f2e6d0; border: 1px solid var(--wood-line-2); }
.goal-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb347, #e8660c); transition: width .6s ease; }
.goal-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-12, 12px); font-weight: 800; color: #3b2a1a; }
.live-goal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; background: #fff8ec; border: 2px solid #ffb347; }
.live-goal > .bi { font-size: var(--fs-20, 20px); color: #e8660c; }
.live-goal > span:first-of-type { flex: 1; min-width: 200px; }
.live-goal .goal-chip { margin: 0; }

/* the monthly recap */
.recap-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.recap-cta-t { display: flex; align-items: center; gap: 12px; }
.recap-cta-t > .bi { font-size: var(--fs-30, 30px); color: var(--leaf); }
.recap-cta strong { display: block; font-family: var(--font-display); font-size: var(--fs-20, 20px); line-height: 1.15; }
.recap { position: fixed; inset: 0; z-index: 4000; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top, 0px)) 18px 18px; color: #fff; cursor: var(--cursor-hand, pointer); transition: background-color .5s ease; background-color: #8fd4f5; }
/* The sky goes from morning to night through the slides */
.recap[data-slide="1"] { background-color: #6ec1ee; } .recap[data-slide="2"] { background-color: #f7c46c; } .recap[data-slide="3"] { background-color: #f0895d; }
.recap[data-slide="4"] { background-color: #6b4fa0; } .recap[data-slide="5"] { background-color: #1c2350; }
.town { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; font: 800 var(--fs-19, 19px) var(--font-body); }
.town-sun { transform: translate(260px, 150px); transition: transform .9s ease, opacity .6s; }
.recap[data-slide="1"] .town-sun { transform: translate(700px, 90px); } .recap[data-slide="2"] .town-sun { transform: translate(1150px, 170px); }
.recap[data-slide="3"] .town-sun { transform: translate(1400px, 400px); } .recap[data-slide="4"] .town-sun, .recap[data-slide="5"] .town-sun { transform: translate(1500px, 700px); opacity: 0; }
.town-moon, .town-stars { opacity: 0; transition: opacity .6s; }
.recap[data-slide="4"] .town-stars, .recap[data-slide="5"] .town-stars, .recap[data-slide="5"] .town-moon { opacity: 1; }
.town-sea, .town-pumpkins { display: none; }
.town-dusk { fill: #141a55; opacity: 0; transition: opacity .6s; }
.recap[data-slide="2"] .town-dusk { opacity: .06; } .recap[data-slide="3"] .town-dusk { opacity: .16; } .recap[data-slide="4"] .town-dusk { opacity: .32; } .recap[data-slide="5"] .town-dusk { opacity: .42; }
.town-win { fill: #bfe3f2; stroke: #6b4a2f; stroke-width: 3; transition: fill .6s; } .town-lamp { fill: #fff3b0; transition: fill .6s; }
.recap[data-slide="3"] .town-win, .recap[data-slide="4"] .town-win, .recap[data-slide="5"] .town-win { fill: #ffd24d; }
.recap[data-slide="4"] .town-lamp, .recap[data-slide="5"] .town-lamp { fill: #ffe27a; }
.town-cloud { animation: town-drift var(--t) linear infinite alternate; } @keyframes town-drift { to { transform: translateX(240px); } }
.town-smoke { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; animation: town-smoke 4.8s ease-out infinite; } @keyframes town-smoke { 15% { opacity: .7; } to { transform: translate(26px, -110px) scale(2); opacity: 0; } }
.town-fall { animation: town-fall 8s linear infinite; opacity: 0; } @keyframes town-fall { 8% { opacity: 1; } 90% { opacity: 1; } to { transform: translate(90px, 340px) rotate(420deg); opacity: 0; } }
.town-walk { animation: town-walk var(--t) linear infinite; } @keyframes town-walk { 48%, 50% { transform: translateX(var(--d)); } 98%, 100% { transform: translateX(0); } }
.town-face { animation: town-face var(--t) step-end infinite; } @keyframes town-face { 0% { transform: scaleX(1); } 49% { transform: scaleX(-1); } 99% { transform: scaleX(1); } }
.town-bob { animation: town-bob 2.6s ease-in-out infinite; } .town-bob.fast { animation-duration: .5s; } @keyframes town-bob { 50% { transform: translateY(-3px); } }
.town-leg { transform-origin: 0 -30px; animation: town-leg .5s ease-in-out infinite alternate; } .town-leg.b { animation-direction: alternate-reverse; } @keyframes town-leg { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
.town-wave { transform-origin: 21px -54px; animation: town-wave 3.4s ease-in-out infinite; } @keyframes town-wave { 0%, 60%, 100% { transform: none; } 70%, 90% { transform: rotate(-150deg); } 80% { transform: rotate(-115deg); } }
.town-eyes { transform-origin: 0 -80px; animation: town-blink 4.2s linear infinite; } @keyframes town-blink { 0%, 95%, 100% { transform: none; } 97% { transform: scaleY(.1); } }
.town-say { opacity: 0; animation: town-say 11s ease infinite; } .town-say text { fill: #3b2a1a; } @keyframes town-say { 3%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
/* Halloween: a full moon over a purple evening, and pumpkins along the street (Sky Islands is in sky.css) */
html[data-season="halloween"] .recap { background-color: #2a1450; } html[data-season="halloween"] .recap[data-slide="1"] { background-color: #3a1a5e; }
html[data-season="halloween"] .recap[data-slide="2"] { background-color: #6b2a5a; } html[data-season="halloween"] .recap[data-slide="3"] { background-color: #a8401a; }
html[data-season="halloween"] .recap[data-slide="4"] { background-color: #22103a; } html[data-season="halloween"] .recap[data-slide="5"] { background-color: #0f0820; }
html[data-season="halloween"] :is(.town-sun, .town-bite) { display: none; } html[data-season="halloween"] .town-pumpkins { display: inline; }
html[data-season="halloween"] .recap :is(.town-moon, .town-stars) { opacity: 1; }
html[data-season="halloween"] .recap .town-dusk { fill: #1a0a30; opacity: .36; } html[data-season="halloween"] .recap .town-win { fill: #ff9f2e; } html[data-season="halloween"] .recap .town-lamp { fill: #ffb84d; }
html[data-season="halloween"] .recap-card { background: rgba(26, 12, 46, .92); border-color: #f08c00; } html[data-season="halloween"] .recap-big { color: #ff9f2e; }
.recap-bars { position: relative; display: flex; gap: 5px; max-width: 640px; width: 100%; margin: 0 auto; }
.recap-bars i { flex: 1; height: 6px; border-radius: 9px; overflow: hidden; background: rgba(43, 33, 25, .4); box-shadow: 0 0 0 1px rgba(255, 255, 255, .45); }
.recap-bars b { display: block; width: 0; height: 100%; background: #fff; }
.recap-bars b.done { width: 100%; } .recap-bars b.run { animation: recap-run 4.5s linear forwards; }
@keyframes recap-run { to { width: 100%; } }
.recap-x { position: absolute; top: max(26px, env(safe-area-inset-top, 0px)); right: 16px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .25); }
/* (high up on the screen, so the town stays in view under it) */
.recap-stage { position: relative; flex: 1; display: grid; place-items: start center; min-height: 0; padding-top: 5vh; text-align: center; }
.recap-card { width: min(640px, 100%); padding: 22px 24px 24px; border-radius: 22px; background: rgba(43, 33, 25, .9); border: 3px solid #8a5a3a; box-shadow: 0 14px 34px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 224, 138, .22); animation: recap-pop .5s cubic-bezier(.3, 1.5, .6, 1); }
@keyframes recap-pop { from { transform: translateY(30px) scale(.9); opacity: 0; } }
.recap-k { font-family: var(--font-display); font-size: clamp(20px, 5vw, 28px); font-weight: 600; opacity: .92; }
.recap-big { font-family: var(--font-display); font-size: clamp(56px, min(19vw, 15vh), 150px); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; color: #ffe08a; text-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.recap-text { font-family: var(--font-display); font-size: clamp(38px, 10vw, 76px); font-weight: 700; line-height: 1.1; text-wrap: balance; text-shadow: 0 4px 0 rgba(0, 0, 0, .22); margin: 8px 0; }
.recap-unit { font-family: var(--font-display); font-size: clamp(20px, 5vw, 30px); font-weight: 600; }
.recap-sub { margin-top: 12px; font-size: clamp(15px, 3.6vw, 19px); font-weight: 700; }
.recap-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.recap-tiles div { padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.recap-tiles b { display: block; font-family: var(--font-display); font-size: clamp(22px, 6vw, 32px); }
.recap-tiles span { font-size: var(--fs-13, 13px); font-weight: 700; }
.recap-hint { position: relative; align-self: center; padding: 3px 14px; border-radius: 999px; font-size: var(--fs-13, 13px); font-weight: 700; background: rgba(43, 33, 25, .75); }
@media (prefers-reduced-motion: reduce) { .idle-alarm, .recap-bars b.run, .recap-card, .town * { animation: none; } .recap-bars b.run { width: 100%; } .town-smoke, .town-fall { display: none; } .town-say { opacity: 1; } }

/* ---------- Items found (test): the pickup reader's try-out (test sites) ---------- */
.pk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.pk-stat {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--wood-2); border: 1px solid var(--wood-line-2);
}
.pk-stat > i { font-size: 1.25rem; color: var(--loot); }
.pk-stat.exp > i { color: var(--exp); }
.pk-stat b { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.pk-stat span, .pk-sub { font-size: .78rem; color: var(--muted); }
.pk-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px;
  max-height: 300px; overflow: auto; padding: 4px 2px;
}
.pk-item {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px;
  background: var(--wood-2); border: 1px solid var(--wood-line-2); transition: transform .15s ease;
}
.pk-item:hover { transform: translateY(-2px); }
.pk-item-text { min-width: 0; }
.pk-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-slot { position: relative; }
.pk-qty {   /* (the number on the icon, as in the game's inventory) */
  position: absolute; right: -4px; bottom: -5px; min-width: 18px; padding: 0 4px; border-radius: 9px;
  font: 700 .7rem/16px var(--font-body); text-align: center; color: #fff; background: #1d1d20; border: 1px solid #6b6b73;
}
.pk-plus {
  position: absolute; left: 22px; top: -4px; pointer-events: none; font: 700 .85rem var(--font-display);
  color: var(--gain); text-shadow: 0 1px 0 rgba(0, 0, 0, .5); opacity: 0; animation: pk-float 1.4s ease-out;
}
.pk-new { animation: pk-pop .55s cubic-bezier(.2, 1.6, .4, 1), pk-glow 1.6s ease-out; }
.pk-bump { animation: pk-bump .5s ease-out; }
.pk-head { font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.pk-feed { max-height: 300px; overflow: auto; }
.pk-msg {
  display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 6px; font-size: .88rem;
  border-left: 3px solid transparent; border-bottom: 1px solid var(--wood-line-2);
}
.pk-msg.pk-k-exp { border-left-color: var(--exp); }
.pk-msg.pk-k-mesos { border-left-color: var(--meso); }
.pk-msg.pk-k-item { border-left-color: var(--loot); }
.pk-said { flex: 1; min-width: 0; }
.pk-when { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.pk-in { animation: pk-in .45s ease-out, pk-glow 1.6s ease-out; }
.pk-kind {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 1.1rem;
  background: var(--wood-3); border: 1px solid var(--wood-line-2);
}
.pk-kind.exp { color: var(--exp); }
.pk-kind.miss { color: var(--bad); }
@keyframes pk-pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pk-glow { 0% { box-shadow: 0 0 0 2px var(--gain), 0 0 14px var(--gain); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes pk-bump { 0% { transform: scale(1); } 35% { transform: scale(1.6); background: var(--gain); } 100% { transform: scale(1); } }
@keyframes pk-float { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
@keyframes pk-in { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pk-new, .pk-bump, .pk-in, .pk-plus, .pk-item:hover { animation: none; transform: none; }
}

/* The Items found pop-out (test sites): next to the game, read at a glance. Big numbers, plain rows, strong contrast;
   an equip found shows big on top, in gold (pickupsEquipFx). */
.pkp-bigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pkp-bigs > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); min-width: 0; }
.pkp-bigs b {
  display: block; font: 700 1.9rem/1.05 var(--font-display); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pkp-bigs .exp { color: var(--exp); }
.pkp-bigs .meso { color: var(--meso); }
.pkp-bigs span { display: flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: rgba(255, 255, 255, .72); }
.pkp-bigs img { width: 16px; height: 16px; image-rendering: pixelated; }
.pkp-sub { margin: 8px 2px 14px; font-size: .85rem; color: rgba(255, 255, 255, .72); }
.pkp-sub b { color: #fff; font-variant-numeric: tabular-nums; }
.pkp-head {
  display: flex; justify-content: space-between; align-items: baseline; margin: 2px 2px 6px;
  font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .62);
}
.pkp-head span { font-weight: 600; letter-spacing: 0; text-transform: none; }
.pkp-icon {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 6px; font-size: .85rem;
  background: #2a2240; color: rgba(255, 255, 255, .8);
}
.pkp-icon img { max-width: 24px; max-height: 24px; image-rendering: pixelated; }
.pkp-feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 14px; }  /* (long names: cut off, the time stays) */
.pkp-msg { display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 6px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.pkp-msg:nth-child(2) { opacity: .9; }
.pkp-msg:nth-child(3) { opacity: .78; }
.pkp-msg:nth-child(4) { opacity: .66; }
.pkp-msg:nth-child(5) { opacity: .54; }
.pkp-msg.pk-k-exp b { color: var(--exp); }
.pkp-msg.pk-k-mesos b { color: var(--meso); }
.pkp-msg.pk-k-equip { background: #2a2112; box-shadow: inset 0 0 0 1px #8a6a1e; }
.pkp-msg.pk-k-equip b { color: #ffe08a; }
.pkp-msg.pk-k-scroll { box-shadow: inset 0 0 0 1px #6a4fb0; }
.pkp-msg.pk-in { animation: pkp-in .45s cubic-bezier(.2, 1.4, .4, 1); }
.pkp-said { flex: 1; min-width: 0; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkp-tier { flex: none; margin-left: -2px; padding: 1px 5px; border-radius: 5px; font-size: .7rem; font-weight: 800; color: #1d0f3a; background: #b48cff; }
.pkp-msg.pkp-again { opacity: .5; }
.pkp-again-tag { flex: none; padding: 1px 5px; border-radius: 5px; font-size: .7rem; font-weight: 800; color: #e6dcff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.pkp-tier-q { color: #e6dcff; background: transparent; box-shadow: inset 0 0 0 1px #8c6cd8; }
.pkp-when { font-size: .74rem; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.pkp-miss { color: #ff9a90; }
.pkp-empty { padding: 24px 8px; text-align: center; color: rgba(255, 255, 255, .65); }
.pkp-none { padding: 4px 2px; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.pkp-spot {
  position: fixed; left: 10px; right: 10px; top: 10px; z-index: 10; height: 236px; overflow: hidden; pointer-events: none;
  display: grid; place-items: center; border-radius: 16px; background: #2a1f08; border: 2px solid #ffcf4a;
  box-shadow: inset 0 0 40px rgba(255, 207, 74, .25), 0 12px 34px rgba(0, 0, 0, .6); animation: pkp-life 4.6s ease forwards;
}
.pkp-rays {
  position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 207, 74, .28) 0 10deg, transparent 10deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%); mask: radial-gradient(circle, #000 10%, transparent 62%);
  animation: pkp-spin 9s linear infinite;
}
.pkp-sp { position: absolute; width: 7px; height: 7px; background: #fff3cf; opacity: 0; transform: rotate(45deg); animation: pkp-twinkle 1.5s ease-in-out infinite; }
.pkp-sp:nth-of-type(1) { left: 14%; top: 18%; animation-delay: .1s; }
.pkp-sp:nth-of-type(2) { left: 80%; top: 14%; animation-delay: .6s; }
.pkp-sp:nth-of-type(3) { left: 88%; top: 70%; animation-delay: 1s; }
.pkp-sp:nth-of-type(4) { left: 22%; top: 78%; animation-delay: .35s; }
.pkp-sp:nth-of-type(5) { left: 62%; top: 86%; animation-delay: 1.2s; }
.pkp-sp:nth-of-type(6) { left: 40%; top: 8%; animation-delay: .8s; }
.pkp-spot-in {
  position: relative; max-width: 100%; box-sizing: border-box; padding: 0 14px; display: flex; flex-direction: column;
  align-items: center; gap: 4px; text-align: center; animation: pkp-drop .6s cubic-bezier(.2, 1.5, .4, 1);
}
.pkp-kick {
  padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #ffcf4a; background: #3d2e08; border: 1px solid #8a6a1e;
}
.pkp-big { width: 64px; height: 64px; display: grid; place-items: center; font-size: 2.4rem; color: #ffe08a; }
.pkp-big img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; animation: pkp-hop 1.1s ease-in-out infinite alternate; }
.pkp-eqname {
  max-width: 100%; font: 700 1.5rem/1.1 var(--font-display); color: #fff3cf;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pkp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pkp-chips span { padding: 2px 7px; border-radius: 6px; font-size: .75rem; font-weight: 800; color: #2a1d00; background: #ffcf4a; }
.pkp-eqline { font-size: .78rem; color: #f0d68e; }
[data-card] { cursor: help; }
.pkp-msg[data-card]:hover, .pkp-msg[data-card]:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
/* S1: the finds in sections: equips as rows, scrolls counted per tier, those still "which?" at the end */
.pkp-sec {
  display: flex; align-items: center; gap: 8px; margin: 2px 2px 6px; font-size: .74rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255, 255, 255, .62);
}
.pkp-sec span { padding: 0 6px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; letter-spacing: 0; }
.pkp-sec::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.pkp-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; margin-bottom: 12px; }
.pkp-eqrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 10px; background: #231a10; border: 1px solid #5d4718; }
.pkp-eqrow:hover, .pkp-eqrow:focus-visible { border-color: #ffcf4a; outline: none; }
.pkp-eqpic, .pkp-scpic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #3a2d10; color: #ffe08a; }
.pkp-eqpic img { max-width: 28px; max-height: 28px; image-rendering: pixelated; }
.pkp-eqn, .pkp-scn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pkp-eqn b, .pkp-scn b, .pkp-scn { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkp-eqn small, .pkp-scn small { font-size: .72rem; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkp-x { flex: none; font: 700 .95rem var(--font-display); }
.pkp-vd { flex: none; padding: 2px 7px; border-radius: 8px; font-size: .72rem; font-weight: 800; }
.pkp-vd.up { background: #23401d; color: #9ff08a; }
.pkp-vd.dn { background: #4a1f1f; color: #ffb0a8; }
.pkp-vd.eq { background: #2c2440; color: #e6dcff; }
.pkp-vd.q { color: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.pkp-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.pkp-tc { padding: 5px 4px; border-radius: 10px; text-align: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--tc); }
.pkp-tc b { display: block; font: 700 1.1rem/1 var(--font-display); color: var(--tc-ink); }
.pkp-tc span { font-size: .64rem; font-weight: 800; color: rgba(255, 255, 255, .6); }
.pkp-tc.none { opacity: .45; }
.t-lesser { --tc: #3d6fd0; --tc-ink: #8fb6ff; }
.t-intermediate { --tc: #b0563f; --tc-ink: #ff9f86; }
.t-greater { --tc: #b38a2a; --tc-ink: #ffcf4a; }
.t-chaos { --tc: #6d6a78; --tc-ink: #c9c6d3; }
.pkp-scrow { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 6px; border-radius: 9px; background: rgba(255, 255, 255, .04); }
.pkp-scrow:hover, .pkp-scrow:focus-visible, .pkp-which:hover, .pkp-which:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.pkp-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--tc-ink); }
.pkp-scpic { width: 26px; height: 26px; background: transparent; }
.pkp-scpic img { max-width: 24px; max-height: 24px; image-rendering: pixelated; }
.pkp-which { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 9px; border: 1px dashed #8c6cd8; color: #e6dcff; }
.pkp-q { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 6px; background: #2c2440; font-weight: 800; }
/* H1: the card of a find pointed at, the way the game draws its own item cards */
.pkp-card {
  position: fixed; z-index: 20; width: 250px; max-width: calc(100vw - 12px); box-sizing: border-box; pointer-events: none;
  background: rgba(21, 24, 64, .97); border: 1px solid #6d74b8; box-shadow: 0 0 0 1px #0a0c26, 0 12px 30px rgba(0, 0, 0, .6);
  color: #fff; font: 12px/1.35 Arial, Helvetica, sans-serif; animation: pkp-card-in .14s ease-out;
}
.pkp-card[hidden] { display: none; }
.gcd-t { display: flex; align-items: center; gap: 6px; padding: 7px 10px 6px; font-weight: 700; font-size: var(--fs-14, 14px); }
.gcd-t i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #8fc7ff; }
.gcd-top { display: flex; gap: 10px; padding: 0 10px 8px; }
.gcd-pic { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: linear-gradient(#f4f4f4, #cfd3dc); border: 1px solid #9aa0c4; color: #3a3f6a; font-size: 1.6rem; }
.gcd-pic img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.gcd-req { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-content: start; font-size: var(--fs-11, 11px); line-height: 13px; }
.gcd-req .off { color: #5f6599; }
.gcd-desc { font-size: var(--fs-12, 12px); color: #e6e8ff; }
.gcd-jobs { display: flex; flex-wrap: wrap; gap: 3px; padding: 0 10px 7px; font-size: var(--fs-10, 10px); font-weight: 700; color: #5f6599; }
.gcd-jobs .on { color: #ff9d3c; }
.pkp-card hr { border: 0; border-top: 1px solid #c9ccef; margin: 0 10px 6px; opacity: 1; }
.gcd-st { padding: 0 10px 6px; line-height: 16px; }
.gcd-st div::before { content: "·"; color: #ff9d3c; margin-right: 4px; font-weight: 700; }
.gcd-st .up { color: #7ef08a; }
.gcd-st .dn { color: #ff8a8a; }
.gcd-note { margin: 2px 10px 8px; padding: 5px 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); font: 600 var(--fs-11, 11px) var(--font-body); color: #c9ccef; }
.gcd-note.warn { color: #ffb0a8; }
/* L1, test sites: Items found next to the EXP, in the pop-out's look */
.live-cols { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.live-main { flex: 999 1 600px; min-width: 0; }
.live-side { flex: 1 1 330px; min-width: 0; max-width: 420px; position: sticky; top: 1rem; }
.live-side:empty { display: none; }
@media (max-width: 991px) { .live-side { max-width: none; position: static; } }
/* the check after pointing at an item in the game (pickupsCardCheck) */
.pkp-check {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 15; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 12px; background: #1d1530; border: 1px solid #6b5a8c; box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
  animation: pkp-check-in .25s ease-out, pkp-check-out .4s ease-in 3.1s forwards; pointer-events: none;
}
.pkp-check i { font-size: 1.25rem; color: rgba(255, 255, 255, .7); }
.pkp-check.ok { border-color: #4cc23a; }
.pkp-check.ok i { color: #8fe07a; }
.pkp-check.bad { border-color: #ff9a90; }
.pkp-check.bad i { color: #ff9a90; }
.pkp-check span { min-width: 0; display: flex; flex-direction: column; }
.pkp-check b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkp-check small { font-size: .75rem; color: rgba(255, 255, 255, .7); }
@keyframes pkp-check-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pkp-check-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes pkp-card-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes pkp-flash { 0% { box-shadow: inset 0 0 0 3px #ffcf4a, inset 0 0 60px rgba(255, 207, 74, .45); } 100% { box-shadow: inset 0 0 0 0 rgba(255, 207, 74, 0); } }
@keyframes pkp-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pkp-eq-pop { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 70% { transform: scale(1.15) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes pkp-gold { 0%, 40% { box-shadow: 0 0 0 2px #ffcf4a, 0 0 22px #ffcf4a; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes pkp-life { 0% { opacity: 0; transform: scale(.92); } 8% { opacity: 1; transform: scale(1.02); } 12% { transform: none; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes pkp-spin { to { transform: rotate(360deg); } }
@keyframes pkp-twinkle { 0%, 100% { opacity: 0; transform: rotate(45deg) scale(.3); } 50% { opacity: 1; transform: rotate(45deg) scale(1); } }
@keyframes pkp-drop { 0% { transform: translateY(-46px) scale(.8); opacity: 0; } 60% { transform: translateY(5px); opacity: 1; } 100% { transform: none; } }
@keyframes pkp-hop { from { transform: translateY(3px); } to { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .pkp-msg.pk-in, .pkp-spot, .pkp-rays, .pkp-spot-in, .pkp-big img, .pkp-card, .pkp-check { animation: none; }
  .pkp-sp { display: none; }
}

/* T2+, test sites trying the pickup reader: the one pop-out with EXP and Items found (renderT2Exp, renderT2Items), in the
   site's own look: its frames are the site's windows (.window, .window-title), and the colours inside are the windows' own
   names, so it follows the season the site is in (sky.css, Halloween). The inventory and chat are also on the live page (P1).
   --t2-accent: the selected tab and new finds, orange, or gold for Sky Islands like its menu. */
body.pip-t2 {
  margin: 0; padding: 10px; min-height: 100vh; box-sizing: border-box; overflow-x: hidden; font: 14px/1.35 var(--font-body); color: #3b2a1a;
  background: linear-gradient(180deg, #2e2350 0%, #5a3466 30%, #a8506a 62%, #e8925a 100%) fixed;
  --ink-strong: #2b1a0c;
}
.t2 { display: flex; flex-direction: column; gap: 10px; }
:is(.t2-frame, .t2-chat, .live-p1, .cp) { --t2-accent: #e8660c; --t2-on: #fff; --t2-accent-line: #b4500a; }
html[data-season="sky"] :is(.t2-frame, .t2-chat, .live-p1, .cp) { --t2-accent: #ffd24a; --t2-on: #3a2600; --t2-accent-line: #c98a1a; }
.t2-frame { position: relative; margin: 0; color: var(--ink); }
.t2-bar {
  justify-content: flex-start; flex-wrap: nowrap; gap: 8px; padding: 5px 10px;
  font: 600 var(--fs-12, 12px) var(--font-display); letter-spacing: .06em; text-transform: uppercase;
}
.t2-dim { opacity: .85; font-weight: 600; text-transform: none; letter-spacing: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t2-time { margin-left: auto; letter-spacing: .03em; white-space: nowrap; }
.t2-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #4cc23a; animation: t2-pulse 1.6s infinite; }
.t2-body { padding: 26px 8px 8px; }
.t2-expbar { position: relative; height: 22px; border-radius: 6px; background: #5b5b60; border: 2px solid #3a3a3e; overflow: hidden; }
.t2-expbar > i { position: absolute; left: 0; top: 0; bottom: 0; background: #9bd12e; transition: width .7s cubic-bezier(.2, .9, .3, 1); }
.t2-shine { position: absolute; top: 0; bottom: 0; width: 60px; left: -60px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: t2-shine 2.6s ease-in-out infinite; }
.t2-exptext { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font: 800 var(--fs-12, 12px) var(--font-body); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 0 3px rgba(0, 0, 0, .6); }
.t2-exptext b { color: #f2fb7a; font-family: var(--font-display); }
#t2-floats { position: absolute; left: 10px; right: 10px; top: 34px; height: 0; pointer-events: none; z-index: 2; }
.t2-fl {
  position: absolute; top: 0; font: 700 var(--fs-22, 22px) var(--font-display); color: #ffb23e; -webkit-text-stroke: 1.5px #7a3a08;
  text-shadow: 0 2px 0 #7a3a08; animation: t2-fly 1.1s ease-out forwards; opacity: 0;
}
.t2-fl.meso { color: #ffd86b; }
.t2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.t2-st { padding: 5px 7px; border-radius: 8px; background: var(--wood-2); border: 1px solid var(--wood-line-2); min-width: 0; }
.t2-st small { display: block; font: 600 var(--fs-9_5, 9.5px) var(--font-display); letter-spacing: .08em; color: var(--muted); }
.t2-st b { display: block; font: 700 var(--fs-17, 17px)/1.15 var(--font-display); color: var(--ink-strong); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2-st.y0 { animation: t2-yA .6s ease-out; }
.t2-st.y1 { animation: t2-yB .6s ease-out; }
.t2-tabs { display: flex; gap: 2px; padding: 6px 8px 0; }
.t2-tab {
  position: relative; min-height: 26px; padding: 2px 11px; border-radius: 8px 8px 0 0; background: var(--wood-3); border: 1px solid var(--wood-line-2);
  border-bottom: 0; font: 600 var(--fs-12, 12px) var(--font-display); letter-spacing: .04em; color: var(--ink-2); cursor: var(--cursor-hand, pointer);
}
.t2-tab:hover { color: var(--ink-strong); }
.t2-tab.on { background: var(--t2-accent); color: var(--t2-on); border-color: var(--t2-accent-line); }
.t2-bang {
  position: absolute; right: -5px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #ffb23e; border: 1px solid #b4500a;
  font: 900 var(--fs-9, 9px)/12px var(--font-body); color: #3b2a1a; animation: t2-bob .8s ease-in-out infinite alternate;
}
.t2-red { height: 2px; background: var(--t2-accent); }
.t2-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 8px; max-height: 240px; overflow-y: auto; }
.t2-slot {
  position: relative; aspect-ratio: 1 / 1; border-radius: 6px; background: var(--wood-3); border: 1px solid var(--wood-line-2);
  display: grid; place-items: center; color: var(--ink-2); overflow: hidden;
}
.t2-slot[data-card] { cursor: help; }
.t2-slot[data-card]:hover, .t2-slot[data-card]:focus-visible { border-color: var(--wood-line); box-shadow: 0 0 0 1px var(--wood-line); outline: none; }
.t2-slot img { max-width: 32px; max-height: 32px; image-rendering: pixelated; position: relative; z-index: 1; }
/* how many: a small dark chip in the slot's corner (an outlined number blotted into the picture on the light slots; a
   span, not a b: the new look colours every b in a window as a heading, dark on the light look) */
.t2-n {
  position: absolute; right: 2px; bottom: 2px; z-index: 2; min-width: 15px; padding: 0 4px; border-radius: 5px;
  font: 700 var(--fs-10, 10px)/14px var(--font-body); font-variant-numeric: tabular-nums; text-align: center; color: #fff;
  background: rgba(24, 28, 42, .8); box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.t2-slot.t2-free { background: var(--wood); border-style: dashed; }
.t2-slot > .bi { position: relative; z-index: 1; font-size: var(--fs-18, 18px); }  /* (above a rare slot's glow, like the pictures) */
.t2-slot.which { border-style: dashed; border-color: #6a52d9; }
.t2-tier { position: absolute; right: 1px; top: 1px; z-index: 2; padding: 0 3px; border-radius: 3px; background: #6a52d9; color: #fff; font: 900 var(--fs-8, 8px)/12px var(--font-body); font-style: normal; }
.t2-slot.drop { animation: t2-drop .55s cubic-bezier(.3, 1.7, .5, 1); }
.t2-slot.rare { border-color: #a07a12; }
.t2-slot.rare::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(transparent 0 60%, rgba(244, 196, 48, .95) 75%, transparent 90%); animation: t2-spin 2.2s linear infinite; }
.t2-slot.rare::after { content: ""; position: absolute; inset: 2px; border-radius: 4px; background: #fff4d6; }
.t2-ribbon { position: absolute; right: 1px; top: 1px; z-index: 3; padding: 0 3px; border-radius: 3px; background: var(--t2-accent); color: var(--t2-on); font: 700 var(--fs-8, 8px)/12px var(--font-display); animation: t2-bob .7s ease-in-out infinite alternate; }
.t2-sp { position: absolute; z-index: 3; width: 5px; height: 5px; background: #ffb23e; transform: rotate(45deg); opacity: 0; animation: t2-tw 1s ease-in-out 3; }
.t2-sp:nth-of-type(1) { left: 3px; top: 5px; }
.t2-sp:nth-of-type(2) { right: 4px; top: 13px; animation-delay: .3s; }
.t2-sp:nth-of-type(3) { left: 13px; bottom: 4px; animation-delay: .6s; }
.t2-empty { grid-column: 1 / -1; padding: 22px 8px; text-align: center; font-size: var(--fs-13, 13px); color: var(--muted); }
.t2-chat {
  display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 7px 10px;
  color: var(--ink); font: 700 var(--fs-11_5, 11.5px)/1.4 var(--font-body); min-height: 70px;
}
.t2-chat span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2-chat .y { color: #a07a12; }
.t2-chat .b { color: #2f6fd6; }
.t2-chat .o { color: #c06a00; }
.t2-chat .again { opacity: .5; }
.t2-chat .in { animation: t2-chatin .35s ease-out; }
.t2-dimchat { color: var(--muted); }
#t2-banner { position: fixed; left: 0; right: 0; top: 8px; z-index: 30; display: flex; justify-content: center; pointer-events: none; }
.t2-banner {
  padding: 5px 14px; border-radius: 999px; background: #ffc83c; border: 2px solid #c98a1a; color: #3a2600; white-space: nowrap;
  font: 700 var(--fs-12, 12px) var(--font-display); letter-spacing: .04em; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); animation: t2-banner 2.6s ease forwards;
}
/* the check after pointing at an item: a cream note like the site's alerts */
body.pip-t2 .pkp-check, .live-p1 .pkp-check { background: #fff8ec; border: 2px solid #7a4f2a; color: #3b2a1a; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
html[data-season="sky"] :is(body.pip-t2, .live-p1) .pkp-check { background: #f1fafb; border-color: #1f8a98; color: #17343f; }
body.pip-t2 .pkp-check i, .live-p1 .pkp-check i, body.pip-t2 .pkp-check small, .live-p1 .pkp-check small { color: #7a6a58; }
body.pip-t2 .pkp-check.ok, .live-p1 .pkp-check.ok { border-color: #2f9a1f; }
body.pip-t2 .pkp-check.ok i, .live-p1 .pkp-check.ok i { color: #2f9a1f; }
body.pip-t2 .pkp-check.bad, .live-p1 .pkp-check.bad { border-color: #d23b2e; }
body.pip-t2 .pkp-check.bad i, .live-p1 .pkp-check.bad i { color: #d23b2e; }
@keyframes t2-pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 194, 58, .6); } 80%, 100% { box-shadow: 0 0 0 6px rgba(76, 194, 58, 0); } }
@keyframes t2-shine { 0% { left: -60px; } 70%, 100% { left: 110%; } }
@keyframes t2-fly { 0% { opacity: 0; transform: translateY(8px) scale(.5); } 20% { opacity: 1; transform: translateY(-4px) scale(1.2); } 100% { opacity: 0; transform: translateY(-34px) scale(1); } }
/* (the flash in the look's own colours: a pale flash lit up the dark look's tiles with white numbers on it) */
@keyframes t2-gA { 0% { background: color-mix(in srgb, var(--exp, #2f8a1f) 24%, var(--wood-2, #fff)); border-color: var(--exp, #2f8a1f); transform: scale(1.05); } }
@keyframes t2-gB { 0% { background: color-mix(in srgb, var(--exp, #2f8a1f) 24%, var(--wood-2, #fff)); border-color: var(--exp, #2f8a1f); transform: scale(1.05); } }
@keyframes t2-yA { 0% { background: color-mix(in srgb, var(--meso, #c06a00) 24%, var(--wood-2, #fff)); border-color: var(--meso, #c06a00); transform: scale(1.05); } }
@keyframes t2-yB { 0% { background: color-mix(in srgb, var(--meso, #c06a00) 24%, var(--wood-2, #fff)); border-color: var(--meso, #c06a00); transform: scale(1.05); } }
@keyframes t2-bob { to { transform: translateY(-3px); } }
@keyframes t2-drop { 0% { transform: translateY(-26px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes t2-spin { to { transform: rotate(360deg); } }
@keyframes t2-tw { 0%, 100% { opacity: 0; transform: rotate(45deg) scale(.3); } 50% { opacity: 1; transform: rotate(45deg) scale(1); } }
@keyframes t2-chatin { from { transform: translateY(-10px); opacity: 0; } }
@keyframes t2-banner { 0% { opacity: 0; transform: translateY(-20px) scale(.8); } 10% { opacity: 1; transform: scale(1.08); } 16% { transform: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  body.pip-t2 *, body.pip-t2 *::before, body.pip-t2 *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* P1, test sites trying the pickup reader: the live page laid out like the pop-out (app.js liveP1Html), in the site's own
   windows: Your EXP (what each reading adds flying up from the bar) next to What the tracker sees, the chart next to
   Items found as an inventory, the pickup messages below. */
.live-p1 { display: flex; flex-direction: column; gap: 16px; }
.live-p1 > :is(#live-alert, #live-idle, #board-ask, #live-goal, #live-track, #live-game):empty { display: none; }
.live-p1 > :is(#live-alert, #live-idle, #board-ask, #live-goal, #live-track, #live-game) > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.p1-loot { display: flex; flex-direction: column; gap: 8px; }
.p1-loot > .window { height: 100%; }
.p1-inv { flex: 1; display: flex; flex-direction: column; }
.p1-inv .t2-bar { padding: 7px 14px; font-size: var(--fs-15, 15px); }
.live-p1 .p1-inv { height: auto; flex: 1; }
.p1-inv .t2-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; padding: 10px 12px; max-height: 330px; flex: 1; align-content: start; }
.p1-inv .t2-tabs { padding: 8px 12px 0; }
.p1-barbox { position: relative; margin-top: 18px; }
.p1-floats { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; z-index: 2; }
.p1-floats .t2-fl { font-size: var(--fs-26, 26px); }
.live-p1 .preview video { max-height: 200px; object-fit: contain; }
.p1-chat { border: 0; border-radius: 0; padding: 0; background: transparent; font-size: var(--fs-13_5, 13.5px); min-height: 80px; }
.p1-chat span { white-space: normal; }
.p1-banner { position: fixed; left: 0; right: 0; top: 70px; z-index: 30; display: flex; justify-content: center; pointer-events: none; }
.p1-banner .t2-banner { font-size: var(--fs-15, 15px); padding: 8px 20px; }
.live-p1 #pkp-fx .pkp-check { left: 0; right: 0; bottom: 16px; margin: 0 auto; width: min(380px, calc(100vw - 32px)); }
@media (prefers-reduced-motion: reduce) {
  .live-p1 *, .live-p1 *::before, .live-p1 *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
/* Guilds (the Guild tab) */
.gl-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px; background: #fff8ec; border: 2px solid #b9894f; color: #3b2a1a; }
.gl-hero h1 { margin: 0 0 4px; font-family: var(--font-display); font-size: var(--fs-30, 30px); font-weight: 700; color: #3b2a1a; text-shadow: none; -webkit-text-stroke: 0; }
.gl-hero p { margin: 0 0 8px; color: #6f5c44; }
.gl-shield { flex: none; width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: var(--fs-32, 32px); color: #fff; background: linear-gradient(135deg, #7a52c7, #3b2a7a); border: 3px solid #f4c430; }
.gl-form { display: flex; gap: 8px; } .gl-form .form-control { min-width: 0; }
.gl-form .btn { flex: none; display: inline-flex; align-items: center; white-space: nowrap; }
.gl-tile span .bi { margin-right: 6px; color: var(--leaf); }
.gl-tile small { color: var(--muted); font-weight: 600; }
.gl-row + .gl-row { margin-top: 6px; }
.gl-right small { color: var(--muted); font-weight: 600; }
.gl-feed small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.gl-switches input { margin-right: 6px; }

/* the guild's banner: its own colours (the guild master picks them), white text on it, whatever season the site is in */
.gl-motd { flex: 1 1 280px; max-width: 440px; padding: 12px 14px; border-radius: 12px; background: rgba(15, 8, 30, .35); font-size: var(--fs-14, 14px); line-height: 1.45; }
.gl-motd b { display: block; margin-bottom: 3px; font-family: var(--font-display); font-size: var(--fs-12, 12px); letter-spacing: .1em; text-transform: uppercase; color: #ffd24a; }

/* the guild page's tabs: one per part, on the sky like the menu above (the selected one as the menu marks its page) */
@media (max-width: 575.98px) { }  /* (a phone: one row to swipe) */
.gl-panel { margin-top: 12px; animation: gl-panel .25s ease-out; }
@keyframes gl-panel { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .gl-panel { animation: none; } }
.gl-goal { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--wood-3); }
.gl-find { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.gl-find + .gl-find { margin-top: 6px; }
.gl-find.equip { border-color: #e0b22a; }
.gl-find b { display: block; font-size: var(--fs-14, 14px); } .gl-find small { color: var(--muted); font-weight: 600; }

/* titles: the tier's colours */
.gl-title { display: inline-block; padding: 0 8px; border-radius: 999px; border: 1.5px solid; font: 700 var(--fs-11_5, 11.5px) var(--font-display); line-height: 18px; vertical-align: 1px; white-space: nowrap; }
.gl-title.t-bronze { background: #fbeee3; border-color: #c27a3a; color: #6a3a12; }
.gl-title.t-silver { background: #eef2f4; border-color: #9aa6ad; color: #3a4a52; }
.gl-title.t-gold { background: #fff4d6; border-color: #e0b22a; color: #5a4300; }
.gl-title.t-legendary { background: linear-gradient(90deg, #8a4fd8, #d84f9a); border-color: #5a2fa8; color: #fff; }

/* guild achievements */
@keyframes gl-ring { from { stroke-dasharray: 0 314; } }
.gl-tier small { font-size: var(--fs-12, 12px); font-weight: 700; }
/* the guild's events (app.js guildEventsPanel) */
.gh-events { display: grid; gap: 8px; }
.gh-event { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px;
  background: var(--wood-2); border: 2px solid var(--wood-line-2); }
.gh-ev-day { display: grid; justify-items: center; border-radius: 10px; background: var(--leaf); color: #fff; padding: 4px 0; line-height: 1.1; }
.gh-ev-day b { font: 800 var(--fs-20, 20px) var(--font-display); } .gh-ev-day small { font: 800 var(--fs-11, 11px) var(--font-body); text-transform: uppercase; }
.gh-ev-what { display: grid; min-width: 0; } .gh-ev-what b { font: 700 var(--fs-15, 15px) var(--font-display); color: var(--ink-strong); }
.gh-ev-what small { color: var(--muted); font-weight: 700; } .gh-ev-what span { font-size: var(--fs-13, 13px); color: var(--ink-2); }
.gh-ev-add { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--wood-line-2); }
.gh-about { white-space: normal; line-height: 1.55; }
/* the guild's own site in the guild settings (app.js guildSiteSettings) */
.gs-set-row { display: grid; gap: 6px; }
.gs-check { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13, 13px); font-weight: 700; color: var(--ink-2); }
.gs-set-thumb { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; }
.gs-set-gallery { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gs-set-gallery span { display: grid; gap: 2px; justify-items: center; }
.gs-set-gallery img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; }
/* the guild's Discord: per kind of message its switch and, if the guild master likes, a channel of its own */
.gl-hooks { display: grid; gap: 8px; margin-top: 12px; }
.gl-hook-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto; gap: 8px; align-items: center; }
.gl-hook-row label { font-size: var(--fs-13, 13px); font-weight: 700; color: var(--ink-2); }
.gl-hook-row .btn-link { grid-column: 2 / -1; justify-self: start; }
@media (max-width: 640px) { .gl-hook-row { grid-template-columns: minmax(0, 1fr) auto; } .gl-hook-row label { grid-column: 1 / -1; } }
.gm-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gm-cat { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; color: #fff; display: inline-flex; align-items: center; gap: 6px;
  font: 700 var(--fs-13, 13px) var(--font-display); cursor: var(--cursor-hand, pointer); filter: saturate(.45) brightness(1.05); opacity: .8;
  transition: filter .15s, opacity .15s, transform .15s; }
.gm-cat small { background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 0 6px; font: 800 var(--fs-11, 11px) var(--font-body); }
.gm-cat.on, .gm-cat:hover { filter: none; opacity: 1; transform: translateY(-1px); }
.gm-cat:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.gm-all { background: #6b5d47; } .gm-together { background: #2f9c8f; } .gm-exp { background: #4b6fd8; }
.gm-levels { background: #d0662f; } .gm-mesos { background: #b98d10; } .gm-finds { background: #8a4fc9; }
.gm-shelf { margin-bottom: 16px; }
.gm-shelf-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
.gm-shelf-h small { font: 700 var(--fs-12, 12px) var(--font-body); color: var(--muted); }
.gm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; color: #fff; font: 700 var(--fs-15, 15px) var(--font-display); }
.gm-medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.gm-medal { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 12px; border-radius: 14px; color: #fff; overflow: hidden;
  min-width: 0; box-shadow: 0 6px 16px -10px rgba(30, 15, 0, .6); transition: transform .15s; }
.gm-medal:hover { transform: translateY(-2px); }
.gm-medal.t-bronze { background: linear-gradient(140deg, #d08a52, #8d4f22); }
.gm-medal.t-silver { background: linear-gradient(140deg, #b9c4d2, #66748a); }
.gm-medal.t-gold { background: linear-gradient(140deg, #f3cf5b, #b07a14); }
.gm-medal.t-legendary { background: linear-gradient(140deg, #b46cf0, #5b2aa0 60%, #2f1660); }
.gm-medal.earned::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-100%);
  animation: gm-shine 3.6s ease-in-out infinite; }
.gm-medal.earned.t-legendary { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 0 0 18px rgba(180, 108, 240, .55); }
@keyframes gm-shine { 60%, 100% { transform: translateX(100%); } }
.gm-rib { position: absolute; right: -30px; top: 12px; transform: rotate(35deg); background: rgba(255, 255, 255, .9); color: #3a2a14;
  font: 800 var(--fs-9_5, 9.5px) var(--font-body); letter-spacing: .06em; padding: 2px 32px; }
.gm-ic { font-size: var(--fs-28, 28px); line-height: 1; text-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.gm-medal b { font: 600 var(--fs-16, 16px)/1.15 var(--font-display); padding-right: 34px; }
.gm-medal small { font-size: var(--fs-12_5, 12.5px); line-height: 1.35; opacity: .95; }
.gm-prog { height: 7px; border-radius: 6px; background: rgba(0, 0, 0, .25); overflow: hidden; }
.gm-prog i { display: block; height: 100%; border-radius: 6px; background: #fff; }
.gm-gift { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font: 800 var(--fs-11_5, 11.5px)/19px var(--font-body); white-space: nowrap; }
.gm-gift.lite { background: #e3f4d2; color: #2f6a12; } .gm-gift.plus { background: #ffc83c; color: #3a2600; } .gm-gift.none { background: rgba(0, 0, 0, .22); color: inherit; }
.gm-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-leg { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; font-size: var(--fs-13, 13px); color: #fff; }
.gm-leg b { font: 700 var(--fs-13, 13px) var(--font-display); }
.gm-leg.t-bronze { background: #b0682e; } .gm-leg.t-silver { background: #7d8a93; } .gm-leg.t-gold { background: #c9961a; } .gm-leg.t-legendary { background: linear-gradient(135deg, #8a4fd8, #d84f9a); }
.gm-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font: 800 var(--fs-11, 11px) var(--font-body); }
.gm-foot span:last-child { background: rgba(0, 0, 0, .22); border-radius: 999px; padding: 0 7px; }
.gm-title { align-self: flex-start; font: 700 var(--fs-11, 11px) var(--font-body); background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 6px; padding: 0 6px; }
@media (prefers-reduced-motion: reduce) { .gm-medal.earned::after { animation: none; display: none; } .gm-cat, .gm-medal { transition: none; } }
.gl-ach-icon.t-silver { background: #eef2f4; border-color: #9aa6ad; }
.gl-ach-icon.t-legendary { background: linear-gradient(135deg, #efe3ff, #ffe3f4); border-color: #8a4fd8; }

/* the editor */
.gl-emblems { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-pick { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--wood-line-2); background: var(--wood-2); display: grid; place-items: center;
  color: #7a52c7; font-size: var(--fs-22, 22px); cursor: var(--cursor-hand, pointer); padding: 0; }
.gl-pick img { max-width: 32px; max-height: 32px; image-rendering: pixelated; }
.gl-pick.on { border-color: var(--leaf); box-shadow: 0 0 0 2px #ffd24a; }

.gl-discord { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #313338; color: #dbdee1; font-size: var(--fs-13_5, 13.5px); }
.gl-msg { display: flex; gap: 10px; } .gl-msg b, .gl-msg strong { color: #f2f3f5; }
.gl-bot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #5865f2; color: #fff; }
.gl-bot-tag { padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: var(--fs-10, 10px); font-weight: 700; }
.gl-join { justify-content: flex-start; }

/* ---------- the guild hall (app.js guildHtml): the guild's banner on top, a menu down the side, one part at a time ----------
   The banner and logo are the guild's own (a town drawn for the tracker, or its own pictures), so they keep their colours in
   every season; everything else is the site's windows. */
.gh-hero { position: relative; border-radius: 20px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .7); box-shadow: 0 14px 34px rgba(6, 30, 50, .3); background: #1b1438; }
.gh-art { position: relative; height: 260px; overflow: hidden; }
.gh-town, .gh-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(8, 14, 30, .75) 100%); pointer-events: none; }
.gh-id { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; margin-top: -96px; padding: 0 24px 20px; z-index: 1; }
.gh-logo { position: relative; flex: none; width: 150px; height: 150px; }
.gh-logo svg { position: absolute; inset: 0; }
.gh-logo circle { fill: none; stroke-width: 8; }
.gh-ring-bg { stroke: rgba(255, 255, 255, .3); }
.gh-ring { stroke: #ffd24a; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 210, 74, .7)); animation: gh-ring 1.4s cubic-bezier(.2, .9, .3, 1); }
@keyframes gh-ring { from { stroke-dasharray: 0 465; } }
.gh-logo-in { position: absolute; inset: 16px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 40% 35%, #fffbe8, #ffe7a6);
  border-radius: 30px; border: 5px solid #ffd24a; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); color: #7a52c7; font-size: var(--fs-52, 52px); }
.gh-logo-in img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.gh-logo-in img.gh-own { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.gh-frame-ring .gh-logo-in { border-radius: 50%; border-color: #fff; box-shadow: 0 0 0 4px #1f9aa8, 0 10px 24px rgba(0, 0, 0, .35); }
.gh-frame-arcane .gh-logo-in { border-radius: 22px; border-color: #d8d0ff; box-shadow: 0 0 0 4px #7a5ad8, 0 0 26px #b9a2ff, 0 10px 24px rgba(0, 0, 0, .35); }
.gh-lv { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; background: #ffd24a; border: 2px solid #c98a1a;
  color: #3a2600; font: 700 var(--fs-14, 14px) var(--font-display); white-space: nowrap; }
.gh-name { flex: 1 1 340px; min-width: 0; padding-bottom: 6px; color: #fff; }
.gh-name h1 { margin: 0; font: 700 clamp(30px, 4.4vw, 46px)/1.05 var(--font-display); color: #fff; -webkit-text-stroke: 0; text-shadow: 0 3px 10px rgba(0, 0, 0, .55); }
.gh-motto { margin: 6px 0 0; font-weight: 700; font-style: italic; color: #f4f8ff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.gh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gh-chips span { padding: 4px 11px; border-radius: 999px; background: rgba(8, 14, 30, .55); font-size: var(--fs-13, 13px); font-weight: 800; }
.gh-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }

/* the moving banner */
.gh-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gh-fx i { position: absolute; left: var(--x); top: -20px; display: block; }
.gh-fx-snow i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .9; animation: gh-fall calc(6s + var(--d) * 1s) linear calc(var(--d) * -1s) infinite; transform: scale(var(--s)); }
.gh-fx-petals i { width: 10px; height: 7px; border-radius: 60% 0; background: #ffb8d8; animation: gh-fall calc(8s + var(--d) * 1s) linear calc(var(--d) * -1s) infinite; }
.gh-fx-leaves i { width: 12px; height: 8px; border-radius: 0 80%; background: #f08a2c; animation: gh-fall calc(9s + var(--d) * 1s) linear calc(var(--d) * -1s) infinite; }
.gh-fx-stars i { top: calc(var(--x) * .5); width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: gh-twinkle calc(2s + var(--d) * .3s) ease-in-out calc(var(--d) * -.4s) infinite; }
.gh-fx-clouds i { top: calc(10px + var(--d) * 9px); left: -200px; width: calc(120px * var(--s)); height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .55); animation: gh-drift calc(40s + var(--d) * 6s) linear calc(var(--d) * -5s) infinite; }
@keyframes gh-fall { to { transform: translate(40px, 300px) rotate(260deg); } }
@keyframes gh-twinkle { 50% { opacity: .15; transform: scale(.5); } }
@keyframes gh-drift { to { transform: translateX(1900px); } }
/* guild levels 36 to 50: embers, northern lights, the phoenix frame, a shimmering name, a rainbow ring, the legendary hall */
.gh-fx-embers i { top: auto; bottom: -10px; width: calc(5px * var(--s)); height: calc(5px * var(--s)); border-radius: 50%; background: #ffb347;
  box-shadow: 0 0 8px #ff7a1a, 0 0 2px #fff3c4; animation: gh-rise calc(5s + var(--d) * .7s) ease-in calc(var(--d) * -.8s) infinite; }
@keyframes gh-rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(30px, -260px); opacity: 0; } }
.gh-fx-aurora i { top: calc(-40px + var(--d) * 8px); left: -20%; width: 140%; height: 90px; border-radius: 50%; filter: blur(18px); opacity: .55;
  background: linear-gradient(90deg, transparent, #4dffb5, #4dc3ff, #b06cff, transparent); animation: gh-aurora calc(9s + var(--d) * 2s) ease-in-out calc(var(--d) * -2s) infinite alternate; }
@keyframes gh-aurora { from { transform: translateX(-12%) skewX(-12deg); } to { transform: translateX(12%) skewX(12deg); opacity: .8; } }
.gh-frame-phoenix .gh-logo-in { border-radius: 50%; border-color: #ffe08a; box-shadow: 0 0 0 4px #e8571a, 0 0 0 8px #ffb21a, 0 0 32px #ff6a1a, 0 10px 24px rgba(0, 0, 0, .35); }
.gh-frame-phoenix::before { content: "🔥"; position: absolute; left: 50%; top: -16px; transform: translateX(-50%); z-index: 2; font-size: var(--fs-28, 28px); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.gh-name h1.gh-gold.gh-shimmer { background: linear-gradient(90deg, #fff3b0, #ffd24a, #fffbe8, #ffd24a, #fff3b0); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; animation: gh-shimmer 4s linear infinite; }
@keyframes gh-shimmer { to { background-position: -250% 0; } }
.gh-logo.gh-rainbow .gh-ring { stroke: #ff5a8a; animation: gh-ring 1.4s cubic-bezier(.2, .9, .3, 1), gh-hue 6s linear 1.4s infinite; }
@keyframes gh-hue { to { filter: hue-rotate(360deg) drop-shadow(0 0 10px rgba(255, 255, 255, .8)); } }
.gh-hero.gh-legend { border-color: #ffd24a; animation: gh-legend 3s ease-in-out infinite alternate; }
@keyframes gh-legend { from { box-shadow: 0 0 0 3px rgba(255, 210, 74, .5), 0 14px 34px rgba(6, 30, 50, .3); }
  to { box-shadow: 0 0 0 6px rgba(255, 210, 74, .25), 0 0 38px rgba(255, 190, 40, .75), 0 14px 34px rgba(6, 30, 50, .3); } }

/* the menu and the parts */
.gh-body { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
/* the guild hall's parts: a row of tabs under the banner (scrolls sideways on a phone) */
.gh-tabs { padding: 6px; border-radius: 18px; background: linear-gradient(#fffaf0, #f6e9d3); border: 2px solid #c89a6a;
  box-shadow: 0 3px 0 rgba(120, 80, 40, .25), inset 0 1px 0 #fff; overflow-x: auto; scrollbar-width: none; }
.gh-tabs::-webkit-scrollbar { display: none; }
.gh-tabs-in { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(80px, 1fr); gap: 4px; min-width: max-content; }
.gh-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px;
  padding: 8px 6px 7px; border: 0; border-radius: 13px; background: transparent; color: #6b5236; font: 800 var(--fs-12_5, 12.5px)/1.15 var(--font-body);
  text-align: center; white-space: nowrap; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.gh-tab:hover { background: rgba(255, 255, 255, .7); color: #2b1a0c; transform: translateY(-1px); }
.gh-tab.on { background: #fff; color: #2b1a0c; box-shadow: inset 0 -3px 0 var(--leaf), 0 3px 8px rgba(90, 60, 30, .18); }
.gh-tab-ic, .gh-tab-link .bi { font-size: var(--fs-21, 21px); line-height: 1; }
.gh-tab.on .gh-tab-ic { transform: scale(1.12); }
.gh-tab .gh-count { position: absolute; top: 4px; right: 6px; margin: 0; padding: 0 6px; font-size: var(--fs-10_5, 10.5px); line-height: 17px; }
.gh-tab-link { color: #8a6a4a; }  /* (Guild ranking and How guilds work: pages of their own, after a divider) */
.gh-tab-link:first-of-type { margin-left: 8px; }
.gh-tab-link:first-of-type::before { content: ""; position: absolute; left: -7px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: #e3cfae; }
@media (min-width: 992px) { .gh-tabs-in { min-width: 0; } }

/* the overview in two columns, as on the redesign: one on a phone */
.gh-split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.gh-col { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.gh-col.gh-side { flex: 1 1 300px; }
.gh-col > .window { margin: 0; }
.gh-roadmini { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 12px; }
.gh-rm { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: var(--fs-12, 12px); color: var(--ink-2); }
.gh-rm-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wood-3); font: 700 var(--fs-14, 14px) var(--font-display); color: var(--ink-2); }
.gh-rm.done .gh-rm-n { background: #3f9e2a; color: #fff; }
.gh-rm.soon .gh-rm-n { background: #ffd24a; color: #3a2600; box-shadow: 0 0 0 4px rgba(255, 210, 74, .35); }
.gh-claim { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #eaf7e2; border: 1.5px solid #8cc56f; font-size: var(--fs-13, 13px); }
.gh-claim > span:first-child { font-size: var(--fs-20, 20px); }
.gh-claim .btn { margin-left: auto; flex: none; }
.gh-mini { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--wood-line-2); }
.gh-mini:last-of-type { border-bottom: 0; }
.gh-mini-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gh-mini-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-mini-who small { color: var(--muted); font-weight: 700; font-size: var(--fs-12, 12px); }
.gh-mini-v { font-weight: 800; color: var(--exp); font-variant-numeric: tabular-nums; }
.gh-mini-day { width: 40px; flex: none; text-align: center; line-height: 1.1; }
.gh-mini-day b { display: block; font: 700 var(--fs-18, 18px) var(--font-display); color: var(--ink-strong); }
.gh-mini-day small { font-size: var(--fs-11, 11px); font-weight: 800; color: var(--muted); text-transform: uppercase; }
.gh-mini-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #fff4d6; border: 2px solid #e0b22a; }
.gh-mini-ic.scroll { background: #e6efff; border-color: #6d8fe0; }
.gh-mini-ic img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; }
.gh-count { margin-left: auto; padding: 0 8px; border-radius: 999px; background: var(--wood-3); font: 800 var(--fs-11, 11px)/19px var(--font-body); color: var(--ink-2); }
.gh-count.hot { background: #2f9a1f; color: #fff; animation: gh-pulse 1.6s ease-in-out infinite; }
@keyframes gh-pulse { 50% { box-shadow: 0 0 0 5px rgba(47, 154, 31, .25); } }
.gh-next { margin: 12px; padding: 10px 12px; border-radius: 12px; background: #fff8e6; border: 1.5px dashed #c98a1a; font-size: var(--fs-13, 13px); color: #3b2a1a; }
.gh-next b { display: block; font: 700 var(--fs-13, 13px) var(--font-display); color: #7a5200; }
.gh-next small { display: block; margin-top: 4px; font-weight: 800; color: #7a5200; }
.gh-bar { display: block; height: 8px; border-radius: 999px; background: var(--wood-3); overflow: hidden; margin-top: 6px; }
.gh-next .gh-bar { background: #ffe9b0; }
.gh-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffb21a, #ffd24a); }
.gh-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.gh-main > .window, .gh-settings > .window { margin: 0; }
.gh-motd { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #fff8e6, #ffeec2); border: 2px solid #e0b22a; color: #3b2a1a; }
.gh-q { font: 700 var(--fs-46, 46px)/.8 var(--font-display); color: #e0b22a; }
.gh-motd b { display: block; font: 600 var(--fs-12, 12px) var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #7a5200; }
.gh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.gh-stat { padding: 12px; border-radius: 12px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.gh-stat small { display: block; font: 600 var(--fs-11, 11px) var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gh-stat b { display: block; font: 700 var(--fs-28, 28px)/1.1 var(--font-display); color: var(--ink-strong); }
.gh-stat span { font-size: var(--fs-12, 12px); font-weight: 700; color: var(--muted); }
.gh-goal { margin-top: 16px; }
.gh-goal-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 14px; font: 700 var(--fs-15, 15px) var(--font-display); }
.gh-goal-head .ok { color: var(--gain); }
.gh-track { position: relative; height: 24px; margin: 0 19px 10px; border-radius: 999px; background: var(--wood-3); border: 2px solid var(--wood-line-2); }
.gh-track > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #7fd85a, #3f9a1f); }
.gh-ms { position: absolute; top: -10px; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; display: grid; place-items: center; background: var(--wood-2); border: 3px solid var(--wood-line-2); font-size: var(--fs-16, 16px); }
.gh-ms.done { border-color: #3f9a1f; background: #e8f7dc; }
.gh-live { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.gh-live + .gh-live { margin-top: 8px; }
.gh-live-who { min-width: 0; } .gh-live-who small { display: block; color: var(--muted); font-size: var(--fs-12, 12px); }
.gh-rate { margin-left: auto; font: 700 var(--fs-18, 18px) var(--font-display); color: var(--gain); white-space: nowrap; }
.gh-av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font: 700 var(--fs-14, 14px) var(--font-display); background: #7a8a9a; }
.gh-av.warrior { background: #c9302c; } .gh-av.magician { background: #6a52d9; } .gh-av.bowman { background: #2f8a1f; } .gh-av.thief { background: #7a3fb8; } .gh-av.pirate { background: #1f8a98; } .gh-av.beginner { background: #c27a3a; }
.gh-online { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #2f9a1f; border: 2px solid var(--wood); }
.gh-rest { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed var(--wood-line-2); font-size: var(--fs-14, 14px); }
.gh-rest span { width: 22px; font-weight: 800; color: var(--muted); } .gh-rest small { margin-left: auto; font-weight: 800; }
.gh-log { position: relative; padding-left: 22px; }
.gh-log::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--wood-line-2); }
.gh-ev { position: relative; padding: 6px 0 10px; font-size: var(--fs-14, 14px); }
.gh-ev::before { content: ""; position: absolute; left: -19px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 2px solid var(--wood); box-shadow: 0 0 0 2px var(--c); }
.gh-ev small { display: block; color: var(--muted); font-size: var(--fs-12, 12px); }
.gh-ev img { width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; image-rendering: pixelated; }

/* members */
.gh-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.gh-tools .form-control { flex: 1 1 200px; width: auto; }
.gh-pill { min-height: 38px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--wood-line-2); background: var(--wood-2); color: var(--ink-2); font: 700 var(--fs-13, 13px) var(--font-display); cursor: var(--cursor-hand, pointer); }
.gh-pill.on { border-color: var(--leaf); color: var(--ink-strong); }
.gh-rank { display: flex; align-items: center; gap: 8px; padding: 12px 0 4px; font: 600 var(--fs-12, 12px) var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gh-rank::after { content: ""; flex: 1; height: 1px; background: var(--wood-line-2); }
.gh-row { display: grid; grid-template-columns: 40px minmax(140px, 1.3fr) 80px minmax(130px, 1fr) 150px; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; }
.gh-row:hover, .gh-row.mine { background: var(--wood-2); }
.gh-row-who { min-width: 0; } .gh-row-who b { font: 700 var(--fs-15, 15px) var(--font-display); } .gh-row-who small, .gh-row-lv small { display: block; font-size: var(--fs-12, 12px); color: var(--muted); }
.gh-row-lv { font: 700 var(--fs-14, 14px) var(--font-display); }
.gh-row-lv .rk-exp { margin-top: 4px; }
.gh-row-part small { display: flex; justify-content: space-between; font-size: var(--fs-12, 12px); font-weight: 800; color: var(--ink-2); }
.gh-row-part .gh-bar i { background: linear-gradient(90deg, #1f9aa8, #7fd85a); }
.gh-hidden { font-style: italic; color: var(--muted) !important; }
.gh-row-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
@media (max-width: 720px) { .gh-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .gh-row-part, .gh-row-acts { grid-column: 2 / -1; } .gh-row-acts { flex-direction: row; gap: 12px; } }

/* the guild level road (its own tab): a head card, then five chapters of stops on a line */
.lr-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.lr-badge { flex: none; width: 112px; height: 112px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 38% 30%, #fff6cf, #ffd24a 55%, #e0a01a); border: 4px solid #fff3c4; box-shadow: 0 0 0 3px #c98a1a, 0 10px 22px rgba(120, 70, 0, .3); color: #3a2600; }
.lr-badge b { font: 700 var(--fs-44, 44px)/1 var(--font-display); }
.lr-badge small { font: 800 var(--fs-10_5, 10.5px) var(--font-body); text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.lr-head-main { flex: 1 1 280px; min-width: 0; }
.lr-head-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.lr-head-top b { font: 700 var(--fs-20, 20px) var(--font-display); } .lr-head-top span { font-weight: 800; color: var(--ink-2); font-size: var(--fs-14, 14px); }
.lr-bar { position: relative; height: 16px; margin-top: 8px; border-radius: 999px; background: var(--wood-3); overflow: hidden; }
.lr-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #ffb21a, #ffd24a, #ffb21a); background-size: 200% 100%; animation: lr-shine 3s linear infinite; }
@keyframes lr-shine { to { background-position: -200% 0; } }
.lr-mix { display: flex; height: 6px; margin-top: 10px; border-radius: 999px; overflow: hidden; background: var(--wood-3); }
.lr-mix i { display: block; height: 100%; } .lr-mix .a, .lr-key.a { background: #e0b22a; } .lr-mix .w, .lr-key.w { background: #1f9aa8; }
.lr-split { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 5px; font-size: var(--fs-12_5, 12.5px); font-weight: 700; color: var(--ink-2); }
.lr-key { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.lr-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 12px; border-radius: 12px; border: 1.5px dashed #e0b22a;
  background: color-mix(in srgb, #ffd24a 12%, transparent); font-size: var(--fs-14, 14px); font-weight: 700; }
.lr-next span { font: 800 var(--fs-10_5, 10.5px) var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lr-next b { font-family: var(--font-display); }

.lr-road { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.lr-ch { --ch: #3fa34d; border-radius: 18px; padding: 14px 16px 10px; background-color: color-mix(in srgb, var(--ch) 7%, var(--wood-2)); border: 2px solid color-mix(in srgb, var(--ch) 40%, transparent);
  box-shadow: 0 8px 20px rgba(6, 40, 60, .08); }
.lr-c1 { --ch: #3fa34d; } .lr-c2 { --ch: #e8862a; } .lr-c3 { --ch: #2f7fd6; } .lr-c4 { --ch: #8a4fd8; } .lr-c5 { --ch: #d8a21a; }
.lr-c6 { --ch: #d84f9a; background-image: linear-gradient(160deg, color-mix(in srgb, #8a4fd8 10%, transparent), color-mix(in srgb, #4dc3ff 10%, transparent)); }
.lr-more { margin: 6px 0 2px 58px; font-size: var(--fs-12_5, 12.5px); font-weight: 700; color: var(--muted); }
.lr-c5 { background-image: linear-gradient(160deg, color-mix(in srgb, #ffd24a 10%, transparent), color-mix(in srgb, #d84f9a 8%, transparent)); }
.lr-ch.lock { border-style: dashed; }
.lr-ch-h { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.lr-ch-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: var(--fs-24, 24px); background: var(--ch); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.lr-ch.lock .lr-ch-ic { opacity: .8; }
.lr-ch-name { flex: 1; min-width: 0; } .lr-ch-name b { display: block; font: 700 var(--fs-19, 19px)/1.1 var(--font-display); color: var(--ch); } .lr-ch-name small { font-size: var(--fs-12_5, 12.5px); font-weight: 700; color: var(--muted); }
.lr-ch-state { flex: none; padding: 3px 11px; border-radius: 999px; font: 800 var(--fs-12, 12px) var(--font-body); background: color-mix(in srgb, var(--ch) 16%, transparent); color: var(--ink); }
.lr-ch.done .lr-ch-state { background: var(--ch); color: #fff; }

.lr-line { position: relative; }
.lr-stop, .lr-gap { position: relative; display: flex; gap: 14px; padding-left: 0; }
.lr-stop::before, .lr-gap::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: var(--wood-3); }
.lr-stop.done::before, .lr-stop.here::before, .lr-gap.done::before { background: var(--ch); }
.lr-line > :first-child::before { top: 22px; } .lr-line > :last-child::before { bottom: calc(100% - 22px); }
.lr-line > :only-child::before { display: none; }
.lr-node { position: relative; z-index: 1; flex: none; width: 44px; height: 44px; margin: 6px 0; border-radius: 50%; display: grid; place-items: center;
  font: 700 var(--fs-17, 17px) var(--font-display); background: var(--wood-2); border: 3px solid var(--wood-line-2); color: var(--muted); }
.lr-stop.done .lr-node { background: var(--ch); border-color: var(--ch); color: #fff; font-size: var(--fs-20, 20px); }
.lr-stop.here .lr-node { background: radial-gradient(circle at 38% 30%, #fff6cf, #ffd24a); border-color: #ffb21a; color: #3a2600; animation: lr-pulse 1.8s ease-out infinite; }
.lr-stop.soon .lr-node { border-color: var(--ch); border-style: dashed; color: var(--ch); }
@keyframes lr-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 178, 26, .55); } 100% { box-shadow: 0 0 0 14px rgba(255, 178, 26, 0); } }
.lr-card { flex: 1; min-width: 0; margin: 6px 0; padding: 9px 12px; border-radius: 14px; background: var(--wood-2); border: 1.5px solid var(--wood-line-2); transition: transform .15s ease; }
.lr-stop:hover .lr-card { transform: translateX(3px); }
.lr-stop.here .lr-card { border: 2px solid #ffb21a; box-shadow: 0 0 0 4px rgba(255, 178, 26, .18); }
.lr-stop.soon .lr-card { border-color: color-mix(in srgb, var(--ch) 55%, transparent); }
.lr-stop.lock .lr-card { opacity: .72; }
.lr-card-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; }
.lr-card-h b { font: 700 var(--fs-15_5, 15.5px) var(--font-display); } .lr-card-h small { font-size: var(--fs-12, 12px); font-weight: 700; color: var(--muted); }
.lr-tag { margin-left: auto; padding: 1px 9px; border-radius: 999px; font: 800 var(--fs-10_5, 10.5px)/18px var(--font-body); text-transform: uppercase; letter-spacing: .05em; }
.lr-tag.here { background: #ffb21a; color: #3a2600; } .lr-tag.soon { background: var(--ch); color: #fff; }
.lr-items { display: flex; flex-direction: column; gap: 4px; }
.lr-item { display: flex; align-items: center; gap: 8px; font-size: var(--fs-14, 14px); font-weight: 600; }
.lr-ic { flex: none; width: 26px; text-align: center; font-size: var(--fs-18, 18px); }
.lr-stop.lock .lr-ic { filter: grayscale(.8); }
.lr-item.gift { padding: 4px 8px 4px 0; border-radius: 10px; background: color-mix(in srgb, #ffc83c 18%, transparent); }
.lr-plus { margin-left: auto; flex: none; padding: 0 8px; border-radius: 999px; background: #ffc83c; color: #3a2600; font: 800 var(--fs-10_5, 10.5px)/18px var(--font-body); }
.lr-gap { align-items: center; min-height: 34px; }
.lr-pin { position: relative; z-index: 1; flex: none; width: 44px; display: grid; place-items: center; }
.lr-pin::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--wood-2); border: 3px solid var(--wood-line-2); }
.lr-gap.done .lr-pin::after { background: var(--ch); border-color: var(--ch); }
.lr-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.lr-dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ch) 22%, transparent); }
.lr-dots i.on { background: var(--ch); }
.lr-gap small { font-size: var(--fs-12, 12px); font-weight: 700; color: var(--muted); }
@media (max-width: 575.98px) { .lr-badge { width: 88px; height: 88px; } .lr-badge b { font-size: var(--fs-34, 34px); } .lr-ch { padding: 12px 10px 8px; } .lr-plus { display: none; } }
@media (prefers-reduced-motion: reduce) { .lr-bar i, .lr-stop.here .lr-node { animation: none !important; } .lr-stop:hover .lr-card { transform: none; } }
.gh-rw { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font: 800 var(--fs-11_5, 11.5px)/19px var(--font-body); }
.gh-rw.lite { background: #e3f4d2; color: #2f6a12; } .gh-rw.plus { background: #ffc83c; color: #3a2600; }

/* rewards */
@keyframes gh-shake { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
.gh-rules { margin: 0; padding-left: 18px; font-size: var(--fs-14, 14px); line-height: 1.7; }

/* settings */
.gh-settings { display: flex; flex-direction: column; gap: 18px; }
.gh-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gh-town-pick { position: relative; padding: 0; border-radius: 12px; overflow: hidden; border: 3px solid transparent; background: #1b1438; cursor: var(--cursor-hand, pointer); text-align: left; }
.gh-town-pick .gh-town { position: static; width: 100%; height: 64px; }
.gh-town-pick span { display: block; padding: 4px 8px; background: var(--wood-2); color: var(--ink); font: 700 var(--fs-12_5, 12.5px) var(--font-display); }
.gh-town-pick.on { border-color: var(--leaf); box-shadow: 0 0 0 2px #ffd24a; }
.gh-town-pick.locked { cursor: not-allowed; } .gh-town-pick.locked .gh-town { filter: grayscale(1); opacity: .45; }
.gh-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 2px dashed var(--wood-line); background: var(--wood-2); }
.gh-upload.locked { opacity: .75; border-style: solid; border-color: var(--wood-line-2); }
.gh-up-ic { font-size: var(--fs-28, 28px); }
.gh-upload b { display: block; font: 700 var(--fs-15, 15px) var(--font-display); } .gh-upload small { color: var(--muted); font-size: var(--fs-12_5, 12.5px); }
.gh-upload > span:nth-child(2) { flex: 1 1 220px; }
.gh-lock { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #17343f; color: #ffd24a; font: 800 var(--fs-12, 12px) var(--font-body); white-space: nowrap; }
.gh-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-opt { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--wood-line-2); background: var(--wood-2); color: var(--ink); font: 700 var(--fs-13, 13px) var(--font-display); cursor: var(--cursor-hand, pointer); }
.gh-opt.on { border-color: var(--leaf); box-shadow: 0 0 0 2px #ffd24a; }
.gh-opt:disabled { opacity: .5; cursor: not-allowed; }
.gh-link-row { padding: 0 4px; }

/* How guilds work */
.gh-how-hero { text-align: center; padding: 18px 12px 8px; }
.gh-how-hero h1 { margin: 0; font: 700 clamp(34px, 6vw, 54px)/1.05 var(--font-display); color: #ffd86b; -webkit-text-stroke: 0; text-shadow: 0 3px 10px rgba(6, 40, 60, .55); }
.gh-how-hero p { max-width: 680px; margin: 10px auto 0; font-size: var(--fs-17, 17px); font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(6, 40, 60, .6); }
.gh-how-page { max-width: 1000px; margin: 18px auto 0; display: flex; flex-direction: column; gap: 16px; }
.gh-how-sec { margin: 0; }
.gh-how-n { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: #ffd24a; color: #3a2600; font: 700 var(--fs-15, 15px) var(--font-display); }
.gh-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gh-steps > div { padding: 14px; border-radius: 14px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.gh-steps span { font-size: var(--fs-30, 30px); } .gh-steps b { display: block; font: 700 var(--fs-16, 16px) var(--font-display); margin: 4px 0; } .gh-steps small { display: block; font-size: var(--fs-13_5, 13.5px); color: var(--ink-2); line-height: 1.45; }
.gh-table { width: 100%; border-collapse: collapse; font-size: var(--fs-14, 14px); }
.gh-table th { padding: 10px 8px; font: 600 var(--fs-12, 12px) var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--wood-line-2); text-align: center; }
.gh-table td { padding: 9px 8px; border-bottom: 1px solid var(--wood-line-2); text-align: center; font-weight: 700; }
.gh-table th:first-child, .gh-table td:first-child { text-align: left; }
.gh-y { color: var(--gain); font-size: var(--fs-17, 17px); } .gh-x { color: var(--muted); }
.gh-unlocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.gh-unlocks > div { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--wood-2); border: 1px solid var(--wood-line-2); font-size: var(--fs-14, 14px); }
.gh-unlocks b { flex: none; width: 52px; padding: 2px 0; border-radius: 8px; background: #ffd24a; color: #3a2600; font: 700 var(--fs-13, 13px) var(--font-display); text-align: center; }
.gh-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.gh-tiers > div { padding: 12px; border-radius: 14px; border: 2px solid; text-align: center; font-size: var(--fs-13, 13px); font-weight: 700; }
.gh-tiers b { display: block; font: 700 var(--fs-17, 17px) var(--font-display); margin-bottom: 4px; }
.gh-tiers .t-bronze { background: #fbeee3; border-color: #c27a3a; color: #6a3a12; } .gh-tiers .t-silver { background: #eef2f4; border-color: #9aa6ad; color: #3a4a52; }
.gh-tiers .t-gold { background: #fff4d6; border-color: #e0b22a; color: #5a4300; } .gh-tiers .t-legendary { background: linear-gradient(135deg, #efe3ff, #ffe3f4); border-color: #8a4fd8; color: #4a1f8a; }
.gh-box { padding: 12px 14px; border-radius: 14px; background: #fff8e6; border: 1.5px solid #e0b22a; font-size: var(--fs-14, 14px); color: #3b2a1a; }
@media (max-width: 575.98px) { .gh-art { height: 190px; } .gh-id { margin-top: -80px; padding: 0 14px 14px; } .gh-logo { width: 120px; height: 120px; } .gh-logo svg { width: 120px; height: 120px; } }
@media (prefers-reduced-motion: reduce) { .gh-fx, .gh-ring, .gh-hero.gh-legend, .gh-name h1.gh-shimmer, .gh-count.hot { animation: none !important; } .gh-fx i { animation: none !important; } }

/* guild levels' extras: frames, a gold name, a glowing ring, more moving banners */
.gh-frame-crown .gh-logo-in { border-radius: 26px; border-color: #ffd24a; box-shadow: 0 0 0 4px #c98a1a, 0 10px 24px rgba(0, 0, 0, .35); }
.gh-frame-crown::before { content: "👑"; position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: 2; font-size: var(--fs-30, 30px); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.gh-frame-legend .gh-logo-in { border-radius: 50%; border-color: #ff9ad0; box-shadow: 0 0 0 4px #8a4fd8, 0 0 0 8px #ffd24a, 0 0 30px #d84f9a, 0 10px 24px rgba(0, 0, 0, .35); }
.gh-glow .gh-ring { animation: gh-ring 1.4s cubic-bezier(.2, .9, .3, 1), gh-glowing 2.4s ease-in-out 1.4s infinite; }
@keyframes gh-glowing { 50% { filter: drop-shadow(0 0 14px rgba(255, 210, 74, 1)); } }
.gh-name h1.gh-gold { background: linear-gradient(90deg, #fff3b0, #ffd24a, #fff3b0); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.gh-fx-fireflies i { top: calc(30% + var(--d) * 6%); width: 6px; height: 6px; border-radius: 50%; background: #fff9a0; box-shadow: 0 0 10px #fff27a; animation: gh-float calc(4s + var(--d) * .6s) ease-in-out calc(var(--d) * -.5s) infinite alternate; }
.gh-fx-rain i { width: 2px; height: 16px; background: rgba(200, 230, 255, .7); animation: gh-rain calc(.8s + var(--d) * .08s) linear calc(var(--d) * -.1s) infinite; }
@keyframes gh-float { to { transform: translate(30px, -26px); opacity: .3; } }
@keyframes gh-rain { to { transform: translate(-30px, 300px); } }

/* Rankings: the guild under a name */
.rk-guild { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--wood-3); color: var(--ink-2); font: 700 var(--fs-11_5, 11.5px)/18px var(--font-display); white-space: nowrap; }
.rk-guild .bi { color: var(--leaf); }
.rk-guild.gold { background: #fff4d6; color: #7a5200; box-shadow: inset 0 0 0 1.5px #e0b22a; }
.rk-job + .rk-guild { margin: 4px auto 0; }

/* your own profile picture and banner */
.prof-hero.has-pic, .pcard-head.has-pic { background-image: linear-gradient(rgba(8, 14, 30, .35), rgba(8, 14, 30, .55)), var(--pic); background-size: cover; background-position: center; }
.prof-own-pic { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.prof-pic { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #fffaf0; border: 1px solid #e4d3b4; color: #3b2a1a; }
html[data-season="sky"] .prof-pic { background: #fff; border-color: #cfe8ec; color: #17343f; }
.prof-pic + .prof-pic { margin-top: 8px; }
.prof-pic.locked { opacity: .85; }
.prof-pic-ic { font-size: var(--fs-28, 28px); }
.prof-pic-t { flex: 1 1 240px; min-width: 0; } .prof-pic-t > b { display: block; font: 700 var(--fs-15, 15px) var(--font-display); } .prof-pic-t small { display: block; opacity: .75; font-size: var(--fs-12_5, 12.5px); }
.prof-pic-bar { display: block; height: 8px; margin: 6px 0 2px; border-radius: 999px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.prof-pic-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb21a, #ffd24a); }
.prof-pic-lock { font-size: var(--fs-20, 20px); opacity: .55; }

/* weekly challenges (home, guild page) */
.wk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.wk-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--wood-2); border: 2px solid var(--wood-line-2); }
.wk-card.done { border-color: #3f9a1f; background: linear-gradient(160deg, #eaf8dd, var(--wood-2)); }
.wk-ic { font-size: var(--fs-26, 26px); line-height: 1; }
.wk-t { flex: 1; min-width: 0; } .wk-t b { display: block; font: 700 var(--fs-15, 15px)/1.25 var(--font-display); color: var(--ink-strong); }
.wk-t small { display: block; margin-top: 3px; font-size: var(--fs-12, 12px); font-weight: 700; color: var(--muted); }
.wk-bar { display: block; height: 9px; margin-top: 8px; border-radius: 999px; background: var(--wood-3); overflow: hidden; }
.wk-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffb21a, #ffd24a); }
.wk-card.done .wk-bar i { background: linear-gradient(90deg, #7fd85a, #3f9a1f); }
.wk-pts { display: inline-block; margin-top: 4px; padding: 0 8px; border-radius: 999px; font: 800 var(--fs-11, 11px)/18px var(--font-body); }
.wk-pts.t-easy { background: #e3f4d2; color: #2f6a12; } .wk-pts.t-medium { background: #dff1f3; color: #127080; } .wk-pts.t-hard { background: #fff4d6; color: #7a5200; }
.wk-reward { align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff8e6; border: 1.5px dashed #c98a1a; color: #3b2a1a; font-size: var(--fs-14, 14px); }
.wk-reward span { font-size: var(--fs-24, 24px); }
.wk-code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 2px solid #2f9a1f;
  background: linear-gradient(160deg, #f2ffe9, #fff); color: #1e3a14; }
.wk-code.used { opacity: .8; border-style: dashed; }
.wk-gift { font-size: var(--fs-34, 34px); }
.wk-code b { display: block; font: 700 var(--fs-15, 15px) var(--font-display); }
.wk-code code { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 8px; background: #1e3a14; color: #c6f5a8; font: 700 var(--fs-15, 15px) ui-monospace, monospace; letter-spacing: .08em; }
.wk-code-acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }

/* the guild ranking (/guilds) */
.gr-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; margin-top: 18px; }
.gr-spot { position: relative; overflow: hidden; border-radius: 18px; border: 3px solid rgba(255, 255, 255, .75); background: #1b1438; color: #fff; text-align: center;
  padding: 0 12px 16px; box-shadow: 0 12px 26px rgba(6, 30, 50, .3); }
.gr-spot.p1 { padding-bottom: 30px; border-color: #ffd24a; box-shadow: 0 0 0 4px rgba(255, 210, 74, .35), 0 14px 30px rgba(6, 30, 50, .35); }
.gr-spot.mine { outline: 3px solid #7fd85a; outline-offset: 2px; }
.gr-art { position: relative; height: 90px; margin: 0 -12px; overflow: hidden; }
.gr-art .gh-town { position: absolute; inset: 0; width: 100%; height: 100%; }
.gr-logo { position: relative; z-index: 1; width: 76px; height: 76px; margin: -38px auto 6px; display: grid; place-items: center; overflow: hidden;
  border-radius: 22px; background: radial-gradient(circle at 40% 35%, #fffbe8, #ffe7a6); border: 4px solid #ffd24a; color: #7a52c7; font-size: var(--fs-34, 34px); }
.gr-logo img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; } .gr-logo img.gh-own, .gr-mini img.gh-own { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.gr-spot b { display: block; font: 700 var(--fs-18, 18px) var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-spot small { display: block; font-weight: 700; opacity: .85; }
.gr-place { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ffd24a; color: #3a2600; font: 700 var(--fs-17, 17px) var(--font-display); }
.gr-spot.p2 .gr-place { background: #c7ccd4; } .gr-spot.p3 .gr-place { background: #d58a4a; color: #fff; }
.gh-goldtxt { background: linear-gradient(90deg, #c98a1a, #ffd24a, #c98a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gr-spot .gh-goldtxt { background: linear-gradient(90deg, #fff3b0, #ffd24a, #fff3b0); -webkit-background-clip: text; background-clip: text; }
.gr-row { display: grid; grid-template-columns: auto 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 6px; border-bottom: 1px solid var(--wood-line-2); }
.gr-row.mine { background: var(--wood-2); border-radius: 10px; }
.gr-join { font-size: var(--fs-12, 12px); font-weight: 700; margin-left: 4px; }  /* (test sites only) */
.gr-mini { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #fff4d6; border: 2px solid #e0b22a; color: #7a52c7; font-size: var(--fs-20, 20px); }
.gr-mini img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.gr-who { min-width: 0; } .gr-who b { font: 700 var(--fs-16, 16px) var(--font-display); } .gr-who small { display: block; color: var(--muted); font-size: var(--fs-12_5, 12.5px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-week { font-size: var(--fs-13, 13px); letter-spacing: 1px; white-space: nowrap; }
.gr-lv { text-align: right; } .gr-lv b { display: block; font: 700 var(--fs-17, 17px) var(--font-display); color: var(--ink-strong); } .gr-lv small { color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .gr-podium { grid-template-columns: 1fr; } .gr-week { display: none; } .gr-row { grid-template-columns: auto 40px minmax(0, 1fr) auto; } }

/* Admin > Controls: the pictures players put up */
.ctl-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ctl-pic { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.ctl-pic img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; background: #000; }
.ctl-pic img.wide { width: 110px; height: 30px; }
.ctl-pic span { flex: 1; min-width: 0; } .ctl-pic b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ctl-pic small { color: var(--muted); }

/* The compact pop-out (app.js compactCard): the site's window and title bar, so it wears the season's look like every
   window (sky.css and the seasons to come restyle .window and .window-title); inside, the theme's own colours */
body.pip-body.pip-compact { min-height: 0; padding: 4px; }
.pip-size { position: fixed; top: 7px; right: 8px; z-index: 5; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px;
  background: rgba(0, 0, 0, .18); color: #fff; font-size: var(--fs-11, 11px); line-height: 22px; cursor: var(--cursor-hand, pointer); }
.pip-size:hover { background: rgba(0, 0, 0, .32); }
/* the pop-out's gear: next to the size button, a small list of what the whole card shows */
.pip-gear { right: 8px; color: #ffcd2e; }
/* (the pop-out's two buttons: no dark focus frame after a click; with the keyboard, a thin yellow ring) */
.pip-size:focus { outline: none; }
.pip-size:focus-visible { outline: 2px solid #ffcd2e; outline-offset: 1px; }
/* (the compact pop-out's title bar: room on the right for the gear and the size button, which sat on its clock) */
body.pip-compact .cp-top { padding-right: 34px !important; flex-wrap: nowrap !important; }
body.pip-compact .cp-top .cp-map { flex: 0 1 auto; min-width: 0; }  /* (a long map name shortens; the clock stays on the line) */
body.pip-compact .cp-top :is(.cp-time, b) { flex: none; }
/* (the whole card's Stats / Achievements tabs: room on their right for the gear and the size button) */
body.pip-ov .pip-tabs { margin-right: 30px; }
.pip-gear[hidden] { display: none; }
.pip-parts { position: fixed; top: 34px; right: 8px; z-index: 6; display: flex; flex-direction: column; gap: 4px; min-width: 190px; padding: 10px 12px;
  max-height: calc(100vh - 42px); overflow-y: auto;
  border-radius: 12px; font: 600 12.5px var(--font-body, system-ui); color: #e9eef7; background: rgba(14, 18, 32, .96); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.pip-parts b { margin-bottom: 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #aab6cc; }
.pip-parts label { display: flex; align-items: center; gap: 7px; cursor: var(--cursor-hand, pointer); }
.pip-parts input { accent-color: #ffcd2e; }
.pip-presets { display: flex; gap: 4px; margin-top: 6px; }
.pip-presets button { flex: 1; padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font: 700 11px var(--font-body, system-ui);
  color: #e9eef7; background: rgba(255, 255, 255, .06); cursor: var(--cursor-hand, pointer); }
.pip-presets button:hover { background: rgba(255, 205, 46, .2); border-color: #ffcd2e; }
body.pip-t2 .pip-size { top: auto; bottom: 6px; }
.cp { margin: 0; color: var(--ink); overflow: hidden; }
.cp.paused { opacity: .75; }
.cp-top { display: flex; align-items: center; gap: 4px; padding-right: 34px; font-size: var(--fs-12, 12px); white-space: nowrap; overflow: hidden; }
.cp-top b { overflow: hidden; text-overflow: ellipsis; }
.cp-dot { width: 7px; height: 7px; border-radius: 50%; background: #58d68d; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.cp.paused .cp-dot { background: #f0b429; }
.cp-map { overflow: hidden; text-overflow: ellipsis; opacity: .8; }
.cp-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.cp-body { padding: 6px 8px 8px; }
.cp-main { display: flex; align-items: flex-end; gap: 6px; }
.cp-big { font: 700 var(--fs-26, 26px)/1 var(--font-display); color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.cp-big i { font-size: var(--fs-16, 16px); margin-right: 3px; color: var(--t2-accent); }
.cp-unit { color: var(--muted); font-size: var(--fs-11, 11px); padding-bottom: 2px; }
.cp-side { margin-left: auto; text-align: right; font-size: var(--fs-11, 11px); color: var(--ink-strong); line-height: 1.3; font-variant-numeric: tabular-nums; }
.cp-side small, .cp-cell small { color: var(--muted); font: 600 var(--fs-9, 9px) var(--font-display); letter-spacing: .06em; }
.cp-chart { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin: 5px 0 4px; }
.cp-chart i { flex: 1; background: var(--exp); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }
.cp-chart i:last-child { background: var(--t2-accent); opacity: 1; }
.cp-chart span { color: var(--muted); font-size: var(--fs-10, 10px); align-self: center; }
.cp-bar { position: relative; height: 14px; border-radius: 5px; background: #5b5b60; border: 1px solid #3a3a3e; overflow: hidden; }
.cp-bar i { position: absolute; inset: 0 auto 0 0; background: #9bd12e; transition: width .7s cubic-bezier(.2, .9, .3, 1); }
.cp-bar span { position: relative; display: block; text-align: center; font-size: var(--fs-9, 9px); line-height: 12px; color: #fff; text-shadow: 0 1px 1px #000; }
.cp-row { display: flex; gap: 4px; margin-top: 5px; }
.cp-cell { flex: 1; min-width: 0; background: var(--wood-2); border: 1px solid var(--wood-line-2); border-radius: 7px; padding: 3px 5px; }
.cp-cell b { display: block; color: var(--ink-strong); font: 700 var(--fs-13, 13px)/1.2 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-cell em { display: block; font-style: normal; font-size: var(--fs-9, 9px); color: var(--muted); white-space: nowrap; }
/* (the compact pop-out's small Reset EXP/hour, under its EXP/H) */
.cp-reset { display: inline-flex; align-items: center; gap: 2px; margin-top: 1px; padding: 0 5px; border: 1px solid var(--exp); border-radius: 999px;
  font: 700 var(--fs-9, 9px)/13px var(--font-body); color: var(--ink-strong); background: transparent; cursor: var(--cursor-hand, pointer); }
.cp-reset:hover:not(:disabled) { color: #1f1812; background: var(--exp); }
.cp-reset:disabled { border-color: var(--wood-line-2); color: var(--muted); cursor: default; }
.cp-reset:focus { outline: none; } .cp-reset:focus-visible { outline: 2px solid #ffcd2e; outline-offset: 1px; }
.cp-cell.meso { flex: 1.5; } .cp-cell.meso b { color: var(--meso); }  /* (wider: mesos to the last one) */ .cp-cell.pot b { color: #c23a3a; }
.cp-mobs { display: flex; gap: 8px; margin-top: 4px; font-size: var(--fs-10, 10px); color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.cp-mobs em { font-style: normal; color: var(--muted); }
.cp { position: relative; }
.cp-toasts { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 6; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.cp-toast { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; font-size: var(--fs-12, 12px); font-weight: 700;
  color: var(--ink-strong); background: var(--wood-2); border: 1px solid var(--wood-line); box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
  animation: cp-toast 4.5s ease-in-out forwards; }
.cp-toast img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }
.cp-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-toast b { color: var(--muted); }
.cp-toast.rare { border-color: var(--t2-accent); background: linear-gradient(90deg, rgba(255, 210, 74, .35), var(--wood-2) 60%); }
@keyframes cp-toast { 0% { transform: translateY(12px); opacity: 0; } 8%, 85% { transform: none; opacity: 1; } 100% { transform: translateY(-4px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cp-toast { animation: none; } }
.cp-cell small i, .cp-side small i { margin-right: 3px; font-size: var(--fs-9, 9px); }
.cp-cell.exp small i { color: var(--exp); } .cp-cell.meso small i { color: var(--meso); } .cp-cell.kill small i { color: #d2552e; }
.cp-cell.pot small i { color: #c23a3a; } .cp-side small i { color: var(--t2-accent); }
.cp-time i { font-size: var(--fs-10, 10px); opacity: .85; }
.cp-big b { font: inherit; }
.cp-floats { position: fixed; left: 0; right: 0; top: 34px; height: 40px; z-index: 6; pointer-events: none; overflow: visible; }
.cp-float { position: absolute; top: 14px; font: 700 var(--fs-15, 15px) var(--font-display); color: #ffd24a; text-shadow: 0 1px 0 #6a4300, 0 0 6px rgba(0, 0, 0, .35);
  animation: cp-float 1.25s ease-out forwards; }
@keyframes cp-float { 0% { transform: translateY(6px) scale(.8); opacity: 0; } 15% { opacity: 1; transform: translateY(0) scale(1.08); } 100% { transform: translateY(-26px); opacity: 0; } }

/* guild settings: the banner and the logo as two cards, each opening a drawer with the choices (guildSettings) */
.gh-pickcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.gh-pickcard { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; text-align: left;
  border: 2px solid var(--wood-line-2); background: var(--wood); color: var(--ink); cursor: var(--cursor-hand, pointer);
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.gh-pickcard:hover { transform: translateY(-2px); border-color: #ffd24a; box-shadow: 0 8px 18px rgba(6, 30, 50, .12); }
.gh-pickcard.on { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(255, 210, 74, .55); }
.gh-pickcard-pic { position: relative; flex: none; width: 112px; height: 56px; border-radius: 10px; overflow: hidden; background: #1b1438; }
.gh-pickcard-pic .gh-town, .gh-pickcard-pic .gh-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gh-pickcard-logo { position: relative; flex: none; width: 56px; height: 56px; }
.gh-pickcard-logo .gh-logo-in { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; border: 3px solid #ffd24a; background: #fffbe8; }
.gh-pickcard-logo .gh-logo-in img { max-width: 34px; max-height: 34px; image-rendering: pixelated; }
.gh-pickcard-logo .gh-logo-in img.gh-own { max-width: 100%; max-height: 100%; border-radius: 10px; image-rendering: auto; }
.gh-pickcard-logo::before { font-size: var(--fs-18, 18px) !important; top: -10px !important; }
.gh-pickcard-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gh-pickcard-t small { font: 800 var(--fs-11, 11px) var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gh-pickcard-t b { font: 700 var(--fs-16, 16px) var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-pickcard-t em { font-style: normal; font-size: var(--fs-12_5, 12.5px); font-weight: 700; color: var(--ink-2); }
.gh-pickcard-chev { flex: none; font-size: var(--fs-18, 18px); transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
.gh-pickcard.on .gh-pickcard-chev { transform: rotate(180deg); }
/* the drawer: slides open (its height from 0 to all of it), the choices dropping in one after the other */
.gh-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .9, .3, 1); }
.gh-drawer.open { grid-template-rows: 1fr; }
.gh-drawer-in { min-height: 0; overflow: hidden; }
.gh-drawer.open .gh-drawer-in { padding-top: 14px; }
.gh-drawer.fresh { animation: gh-drawer .45s cubic-bezier(.2, .9, .3, 1); }
@keyframes gh-drawer { from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } }
.gh-drawer.fresh .gh-town-pick, .gh-drawer.fresh .gl-pick { animation: gh-drop .4s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes gh-drop { from { opacity: 0; transform: translateY(-14px) scale(.92); } to { opacity: 1; transform: none; } }
.gh-region { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font: 700 var(--fs-14, 14px) var(--font-display); color: var(--ink); }
.gh-region::after { content: ""; flex: 1; height: 1px; background: var(--wood-line-2); }
.gh-drawer-in > .gh-region:first-child { margin-top: 0; }
.gh-town-pick { transition: transform .15s, box-shadow .15s; }
.gh-town-pick:not(.locked):hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 16px rgba(6, 30, 50, .2); }
.gl-pick { transition: transform .15s; } .gl-pick:hover { transform: translateY(-2px) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .gh-drawer, .gh-drawer.fresh, .gh-drawer.fresh .gh-town-pick, .gh-drawer.fresh .gl-pick { animation: none; transition: none; } }

/* the guild's Finds tab (guildFinds): the newest in the spotlight, the week in numbers, the rest as cards dropping in */
.gf-spot { --gf: #e0b22a; --gf2: #fff3b0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 18% 50%, color-mix(in srgb, var(--gf) 35%, transparent), transparent 60%), linear-gradient(135deg, #1b1438, #2a1d55);
  color: #fff; border: 2px solid color-mix(in srgb, var(--gf) 70%, transparent); box-shadow: 0 12px 28px rgba(20, 10, 50, .35); }
.gf-spot.scroll { --gf: #4dc3ff; --gf2: #d6f1ff; }
.gf-spot-art { position: relative; flex: none; width: 150px; height: 150px; display: grid; place-items: center; }
.gf-rays { position: absolute; inset: -20px; border-radius: 50%; animation: gf-turn 12s linear infinite;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--gf) 55%, transparent) 0 10deg, transparent 10deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%); }
@keyframes gf-turn { to { transform: rotate(360deg); } }
.gf-pedestal { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #fffbe8, var(--gf2) 55%, var(--gf)); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 0 34px var(--gf);
  animation: gf-bob 2.4s ease-in-out infinite alternate; }
@keyframes gf-bob { to { transform: translateY(-6px); } }
.gf-spot-ic { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
i.gf-spot-ic { font-size: var(--fs-40, 40px); color: #3a2600; display: grid; place-items: center; }
.gf-sparks { position: absolute; inset: 0; }
.gf-sparks i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px var(--gf2);
  transform: rotate(var(--a)) translateY(-62px) scale(0); animation: gf-spark 2s ease-out var(--d) infinite; }
@keyframes gf-spark { 15% { transform: rotate(var(--a)) translateY(-56px) scale(1); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-84px) scale(0); opacity: 0; } }
.gf-spot-t { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.gf-kicker { font: 800 var(--fs-12, 12px) var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gf2); }
.gf-spot-t b { font: 700 clamp(22px, 3.2vw, 30px)/1.1 var(--font-display);
  background: linear-gradient(90deg, #fff, var(--gf2), #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gh-shimmer 4s linear infinite; }
.gf-spot-t span { font-size: var(--fs-14, 14px); color: #dfe4f5; } .gf-spot-t strong { color: #fff; }
.gf-kind { align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--gf); color: #1b1438; font: 800 var(--fs-12, 12px) var(--font-body) !important; }
.gf-stats { display: grid; gap: 10px; margin: 14px 0; }
.gf-stat { padding: 10px; border-radius: 14px; text-align: center; background: var(--wood); border: 1px solid var(--wood-line-2); }
.gf-stat b { display: block; font: 700 var(--fs-28, 28px)/1 var(--font-display); } .gf-stat.equip b { color: #c9961a; } .gf-stat.scroll b { color: #1f8fd0; }
.gf-stat small { font-weight: 800; color: var(--muted); }
.gf-top em { font-style: normal; }
.gf-top small { color: var(--muted); font-weight: 800; }
.gf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gf-card { --gf: #e0b22a; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 10px; border-radius: 16px;
  text-align: center; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--gf) 18%, var(--wood)), var(--wood));
  border: 1px solid color-mix(in srgb, var(--gf) 45%, transparent); animation: gh-drop .45s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i) * 60ms);
  transition: transform .15s, box-shadow .15s; }
.gf-card.scroll { --gf: #4dc3ff; }
.gf-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); animation: gm-shine 4.5s ease-in-out calc(var(--i) * .4s) infinite; }
.gf-card:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 10px 22px color-mix(in srgb, var(--gf) 35%, transparent); }
.gf-card-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fffbe8, color-mix(in srgb, var(--gf) 45%, #fff));
  box-shadow: 0 0 16px color-mix(in srgb, var(--gf) 60%, transparent); }
.gf-card-ic img { max-width: 36px; max-height: 36px; image-rendering: pixelated; } .gf-card-ic i { font-size: var(--fs-24, 24px); color: #3a2600; }
.gf-card b { font: 700 var(--fs-14, 14px)/1.2 var(--font-display); } .gf-card small { font-size: var(--fs-12, 12px); color: var(--muted); font-weight: 700; }
.gf-new { position: absolute; top: 8px; right: -26px; transform: rotate(35deg); padding: 1px 30px; background: #ff5a8a; color: #fff; font: 800 var(--fs-10, 10px) var(--font-body); letter-spacing: .08em; }
.gf-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 10px; text-align: center; }
.gf-empty-ic { font-size: var(--fs-44, 44px); animation: gf-bob 2.4s ease-in-out infinite alternate; } .gf-empty b { font: 700 var(--fs-18, 18px) var(--font-display); } .gf-empty small { color: var(--muted); }
@media (max-width: 575.98px) { .gf-spot-art { width: 120px; height: 120px; } }
@media (prefers-reduced-motion: reduce) { .gf-rays, .gf-pedestal, .gf-sparks i, .gf-spot-t b, .gf-card, .gf-card::after, .gf-empty-ic { animation: none !important; } .gf-sparks { display: none; } }

/* ======================================================= a big update's own page (pages/update_<name>.html) */
.bu { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.bu-hero { position: relative; overflow: hidden; border-radius: 22px; border: 3px solid #ffd24a; color: #fff; isolation: isolate;
  background: radial-gradient(ellipse at 70% 15%, #3b4f8f 0%, #1b2450 45%, #0d1230 100%); box-shadow: 0 18px 40px rgba(6, 20, 50, .35); }
.bu-hero-sky { position: absolute; inset: 0; z-index: -1; }
.bu-hero-sky .gh-fx i { top: calc(var(--x) * .6); }
.bu-hero-moon { position: absolute; right: 7%; top: 12%; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fffbe8, #ffe9a8 60%, #f3c95a); box-shadow: 0 0 60px 18px rgba(255, 230, 150, .35); }
.bu-hero-isle { position: absolute; bottom: -30px; height: 90px; border-radius: 50% 50% 0 0; background: linear-gradient(#2c5a3a, #13301f); opacity: .9; }
.bu-hero-isle.i1 { left: -5%; width: 45%; } .bu-hero-isle.i2 { left: 35%; width: 40%; bottom: -45px; opacity: .75; } .bu-hero-isle.i3 { right: -6%; width: 35%; }
.bu-hero-in { position: relative; padding: clamp(28px, 6vw, 64px) clamp(18px, 5vw, 56px) clamp(70px, 9vw, 96px); max-width: 820px; }
.bu-kicker { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 999px; background: rgba(255, 210, 74, .18);
  border: 1px solid rgba(255, 210, 74, .55); color: #ffe08a; font: 800 var(--fs-12_5, 12.5px) var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.bu-title { margin: 14px 0 10px; font: 700 clamp(40px, 8vw, 78px)/1 var(--font-display); letter-spacing: -.01em;
  background: linear-gradient(90deg, #fff3b0, #ffd24a 40%, #fffbe8 55%, #ffd24a 70%, #fff3b0); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
  animation: gh-shimmer 6s linear infinite; }
.bu-lead { font-size: clamp(15px, 2vw, 18px); line-height: 1.55; font-weight: 600; color: #e8eefc; margin: 0 0 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.bu-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.bu-jump a { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  font: 700 var(--fs-13_5, 13.5px) var(--font-body); text-decoration: none; transition: background .15s, transform .15s; }
.bu-jump a:hover { background: rgba(255, 210, 74, .3); transform: translateY(-2px); }

.bu-sec { --bu: #e8862a; border-radius: 20px; background: var(--wood-2); border: 2px solid color-mix(in srgb, var(--bu) 45%, transparent);
  box-shadow: 0 10px 26px rgba(6, 30, 50, .12); overflow: hidden; scroll-margin-top: 16px; }
.bu-band { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 22px; color: #fff;
  background: linear-gradient(100deg, var(--bu), color-mix(in srgb, var(--bu) 55%, #1b1438)); font: 700 clamp(22px, 3.2vw, 30px)/1.1 var(--font-display);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.bu-band small { display: block; font: 800 var(--fs-12, 12px) var(--font-body); letter-spacing: .1em; text-transform: uppercase; opacity: .85; text-shadow: none; }
.bu-band-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: var(--fs-30, 30px);
  background: rgba(255, 255, 255, .2); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.bu-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; padding: 22px; align-items: start; }
.bu-two.flip > .bu-text { order: 2; }
.bu-text p { font-size: var(--fs-15_5, 15.5px); line-height: 1.6; margin: 0 0 12px; }
.bu-wide { font-size: var(--fs-15_5, 15.5px); line-height: 1.6; margin: 18px 22px 12px; }
.bu-list { margin: 0 0 14px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bu-list li { position: relative; padding-left: 26px; font-size: var(--fs-15, 15px); line-height: 1.5; }
.bu-list li::before { content: "✦"; position: absolute; left: 4px; top: 0; color: var(--bu); font-weight: 900; }
.bu-cta { margin-top: 4px; }
.bu-note { font-size: var(--fs-13, 13px) !important; color: var(--muted); }
.bu-show { min-width: 0; }
.bu-road { gap: 10px; }
.bu-road .lr-head { padding: 14px; border-radius: 16px; background: var(--wood); border: 1px solid var(--wood-line-2); }
.bu-window { padding: 4px 0; }

/* the carousel */
.bu-car { min-width: 0; border-radius: 16px; background: var(--wood); border: 1px solid var(--wood-line-2); overflow: hidden; }
.bu-car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bu-car-track::-webkit-scrollbar { display: none; }
.bu-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 12px; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.bu-car-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--wood-line-2); background: var(--wood-2); }
.bu-car-bar .bu-car-prev, .bu-car-bar .bu-car-next { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--wood-line-2);
  background: var(--wood); color: var(--ink); cursor: var(--cursor-hand, pointer); }
.bu-car-bar .bu-car-prev:hover, .bu-car-bar .bu-car-next:hover { border-color: var(--bu); color: var(--bu); }
.bu-car-count { flex: 1; font: 700 var(--fs-13, 13px) var(--font-body); color: var(--ink-2); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.bu-car-dots { display: flex; gap: 6px; }
.bu-car-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--wood-line-2); cursor: var(--cursor-hand, pointer); }
.bu-car-dots button[aria-current="true"] { background: var(--bu); transform: scale(1.25); }
.bu-gh { width: 100%; }
.bu-gh .gh-art { height: 150px; }
.bu-gh .gh-id { margin-top: -70px; }
.bu-gh .gh-logo, .bu-gh .gh-logo svg { width: 120px; height: 120px; }
.gh-name h3 { margin: 0; font: 700 clamp(24px, 3.4vw, 34px)/1.05 var(--font-display); color: #fff; text-shadow: 0 3px 10px rgba(0, 0, 0, .55); }
.gh-name h3.gh-gold { background: linear-gradient(90deg, #fff3b0, #ffd24a, #fff3b0); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }

/* the made-up bits of the guild hall in the carousel */
.bu-mock { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.bu-mock-h { display: flex; align-items: center; gap: 8px; font: 700 var(--fs-16, 16px) var(--font-display); }
.bu-mock-h small { margin-left: auto; font: 800 var(--fs-12, 12px) var(--font-body); color: var(--muted); }
.bu-wk { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "ic name em" "ic bar bar"; gap: 2px 10px; align-items: center;
  padding: 8px 10px; border-radius: 12px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.bu-wk.bonus { border-style: dashed; border-color: color-mix(in srgb, #8a4fd8 50%, transparent); }
.bu-wk-ic { grid-area: ic; font-size: var(--fs-20, 20px); } .bu-wk b { grid-area: name; font: 700 var(--fs-14, 14px) var(--font-display); }
.bu-wk em { grid-area: em; font: 800 var(--fs-11_5, 11.5px) var(--font-body); font-style: normal; color: var(--muted); }
.bu-wk em.done { color: #2f8a1f; }
.bu-wk-bar { grid-area: bar; height: 6px; border-radius: 6px; background: var(--wood-3); overflow: hidden; }
.bu-wk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7fd85a, #ffd24a); }
.bu-discord { background: #313338; border-radius: 12px; padding: 12px; color: #dbdee1; }
.bu-dc-msg { display: flex; gap: 10px; font-size: var(--fs-13_5, 13.5px); }
.bu-dc-msg b { color: #fff; } .bu-dc-msg small { color: #949ba4; } .bu-dc-msg p { margin: 2px 0 0; line-height: 1.45; }
.bu-dc-bot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #5865f2; color: #fff; }
.bu-dc-app { padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font: 800 var(--fs-9_5, 9.5px)/15px var(--font-body); vertical-align: 1px; }

/* level 36-50, the gifts, the achievements, the pop-out */
.bu-unlocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.bu-unlocks span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--wood); border: 1px solid var(--wood-line-2); font-size: var(--fs-14, 14px); font-weight: 700; }
.bu-unlocks b { flex: none; min-width: 34px; padding: 1px 6px; border-radius: 8px; background: var(--bu); color: #fff; font: 700 var(--fs-13, 13px) var(--font-display); text-align: center; }
.bu-gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 12px; }
.bu-gifts div { padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #ffc83c 14%, var(--wood)); border: 1px solid color-mix(in srgb, #ffc83c 45%, transparent); }
.bu-gifts div.all { background: linear-gradient(135deg, color-mix(in srgb, #ffc83c 30%, var(--wood)), color-mix(in srgb, #d84f9a 18%, var(--wood))); border-color: #d84f9a; }
.bu-gifts b { display: block; font: 700 var(--fs-15, 15px) var(--font-display); } .bu-gifts span { display: block; font: 800 var(--fs-20, 20px) var(--font-display); color: #b8860b; }
.bu-gifts div.all span { color: #c2185b; } .bu-gifts small { font-size: var(--fs-12, 12px); font-weight: 700; color: var(--ink-2); }
.bu-legend { margin: 0 22px 14px; }
.bu-medals { padding: 0 22px 22px; }
.bu-pip { display: flex; justify-content: center; padding: 10px; border-radius: 16px; background: url("/static/guild_towns/ellinia.jpg") center / cover; }
.bu-pip .cp { width: 340px; max-width: 100%; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.bu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 22px; }
.bu-grid > div { padding: 14px; border-radius: 16px; background: var(--wood); border: 1px solid var(--wood-line-2); transition: transform .15s, box-shadow .15s; }
.bu-grid > div:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(6, 30, 50, .12); }
.bu-g-ic { font-size: var(--fs-30, 30px); } .bu-grid b { display: block; margin: 4px 0; font: 700 var(--fs-16, 16px) var(--font-display); }
.bu-grid p { margin: 0; font-size: var(--fs-13_5, 13.5px); line-height: 1.5; color: var(--ink-2); }
.bu-end { text-align: center; padding: 30px 18px; border-radius: 20px; background: linear-gradient(135deg, #1b2450, #3b2a6b); color: #fff; }
.bu-end h2 { margin: 0 0 6px; font: 700 clamp(26px, 4vw, 38px) var(--font-display); color: #ffd86b; }
.bu-end p { margin: 0 0 16px; font-weight: 600; color: #e8eefc; }
.bu-end-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.bu-card { padding: 12px; border-radius: 16px; background: var(--wood); border: 1px solid var(--wood-line-2); }
.bu-code { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 2px dashed #e0457b; background: color-mix(in srgb, #e0457b 10%, var(--wood-2)); }
.bu-code > span { font-size: var(--fs-26, 26px); } .bu-code div { flex: 1; } .bu-code b { display: block; font: 700 var(--fs-14, 14px) var(--font-display); } .bu-code small { font-size: var(--fs-12_5, 12.5px); color: var(--ink-2); }
.bu-code code { padding: 4px 8px; border-radius: 8px; background: #1b1438; color: #ffd24a; font: 700 var(--fs-13, 13px) monospace; letter-spacing: .06em; }
.bu-unlocks-2 { grid-template-columns: 1fr; margin-bottom: 10px; }
.bu-prof { border-radius: 18px; overflow: hidden; background: var(--wood); border: 2px solid #ffd24a; box-shadow: 0 12px 26px rgba(6, 30, 50, .2); }
.bu-prof-banner img { display: block; width: 100%; height: 110px; object-fit: cover; }
.bu-prof-who { display: flex; align-items: flex-end; gap: 12px; padding: 0 14px; margin-top: -36px; }
.bu-prof-pic { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; background: #fffbe8; border: 4px solid #ffd24a; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.bu-prof-pic img { width: 46px; image-rendering: pixelated; }
.bu-prof-who b { display: block; font: 700 var(--fs-22, 22px) var(--font-display); } .bu-prof-who small { font-weight: 700; color: var(--ink-2); }
.bu-prof-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 14px; }
.bu-prof-tags span { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, #2f9a8a 18%, var(--wood-2)); font: 800 var(--fs-12, 12px) var(--font-body); }
.bu-soon { position: relative; border-style: dashed; }
.bu-soon-tag { position: absolute; top: 18px; right: -42px; z-index: 2; transform: rotate(35deg); padding: 4px 48px; background: #ffd24a; color: #3a2600;
  font: 800 var(--fs-12, 12px) var(--font-body); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.bu-peek { position: relative; padding: 14px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #23324d, #121a29); color: #fff; }
.bu-peek-msgs { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font: 600 var(--fs-13, 13px) "Segoe UI", sans-serif; text-shadow: 1px 1px 0 #000; }
.bu-peek-msgs span { opacity: .55; } .bu-peek-msgs span.it { opacity: 1; animation: bu-peek 2.6s ease-in-out infinite alternate; } .bu-peek-msgs span.eq { color: #ffe08a; }
@keyframes bu-peek { to { text-shadow: 1px 1px 0 #000, 0 0 10px #ffd24a; } }
/* the sneak peek's Discord message: what a guild's channel shows for a drop (web.py drop_message), Discord's own colours */
.bu-dc-arrow { margin: 10px 0; text-align: center; font: 700 var(--fs-13, 13px) var(--font-display); color: var(--muted); }
.bu-dc { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #313338; color: #dbdee1; text-align: left;
  font: 400 var(--fs-14, 14px)/1.4 "gg sans", "Segoe UI", system-ui, sans-serif; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.bu-dc-body { min-width: 0; flex: 1; }
.bu-dc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bu-dc-head b { color: #f2f3f5; font-weight: 600; }
.bu-dc-head small { color: #949ba4; font-size: var(--fs-12, 12px); }
.bu-dc-text { margin: 2px 0 6px; } .bu-dc-text b, .bu-dc-embed p b { color: #f2f3f5; font-weight: 700; }
.bu-dc-embed { display: flex; gap: 14px; max-width: 420px; padding: 10px 14px 12px 12px; border-radius: 4px; background: #2b2d31;
  border-left: 4px solid #f0b232; }
.bu-dc-embed > div { min-width: 0; flex: 1; }
.bu-dc-embed p { margin: 6px 0 0; font-size: var(--fs-13_5, 13.5px); }
.bu-dc-title { display: block; color: #f2f3f5; font-weight: 700; }
.bu-dc-embed small { display: block; margin-top: 8px; color: #b5bac1; font-size: var(--fs-11_5, 11.5px); }
.bu-dc-thumb { width: 64px; height: 64px; flex: none; object-fit: contain; image-rendering: pixelated; padding: 8px; border-radius: 6px; background: #1e1f22; }
@media (prefers-reduced-motion: no-preference) { .bu-js .bu-reveal.bu-in .bu-dc { animation: bu-dc-in .6s .5s ease-out both; } }
@keyframes bu-dc-in { from { opacity: 0; transform: translateY(12px); } }
.bu-peek-items em { font-style: normal; font-size: var(--fs-12, 12px); color: #9bd12e; }

/* coming into view (static/bigupdate.js; without it, or with reduced motion, all simply shows) */
.bu-js .bu-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .9, .3, 1); }
.bu-js .bu-reveal.bu-in { opacity: 1; transform: none; }

/* What's new: the update's card links to its page */
.update-latest.bu-latest { grid-template-columns: 1fr; }  /* (a big update: its banner on top, its many lines below) */
.update-pic.bu-pic { position: relative; padding: 0; overflow: hidden; text-decoration: none; }
.update-pic.bu-pic .bu-gh { border-radius: 0; border: 0; }
.bu-pic-tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: #ffd24a; color: #3a2600; font: 800 var(--fs-12, 12px) var(--font-body); }

@media (max-width: 860px) { .bu-two { grid-template-columns: 1fr; } .bu-two.flip > .bu-text { order: 0; } }
@media (max-width: 575.98px) { .bu-hero-moon { width: 64px; height: 64px; } .bu-band { padding: 12px 14px; } .bu-band-ic { width: 42px; height: 42px; font-size: var(--fs-22, 22px); }
  .bu-two, .bu-grid { padding: 14px; } .bu-wide { margin: 14px 14px 10px; } .bu-legend { margin: 0 14px 12px; } .bu-medals { padding: 0 14px 14px; } }
@media (prefers-reduced-motion: reduce) { .bu-title { animation: none; } }

/* Admin > Controls on the beta site: the testers */
.ctl-testers { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.ctl-tester { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.ctl-tester.on { background: color-mix(in srgb, #ffc83c 16%, transparent); }
.ctl-tester small { margin-left: auto; color: var(--muted); font-size: var(--fs-12, 12px); }

.test-site-bar.beta { background: repeating-linear-gradient(135deg, #8a4fd8 0 14px, #7a3fc8 14px 28px); color: #fff; }

/* ---------- the guild's achievements: the ones still to get on a light card in their tier's colour (readable, with a
   progress bar in that colour); the earned ones in full colour with a tick ---------- */
.gm-medal { --tier: #c27a3a; }
.gm-medal.t-silver { --tier: #8693a2; } .gm-medal.t-gold { --tier: #d39b14; } .gm-medal.t-legendary { --tier: #8a4fd8; }
.gm-medal.locked { filter: none; background: #fffdf8; color: #3b2a1a; border: 2px solid color-mix(in srgb, var(--tier) 55%, #fff);
  box-shadow: inset 0 5px 0 var(--tier), 0 2px 0 rgba(90, 60, 30, .12); }
.gm-medal.locked .gm-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-24, 24px); text-shadow: none;
  background: color-mix(in srgb, var(--tier) 16%, #fff); border: 2px solid color-mix(in srgb, var(--tier) 60%, #fff); }
.gm-medal.locked small { color: #6b5236; opacity: 1; }
.gm-medal.locked .gm-rib { background: var(--tier); color: #fff; }
.gm-medal.locked .gm-prog { background: color-mix(in srgb, var(--tier) 15%, #f1e6d2); }
.gm-medal.locked .gm-prog i { background: var(--tier); }
.gm-medal.locked .gm-foot { color: #6b5236; }
.gm-medal.locked .gm-foot span:last-child { background: color-mix(in srgb, var(--tier) 18%, #fff); color: #3b2a1a; }
.gm-medal.locked .gm-title { background: transparent; border: 1px dashed color-mix(in srgb, var(--tier) 70%, #fff); color: #6b5236; }
.gm-medal.locked .gm-gift.plus { box-shadow: 0 1px 0 rgba(120, 80, 0, .35); }
.gm-ic { position: relative; align-self: flex-start; }
.gm-done { position: absolute; right: -8px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--fs-13, 13px); font-style: normal; background: #2f9a1f; color: #fff; box-shadow: 0 0 0 2px #fff; }

/* ---------- the guild level road: room for members ---------- */
.lr-room { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; font-size: var(--fs-14, 14px); }
.lr-room small { color: var(--muted); font-weight: 700; }

/* ---------- the Rewards tab: presents to open ---------- */
.rw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 12% 30%, rgba(255, 210, 74, .45), transparent 45%), linear-gradient(135deg, #2f7a1f, #1d5a3a 60%, #1b4a5a);
  border: 2px solid #ffd24a; box-shadow: 0 10px 26px rgba(20, 60, 30, .3); }
.rw-chest { position: relative; flex: none; width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; font-size: var(--fs-54, 54px);
  background: radial-gradient(circle, rgba(255, 255, 255, .3), rgba(255, 255, 255, .05)); }
.rw-chest span { animation: gh-shake 2.2s ease-in-out infinite; }
.rw-chest i { position: absolute; top: -6px; right: -6px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  background: #ff5a8a; color: #fff; font: 800 var(--fs-15, 15px) var(--font-display); font-style: normal; box-shadow: 0 0 0 3px #fff; }
.rw-head-main { flex: 1 1 320px; min-width: 0; }
.rw-head h2 { margin: 0; font: 700 clamp(22px, 3vw, 28px)/1.1 var(--font-display); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.rw-head p { margin: 6px 0 10px; color: #e6f5df; font-size: var(--fs-14_5, 14.5px); } .rw-head p b { color: #ffe08a; }
.rw-month { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-13, 13px); font-weight: 700; color: #d9eed2; }
.rw-month-bar { height: 10px; margin-top: 4px; border-radius: 999px; background: rgba(0, 0, 0, .25); overflow: hidden; }
.rw-month-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd24a, #ff9a3c); }
.rw-gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 16px; }
.rw-gift { --tier: #d39b14; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px 14px;
  border-radius: 18px; text-align: center; background: linear-gradient(170deg, #fff, color-mix(in srgb, var(--tier) 14%, #fff8ec));
  border: 2px solid var(--tier); box-shadow: 0 6px 16px color-mix(in srgb, var(--tier) 30%, transparent); animation: rw-in .5s ease-out both; }
.rw-gift.t-bronze { --tier: #c27a3a; } .rw-gift.t-silver { --tier: #8693a2; } .rw-gift.t-legendary { --tier: #8a4fd8; } .rw-gift.t-level { --tier: #2f9a1f; }
@keyframes rw-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.rw-ribbon { position: absolute; inset: 0 auto 0 50%; width: 14px; margin-left: -7px; background: color-mix(in srgb, var(--tier) 22%, transparent); }
.rw-ic { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-34, 34px); background: #fff;
  border: 3px solid var(--tier); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tier) 18%, transparent); animation: gh-shake 2.6s ease-in-out infinite; }
.rw-gift small { position: relative; color: #6b5236; font-weight: 800; font-size: var(--fs-11_5, 11.5px); letter-spacing: .05em; text-transform: uppercase; }
.rw-gift b { position: relative; font: 700 var(--fs-19, 19px)/1.15 var(--font-display); color: #2b1a0c; }
.rw-days { position: relative; margin: 2px 0 6px; font-weight: 800; color: #5a4300; } .rw-days em { font: 700 var(--fs-24, 24px) var(--font-display); color: #b77d10; }
.rw-claim { position: relative; --bs-btn-color: #3a2600; --bs-btn-bg: #ffd24a; --bs-btn-border-color: #e0b22a; --bs-btn-hover-bg: #ffe07a; --bs-btn-hover-color: #3a2600;
  --bs-btn-active-bg: #f5c53a; font-weight: 800; border-radius: 999px; padding: 7px 18px; box-shadow: 0 3px 0 #b77d10; }
.rw-gift .rw-when { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--muted); }
.rw-near { display: flex; flex-direction: column; gap: 12px; }
.rw-n { --tier: #c27a3a; display: flex; gap: 12px; align-items: flex-start; }
.rw-n.t-silver { --tier: #8693a2; } .rw-n.t-gold { --tier: #d39b14; } .rw-n.t-legendary { --tier: #8a4fd8; } .rw-n.level { --tier: #2f9a1f; }
.rw-n-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: var(--fs-22, 22px);
  background: color-mix(in srgb, var(--tier) 15%, #fff); border: 2px solid color-mix(in srgb, var(--tier) 55%, #fff); }
.rw-n-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rw-n-top { display: flex; align-items: center; gap: 8px; } .rw-n-top b { font-family: var(--font-display); font-size: var(--fs-15_5, 15.5px); }
.rw-n-gift { margin-left: auto; flex: none; padding: 0 9px; border-radius: 999px; background: #ffc83c; color: #3a2600; font: 800 var(--fs-11_5, 11.5px)/20px var(--font-body); }
.rw-n small { color: var(--muted); font-weight: 700; font-size: var(--fs-12, 12px); }
.rw-n-bar { height: 8px; border-radius: 999px; background: var(--wood-3); overflow: hidden; }
.rw-n-bar i { display: block; height: 100%; border-radius: inherit; background: var(--tier); }
.rw-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rw-tier { --tier: #c27a3a; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--tier) 12%, #fff); border: 2px solid color-mix(in srgb, var(--tier) 50%, #fff); }
.rw-tier.t-silver { --tier: #8693a2; } .rw-tier.t-gold { --tier: #d39b14; } .rw-tier.t-legendary { --tier: #8a4fd8; }
.rw-tier.level { --tier: #2f9a1f; grid-column: 1 / -1; } .rw-tier.wide { grid-column: 1 / -1; }
.rw-tier > span { font-size: var(--fs-22, 22px); } .rw-tier b { font: 700 var(--fs-14, 14px) var(--font-display); }
.rw-tier em { font: 700 var(--fs-18, 18px) var(--font-display); color: #b77d10; } .rw-tier small { font-size: var(--fs-11_5, 11.5px); font-weight: 700; color: var(--muted); }
.rw-rules { margin-top: 12px; } .rw-rules summary { font-weight: 800; color: var(--ink-2); cursor: var(--cursor-hand, pointer); }
.rw-history { display: flex; flex-direction: column; }
.rw-h { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--wood-line-2); }
.rw-h:last-child { border-bottom: 0; }
.rw-h-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--wood-3); font-size: var(--fs-18, 18px); }
.rw-h-what { flex: 1; min-width: 0; display: flex; flex-direction: column; } .rw-h-what b { font-family: var(--font-display); }
.rw-h-what small, .rw-h-when { color: var(--muted); font-weight: 700; font-size: var(--fs-12, 12px); }

/* ---------- the Finds tab: the top finder on a stage, the others racing ---------- */
.gf-champ { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 22px 24px; border-radius: 20px;
  color: #fff; border: 2px solid #ffd24a; box-shadow: 0 12px 28px rgba(40, 20, 80, .35);
  background: radial-gradient(circle at 20% 40%, rgba(255, 210, 74, .55), transparent 45%), radial-gradient(circle at 90% 0, rgba(255, 122, 182, .35), transparent 40%),
    linear-gradient(135deg, #2a1d55, #4a1f6b 60%, #6b2a5a); }
.gf-confetti { position: absolute; inset: 0; pointer-events: none; }
.gf-confetti i { position: absolute; top: -12px; left: var(--x); width: 7px; height: 11px; border-radius: 2px; background: var(--c); opacity: .9;
  animation: gf-fall 3.2s linear var(--d) infinite; }
@keyframes gf-fall { to { transform: translateY(260px) rotate(540deg); opacity: 0; } }
.gf-champ-who { position: relative; flex: none; padding-top: 14px; }
.gf-champ-who .gh-av { width: 96px; height: 96px; border-radius: 28px; font-size: var(--fs-32, 32px); box-shadow: 0 0 0 4px #ffd24a, 0 0 30px rgba(255, 210, 74, .7); }
.gf-crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: var(--fs-34, 34px); z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); animation: gf-crown 2s ease-in-out infinite alternate; }
@keyframes gf-crown { to { transform: translateX(-50%) rotate(-8deg) translateY(-5px); } }
.gf-champ-main { position: relative; flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gf-champ .gf-kicker { color: #ffe08a; }
.gf-champ h3 { margin: 0; font: 700 clamp(28px, 4vw, 40px)/1.05 var(--font-display); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.gf-champ-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.gf-champ-n b { font: 700 var(--fs-44, 44px)/1 var(--font-display); color: #ffd24a; text-shadow: 0 0 18px rgba(255, 210, 74, .6); }
.gf-champ-n span { font-weight: 800; font-size: var(--fs-16, 16px); } .gf-champ-n small { color: #e7dcff; font-weight: 700; }
.gf-best { display: flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 4px; padding: 6px 14px 6px 6px; border-radius: 16px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 224, 138, .5); }
.gf-best img, .gf-best .bi { width: 40px; height: 40px; padding: 4px; border-radius: 12px; background: radial-gradient(circle, #fffbe8, #ffd24a); object-fit: contain;
  image-rendering: pixelated; font-size: var(--fs-24, 24px); color: #3a2600; display: grid; place-items: center; }
.gf-best span { display: flex; flex-direction: column; line-height: 1.2; }
.gf-best small { color: #ffe08a; font-weight: 800; font-size: var(--fs-11, 11px); letter-spacing: .06em; text-transform: uppercase; }
.gf-best b { font-family: var(--font-display); font-size: var(--fs-15, 15px); } .gf-best em { font-style: normal; color: #e7dcff; font-size: var(--fs-12, 12px); font-weight: 700; }
.gf-race { display: flex; flex-direction: column; gap: 10px; }
.gf-racer { display: flex; align-items: center; gap: 10px; }
.gf-place { width: 26px; flex: none; text-align: center; font: 700 var(--fs-16, 16px) var(--font-display); color: var(--muted); }
.gf-racer-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gf-racer-top { display: flex; gap: 8px; } .gf-racer-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); }
.gf-racer-top span { font-weight: 800; color: #b77d10; white-space: nowrap; }
.gf-track { height: 9px; border-radius: 999px; background: var(--wood-3); overflow: hidden; }
.gf-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd24a, #ff9a3c); animation: ach-fill 1s ease-out both; }
.gf-racer small { color: var(--muted); font-weight: 700; font-size: var(--fs-12, 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gf-stat.finders b { color: #8a4fd8; }
@media (prefers-reduced-motion: reduce) { .gf-confetti, .gf-crown, .rw-ic, .rw-chest span, .rw-gift { animation: none !important; } }

/* ---------- buttons that take something away: a calm red pill with its icon, not a bare red link ---------- */
.btn-remove { --bs-btn-padding-x: .6rem; --bs-btn-padding-y: .12rem; --bs-btn-font-size: var(--fs-12_5, 12.5px); --bs-btn-color: #b02a2a; --bs-btn-bg: #fff4f2;
  --bs-btn-border-color: #f0b8b0; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #c9302c; --bs-btn-hover-border-color: #c9302c;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #a82420; --bs-btn-active-border-color: #a82420; border-radius: 999px; font-weight: 800; }
.btn-remove .bi { margin-right: 2px; }
/* leaving the guild: a box of its own that says what happens */
.gh-leave { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 18px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, #fff6f4, #fff); border: 2px dashed #f0b8b0; }
.gh-leave-ic { font-size: var(--fs-28, 28px); }
.gh-leave > div { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gh-leave b { font-family: var(--font-display); font-size: var(--fs-16, 16px); color: #7a1f1a; } .gh-leave small { color: #6b5236; font-weight: 600; }
.btn-leave { --bs-btn-color: #fff; --bs-btn-bg: #c9302c; --bs-btn-border-color: #a82420; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #a82420;
  --bs-btn-hover-border-color: #8a1c19; --bs-btn-active-bg: #8a1c19; --bs-btn-active-color: #fff; border-radius: 999px; font-weight: 800;
  padding: 6px 16px; box-shadow: 0 3px 0 #7a1814; }

/* ---------- the pop-out showcase (live page, Support, What's new): the compact pop-out players get, on the season's sky
   like in its own window, and the whole card one click away (app.js showcasePopout) ---------- */
.plus-live-show { flex-direction: column; align-items: center; }
.sc-small { width: 100%; max-width: 380px; align-self: center; text-align: left; }
.sc-switch { display: inline-flex; gap: 2px; margin-bottom: 8px; padding: 3px; border-radius: 999px; background: var(--wood-3); border: 1px solid var(--wood-line-2); }
.sc-switch button { border: 0; padding: 4px 12px; border-radius: 999px; background: transparent; color: var(--ink-2); font: 800 var(--fs-12, 12px) var(--font-body); }
.sc-switch button.on { background: #fff; color: var(--ink-strong); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.sc-compact { padding: 6px; border-radius: 16px; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); box-shadow: 0 8px 22px rgba(10, 20, 50, .3); }
.sc-compact[hidden] { display: none; }
.sc-compact .window { margin: 0; }

/* ---------- the Achievements page: a trophy hall (your rank in a ring filling towards the next, the ladder of ranks, a ring
   per tier), then each tier in a window of its own, the ones nearly done and your title on the side. In the season's own
   windows and colours (--wood, --ink), by day and by night. ---------- */
.ac-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 4px; }
.ac-head .page-sub { max-width: 720px; }
.ac-hall { margin-top: 14px; }
.ac-hall .window-aside b { color: #ffd24a; font-family: var(--font-display); font-size: var(--fs-15, 15px); }
.ac-hall-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 30px; align-items: center; }
.ac-ring { --ring: #e9a21c; flex: none; display: grid; place-items: center; width: 132px; height: 132px; padding: 9px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--wood-3) 0); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.ac-ring.rank .ach-medal { width: 100%; height: 100%; font-size: var(--fs-46, 46px); border-width: 3px; }
.ac-rank { display: flex; align-items: center; gap: 18px; }
.ac-rank-t small { display: block; font-size: var(--fs-12, 12px); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ac-rank-t h2 { margin: 0; font: 700 clamp(30px, 4vw, 40px)/1.05 var(--font-display); color: var(--ink-strong); }
.ac-rank-t span { font-size: var(--fs-14, 14px); color: var(--ink-2); } .ac-rank-t span b { color: #c98a1a; }
.ac-ladder { display: flex; margin: 0; padding: 0; list-style: none; min-width: 0; }
.ac-ladder li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-width: 0; }
.ac-ladder li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 4px; border-radius: 4px; background: var(--wood-3); }
.ac-ladder li:first-child::before { display: none; }
.ac-ladder li.done::before, .ac-ladder li.here::before { background: #5fae35; }
.ac-step { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 var(--fs-14, 14px) var(--font-display);
  color: var(--muted); background: var(--wood-2); border: 3px solid var(--wood-3); }
.ac-ladder li.done .ac-step { color: #fff; background: #5fae35; border-color: #5fae35; }
.ac-ladder li.here .ac-step { width: 40px; height: 40px; margin-top: -3px; color: #3a2600; background: #ffd24a; border-color: #fff4c4;
  box-shadow: 0 0 0 4px rgba(255, 210, 74, .35), 0 0 18px rgba(255, 190, 40, .6); }
.ac-ladder b { font: 700 var(--fs-13, 13px) var(--font-display); color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ac-ladder li:not(.done):not(.here) b { color: var(--muted); }
.ac-ladder small { font-size: var(--fs-11, 11px); font-weight: 700; color: var(--muted); }
.ac-trs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ac-tr { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--wood-2); border: 1px solid var(--wood-line-2); min-width: 0; }
.ac-tr .ac-ring { width: 54px; height: 54px; padding: 5px; }
.ac-tr .ac-ring i { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-19, 19px); color: #fff; background: var(--ring); }
.ac-tr > span { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ac-tr b { font: 700 var(--fs-15, 15px) var(--font-display); color: var(--ink-strong); } .ac-tr small { font-weight: 800; color: var(--ink-2); }
.ac-tr em { font-style: normal; font-size: var(--fs-11_5, 11.5px); font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-tr em.on { color: #3f8f2a; }
.ac-ring.t-easy { --ring: #5fae35; } .ac-ring.t-medium { --ring: #e9a21c; } .ac-ring.t-hard { --ring: #d9473f; } .ac-ring.t-extreme { --ring: #8a4fd8; }
.ac-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; margin-top: 16px; }
.ac-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ac-main > .window, .ac-side > .window { margin: 0; }
.ac-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 12px; }
.ac-tier { --tier: #5fae35; overflow: hidden; }
.ac-tier.t-medium { --tier: #e9a21c; } .ac-tier.t-hard { --tier: #d9473f; } .ac-tier.t-extreme { --tier: #8a4fd8; }
.ac-tier-gem { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 4px; border-radius: 50%; color: #fff; background: var(--tier);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); font-size: var(--fs-13, 13px); }
.ac-tier .window-name .ac-tier-gem .bi { color: #fff; margin: 0; }
.ac-tier-pts { margin-left: 8px; font: 700 var(--fs-12, 12px) var(--font-body); letter-spacing: 0; text-transform: none; opacity: .75; }
.ac-tier .window-aside { display: inline-flex; align-items: center; gap: 10px; }
.ac-tier-n { font-family: var(--font-display); font-size: var(--fs-15, 15px); }
.ac-tier-bar { height: 6px; background: var(--wood-3); }
.ac-tier-bar i { display: block; height: 100%; background: var(--tier); }
/* the cards, in the season's colours: a tint of their tier once earned, the medal and bar in the tier's colour */
.ac-tier .achc { --tier: #5fae35; background: var(--wood-2); border: 2px solid var(--wood-line-2); }
.ac-tier .achc.t-medium { --tier: #e9a21c; } .ac-tier .achc.t-hard { --tier: #d9473f; } .ac-tier .achc.t-extreme { --tier: #8a4fd8; }
.ac-tier .achc:not(.earned) .achc-medal { color: var(--tier); background: var(--wood-3); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tier) 45%, transparent); }
.ac-tier .achc.earned:not(.t-extreme) { background: color-mix(in srgb, var(--tier) 9%, var(--wood-2)); border-color: color-mix(in srgb, var(--tier) 70%, var(--wood-2)); }
.ac-tier .achc .achc-top b { color: var(--ink-strong); }
.ac-tier .achc :is(p, .achc-left) { color: var(--ink-2); }
.ac-tier .achc .achc-bar { background: var(--wood-3); }
.ac-tier .achc.t-extreme:not(.earned) { background: var(--wood-2); border-color: color-mix(in srgb, var(--tier) 45%, var(--wood-2)); }
.ac-tier .achc.t-extreme:not(.earned) b { color: var(--ink-strong); }
.ac-tier .achc.t-extreme:not(.earned) :is(p, .achc-left) { color: var(--ink-2); }
.ac-tier .achc.t-extreme:not(.earned) .achc-medal { color: var(--tier); background: var(--wood-3); }
.ac-tier .achc.secret.locked { background: var(--wood-2); border: 2px dashed var(--wood-line-2); }
.ac-tier .achc.secret.locked b { color: var(--ink-strong); } .ac-tier .achc.secret.locked p { color: var(--muted); }
.ac-tier .achc.secret.locked .achc-medal { color: var(--muted); background: var(--wood-3); }
.ac-tier .achc-secret { color: var(--muted); }
.ac-near { display: flex; flex-direction: column; gap: 12px; }
.ac-n { --tier: #5fae35; display: flex; gap: 10px; align-items: flex-start; }
.ac-n.t-medium { --tier: #e9a21c; } .ac-n.t-hard { --tier: #d9473f; } .ac-n.t-extreme { --tier: #8a4fd8; }
.ac-n > div { flex: 1; min-width: 0; }
.ac-n-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--tier); font-size: var(--fs-17, 17px); }
.ac-n-top { display: flex; gap: 8px; } .ac-n-top b { flex: 1; min-width: 0; font-family: var(--font-display); color: var(--ink-strong); }
.ac-n-top span { font-weight: 800; color: var(--tier); }
.ac-n-bar { display: block; height: 8px; margin: 3px 0; border-radius: 999px; background: var(--wood-3); overflow: hidden; }
.ac-n-bar i { display: block; height: 100%; border-radius: inherit; background: var(--tier); }
.ac-n small, .ac-title small, .ac-pin-how { display: block; font-size: var(--fs-12_5, 12.5px); color: var(--ink-2); }
.ac-title-now { --tier: #5fae35; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 12px; border-radius: 999px;
  font: 700 var(--fs-14, 14px) var(--font-display); color: #fff; background: var(--tier); }
.ac-title-now.t-medium { --tier: #c98a1a; } .ac-title-now.t-hard { --tier: #c23a33; } .ac-title-now.t-extreme { --tier: #7a3fd0; }
@media (max-width: 1100px) { .ac-split { grid-template-columns: 1fr; } .ac-side { position: static; } }
@media (max-width: 760px) {
  .ac-hall-body { grid-template-columns: 1fr; }
  .ac-ladder { overflow-x: auto; padding-bottom: 4px; } .ac-ladder li { min-width: 76px; }
  .ac-trs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-ring { width: 104px; height: 104px; } .ac-ring.rank .ach-medal { font-size: var(--fs-36, 36px); }
}

/* ---------- your profile: in the site's own windows (the season's look); your look shown inside them ---------- */
.prof-win { margin-top: 14px; }
.prof-win .prof-hero { border-radius: 16px !important; }
.prof-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.prof-facts > * { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border-radius: 14px; text-align: center; min-width: 0;
  background: var(--wood-2); border: 1px solid var(--wood-line-2); color: var(--ink-strong); text-decoration: none; }
.prof-facts a:hover { border-color: var(--wood-line); }
.prof-facts .bi { font-size: var(--fs-18, 18px); color: #c98a1a; }
.prof-facts b { font: 700 var(--fs-15, 15px) var(--font-display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-facts small { font-size: var(--fs-11_5, 11.5px); font-weight: 700; color: var(--muted); }
.prof-panel-win .window-aside .seg { background: rgba(255, 255, 255, .85); }
.prof-panel-win .prof-sec-h { color: var(--ink-strong); }
.prof-panel-win .prof-sec-h .bi { color: #c98a1a; }
.prof-panel-win :is(.prof-border-now, .prof-color, .prof-switch) { background: var(--wood-2); border-color: var(--wood-line-2); color: var(--ink); }
html .prof-panel-win .prof-pic { background: var(--wood-2); border: 1px solid var(--wood-line-2); color: var(--ink); }
.prof-panel-win .prof-pic-bar { background: var(--wood-3); }
.prof-side { display: flex; flex-direction: column; gap: 16px; }
.prof-side > .window { margin: 0; }
.prof-board-win .feed-row { min-height: 60px; }
@media (max-width: 760px) { .prof-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- no guild yet: start or join one (app.js guildStartHtml) ---------- */
.gs-hero { position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; border-radius: 22px; border: 3px solid #e0b22a;
  box-shadow: 0 14px 34px rgba(10, 20, 50, .4); }
.gs-art { position: absolute; inset: 0; }
.gs-town { position: absolute; inset: 0; opacity: 0; animation: gs-fade 24s linear infinite; animation-delay: calc(var(--i) * 6s); }
.gs-town:first-child { opacity: 1; }
.gs-town .gh-town { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; animation: gs-pan 24s ease-in-out infinite alternate; }
@keyframes gs-fade { 0%, 22% { opacity: 1; } 27%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes gs-pan { to { transform: scale(1.08) translateX(-2%); } }
.gs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 40, .9), rgba(10, 16, 40, .62) 55%, rgba(10, 16, 40, .15)), linear-gradient(180deg, transparent 50%, rgba(10, 16, 40, .5)); }
.gs-hero-in { position: relative; z-index: 1; padding: 26px 28px 22px; color: #fff; max-width: 820px; }
.gs-kicker { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255, 210, 74, .9); color: #3a2600; font: 800 var(--fs-12, 12px) var(--font-body); }
.gs-hero h1 { margin: 8px 0 6px; font: 700 clamp(34px, 5vw, 54px)/1.02 var(--font-display); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.gs-hero p { margin: 0 0 12px; font-size: var(--fs-15_5, 15.5px); font-weight: 600; color: #e9eefc; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.gs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.gs-chips span { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-size: var(--fs-13, 13px); font-weight: 800; backdrop-filter: blur(3px); }
.gs-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.gs-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; border-radius: 20px; color: var(--ink);
  background: var(--wood-2, #fff8ec); border: 2px solid var(--wood-line, #c89a6a); box-shadow: 0 6px 0 rgba(60, 40, 20, .18); }
.gs-card.join { background: linear-gradient(160deg, #eef8ff, #fff); border-color: #6aa8d8; }
.gs-card.start { background: linear-gradient(160deg, #fff6dc, #fff); border-color: #e0b22a; }
.gs-card-ic { position: absolute; top: -18px; right: 18px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: var(--fs-28, 28px);
  background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transform: rotate(6deg); }
.gs-card h2 { margin: 0; font: 700 var(--fs-24, 24px) var(--font-display); color: #2b1a0c; }
.gs-card p { margin: 0; font-size: var(--fs-14, 14px); color: #5a4630; }
.gs-tip { color: #5a6a7a; font-weight: 600; }
.gs-prev { position: relative; height: 110px; border-radius: 14px; overflow: hidden; border: 2px solid #e0b22a; }
.gs-prev-art .gh-town { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.gs-prev::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 40, .75), rgba(10, 16, 40, .1)); }
.gs-prev-logo { position: absolute; z-index: 1; left: 12px; top: 50%; transform: translateY(-50%); width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center; background: radial-gradient(#fffbe8, #ffd24a); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.gs-prev-logo img { width: 40px; height: 40px; image-rendering: pixelated; }
.gs-prev-t { position: absolute; z-index: 1; left: 90px; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; color: #fff; }
.gs-prev-t b { font: 700 var(--fs-24, 24px)/1.1 var(--font-display); text-shadow: 0 2px 0 rgba(0, 0, 0, .4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-prev-t small { font-weight: 800; color: #ffe08a; }
.gs-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.gs-perk { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--wood-2); border: 1px solid var(--wood-line-2); }
.gs-perk span { font-size: var(--fs-26, 26px); } .gs-perk b { font: 700 var(--fs-15_5, 15.5px) var(--font-display); color: var(--ink-strong); } .gs-perk small { color: var(--ink-2); font-size: var(--fs-12_5, 12.5px); }
.gs-top { display: flex; flex-direction: column; }
.gs-top-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--wood-line-2); }
.gs-top-logo { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--wood-3); }
.gs-top-logo img { max-width: 26px; max-height: 26px; image-rendering: pixelated; }
.gs-top-who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .gs-top-who b { font-family: var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-top-who small { color: var(--muted); font-weight: 700; font-size: var(--fs-12, 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-top-lv { font: 700 var(--fs-14, 14px) var(--font-display); color: #c98a1a; }
@media (max-width: 860px) { .gs-paths { grid-template-columns: 1fr; } .gs-hero { min-height: 340px; } }
@media (prefers-reduced-motion: reduce) { .gs-town, .gs-town .gh-town { animation: none; } }

/* the announcement's Read more: a page on the site (web.py clean_announcement_link) */
.announce-link { flex: none; align-self: center; margin-left: auto; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: var(--fs-13, 13px); white-space: nowrap;
  text-decoration: none; color: #3a2600; background: #ffd24a; border: 1px solid #e0b22a; }
.announce-link:hover { color: #3a2600; background: #ffe07a; }

/* ---------- the live page while tracking, as on the redesign's mock-up B (app.js liveRunningHtml): a wider page, the big
   column and a side one; a window with nothing in it (no race, no goal) stays out ---------- */
#view:has(> .lv-page) { max-width: 1240px; }
.lv-page { display: flex; flex-direction: column; gap: 16px; }
.lv-page > * { margin-top: 0 !important; }
.lv-page > :is(#live-alert, #live-idle, #board-ask, #live-game):empty { display: none; }
.lv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.lv-switches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 8px; }
.lv-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.lv-main, .lv-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lv-main > *, .lv-side > * { margin: 0 !important; }
.lv-side { position: sticky; top: 12px; }
.lv-side > :empty, .lv-race:has(#live-race:empty) { display: none; }
.lv-race #live-race .race { margin: 0; }
.lv-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.lv-two > :empty, .lv-two:not(:has(> :not(:empty))) { display: none; }
.lv-two > * > * { margin: 0 !important; height: 100%; }
.lv-goal .live-goal { margin: 0; }
.lv-exp #live-stats .row { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
@media (max-width: 1100px) { .lv-split { grid-template-columns: 1fr; } .lv-side { position: static; } }

/* ---------- What's new: a big update's card (pages/updates.html): its picture says where it goes, a tile for each part
   (each to its part of the update's own page), and every line folded away under them ---------- */
.bu-pic-cta { position: absolute; right: 12px; bottom: 12px; padding: 6px 14px; border-radius: 999px; background: #ffd24a; color: #3a2600;
  font: 800 var(--fs-13, 13px) var(--font-body); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.update-pic.bu-pic:hover .bu-pic-cta { transform: translateX(4px); }
.bu-lead-line { margin: 2px 0 12px; font-size: var(--fs-15, 15px); color: var(--ink-2); }
.bu-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bu-tiles a { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 10px; border-radius: 14px; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease; }
.bu-tiles a:hover { transform: translateY(-3px); }
.bu-tiles span { font-size: var(--fs-26, 26px); line-height: 1.1; } .bu-tiles b { font: 700 var(--fs-16, 16px) var(--font-display); color: var(--ink-strong); }
.bu-tiles small { font-size: var(--fs-12_5, 12.5px); color: var(--ink-2); font-weight: 600; }
.bu-read { align-self: flex-start; margin-top: 14px; }
.update-all { margin-top: 12px; }
.update-all > summary { font-weight: 800; color: var(--ink-2); cursor: var(--cursor-hand, pointer); }
.update-all[open] > summary { margin-bottom: 8px; }

/* ---------- theme banners (static/app.js themeBanner): a town of the game in a theme's colours, a little drifting over it ---------- */
.tb { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; background: #0c1020; }
.tb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tb-tint { position: absolute; inset: 0; }
.tb-sunset .tb-tint { background: linear-gradient(180deg, rgba(255, 122, 182, .3), rgba(120, 50, 160, .25) 45%, rgba(42, 21, 70, .85)); }
.tb-sunset > img { filter: saturate(1.1) hue-rotate(-12deg) brightness(.92); }
.tb-ludi .tb-tint { background: linear-gradient(180deg, rgba(22, 31, 77, .55), rgba(22, 31, 77, .2) 40%, rgba(10, 16, 48, .88)); }
.tb-ludi > img { filter: saturate(1.05) brightness(.7); }
.tb-ellinia .tb-tint { background: linear-gradient(180deg, rgba(12, 43, 40, .45), rgba(12, 43, 40, .1) 40%, rgba(6, 26, 24, .88)); }
.tb-ellinia > img { filter: saturate(1.15) brightness(.8) hue-rotate(8deg); }
.tb-classic .tb-tint { background: linear-gradient(180deg, rgba(16, 24, 43, .35), transparent 40%, rgba(16, 24, 43, .9)); }
.tb-classic > img { filter: saturate(.95) brightness(.85); }
.tb-henesys .tb-tint { background: linear-gradient(180deg, rgba(201, 232, 255, .25), transparent 45%, rgba(30, 70, 120, .6)); }
.tb-henesys > img { filter: saturate(1.15) brightness(1.04); }
.tb-winter .tb-tint { background: linear-gradient(180deg, rgba(180, 220, 255, .25), transparent 40%, rgba(20, 40, 80, .78)); }
.tb-winter > img { filter: saturate(.9) brightness(.95); }
.tb-halloween .tb-tint { background: linear-gradient(180deg, rgba(60, 20, 90, .55), rgba(255, 120, 30, .12) 50%, rgba(25, 8, 30, .9)); }
.tb-halloween > img { filter: saturate(.85) brightness(.62) hue-rotate(-20deg); }
.tb-sky .tb-tint { background: linear-gradient(180deg, rgba(255, 255, 255, .15), transparent 45%, rgba(40, 90, 160, .6)); }
.tb-sky > img { filter: saturate(1.1) brightness(1.05); }
.tb-fx { position: absolute; inset: 0; }
.tb-fx i { position: absolute; display: block; }
.tb-fx-leaves i { width: 12px; height: 12px; top: -20px; left: var(--x); background: #ff8a3d; border-radius: 0 70% 0 70%; opacity: .9;
  animation: tb-fall calc(7s + var(--d) * .6s) linear calc(var(--d) * -1s) infinite; }
.tb-fx-leaves i:nth-child(3n) { background: #ff5a7a; } .tb-fx-leaves i:nth-child(4n) { background: #ffc24a; }
.tb-fx-stars i { width: 3px; height: 3px; top: var(--y); left: var(--x); border-radius: 50%; background: #bff3ff; box-shadow: 0 0 6px #5ee1ff;
  animation: tb-twinkle calc(2s + var(--d) * .3s) ease-in-out calc(var(--d) * -.4s) infinite; }
.tb-fx-flies i { width: 5px; height: 5px; top: var(--y); left: var(--x); border-radius: 50%; background: #d8ff8a; box-shadow: 0 0 10px 2px rgba(168, 240, 90, .8);
  animation: tb-fly calc(5s + var(--d) * .5s) ease-in-out calc(var(--d) * -1s) infinite alternate; }
.tb-fx-gold i { width: 4px; height: 4px; bottom: -10px; left: var(--x); border-radius: 50%; background: #ffd84a; box-shadow: 0 0 8px #ffcd2e;
  animation: tb-rise calc(5s + var(--d) * .5s) linear calc(var(--d) * -1s) infinite; }
.tb-fx-clouds i { width: 30%; height: 22%; top: var(--y); left: -32%; border-radius: 40px; background: rgba(255, 255, 255, .5); filter: blur(6px);
  animation: tb-drift calc(30s + var(--d) * 3s) linear calc(var(--d) * -4s) infinite; }
.tb-fx-snow i { width: 4px; height: 4px; top: -10px; left: var(--x); border-radius: 50%; background: #fff; opacity: .9;
  animation: tb-fall calc(6s + var(--d) * .5s) linear calc(var(--d) * -1s) infinite; }
.tb-fx-bats i { width: 14px; height: 6px; top: var(--y); left: -20px; background: #14081c; clip-path: polygon(0 40%, 30% 0, 50% 60%, 70% 0, 100% 40%, 50% 100%);
  animation: tb-drift calc(14s + var(--d) * 1.5s) linear calc(var(--d) * -2s) infinite; }
.tb-fx-bats i:nth-child(odd) { left: var(--x); width: 6px; height: 6px; border-radius: 50%; clip-path: none; background: #ff7a1f; box-shadow: 0 0 10px #ff7a1f; animation-name: tb-twinkle; }
@keyframes tb-fall { from { transform: translate(0, 0) rotate(0deg) scale(var(--s)); } to { transform: translate(40px, 340px) rotate(300deg) scale(var(--s)); } }
@keyframes tb-twinkle { 50% { opacity: .15; } }
@keyframes tb-fly { to { transform: translate(28px, -18px); } }
@keyframes tb-rise { to { transform: translateY(-300px); opacity: 0; } }
@keyframes tb-drift { to { transform: translateX(140vw); } }
@media (prefers-reduced-motion: reduce) { .tb-fx i { animation: none !important; } .tb-fx-leaves i, .tb-fx-snow i, .tb-fx-gold i { display: none; } }
/* on the profile's top and the character card: the banner behind the name, the words light on it */
.prof-hero.has-tb, .pcard-head.has-tb { overflow: hidden; background: #0c1020; }
.prof-hero.has-tb > :not(.tb):not(.look-fx), .pcard-head.has-tb > :not(.tb):not(.look-fx) { position: relative; z-index: 2; }  /* (a look's effects stay a layer, not a block in the layout) */
.prof-hero.has-tb .prof-hero-sub, .pcard-head.has-tb .pcard-job { color: rgba(255, 255, 255, .9) !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.prof-hero.has-tb .prof-hero-name, .pcard-head.has-tb .pcard-name { text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.prof-hero.has-tb { min-height: 150px; align-items: flex-end; }
/* the picker on the profile page: small banners to click */
.tb-group { margin-bottom: 12px; }
.tb-group-k { display: block; margin-bottom: 6px; font-weight: 800; font-size: var(--fs-13, 13px); }
.tb-group-k small { margin-left: 6px; font-weight: 600; color: var(--muted); }
.tb-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tb-pick { position: relative; aspect-ratio: 1500 / 560; padding: 0; overflow: hidden; border-radius: 12px; border: 2px solid transparent; background: none;
  cursor: var(--cursor-hand, pointer); text-align: left; }
.tb-pick .tb { border-radius: 10px; }
.tb-pick-t { position: absolute; left: 8px; bottom: 6px; z-index: 2; font: 700 var(--fs-14, 14px) var(--font-display); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.tb-pick-t small { padding: 0 6px; border-radius: 999px; font: 800 var(--fs-10_5, 10.5px) var(--font-body); color: #1f1800; background: #ffcd2e; text-shadow: none; }
.tb-pick:hover { border-color: rgba(255, 255, 255, .5); }
.tb-pick.picked { border-color: #ffcd2e; }
.tb-pick.locked .tb { filter: grayscale(.85) brightness(.6); }
.tb-pick.locked .tb-fx { display: none; }
/* (a dark haze at the bottom left, behind the name) */
.tb::after { content: ""; position: absolute; left: -10%; bottom: -40%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(8, 6, 20, .7), transparent); }
.app-band .tb::after { content: none; }
.tb-pick .tb::after { left: -20%; bottom: -60%; width: 90%; }
/* phones: the plans table small enough that Free, Supporter, Lite and Plus all fit, the feature names allowed two lines */
@media (max-width: 575.98px) {
  .sup-table { font-size: var(--fs-12, 12px); }
  .sup-table th, .sup-table td { padding: 7px 4px; }
  .sup-table thead th { line-height: 1.15; }
  .sup-table { table-layout: fixed; }
  .sup-table tr > :first-child { width: 36%; }
  .sup-table tbody th { padding-left: 4px; }
  .sup-table thead th { font-size: var(--fs-10_5, 10.5px); letter-spacing: -.01em; padding-left: 1px; padding-right: 1px; }
  .sup-table tbody th .bi { display: none; }
  .sup-table .sup-price td { font-size: var(--fs-10_5, 10.5px); line-height: 1.2; }
}
@media (max-width: 575.98px) { .window-body.lg:has(> .table-responsive > .sup-table) { padding-left: 8px; padding-right: 8px; } }

/* the league a player races in, after their name (app.js leagueGem): the game's own item at its own pixels, cut to the
   stone (its width and height come with it), and the stone itself as the mask, so its shine and sparkle stay on the stone.
   Silver sits still; from Gold up it shines, more often the higher the league; Diamond and Legend sparkle too, and Legend
   glows. Every shine's time fits a whole number of times in app.js LEAGUE_GEM_CYCLE (12 s), and --at puts it where the
   clock says, so a board drawn again doesn't start it over. */
.name-league { position: relative; display: inline-block; overflow: hidden; margin-left: 6px; vertical-align: middle;
  -webkit-mask: var(--icon) no-repeat var(--x) var(--y); mask: var(--icon) no-repeat var(--x) var(--y); }
.name-league img { position: absolute; left: var(--x); top: var(--y); max-width: none; image-rendering: pixelated; }
.pcard-name .name-league { margin-left: 8px; }
.name-league::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; }
.name-league.lg-2::after { animation: lg-shine 6s var(--at, 0s) infinite; }
.name-league.lg-3::after { animation: lg-shine 4s var(--at, 0s) infinite; }
.name-league.lg-4::after { animation: lg-shine 3s var(--at, 0s) infinite; }
.name-league.lg-5::after { animation: lg-shine 2.4s var(--at, 0s) infinite; }
@keyframes lg-shine {
  0% { background-position: 100% 0; opacity: 1; }
  28% { background-position: 0 0; opacity: 1; }
  29%, 100% { background-position: 0 0; opacity: 0; }
}
/* a sparkle: a little four-pointed star in the stone's light half, popping up and turning; edged in blue, as Diamond is
   white itself */
.name-league.lg-4::before, .name-league.lg-5::before { content: ""; position: absolute; z-index: 1; left: 5px; top: 4px; width: 7px; height: 7px;
  pointer-events: none; transform: scale(0); filter: drop-shadow(0 0 1px #3d8bff) drop-shadow(0 0 1px #3d8bff);
  background: linear-gradient(#fff, #fff) center / 1px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 1px no-repeat,
    radial-gradient(circle, #fff 0 1px, transparent 2px); }
.name-league.lg-4::before { animation: lg-sparkle 3s var(--at, 0s) infinite; }
.name-league.lg-5::before { animation: lg-sparkle-two 2.4s var(--at, 0s) infinite; }
@keyframes lg-sparkle {
  0%, 40% { transform: scale(0) rotate(0); }
  52% { transform: scale(1.15) rotate(45deg); }
  66%, 100% { transform: scale(0) rotate(90deg); }
}
@keyframes lg-sparkle-two {  /* (Legend: one sparkle, then another on the star's other side) */
  0%, 30% { left: 5px; top: 4px; transform: scale(0) rotate(0); }
  40% { left: 5px; top: 4px; transform: scale(1.2) rotate(45deg); }
  50% { left: 5px; top: 4px; transform: scale(0) rotate(90deg); }
  51%, 70% { left: 13px; top: 11px; transform: scale(0) rotate(0); }
  80% { left: 13px; top: 11px; transform: scale(1.2) rotate(45deg); }
  90%, 100% { left: 13px; top: 11px; transform: scale(0) rotate(90deg); }
}
/* Legend: the star itself glows, brighter and back */
.name-league.lg-5 img { animation: lg-glow 2.4s var(--at, 0s) infinite ease-in-out; }
@keyframes lg-glow { 0%, 100% { filter: none; } 50% { filter: brightness(1.3) saturate(1.25); } }
@media (prefers-reduced-motion: reduce) {
  .name-league::before, .name-league::after, .name-league img { animation: none !important; }
}

/* the card on pointing at a league gem (app.js leagueTip): the gem twice as big, its league, the place and the points;
   in the league's colour along the top */
.league-tip { position: fixed; z-index: 1000; min-width: 190px; padding: 10px 13px 11px; border-radius: 12px; pointer-events: none;
  background: #22143a; color: #e9defa; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); border-top: 3px solid var(--lt, #c9ccd6);
  animation: lt-in .14s ease-out; }
.league-tip[hidden] { display: none; }
.league-tip.lt-1 { --lt: #c9ccd6; } .league-tip.lt-2 { --lt: #f2b632; } .league-tip.lt-3 { --lt: #4fc3d9; }
.league-tip.lt-4 { --lt: #cfe3ff; } .league-tip.lt-5 { --lt: #b45cff; }
.lt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--font-display); font-size: var(--fs-16, 16px); color: #fff; }
.lt-head b { color: var(--lt); }
.league-tip .lt-gem { zoom: 2; margin: 0; flex: none; }
.lt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: var(--fs-13, 13px); font-weight: 700; color: #bfaedb; }
.lt-row + .lt-row { margin-top: 3px; }
.lt-row b { color: #fff; font-weight: 800; font-size: var(--fs-15, 15px); }
.lt-row small { color: #bfaedb; font-weight: 700; font-size: var(--fs-12, 12px); }
.lt-none { font-size: var(--fs-13, 13px); font-weight: 700; color: #bfaedb; }
.name-league:not(.lt-gem) { cursor: help; }
@keyframes lt-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .league-tip { animation: none; } }

/* the character's avatar (app.js avatarHead): the game's own pixels, never stretched. A pixel of the game stays sharp only
   when it covers a whole number of the screen's pixels, so it's drawn at --sprite CSS pixels a game pixel (app.js
   spriteScale): 1 on most screens, 0.8 at 125% Windows scaling, where 1 would smear every pixel over 1.25 of the screen's.
   The avatar is 114 x 99, the character standing in its middle, feet on row ~95, the face around row 52: a spot too
   small for the character shows the face; Rankings, the board (its top 3 and its rows), the card and the Live page show the whole
   character standing on the spot's bottom edge (app-ui.css). */
.ava-head, .ava-fill, .ava-fig, .pcard-figure, .live-ava { --s: var(--sprite, 1); }
.ava-head { position: relative; display: inline-block; flex: none; width: 30px; height: 30px; overflow: hidden; border-radius: 50%;
  background: rgba(255, 255, 255, .14); vertical-align: middle; }
.ava-head img, .ava-fill img, .ava-fig, .pcard-figure, .live-ava .la-fig img { position: absolute; left: calc(50% - 57px * var(--s));
  top: calc(50% - 52px * var(--s)); width: calc(114px * var(--s)); height: calc(99px * var(--s)); max-width: none; image-rendering: pixelated; }
.ava-fill { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.rk-av.has-ava, .rk-tile.has-ava { position: relative; overflow: hidden; }
.rk-av.has-ava .ava-fill img { top: calc(50% - 50px * var(--s)); }
.ava-fig, .pcard-figure, .live-ava .la-fig img { top: auto; bottom: 0; }
/* standing still, as in the game: the body breathes, slowly sinking a game pixel and rising again, the feet on the ground
   (app.js spriteImgs: the avatar twice, above the waist at row 86 and below it). Smooth, as the game's own stand: eased
   down and up, not a jump between two pictures. On the card and the live page always; on Rankings and the board while you
   point at the character. */
.b-top { clip-path: inset(0 0 calc(13px * var(--s)) 0); will-change: transform; }
.b-legs { clip-path: inset(calc(86px * var(--s)) 0 0 0); }
.pcard-ava .b-top, .live-ava .b-top, :is(.rk-row, .bd-row, .rk-card):hover .b-top { animation: ava-breathe 1s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes ava-breathe { from { transform: translateY(0); } to { transform: translateY(calc(1px * var(--s))); } }
@media (prefers-reduced-motion: reduce) { .b-top { animation: none !important; } }
/* the card: the whole character, standing on the spot's bottom edge (on a phone's smaller spot, its head over the top) */
.pcard-ava.has-ava { position: relative; background: radial-gradient(circle at 50% 70%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .12) 70%); }
/* the live page: how to get it, or the avatar itself with its switch */
.live-ava { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--u-card, rgba(255, 255, 255, .06)); border: 1px solid var(--u-line, rgba(255, 255, 255, .12)); }
.live-ava .la-pic { flex: none; width: 76px; height: 66px; }
.live-ava .la-fig { position: relative; height: 84px; margin: -6px 0; }  /* (the whole character: it's ~80 px tall) */
.live-ava .la-empty { display: grid; place-items: center; font-size: 30px; opacity: .55; border-radius: 10px; background: rgba(127, 127, 127, .12); }
.live-ava .la-text { display: grid; gap: 2px; min-width: 0; flex: 1; font-size: var(--fs-13, 13px); }
.live-ava .la-text strong { font-size: var(--fs-14, 14px); }
/* the live page's "Equip scanned" (app.js drawEquipToast): a card in the top right corner the moment an item is kept, a
   green check that pops, the item's icon in a slot as in the game, its stats, the slots known now (the new one gold) and
   the way to the card. While EQUIPMENT INVENTORY is seen and nothing was just kept: a smaller one, an eye and what to do. */
.eq-toast { position: fixed; z-index: 1080; top: 52px; right: 20px; width: min(370px, calc(100vw - 24px)); padding: 12px 14px 12px;
  border-radius: 16px; color: var(--u-text, #eee); background: var(--u-card, #221c3a); border: 1px solid var(--u-line, rgba(255, 255, 255, .14));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .1); animation: eqt-in .45s cubic-bezier(.16, 1, .3, 1); }
.eq-toast.got { border: 2px solid var(--u-good, #5ad17a); box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 4px color-mix(in srgb, var(--u-good, #5ad17a) 22%, transparent); }
@keyframes eqt-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
.eq-toast .eqt-head { display: flex; align-items: center; gap: 10px; }
.eq-toast .eqt-say { display: grid; gap: 1px; flex: 1; min-width: 0; font-size: var(--fs-13, 13px); color: var(--u-text-2, #bbb); }
.eq-toast .eqt-say b { font: 700 var(--fs-16, 16px) var(--font-display, inherit); color: var(--u-head, #fff); }
.eq-toast.seen .eqt-say b { font-size: var(--fs-14, 14px); }
.eq-toast .eqt-slot { font-size: var(--fs-11_5, 11.5px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--u-good, #5ad17a); }
.eq-toast .eqt-check, .eq-toast .eqt-eye { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; }
.eq-toast .eqt-check { color: #fff; background: var(--u-good, #5ad17a); animation: eqt-pop .5s .1s cubic-bezier(.34, 1.56, .64, 1) both; }
.eq-toast .eqt-eye { font-size: 16px; color: var(--u-act, #ffcd2e); background: color-mix(in srgb, var(--u-act, #ffcd2e) 16%, transparent); }
@keyframes eqt-pop { from { transform: scale(0); } }
.eq-toast .eqt-close { flex: none; align-self: flex-start; }
.eq-toast .eqt-item { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--u-card-2, rgba(255, 255, 255, .05)); }
.eq-toast .eqt-pic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 10px; font-size: 22px;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); border: 1px solid var(--u-line, rgba(255, 255, 255, .14));
  animation: eqt-pop .5s .2s cubic-bezier(.34, 1.56, .64, 1) both; }
.eq-toast .eqt-pic img { width: auto; height: auto; max-width: 44px; max-height: 44px; transform: scale(1.25); image-rendering: pixelated; }
.eq-toast .eqt-what { display: grid; gap: 2px; min-width: 0; font-size: var(--fs-12_5, 12.5px); color: var(--u-text-2, #bbb); }
.eq-toast .eqt-what b { font-size: var(--fs-15, 15px); color: var(--u-head, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-toast .eqt-what small { color: var(--u-act, #ffcd2e); }
.eq-toast .eqt-what em { font-style: normal; font-weight: 700; white-space: nowrap; }
.eq-toast .eqt-what em.up { color: var(--u-good, #5ad17a); } .eq-toast .eqt-what em.dn { color: var(--u-bad, #ff6b6b); }
.eq-toast .eqt-slots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.eq-toast .eqt-slots span { padding: 2px 7px; border-radius: 6px; font-size: var(--fs-11, 11px); font-weight: 600; color: var(--u-text-2, #bbb);
  border: 1px dashed var(--u-line, rgba(255, 255, 255, .2)); opacity: .7; }
.eq-toast .eqt-slots span.on { opacity: 1; border-style: solid; color: var(--u-good, #5ad17a); border-color: color-mix(in srgb, var(--u-good, #5ad17a) 50%, transparent);
  background: color-mix(in srgb, var(--u-good, #5ad17a) 12%, transparent); }
.eq-toast .eqt-slots span.new { color: #1f1800; background: var(--u-act, #ffcd2e); border-color: var(--u-act, #ffcd2e); animation: eqt-pop .5s .3s cubic-bezier(.34, 1.56, .64, 1) both; }
.eq-toast .eqt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: var(--fs-12_5, 12.5px); color: var(--u-text-2, #bbb); }
.eq-toast .eqt-foot .btn { flex: none; white-space: nowrap; }
@media (max-width: 767.98px) { .eq-toast { top: auto; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .eq-toast, .eq-toast * { animation: none !important; } }
