:root {
  --bg: #0a0c0d;
  --card: #131617;
  --card-2: #1b1f20;
  --line: rgba(255, 255, 255, 0.06);
  --text: #f1f4f2;
  --muted: #8b9490;
  --faint: #5b6360;
  --green: #2be39b;
  --green-dim: rgba(43, 227, 155, 0.12);
  --green-line: rgba(43, 227, 155, 0.3);
  --gold: #ffd24a;
  --pop: #0c0f10; /* every popup: sheets, comments, the menu */
  --red: #ff5a5a;
  --red-line: rgba(255, 90, 90, 0.34);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sheet-ease: cubic-bezier(.32, .72, 0, 1);
  --safe-top: var(--tg-content-safe-area-inset-top, 0px);
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 500 15px/1.4 Manrope, system-ui, sans-serif;
  min-height: 100vh;
  padding: calc(12px + var(--safe-top)) 16px calc(78px + var(--safe-bottom));
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}
button { font: inherit; color: inherit; }
/* background picture (Codex, art/backgrounds), picked in the profile tab */
.bgs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg { position: absolute; inset: 0; background: center top / cover no-repeat; opacity: 0; transition: opacity .35s ease; }
.bg.on { opacity: 1; }
/* The system scrollbar of the page is hidden: when a long screen brought it in, the width shrank and the screen jumped.
   A thin thumb floats over the content instead, shows while the page moves and can be dragged with the mouse. */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
.sbar { position: fixed; z-index: 6; top: 0; right: 0; width: 14px; opacity: 0; pointer-events: none; transition: opacity .45s ease; touch-action: none; }
.sbar::before { content: ""; position: absolute; top: 0; bottom: 0; right: 3px; width: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); transition: width .15s ease, background .15s ease; }
.sbar.on { opacity: 1; pointer-events: auto; transition-duration: .12s; }
.sbar:hover::before, .sbar.drag::before { width: 6px; background: rgba(255, 255, 255, 0.45); }
.top-end { display: flex; align-items: center; gap: 14px; }
/* «⋯» in the header: a small menu (background choice) */
.more { width: 32px; height: 30px; margin-right: -6px; display: inline-flex; align-items: center; justify-content: center; gap: 3.5px; padding: 0; border: 0; background: none; cursor: pointer; }
.more i { width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--text); transition: transform .2s var(--ease); }
.more:active i { transform: scale(.8); }
.menu { position: fixed; inset: 0; z-index: 15; }
.menu[hidden] { display: none; }
.menu-back { position: absolute; inset: 0; }
.menu-body { position: absolute; top: calc(48px + var(--safe-top)); right: max(12px, calc((100vw - 520px) / 2 + 12px)); min-width: 220px; padding: 6px; background: var(--pop); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); transform-origin: top right; animation: menu-in .26s var(--ease); transition: opacity .16s ease, transform .16s ease; }
.menu.closing .menu-body { opacity: 0; transform: scale(.94) translateY(-4px); }
@keyframes menu-in { from { opacity: 0; transform: scale(.92) translateY(-6px); } }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px 0 12px; border: 0; border-radius: 11px; background: none; text-align: left; cursor: pointer; }
.menu-item:active { background: rgba(255, 255, 255, 0.06); }
.menu-item span { flex: 1; font-size: 15px; font-weight: 700; }
.menu-item em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.menu-item b { font-size: 18px; line-height: 1; color: var(--faint); }
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 2px 4px; }
.bg-tile { border: 0; padding: 0; background: none; cursor: pointer; text-align: center; }
.bg-tile i { display: block; aspect-ratio: 2 / 3; border-radius: 12px; background: var(--card-2) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.bg-tile span { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.bg-tile.on i { box-shadow: 0 0 0 2px var(--green); }
.bg-tile.on span { color: var(--green); }
.top, .view { position: relative; z-index: 1; max-width: 520px; margin-left: auto; margin-right: auto; }
/* A new screen slides in from the side. The view reaches the screen edges and clips there, so that slide never makes
   the page wider: on phones a wider page zoomed out for a moment (the background seemed to scale) and showed a
   sideways scrollbar. clip is not a scroll container, so sticky bars inside keep sticking to the page. */
.view { max-width: none; margin-left: max(-16px, (100% - 552px) / 2); margin-right: max(-16px, (100% - 552px) / 2); padding-left: 16px; padding-right: 16px; overflow-x: clip; }
/* header */
.top { display: flex; align-items: center; justify-content: space-between; height: 30px; margin-bottom: 14px; padding: 0 2px; }
/* the name is white; a soft mint light passes over the letters now and then */
.brand { font-size: 14px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: var(--text);
  background: linear-gradient(100deg, var(--text) 0 42%, #9fefca 50%, var(--text) 58% 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: brand-sheen 9s ease-in-out infinite; }
.brand b { font-weight: 800; }
@keyframes brand-sheen { 0%, 78% { background-position: 100% 0; } 100% { background-position: 0 0; } }
/* the wipe: plain letters like the brand, no plate; a green dot for the running season */
.season { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.season b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.season:empty { display: none; }

/* shared pieces */
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 8px; }
.sec b { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.9px; }
.sec em { font-style: normal; font-size: 12.5px; color: var(--faint); }
.note { color: var(--faint); font-size: 12.5px; line-height: 1.45; margin: 10px 4px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
/* pictures drawn by Codex: a soft glow of the item colour behind a 3D icon */
.pic { display: block; width: 100%; height: 100%; object-fit: contain; }
/* white interface glyphs (art/icons-ui): the picture is only a mask, the colour comes from `color` */
.gl { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.icon { --c: #9aa39f; position: relative; width: 42px; height: 42px; flex: none; display: grid; place-items: center; }
.icon::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent); background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 32%, transparent), transparent); }
.icon .pic { position: relative; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45)); }

.row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 62px; }
.row + .row { border-top: 1px solid var(--line); }
.row .body { flex: 1; min-width: 0; }
.row .t1 { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.row .t2 { color: var(--muted); font-size: 12.5px; margin-top: 1px; line-height: 1.35; }
.row .end { text-align: right; flex: none; font-size: 17px; font-weight: 800; }
.row.none .end { color: var(--faint); }

/* player head cut from the skin texture (face + hat layer) */
.head { --s: 64px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 22%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(150deg, #8af7cb, var(--green) 45%, #0e9a62); color: #062016; font-weight: 800; font-size: calc(var(--s) * 0.44); }
.head i { position: absolute; inset: 0; background-image: var(--skin); background-size: 800% auto; background-repeat: no-repeat; image-rendering: pixelated; }
.head i.face { background-position: calc(var(--s) * -1) calc(var(--s) * -1); background-color: #1b1f20; }
.head i.hat { background-position: calc(var(--s) * -5) calc(var(--s) * -1); }

/* profile */
.hero {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--green-line);
  background: linear-gradient(135deg, rgba(43, 227, 155, 0.16), rgba(43, 227, 155, 0.02) 62%), var(--card);
}
.hero .head { --s: 72px; box-shadow: 0 10px 26px -12px rgba(43, 227, 155, 0.7); }
/* Like Steam: the thin frame of the card turns red while the account has active bans or mutes. */
/* Staff: the card takes the rank colour, a light runs along its frame, the rank sits over the nick. */
.hero.staff {
  --rc: 90, 169, 255; border-color: rgba(var(--rc), 0.42);
  background: radial-gradient(130% 150% at 0% 0%, rgba(var(--rc), 0.24), transparent 58%),
    linear-gradient(135deg, rgba(var(--rc), 0.08), rgba(var(--rc), 0.02) 62%), var(--card);
}
.hero.r-owner { --rc: 255, 72, 92; }
.hero.r-dev { --rc: 176, 132, 255; }
.hero.r-head { --rc: 255, 140, 66; }
.hero.staff .head { box-shadow: 0 0 0 2px rgba(var(--rc), 0.6), 0 10px 30px -8px rgba(var(--rc), 0.85); }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero.staff::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 62%, rgba(var(--rc), 0.25) 72%, rgba(var(--rc), 1) 84%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rank-spin 6s linear infinite;
}
.hero.staff::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; width: 34%; left: -50%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--rc), 0.13), transparent); transform: skewX(-18deg);
  animation: rank-sheen 7s ease-in-out infinite;
}
@keyframes rank-spin { to { --spin: 360deg; } }
@keyframes rank-sheen { 0%, 62% { left: -50%; } 100% { left: 130%; } }
.rank {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 5px; padding: 2px 9px 2px 3px; border-radius: 999px;
  border: 1px solid rgba(var(--rc), 0.45); background: rgba(var(--rc), 0.15); color: rgb(var(--rc));
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; line-height: 18px;
  text-shadow: 0 0 12px rgba(var(--rc), 0.55);
}
.rank .pic { width: 20px; height: 20px; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.hero.blocked::before, .hero.blocked::after { display: none; }
.hero.blocked { border-color: rgba(255, 90, 90, 0.62); background: linear-gradient(135deg, rgba(255, 90, 90, 0.17), rgba(255, 90, 90, 0.02) 62%), var(--card); }
.hero.blocked .head { box-shadow: 0 10px 26px -12px rgba(255, 90, 90, 0.75); }
.acc .head.bad + .nm { color: var(--red); }
.hero .who { flex: 1; min-width: 0; }
.hero h1 { font-size: 22px; font-weight: 800; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
.status { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.status.off::before { background: var(--faint); }
button.status { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; cursor: pointer; }
.status.bad { color: var(--red); font-weight: 700; }
.status.bad::before { background: var(--red); box-shadow: 0 0 6px var(--red); }
.mini.bad { color: var(--red); background: rgba(255, 90, 90, 0.13); }
.row .t2.red { color: var(--red); font-weight: 700; }
/* punishments sheet */
.pun { padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--card-2); border-left: 3px solid var(--faint); }
.pun + .pun { margin-top: 8px; }
.pun.active { border-left-color: var(--red); background: linear-gradient(90deg, rgba(255, 90, 90, 0.1), transparent 70%), var(--card-2); }
.pun-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pun-top b { font-size: 15px; }
.pun-top span { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst { flex: none; font-style: normal; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.pun.active .pst { color: var(--red); background: rgba(255, 90, 90, 0.14); }
.pun-why { margin-top: 5px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.pun-meta { margin-top: 4px; color: var(--faint); font-size: 12.5px; }
.pun .mini { margin-top: 10px; }
.pun-empty { padding: 26px 0 30px; text-align: center; color: var(--muted); font-weight: 700; }
.swap { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 7px 12px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.05); font-size: 13px; font-weight: 700; cursor: pointer; }
.swap svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.swap:active { background: rgba(255, 255, 255, 0.1); }

/* play time: one card, total on the left, this season on the right */
.play { margin-top: 10px; padding: 12px 14px 14px; }
.play-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.play-top .pic { width: 20px; height: 20px; flex: none; }
.play-cols { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.play-col { min-width: 0; }
.play-col + .play-col { padding-left: 14px; border-left: 1px solid var(--line); }
.play-col:first-child { padding-right: 14px; }
.play-col .lb { color: var(--muted); font-size: 12.5px; }
.play-col .vl { margin-top: 4px; font-size: 22px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.play-col .vl small { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 5px 0 2px; }
.play-col .vl small:last-child { margin-right: 0; }
.play-col.now .vl { color: var(--green); }
.play-col.now .vl small { color: rgba(43, 227, 155, 0.65); }
.play-col .hint { margin-top: 5px; min-height: 16px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* currency signs as the server shows them: $ green, ⚝ grey, ⛃ yellow */

/* not linked */
.link-card { padding: 18px 16px 16px; }
.link-card h2 { font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.link-card .lead { color: var(--muted); margin: 0 0 16px; }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; color: var(--green); background: var(--green-dim); margin-top: -1px; }
code { white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; background: var(--green-dim); color: var(--green); padding: 1px 6px; border-radius: 6px; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 13px; cursor: pointer; font-weight: 700; font-size: 15px; color: #062016; background: var(--green); }
.btn:active { filter: brightness(.92); }
.btn.ghost { background: var(--card-2); color: var(--text); margin-top: 8px; }
.btn:disabled { opacity: .7; }
.link-row { min-height: 56px; padding: 9px 12px 9px 14px; }
.mini { flex: none; border: 0; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-dim); cursor: pointer; transition: background .15s, color .15s; }
.mini:active { filter: brightness(.9); }
.mini.done { color: var(--text); background: var(--card-2); }

/* segmented switch */
.seg { --p: 4px; --g: 4px; position: relative; isolation: isolate; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.seg button { border: 0; background: none; border-radius: 10px; padding: 8px 6px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button.on { background: var(--green-dim); color: var(--green); }
/* the highlight of a switch is one element that slides to the chosen button */
.seg-pill { position: absolute; z-index: -1; top: var(--p); bottom: var(--p); left: var(--p); width: calc((100% - 2 * var(--p) - (var(--n) - 1) * var(--g)) / var(--n)); border-radius: 10px; background: var(--green-dim); transform: translateX(calc(var(--i) * (100% + var(--g)))); transition: transform .42s var(--ease); }
.seg.pilled button { transition: color .3s ease; }
.seg.pilled button.on { background: none; }

/* events: one screen, no scrolling */
.evtabs { margin: 2px 0 0; }
.evtabs + .mines { margin-top: 12px; }
.ev-sub { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 8px 4px 10px; }
.ev-sub span:last-child { color: var(--faint); flex: none; }
.spot { position: relative; padding: 13px 14px 14px; border-radius: 20px; }
.spot-top { display: flex; justify-content: space-between; align-items: center; height: 18px; }
.tag { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); }
.spot.live .tag { color: var(--green); }
.spot.live .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
.stars { color: var(--gold); font-size: 14px; letter-spacing: 1.5px; }
.spot-at { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.gstars { display: flex; gap: 6px; margin-top: 10px; }
.gstars > span { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 5px 10px 6px; border-radius: 10px; background: var(--card-2); }
.gstars i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gstars .stars { font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.chest.split { flex-wrap: wrap; }
.chest .gstars { flex-basis: 100%; margin-top: 2px; }
.spot-main { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.spot .icon { width: 52px; height: 52px; }
.spot .body { flex: 1; min-width: 0; }
.spot .nm { font-size: 19px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.spot .sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.count { text-align: right; flex: none; }
.count b { display: block; font-size: 25px; font-weight: 800; line-height: 1; white-space: nowrap; }
.count b small { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.count span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin-top: 13px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }

.tl { --row: 46px; margin-top: 10px; padding: 3px 0; }
.tl .r { position: relative; display: grid; grid-template-columns: 44px 30px 1fr auto; column-gap: 10px; align-items: center; height: var(--row); padding: 0 14px 0 12px; }
.tl .r::before { content: ""; position: absolute; left: 80.5px; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.08); }
.tl .r:first-child::before { top: 50%; }
.tl .r:last-child::before { bottom: 50%; }
.tl .r:only-child::before { display: none; }
.tl .tm { font-size: 15px; font-weight: 800; }
.tl .nd { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); }
.tl .nd .pic { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.tl .r.first .nd { background: #12372a; box-shadow: 0 0 0 1px var(--green-line); }
.tl .what { min-width: 0; }
.tl .nm { font-size: 14.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl .un { color: var(--muted); font-size: 12px; line-height: 1.25; white-space: nowrap; }
.tl .r.first .un { color: var(--green); font-weight: 700; }
.tl .len { color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--card-2); white-space: nowrap; }
.tl.dense .un { display: none; }
.empty-box { margin-top: 10px; padding: 16px; color: var(--muted); }

.chest { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 10px 9px 12px; }
.chest .icon { width: 38px; height: 38px; }
.chest .body { flex: 1; min-width: 0; }
.chest .t1 { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.chest .t2 { color: var(--faint); font-size: 11.5px; }
.chips { display: flex; gap: 6px; flex: none; }
.chip { width: 52px; padding: 5px 0 6px; border-radius: 11px; background: var(--card-2); text-align: center; }
.chip b { display: block; font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.chip span { display: block; font-size: 10.5px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.chip.on { background: #12372a; box-shadow: inset 0 0 0 1px var(--green-line); }
.chip.on span { color: var(--green); font-weight: 700; }
.chip.on span.st { color: var(--gold); letter-spacing: 0.5px; font-size: 9.5px; }
.events .note { margin-top: 8px; text-align: center; }
.events.tight .note { display: none; }
/* small phones: the schedule still has to fit one screen */
.events.tight .ev-sub { margin: 6px 4px 7px; }
.events.tight .spot { padding: 10px 14px 11px; }
.events.tight .spot-main { margin-top: 6px; }
.events.tight .bar { margin-top: 10px; }
.events.tight .tl, .events.tight .chest { margin-top: 8px; }
.events.tight .chest { padding-top: 6px; padding-bottom: 6px; }
.events.tight .chest .t2 { display: none; }
.events.tight .chest .icon, .events.tight .bell { width: 32px; height: 32px; }
.events.tight .tl .nd { width: 28px; height: 28px; }
.events.tight .tl .nd .pic { width: 22px; height: 22px; }

/* Звёздный разлом strip under the schedule */
.rift.live { border-color: rgba(139, 123, 255, 0.35); background: linear-gradient(135deg, rgba(139, 123, 255, 0.16), rgba(139, 123, 255, 0.02) 62%), var(--card); }
.rift-at { flex: none; text-align: right; }
.rift-at b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.rift.live .rift-at b { color: #b3a8ff; }
.rift-at span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bell { flex: none; width: 36px; height: 36px; padding: 0; border: 0; display: grid; place-items: center; background: none; color: #7d8682; cursor: pointer; transition: color .2s; }
.bell .gl { width: 24px; height: 24px; }
.bell.on { color: #fff; }
.bell.pop .gl { animation: navpop .45s var(--ease); }

/* mines: rare ones on top, then one card per server */
.mines .sec:first-child { margin-top: 6px; }
.link-pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 6px; background: var(--card); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.link-pill .gl { width: 15px; height: 15px; background: #fff; opacity: .7; }
.link-pill.on .gl { opacity: 1; }
.link-pill.on { color: var(--green); border-color: var(--green-line); background: var(--green-dim); }
.rare-box { overflow: hidden; }
.rrow { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 14px; min-height: 52px; }
.rrow .icon { width: 36px; height: 36px; }
.rrow + .rrow { border-top: 1px solid var(--line); }
.rrow .body { flex: 1; min-width: 0; }
.rrow .t1 { font-weight: 800; color: var(--c); line-height: 1.25; }
.rrow .t2 { color: var(--muted); font-size: 12.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow.live { background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 80%); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 80%); }
.rrow.live::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.rrow:not(.live) .icon { opacity: .75; }
.when { flex: none; text-align: right; }
.when span { display: block; font-size: 11.5px; color: var(--muted); }
.when b { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; }
.rrow.live .when span { color: var(--c); font-weight: 700; }
.empty-line { padding: 16px 14px; color: var(--muted); font-size: 13.5px; text-align: center; }
.srv { margin-top: 8px; overflow: hidden; }
.srv-top { padding: 9px 14px 1px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.mrow { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 14px 9px; min-height: 54px; }
.mrow .icon { width: 36px; height: 36px; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mbar { position: absolute; left: 62px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--n); opacity: .55; transform-origin: left; transition: transform 1s linear; }
.mrow .body { flex: 1; min-width: 0; }
.mrow .t1 { font-weight: 800; line-height: 1.25; }
.mrow .t2 { color: var(--muted); font-size: 12.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow.rare { background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 75%); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 17%, transparent), transparent 75%); }
.mrow.rare::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.mrow.rare .t1 { color: var(--c); }
.nx { flex: none; text-align: right; }
.nx b { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; }
.nx span { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.nx span i { width: 7px; height: 7px; border-radius: 50%; background: var(--n); flex: none; }
.nx span em { font-style: normal; }
.nx.rare span em { color: var(--n); font-weight: 700; }

.seg.mini { --p: 3px; --g: 3px; padding: 3px; gap: 3px; border: 0; border-radius: 12px; background: var(--card-2); }
.seg.mini button { padding: 7px 2px; font-size: 13px; border-radius: 9px; }

/* notify: compact rows — name, small native pickers, switch */
.notify .sec:first-child { margin-top: 6px; }
.ntabs { position: sticky; top: calc(8px + var(--safe-top)); z-index: 3; margin-top: 2px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(19, 22, 23, 0.86); }
.ntabs + .sec { margin-top: 16px; }
.row.ev { gap: 8px; padding: 7px 12px 7px 14px; min-height: 54px; }
.row.ev .icon { width: 34px; height: 34px; }
.row.ev .t2 code { font-size: 11.5px; }
.hit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; align-self: stretch; }
.lead-row { gap: 10px; padding: 8px 12px 8px 14px; min-height: 50px; border-top: 1px solid var(--line); transition: opacity .15s; }
.lead-row .t1 { font-size: 14px; }
.lead-row.off { opacity: .45; }
.pill { position: relative; flex: none; display: block; border: 0; outline: 0; margin: 0; border-radius: 999px; padding: 6px 25px 6px 11px; font-size: 12.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; color: var(--text); background: var(--card-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pill:active { filter: brightness(1.25); }
.pill::after { content: ""; position: absolute; right: 11px; top: 50%; width: 5px; height: 5px; margin-top: -4px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.pill.gold { color: var(--gold); background: rgba(255, 210, 74, 0.12); }
.pill.gold::after { border-color: var(--gold); }
/* rare mines: three toggle tiles in one row */
.mtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.mtile { position: relative; display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; margin: 0; padding: 8px 25px 8px 8px; border-radius: 14px; background: var(--card-2); border: 1px solid transparent; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s; }
.mtile .pic { flex: none; width: 28px; height: 28px; filter: grayscale(1) brightness(.8); opacity: .5; transition: filter .15s, opacity .15s; }
.mtile span { min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtile .tick { position: absolute; top: 50%; right: 8px; margin-top: -7px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.18); }
.mtile.on { background: rgba(255, 255, 255, 0.06); background: color-mix(in srgb, var(--c) 14%, var(--card-2)); border-color: rgba(255, 255, 255, 0.12); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.mtile.on .pic { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); opacity: 1; }
.mtile.on span { color: var(--text); }
.mtile.on .tick { border: 0; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.mtiles + .lead-row { border-top: 1px solid var(--line); }
.sw { position: relative; display: block; width: 48px; height: 28px; flex: none; margin: 0; padding: 0; border: 0; outline: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sw:disabled { cursor: default; }
.sw i { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 99px; background: #2a2f30; transition: background .2s; pointer-events: none; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s; }
.sw.on i { background: var(--green); }
.sw.on i::after { transform: translateX(20px); }
.sw:disabled i { opacity: .35; }

/* profile status: donate privilege and battle pass */
.pass-row { flex-wrap: wrap; row-gap: 0; padding-bottom: 12px; }
.lvl { flex: none; text-align: right; font-size: 20px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.lvl small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.pbar { flex-basis: 100%; height: 5px; margin: 8px 0 0 54px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a866dd, var(--gold)); }
.badge { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 16px; color: #1a1300; background: var(--gold); vertical-align: 1px; }

/* ideas (TopiaFeedBack) */
.theme { flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--c); }
.topic { min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic::before { content: "·"; margin-right: 6px; color: var(--faint); }
.ist { flex: none; margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--muted); background: var(--card-2); }
.ist.accepted { color: var(--green); background: var(--green-dim); }
.ist.done { color: #062016; background: var(--green); }
.ist.rejected { color: #ff7a7a; background: rgba(255, 90, 90, 0.12); }
/* ideas: a vertical feed like TikTok between the header and the tabs, one idea per screen */
.feed-wrap { position: fixed; z-index: 1; left: 0; right: 0; top: calc(56px + var(--safe-top)); bottom: calc(63px + var(--safe-bottom)); max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; }
.feed-bar { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px 8px; }
.feed-modes { position: relative; flex: 1; min-width: 0; display: flex; justify-content: center; }
.feed-modes button { position: relative; border: 0; background: none; padding: 7px 8px 9px; font-size: 15px; font-weight: 800; color: var(--muted); white-space: nowrap; cursor: pointer; transition: color .3s ease; }
.feed-modes button.on { color: var(--text); }
.fm-line { position: absolute; left: 0; bottom: 0; width: 22px; height: 3px; border-radius: 2px; background: var(--green); pointer-events: none; transition: transform .42s var(--ease); }
.feed-wrap.busy .feed { opacity: .12; pointer-events: none; transform: translate3d(calc(var(--dx, 0px) * -0.35), 0, 0); transition: opacity .14s ease-in, transform .14s ease-in; }
.fb-icon { position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.fb-icon .gl { width: 23px; height: 23px; transition: transform .15s; }
.fb-icon:active .gl { transform: scale(.85); }
.fb-icon.on::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.feed-chips { flex: none; display: flex; gap: 6px; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: none; }
.feed-chips::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--green-line); border-radius: 999px; padding: 4px 10px; background: var(--green-dim); color: var(--green); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fchip i { font-style: normal; font-size: 15px; line-height: 1; opacity: .75; }
.feed { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; overscroll-behavior: contain; }
.feed-track { height: 100%; will-change: transform; }
.feed-track.anim { transition: transform .36s cubic-bezier(.22, .9, .3, 1); }
.slide { height: 100%; padding: 0 12px 10px; }
.s-card { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 10px; padding: 14px 12px 14px 16px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(14, 17, 18, 0.9); -webkit-user-select: none; user-select: none; }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .s-top .theme { background: color-mix(in srgb, var(--c) 16%, transparent); }
}
.s-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 24px; }
.s-top .theme { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.s-top .ist { margin-left: 0; }
.s-id { flex: none; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--faint); }
.s-text { grid-column: 1; grid-row: 2; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 12px 2px; scrollbar-width: none; }
.s-text.over { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.s-text::-webkit-scrollbar { display: none; }
.s-text p { margin: auto 0; white-space: pre-line; overflow-wrap: anywhere; font-weight: 700; letter-spacing: -0.1px; }
.s-text.xl p { font-size: 26px; line-height: 1.25; font-weight: 800; }
.s-text.l p { font-size: 21px; line-height: 1.3; }
.s-text.m p { font-size: 18px; line-height: 1.38; }
.s-text.s p { font-size: 15.5px; line-height: 1.45; font-weight: 600; }
.s-text.xs p { font-size: 14px; line-height: 1.42; font-weight: 600; }
.s-who { grid-column: 1; grid-row: 3; min-width: 0; align-self: end; }
.s-reward { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 9px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(255, 210, 74, 0.12); color: var(--gold); font-size: 13px; font-weight: 800; }
.s-reward .pic { width: 20px; height: 20px; }
.s-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.s-author .head { --s: 42px; border-radius: 12px; }
.s-author span { min-width: 0; }
.s-author b { display: block; font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-author em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.s-rail { grid-column: 2; grid-row: 2 / 4; align-self: end; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rb { display: grid; justify-items: center; gap: 3px; min-width: 52px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55)); }
.rb .gl { width: 38px; height: 38px; transition: transform .15s, color .15s; }
.rb:active .gl { transform: scale(.85); }
.rb.vote-like.on { color: var(--green); }
.rb.vote-dislike.on { color: #ff5a5a; }
.rb.on .gl { animation: pop .3s ease-out; }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.rb .pic { width: 46px; height: 46px; padding: 3px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); transition: transform .15s; }
.rb b { font-size: 13px; font-weight: 800; }
.rb:active .pic { transform: scale(.88); }
.rb.vote-like.on b { color: var(--green); }
.rb[data-locked]:not(.on) .gl { opacity: .55; }
.rb.vote-dislike.on b { color: #ff7a7a; }
.rb[data-locked]:not(.on) .pic { opacity: .55; }
@media (max-height: 700px) {
  .rb .pic { width: 40px; height: 40px; padding: 2px; }
  .rb .gl { width: 33px; height: 33px; }
  .s-rail { gap: 8px; }
  .s-author .head { --s: 36px; }
}
.burst { position: absolute; z-index: 3; width: 104px; height: 104px; margin: -52px 0 0 -52px; pointer-events: none; animation: burst .75s ease-out forwards; }
@keyframes burst { 0% { transform: scale(.3) rotate(-14deg); opacity: 0; } 22% { transform: scale(1.18) rotate(-6deg); opacity: 1; } 55% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: translateY(-46px) scale(1.25); opacity: 0; } }
.slide.empty .s-card { display: flex; align-items: center; justify-content: center; }
.s-empty { display: grid; justify-items: center; gap: 12px; text-align: center; }
.s-empty .pic { width: 76px; height: 76px; opacity: .85; }
.s-empty b { font-size: 17px; }
.s-empty .btn { width: auto; padding: 11px 20px; }
.more-slide .skel { height: 100%; border-radius: 24px; }
.q-input { display: block; width: 100%; margin-bottom: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: var(--card); color: var(--text); font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none; }
.q-input:focus { border-color: var(--green-line); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 .btn { margin-top: 0; }

/* comments under an idea: own bottom sheet with one-level threads */
.csheet { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 21; }
.csheet[hidden] { display: none; }
.csheet-body { position: absolute; left: 0; right: 0; bottom: 0; height: 74vh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; padding-top: 8px; padding-bottom: var(--safe-bottom); background: var(--pop); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; animation: up .44s var(--sheet-ease); transition: transform .24s cubic-bezier(.4, 0, 1, 1); }
.c-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 8px 16px; border-bottom: 1px solid var(--line); }
.c-head b { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 800; }
.c-sort { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--card-2); }
.c-sort button { border: 0; background: none; padding: 5px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.c-sort button.on { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.c-x { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--card-2); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.c-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 12px 10px 14px; }
.cthread { padding: 4px 0; }
.cm { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.cm .head { --s: 34px; border-radius: 10px; }
.cm.reply .head { --s: 26px; border-radius: 8px; }
.creplies { margin-left: 44px; }
.cm-body { flex: 1; min-width: 0; }
.cm-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.cm-name b { min-width: 0; font-weight: 800; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-name em { flex: none; font-style: normal; font-size: 12px; color: var(--faint); }
.cm-badge { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--green-dim); color: var(--green); font-size: 11px; font-weight: 800; }
.cm-text { margin-top: 1px; font-size: 14.5px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.cm-to { color: var(--green); font-weight: 700; }
.cm-acts { display: flex; gap: 16px; margin-top: 3px; }
.cm-acts button { padding: 2px 0; border: 0; background: none; font-size: 12.5px; font-weight: 700; color: var(--faint); cursor: pointer; }
.cm-like { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 34px; padding: 4px 0 0; border: 0; background: none; cursor: pointer; }
.cm-like .pic { width: 20px; height: 20px; filter: grayscale(1) brightness(1.4); opacity: .4; transition: transform .15s, opacity .15s, filter .15s; }
.cm-like.on .pic { filter: none; opacity: 1; transform: scale(1.1); }
.cm-like b { min-height: 15px; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.cm-like.on b { color: #ff6b85; }
.cm.gone .cm-text { padding-top: 7px; font-size: 13.5px; font-style: italic; color: var(--faint); }
.cm .head-ph { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--card-2); }
.cm.reply .head-ph { width: 26px; height: 26px; border-radius: 8px; }
.cm-more { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px 44px; padding: 4px 0; border: 0; background: none; font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; }
.cm-more::before { content: ""; width: 22px; height: 1px; background: var(--faint); }
.cm-more.top { margin-left: 0; }
.c-empty { display: grid; justify-items: center; gap: 10px; padding: 54px 0; text-align: center; color: var(--muted); }
.c-empty .pic { width: 58px; height: 58px; opacity: .85; }
.c-empty .btn { width: auto; padding: 10px 18px; }
.c-bar { flex: none; padding: 8px 12px 10px; border-top: 1px solid var(--line); background: var(--pop); }
.c-bar:empty { display: none; }
.c-to { display: flex; align-items: center; gap: 6px; padding: 0 4px 6px; font-size: 12.5px; color: var(--muted); }
.c-to b { color: var(--green); }
.c-to button { margin-left: auto; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; }
.c-row { display: flex; align-items: flex-end; gap: 8px; }
.c-row textarea { flex: 1; min-width: 0; height: 40px; max-height: 110px; resize: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px; outline: 0; background: var(--card-2); color: var(--text); font: inherit; font-size: 15px; line-height: 1.35; }
.c-row textarea:focus { border-color: var(--green-line); }
.c-row textarea::-webkit-scrollbar { width: 0; }
.c-send { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--green); cursor: pointer; transition: opacity .15s; }
.c-send .gl { width: 26px; height: 26px; }
.c-send:disabled { opacity: .35; cursor: default; }
.c-hint { padding: 5px 4px 0; font-size: 12px; color: var(--faint); }
.c-hint:empty { display: none; }
.c-locked { padding: 10px 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
/* new idea form in the bottom sheet */
.form .lbl { margin: 2px 6px 7px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 12px; }
.tchip { --c: var(--green); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; background: var(--card); font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tchip.on { color: var(--c); border-color: color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.form textarea { display: block; width: 100%; min-height: 120px; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: var(--card); color: var(--text); font: inherit; font-size: 15px; line-height: 1.4; }
.form textarea:focus { border-color: var(--green-line); }
.counter { margin: 5px 6px 10px; text-align: right; font-size: 12px; color: var(--faint); }
.counter.bad { color: #ff7a7a; }

/* bottom tabs */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 8px calc(6px + var(--safe-bottom));
  background: rgba(10, 12, 13, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabs button { position: relative; min-width: 0; border: 0; background: none; padding: 10px 2px 4px; display: grid; justify-items: center; gap: 3px; color: #7d8682; cursor: pointer; font-size: 11px; font-weight: 700; transition: color .15s; }
.tabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.2px; }
@media (max-width: 430px) { .tabs button { font-size: 10px; } }
.tabs .gl { width: 25px; height: 25px; }
.tabs .gl.f, .tabs button.active .gl.o { display: none; }
.tabs button.active .gl.f { display: block; animation: navpop .45s var(--ease); }
@keyframes navpop { 0% { transform: scale(.76); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
.tabs button.active { color: #fff; }

/* bottom sheet: game account choice */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); animation: dim .3s ease; transition: opacity .24s ease; }
.closing .sheet-back { opacity: 0; }
.closing .sheet-body, .closing .csheet-body { transform: translateY(105%); }
.sheet-body { position: absolute; left: 0; right: 0; bottom: 0; max-height: 72vh; overflow-y: auto; padding: 8px 12px calc(14px + var(--safe-bottom)); background: var(--pop); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; animation: up .44s var(--sheet-ease); transition: transform .24s cubic-bezier(.4, 0, 1, 1); }
.sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); margin: 2px auto 12px; }
.sheet-title { font-size: 16px; font-weight: 800; padding: 0 6px 8px; }
.acc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 8px; border: 0; background: none; border-radius: 14px; text-align: left; cursor: pointer; }
.acc .head { --s: 40px; }
.acc .nm { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.acc svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.acc.on { background: var(--green-dim); }
.acc.on svg { visibility: visible; }
.acc.opt { min-height: 46px; padding: 10px 12px; }

.skel { border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes dim { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
.err { padding: 20px 16px; color: var(--muted); }
.err b { display: block; color: var(--text); margin-bottom: 4px; }
.err .btn { margin-top: 14px; }
/* screens come in from the side of the tab that was tapped (--dx), otherwise from slightly below */
.fade, .enter { animation: enter .42s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translate3d(var(--dx, 0px), var(--dy, 8px), 0); } }
.quiet .fade, .quiet .enter { animation: none; }
.view.leave > *, .npage.out { opacity: 0; pointer-events: none; transform: translate3d(calc(var(--dx, 0px) * -0.35), 0, 0); transition: opacity .12s ease-in, transform .12s ease-in; }
.view.leave.sub > .evtabs { opacity: 1; transform: none; }

@media (max-width: 374px) {
  .tl .r { grid-template-columns: 42px 28px 1fr auto; column-gap: 8px; }
  .tl .r::before { left: 75.5px; }
  .tl .nd { width: 28px; height: 28px; }
  .tl .nd .pic { width: 22px; height: 22px; }
  .row.ev { padding-left: 12px; }
  .row.ev .hit { gap: 10px; }
  .pill { padding-left: 9px; padding-right: 22px; font-size: 12px; }
  .pill::after { right: 9px; }
  .tl .nm { font-size: 13.5px; }
  .chip { width: 48px; }
  .play-col .vl { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand { animation: none; }
  .fade, .enter, .sheet-back, .sheet-body, .csheet-body, .menu-body, .tabs .gl, .bell .gl, .hero.staff::before, .hero.staff::after { animation: none; }
  .seg-pill, .fm-line, .view.leave > *, .npage.out, .tbody, .tnav b { transition: none; }
  .tbody.enter .pod, .tbody.enter .pod .step, .tbody.enter .trow { animation: none; }
}

/* moderation: the third sheet over the comments, reject button, reason, staff panel */
.msheet { z-index: 22; }

/* notification hours */
.win-row { gap: 8px; min-height: 50px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 700; }
.hgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 2px 2px 8px; }
.hchip { border: 1px solid var(--line); border-radius: 12px; padding: 11px 0; background: var(--card); color: var(--text); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.hchip.on { color: var(--green); border-color: var(--green-line); background: var(--green-dim); }
.hchip:disabled { opacity: .25; cursor: default; }
.win-presets { padding: 0 14px 12px; }
.wcard + .note { margin-bottom: 12px; }
.notify > .card.wcard { margin-bottom: 12px; }

/* leaderboard of tokens for ideas */
.msheet.tall .sheet-body { max-height: 90vh; }
/* the board keeps its height while months change; boards slide sideways inside without a sideways scrollbar */
.msheet.board .sheet-body { min-height: min(78vh, 700px); }
.sheet-body, .c-list { overflow-x: hidden; }
.tbody, .tnav b { transition: opacity .2s ease; }
.tbody.busy, .tnav b.busy { opacity: .35; pointer-events: none; }
.tbody.enter .pod { animation: pod-in .55s var(--ease) backwards; }
.tbody.enter .pod.pc { animation-delay: .04s; }
.tbody.enter .pod.pl { animation-delay: .11s; }
.tbody.enter .pod.pr { animation-delay: .16s; }
.tbody.enter .pod .step { animation: step-in .6s var(--ease) backwards; animation-delay: inherit; transform-origin: 50% 100%; }
.tbody.enter .trow { animation: row-in .45s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 22ms + 140ms); }
@keyframes pod-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes step-in { from { transform: scaleY(.35); } }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } }
.tseg { margin: 0 0 10px; }
.tnav { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 6px; }
.tnav b { font-size: 15px; font-weight: 800; }
.tnav button { width: 38px; height: 32px; border: 0; border-radius: 10px; background: var(--card-2); color: var(--text); font-size: 21px; line-height: 1; cursor: pointer; }
.tnav button:disabled { opacity: .25; cursor: default; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 14px 0 10px; }
.pod { --m: #d08a4e; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.pod.m1 { --m: var(--gold); }
.pod.m2 { --m: #cfd8e0; }
.pod .head { --s: 52px; border-radius: 16px; margin-bottom: 7px; box-shadow: 0 0 0 2.5px var(--m), 0 6px 18px rgba(0, 0, 0, .5); }
.pod.pc .head { --s: 66px; border-radius: 19px; box-shadow: 0 0 0 3px var(--m), 0 0 22px color-mix(in srgb, var(--m) 45%, transparent); }
.pod > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.pod > em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.pod .sum { margin-top: 3px; font-size: 14px; }
.pod .step { width: 100%; height: 34px; margin-top: 8px; display: grid; place-items: center; border-radius: 12px 12px 4px 4px; border-top: 2px solid var(--m); background: linear-gradient(180deg, color-mix(in srgb, var(--m) 26%, transparent), rgba(255, 255, 255, 0.02)); color: var(--m); font-size: 20px; font-weight: 900; }
.pod.pc .step { height: 56px; font-size: 26px; }
.pod.pr .step { height: 26px; font-size: 17px; }
.pod.none { visibility: hidden; }
.pod.me > b { color: var(--green); }
.sum { display: inline-flex; align-items: center; gap: 4px; flex: none; font-weight: 800; color: var(--gold); white-space: nowrap; }
.sum .pic { width: 18px; height: 18px; }
.tsum { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 210, 74, 0.07); font-size: 13px; }
.tsum > span:last-child { color: var(--muted); }
.trow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; }
.trow:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.trow .tn { width: 24px; flex: none; text-align: center; font-weight: 800; color: var(--muted); }
.trow .head { --s: 36px; border-radius: 11px; }
.trow .body { flex: 1; min-width: 0; }
.trow .t1 { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .t2 { font-size: 12px; color: var(--muted); }
.trow.me { background: var(--green-dim); box-shadow: inset 0 0 0 1px var(--green-line); }
.trow.pinned { position: sticky; bottom: calc(-14px - var(--safe-bottom)); margin-top: 8px; background: #15241e; }
.you { font-style: normal; font-size: 10.5px; font-weight: 800; color: #062016; background: var(--green); border-radius: 999px; padding: 1px 6px; vertical-align: 1px; }
.tempty { display: grid; justify-items: center; gap: 10px; padding: 30px 0 24px; color: var(--muted); }
.tempty .pic { width: 56px; height: 56px; opacity: .8; }
.tload { display: grid; gap: 8px; padding: 10px 0; }
.tload .skel { height: 52px; border-radius: 14px; }
@media (max-width: 400px) {
  .feed-bar { gap: 4px; padding: 0 10px 8px; }
  .fb-icon { width: 34px; height: 34px; }
  .feed-modes button { padding: 7px 6px 9px; font-size: 14px; }
}
@media (max-width: 340px) {
  .feed-modes button { padding: 7px 4px 9px; font-size: 13px; }
}
.btn.bad { background: var(--red); color: #1d0505; }
.rb.mod b { font-size: 11px; color: #ff7a7a; }
.rb .chk { display: grid; place-items: center; padding: 6px; filter: none; }
.rb .chk svg { width: 100%; height: 100%; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rb.ok b { font-size: 11px; color: var(--green); }
.m-idea { margin-bottom: 14px; font-size: 13.5px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.m-idea b { color: var(--text); }
.dseg { margin-bottom: 10px; }
.dev-idea { padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--card-2); border-left: 3px solid var(--c); }
.dev-idea + .dev-idea { margin-top: 8px; }
.dev-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--c); }
.dev-top .tp { color: var(--muted); font-weight: 700; }
.dev-top .id { margin-left: auto; color: var(--faint); }
.dev-text { margin-top: 6px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.dev-text.open { display: block; }
.dev-idea .mini { margin-top: 10px; }
.s-reason { margin-bottom: 9px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 90, 90, 0.1); color: #ffb0b0; font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.s-reason b { color: #ff7a7a; margin-right: 6px; }
.cm-acts button[data-cmod] { color: #ff7a7a; }
.mtabs { margin-bottom: 10px; }
.mlog { padding: 10px 12px; border-radius: 14px; background: var(--card-2); }
.mlog + .mlog { margin-top: 8px; }
.mlog-top { font-size: 14px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.mlog-top b { color: var(--text); }
.mlog-why { margin-top: 4px; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.madd { margin-top: 12px; }
.mrank .chipset { padding-bottom: 10px; }
.form textarea.m-why { min-height: 72px; margin-bottom: 12px; font-size: 14px; }
.tchip .rn { margin-right: 5px; font-size: 11px; font-weight: 800; color: var(--faint); }
.tchip.on .rn { color: inherit; opacity: 0.75; }
.tchip.r-owner { --c: #ff485c; }
.tchip.r-dev { --c: #b084ff; }
.tchip.r-head { --c: #ff8c42; }
.tchip.r-mod { --c: #5aa9ff; }
.madd .chipset { padding-bottom: 8px; }
.rk { font-weight: 800; color: #5aa9ff; }
.rk.r-owner { color: #ff485c; }
.rk.r-dev { color: #b084ff; }
.rk.r-head { color: #ff8c42; }
.btn.mban { margin-top: 12px; }
.mmods .head { --s: 40px; }

/* sharing an idea */
.share-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-opt { display: grid; justify-items: center; gap: 9px; padding: 16px 8px 14px; border: 0; border-radius: 16px; background: var(--card-2); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform .12s, background .15s, color .15s; }
.share-opt .gl { width: 28px; height: 28px; }
.share-opt:active { transform: scale(.97); }
.share-opt.done { color: var(--green); background: var(--green-dim); }
.share-url { margin: 12px 6px 2px; font-size: 12.5px; color: var(--faint); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-user-select: all; user-select: all; }
/* a visitor of a shared link: one idea, the way to the bot instead of the feed's tools */
.feed-bar.guest { justify-content: center; }
.g-open { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--green); color: #062016; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .12s; }
.g-open .gl { width: 17px; height: 17px; }
.g-open:active { transform: scale(.97); }
.tabs.guest button:not(.active) { opacity: .4; }
.guest-ask { display: grid; justify-items: center; gap: 10px; padding: 4px 6px 2px; text-align: center; }
.guest-ask .pic { width: 64px; height: 64px; }
.guest-ask p { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.c-bar .btn.c-guest { margin: 2px 0; }

/* new idea: section tiles in their colours, topics in one line, the text written right into a small idea card */
.sheet-title:empty { display: none; }
.sheet-body:has(.ideaf) { max-height: 92vh; }
.if-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 16px; }
.if-head .pic { flex: none; width: 46px; height: 46px; filter: drop-shadow(0 4px 14px rgba(255, 200, 90, 0.35)); }
.if-head b { font-size: 21px; font-weight: 800; letter-spacing: -0.2px; }
.if-view { animation: if-in .3s var(--ease); }
@keyframes if-in { from { opacity: 0; transform: translate3d(var(--dx, 0px), 0, 0); } }
.if-group { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.if-row, .if-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 14px 0 16px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .15s; -webkit-tap-highlight-color: transparent; }
.if-row + .if-row, .if-opt + .if-opt { border-top: 1px solid var(--line); }
.if-row:active, .if-opt:active { background: rgba(255, 255, 255, 0.04); }
.if-row { height: 48px; }
.if-row span { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.if-row b { min-width: 0; font-size: 14.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.if-row b.none { color: var(--faint); }
.if-chev { flex: none; width: 7px; height: 7px; margin: 0 2px 0 4px; border-top: 2px solid var(--faint); border-right: 2px solid var(--faint); transform: rotate(45deg); }
.if-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--card-2); }
.if-ico .gl { width: 22px; height: 22px; }
.if-btns { margin-top: 4px; }
.if-back { display: flex; align-items: center; gap: 10px; padding: 0 0 14px; }
.if-back button { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: var(--card); cursor: pointer; }
.if-back .if-chev { margin: 0 0 0 4px; border-color: var(--text); transform: rotate(-135deg); }
.if-back b { font-size: 19px; font-weight: 800; }
.if-opt { height: 50px; font-size: 15px; font-weight: 700; }
.if-opt span { flex: 1; min-width: 0; }
.if-opt { color: var(--muted); }
.if-opt.on { color: var(--text); }
.if-tick { flex: none; width: 20px; height: 20px; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .2s var(--ease); }
.if-tick svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.if-opt.on .if-tick { opacity: 1; transform: none; }
.if-card { --c: var(--muted); position: relative; display: grid; gap: 10px; margin-bottom: 12px; padding: 14px 14px 13px 16px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.07); background: var(--card); transition: border-color .25s; }
.if-card:focus-within { border-color: rgba(255, 255, 255, 0.16); }
.if-card .theme { transition: color .2s, background .2s; }
.if-card:not(.set) .theme { color: var(--faint); }
.ideaf .if-card textarea { min-height: 112px; max-height: 36vh; padding: 0; border: 0; border-radius: 0; background: none; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -0.1px; resize: none; }
.ideaf .if-card textarea::placeholder { color: var(--faint); }
.if-foot { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 26px; }
.if-foot .head { --s: 26px; border-radius: 8px; }
.if-foot b { min-width: 0; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.if-foot .counter { margin: 0 0 0 auto; font-variant-numeric: tabular-nums; }
.if-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); opacity: .35; transform: scaleX(0); transform-origin: left; transition: transform .2s ease, opacity .2s; }
.if-bar.ok { opacity: 1; }
.if-send { display: flex; align-items: center; justify-content: center; gap: 8px; }
.if-send .gl { width: 18px; height: 18px; }
.ideaf .if-send:disabled { opacity: 1; background: var(--card-2); color: var(--faint); cursor: default; }
