.game-client-host-layout {
    min-height: 100vh;
    padding-top: var(--header-height);
    background:
        linear-gradient(rgba(8, 18, 27, 0.96), rgba(5, 10, 15, 0.99)),
        radial-gradient(circle at 72% 0, rgba(71, 121, 147, 0.18), transparent 36rem);
}

.game-client-shell {
    min-height: calc(100dvh - var(--header-height));
    color: var(--ink);
    background:
        linear-gradient(rgba(8, 18, 27, 0.94), rgba(5, 10, 15, 0.985)),
        repeating-linear-gradient(90deg, transparent 0 95px, rgba(141, 183, 200, 0.018) 95px 96px);
}

.game-client-content {
    min-height: calc(100dvh - var(--header-height));
    outline: 0;
}

.game-client-opening {
    display: grid;
    min-height: calc(100dvh - var(--header-height));
    place-content: center;
    justify-items: center;
    gap: 18px;
    padding: 30px;
    text-align: center;
}

.game-client-opening > img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(67, 167, 212, 0.32));
}

.game-client-opening h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 56px);
}

.game-client-opening p {
    max-width: 520px;
    margin: 0;
    color: var(--ink-muted);
}

.game-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(136, 175, 195, 0.18);
    border-top-color: var(--gold-bright);
    border-radius: 50%;
    animation: game-spin 750ms linear infinite;
}

@keyframes game-spin {
    to { transform: rotate(360deg); }
}

.game-header {
    position: sticky;
    top: 0;
    z-index: 90;
    height: var(--header-height);
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--header-surface);
    backdrop-filter: blur(14px);
}

.game-header-inner {
    display: flex;
    width: calc(100% - 32px);
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-inline: auto;
}

.game-header-branding,
.game-header-utilities,
.game-primary-navigation {
    display: flex;
    min-width: 0;
    align-items: center;
}

.game-header-branding {
    height: 100%;
    gap: 8px;
}

.game-header-brand {
    flex: 0 0 auto;
}

.game-header-wordmark {
    display: block;
}

.game-page-identity {
    display: grid;
    min-width: 0;
    align-content: center;
    line-height: 1.05;
}

.game-page-identity > span,
.game-page-identity > small {
    display: none;
}

.game-page-identity > strong {
    overflow: hidden;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-primary-navigation,
.game-account-menu {
    display: none;
}

.game-header-utilities {
    justify-content: flex-end;
    gap: 10px;
}

.game-credit-action {
    display: flex;
    height: 40px;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    border: 1px solid var(--line);
    text-decoration: none;
}

.game-credit-action:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.025);
}

.game-credit-action img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.game-credit-action > span {
    display: grid;
    line-height: 1.05;
}

.game-credit-action small {
    display: none;
    color: var(--ink-muted);
    font-size: 7px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-credit-action strong {
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 600;
}

.game-icon-button,
.game-header summary.game-icon-button {
    position: relative;
    display: inline-grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    place-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: rgba(4, 11, 17, 0.48);
    cursor: pointer;
    list-style: none;
}

.game-header .game-icon-button,
.game-header summary.game-icon-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.game-icon-button::-webkit-details-marker,
.game-header summary::-webkit-details-marker {
    display: none;
}

.game-icon-button:hover,
.game-icon-button:focus-visible {
    border-color: var(--line-strong);
    background: rgba(17, 34, 50, 0.8);
}

.game-icon-button:disabled {
    opacity: 0.35;
    cursor: default;
}

.game-icon-button img,
.game-header summary.game-icon-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.game-notification-menu,
.game-app-menu {
    position: relative;
}

.game-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding-inline: 4px;
    border: 2px solid var(--night-950);
    border-radius: 12px;
    color: #fff;
    background: #9d3f3f;
    font-size: 9px;
    font-weight: 600;
}

.game-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    width: min(390px, calc(100vw - 24px));
    border: 1px solid var(--line-strong);
    background: rgba(6, 14, 21, 0.99);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
}

.game-popover::before {
    position: absolute;
    top: -7px;
    right: 16px;
    width: 12px;
    height: 12px;
    content: "";
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line-strong);
    background: #061019;
    transform: rotate(45deg);
}

.game-notification-popover > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.game-notification-popover > header div {
    display: grid;
    min-width: 0;
}

.game-notification-popover > header span {
    color: var(--gold-bright);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.game-notification-popover > header strong {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
}

.game-notification-popover > header button,
.game-popover-more,
.game-popover-state button {
    padding: 0;
    border: 0;
    color: var(--gold-bright);
    background: transparent;
    font: 600 9px var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.game-notification-list {
    max-height: min(58vh, 520px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-deep) transparent;
}

.game-notification {
    display: grid;
    width: 100%;
    grid-template-columns: 7px minmax(0, 1fr);
    gap: 11px;
    padding: 15px 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.game-notification:hover,
.game-notification.is-unread {
    background: rgba(35, 70, 90, 0.13);
}

.game-notification-mark {
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: transparent;
}

.game-notification.is-unread .game-notification-mark {
    background: var(--gold-bright);
    box-shadow: 0 0 12px rgba(226, 197, 135, 0.5);
}

.game-notification > span:last-child {
    display: grid;
    gap: 4px;
}

.game-notification strong {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 400;
}

.game-notification small {
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.45;
}

.game-notification time {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-popover-more {
    width: 100%;
    padding: 14px;
}

.game-popover-state {
    margin: 0;
    padding: 30px 20px;
    color: var(--ink-muted);
    font-size: 12px;
    text-align: center;
}

.game-popover-state p {
    margin-bottom: 12px;
}

.game-app-popover {
    display: grid;
    width: min(270px, calc(100vw - 24px));
    padding: 8px;
}

.game-app-popover a {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    background: transparent;
    font: 600 10px var(--sans);
    letter-spacing: 0.08em;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.game-app-popover a:last-child {
    border-bottom: 0;
}

.game-app-popover a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.035);
}

.game-app-popover img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.game-page {
    width: 100%;
    margin-inline: auto;
    padding: 28px 0 88px;
}

.game-client-content.has-breadcrumbs .game-page {
    padding-top: 18px;
}

.game-page > :not(.game-action-shelf) {
    margin-inline: 14px;
}

.game-content-heading {
    position: relative;
    display: grid;
    height: 312px;
    min-height: 312px;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
    padding: 28px 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(12, 27, 38, .92), rgba(5, 12, 18, .84) 82%);
}

.game-content-heading::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    content: "";
    background: var(--gold);
}

.game-content-heading > div:first-child > span,
.game-panel-heading span,
.game-results-heading span,
.game-empty-state > span,
.game-card-copy > span,
.game-asset-copy > span,
.game-announcement > span {
    display: block;
    margin-bottom: 6px;
    color: var(--gold-bright);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.game-content-heading h1 {
    margin-bottom: 10px;
    font-size: clamp(34px, 9vw, 50px);
    line-height: 0.98;
}

.game-content-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.65;
}

.game-content-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
}

.game-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    color: var(--ink);
    background: rgba(8, 18, 27, 0.72);
    font: 600 10px var(--sans);
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.game-button:hover:not(:disabled) {
    border-color: var(--gold-bright);
    transform: translateY(-1px);
}

.game-button:disabled {
    opacity: 0.42;
    cursor: default;
}

.game-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.game-button-primary {
    border-color: var(--gold-deep);
    color: #081018;
    background: linear-gradient(135deg, #e1c384, #bb9154);
}

.game-button-primary:hover:not(:disabled) {
    color: #050a0f;
    background: linear-gradient(135deg, #ecd294, #c9a162);
}

.game-button-secondary {
    background: rgba(5, 12, 19, 0.78);
}

.game-button-ghost {
    border-color: rgba(226, 197, 135, 0.34);
    color: var(--gold-bright);
    background: rgba(3, 9, 14, 0.38);
}

.game-button-danger {
    border-color: rgba(190, 76, 76, 0.7);
    color: #f3c7c7;
    background: rgba(112, 27, 27, 0.34);
}

.game-text-button {
    padding: 10px;
    border: 0;
    color: var(--gold-bright);
    background: transparent;
    font: 600 9px var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.game-loading-state,
.game-empty-state {
    display: grid;
    min-height: 300px;
    place-content: center;
    justify-items: center;
    padding: 44px 22px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 20%, rgba(51, 97, 119, 0.12), transparent 20rem),
        rgba(7, 16, 24, 0.64);
    text-align: center;
}

.game-loading-state {
    gap: 15px;
    color: var(--ink-muted);
    font-size: 12px;
}

.game-loading-state p {
    margin: 0;
}

.game-empty-state > img {
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    object-fit: contain;
    opacity: 0.78;
}

.game-empty-state h2 {
    margin-bottom: 10px;
    font-size: 30px;
}

.game-empty-state p {
    max-width: 540px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 13px;
}

.game-empty-state.is-error {
    border-color: rgba(155, 62, 62, 0.45);
}

.game-empty-actions {
    margin-top: 24px;
}

.game-toast-region {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 200;
    display: grid;
    width: min(390px, calc(100vw - 28px));
    gap: 8px;
}

.game-toast {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    background: rgba(8, 20, 29, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
    font: 400 12px var(--sans);
    text-align: left;
    cursor: pointer;
}

.game-toast.is-success { border-left: 3px solid #80baa8; }
.game-toast.is-error { border-left: 3px solid #c56565; }
.game-toast.is-information { border-left: 3px solid var(--ice); }
.game-toast b { font-size: 20px; font-weight: 400; }

.game-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(1, 5, 8, 0.78);
    backdrop-filter: blur(8px);
}

.game-dialog {
    width: min(520px, 100%);
    padding: 24px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(145deg, #0b1924, #071018);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.68);
}

.game-dialog header span {
    color: var(--gold-bright);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.game-dialog h2 {
    margin: 4px 0 16px;
    font-size: 31px;
}

.game-dialog > p {
    color: var(--ink-muted);
    font-size: 13px;
    white-space: pre-line;
}

.game-dialog footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

.game-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.game-field > span {
    color: var(--gold-bright);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-field input,
.game-field textarea,
.game-field select,
.game-search-field input {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: rgba(4, 10, 15, 0.68);
    font: 400 13px var(--sans);
}

.game-field textarea {
    resize: vertical;
    line-height: 1.55;
}

.game-field input:focus,
.game-field textarea:focus,
.game-field select:focus,
.game-search-field input:focus {
    border-color: var(--gold);
    outline: 0;
}

.game-panel {
    border: 1px solid var(--line);
    background: rgba(8, 18, 27, 0.68);
}

.game-panel-heading,
.game-results-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.game-panel-heading h2,
.game-results-heading h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1;
}

.game-panel-heading small,
.game-results-heading > strong {
    color: var(--ink-muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-panel-heading > img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.game-announcement {
    min-height: 270px;
    padding: 26px 20px;
}

.game-announcement h3 {
    margin-bottom: 14px;
    font-size: 30px;
    line-height: 1.05;
}

.game-announcement p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-line;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
}

.game-announcement > small {
    color: var(--ink-muted);
    font-size: 10px;
}

.game-panel-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}

.game-panel-navigation a {
    color: var(--gold-bright);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
}

.flip-horizontal { transform: scaleX(-1); }

.game-quick-roll {
    display: flex;
    flex-direction: column;
}

.game-quick-roll-result {
    display: grid;
    min-height: 270px;
    place-content: center;
    justify-items: center;
    padding: 24px;
    text-align: center;
}

.game-quick-roll-result strong {
    color: var(--gold-bright);
    font-family: var(--serif);
    font-size: 94px;
    font-weight: 400;
    line-height: 0.9;
    text-shadow: 0 0 42px rgba(226, 197, 135, 0.18);
}

.game-quick-roll-result span {
    margin-top: 14px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 20px;
}

.game-quick-roll-result p {
    max-width: 300px;
    margin: 7px 0 0;
    color: var(--ink-muted);
    font-size: 11px;
}

.game-quick-roll > .game-button {
    margin: auto 16px 16px;
}

.game-tabs {
    display: flex;
    overflow-x: auto;
    border: 1px solid var(--line);
    scrollbar-width: none;
}

.game-tabs::-webkit-scrollbar { display: none; }

.game-tabs button,
.game-tabs a {
    position: relative;
    display: grid;
    min-width: 170px;
    flex: 1 0 auto;
    padding: 15px 16px;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--ink-muted);
    background: rgba(5, 12, 18, 0.54);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.game-tabs button:last-child,
.game-tabs a:last-child { border-right: 0; }

.game-tabs button::after,
.game-tabs a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: transparent;
}

.game-tabs button.is-active,
.game-tabs a.is-active {
    color: var(--ink);
    background: rgba(27, 50, 65, 0.44);
}

.game-tabs button.is-active::after,
.game-tabs a.is-active::after { background: var(--gold); }

.game-tabs span { color: var(--gold); font-size: 8px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.game-tabs strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.game-tabs small { margin-top: 3px; color: var(--ink-muted); font-size: 9px; }

.game-browser-toolbar {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(7, 16, 24, 0.62);
}

.game-browser-toolbar form {
    display: grid;
    gap: 8px;
}

.game-search-field {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    border: 1px solid var(--line);
    background: rgba(4, 10, 15, 0.68);
}

.game-search-field img {
    width: 20px;
    height: 20px;
    margin-left: 9px;
    object-fit: contain;
    opacity: 0.7;
}

.game-search-field input {
    border: 0;
    background: transparent;
}

.game-filter-panel {
    display: grid;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--line);
    border-top: 0;
    background: rgba(8, 18, 27, 0.72);
}

.game-browser-results {
    margin-top: 24px;
}

.game-results-heading {
    margin-bottom: 14px;
    padding-inline: 0;
}

.game-results-heading p {
    margin: 7px 0 0;
    color: var(--ink-muted);
    font-size: 11px;
}

.game-campaign-grid,
.game-character-grid,
.game-asset-grid {
    display: grid;
    gap: 12px;
}

.game-campaign-card,
.game-character-card,
.game-asset-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(8, 19, 28, 0.72);
    transition: border-color 160ms ease, transform 160ms ease;
}

.game-campaign-card:hover,
.game-character-card:hover,
.game-asset-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.game-campaign-card > a,
.game-character-card > a {
    display: grid;
    min-height: 124px;
    grid-template-columns: 104px minmax(0, 1fr) 38px;
    color: inherit;
    text-decoration: none;
}

.game-asset-card > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.game-card-art {
    position: relative;
    min-height: 124px;
    overflow: hidden;
    background: #071018;
}

.game-card-art > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-art > .game-card-art-fallback,
.game-asset-art > .game-card-art-fallback {
    object-fit: contain;
    padding: 24px;
    opacity: 0.54;
    filter: saturate(0.75);
}

.game-card-art::after {
    position: absolute;
    inset: 0 0 0 auto;
    width: 34%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(7, 16, 24, 0.98));
}

.game-card-phase,
.game-character-level {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 6px;
    border: 1px solid rgba(226, 197, 135, 0.46);
    color: var(--gold-bright);
    background: rgba(4, 10, 15, 0.86);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-card-copy {
    display: grid;
    min-width: 0;
    align-content: center;
    padding: 13px 12px;
}

.game-card-title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.game-card-copy h2 {
    overflow: hidden;
    margin: 0;
    font-size: 22px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-title-row > strong,
.game-character-status {
    flex: 0 0 auto;
    padding: 4px 6px;
    border: 1px solid var(--line);
    color: var(--gold-bright);
    background: rgba(4, 10, 15, 0.48);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.game-card-copy > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 0;
    color: var(--ink-muted);
    font-size: 10px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.game-card-copy footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 8px;
    text-transform: uppercase;
}

.game-card-copy footer strong {
    color: var(--gold-bright);
    font-weight: 600;
}

.game-card-actions {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid var(--line);
}

.game-card-actions button {
    min-height: 36px;
    flex: 1;
    border: 1px solid var(--line);
    color: var(--gold-bright);
    background: rgba(4, 10, 15, 0.62);
    font: 600 9px var(--sans);
    text-transform: uppercase;
    cursor: pointer;
}

.game-card-open {
    display: grid;
    place-items: center;
    border-left: 1px solid var(--line);
    background: rgba(3, 9, 14, 0.52);
}

.game-card-open img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.76;
}

.game-character-progress {
    height: 3px;
    margin-top: 9px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
}

.game-character-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
}

.game-character-supporting {
    margin-top: 7px;
    color: var(--gold-bright);
    font-size: 8px;
    line-height: 1.4;
}

.game-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.game-pagination button,
.game-pagination span {
    display: grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    padding: 7px;
    border: 1px solid var(--line);
    color: var(--ink-muted);
    background: rgba(5, 12, 18, 0.62);
    font: 600 9px var(--sans);
    cursor: pointer;
}

.game-pagination button.is-current {
    border-color: var(--gold);
    color: var(--gold-bright);
}

.game-pagination button:disabled {
    opacity: 0.4;
    cursor: default;
}

.game-action-shelf {
    position: sticky;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 14px;
    border-top: 1px solid var(--line-strong);
    background: rgba(5, 11, 17, 0.96);
    box-shadow: 0 -18px 38px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

@media (min-width: 641px) {
    .game-header {
        height: var(--header-height);
        min-height: var(--header-height);
    }

    .game-header-inner { width: min(100% - 40px, 1040px); }
    .game-client-content { min-height: calc(100dvh - var(--header-height)); }
    .game-header-branding { gap: 10px; }
    .game-page-identity > span { display: block; color: var(--gold-bright); font-size: 7px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
    .game-page-identity > strong { font-size: 18px; }
    .game-app-menu { display: block; }
    .game-credit-action { gap: 8px; padding: 5px 11px; }
    .game-credit-action img { width: 25px; height: 25px; }
    .game-credit-action small { display: block; }

    .game-page {
        width: min(100% - 40px, 1500px);
        padding-top: 38px;
    }

    .game-client-content.has-breadcrumbs .game-page { padding-top: 22px; }
    .game-page > :not(.game-action-shelf) { margin-inline: 0; }

    .game-content-heading { height: 260px; min-height: 260px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
    .game-content-actions { align-items: center; flex-direction: row; justify-content: flex-end; }
    .game-browser-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .game-browser-toolbar form { grid-template-columns: minmax(220px, 1fr) auto auto auto; align-items: center; }
    .game-filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .game-campaign-card > a,
    .game-character-card > a { min-height: 132px; grid-template-columns: 136px minmax(0, 1fr) 46px; }
    .game-card-art { min-height: 132px; }
    .game-card-copy { padding: 16px 15px; }
    .game-card-copy h2 { font-size: 25px; }
    .game-action-shelf { margin-inline: 0; padding-inline: 20px; border: 1px solid var(--line-strong); }
}

@media (min-width: 1101px) {
    .game-header-inner {
        display: grid;
        width: min(1420px, calc(100% - 56px));
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 22px;
    }

    .game-client-content { min-height: calc(100dvh - var(--header-height)); }
    .game-page-identity > small { display: block; overflow: hidden; max-width: 270px; color: var(--ink-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
    .game-primary-navigation { display: flex; align-self: auto; justify-content: center; gap: 28px; }
    .game-primary-navigation a { position: relative; display: flex; min-width: 0; align-items: center; justify-content: center; gap: 0; padding: 0; color: var(--ink-soft); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; }
    .game-primary-navigation a::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 1px; content: ""; transform: scaleX(0); background: var(--gold); transition: transform 180ms ease; }
    .game-primary-navigation a:hover,
    .game-primary-navigation a.is-active { color: var(--ink); background: transparent; }
    .game-primary-navigation a:hover::after,
    .game-primary-navigation a.is-active::after { transform: scaleX(1); }
    .game-header-utilities { justify-content: flex-end; }
    .game-account-menu { display: block; }
    .game-app-menu { display: none; }

    .game-content-heading h1 { font-size: clamp(38px, 3.4vw, 52px); }
    .game-campaign-grid,
    .game-character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .game-spinner { animation-duration: 0.01ms; }
    .game-campaign-card,
    .game-character-card,
    .game-asset-card,
    .game-button { transition: none; }
}

/* Browser game surfaces shared with the MAUI visual language. */
.game-field small {
    color: var(--ink-muted);
    font-size: 9px;
    line-height: 1.45;
}

.game-field small.is-limit,
.game-inline-error,
.game-validation.is-error { color: #e89c91; }

.game-inline-status,
.game-inline-error,
.game-empty-line {
    margin: 0;
    padding: 12px 14px;
    border-left: 2px solid var(--line-strong);
    background: rgba(4, 10, 15, 0.42);
    font-size: 11px;
}

.game-inline-error { border-left-color: #a95e55; }

.game-notice {
    display: block;
    margin: 14px 0;
    padding: 15px 17px;
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--gold);
    color: var(--ink-soft);
    background: rgba(20, 30, 37, 0.7);
    font-size: 11px;
    line-height: 1.65;
}

.game-notice > span,
.game-notice > small {
    display: block;
    color: var(--gold-bright);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.game-notice h2 { margin: 4px 0 8px; font-size: 25px; }
.game-notice p { margin: 0 0 7px; }
.game-notice.is-danger { border-left-color: #b85f54; background: rgba(67, 25, 24, .34); }

.game-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.game-chip-row > * ,
.game-status-label {
    padding: 6px 8px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    background: rgba(3, 9, 14, .55);
    font: 600 8px var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.game-chip-row strong { border-color: rgba(217, 180, 101, .55); color: var(--gold-bright); }

.game-artwork-hero {
    position: relative;
    display: grid;
    height: 312px;
    min-height: 312px;
    grid-template-areas: "hero";
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(120deg, rgba(8, 20, 29, .95), rgba(5, 12, 18, .75));
}

.game-artwork-hero-art {
    position: relative;
    grid-area: hero;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #07111a;
}

.game-artwork-hero-art::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(5, 12, 18, .99) 0%, rgba(5, 12, 18, .9) 48%, rgba(5, 12, 18, .16) 100%);
}

.game-artwork-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.game-artwork-hero.is-character .game-artwork-hero-art img { object-position: center top; }
.game-artwork-hero-art .game-card-art-fallback { object-fit: contain; padding: 70px; opacity: .55; }
.game-artwork-hero-copy { z-index: 2; display: grid; grid-area: hero; align-self: end; align-content: end; gap: 9px; padding: 72px 20px 24px; }
.game-artwork-hero-copy > span,
.game-editor-section > header span,
.game-section-heading span,
.game-readiness-strip span,
.game-party-status span,
.game-requirement-strip span,
.game-campaign-facts dt,
.game-fact-list dt,
.game-player-intent > span,
.game-readable-paper > span {
    color: var(--gold-bright);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.game-artwork-hero-copy h1 { margin: 0; font-size: clamp(34px, 7vw, 54px); line-height: .98; }
.game-artwork-hero-copy p { max-width: 760px; margin: 0; color: var(--ink-soft); line-height: 1.65; }
.game-artwork-hero-body { display: grid; gap: 8px; }
.game-artwork-hero-actions { z-index: 3; display: flex; grid-area: hero; align-self: start; justify-self: end; gap: 8px; padding: 14px; }
.game-hero-artwork-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(226, 197, 135, .42);
    color: var(--gold-bright);
    background: rgba(3, 9, 14, .78);
    font: 600 8px var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.game-hero-artwork-action:hover:not(:disabled) { border-color: var(--gold-bright); background: rgba(8, 18, 27, .92); }
.game-hero-artwork-action:disabled { opacity: .45; cursor: default; }
.game-hero-artwork-action img { width: 20px; height: 20px; object-fit: contain; }

.game-campaign-facts,
.game-requirement-strip,
.game-readiness-strip,
.game-outcome-resources,
.game-party-status {
    display: grid;
    margin: 0;
    border: 1px solid var(--line);
    border-top: 0;
    background: rgba(7, 17, 25, .8);
}

.game-campaign-facts > div,
.game-requirement-strip > div,
.game-readiness-strip > div,
.game-outcome-resources > div,
.game-party-status > div {
    display: grid;
    align-content: center;
    gap: 3px;
    min-height: 76px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.game-campaign-facts > div:last-child,
.game-requirement-strip > div:last-child,
.game-readiness-strip > div:last-child,
.game-outcome-resources > div:last-child { border-bottom: 0; }
.game-campaign-facts dd,
.game-requirement-strip strong,
.game-readiness-strip strong,
.game-outcome-resources strong,
.game-party-status strong { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 400; }
.game-campaign-facts small,
.game-requirement-strip small,
.game-readiness-strip small,
.game-outcome-resources small { color: var(--ink-muted); font-size: 9px; }

.game-party-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-character-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-character-facts > div { border-right: 1px solid var(--line); border-bottom: 0; }
.game-character-facts > div:last-child { border-right: 0; }
.game-party-status > div:nth-of-type(odd) { border-right: 1px solid var(--line); }
.game-party-status > div:nth-last-of-type(-n + 2) { border-bottom: 0; }
.game-party-status > p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 13px 16px;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 10px;
    line-height: 1.55;
}

.game-details-grid,
.game-editor-layout,
.game-history-layout,
.game-member-workspace,
.game-intent-management-layout,
.game-assets-layout,
.game-outcome-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.game-details-main,
.game-details-aside,
.game-form-stack { display: grid; align-content: start; gap: 14px; min-width: 0; }
.game-participation-panel > .game-character-card { border: 0; }
.game-panel-heading-actions,
.game-section-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.game-character-stack { display: grid; gap: 0; }
.game-character-stack .game-character-card { border-right: 0; border-bottom: 1px solid var(--line); border-left: 0; }
.game-character-stack .game-character-card:last-child { border-bottom: 0; }
.game-campaign-party-summary > .game-loading-state,
.game-campaign-party-summary > .game-empty-state { min-height: 180px; border: 0; }
.game-card-primary-actions { padding: 0; }
.game-card-primary-actions .game-button { flex: 1; }
.game-party-roster-heading { margin-top: 24px; }
.game-artwork-hero-subtitle { margin: 0; color: var(--gold-bright); font-size: 22px; }
.game-panel > p:not([class]) { padding: 0 18px 18px; color: var(--ink-soft); line-height: 1.65; }
.game-text-action { align-self: center; color: var(--gold-bright); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.game-text-action:hover { color: #fff2cb; }

.game-asset-details-layout {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.game-asset-details-copy,
.game-asset-actions {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 14px;
}

.game-asset-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border: 1px solid var(--line);
    background: rgba(7, 17, 25, .7);
}

.game-asset-facts > div {
    display: grid;
    gap: 4px;
    min-height: 74px;
    align-content: center;
    padding: 13px 15px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.game-asset-facts > div:nth-child(even) { border-right: 0; }
.game-asset-facts > div:nth-last-child(-n + 2) { border-bottom: 0; }
.game-asset-facts dt { color: var(--gold-bright); font-size: 8px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.game-asset-facts dd { margin: 0; font-family: var(--serif); font-size: 18px; }
.game-editor-section > p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.game-readable-paper.is-inline-readable { border: 1px solid var(--line); }

.game-focused-reader {
    width: min(100% - 28px, 980px);
    margin-inline: auto;
    padding: clamp(28px, 4vw, 64px);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(8, 20, 29, .94), rgba(4, 11, 17, .94));
}

.game-focused-reader > header { display: grid; gap: 8px; }
.game-focused-reader > header > span,
.game-focused-reader > footer > span { color: var(--gold-bright); font-size: 8px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.game-focused-reader h1 { margin: 0; font-size: clamp(34px, 4vw, 44px); line-height: 1.08; }
.game-focused-reader > header p { margin: 0; color: var(--ink-muted); line-height: 1.55; }
.game-reader-divider { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 14px; margin: 26px 0; }
.game-reader-divider i { height: 2px; background: var(--gold); }
.game-reader-divider span { height: 1px; background: var(--line); }
.game-focused-reader-copy { color: var(--ink); font-family: var(--serif); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.75; }
.game-focused-reader-copy p { margin: 0 0 1.3em; }
.game-focused-reader > footer { display: grid; justify-items: center; gap: 9px; margin-top: 36px; }
.game-focused-reader > footer i { width: 72px; height: 1px; background: var(--gold-deep); }

.game-story-paper {
    padding: clamp(18px, 2.5vw, 30px);
    color: #ede7da;
    background: linear-gradient(145deg, rgba(8, 20, 29, .94), rgba(4, 11, 17, .94));
    font-family: var(--serif);
    font-size: clamp(16px, 1.1vw, 19px);
    line-height: 1.65;
}

.game-story-paper > header { margin-bottom: 24px; }
.game-story-paper > header span { color: var(--gold-bright); font-family: var(--sans); font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.game-story-paper > header h2 { margin: 5px 0 0; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.08; }
.game-story-text { white-space: pre-line; }
.game-story-segment { white-space: pre-line; }
.game-story-unavailable { color: var(--ink-muted); font-style: italic; }
.game-story-paper.is-preview { max-height: 520px; overflow: hidden; }
.game-story-paper.is-compact { max-height: 420px; overflow: auto; }
.game-story-paper p:first-child::first-letter { float: left; margin: .08em .1em 0 0; color: var(--gold-bright); font-size: 3.4em; line-height: .72; }
.game-story-paper button { color: var(--gold-bright); cursor: pointer; }

.game-inline-roll {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 4px;
    padding: 3px 7px;
    border: 1px solid rgba(217, 180, 101, .48);
    color: var(--gold-bright);
    background: rgba(28, 27, 20, .72);
    font: 600 .72em var(--sans);
    letter-spacing: .04em;
    vertical-align: .1em;
}

.game-inline-roll:hover,
.game-inline-roll:focus-visible {
    border-color: var(--gold-bright);
    background: rgba(53, 45, 27, .82);
    outline: 0;
}

.game-inline-roll strong {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-left: 1px solid rgba(217, 180, 101, .32);
    padding-left: 7px;
    color: #fff2cb;
    font-size: 1.05em;
}

.game-inline-roll.is-critical-failure { border-color: rgba(190, 76, 76, .72); color: #efb3ad; }
.game-inline-roll.is-critical-success { border-color: rgba(111, 166, 147, .76); color: #b9e2d4; }

.game-roll-details {
    display: grid;
    gap: 12px;
    margin: 14px 0 18px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    color: var(--ink-soft);
    background: rgba(3, 10, 15, .78);
    font: 400 11px/1.5 var(--sans);
    white-space: normal;
}

.game-roll-details > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; }
.game-roll-details > header span { color: var(--gold-bright); font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.game-roll-details > header strong { color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 400; }
.game-roll-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.game-roll-details dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.game-roll-details dl > div:nth-child(odd) { padding-right: 14px; }
.game-roll-details dl > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.game-roll-details dt { color: var(--ink-muted); }
.game-roll-details dd { margin: 0; color: var(--ink); text-align: right; }
.game-roll-details > p { margin: 0; color: var(--ink-muted); }

.game-scene-layout {
    display: grid;
    gap: 14px;
    align-items: start;
}

.game-scene-browser {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(7, 17, 25, .76);
}

.game-scene-browser > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
}

.game-scene-browser > header span { color: var(--gold-bright); font-size: 8px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.game-scene-browser > header strong { color: var(--ink-muted); font-size: 8px; font-weight: 500; }
.game-scene-list { display: flex; overflow-x: auto; scrollbar-width: none; }
.game-scene-list::-webkit-scrollbar { display: none; }
.game-scene-list button {
    position: relative;
    display: grid;
    min-width: 190px;
    gap: 3px;
    padding: 13px 14px;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--ink);
    background: rgba(4, 10, 15, .28);
    text-align: left;
    cursor: pointer;
}
.game-scene-list button:last-child { border-right: 0; }
.game-scene-list button::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; content: ""; background: transparent; }
.game-scene-list button:hover,
.game-scene-list button.is-active { background: rgba(36, 39, 31, .56); }
.game-scene-list button.is-active::after { background: var(--gold); }
.game-scene-list span { color: var(--gold); font-size: 7px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.game-scene-list strong { overflow: hidden; font-family: var(--serif); font-size: 17px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.game-scene-browser > footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.game-scene-browser > footer button { min-height: 38px; border: 0; border-right: 1px solid var(--line); color: var(--gold-bright); background: rgba(4, 10, 15, .5); font: 600 8px var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.game-scene-browser > footer button:last-child { border-right: 0; }
.game-scene-browser > footer button:disabled { opacity: .36; cursor: default; }
.game-scene-reader { display: grid; min-width: 0; gap: 14px; }
.game-scene-reader > .game-story-paper { border: 1px solid var(--line); }

.game-scene-time {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    background: rgba(7, 17, 25, .7);
}

.game-scene-time > div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-right: 1px solid var(--line);
}
.game-scene-time > div:nth-child(3) { border-right: 0; }
.game-scene-time span { color: var(--gold-bright); font-size: 7px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.game-scene-time strong { color: var(--ink-soft); font-size: 10px; font-weight: 400; line-height: 1.45; }
.game-scene-time .game-scene-time-summary { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }

.game-panel-message { margin: 0; padding: 18px; color: var(--ink-muted); font-size: 11px; line-height: 1.6; }
.game-ledger { background: rgba(5, 13, 20, .58); }
.game-ledger-characters { display: grid; gap: 10px; padding: 0 14px 14px; }
.game-ledger-character { overflow: hidden; border: 1px solid var(--line); background: rgba(3, 9, 14, .52); }
.game-ledger-character.is-current { border-color: rgba(217, 180, 101, .5); box-shadow: inset 3px 0 var(--gold); }
.game-ledger-character > header { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.game-ledger-character > header span,
.game-ledger-assets > span,
.game-ledger-character blockquote > span { color: var(--gold-bright); font-size: 7px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.game-ledger-character > header h3 { margin: 3px 0 0; font-size: 21px; }
.game-ledger-character blockquote { margin: 0; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.game-ledger-character blockquote p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.game-ledger-resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.game-ledger-resources > div { display: grid; gap: 3px; padding: 11px 14px; border-right: 1px solid var(--line); }
.game-ledger-resources > div:last-child { border-right: 0; }
.game-ledger-resources dt { color: var(--ink-muted); font-size: 8px; }
.game-ledger-resources dd { margin: 0; color: var(--gold-bright); font-size: 11px; }
.game-ledger-assets { display: grid; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.game-ledger-assets > div { display: flex; justify-content: space-between; gap: 12px; }
.game-ledger-assets strong { color: var(--ink-soft); font-size: 11px; font-weight: 500; }
.game-ledger-assets small { color: var(--ink-muted); font-size: 8px; text-transform: uppercase; }
.game-ledger-none { margin: 0; padding: 12px 14px; color: var(--ink-muted); font-size: 10px; }

.game-character-grid.is-compact { padding: 14px; }
.game-character-grid.is-compact .game-card-art { height: 165px; }
.game-profile-strip { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: stretch; margin: 0 18px 18px; border: 1px solid var(--line); }
.game-profile-strip img { width: 76px; height: 76px; object-fit: cover; }
.game-profile-strip > div { display: grid; align-content: center; padding: 9px 12px; }
.game-profile-strip strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.game-profile-strip span { color: var(--ink-muted); font-size: 9px; }
.game-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }

.game-destination-list { display: grid; border: 1px solid var(--line); }
.game-destination-list a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.game-destination-list a:last-child { border-bottom: 0; }
.game-destination-list a:hover { background: rgba(255,255,255,.025); }
.game-destination-list img { width: 38px; height: 38px; object-fit: contain; }
.game-destination-list span { display: grid; }
.game-destination-list strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.game-destination-list small { color: var(--ink-muted); font-size: 9px; }
.game-quiet-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.game-quiet-actions button { padding: 8px 0; border: 0; color: var(--ink-muted); background: transparent; font-size: 9px; text-decoration: underline; cursor: pointer; }
.game-quiet-actions button + button { margin-left: 16px; }
.game-quiet-actions .is-danger { color: #d9887e; }

.game-artwork-panel { display: grid; gap: 10px; padding: 14px; }
.game-artwork-preview { position: relative; min-height: 220px; overflow: hidden; padding: 0; border: 1px solid var(--line); background: #061019; cursor: pointer; }
.game-artwork-preview:disabled { cursor: default; }
.game-artwork-preview > img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.game-artwork-preview > span { position: absolute; right: 0; bottom: 0; left: 0; padding: 10px; color: var(--ink); background: linear-gradient(transparent, rgba(2,7,11,.92)); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.game-artwork-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.game-artwork-actions button,
.game-artwork-actions label { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); color: var(--ink); background: rgba(5,12,18,.7); font: 600 8px var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.game-artwork-actions img { width: 21px; height: 21px; object-fit: contain; }
.game-artwork-actions input { display: none; }
.game-artwork-upload-button { cursor: pointer; }
.game-artwork-upload-button input { display: none; }
.game-artwork-viewer-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 15px; background: rgba(1,5,8,.86); backdrop-filter: blur(9px); }
.game-artwork-viewer,
.game-artwork-upload,
.game-compact-editor { display: grid; width: min(980px, 100%); max-height: calc(100dvh - 30px); overflow: auto; border: 1px solid var(--line-strong); background: #07121b; box-shadow: 0 34px 110px rgba(0,0,0,.7); }
.game-compact-editor { width: min(680px, 100%); gap: 14px; padding: 18px; }
.game-artwork-viewer > header,
.game-artwork-upload > header,
.game-compact-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.game-artwork-viewer > header span,
.game-artwork-upload > header span,
.game-compact-editor > header span { color: var(--gold-bright); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.game-artwork-viewer > header h2,
.game-artwork-upload > header h2,
.game-compact-editor > header h2 { margin: 2px 0 0; font-size: 28px; }
.game-artwork-viewer > header button,
.game-artwork-upload > header button,
.game-compact-editor > header button { border: 0; color: var(--ink); background: transparent; font-size: 28px; cursor: pointer; }
.game-artwork-full { display: grid; min-height: 300px; place-items: center; padding: 14px; background: #020609; }
.game-artwork-full img { max-width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; }
.game-artwork-empty { display: grid; min-height: 300px; place-content: center; justify-items: center; gap: 14px; padding: 30px; color: var(--ink-muted); background: #020609; text-align: center; }
.game-artwork-empty img { width: 76px; height: 76px; object-fit: contain; opacity: .55; }
.game-artwork-empty p { margin: 0; font-size: 11px; }
.game-artwork-viewer > footer,
.game-artwork-upload > footer,
.game-compact-editor > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.game-artwork-upload-cost { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 10px; }

.game-prose-sections { display: grid; gap: 0; }
.game-prose-sections section { padding: 18px; border-bottom: 1px solid var(--line); }
.game-prose-sections section:last-child { border-bottom: 0; }
.game-prose-sections h3 { margin: 0 0 8px; color: var(--gold-bright); font-size: 20px; }
.game-prose-sections p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; white-space: pre-line; }
.game-audit-panel .game-fact-list { padding-bottom: 10px; }
.game-fact-list { display: grid; margin: 0; }
.game-fact-list > div { display: grid; grid-template-columns: minmax(100px,.6fr) minmax(0,1fr); gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.game-fact-list > div:last-child { border-bottom: 0; }
.game-fact-list dd { margin: 0; color: var(--ink-soft); font-size: 11px; text-align: right; }

.game-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.game-section-heading h2,
.game-section-heading h3 { margin: 2px 0 0; font-size: 28px; }
.game-eligibility-card { display: contents; }
.game-eligibility-card.is-ineligible .game-character-card { opacity: .7; }
.game-status-label { display: inline-block; }
.game-card-actions > div { padding: 13px; }
.game-card-actions p { margin: 7px 0 11px; color: var(--ink-muted); font-size: 10px; }
.game-requirement-strip,
.game-readiness-strip { margin-bottom: 14px; }

.game-editor-section {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(8,18,27,.68);
}

.game-editor-section > header { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.game-editor-section > header h2 { margin: 3px 0 0; font-size: 28px; }
.game-form-grid { display: grid; gap: 14px; }
.game-field-wide { grid-column: 1 / -1; }
.game-inline-input { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.game-inline-input button { padding: 0 14px; border: 1px solid var(--line); border-left: 0; color: var(--gold-bright); background: rgba(12,25,35,.8); font: 600 8px var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.game-check-field { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); background: rgba(4,10,15,.4); }
.game-check-field input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--gold); }
.game-check-field > span { display: grid; gap: 3px; }
.game-check-field strong { color: var(--ink); font-size: 11px; font-weight: 500; }
.game-check-field small { color: var(--ink-muted); font-size: 9px; line-height: 1.5; }
.game-choice-grid { display: grid; gap: 8px; }
.game-choice-card { display: grid; gap: 5px; padding: 15px; border: 1px solid var(--line); color: var(--ink); background: rgba(4,10,15,.5); text-align: left; cursor: pointer; }
.game-choice-card:hover,
.game-choice-card.is-selected { border-color: var(--gold); background: rgba(38,37,27,.5); }
.game-choice-card > span { color: var(--gold); font-size: 7px; letter-spacing: .09em; text-transform: uppercase; }
.game-choice-card strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.game-choice-card p { margin: 0; color: var(--ink-muted); font-size: 9px; line-height: 1.5; }
.game-editor-review { min-width: 0; }
.game-editor-review .is-sticky { position: sticky; top: 96px; }
.game-validation { margin: 14px; padding: 12px; border-left: 2px solid var(--line-strong); color: var(--ink-muted); font-size: 10px; }
.game-validation.is-ready { border-left-color: #6fa693; color: #9fd2bf; }
.game-toggle-grid { display: grid; gap: 7px; }
.game-toggle-grid label,
.game-role-editor label { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); font-size: 10px; }
.game-toggle-grid input,
.game-role-editor input { accent-color: var(--gold); }

.game-definition-grid { display: grid; gap: 18px; }
.game-definition-list { display: grid; border: 1px solid var(--line); }
.game-definition-list article { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 13px; border-bottom: 1px solid var(--line); }
.game-definition-list article:last-child { border-bottom: 0; }
.game-definition-list article > div:first-child { display: grid; gap: 3px; }
.game-definition-list strong { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.game-definition-list small,
.game-definition-list p { margin: 0; color: var(--ink-muted); font-size: 8px; }
.game-definition-list article > div:last-child { display: flex; align-items: center; gap: 8px; }
.game-definition-list button { border: 0; color: var(--gold-bright); background: transparent; font-size: 8px; text-decoration: underline; cursor: pointer; }
.game-definition-list button.is-danger { color: #df897f; }

.game-history-layout { min-height: 620px; }
.game-history-detail,
.game-member-list,
.game-member-inspector { display: grid; min-width: 0; align-content: start; gap: 14px; }
.game-history-tree,
.game-member-list-panel,
.game-intent-roster,
.game-asset-character-list { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: rgba(7,17,25,.66); }
.game-history-tree > header,
.game-asset-character-list > header { display: flex; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); color: var(--gold-bright); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.game-history-node { display: grid; grid-template-columns: 30px minmax(0,1fr); padding-left: calc(var(--history-depth) * 12px); border-bottom: 1px solid var(--line); }
.game-history-node.is-selected { border-left: 2px solid var(--gold); background: rgba(36,39,31,.55); }
.game-history-node.is-current { box-shadow: inset 3px 0 #6fa693; }
.game-history-toggle,
.game-history-marker { display: grid; place-items: center; border: 0; color: var(--gold-bright); background: transparent; font-size: 17px; cursor: pointer; }
.game-history-select { display: grid; gap: 3px; padding: 12px 10px; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.game-history-select > span,
.game-history-select > small { color: var(--ink-muted); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.game-history-select strong { overflow: hidden; font-family: var(--serif); font-size: 16px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.game-history-overview,
.game-long-memory { padding: 20px !important; color: var(--ink-soft); font-size: 12px; line-height: 1.8; white-space: pre-line; }
.game-disclosure { margin: 0 18px 18px; border: 1px solid var(--line); }
.game-disclosure summary { padding: 12px; color: var(--gold-bright); font-size: 9px; letter-spacing: .08em; cursor: pointer; text-transform: uppercase; }
.game-disclosure p { padding: 0 12px 12px; color: var(--ink-muted); font-size: 11px; line-height: 1.65; }

.game-tool-grid { display: grid; gap: 10px; }
.game-tool-card { position: relative; display: grid; min-height: 220px; align-content: end; overflow: hidden; padding: 18px; border: 1px solid var(--line); color: inherit; background: linear-gradient(145deg, rgba(9,22,31,.9), rgba(5,12,18,.75)); text-decoration: none; }
.game-tool-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.game-tool-card > img { position: absolute; top: 18px; right: 18px; width: 72px; height: 72px; object-fit: contain; opacity: .58; }
.game-tool-card > span { color: var(--gold); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.game-tool-card h2 { margin: 4px 0 8px; font-size: 28px; }
.game-tool-card p { min-height: 42px; margin: 0; color: var(--ink-muted); font-size: 10px; line-height: 1.55; }
.game-tool-card > strong { margin-top: 13px; color: var(--gold-bright); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.game-lifecycle-panel { margin-top: 14px; }
.game-operation-list { display: grid; }
.game-operation-list article { display: grid; gap: 13px; padding: 17px; border-bottom: 1px solid var(--line); }
.game-operation-list article:last-child { border-bottom: 0; }
.game-operation-list h3 { margin: 0 0 5px; font-size: 20px; }
.game-operation-list p { margin: 0; color: var(--ink-muted); font-size: 10px; line-height: 1.55; }
.game-operation-cost { display: block; min-height: 12px; margin-top: 7px; color: var(--gold-bright); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }

.game-record-list { display: grid; }
.game-record-row { display: grid; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.game-record-row:last-child { border-bottom: 0; }
.game-record-row.is-muted { opacity: .65; }
.game-record-row > div:first-child { display: grid; gap: 4px; }
.game-record-row > div:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.game-record-row span { color: var(--gold); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.game-record-row h3 { margin: 0; font-size: 22px; }
.game-record-row p,
.game-record-row small { margin: 0; color: var(--ink-muted); font-size: 9px; }

.game-member-list-panel > header { display: grid; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.game-search { display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: center; border: 1px solid var(--line); }
.game-search img { width: 18px; height: 18px; margin-left: 7px; object-fit: contain; }
.game-search input { width: 100%; padding: 10px; border: 0; color: var(--ink); background: transparent; font: 11px var(--sans); outline: 0; }
.game-member-list-panel > header > span { color: var(--ink-muted); font-size: 8px; }
.game-filter-row { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.game-filter-row::-webkit-scrollbar { display: none; }
.game-filter-row button,
.game-segmented button { min-width: max-content; padding: 10px 12px; border: 0; border-right: 1px solid var(--line); color: var(--ink-muted); background: transparent; font: 600 8px var(--sans); letter-spacing: .07em; cursor: pointer; text-transform: uppercase; }
.game-filter-row button.is-active,
.game-segmented button.is-active { color: var(--gold-bright); background: rgba(36,39,31,.55); box-shadow: inset 0 -2px var(--gold); }
.game-filter-row button span { margin-left: 4px; color: var(--gold); }
.game-member-row,
.game-intent-roster-row,
.game-asset-character-list > button { display: grid; width: 100%; grid-template-columns: 58px minmax(0,1fr) auto; align-items: stretch; gap: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.game-member-row.is-selected,
.game-intent-roster-row.is-selected,
.game-asset-character-list > button.is-selected { background: rgba(37,43,34,.52); box-shadow: inset 3px 0 var(--gold); }
.game-member-art,
.game-intent-roster-row > div,
.game-asset-character-list > button > div { position: relative; width: 58px; min-height: 72px; overflow: hidden; }
.game-member-art::after,
.game-intent-roster-row > div::after,
.game-asset-character-list > button > div::after { position: absolute; inset: 0 0 0 auto; width: 16px; content: ""; background: linear-gradient(90deg, transparent, rgba(7,17,25,.92)); }
.game-member-art img,
.game-intent-roster-row img,
.game-asset-character-list img { width: 100%; height: 100%; object-fit: cover; }
.game-member-row > span,
.game-intent-roster-row > span,
.game-asset-character-list > button > span { display: grid; min-width: 0; align-content: center; gap: 2px; padding: 9px 11px; }
.game-member-row strong,
.game-intent-roster-row strong,
.game-asset-character-list strong { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.game-member-row small,
.game-member-row em,
.game-intent-roster-row small,
.game-asset-character-list small,
.game-asset-character-list em { overflow: hidden; color: var(--ink-muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.game-member-row b,
.game-intent-roster-row b { align-self: center; margin-right: 9px; color: var(--gold); font-size: 7px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.game-role-editor { display: grid; gap: 7px; margin: 0 18px 18px; padding: 12px; border: 1px solid var(--line); }
.game-role-editor legend { padding: 0 6px; color: var(--gold-bright); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }

.game-readiness-strip { grid-template-columns: 1fr; }
.game-intent-roster-row p { overflow: hidden; margin: 3px 0 0; color: var(--ink-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.game-player-intent { margin: 0 18px 18px; padding: 14px; border-left: 2px solid var(--gold); background: rgba(4,10,15,.54); }
.game-player-intent p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.game-intent-inspector .game-field { margin: 0 18px 18px; }

.game-assets-toolbar,
.game-assets-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); background: rgba(7,17,25,.72); }
.game-assets-toolbar > div:first-child { display: grid; min-width: 0; }
.game-assets-toolbar span { overflow: hidden; color: var(--ink-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.game-assets-toolbar h2 { margin: 3px 0 0; font-size: 23px; }
.game-segmented { display: flex; overflow-x: auto; border: 1px solid var(--line); }
.game-assets-filterbar { margin-top: 8px; }
.game-assets-workspace > .game-asset-grid { margin-top: 10px; }

.game-asset-grid { grid-template-columns: 1fr; }
.game-asset-card > a { display: grid; grid-template-columns: 96px minmax(0,1fr); min-height: 118px; }
.game-asset-card > a:not([href]) { cursor: default; }
.game-asset-art { position: relative; min-height: 118px; overflow: hidden; background: #061019; }
.game-asset-art::after { position: absolute; inset: 0 0 0 auto; width: 22px; content: ""; background: linear-gradient(90deg, transparent, rgba(8,19,28,.95)); }
.game-asset-art img { width: 100%; height: 100%; object-fit: cover; }
.game-asset-art .game-card-art-fallback { padding: 22px; object-fit: contain; opacity: .6; }
.game-asset-art > span { position: absolute; top: 7px; left: 7px; z-index: 2; padding: 4px 6px; border: 1px solid var(--gold); color: var(--gold-bright); background: rgba(2,7,11,.8); font-size: 6px; letter-spacing: .07em; text-transform: uppercase; }
.game-asset-copy { display: grid; align-content: center; gap: 4px; padding: 13px; }
.game-asset-copy > span { color: var(--gold); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.game-asset-copy h3 { margin: 0; font-size: 20px; }
.game-asset-copy strong { color: var(--ink-soft); font-size: 9px; }
.game-asset-copy p { display: -webkit-box; overflow: hidden; margin: 3px 0 0; color: var(--ink-muted); font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.game-outcome-hero { position: relative; display: grid; min-height: 360px; align-items: end; overflow: hidden; border: 1px solid var(--line); background: #07111a; }
.game-outcome-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.game-outcome-hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(4,10,15,.98), rgba(4,10,15,.2)); }
.game-outcome-hero > div { position: relative; z-index: 2; padding: 28px 20px; }
.game-outcome-hero span { color: var(--gold-bright); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.game-outcome-hero h1 { margin: 5px 0 0; font-size: clamp(42px,8vw,70px); }
.game-outcome-hero h2 { margin: 3px 0 10px; color: var(--gold-bright); font-size: 22px; }
.game-outcome-hero p { max-width: 700px; color: var(--ink-soft); }
.game-outcome-change { display: grid; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.game-outcome-change > span { color: var(--gold); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.game-outcome-change.is-lost > span { color: #df897f; }
.game-outcome-change dl { display: grid; margin: 0; }
.game-outcome-change dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; border-top: 1px solid var(--line); }
.game-outcome-change dt,
.game-outcome-change dd { color: var(--ink-muted); font-size: 8px; }
.game-outcome-change dd { margin: 0; text-align: right; }
.game-decision-panel { display: grid; gap: 18px; margin-top: 14px; padding: 22px; border: 1px solid var(--gold); background: linear-gradient(120deg,rgba(48,43,27,.45),rgba(7,16,23,.78)); }
.game-decision-panel span { color: var(--gold-bright); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.game-decision-panel h2 { margin: 4px 0 7px; font-size: 30px; }
.game-decision-panel p { margin: 0; color: var(--ink-muted); font-size: 10px; }
.game-decision-panel > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }

.game-revision-list { display: grid; max-height: 320px; overflow: auto; border: 1px solid var(--line); }
.game-revision-list button { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.game-revision-list button.is-selected { border-left: 2px solid var(--gold); background: rgba(38,37,27,.5); }
.game-revision-list span,
.game-revision-list small { color: var(--ink-muted); font-size: 8px; }
.game-readonly-asset { max-width: 900px; margin-inline: auto; }
.game-readable-paper { width: min(820px, 100%); min-height: 480px; margin: 0 auto; padding: clamp(28px,6vw,70px); border: 1px solid rgba(217,180,101,.4); color: #29251d; background: linear-gradient(145deg,#e8dfc9,#cec0a2); box-shadow: 0 28px 70px rgba(0,0,0,.35); }
.game-reader-page > .game-readable-paper { margin-inline: auto; }
.game-readable-paper > span { color: #776037; }
.game-readable-paper h2 { margin: 8px 0 28px; color: #201d18; font-size: clamp(34px,6vw,54px); }
.game-readable-paper p,
.game-readonly-asset .game-readable-paper { color: #29251d; font-family: var(--serif); font-size: clamp(17px,2vw,22px); line-height: 1.8; white-space: pre-line; }
.game-reader-return { display: flex; justify-content: center; margin-top: 18px; }

.game-intent-layout { display: grid; gap: 14px; }
.game-intent-editor,
.game-intent-context > * { border: 1px solid var(--line); background: rgba(8,18,27,.68); }
.game-intent-editor { padding: 18px; }
.game-intent-editor > header { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.game-intent-editor > header span { color: var(--gold); font-size: 8px; text-transform: uppercase; }
.game-intent-editor h2 { margin: 2px 0 0; font-size: 26px; }
.game-intent-editor > p { color: var(--ink-muted); font-size: 10px; line-height: 1.55; }
.game-intent-editor > header > strong { align-self: start; padding: 6px 8px; border: 1px solid var(--line); color: var(--ink-muted); font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.game-intent-editor > header > strong.is-submitted { border-color: rgba(111, 166, 147, .55); color: #a8d7c7; }
.game-intent-field { display: grid; gap: 7px; margin-top: 14px; }
.game-intent-field > span { color: var(--gold-bright); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.game-intent-field textarea { width: 100%; min-height: 170px; resize: vertical; padding: 13px 14px; border: 1px solid var(--line); color: var(--ink); background: rgba(4, 10, 15, .68); font: 400 14px/1.6 var(--sans); outline: 0; }
.game-intent-field textarea:focus { border-color: var(--gold); }
.game-intent-field textarea:read-only { color: var(--ink-soft); background: rgba(4, 10, 15, .42); }
.game-intent-field small { justify-self: end; color: var(--ink-muted); font-size: 9px; }
.game-save-state { display: flex; min-height: 30px; align-items: center; gap: 7px; margin-top: 8px; color: var(--ink-muted); font-size: 9px; }
.game-intent-story { margin: 14px 0 0; }
.game-intent-story summary { display: grid; }
.game-intent-story summary strong { color: var(--ink); font-family: var(--serif); font-size: 18px; text-transform: none; }
.game-intent-scene-art { width: 100%; max-height: 350px; object-fit: cover; }

@media (min-width: 641px) {
    .game-artwork-hero {
        height: 260px;
        min-height: 260px;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
        grid-template-areas:
            "copy art";
    }
    .game-artwork-hero-art { grid-area: art; min-height: 0; }
    .game-artwork-hero-art::after { inset: 0; background: linear-gradient(90deg,rgba(5,12,18,1) 0%,rgba(5,12,18,.78) 20%,transparent 68%); }
    .game-artwork-hero-copy { grid-area: copy; align-self: stretch; align-content: center; padding: 28px 22px; }
    .game-artwork-hero-actions { grid-area: art; }
    .game-artwork-hero.is-condensed,
    .game-artwork-hero.is-management { min-height: 260px; }
    .game-campaign-facts,
    .game-requirement-strip,
    .game-readiness-strip,
    .game-outcome-resources { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .game-readiness-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .game-party-status { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .game-campaign-facts > div,
    .game-requirement-strip > div,
    .game-readiness-strip > div,
    .game-outcome-resources > div,
    .game-party-status > div { border-right: 1px solid var(--line); border-bottom: 0; }
    .game-campaign-facts > div:last-child,
    .game-requirement-strip > div:last-child,
    .game-readiness-strip > div:last-child,
    .game-outcome-resources > div:last-child,
    .game-party-status > div:last-of-type { border-right: 0; }
    .game-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .game-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .game-toggle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .game-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .game-record-row { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
    .game-operation-list article { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
    .game-asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .game-intent-layout { grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); }
    .game-decision-panel { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
}

@media (min-width: 1101px) {
    .game-details-grid { grid-template-columns: minmax(0,1.55fr) minmax(320px,.7fr); gap: 18px; }
    .game-asset-details-layout { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 18px; }
    .game-editor-layout { grid-template-columns: minmax(0,1.55fr) minmax(300px,.58fr); gap: 18px; }
    .game-history-layout { grid-template-columns: minmax(300px,.55fr) minmax(0,1.45fr); gap: 18px; }
    .game-member-workspace,
    .game-intent-management-layout { grid-template-columns: minmax(0,1.15fr) minmax(380px,.7fr); gap: 18px; }
    .game-assets-layout { grid-template-columns: 300px minmax(0,1fr); gap: 18px; }
    .game-outcome-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
    .game-definition-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .game-tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .game-asset-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .game-toggle-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .game-scene-layout { grid-template-columns: minmax(230px, .42fr) minmax(0, 1.58fr); gap: 18px; }
    .game-scene-browser { position: sticky; top: 96px; max-height: calc(100dvh - 116px); }
    .game-scene-list { display: grid; overflow-x: visible; overflow-y: auto; }
    .game-scene-list button { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .game-scene-list button:last-child { border-bottom: 0; }
    .game-scene-list button::after { top: 0; right: auto; width: 2px; height: auto; }
}

@media (max-width: 640px) {
    .game-page > .game-content-heading,
    .game-page > .game-artwork-hero,
    .game-page > .game-campaign-facts,
    .game-page > .game-requirement-strip,
    .game-page > .game-readiness-strip,
    .game-page > .game-party-status,
    .game-page > .game-outcome-hero,
    .game-page > .game-outcome-resources,
    .game-page > .game-details-grid,
    .game-page > .game-asset-details-layout,
    .game-page > .game-editor-layout,
    .game-page > .game-history-layout,
    .game-page > .game-member-workspace,
    .game-page > .game-intent-management-layout,
    .game-page > .game-assets-layout,
    .game-page > .game-outcome-grid,
    .game-page > .game-panel,
    .game-page > .game-editor-section { margin-inline: 0; border-right: 0; border-left: 0; }
    .game-panel,
    .game-content-heading,
    .game-editor-section,
    .game-history-tree,
    .game-member-list-panel,
    .game-intent-roster,
    .game-asset-character-list,
    .game-assets-toolbar,
    .game-assets-filterbar { border-right: 0; border-left: 0; }
    .game-editor-section { padding-inline: 14px; }
    .game-content-heading { border-right: 0; border-left: 0; }
    .game-artwork-hero { border-right: 0; border-left: 0; }
    .game-asset-facts { border-right: 0; border-left: 0; }
    .game-focused-reader { width: 100%; padding: 28px 20px 40px; border-right: 0; border-left: 0; }
    .game-page > .game-character-grid,
    .game-page > .game-party-grid { margin-inline: 0; gap: 0; }
    .game-campaign-details-page .game-details-aside { order: 1; }
    .game-campaign-details-page .game-details-main { order: 2; }
    .game-browser-results .game-campaign-grid { margin-inline: -14px; gap: 0; }
    .game-campaign-card,
    .game-character-card { border-right: 0; border-left: 0; }
    .game-campaign-facts,
    .game-requirement-strip,
    .game-readiness-strip,
    .game-outcome-resources { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .game-campaign-facts > div:nth-child(odd),
    .game-requirement-strip > div:nth-child(odd),
    .game-outcome-resources > div:nth-child(odd) { border-right: 1px solid var(--line); }
    .game-outcome-resources > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
    .game-readiness-strip > div:last-child { grid-column: 1/-1; }
    .game-action-shelf { margin-inline: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
    .game-action-shelf .game-button { flex: 1 1 auto; }
    .game-section-heading { align-items: stretch; flex-direction: column; }
    .game-section-actions { justify-content: stretch; }
    .game-section-actions .game-button,
    .game-section-heading > .game-button { flex: 1 1 auto; justify-content: center; }
    .game-assets-toolbar,
    .game-assets-filterbar { align-items: stretch; flex-direction: column; }
    .game-assets-filterbar .game-button { justify-content: center; }
    .game-outcome-grid { gap: 10px; }
    .game-artwork-viewer-backdrop { padding: 0; }
    .game-artwork-viewer,
    .game-artwork-upload,
    .game-compact-editor { width: 100%; max-height: 100dvh; border-right: 0; border-left: 0; }
    .game-artwork-viewer,
    .game-artwork-upload { overflow-x: hidden; }
    .game-artwork-viewer > footer,
    .game-artwork-upload > footer {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }
    .game-artwork-viewer > footer > *,
    .game-artwork-upload > footer > * { width: 100%; min-width: 0; justify-content: center; }
    .game-artwork-viewer > footer > :last-child { grid-column: 1 / -1; }
    .game-decision-panel { margin-inline: 0; border-right: 0; border-left: 0; }
    .game-scene-layout { margin-inline: 0; }
    .game-scene-browser,
    .game-scene-reader > .game-story-paper,
    .game-scene-time { border-right: 0; border-left: 0; }
    .game-scene-reader > .game-artwork-panel { padding-inline: 0; }
    .game-scene-time > div { padding-inline: 10px; }
    .game-scene-time strong { font-size: 9px; }
    .game-roll-details dl { grid-template-columns: 1fr; }
    .game-roll-details dl > div:nth-child(odd),
    .game-roll-details dl > div:nth-child(even) { padding-inline: 0; border-left: 0; }
    .game-ledger-resources { grid-template-columns: 1fr; }
    .game-ledger-resources > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .game-ledger-resources > div:last-child { border-bottom: 0; }
}

/* MAUI-aligned Character, Item and Effect presentation. */
.game-campaign-grid,
.game-character-grid,
.game-asset-grid,
.game-asset-list {
    align-items: start;
}

.game-campaign-card,
.game-character-card {
    align-self: start;
}

.game-card-actions:empty {
    display: none;
}

.game-asset-grid,
.game-asset-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.game-asset-card {
    display: grid;
    min-height: 108px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    border-bottom: 0;
    transform: none;
}

.game-asset-card:last-child {
    border-bottom: 1px solid var(--line);
}

.game-asset-card:hover {
    transform: none;
}

.game-asset-main,
.game-asset-card > .game-asset-main {
    display: grid;
    min-width: 0;
    min-height: 108px;
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.game-asset-main:focus-visible {
    outline: 1px solid var(--gold-bright);
    outline-offset: -2px;
}

.game-asset-main:disabled {
    cursor: default;
}

.game-asset-art {
    min-height: 108px;
}

.game-asset-copy {
    position: relative;
    min-width: 0;
    align-content: center;
    padding: 11px 13px;
}

.game-asset-copy:has(.game-asset-change) {
    padding-right: 70px;
}

.game-asset-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.game-asset-copy p {
    -webkit-line-clamp: 2;
}

.game-asset-change {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 4px 6px;
    border: 1px solid rgba(226, 197, 135, 0.35);
    color: var(--gold-bright);
    background: rgba(2, 7, 11, 0.76);
    font-size: 7px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.game-asset-secondary-action,
.game-asset-open {
    display: grid;
    width: 54px;
    min-height: 108px;
    place-content: center;
    justify-items: center;
    gap: 5px;
    padding: 6px;
    border: 0;
    border-left: 1px solid var(--line);
    color: var(--gold-bright);
    background: rgba(3, 9, 14, 0.52);
}

.game-asset-secondary-action {
    font: 600 6px var(--sans);
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.game-asset-secondary-action:disabled {
    opacity: 0.44;
    cursor: wait;
}

.game-asset-secondary-action img,
.game-asset-open img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.game-character-section {
    display: grid;
    gap: 24px;
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    background: rgba(7, 17, 25, 0.62);
}

.game-section-intro {
    display: grid;
    gap: 4px;
}

.game-section-intro.is-split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
}

.game-section-intro span,
.game-character-section h3,
.game-inventory-group > header > h3,
.game-inventory-group > header > div > h3 {
    color: var(--gold-bright);
}

.game-section-intro span {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-section-intro h2 {
    margin: 0;
    font-size: 30px;
}

.game-section-intro p,
.game-inventory-group header p {
    margin: 2px 0 0;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.55;
}

.game-section-intro > strong,
.game-section-intro > div + strong,
.game-inventory-group > header > strong {
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 500;
}

.game-character-commitment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.game-character-commitment h2 {
    margin: 4px 0;
    font-size: 23px;
}

.game-character-commitment p {
    margin: 0;
}

.game-character-biography {
    display: grid;
    gap: 32px;
}

.game-character-biography h3,
.game-inventory-group h3 {
    margin: 0 0 9px;
    font-size: 16px;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.game-character-biography p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.75;
    white-space: pre-line;
}

.game-character-backstory p {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.65;
}

.game-character-traits {
    display: grid;
    gap: 20px;
}

.game-character-traits section + section,
.game-character-notes,
.game-inventory-group + .game-inventory-group {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.game-character-notes {
    display: grid;
    gap: 14px;
}

.game-character-notes .game-button {
    justify-self: start;
}

.game-equipment-paperdoll {
    --equipment-slot-size: 104px;
    display: grid;
    width: max-content;
    max-width: 100%;
    grid-template-columns: repeat(3, var(--equipment-slot-size));
    grid-template-rows: repeat(5, var(--equipment-slot-size));
    gap: 9px;
    justify-self: center;
}

.game-equipment-slot {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    background: rgba(4, 10, 15, 0.78);
    cursor: pointer;
}

.game-equipment-slot:hover {
    border-color: var(--gold-bright);
}

.game-equipment-slot:disabled {
    cursor: default;
}

.game-equipment-slot > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-equipment-slot > .game-card-art-fallback {
    padding: 25%;
    object-fit: contain;
    opacity: 0.55;
}

.game-equipment-slot > strong {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    padding: 17px 6px 6px;
    color: var(--ink);
    background: linear-gradient(transparent, rgba(2, 7, 11, 0.95));
    font-size: 8px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-equipment-empty-label {
    color: var(--ink-muted);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-equipment-slot.is-disabled::after {
    position: absolute;
    inset: 0;
    content: "Disabled";
    display: grid;
    place-items: center;
    color: #efaaa0;
    background: rgba(34, 6, 8, 0.66);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-equipment-two-handed {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 4px;
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    background: rgba(2, 7, 11, 0.84);
    font-size: 7px;
    font-weight: 700;
}

.game-equipment-slot[data-slot="Head"] { grid-column: 2; grid-row: 1; }
.game-equipment-slot[data-slot="Neck"] { grid-column: 3; grid-row: 1; }
.game-equipment-slot[data-slot="Back"] { grid-column: 1; grid-row: 2; }
.game-equipment-slot[data-slot="Chest"] { grid-column: 2; grid-row: 2; }
.game-equipment-slot[data-slot="Hands"] { grid-column: 3; grid-row: 2; }
.game-equipment-slot[data-slot="Ring"] { grid-column: 1; grid-row: 3; }
.game-equipment-slot[data-slot="Waist"] { grid-column: 2; grid-row: 3; }
.game-equipment-future-slot { grid-column: 3; grid-row: 3; }
.game-equipment-slot[data-slot="MainHand"] { grid-column: 1; grid-row: 4; }
.game-equipment-slot[data-slot="Legs"] { grid-column: 2; grid-row: 4; }
.game-equipment-slot[data-slot="OffHand"] { grid-column: 3; grid-row: 4; }
.game-equipment-slot[data-slot="Feet"] { grid-column: 2; grid-row: 5; }

.game-inventory-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.3fr) minmax(130px, 0.3fr);
    align-items: end;
    gap: 10px;
}

.game-inventory-controls .game-search-field {
    min-height: 47px;
}

.game-inventory-group {
    display: grid;
    gap: 10px;
}

.game-inventory-group > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.game-inventory-group h3 {
    margin-bottom: 0;
}

.game-effect-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.game-effect-filters button {
    min-height: 40px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    background: rgba(4, 10, 15, 0.56);
    font: 600 8px var(--sans);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

.game-effect-filters button.is-active {
    border-color: var(--gold);
    color: var(--gold-bright);
    background: rgba(56, 46, 24, 0.42);
}

.game-effect-filters button.is-debuff {
    border-color: rgba(193, 91, 83, 0.7);
}

.game-equipment-picker,
.game-asset-inspector {
    display: grid;
    width: min(840px, 100%);
    max-height: calc(100dvh - 30px);
    overflow: auto;
    border: 1px solid var(--line-strong);
    background: #07121b;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.7);
}

.game-equipment-picker > header,
.game-asset-inspector > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
}

.game-equipment-picker > header span,
.game-asset-inspector > header span,
.game-asset-inspector-type,
.game-asset-inspector-readable > span {
    color: var(--gold-bright);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-equipment-picker > header h2,
.game-asset-inspector > header h2 {
    margin: 2px 0 0;
    font-size: 28px;
}

.game-equipment-picker > header button,
.game-asset-inspector > header button {
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.game-equipment-picker-body {
    display: grid;
    gap: 22px;
    padding: 18px;
}

.game-equipment-picker-body > section {
    display: grid;
    gap: 10px;
}

.game-equipment-picker > footer,
.game-asset-inspector > footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}

.game-asset-inspector-body {
    display: grid;
    grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr);
}

.game-asset-inspector-art {
    min-height: 330px;
    overflow: hidden;
    background: #020609;
}

.game-asset-inspector-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-asset-inspector-art .game-card-art-fallback {
    padding: 28%;
    object-fit: contain;
    opacity: 0.55;
}

.game-asset-inspector-body > main {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 24px;
}

.game-asset-inspector-body h3 {
    margin: 0;
    font-size: 34px;
}

.game-asset-inspector-body main > p,
.game-asset-inspector-readable p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.7;
    white-space: pre-line;
}

.game-asset-inspector-facts {
    display: grid;
    margin: 8px 0 0;
    border-top: 1px solid var(--line);
}

.game-asset-inspector-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.game-asset-inspector-facts dt,
.game-asset-inspector-facts dd {
    color: var(--ink-muted);
    font-size: 9px;
}

.game-asset-inspector-facts dd {
    margin: 0;
    color: var(--ink-soft);
    text-align: right;
}

.game-asset-inspector-readable {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding: 12px;
    border-left: 2px solid var(--gold);
    background: rgba(4, 10, 15, 0.48);
}

.game-ledger-assets {
    gap: 0;
    padding: 12px 0 0;
}

.game-ledger-assets > span {
    padding: 0 14px 8px;
}

.game-ledger-assets .game-asset-card {
    border-right: 0;
    border-left: 0;
}

@media (min-width: 900px) {
    .game-character-biography {
        grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
    }
}

@media (max-width: 640px) {
    .game-character-section {
        margin-inline: -14px;
        padding: 20px 14px;
        border-right: 0;
        border-left: 0;
    }

    .game-section-intro.is-split {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .game-character-commitment,
    .game-inventory-group > header {
        align-items: stretch;
        flex-direction: column;
    }

    .game-inventory-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-inventory-controls .game-search-field {
        grid-column: 1 / -1;
    }

    .game-equipment-paperdoll {
        --equipment-slot-size: min(27vw, 92px);
        gap: 6px;
    }

    .game-equipment-picker,
    .game-asset-inspector {
        width: 100%;
        max-height: 100dvh;
        border-right: 0;
        border-left: 0;
    }

    .game-asset-inspector-body {
        grid-template-columns: 1fr;
    }

    .game-asset-inspector-art {
        min-height: 250px;
        max-height: 42dvh;
    }

    .game-asset-inspector-body > main {
        padding: 18px 14px;
    }

    .game-asset-card.is-edge-to-edge {
        border-right: 0;
        border-left: 0;
    }

    .game-asset-main,
    .game-asset-card > .game-asset-main {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .game-asset-secondary-action,
    .game-asset-open {
        width: 48px;
    }

    .game-asset-secondary-action span {
        display: none;
    }

    .game-character-section-tabs {
        overflow: hidden;
    }

    .game-character-section-tabs button {
        min-width: 0;
        flex: 1 1 25%;
        padding: 12px 5px;
        text-align: center;
    }

    .game-character-section-tabs span {
        font-size: 6px;
        letter-spacing: 0.06em;
    }

    .game-character-section-tabs strong {
        font-size: 13px;
    }
}
