/* vaur.io additions on top of vaur.css (the prototype stylesheet). Uses its tokens. */

.inline-form { display: inline; margin: 0; }

.flash {
    margin: 16px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 14px;
}

/* Status pills (game status, moderation state, AI verdict) */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 12px; font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}
.pill--ok { border-color: var(--v0); color: var(--v0); }
.pill--warn { border-color: var(--star); color: var(--star); }
.pill--bad { border-color: #b4452f; color: #b4452f; }

/* Sloplight: front page spotlight */
.sloplight {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.sloplight .cover { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.sloplight__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sloplight__eyebrow .live-dot { margin: 0; }
.sloplight__title { margin: 8px 0 6px; }
.sloplight__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.sloplight__clock { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sloplight--empty { grid-template-columns: 1fr; text-align: center; padding: 48px 28px; }
@media (max-width: 760px) { .sloplight { grid-template-columns: 1fr; } }

/* Forms */
.field-error { font-size: 12.5px; color: #b4452f; }
.input-validation-error { border-color: #b4452f !important; }
.validation-summary-errors ul { margin: 0 0 12px; padding-left: 18px; color: #b4452f; font-size: 14px; }
.color-row { display: flex; gap: 12px; align-items: center; }
.color-row input[type=color] { width: 48px; height: 40px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.slug-preview { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Tables for studio / moderation */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.table tr.is-current td { background: var(--surface-2); }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.table-wrap { overflow-x: auto; }

.btn--sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn--danger { border-color: #b4452f; color: #b4452f; background: transparent; }

pre.ai-summary {
    white-space: pre-wrap;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    font-family: var(--mono);
    font-size: 12.5px;
    max-height: 26rem;
    overflow: auto;
}

.preview-banner {
    margin: 16px 0 0;
    padding: 10px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--ink-2);
}

.stack > * + * { margin-top: 14px; }

/* FI / EN switch in the header */
.lang-switch { display: inline-flex; gap: 2px; font-size: 12.5px; font-weight: 600; }
.lang-switch a { padding: 4px 6px; border-radius: var(--radius-sm); color: var(--muted); }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--surface-2); }

.checklist { margin: 0 0 12px; padding-left: 18px; }
.checklist li + li { margin-top: 4px; }

/* Moderator count badge and moderation sub-navigation */
.nav-badge {
    display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px;
    border-radius: 999px; background: var(--ink); color: var(--bg);
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.subnav { display: flex; gap: 4px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 8px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; color: var(--muted); }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.subnav + .page-hero { padding-top: 36px; }

/* Studio: keep the save button in reach on the long form */
.form-actions--sticky {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; align-items: center; justify-content: flex-end; gap: 12px;
    padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line);
}

/* Studio image uploads */
.cover--image { background-size: cover; background-position: center; background-color: var(--surface-2); }
.thumb { display: block; width: 160px; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.image-row { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.image-tile { display: flex; flex-direction: column; gap: 6px; }
.image-tile .thumb { width: 100%; }
.input--file { height: auto; padding: 8px; }
.shots a.cover { display: block; }

/* ---- Conversation drawer ------------------------------------------------- */
.thread-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 16px;
    border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--ink); color: var(--bg);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    box-shadow: 0 6px 24px rgb(0 0 0 / .18);
}
.thread-fab svg { width: 18px; height: 18px; }
.thread-fab .nav-badge { background: var(--star); color: #fff; }
body.has-drawer .thread-fab { display: none; }

.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
    width: min(420px, 100vw);
    display: flex; flex-direction: column;
    background: var(--surface); border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgb(0 0 0 / .15);
}
.drawer[hidden] { display: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__head .h3 { margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px; }
.drawer__form { padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer__form .textarea { min-height: 72px; }
.drawer__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
@media (min-width: 1100px) { body.has-drawer main { margin-right: 420px; } }

.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.msg--mod { align-self: flex-start; }
.msg--dev { align-self: flex-end; background: var(--surface-2); }
.msg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; }
.msg__name { font-weight: 600; }
.msg__decision { margin: 4px 0; }
.msg__text { margin: 0; white-space: pre-wrap; font-size: 14px; }

/* ---- Notices and danger panel -------------------------------------------- */
.notice { margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.notice .h3 { margin: 0 0 6px; }
.notice p { margin: 6px 0 0; }
.notice--bad { border-color: #b4452f; }
.panel--danger { border-color: color-mix(in srgb, #b4452f 45%, var(--line)); }

/* ---- Markdown ------------------------------------------------------------ */
.md > :first-child { margin-top: 0; }
.md h1, .md h2, .md h3, .md h4 { margin: 1.4em 0 .5em; line-height: 1.25; }
.md h1 { font-size: 26px; } .md h2 { font-size: 21px; } .md h3 { font-size: 17px; } .md h4 { font-size: 15px; }
.md p, .md ul, .md ol, .md table, .md pre, .md blockquote { margin: 0 0 1em; }
.md ul, .md ol { padding-left: 1.4em; }
.md li + li { margin-top: .25em; }
.md a { text-decoration: underline; text-underline-offset: 3px; }
.md code { font-family: var(--mono); font-size: .9em; padding: 1px 5px; border-radius: var(--radius-sm); background: var(--surface-2); overflow-wrap: anywhere; }
.md pre code { overflow-wrap: normal; }
.md pre, .md table { max-width: 100%; }
.md pre { padding: 12px 14px; overflow-x: auto; border-radius: var(--radius); background: var(--surface-2); }
.md pre code { padding: 0; background: none; }
.md blockquote { padding-left: 14px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.md table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.md th, .md td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.md th { font-weight: 600; }
.md img { max-width: 100%; border-radius: var(--radius); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.md input[type=checkbox] { margin-right: 6px; }

.md-tabs { display: flex; align-items: center; gap: 4px; }
.md-tabs__label { margin-right: auto; }
.md-tab { padding: 3px 10px; border: 1px solid transparent; border-radius: var(--radius); background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.md-tab[aria-selected="true"] { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.md-source { min-height: 220px; font-family: var(--mono); font-size: 13.5px; }
.md-preview { min-height: 220px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }

/* ---- Publishing guide ---------------------------------------------------- */
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; max-width: 900px; }
.guide-step { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 14px; }
.guide-step span:last-child { color: var(--muted); }
.guide-step__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; }
@media (max-width: 760px) { .guide-steps { grid-template-columns: minmax(0, 1fr); } }
.guide { max-width: 760px; }
.guide h2 { scroll-margin-top: calc(var(--header-h) + 16px); padding-top: 8px; border-top: 1px solid var(--line); }
.prompt-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.guide-callout { margin: 16px 0 0; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 14px; }
code.break { word-break: break-all; }

/* ---- Feedback: spinner, busy buttons, meters ------------------------------ */
.spinner {
    display: inline-block; flex: none;
    width: 14px; height: 14px;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: vaur-spin .7s linear infinite;
    vertical-align: -2px;
}
.pill .spinner { width: 10px; height: 10px; border-width: 1.5px; }
@keyframes vaur-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.btn.is-loading { cursor: progress; opacity: .85; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.is-loading:disabled { opacity: .85; cursor: progress; }
.btn--block { width: 100%; }

.meter { position: relative; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--ink); transition: width .25s ease; }

/* ---- Studio: readiness, counters, upload progress -------------------------- */
.readiness { margin-bottom: 14px; }
.readiness__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.readiness.is-ready .meter > span { background: var(--v0); }
.readiness__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.readiness__list li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.readiness__list li::before {
    content: ""; flex: none; width: 14px; height: 14px;
    border: 1.5px solid var(--line-strong); border-radius: 50%;
}
.readiness__list li[data-required] { color: var(--ink); font-weight: 600; }
.readiness__list li.is-done { color: var(--ink-2); font-weight: 400; }
.readiness__list li.is-done::before {
    content: "✓"; display: grid; place-items: center;
    border-color: var(--v0); background: var(--v0); color: #fff; font-size: 9px; font-weight: 700;
}
.readiness__legend { margin: 8px 0 0; }

.checklist-box { margin: 0 0 12px; }
.checklist-box summary { cursor: pointer; margin-bottom: 6px; }

[data-counter-for] { font-variant-numeric: tabular-nums; }
[data-counter-for].is-near { color: var(--star); }
.min-counter { margin-left: 6px; color: var(--star); font-weight: 600; }
.min-counter.is-ok { color: var(--v0); }

.upload-progress { flex: 1; display: flex; align-items: center; gap: 10px; max-width: 360px; margin-right: auto; }
.upload-progress .meter { flex: 1; height: 8px; }
.upload-progress[hidden] { display: none; }

/* ---- Moderation: container publishing panel -------------------------------- */
.azure .panel__head .pill { display: inline-flex; align-items: center; gap: 6px; }
.stepper { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 0; }
.stepper__item { position: relative; display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; padding-bottom: 12px; font-size: 13.5px; color: var(--muted); }
.stepper__item:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1.5px; background: var(--line); }
.stepper__dot {
    display: grid; place-items: center; width: 22px; height: 22px;
    border: 1.5px solid var(--line-strong); border-radius: 50%;
    background: var(--surface); font-size: 11px; font-weight: 700;
}
.stepper__label { align-self: center; }
.stepper__note { grid-column: 2; display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.stepper__item.is-done { color: var(--ink-2); }
.stepper__item.is-done .stepper__dot { border-color: var(--v0); background: var(--v0); color: #fff; }
.stepper__item.is-done:not(:last-child)::after { background: var(--v0); }
.stepper__item.is-current, .stepper__item.is-running { color: var(--ink); font-weight: 600; }
.stepper__item.is-current .stepper__dot { border-color: var(--ink); }
.stepper__item.is-running .stepper__dot { border-color: var(--star); color: var(--star); }
.stepper__item.is-failed { color: var(--ink); font-weight: 600; }
.stepper__item.is-failed .stepper__dot { border-color: #b4452f; color: #b4452f; }

.callout { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); font-size: 13px; }
.callout--warn { border-left-color: var(--star); }
.callout--bad { border-left-color: #b4452f; }

.azure__next { margin: 4px 0 12px; }
.azure__next .btn { width: 100%; }
.azure__links { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0 0 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }
.kv__mono { display: flex; align-items: center; gap: 4px; }
.kv__mono code {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-family: var(--mono); font-size: 12px;
}
.icon-btn--xs { width: 22px; height: 22px; flex: none; font-size: 12px; }
.azure__manage { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.azure__manage summary { cursor: pointer; }
.azure__manage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.azure__manage-actions .stack { flex-basis: 100%; }
.panel { min-width: 0; overflow-wrap: anywhere; }

.try-build { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }

/* ---- Uptime: stat tiles, Studio chart, moderation Running now ------------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 20px; }
.stat-row--compact { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.stat__label { font-size: 12px; color: var(--muted); }
.stat__value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat__hint { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty-note { padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }
.nav-badge--live { background: var(--v0); }

.uptime__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.uptime__now { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; }
.uptime__now .live-dot { margin: 0; background: var(--v0); }
.uptime__sleep { display: inline-block; width: 7px; height: 7px; border-radius: 1px; border: 1.5px solid var(--muted); }

.uptime-chart { margin: 0 0 14px; }
.uptime-chart__plot {
    position: relative;
    display: flex; align-items: flex-end; gap: 2px;
    height: 96px; padding-top: 16px;
    border-bottom: 1px solid var(--line-strong);
    background: linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 16px / 100% 100% no-repeat;
}
.uptime-chart__top { position: absolute; top: 0; left: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
/* The whole column is the hover target, wider and taller than the bar. */
.uptime-chart__day { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; outline: none; }
.uptime-chart__bar { display: block; width: 100%; max-width: 10px; margin: 0 auto; border-radius: 4px 4px 0 0; background: var(--v0); }
.uptime-chart__day:hover, .uptime-chart__day:focus-visible { background: var(--surface-2); }
.uptime-chart__day:hover::after, .uptime-chart__day:focus-visible::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    z-index: 5; padding: 4px 8px; border-radius: 6px;
    background: var(--ink); color: var(--bg, #fff);
    font-size: 12px; white-space: nowrap; pointer-events: none;
}
.uptime-chart__day:first-child:hover::after, .uptime-chart__day:first-child:focus-visible::after { left: 0; transform: none; }
.uptime-chart__day:last-child:hover::after, .uptime-chart__day:last-child:focus-visible::after { left: auto; right: 0; transform: none; }
.uptime-chart__axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; }

/* ---- Players / devices ---------------------------------------------------- */
.field__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick label { position: relative; cursor: pointer; font-weight: 400; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
    display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--surface); font-size: 14px; color: var(--ink-2);
}
.pick input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pick input:focus-visible + span { outline: 2px solid var(--v0); outline-offset: 2px; }
.tag--device { border-style: dashed; }
.device-hint { display: none; margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--star); border-radius: var(--radius); font-size: 14px; }
@media (pointer: coarse) { .device-hint--touch { display: block; } }
@media (pointer: fine) { .device-hint--mouse { display: block; } }

/* ---- Credits & hosting ---------------------------------------------------- */
.stack-tight { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stack-tight legend { margin-bottom: 6px; }
.hosting .note-list { margin-bottom: 10px; }
.hosting .meter { margin: 0 0 14px; }
.meter > span.is-high { background: var(--star); }
.hosting__form { padding-top: 14px; border-top: 1px solid var(--line); }
.hosting__move { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.hosting__move-row { display: flex; gap: 6px; flex-wrap: wrap; }
.hosting__move-row .input { flex: 1 1 70px; min-width: 70px; }
.community-toggle .hint { display: block; margin: 4px 0 0 24px; }
.community-toggle [data-community-confirm] { margin: 8px 0 0 24px; }
.credit-amount { text-align: right; font-weight: 600; }
.credit-amount.is-plus { color: var(--v0); }
.table th.num { text-align: right; }

/* ---- Header: username + credits, one button-shaped group with two links ---- */
.account-chip {
    display: inline-flex; align-items: stretch; height: 36px;
    border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
    font-size: 14px; font-weight: 600; white-space: nowrap;
}
.account-chip a { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; color: inherit; text-decoration: none; }
.account-chip a:hover, .account-chip a[aria-current="page"] { background: var(--surface-2); }
.account-chip__credits { padding-left: 0 !important; font-weight: 500; color: var(--muted) !important; font-variant-numeric: tabular-nums; }
.account-chip a:first-child:hover + .account-chip__credits { background: var(--surface-2); }
.account-chip__credits:hover { color: var(--ink) !important; }
.account-chip__credits.is-empty { color: #b4452f !important; }

/* ---- Sponsored showcase --------------------------------------------------- */
.showcase__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.showcase__head .h3 { margin: 0; }
.grid--showcase { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card__sponsor { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.callout--ok { border-left-color: var(--v0); }

/* ---- Moderation lists ----------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filter-bar .input { flex: 1 1 240px; min-width: 200px; }
.filter-bar .select { flex: 0 0 auto; width: auto; }
.players-now { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--v0); }
.players-now .live-dot { margin: 0; background: var(--v0); }
.danger-zone { border-color: color-mix(in srgb, #b4452f 45%, var(--line)); }
.players-now--on-cover { margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.45); color: #c6f6d5; }
.players-now--on-cover .live-dot { background: #4ade80; }

/* ---- Closed beta banner --------------------------------------------------- */
.beta-banner { border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; }
.beta-banner .container { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding-top: 9px; padding-bottom: 9px; }

/* ---- Thumbs up ------------------------------------------------------------ */
.like-btn { font-variant-numeric: tabular-nums; }
.like-btn[aria-pressed="true"] { border-color: var(--v0); color: var(--v0); background: color-mix(in srgb, var(--v0) 10%, transparent); }
.like-btn.is-nudged { animation: like-nudge 1.2s ease-in-out 3; border-color: var(--v0); }
@keyframes like-nudge { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .like-btn.is-nudged { animation: none; } }

/* ---- Guide FAQ ------------------------------------------------------------ */
/* Card list. The ".faq .faq__item" selectors outrank the older ".faq details" rules in vaur.css. */
.faq { display: grid; gap: 8px; max-width: 820px; }
.h2 + .faq { margin-top: 20px; }
.h2 + .table-wrap, .h2 + .table { margin-top: 12px; }
.faq .faq__item { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s ease; }
.faq .faq__item:first-child { border-top: 1px solid var(--line); }
.faq .faq__item:hover, .faq .faq__item[open] { border-color: var(--line-strong); }
.faq .faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 15px 16px 15px 18px; font-weight: 600; line-height: 1.4; border-radius: var(--radius);
}
.faq .faq__item summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.faq .faq__item summary::after {
    content: "+"; flex: 0 0 auto; display: grid; place-items: center;
    width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%;
    font-size: 17px; font-weight: 400; line-height: 1; color: var(--muted);
    transition: transform .2s ease, color .15s ease, border-color .15s ease;
}
.faq .faq__item:hover summary::after { color: var(--ink); border-color: var(--line-strong); }
.faq .faq__item[open] summary::after { content: "+"; transform: rotate(45deg); color: var(--ink); }
.faq .faq__item p { margin: 0; padding: 0 58px 16px 18px; color: var(--ink-2); max-width: none; }
@media (max-width: 640px) { .faq .faq__item p { padding-right: 18px; } }
@media (prefers-reduced-motion: reduce) { .faq .faq__item summary::after { transition: none; } }

/* ---- Library cards: tags wrap inside the card --------------------------------
   The meta row grew (players, thumbs up, phone): vibe on its own line, tags wrap below it,
   so nothing spills into the next card. */
.card { min-width: 0; }
.card__meta { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.card__meta .vibe { flex: 1 0 100%; }
.card__meta .tag { white-space: nowrap; }

/* ---- Studio: play button in the game header ------------------------------- */
.play-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.play-btn { gap: 8px; max-width: 100%; }
.play-btn__host { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; opacity: .7; }
.play-row__note { font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .play-btn__host { display: none; } }
