/* Each page's own pieces: player, queues, feeds, boards, shop, games, settings panels. */
/* Now playing: the one loud element on the page */
.now { overflow: visible; }
.now .where { color: var(--muted); font-size: .875rem; margin-bottom: 8px; }
.now .title { font-size: clamp(1.375rem, 3.2vw, 2rem); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.now .title a { text-decoration: none; }
.now .title a:hover { text-decoration: underline; }
.now .by { color: var(--muted); margin-top: 4px; }
.progress { margin: 14px 0 2px; padding: 8px 0; cursor: pointer; }
.progress .track { height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.progress:hover .track { height: 10px; margin: -1px 0; }
.progress[aria-disabled="true"] { cursor: default; }
.effects { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.effects > span { width: 4.5rem; flex: none; }
.btn.toggle[aria-pressed="true"] { border-color: var(--gold-fill); color: var(--gold); background: var(--sunken); }
.progress i { display: block; height: 100%; width: 0; background: var(--gold-fill); border-radius: 4px; transition: width .5s linear; }
.times { display: flex; justify-content: space-between; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.knobs { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 5ch auto; gap: 12px 12px; align-items: center; margin-top: 20px; }
.knobs input { width: 100%; accent-color: var(--gold-fill); }
.knobs output { font-variant-numeric: tabular-nums; text-align: right; }
.knobs .btn.quiet:hover { color: var(--ink); }

.addrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.addrow #mQuery { grid-column: 1 / -1; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.duo.wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.duo label { display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.queuehead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.queuehead h2 { font-size: 1.0625rem; font-weight: 700; }
ol.queue { list-style: none; margin: 0; padding: 0; }
ol.queue li {
  display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line);
}
ol.queue .n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
ol.queue .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.queue .t a { text-decoration: none; }
ol.queue .t a:hover { text-decoration: underline; }
ol.queue .t small { display: block; color: var(--muted); }
ol.queue .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 12px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; background: var(--sunken); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 50%; width: 28px; height: 28px; font-size: 1.125rem; line-height: 1; }
.chip button:hover { color: var(--danger); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 520px; }

.logrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.logrow:first-of-type { border-top: 0; padding-top: 0; }
.logrow .check { grid-column: 2; display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--muted); }
.logrow input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.toolbar select { width: auto; min-width: 240px; }
.event { display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; padding-top: 0; }
.event .bar { border-radius: 2px; background: var(--muted); }
.event .head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.event .head b { font-weight: 700; }
.event time, .event .who { color: var(--muted); font-size: .875rem; }
.event .body { overflow-wrap: anywhere; }
.event dl { margin: 6px 0 0; display: grid; gap: 4px; }
.event dt { font-size: .875rem; color: var(--muted); }
.event dd { margin: 0; overflow-wrap: anywhere; background: var(--sunken); border-radius: 6px; padding: 6px 10px; }

.console {
  background: var(--sunken); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; height: min(68vh, 720px); overflow-y: auto;
  font: 400 .8125rem/1.55 ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
}
.console div { white-space: pre-wrap; overflow-wrap: anywhere; }
.console .ts, .console .src { color: var(--muted); }
.console .WARNING { color: var(--gold); }
.console .ERROR, .console .CRITICAL { color: var(--danger); }
.toolbar label.check { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.toolbar input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.plist li:first-child { border-top: 0; padding-top: 0; }
.plist .meta { color: var(--muted); font-size: .875rem; }
.plist .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.plist .acts .btn { min-height: 36px; padding: 6px 12px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--sunken); color: var(--gold); border: 1px solid var(--gold-fill); margin-left: 6px; vertical-align: 1px; }
.row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.row3 label, .fields label { display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 16px; }
.fields .check { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 1rem; }
.fields input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
input[type="number"] { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; min-height: 42px; width: 100%; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-bottom: 24px; }
.stats b { display: block; font-size: 1.75rem; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--gold); }
.stats span { color: var(--muted); font-size: .875rem; }
ol.board { list-style: none; margin: 0; padding: 0; }
ol.board li { display: grid; grid-template-columns: 3ch 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
ol.board li:first-child { border-top: 0; }
ol.board img, ol.board .ph { width: 32px; height: 32px; border-radius: 50%; background: var(--sunken); }
ol.board .n { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
ol.board .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.board .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
ol.board li:nth-child(-n+3) .n { color: var(--gold); font-weight: 700; }
@media (max-width: 760px) { .row3, .duo, .duo.wide-right { grid-template-columns: minmax(0, 1fr); } .plist li { grid-template-columns: 1fr; } .plist .acts { justify-content: flex-start; } }

.drops { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) minmax(0, 7rem) minmax(0, 7rem) 4.5rem; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.drops .head { font-size: .875rem; color: var(--muted); }
.drops .gem { width: 14px; height: 18px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.drops .share { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; font-size: .875rem; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: -4px 0 20px; }
.checks label { display: flex; gap: 8px; align-items: center; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 8px 0 20px; }
legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
@media (max-width: 760px) { .drops { grid-template-columns: 1.5rem minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } .drops .share { display: none; } }

.feed { list-style: none; margin: 0; padding: 0; max-height: min(78vh, 900px); overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 4px; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed .ic { width: 28px; height: 28px; display: grid; place-items: center; font-size: 1rem; }
ul.mine .gem { display: inline-block; width: 12px; height: 17px; margin-left: 3px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.feed .gem { width: 14px; height: 20px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.feed .what { overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.4; }
.feed .what b { font-weight: 600; }
.feed .when { display: block; color: var(--muted); font-size: .8125rem; }
.feed .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed .up { color: var(--accent); }
.feed .down { color: var(--danger); }
.feed .even { color: var(--muted); }
.feed li.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: color-mix(in srgb, var(--gold-fill) 22%, transparent); } to { background: transparent; } }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); font-weight: 500; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.rail label.sound { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: .875rem; color: var(--muted); }
.sound input { width: 18px; height: 18px; accent-color: var(--accent); }
.soundbox { display: grid; gap: 6px; }
.soundbox input[type="range"] { margin: 0 8px; accent-color: var(--gold-fill); }
.soundbox input[type="range"]:disabled { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .feed li.fresh { animation: none; } }

label.stack { display: grid; gap: 6px; font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.fmtbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--sunken); }
.fmtbar button { min-width: 34px; height: 32px; border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: .9375rem; }
.fmtbar button:hover { background: var(--surface); }
.fmtbar .sep { width: 1px; background: var(--line); margin: 4px 2px; }
#sayText, .tpl textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 8px 8px; padding: 10px 12px; resize: vertical; font: inherit; color: inherit; }
.saycount { text-align: right; margin-top: 4px; font-variant-numeric: tabular-nums; }
.saycount.over { color: var(--danger); }
input[type="color"] { width: 100%; height: 42px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.dmsg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; background: #313338; color: #dbdee1; border-radius: 8px; padding: 14px 16px; font-family: "gg sans", "Noto Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.375; }
.dav { width: 40px; height: 40px; border-radius: 50%; background: #5865f2; overflow: hidden; }
.dav img { width: 40px; height: 40px; display: block; }
.dname { font-weight: 600; color: #f2f3f5; margin-bottom: 2px; }
.dtag { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; border-radius: 3px; padding: 1px 4px; vertical-align: 2px; }
.dtext { overflow-wrap: anywhere; min-height: 1.4em; }
.dtext h1, .dtext h2, .dtext h3 { margin: 6px 0 2px; color: #f2f3f5; line-height: 1.2; }
.dtext h1 { font-size: 24px; } .dtext h2 { font-size: 20px; } .dtext h3 { font-size: 16px; }
.dtext .sub { font-size: 12px; color: #949ba4; }
.dtext blockquote { margin: 2px 0; padding-left: 10px; border-left: 4px solid #4e5058; }
.dtext code { background: #2b2d31; border-radius: 4px; padding: 1px 4px; font-size: 85%; font-family: ui-monospace, Consolas, monospace; }
.dtext pre { background: #2b2d31; border: 1px solid #1e1f22; border-radius: 4px; padding: 8px; margin: 4px 0; white-space: pre-wrap; }
.dtext pre code { background: none; padding: 0; }
.dtext .spoil { background: #1e1f22; color: transparent; border-radius: 3px; cursor: pointer; }
.dtext .spoil.shown { background: #3f4147; color: inherit; }
.dtext a { color: #00a8fc; text-decoration: none; }
.dtext ul { margin: 2px 0; padding-left: 22px; }
.dtext .mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dembed { border-left: 4px solid #c9a227; background: #2b2d31; border-radius: 4px; padding: 8px 12px 12px; margin-top: 4px; max-width: 520px; }
.dembed .et { font-weight: 600; color: #f2f3f5; margin: 4px 0 6px; }
.dembed .eimg { display: block; max-width: 100%; max-height: 300px; border-radius: 4px; margin-top: 10px; }
.dembed .ef { font-size: 12px; color: #b5bac1; margin-top: 8px; }
.privacy { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 8px; }
.privacy li { line-height: 1.45; }
.sayediting { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; margin-bottom: 16px;
  border-radius: 8px; background: var(--sunken); border: 1px solid var(--line); border-left: 3px solid var(--gold-fill); }
#sayRecent .snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sayRecent li { grid-template-columns: minmax(0, 1fr) auto; }
.tplgroup { margin-bottom: 8px; }
.tpl { padding: 14px 0; border-top: 1px solid var(--line); }
/* Subtabs: a row of pills, one group of messages at a time. */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.subtabs button { position: relative; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: .9375rem; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.subtabs button:hover { color: var(--ink); border-color: var(--muted); }
.subtabs button[aria-selected="true"] { color: var(--ink); border-color: var(--gold-fill); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--gold-fill); }
.subtabs .n { color: var(--muted); font-weight: 500; font-size: .8125rem; margin-left: 4px; }
.panel .subtabs button { padding: 5px 11px; font-size: .875rem; }  /* smaller inside a panel, so a row fits */
.subtabs button.dirty::after { content: ""; position: absolute; top: 4px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-fill); }
/* Placeholders and the emoji button only show while you're editing that message. */
.tpl .chips.ph { display: none; }
.tpl:focus-within .chips.ph { display: flex; }
.tpl:first-of-type { border-top: 0; padding-top: 0; }
.tpl .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.tpl .top b { font-weight: 600; }
.tpl textarea { border-radius: 8px; min-height: 2.6em; }
.tpl.custom textarea { border-color: var(--gold-fill); }
.chips.ph { margin: 8px 0 0; gap: 6px; }
.chips.ph button { font: 500 .8125rem/1 ui-monospace, Consolas, monospace; border: 1px solid var(--line); background: var(--sunken); color: inherit; border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.chips.ph button:hover { border-color: var(--gold-fill); }
.tpl .sample { margin-top: 8px; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.tpl .sample b { color: var(--ink); }
.savebar { position: sticky; bottom: 0; display: flex; gap: 16px; align-items: center; padding: 14px 0; background: var(--bg); border-top: 1px solid var(--line); z-index: 2; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.preset { text-align: left; border: 1px solid var(--line); background: var(--sunken); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; }
.preset:hover { border-color: var(--gold-fill); }
.preset b { font-weight: 600; }
.preset span { color: var(--muted); font-size: .875rem; }
.preset.active { border-color: var(--gold-fill); box-shadow: inset 0 0 0 1px var(--gold-fill); }
.stpreview { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; background: #2b2d31; color: #dbdee1; font-size: .9375rem; }
.stpreview .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.stpreview b { color: #f2f3f5; }
.ug, .ag { border-top: 1px solid var(--line); }
.feed > .ug:first-child, .feed > li:first-child { border-top: 0; }
.ug > summary, .ag > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 14px; gap: 10px; align-items: center; padding: 10px 4px; }
.ug > summary::-webkit-details-marker, .ag > summary::-webkit-details-marker { display: none; }
.ug > summary::after, .ag > summary::after { content: "›"; color: var(--muted); transition: transform .2s; justify-self: end; }
.ug[open] > summary::after, .ag[open] > summary::after { transform: rotate(90deg); }
.ug > .inner { padding-left: 14px; border-left: 2px solid var(--line); margin: 0 0 8px 13px; }
.ag > summary { padding: 8px 4px; }
.ag > .inner { padding-left: 12px; }
.ug .av { width: 28px; height: 28px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; font-weight: 700; font-size: .8125rem; overflow: hidden; }
.ug .av img { width: 100%; height: 100%; }
.ug .count { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.feed .inner > li, .feed .inner > .row { list-style: none; }
.ug.fresh > summary, .feed li.fresh { animation: fresh 1.6s ease-out; }

.emojifield { display: grid; gap: 6px; }
.emojifield .lbl { font-size: .875rem; color: var(--muted); }
.emojibtn { justify-self: start; display: inline-flex; gap: 10px; align-items: center; }
.emo { width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; }
.stats .emo { width: 28px; height: 28px; vertical-align: -4px; }
.emojipop { position: fixed; z-index: 50; width: min(360px, calc(100vw - 32px)); max-height: min(420px, 70vh); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.ephead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.epgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; margin-bottom: 12px; }
.epgrid button { height: 44px; border: 1px solid transparent; border-radius: 8px; background: var(--sunken); cursor: pointer; font-size: 1.375rem; display: grid; place-items: center; }
.epgrid button:hover, .epgrid button.on { border-color: var(--gold-fill); }
.epgrid img { width: 28px; height: 28px; object-fit: contain; }
.epgrid .note { grid-column: 1 / -1; font-size: .8125rem; color: var(--muted); }
.eptext { display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.chips.ph button.emo-insert { font-family: inherit; }

.catchtable { display: grid; grid-template-columns: 2.2rem minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; align-items: center; margin-bottom: 8px; }
.catchtable .head { font-size: .875rem; color: var(--muted); }
.catchtable .em { font-size: 1.375rem; text-align: center; }
ol.board .sub { color: var(--muted); font-size: .875rem; font-weight: 400; }
@media (max-width: 760px) { .catchtable { grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } .catchtable .nm { grid-column: 2 / -1; } .catchtable .head:nth-child(2) { display: none; } }

.shoprow { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 8rem); gap: 8px 10px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.shoprow:first-child { border-top: 0; padding-top: 0; }
.shoprow input[data-f="emoji"] { text-align: center; padding-left: 4px; padding-right: 4px; }
.shoprow .what { grid-column: 2 / -1; color: var(--muted); font-size: .875rem; }
.shoprow .sale { grid-column: 2 / -1; display: flex; gap: 8px; align-items: center; font-size: .9375rem; }
.shoprow .sale input { width: 18px; height: 18px; accent-color: var(--accent); }
.shoprow .sale .why { color: var(--gold); font-size: .875rem; }
@media (max-width: 760px) { .shoprow { grid-template-columns: 3rem minmax(0, 1fr); } .shoprow input[data-f="price"] { grid-column: 2; } }
/* Playing from Your Page */
.daily-line .btn { margin-left: auto; }
.pond { display: grid; gap: 10px; padding: 14px; border-radius: 10px; background: var(--sunken); margin-top: 10px; }
.pondline { min-height: 1.5em; }
.pondline.bite { color: var(--gold); font-weight: 700; animation: bite .35s ease-in-out infinite alternate; }
@keyframes bite { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
.pondbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.reel { background: var(--gold-fill); border-color: var(--gold-fill); color: #241a02; }
.betrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.betrow label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9375rem; }
.betrow input { width: 8rem; }
.reels { display: flex; gap: 8px; margin-bottom: 12px; }
.reels span { width: 64px; height: 64px; display: grid; place-items: center; font-size: 2rem; border-radius: 10px;
  background: var(--sunken); border: 1px solid var(--line); }
.reels.spinning span { animation: reel .12s linear infinite; }
@keyframes reel { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
.gameout { min-height: 1.5em; margin-top: 12px; }
.gameout .up { color: var(--accent); font-weight: 700; } .gameout .down { color: var(--danger); font-weight: 700; }
.mefeed { max-height: min(70vh, 720px); }
/* Your Page: play panels on the left (two columns on wide screens), Recent Rupees down the right. */
.melayout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; align-items: start; }
.meplay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; align-items: start; }
@media (min-width: 1100px) {
  .melayout { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
  .meside { position: sticky; top: 24px; }
  .meside .mefeed { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
}
@media (min-width: 1400px) { .meplay { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* The player: DJs (or admins) control playback; others watch, and add songs if the queue is open. */
body[data-dj="no"] .dj-only, body[data-add="no"] .add-only { display: none !important; }
.nodj-note { display: none; margin-top: 12px; }
body[data-dj="no"] .nodj-note { display: block; }
body[data-dj="no"] .progress { cursor: default; }
/* Gold edge, like the stat boxes: the player, quiz and trivia start/live panels, and Your Page games. */
.goldedge, #meGamePanel { position: relative; }
.goldedge::before, #meGamePanel::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-fill), transparent); }
@media (prefers-reduced-motion: reduce) { .pondline.bite, .reels.spinning span { animation: none; } }
/* Settings > Sound effects */
.fxlist li { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.fxlist li.fxextra { grid-template-columns: minmax(0, 1fr); }
.fxplay { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--sunken); color: var(--accent);
  cursor: pointer; font-size: .875rem; display: grid; place-items: center; transition: border-color .15s, transform .12s; }
.fxplay:hover { border-color: var(--gold-fill); }
.fxplay:active { transform: scale(.92); }
@media (max-width: 760px) { .fxlist li { grid-template-columns: auto minmax(0, 1fr); } }
.me-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.me-head img { width: 56px; height: 56px; border-radius: 50%; background: var(--sunken); }
.me-head h1 { margin: 0; }
.daily-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--sunken); margin-bottom: 16px; }
.daily-line b { color: var(--gold); }
.meter { height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; margin: 6px 0 4px; }
.meter i { display: block; height: 100%; background: var(--gold-fill); border-radius: 99px; transition: width .4s; }
ul.mine { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
ul.mine li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); }
ul.mine li:last-child { border-bottom: 0; }
ul.mine .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.mine .what small { color: var(--muted); margin-left: 6px; }
ul.mine .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
ul.mine .amt.up { color: var(--accent); } ul.mine .amt.down { color: var(--muted); }
#viewAsBox.on select { border-color: var(--gold-fill); box-shadow: 0 0 0 1px var(--gold-fill); }
.who-chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; min-width: 0; }
.who-chip img { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--sunken); }
.who-chip .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 600; }
.who-chip .rl { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.btn.discord { background: #5865F2; border-color: #5865F2; color: #fff; justify-content: center; text-decoration: none; text-align: center; }
.btn.discord:hover { background: #4752c4; }
.login { max-width: 360px; margin: 12vh auto; padding: 0 16px; display: grid; gap: 12px; }
.login h1 { font: 600 1.5rem/1.2 var(--display); letter-spacing: .04em; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px;
  max-width: min(92vw, 560px); opacity: 0; pointer-events: none; transition: opacity .2s;
}
#toast.show { opacity: 1; }
#toast.error { background: var(--danger); color: #fff; }

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail, main { min-width: 0; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; gap: 12px;
    position: static; height: auto; overflow: visible; }
  nav { display: flex; overflow-x: auto; gap: 4px; }
  nav button { white-space: nowrap; padding: 10px 12px; }
  .nav-ind { border-left: 0; border-bottom: 3px solid var(--gold-fill); }
  nav button.sub { padding-left: 12px; }
  nav button.sub::before, nav button.sub::after { display: none; }
  .navhead { padding: 10px 2px 0 10px; align-self: center; font-size: .6875rem; white-space: nowrap; border-left: 1px solid var(--line); }
  .navhead:first-of-type { border-left: 0; padding-left: 0; padding-top: 10px; }
  .rail > nav { flex: none; overflow-y: visible; padding-bottom: 0; }
  .rail-foot { gap: 12px; padding-top: 12px; }
  .addrow, .logrow { grid-template-columns: minmax(0, 1fr); }
  .addrow #mQuery { grid-column: auto; }
  .logrow .check { grid-column: 1; }
  ol.queue li { grid-template-columns: 3ch minmax(0, 1fr) auto; }
  ol.queue .d { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
