/*
 * Tweak.gg theme, design B "Polished modern" (Nov 2026).
 * Loaded after every other stylesheet (see layout.vm), so it restyles the existing markup without changing it.
 *
 * Idea: the Commands.gg layout, made calm and crisp. Warm neutral page, white surfaces with hairline borders
 * (no heavy shadows), ink carries the brand (nav, hero panel, footer), yellow is a deliberate accent: the main
 * call to action per block, highlights, active states and focus halos. Yellow is never used as text on light.
 *
 * Contrast (WCAG 2.x):  text #1c1a17 on #fff 17.4, on bg 15.8 | text-2 #4f4b44 on #fff 8.7, on bg 7.9
 *                       text-3 #6b665d on #fff 5.7, on bg 5.2 | ink on yellow 11.2 | yellow on ink 11.2
 *                       on-dark #f5f3ee on ink 16.6 | on-dark-2 #b9b4aa on ink 8.9 | arg #5c4300 on #ffe8a3 7.7
 */
/* Fonts are loaded with a <link> in layout.vm (Inter + Plus Jakarta Sans). */

:root {
    --tw-yellow: #ffbf00;
    --tw-yellow-hover: #ffcc33;
    --tw-yellow-press: #f0b400;
    --tw-yellow-tint: #fff7dc;
    --tw-yellow-tint-2: #ffe8a3;
    --tw-ink: #141414;
    --tw-ink-2: #1f1f1f;
    --tw-ink-3: #2f2f2f;
    --tw-on-dark: #f5f3ee;
    --tw-on-dark-2: #b9b4aa;
    --tw-bg: #f6f4ef;
    --tw-surface: #ffffff;
    --tw-surface-2: #faf8f4;
    --tw-tint: #f1eee6;
    --tw-tint-hover: #e8e3d8;
    --tw-border: #e6e1d7;
    --tw-border-strong: #d3cdc0;
    --tw-input-border: #948d80;
    --tw-text: #1c1a17;
    --tw-text-2: #4f4b44;
    --tw-text-3: #6b665d;
    --tw-arg-text: #5c4300;
    --tw-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --tw-font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tw-font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono', Menlo, Consolas, monospace;
    --tw-radius-sm: 8px;
    --tw-radius: 12px;
    --tw-radius-lg: 16px;
    --tw-ring: 0 0 0 2px #fff, 0 0 0 4px var(--tw-ink);
    --tw-ring-dark: 0 0 0 2px var(--tw-ink), 0 0 0 4px var(--tw-yellow);
    --tw-lift: 0 1px 2px rgba(20, 20, 20, 0.04), 0 8px 24px rgba(20, 20, 20, 0.06);
}

/* ================================================================= Base */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--tw-font); font-size: 16px; line-height: 1.6; color: var(--tw-text);
    background-color: var(--tw-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    /* Footer sits at the end of the page instead of being pinned with a fixed height */
    display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 0;
}
body > .container { flex: 1 0 auto; padding-bottom: 48px; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 { font-family: var(--tw-font-display); color: var(--tw-ink); letter-spacing: -0.015em; }
p { color: inherit; }
strong, b { font-weight: 700; }
hr { border-top: 1px solid var(--tw-border); margin: 20px 0; }
code, kbd, pre, samp { font-family: var(--tw-font-mono); }
.text-muted { color: var(--tw-text-3) !important; }
::selection { background: var(--tw-yellow); color: var(--tw-ink); }

/* Links: ink text with a yellow underline (the brand highlighter). Yellow never carries the text itself. */
a { color: var(--tw-ink); text-decoration: underline; text-decoration-color: var(--tw-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color 0.15s ease, background-color 0.15s ease, text-decoration-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
a:hover { color: var(--tw-ink); text-decoration-color: var(--tw-ink); }
.btn-link, .text-primary { color: var(--tw-ink) !important; }

/* Focus: a crisp ink ring on light surfaces, yellow on dark ones. Only for keyboard focus. */
a:focus, button:focus, .btn:focus, .btn.focus { outline: none; box-shadow: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--tw-ring); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ================================================================= Buttons */
.btn {
    font-family: var(--tw-font); font-weight: 600; font-size: 14px; line-height: 20px; letter-spacing: 0;
    text-transform: none; text-decoration: none; padding: 9px 16px; border: 1px solid transparent; border-radius: var(--tw-radius-sm);
    box-shadow: none; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-sm { font-size: 13px; line-height: 18px; padding: 6px 12px; border-radius: 7px; }
.btn:active, .btn.active { box-shadow: none; }

/* Default (.btn-primary is the site's everyday button): white, hairline border, ink text */
.btn-primary, .btn-primary.disabled, .btn-primary:disabled {
    background-color: var(--tw-surface); border-color: var(--tw-border-strong); color: var(--tw-ink);
}
.btn-primary:hover { background-color: var(--tw-surface-2); border-color: var(--tw-ink); color: var(--tw-ink); }
.btn-primary:focus, .btn-primary.focus { background-color: var(--tw-surface); border-color: var(--tw-border-strong); color: var(--tw-ink); box-shadow: none; }
.btn-primary:focus-visible { box-shadow: var(--tw-ring); }
.btn-primary:not([disabled]):not(.disabled):active, .btn-primary:not([disabled]):not(.disabled).active,
.show > .btn-primary.dropdown-toggle { background-color: var(--tw-tint); border-color: var(--tw-ink); color: var(--tw-ink); box-shadow: none; }

/* The call to action of a block: yellow surface, ink text */
.btn-success, .btn-success:disabled, .btn-warning {
    background-color: var(--tw-yellow); border-color: var(--tw-yellow); color: var(--tw-ink);
}
.btn-success:hover, .btn-warning:hover { background-color: var(--tw-yellow-hover); border-color: var(--tw-yellow-hover); color: var(--tw-ink); }
.btn-success:focus, .btn-success.focus { background-color: var(--tw-yellow); border-color: var(--tw-yellow); color: var(--tw-ink); box-shadow: none; }
.btn-success:focus-visible { box-shadow: var(--tw-ring); }
.btn-success:not([disabled]):not(.disabled):active { background-color: var(--tw-yellow-press); border-color: var(--tw-yellow-press); color: var(--tw-ink); }

.btn-outline-primary { color: var(--tw-ink); border-color: var(--tw-border-strong); background: var(--tw-surface); }
.btn-outline-primary:hover, .btn-outline-primary:not([disabled]):not(.disabled):active { background-color: var(--tw-surface-2); border-color: var(--tw-ink); color: var(--tw-ink); }
.btn-dark, .btn-secondary { background-color: var(--tw-ink); border-color: var(--tw-ink); color: #fff; }
.btn-dark:hover, .btn-secondary:hover { background-color: var(--tw-ink-3); border-color: var(--tw-ink-3); color: #fff; }

/* ================================================================= Bootstrap leftovers in Tweak colours */
.bg-primary, a.bg-primary:hover, a.bg-primary:focus { background-color: var(--tw-yellow) !important; color: var(--tw-ink); }
.border-primary { border-color: var(--tw-yellow) !important; }
.alert-primary { background-color: var(--tw-yellow-tint); border-color: var(--tw-yellow-tint-2); color: var(--tw-arg-text); }
.page-link { color: var(--tw-ink); border-color: var(--tw-border); }
.page-link:hover { color: var(--tw-ink); background: var(--tw-tint); }
.page-item.active .page-link { background-color: var(--tw-ink); border-color: var(--tw-ink); color: #fff; }
.list-group-item.active, .nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--tw-ink); border-color: var(--tw-ink); color: #fff; }
.nav-tabs .nav-link.active, .nav-tabs .nav-link.active:focus, .nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus:hover { box-shadow: inset 0 -2px 0 var(--tw-yellow); color: var(--tw-ink); }
.progress-bar { background-color: var(--tw-yellow); color: var(--tw-ink); }
.thead-inverse th { background-color: var(--tw-ink); color: var(--tw-on-dark); }
.custom-control-input:checked ~ .custom-control-indicator { background-color: var(--tw-ink); }

/* Dropdowns */
.dropdown-menu { border: 1px solid var(--tw-border); border-radius: var(--tw-radius); padding: 6px; box-shadow: 0 12px 32px rgba(20, 20, 20, 0.12); font-size: 14px; }
.dropdown-item { border-radius: 6px; padding: 7px 12px; color: var(--tw-text); text-decoration: none; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--tw-tint); color: var(--tw-ink); }
.dropdown-item.active, .dropdown-item:active { background: var(--tw-ink); color: #fff; }

/* Forms */
.form-control, select.form-control, textarea.form-control {
    font-family: var(--tw-font); font-size: 15px; color: var(--tw-text); background-color: var(--tw-surface);
    border: 1px solid var(--tw-input-border); border-radius: 10px; padding: 10px 14px; box-shadow: none;
}
.form-control::placeholder { color: var(--tw-text-3); opacity: 1; }
.form-control:focus, select:focus, textarea:focus, input.form-control:focus {
    border-color: var(--tw-ink); box-shadow: 0 0 0 4px rgba(255, 191, 0, 0.45); background-color: var(--tw-surface); color: var(--tw-text);
}

/* Badges */
.badge { font-family: var(--tw-font); font-weight: 600; border-radius: 6px; letter-spacing: 0; }
/* Keyboard keys in instructions (~, F2, ENTER): keycaps */
.badge-success, .badge-success.badge-command {
    display: inline-block; background: var(--tw-surface); color: var(--tw-ink); border: 1px solid var(--tw-border-strong);
    border-radius: 6px; font-family: var(--tw-font-mono); font-size: 0.82em; font-weight: 600;
    padding: 2px 7px; margin: 0 1px; vertical-align: 1px; box-shadow: none; line-height: 1.4;
}
/* Arguments inside a command's syntax: soft yellow chip */
.badge-primary { background-color: var(--tw-yellow-tint-2); color: var(--tw-arg-text); font-family: var(--tw-font); font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; vertical-align: 1px; }
.badge-primary[href]:hover, .badge-primary[href]:focus { background-color: var(--tw-yellow); color: var(--tw-ink); }
/* A command or code on its own (card view): code chip */
.badge-dark, .badge-dark.badge-command {
    display: inline-block; background: var(--tw-tint); color: var(--tw-ink); border: 1px solid var(--tw-border);
    font-family: var(--tw-font-mono); font-size: 13px; font-weight: 500; line-height: 1.5; padding: 5px 10px; border-radius: var(--tw-radius-sm);
    text-align: left;
}

/* ================================================================= Top navigation (logo centred, games below) */
.navbar.bg-brand, .bg-brand { background-color: var(--tw-ink) !important; }
.navbar.bg-brand { padding: 0; margin-bottom: 24px !important; border-bottom: 1px solid #000; }
.navbar.bg-brand .navbar-flex { padding-top: 0; padding-bottom: 0; }
.navbar-brand-button-container { display: flex; align-items: center; justify-content: center; min-height: 80px; position: relative; padding-top: 6px; }
.navbar.bg-brand .brand-centered { position: static; width: auto; height: auto; justify-content: center; }
.navbar.bg-brand .navbar-brand { padding: 6px 8px; margin: 0; display: flex; align-items: center; border-radius: 10px; text-decoration: none; }
.navbar.bg-brand .navbar-brand:focus-visible { box-shadow: 0 0 0 2px var(--tw-yellow); }
.navbar.bg-brand .brand-image { max-height: 44px; width: auto; display: block; }

.navbar.bg-brand .navbar-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px 2px; padding: 2px 0 16px; width: 100%; }
.navbar.bg-brand .navbar-nav .nav-link {
    font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; text-decoration: none;
    padding: 6px 11px !important; border-radius: 8px; color: var(--tw-on-dark-2);
}
.navbar.bg-brand .navbar-nav .nav-link:hover { color: #fff; background-color: rgba(255, 255, 255, 0.08); }
.navbar.bg-brand .navbar-nav .nav-link:focus-visible { color: #fff; box-shadow: 0 0 0 2px var(--tw-yellow); }
.navbar.bg-brand .navbar-nav .active > .nav-link,
.navbar.bg-brand .navbar-nav .active > .nav-link:hover { color: var(--tw-yellow); background-color: rgba(255, 191, 0, 0.12); font-weight: 600; }
.navbar.bg-brand .dropdown-menu { background: var(--tw-ink-2); border-color: var(--tw-ink-3); }
.navbar.bg-brand .dropdown-item { color: var(--tw-on-dark); }
.navbar.bg-brand .dropdown-item:hover { background: var(--tw-ink-3); color: #fff; }

.navbar.bg-brand .navbar-toggler {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin-top: 3px;
    width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--tw-ink-3); border-radius: 10px; background: transparent; box-shadow: none;
}
.navbar.bg-brand .navbar-toggler:hover { background: rgba(255, 255, 255, 0.06); border-color: #444; }
.navbar.bg-brand .navbar-toggler:focus { outline: none; }
.navbar.bg-brand .navbar-toggler:focus-visible { box-shadow: 0 0 0 2px var(--tw-yellow); }
.navbar.bg-brand .navbar-toggler-icon { width: 22px; height: 22px; }

@media (min-width: 992px) {
    .navbar.bg-brand .navbar-toggler { display: none; }
    .navbar.bg-brand .navbar-collapse { display: flex !important; }
}
@media (max-width: 991px) {
    .navbar-brand-button-container { min-height: 68px; padding-top: 0; }
    .navbar.bg-brand .brand-image { max-height: 38px; }
    .navbar.bg-brand .navbar-collapse.show, .navbar.bg-brand .navbar-collapse.collapsing { display: block; }
    .navbar.bg-brand .navbar-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 8px 0 16px; border-top: 1px solid var(--tw-ink-3); }
    .navbar.bg-brand .navbar-nav .nav-link { padding: 10px 12px !important; white-space: normal; }
}

/* ================================================================= Footer */
.footer {
    position: static; height: auto; flex-shrink: 0; margin-top: auto;
    background-color: var(--tw-ink); color: var(--tw-on-dark-2); font-size: 14px; padding: 28px 0;
}
.footer .container > .vertical-center { position: static; top: auto; transform: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer .vertical-center { position: static; top: auto; transform: none; }
.footer .float-left, .footer .float-right { float: none !important; }
.footer p { margin: 0 !important; }
.footer .float-right p { display: flex; flex-wrap: wrap; gap: 6px; }
.footer a:not(.btn) { color: var(--tw-on-dark); text-decoration-color: var(--tw-yellow); }
.footer a:not(.btn):hover { color: #fff; text-decoration-color: #fff; }
.footer a:not(.btn):focus-visible { box-shadow: 0 0 0 2px var(--tw-yellow); }
.footer .btn-primary { background: transparent; border: 1px solid #3d3b37; color: var(--tw-on-dark); font-weight: 500; }
.footer .btn-primary:hover { background: var(--tw-ink-3); border-color: #5a5750; color: #fff; }
.footer .btn-primary:focus { background: transparent; border-color: #3d3b37; color: var(--tw-on-dark); }
.footer .btn-primary:focus-visible { box-shadow: 0 0 0 2px var(--tw-yellow); }
@media (max-width: 767px) {
    .footer { padding: 24px 0 28px; }
    .footer .container > .vertical-center { flex-direction: column; align-items: flex-start; }
}

/* ================================================================= Breadcrumb */
.breadcrumb {
    background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 16px;
    font-size: 14px; color: var(--tw-text-3);
}
.breadcrumb-item a { color: var(--tw-text-2); text-decoration: none; border-radius: 4px; }
.breadcrumb-item a:hover { color: var(--tw-ink); text-decoration: underline; text-decoration-color: var(--tw-yellow); }
.breadcrumb-item.active { color: var(--tw-text); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before { content: '\203A'; color: var(--tw-border-strong); font-size: 16px; line-height: 1; padding: 0 10px; vertical-align: -1px; }

/* ================================================================= Cards (game pages) */
.card { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); box-shadow: none; }
.card-body { padding: 32px; }
.card-body.pt-2 { padding-top: 24px !important; }
h1.card-title { font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 4px; }
.card-body > p { color: var(--tw-text-2); font-size: 16px; line-height: 1.65; }
.card-body > p strong { color: var(--tw-text); }
.card-body > hr { margin: 22px 0; }
@media (max-width: 767px) {
    .card-body { padding: 20px; }
    .card-body.pt-2 { padding-top: 16px !important; }
    h1.card-title { font-size: 26px; }
}

/* Related pages row under the intro: quiet chips, so the yellow CTA above stays the one thing to press */
.card-body > a.btn-primary.btn-sm.mb-1 { margin: 0 4px 8px 0 !important; font-weight: 500; color: var(--tw-text); }
.card-body > a.btn-primary.btn-sm.mb-1:hover { color: var(--tw-ink); }

/* "Sort by category" on code lists: a dark split button */
.card-body > .float-right .btn-group .btn-primary { background: var(--tw-ink); border-color: var(--tw-ink); color: #fff; }
.card-body > .float-right .btn-group .btn-primary:hover { background: var(--tw-ink-3); border-color: var(--tw-ink-3); }
.card-body > .float-right .btn-group > .btn-group > .btn { border-left: 1px solid #3a3a3a; }

/* ================================================================= Command / code lists */
/* Controls row: segmented view toggle + search */
.view-toggle { background: var(--tw-tint); border-radius: 10px; padding: 4px; gap: 4px; box-shadow: none; }
.view-toggle .btn, .view-toggle .btn-primary {
    background: transparent; border: 0; border-radius: 7px !important; color: var(--tw-text-2); font-weight: 600; font-size: 13px; padding: 8px 10px; margin: 0 !important;
}
.view-toggle .btn:hover { background: rgba(255, 255, 255, 0.7); color: var(--tw-ink); }
.view-toggle .btn.active, .view-toggle .btn-primary:not([disabled]):not(.disabled).active { background: var(--tw-ink); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.tcv-search, input.form-control.tcv-search {
    height: 48px !important; font-size: 16px; padding-left: 46px; border-radius: 10px; border: 1px solid var(--tw-input-border);
    background: var(--tw-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b665d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center;
}
.tcv-search:focus { background-color: var(--tw-surface); }

/* Table */
.table { font-size: 15px; color: var(--tw-text); margin-top: 12px; margin-bottom: 0; border-collapse: separate; border-spacing: 0; }
.table thead th {
    background: var(--tw-surface-2); color: var(--tw-text-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    border-top: 1px solid var(--tw-border); border-bottom: 1px solid var(--tw-border); padding: 12px 16px; white-space: nowrap;
}
.table thead th:first-child { border-left: 1px solid var(--tw-border); border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.table thead th:last-child { border-right: 1px solid var(--tw-border); border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.table td { padding: 14px 16px; border-top: 0; border-bottom: 1px solid var(--tw-border); line-height: 1.55; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child a { color: var(--tw-ink); font-weight: 600; text-decoration: none; }
.table td:first-child a:hover, .table-hover tbody tr:hover td:first-child a { text-decoration: underline; text-decoration-color: var(--tw-yellow); }
.table td + td.ts { font-family: var(--tw-font-mono); font-size: 13.5px; color: var(--tw-text); }
.table td + td + td { color: var(--tw-text-2); font-size: 14.5px; }
.table td + td + td a { color: var(--tw-ink); }
.table-hover tbody tr { transition: background-color 0.12s ease; }
.table-hover tbody tr:hover { background-color: var(--tw-yellow-tint); }

/* Card view */
.card-view { column-gap: 16px; margin-top: 16px; }
.card-view .card { border-radius: var(--tw-radius); break-inside: avoid; }
.card-view .card-body { padding: 20px; }
.card-view h4.card-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card-view h4.card-title a { color: var(--tw-ink); text-decoration: none; }
.card-view h4.card-title a:hover { text-decoration: underline; text-decoration-color: var(--tw-yellow); }
.card-view .card-subtitle { font-size: 14.5px; line-height: 1.55; }
.card-view .table { font-size: 14px; margin-top: 8px; }
.card-view .table td { padding: 8px 10px; }
.card-link { font-weight: 600; font-size: 14px; }
.btn-pagination { margin-top: 16px; }

/* ================================================================= Homepage */
/* Rebrand strip */
.tweak-notice {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 8px; padding: 12px 12px 12px 16px;
    background: var(--tw-ink); color: var(--tw-on-dark); border-radius: var(--tw-radius); text-decoration: none; font-size: 15px;
}
.tweak-notice:hover { color: var(--tw-on-dark); background: var(--tw-ink-2); text-decoration: none; }
.tweak-notice:focus-visible { box-shadow: var(--tw-ring); border-radius: var(--tw-radius); }
.tweak-notice__icon { flex: 0 0 auto; width: 28px; height: 28px; }
.tweak-notice__text { flex: 1 1 260px; line-height: 1.45; color: var(--tw-on-dark-2); }
.tweak-notice__text strong { color: var(--tw-yellow); font-weight: 700; }
.tweak-notice__cta { flex: 0 0 auto; padding: 7px 14px; background: var(--tw-yellow); color: var(--tw-ink); font-weight: 600; font-size: 14px; border-radius: var(--tw-radius-sm); transition: background-color 0.15s ease; }
.tweak-notice:hover .tweak-notice__cta { background: var(--tw-yellow-hover); }

/* Hero: no card (as before the Nov 2022 takeover work) */
.rd-header { background: transparent; box-shadow: none; border-radius: 0; padding: 40px 0 48px; margin-bottom: 0; align-items: center; }
.rd-header__main { padding-right: 56px; }
.rd-header__pretitle {
    display: inline-flex; align-items: center; font-family: var(--tw-font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.14em;
    color: var(--tw-on-dark); background: var(--tw-ink); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px;
}
.rd-header__pretitle span { color: var(--tw-yellow); }
.rd-header__title {
    font-family: var(--tw-font-display); font-size: 54px; font-weight: 800; line-height: 1.08; letter-spacing: -0.022em;
    color: var(--tw-ink); text-shadow: none; margin: 0 0 20px;
}
.rd-header__title .writing-animation {
    color: var(--tw-ink); padding: 0 4px; margin: 0 -2px;
    background: linear-gradient(transparent 58%, var(--tw-yellow) 58%, var(--tw-yellow) 90%, transparent 90%);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.rd-header__title .writing-animation .Typewriter__cursor { color: var(--tw-ink); font-weight: 300; margin-right: 4px; }
.rd-header__text { font-size: 18px; line-height: 1.6; color: var(--tw-text-2); max-width: 640px; margin: 0; }
.rd-header__side {
    flex: 0 0 340px; background-color: var(--tw-ink); color: var(--tw-on-dark); border: 0; border-radius: 20px; padding: 32px 28px;
    background-image: radial-gradient(120% 90% at 100% 0%, rgba(255, 191, 0, 0.16) 0%, rgba(255, 191, 0, 0) 55%);
    box-shadow: none; text-align: center;
}
.rd-header__icon-container img { width: 56px; height: 56px; }
.rd-header__side-text { color: var(--tw-on-dark-2); font-size: 14px; line-height: 1.5; width: 220px; margin: 14px auto 0; font-weight: 500; }
.rd-header__side-text em { color: var(--tw-yellow); font-style: normal; font-weight: 700; }
.rd-header__stat-list { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); grid-gap: 12px; }
.rd-header__stat-number { font-family: var(--tw-font-display); color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.rd-header__stat-text { color: var(--tw-on-dark-2); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; margin-top: 6px; }
.tweak-header-icon { width: 56px; height: auto; }
@media (max-width: 1199px) { .rd-header__title { font-size: 46px; } }
@media (max-width: 992px) {
    .rd-header { padding: 28px 0 32px; align-items: stretch; }
    .rd-header__main { padding-right: 0; margin-bottom: 24px; }
    .rd-header__side { flex: 1 1 auto; text-align: left; padding: 22px 24px; }
    .rd-header__side-text { margin: 0; width: auto; }
    .rd-header__stat-list { margin-top: 0; padding-top: 0; border-top: 0; }
    .rd-header__icon-container img { width: 44px; height: 44px; }
}
@media (max-width: 768px) {
    .rd-header__side-info { flex-wrap: nowrap; }
    .rd-header__stat-list { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); width: 100%; }
    .rd-header__stat-item { text-align: left; }
}
@media (max-width: 575px) {
    .rd-header__title { font-size: 34px; line-height: 1.12; }
    .rd-header__text { font-size: 16px; }
    .rd-header__pretitle { font-size: 12px; margin-bottom: 14px; }
}

/* Game cards */
.rd-showcase { margin-bottom: 8px; }
.rd-showcase__item { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); box-shadow: none; padding: 24px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.rd-showcase__item:hover { border-color: var(--tw-border-strong); box-shadow: var(--tw-lift); }
.rd-showcase__item-header { border-bottom: 1px solid var(--tw-border); padding-bottom: 14px; margin-bottom: 14px; }
.rd-showcase__title { font-family: var(--tw-font-display); font-size: 20px; font-weight: 700; color: var(--tw-ink); letter-spacing: -0.015em; transform: none; }
.rd-showcase__description { font-size: 15px; line-height: 1.6; color: var(--tw-text-2); }
.rd-showcase__link-list { margin: 14px -4px -4px; }
.rd-showcase__link-item { margin: 4px; }
.rd-showcase__link {
    background-color: var(--tw-tint); color: var(--tw-ink); border: 1px solid transparent; border-radius: var(--tw-radius-sm);
    padding: 7px 12px; text-decoration: none; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.rd-showcase__link:hover { background-color: var(--tw-tint-hover); color: var(--tw-ink); text-decoration: none; }
.rd-showcase__link:focus-visible { box-shadow: var(--tw-ring); }
.rd-showcase__link i { color: var(--tw-text-3); font-size: 13px; }
.rd-showcase__link-text { font-size: 13.5px; font-weight: 600; margin-left: 7px; }
/* First link of each game (its main list) is the call to action */
.rd-showcase__link-item:first-child .rd-showcase__link { background-color: var(--tw-yellow); }
.rd-showcase__link-item:first-child .rd-showcase__link:hover { background-color: var(--tw-yellow-hover); }
.rd-showcase__link-item:first-child .rd-showcase__link i { color: var(--tw-ink); }

/* ================================================================= Site blog (homepage previews, /blog, posts) */
.tw-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 48px 0 16px; }
.tw-section-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--tw-ink); margin: 0; }
.tw-section-head a { font-weight: 600; font-size: 15px; }
.tw-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0 0 8px; }
.tw-post-card {
    display: flex; flex-direction: column; height: 100%; background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg);
    padding: 24px; color: inherit; text-decoration: none; box-shadow: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tw-post-card:hover { border-color: var(--tw-border-strong); box-shadow: var(--tw-lift); color: inherit; text-decoration: none; transform: none; }
.tw-post-card:focus-visible { box-shadow: var(--tw-ring); border-radius: var(--tw-radius-lg); }
.tw-post-card__tag {
    align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: none;
    background: var(--tw-tint); color: var(--tw-text-2); padding: 3px 9px; border-radius: 999px; margin-bottom: 14px;
}
.tw-post-card__title { font-family: var(--tw-font-display); font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--tw-ink); margin-bottom: 8px; }
.tw-post-card:hover .tw-post-card__title { text-decoration: underline; text-decoration-color: var(--tw-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tw-post-card__excerpt { color: var(--tw-text-2); font-size: 15px; line-height: 1.6; margin-bottom: 18px; flex: 1; }
.tw-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--tw-text-3); }
.tw-byline time { white-space: nowrap; }
.tw-byline img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--tw-ink); }
.tw-byline a { font-weight: 600; }
.tw-byline__sep { color: var(--tw-border-strong); }

.tw-post { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); padding: 48px 56px; box-shadow: none; min-width: 0; margin: 0; }
.tw-post > .tw-post-card__tag { margin-bottom: 0; }
.tw-post h1 { font-weight: 800; color: var(--tw-ink); font-size: 40px; line-height: 1.12; letter-spacing: -0.022em; margin: 14px 0 18px; }
.tw-post .tw-byline { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--tw-border); }
.tw-post__body h2 { font-size: 24px; font-weight: 700; margin: 36px 0 12px; color: var(--tw-ink); letter-spacing: -0.02em; }
.tw-post__body p, .tw-post__body li { font-size: 17px; line-height: 1.75; color: var(--tw-text); }
.tw-post__body li { margin-bottom: 6px; }
.tw-post__hero { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto 28px; border-radius: var(--tw-radius); }
.tw-author-box { display: flex; gap: 16px; align-items: center; margin-top: 40px; padding: 20px; background: var(--tw-surface-2); border: 1px solid var(--tw-border); border-radius: var(--tw-radius); }
.tw-author-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.tw-author-box p { margin: 0; font-size: 15px; color: var(--tw-text-2); }
@media (max-width: 767px) {
    .tw-post { padding: 24px 20px; }
    .tw-post h1 { font-size: 30px; }
    .tw-post__body p, .tw-post__body li { font-size: 16px; }
}

/* ================================================================= About + team */
.tw-about-hero { background: var(--tw-ink); color: var(--tw-on-dark); border-radius: 20px; padding: 56px; margin: 8px 0 16px; box-shadow: none;
    background-image: radial-gradient(90% 120% at 100% 0%, rgba(255, 191, 0, 0.09) 0%, rgba(255, 191, 0, 0) 50%); }
.tw-about-hero h1 { font-weight: 800; font-size: 44px; line-height: 1.1; letter-spacing: -0.022em; color: #fff; margin-bottom: 16px; }
.tw-about-hero h1 span { color: var(--tw-yellow); }
.tw-about-hero p { font-size: 18px; line-height: 1.65; color: var(--tw-on-dark-2); max-width: 720px; margin: 0; }
.tw-about-hero a { color: #fff; text-decoration-color: var(--tw-yellow); }
.tw-about-hero a:hover { text-decoration-color: #fff; }
.tw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0 0 48px; }
.tw-stat { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); padding: 22px 20px; text-align: left; box-shadow: none; }
.tw-stat__number { display: block; font-family: var(--tw-font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--tw-ink); line-height: 1.1; }
.tw-stat__label { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tw-text-3); }
.tw-section { margin-bottom: 48px; }
.tw-section > h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--tw-ink); margin-bottom: 8px; }
.tw-section > p { color: var(--tw-text-2); margin-bottom: 18px; }
.tw-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.tw-member-card {
    display: flex; gap: 18px; align-items: center; background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg);
    padding: 20px; color: inherit; text-decoration: none; box-shadow: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tw-member-card:hover { border-color: var(--tw-border-strong); box-shadow: var(--tw-lift); color: inherit; text-decoration: none; transform: none; }
.tw-member-card:focus-visible { box-shadow: var(--tw-ring); border-radius: var(--tw-radius-lg); }
.tw-member-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--tw-ink); box-shadow: none; }
.tw-member-card__name { display: block; font-family: var(--tw-font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; color: var(--tw-ink); }
.tw-member-card__role { display: block; font-size: 14px; color: var(--tw-text-3); margin: 1px 0 8px; }
.tw-member-card__more { font-size: 14px; font-weight: 600; color: var(--tw-ink); text-decoration: underline; text-decoration-color: var(--tw-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tw-card { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); padding: 28px 32px; box-shadow: none; }
.tw-card > p { color: var(--tw-text); line-height: 1.7; }
/* Story timeline: ink dots on a hairline, the latest milestone in yellow */
.tw-timeline { list-style: none; padding: 0 0 0 28px; margin: 0; border-left: 0; position: relative; }
.tw-timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--tw-border); border-radius: 2px; }
.tw-timeline li { position: relative; padding: 0 0 22px 8px; }
.tw-timeline li:last-child { padding-bottom: 0; }
.tw-timeline li::before { content: ''; position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--tw-surface); border: 3px solid var(--tw-ink); box-shadow: none; }
.tw-timeline li:last-child::before { background: var(--tw-yellow); border-color: var(--tw-ink); }
.tw-timeline__date { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tw-text-3); }
.tw-timeline__title { display: block; font-family: var(--tw-font-display); font-weight: 700; font-size: 16px; color: var(--tw-ink); margin-top: 2px; }
.tw-timeline p { margin: 2px 0 0; color: var(--tw-text-2); font-size: 15px; }
.tw-network { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 20px 0 0; }
.tw-network a { display: block; height: 100%; background: var(--tw-surface-2); border: 1px solid var(--tw-border); border-radius: var(--tw-radius); padding: 14px 16px; color: inherit; text-decoration: none; }
.tw-network a:hover { border-color: var(--tw-ink); background: var(--tw-surface); color: inherit; text-decoration: none; }
.tw-network strong { display: block; color: var(--tw-ink); font-weight: 600; }
.tw-network span { font-size: 14px; color: var(--tw-text-3); }
.tw-profile {
    display: flex; gap: 32px; align-items: center; flex-wrap: wrap; background: var(--tw-ink); color: var(--tw-on-dark); border-radius: 20px; padding: 40px; margin: 8px 0 16px; box-shadow: none;
    background-image: radial-gradient(90% 120% at 100% 0%, rgba(255, 191, 0, 0.09) 0%, rgba(255, 191, 0, 0) 50%);
}
.tw-profile img { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--tw-ink), 0 0 0 6px var(--tw-yellow); background: var(--tw-ink-2); }
.tw-profile h1 { color: #fff; font-weight: 800; font-size: 40px; letter-spacing: -0.022em; margin: 0; }
.tw-profile__role { color: var(--tw-yellow); font-weight: 600; margin: 4px 0 12px; }
.tw-profile__bio { color: var(--tw-on-dark-2); margin: 0; max-width: 640px; font-size: 16.5px; line-height: 1.65; }
.tw-profile__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.tw-profile__links a { display: inline-block; padding: 6px 14px; border: 1px solid #3d3b37; border-radius: 999px; color: var(--tw-on-dark); font-size: 14px; font-weight: 500; text-decoration: none; }
.tw-profile__links a:hover { background: var(--tw-ink-3); border-color: #5a5750; color: #fff; }
.tw-profile__links a:focus-visible, .tw-about-hero a:focus-visible { box-shadow: 0 0 0 2px var(--tw-yellow); }
.tw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0 0 48px; }
.tw-facts li { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); padding: 18px 20px; }
.tw-facts__label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tw-text-3); }
.tw-facts__value { display: block; font-weight: 600; color: var(--tw-ink); font-size: 16px; margin-top: 2px; }
.tw-card .btn-primary { margin-top: 4px; }
@media (max-width: 767px) {
    .tw-about-hero { padding: 32px 22px; border-radius: 16px; }
    .tw-about-hero h1 { font-size: 32px; }
    .tw-about-hero p { font-size: 16px; }
    .tw-profile { padding: 28px 22px; gap: 20px; border-radius: 16px; }
    .tw-profile img { width: 112px; height: 112px; }
    .tw-profile h1 { font-size: 30px; }
    .tw-card { padding: 22px 20px; }
    .tw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tw-stat__number { font-size: 24px; }
}

/* ================================================================= Game articles (blog.min.css) */
.rd-card { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); box-shadow: none; }
.rd-card--padding { padding: 24px; }
.rd-article__header { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); padding: 32px; }
.rd-article__header-pre { font-size: 13px; color: var(--tw-text-3); margin-bottom: 8px; }
.rd-article__header-title { font-family: var(--tw-font-display); font-size: 38px; font-weight: 800; line-height: 1.12; letter-spacing: -0.022em; color: var(--tw-ink); text-shadow: none; margin-bottom: 10px; }
.rd-article__header-teaser { font-size: 16px; font-weight: 500; color: var(--tw-text-2); line-height: 1.55; }
.rd-article__content.rd-card--padding { padding: 32px 40px; }
.rd-article__heading { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--tw-text-3); margin-bottom: 12px; }
.rd-article__heading--fill { background: transparent; padding: 0; font-family: var(--tw-font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-transform: none; color: var(--tw-ink); }
@media (max-width: 768px) {
    .rd-article__header { padding: 22px 20px; }
    .rd-article__header-title { font-size: 30px; }
    .rd-article__content.rd-card--padding { padding: 22px 20px; }
}

/* Article body */
.rd-markdown { font-size: 17px; line-height: 1.75; color: var(--tw-text); }
.rd-markdown h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 40px 0 14px; }
.rd-markdown h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.rd-markdown > h2:first-child, .rd-markdown > div:first-child + h2 { margin-top: 0; }
.rd-markdown img { border-radius: var(--tw-radius); border: 1px solid var(--tw-border); }
.rd-markdown ol, .rd-markdown ul { padding-left: 1.4em; }
.rd-markdown li { margin-bottom: 6px; }
.rd-markdown a:not(.btn):not(.rd-btn) { color: var(--tw-ink) !important; font-weight: 500; display: inline; word-break: break-word; text-decoration: underline; text-decoration-color: var(--tw-yellow); }
.rd-markdown a:not(.btn):not(.rd-btn)::before { display: none; }
.rd-markdown a:not(.btn):not(.rd-btn):hover { background: var(--tw-yellow-tint); text-decoration-color: var(--tw-ink); }
.rd-markdown .btn { background-color: var(--tw-surface) !important; border: 1px solid var(--tw-border-strong); color: var(--tw-ink); padding: 8px 14px; font-size: 14px; font-weight: 600; box-shadow: none; }
.rd-markdown .btn-success { background-color: var(--tw-yellow) !important; border-color: var(--tw-yellow); color: var(--tw-ink) !important; }
.rd-markdown .btn-success:hover { background-color: var(--tw-yellow-hover) !important; border-color: var(--tw-yellow-hover); }
.rd-markdown .badge { box-shadow: none; }
.rd-markdown .badge-success { background: var(--tw-surface); color: var(--tw-ink); border: 1px solid var(--tw-border-strong); padding: 2px 7px; font-size: 0.82em; }
.rd-markdown .badge-dark { font-size: 14px; }
.rd-markdown code { background: var(--tw-tint); color: var(--tw-ink); border-radius: 5px; padding: 2px 6px; font-size: 0.88em; }

/* Copy box */
.rd-copy-box { background: var(--tw-ink); color: var(--tw-on-dark); border: 0; border-radius: var(--tw-radius); overflow: hidden; font-size: 14px; }
.rd-copy-box__icon-container { background: rgba(255, 255, 255, 0.06); }
.rd-copy-box__input { font-family: var(--tw-font-mono); }
.rd-copy-box__button { background: var(--tw-yellow); color: var(--tw-ink); border-radius: var(--tw-radius-sm); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; padding: 8px 12px; width: auto; min-width: 84px; }
.rd-copy-box__button:hover { background: var(--tw-yellow-hover); color: var(--tw-ink); }
.rd-copy-box__button:focus-visible { box-shadow: 0 0 0 2px var(--tw-ink), 0 0 0 4px var(--tw-yellow); }
.rd-copy-box--primary { --col-border: var(--tw-border-strong); background: var(--tw-surface-2); color: var(--tw-ink); border: 1px solid var(--tw-border-strong); }
.rd-copy-box--primary .rd-copy-box__button { background: var(--tw-ink); color: #fff; border: 0; }
.rd-copy-box__arg { background: var(--tw-yellow); color: var(--tw-ink); border-radius: 4px; font-weight: 600; }

/* Side column */
.rd-jump-back { background: var(--tw-ink); border: 0; border-radius: var(--tw-radius-lg); padding: 28px 24px; }
.rd-jump-back__underlay { display: none; }
.rd-jump-back__title { font-family: var(--tw-font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.015em; color: #fff; margin-bottom: 6px; }
.rd-jump-back__description { font-size: 14px; line-height: 1.5; color: var(--tw-on-dark-2); margin-bottom: 16px; }
.rd-jump-back__button, .rd-jump-back__button:hover { background: var(--tw-yellow); color: var(--tw-ink); font-size: 14px; font-weight: 600; border-radius: var(--tw-radius-sm); padding: 10px 18px; text-decoration: none; }
.rd-jump-back__button:hover { background: var(--tw-yellow-hover); }
.rd-jump-back__button:focus-visible { box-shadow: 0 0 0 2px var(--tw-ink), 0 0 0 4px var(--tw-yellow); }
.rd-article__navigation-link { font-size: 14px; color: var(--tw-text-2); border-radius: var(--tw-radius-sm); padding: 8px 12px; text-decoration: none; }
.rd-article__navigation-link::before { border-radius: 3px; }
.rd-article__navigation-link:not(.rd-article__navigation-link--active):hover { color: var(--tw-ink); background: var(--tw-surface-2); }
.rd-article__navigation-link--active { color: var(--tw-ink); font-weight: 600; background-color: var(--tw-tint); border-color: transparent; box-shadow: none; }
.rd-article__navigation-link--active::before { background-color: var(--tw-yellow); border-color: rgba(0, 0, 0, 0.15); }
.rd-card__text { font-size: 14px; line-height: 1.55; color: var(--tw-text-2); }
.rd-btn, .rd-btn--green {
    background: var(--tw-surface); color: var(--tw-ink) !important; border: 1px solid var(--tw-border-strong); border-radius: var(--tw-radius-sm);
    font-size: 14px; font-weight: 600; padding: 9px 14px; text-decoration: none; box-shadow: none;
}
.rd-btn:hover, .rd-btn--green:hover { background: var(--tw-surface-2); border-color: var(--tw-ink); }
.rd-btn--neutral { background: transparent; color: var(--tw-text-2) !important; border-color: var(--tw-border); }
.rd-btn--small { padding: 6px 12px; font-size: 13px; }
.rd-article__similar-list { gap: 16px; }
.rd-article-card { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); padding: 20px; box-shadow: none; }
.rd-article-card__info { color: var(--tw-text-2); background: var(--tw-tint); border: 0; border-radius: 999px; font-size: 12px; font-weight: 500; padding: 3px 10px; }
.rd-article-card__title-link { color: var(--tw-ink); text-decoration: none; }
.rd-article-card__title-link:hover .rd-article-card__title { text-decoration: underline; text-decoration-color: var(--tw-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rd-article-card__title { font-family: var(--tw-font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--tw-ink); }
.rd-article-card__teaser { font-size: 14.5px; line-height: 1.55; color: var(--tw-text-2); }
.rd-blog-card { background-image: none; background-color: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); box-shadow: none; }
.rd-blog-card__link { color: var(--tw-ink); }
.rd-blog-card__info-item--category { background-color: var(--tw-tint); color: var(--tw-text-2); }

/* ================================================================= Contact (contact.min.css) */
.wrapper--commandsgg { --col-primary: #ffbf00; --col-primary-hover: #ffcc33; --col-primary-text-overlay: 20, 20, 20; }
.wrapper--commandsgg .rd-jumbo {
    background: var(--tw-surface); background-image: none; border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); box-shadow: none; color: var(--tw-ink);
}
.wrapper--commandsgg .rd-jumbo__title { font-family: var(--tw-font-display); color: var(--tw-ink); font-weight: 800; letter-spacing: -0.022em; text-shadow: none; }
.wrapper--commandsgg .rd-jumbo__subtitle { color: var(--tw-text-2); }
.wrapper--commandsgg .rd-contact { background: var(--tw-ink); border-radius: var(--tw-radius-lg); overflow: hidden; }
.wrapper--commandsgg .rd-contact__section--side { background: var(--tw-ink-2); box-shadow: none; border-radius: 0; border-left: 1px solid var(--tw-ink-3); }
.wrapper--commandsgg .rd-contact__section--side:hover { transform: none; }
.wrapper--commandsgg .rd-contact__title { font-family: var(--tw-font-display); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.wrapper--commandsgg .rd-contact__subtitle { color: var(--tw-on-dark-2); font-size: 15px; line-height: 1.6; }
.wrapper--commandsgg .rd-contact__method-label, .wrapper--commandsgg a.rd-contact__method-label { color: var(--tw-on-dark); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--tw-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wrapper--commandsgg a.rd-contact__method-label:hover { color: #fff; text-decoration-color: #fff; }
.wrapper--commandsgg .rd-contact__method-item svg, .wrapper--commandsgg .rd-contact__method-item svg path { fill: var(--tw-yellow); }
.wrapper--commandsgg .rd-contact__method-item img { filter: invert(0.93); }
.wrapper--commandsgg .rd-contact__graphic { background-color: rgba(255, 255, 255, 0.05); box-shadow: none; }
.wrapper--commandsgg .rd-contact__circle-small { background-color: rgba(255, 191, 0, 0.16); }
.wrapper--commandsgg .rd-form { padding: 32px; }
.wrapper--commandsgg .rd-form__label { color: var(--tw-on-dark-2); font-size: 13px; font-weight: 500; }
.wrapper--commandsgg .rd-form__input, .wrapper--commandsgg .rd-form__textarea { color: var(--tw-on-dark); font-size: 15px !important; border-bottom: 2px solid rgba(255, 255, 255, 0.22) !important; }
.wrapper--commandsgg .rd-form__input:focus, .wrapper--commandsgg .rd-form__textarea:focus { border-color: var(--tw-yellow) !important; }
.wrapper--commandsgg .rd-form__submit-button { background: var(--tw-yellow); color: var(--tw-ink) !important; font-size: 15px; font-weight: 600; border-radius: var(--tw-radius-sm); padding: 13px 28px; }
.wrapper--commandsgg .rd-form__submit-button:hover { background: var(--tw-yellow-hover); filter: none; }
.wrapper--commandsgg .rd-form__submit-button:focus-visible { box-shadow: 0 0 0 2px var(--tw-ink), 0 0 0 4px var(--tw-yellow); }
@media (max-width: 992px) {
    .wrapper--commandsgg .rd-contact { background: transparent; overflow: visible; }
    .wrapper--commandsgg .rd-contact__section--main { background: var(--tw-ink); border-radius: var(--tw-radius-lg); }
    .wrapper--commandsgg .rd-contact__section--side { border-radius: var(--tw-radius-lg); }
    .wrapper--commandsgg .rd-form { padding: 22px 20px; }
}

/* CTA boxes */
/* .card-cta keeps its game colour (cta-boxes.css) as the accent */

/* Card view argument tables: label above its explanation (reads well at any width, never widens the page) */
.card-view .table, .card-view .table tbody, .card-view .table tr, .card-view .table td { display: block; width: auto; }
.card-view .table { background: var(--tw-surface-2); border: 1px solid var(--tw-border); border-radius: 10px; padding: 2px 14px; margin: 12px 0; }
.card-view .table tr { padding: 10px 0; border-bottom: 1px solid var(--tw-border); }
.card-view .table tr:last-child { border-bottom: 0; }
.card-view .table td { padding: 0 !important; border: 0 !important; overflow-wrap: anywhere; }
.card-view .table td:first-child { font-size: 13px; font-weight: 600; color: var(--tw-ink); margin-bottom: 2px; }
.card-view .table td + td { font-size: 14px; color: var(--tw-text-2); line-height: 1.5; }
@media (max-width: 767px) { .col-lg-12.min-100vh .card-body.pt-2 { padding: 14px !important; } }
@media (max-width: 767px) {
    .card-body > .float-right { float: none !important; margin: 0 0 16px; }
    .card-body > .float-right .btn-group.ml-3 { margin-left: 0 !important; }
}
@media (max-width: 991px) {
    .navbar.bg-brand > .container { padding-left: 16px; padding-right: 16px; }
}
/* The page's main call to action (e.g. "How to enable the console") gets full button size */
.card-body .btn-success.btn-sm { font-size: 14px; line-height: 20px; padding: 9px 16px; border-radius: var(--tw-radius-sm); }

/* =====================================================================================================
 * Round 2 (15 Nov 2026, Dan's review of design B)
 * ===================================================================================================== */

/* ---------- Tag badges in text (War of the Chosen, Admin Only, DLC...): readable size, sits on the line */
.badge-info, .badge-warning, .badge-danger, .badge-secondary, .badge-light, .badge-primary {
    font-size: 0.8em; line-height: 1.3; padding: 0.22em 0.6em; border-radius: 6px; vertical-align: 0.08em; font-weight: 600;
}
.badge-primary { font-family: var(--tw-font); }
.table .badge, .card-view .badge:not(.badge-dark) { font-size: 12.5px; }

/* ---------- Game blog cards: the old blue wipe on hover turned the text white on white */
.rd-blog-card, .rd-blog-card:hover { background-image: none !important; background-color: var(--tw-surface); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.rd-blog-card:hover { border-color: var(--tw-border-strong); box-shadow: var(--tw-lift); }
.rd-blog-card__link, .rd-blog-card:hover .rd-blog-card__link { color: var(--tw-ink); text-decoration: none; }
.rd-blog-card__title, .rd-blog-card:hover .rd-blog-card__title { color: var(--tw-ink); font-family: var(--tw-font-display); font-weight: 700; letter-spacing: -0.015em; }
.rd-blog-card:hover .rd-blog-card__title { text-decoration: underline; text-decoration-color: var(--tw-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rd-blog-card__teaser, .rd-blog-card:hover .rd-blog-card__teaser { color: var(--tw-text-2); }
.rd-blog-card__info-item, .rd-blog-card:hover .rd-blog-card__info-item { background-color: var(--tw-tint); color: var(--tw-text-2) !important; border-radius: 999px; }
.rd-blog-card__info-item span { font-size: 12px; font-weight: 600; }
.rd-blog-card__info-item--game, .rd-blog-card:hover .rd-blog-card__info-item--game { background-color: rgba(var(--col-rgb), 0.12); color: var(--tw-ink) !important; }

/* ---------- "Looking for other commands?" box: calm card, game colour as an accent, one clear button */
.card-cta {
    font-family: var(--tw-font); min-height: 0; padding: 28px 32px; margin-bottom: 16px; justify-content: center;
    background-color: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg);
    background-image: radial-gradient(70% 140% at 100% 100%, color-mix(in srgb, currentColor 16%, transparent) 0%, transparent 70%) !important;
}
.card-cta__blob { fill: currentColor; opacity: 0.14; filter: none; top: auto; bottom: -7rem; right: -5rem; width: 18rem; height: 18rem; }
.card-cta__image { right: 1.25rem; width: 9rem; height: 85%; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18)); }
.card-cta__header { width: calc(100% - 10rem); }
.card-cta__header-icon { fill: #fff; background-color: currentColor; box-shadow: none; padding: 7px; width: 18px; height: 18px; margin-right: 12px; }
.card-cta__title { font-family: var(--tw-font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; text-transform: none; color: var(--tw-ink); margin: 0; line-height: 1.2; }
.card-cta__main { width: calc(100% - 10rem); padding-right: 0; }
.card-cta__text { font-size: 16px; font-weight: 400; line-height: 1.55; color: var(--tw-text-2); margin: 8px 0 18px; }
.card-cta .card-cta__button, .card-cta .card-cta__button:hover {
    background: var(--tw-yellow) !important; background-image: none; color: var(--tw-ink); box-shadow: none; filter: none;
    font-family: var(--tw-font); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none;
    padding: 10px 18px; border-radius: var(--tw-radius-sm); text-decoration: none;
}
.card-cta .card-cta__button:hover { background: var(--tw-yellow-hover) !important; }
.card-cta .card-cta__button::after { content: ' \2192'; }
.card-cta .card-cta__button:focus-visible { box-shadow: var(--tw-ring); }
@media (max-width: 768px) {
    .card-cta { padding: 22px 20px; text-align: left; }
    .card-cta__header { justify-content: flex-start; }
    .card-cta .card-cta__button { align-self: flex-start; }
}

/* ---------- List pages: search on the left, icon view toggle on the right, both outside the panel */
.tw-list { background: transparent; border: 0; }
.tw-list__body { padding: 0; }
.tw-list-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tw-list-controls .tcv-search, .tw-list-controls input.form-control.tcv-search { flex: 1 1 auto; width: auto; min-width: 0; height: 52px !important; border-color: var(--tw-border-strong); }
.tw-list-controls .tcv-search:hover { border-color: var(--tw-input-border); }
.tw-list-controls .view-toggle {
    flex: 0 0 auto; display: inline-flex; gap: 2px; padding: 4px; margin: 0 !important; width: auto;
    background: var(--tw-surface); border: 1px solid var(--tw-border-strong); border-radius: 12px;
}
.tw-list-controls .view-toggle .btn, .tw-list-controls .view-toggle .btn-primary {
    width: 42px; height: 42px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0 !important; border-radius: 8px !important; color: var(--tw-text-3); box-shadow: none !important;
}
.tw-list-controls .view-toggle .btn:hover { background: var(--tw-tint); color: var(--tw-ink); }
.tw-list-controls .view-toggle .btn.active, .tw-list-controls .view-toggle .btn-primary:not([disabled]):not(.disabled).active { background: var(--tw-ink); color: #fff; }
.tw-list-controls .view-toggle .btn:focus-visible { box-shadow: var(--tw-ring) !important; }
#codeListDiv .tw-list-controls .tcv-search { height: 46px !important; }

.tw-table-panel { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); padding: 8px 20px 12px; }
.tw-table-panel .table { margin-top: 8px; }
/* Card view: just the cards on the page background */
#cardView .card-view { margin-top: 0; }
#cardView .card { background: var(--tw-surface); }
@media (max-width: 767px) {
    .tw-table-panel { padding: 4px 10px 8px; }
    .tw-list-controls .tcv-search, .tw-list-controls input.form-control.tcv-search { height: 48px !important; }
    .tw-list-controls .view-toggle .btn { width: 38px; height: 38px; }
}

/* ---------- Tooltip (tweak.js) */
.tw-tip {
    position: absolute; z-index: 2000; pointer-events: none; max-width: 240px; padding: 6px 10px; border-radius: 7px;
    background: var(--tw-ink); color: #fff; font-family: var(--tw-font); font-size: 12.5px; font-weight: 600; line-height: 1.3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); opacity: 0; transform: translateY(3px); transition: opacity 0.12s ease, transform 0.12s ease;
}
.tw-tip.is-visible { opacity: 1; transform: none; }
.tw-tip::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--tw-ink); transform: rotate(45deg); }
.tw-tip.is-below::after { bottom: auto; top: -4px; }

/* ---------- Copy: chips (whole value), select cells (part of a command), blocks (command on its own line) */
.tw-chip { cursor: pointer; position: relative; display: inline-flex !important; align-items: center; gap: 8px; max-width: 100%; transition: background-color 0.12s ease, border-color 0.12s ease; }
.tw-chip__icon { display: inline-flex; color: var(--tw-text-3); flex: 0 0 auto; transition: color 0.12s ease; }
.tw-chip:hover, .tw-chip:focus-visible { border-color: var(--tw-ink) !important; background-color: var(--tw-yellow-tint) !important; outline: none; }
.tw-chip:hover .tw-chip__icon, .tw-chip:focus-visible .tw-chip__icon { color: var(--tw-ink); }
.tw-chip.is-copied { border-color: var(--tw-ink) !important; background-color: var(--tw-yellow) !important; }
.tw-chip.is-copied .tw-chip__icon { color: var(--tw-ink); }
/* Code in tables: a quiet chip that only shows its box on hover */
.tw-code.tw-chip--table { font-family: var(--tw-font-mono); font-size: 13.5px; padding: 4px 9px; margin: -4px -9px; border: 1px solid transparent; border-radius: 7px; background: transparent; overflow-wrap: anywhere; }
.tw-code.tw-chip--table .tw-chip__icon { opacity: 0; }
.table-hover tbody tr:hover .tw-code.tw-chip--table { background: var(--tw-surface); border-color: var(--tw-border-strong); }
.table-hover tbody tr:hover .tw-code.tw-chip--table .tw-chip__icon, .tw-code.tw-chip--table:focus-visible .tw-chip__icon { opacity: 1; }
/* Inline IDs in articles */
.rd-markdown .tw-chip--inline { padding: 1px 8px; font-size: 0.82em; vertical-align: 0.06em; gap: 6px; }
.rd-markdown .tw-chip--inline .tw-chip__icon svg { width: 13px; height: 13px; }
.rd-markdown .tw-path { background: var(--tw-tint); border-color: var(--tw-border); }
/* Syntax and example badges on command pages */
.card-body .badge-dark.tw-chip { padding: 7px 10px 7px 12px; font-size: 14px; }

/* Select mode: invisible until you hover the row, then a box and a copy button */
.tw-sel-cell { position: relative; }
.tw-sel { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: -5px -8px; padding: 4px 6px 4px 8px; border: 1px solid transparent; border-radius: 8px; max-width: calc(100% + 16px); transition: background-color 0.12s ease, border-color 0.12s ease; }
.tw-sel__text { font-family: var(--tw-font-mono); outline: none; caret-color: transparent; cursor: text; overflow-wrap: anywhere; }
.tw-sel__text:focus { caret-color: var(--tw-ink); }
.tw-copy-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; width: 30px; height: 30px; padding: 0;
    border: 1px solid var(--tw-border-strong); border-radius: 7px; background: var(--tw-surface); color: var(--tw-ink); cursor: pointer;
    opacity: 0; transition: opacity 0.12s ease, background-color 0.12s ease;
}
.tw-copy-btn:hover { background: var(--tw-yellow); border-color: var(--tw-yellow); }
.tw-copy-btn:focus-visible { opacity: 1; outline: none; box-shadow: var(--tw-ring); }
tr:hover .tw-sel, .tw-sel:focus-within { background: var(--tw-surface); border-color: var(--tw-border-strong); }
tr:hover .tw-sel .tw-copy-btn, .tw-sel:focus-within .tw-copy-btn, .tw-sel.is-copied .tw-copy-btn { opacity: 1; }
.tw-sel.is-copied .tw-copy-btn { background: var(--tw-yellow); border-color: var(--tw-yellow); }
/* Card view commands with arguments */
.tw-sel-badge { display: inline-flex !important; align-items: center; gap: 8px; }
.tw-sel-badge .tw-copy-btn { opacity: 1; width: 26px; height: 26px; }
@media (hover: none) { .tw-copy-btn, .tw-code.tw-chip--table .tw-chip__icon { opacity: 1; } }

/* Block: a command on its own line in an article */
.rd-markdown p.tw-copy-block-p { margin: 4px 0 22px; }
.tw-copy-block {
    display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; min-height: 56px;
    background: var(--tw-ink); border-radius: var(--tw-radius); color: var(--tw-on-dark);
}
.tw-copy-block__text { flex: 1 1 auto; min-width: 0; background: transparent !important; color: #fff !important; padding: 0 !important; font-family: var(--tw-font-mono); font-size: 15.5px !important; line-height: 1.5; overflow-wrap: anywhere; outline: none; caret-color: transparent; cursor: text; }
.tw-copy-block__text::selection { background: var(--tw-yellow); color: var(--tw-ink); }
.tw-copy-btn.tw-copy-block__btn { opacity: 1; width: auto; height: 40px; padding: 0 14px; background: var(--tw-yellow); border-color: var(--tw-yellow); font-family: var(--tw-font); font-size: 14px; font-weight: 700; }
.tw-copy-btn.tw-copy-block__btn:hover { background: var(--tw-yellow-hover); border-color: var(--tw-yellow-hover); }
.tw-copy-btn.tw-copy-block__btn:focus-visible { box-shadow: 0 0 0 2px var(--tw-ink), 0 0 0 4px var(--tw-yellow); }
.tw-copy-block.is-copied { box-shadow: inset 0 0 0 2px var(--tw-yellow); }

/* ---------- Site posts: full page width, article + sidebar (like the game articles) */
.tw-article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.tw-article__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.tw-side-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tw-text-3); margin: 0 0 10px; }
.tw-author-card { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); padding: 24px; }
.tw-author-card__head { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; margin-bottom: 14px; border-radius: 10px; }
.tw-author-card__head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--tw-ink); flex: 0 0 auto; }
.tw-author-card__head strong { display: block; font-family: var(--tw-font-display); font-size: 17px; color: var(--tw-ink); }
.tw-author-card__head span span { display: block; font-size: 14px; color: var(--tw-text-3); }
.tw-author-card__head:hover strong { text-decoration: underline; text-decoration-color: var(--tw-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tw-author-card__bio { font-size: 14.5px; line-height: 1.6; color: var(--tw-text-2); margin-bottom: 18px; }
.tw-author-card__links { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 500; }
.tw-side-cta { background: var(--tw-ink); color: var(--tw-on-dark-2); border-radius: var(--tw-radius-lg); padding: 24px; font-size: 14.5px; line-height: 1.55;
    background-image: radial-gradient(120% 90% at 100% 0%, rgba(255, 191, 0, 0.16) 0%, rgba(255, 191, 0, 0) 55%); }
.tw-side-cta__title { font-family: var(--tw-font-display); font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
@media (max-width: 991px) {
    .tw-article { grid-template-columns: minmax(0, 1fr); }
    .tw-article__side { position: static; }
}

/* ---------- Team profile */
.tw-profile__links-label { margin: 20px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #8f8a80; }
.tw-profile__links-label + .tw-profile__links { margin-top: 8px; }
/* Favourite game, inside the About card, in the game's own colour */
.tw-fav { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--tw-border); }
.tw-fav h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tw-text-3); font-family: var(--tw-font); margin: 0 0 14px; }
.tw-fav__body {
    display: flex; gap: 22px; align-items: flex-start; padding: 22px; border-radius: var(--tw-radius);
    background: color-mix(in srgb, var(--game) 8%, var(--tw-surface)); border: 1px solid color-mix(in srgb, var(--game) 28%, var(--tw-border));
}
.tw-fav__logo { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 18px; display: flex; align-items: center; justify-content: center; text-decoration: none;
    background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--game) 35%, #fff) 0%, var(--game) 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.tw-fav__logo img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25)); }
.tw-fav__name { font-family: var(--tw-font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.tw-fav__name a { color: var(--tw-ink); text-decoration-color: var(--game); }
.tw-fav__body p { color: var(--tw-text); line-height: 1.7; }
.tw-fav__button { display: inline-block; margin-top: 2px; padding: 9px 16px; border-radius: var(--tw-radius-sm); background: var(--tw-ink); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: inset 0 -3px 0 var(--game); }
.tw-fav__button:hover { color: #fff; background: var(--tw-ink-3); text-decoration: none; }
@media (max-width: 575px) {
    .tw-fav__body { flex-direction: column; gap: 16px; padding: 18px; }
    .tw-fav__logo { width: 72px; height: 72px; border-radius: 14px; }
    .tw-fav__logo img { width: 62px; height: 62px; }
}

/* ---------- About: network cards in each site's colour, plus a double-width Dantoo card */
.tw-network { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.tw-network li { min-width: 0; }
.tw-network a { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 16px; background: var(--tw-surface); border: 1px solid var(--tw-border);
    border-top: 3px solid var(--brand, var(--tw-ink)); border-radius: var(--tw-radius); transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.tw-network a:hover { background: var(--tw-surface); border-color: var(--tw-border-strong); border-top-color: var(--brand, var(--tw-ink)); box-shadow: var(--tw-lift); }
.tw-network img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.tw-network a > span { min-width: 0; }
.tw-network strong { font-family: var(--tw-font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; color: var(--tw-ink); }
.tw-network span span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--tw-text-3); margin-top: 2px; }
.tw-network .tw-network__dantoo { grid-column: span 2; }
.tw-network .tw-network__dantoo a { align-items: center; border: 0; color: #fff; background: linear-gradient(110deg, #4f00bb 0%, #1a6fa3 100%); }
.tw-network .tw-network__dantoo a:hover { box-shadow: 0 10px 28px rgba(79, 0, 187, 0.25); }
.tw-network .tw-network__dantoo img { width: 34px; height: 43px; border-radius: 0; filter: brightness(0) invert(1); }
.tw-network .tw-network__dantoo strong { color: #fff; }
.tw-network .tw-network__dantoo span span { color: #fff; }
@media (max-width: 1199px) { .tw-network { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tw-network .tw-network__dantoo { grid-column: 1 / -1; } }
@media (max-width: 767px) { .tw-network { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer: who runs the site */
.footer .float-left p + p { margin-top: 6px !important; }
.tw-footer-company { font-size: 13px; color: var(--tw-on-dark-2); }
.footer a.tw-dantoo { font-weight: 900; text-decoration: none; background: linear-gradient(to left, #29aae1, #9b6bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer a.tw-dantoo:hover { text-decoration: underline; text-decoration-color: #29aae1; }

/* Syntax column: room for commands with arguments */
#tableView .table td.tw-sel-cell { width: 36%; min-width: 220px; }

/* ================================================================= Footer v2 (16 Nov 2026): 75/25 split */
.footer { padding: 0; }
.footer .tw-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 44px 0 40px; }
.footer .tw-footer__brand { display: inline-flex; align-items: center; border-radius: 6px; }
.footer .tw-footer__brand img { height: 40px; width: auto; display: block; }
.footer .tw-footer__brand:focus-visible { box-shadow: 0 0 0 2px var(--tw-yellow); outline: 0; }
.footer .tw-footer__links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.footer .tw-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding: 16px 0 18px; border-top: 1px solid #3d3b37; }
.footer .tw-footer__legal p { font-size: 13px; color: var(--tw-on-dark); }
.footer .tw-footer__legal p + p { margin-top: 4px !important; }
.footer .tw-footer__legal .tw-footer__muted { font-size: 12px; color: var(--tw-on-dark-2); }
.footer .tweak-footer-note { font-size: 13px; text-align: right; }
@media (max-width: 767px) {
    .footer { padding: 0; }
    .footer .tw-footer__top { flex-direction: column; align-items: flex-start; padding: 32px 0 28px; }
    .footer .tw-footer__links { justify-content: flex-start; }
    .footer .tw-footer__bottom { flex-direction: column; align-items: flex-start; padding: 16px 0 22px; }
    .footer .tweak-footer-note { text-align: left; }
}

/* ================================================================= Network v2 (16 Nov 2026): Dantoo first, corp-site styling */
.tw-network .tw-network__dantoo { grid-column: span 2; }
.tw-network .tw-network__dantoo a {
    position: relative; overflow: hidden; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid #262a4d; color: #fff;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(79, 0, 188, 0.55) 0%, rgba(79, 0, 188, 0) 55%),
        radial-gradient(120% 140% at 100% 100%, rgba(10, 57, 204, 0.45) 0%, rgba(10, 57, 204, 0) 60%),
        linear-gradient(120deg, #18162a 0%, #12152e 100%);
}
.tw-network .tw-network__dantoo a:hover { border-color: #3a3f73; border-top-color: #3a3f73; box-shadow: 0 10px 28px rgba(18, 21, 46, 0.35); }
.tw-network .tw-network__dantoo img { width: 40px; height: 51px; border-radius: 0; filter: drop-shadow(0 0 12px rgba(41, 171, 226, 0.35)); }
.tw-network .tw-network__dantoo strong { color: #fff; font-size: 17px; }
.tw-network .tw-network__dantoo span span { color: #c9cbe8; }
/* The three sites: the corp site's property-card look, a soft brand tint rising from the bottom */
.tw-network li:not(.tw-network__dantoo) a {
    border-top: 1px solid var(--tw-border);
    background: linear-gradient(180deg, var(--tw-surface) 35%, color-mix(in srgb, var(--brand) 13%, var(--tw-surface)) 100%);
}
.tw-network li:not(.tw-network__dantoo) a:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--tw-border));
    background: linear-gradient(180deg, var(--tw-surface) 20%, color-mix(in srgb, var(--brand) 20%, var(--tw-surface)) 100%);
}
.tw-network li:not(.tw-network__dantoo) a:hover strong { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 1199px) { .tw-network { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tw-network .tw-network__dantoo { grid-column: 1 / -1; } }
@media (max-width: 767px) { .tw-network { grid-template-columns: minmax(0, 1fr); } }

/* Footer v3 (16 Nov 2026): rebrand note under the logo, legal left / disclaimer right */
.footer .tw-footer__top { position: relative; padding: 48px 0; }
.footer .tw-footer__top .tweak-footer-note { position: absolute; left: 0; bottom: 14px; font-size: 13px; text-align: left; color: var(--tw-on-dark-2); }
.footer .tw-footer__legal { font-size: 13px; color: var(--tw-on-dark); }
.footer .tw-footer__legal .tw-footer__muted { color: var(--tw-on-dark-2); }
.footer .tw-footer__disclaimer { font-size: 13px; color: var(--tw-on-dark-2); text-align: right; }
@media (max-width: 767px) {
    .footer .tw-footer__top { padding: 32px 0 24px; }
    .footer .tw-footer__top .tweak-footer-note { position: static; }
    .footer .tw-footer__disclaimer { text-align: left; }
}

/* Network v3 (16 Nov 2026): dark premium cards, animated Dantoo glow on hover */
.tw-network a { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease; }
.tw-network li:not(.tw-network__dantoo) a,
.tw-network li:not(.tw-network__dantoo) a:hover {
    color: #fff; border: 1px solid #262a4d;
    background:
        radial-gradient(130% 120% at 100% 100%, color-mix(in srgb, var(--brand) 34%, transparent) 0%, transparent 60%),
        linear-gradient(160deg, #1a1930 0%, #12152e 100%);
}
.tw-network li:not(.tw-network__dantoo) a:hover {
    transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 55%, #262a4d);
    box-shadow: 0 12px 28px rgba(18, 21, 46, 0.35), 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent);
}
.tw-network li:not(.tw-network__dantoo) strong { color: #fff; }
.tw-network li:not(.tw-network__dantoo) span span { color: #c9cbe8; }
.tw-network li:not(.tw-network__dantoo) a:hover strong { text-decoration-color: var(--brand); }

/* Dantoo: a slow swirl of purple and blue light behind the content on hover */
.tw-network .tw-network__dantoo a { isolation: isolate; }
.tw-network .tw-network__dantoo a::before {
    content: ""; position: absolute; inset: -60%; z-index: -1; opacity: 0; pointer-events: none;
    background:
        conic-gradient(from 0deg at 50% 50%, rgba(79, 0, 188, 0) 0deg, rgba(79, 0, 188, .55) 80deg, rgba(41, 171, 226, .22) 150deg, rgba(10, 57, 204, 0) 200deg, rgba(10, 57, 204, .5) 290deg, rgba(79, 0, 188, 0) 360deg);
    filter: blur(28px); transition: opacity .45s ease;
    animation: tw-dantoo-swirl 7s linear infinite; animation-play-state: paused;
}
.tw-network .tw-network__dantoo a::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
    background: radial-gradient(60% 90% at var(--mx, 20%) 50%, rgba(255, 255, 255, .05), transparent 70%);
    transition: opacity .45s ease; animation: tw-dantoo-wave 4.5s ease-in-out infinite alternate; animation-play-state: paused;
}
.tw-network .tw-network__dantoo a:hover, .tw-network .tw-network__dantoo a:focus-visible {
    transform: translateY(-4px); border-color: #4b4f8f;
    box-shadow: 0 16px 36px rgba(18, 21, 46, 0.45), 0 0 32px rgba(79, 0, 188, 0.28);
}
.tw-network .tw-network__dantoo a:hover::before, .tw-network .tw-network__dantoo a:focus-visible::before,
.tw-network .tw-network__dantoo a:hover::after, .tw-network .tw-network__dantoo a:focus-visible::after { opacity: 1; animation-play-state: running; }
.tw-network .tw-network__dantoo a > * { position: relative; }
@keyframes tw-dantoo-swirl { to { transform: rotate(360deg); } }
@keyframes tw-dantoo-wave { from { transform: translateX(-15%); } to { transform: translateX(15%); } }
@media (prefers-reduced-motion: reduce) {
    .tw-network a, .tw-network a:hover { transform: none !important; transition: none; }
    .tw-network .tw-network__dantoo a::before, .tw-network .tw-network__dantoo a::after { animation: none; }
}
/* Keep the dark Dantoo base on hover (the generic .tw-network a:hover sets a light surface) */
.tw-network .tw-network__dantoo a:hover, .tw-network .tw-network__dantoo a:focus-visible {
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(79, 0, 188, 0.55) 0%, rgba(79, 0, 188, 0) 55%),
        radial-gradient(120% 140% at 100% 100%, rgba(10, 57, 204, 0.45) 0%, rgba(10, 57, 204, 0) 60%),
        linear-gradient(120deg, #18162a 0%, #12152e 100%);
}

/* ================================================================= Lists v3 (16 Nov 2026) */
/* Table header sits outside the white card: a dark ink bar on top of the rows, no padded panel around it */
#tableView.tw-table-panel { background: transparent; border: 0; border-radius: 0; padding: 0; }
#tableView .table { margin-top: 0; }
#tableView .table thead th {
    background: var(--tw-ink); color: #e9e6df; border: 0; border-radius: 0; padding: 13px 20px;
    font-size: 12px; letter-spacing: 0.08em;
}
#tableView .table thead th:first-child { border-top-left-radius: var(--tw-radius-lg); border-bottom-left-radius: 0; border-left: 0; }
#tableView .table thead th:last-child { border-top-right-radius: var(--tw-radius-lg); border-bottom-right-radius: 0; border-right: 0; }
#tableView .table tbody td { background: var(--tw-surface); padding: 14px 20px; }
#tableView .table tbody td:first-child { border-left: 1px solid var(--tw-border); }
#tableView .table tbody td:last-child { border-right: 1px solid var(--tw-border); }
#tableView .table tbody tr:last-child td { border-bottom: 1px solid var(--tw-border); }
#tableView .table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--tw-radius-lg); }
#tableView .table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--tw-radius-lg); }
#tableView .table-hover tbody tr:hover td { background: var(--tw-surface-2); }
@media (max-width: 767px) {
    #tableView.tw-table-panel { padding: 0; }
    #tableView .table thead th, #tableView .table tbody td { padding-left: 14px; padding-right: 14px; }
}

/* Search: no ring on focus, the field darkens instead; clear (x) button on the right */
.tw-search { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.tw-search .tcv-search { flex: 1 1 auto; padding-right: 48px; transition: background-color .15s ease, border-color .15s ease; }
.tw-list-controls .tcv-search:focus, input.form-control.tcv-search:focus {
    box-shadow: none; outline: 0; border-color: #c9c2b3; background-color: #ece8e0; color: var(--tw-text);
}
.tw-search__clear {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: none; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--tw-text-3); cursor: pointer;
}
.tw-search.has-value .tw-search__clear { display: inline-flex; }
.tw-search__clear:hover { background: rgba(20, 20, 20, 0.08); color: var(--tw-ink); }
.tw-search__clear:focus-visible { outline: 0; box-shadow: var(--tw-ring); }

/* No results: replaces the table/cards */
.tw-is-empty > #tableView, .tw-is-empty > #cardView, .tw-is-empty > .float-left, .tw-is-empty > .float-right { display: none !important; }
.tw-no-results { text-align: center; padding: 40px 20px 44px; background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); margin-bottom: 16px; }
.tw-no-results__title { font-family: var(--tw-font-display); font-weight: 800; font-size: 20px; color: var(--tw-ink); margin: 0 0 6px; overflow-wrap: anywhere; }
.tw-no-results__text { color: var(--tw-text-3); font-size: 15px; margin: 0 0 18px; }

/* Author pages: every post is in the HTML; only the first row shows until "Show all" */
.tw-section-head__count { font-size: 14px; color: var(--tw-text-3); }
.tw-author-posts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tw-author-posts:not(.is-open) > li:nth-child(n+5) { display: none; }
@media (max-width: 1199px) { .tw-author-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tw-author-posts:not(.is-open) > li:nth-child(n+4) { display: none; } }
@media (max-width: 767px) { .tw-author-posts { grid-template-columns: minmax(0, 1fr); } }
.tw-author-posts__more { text-align: center; margin: 16px 0 0; }
.tw-show-all { background: var(--tw-surface); border: 1px solid var(--tw-border-strong); color: var(--tw-ink); font-weight: 600; border-radius: 10px; padding: 10px 20px; }
.tw-show-all:hover { background: var(--tw-ink); border-color: var(--tw-ink); color: #fff; }
.tw-show-all:focus-visible { box-shadow: var(--tw-ring); outline: 0; }

/* Game article byline */
.tw-article-byline { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; color: var(--tw-text-3); }
.tw-article-byline img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.tw-article-byline a[rel="author"] { color: var(--tw-ink); font-weight: 600; text-decoration: none; }
.tw-article-byline a[rel="author"]:hover { text-decoration: underline; text-decoration-color: var(--tw-yellow); }

/* ================================================================= Tooltips v2 (16 Nov 2026) */
/* Bootstrap tooltips (badge explanations on every game) share the tw-tip look */
.tooltip { font-family: var(--tw-font); font-size: 13px; line-height: 1.4; opacity: 0; }
.tooltip.show { opacity: 1; }
.tooltip .tooltip-inner { max-width: 260px; padding: 7px 11px; border-radius: 8px; background: var(--tw-ink); color: #fff; font-weight: 500; text-align: left; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before { border-top-color: var(--tw-ink); }
.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { border-bottom-color: var(--tw-ink); }
.bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before { border-left-color: var(--tw-ink); }
.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before { border-right-color: var(--tw-ink); }
.tw-tip { font-weight: 500; font-size: 13px; line-height: 1.4; padding: 7px 11px; border-radius: 8px; }
/* Any leftover Bootstrap popovers match too */
.popover { font-family: var(--tw-font); border: 1px solid var(--tw-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 20, 20, 0.14); }
.popover-header { background: var(--tw-surface-2); border-bottom: 1px solid var(--tw-border); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tw-text-3); border-radius: 12px 12px 0 0; }

/* Argument card on command list rows */
.tw-args {
    position: absolute; z-index: 2000; padding: 12px 14px 8px; border-radius: 12px; background: var(--tw-ink); color: #fff;
    font-family: var(--tw-font); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
}
.tw-args.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .14s ease, transform .14s ease; }
.tw-args::after { content: ''; position: absolute; left: 22px; bottom: -5px; width: 10px; height: 10px; background: var(--tw-ink); transform: rotate(45deg); }
.tw-args.is-below::after { bottom: auto; top: -5px; }
.tw-args__label { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a8a49b; }
.tw-args__item { display: grid; grid-template-columns: minmax(80px, max-content) 1fr; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; transition: opacity .15s ease, background-color .15s ease; }
.tw-args__item + .tw-args__item { border-top: 1px solid #2c2c2c; }
.tw-args__name { font-weight: 700; font-size: 13.5px; color: var(--tw-yellow); }
.tw-args__desc { font-size: 13.5px; line-height: 1.45; color: #e9e6df; }
.tw-args__desc a { color: #fff; text-decoration-color: var(--tw-yellow); }
.tw-args__item.is-arg-active { background: rgba(255, 191, 0, 0.12); }
.tw-args__item.is-arg-dim { opacity: 0.4; }

/* Highlighting the hovered argument: in the syntax badges and in the arguments table below */
.badge-primary { transition: opacity .15s ease, box-shadow .15s ease; }
.badge-primary.is-arg-active { box-shadow: 0 0 0 2px var(--tw-ink); }
.badge-primary.is-arg-dim { opacity: 0.4; }
.tw-arg-table tbody tr { transition: opacity .15s ease, background-color .15s ease; }
.tw-arg-table tbody tr.is-arg-active td { background: var(--tw-yellow-tint); }
.tw-arg-table tbody tr.is-arg-dim { opacity: 0.4; }
@media (prefers-reduced-motion: reduce) { .tw-args, .tw-args__item, .badge-primary, .tw-arg-table tbody tr { transition: none; } }

/* Network v4 (16 Nov 2026): calmer hovers, the glow does the work; Dantoo card narrower but still the widest */
@media (min-width: 1200px) {
    .tw-network { grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr)); }
    .tw-network .tw-network__dantoo { grid-column: auto; }
}
.tw-network li:not(.tw-network__dantoo) a:hover {
    transform: none; box-shadow: none; border-color: #2e3359;
    background:
        radial-gradient(140% 130% at 100% 100%, color-mix(in srgb, var(--brand) 46%, transparent) 0%, transparent 62%),
        linear-gradient(160deg, #1a1930 0%, #12152e 100%);
}
.tw-network .tw-network__dantoo a:hover, .tw-network .tw-network__dantoo a:focus-visible {
    transform: translateY(-1px); border-color: #262a4d; box-shadow: 0 4px 14px rgba(18, 21, 46, 0.16);
}
.tw-network li:not(.tw-network__dantoo) a { transition: background .3s ease, border-color .3s ease; }
/* The swirl glow on every network card, in each site's colour; weaker than Dantoo's so Dantoo stays the premium one */
.tw-network li:not(.tw-network__dantoo) a { position: relative; overflow: hidden; isolation: isolate; }
.tw-network li:not(.tw-network__dantoo) a > * { position: relative; }
.tw-network li:not(.tw-network__dantoo) a::before {
    content: ""; position: absolute; inset: -60%; z-index: -1; opacity: 0; pointer-events: none;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, color-mix(in srgb, var(--brand) 38%, transparent) 90deg,
        transparent 190deg, color-mix(in srgb, var(--brand) 26%, transparent) 280deg, transparent 360deg);
    filter: blur(30px); transition: opacity .45s ease;
    animation: tw-dantoo-swirl 9s linear infinite; animation-play-state: paused;
}
.tw-network li:not(.tw-network__dantoo) a:hover::before, .tw-network li:not(.tw-network__dantoo) a:focus-visible::before { opacity: 1; animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .tw-network li:not(.tw-network__dantoo) a::before { animation: none; } }

/* ================================================================= Svelte game hubs (29 Nov 2026) */
/* Game home pages built by the Svelte list service (/7dtd /ck3 /dao /kotor /l4d2 /m2tw /spore /theforest /valheim).
 * Their markup and <style> come from svelte-staging (CommandCodeList.js) and load after this file, so rules here are
 * scoped to the Svelte root with :not(#tw-svelte): the id in :not() lifts them above any Svelte rule without !important.
 * The root sets its game colours inline (--col-primary, --col-secondary); those are remapped to Tweak ink / yellow. */
.root[style*="--col-primary"]:not(#tw-svelte) {
    --col-primary: #141414 !important; --col-primary-light: #2f2f2f !important; --col-primary-dark: #000 !important;
    --col-primary-rgb: 20, 20, 20 !important; --col-primary-text-rgb: 255, 255, 255 !important;
    --col-secondary: #ffbf00 !important; --col-secondary-light: #ffcc33 !important; --col-secondary-dark: #f0b400 !important;
    --col-secondary-rgb: 255, 191, 0 !important; --col-secondary-text-rgb: 20, 20, 20 !important;
    color: var(--tw-text); font-family: var(--tw-font);
}
/* Page background: the Svelte global sets a pink/lavender gradient on body with !important */
html:root > body { background-color: var(--tw-bg) !important; background-image: none !important; }
/* Breadcrumb: the Svelte global turns it into a white shadowed bar */
.container ol.breadcrumb { background: transparent; box-shadow: none; border-radius: 0; }

/* ---------- Hero: a Tweak card (hairline border, 16px radius, no shadow) */
.root[style*="--col-primary"]:not(#tw-svelte) .jumbo { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); box-shadow: none; overflow: hidden; }
.root[style*="--col-primary"]:not(#tw-svelte) .jumbo .main .info { padding: 32px 32px 20px; }
.root[style*="--col-primary"]:not(#tw-svelte) .jumbo .main .info .pre-badge {
    background: var(--tw-tint); color: var(--tw-text-2); border: 0; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 6px 12px; margin-bottom: 12px;
}
.root[style*="--col-primary"]:not(#tw-svelte) .jumbo .main .info .title {
    font-family: var(--tw-font-display); font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; color: var(--tw-ink); margin-bottom: 6px;
}
.root[style*="--col-primary"]:not(#tw-svelte) .jumbo .main .info .subtitle { font-size: 16px; line-height: 1.65; color: var(--tw-text-2); }
.root[style*="--col-primary"]:not(#tw-svelte) .jumbo .main .stripe-container .stripe { background-image: linear-gradient(to top, rgba(255, 191, 0, 0.35), rgba(255, 191, 0, 0)); }
.root[style*="--col-primary"]:not(#tw-svelte) .jumbo .main .image-container.center img { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18)); }
/* Related pages under the intro: the quiet chips of the legacy game pages, not a coloured strip */
.root[style*="--col-primary"]:not(#tw-svelte) ul.silo-list { background: transparent; border-radius: 0; overflow: visible; gap: 8px; padding: 4px 32px 28px; }
.root[style*="--col-primary"]:not(#tw-svelte) ul.silo-list li { flex: 0 0 auto; }
.root[style*="--col-primary"]:not(#tw-svelte) ul.silo-list li a {
    background: var(--tw-surface); color: var(--tw-text); border: 1px solid var(--tw-border-strong); border-radius: 7px;
    font-size: 13px; line-height: 18px; font-weight: 500; padding: 6px 12px; text-decoration: none; white-space: nowrap;
}
.root[style*="--col-primary"]:not(#tw-svelte) ul.silo-list li a:hover { background: var(--tw-surface-2); border-color: var(--tw-ink); color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) ul.silo-list li a:focus-visible { box-shadow: var(--tw-ring); }

/* "Jump to Commands" (phones): the block's call to action */
.root[style*="--col-primary"]:not(#tw-svelte) .rw > .cl > a[href="#commands"] {
    background: var(--tw-yellow); color: var(--tw-ink); border-radius: var(--tw-radius-sm); font-weight: 700; font-size: 15px; text-decoration: none;
}
.root[style*="--col-primary"]:not(#tw-svelte) .rw > .cl > a[href="#commands"]:hover { background: var(--tw-yellow-hover); }

/* ---------- Cards */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-card { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); box-shadow: none; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-card-header { padding: 24px 24px 0; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-card-header.pb { padding-bottom: 16px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-card-header .sv-heading { font-family: var(--tw-font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-card .sv-card-content { padding: 10px 24px 24px; color: var(--tw-text-2); font-size: 15px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-card .sv-card-content.no-header { padding-top: 24px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-card.no-padding .sv-card-content { padding: 0; }

/* Text from the CMS (markdown) */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown { --sv-font-size: 15px; line-height: 1.65; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown.text-small { --sv-font-size: 14px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown p, .root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown li { color: var(--tw-text-2); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown strong { color: var(--tw-text); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown h3, .root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown h4 { font-family: var(--tw-font-display); color: var(--tw-ink); font-weight: 700; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown a, .root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown p > a,
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown li a { color: var(--tw-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--tw-yellow); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown a:hover, .root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown p > a:hover,
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown li a:hover { color: var(--tw-ink); text-decoration-color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown blockquote { background: var(--tw-yellow-tint); border: 1px solid var(--tw-yellow-tint-2); border-left: 4px solid var(--tw-yellow); border-radius: var(--tw-radius-sm); color: var(--tw-text); }
/* Keys and settings in instructions: keycaps, as on the legacy pages */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-markdown code {
    display: inline-block; background: var(--tw-surface); color: var(--tw-ink); border: 1px solid var(--tw-border-strong); border-radius: 6px;
    font-family: var(--tw-font-mono); font-size: 0.85em; font-weight: 600; line-height: 1.4; padding: 1px 7px; vertical-align: 1px;
}

/* ---------- "How to use" steps */
.root[style*="--col-primary"]:not(#tw-svelte) .steps-guide { border-radius: 0 0 var(--tw-radius-lg) var(--tw-radius-lg); border-top: 1px solid var(--tw-border); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-step-index { background: var(--tw-surface-2); border-right: 1px solid var(--tw-border); padding: 16px 20px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-step-number {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--tw-ink); color: #fff; font-family: var(--tw-font-display); font-size: 14px; font-weight: 800;
}
.root[style*="--col-primary"]:not(#tw-svelte) .sv-step-content { background: var(--tw-surface); padding: 16px 20px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-step:not(:first-of-type) .sv-step-index,
.root[style*="--col-primary"]:not(#tw-svelte) .sv-step:not(:first-of-type) .sv-step-content { border-top: 1px solid var(--tw-border); }
/* "More Help": the yellow call to action (like "How to enable the console" on legacy pages), not a full-width bar */
.root[style*="--col-primary"]:not(#tw-svelte) .steps-guide > a {
    align-self: flex-start; margin: 4px 20px 20px; padding: 9px 16px; border-radius: var(--tw-radius-sm);
    background: var(--tw-yellow); color: var(--tw-ink); font-size: 14px; font-weight: 700; text-decoration: none;
}
.root[style*="--col-primary"]:not(#tw-svelte) .steps-guide > a:hover { background: var(--tw-yellow-hover); color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .steps-guide > a:focus-visible { box-shadow: var(--tw-ring); }

/* "Jump to command list" sign hanging under the intro */
.root[style*="--col-primary"]:not(#tw-svelte) .hanging-link a {
    background: var(--tw-yellow); color: var(--tw-ink); border-radius: var(--tw-radius-sm); box-shadow: none; text-decoration: none;
    font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 9px 16px;
}
.root[style*="--col-primary"]:not(#tw-svelte) .hanging-link a:hover { filter: none; background: var(--tw-yellow-hover); }
.root[style*="--col-primary"]:not(#tw-svelte) .hanging-link .rope::before,
.root[style*="--col-primary"]:not(#tw-svelte) .hanging-link .rope::after { background-color: var(--tw-border-strong); width: 2px; }

/* ---------- Section links on the left (sticky) */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-quick-links-container { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius); box-shadow: none; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-quick-links-container .bar { background: var(--tw-tint); border-radius: 4px; flex-basis: 4px; width: 4px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-quick-links-container .bar .bar-fill { background: var(--tw-yellow); border-radius: 4px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-quick-links-container .sv-quick-links li .blob { width: 12px; height: 12px; background: var(--tw-yellow); box-shadow: 0 0 0 3px var(--tw-surface); transform: translateY(-50%) translateX(-28px); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-quick-links-container .sv-quick-links li .blob::after { display: none; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-quick-links-container .sv-quick-links li a { color: var(--tw-text-3); font-size: 13px; font-weight: 600; text-decoration: none; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-quick-links-container .sv-quick-links li a:hover { color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-quick-links-container .sv-quick-links li.hit a { color: var(--tw-ink); }

/* ---------- "Most popular" reference table: ink header bar, white rows (like the legacy table view) */
.root[style*="--col-primary"]:not(#tw-svelte) .ref-table-container .ref-title { font-family: var(--tw-font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .ref-table-container table { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); box-shadow: none; overflow: hidden; }
.root[style*="--col-primary"]:not(#tw-svelte) .ref-table-container table thead tr th {
    background: var(--tw-ink); color: #e9e6df; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 13px 20px; border-radius: 0;
}
.root[style*="--col-primary"]:not(#tw-svelte) .ref-table-container tbody tr { border: 0; background: var(--tw-surface); }
.root[style*="--col-primary"]:not(#tw-svelte) .ref-table-container tbody tr:not(:first-of-type) { border-top: 1px solid var(--tw-border); }
.root[style*="--col-primary"]:not(#tw-svelte) .ref-table-container tbody tr:hover { background: var(--tw-surface-2); }
.root[style*="--col-primary"]:not(#tw-svelte) .ref-table-container tbody tr td { padding: 14px 20px; color: var(--tw-text-2); font-size: 14.5px; }
.root[style*="--col-primary"]:not(#tw-svelte) .ref-command { background: transparent; border-right: 1px solid var(--tw-border); }
.root[style*="--col-primary"]:not(#tw-svelte) .compact-command { color: var(--tw-ink); font-size: 15px; font-weight: 600; }
.root[style*="--col-primary"]:not(#tw-svelte) .compact-command > span { font-family: var(--tw-font-mono); }
/* Arguments in a command: the soft yellow chip used everywhere else */
.root[style*="--col-primary"]:not(#tw-svelte) .compact-command .arg,
.root[style*="--col-primary"]:not(#tw-svelte) .sv-container .arg {
    background: var(--tw-yellow-tint-2); color: var(--tw-arg-text); font-family: var(--tw-font); font-size: 11.5px; font-weight: 600;
    line-height: 1.4; padding: 2px 7px; border-radius: 5px; letter-spacing: 0;
}
.root[style*="--col-primary"]:not(#tw-svelte) button.compact-copy-btn {
    background: var(--tw-surface); border: 1px solid var(--tw-border-strong); border-radius: 6px; color: var(--tw-text-2); padding: 3px 8px;
}
.root[style*="--col-primary"]:not(#tw-svelte) button.compact-copy-btn:hover { background: var(--tw-surface-2); border-color: var(--tw-ink); color: var(--tw-ink); }

/* ---------- List controls: search left, view toggle right, on the page (no panel), as on the legacy lists */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter { background: transparent; box-shadow: none; border-radius: 0; padding: 0; gap: 12px; align-items: center; flex-wrap: nowrap; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter .sv-filter-header { flex: 0 0 100%; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter:has(.sv-filter-header) { flex-wrap: wrap; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter .sv-filter-section.sv-grow { order: -1; flex: 1 1 auto; min-width: 0; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter .sv-filter-header ~ .sv-filter-section.sv-grow { order: 0; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter .sv-filter-header ~ .sv-filter-section:not(.sv-grow) { order: 1; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-multi-toggle { background: var(--tw-surface); border: 1px solid var(--tw-border-strong); border-radius: 12px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-multi-toggle .overlay-box { background: var(--tw-ink); border-radius: 8px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-multi-toggle button { color: var(--tw-text-3); font-weight: 600; border-radius: 8px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-multi-toggle button:not(.active):hover { color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-multi-toggle button.active { color: #fff; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-multi-toggle button:focus-visible { box-shadow: var(--tw-ring); }
/* Search: the .tw-search field */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-search {
    background: var(--tw-surface); border: 1px solid var(--tw-border-strong); border-radius: 10px; box-shadow: none; min-height: 52px;
    transition: background-color .15s ease, border-color .15s ease;
}
.root[style*="--col-primary"]:not(#tw-svelte) .sv-search:hover { border-color: var(--tw-input-border); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-search.focus { background: #ece8e0; border-color: #c9c2b3; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-search label { color: var(--tw-text-3); padding-left: 16px; display: flex; align-items: center; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-search input { color: var(--tw-text); font-size: 16px; padding: 12px 14px 12px 12px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-search input::placeholder { color: var(--tw-text-3); opacity: 1; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-search button { color: var(--tw-text-3); border-radius: 8px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-search button:hover { color: var(--tw-ink); }

/* ---------- Discover / card view: command cards */
/* (no overflow: hidden here: the Examples dropdown hangs below the card) */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-list-view .sv-card { border-radius: var(--tw-radius); transition: border-color .15s ease, box-shadow .15s ease; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-list-view .sv-card:hover { border-color: var(--tw-border-strong); box-shadow: var(--tw-lift); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-info-syntax { background: var(--tw-tint); box-shadow: inset 0 0 0 1px var(--tw-border); border-radius: var(--tw-radius-sm); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-syntax .sv-command, .root[style*="--col-primary"]:not(#tw-svelte) .sv-container { font-family: var(--tw-font-mono); color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-container.has-placeholder { font-family: var(--tw-font); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-info-syntax .sv-copy-btn { background: var(--tw-ink); color: #fff; border-radius: 0 var(--tw-radius-sm) var(--tw-radius-sm) 0; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-info-syntax .sv-copy-btn:hover { background: var(--tw-ink-3); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-info-description p { color: var(--tw-text-2); font-size: 14px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-examples .sv-examples-expand-btn {
    background: var(--tw-surface-2); border: 0; border-top: 1px solid var(--tw-border); border-right: 1px solid var(--tw-border);
    border-radius: 0 var(--tw-radius-sm) 0 calc(var(--tw-radius) - 1px); color: var(--tw-ink);
}
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-examples .sv-examples-expand-btn:hover { background: var(--tw-tint); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-examples.expanded .sv-examples-expand-btn { background: var(--tw-tint); border-radius: 0 var(--tw-radius-sm) 0 0; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-list-view .sv-card:has(.sv-command-examples.expanded) { position: relative; z-index: 5; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-examples-dropdown {
    left: -1px; width: calc(100% + 2px); background: var(--tw-surface); border: 1px solid var(--tw-border-strong); border-top: 0;
    border-radius: 0 0 var(--tw-radius) var(--tw-radius); box-shadow: var(--tw-lift);
}
.root[style*="--col-primary"]:not(#tw-svelte) .sv-examples-dropdown-list { background: var(--tw-surface-2); border: 0; border-top: 1px solid var(--tw-border); border-radius: 0; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-examples-dropdown::-webkit-scrollbar-track { background: var(--tw-tint); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-examples-dropdown::-webkit-scrollbar-thumb { background: var(--tw-border-strong); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-examples .sv-link { color: var(--tw-text-2); text-decoration: none; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-examples .sv-link:hover { color: var(--tw-ink); text-decoration: underline; text-decoration-color: var(--tw-yellow); }

/* ---------- Table view: ink header bar, white row cards */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-table-view > thead > tr > th {
    background: var(--tw-ink); color: #e9e6df; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 13px 20px;
}
.root[style*="--col-primary"]:not(#tw-svelte) .sv-table-view > thead > tr > th:first-of-type { border-radius: var(--tw-radius) 0 0 var(--tw-radius); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-table-view > thead > tr > th:nth-last-of-type(2) { border-radius: 0 var(--tw-radius) var(--tw-radius) 0; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-table-view > tbody > tr { background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius); box-shadow: none; overflow: hidden; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-table-view > tbody > tr td.sv-syntax-cell {
    background: var(--tw-surface-2); color: var(--tw-ink); border: 0; border-bottom: 1px solid var(--tw-border); border-radius: 0; margin: 0 0 -15px; flex-basis: 100%; width: 100%;
}
.root[style*="--col-primary"]:not(#tw-svelte) .sv-table-view > tbody > tr td.sv-command-name .sv-command-name-text { color: var(--tw-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--tw-yellow); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-table-view > tbody > tr td.sv-command-name .sv-command-name-text:hover { text-decoration-color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-syntax-container .sv-syntax-btns button {
    background: var(--tw-surface); border: 1px solid var(--tw-border-strong); border-radius: 6px; color: var(--tw-text-2); font-size: 11.5px; font-weight: 600;
}
.root[style*="--col-primary"]:not(#tw-svelte) .sv-syntax-container .sv-syntax-btns button:hover { border-color: var(--tw-ink); color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-command-syntax svg { color: var(--tw-text-3); }

/* ---------- Long list: fade at the cut, then a calm "See all commands" button (no lavender, no bubbles) */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-list-view.clip-list::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(246, 244, 239, 0), var(--tw-bg));
}
.root[style*="--col-primary"]:not(#tw-svelte) button.sv-expand-btn {
    background: var(--tw-surface); background-image: none; border: 1px solid var(--tw-border-strong); border-radius: var(--tw-radius); padding: 14px 20px; color: var(--tw-ink);
}
.root[style*="--col-primary"]:not(#tw-svelte) button.sv-expand-btn:hover { background: var(--tw-ink); border-color: var(--tw-ink); color: #fff; }
.root[style*="--col-primary"]:not(#tw-svelte) button.sv-expand-btn span { color: inherit; font-size: 15px; font-weight: 600; }
.root[style*="--col-primary"]:not(#tw-svelte) button.sv-expand-btn .underlay { display: none; }
.root[style*="--col-primary"]:not(#tw-svelte) button.sv-expand-btn:focus-visible { box-shadow: var(--tw-ring); }

/* ---------- Guide links, tabs and command builder (some games) */
.root[style*="--col-primary"]:not(#tw-svelte) .compact-guides-list a { background: var(--tw-surface); box-shadow: none; border: 1px solid var(--tw-border); border-radius: var(--tw-radius); color: var(--tw-ink); text-decoration: none; }
.root[style*="--col-primary"]:not(#tw-svelte) .compact-guides-list a:hover { background: var(--tw-surface-2); border-color: var(--tw-border-strong); }
.root[style*="--col-primary"]:not(#tw-svelte) .compact-guides-list a .compact-info .title { color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .compact-guides-list a .compact-info .subtitle { color: var(--tw-text-3); }
.root[style*="--col-primary"]:not(#tw-svelte) .compact-guides .compact-guides-title { color: var(--tw-text-3); font-size: 12px; letter-spacing: 0.08em; }
.root[style*="--col-primary"]:not(#tw-svelte) .tabs { border-color: var(--tw-border); }
.root[style*="--col-primary"]:not(#tw-svelte) .tabs li button { background: var(--tw-surface-2); color: var(--tw-text-2); }
.root[style*="--col-primary"]:not(#tw-svelte) .tabs li button.active { background: var(--tw-ink); color: #fff; }
.root[style*="--col-primary"]:not(#tw-svelte) .tabs li button span { font-size: 12px; letter-spacing: 0.08em; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-cg { background: var(--tw-surface-2); border: 1px solid var(--tw-border); border-radius: 0 0 var(--tw-radius) var(--tw-radius); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-cg-command { background: var(--tw-surface); border-top: 1px solid var(--tw-border); border-radius: 0 0 var(--tw-radius) var(--tw-radius); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-cg-modifier { background: var(--tw-surface); box-shadow: none; border: 1px solid var(--tw-border); border-radius: var(--tw-radius-sm); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-cg-modifier-label { color: var(--tw-text-3); border-color: var(--tw-border); }
.root[style*="--col-primary"]:not(#tw-svelte) button.sv-btn, .root[style*="--col-primary"]:not(#tw-svelte) a.sv-btn { border-radius: var(--tw-radius-sm); text-decoration: none; }
.root[style*="--col-primary"]:not(#tw-svelte) button.sv-btn.sv-neutral, .root[style*="--col-primary"]:not(#tw-svelte) a.sv-btn.sv-neutral {
    background: var(--tw-surface); box-shadow: none; border: 1px solid var(--tw-border-strong); color: var(--tw-ink);
}
.root[style*="--col-primary"]:not(#tw-svelte) .sv-badge { border-radius: 6px; font-family: var(--tw-font); }

/* Tooltips from the Svelte list (argument help, "Quick tip") in the tw-tip look */
.tippy-box[data-theme='markdown'] { background-color: var(--tw-ink); border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); font-family: var(--tw-font); }
.tippy-box[data-theme='markdown'] .tippy-content a { color: #fff !important; text-decoration: underline; text-decoration-color: var(--tw-yellow); }
.tippy-box[data-theme='markdown'] > .tippy-arrow { color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .help-tooltip { background: var(--tw-ink); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); }
.root[style*="--col-primary"]:not(#tw-svelte) .help-tooltip .help-header .title { font-size: 12px; letter-spacing: 0.08em; color: var(--tw-yellow); }

@media (max-width: 767px) {
    .root[style*="--col-primary"]:not(#tw-svelte) .jumbo .main .info { padding: 20px 20px 16px; }
    .root[style*="--col-primary"]:not(#tw-svelte) .jumbo .main .info .title { font-size: 26px; }
    .root[style*="--col-primary"]:not(#tw-svelte) ul.silo-list { padding: 0 20px 20px; }
    .root[style*="--col-primary"]:not(#tw-svelte) .sv-card-header { padding: 20px 20px 0; }
    .root[style*="--col-primary"]:not(#tw-svelte) .sv-card .sv-card-content { padding: 10px 20px 20px; }
    .root[style*="--col-primary"]:not(#tw-svelte) .sv-filter { flex-wrap: wrap; }
    .root[style*="--col-primary"]:not(#tw-svelte) .sv-filter .sv-filter-section { flex: 1 1 100%; justify-content: flex-start; }
    .root[style*="--col-primary"]:not(#tw-svelte) .sv-search input { min-width: 0; }
}
@media (max-width: 575px) {
    .root[style*="--col-primary"]:not(#tw-svelte) ul.silo-list { justify-content: center; }
    .root[style*="--col-primary"]:not(#tw-svelte) ul.silo-list li a { white-space: normal; }
}

/* =====================================================================================================
 * Round 2 fixes, 29 Nov 2026 (staging review: AUDIT-games, AUDIT-sub1, AUDIT-sub2, AUDIT-site)
 * ===================================================================================================== */

/* ---------- Tables never widen the page: long links and IDs (privacy browser list, CK2 argument links,
 * Factorio alert names) break inside the cell instead of pushing the card wider */
.table td { overflow-wrap: anywhere; }
.table td:first-child { overflow-wrap: break-word; }
/* (not on the wide list tables: there it would let the browser squeeze the name column and split names) */
@media (min-width: 768px) { #tableView .table td { overflow-wrap: normal; } }
.table + p { margin-top: 16px; }

/* ---------- Copy chips wrap instead of running out of their card (Witcher 3 spawn/settime with 4 arguments,
 * long CK3 event IDs on phones). Text and argument badges wrap as whole pieces. */
/* (!important: the bundle sets .badge-command { overflow-wrap: break-word !important }, which lets a long ID push the icon out) */
.badge.tw-chip { white-space: normal; overflow-wrap: anywhere !important; }
.badge.tw-chip:has(> .badge) { flex-wrap: wrap; row-gap: 4px; overflow-wrap: break-word !important; }
/* Table view: the leading command name never breaks letter by letter ("spawn(" stacked); arguments wrap below it.
 * IDs only break when a whole ID cannot fit, so the column takes the room it needs first. */
.tw-code.tw-chip--table { flex-wrap: wrap; row-gap: 4px; overflow-wrap: break-word; }
@media (max-width: 767px) { .tw-code.tw-chip--table { overflow-wrap: anywhere; } }

/* ---------- Per-game page titles written as a bare <h1> (kotor/warp, l4d2/give, l4d2/map, spore, xcom2/additem,
 * 7dtd buff/givequest/spawnentity): same as h1.card-title */
.card-body > h1:not(.card-title) { font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 4px; overflow-wrap: break-word; }
@media (max-width: 767px) { .card-body > h1:not(.card-title) { font-size: 26px; } }

/* ---------- XCOM 2 GiveFacility: the Avenger slot grid inside a card view argument stays a grid */
.card-view table.facility-table { display: table; width: 100%; background: transparent; border: 0; border-radius: 0; padding: 0; margin: 8px 0 2px; border-collapse: collapse; }
.card-view table.facility-table tbody { display: table-row-group; }
.card-view table.facility-table tr { display: table-row; padding: 0; border: 0; }
.card-view table.facility-table { table-layout: fixed; }
.card-view table.facility-table td, .card-view table.facility-table td:first-child {
    overflow-wrap: normal; hyphens: auto;
    display: table-cell; padding: 6px 4px !important; border: 1px solid var(--tw-border-strong) !important; background: var(--tw-surface);
    text-align: center; vertical-align: middle; font-size: 12.5px; font-weight: 500; color: var(--tw-text-2); margin: 0; line-height: 1.35;
}

/* ---------- Game blog index (blog.min.css): hero card and search in the Tweak card style, no soft shadow */
.pg-blog__header { box-shadow: none; border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); }
.rd-filter__search { box-shadow: none; border: 1px solid var(--tw-border-strong); border-radius: 10px; }
.rd-filter__search:focus-within { border-color: #c9c2b3; background-color: #ece8e0; }

/* ---------- Bylines: wrap like normal text; no dangling separator when the date drops to its own line */
.tw-byline > span { min-width: 0; }
.tw-post-card .tw-byline__sep { display: none; }
@media (max-width: 575px) { .tw-post .tw-byline__sep { display: none; } }

/* ---------- Bootstrap alerts and red badges in calm Tweak variants (DS3 warnings, Imperator, Victoria 2 DLC) */
.alert-danger, .alert-warning { color: var(--tw-text); border-radius: var(--tw-radius-sm); border-width: 1px 1px 1px 4px; border-style: solid; }
.alert-danger { background-color: #fdf1f0; border-color: #f4cdc9 #f4cdc9 #f4cdc9 #d92d20; }
.alert-warning { background-color: var(--tw-yellow-tint); border-color: var(--tw-yellow-tint-2) var(--tw-yellow-tint-2) var(--tw-yellow-tint-2) var(--tw-yellow); }
.alert-danger a, .alert-warning a { color: var(--tw-ink); }
.badge-danger { background-color: #fde8e6; color: #9b1c13; }
/* Buttons inside cards wrap on phones instead of running past the card edge */
@media (max-width: 767px) { .card-body .btn { white-space: normal; max-width: 100%; } }

/* ---------- Svelte game hubs, round 2 */
/* "Code" list type (/aoe /aoe2 /aoe3 /aom): cheat cards like the command cards on the other hubs */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code {
    background: var(--tw-surface); border: 1px solid var(--tw-border); border-radius: var(--tw-radius); box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code:hover { border-color: var(--tw-border-strong); box-shadow: var(--tw-lift); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code-syntax { background: var(--tw-tint); border-bottom: 1px solid var(--tw-border); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code-syntax-code { font-family: var(--tw-font-mono); font-size: 15px; font-weight: 600; color: var(--tw-ink); letter-spacing: 0; outline: none; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code-syntax-copy,
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code-syntax-copy:hover { margin-left: 0; padding: 10px 16px; transition: background-color .15s ease; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code-syntax-copy:hover { background-color: var(--tw-ink-3) !important; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code-syntax-copy:focus-visible { box-shadow: inset 0 0 0 2px var(--tw-yellow); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code-info { background: transparent; border-top: 0; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code-info .sv-markdown p { color: var(--tw-text-2); font-size: 14.5px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code-info .sv-badge-list .sv-badge { border-radius: 6px; font-weight: 600; }
/* Category filter chips: the quiet related-page chips, ink border and soft yellow when selected */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter-tags li button {
    background: var(--tw-surface); border: 1px solid var(--tw-border-strong); border-radius: var(--tw-radius-sm); color: var(--tw-text); font-size: 13px; font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter-tags li button svg { color: var(--tw-text-3); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter-tags li button .box { background: var(--tw-surface); border: 1.5px solid var(--tw-border-strong); border-radius: 3px; width: 13px; height: 13px; flex-basis: 13px; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter-tags li button:not(.active):hover { background: var(--tw-surface-2); border-color: var(--tw-ink); color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter-tags li button.active { background: var(--tw-yellow-tint); border-color: var(--tw-ink); color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter-tags li button.active svg { color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter-tags li button.active .box { background: var(--tw-ink); border-color: var(--tw-ink); }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-filter-tags li button:focus-visible { box-shadow: var(--tw-ring); }

/* "Quick tip" bubble: shown below the first command instead of on top of the section heading.
 * It is rendered in an overlay outside the Svelte root, so it is scoped to body with the same :not(#id) lift. */
body .help-tooltip:not(#tw-svelte) { transform: translateX(-50%) translateY(calc(100% + 50px)); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); }
body .help-tooltip:not(#tw-svelte) .help-header .title { font-size: 12px; letter-spacing: 0.08em; color: var(--tw-yellow); }
body .help-tooltip:not(#tw-svelte)::after { bottom: auto; top: -8px; border-top: 0; border-bottom: 8px solid var(--tw-ink); }

/* Section links: the progress bar fill shows where you are; the marker dot was clipped by the box edge */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-quick-links-container .sv-quick-links li .blob { display: none; }

/* Alignment with the legacy lists: left-aligned descriptions, copy buttons side by side, no rope lines */
.root[style*="--col-primary"]:not(#tw-svelte) .ref-table-container .ref-description { justify-content: flex-start; text-align: left; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-table-view > tbody > tr > td { text-align: left; }
.root[style*="--col-primary"]:not(#tw-svelte) .sv-syntax-container .sv-syntax-btns { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px; }
.root[style*="--col-primary"]:not(#tw-svelte) .hanging-link .rope { visibility: hidden; }

/* Phones: rows stack (command above description), so the two-column header bar and the column divider go */
@media (max-width: 575px) {
    .root[style*="--col-primary"]:not(#tw-svelte) .ref-table-container table thead,
    .root[style*="--col-primary"]:not(#tw-svelte) .sv-table-view > thead { display: none; }
    .root[style*="--col-primary"]:not(#tw-svelte) .ref-command { border-right: 0; }
    .root[style*="--col-primary"]:not(#tw-svelte) .sv-syntax-container .sv-syntax-btns { justify-content: flex-start; }
}

/* =====================================================================================================
 * Dev fixes, 30 Nov 2026 (Dan's staging screenshots)
 * ===================================================================================================== */

/* ---------- Game hero (Svelte pages): the character image sits on the card's bottom edge, as on the old site,
 * instead of floating above the related-page chips. The card becomes a two-column grid (.main's children join it),
 * so the image keeps its own column and the stripes run the full card height behind it. */
@media (min-width: 992px) {
    .root[style*="--col-primary"]:not(#tw-svelte) .jumbo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; }
    .root[style*="--col-primary"]:not(#tw-svelte) .jumbo > .main { display: contents; }
    .root[style*="--col-primary"]:not(#tw-svelte) .jumbo > .main > .info { grid-column: 1; grid-row: 1; position: relative; z-index: 1; }
    .root[style*="--col-primary"]:not(#tw-svelte) .jumbo > ul.silo-list { grid-column: 1; grid-row: 2; align-self: start; position: relative; z-index: 1; }
    .root[style*="--col-primary"]:not(#tw-svelte) .jumbo > .main > .image-container { grid-column: 2; grid-row: 1 / span 2; }
    .root[style*="--col-primary"]:not(#tw-svelte) .jumbo > .main > .image-container:not(.center) { align-self: end; height: auto; }
    .root[style*="--col-primary"]:not(#tw-svelte) .jumbo > .main > .image-container:not(.center) img { display: block; }
}

/* ---------- Code cards (AoE-style lists): the code itself copies on click */
.root[style*="--col-primary"]:not(#tw-svelte) .sv-code .sv-code-syntax-code { cursor: pointer; }

/* ---------- "More Help" under the how-to steps: a full-width yellow bar along the card's bottom edge, as on the old site */
.root[style*="--col-primary"]:not(#tw-svelte) .steps-guide > a {
    align-self: stretch; margin: 0; padding: 12px 20px; border-radius: 0 0 var(--tw-radius-lg) var(--tw-radius-lg);
    display: flex; justify-content: center; align-items: center; gap: 6px; border-top: 1px solid var(--tw-border);
}

/* ---------- About timeline: a milestone title can link to its post */
a.tw-timeline__title { text-decoration: underline; text-decoration-color: var(--tw-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.tw-timeline__title:hover { color: var(--tw-ink); text-decoration-color: var(--tw-ink); }
a.tw-timeline__title:focus-visible { box-shadow: var(--tw-ring); border-radius: 4px; }
