:root {
    --bg: #070604;
    --ink: #11100d;
    --panel: rgba(20, 17, 13, .94);
    --panel-2: rgba(27, 22, 16, .92);
    --line: rgba(199, 151, 86, .24);
    --line-strong: rgba(218, 170, 101, .42);
    --text: #efe1c6;
    --muted: #bca78a;
    --gold: #c99a5b;
    --gold-2: #e1bd82;
    --danger: #d45b5b;
    --success: #8bcf85;
    --nri: #9a62ee;
    --wargame: #79c85b;
    --boardgame: #30bfe8;
    --mafia: #e34d4d;
    --shadow: 0 22px 70px rgba(0, 0, 0, .5);
    --radius: 6px;
    --font: Georgia, 'Times New Roman', serif;
    --ui: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 52% -12%, rgba(143, 101, 43, .16), transparent 38%),
        radial-gradient(circle at 100% 0%, rgba(95, 63, 30, .12), transparent 34%),
        linear-gradient(90deg, rgba(5, 4, 3, .72), rgba(7, 6, 4, .54) 48%, rgba(5, 5, 4, .78)),
        url("../images/bg_main_texture.png");
    background-size: auto, auto, auto, cover;
    background-position: center;
    background-attachment: fixed;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,.45), transparent 18%, transparent 82%, rgba(0,0,0,.32)),
        radial-gradient(circle at center, transparent 58%, rgba(0,0,0,.5));
    z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; color: #f2d9ad; }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 25px; line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.15; }

.app-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 100vh;
}
.sidebar {
    grid-row: 1 / span 2;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: 22px 0 18px;
    overflow: visible;
    background-color: #110b06;
    background-image:
        linear-gradient(180deg, rgba(12, 8, 5, .2), rgba(15, 9, 5, .38)),
        url("../images/sidebar_panel.png"),
        url("../images/bg_sidebar_texture.png");
    background-size: auto, 100% 100%, cover;
    background-position: center top;
    border-right: 1px solid rgba(211, 157, 91, .28);
    box-shadow: inset -24px 0 45px rgba(0,0,0,.28);
}
.brand {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 0 16px 18px;
    text-align: center;
    color: #ead0a2;
    isolation: isolate;
}
.brand::after {
    content: "";
    position: absolute;
    left: calc(50% - 23px);
    top: 42px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle, rgba(255, 245, 165, 1) 0 18%, rgba(255, 117, 23, .96) 34%, rgba(180, 21, 8, .65) 55%, transparent 72%);
    filter: blur(.2px) drop-shadow(0 0 8px rgba(255, 84, 13, .95)) drop-shadow(0 0 16px rgba(255, 158, 45, .72));
    transform: translate(-50%, -50%) scale(.72);
    z-index: 2;
}
.brand:hover::after,
.brand:focus-visible::after {
    animation: dragon-eye-burn 1.08s ease-in-out infinite alternate;
    opacity: 1;
}
.brand-logo {
    width: min(196px, 100%);
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 24px rgba(0,0,0,.55));
}
.brand-subtitle {
    display: block;
    margin-top: -4px;
    color: #c7ad87;
    font-size: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,.75);
}

@keyframes dragon-eye-burn {
    0% {
        opacity: .62;
        transform: translate(-50%, -50%) scale(.74);
        box-shadow: 0 0 6px rgba(255, 71, 8, .7);
    }
    52% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.18);
        box-shadow: 0 0 18px rgba(255, 98, 12, .88), 0 0 30px rgba(245, 170, 52, .34);
    }
    100% {
        opacity: .84;
        transform: translate(-50%, -50%) scale(.95);
        box-shadow: 0 0 12px rgba(255, 143, 31, .78);
    }
}

.side-nav {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 7px;
    margin-top: 2px;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 12px;
}
.side-nav a {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 18px 0 34px;
    color: #d7c1a0;
    font-size: 15px;
    line-height: 1.12;
    text-transform: uppercase;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
    border: 0;
    background-image: url("../images/sidebar_menu_item_default.png");
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    transition: color .18s ease, filter .18s ease, transform .18s ease;
}
.side-nav a span {
    width: 24px;
    color: #d9b57b;
    text-align: center;
    font-size: 22px;
    line-height: 1;
}
.side-nav a:hover,
.side-nav a.active {
    color: #ffe2ad;
    filter: drop-shadow(0 0 10px rgba(216, 139, 48, .35));
}
.side-nav a:hover {
    background-image: url("../images/sidebar_menu_item_hover.png");
}
.side-nav a.active {
    background-image: url("../images/sidebar_menu_item_active.png");
}
.side-nav a.active::after {
    display: none;
}

.mascot-card {
    position: relative;
    z-index: 1;
    min-height: 320px;
    margin: auto 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--radius);
    overflow: visible;
    border: 0;
    background: radial-gradient(circle at 50% 78%, rgba(177, 99, 42, .22), transparent 58%);
}
.mascot-bubble {
    position: relative;
    z-index: 2;
    margin: 12px;
    padding: 12px 13px;
    border-radius: 5px;
    background: #e8d4aa;
    color: #3b2817;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,.28);
}
.mascot-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 18px;
    height: 18px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
}
.mascot-img {
    width: 100%;
    display: block;
    max-height: 260px;
    object-fit: contain;
    object-position: bottom center;
    margin: -6px auto -10px;
    transform: none;
    transform-origin: bottom center;
    filter: drop-shadow(0 18px 24px rgba(0,0,0,.62));
}

.main-area {
    grid-column: 2;
    min-width: 0;
    padding: 22px 24px 32px;
}
.site-footer {
    grid-column: 2;
    max-width: 1480px;
    width: calc(100% - 48px);
    margin: -18px auto 26px;
    color: rgba(216, 194, 158, .68);
    font-size: 13px;
}
.site-footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.top-action-bar {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1480px;
    width: calc(100% - 48px);
    min-height: 64px;
    margin: 24px auto 0;
    padding: 10px 12px 10px 18px;
    border: 1px solid rgba(218, 170, 101, .3);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(34, 25, 16, .92), rgba(12, 10, 8, .94)),
        radial-gradient(circle at 12% 0%, rgba(213, 140, 58, .18), transparent 36%);
    box-shadow: 0 16px 42px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
}
.top-action-toggle {
    display: none;
}
.mobile-menu-toggle {
    display: none;
}
.mobile-menu-backdrop {
    display: none;
}
.top-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-width: 0;
}
.top-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}
.top-action-buttons button,
.top-action-buttons a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 18px;
    border: 0;
    border-right: 1px solid rgba(218, 170, 101, .16);
    border-radius: 0;
    color: #e8cf9f;
    background: transparent;
    font-family: var(--ui);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: .72;
    cursor: not-allowed;
}
.top-action-buttons button:not(:disabled),
.top-action-buttons a {
    opacity: 1;
    cursor: pointer;
}
.top-action-buttons button:not(:disabled):hover,
.top-action-buttons button:not(:disabled):focus-visible,
.top-action-buttons a:hover,
.top-action-buttons a:focus-visible {
    color: #fff0c9;
    background: radial-gradient(circle at 50% 50%, rgba(180, 107, 40, .16), transparent 68%);
}
.top-action-buttons > *::before {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #e0a85a;
    font-size: 20px;
    line-height: 1;
    text-shadow: 0 0 12px rgba(221, 151, 69, .35);
}
.top-action-buttons > :nth-child(1)::before { content: "▧"; }
.top-action-buttons > :nth-child(2)::before { content: "♟"; }
.top-action-buttons > :nth-child(3)::before { content: "▣"; }
.top-action-buttons > :nth-child(4)::before { content: "♫"; }
.top-action-buttons > :last-child {
    border-right: 0;
}
.top-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(280px, 38vw);
    min-height: 44px;
    padding: 5px 12px 5px 5px;
    border: 1px solid rgba(226, 190, 111, .28);
    border-radius: 999px;
    background: rgba(10, 8, 6, .55);
    color: #efd8af;
    font-family: var(--ui);
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
}
.top-profile span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-profile-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 50%;
    border: 1px solid rgba(244, 210, 143, .55);
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 233, 177, .58), transparent 26%),
        radial-gradient(circle, rgba(159, 96, 42, .96), rgba(40, 25, 14, .98));
    color: #fff1ca;
    box-shadow: 0 0 0 3px rgba(213, 162, 93, .1);
    font-size: 15px;
    text-transform: uppercase;
    overflow: hidden;
}
.top-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.version-badge {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: auto;
    top: auto;
    z-index: 100;
    min-width: 58px;
    padding: 7px 10px;
    border: 1px solid rgba(218, 170, 101, .38);
    border-radius: var(--radius);
    color: #f0d6a8;
    background: linear-gradient(180deg, rgba(31,24,16,.92), rgba(11,9,7,.92));
    box-shadow: 0 10px 28px rgba(0,0,0,.38);
    font-family: var(--ui);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.version-badge:hover {
    color: #fff0ca;
    border-color: rgba(232, 187, 116, .66);
    box-shadow: 0 0 18px rgba(218, 142, 49, .25), 0 10px 28px rgba(0,0,0,.38);
}
.layout-three {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    max-width: 1480px;
    margin: 0 auto;
}
.games-column { min-width: 0; }
.hero-row,
.section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}
.hero-row > div:first-child { min-width: 0; }
.top-location {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    color: #ddc49c;
    white-space: nowrap;
}
.top-location span { color: var(--gold-2); }
.top-location i {
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}
.muted,
.lead { color: var(--muted); }
.lead {
    font-size: 16px;
    line-height: 1.55;
    margin: 8px 0 22px;
}

.top-filters {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin: 0 0 14px;
}
.top-filters.single-line { grid-template-columns: minmax(240px, 1fr) auto auto; }
.filter-control {
    display: flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid rgba(204, 153, 89, .35);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(22,18,13,.95), rgba(13,11,8,.95));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.filter-control > span {
    flex: 0 0 38px;
    color: #d9b57b;
    text-align: center;
    font-size: 18px;
}
input,
select,
textarea {
    width: 100%;
    color: var(--text);
    background: rgba(15, 13, 10, .88);
    border: 1px solid rgba(204, 153, 89, .28);
    border-radius: var(--radius);
    padding: 11px 13px;
    outline: none;
}
input[type="date"],
input[type="datetime-local"] {
    color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    padding: 6px;
    border-radius: 50%;
    background-color: rgba(226, 190, 111, .9);
    cursor: pointer;
    filter: sepia(1) saturate(1.4);
}
input[type="file"] {
    padding: 10px;
    color: #d9c4a2;
}
input[type="file"]::file-selector-button {
    min-height: 36px;
    margin-right: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(218, 170, 101, .38);
    border-radius: var(--radius);
    color: #f0d8ad;
    background: linear-gradient(180deg, rgba(62, 43, 23, .94), rgba(22, 15, 9, .94));
    font-family: var(--ui);
    font-weight: 800;
    cursor: pointer;
}
.filter-control input,
.filter-control select {
    min-height: 36px;
    padding: 0 33px 0 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
}
select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #d5b47c 50%),
        linear-gradient(135deg, #d5b47c 50%, transparent 50%),
        linear-gradient(180deg, rgba(36, 26, 16, .9), rgba(12, 10, 8, .94));
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px, 100% 100%;
    background-repeat: no-repeat;
}
select option,
select optgroup {
    color: #f3dfba;
    background-color: #0d0805;
}
select option:checked {
    color: #fff3d0;
    background-color: #3a210f;
}
.filter-control.has-site-combobox {
    position: relative;
    overflow: visible;
    z-index: 30;
}
.site-combobox-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 38px;
    right: 8px;
    z-index: 120;
    max-height: 230px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(213, 156, 79, .48);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(25, 15, 8, .98), rgba(5, 4, 3, .98)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 360px 240px;
    box-shadow:
        0 18px 32px rgba(0, 0, 0, .56),
        inset 0 0 0 1px rgba(255, 221, 144, .05);
}
.site-combobox-menu[hidden] {
    display: none;
}
.site-combobox-menu button,
.site-combobox-empty {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    color: #efd7ab;
    background: transparent;
    font-family: var(--ui);
    font-weight: 700;
    text-align: left;
}
.site-combobox-menu button {
    cursor: pointer;
}
.site-combobox-menu button:hover,
.site-combobox-menu button:focus-visible,
.site-combobox-menu button.is-active {
    color: #1c1007;
    background:
        linear-gradient(180deg, rgba(232, 179, 96, .96), rgba(166, 100, 35, .96)),
        url("../images/ui/button-gold.png");
    background-size: 100% 100%, 100% 100%;
    outline: none;
}
.site-combobox-empty {
    color: rgba(239, 215, 171, .62);
}
textarea { resize: vertical; }
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(225, 187, 122, .58);
    box-shadow: 0 0 0 3px rgba(202, 154, 91, .12);
}
.filter-submit { display: none !important; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(213, 162, 93, .38);
    border-radius: var(--radius);
    color: #eed7af;
    background: linear-gradient(180deg, rgba(40,30,18,.9), rgba(19,15,10,.9));
    cursor: pointer;
    white-space: nowrap;
}
.button.primary {
    background: linear-gradient(180deg, #d5a35f, #8e5b27);
    color: #160f08;
    font-weight: 800;
}
.button.ghost { background: rgba(16, 14, 10, .52); }
.button.small {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 13px;
}

.game-list {
    display: grid;
    gap: 10px;
}
.game-card {
    --type-color: var(--gold);
    display: grid;
    grid-template-columns: 84px minmax(245px, 31%) minmax(250px, 1fr) 300px;
    grid-template-areas: "type banner body meta";
    min-height: 174px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(211, 158, 93, .28);
    background:
        linear-gradient(90deg, rgba(22,21,19,.98), rgba(13,13,12,.98)),
        radial-gradient(circle at 15% 20%, rgba(186,128,62,.12), transparent 40%);
    box-shadow: 0 14px 42px rgba(0,0,0,.36);
}
.game-card.type-nri { --type-color: var(--nri); }
.game-card.type-wargame { --type-color: var(--wargame); }
.game-card.type-boardgame { --type-color: var(--boardgame); }
.game-card.type-mafia { --type-color: var(--mafia); }
.type-panel {
    grid-area: type;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 12px 8px;
    color: var(--type-color);
    border-left: 5px solid var(--type-color);
    border-right: 1px solid rgba(255,255,255,.06);
    background:
        linear-gradient(90deg, rgba(95, 59, 26, .24), rgba(18,16,13,.85)),
        rgba(20,18,15,.86);
}
.game-card.type-nri .type-panel { background: linear-gradient(90deg, rgba(82, 43, 137, .62), rgba(25, 17, 36, .86)); }
.game-card.type-wargame .type-panel { background: linear-gradient(90deg, rgba(49, 91, 37, .62), rgba(17, 31, 15, .86)); }
.game-card.type-boardgame .type-panel { background: linear-gradient(90deg, rgba(24, 91, 118, .62), rgba(12, 29, 38, .86)); }
.game-card.type-mafia .type-panel { background: linear-gradient(90deg, rgba(118, 38, 38, .62), rgba(39, 15, 14, .86)); }
.type-symbol {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid currentColor;
    box-shadow: inset 0 0 14px rgba(255,255,255,.08);
    font-size: 25px;
    line-height: 1;
}
.type-label {
    font-family: var(--ui);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
.game-banner {
    grid-area: banner;
    display: block;
    position: relative;
    min-height: 174px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}
.game-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 70%, rgba(12,12,11,.9)),
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.24));
    transition: background .18s ease;
}
.game-banner:hover,
.game-banner:focus-visible {
    filter: saturate(1.12) brightness(1.08);
}
.game-banner:hover::after,
.game-banner:focus-visible::after {
    background:
        linear-gradient(90deg, transparent 64%, rgba(12,12,11,.78)),
        linear-gradient(180deg, rgba(255,255,255,.09), rgba(0,0,0,.16));
}
.game-body {
    grid-area: body;
    min-width: 0;
    padding: 24px 22px 18px;
}
.game-title-row {
    display: grid;
    gap: 9px;
}
.game-title-row h2 {
    min-width: 0;
    color: #f4e6ce;
    font-size: 25px;
    line-height: 1.08;
}
.game-body p {
    max-width: 46ch;
    margin: 12px 0 0;
    color: #d9c7aa;
    font-size: 15px;
    line-height: 1.45;
}
.game-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}
.role-choice-form {
    display: inline-flex;
    max-width: 100%;
}
.game-roles span,
.role-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 32px;
    padding: 5px 8px;
    border: 1px solid rgba(218, 170, 101, .34);
    border-radius: 5px;
    color: #efd0a0;
    background: rgba(36, 25, 14, .74);
    font-family: var(--ui);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.role-choice {
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.role-choice:hover,
.role-choice:focus-visible {
    border-color: rgba(238, 199, 128, .72);
    color: #fff0c8;
    background: rgba(76, 47, 19, .88);
    transform: translateY(-1px);
}
.role-choice.selected {
    border-color: rgba(139, 207, 133, .55);
    color: #ddffd8;
    background: rgba(47, 91, 38, .72);
}
.role-choice.taken,
.role-choice.disabled {
    cursor: not-allowed;
    opacity: .58;
    color: rgba(226, 204, 174, .74);
    background: rgba(24, 20, 16, .64);
}
.role-choice.taken {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.role-hint {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px dashed rgba(218, 170, 101, .34);
    border-radius: 5px;
    color: var(--muted);
    font-family: var(--ui);
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
}
.pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 4px 9px;
    border-radius: 5px;
    font-family: var(--ui);
    font-size: 12px;
    font-weight: 700;
    color: #11100c;
    background: rgba(255,255,255,.08);
}
.type-pill.type-nri { background-color: #6f48b8; color: #fff; }
.type-pill.type-wargame { background-color: #5d943f; color: #10200d; }
.type-pill.type-boardgame { background-color: #238bb0; color: #071922; }
.type-pill.type-mafia { background-color: #a93c38; color: #fff; }
.pill.type-nri { background-color: #6f48b8; color: #fff; }
.pill.type-wargame { background-color: #5d943f; color: #10200d; }
.pill.type-boardgame { background-color: #238bb0; color: #071922; }
.pill.type-mafia { background-color: #a93c38; color: #fff; }
.game-meta {
    grid-area: meta;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    padding: 22px 48px 16px 20px;
    border-left: 1px solid rgba(213, 162, 93, .18);
    background: linear-gradient(90deg, rgba(9,9,8,.24), rgba(15,14,13,.7));
}
.bookmark {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 24px;
    height: 28px;
    padding: 0;
    border: 0;
    color: #d5bd93;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}
.master-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 33px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(220, 177, 111, .14);
}
.avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    border-radius: 50%;
    border: 1px solid rgba(222, 179, 113, .45);
    background: radial-gradient(circle, rgba(197, 134, 66, .5), rgba(31, 23, 16, .95));
    color: #f5ddad;
    font-family: var(--ui);
    font-weight: 800;
}
.master-line strong,
.meta-line strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #ead8b8;
    font-size: 15px;
    font-weight: 500;
}
.meta-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.meta-line span {
    width: 17px;
    flex: 0 0 17px;
    color: #e2bd80;
    text-align: center;
    line-height: 1;
}
.capacity {
    height: 5px;
    margin: 2px 0 0 27px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}
.capacity i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--type-color), #f2d79e);
}
.join-form { margin-top: auto; }
.join-form .button { width: 100%; }
button:disabled { opacity: .5; cursor: not-allowed; }

.right-panel {
    position: sticky;
    top: 22px;
    align-self: start;
}
.date-panel,
.content-card {
    border: 1px solid rgba(211, 158, 93, .28);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(27,22,16,.96), rgba(12,10,8,.96)),
        radial-gradient(circle at 50% 0%, rgba(150, 91, 38, .14), transparent 42%);
    box-shadow: var(--shadow);
}
.date-panel {
    padding: 24px 22px 18px;
    background-color: #120d08;
    background-image:
        linear-gradient(180deg, rgba(12,10,8,.72), rgba(12,10,8,.86)),
        url("../images/bg_right_panel_texture.png");
    background-size: auto, 100% 100%;
    background-position: center;
}
.date-panel h2 {
    position: relative;
    margin-bottom: 18px;
    text-align: center;
    font-size: 28px;
}
.date-panel h2::after {
    content: "";
    display: block;
    width: 155px;
    height: 1px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, transparent, rgba(222,176,109,.44), transparent);
}
.calendar {
    padding: 6px 4px 20px;
    border-bottom: 1px solid rgba(213, 162, 93, .17);
}
.calendar-head {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.calendar-head a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #f0d3a1;
    border-radius: 50%;
    font-size: 34px;
    line-height: 1;
}
.calendar-head a:hover { background: rgba(213,162,93,.12); }
.calendar-head strong {
    text-align: center;
    color: #f0d3a1;
    font-size: 22px;
}
.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}
.calendar-weekdays {
    margin-bottom: 9px;
    color: #d5bd93;
    font-size: 14px;
}
.calendar-grid {
    row-gap: 8px;
    color: #f0dfc3;
}
.calendar-grid a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    justify-self: center;
    border-radius: 50%;
    font-size: 17px;
}
.calendar-grid a:hover {
    background: rgba(213,162,93,.14);
    color: #ffe5b4;
}
.calendar-grid .muted-day {
    color: rgba(206, 184, 150, .42);
}
.calendar-grid .selected {
    color: #fff;
    background: radial-gradient(circle, #8f63d7, #64419f);
    box-shadow: 0 0 0 3px rgba(132, 88, 201, .22);
}
.calendar-grid .today:not(.selected) {
    color: #ffdca8;
    box-shadow: inset 0 0 0 1px rgba(222,176,109,.45);
}
.today-link {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: #d9bf96;
    font-size: 15px;
}
.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(213, 162, 93, .17);
}
.quick-grid a,
.reset-link {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(204, 153, 89, .3);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(33,26,17,.82), rgba(18,14,10,.82));
    color: #e2c8a0;
}
.panel-section {
    display: grid;
    gap: 10px;
    padding: 20px 0 0;
}
.panel-section h3 {
    color: #e0b979;
    font-size: 18px;
}
.panel-section select {
    min-height: 38px;
    background-color: rgba(16, 13, 10, .84);
}
.reset-link {
    margin-top: 8px;
    min-height: 42px;
}

.legend {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.legend-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(226,190,111,.13);
    border-radius: var(--radius);
    background: rgba(255,255,255,.04);
}
.legend-item i {
    width: 10px;
    height: 28px;
    border-radius: 999px;
    display: block;
}
.legend-item.type-nri i { background: var(--nri); }
.legend-item.type-wargame i { background: var(--wargame); }
.legend-item.type-boardgame i { background: var(--boardgame); }
.legend-item.type-mafia i { background: var(--mafia); }

.game-detail {
    --type-color: var(--gold);
}
.game-detail.content-card {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.game-detail.type-nri { --type-color: var(--nri); }
.game-detail.type-wargame { --type-color: var(--wargame); }
.game-detail.type-boardgame { --type-color: var(--boardgame); }
.game-detail.type-mafia { --type-color: var(--mafia); }
.detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid rgba(211, 158, 93, .25);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(21,19,16,.96), rgba(12,11,10,.96));
}
.detail-type {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 2;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 9px 13px 9px 10px;
    color: var(--type-color);
    border: 1px solid rgba(255,255,255,.1);
    border-left: 5px solid var(--type-color);
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(18,16,13,.94), rgba(32,24,17,.86));
    box-shadow: 0 14px 28px rgba(0,0,0,.32);
}
.detail-banner {
    position: relative;
    width: 100%;
    min-height: clamp(310px, 32vw, 500px);
    background-size: cover;
    background-position: center;
}
.detail-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(7,6,5,.28) 58%, rgba(8,7,6,.68)),
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.26));
}
.detail-summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 28px 28px;
    min-width: 0;
    border-top: 1px solid rgba(218, 170, 101, .18);
    background: linear-gradient(180deg, rgba(15,13,10,.98), rgba(9,8,7,.94));
}
.detail-summary h2 {
    color: #f1d9ad;
    font-size: 24px;
}
.detail-summary p,
.detail-main p {
    color: #dfcdb0;
    font-size: 16px;
    line-height: 1.58;
}
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    margin-top: 22px;
}
.detail-main {
    display: grid;
    gap: 16px;
    align-content: start;
}
.detail-main h2 {
    margin-top: 6px;
}
.detail-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.detail-role-card,
.detail-role-card button {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(218, 170, 101, .22);
    border-radius: var(--radius);
    background: rgba(17, 13, 9, .42);
    color: inherit;
    text-align: left;
}
.detail-role-card {
    margin: 0;
}
.detail-role-card.available {
    padding: 0;
    border: 0;
    background: transparent;
}
.detail-role-card button {
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.detail-role-card.available button:hover,
.detail-role-card.available button:focus-visible {
    border-color: rgba(238, 199, 128, .72);
    background: rgba(63, 39, 17, .72);
    transform: translateY(-1px);
}
.detail-role-card.selected {
    border-color: rgba(139, 207, 133, .5);
    background: rgba(40, 80, 34, .44);
}
.detail-role-card.taken,
.detail-role-card.disabled {
    opacity: .68;
    background: rgba(14, 12, 10, .5);
}
.detail-roles strong,
.detail-role-card strong {
    color: #f1d6a6;
}
.detail-roles span,
.detail-role-card span {
    color: var(--muted);
    line-height: 1.45;
}
.detail-role-card em {
    color: var(--gold-2);
    font-family: var(--ui);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}
.campaign-note {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(218, 170, 101, .24);
    border-radius: var(--radius);
    background: rgba(19, 14, 9, .48);
}
.campaign-note a {
    color: #f1d098;
    text-decoration: underline;
    text-decoration-color: rgba(241, 208, 152, .35);
    text-underline-offset: 4px;
}
.detail-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: start;
    padding: 20px;
    border: 1px solid rgba(218, 170, 101, .2);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(28,22,15,.74), rgba(12,10,8,.72)),
        radial-gradient(circle at 50% 0%, rgba(184, 119, 48, .12), transparent 48%);
}
.detail-side .capacity {
    margin-left: 27px;
}
.detail-side .button {
    width: 100%;
}
.game-detail-page {
    --violet: #7b43c9;
    --violet-soft: rgba(123, 67, 201, .22);
    --ornate-line: rgba(207, 143, 63, .34);
    --ornate-line-soft: rgba(207, 143, 63, .16);
    max-width: 1520px;
    margin: 0 auto;
    color: #e7d0aa;
}
.detail-shell {
    display: grid;
    gap: 16px;
}
.detail-back-link {
    width: max-content;
    color: #b9935f;
    font-family: var(--ui);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.detail-top-grid {
    display: grid;
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}
@media (min-width: 1361px) {
    .detail-top-grid {
        position: relative;
        grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
        min-height: 318px;
        padding-right: 358px;
    }
    .booking-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: 330px;
    }
    .detail-card-grid,
    .character-cta {
        width: calc(100% - 358px);
    }
}
.detail-art-frame,
.ornate-card,
.booking-panel,
.character-cta,
.game-form-section {
    position: relative;
    border: 1px solid var(--ornate-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(24, 18, 11, .72), rgba(9, 8, 6, .78)),
        radial-gradient(circle at 0% 0%, rgba(215, 151, 69, .13), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(119, 67, 23, .12), transparent 42%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 18px 46px rgba(0,0,0,.22);
}
.detail-art-frame::before,
.ornate-card::before,
.booking-panel::before,
.game-form-section::before {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    border: 1px solid rgba(218, 170, 101, .07);
    border-radius: 5px;
}
.detail-art-frame::after,
.ornate-card::after,
.booking-panel::after,
.game-form-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(90deg, #a96f30 0 16px, transparent 16px) 12px 12px / 54px 1px no-repeat,
        linear-gradient(180deg, #a96f30 0 16px, transparent 16px) 12px 12px / 1px 54px no-repeat,
        linear-gradient(270deg, #a96f30 0 16px, transparent 16px) calc(100% - 12px) 12px / 54px 1px no-repeat,
        linear-gradient(180deg, #a96f30 0 16px, transparent 16px) calc(100% - 12px) 12px / 1px 54px no-repeat,
        linear-gradient(90deg, #a96f30 0 16px, transparent 16px) 12px calc(100% - 12px) / 54px 1px no-repeat,
        linear-gradient(0deg, #a96f30 0 16px, transparent 16px) 12px calc(100% - 12px) / 1px 54px no-repeat,
        linear-gradient(270deg, #a96f30 0 16px, transparent 16px) calc(100% - 12px) calc(100% - 12px) / 54px 1px no-repeat,
        linear-gradient(0deg, #a96f30 0 16px, transparent 16px) calc(100% - 12px) calc(100% - 12px) / 1px 54px no-repeat;
    opacity: .52;
}
.detail-art-frame {
    padding: 9px;
    overflow: hidden;
}
.detail-art {
    min-height: 280px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    filter: saturate(.9) contrast(1.05);
}
.detail-art::after {
    content: "";
    position: absolute;
}
.detail-hero-copy {
    display: grid;
    gap: 13px;
    padding-top: 10px;
}
.detail-hero-copy h1 {
    color: #f3d8a4;
    font-size: clamp(34px, 3.1vw, 48px);
    line-height: 1.05;
    text-shadow: 0 3px 20px rgba(0,0,0,.62);
}
.detail-kicker {
    margin: -5px 0 0;
    color: #dfb976;
    font-size: 19px;
}
.detail-intro {
    max-width: 62ch;
    margin: 0;
    color: #d9bd8e;
    line-height: 1.55;
    font-size: 16px;
}
.detail-master-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}
.detail-master-trust strong,
.master-card-body em {
    color: #a56cff;
    font-family: var(--ui);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}
.detail-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 6px;
}
.detail-tag-row span {
    min-height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 7px 14px;
    border: 1px solid rgba(218, 170, 101, .28);
    border-radius: 5px;
    background: rgba(19, 13, 8, .58);
    color: #e6c693;
    box-shadow: inset 0 0 18px rgba(0,0,0,.2);
}
.detail-tag-row span:first-child {
    border-color: rgba(134, 79, 213, .72);
    background: linear-gradient(180deg, rgba(123, 67, 201, .92), rgba(70, 35, 112, .9));
    color: #f4e8ff;
}
.booking-panel {
    display: grid;
    gap: 0;
    padding: 18px 18px 20px;
}
.seats-ribbon {
    justify-self: center;
    min-width: 164px;
    margin-bottom: 10px;
    padding: 7px 14px;
    border-radius: 5px;
    background: linear-gradient(180deg, #7c45c8, #4b2676);
    color: #f3e7ff;
    text-align: center;
    box-shadow: 0 10px 24px rgba(73, 27, 111, .34);
}
.booking-row {
    display: grid;
    grid-template-columns: 24px minmax(92px, .72fr) minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 11px 0;
    border-bottom: 1px solid rgba(218, 170, 101, .13);
}
.booking-row span {
    color: #d9a157;
    text-align: center;
}
.booking-row em {
    color: #b9905b;
    font-style: normal;
}
.booking-row strong {
    min-width: 0;
    color: #e8d1a9;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.booking-panel .capacity {
    margin: 13px 0 14px;
}
.booking-panel .button {
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
}
.booking-panel small {
    margin-top: 12px;
    color: #d0a15e;
    font-family: var(--ui);
    font-size: 12px;
}
.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}
.ornate-card {
    grid-column: span 4;
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    min-height: 126px;
}
.ornate-card.wide-card {
    grid-column: span 8;
}
.ornate-card.master-card,
.ornate-card.gallery-card,
.ornate-card.faq-card {
    grid-column: span 4;
}
.ornate-card.campaign-wide,
.ornate-card.roles-wide {
    grid-column: 1 / -1;
}
.ornate-card h2 {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #d8b36f;
    font-size: 17px;
    line-height: 1.1;
    text-transform: uppercase;
}
.ornate-card h2 span {
    width: 22px;
    color: #8d4fe0;
    text-align: center;
    font-size: 23px;
    line-height: 1;
    text-shadow: 0 0 16px rgba(137, 79, 224, .45);
}
.ornate-card p {
    margin: 0;
    color: #d9bd90;
    line-height: 1.55;
}
.activity-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(82px, 1fr));
    gap: 10px;
}
.activity-grid div {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 8px 8px 0;
    border-left: 1px solid rgba(218, 170, 101, .08);
}
.activity-grid i {
    color: #c58a3d;
    font-size: 30px;
    font-style: normal;
    line-height: 1;
}
.activity-grid span {
    color: #cfae77;
    font-size: 13px;
    text-align: center;
}
.gold-list,
.icon-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gold-list li,
.icon-list li {
    position: relative;
    padding-left: 17px;
    color: #d9bd90;
    line-height: 1.35;
}
.gold-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d9a157;
}
.icon-list li::before {
    content: "▧";
    position: absolute;
    left: 0;
    color: #c58a3d;
    font-size: 12px;
}
.limit-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.limit-tags span {
    min-height: 36px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    border-radius: 5px;
    color: #d8b78a;
    background: rgba(82, 44, 29, .62);
    text-align: center;
}
.master-card-body {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 110px;
    gap: 14px;
    align-items: center;
}
.avatar.large {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 26px;
}
.master-card-body strong {
    color: #f0d3a0;
    font-size: 18px;
}
.master-card-body p {
    margin-top: 6px;
    font-size: 14px;
}
.master-card-body dl {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid rgba(218, 170, 101, .16);
}
.master-card-body dl div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.master-card-body dt {
    color: #d49b4d;
}
.master-card-body dd {
    margin: 0;
    color: #f2d39d;
}
.material-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.material-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(218, 170, 101, .2);
    border-radius: 5px;
    background: rgba(8, 7, 5, .42);
}
.material-grid img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    filter: saturate(.86) brightness(.82);
}
.material-grid figcaption {
    padding: 8px 9px;
    color: #d8b36f;
    font-size: 13px;
    text-align: center;
}
.faq-list {
    display: grid;
    gap: 4px;
}
.faq-list details {
    border-bottom: 1px solid rgba(218, 170, 101, .12);
}
.faq-list summary {
    cursor: pointer;
    padding: 8px 0;
    color: #d8bd8b;
}
.faq-list p {
    padding: 0 0 10px 22px;
    color: #bfa77f;
    font-size: 14px;
}
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}
.chapter-grid span {
    display: grid;
    place-items: center;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: 5px;
    color: #d8bd8b;
    background: rgba(10, 8, 6, .38);
    text-align: center;
}
.character-cta {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 11px 18px;
    overflow: hidden;
    border-color: rgba(128, 67, 196, .42);
    background:
        linear-gradient(90deg, rgba(75, 35, 113, .78), rgba(31, 16, 49, .66) 48%, rgba(10, 8, 6, .82)),
        radial-gradient(circle at 12% 50%, rgba(149, 75, 222, .28), transparent 36%);
}
.character-cta span {
    color: #9b5df1;
    font-size: 34px;
}
.character-cta strong {
    color: #e7cda4;
}
.game-form-section {
    display: grid;
    gap: 16px;
    padding: 18px;
}
.game-form-section-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}
.game-form-section-head > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #d4a3ff;
    background: rgba(87, 42, 142, .36);
    border: 1px solid rgba(139, 87, 209, .38);
}
.game-form-section h2 {
    font-size: 22px;
}
.activity-picker {
    display: grid;
    gap: 9px;
}
.activity-picker > strong {
    color: #e8d7b9;
}
.activity-picker > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.activity-picker label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: 5px;
    background: rgba(10, 8, 6, .35);
}
.activity-picker input {
    width: auto;
}
.activity-picker span {
    color: #c58a3d;
    font-size: 22px;
}

/* Reference-style ornamental pass for the public game page and game form. */
.game-detail-page {
    --ornament-gold: #d09a4b;
    --ornament-gold-soft: rgba(208, 154, 75, .38);
    --ornament-gold-dim: rgba(151, 91, 36, .24);
    --ornament-violet: #8e54e6;
    --ornament-violet-soft: rgba(142, 84, 230, .28);
    --panel-glow: rgba(219, 147, 57, .11);
}
.detail-art-frame,
.ornate-card,
.booking-panel,
.character-cta,
.game-form-section {
    isolation: isolate;
    overflow: hidden;
    border-color: rgba(210, 145, 61, .46);
    background:
        linear-gradient(180deg, rgba(31, 23, 14, .84), rgba(8, 7, 5, .9)),
        radial-gradient(circle at 10% 0%, rgba(224, 156, 68, .15), transparent 32%),
        radial-gradient(circle at 94% 100%, rgba(98, 45, 24, .2), transparent 36%),
        repeating-linear-gradient(135deg, rgba(255, 220, 148, .025) 0 1px, transparent 1px 12px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 168, .035),
        inset 0 0 34px rgba(0, 0, 0, .38),
        0 18px 42px rgba(0, 0, 0, .28);
}
.detail-art-frame > *,
.ornate-card > *,
.booking-panel > *,
.character-cta > *,
.game-form-section > * {
    position: relative;
    z-index: 2;
}
.detail-art-frame::before,
.ornate-card::before,
.booking-panel::before,
.character-cta::before,
.game-form-section::before {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: 1;
    pointer-events: none;
    border: 1px solid rgba(228, 170, 86, .16);
    border-radius: 5px;
    box-shadow:
        inset 0 0 0 1px rgba(61, 37, 16, .72),
        inset 0 0 22px rgba(224, 147, 57, .035);
}
.detail-art-frame::after,
.ornate-card::after,
.booking-panel::after,
.character-cta::after,
.game-form-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at 27px 27px, transparent 0 10px, rgba(225, 167, 84, .34) 11px 12px, transparent 13px) left top / 74px 74px no-repeat,
        radial-gradient(circle at calc(100% - 27px) 27px, transparent 0 10px, rgba(225, 167, 84, .34) 11px 12px, transparent 13px) right top / 74px 74px no-repeat,
        radial-gradient(circle at 27px calc(100% - 27px), transparent 0 10px, rgba(225, 167, 84, .34) 11px 12px, transparent 13px) left bottom / 74px 74px no-repeat,
        radial-gradient(circle at calc(100% - 27px) calc(100% - 27px), transparent 0 10px, rgba(225, 167, 84, .34) 11px 12px, transparent 13px) right bottom / 74px 74px no-repeat,
        linear-gradient(90deg, transparent 0 13px, rgba(211, 144, 58, .8) 13px 40px, transparent 40px) left 13px top 13px / 82px 1px no-repeat,
        linear-gradient(180deg, transparent 0 13px, rgba(211, 144, 58, .8) 13px 40px, transparent 40px) left 13px top 13px / 1px 82px no-repeat,
        linear-gradient(270deg, transparent 0 13px, rgba(211, 144, 58, .8) 13px 40px, transparent 40px) right 13px top 13px / 82px 1px no-repeat,
        linear-gradient(180deg, transparent 0 13px, rgba(211, 144, 58, .8) 13px 40px, transparent 40px) right 13px top 13px / 1px 82px no-repeat,
        linear-gradient(90deg, transparent 0 13px, rgba(211, 144, 58, .8) 13px 40px, transparent 40px) left 13px bottom 13px / 82px 1px no-repeat,
        linear-gradient(0deg, transparent 0 13px, rgba(211, 144, 58, .8) 13px 40px, transparent 40px) left 13px bottom 13px / 1px 82px no-repeat,
        linear-gradient(270deg, transparent 0 13px, rgba(211, 144, 58, .8) 13px 40px, transparent 40px) right 13px bottom 13px / 82px 1px no-repeat,
        linear-gradient(0deg, transparent 0 13px, rgba(211, 144, 58, .8) 13px 40px, transparent 40px) right 13px bottom 13px / 1px 82px no-repeat;
    opacity: .9;
}
.detail-art-frame {
    padding: 12px;
}
.detail-art {
    position: relative;
    z-index: 2;
    min-height: 292px;
    border: 1px solid rgba(222, 154, 70, .32);
    border-radius: 3px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .58),
        inset 0 -48px 80px rgba(0, 0, 0, .42);
}
.detail-hero-copy {
    gap: 15px;
    padding-top: 8px;
}
.detail-hero-copy h1 {
    letter-spacing: 0;
}
.detail-master-trust .avatar,
.master-card-body .avatar.large {
    border: 1px solid rgba(223, 164, 86, .5);
    background:
        radial-gradient(circle at 45% 30%, rgba(238, 186, 105, .42), transparent 36%),
        linear-gradient(180deg, rgba(73, 43, 19, .96), rgba(19, 13, 9, .96));
    box-shadow:
        inset 0 0 0 3px rgba(0, 0, 0, .28),
        inset 0 0 16px rgba(233, 169, 81, .16),
        0 0 0 4px rgba(208, 154, 75, .08);
}
.detail-master-trust strong,
.master-card-body em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a86fff;
    text-shadow: 0 0 16px rgba(142, 84, 230, .42);
}
.detail-tag-row span {
    position: relative;
    min-height: 38px;
    padding: 7px 15px;
    border-color: rgba(217, 153, 72, .3);
    background:
        linear-gradient(180deg, rgba(37, 25, 14, .74), rgba(12, 9, 6, .78)),
        radial-gradient(circle at 50% 0%, rgba(222, 154, 70, .12), transparent 60%);
}
.detail-tag-row span::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(227, 173, 98, .08);
    border-radius: 3px;
}
.detail-tag-row span:first-child {
    border-color: rgba(158, 96, 234, .86);
    background:
        linear-gradient(180deg, rgba(128, 73, 198, .95), rgba(66, 34, 102, .96)),
        radial-gradient(circle at 50% 0%, rgba(255, 225, 255, .18), transparent 54%);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, .06), 0 8px 18px rgba(72, 31, 111, .25);
}
.seats-ribbon {
    position: relative;
    min-width: 174px;
    border: 1px solid rgba(173, 109, 237, .42);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(144, 78, 210, .98), rgba(75, 37, 116, .98)),
        radial-gradient(circle at 50% 0%, rgba(255, 229, 255, .2), transparent 64%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .055),
        0 10px 22px rgba(75, 31, 116, .36);
}
.seats-ribbon::before,
.seats-ribbon::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 18px;
    height: 10px;
    background: rgba(42, 20, 66, .9);
    border-top: 1px solid rgba(173, 109, 237, .32);
    border-bottom: 1px solid rgba(173, 109, 237, .2);
}
.seats-ribbon::before {
    left: -8px;
    transform: skewX(-18deg);
}
.seats-ribbon::after {
    right: -8px;
    transform: skewX(18deg);
}
.booking-row {
    position: relative;
    grid-template-columns: 30px minmax(92px, .72fr) minmax(0, 1fr);
    padding: 12px 0;
    border-bottom-color: rgba(215, 148, 66, .17);
}
.booking-row::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 45%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 168, 91, .22));
}
.booking-row span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 151, 70, .22);
    border-radius: 4px;
    color: #daa55b;
    background: rgba(16, 11, 7, .5);
    box-shadow: inset 0 0 12px rgba(222, 153, 70, .08);
    font-size: 14px;
}
.booking-row em {
    color: #ba925d;
}
.booking-row strong {
    color: #ead2a7;
}
.booking-panel .button.ghost {
    border-color: rgba(207, 143, 63, .42);
    background: rgba(10, 8, 6, .42);
    color: #dcaa62;
}
.booking-panel small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-top: 3px;
}
.ornate-card {
    padding: 20px 22px;
}
.ornate-card h2 {
    position: relative;
    gap: 11px;
    padding-bottom: 9px;
    color: #d9b36d;
    font-size: 16px;
}
.ornate-card h2::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 2px;
    background: linear-gradient(90deg, rgba(214, 151, 70, .28), transparent);
}
.ornate-card h2 span,
.game-form-section-head > span {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(142, 84, 230, .45);
    border-radius: 5px;
    color: #9b5bf4;
    background:
        radial-gradient(circle at 50% 45%, rgba(142, 84, 230, .22), transparent 52%),
        linear-gradient(180deg, rgba(33, 18, 52, .76), rgba(13, 9, 17, .72));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .03),
        inset 0 0 18px rgba(142, 84, 230, .12),
        0 0 18px rgba(142, 84, 230, .12);
    text-shadow: 0 0 12px rgba(142, 84, 230, .62);
}
.ornate-card h2 span::before,
.game-form-section-head > span::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(213, 151, 74, .28);
    border-radius: 2px;
    transform: rotate(45deg);
}
.ornate-card h2 span::after,
.game-form-section-head > span::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(142, 84, 230, .12);
    border-radius: 7px;
}
.activity-grid {
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(213, 151, 74, .12);
    border-radius: 6px;
    background: rgba(8, 7, 5, .22);
}
.activity-grid div {
    position: relative;
    min-height: 92px;
    align-content: center;
    padding: 11px 10px;
    border-left: 1px solid rgba(213, 151, 74, .11);
    background:
        linear-gradient(180deg, rgba(255, 220, 148, .035), transparent 48%),
        radial-gradient(circle at 50% 0%, rgba(207, 143, 63, .1), transparent 62%);
}
.activity-grid div:first-child {
    border-left: 0;
}
.activity-grid i {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 151, 70, .34);
    border-radius: 5px;
    color: #d19643;
    background:
        radial-gradient(circle at 50% 42%, rgba(214, 151, 70, .16), transparent 55%),
        rgba(12, 9, 6, .42);
    box-shadow: inset 0 0 18px rgba(214, 151, 70, .08);
}
.activity-grid i::after {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(214, 151, 70, .26);
    transform: rotate(45deg);
}
.gold-list li,
.icon-list li {
    padding-left: 22px;
}
.gold-list li::before {
    top: .25em;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(214, 151, 70, .68);
    border-radius: 50%;
    color: transparent;
    background: radial-gradient(circle, rgba(231, 176, 92, .9) 0 2px, transparent 3px);
}
.icon-list li::before {
    color: #d49b4d;
    text-shadow: 0 0 12px rgba(212, 155, 77, .24);
}
.limit-tags span,
.chapter-grid span {
    border: 1px solid rgba(214, 151, 70, .15);
    background:
        linear-gradient(180deg, rgba(84, 45, 29, .78), rgba(42, 24, 17, .72)),
        radial-gradient(circle at 50% 0%, rgba(224, 156, 68, .12), transparent 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}
.master-card-body {
    align-items: stretch;
}
.master-card-body dl {
    justify-content: center;
    padding-left: 18px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .24), transparent);
}
.master-card-body dt {
    color: #d39b4d;
}
.master-card-body dd {
    color: #f0d29c;
}
.material-grid figure {
    position: relative;
    border-color: rgba(214, 151, 70, .25);
    background:
        linear-gradient(180deg, rgba(35, 25, 15, .72), rgba(9, 7, 5, .72));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}
.material-grid figure::after {
    content: "";
    position: absolute;
    inset: 6px;
    pointer-events: none;
    border: 1px solid rgba(224, 162, 82, .08);
}
.material-grid figcaption {
    border-top: 1px solid rgba(214, 151, 70, .13);
    background: rgba(8, 7, 5, .36);
}
.faq-list details {
    position: relative;
    padding-left: 30px;
    border-bottom-color: rgba(214, 151, 70, .14);
}
.faq-list details::before {
    content: "?";
    position: absolute;
    top: 9px;
    left: 0;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(142, 84, 230, .55);
    border-radius: 50%;
    color: #9d62f1;
    font-family: var(--ui);
    font-size: 12px;
}
.faq-list summary {
    list-style: none;
}
.faq-list summary::-webkit-details-marker {
    display: none;
}
.faq-list summary::after {
    content: "⌄";
    float: right;
    color: #b8803a;
}
.faq-list details[open] summary::after {
    content: "⌃";
}
.campaign-wide {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: center;
}
.campaign-wide h2,
.campaign-wide p {
    grid-column: 1;
}
.campaign-wide .chapter-grid {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
}
.character-cta {
    min-height: 56px;
    border-color: rgba(142, 84, 230, .48);
    background:
        linear-gradient(90deg, rgba(74, 35, 110, .86), rgba(34, 17, 53, .78) 54%, rgba(10, 8, 6, .86)),
        radial-gradient(circle at 9% 50%, rgba(160, 86, 234, .32), transparent 34%);
}
.character-cta .button {
    border-color: rgba(169, 108, 234, .65);
    background:
        linear-gradient(180deg, rgba(142, 84, 230, .94), rgba(91, 45, 148, .94));
}
.game-form-section {
    padding: 22px;
}
.game-form-section-head {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(214, 151, 70, .14);
}
.activity-picker label {
    position: relative;
    border-color: rgba(214, 151, 70, .24);
    background:
        linear-gradient(180deg, rgba(32, 23, 14, .72), rgba(9, 7, 5, .72));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}
.activity-picker label span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 151, 70, .22);
    border-radius: 4px;
    background: rgba(8, 7, 5, .36);
}
@media (min-width: 1361px) {
    .game-detail-page .detail-top-grid {
        position: relative;
        grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
        min-height: 318px;
        padding-right: 358px;
    }
    .game-detail-page .booking-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: 330px;
    }
    .game-detail-page .detail-card-grid,
    .game-detail-page .character-cta {
        width: calc(100% - 358px);
    }
}
.campaign-page {
    display: grid;
    gap: 22px;
}
.campaign-timeline {
    display: grid;
    gap: 12px;
}
.campaign-timeline article {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 18px 18px 18px 24px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, .46);
}
.campaign-timeline article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold-2), rgba(126, 76, 28, .6));
}
.campaign-timeline span,
.version-entry span {
    color: var(--muted);
    font-family: var(--ui);
    font-size: 13px;
}
.campaign-timeline p {
    margin: 0;
    color: #d9c7aa;
    line-height: 1.48;
}

.content-card {
    padding: 28px;
    max-width: 1180px;
    margin: 0 auto;
}
.content-card.narrow { max-width: 680px; }
.content-card.wide { max-width: 1220px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two-cols { grid-template-columns: 1fr 1fr; }
.form-grid label {
    display: grid;
    gap: 8px;
    color: #e8d7b9;
    font-weight: 650;
}
.datetime-field {
    display: grid;
    gap: 8px;
    color: #e8d7b9;
    font-weight: 650;
}
.field-title {
    display: block;
}
.datetime-parts {
    display: grid;
    grid-template-columns: minmax(150px, 1.35fr) minmax(92px, .75fr) minmax(104px, .85fr);
    gap: 10px;
}
.datetime-parts label {
    min-width: 0;
}
.form-grid .full { grid-column: 1 / -1; }
.form-hint {
    margin: -3px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}
.form-hint.error-text {
    color: #f0a08f;
}
select.invalid,
input.invalid,
textarea.invalid {
    border-color: rgba(224, 96, 80, .72);
    box-shadow: 0 0 0 1px rgba(224, 96, 80, .2), 0 0 18px rgba(224, 96, 80, .14);
}
.input-with-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}
.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.roles-editor {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(10, 8, 6, .26);
}
.type-params {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid rgba(218, 170, 101, .22);
    border-radius: var(--radius);
    background: rgba(12, 9, 6, .42);
}
.type-params strong {
    color: #f2d6a2;
    font-size: 18px;
}
.type-params span {
    color: var(--muted);
    line-height: 1.42;
}
[hidden] {
    display: none !important;
}
.roles-editor h2 {
    font-size: 22px;
}
.roles-editor .muted {
    margin: -4px 0 4px;
}
.role-row {
    display: grid;
    grid-template-columns: minmax(170px, .42fr) minmax(220px, 1fr);
    gap: 10px;
}
.game-block-controls {
    display: grid;
    gap: 14px;
}
.game-block-library {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 9px;
}
.game-block-library button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(214, 151, 70, .28);
    border-radius: var(--radius);
    color: #edd0a0;
    background:
        linear-gradient(180deg, rgba(34, 23, 13, .82), rgba(8, 7, 5, .9)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 280px 180px;
    cursor: pointer;
    text-align: left;
}
.game-block-library button span {
    color: var(--type-color, #d5963f);
    font-size: 20px;
}
.game-block-library button:disabled {
    opacity: .42;
    cursor: default;
}
.game-block-list {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 58px;
    padding: 10px;
    border: 1px dashed rgba(214, 151, 70, .34);
    border-radius: var(--radius);
    background: rgba(5, 4, 3, .42);
}
.game-block-list.is-empty::before {
    content: attr(data-empty-label);
    display: grid;
    place-items: center;
    min-height: 36px;
    color: rgba(237, 208, 160, .58);
    font-size: 14px;
}
.game-block-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 5px;
    border: 1px solid rgba(214, 151, 70, .3);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(24, 16, 10, .9), rgba(7, 6, 4, .92)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 240px 160px;
}
.game-block-item.is-dragging {
    opacity: .58;
}
.game-block-item strong {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f0d5a2;
}
.game-block-item strong span {
    color: var(--type-color, #d5963f);
    font-size: 20px;
}
.game-block-drag,
.game-block-remove {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 151, 70, .24);
    border-radius: 5px;
    color: #d9b06f;
    background: rgba(5, 4, 3, .6);
    cursor: grab;
}
.game-block-remove {
    color: #e6a07b;
    cursor: pointer;
}
.game-block-note {
    padding: 13px 15px;
    border: 1px solid rgba(214, 151, 70, .22);
    border-radius: var(--radius);
    color: #d9bd90;
    background: rgba(8, 7, 5, .4);
}
.alert,
.notice {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.12);
}
.alert.success {
    background: rgba(58, 119, 52, .18);
    color: #d9ffd5;
    border-color: rgba(139, 207, 133, .24);
}
.alert.error {
    background: rgba(135, 45, 45, .22);
    color: #ffd7d7;
    border-color: rgba(212, 91, 91, .28);
}
.notice {
    background: rgba(214, 168, 79, .12);
    color: #f1d99b;
}
.empty-state {
    padding: 34px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.04);
    border: 1px dashed rgba(226,190,111,.25);
}
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid rgba(226,190,111,.14);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.data-table th,
.data-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(226,190,111,.1);
    text-align: left;
    vertical-align: middle;
}
.data-table th {
    color: var(--gold-2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
    background: rgba(255,255,255,.035);
}
.row-actions,
.inline-admin-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.row-actions form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--gold-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.link-button.danger { color: #ff9b9b; }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.stat-grid div {
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(226,190,111,.14);
}
.stat-grid strong {
    display: block;
    font-size: 34px;
    color: var(--gold-2);
}
.stat-grid span { color: var(--muted); }
.admin-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}
.admin-link-card {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 18px;
    border: 1px solid rgba(218, 170, 101, .2);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, .5);
    color: #efd8af;
}
.admin-link-card strong {
    color: #f2d098;
    font-size: 18px;
}
.admin-link-card span {
    color: var(--muted);
    line-height: 1.35;
}
.mail-admin-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.mail-admin-sidebar,
.smtp-panel,
.mail-template-form {
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, .46);
    box-shadow: inset 0 0 36px rgba(0,0,0,.22);
}
.mail-admin-sidebar {
    display: grid;
    gap: 14px;
    padding: 16px;
}
.mail-template-list {
    display: grid;
    gap: 8px;
}
.mail-template-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(218, 170, 101, .16);
    border-radius: var(--radius);
    background: rgba(10, 8, 6, .48);
}
.mail-template-list a.active,
.mail-template-list a:hover {
    border-color: rgba(225, 189, 130, .48);
    background: rgba(55, 36, 18, .52);
}
.mail-template-list strong {
    color: #f2d098;
}
.mail-template-list span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}
.mail-admin-main {
    display: grid;
    gap: 16px;
    min-width: 0;
}
.smtp-panel {
    display: grid;
    gap: 16px;
    padding: 16px;
}
.smtp-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 0;
}
.smtp-list div {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid rgba(218, 170, 101, .14);
    border-radius: var(--radius);
    background: rgba(255,255,255,.035);
}
.smtp-list dt {
    color: var(--muted);
    font-family: var(--ui);
    font-size: 12px;
    text-transform: uppercase;
}
.smtp-list dd {
    min-width: 0;
    margin: 0;
    color: #f2d9ad;
    overflow-wrap: anywhere;
}
.smtp-diagnostics {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, .46);
    box-shadow: inset 0 0 36px rgba(0,0,0,.22);
}
.smtp-step-list,
.mail-log-list {
    display: grid;
    gap: 8px;
}
.smtp-step,
.mail-log-row {
    display: grid;
    grid-template-columns: minmax(140px, .35fr) auto;
    gap: 6px 12px;
    padding: 10px 12px;
    border: 1px solid rgba(218, 170, 101, .14);
    border-radius: var(--radius);
    background: rgba(10, 8, 6, .42);
}
.smtp-step strong,
.mail-log-row strong {
    color: #f2d9ad;
}
.smtp-step span,
.mail-log-row span {
    justify-self: end;
    color: var(--muted);
    font-family: var(--ui);
    font-size: 12px;
    text-transform: uppercase;
}
.smtp-step p,
.mail-log-row p,
.mail-log-row small {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.smtp-step.ok,
.mail-log-row.sent {
    border-color: rgba(110, 178, 94, .34);
}
.smtp-step.failed,
.mail-log-row.failed {
    border-color: rgba(213, 82, 68, .4);
}
.smtp-step.skipped {
    border-color: rgba(218, 170, 101, .26);
}
.mail-template-form {
    padding: 16px;
}
.template-placeholders {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
}
.template-placeholders code {
    padding: 4px 7px;
    border: 1px solid rgba(218, 170, 101, .22);
    border-radius: 999px;
    background: rgba(0,0,0,.28);
    color: #f3d9ad;
}
.version-list {
    display: grid;
    gap: 14px;
}
.version-entry {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(14, 11, 8, .48);
}
.version-entry.has-image {
    grid-template-columns: 150px minmax(0, 1fr);
}
.version-entry img {
    width: 100%;
    height: auto;
    display: block;
    justify-self: start;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.version-meta,
.version-content {
    display: grid;
    align-content: start;
    gap: 5px;
}
.version-content {
    gap: 14px;
    min-width: 0;
}
.version-entry strong {
    color: #f1d098;
    font-size: 22px;
}
.version-entry ul {
    margin: 0;
    padding-left: 18px;
    color: #dfcdb0;
    line-height: 1.55;
}
.profile-page h2 {
    margin-bottom: 14px;
}
.character-list {
    display: grid;
    gap: 14px;
}
.character-card {
    display: grid;
    grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, .46);
}
.character-card h3 {
    margin-top: 10px;
    font-size: 22px;
}
.character-card .form-grid {
    grid-template-columns: 1fr 1fr;
}
.character-card .form-grid label:nth-of-type(n+3),
.character-card .form-actions {
    grid-column: 1 / -1;
}
.saved-character-list {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}
.saved-character-card {
    display: grid;
    grid-template-columns: minmax(230px, .34fr) auto minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, .46);
}
.saved-character-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}
.saved-character-card h3 {
    margin-top: 10px;
    font-size: 23px;
}
.saved-character-progress {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding-top: 14px;
    border-top: 1px solid rgba(218, 170, 101, .14);
}
.saved-character-progress > label,
.saved-character-progress .form-hint {
    margin: 0;
}
.saved-character-progress input {
    width: 100%;
}
.saved-character-ability-edit {
    display: grid;
    grid-template-columns: repeat(6, minmax(76px, 1fr));
    gap: 8px;
}
.saved-character-ability-edit label {
    display: grid;
    gap: 5px;
    color: #d9c4a5;
    font-size: 12px;
}
.saved-character-ability-edit input {
    text-align: center;
}
.saved-character-progress .form-hint {
    grid-column: 1 / -1;
}
.saved-character-stats,
.character-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.saved-character-stats span,
.character-preview div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(218, 170, 101, .16);
    border-radius: var(--radius);
    background: rgba(9, 7, 5, .38);
}
.saved-character-stats strong,
.character-preview strong {
    color: var(--gold-2);
    font-family: var(--ui);
    font-size: 12px;
    text-transform: uppercase;
}
.ability-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 10px;
}
.ability-grid label {
    padding: 12px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, .42);
}
.ability-grid span {
    color: var(--muted);
    font-family: var(--ui);
    font-size: 12px;
}
.builder-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(12, 9, 6, .42);
}
.builder-step > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #1a1007;
    background: linear-gradient(180deg, #efd39b, #b77a31);
    font-family: var(--ui);
    font-weight: 900;
}
.builder-step h2 { font-size: 22px; }
.background-info {
    min-height: 48px;
    padding: 14px 16px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    color: #dfcdb0;
    background: rgba(10, 8, 6, .34);
}
.auth-links {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}
.inline-link {
    color: var(--gold-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.oauth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.cookie-banner {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 260;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px;
    border: 1px solid rgba(218, 170, 101, .3);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(31, 24, 16, .97), rgba(10, 8, 6, .97));
    box-shadow: 0 20px 60px rgba(0,0,0,.52);
}
.cookie-banner[hidden] { display: none !important; }
.news-grid,
.music-list {
    display: grid;
    gap: 16px;
}
.news-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, .48);
}
.news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
}
.music-track {
    display: grid;
    grid-template-columns: minmax(180px, .4fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, .48);
}
.music-player {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) minmax(120px, 170px);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(218, 170, 101, .24);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(41, 29, 17, .72), rgba(13, 10, 7, .86)),
        radial-gradient(circle at 12% 10%, rgba(228, 174, 94, .18), transparent 34%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 14px 34px rgba(0,0,0,.25);
}
.music-player audio {
    display: none;
}
.music-play {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232, 190, 120, .48);
    border-radius: 50%;
    color: #2a1808;
    background: linear-gradient(180deg, #e4b169, #a66a2d);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 10px 20px rgba(0,0,0,.34);
    cursor: pointer;
}
.music-play:hover,
.music-play:focus-visible {
    filter: brightness(1.08);
}
.music-progress-wrap {
    display: grid;
    gap: 7px;
    min-width: 0;
}
.music-time {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #bda98b;
    font-family: var(--ui);
    font-size: 12px;
}
.music-volume {
    display: grid;
    gap: 7px;
    color: #d9c39f;
    font-family: var(--ui);
    font-size: 12px;
}
.music-progress,
.music-volume input {
    width: 100%;
    accent-color: #d9a45a;
    cursor: pointer;
}
.youtube-player iframe { width: 100%; }
.youtube-player {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(218, 170, 101, .18);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, .48);
}
.prose-text {
    color: #dfcdb0;
    line-height: 1.65;
}
.phrase-table {
    margin-top: 22px;
}
.phrase-form {
    width: 100%;
    align-items: stretch;
}
.phrase-form textarea {
    min-width: min(520px, 100%);
}
.check-label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.check-label input { width: auto; }
.settings-check {
    justify-content: flex-start;
    padding: 16px;
    border: 1px solid rgba(218, 170, 101, .2);
    border-radius: var(--radius);
    background: rgba(14, 11, 8, .48);
    white-space: normal;
}
.settings-check input {
    flex: 0 0 auto;
}
code {
    background: rgba(255,255,255,.08);
    padding: 2px 6px;
    border-radius: 6px;
}

.dice-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0,0,0,.66);
}
.dice-dialog {
    position: relative;
    display: grid;
    gap: 16px;
    width: min(920px, 100%);
    max-height: min(860px, calc(100vh - 40px));
    overflow: auto;
    padding: 24px;
    border: 1px solid rgba(218, 170, 101, .34);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(30,23,15,.98), rgba(10,8,6,.98)),
        radial-gradient(circle at 50% 0%, rgba(180, 111, 43, .18), transparent 42%);
    box-shadow: 0 28px 90px rgba(0,0,0,.64);
}
.dice-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(218, 170, 101, .3);
    border-radius: 50%;
    color: #f0d4a3;
    background: rgba(12, 9, 6, .7);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.dice-head {
    padding-right: 34px;
}
.dice-head .muted {
    margin: 6px 0 0;
}
.dice-controls {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(150px, 190px) auto;
    gap: 12px;
    align-items: end;
}
.dice-controls label {
    display: grid;
    gap: 7px;
    color: #e8d7b9;
    font-weight: 650;
}
.dice-stage {
    position: relative;
    isolation: isolate;
    min-height: 370px;
    overflow: hidden;
    border: 1px solid rgba(226,190,111,.18);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(7, 8, 10, .36), rgba(6, 5, 4, .84)),
        radial-gradient(ellipse at 50% 100%, rgba(175, 120, 54, .2), transparent 60%);
}
.dice-stage::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 8%;
    right: 8%;
    bottom: 22px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0,0,0,.48), transparent 70%);
}
.dice-stage canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
}
.dice-summary {
    display: grid;
    gap: 6px;
    padding: 13px 15px;
    border: 1px solid rgba(218, 170, 101, .22);
    border-radius: var(--radius);
    background: rgba(12, 9, 6, .46);
}
.dice-summary strong {
    color: #f6d79e;
    font-size: 22px;
}
.dice-summary span {
    color: #dfcdb0;
    line-height: 1.45;
}
body.is-dice-open {
    overflow: hidden;
}

@media (max-width: 2100px) {
    .layout-three { grid-template-columns: minmax(0, 1fr) 300px; }
    .right-panel { min-width: 0; }
    .game-card {
        grid-template-columns: 78px minmax(220px, 34%) minmax(0, 1fr);
        grid-template-areas:
            "type banner body"
            "type banner meta";
    }
    .game-meta {
        border-left: 0;
        border-top: 1px solid rgba(213, 162, 93, .18);
        padding: 16px 44px 16px 20px;
    }
    .top-filters {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }
}

@media (max-width: 1400px) {
    .layout-three { grid-template-columns: minmax(0, 1fr) 280px; }
    .date-panel { padding: 22px 16px 16px; }
    .date-panel h2 { font-size: 25px; }
    .calendar-head { grid-template-columns: 32px 1fr 32px; gap: 6px; }
    .calendar-head a { width: 32px; height: 32px; font-size: 30px; }
    .calendar-head strong { font-size: 20px; }
    .calendar-grid a { width: 30px; height: 30px; font-size: 16px; }
    .game-title-row h2 { font-size: 23px; }
    .game-meta { padding-right: 40px; }
    .top-action-bar { width: calc(100% - 32px); }
}

@media (max-width: 1180px) {
    .layout-three { grid-template-columns: 1fr; }
    .right-panel { position: static; }
    .date-panel {
        display: grid;
        grid-template-columns: minmax(300px, 360px) minmax(260px, 1fr);
        gap: 20px;
        align-items: start;
    }
    .date-panel h2 { grid-column: 1 / -1; }
    .calendar { border-bottom: 0; padding-bottom: 0; }
    .quick-grid,
    .panel-section { padding-top: 0; }
    .game-card { grid-template-columns: 78px minmax(240px, 32%) minmax(0, 1fr); grid-template-areas: "type banner body" "type banner meta"; }
    .game-meta { border-left: 0; border-top: 1px solid rgba(213, 162, 93, .18); }
}

@media (max-width: 900px) {
    .app-shell { display: block; }
    .top-action-bar {
        position: sticky;
        top: 0;
        z-index: 150;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
        padding: 10px 12px;
        border-width: 0 0 1px;
        border-radius: 0;
    }
    .mobile-menu-toggle {
        display: inline-grid;
        place-items: center;
        gap: 4px;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid rgba(218, 170, 101, .32);
        border-radius: var(--radius);
        color: #f3d9ad;
        background: rgba(12, 9, 6, .62);
        cursor: pointer;
    }
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform .18s ease, opacity .18s ease;
    }
    body.is-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    body.is-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.is-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    .top-action-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        justify-self: end;
        width: min(230px, 100%);
        min-height: 42px;
        padding: 8px 10px;
        border: 1px solid rgba(218, 170, 101, .3);
        border-radius: var(--radius);
        color: #f3d9ad;
        background: rgba(12, 9, 6, .58);
        font-family: var(--ui);
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        cursor: pointer;
    }
    .top-action-toggle span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .top-action-toggle i {
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform .18s ease;
    }
    .top-action-bar:not(.is-collapsed) .top-action-toggle i {
        transform: translateY(2px) rotate(225deg);
    }
    .top-action-panel {
        grid-column: 1 / -1;
        display: grid;
        gap: 10px;
        padding-top: 10px;
    }
    .top-action-bar.is-collapsed .top-action-panel {
        display: none;
    }
    .sidebar {
        position: fixed;
        left: -100%;
        top: 63px;
        bottom: 0;
        z-index: 140;
        width: min(360px, 92vw);
        height: calc(100dvh - 63px);
        max-height: calc(100dvh - 63px);
        padding: 14px 0 10px;
        overflow: hidden;
        transform: none;
        transition: none;
        box-shadow: 24px 0 48px rgba(0,0,0,.46);
    }
    body.is-menu-open .sidebar {
        left: 0 !important;
        transform: none !important;
    }
    .mobile-menu-backdrop {
        position: fixed;
        inset: 63px 0 0;
        z-index: 130;
        background: rgba(0,0,0,.48);
    }
    body.is-menu-open .mobile-menu-backdrop {
        display: block;
    }
    .brand {
        flex: 0 0 auto;
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 10px;
        justify-items: start;
        align-items: center;
        text-align: left;
        padding: 0 18px 10px;
    }
    .brand-logo { width: 116px; }
    .brand::after { left: 74px; top: 31px; width: 10px; height: 10px; }
    .brand-subtitle { margin-top: 0; }
    .side-nav {
        flex: 0 1 auto;
        grid-template-columns: 1fr;
        gap: 6px;
        min-height: 0;
        padding: 0 18px 0 20px;
        overflow-y: auto;
        scrollbar-width: none;
    }
    .side-nav::-webkit-scrollbar {
        display: none;
    }
    .side-nav a {
        grid-template-columns: 28px minmax(0, 1fr);
        min-height: 48px;
        padding: 0 16px 0 34px;
        border: 0;
        border-radius: 0;
        background-size: 100% 100%;
        font-size: 13.5px;
    }
    .side-nav a span {
        width: 28px;
        font-size: 20px;
    }
    .side-nav a.active::after { display: none; }
    .mascot-card {
        flex: 1 1 150px;
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        min-height: 130px;
        max-height: 210px;
        margin: 8px 18px 0;
        overflow: hidden;
    }
    .mascot-bubble {
        margin: 0 8px 2px;
        padding: 8px 10px;
        font-size: 12px;
        line-height: 1.25;
    }
    .mascot-img {
        max-height: min(138px, 24dvh);
        object-fit: contain;
        object-position: bottom center;
        width: 100%;
        margin: -4px auto -10px;
        transform: none;
    }
    .main-area { padding: 18px; }
    .site-footer {
        width: calc(100% - 36px);
        margin: 0 auto 76px;
    }
    .top-action-buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }
    .top-action-buttons button {
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        white-space: normal;
        line-height: 1.15;
    }
    .top-profile {
        width: 100%;
        max-width: none;
    }
    .hero-row,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .top-location { margin-left: 0; padding-left: 0; }
    .top-filters,
    .top-filters.single-line {
        grid-template-columns: 1fr;
    }
    .filter-submit { display: inline-flex !important; }
    .game-card {
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-areas:
            "type banner"
            "body body"
            "meta meta";
    }
    .game-banner { min-height: 155px; }
    .game-meta { padding-right: 46px; }
    .game-roles {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 9px;
    }
    .role-choice-form,
    .role-choice,
    .game-roles span {
        width: 100%;
    }
    .role-choice {
        min-height: 44px;
        padding: 10px 12px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }
    .date-panel {
        display: block;
    }
    .version-entry,
    .version-entry.has-image,
    .news-card,
    .music-track,
    .music-player,
    .mail-admin-grid,
    .input-with-button,
    .cookie-banner,
    .oauth-grid,
    .character-card,
    .character-card .form-grid,
    .saved-character-card {
        grid-template-columns: 1fr;
    }
    .version-entry img {
        width: 100%;
    }
    .character-card .form-grid label:nth-of-type(n+3),
    .character-card .form-actions {
        grid-column: auto;
    }
    .saved-character-progress {
        grid-template-columns: 1fr;
    }
    .saved-character-ability-edit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .detail-hero {
        grid-template-columns: 1fr;
    }
    .detail-type {
        left: 14px;
        top: 14px;
        grid-row: auto;
    }
    .detail-banner {
        min-height: 270px;
    }
    .detail-summary {
        padding: 20px;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .phrase-form {
        display: grid;
    }
    .phrase-form textarea {
        min-width: 0;
    }
    .calendar { padding-bottom: 20px; border-bottom: 1px solid rgba(213, 162, 93, .17); }
    .quick-grid,
    .panel-section { padding-top: 20px; }
    .form-grid.two-cols,
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .dice-controls {
        grid-template-columns: 1fr;
    }
    .dice-stage {
        min-height: 340px;
    }
    .ability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .role-row {
        grid-template-columns: 1fr;
    }
    .mail-admin-sidebar,
    .smtp-panel,
    .mail-template-form {
        padding: 14px;
    }
}

@media (max-width: 900px) and (max-height: 700px) {
    .brand {
        grid-template-columns: 96px minmax(0, 1fr);
        padding-bottom: 6px;
    }
    .brand-logo { width: 96px; }
    .brand::after { left: 62px; top: 26px; }
    .side-nav {
        gap: 4px;
    }
    .side-nav a {
        min-height: 42px;
        padding-left: 32px;
        font-size: 12.5px;
    }
    .mascot-card {
        min-height: 108px;
        max-height: 158px;
        margin-top: 4px;
    }
    .mascot-bubble {
        padding: 7px 9px;
        font-size: 11.5px;
        line-height: 1.18;
    }
    .mascot-img {
        max-height: min(94px, 18dvh);
    }
}

@media (max-width: 560px) {
    h1 { font-size: 29px; }
    h2 { font-size: 22px; }
    .version-badge {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
    }
    .side-nav { grid-template-columns: 1fr; }
    .top-action-buttons {
        grid-template-columns: 1fr;
    }
    .datetime-parts {
        grid-template-columns: 1fr;
    }
    .dice-dialog {
        padding: 18px;
    }
    .dice-stage {
        min-height: 310px;
    }
    .dice-cube {
        --size: 40px;
    }
    .game-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "type"
            "banner"
            "body"
            "meta";
    }
    .type-panel {
        min-height: 58px;
        grid-template-columns: auto auto;
        justify-content: start;
        padding-left: 16px;
        border-left-width: 6px;
    }
    .detail-type {
        left: 12px;
        top: 12px;
        min-height: 40px;
        padding: 8px 11px 8px 9px;
        border-left-width: 6px;
    }
    .detail-banner {
        min-height: 215px;
    }
    .detail-summary {
        padding: 18px 16px;
    }
    .game-banner { min-height: 145px; }
    .game-roles {
        grid-template-columns: 1fr;
    }
    .game-body,
    .game-meta { padding-left: 16px; padding-right: 16px; }
    .bookmark { right: 16px; }
    .quick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1360px) {
    .detail-top-grid {
        grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    }
    .booking-panel {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 22px;
    }
    .booking-panel .seats-ribbon,
    .booking-panel .capacity,
    .booking-panel .join-form,
    .booking-panel .button,
    .booking-panel small {
        grid-column: 1 / -1;
    }
    .ornate-card,
    .ornate-card.master-card,
    .ornate-card.gallery-card,
    .ornate-card.faq-card {
        grid-column: span 6;
    }
    .ornate-card.wide-card {
        grid-column: span 6;
    }
    .activity-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .game-detail-page {
        max-width: none;
    }
    .detail-top-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .detail-art {
        min-height: 240px;
    }
    .booking-panel {
        grid-template-columns: 1fr;
    }
    .ornate-card,
    .ornate-card.wide-card,
    .ornate-card.master-card,
    .ornate-card.gallery-card,
    .ornate-card.faq-card,
    .ornate-card.campaign-wide,
    .ornate-card.roles-wide {
        grid-column: 1 / -1;
    }
    .activity-grid,
    .material-grid,
    .chapter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .master-card-body {
        grid-template-columns: 72px minmax(0, 1fr);
    }
    .master-card-body dl {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-left: 0;
        border-top: 1px solid rgba(218, 170, 101, .16);
        padding: 12px 0 0;
    }
    .campaign-wide {
        grid-template-columns: 1fr;
    }
    .campaign-wide h2,
    .campaign-wide p,
    .campaign-wide .chapter-grid {
        grid-column: 1;
        grid-row: auto;
    }
    .campaign-wide .chapter-grid {
        margin-top: 6px;
    }
    .activity-picker > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .detail-hero-copy h1 {
        font-size: 32px;
    }
    .detail-tag-row span {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 13px;
    }
    .ornate-card,
    .booking-panel,
    .game-form-section {
        padding: 16px;
    }
    .booking-row {
        grid-template-columns: 24px minmax(78px, .7fr) minmax(0, 1fr);
        font-size: 14px;
    }
    .activity-grid,
    .material-grid,
    .chapter-grid,
    .limit-tags,
    .activity-picker > div {
        grid-template-columns: 1fr;
    }
    .character-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .character-cta span {
        justify-self: center;
    }
}

/* Keep bitmap frames decorative rather than overpainting the content. */
.detail-art-frame::after,
.ornate-card::after,
.booking-panel::after,
.character-cta::after,
.game-form-section::after {
    z-index: 1;
    opacity: .72;
    background-position:
        left 4px top 4px,
        right 4px top 4px,
        left 4px bottom 4px,
        right 4px bottom 4px,
        left 50px top 8px,
        left 50px bottom 8px,
        left 8px top 50px,
        right 8px top 50px;
    background-size:
        62px 62px,
        62px 62px,
        62px 62px,
        62px 62px,
        96px 14px,
        96px 14px,
        14px 96px,
        14px 96px;
}
.detail-art-frame::after,
.booking-panel::after {
    opacity: .84;
}
.detail-art-frame > *,
.ornate-card > *,
.booking-panel > *,
.character-cta > *,
.game-form-section > * {
    z-index: 2;
}
.ornate-card {
    padding: 23px 24px;
}
.booking-panel {
    padding: 24px 23px 24px;
}
@media (max-width: 620px) {
    .detail-art-frame::after,
    .ornate-card::after,
    .booking-panel::after,
    .character-cta::after,
    .game-form-section::after {
        opacity: .58;
        background-position:
            left 3px top 3px,
            right 3px top 3px,
            left 3px bottom 3px,
            right 3px bottom 3px,
            left 44px top 7px,
            left 44px bottom 7px,
            left 7px top 44px,
            right 7px top 44px;
        background-size:
            54px 54px,
            54px 54px,
            54px 54px,
            54px 54px,
            96px 14px,
            96px 14px,
            14px 96px,
            14px 96px;
    }
}

/* Final bitmap-frame tuning. Must stay after the PNG-built ornament block. */
.detail-art-frame::after,
.ornate-card::after,
.booking-panel::after,
.character-cta::after,
.game-form-section::after {
    z-index: 1;
    opacity: .72;
    background-position:
        left 4px top 4px,
        right 4px top 4px,
        left 4px bottom 4px,
        right 4px bottom 4px,
        left 50px top 8px,
        left 50px bottom 8px,
        left 8px top 50px,
        right 8px top 50px;
    background-size:
        62px 62px,
        62px 62px,
        62px 62px,
        62px 62px,
        96px 14px,
        96px 14px,
        14px 96px,
        14px 96px;
}
.detail-art-frame::after,
.booking-panel::after {
    opacity: .84;
}
.detail-art-frame > *,
.ornate-card > *,
.booking-panel > *,
.character-cta > *,
.game-form-section > * {
    z-index: 2;
}
@media (max-width: 620px) {
    .detail-art-frame::after,
    .ornate-card::after,
    .booking-panel::after,
    .character-cta::after,
    .game-form-section::after {
        opacity: .58;
        background-position:
            left 3px top 3px,
            right 3px top 3px,
            left 3px bottom 3px,
            right 3px bottom 3px,
            left 44px top 7px,
            left 44px bottom 7px,
            left 7px top 44px,
            right 7px top 44px;
        background-size:
            54px 54px,
            54px 54px,
            54px 54px,
            54px 54px,
            96px 14px,
            96px 14px,
            14px 96px,
            14px 96px;
    }
}

/* PNG-built ornament system: corners, repeated frame edges, panel and button textures. */
.detail-art-frame,
.ornate-card,
.booking-panel,
.character-cta,
.game-form-section,
.top-action-bar {
    background-image:
        linear-gradient(180deg, rgba(19, 13, 8, .74), rgba(5, 4, 3, .82)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 520px 340px;
    background-repeat: repeat, repeat;
    background-position: center, center;
}
.detail-art-frame::after,
.ornate-card::after,
.booking-panel::after,
.character-cta::after,
.game-form-section::after {
    background-image:
        url("../images/ui/ornate-corner-tl.png"),
        url("../images/ui/ornate-corner-tr.png"),
        url("../images/ui/ornate-corner-bl.png"),
        url("../images/ui/ornate-corner-br.png"),
        url("../images/ui/ornate-edge-h.png"),
        url("../images/ui/ornate-edge-h.png"),
        url("../images/ui/ornate-edge-v.png"),
        url("../images/ui/ornate-edge-v.png");
    background-position:
        left 4px top 4px,
        right 4px top 4px,
        left 4px bottom 4px,
        right 4px bottom 4px,
        left 50px top 8px,
        left 50px bottom 8px,
        left 8px top 50px,
        right 8px top 50px;
    background-size:
        62px 62px,
        62px 62px,
        62px 62px,
        62px 62px,
        96px 14px,
        96px 14px,
        14px 96px,
        14px 96px;
    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        repeat-x,
        repeat-x,
        repeat-y,
        repeat-y;
    z-index: 1;
    opacity: .72;
}
.detail-art-frame::after,
.booking-panel::after {
    opacity: .84;
}
.detail-art-frame::before,
.ornate-card::before,
.booking-panel::before,
.character-cta::before,
.game-form-section::before {
    inset: 15px;
    border-color: rgba(213, 151, 74, .16);
    box-shadow:
        inset 0 0 0 1px rgba(43, 24, 10, .74),
        inset 0 0 30px rgba(0, 0, 0, .26);
}
.ornate-card,
.booking-panel,
.game-form-section {
    border-color: rgba(190, 124, 50, .58);
}
.detail-art {
    border-image: url("../images/ui/ornate-edge-h.png") 6 repeat;
}
.button.primary,
.booking-panel .button.primary,
.character-cta .button,
.join-form .button.primary {
    border: 1px solid rgba(255, 205, 123, .42);
    background-image:
        linear-gradient(180deg, rgba(255, 228, 170, .08), rgba(77, 34, 11, .12)),
        url("../images/ui/button-gold.png");
    background-size: cover, 100% 100%;
    background-repeat: no-repeat;
    color: #1d1208;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .09),
        0 10px 22px rgba(0, 0, 0, .28);
}
.button.ghost,
.booking-panel .button.ghost,
.top-action-buttons button,
.top-action-buttons a,
.detail-tag-row span,
.activity-picker label {
    background-image:
        linear-gradient(180deg, rgba(255, 225, 156, .035), rgba(0, 0, 0, .08)),
        url("../images/ui/button-dark.png");
    background-size: cover, 100% 100%;
    background-repeat: no-repeat;
}
.detail-tag-row span,
.limit-tags span,
.chapter-grid span {
    background-image:
        linear-gradient(180deg, rgba(255, 216, 140, .035), rgba(0, 0, 0, .12)),
        url("../images/ui/tag-dark.png");
    background-size: cover, 100% 100%;
    background-repeat: no-repeat;
}
.detail-tag-row span:first-child,
.seats-ribbon,
.seats-ribbon::before,
.seats-ribbon::after {
    background-image: url("../images/ui/ribbon-purple.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.seats-ribbon {
    min-width: 186px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: 0 10px 22px rgba(75, 31, 116, .34);
}
.seats-ribbon::before,
.seats-ribbon::after {
    display: none;
}
.ornate-card h2 span,
.game-form-section-head > span,
.activity-grid i {
    border: 0;
    background-image: url("../images/ui/icon-medallion.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: none;
}
.ornate-card h2 span::before,
.ornate-card h2 span::after,
.game-form-section-head > span::before,
.game-form-section-head > span::after,
.activity-grid i::after {
    display: none;
}
.activity-grid {
    border-image: url("../images/ui/ornate-edge-h.png") 6 repeat;
}
.activity-grid div {
    background-image:
        linear-gradient(180deg, rgba(255, 217, 145, .035), rgba(0, 0, 0, .18)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 260px 170px;
}
.material-grid figure,
.faq-list details,
.master-card-body dl {
    background-image:
        linear-gradient(180deg, rgba(255, 217, 145, .028), rgba(0, 0, 0, .12)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 360px 240px;
    background-repeat: repeat;
}
@media (max-width: 620px) {
    .detail-art-frame::after,
    .ornate-card::after,
    .booking-panel::after,
    .character-cta::after,
    .game-form-section::after {
        background-position:
            left 3px top 3px,
            right 3px top 3px,
            left 3px bottom 3px,
            right 3px bottom 3px,
            left 44px top 7px,
            left 44px bottom 7px,
            left 7px top 44px,
            right 7px top 44px;
        background-size:
            54px 54px,
            54px 54px,
            54px 54px,
            54px 54px,
            96px 14px,
            96px 14px,
            14px 96px,
            14px 96px;
        opacity: .58;
    }
}

/* Reference visual correction: keep PNG ornament precise and restrained. */
.top-action-bar {
    max-width: 1540px;
    min-height: 58px;
    padding: 10px 14px;
    border-color: rgba(194, 128, 54, .28);
    background-image:
        linear-gradient(180deg, rgba(18, 13, 8, .86), rgba(6, 5, 4, .9)),
        url("../images/ui/panel-texture.png");
    box-shadow: inset 0 0 0 1px rgba(255, 218, 144, .025), 0 16px 46px rgba(0,0,0,.24);
}
.top-action-buttons {
    gap: 8px;
}
.top-action-buttons button,
.top-action-buttons a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 18px;
    border-color: rgba(202, 139, 61, .32);
    color: #edd0a0;
    letter-spacing: 0;
}
.top-action-buttons span {
    color: #d69a4d;
    font-size: 19px;
    line-height: 1;
    text-shadow: 0 0 14px rgba(214, 154, 77, .28);
}
.top-action-buttons > * > span[aria-hidden="true"] {
    display: none;
}
.top-action-buttons a[href$="news.php"],
.top-action-buttons a[href$="music.php"] {
    min-width: 112px;
}
.top-profile {
    min-height: 42px;
    border-color: rgba(202, 139, 61, .26);
    background: rgba(7, 6, 5, .38);
}
.content-card.ref-page {
    max-width: 1540px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.content-card.ref-page > .section-head {
    margin-bottom: 18px;
}
.content-card.ref-page h1,
.game-detail-page h1 {
    color: #f1d29b;
    text-shadow: 0 4px 28px rgba(0,0,0,.66);
}

.detail-shell {
    gap: 18px;
}
.detail-top-grid {
    grid-template-columns: minmax(340px, 410px) minmax(0, 1fr) 330px;
    gap: 30px;
}
@media (min-width: 1361px) {
    .detail-top-grid {
        grid-template-columns: minmax(340px, 410px) minmax(0, 1fr);
        padding-right: 360px;
        min-height: 316px;
    }
    .detail-card-grid,
    .character-cta {
        width: calc(100% - 360px);
    }
}
.detail-art-frame,
.booking-panel,
.game-form-section,
.music-now-panel,
.news-card.is-featured {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(190, 124, 50, .42);
    border-radius: 7px;
    background-image:
        linear-gradient(180deg, rgba(24, 17, 10, .82), rgba(7, 6, 4, .9)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 520px 340px;
    background-repeat: repeat;
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 157, .028),
        inset 0 0 38px rgba(0,0,0,.34),
        0 18px 44px rgba(0,0,0,.28);
}
.detail-art-frame::before,
.booking-panel::before,
.game-form-section::before,
.music-now-panel::before,
.news-card.is-featured::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 1;
    pointer-events: none;
    border: 1px solid rgba(218, 156, 75, .12);
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(35, 20, 9, .65);
}
.detail-art-frame::after,
.booking-panel::after,
.game-form-section::after,
.music-now-panel::after,
.news-card.is-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background-image:
        url("../images/ui/ornate-corner-tl.png"),
        url("../images/ui/ornate-corner-tr.png"),
        url("../images/ui/ornate-corner-bl.png"),
        url("../images/ui/ornate-corner-br.png"),
        url("../images/ui/ornate-edge-h.png"),
        url("../images/ui/ornate-edge-h.png"),
        url("../images/ui/ornate-edge-v.png"),
        url("../images/ui/ornate-edge-v.png");
    background-position:
        left 5px top 5px,
        right 5px top 5px,
        left 5px bottom 5px,
        right 5px bottom 5px,
        left 74px top 10px,
        left 74px bottom 10px,
        left 10px top 74px,
        right 10px top 74px;
    background-size:
        76px 76px,
        76px 76px,
        76px 76px,
        76px 76px,
        128px 16px,
        128px 16px,
        16px 128px,
        16px 128px;
    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        repeat-x,
        repeat-x,
        repeat-y,
        repeat-y;
    opacity: .5;
}
.detail-art-frame > *,
.booking-panel > *,
.game-form-section > *,
.music-now-panel > *,
.news-card.is-featured > * {
    position: relative;
    z-index: 2;
}
.detail-art-frame {
    padding: 10px;
}
.detail-art {
    min-height: 310px;
    border: 1px solid rgba(216, 151, 72, .34);
    border-radius: 3px;
    border-image: none;
}
.ornate-card,
.character-cta {
    overflow: hidden;
    border: 1px solid rgba(190, 124, 50, .28);
    border-radius: 7px;
    background-image:
        linear-gradient(180deg, rgba(22, 16, 10, .66), rgba(8, 7, 5, .76)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 520px 340px;
    box-shadow: inset 0 0 0 1px rgba(255, 226, 157, .018), 0 14px 34px rgba(0,0,0,.2);
}
.ornate-card::after,
.character-cta::after {
    display: none;
}
.ornate-card::before,
.character-cta::before {
    inset: 8px;
    border-color: rgba(218, 156, 75, .08);
    box-shadow: none;
}
.ornate-card {
    min-height: 116px;
    padding: 18px 20px;
}
.ornate-card h2 {
    padding-bottom: 8px;
    font-size: 15px;
    color: #d7ac63;
}
.ornate-card h2 span,
.game-form-section-head > span,
.activity-grid i {
    background-image: none;
    border: 1px solid rgba(126, 74, 203, .5);
    border-radius: 6px;
    background:
        radial-gradient(circle at 50% 42%, rgba(139, 81, 220, .24), transparent 60%),
        linear-gradient(180deg, rgba(36, 20, 54, .84), rgba(12, 9, 17, .8));
    box-shadow: inset 0 0 16px rgba(139, 81, 220, .12), 0 0 20px rgba(139, 81, 220, .1);
}
.activity-grid {
    border: 1px solid rgba(213, 151, 74, .12);
    border-image: none;
}
.activity-grid div,
.material-grid figure,
.faq-list details,
.master-card-body dl {
    background-image:
        linear-gradient(180deg, rgba(255, 220, 148, .024), rgba(0, 0, 0, .14)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 520px 340px;
}
.booking-panel {
    padding: 20px 20px 22px;
}
.booking-row {
    grid-template-columns: 28px minmax(84px, .58fr) minmax(0, 1fr);
    padding: 10px 0;
}
.booking-row span {
    background: transparent;
    border-color: transparent;
}
.character-cta {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 56px;
    padding: 10px 16px;
    background:
        linear-gradient(90deg, rgba(83, 37, 122, .44), rgba(8, 7, 5, .74) 36%, rgba(96, 45, 131, .2)),
        url("../images/ui/panel-texture.png");
}
.character-cta span {
    color: #935ce8;
}

.ref-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.ref-search {
    width: min(320px, 100%);
    min-height: 40px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    border: 1px solid rgba(201, 139, 61, .28);
    border-radius: 6px;
    background-image:
        linear-gradient(180deg, rgba(18, 13, 8, .72), rgba(7, 6, 5, .82)),
        url("../images/ui/button-dark.png");
    background-size: cover, 100% 100%;
}
.ref-search span {
    color: #d69a4d;
    text-align: center;
    font-size: 20px;
}
.ref-search input {
    border: 0;
    background: transparent;
}
.ref-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ref-filter-row button,
.ref-filter-row a,
.music-mood-row button {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(201, 139, 61, .28);
    border-radius: 6px;
    color: #dfbf86;
    background-image:
        linear-gradient(180deg, rgba(255, 225, 156, .035), rgba(0, 0, 0, .08)),
        url("../images/ui/button-dark.png");
    background-size: cover, 100% 100%;
    font-family: var(--ui);
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
.ref-filter-row button.active,
.ref-filter-row a.active,
.music-mood-row button.active,
.ref-pill {
    border-color: rgba(146, 88, 225, .62);
    color: #f1e5ff;
    background: linear-gradient(180deg, rgba(132, 74, 202, .96), rgba(69, 33, 103, .96));
}
.news-layout,
.music-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start;
}
.news-main,
.music-main,
.news-sidebar,
.music-side {
    min-width: 0;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.news-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(190, 124, 50, .28);
    border-radius: 7px;
    background-image:
        linear-gradient(180deg, rgba(22, 16, 10, .66), rgba(8, 7, 5, .78)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 520px 340px;
    overflow: hidden;
}
.news-card.is-featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(360px, .55fr) minmax(0, .45fr);
    min-height: 280px;
}
.news-card figure {
    position: relative;
    min-height: 160px;
    margin: 0;
}
.news-card figure span {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    color: #f1e5ff;
    background: linear-gradient(180deg, #7b43c9, #4a2477);
    font-family: var(--ui);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.news-card img,
.news-card > img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
    filter: saturate(.92) contrast(1.05);
}
.news-card.is-featured img {
    min-height: 280px;
}
.news-card-body,
.news-card > div {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 18px;
}
.news-card.is-featured .news-card-body {
    padding: 28px 26px;
}
.news-card h2 {
    color: #ecc98f;
    font-size: 22px;
    line-height: 1.15;
}
.news-card.is-featured h2 {
    font-size: clamp(27px, 2.2vw, 36px);
}
.news-card p {
    margin: 0;
    color: #d7bea0;
    line-height: 1.55;
}
.news-more-actions {
    justify-content: center;
    margin-top: 16px;
}
.news-active-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -6px 0 18px;
}
.news-active-filter span,
.news-active-filter a {
    padding: 7px 11px;
    border: 1px solid rgba(218, 156, 75, .24);
    border-radius: 5px;
    color: #dfbf86;
    background: rgba(12, 9, 6, .72);
    font-family: var(--ui);
    font-size: 13px;
    text-decoration: none;
}
.news-active-filter a {
    color: #e6ae62;
}
.ref-side-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(190, 124, 50, .3);
    border-radius: 7px;
    background-image:
        linear-gradient(180deg, rgba(22, 16, 10, .72), rgba(8, 7, 5, .82)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 520px 340px;
    box-shadow: inset 0 0 0 1px rgba(255, 226, 157, .018), 0 14px 34px rgba(0,0,0,.2);
}
.ref-side-panel + .ref-side-panel {
    margin-top: 14px;
}
.ref-side-panel h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #d8ad66;
    font-size: 17px;
    text-transform: uppercase;
}
.ref-side-panel h2 span {
    color: #d59b4e;
}
.ref-ranked-list {
    counter-reset: ref-rank;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ref-ranked-list li {
    counter-increment: ref-rank;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(218, 156, 75, .12);
}
.ref-ranked-list li::before {
    content: counter(ref-rank);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(218, 156, 75, .32);
    border-radius: 50%;
    color: #dba153;
    background: rgba(7, 6, 5, .42);
    font-family: var(--ui);
}
.ref-ranked-list strong {
    color: #dec192;
    font-size: 14px;
    line-height: 1.35;
}
.ref-ranked-list span,
.ref-side-panel p {
    color: #bfa783;
    font-size: 13px;
    line-height: 1.45;
}
.ref-event-list {
    display: grid;
    gap: 10px;
}
.ref-event-list div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0 12px;
    align-items: center;
}
.ref-event-list strong {
    grid-row: span 2;
    display: grid;
    place-items: center;
    min-height: 46px;
    border: 1px solid rgba(218, 156, 75, .28);
    color: #dfad60;
    font-size: 20px;
}
.ref-event-list span {
    color: #a9895a;
    font-size: 11px;
}
.ref-event-list p {
    margin: 0;
    color: #dec192;
}
.ref-event-list a {
    color: #dec192;
    text-decoration: none;
}
.ref-event-list small {
    display: block;
    margin-top: 3px;
    color: #a9895a;
    font-size: 12px;
}
.ref-topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ref-topic-tags span,
.ref-topic-tags a {
    padding: 6px 10px;
    border-radius: 5px;
    color: #f0e5ff;
    background: rgba(105, 57, 164, .52);
    font-size: 13px;
    text-decoration: none;
}
.ref-topic-tags a.active {
    outline: 1px solid rgba(238, 197, 128, .82);
    box-shadow: 0 0 18px rgba(214, 154, 77, .18);
}

.admin-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(218, 156, 75, .18);
}
.section-head.compact {
    margin-bottom: 12px;
}
.section-head.compact h2 {
    margin: 0;
    color: #f3d9a4;
    font-size: 26px;
}
.checkbox-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.checkbox-line input {
    width: auto;
}
.admin-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid rgba(218, 156, 75, .18);
    border-radius: 7px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    background: rgba(9, 7, 5, .44);
}
.admin-table th,
.admin-table td {
    padding: 11px 13px;
    border-bottom: 1px solid rgba(218, 156, 75, .12);
    color: #d8c29d;
    text-align: left;
}
.admin-table th {
    color: #e6bd72;
    background: rgba(29, 19, 10, .58);
    font-family: var(--ui);
    text-transform: uppercase;
}
.master-status-help {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.master-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(218, 156, 75, .32);
    border-radius: 999px;
    color: #f0d49b;
    background: rgba(20, 13, 7, .72);
    font-family: var(--ui);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.master-status-badge.status-novice {
    color: #d8c29d;
}
.master-status-badge.status-experienced {
    border-color: rgba(91, 144, 61, .56);
    color: #bfe68e;
}
.master-status-badge.status-trusted {
    border-color: rgba(146, 88, 225, .62);
    color: #d9c1ff;
}
.master-status-badge.status-veteran {
    border-color: rgba(224, 177, 101, .64);
    color: #f2cf8f;
}
.master-status-badge.status-legendary {
    border-color: rgba(234, 189, 99, .84);
    color: #ffe4a4;
    box-shadow: 0 0 18px rgba(214, 154, 77, .18);
}

.music-now-panel {
    display: grid;
    grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr);
    gap: 24px;
    padding: 16px;
    margin-bottom: 14px;
}
.music-cover-art {
    min-height: 240px;
    margin: 0;
    border: 1px solid rgba(216, 151, 72, .3);
    border-radius: 4px;
    overflow: hidden;
}
.music-cover-art img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    filter: saturate(.86) contrast(1.04);
}
.music-now-body {
    display: grid;
    align-content: center;
    gap: 12px;
    padding-right: 10px;
}
.ref-pill {
    width: max-content;
    padding: 6px 11px;
    border-radius: 5px;
    font-family: var(--ui);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.music-now-body h2 {
    color: #f0cf98;
    font-size: clamp(31px, 3vw, 44px);
}
.music-now-body p {
    margin: 0;
    color: #d7bea0;
}
.music-player-large,
.music-now-panel .music-player {
    grid-template-columns: 54px minmax(0, 1fr) minmax(140px, 190px);
    padding: 14px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.music-now-panel .music-play {
    width: 54px;
    height: 54px;
    color: #f0cc90;
    background: rgba(8, 7, 5, .45);
    border-color: rgba(218, 156, 75, .5);
}
.music-mood-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid rgba(190, 124, 50, .24);
    border-radius: 7px;
    background: rgba(12, 9, 6, .46);
}
.music-mood-row button {
    min-width: 0;
    padding: 8px 10px;
    font-size: 13px;
}
.music-list {
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(190, 124, 50, .24);
    border-radius: 7px;
    background-image:
        linear-gradient(180deg, rgba(18, 13, 8, .62), rgba(7, 6, 5, .76)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 520px 340px;
}
.music-track {
    grid-template-columns: minmax(220px, .36fr) minmax(0, 1fr);
    padding: 8px 10px;
    border-color: rgba(218, 156, 75, .12);
    border-radius: 5px;
    background: rgba(4, 4, 3, .22);
}
.track-title {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.track-title > span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(218, 156, 75, .28);
    border-radius: 50%;
    color: #d59b4e;
    font-size: 11px;
}
.music-track h2 {
    color: #e4c28c;
    font-size: 16px;
}
.music-track .music-player {
    grid-template-columns: 36px minmax(0, 1fr) minmax(100px, 150px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.music-track .music-play {
    width: 34px;
    height: 34px;
    color: #d59b4e;
    background: transparent;
}
.ref-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #dec192;
}
.ref-toggle-row i {
    width: 42px;
    height: 22px;
    display: inline-block;
    border-radius: 999px;
    background: linear-gradient(180deg, #8e54e6, #542982);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.ref-toggle-row i::after {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    margin: 3px 3px 3px auto;
    border-radius: 50%;
    background: #f4e8ff;
}
.youtube-form {
    display: grid;
    gap: 10px;
}
.youtube-form label {
    display: grid;
    gap: 7px;
    color: #dec192;
}
.youtube-player {
    padding: 10px 0 0;
    border: 0;
    background: transparent;
}

.character-builder-page {
    max-width: 1540px !important;
}
.character-builder-page .section-head {
    max-width: 1120px;
}
.character-builder-form {
    grid-template-columns: minmax(0, .72fr) minmax(0, .72fr);
    gap: 10px;
}
.character-builder-form > label,
.background-info,
.ability-grid label,
.character-preview,
.builder-step {
    border: 1px solid rgba(190, 124, 50, .24);
    border-radius: 7px;
    background-image:
        linear-gradient(180deg, rgba(18, 13, 8, .66), rgba(7, 6, 5, .78)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 520px 340px;
}
.character-builder-form > label {
    padding: 12px;
}
.builder-step {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px 16px;
}
.builder-step > span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #f1e5ff;
    background: linear-gradient(180deg, #8e54e6, #542982);
}
.builder-step h2 {
    color: #d8ad66;
    font-size: 18px;
    text-transform: uppercase;
}
.ability-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.ability-grid label {
    padding: 12px;
    text-align: center;
}
.ability-grid select,
.ability-grid input {
    text-align: center;
    color: #f0cf98;
    font-size: 22px;
    font-weight: 900;
}
.character-preview {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}
.character-preview div {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-left: 1px solid rgba(218, 156, 75, .12);
}
.character-preview div:first-child {
    border-left: 0;
}

@media (max-width: 1360px) {
    .news-layout,
    .music-layout {
        grid-template-columns: 1fr;
    }
    .news-sidebar,
    .music-side {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
    .ref-side-panel + .ref-side-panel {
        margin-top: 0;
    }
}
@media (max-width: 980px) {
    .detail-top-grid,
    .news-card.is-featured,
    .music-now-panel {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .music-mood-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .news-sidebar,
    .music-side,
    .character-preview {
        grid-template-columns: 1fr;
    }
    .character-preview div {
        border-left: 0;
        border-top: 1px solid rgba(218, 156, 75, .12);
    }
    .character-preview div:first-child {
        border-top: 0;
    }
}
@media (max-width: 620px) {
    .content-card.ref-page {
        padding: 0;
    }
    .top-action-buttons button,
    .top-action-buttons a {
        justify-content: flex-start;
    }
    .ref-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .ref-search {
        width: 100%;
    }
    .news-grid,
    .music-track,
    .music-player,
    .music-track .music-player,
    .music-player-large,
    .character-builder-form,
    .ability-grid {
        grid-template-columns: 1fr;
    }
    .news-card.is-featured img,
    .music-cover-art,
    .music-cover-art img {
        min-height: 210px;
    }
    .music-mood-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .detail-art-frame::after,
    .booking-panel::after,
    .game-form-section::after,
    .music-now-panel::after,
    .news-card.is-featured::after {
        background-size:
            56px 56px,
            56px 56px,
            56px 56px,
            56px 56px,
            128px 16px,
            128px 16px,
            16px 128px,
            16px 128px;
        background-position:
            left 4px top 4px,
            right 4px top 4px,
            left 4px bottom 4px,
            right 4px bottom 4px,
            left 54px top 8px,
            left 54px bottom 8px,
            left 8px top 54px,
            right 8px top 54px;
        opacity: .42;
    }
}

/* Type colors belong only to games. General UI uses the gold DragonNest accent. */
:root {
    --nri: #8e54e6;
    --wargame: #3157d8;
    --boardgame: #6fbf4d;
    --mafia: #d74a43;
}

.game-card,
.game-detail,
.game-detail-page {
    --type-color: var(--gold);
    --type-rgb: 201, 154, 91;
    --type-deep-rgb: 58, 36, 17;
}
.game-card.type-nri,
.game-detail.type-nri,
.game-detail-page.type-nri {
    --type-color: var(--nri);
    --type-rgb: 142, 84, 230;
    --type-deep-rgb: 45, 24, 76;
}
.game-card.type-wargame,
.game-detail.type-wargame,
.game-detail-page.type-wargame {
    --type-color: var(--wargame);
    --type-rgb: 49, 87, 216;
    --type-deep-rgb: 12, 25, 82;
}
.game-card.type-boardgame,
.game-detail.type-boardgame,
.game-detail-page.type-boardgame {
    --type-color: var(--boardgame);
    --type-rgb: 111, 191, 77;
    --type-deep-rgb: 23, 58, 20;
}
.game-card.type-mafia,
.game-detail.type-mafia,
.game-detail-page.type-mafia {
    --type-color: var(--mafia);
    --type-rgb: 215, 74, 67;
    --type-deep-rgb: 83, 18, 17;
}
.game-card.type-nri .type-panel { background: linear-gradient(90deg, rgba(82, 43, 137, .62), rgba(25, 17, 36, .86)); }
.game-card.type-wargame .type-panel { background: linear-gradient(90deg, rgba(31, 67, 170, .62), rgba(10, 20, 55, .86)); }
.game-card.type-boardgame .type-panel { background: linear-gradient(90deg, rgba(47, 113, 34, .62), rgba(16, 38, 14, .86)); }
.game-card.type-mafia .type-panel { background: linear-gradient(90deg, rgba(123, 34, 31, .62), rgba(42, 13, 12, .86)); }
.type-pill.type-nri,
.pill.type-nri { background-color: #6f48b8; color: #fff; }
.type-pill.type-wargame,
.pill.type-wargame { background-color: #284fc4; color: #eef3ff; }
.type-pill.type-boardgame,
.pill.type-boardgame { background-color: #4f9038; color: #0e1d0c; }
.type-pill.type-mafia,
.pill.type-mafia { background-color: #a93c38; color: #fff; }

/* Find page: restore the original compact horizontal game list. */
@media (min-width: 1500px) {
    .top-filters {
        grid-template-columns: repeat(4, minmax(155px, 1fr));
        gap: 10px;
        margin-bottom: 14px;
    }
    .game-list {
        gap: 10px;
    }
    .game-card {
        display: grid;
        grid-template-columns: 78px minmax(260px, 32%) minmax(230px, 1fr) minmax(218px, 250px);
        grid-template-areas: "type banner body meta";
        align-items: stretch;
        min-height: 178px;
        overflow: hidden;
        border-radius: 5px;
        border: 1px solid rgba(210, 157, 91, .26);
        background:
            linear-gradient(90deg, rgba(22, 20, 17, .97), rgba(10, 10, 9, .98) 54%, rgba(16, 14, 12, .97)),
            radial-gradient(circle at 22% 24%, rgba(203, 142, 67, .12), transparent 42%);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
    }
    .type-panel {
        min-height: 178px;
        padding: 12px 7px;
        border-left-width: 5px;
        border-right: 1px solid rgba(255, 238, 201, .08);
        gap: 10px;
        text-align: center;
    }
    .type-symbol {
        width: 42px;
        height: 42px;
        border-color: rgba(255, 234, 191, .18);
        background: radial-gradient(circle at 50% 42%, rgba(255, 235, 170, .08), transparent 62%);
        font-size: 27px;
    }
    .type-label {
        font-size: 12px;
        line-height: 1.16;
        overflow-wrap: anywhere;
    }
    .game-banner {
        min-height: 178px;
        height: 100%;
        background-size: cover;
        background-position: center;
    }
    .game-banner::after {
        background:
            linear-gradient(90deg, rgba(0,0,0,.1), transparent 48%, rgba(10,10,9,.78)),
            linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.18));
    }
    .game-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        padding: 20px 22px;
    }
    .game-title-row {
        display: block;
    }
    .game-title-row h2 {
        font-size: clamp(21px, 1.45vw, 26px);
        line-height: 1.08;
    }
    .game-title-row .pill {
        margin-top: 9px;
    }
    .game-body p {
        max-width: 43ch;
        margin-top: 10px;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .game-roles {
        margin-top: 10px;
        gap: 6px;
    }
    .game-list .game-card .game-roles {
        display: none;
    }
    .game-roles span,
    .role-choice {
        min-height: 28px;
        padding: 4px 8px;
    }
    .game-meta {
        grid-area: meta;
        justify-content: center;
        gap: 8px;
        min-width: 0;
        padding: 18px 42px 18px 18px;
        border-top: 0;
        border-left: 1px solid rgba(213, 162, 93, .16);
        background:
            linear-gradient(90deg, rgba(7, 7, 6, .14), rgba(17, 15, 13, .72)),
            radial-gradient(circle at 100% 50%, rgba(197, 139, 67, .08), transparent 42%);
    }
    .master-line {
        min-height: 31px;
        padding-bottom: 7px;
    }
    .avatar {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 13px;
    }
    .master-line strong,
    .meta-line strong {
        font-size: 14px;
        line-height: 1.25;
    }
    .meta-line {
        gap: 9px;
    }
    .bookmark {
        top: 15px;
        right: 15px;
    }
    .capacity {
        height: 4px;
        margin-top: 1px;
    }
    .game-list .game-card .join-form {
        display: none;
    }
    .game-list .game-card .game-roles {
        display: none;
    }
}

@media (min-width: 901px) and (max-width: 1499px) {
    .top-filters {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        gap: 10px;
    }
    .game-card {
        grid-template-columns: 76px minmax(240px, 38%) minmax(0, 1fr);
        grid-template-areas:
            "type banner body"
            "type banner meta";
        min-height: 170px;
        border-radius: 5px;
    }
    .game-banner,
    .type-panel {
        min-height: 170px;
    }
    .game-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 18px 20px 14px;
    }
    .game-title-row {
        display: block;
    }
    .game-title-row h2 {
        font-size: clamp(22px, 2.3vw, 27px);
    }
    .game-title-row .pill {
        margin-top: 8px;
    }
    .game-body p {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 9px;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .game-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px 12px;
        padding: 12px 42px 14px 20px;
        border-left: 0;
        border-top: 1px solid rgba(213, 162, 93, .15);
    }
    .master-line {
        grid-column: 1 / -1;
        min-height: 30px;
        padding-bottom: 7px;
    }
    .capacity {
        grid-column: 1 / -1;
        height: 4px;
    }
    .game-list .game-card .join-form {
        display: none;
    }
}

.ornate-card h2 span,
.game-form-section-head > span,
.activity-grid i,
.builder-step > span {
    border-color: rgba(214, 154, 77, .42);
    color: #d69a4d;
    background:
        radial-gradient(circle at 50% 42%, rgba(214, 154, 77, .18), transparent 60%),
        linear-gradient(180deg, rgba(53, 33, 15, .84), rgba(14, 10, 7, .8));
    box-shadow: inset 0 0 16px rgba(214, 154, 77, .1), 0 0 18px rgba(214, 154, 77, .08);
    text-shadow: 0 0 12px rgba(214, 154, 77, .28);
}
.ref-filter-row button.active,
.ref-filter-row a.active,
.music-mood-row button.active,
.ref-pill,
.builder-step > span {
    border-color: rgba(224, 177, 101, .5);
    color: #2a1707;
    background:
        linear-gradient(180deg, rgba(238, 197, 128, .96), rgba(178, 111, 45, .96)),
        url("../images/ui/button-gold.png");
    background-size: cover, 100% 100%;
}
.news-card figure span,
.ref-topic-tags span,
.ref-topic-tags a {
    color: #2a1707;
    background:
        linear-gradient(180deg, rgba(238, 197, 128, .96), rgba(178, 111, 45, .96)),
        url("../images/ui/tag-dark.png");
    background-size: cover, 100% 100%;
}
.ref-toggle-row i {
    background: linear-gradient(180deg, #e2b86f, #9f6328);
}
.ref-toggle-row i::after {
    background: #2b1809;
}

.game-detail-page .detail-master-trust strong,
.game-detail-page .master-card-body em {
    color: var(--type-color);
    text-shadow: 0 0 16px rgba(var(--type-rgb), .34);
}
.game-detail-page .detail-tag-row span:first-child {
    border-color: rgba(var(--type-rgb), .72);
    color: #f8f0df;
    background:
        linear-gradient(180deg, rgba(var(--type-rgb), .88), rgba(var(--type-deep-rgb), .96)),
        url("../images/ui/tag-dark.png");
    background-size: cover, 100% 100%;
    box-shadow: inset 0 0 20px rgba(255,255,255,.045), 0 8px 18px rgba(var(--type-rgb), .18);
}
.game-detail-page .seats-ribbon {
    color: #f8f0df;
    background-image: linear-gradient(180deg, rgba(var(--type-rgb), .95), rgba(var(--type-deep-rgb), .96));
    background-color: transparent;
    box-shadow: 0 10px 22px rgba(var(--type-rgb), .18);
}
.game-detail-page .ornate-card h2 span,
.game-detail-page .game-form-section-head > span,
.game-detail-page .activity-grid i,
.game-detail-page .character-cta span {
    border-color: rgba(var(--type-rgb), .45);
    color: var(--type-color);
    background:
        radial-gradient(circle at 50% 42%, rgba(var(--type-rgb), .22), transparent 60%),
        linear-gradient(180deg, rgba(var(--type-deep-rgb), .82), rgba(12, 9, 8, .8));
    box-shadow: inset 0 0 16px rgba(var(--type-rgb), .11), 0 0 18px rgba(var(--type-rgb), .08);
    text-shadow: 0 0 12px rgba(var(--type-rgb), .36);
}
.game-detail-page .character-cta {
    background:
        linear-gradient(90deg, rgba(var(--type-rgb), .18), rgba(8, 7, 5, .74) 36%, rgba(var(--type-rgb), .09)),
        url("../images/ui/panel-texture.png");
}

/* Dice roller module */
.dice-modal[hidden] {
    display: none !important;
}
.dice-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: clamp(10px, 2vw, 24px);
    overflow: hidden;
    background: rgba(2, 1, 0, .78);
    backdrop-filter: blur(5px);
}
.dice-dialog {
    position: relative;
    display: grid;
    gap: 18px;
    width: min(1280px, calc(100vw - 32px));
    max-height: min(900px, calc(100dvh - 32px));
    overflow: auto;
    overscroll-behavior: contain;
    padding: clamp(16px, 2vw, 26px);
    border: 1px solid rgba(194, 128, 54, .46);
    border-radius: 8px;
    color: #ecd4aa;
    background:
        linear-gradient(180deg, rgba(20, 14, 9, .96), rgba(6, 5, 4, .97)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 620px 410px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 218, 144, .04),
        inset 0 0 72px rgba(0, 0, 0, .46),
        0 30px 90px rgba(0, 0, 0, .72);
}
.dice-dialog::after {
    content: "";
    position: absolute;
    inset: 4px;
    pointer-events: none;
    background-image:
        url("../images/ui/ornate-corner-tl.png"),
        url("../images/ui/ornate-corner-tr.png"),
        url("../images/ui/ornate-corner-bl.png"),
        url("../images/ui/ornate-corner-br.png"),
        url("../images/ui/ornate-edge-h.png"),
        url("../images/ui/ornate-edge-h.png"),
        url("../images/ui/ornate-edge-v.png"),
        url("../images/ui/ornate-edge-v.png");
    background-position:
        left top,
        right top,
        left bottom,
        right bottom,
        left 58px top 4px,
        left 58px bottom 4px,
        left 4px top 58px,
        right 4px top 58px;
    background-size:
        62px 62px,
        62px 62px,
        62px 62px,
        62px 62px,
        108px 14px,
        108px 14px,
        14px 108px,
        14px 108px;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-x, repeat-x, repeat-y, repeat-y;
    opacity: .54;
}
.dice-close {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(221, 159, 82, .42);
    border-radius: 50%;
    color: #f5d9a9;
    background:
        radial-gradient(circle at 50% 35%, rgba(221, 159, 82, .28), transparent 66%),
        rgba(10, 7, 4, .84);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}
.dice-close:hover,
.dice-close:focus-visible {
    color: #ffe7ba;
    border-color: rgba(246, 202, 129, .66);
}
.dice-head {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding-right: 52px;
}
.dice-head h2 {
    margin: 0;
    color: #f3d49e;
    font-size: clamp(30px, 4vw, 48px);
}
.dice-head .muted {
    max-width: 760px;
    margin: 6px 0 0;
    color: #c9b38e;
}
.dice-status,
.dice-warning {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid rgba(215, 154, 77, .28);
    border-radius: 8px;
    color: #f0c17d;
    background:
        linear-gradient(180deg, rgba(33, 23, 13, .86), rgba(9, 7, 5, .9)),
        url("../images/ui/tag-dark.png");
    background-size: cover, 100% 100%;
    text-align: center;
}
.dice-warning {
    width: 100%;
    color: #ffd7a6;
    border-color: rgba(184, 62, 45, .46);
    background: rgba(77, 23, 15, .48);
}
.dice-warning.is-ok {
    color: #d9c49f;
    border-color: rgba(215, 154, 77, .24);
    background: rgba(12, 9, 6, .48);
}
.dice-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-areas:
        "builder table"
        "results results";
    gap: 14px;
    min-width: 0;
}
.dice-panel,
.dice-table,
.dice-summary {
    border: 1px solid rgba(194, 128, 54, .34);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(17, 12, 8, .86), rgba(6, 5, 4, .88)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 420px 280px;
    box-shadow: inset 0 0 0 1px rgba(255, 218, 144, .025);
}
.dice-builder {
    grid-area: builder;
    display: grid;
    align-content: start;
    gap: 13px;
    padding: 16px;
}
.dice-table {
    grid-area: table;
    min-width: 0;
    padding: 10px;
}
.dice-summary {
    grid-area: results;
    display: grid;
    gap: 9px;
    padding: 16px 18px;
}
.dice-preset-label,
.dice-set-row label {
    display: grid;
    gap: 6px;
    color: #d8bd91;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.dice-preset-label select,
.dice-set-row select,
.dice-set-row input {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 1px solid rgba(215, 154, 77, .32);
    border-radius: 7px;
    color: #f1d9ad;
    background:
        linear-gradient(180deg, rgba(15, 11, 7, .96), rgba(4, 4, 3, .96)),
        url("../images/ui/button-dark.png");
    background-size: cover, 100% 100%;
}
.dice-set-row input {
    padding: 0 10px;
}
.dice-quick-add {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.dice-quick-add button,
.dice-set-row button[data-row-remove] {
    min-height: 38px;
    border: 1px solid rgba(215, 154, 77, .28);
    border-radius: 7px;
    color: #e5c58f;
    background:
        linear-gradient(180deg, rgba(255, 225, 156, .035), rgba(0, 0, 0, .08)),
        url("../images/ui/button-dark.png");
    background-size: cover, 100% 100%;
    cursor: pointer;
}
.dice-quick-add button:hover,
.dice-quick-add button:focus-visible,
.dice-set-row button[data-row-remove]:hover,
.dice-set-row button[data-row-remove]:focus-visible {
    border-color: rgba(239, 196, 119, .54);
    color: #ffe0a6;
}
.dice-set-list {
    display: grid;
    gap: 10px;
}
.dice-set-row {
    display: grid;
    grid-template-columns: .9fr .8fr .95fr .8fr .95fr 38px;
    gap: 8px;
    align-items: end;
    padding: 10px;
    border: 1px solid rgba(215, 154, 77, .2);
    border-radius: 8px;
    background: rgba(7, 6, 4, .52);
}
.dice-set-row button[data-row-remove] {
    width: 38px;
    height: 42px;
    padding: 0;
    font-size: 22px;
}
.dice-empty {
    padding: 14px;
    border: 1px dashed rgba(215, 154, 77, .28);
    border-radius: 8px;
    color: #bfa984;
    text-align: center;
}
.dice-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
    gap: 10px;
}
.dice-actions .button {
    min-height: 48px;
    width: 100%;
}
.dice-stage {
    position: relative;
    isolation: isolate;
    min-height: clamp(360px, 45vh, 540px);
    overflow: hidden;
    border: 1px solid rgba(226, 190, 111, .18);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(9, 10, 11, .46), rgba(4, 3, 2, .9)),
        radial-gradient(ellipse at 50% 100%, rgba(175, 120, 54, .24), transparent 62%);
}
.dice-stage::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 7%;
    right: 7%;
    bottom: 22px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, .5), transparent 72%);
}
.dice-stage canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
}
.dice-summary strong {
    color: #f6d79e;
    font-size: clamp(22px, 2.6vw, 32px);
}
.dice-summary h3 {
    margin: 10px 0 4px;
    color: #d69a4d;
    font-size: 17px;
    text-transform: uppercase;
}
.dice-summary p {
    margin: 0;
    color: #dfcdb0;
}
.dice-result-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 20px;
    color: #dfcdb0;
}
.dice-result-list em {
    color: #bda783;
    font-style: normal;
}
body.is-dice-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .dice-dialog {
        width: calc(100vw - 18px);
        max-height: calc(100dvh - 18px);
        padding: 16px;
    }
    .dice-head {
        grid-template-columns: 1fr;
        padding-right: 48px;
    }
    .dice-status {
        justify-self: start;
    }
    .dice-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "builder"
            "table"
            "results";
    }
    .dice-stage {
        min-height: min(58dvh, 430px);
    }
}

@media (max-width: 620px) {
    .dice-modal {
        padding: 8px;
        align-items: start;
    }
    .dice-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        gap: 14px;
        padding: 14px;
    }
    .dice-dialog::after {
        opacity: .42;
        background-size:
            52px 52px,
            52px 52px,
            52px 52px,
            52px 52px,
            90px 12px,
            90px 12px,
            12px 90px,
            12px 90px;
    }
    .dice-head h2 {
        font-size: 30px;
    }
    .dice-builder,
    .dice-table,
    .dice-summary {
        padding: 12px;
    }
    .dice-quick-add {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dice-set-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dice-set-row button[data-row-remove] {
        width: 100%;
        grid-column: 1 / -1;
    }
    .dice-actions {
        grid-template-columns: 1fr;
    }
    .dice-stage {
        min-height: min(54dvh, 360px);
    }
}

/* PoE-like dark plaque correction for general UI controls. */
:root {
    --dragonest-button-plaque: url("../images/ui/button-plaque-dark.png");
    --dragonest-panel-plaque: url("../images/ui/panel-plaque-dark.png");
    --dragonest-info-panel: url("../images/ui/game-info-panel.png");
}
.button,
input[type="file"]::file-selector-button,
.top-action-buttons button,
.top-action-buttons a {
    min-height: 52px;
    padding: 0 16px;
    border: 12px solid transparent;
    border-image: var(--dragonest-button-plaque) 30 92 fill / 12px 36px / 2px 10px stretch;
    border-radius: 0;
    color: #f0d4a2;
    background: transparent !important;
    box-shadow: none;
    text-shadow:
        0 1px 1px rgba(0, 0, 0, .9),
        0 0 14px rgba(218, 151, 63, .24);
    transition: color .16s ease, filter .16s ease, transform .16s ease;
}
.button.primary,
.booking-panel .button.primary,
.character-cta .button,
.join-form .button.primary {
    border: 12px solid transparent;
    border-image: var(--dragonest-button-plaque) 30 92 fill / 12px 36px / 2px 10px stretch;
    color: #f6d28f;
    background: transparent !important;
    font-weight: 900;
    box-shadow: none;
}
.button.ghost,
.booking-panel .button.ghost,
.top-action-buttons button,
.top-action-buttons a {
    color: #dec193;
    background: transparent !important;
}
.button:hover,
.button:focus-visible,
input[type="file"]::file-selector-button:hover,
.top-action-buttons button:not(:disabled):hover,
.top-action-buttons button:not(:disabled):focus-visible,
.top-action-buttons a:hover,
.top-action-buttons a:focus-visible {
    color: #ffe5b1;
    filter:
        brightness(1.16)
        drop-shadow(0 0 12px rgba(210, 132, 36, .34));
    transform: translateY(-1px);
}
.button:disabled,
.top-action-buttons button:disabled {
    opacity: .48;
    filter: grayscale(.38) brightness(.72);
    transform: none;
}
.button.small {
    min-height: 38px;
    padding: 0 8px;
    border-width: 9px 28px;
    border-image: var(--dragonest-button-plaque) 30 92 fill / 9px 28px / 1px 7px stretch;
    font-size: 13px;
}
.button.primary.small,
.join-form .button.primary.small {
    border-width: 9px 28px;
    border-image: var(--dragonest-button-plaque) 30 92 fill / 9px 28px / 1px 7px stretch;
}
.top-action-buttons button,
.top-action-buttons a {
    min-height: 44px;
    padding: 0 12px;
    border-width: 9px 30px;
    border-image: var(--dragonest-button-plaque) 30 92 fill / 9px 30px / 1px 8px stretch;
    opacity: 1;
}
.top-action-buttons button::before,
.top-action-buttons a::before {
    margin-left: -2px;
}
.oauth-grid {
    grid-template-columns: 1fr;
}
.content-card,
.date-panel,
.dice-dialog,
.dice-panel,
.dice-table,
.dice-summary,
.ref-side-panel,
.music-now-panel,
.news-card,
.game-form-section,
.booking-panel {
    background-image:
        linear-gradient(180deg, rgba(12, 8, 5, .76), rgba(4, 3, 2, .9)),
        var(--dragonest-panel-plaque),
        url("../images/ui/panel-texture.png");
    background-size: 100% 100%, 100% 100%, 540px 360px;
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: center;
}
.filter-control,
input,
select,
textarea {
    border-color: rgba(205, 143, 59, .42);
    color: #efd7ab;
    background-color: rgba(8, 6, 4, .92);
    box-shadow:
        inset 0 0 0 1px rgba(255, 211, 126, .035),
        inset 0 0 18px rgba(0, 0, 0, .35);
}
.filter-control {
    background:
        linear-gradient(180deg, rgba(25, 15, 8, .92), rgba(5, 4, 3, .96)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 360px 240px;
}
.filter-control input,
.filter-control select {
    box-shadow: none;
}

/* Game detail information blocks: bitmap plaque from the latest reference. */
.game-detail-page .ornate-card,
.game-detail-page .booking-panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(218, 151, 63, .13), transparent 48%),
        linear-gradient(180deg, rgba(8, 6, 4, .92), rgba(2, 2, 1, .96));
    box-shadow: 0 20px 48px rgba(0, 0, 0, .34);
}
.game-detail-page .ornate-card {
    min-height: 164px;
    padding: 34px 38px 32px;
}
.game-detail-page .booking-panel {
    padding: 40px 36px 36px;
}
.game-detail-page .ornate-card::before,
.game-detail-page .booking-panel::before {
    display: none;
}
.game-detail-page .ornate-card::after,
.game-detail-page .booking-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: var(--dragonest-info-panel);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    opacity: .98;
}
.game-detail-page .ornate-card > *,
.game-detail-page .booking-panel > * {
    position: relative;
    z-index: 2;
}
.game-detail-page .ornate-card h2 {
    min-height: 34px;
    margin: -2px 0 2px;
    padding-bottom: 8px;
}
.game-detail-page .ornate-card h2::after {
    background: linear-gradient(90deg, rgba(229, 170, 84, .34), transparent);
}
.game-detail-page .ornate-card p,
.game-detail-page .gold-list li,
.game-detail-page .icon-list li,
.game-detail-page .faq-list p {
    color: #e0c59a;
}
.game-detail-page .booking-row:first-of-type {
    padding-top: 4px;
}
.game-detail-page .booking-panel .capacity {
    margin: 16px 0;
}
.game-detail-page .material-grid,
.game-detail-page .activity-grid,
.game-detail-page .detail-roles,
.game-detail-page .chapter-grid,
.game-detail-page .limit-tags {
    position: relative;
}

@media (max-width: 760px) {
    .game-detail-page .ornate-card {
        min-height: 0;
        padding: 28px 26px 26px;
    }
    .game-detail-page .booking-panel {
        padding: 32px 26px 28px;
    }
}

/* Game page composition rebuild. */
:root {
    --game-page-card-panel: url("../images/ui/game-page-card.png");
    --game-page-wide-panel: url("../images/ui/game-page-wide-panel.png");
    --game-page-faq-panel: url("../images/ui/game-page-faq-panel.png");
    --game-page-cta-panel: url("../images/ui/game-page-cta-panel.png");
    --game-page-bar-panel: url("../images/ui/game-page-bar.png");
    --game-page-art-frame: url("../images/ui/game-page-art-frame.png");
}

.top-action-bar {
    position: relative;
    max-width: 1540px;
    min-height: 82px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}
.top-action-bar::before {
    content: "";
    position: absolute;
    inset: -4px;
    pointer-events: none;
    border-radius: inherit;
    background-image: var(--game-page-bar-panel);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}
.top-action-panel {
    position: relative;
    z-index: 2;
    min-height: 82px;
    padding: 0 34px;
}
.top-action-buttons {
    gap: 0;
    flex-wrap: nowrap;
}
.top-action-buttons button,
.top-action-buttons a {
    min-height: 58px;
    padding: 0 30px;
    border: 0 !important;
    border-left: 1px solid rgba(214, 151, 70, .34) !important;
    border-image: none !important;
    color: #edcf97;
    background: transparent !important;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .78), 0 0 14px rgba(222, 154, 70, .18);
}
.top-action-buttons > :first-child {
    border-left: 0 !important;
}
.top-action-buttons button::before,
.top-action-buttons a::before {
    display: none !important;
}
.top-action-buttons span,
.top-action-buttons > * > span[aria-hidden="true"] {
    display: inline-grid !important;
    place-items: center;
    margin-right: 3px;
    color: #d99b45;
    font-size: 32px;
    line-height: 1;
    text-shadow: 0 0 14px rgba(219, 151, 64, .32);
}
.top-action-buttons button:not(:disabled):hover,
.top-action-buttons button:not(:disabled):focus-visible,
.top-action-buttons a:hover,
.top-action-buttons a:focus-visible {
    color: #ffe3aa;
    background: radial-gradient(circle at 50% 50%, rgba(213, 151, 70, .14), transparent 68%) !important;
    filter: drop-shadow(0 0 12px rgba(213, 151, 70, .24));
    transform: none;
}
.top-profile {
    min-height: 58px;
    padding: 6px 18px 6px 7px;
    border: 1px solid rgba(205, 143, 59, .34);
    border-radius: 22px;
    background: rgba(5, 4, 3, .54);
    color: #efd09a;
    font-family: var(--font);
    font-size: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 221, 160, .025);
}
.top-profile-avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-color: rgba(222, 164, 82, .62);
    font-size: 18px;
    box-shadow:
        inset 0 0 0 3px rgba(0, 0, 0, .34),
        0 0 0 5px rgba(210, 145, 61, .08);
}

.game-detail-page {
    max-width: 1540px;
    --game-panel-shadow: 0 18px 38px rgba(0, 0, 0, .32);
}
.game-detail-page .detail-shell {
    gap: 20px;
}
.game-detail-page .detail-back-link {
    margin-left: 8px;
}
.game-detail-page .detail-top-grid {
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr) 338px;
    gap: 34px;
    align-items: stretch;
}
@media (min-width: 1361px) {
    .game-detail-page .detail-top-grid {
        position: relative;
        grid-template-columns: minmax(360px, 430px) minmax(0, 1fr) 338px;
        min-height: 0;
        padding-right: 0;
    }
    .game-detail-page .booking-panel {
        position: relative;
        top: auto;
        right: auto;
        width: auto;
    }
    .game-detail-page .detail-card-grid,
    .game-detail-page .character-cta {
        width: 100%;
    }
}
.game-detail-page .detail-art-frame {
    min-height: 340px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 16px;
    background: transparent !important;
    box-shadow: var(--game-panel-shadow);
}
.game-detail-page .detail-art-frame::before {
    display: none !important;
}
.game-detail-page .detail-art-frame::after {
    content: "";
    position: absolute;
    inset: -7px;
    z-index: 3;
    pointer-events: none;
    border-radius: 18px;
    background-image: var(--game-page-art-frame) !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    opacity: 1;
}
.game-detail-page .detail-art {
    position: absolute;
    inset: 12px;
    min-height: 0;
    height: auto;
    border: 0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    filter: saturate(.9) contrast(1.08) brightness(.9);
}
.game-detail-page .detail-art::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .3)),
        radial-gradient(circle at 50% 18%, transparent 28%, rgba(0, 0, 0, .2) 100%);
}
.game-detail-page .detail-hero-copy {
    align-content: center;
    gap: 15px;
    padding: 16px 0;
}
.game-detail-page .detail-hero-copy h1 {
    color: #f4d89f;
    font-size: clamp(36px, 3vw, 48px);
    line-height: 1.05;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .72);
}
.game-detail-page .detail-kicker {
    color: #d9ad6d;
    font-size: 20px;
}
.game-detail-page .detail-intro {
    max-width: 62ch;
    color: #dfbf89;
    font-size: 17px;
    line-height: 1.6;
}
.game-detail-page .detail-tag-row {
    gap: 10px;
}
.game-detail-page .detail-tag-row span {
    min-height: 38px;
    padding: 7px 16px;
    border: 1px solid rgba(203, 139, 59, .32);
    border-radius: 5px;
    color: #e6c58e;
    background:
        linear-gradient(180deg, rgba(31, 20, 12, .84), rgba(9, 7, 5, .9)),
        url("../images/ui/panel-texture.png") !important;
    background-size: auto, 260px 170px !important;
}
.game-detail-page .detail-tag-row span:first-child {
    border-color: rgba(var(--type-rgb), .66);
    color: #fbf3e2;
    background:
        linear-gradient(180deg, rgba(var(--type-rgb), .82), rgba(var(--type-deep-rgb), .94)),
        url("../images/ui/panel-texture.png") !important;
    background-size: auto, 260px 170px !important;
}

.game-detail-page .ornate-card,
.game-detail-page .booking-panel,
.game-detail-page .character-cta {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
    box-shadow: var(--game-panel-shadow);
}
.game-detail-page .ornate-card::before,
.game-detail-page .ornate-card::after,
.game-detail-page .booking-panel::before,
.game-detail-page .booking-panel::after,
.game-detail-page .character-cta::before,
.game-detail-page .character-cta::after {
    display: none !important;
}
.game-detail-page .ornate-card,
.game-detail-page .booking-panel {
    background-image: var(--game-page-card-panel) !important;
}
.game-detail-page .booking-panel,
.game-detail-page .faq-card {
    background-image: var(--game-page-faq-panel) !important;
}
.game-detail-page .campaign-wide,
.game-detail-page .roles-wide {
    background-image: var(--game-page-wide-panel) !important;
}
.game-detail-page .detail-card-grid {
    gap: 22px;
}
.game-detail-page .story-card {
    grid-column: span 5;
}
.game-detail-page .activities-card {
    grid-column: span 7;
}
.game-detail-page .audience-card,
.game-detail-page .prep-card,
.game-detail-page .limits-card,
.game-detail-page .master-card,
.game-detail-page .gallery-card,
.game-detail-page .faq-card {
    grid-column: span 4;
}
.game-detail-page .ornate-card {
    min-height: 250px;
    padding: 42px 42px 38px;
}
.game-detail-page .story-card,
.game-detail-page .activities-card {
    min-height: 270px;
}
.game-detail-page .ornate-card h2 {
    gap: 18px;
    margin: 0 0 16px;
    padding: 0;
    color: #edcf98;
    font-size: clamp(24px, 1.85vw, 32px);
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}
.game-detail-page .ornate-card h2::after {
    display: none;
}
.game-detail-page .ornate-card h2 span,
.game-detail-page .game-form-section-head > span {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    color: var(--type-color);
    background: transparent !important;
    box-shadow: none;
    font-size: 42px;
    line-height: 1;
    text-shadow: 0 0 16px rgba(var(--type-rgb), .48);
}
.game-detail-page .ornate-card h2 span::before,
.game-detail-page .ornate-card h2 span::after,
.game-detail-page .game-form-section-head > span::before,
.game-detail-page .game-form-section-head > span::after {
    display: none;
}
.game-detail-page .ornate-card p {
    color: #e3c896;
    font-size: 18px;
    line-height: 1.7;
}
.game-detail-page .activity-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(80px, 1fr));
    gap: 0;
    padding: 8px 0 0;
    overflow: visible;
    border: 0;
    background: transparent;
}
.game-detail-page .activity-grid div {
    min-height: 126px;
    padding: 10px 12px 0;
    border-left: 1px solid rgba(190, 126, 53, .24);
    background: transparent !important;
}
.game-detail-page .activity-grid div:first-child {
    border-left: 0;
}
.game-detail-page .activity-grid i {
    width: auto;
    height: auto;
    border: 0;
    color: #d5963f;
    background: transparent !important;
    box-shadow: none;
    font-size: 43px;
    text-shadow: 0 0 14px rgba(213, 151, 70, .24);
}
.game-detail-page .activity-grid i::after {
    display: none;
}
.game-detail-page .activity-grid span {
    color: #e0bd82;
    font-size: 18px;
}
.game-detail-page .gold-list,
.game-detail-page .icon-list {
    gap: 18px;
}
.game-detail-page .gold-list li,
.game-detail-page .icon-list li {
    padding-left: 26px;
    color: #e3c896;
    font-size: 18px;
    line-height: 1.45;
}
.game-detail-page .gold-list li::before {
    content: "";
    top: .42em;
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 1px;
    background: linear-gradient(135deg, #f1ca77, #b8732f);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(213, 151, 70, .32);
}
.game-detail-page .icon-list li::before {
    color: #d5963f;
    font-size: 17px;
}
.game-detail-page .limit-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-content: center;
}
.game-detail-page .limit-tags span {
    min-height: 76px;
    padding: 16px 18px;
    border: 1px solid rgba(168, 91, 50, .3);
    border-radius: 9px;
    color: #e7c791;
    background:
        linear-gradient(180deg, rgba(72, 40, 25, .86), rgba(42, 23, 15, .92)),
        url("../images/ui/panel-texture.png") !important;
    background-size: auto, 260px 170px !important;
    font-size: 18px;
}
.game-detail-page .booking-panel {
    align-self: stretch;
    padding: 36px 30px 32px;
}
.game-detail-page .seats-ribbon {
    min-width: 184px;
    margin-bottom: 14px;
    border-color: rgba(var(--type-rgb), .5);
    background:
        linear-gradient(180deg, rgba(var(--type-rgb), .9), rgba(var(--type-deep-rgb), .96)),
        url("../images/ui/ribbon-purple.png") !important;
    background-size: auto, 100% 100% !important;
}
.game-detail-page .booking-row {
    grid-template-columns: 28px minmax(88px, .78fr) minmax(0, 1fr);
    padding: 11px 0;
}
.game-detail-page .booking-row span {
    border: 0;
    color: #d49b4d;
    background: transparent;
    box-shadow: none;
}
.game-detail-page .booking-panel .button.primary,
.game-detail-page .character-cta .button {
    min-height: 56px;
    border: 1px solid rgba(242, 190, 103, .48) !important;
    border-radius: 7px;
    border-image: none !important;
    color: #1f1208;
    background:
        linear-gradient(180deg, rgba(246, 205, 139, .96), rgba(181, 105, 38, .96)),
        url("../images/ui/button-gold.png") !important;
    background-size: auto, 100% 100% !important;
    font-family: var(--font);
    font-size: 18px;
    text-transform: uppercase;
}
.game-detail-page .booking-panel .button.ghost {
    min-height: 46px;
    border: 1px solid rgba(205, 143, 59, .34) !important;
    border-radius: 6px;
    border-image: none !important;
    color: #d8a766;
    background: rgba(5, 4, 3, .5) !important;
}
.game-detail-page .master-card-body {
    grid-template-columns: 84px minmax(0, 1fr);
}
.game-detail-page .master-card-body dl {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(213, 151, 70, .16);
    background: transparent;
}
.game-detail-page .material-grid {
    gap: 12px;
}
.game-detail-page .material-grid figure {
    border-color: rgba(205, 143, 59, .28);
    border-radius: 8px;
    background: rgba(8, 6, 4, .62);
}
.game-detail-page .material-grid img {
    aspect-ratio: 16 / 11;
    filter: saturate(.9) brightness(.86) contrast(1.05);
}
.game-detail-page .faq-card {
    min-height: 360px;
}
.game-detail-page .faq-list {
    gap: 14px;
}
.game-detail-page .faq-list details {
    position: relative;
    padding: 0;
    border: 1px solid rgba(121, 72, 31, .5);
    border-radius: 11px;
    background: rgba(9, 8, 5, .54);
}
.game-detail-page .faq-list details::before {
    top: 50%;
    left: 22px;
    width: 38px;
    height: 38px;
    border-color: rgba(var(--type-rgb), .68);
    color: var(--type-color);
    background:
        radial-gradient(circle at 50% 42%, rgba(var(--type-rgb), .2), transparent 58%),
        rgba(10, 8, 6, .82);
    font-size: 24px;
    transform: translateY(-50%);
    box-shadow: 0 0 12px rgba(var(--type-rgb), .18);
}
.game-detail-page .faq-list details[open]::before {
    top: 32px;
}
.game-detail-page .faq-list summary {
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 0 58px 0 76px;
    color: #edcf98;
    font-size: 20px;
}
.game-detail-page .faq-list summary::after {
    position: absolute;
    right: 24px;
    float: none;
    color: #d49b4d;
    font-size: 30px;
}
.game-detail-page .faq-list p {
    padding: 0 24px 18px 76px;
    font-size: 16px;
    line-height: 1.55;
}
.game-detail-page .campaign-wide {
    min-height: 260px;
    grid-template-columns: 76px minmax(0, 1.15fr) minmax(380px, .95fr);
    gap: 26px;
    align-items: center;
    padding: 44px 54px;
}
.game-detail-page .campaign-wide h2 {
    grid-column: 2;
    margin-bottom: 6px;
}
.game-detail-page .campaign-wide h2 span {
    position: absolute;
    left: 48px;
    top: 48px;
}
.game-detail-page .campaign-wide p {
    grid-column: 2;
    font-size: 17px;
}
.game-detail-page .campaign-wide .chapter-grid {
    grid-column: 3;
    grid-row: 1 / span 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.game-detail-page .chapter-grid span {
    min-height: 132px;
    border: 1px solid rgba(126, 74, 32, .58);
    border-radius: 10px;
    color: #edcf98;
    background: rgba(9, 8, 5, .48) !important;
    font-size: 18px;
    line-height: 1.35;
}
.game-detail-page .roles-wide {
    min-height: 0;
}
.game-detail-page .detail-role-card,
.game-detail-page .detail-role-card button {
    border-color: rgba(205, 143, 59, .3);
    border-radius: 9px;
    background: rgba(9, 8, 5, .5);
}
.game-detail-page .character-cta {
    grid-template-columns: 94px minmax(0, 1fr) minmax(280px, 430px);
    min-height: 128px;
    gap: 28px;
    padding: 28px 56px;
    border-color: transparent;
    background-image: var(--game-page-cta-panel) !important;
}
.game-detail-page .character-cta span {
    color: var(--type-color);
    font-size: 58px;
    text-shadow: 0 0 22px rgba(var(--type-rgb), .42);
}
.game-detail-page .character-cta strong {
    color: #edcf98;
    font-size: 22px;
    line-height: 1.25;
}
.game-detail-page .character-cta .button {
    justify-self: stretch;
    min-height: 70px;
    border-color: rgba(var(--type-rgb), .65) !important;
    color: #fff4ff;
    background:
        linear-gradient(180deg, rgba(var(--type-rgb), .9), rgba(var(--type-deep-rgb), .96)),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .24), transparent 62%) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .08),
        0 0 28px rgba(var(--type-rgb), .32);
}

@media (max-width: 1280px) {
    .top-action-buttons button,
    .top-action-buttons a {
        padding: 0 18px;
        font-size: 15px;
    }
    .game-detail-page .detail-top-grid {
        grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    }
    .game-detail-page .booking-panel {
        grid-column: 1 / -1;
    }
    .game-detail-page .story-card,
    .game-detail-page .activities-card,
    .game-detail-page .audience-card,
    .game-detail-page .prep-card,
    .game-detail-page .limits-card,
    .game-detail-page .master-card,
    .game-detail-page .gallery-card,
    .game-detail-page .faq-card {
        grid-column: span 6;
    }
}

@media (max-width: 980px) {
    .top-action-bar {
        min-height: 72px;
        border-radius: 0;
        box-shadow: none;
    }
    .top-action-panel {
        min-height: 0;
        padding: 0;
    }
    .top-action-buttons {
        flex-wrap: wrap;
    }
    .top-action-buttons button,
    .top-action-buttons a {
        min-height: 46px;
        border-left: 0 !important;
        padding: 0 14px;
    }
    .game-detail-page .detail-top-grid,
    .game-detail-page .detail-card-grid,
    .game-detail-page .campaign-wide,
    .game-detail-page .character-cta {
        grid-template-columns: 1fr;
    }
    .game-detail-page .detail-art-frame {
        min-height: min(70vw, 390px);
    }
    .game-detail-page .ornate-card,
    .game-detail-page .story-card,
    .game-detail-page .activities-card,
    .game-detail-page .audience-card,
    .game-detail-page .prep-card,
    .game-detail-page .limits-card,
    .game-detail-page .master-card,
    .game-detail-page .gallery-card,
    .game-detail-page .faq-card,
    .game-detail-page .campaign-wide,
    .game-detail-page .roles-wide {
        grid-column: 1 / -1;
    }
    .game-detail-page .campaign-wide h2,
    .game-detail-page .campaign-wide p,
    .game-detail-page .campaign-wide .chapter-grid {
        grid-column: 1;
        grid-row: auto;
    }
    .game-detail-page .campaign-wide h2 span {
        position: static;
    }
    .game-detail-page .character-cta .button {
        justify-self: start;
    }
}

@media (max-width: 620px) {
    .game-detail-page .ornate-card,
    .game-detail-page .booking-panel,
    .game-detail-page .campaign-wide {
        padding: 30px 24px 28px;
    }
    .game-detail-page .ornate-card h2 {
        font-size: 22px;
    }
    .game-detail-page .activity-grid,
    .game-detail-page .limit-tags,
    .game-detail-page .material-grid,
    .game-detail-page .chapter-grid {
        grid-template-columns: 1fr;
    }
    .game-detail-page .activity-grid div {
        min-height: 90px;
        border-left: 0;
        border-top: 1px solid rgba(190, 126, 53, .18);
    }
    .game-detail-page .activity-grid div:first-child {
        border-top: 0;
    }
    .game-detail-page .character-cta {
        grid-template-columns: 1fr;
        padding: 30px 24px;
    }
    .game-detail-page .character-cta .button {
        width: 100%;
    }
}

/* Mobile header guard: late desktop plaque styles must not hide the menu/actions controls. */
@media (max-width: 900px) {
    .app-shell {
        display: block;
    }
    .top-action-bar {
        position: sticky !important;
        top: 0;
        z-index: 220;
        display: grid !important;
        grid-template-columns: 50px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: none;
        min-height: 64px;
        margin: 0;
        padding: 9px 12px;
        border: 0;
        border-radius: 0;
        background:
            linear-gradient(180deg, rgba(15, 10, 7, .96), rgba(5, 4, 3, .98)) !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
    }
    .top-action-bar::before {
        inset: 0;
        z-index: 0;
        border-radius: 0;
        opacity: .62;
        background-size: 100% 100%;
    }
    .mobile-menu-toggle,
    .top-action-toggle,
    .top-action-panel {
        position: relative;
        z-index: 2;
    }
    .mobile-menu-toggle {
        grid-column: 1;
        display: inline-grid !important;
        place-items: center;
        gap: 4px;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 1px solid rgba(218, 170, 101, .42);
        border-radius: 8px;
        color: #f3d9ad;
        background: rgba(8, 6, 4, .72);
        box-shadow: inset 0 0 0 1px rgba(255, 218, 144, .04);
        cursor: pointer;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform .18s ease, opacity .18s ease;
    }
    body.is-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    body.is-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.is-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    .top-action-toggle {
        grid-column: 2;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        justify-self: stretch;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 0 14px;
        border: 1px solid rgba(218, 170, 101, .36);
        border-radius: 8px;
        color: #f3d9ad;
        background: rgba(8, 6, 4, .72);
        font-family: var(--ui);
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        box-shadow: inset 0 0 0 1px rgba(255, 218, 144, .04);
        cursor: pointer;
    }
    .top-action-toggle span {
        display: block !important;
        min-width: 0;
        overflow: hidden;
        color: inherit;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .top-action-toggle i {
        flex: 0 0 auto;
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform .18s ease;
    }
    .top-action-bar:not(.is-collapsed) .top-action-toggle i {
        transform: translateY(2px) rotate(225deg);
    }
    .top-action-panel {
        grid-column: 1 / -1;
        display: grid;
        width: 100%;
        min-height: 0;
        padding: 8px 0 0;
        gap: 10px;
    }
    .top-action-bar.is-collapsed .top-action-panel {
        display: none !important;
    }
    .top-action-buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 8px;
    }
    .top-action-buttons button,
    .top-action-buttons a {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        padding: 0 16px;
        border-left: 0 !important;
        color: #edcf97;
        font-family: var(--ui);
        font-size: 13px;
    }
    .top-action-buttons span,
    .top-action-buttons > * > span[aria-hidden="true"] {
        display: inline-grid !important;
        flex: 0 0 auto;
        margin-right: 4px;
        font-size: 22px;
    }
    .top-profile {
        width: 100%;
        max-width: none;
        min-height: 46px;
        justify-content: flex-start;
        border-radius: 8px;
    }
    .sidebar {
        top: 64px;
        height: calc(100dvh - 64px);
        max-height: calc(100dvh - 64px);
    }
    .mobile-menu-backdrop {
        inset: 64px 0 0;
    }
}

@media (max-width: 430px) {
    .top-action-bar {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 8px 10px;
    }
    .mobile-menu-toggle,
    .top-action-toggle {
        min-height: 44px;
        height: 44px;
    }
    .top-action-toggle {
        font-size: 12px;
    }
}

/* Clean game-page pass: remove stretched bitmap plaques and match the compact reference layout. */
@media (min-width: 901px) {
    .top-action-bar {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        max-width: 1540px;
        width: calc(100% - 48px);
        min-height: 58px;
        margin: 18px auto 0;
        padding: 0 18px;
        border: 1px solid rgba(204, 141, 62, .3);
        border-radius: 7px;
        background:
            linear-gradient(180deg, rgba(20, 14, 9, .92), rgba(5, 4, 3, .96)),
            url("../images/ui/panel-texture.png") !important;
        background-size: auto, 460px 300px !important;
        box-shadow:
            inset 0 0 0 1px rgba(255, 220, 150, .025),
            0 16px 34px rgba(0, 0, 0, .28);
    }
    .top-action-bar::before {
        content: "";
        position: absolute;
        inset: 6px;
        pointer-events: none;
        border: 1px solid rgba(224, 164, 83, .11);
        border-radius: 4px;
        background: none !important;
    }
    .top-action-panel {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        width: 100%;
        padding: 0;
        gap: 18px;
    }
    .top-action-buttons {
        display: flex;
        align-items: center;
        gap: 0;
        flex-wrap: nowrap;
        min-width: 0;
    }
    .top-action-buttons button,
    .top-action-buttons a {
        min-height: 48px;
        padding: 0 24px;
        border: 0 !important;
        border-left: 1px solid rgba(211, 149, 70, .28) !important;
        border-image: none !important;
        color: #e9c98f;
        background: transparent !important;
        font-family: var(--font);
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .76);
        box-shadow: none;
    }
    .top-action-buttons > :first-child {
        border-left: 0 !important;
    }
    .top-action-buttons span,
    .top-action-buttons > * > span[aria-hidden="true"] {
        display: inline-grid !important;
        place-items: center;
        margin-right: 8px;
        color: #d99d4d;
        font-size: 22px;
        line-height: 1;
    }
    .top-profile {
        min-height: 46px;
        max-width: 260px;
        padding: 5px 13px 5px 5px;
        border: 1px solid rgba(205, 143, 59, .34);
        border-radius: 999px;
        background: rgba(7, 6, 5, .54);
        color: #efcf98;
        font-family: var(--font);
        font-size: 14px;
        box-shadow: inset 0 0 0 1px rgba(255, 221, 160, .025);
    }
    .top-profile-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 15px;
    }
}

.game-detail-page {
    --game-clean-line: rgba(199, 133, 55, .34);
    --game-clean-line-soft: rgba(225, 164, 84, .12);
    --game-clean-bg: rgba(7, 6, 4, .88);
    max-width: 1540px;
}
.game-detail-page .detail-shell {
    gap: 18px;
}
.game-detail-page .detail-back-link {
    margin-left: 0;
    color: #c1985d;
}
.game-detail-page .detail-top-grid {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(220px, 1fr) 300px;
    gap: 28px;
    align-items: start;
    min-height: 330px;
    padding-right: 0 !important;
}
@media (min-width: 1361px) {
    .game-detail-page .detail-top-grid {
        grid-template-columns: minmax(330px, 400px) minmax(0, 1fr) 330px;
        padding-right: 0 !important;
    }
    .game-detail-page .booking-panel {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
    }
    .game-detail-page .detail-card-grid,
    .game-detail-page .character-cta {
        width: calc(100% - 364px) !important;
    }
}
.game-detail-page .detail-art-frame,
.game-detail-page .ornate-card,
.game-detail-page .booking-panel,
.game-detail-page .character-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--game-clean-line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0%, rgba(218, 151, 63, .09), transparent 42%),
        linear-gradient(180deg, rgba(18, 13, 8, .88), rgba(5, 4, 3, .94)),
        url("../images/ui/panel-texture.png") !important;
    background-repeat: no-repeat, no-repeat, repeat !important;
    background-size: auto, auto, 480px 320px !important;
    background-position: center !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 166, .025),
        inset 0 0 34px rgba(0, 0, 0, .36),
        0 16px 34px rgba(0, 0, 0, .25);
}
.game-detail-page .detail-art-frame > *,
.game-detail-page .ornate-card > *,
.game-detail-page .booking-panel > *,
.game-detail-page .character-cta > * {
    position: relative;
    z-index: 2;
}
.game-detail-page .detail-art-frame::before,
.game-detail-page .ornate-card::before,
.game-detail-page .booking-panel::before,
.game-detail-page .character-cta::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 1;
    display: block !important;
    pointer-events: none;
    border: 1px solid var(--game-clean-line-soft);
    border-radius: 5px;
    background: none !important;
    box-shadow: inset 0 0 0 1px rgba(48, 28, 11, .58);
}
.game-detail-page .detail-art-frame::after,
.game-detail-page .ornate-card::after,
.game-detail-page .booking-panel::after,
.game-detail-page .character-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block !important;
    pointer-events: none;
    border-radius: inherit;
    opacity: .55;
    background:
        linear-gradient(90deg, rgba(221, 157, 75, .78) 0 28px, transparent 28px) 12px 12px / 86px 1px no-repeat,
        linear-gradient(180deg, rgba(221, 157, 75, .78) 0 28px, transparent 28px) 12px 12px / 1px 86px no-repeat,
        linear-gradient(270deg, rgba(221, 157, 75, .78) 0 28px, transparent 28px) calc(100% - 12px) 12px / 86px 1px no-repeat,
        linear-gradient(180deg, rgba(221, 157, 75, .78) 0 28px, transparent 28px) calc(100% - 12px) 12px / 1px 86px no-repeat,
        linear-gradient(90deg, rgba(221, 157, 75, .78) 0 28px, transparent 28px) 12px calc(100% - 12px) / 86px 1px no-repeat,
        linear-gradient(0deg, rgba(221, 157, 75, .78) 0 28px, transparent 28px) 12px calc(100% - 12px) / 1px 86px no-repeat,
        linear-gradient(270deg, rgba(221, 157, 75, .78) 0 28px, transparent 28px) calc(100% - 12px) calc(100% - 12px) / 86px 1px no-repeat,
        linear-gradient(0deg, rgba(221, 157, 75, .78) 0 28px, transparent 28px) calc(100% - 12px) calc(100% - 12px) / 1px 86px no-repeat,
        radial-gradient(circle at 50% 12px, rgba(221, 157, 75, .55) 0 2px, transparent 3px) center top / 58px 24px no-repeat,
        radial-gradient(circle at 50% calc(100% - 12px), rgba(221, 157, 75, .55) 0 2px, transparent 3px) center bottom / 58px 24px no-repeat !important;
}
.game-detail-page .detail-art-frame {
    aspect-ratio: 4 / 3;
    min-height: 0 !important;
    width: 100% !important;
    height: auto !important;
    align-self: start !important;
    justify-self: stretch !important;
    padding: 10px !important;
}
.game-detail-page .detail-art-frame::after {
    opacity: .72;
}
.game-detail-page .detail-art {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    border: 1px solid rgba(222, 154, 70, .22);
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    filter: saturate(.9) contrast(1.08) brightness(.82);
}
.game-detail-page .detail-art::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .25)),
        radial-gradient(circle at 50% 12%, transparent 34%, rgba(0, 0, 0, .28) 100%);
}
.game-detail-page .detail-hero-copy {
    align-self: center;
    align-content: center;
    gap: 13px;
    padding: 12px 0;
}
.game-detail-page .detail-hero-copy h1 {
    color: #f2d89f;
    font-size: clamp(36px, 3vw, 48px);
    line-height: 1.04;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .72);
}
.game-detail-page .detail-kicker {
    color: #d9ad6d;
    font-size: 20px;
}
.game-detail-page .detail-intro {
    max-width: 58ch;
    color: #dfbf89;
    font-size: 16px;
    line-height: 1.55;
}
.game-detail-page .detail-master-trust {
    margin-top: 10px;
}
.game-detail-page .detail-tag-row span {
    min-height: 36px;
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(28, 18, 10, .84), rgba(8, 6, 4, .9)),
        url("../images/ui/panel-texture.png") !important;
    background-size: auto, 260px 170px !important;
}
.game-detail-page .detail-tag-row span:first-child,
.game-detail-page .seats-ribbon {
    background:
        linear-gradient(180deg, rgba(var(--type-rgb), .9), rgba(var(--type-deep-rgb), .96)) !important;
}
.game-detail-page .booking-panel {
    grid-column: auto !important;
    display: grid;
    grid-template-columns: 1fr !important;
    align-content: start;
    align-self: start !important;
    height: auto !important;
    min-height: 0;
    padding: 22px 20px 20px;
}
.game-detail-page .seats-ribbon {
    min-width: 178px;
    min-height: 31px;
    margin-bottom: 12px;
    border: 1px solid rgba(var(--type-rgb), .38);
    border-radius: 5px;
    color: #f7edff;
    box-shadow: 0 10px 22px rgba(var(--type-rgb), .22);
}
.game-detail-page .seats-ribbon::before,
.game-detail-page .seats-ribbon::after {
    display: none;
}
.game-detail-page .booking-row {
    grid-template-columns: 22px minmax(82px, .72fr) minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(218, 170, 101, .13);
    font-size: 13px;
}
.game-detail-page .booking-row span {
    border: 0;
    color: #d49b4d;
    background: transparent !important;
    box-shadow: none;
}
.game-detail-page .booking-panel .capacity {
    margin: 10px 0 12px;
}
.game-detail-page .booking-panel .join-form {
    margin: 0;
}
.game-detail-page .booking-panel .join-form .button {
    margin-top: 0;
}
.game-detail-page .booking-panel .button.primary {
    min-height: 50px;
    border: 1px solid rgba(242, 190, 103, .48) !important;
    border-radius: 6px;
    border-image: none !important;
    color: #211207;
    background:
        linear-gradient(180deg, rgba(246, 205, 139, .96), rgba(181, 105, 38, .96)),
        url("../images/ui/button-gold.png") !important;
    background-size: auto, 100% 100% !important;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}
.game-detail-page .booking-panel .button.ghost {
    min-height: 40px;
    border: 1px solid rgba(205, 143, 59, .34) !important;
    border-radius: 6px;
    border-image: none !important;
    color: #d8a766;
    background: rgba(5, 4, 3, .5) !important;
}
.game-detail-page .booking-panel small {
    margin-top: 9px;
    padding-top: 0;
    font-size: 12px;
    line-height: 1.35;
}
.game-detail-page .detail-card-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}
.game-detail-page .ornate-card {
    min-height: 138px;
    padding: 26px 28px 24px;
}
.game-detail-page .description-card,
.game-detail-page .story-card {
    grid-column: span 8;
}
.game-detail-page .activities-card {
    grid-column: span 8;
}
.game-detail-page .audience-card,
.game-detail-page .prep-card,
.game-detail-page .limits-card,
.game-detail-page .master-card,
.game-detail-page .gallery-card,
.game-detail-page .faq-card {
    grid-column: span 4;
}
.game-detail-page .campaign-wide,
.game-detail-page .roles-wide {
    grid-column: 1 / -1;
}
.game-detail-page .ornate-card h2 {
    gap: 14px;
    margin: 0 0 10px;
    padding: 0 0 8px;
    color: #edcf98;
    font-size: clamp(22px, 1.8vw, 30px);
    line-height: 1.08;
    text-transform: uppercase;
}
.game-detail-page .ornate-card h2::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 2px;
    background: linear-gradient(90deg, rgba(214, 151, 70, .22), transparent);
}
.game-detail-page .ornate-card h2 span,
.game-detail-page .activity-grid i,
.game-detail-page .character-cta span {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    color: var(--type-color);
    background: transparent !important;
    box-shadow: none;
    font-size: 36px;
    text-shadow: 0 0 16px rgba(var(--type-rgb), .45);
}
.game-detail-page .ornate-card h2 span::before,
.game-detail-page .ornate-card h2 span::after {
    display: none;
}
.game-detail-page .ornate-card p,
.game-detail-page .gold-list li,
.game-detail-page .icon-list li,
.game-detail-page .faq-list p {
    color: #e1c795;
    font-size: 16px;
    line-height: 1.62;
}
.game-detail-page .activity-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    gap: 0;
    padding: 6px 0 0;
    overflow: visible;
    border: 0;
    background: transparent !important;
}
.game-detail-page .activity-grid div {
    min-height: 108px;
    align-content: center;
    padding: 8px 10px 0;
    border-left: 1px solid rgba(190, 126, 53, .18);
    background: transparent !important;
}
.game-detail-page .activity-grid div:first-child {
    border-left: 0;
}
.game-detail-page .activity-grid i {
    font-size: 40px;
    color: #d5963f;
}
.game-detail-page .activity-grid span {
    color: #dfbd84;
    font-size: 15px;
}
.game-detail-page .limit-tags span,
.game-detail-page .chapter-grid span,
.game-detail-page .faq-list details,
.game-detail-page .material-grid figure,
.game-detail-page .detail-role-card,
.game-detail-page .detail-role-card button {
    border: 1px solid rgba(205, 143, 59, .22);
    border-radius: 7px;
    background:
        linear-gradient(180deg, rgba(18, 12, 7, .58), rgba(7, 5, 4, .72)),
        url("../images/ui/panel-texture.png") !important;
    background-size: auto, 320px 210px !important;
}
.game-detail-page .character-cta {
    min-height: 112px;
    grid-template-columns: 76px minmax(0, 1fr) minmax(240px, 360px);
    gap: 24px;
    padding: 24px 42px;
}
.game-detail-page .character-cta .button {
    min-height: 56px;
    border-radius: 6px;
}

@media (max-width: 1100px) and (min-width: 901px) {
    .top-action-buttons button,
    .top-action-buttons a {
        padding: 0 15px;
        font-size: 13px;
    }
    .game-detail-page .detail-top-grid {
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    }
    .game-detail-page .booking-panel {
        grid-column: 1 / -1;
    }
    .game-detail-page .detail-card-grid,
    .game-detail-page .character-cta {
        width: 100% !important;
    }
}

@media (max-width: 900px) {
    .game-detail-page .detail-top-grid,
    .game-detail-page .detail-card-grid,
    .game-detail-page .character-cta {
        grid-template-columns: 1fr;
        width: 100% !important;
    }
    .game-detail-page .detail-top-grid {
        min-height: 0;
        gap: 18px;
    }
    .game-detail-page .detail-art-frame {
        aspect-ratio: 4 / 3;
    }
    .game-detail-page .description-card,
    .game-detail-page .story-card,
    .game-detail-page .activities-card,
    .game-detail-page .audience-card,
    .game-detail-page .prep-card,
    .game-detail-page .limits-card,
    .game-detail-page .master-card,
    .game-detail-page .gallery-card,
    .game-detail-page .faq-card,
    .game-detail-page .campaign-wide,
    .game-detail-page .roles-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .game-detail-page .ornate-card,
    .game-detail-page .booking-panel,
    .game-detail-page .character-cta {
        padding: 24px 20px 22px;
    }
    .game-detail-page .ornate-card h2 {
        font-size: 22px;
    }
    .game-detail-page .activity-grid,
    .game-detail-page .limit-tags,
    .game-detail-page .material-grid,
    .game-detail-page .chapter-grid {
        grid-template-columns: 1fr;
    }
    .game-detail-page .activity-grid div {
        min-height: 82px;
        border-left: 0;
        border-top: 1px solid rgba(190, 126, 53, .18);
    }
    .game-detail-page .activity-grid div:first-child {
        border-top: 0;
    }
    .game-detail-page .character-cta {
        grid-template-columns: 1fr;
    }
}

/* Music scene filters: compact tabs instead of noisy stretched button textures. */
.music-mood-row {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(196, 130, 54, .28);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(18, 12, 8, .72), rgba(6, 5, 4, .82)),
        url("../images/ui/panel-texture.png") !important;
    background-size: auto, 360px 240px !important;
}
.music-mood-row a,
.music-mood-row button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(205, 143, 59, .34);
    border-radius: 7px;
    color: #e2c18b;
    background:
        linear-gradient(180deg, rgba(30, 20, 12, .72), rgba(8, 6, 4, .86)) !important;
    background-image:
        linear-gradient(180deg, rgba(30, 20, 12, .72), rgba(8, 6, 4, .86)) !important;
    font-family: var(--ui);
    font-size: 14px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .72);
    box-shadow:
        inset 0 0 0 1px rgba(255, 220, 150, .025),
        inset 0 -14px 24px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}
.music-mood-row a span {
    color: #d79b4d;
    font-size: 17px;
    line-height: 1;
}
.music-mood-row a:hover,
.music-mood-row a:focus-visible,
.music-mood-row button:hover,
.music-mood-row button:focus-visible {
    border-color: rgba(230, 174, 94, .56);
    color: #f4d8a6;
    background:
        linear-gradient(180deg, rgba(45, 28, 14, .82), rgba(12, 8, 5, .9)) !important;
    outline: none;
}
.music-mood-row a.active,
.music-mood-row button.active {
    border-color: rgba(230, 178, 98, .62);
    color: #241407;
    background:
        linear-gradient(180deg, rgba(238, 199, 132, .98), rgba(178, 107, 38, .96)) !important;
    text-shadow: 0 1px 0 rgba(255, 235, 190, .34);
    box-shadow:
        inset 0 0 0 1px rgba(255, 244, 214, .16),
        0 10px 24px rgba(177, 101, 36, .18);
}
.music-mood-row a.active span {
    color: #241407;
}
.music-track .muted {
    color: rgba(226, 193, 139, .72);
}

/* Mobile sidebar guard: keep the hamburger drawer readable after late visual overrides. */
@media (max-width: 900px) {
    body.is-menu-open {
        overflow: hidden;
    }
    .sidebar {
        position: fixed !important;
        top: 64px !important;
        bottom: auto !important;
        left: -100vw !important;
        z-index: 210 !important;
        display: flex !important;
        flex-direction: column !important;
        width: min(340px, 86vw) !important;
        height: calc(100dvh - 64px) !important;
        max-height: calc(100dvh - 64px) !important;
        padding: 14px 0 max(14px, env(safe-area-inset-bottom)) !important;
        overflow: hidden !important;
        background-color: #110b06 !important;
        background-image:
            linear-gradient(180deg, rgba(12, 8, 5, .12), rgba(15, 9, 5, .3)),
            url("../images/sidebar_panel.png"),
            url("../images/bg_sidebar_texture.png") !important;
        background-size: auto, 100% 100%, cover !important;
        background-position: center top !important;
        box-shadow: 22px 0 44px rgba(0, 0, 0, .52);
    }
    body.is-menu-open .sidebar {
        left: 0 !important;
        transform: none !important;
    }
    .mobile-menu-backdrop {
        z-index: 200 !important;
        inset: 64px 0 0 !important;
    }
    body.is-menu-open .mobile-menu-backdrop {
        display: block !important;
    }
    .sidebar .brand {
        display: grid !important;
        grid-template-columns: minmax(112px, 136px) minmax(0, 1fr);
        align-items: center;
        justify-items: start;
        gap: 10px;
        padding: 0 18px 14px !important;
        text-align: left;
    }
    .sidebar .brand-logo {
        width: min(136px, 38vw) !important;
    }
    .sidebar .brand::after {
        left: 86px !important;
        top: 35px !important;
    }
    .sidebar .brand-subtitle {
        max-width: 130px;
        margin: 0 !important;
        font-size: 15px;
        line-height: 1.18;
    }
    .sidebar .side-nav {
        flex: 0 0 auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        min-height: 0;
        max-height: none;
        margin: 0 !important;
        padding: 0 24px 0 28px !important;
        overflow: visible !important;
    }
    .sidebar .side-nav::-webkit-scrollbar {
        display: none;
    }
    .sidebar .side-nav a {
        display: grid !important;
        grid-template-columns: 30px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 50px !important;
        padding: 0 16px 0 28px !important;
        border: 0 !important;
        border-radius: 0 !important;
        color: #ead7b6 !important;
        background-image: url("../images/sidebar_menu_item_default.png") !important;
        background-size: 100% 100% !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        font-size: 14px !important;
        line-height: 1.08 !important;
        text-transform: uppercase !important;
        overflow: visible !important;
        white-space: normal !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
        filter: none !important;
    }
    .sidebar .side-nav a:hover,
    .sidebar .side-nav a:focus-visible {
        color: #ffe7b9 !important;
        background-image: url("../images/sidebar_menu_item_hover.png") !important;
        outline: none;
    }
    .sidebar .side-nav a.active {
        color: #ffe7b9 !important;
        background-image: url("../images/sidebar_menu_item_active.png") !important;
    }
    .sidebar .side-nav a.active::after {
        display: none !important;
    }
    .sidebar .side-nav a span {
        display: inline-grid !important;
        place-items: center;
        width: 30px !important;
        color: #d9b57b !important;
        font-size: 21px !important;
        line-height: 1 !important;
    }
    .sidebar .mascot-card {
        flex: 0 0 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 18px 24px 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: none !important;
    }
    .sidebar .mascot-bubble {
        max-width: 100%;
        margin: 0 0 0 !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
    }
    .sidebar .mascot-img {
        width: 100% !important;
        max-height: min(170px, 28dvh) !important;
        margin: -2px auto 0 !important;
        object-fit: contain !important;
        object-position: bottom center !important;
    }
}

@media (max-width: 390px) {
    .sidebar {
        width: min(318px, 86vw) !important;
    }
    .sidebar .brand {
        grid-template-columns: 112px minmax(0, 1fr);
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .sidebar .brand-logo {
        width: 112px !important;
    }
    .sidebar .side-nav {
        gap: 6px !important;
        padding: 0 20px 0 22px !important;
    }
    .sidebar .side-nav a {
        min-height: 46px !important;
        font-size: 13px !important;
    }
    .sidebar .mascot-card {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
}

.news-card-link {
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, filter .18s ease;
}

.news-card-link:hover,
.news-card-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(228, 177, 105, .55);
    filter: brightness(1.06);
    outline: none;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    color: #b8996f;
    font-family: var(--ui);
    font-size: 13px;
    text-transform: uppercase;
}

.news-card-meta span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 10px;
    vertical-align: 2px;
    border-radius: 50%;
    background: rgba(218, 170, 101, .65);
}

.ref-ranked-list a {
    color: inherit;
    text-decoration: none;
}

.ref-ranked-list a:hover,
.ref-ranked-list a:focus-visible {
    color: #f2d49a;
}

.post-editor-card {
    margin-top: 18px;
}

.post-detail-page {
    display: grid;
    gap: 20px;
}

.post-detail-head,
.post-hero {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.post-hero h1 {
    max-width: 960px;
    margin-top: 8px;
    font-size: clamp(34px, 3.2vw, 58px);
    line-height: 1.04;
}

.post-cover {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(218, 170, 101, .28);
    border-radius: 8px;
    background: rgba(8, 6, 4, .72);
}

.post-cover img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.post-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.post-body {
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(218, 170, 101, .24);
    border-radius: 8px;
    color: #ead2aa;
    background:
        linear-gradient(180deg, rgba(15, 10, 6, .82), rgba(7, 5, 3, .92)),
        url("../images/ui/panel-texture.png");
    background-size: auto, 520px 340px;
    font-size: 18px;
    line-height: 1.75;
}

.post-side {
    display: grid;
    gap: 16px;
}

.post-side a {
    color: #e8b86f;
}

@media (max-width: 900px) {
    .post-detail-head,
    .post-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-detail-layout {
        grid-template-columns: 1fr;
    }

    .post-body {
        padding: 18px;
        font-size: 16px;
    }
}

.game-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #d79b4d;
    line-height: 1;
}

.game-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.game-icon svg path,
.game-icon svg circle,
.game-icon svg rect,
.game-icon svg polygon,
.game-icon svg polyline,
.game-icon svg line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.game-icon svg .accent {
    color: var(--type-color, #9a64e6);
    stroke: currentColor;
}

.game-detail-page .booking-row .game-icon {
    width: 22px;
    height: 22px;
    color: #d49b4d;
    filter: drop-shadow(0 0 8px rgba(214, 154, 77, .2));
}

.game-detail-page .ornate-card h2 .game-icon.block-icon {
    width: 42px;
    height: 42px;
    color: #d69a4d;
    filter: drop-shadow(0 0 14px rgba(var(--type-rgb), .32));
}

.game-detail-page .activity-grid i {
    display: grid;
    place-items: center;
}

.game-detail-page .activity-grid i .game-icon.activity-icon {
    width: 46px;
    height: 46px;
    color: #d69a4d;
    filter: drop-shadow(0 0 12px rgba(214, 154, 77, .24));
}

.game-detail-page .character-cta .game-icon.cta-icon {
    width: 64px;
    height: 64px;
    color: #d69a4d;
    filter: drop-shadow(0 0 22px rgba(var(--type-rgb), .36));
}

.game-detail-page .ornate-card h2 .game-icon,
.game-detail-page .activity-grid i .game-icon,
.game-detail-page .character-cta .game-icon {
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    text-shadow: none;
}

@media (max-width: 700px) {
    .game-detail-page .ornate-card h2 .game-icon.block-icon {
        width: 34px;
        height: 34px;
    }
    .game-detail-page .activity-grid i .game-icon.activity-icon {
        width: 34px;
        height: 34px;
    }
    .game-detail-page .character-cta .game-icon.cta-icon {
        width: 48px;
        height: 48px;
    }
}

/* Compact public game page: keep the top area tight and let content rise under the cover. */
.game-detail-page .detail-shell {
    position: relative;
    gap: 14px;
}

.game-detail-page .detail-top-grid {
    min-height: 0 !important;
}

@media (min-width: 901px) {
    .game-detail-page {
        --detail-booking-width: clamp(270px, 21vw, 320px);
        --detail-booking-gap: 28px;
    }

    .game-detail-page .detail-shell {
        padding-right: calc(var(--detail-booking-width) + var(--detail-booking-gap));
    }

    .game-detail-page .detail-top-grid {
        position: relative;
        grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) !important;
        gap: 20px !important;
        align-items: start !important;
        padding-right: 0 !important;
    }

    .game-detail-page .detail-art-frame {
        align-self: stretch !important;
        aspect-ratio: auto !important;
        max-width: 340px;
        min-height: 300px !important;
        height: 100% !important;
    }

    .game-detail-page .detail-hero-copy {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-self: center !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 !important;
        gap: 10px !important;
    }

    .game-detail-page .detail-hero-copy h1 {
        max-width: 15ch;
        margin: 0;
        font-size: clamp(34px, 2.7vw, 46px);
    }

    .game-detail-page .detail-intro {
        max-width: 46ch;
        margin: 0;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .game-detail-page .detail-master-trust {
        margin-top: 4px !important;
    }

    .game-detail-page .detail-tag-row {
        flex-wrap: nowrap !important;
        max-width: 100%;
        max-height: 40px;
        margin-top: 0 !important;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .game-detail-page .detail-tag-row::-webkit-scrollbar {
        display: none;
    }

    .game-detail-page .detail-tag-row span {
        flex: 0 0 auto;
        min-height: 34px;
        white-space: nowrap;
    }

    .game-detail-page .booking-panel {
        position: absolute !important;
        top: 0 !important;
        right: calc(-1 * (var(--detail-booking-width) + var(--detail-booking-gap))) !important;
        z-index: 4;
        width: var(--detail-booking-width) !important;
        max-width: var(--detail-booking-width) !important;
    }

    .game-detail-page .detail-card-grid,
    .game-detail-page .character-cta {
        width: 100% !important;
    }

    .game-detail-page .detail-card-grid {
        gap: 14px !important;
        margin-top: 4px;
    }
}

@media (min-width: 1500px) {
    .game-detail-page .detail-top-grid {
        grid-template-columns: minmax(320px, 390px) minmax(0, 1fr) !important;
    }

    .game-detail-page .detail-art-frame {
        max-width: 390px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .game-detail-page {
        --detail-booking-width: 270px;
        --detail-booking-gap: 18px;
    }

    .game-detail-page .detail-top-grid {
        grid-template-columns: minmax(245px, 320px) minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    .game-detail-page .detail-hero-copy h1 {
        font-size: clamp(32px, 3.4vw, 42px);
    }

    .game-detail-page .booking-panel {
        padding: 20px 16px 18px;
    }
}

@media (max-width: 900px) {
    .game-detail-page .detail-shell {
        padding-right: 0;
    }

    .game-detail-page .detail-top-grid {
        align-items: start !important;
    }

    .game-detail-page .detail-hero-copy {
        padding: 0 !important;
    }
}
