:root {
  --bg: #0b0d10;
  --panel: #14171c;
  --panel-2: #1b1f26;
  --line: #262b34;
  --text: #e8ebf0;
  --muted: #8b93a1;
  --neon: #ffc013; /* the site's accent: Alpha Blitz yellow */
  --neon-dim: #8a680a;
  --on-neon: #000; /* text on a full-color accent */
  --bronze: #cd8040;
  --silver: #c7ccd9;
  --gold: #ffcc26;
  --author: #33c759;
  --champion: #ff5980;
  --red: #ff4d4d;
  --coffee: #ffdd00;
  --youtube: #ff0033;
  --twitch: #9146ff;
  --discord: #5865f2;
  --radius: 10px;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --display: "Chakra Petch", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 28px; }
h2 { font-size: 20px; }
h2 a { color: inherit; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
img.inline { vertical-align: middle; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ok { color: var(--neon); }

/* ---- Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 13, 16, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 6px; color: var(--text); font-family: var(--display); font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-tile { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--neon); color: var(--on-neon); font-size: 16px; }
.brand-arrow { color: var(--muted); }
.brand-name { margin-left: 8px; font-size: 18px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 6px 10px; border-radius: 6px; font-weight: 500; font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav a.signin { color: var(--on-neon); background: var(--neon); font-weight: 600; }
.nav a.me { display: inline-flex; align-items: center; gap: 8px; color: var(--neon); border: 1px solid var(--neon-dim); padding: 4px 10px 4px 4px; }
.nav-gap { width: 16px; }
.nav a.plugin { border: 1px solid var(--line); }
.nav-toggle, .nav-button { display: none; }

@media (max-width: 1020px) {
  .nav-button { display: block; margin-left: auto; font-size: 22px; cursor: pointer; padding: 4px 10px; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; flex-direction: column; align-items: stretch; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .brand-name { display: none; }
}

/* ---- Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--neon); color: var(--on-neon); border-color: var(--neon); }
.btn.danger { color: var(--red); }
.btn.coffee { background: var(--coffee); color: #000; border-color: var(--coffee); }
.btn.youtube { background: var(--youtube); color: #fff; border-color: var(--youtube); }
.btn.twitch { background: var(--twitch); color: #fff; border-color: var(--twitch); }
.btn.discord { background: var(--discord); color: #fff; border-color: var(--discord); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials.big .btn { padding: 12px 20px; font-size: 16px; }

/* ---- Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 48px 0 24px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 16px; }
.neon { color: var(--neon); text-shadow: 0 0 24px color-mix(in srgb, var(--neon) 35%, transparent); }
.lead { font-size: 17px; color: #c3c8d1; max-width: 560px; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } }

.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.tile { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; background: #000; color: #fff; border: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 18px; }
.tile.done { background: #c9ced6; color: #000; opacity: .55; border-color: transparent; }
.tile.current { background: var(--neon); color: var(--on-neon); box-shadow: 0 0 18px color-mix(in srgb, var(--neon) 50%, transparent); border-color: var(--neon); }
.tile.small { width: 26px; height: 26px; font-size: 14px; border-radius: 5px; }
.hero-letters .tile { width: 44px; height: 44px; font-size: 22px; }
.word { font-family: var(--display); letter-spacing: .12em; color: var(--neon); }

/* ---- Counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 24px; }
.counters div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.counters b { display: block; font-family: var(--display); font-size: 26px; color: var(--neon); }
.counters span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .counters { grid-template-columns: repeat(2, 1fr); } }

/* ---- Cards and grids */
.card { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; min-width: 0; }
.card.notice { border-color: var(--neon-dim); }
.grid2, .grid3 { display: grid; gap: 16px; margin-bottom: 0; }
.grid2 { grid-template-columns: 1fr 1fr; }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid2 > .card, .grid3 > .card { margin-bottom: 16px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
.empty { color: var(--muted); padding: 18px 0; text-align: center; font-size: 14px; }

/* ---- Tables */
.board { width: 100%; border-collapse: collapse; }
.board th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.board td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board tr:last-child td { border-bottom: 0; }
.board tr.me td { background: color-mix(in srgb, var(--neon) 8%, transparent); }
.board .r { text-align: right; white-space: nowrap; }
.time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--panel-2); font-weight: 600; font-size: 13px; }
.pos-1 { background: var(--gold); color: #000; }
.pos-2 { background: var(--silver); color: #000; }
.pos-3 { background: var(--bronze); color: #000; }
.player { color: var(--text); font-weight: 500; }
.zone { color: var(--muted); font-weight: 400; font-size: 13px; }
.bar-col { width: 30%; }
.bar { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--neon-dim), var(--neon)); min-width: 2px; }
.letters-table td { padding: 6px 8px; }
@media (max-width: 640px) { .hide-sm { display: none; } .card { padding: 14px; } }

.mini { list-style: none; padding: 0; margin: 0; }
.mini li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mini li:last-child { border-bottom: 0; }
.mini li .player { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Goals, chips, tags */
.goal { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.goal-bronze { color: var(--bronze); }
.goal-silver { color: var(--silver); }
.goal-gold { color: var(--gold); }
.goal-author { color: var(--author); }
.goal-worldrecord { color: var(--champion); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-size: 13px; }
.chip.ok { color: var(--neon); border-color: var(--neon-dim); }
.tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--panel-2); color: var(--muted); font-size: 12px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tab { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 500; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.active { border-color: var(--neon); color: var(--text); background: var(--panel-2); }
.tab .goal { color: inherit; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.filters select, .filters input { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; min-width: 0; max-width: 100%; }
.filters input[type=search] { flex: 1; min-width: 200px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0 4px; }

/* ---- Profile */
.profile-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.profile-head h1 { margin-bottom: 4px; }
.grid-pos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 4px; }
.pos-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.big-time { font-family: var(--mono); font-size: 22px; color: var(--text); }
.run-head .big-time { font-size: clamp(32px, 6vw, 48px); color: var(--neon); display: block; margin-bottom: 8px; }
.run-head { margin-bottom: 16px; }
@media (max-width: 1000px) { .grid-pos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .grid-pos { grid-template-columns: repeat(2, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--panel-2); border-radius: 8px; padding: 12px; }
.stat b { display: block; font-family: var(--display); font-size: 19px; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---- Achievements */
.medal-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.medal { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.medal img { filter: grayscale(1) brightness(.35); }
.medal.on img { filter: none; }
.medal.on { color: var(--text); }
.medal.secret .q { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--panel-2); color: var(--muted); font-weight: 700; }
.medal.champion { color: var(--champion); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ach { background: var(--panel-2); border-radius: 8px; padding: 10px; text-align: center; }
.stamps { display: flex; justify-content: center; gap: 3px; margin-bottom: 6px; }
.stamp { width: 26px; height: 26px; border-radius: 50%; background: #0a0c0f; display: grid; place-items: center; }
.stamp img { width: 26px; height: 26px; }
.ach-name { font-family: var(--display); font-weight: 600; }
.ach .tag { margin: 4px 0 0; }

.book { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.book-stamp { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 10px; padding: 12px 8px; color: var(--text); text-align: center; }
.book-stamp:hover { text-decoration: none; border-color: var(--muted); }
.book-stamp.empty-stamp img { filter: grayscale(1) brightness(.4); }
.tier-bronze { border-color: var(--bronze); }
.tier-silver { border-color: var(--silver); }
.tier-gold { border-color: var(--gold); }
.tier-author { border-color: var(--author); }
.tier-champion { border-color: var(--champion); }
.monthly-hero { display: flex; gap: 16px; align-items: center; }
.monthly-card { display: flex; gap: 20px; align-items: flex-start; }
@media (max-width: 560px) { .monthly-card { flex-direction: column; } }

/* ---- Lists */
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.steps { padding-left: 20px; margin: 0; }
.steps li { margin-bottom: 8px; }
.maps summary { cursor: pointer; color: var(--muted); margin-top: 12px; }
.maplist { list-style: none; padding: 0; margin: 8px 0 0; }
.maplist li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; flex-wrap: wrap; }

/* ---- Support box and footer */
.support { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 24px 0 8px; padding: 24px; border-radius: var(--radius); background: linear-gradient(135deg, #1a1a10, #14171c 60%); border: 1px solid #3a3510; }
.support .sig { color: var(--coffee); font-weight: 600; margin: 0; }
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot strong { color: var(--text); }

/* ---- Leaderboards hub: three boxes with the same rows at the same heights */
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .hub { grid-template-columns: 1fr; } }
.hub-col { display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; overflow: hidden; }
.hub-head { display: flex; align-items: baseline; gap: 10px; height: 30px; }
.hub-head h2 { margin: 0; white-space: nowrap; }
.hub-bar { height: 58px; display: flex; align-items: flex-start; }
.hub-bar > * { width: 100%; }
.hub-bar .letters { margin: 0; }
.medal-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.medal-tab { display: grid; place-items: center; height: 52px; border-radius: 8px; border: 1px solid var(--line); background: #000; }
.medal-tab img, .medal-tab svg { filter: grayscale(.85) brightness(.7); transition: filter .15s; }
.medal-tab:hover img, .medal-tab:hover svg, .medal-tab.active img, .medal-tab.active svg { filter: none; }
.medal-tab.active svg { color: var(--on-neon); }
.medal-tab.active { border-color: var(--neon); background: var(--neon); box-shadow: 0 0 18px color-mix(in srgb, var(--neon) 50%, transparent); }
.icon-wr { color: var(--champion); }
.icon-finish { color: var(--text); }
.letters.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.letters.scroll::-webkit-scrollbar { display: none; }
.letters.scroll .tile { scroll-snap-align: start; }
.letters.scroll { gap: 6px; }
.letters.scroll .tile { flex: 0 0 auto; width: calc((100% - 48px) / 9); height: 52px; font-size: 20px; border-radius: 8px; }
/* The short word (up to 6 letters) sits on the same 6-column grid as the medal tabs */
.letters.fit { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.letters.fit .tile { width: 100%; height: 52px; font-size: 20px; border-radius: 8px; }
a.tile { color: #fff; text-decoration: none; }
a.tile:hover { border-color: var(--neon); text-decoration: none; }
a.tile.current { color: var(--on-neon); }
.tile.locked { color: var(--muted); background: var(--panel-2); cursor: not-allowed; }
.hub-panel { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--panel-2); }
.hub-panel > div { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; overflow: hidden; white-space: nowrap; }
.hub-panel > div > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-panel .map-name { font-weight: 600; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hub-panel > div > .muted { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.panel-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; }
.hub-list { flex: 1; display: flex; flex-direction: column; }
.hub-list .empty { margin: 0; }
.mini li.me { background: color-mix(in srgb, var(--neon) 8%, transparent); }
.pages { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.page { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 13px; }
.page:hover { border-color: var(--neon); text-decoration: none; }
.page.current { background: var(--neon); color: var(--on-neon); border-color: var(--neon); font-weight: 600; }
.recent { border-top: 1px solid var(--line); padding-top: 10px; }
.recent h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; font-family: inherit; font-weight: 500; }
.recent ul { list-style: none; margin: 0; padding: 0; }
.recent li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.recent li .player { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-links { margin-top: 16px; }

/* Each leaderboards box has its own color: yellow A to Z, red Weekly Longs, green Daily Shorts */
/* The plugin's button colors: Achievements yellow, Weekly long red, Daily short green */
.theme-yellow { --neon: #ffc013; --neon-dim: #8a680a; --on-neon: #000; }
.theme-red { --neon: #cd2a2a; --neon-dim: #7a1919; --on-neon: #fff; }
.theme-blue { --neon: #2481e7; --neon-dim: #164d8a; --on-neon: #fff; } /* A to Z, like the plugin */
/* fleakee.com keeps its own blue */
.fk { --neon: #2481e7; --neon-dim: #164f8c; --on-neon: #fff; }
.theme-green { --neon: #21a83e; --neon-dim: #145f24; --on-neon: #fff; }
.hub-col, .themed { border-top: 3px solid var(--neon); }
.hub-col .hub-head h2, .themed h2 a, .themed > h2 { color: var(--neon); }
.hub-col .player, .themed .player { color: var(--text); }

/* ---- 16:9 screens: every page is laid out wide, in boxes, to fit one 1920x1080 screen */
body { min-height: 100vh; display: flex; flex-direction: column; }
main.wrap { flex: 1; width: 100%; }
.wrap { max-width: 1760px; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.top-inner { min-height: 56px; }
h1 { font-size: 28px; margin: 18px 0 12px; }
.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 18px 0 14px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 0; }
.foot { margin-top: 20px; padding: 12px 0; }
.foot .btn { padding: 7px 14px; }
.screen { display: grid; gap: 16px; align-items: stretch; }
.screen > .card { margin-bottom: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.screen > .card > h2, .screen .box-title { margin: 0; }
.screen > .stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.screen > .stack > .card { margin-bottom: 0; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-home { grid-template-columns: 1.25fr 1fr 1fr 1fr; }
@media (max-width: 1200px) { .cols-3, .cols-4, .cols-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .cols-2, .cols-3, .cols-4, .cols-home { grid-template-columns: 1fr; } }
.box-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.box-title h2 { margin: 0; }
.card.themed > .box-title h2, .card.themed > h2 { color: var(--neon); }
.fill { flex: 1; }
.board td { padding: 6px 8px; }
.pages { margin-top: auto; }
.hero-card .hero-title { font-size: clamp(28px, 2.6vw, 44px); margin: 0; line-height: 1.1; }
.hero-card .lead { font-size: 15px; margin: 0; }
.hero-card .letters .tile { width: 34px; height: 34px; font-size: 16px; }
.home .counters { grid-template-columns: repeat(2, 1fr); margin: 0; }
.home .counters div { padding: 10px; }
.home .counters b { font-size: 22px; }
.monthly-mini { flex-direction: row !important; align-items: center; }
.monthly-mini p { margin: 2px 0 0; }
.support-mini p { margin: 0; font-size: 14px; }
.support-mini .sig { color: var(--coffee); font-weight: 600; }
.support-mini .socials .btn { padding: 7px 12px; font-size: 14px; }
.home .card.themed .recent { margin-top: auto; }
.pager.inline { padding: 0; margin-left: auto; gap: 16px; }
.board tr.theme-red .seed-kind, .board tr.theme-green .seed-kind, .board tr.theme-red .seed-kind .word, .board tr.theme-green .seed-kind .word { color: var(--neon); }
.maplist { max-height: 320px; overflow-y: auto; }
.home { margin-top: 18px; }
.head-links { margin-left: auto !important; }
.hub-col { gap: 8px; padding: 18px; }
.profile-head { margin-bottom: 14px; }
.pos-list { list-style: none; margin: 0; padding: 0; }
.pos-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pos-list li:last-child { border-bottom: 0; }
.pos-list li > div { flex: 1; min-width: 0; }
.pos-list a { color: var(--neon); }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stats.two .stat { padding: 9px 10px; }
.stats.two .stat b { font-size: 17px; }
.account p { margin: 0; }
.runs-table td { padding: 6px 6px; }
.runs-table .kind { color: var(--neon); }
.runs-table a { color: inherit; }
.screen .ach-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.screen .ach { padding: 6px; }
.screen .stamp, .screen .stamp img { width: 20px; height: 20px; }
.screen .ach-name { font-size: 13px; }
.screen .medal img, .screen .medal .q { width: 36px; height: 36px; }
.screen .book { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.screen .book-stamp img { width: 48px; height: 48px; }
.run-head .big-time { font-size: 32px; margin: 0; color: var(--neon); display: inline; }
.themed-title, .themed-title .word { color: var(--neon); }
.run-head h1 { font-size: 26px; }
.letters-table td { padding: 5px 8px; }
.letters-table .map-cell a { color: var(--text); font-weight: 500; }
.letters-table .map-cell .small { font-size: 12px; }
.letters-table .bar-col { width: 22%; }
.bar { background: linear-gradient(90deg, var(--neon-dim), var(--neon)); }
.page-head .filters { margin: 0; }
.monthly-stamp { align-self: center; }
.all-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.all-bar .medal-tabs { width: 380px; max-width: 100%; }
.all-bar .tabs, .all-bar .filters { margin: 0; }
.all-card .screen { gap: 24px; }
.board.compact td { padding: 4px 6px; }
.letter-stats .tile.small { width: 22px; height: 22px; font-size: 12px; }
.letter-stats .bar-col { width: 34%; }
.ellipsis { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-cell a { color: var(--text); font-weight: 500; }
.mode { border-left: 3px solid var(--neon); padding: 4px 0 4px 12px; }
.mode b { color: var(--neon); }
.mode p { margin: 2px 0 0; }
.support-card { background: linear-gradient(160deg, #1a1a10, #14171c 60%) !important; border-color: #3a3510 !important; }
.support-card .sig { color: var(--coffee); font-weight: 600; margin: 0; }
.support-card .socials { flex-direction: column; align-items: stretch; }
.letter-stats td { padding: 2px 6px !important; }
.all-card .board { align-self: start; }

/* ---- Footer hosting bar: this month's donations, in the Buy Me a Coffee color */
.hosting { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.hosting:hover { text-decoration: none; }
.hosting-text { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.hosting-text b { color: var(--text); font-weight: 600; }
.hosting-text > span { white-space: nowrap; }
.hosting-track { display: block; height: 10px; border-radius: 999px; background: #000; border: 1px solid var(--line); overflow: hidden; }
.hosting-fill { display: block; height: 100%; min-width: 0; border-radius: 999px; background: var(--coffee); box-shadow: 0 0 12px color-mix(in srgb, var(--coffee) 50%, transparent); transition: width .4s; }
.hosting:hover .hosting-track { border-color: var(--coffee); }
@media (max-width: 700px) { .hosting { flex-basis: 100%; max-width: none; } }

/* ---- Profile pictures */
.avatar { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: var(--neon-dim); color: #fff; font-family: "Chakra Petch", sans-serif; font-weight: 700; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Sign-in wall: the page shows blurred behind a sign-in card */
.wall { position: relative; }
.wall-blur { filter: blur(7px) saturate(.8); opacity: .55; pointer-events: none; user-select: none; }
.wall-card { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px; border-color: var(--neon-dim); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.wall-card h2 { margin: 0; }
.wall-card p { margin: 6px 0 14px; }
.skeleton { height: 18px; border-radius: 6px; background: var(--panel-2); margin: 10px 0; }
.skeleton.short { width: 55%; }
.wall .screen .card { min-height: 520px; }

/* ---- Career */
.box-note { margin: 0; }
.month-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.active { color: var(--on-neon); background: var(--neon); border-color: var(--neon); }
.monthly-head { display: flex; align-items: center; gap: 12px; }
.monthly-head p { margin: 0; }
.board img.inline { margin-left: 6px; vertical-align: -3px; }

/* ---- Profile: account box, tabs, game mode columns */
.account-box { display: flex; align-items: center; gap: 18px; margin: 16px 0 0; padding: 14px 20px; }
.account-box + .wall { margin-top: 16px; }
.account-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.account-info h1 { margin: 0; }
.account-info p { margin: 0; }
.account-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.account-info { flex: 1 1 360px; }
.lang-picker { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.lang-picker .muted { margin-right: 4px; }
.account-side p { max-width: 280px; }
.account-side form { margin: 0; }
.account-side p { margin: 0; }
.btn.big { padding: 12px 22px; font-size: 16px; }
@media (max-width: 800px) {
  .account-box { flex-direction: column; align-items: flex-start; }
  .account-side, .account-actions, .lang-picker { align-items: flex-start; justify-content: flex-start; text-align: left; max-width: none; }
}
.profile-tabs { display: flex; gap: 6px; margin: 10px 0; }
.ptab { padding: 9px 20px; border-radius: 8px; border: 1px solid var(--line); background: #000; color: var(--muted); font-weight: 600; font-family: var(--display); font-size: 16px; }
.ptab:hover { color: var(--text); text-decoration: none; border-color: var(--neon); }
.ptab.active { background: var(--neon); border-color: var(--neon); color: var(--on-neon); }
.box-sub { margin: 4px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.place-list, .mini-results { list-style: none; margin: 0; padding: 0; }
.place-list li { display: grid; grid-template-columns: 1fr auto 70px; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.place-list li b { color: var(--neon); font-family: var(--display); font-size: 18px; }
.mini-results li { display: grid; grid-template-columns: 92px 1fr auto; align-items: baseline; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modes .pos-list li { padding-top: 3px; padding-bottom: 3px; }
.modes .box-sub { margin-top: 2px; }
.modes .card { gap: 8px; }
.mini-results li:last-child, .place-list li:last-child { border-bottom: 0; }
.stats.compact .stat { padding: 7px 10px; }
.stats.compact .stat b { font-size: 16px; }

/* ---- Leaderboard: the all-time records button, in the same style as the footer buttons */
.btn.zone-btn { background: var(--neon); border-color: var(--neon); color: var(--on-neon); padding: 7px 14px; align-self: center; }
.btn.zone-btn:hover { background: #e6ac00; text-decoration: none; }
@media (max-width: 600px) { .btn.zone-btn { white-space: normal; } }

/* ---- Leaderboard: a seed's letters and map stay under a heavy blur until you finish it */
.seed-lock { position: relative; display: flex; flex-direction: column; gap: 8px; border-radius: 8px; overflow: hidden; }
.seed-lock-blur { display: flex; flex-direction: column; gap: 8px; filter: blur(18px) saturate(1.3); opacity: .85; transform: scale(1.15); pointer-events: none; user-select: none; }
.seed-lock-blur .letters.scroll { overflow: hidden; }
.seed-lock-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 0 16px; background: radial-gradient(ellipse at center, rgba(10, 12, 16, .25), rgba(10, 12, 16, .55)); }
.seed-lock-text b { font-family: var(--display); font-size: 18px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.seed-lock-text .lock-icon { font-size: 22px; }
.seed-lock-text .small-btn { margin-top: 6px; padding: 6px 14px; font-size: 14px; }

/* ---- Leaderboard: your own record, one row above each list */
.my-record { margin-top: 6px; }
/* The frame sits outside the row so the rank, name and time line up with the list above */
.my-record li { position: relative; isolation: isolate; padding: 6px 0; border-bottom: 0; }
.mini .my-record li.me, .my-record li.me { background: none; }
.my-record li::before { content: ""; position: absolute; inset: 0 -8px; z-index: -1; border: 1px solid color-mix(in srgb, var(--neon) 45%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--neon) 8%, transparent); }
.my-record li > a[href="/auth/login"] { flex: 1; }

/* ---- Weekly Longs letters: the last tile is an arrow to the next letters, the first one back once you've moved */
.letter-strip { position: relative; }
.strip-arrow { position: absolute; top: 0; width: calc((100% - 48px) / 9); height: 52px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--neon); background: #000; }
.strip-arrow.next { right: 0; }
.strip-arrow.prev { left: 0; }
.strip-arrow:hover { border-color: var(--neon); }
.strip-arrow[hidden] { display: none; }

/* Long map names and authors: cut with "…", the full name shows on hover */
.letters-table { table-layout: fixed; width: 100%; }
.letters-table th:first-child { width: 40px; }
.letters-table .map-cell a, .letters-table .map-cell > div { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.letters-table th:nth-child(3), .letters-table th:nth-child(5) { width: 96px; }
.letters-table th:nth-child(6) { width: 76px; }
@media (max-width: 700px) { .letters-table th:nth-child(3), .letters-table th:nth-child(5) { width: 80px; } }
/* The same soft glow in the box's color on both sides of every locked seed */
.seed-lock-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 22% 80% at 0% 50%, color-mix(in srgb, var(--neon) 45%, transparent), transparent), radial-gradient(ellipse 22% 80% at 100% 50%, color-mix(in srgb, var(--neon) 45%, transparent), transparent); filter: blur(6px); }
.hub-now { margin-left: auto; white-space: nowrap; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto 78px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.history-list li.me { background: color-mix(in srgb, var(--neon) 10%, transparent); }
.history-list .r { text-align: right; white-space: nowrap; }
.history-date { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-date span { overflow: hidden; text-overflow: ellipsis; }
.history-winner { display: flex; align-items: center; gap: 8px; min-width: 0; }
.history-winner .player { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-list.monthly li { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto 78px; }
@media (max-width: 640px) {
  .history-list li, .history-list.monthly li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date players" "winner time"; row-gap: 4px; }
  .history-date { grid-area: date; }
  .history-winner { grid-area: winner; }
  .history-list li > :nth-child(3) { grid-area: time; }
  .history-list li > :nth-child(4) { grid-area: players; }
}
.podium-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: end; margin-bottom: 16px; padding: 16px 20px; border-top: 3px solid var(--neon); }
.podium-about h2 { margin: 0 0 4px; color: var(--neon); }
.podium-about p { margin: 4px 0 0; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.podium-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pos name pts" "pos meta meta"; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.podium-step .pos { grid-area: pos; }
.podium-step .player { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.podium-step .podium-pts { grid-area: pts; white-space: nowrap; }
.podium-step > .muted { grid-area: meta; }
.podium-step.step-1 { padding-top: 22px; padding-bottom: 22px; border-color: #ffc013; background: color-mix(in srgb, #ffc013 10%, var(--panel-2)); }
.podium-step.step-2 { padding-top: 16px; padding-bottom: 16px; border-color: #b9c2cc; }
.podium-step.step-3 { border-color: #c87533; }
.podium-step.me { box-shadow: 0 0 0 2px var(--text) inset; }
@media (max-width: 760px) {
  .podium-card { grid-template-columns: 1fr; gap: 12px; }
  .podium { grid-template-columns: 1fr; }
  .podium-step:nth-child(1) { order: 2; }
  .podium-step:nth-child(3) { order: 3; }
  .podium-step { padding: 10px 14px !important; }
}
/* The page tabs sit in the middle of the top bar */
.top-inner { position: relative; }
.nav-main { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 6px; }
.nav-main a { font-size: 15px; padding: 7px 14px; }
@media (max-width: 1020px) {
  .nav-main { position: static; transform: none; flex-direction: column; gap: 4px; margin-bottom: 8px; }
}
@media (min-width: 1021px) and (max-width: 1240px) {
  /* Not enough room to center them between the logo and the buttons: they follow the logo */
  .nav { flex: 1; margin-left: 8px; }
  .nav-main { position: static; transform: none; margin-right: auto; }
}
/* Most points, per mode */
.top-three { margin-bottom: 6px; }
.top-three-list { list-style: none; margin: 0; padding: 0; }
.top-three-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.top-three-list li.me { background: color-mix(in srgb, var(--neon) 10%, transparent); }
.top-three-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.top-three-name .player { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.top-three-name .muted { white-space: nowrap; }
.top-three-list.my-position { margin-top: 6px; }
.top-three-list.my-position li { position: relative; isolation: isolate; border-bottom: 0; background: none; }
.top-three-list.my-position li::before { content: ""; position: absolute; inset: 0 -8px; z-index: -1; border: 1px solid color-mix(in srgb, var(--neon) 45%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--neon) 8%, transparent); }
.pos-lock { position: relative; }
.pos-lock .my-position { filter: blur(5px); opacity: .7; pointer-events: none; user-select: none; }
.pos-lock-text { position: absolute; inset: 6px 0 0; display: grid; place-items: center; font-weight: 600; color: var(--text); text-shadow: 0 1px 8px #000; }
.pos-lock-text:hover { text-decoration: none; color: var(--neon); }
@media (max-width: 640px) { .top-three-name { flex-direction: column; align-items: flex-start; gap: 0; } }
.podium-card { padding: 12px 20px; margin-bottom: 12px; }
.podium-step { padding: 8px 14px; }
.podium-step.step-1 { padding-top: 16px; padding-bottom: 16px; }
.podium-step.step-2 { padding-top: 12px; padding-bottom: 12px; }
.history-list li { padding: 7px 0; } .podium-card { margin-bottom: 10px; }
/* Flags beside every name */
.flag { display: inline-block; vertical-align: -2px; margin-right: 6px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); object-fit: cover; flex: none; }
.player .zone { margin-left: 4px; }
.flag-unknown { display: inline-grid; place-items: center; vertical-align: -2px; background: var(--panel-2); color: var(--muted); font-weight: 700; line-height: 1; }
/* How points work */
.points-help { width: min(560px, calc(100% - 32px)); padding: 22px 24px; color: var(--text); border: 1px solid var(--neon); }
.points-help::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.points-help-head { display: flex; align-items: center; justify-content: space-between; }
.points-help-head h2 { margin: 0; color: var(--neon); }
.points-help p { margin: 10px 0 12px; }
.points-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.points-grid > div { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--panel-2); font-size: 14px; white-space: nowrap; }
.points-grid .step-1 { box-shadow: 0 0 0 1px #ffc013 inset; }
.points-grid .step-2 { box-shadow: 0 0 0 1px #b9c2cc inset; }
.points-grid .step-3 { box-shadow: 0 0 0 1px #c87533 inset; }
.points-help .steps { margin: 0; font-size: 14px; }
@media (max-width: 600px) { .points-grid { grid-template-columns: repeat(3, 1fr); } }
.points-help { margin: auto; max-height: calc(100vh - 32px); overflow: auto; }
.medal-icon { vertical-align: -4px; margin-right: 4px; }
.points-grid.medals > div { justify-content: center; }
.points-help h3.box-sub { margin-top: 14px; }

/* ---- fleakee.com */
.brand img { display: block; border-radius: 7px; }
.fk-hero { margin: 36px 0 22px; max-width: 760px; }
.fk-hero h1 { font-family: var(--display); font-size: 44px; margin: 0 0 8px; }
.fk-hero p { font-size: 17px; margin: 0; }
.fk-section { font-family: var(--display); margin: 0 0 12px; font-size: 22px; }
.fk-apps { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.fk-app { position: relative; display: block; border-radius: 18px; padding: 2px; color: var(--text); background: var(--line); }
.fk-app:hover { text-decoration: none; }
.fk-app-inner { height: 100%; border-radius: 16px; background: var(--panel); padding: 22px; display: flex; gap: 20px; align-items: center; }
.fk-app-logo { flex: none; border-radius: 26px; box-shadow: 0 10px 30px rgba(255, 192, 19, .18); }
.fk-app-text { flex: 1; min-width: 0; }
.fk-app-text h3 { font-family: var(--display); font-size: 30px; margin: 2px 0 6px; }
.fk-app-text p { margin: 0 0 8px; color: var(--muted); }
.fk-app-tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fk-app-go { align-self: flex-end; font-weight: 600; white-space: nowrap; color: var(--text); }
.fk-app.soon { background: none; border: 2px dashed var(--line); padding: 0; }
.fk-app.soon .fk-app-inner { background: none; flex-direction: column; justify-content: center; text-align: center; gap: 6px; min-height: 156px; }
.fk-soon-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 2px dashed var(--line); color: var(--muted); font-size: 24px; }
/* The animated rainbow border: a spinning conic gradient behind the box, showing through its 2px padding */
@property --fk-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.fk-app.rainbow { background: conic-gradient(from var(--fk-angle), #ff3b3b, #ff9f1a, #ffe23b, #3bdc6a, #3bb4ff, #8b5cf6, #ff3bd0, #ff3b3b); animation: fk-spin 4s linear infinite; }
.fk-app.rainbow::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: inherit; filter: blur(14px); opacity: .45; transition: opacity .2s; }
.fk-app.rainbow:hover::after { opacity: .8; }
.fk-app.rainbow:hover .fk-app-go { color: #ffc013; }
@keyframes fk-spin { to { --fk-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .fk-app.rainbow { animation: none; } }
.fk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.fk-card h2 { font-family: var(--display); margin: 0 0 6px; }
.fk-card p { margin: 0 0 14px; }
.fk-account-out { max-width: 560px; margin: 40px auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px; }
.fk-account-out img { border-radius: 16px; }
.fk-account-out h1 { margin: 0; }
.fk-account-out p { margin: 0 0 6px; }
.fk-conns { list-style: none; margin: 0 0 10px; padding: 0; }
.fk-conn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fk-conn-icon img { display: block; border-radius: 7px; }
.fk-conn-side { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px) {
  .fk-apps, .fk-row { grid-template-columns: 1fr; }
  .fk-app-inner { flex-wrap: wrap; }
  .fk-app-logo { width: 80px; height: 80px; border-radius: 20px; }
  .fk-hero h1 { font-size: 34px; }
}
.account-box + .fk-row { margin-top: 16px; }
.fk-card .hosting { display: flex; width: 100%; max-width: none; margin: 0 0 16px; }
.fk-card .hosting-text b { display: none; }
@media (max-width: 600px) {
  .fk-app-inner { flex-direction: column; align-items: flex-start; }
  .fk-app-go { align-self: flex-start; }
}

/* Leaderboard: three podiums side by side (countries all time, countries today, players today) */
.podium-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.podium-row .podium-card { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 10px 16px; }
.podium-row .podium-about { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.podium-row .podium-about h2 { font-size: 17px; margin: 0; white-space: nowrap; }
.podium-row .podium-about p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-row .podium { gap: 8px; }
.podium-row .podium-step { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "pos name" "pos meta"; column-gap: 8px; padding: 6px 10px; }
.podium-row .podium-step { padding: 4px 10px; }
.podium-row .podium-step.step-1 { padding-top: 11px; padding-bottom: 11px; }
.podium-row .podium-step.step-2 { padding-top: 7px; padding-bottom: 7px; }
.podium-row .podium-step .player { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.podium-row .podium-step .player a { overflow: hidden; text-overflow: ellipsis; }
.podium-row .podium-meta { grid-area: meta; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.podium-row .podium-step > .muted { grid-area: name / name / meta / meta; }
.podium-row .podium-mine { margin: 0; }
@media (max-width: 1000px) {
  .podium-row { grid-template-columns: 1fr; }
  .podium-row .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .podium-row .podium-step:nth-child(1), .podium-row .podium-step:nth-child(3) { order: 0; }
  .podium-row .podium-step { padding: 6px 8px !important; }
}
.card > .hosting { flex: 0 0 auto; max-width: none; margin: 4px 0 12px; }

/* ---- fleakee.com home: the daily RNG games side by side (src/pages/fleakee.tsx, RngSection). Each card
   wears its game's own colors; the rolled card is edged in the rarity's color. */
.rng { margin: 0 0 22px; }
.rng-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rng-top .fk-section { margin: 0; }
.rng-top .btn { margin-left: auto; align-self: center; }
.rng-share { background: #5865f2; border-color: #5865f2; color: #fff; }
.rng-share:hover { border-color: #fff; }
.rng-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .rng-cards { grid-template-columns: 1fr; } }
.rng-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--panel) 70%, #fff 6%), var(--bg) 70%);
  border: 2px solid color-mix(in srgb, var(--panel) 60%, #fff 12%); color: #e9edf8; min-height: 300px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.rng-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 34px #0008; }
.rng-card.is-rolled { border-color: var(--tc); box-shadow: 0 0 0 1px #0006, 0 10px 34px -12px var(--tc); }
.rng-head { display: flex; align-items: center; gap: 10px; }
.rng-emoji { font-size: 28px; line-height: 1; filter: drop-shadow(0 3px 6px #0008); }
.rng-name { font-family: var(--display); font-size: 24px; }
.rng-streak { margin-left: auto; font: 700 14px var(--mono); color: #ffb648; background: #2a1a05; border: 1px solid #ffb64866; border-radius: 999px; padding: 3px 10px; }
.rng-result { display: none; flex-direction: column; gap: 10px; }
.rng-card.is-rolled .rng-result { display: flex; }
.rng-card.is-rolled .rng-invite { display: none; }
.rng-ribbon { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: var(--tc); color: #0b1120; font: 700 14px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.rng-odds { margin-left: auto; font: 600 12px var(--mono); letter-spacing: 0; text-transform: none; opacity: .8; }
.rng-shiny { font-size: 12px; background: #fff8; border-radius: 4px; padding: 1px 6px; }
.rng-card.shiny .rng-ribbon { background: linear-gradient(90deg, #ff9bf0, #9fd8ff, #fff07a, #ff9bf0); background-size: 200% 100%; animation: rng-slide 3s linear infinite; }
@keyframes rng-slide { to { background-position: 200% 0; } }
.rng-body { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.rng-art { width: 96px; height: 96px; border-radius: 8px; border: 2px solid var(--tc); background: #050816; image-rendering: pixelated; image-rendering: crisp-edges; box-shadow: 0 0 22px color-mix(in srgb, var(--tc) 35%, transparent); }
.rng-art-empty { display: grid; place-items: center; font-size: 46px; }
.rng-what { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rng-what h3 { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.rng-sub { color: #aab3cc; font-size: 13px; overflow-wrap: anywhere; }
.rng-pts { font: 700 24px var(--mono); color: var(--tc); margin-top: 4px; }
.rng-pts small { font-family: inherit; font-size: 13px; font-weight: 600; color: #aab3cc; }
.rng-share[hidden], .rng-streak[hidden], .rng-keep[hidden] { display: none !important; }
.rng-bonuses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rng-bonuses li { font-size: 12.5px; font-weight: 600; padding: 4px 8px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); background: color-mix(in srgb, var(--tc) 12%, transparent); }
.rng-bonuses b { font-family: var(--mono); color: var(--tc); margin-left: 3px; }
.rng-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; font-size: 12.5px; color: #aab3cc; }
.rng-next { color: #e9edf8; font-weight: 600; white-space: nowrap; }
.rng-invite { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.rng-invite p { margin: 0; color: #c3cbe0; }
.rng-keep { color: #ffb648 !important; font-weight: 600; }
.rng-cta { margin-top: auto; display: block; text-align: center; padding: 13px 14px; border-radius: 10px; background: #ffcf5a; color: #2a1d00; font: 800 17px/1.1 var(--display); letter-spacing: .03em; box-shadow: 0 4px 0 #b88a1c; }
.rng-card:hover .rng-cta { filter: brightness(1.06); }
.rng-last { font-size: 12.5px; color: #8e99b8; text-align: center; }
@media (prefers-reduced-motion: reduce) { .rng-card, .rng-card.shiny .rng-ribbon { transition: none; animation: none; } }

/* ---- fleakee.com/auth/login: pick how to sign in */
.fk-signin { max-width: 440px; margin: 40px auto; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 30px 26px; }
.fk-signin h1 { margin: 6px 0 0; font-size: 30px; }
.fk-signin p { margin: 0; }
.fk-signin-list { width: 100%; display: grid; gap: 10px; margin: 10px 0 4px; }
.fk-provider { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-weight: 600; text-align: left; }
.fk-provider:hover { text-decoration: none; border-color: var(--muted); }
.fk-provider img { flex: none; border-radius: 6px; }
.fk-provider span { display: grid; gap: 2px; }
.fk-provider small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.fk-provider.ubisoft { border-color: #2b7fff; background: color-mix(in srgb, #2b7fff 14%, var(--panel-2)); }
.fk-provider.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.fk-provider.discord { background: #5865f2; color: #fff; border-color: #5865f2; }
.fk-provider.steam { background: #171a21; color: #fff; border-color: #3d4450; }
.rng-logo { width: 34px; height: 34px; filter: drop-shadow(0 3px 6px #0008); }

/* ---- Merging accounts */
.fk-flash { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.fk-flash.ok { border-color: #3bdc6a; color: #9ff0b6; }
.fk-merge-hint { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; border-color: #ffcf5a88; }
.fk-merge-hint p { margin: 2px 0 0; }
.fk-merge-hint > div:nth-child(2) { flex: 1; min-width: 0; }
.fk-merge-actions { display: flex; gap: 8px; align-items: center; }
.fk-merge-actions form { margin: 0; }
@media (max-width: 700px) { .fk-merge-hint { flex-wrap: wrap; } .fk-merge-actions { width: 100%; } }
.fk-signins { margin-bottom: 18px; }
.fk-add-signin { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fk-provider.small { padding: 8px 12px; border-radius: 10px; gap: 8px; font-size: 14px; }
.fk-merge { max-width: 760px; margin: 24px auto; }
.fk-merge-game { margin: 14px 0; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--panel) 60%, transparent), transparent); }
.fk-merge-game legend { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.fk-merge-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .fk-merge-options { grid-template-columns: 1fr; } }
.fk-merge-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--panel-2); cursor: pointer; }
.fk-merge-option:has(input:checked) { border-color: #ffcf5a; background: color-mix(in srgb, #ffcf5a 10%, var(--panel-2)); }
.fk-merge-option input { margin-top: 4px; accent-color: #ffcf5a; }
.fk-merge-option > span { display: grid; gap: 6px; }
.fk-who { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.fk-side { display: grid; gap: 3px; font-size: 14px; }
.fk-side-best b { color: var(--tc); }
.fk-merge-submit { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ---- Upcoming plugins on the home page (UPCOMING in src/pages/fleakee.tsx) */
.fk-app.soon .fk-app-inner { gap: 8px; padding: 20px 18px; }
.fk-soon-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; margin-bottom: 2px; }
.fk-soon-mark { display: grid; place-items: center; border: 2px dashed var(--line); color: var(--muted); font: 700 20px var(--display); letter-spacing: .04em; }
.fk-soon-name { font-family: var(--display); font-size: 21px; line-height: 1.1; }
.fk-soon-chip { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #ffcf5a; border: 1px solid #ffcf5a66; border-radius: 999px; padding: 3px 10px; }
.fk-apps .fk-app.soon .fk-app-inner { align-items: center; text-align: center; }
/* The whole card opens its game (a link stretched over it); the share button sits above that link */
.rng-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.rng-card { cursor: pointer; }
.rng-share-one { position: relative; z-index: 2; margin-top: auto; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 10px; border: 0; cursor: pointer; background: #5865f2; color: #fff; font: 700 15px var(--display); box-shadow: 0 3px 0 #3a43b8; }
.rng-share-one:hover { filter: brightness(1.08); }
.rng-share-one:active { transform: translateY(2px); box-shadow: 0 1px 0 #3a43b8; }
/* Fleakee's photo, top left and on the sign-in pages */
.fk-face { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #ffffff22; }
.rng-card.is-rolled .rng-result { flex: 1; }
/* The plugin logos carry their own glowing frame: no extra rounding or shadow, same size in every box */
.fk-app-logo { border-radius: 0; box-shadow: none; width: 112px; height: 112px; }
img.fk-soon-logo { width: 96px; height: 96px; border-radius: 0; }
@media (max-width: 700px) { .fk-app-logo { width: 88px; height: 88px; border-radius: 0; } }

/* The daily roll tiles, in the Alpha BlitZ site's own colours (see .theme-*): RNGeo blue, ColoRNG red,
   LetteRNG green, and the yellow for the buttons */
.rng-card[data-rng="rngeo"] { --c1: #2481e7; }
.rng-card[data-rng="colorng"] { --c1: #cd2a2a; }
.rng-card[data-rng="letterng"] { --c1: #21a83e; }
.rng-card[data-rng] {
  background:
    radial-gradient(80% 60% at 0% 0%, #ffffff2e, transparent 70%),
    linear-gradient(160deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 70%, #0b0d10) 100%);
  border-color: color-mix(in srgb, var(--c1) 60%, #fff 40%);
  box-shadow: 0 10px 30px -10px var(--c1);
}
.rng-card[data-rng]:hover { box-shadow: 0 16px 40px -8px var(--c1); }
.rng-card[data-rng] .rng-name { text-shadow: 0 2px 0 #0005; }
.rng-card[data-rng] .rng-invite p, .rng-card[data-rng] .rng-sub, .rng-card[data-rng] .rng-foot { color: #fff; text-shadow: 0 1px 2px #0006; }
.rng-card[data-rng] .rng-last { color: #ffffffd9; }
.rng-card[data-rng].is-rolled { border-color: var(--tc); }
.rng-card[data-rng] .rng-cta { background: #ffc013; color: #000; box-shadow: 0 4px 0 #8a680a; }

/* The welcome, centred: the first sentence on its own line, the rest in two even lines */
.fk-hero { max-width: 1060px; margin-left: auto; margin-right: auto; text-align: center; }
.fk-hero p { text-wrap: balance; }

/* Shorter daily roll tiles (a roll still makes its tile as tall as it needs), and a little less space
   between the parts of the home page: everything fits on a 1080p screen without scrolling */
.rng-card { min-height: 0; gap: 10px; padding: 14px 16px; }
.rng-card[data-rng] .rng-invite { gap: 8px; }
.rng-card[data-rng] .rng-invite p { font-size: 14.5px; }
.rng-card[data-rng] .rng-cta { padding: 10px 14px; font-size: 16px; }
.fk-hero { margin-top: 26px; margin-bottom: 16px; }
.rng { margin-bottom: 12px; }
/* After a roll, on the bright tiles: white score, dark chips with the yellow numbers, so they read on any colour */
.rng-card[data-rng] .rng-pts { color: #fff; text-shadow: 0 2px 0 #0005; }
.rng-card[data-rng] .rng-pts small { color: #ffffffcc; }
.rng-card[data-rng] .rng-bonuses li { background: #0004; border-color: #ffffff40; color: #fff; }
.rng-card[data-rng] .rng-bonuses b { color: #ffc013; }
.rng-card[data-rng] .rng-art { box-shadow: 0 4px 14px #0006; }

/* Home page: no header bar (the footer stays). Fleakee's photo and the account sit in the top corners. */
.fk-corners { position: relative; height: 0; z-index: 5; width: 100%; }
.fk-corner-right { position: absolute; right: 24px; top: 16px; display: flex; align-items: center; gap: 8px; }
.fk-home .fk-hero { margin-top: 18px; padding: 0 56px; max-width: 1400px; }
.fk-home .fk-hero h1 { margin-bottom: 6px; }
/* The whole welcome text in two even lines */
.fk-home .fk-hero p { font-size: 16px; text-wrap: balance; }
@media (max-width: 700px) { .fk-home .fk-hero { padding: 0; margin-top: 64px; } }

/* "Fleakee's" in an animated rainbow */
.fk-rainbow-text {
  background: linear-gradient(90deg, #ff3b3b, #ff9f1a, #ffe23b, #3bdc6a, #3bb4ff, #8b5cf6, #ff3bd0, #ff3b3b);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fk-rainbow-slide 4s linear infinite;
}
@keyframes fk-rainbow-slide { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fk-rainbow-text { animation: none; } }
.fk-corners a.me { display: inline-flex; align-items: center; gap: 8px; color: var(--neon); border: 1px solid var(--neon-dim); padding: 4px 10px 4px 4px; border-radius: 8px; font-weight: 500; text-decoration: none; }
.fk-corners a.signin { color: var(--on-neon); background: var(--neon); font-weight: 600; padding: 7px 14px; border-radius: 8px; text-decoration: none; }
/* Fleakee's photo right before "Welcome" */
.fk-title-face { width: 1.15em; height: 1.15em; border-radius: 12px; vertical-align: -0.2em; margin-right: .3em; box-shadow: 0 4px 14px #0008; }

/* Footer: YouTube, Twitch and Discord as logo-only square buttons (Buy me a coffee keeps its words),
   and the hosting bar exactly in the middle */
.foot .socials { flex-wrap: nowrap; align-items: center; }
.foot .socials .soc-name { display: none; }
.foot .socials .btn.youtube, .foot .socials .btn.twitch, .foot .socials .btn.discord { width: 40px; height: 36px; padding: 0; justify-content: center; box-sizing: border-box; }
.foot .socials .btn.youtube svg, .foot .socials .btn.twitch svg, .foot .socials .btn.discord svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .foot-inner { display: grid; grid-template-columns: 1fr minmax(320px, 460px) 1fr; }
  .foot-inner .hosting { max-width: none; width: 100%; }
  .foot-inner .socials { justify-self: end; }
}

/* Home page, top right: the language menu, then the member's name in Alpha BlitZ yellow */
.fk-corners a.me { background: #ffc013; border-color: #ffc013; color: #000; font-weight: 600; }
.fk-corners a.me:hover { filter: brightness(1.08); }
.fk-lang { position: relative; }
.fk-lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 600 14px var(--mono); }
.fk-lang summary::-webkit-details-marker { display: none; }
.fk-lang summary::after { content: "▾"; font-size: 11px; color: var(--muted); }
.fk-lang[open] summary, .fk-lang summary:hover { border-color: #ffc013; }
.fk-lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; display: flex; flex-direction: column; padding: 6px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 30px #000a; z-index: 20; }
.fk-lang-menu a { color: var(--text); padding: 7px 10px; border-radius: 6px; font-size: 14px; }
.fk-lang-menu a:hover { background: var(--panel-2); text-decoration: none; }
.fk-lang-menu a.active { color: #ffc013; font-weight: 600; }
.fk-corners a.signin { background: #ffc013; color: #000; }

/* Not open yet: no hover lift, no pointer */
.fk-app.is-soon, .rng-card.is-soon { cursor: default; }
.fk-app.is-soon:hover, .rng-card.is-soon:hover { transform: none; }
.fk-app.is-soon .fk-soon-chip { align-self: flex-start; }
/* A daily roll not open yet: the whole tile under a heavy blur (like the locked seeds on Alpha BlitZ),
   only the game's logo and "Coming soon" showing */
.rng-card.is-soon { overflow: hidden; min-height: 170px; }
.rng-soon-blur { display: flex; flex-direction: column; gap: 10px; flex: 1; filter: blur(12px) saturate(1.2); opacity: .7; transform: scale(1.08); pointer-events: none; user-select: none; }
.rng-soon-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.rng-soon-over img { width: 76px; height: 76px; filter: drop-shadow(0 6px 16px #0009); }
.rng-soon-over span { font: 700 15px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #0006; border: 1px solid #ffffff55; border-radius: 999px; padding: 5px 16px; text-shadow: 0 1px 2px #0008; }

/* Home page, Software: the boxes not open yet sit under a heavy blur, with only their logo and "Coming soon" */
.fk-app.is-locked { position: relative; overflow: hidden; cursor: default; }
.fk-app.is-locked:hover { transform: none; }
.fk-lock-blur { filter: blur(14px) saturate(1.2); opacity: .55; pointer-events: none; user-select: none; }
.fk-lock-over { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.fk-lock-over img { width: 104px; height: 104px; filter: drop-shadow(0 10px 24px #000c); }
.fk-lock-over span { font: 700 14px var(--display); letter-spacing: .16em; text-transform: uppercase; color: #ffc013; background: #000a; border: 1px solid #ffc01399; border-radius: 999px; padding: 5px 16px; }
/* The rainbow box keeps its spinning border and glow: a dark panel sits under the blur so the rainbow
   doesn't wash through it */
.fk-app.rainbow.is-locked { overflow: visible; }
.fk-app.rainbow.is-locked::before { content: ""; position: absolute; inset: 2px; z-index: 1; border-radius: 16px; background: var(--panel); }
.fk-app.rainbow.is-locked .fk-lock-blur { position: relative; z-index: 1; clip-path: inset(0 round 16px); }
.fk-app.rainbow.is-locked .fk-lock-blur .fk-app-inner { background: none; }

/* ---- Home: Fleakee's Comment, under the welcome */
.fk-comment {
  display: flex; align-items: center; gap: 10px; max-width: 980px; margin: 12px auto 0; padding: 8px 16px 8px 8px;
  text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 6px 18px #0006;
}
.fk-comment p { margin: 0; font-size: 15.5px; color: var(--text); }
.fk-comment-face { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.fk-comment-who { color: #ffc013; margin-right: 4px; white-space: nowrap; }
.fk-comment-text { white-space: pre-line; overflow-wrap: anywhere; }

/* ---- Home: software and daily rolls on the left, the latest video and the live stream on the right */
.fk-homegrid { display: grid; grid-template-columns: minmax(0, 1fr) var(--side, 400px); gap: 0 24px; align-items: start; }
.fk-home-side { display: flex; flex-direction: column; gap: 14px; }
.fk-media .fk-section { display: flex; align-items: center; gap: 8px; }
.fk-media-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-family: var(--sans, Inter), sans-serif; }
.fk-media-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.fk-media-dot.yt { background: var(--youtube); }
.fk-media-dot.live { background: #ff2d2d; box-shadow: 0 0 0 0 #ff2d2d88; animation: fk-live 1.6s infinite; }
@keyframes fk-live { 70% { box-shadow: 0 0 0 8px #ff2d2d00; } }
.fk-media-frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 10px 28px #0008; }
.fk-media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fk-media-empty { display: grid; place-items: center; color: var(--text); font-weight: 600; text-decoration: none; background: linear-gradient(135deg, #2a0b0b, #12141a); }
.fk-media-empty:hover { text-decoration: none; color: #ffc013; }
@media (max-width: 1150px) {
  .fk-homegrid { grid-template-columns: minmax(0, 1fr); }
  .fk-home-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .fk-media-dot.live { animation: none; } }

/* ---- Home on a phone: the daily rolls (folded), the latest video, the stream when live, then the three
   game modes */
.rng-close { display: none; }
@media (max-width: 700px) {
  .fk-comment { border-radius: 16px; align-items: flex-start; }
  .fk-homegrid { display: flex; flex-direction: column; gap: 14px; }
  .fk-home-main, .fk-home-side { display: contents; }
  .fk-merge-hint { order: 0; }
  .fk-homegrid .rng { order: 1; margin: 0; }
  .fk-video { order: 2; }
  .fk-stream { order: 3; }
  .fk-soft { order: 4; }

  /* The daily rolls fold into bars; a tap opens one, the X folds it again */
  .rng-card:not(.is-open) { min-height: 0; padding: 12px 16px; cursor: pointer; }
  .rng-card:not(.is-open) > :not(.rng-head) { display: none !important; }
  .rng-card:not(.is-open) .rng-head::after { content: "▾"; margin-left: 8px; font-size: 18px; opacity: .85; }
  .rng-card.is-open .rng-close {
    display: inline-grid; place-items: center; position: relative; z-index: 3; margin-left: 8px; width: 30px; height: 30px;
    border: 0; border-radius: 8px; background: #0005; color: #fff; font-size: 14px; cursor: pointer;
  }
  .rng-card .rng-streak { margin-left: auto; }
}
@media (max-width: 700px) {
  .fk-homegrid > *, .fk-homegrid .fk-media, .fk-homegrid .fk-soft { width: 100%; align-self: stretch; box-sizing: border-box; }
}

/* ---- fleakee.com/admin: the owner's tools */
.fk-admin { max-width: 1100px; }
.fk-admin .card { margin-bottom: 16px; }
.fk-admin textarea, .fk-admin input:not([type=hidden]) {
  font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.fk-admin textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 84px; }
.fk-admin textarea:focus, .fk-admin input:focus { outline: none; border-color: #ffc013; }
.fk-admin-form { display: grid; gap: 8px; margin-bottom: 10px; }
.fk-admin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fk-admin-form .fk-admin-row { justify-content: space-between; }
#fk-admin-preview { padding: 14px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line); margin-bottom: 8px; }
#fk-admin-preview .fk-comment { margin: 0 auto; }
.fk-admin-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.fk-admin-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); }
.fk-admin-list form { margin-left: auto; }
.fk-admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fk-admin-table th, .fk-admin-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.fk-admin-table form { margin: 0; }
.fk-plus { color: #3bdc6a; }
.fk-minus { color: #ff5a5a; }
.btn.small { padding: 4px 10px; font-size: 13px; }

/* ---- The three game modes in the logos' own look: a deep navy tile in a golden frame */
.fk-apps .fk-app, .fk-apps .fk-app.soon, .fk-apps .fk-app.rainbow {
  padding: 3px; border: 0; border-radius: 24px; animation: none;
  background: linear-gradient(145deg, #fff1a6 0%, #f2c230 18%, #b77d10 42%, #ffd54a 64%, #c88d14 82%, #ffe68a 100%);
  box-shadow: 0 12px 30px #000b, 0 0 22px #ffc0131f;
}
.fk-apps .fk-app::after { display: none; }
.fk-apps .fk-app .fk-app-inner,
.fk-apps .fk-app.soon .fk-app-inner,
.fk-apps .fk-app.rainbow.is-locked::before {
  border-radius: 21px;
  background: radial-gradient(120% 90% at 50% 0%, #1d2d4f 0%, #111b33 45%, #0a1020 100%);
  box-shadow: inset 0 0 0 1px #00000080, inset 0 2px 0 #ffffff14;
}
.fk-apps .fk-app.rainbow.is-locked .fk-lock-blur .fk-app-inner { background: none; box-shadow: none; }
.fk-apps .fk-app.rainbow.is-locked::before { inset: 3px; }
.fk-apps .fk-app.is-locked .fk-lock-blur { clip-path: inset(0 round 21px); }
.fk-apps .fk-app:not(.is-locked):hover { box-shadow: 0 14px 34px #000c, 0 0 30px #ffc01359; }
/* Every locked box keeps its navy inside under the blur (the gold frame must not bleed through) */
.fk-apps .fk-app.is-locked { overflow: visible; }
.fk-apps .fk-app.is-locked::before {
  content: ""; position: absolute; inset: 3px; z-index: 1; border-radius: 21px;
  background: radial-gradient(120% 90% at 50% 0%, #1d2d4f 0%, #111b33 45%, #0a1020 100%);
  box-shadow: inset 0 0 0 1px #00000080, inset 0 2px 0 #ffffff14;
}
.fk-apps .fk-app.is-locked .fk-lock-blur { position: relative; z-index: 1; }
.fk-apps .fk-app.is-locked .fk-lock-blur .fk-app-inner { background: none; box-shadow: none; }

/* The comment, in the stream's place: the same size of box, the text centred in it */
.fk-note-face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.fk-note-box {
  display: flex; align-items: center; justify-content: center; padding: 18px 22px; box-sizing: border-box;
  background: radial-gradient(120% 90% at 50% 0%, #1d2d4f 0%, #111b33 45%, #0a1020 100%);
  border: 2px solid #ffc01399;
}
.fk-note-box p { margin: 0; font-size: 17px; line-height: 1.5; text-align: center; color: var(--text); white-space: pre-line; overflow: auto; max-height: 100%; }
@media (max-width: 700px) { .fk-note { order: 3; } }
#fk-admin-preview .fk-note { max-width: 420px; margin: 0 auto; }
/* If the right column can't widen enough (tall left side on a smaller screen), its last box stretches
   down so both sides still end level */
@media (min-width: 1151px) {
  .fk-home-side { align-self: stretch; }
  .fk-home-side > .fk-media:last-child { flex: 1; display: flex; flex-direction: column; }
  .fk-home-side > .fk-media:last-child .fk-media-frame { flex: 1; aspect-ratio: auto; min-height: 120px; }
}
@media (min-width: 1151px) { .fk-homegrid .rng { margin-bottom: 0; } }

/* ---- The footer is always on screen on a computer (even zoomed in): the page scrolls behind it */
@media (min-width: 701px) {
  .foot { position: sticky; bottom: 0; z-index: 30; background: var(--bg); box-shadow: 0 -10px 24px #000a; }
}

/* ---- Home: shorter game mode boxes, so everything fits above the footer */
.fk-apps .fk-app.is-locked .fk-lock-blur { height: 196px; overflow: hidden; }
.fk-apps .fk-lock-over img { width: 88px; height: 88px; }
.fk-apps .fk-lock-over { gap: 10px; }
/* The comment under the video: wide and only as tall as its text needs (it stretches if there's room) */
.fk-note-box { padding: 14px 20px; }
.fk-note-box p { font-size: 16px; }
@media (min-width: 1151px) { .fk-home-side > .fk-note:last-child .fk-media-frame { min-height: 70px; } }

/* ---- A daily roll not done today: the same tile as a roll, blurred, with the roll button on top */
.rng-invite { position: relative; flex: 1; display: flex; flex-direction: column; }
.rng-ph { flex: 1; display: flex; flex-direction: column; gap: 10px; filter: blur(6px) saturate(1.1); opacity: .7; pointer-events: none; user-select: none; }
.rng-ph .rng-art-empty img { width: 64px; height: 64px; }
.rng-ph .rng-share-one { margin-top: auto; }
.rng-ph-over { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; pointer-events: none; }
.rng-ph-over .rng-cta { margin: 0; width: min(86%, 320px); box-sizing: border-box; padding: 13px 16px; font-size: 17px; box-shadow: 0 4px 0 #8a680a, 0 10px 26px #000a; }
.rng-ph-over .rng-keep, .rng-ph-over .rng-last { margin: 0; text-align: center; text-shadow: 0 1px 3px #000c; }
.rng-card[data-rng] .rng-ph-over .rng-last { color: #fff; }
/* Room for "Share today's rolls" kept whether or not it shows, so the tiles don't move after a roll */
.fk-homegrid .rng-top { min-height: 44px; align-items: center; }

/* ---- The same golden frame as the game modes, on the daily roll tiles, the video / stream and the footer */
:root { --gold-frame: linear-gradient(145deg, #fff1a6 0%, #f2c230 18%, #b77d10 42%, #ffd54a 64%, #c88d14 82%, #ffe68a 100%); }
.rng-card[data-rng], .rng-card[data-rng].is-rolled {
  border: 3px solid transparent; border-radius: 20px;
  background:
    radial-gradient(80% 60% at 0% 0%, #ffffff2e, transparent 70%) padding-box,
    linear-gradient(160deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 70%, #0b0d10) 100%) padding-box,
    var(--gold-frame) border-box;
  box-shadow: 0 12px 30px #000b, 0 0 22px #ffc0131f;
}
.rng-card[data-rng]:hover { box-shadow: 0 14px 34px #000c, 0 0 30px #ffc01359; }
.fk-home-side .fk-media-frame {
  border: 3px solid transparent; border-radius: 16px;
  background: linear-gradient(#000, #000) padding-box, var(--gold-frame) border-box;
  box-shadow: 0 12px 30px #000b, 0 0 22px #ffc0131f;
}
.fk-home-side .fk-media-frame iframe { border-radius: 13px; }
.fk-home-side .fk-note-box {
  border: 3px solid transparent;
  background: radial-gradient(120% 90% at 50% 0%, #1d2d4f 0%, #111b33 45%, #0a1020 100%) padding-box, var(--gold-frame) border-box;
}
.foot { border-top: 3px solid transparent; border-image: linear-gradient(90deg, #b77d10, #f2c230 20%, #fff1a6 50%, #f2c230 80%, #b77d10) 1; box-shadow: 0 -6px 22px #ffc01314; }

/* ---- "Share today's rolls": the window with the picture and the ways to share it (public/rng/share-card.js) */
.fk-sharewin { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: #000b; backdrop-filter: blur(4px); }
.fk-sharewin-box {
  width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 20px 22px;
  border: 3px solid transparent; border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, #1d2d4f 0%, #111b33 45%, #0a1020 100%) padding-box, var(--gold-frame) border-box;
  box-shadow: 0 20px 60px #000c;
}
.fk-sharewin-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fk-sharewin-head h2 { margin: 0; font: 700 24px var(--display); }
.fk-sharewin-x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #ffffff30; background: #0006; color: #fff; font-size: 16px; cursor: pointer; }
.fk-sharewin-x:hover { border-color: #ffc013; color: #ffc013; }
.fk-sharewin-pic { aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: #0a1020; }
.fk-sharewin-pic canvas { width: 100%; height: auto; display: block; }
.fk-sharewin-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.fk-sharewin .way { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid #ffffff26; background: #ffffff0d; color: #fff; cursor: pointer; }
.fk-sharewin .way b { font: 700 15px var(--display); }
.fk-sharewin .way small { color: #c9d3ea; font-size: 12.5px; }
.fk-sharewin .way:hover { border-color: #ffc013; background: #ffc01314; }
.fk-sharewin .way.discord { background: #5865f2; border-color: #5865f2; }
.fk-sharewin .way.discord small { color: #ffffffd9; }
.fk-sharewin .way.discord:hover { filter: brightness(1.08); border-color: #fff; }
.fk-sharewin-note { min-height: 1.4em; margin: 12px 0 0; text-align: center; color: #ffc013; font-weight: 600; }
.account-id code { user-select: all; font-size: 12px; }

/* ---- The latest video: its thumbnail and a play button, then the player in its place */
.fk-yt-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.fk-yt-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.fk-yt-poster:hover img { filter: brightness(1.08); }
.fk-yt-title { position: absolute; left: 0; right: 0; top: 0; padding: 14px 18px 30px; text-align: left; color: #fff; font: 600 18px/1.3 var(--display); text-shadow: 0 2px 4px #000c; background: linear-gradient(#000b, transparent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fk-yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: #ff0033; box-shadow: 0 6px 20px #000a; transition: transform .15s; }
.fk-yt-play::after { content: ""; position: absolute; left: 31px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.fk-yt-poster:hover .fk-yt-play { transform: scale(1.08); }
.fk-yt-poster:focus-visible { outline: 3px solid #ffc013; outline-offset: -3px; }
