/* /Features/Account/AccountPanel.razor.rz.scp.css */
/* Layout-only. Backdrop + panel via .overlay-backdrop + .panel.panel--modal.
   Close button via .btn.btn--ghost.btn--compact. Brand-button colors
   (Google blue, Patreon red) stay literal — intentional brand identity. */

.account-card[b-lg4tvofg8x] {
    width: min(90vw, 340px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-5);
}

.account-avatar[b-lg4tvofg8x] {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
}

.account-name[b-lg4tvofg8x] {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.account-uid[b-lg4tvofg8x] {
    font-size: 0.75rem;
    color: var(--text-faint);
    word-break: break-all;
    text-align: center;
}

/* Sign-in buttons use brand-identity colors (Google blue, Patreon red).
   These hex literals are intentional — they're not theming, they're brand
   marks and must NOT route through design tokens. */
.account-btn[b-lg4tvofg8x] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--r-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
}

.account-btn.google[b-lg4tvofg8x]  { background: #4285f4; }
.account-btn.patreon[b-lg4tvofg8x] { background: #ff424d; }
.account-btn.logout[b-lg4tvofg8x]  { background: #3a3a48; }
/* /Features/Account/AgeGate.razor.rz.scp.css */
/* Layout only — colors/typography come from utility classes and tokens. */
.age-gate[b-c9dx0j4628] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    max-width: 24rem;
}

.age-gate__input[b-c9dx0j4628] {
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    min-height: 44px;
}

.age-gate__error[b-c9dx0j4628] {
    color: var(--text-danger);
    margin: 0;
}

.age-gate__actions[b-c9dx0j4628] {
    display: flex;
    justify-content: flex-end;
}
/* /Features/Creator/CreateScenario.razor.rz.scp.css */
.create-scenario-root[b-xuf352n6ol] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

/* Make room for the ink badge on the right of the shared page header. */
.page-header[b-xuf352n6ol] {
    grid-template-columns: auto 1fr auto;
}

.form-scroll[b-xuf352n6ol] {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-4);
    display: flex;
    justify-content: center;
}

.form-card[b-xuf352n6ol] {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-card);
}

.field[b-xuf352n6ol] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.field-label[b-xuf352n6ol] {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}

.field-label .req[b-xuf352n6ol] { color: var(--text-danger); }
.field-label .hint[b-xuf352n6ol] {
    font-weight: 400;
    color: var(--text-faint);
}

.field-input[b-xuf352n6ol] {
    width: 100%;
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-input);
    color: var(--text);
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}

.field-input[b-xuf352n6ol]::placeholder { color: var(--text-faint); }

.field-input:focus[b-xuf352n6ol] {
    outline: none;
    border-color: var(--accent);
}

.toggle-row[b-xuf352n6ol] {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-2) 0;
    cursor: pointer;
}

.toggle-row input[type="checkbox"][b-xuf352n6ol] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.toggle-title[b-xuf352n6ol] {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.toggle-sub[b-xuf352n6ol] {
    display: block;
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.4;
}

.form-error[b-xuf352n6ol] {
    margin: 0;
    padding: var(--sp-2) var(--sp-3);
    background: var(--danger-bg);
    color: var(--danger-text);
    border-radius: var(--r-sm);
    font-size: 13px;
}

.form-actions[b-xuf352n6ol] {
    display: flex;
    gap: var(--sp-2);
    justify-content: flex-end;
    margin-top: var(--sp-2);
}

.gen-label[b-xuf352n6ol] { margin-left: var(--sp-2); }

.form-hint[b-xuf352n6ol] {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-faint);
}
/* /Features/Creator/CreatorHub.razor.rz.scp.css */
.creator-root[b-09dnp9h61k] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

/* Make room for the ink badge on the right of the shared page header. */
.page-header[b-09dnp9h61k] {
    grid-template-columns: auto 1fr auto;
}

.creator-actions[b-09dnp9h61k] {
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-4) var(--sp-2);
}

.import-btn[b-09dnp9h61k] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.import-btn[b-09dnp9h61k]  input {
    display: none;
}

.import-error[b-09dnp9h61k] {
    margin: 0 var(--sp-4) var(--sp-2);
}

.creator-list[b-09dnp9h61k] {
    list-style: none;
    margin: 0;
    padding: var(--sp-2) var(--sp-4) var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.creator-card[b-09dnp9h61k] {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-card);
}

.creator-card-body[b-09dnp9h61k] {
    flex: 1;
    min-width: 0;
}

.creator-card-title[b-09dnp9h61k] {
    margin: 0 0 var(--sp-1);
    font-size: 17px;
    font-weight: 600;
    color: var(--accent);
}

.creator-card-desc[b-09dnp9h61k] {
    margin: 0 0 var(--sp-2);
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.45;
}

.creator-card-tags[b-09dnp9h61k] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    margin-bottom: var(--sp-2);
}

.tag[b-09dnp9h61k] {
    font-size: 12px;
    color: var(--tan);
    background: rgba(var(--c-line), 0.08);
    border: 1px solid var(--divider);
    border-radius: var(--r-sm);
    padding: 2px var(--sp-2);
}

.creator-card-meta[b-09dnp9h61k] {
    font-size: 12px;
    color: var(--text-faint);
}

.creator-card-actions[b-09dnp9h61k] {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
}

.delete-confirm-label[b-09dnp9h61k] {
    font-size: 13px;
    color: var(--text-danger);
}
/* /Features/Creator/Editor/EntityCardList.razor.rz.scp.css */
.entity-list[b-gtkrq8x7nc] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    max-width: 640px;
}

.entity-list-head[b-gtkrq8x7nc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}

.entity-cards[b-gtkrq8x7nc] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.entity-card[b-gtkrq8x7nc] {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.entity-card-body[b-gtkrq8x7nc] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    border: none;
    background: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

.entity-card-title[b-gtkrq8x7nc] {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entity-card-sub[b-gtkrq8x7nc] {
    font-size: 12px;
    color: var(--text-faint);
}

.entity-card-actions[b-gtkrq8x7nc] {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    flex-shrink: 0;
}

.delete-confirm-label[b-gtkrq8x7nc] {
    font-size: 13px;
    color: var(--text-danger);
}

.entity-empty[b-gtkrq8x7nc] {
    margin: 0;
    color: var(--text-faint);
    font-size: 14px;
}
/* /Features/Creator/Editor/EntityEditScaffold.razor.rz.scp.css */
.scaffold-root[b-mjwq692gtg] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
}

.scaffold-header[b-mjwq692gtg] { grid-template-columns: auto 1fr auto; }

.scaffold-actions[b-mjwq692gtg] {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.scaffold-content[b-mjwq692gtg] {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-4);
}
/* /Features/Creator/Editor/NpcEditPage.razor.rz.scp.css */
.two-col[b-d2qienygh7] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}

.cond-row[b-d2qienygh7] {
    display: grid;
    grid-template-columns: 1fr 90px auto;
    gap: var(--sp-2);
    align-items: center;
    margin-bottom: var(--sp-2);
}

.cond-days[b-d2qienygh7] { text-align: right; }

input[type="range"][b-d2qienygh7] {
    width: 100%;
    accent-color: var(--accent);
}

@media (max-width: 540px) {
    .two-col[b-d2qienygh7] { grid-template-columns: 1fr; }
}
/* /Features/Creator/Editor/PresetsSection.razor.rz.scp.css */
.choice-row[b-fb7bt9byvi] {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--sp-2);
    align-items: center;
    margin-bottom: var(--sp-2);
}
/* /Features/Creator/Editor/ScenarioEditor.razor.rz.scp.css */
.editor-root[b-kyxn4se1qw] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
}

.editor-header[b-kyxn4se1qw] { grid-template-columns: auto 1fr auto; }

.editor-header-actions[b-kyxn4se1qw] {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.editor-body[b-kyxn4se1qw] {
    flex: 1;
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 0;
}

/* Desktop left rail */
.editor-nav[b-kyxn4se1qw] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    padding: var(--sp-3);
    border-right: 1px solid var(--divider);
    overflow-y: auto;
}

.editor-nav-item[b-kyxn4se1qw] {
    text-align: left;
    padding: var(--sp-2) var(--sp-3);
    border: none;
    border-radius: var(--r-sm);
    background: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.editor-nav-item:hover[b-kyxn4se1qw] { background: var(--bg-elevated); }

.editor-nav-item.is-active[b-kyxn4se1qw] {
    background: var(--bg-elevated);
    color: var(--accent);
    font-weight: 600;
}

/* Mobile dropdown — hidden on desktop */
.editor-nav-mobile[b-kyxn4se1qw] { display: none; }

.editor-content[b-kyxn4se1qw] {
    overflow-y: auto;
    padding: var(--sp-4);
}

.warn-badge[b-kyxn4se1qw] {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-danger);
    border: 1px solid rgba(var(--c-danger), 0.5);
    border-radius: var(--r-sm);
    padding: 2px var(--sp-2);
    white-space: nowrap;
}

.warn-list[b-kyxn4se1qw] {
    list-style: none;
    margin: 0 0 var(--sp-4);
    padding: var(--sp-2) var(--sp-3);
    background: var(--danger-bg);
    border-radius: var(--r-sm);
    max-width: 640px;
}

.warn-list li[b-kyxn4se1qw] {
    font-size: 13px;
    color: var(--danger-text);
    line-height: 1.5;
}

@media (max-width: 720px) {
    .editor-body[b-kyxn4se1qw] {
        display: flex;
        flex-direction: column;
    }
    .editor-nav[b-kyxn4se1qw] { display: none; }
    .editor-nav-mobile[b-kyxn4se1qw] {
        display: flex;
        padding: var(--sp-3) var(--sp-4) 0;
    }
}
/* /Features/Creator/Editor/SkillListEditor.razor.rz.scp.css */
.skill-list[b-ginopqozx1] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    align-items: flex-start;
}

.skill-rows[b-ginopqozx1] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    width: 100%;
}

.skill-row[b-ginopqozx1] {
    display: grid;
    grid-template-columns: 1fr 90px auto;
    gap: var(--sp-2);
    align-items: center;
}

.skill-score[b-ginopqozx1] { text-align: right; }
/* /Features/Creator/Editor/StringListEditor.razor.rz.scp.css */
.string-list[b-yy3tr5pky2] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.chips[b-yy3tr5pky2] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
}

.chip[b-yy3tr5pky2] {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    font-size: 13px;
    color: var(--tan);
    background: rgba(var(--c-line), 0.08);
    border: 1px solid var(--divider);
    border-radius: var(--r-sm);
    padding: 2px var(--sp-2);
}

.chip-remove[b-yy3tr5pky2] {
    border: none;
    background: none;
    color: var(--text-faint);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.chip-remove:hover[b-yy3tr5pky2] { color: var(--text-danger); }

.add-row[b-yy3tr5pky2] {
    display: flex;
    gap: var(--sp-2);
    align-items: center;
}

.add-row .field-input[b-yy3tr5pky2] { flex: 1; }
/* /Features/Gameplay/ActionInput.razor.rz.scp.css */
/* Layout + input field styling. Buttons via .btn.btn--primary.btn--square
   (send) and .btn.btn--ghost.btn--square (undo). Credit warning uses
   --danger-bg / --danger-text tokens. */

.action-input[b-hcyp29tir6] {
    flex: 0 0 auto;
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
    border-top: 1px solid var(--border);
    background: var(--bg-group);
}

.credit-warning[b-hcyp29tir6] {
    margin: 0 0 var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    background: var(--danger-bg);
    color: var(--danger-text);
    font-size: 0.85rem;
}

/* ::deep — .action-row is the <EditForm>'s rendered <form>, a child component,
   so it doesn't carry this component's scoped-CSS attribute. */
.action-input[b-hcyp29tir6]  .action-row {
    display: flex;
    width: 100%;
    gap: var(--sp-2);
    align-items: center;
}

.action-input[b-hcyp29tir6]  .action-row input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 1rem;
}

.action-input[b-hcyp29tir6]  .action-row input:disabled { opacity: 0.6; }
/* /Features/Gameplay/AuthorNotesPanel.razor.rz.scp.css */
.author-notes-body[b-kbatm66k0n] {
    /* Preserve the line breaks and spacing the author wrote into the note. */
    white-space: pre-wrap;
}
/* /Features/Gameplay/CloudSyncButton.razor.rz.scp.css */
/* Floating cloud-sync control: top-left over the story area, below the header. */
.cloud-sync-float[b-rl9xf1ncm8] {
    position: absolute;
    left: 12px;
    top: 64px;
    z-index: 5;
}

.cloud-sync-btn[b-rl9xf1ncm8] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(var(--c-line), 0.25);
    background: var(--bg-overlay-card);
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.4s ease, transform var(--t-fast), box-shadow var(--t-fast);
}

.cloud-sync-btn.dimmed[b-rl9xf1ncm8] { opacity: 0.3; }
.cloud-sync-btn:hover[b-rl9xf1ncm8]  { opacity: 1; transform: scale(1.06); }
.cloud-sync-btn:active[b-rl9xf1ncm8] { transform: scale(0.95); }

/* Synced — premium aqua accent. */
.cloud-sync-btn.on[b-rl9xf1ncm8] {
    color: var(--premium);
    border-color: rgba(var(--c-cyan), 0.55);
}
.cloud-sync-btn.on:hover[b-rl9xf1ncm8] { box-shadow: var(--sh-glow-aqua); }

/* Not synced — dim. */
.cloud-sync-btn.off[b-rl9xf1ncm8] { color: var(--text-dim); }

.cloud-spinner[b-rl9xf1ncm8] {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(var(--c-cyan), 0.3);
    border-top-color: var(--premium);
    border-radius: 50%;
    animation: cloud-spin-b-rl9xf1ncm8 0.8s linear infinite;
}

@keyframes cloud-spin-b-rl9xf1ncm8 { to { transform: rotate(360deg); } }

/* Inline confirm card anchored under the button. */
.cloud-confirm[b-rl9xf1ncm8] {
    position: absolute;
    left: 0;
    top: 48px;
    width: 240px;
    padding: var(--sp-3);
    border-radius: var(--r-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    z-index: var(--z-modal);
}

.cloud-confirm p[b-rl9xf1ncm8] {
    margin: 0 0 var(--sp-3);
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.35;
}

.cloud-confirm-actions[b-rl9xf1ncm8] {
    display: flex;
    justify-content: flex-end;
    gap: var(--sp-2);
}

.cloud-confirm-actions .btn[b-rl9xf1ncm8] {
    min-height: 36px;
    padding: var(--sp-1) var(--sp-3);
}
/* /Features/Gameplay/CreateEntityModal.razor.rz.scp.css */
.create-panel[b-n096f5gei6] {
    max-width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
}

.create-head[b-n096f5gei6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.create-title[b-n096f5gei6] {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.create-tabs[b-n096f5gei6] {
    display: flex;
    gap: var(--sp-2);
}

.create-tab[b-n096f5gei6] {
    flex: 1;
    padding: var(--sp-1) 0;
    border: 1px solid rgba(var(--c-line), 0.3);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--fg);
    font-size: 13px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s, border-color 0.15s;
}

.create-tab.active[b-n096f5gei6] {
    border-color: transparent;
    opacity: 1;
    color: var(--accent);
}

.create-tab:disabled[b-n096f5gei6] {
    cursor: not-allowed;
}

.create-explanation[b-n096f5gei6] {
    font-size: 12px;
    color: var(--fg-muted, rgba(var(--c-fg), 0.6));
    margin: 0;
    line-height: 1.5;
}

.create-field[b-n096f5gei6] {
    display: flex;
    flex-direction: column;
}

.create-input[b-n096f5gei6],
.create-textarea[b-n096f5gei6] {
    width: 100%;
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid rgba(var(--c-line), 0.25);
    border-radius: var(--r-sm);
    background: rgba(0, 0, 0, 0.25);
    color: var(--fg);
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
}

.create-input[b-n096f5gei6]::placeholder,
.create-textarea[b-n096f5gei6]::placeholder {
    color: rgba(var(--c-fg), 0.35);
}

.create-input:focus[b-n096f5gei6],
.create-textarea:focus[b-n096f5gei6] {
    outline: none;
    border-color: rgba(var(--c-accent), 0.5);
}

.create-error[b-n096f5gei6] {
    font-size: 12px;
    color: #e05a5a;
    margin: 0;
}

.create-actions[b-n096f5gei6] {
    display: flex;
    gap: var(--sp-2);
    justify-content: flex-end;
}
/* /Features/Gameplay/DiceRollOverlay.razor.rz.scp.css */
/* Full-screen pop-up that renders the d20 result. Z-index sits above
   drawers but is click-through (pointer-events: none) so it never blocks
   gameplay input. Success/fail state colors come from --state-* tokens. */

.dice-overlay[b-0hm4gmdruh] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: var(--z-modal);
}

.dice-card[b-0hm4gmdruh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-5);
    background: var(--bg-panel);
    border: 1px solid rgba(var(--c-gold), 0.5);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-modal);
    animation: dice-pop-b-0hm4gmdruh 0.2s ease-out;
}

.dice-check-name[b-0hm4gmdruh] {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
}

.dice-detail[b-0hm4gmdruh] {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.dice-die[b-0hm4gmdruh] {
    width: 128px;
    height: 128px;
}

.dice-die svg[b-0hm4gmdruh] {
    width: 100%;
    height: 100%;
    display: block;
}

.d20-hex[b-0hm4gmdruh] {
    fill: rgba(var(--c-gold), 0.08);
    stroke: var(--gold);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.d20-tri[b-0hm4gmdruh],
.d20-spoke[b-0hm4gmdruh] {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.4;
}

.d20-num[b-0hm4gmdruh] {
    fill: var(--gold);
    font-size: 30px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
}

.dice-die.rolling[b-0hm4gmdruh]  { animation: dice-spin-b-0hm4gmdruh 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.dice-die.revealed[b-0hm4gmdruh] { animation: dice-bump-b-0hm4gmdruh 0.26s ease; }

.dice-result[b-0hm4gmdruh] {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

/* ── success / fail state ── */
.is-success .d20-hex[b-0hm4gmdruh]   { stroke: var(--state-success); fill: rgba(var(--c-success), 0.12); }
.is-success .d20-tri[b-0hm4gmdruh],
.is-success .d20-spoke[b-0hm4gmdruh] { stroke: var(--state-success); }
.is-success .d20-num[b-0hm4gmdruh]   { fill:   var(--state-success); }
.is-success .dice-result[b-0hm4gmdruh] { color: var(--state-success); }

.is-fail .d20-hex[b-0hm4gmdruh]      { stroke: var(--state-fail);    fill: rgba(var(--c-fail), 0.12); }
.is-fail .d20-tri[b-0hm4gmdruh],
.is-fail .d20-spoke[b-0hm4gmdruh]    { stroke: var(--state-fail); }
.is-fail .d20-num[b-0hm4gmdruh]      { fill:   var(--state-fail); }
.is-fail .dice-result[b-0hm4gmdruh]  { color: var(--state-fail); }

@keyframes dice-spin-b-0hm4gmdruh {
    from { transform: rotate(1440deg); }
    to   { transform: rotate(0deg); }
}

@keyframes dice-pop-b-0hm4gmdruh {
    from { transform: scale(0.82); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes dice-bump-b-0hm4gmdruh {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
/* /Features/Gameplay/EntityImage.razor.rz.scp.css */
/* Layout-only. Spinner via shared .spinner-circle in overlays.css. */

.entity-image[b-lb2lkwjzu6] {
    margin: var(--sp-2) 0 var(--sp-2);
}

.entity-image-btn[b-lb2lkwjzu6] {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(var(--c-line), 0.12);
    border-radius: var(--r-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.entity-image-btn:hover:not(:disabled)[b-lb2lkwjzu6] { border-color: rgba(var(--c-gold), 0.5); }
.entity-image-btn:disabled[b-lb2lkwjzu6]             { cursor: default; }

.entity-img[b-lb2lkwjzu6] {
    display: block;
    width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: calc(var(--r-md) - 1px);
}

.entity-image.square .entity-img[b-lb2lkwjzu6] { height: 160px; }

/* overlay: spinner while generating, or the "add image" hint over the placeholder */
.entity-img-overlay[b-lb2lkwjzu6] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    background: rgba(0, 0, 0, 0.35);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.entity-img-overlay.add .add-icon[b-lb2lkwjzu6] { font-size: 22px; }
.entity-image-btn:hover .entity-img-overlay.add[b-lb2lkwjzu6] { background: rgba(0, 0, 0, 0.5); }
/* /Features/Gameplay/GameHeader.razor.rz.scp.css */
/* Layout-only. Chrome via .page-header; back button via .btn.btn--back;
   colors via tokens. The header packs four columns: scenario name (hidden
   on narrow viewports), back button, title bar (player icon), header
   actions (npc strip, scene icon, kebab menu). */

.game-header[b-8m4e9ae9ce] {
    flex: 0 0 auto;
    grid-template-columns: auto auto 1fr auto;
}

.scenario-name[b-8m4e9ae9ce] {
    font-size: 20px;
    text-shadow: 0 0 12px rgba(var(--c-cyan), 0.35);
}

/* Scenario name only visible on wide viewports. */
@media (max-width: 1280px) {
    .game-header .scenario-name[b-8m4e9ae9ce] { display: none; }
}

.title-bar[b-8m4e9ae9ce] {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-width: 0;
}

.header-actions[b-8m4e9ae9ce] {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: nowrap;
}

.npc-strip[b-8m4e9ae9ce] {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.icon-btn[b-8m4e9ae9ce] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(var(--c-line), 0.25);
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.icon-btn:hover[b-8m4e9ae9ce]  { transform: scale(1.06); }
.icon-btn:active[b-8m4e9ae9ce] { transform: scale(0.95); }

.icon-btn img[b-8m4e9ae9ce] {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Player / NPC / Scene icons sized 50% larger than the base 40px. */
.icon-btn.player[b-8m4e9ae9ce],
.icon-btn.npc[b-8m4e9ae9ce],
.icon-btn.npc-overflow[b-8m4e9ae9ce],
.icon-btn.scene[b-8m4e9ae9ce] {
    width: 60px;
    height: 60px;
}

.icon-btn.player[b-8m4e9ae9ce]        { border-color: rgba(var(--c-player), 0.55); }
.icon-btn.player:hover[b-8m4e9ae9ce]  { box-shadow: 0 0 8px rgba(var(--c-player), 0.4); }

.icon-btn.scene[b-8m4e9ae9ce]         { border-color: rgba(var(--c-cyan), 0.55); }
.icon-btn.scene:hover[b-8m4e9ae9ce]   { box-shadow: 0 0 8px rgba(var(--c-cyan), 0.4); }

.icon-btn.npc[b-8m4e9ae9ce]           { border-color: rgba(var(--c-npc), 0.55); }
.icon-btn.npc:hover[b-8m4e9ae9ce]     { box-shadow: 0 0 8px rgba(var(--c-npc), 0.4); }

.icon-btn.npc-overflow[b-8m4e9ae9ce] {
    color: var(--notif-npc-accent);
    font-size: 14px;
    font-weight: 600;
    background: rgba(var(--c-npc), 0.12);
}

.icon-btn.create[b-8m4e9ae9ce] { color: var(--text); }

/* Overflow menu (kebab) collapsing Quests / Notifications and future actions. */
.header-menu[b-8m4e9ae9ce] { position: relative; display: inline-flex; }

.icon-btn.menu-trigger[b-8m4e9ae9ce] {
    color: var(--accent);
    border-color: rgba(var(--c-gold), 0.55);
}

.icon-btn.menu-trigger:hover[b-8m4e9ae9ce],
.icon-btn.menu-trigger.open[b-8m4e9ae9ce] { background: rgba(var(--c-gold), 0.12); }

/* Transparent full-screen catcher so a click anywhere closes the menu. */
.menu-backdrop[b-8m4e9ae9ce] {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.menu-dropdown[b-8m4e9ae9ce] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 41;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--sp-2);
    background: var(--bg-panel);
    border: 1px solid rgba(var(--c-gold), 0.35);
    border-radius: var(--r-md);
    box-shadow: var(--sh-modal);
}

.menu-item[b-8m4e9ae9ce] {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    width: 100%;
    padding: var(--sp-3);
    background: transparent;
    border: none;
    border-radius: var(--r-md);
    color: var(--accent);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: background var(--t-fast);
}

.menu-item:hover[b-8m4e9ae9ce] { background: rgba(var(--c-gold), 0.14); }
.menu-item svg[b-8m4e9ae9ce]   { flex: 0 0 auto; }
.menu-item span[b-8m4e9ae9ce]  { white-space: nowrap; }
/* /Features/Gameplay/GamePage.razor.rz.scp.css */
.game-root[b-8myyg9vbhm] {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--game-bg-base);
    background-image: linear-gradient(var(--game-bg-tint), var(--game-bg-tint)), var(--game-bg);
    background-size: cover;
    background-position: center;
    color: var(--text);
    overflow: hidden;
}

.game-status[b-8myyg9vbhm] {
    flex: 1 1 auto;
    padding: var(--sp-6) var(--sp-4);
    text-align: center;
    color: var(--text-dim);
    font-size: 15px;
}

/* Ink balance floats over the bottom-right of the page (below the drawers). */
.ink-balance-float[b-8myyg9vbhm] {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    pointer-events: none; /* let clicks pass through the wrapper; the pill itself re-enables */
}

.ink-balance-float > *[b-8myyg9vbhm] {
    pointer-events: auto;
}

.error-banner[b-8myyg9vbhm] {
    flex: 0 0 auto;
    margin: var(--sp-2) var(--sp-4) 0;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    background: var(--danger-bg);
    color: var(--danger-text);
    font-size: 0.9rem;
    cursor: pointer;
}
/* /Features/Gameplay/ImageStudioModal.razor.rz.scp.css */
/* Layout-only. Backdrop + panel via .overlay-backdrop + .panel.panel--modal.
   Buttons via .btn.btn--primary (Regenerate) and .btn.btn--ghost (Upload).
   Spinner via .spinner-circle. Close button via .btn.btn--close. */

.studio-backdrop[b-oo4zklqlx2] {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* The studio lives inside a Drawer (position: absolute). The drawer aside is a
   non-scrolling abspos containing block (its content scrolls in .drawer-body),
   so position the studio absolute+inset:0 to fill the drawer edge-to-edge
   instead of inheriting the .panel--modal centering that shrinks it to a card. */
.studio-panel[b-oo4zklqlx2] {
    position: absolute;
    inset: 0;
    z-index: 11;
    /* .panel--modal animates a translate(-50%,-50%) via panel-modal-in (fill: both).
       Animation values override normal declarations regardless of specificity, so
       transform:none alone is ignored — cancel the animation too, or the filled
       panel gets shifted up-left by half its size. */
    animation: none;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: var(--r-xl) 0 0 var(--r-xl);
    overflow-y: auto;
    gap: var(--sp-3);
    display: flex;
    flex-direction: column;
    padding: var(--sp-4);
}

.studio-head[b-oo4zklqlx2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.studio-title[b-oo4zklqlx2] {
    text-transform: none;
    color: var(--accent);
}

.studio-preview[b-oo4zklqlx2] {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(var(--c-line), 0.1);
    display: flex;
    justify-content: center;
}

.studio-preview img[b-oo4zklqlx2] {
    display: block;
    max-width: 100%;
    max-height: 52vh;
    object-fit: contain;
}

.studio-preview-overlay[b-oo4zklqlx2] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    background: rgba(0, 0, 0, 0.55);
    color: var(--accent);
    font-size: 13px;
}

.studio-controls[b-oo4zklqlx2] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.studio-field[b-oo4zklqlx2] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.studio-label[b-oo4zklqlx2] {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.studio-field select[b-oo4zklqlx2],
.studio-field textarea[b-oo4zklqlx2] {
    background: rgba(var(--c-line), 0.07);
    border: 1px solid rgba(var(--c-line), 0.15);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 13px;
    padding: var(--sp-2) var(--sp-3);
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.studio-field select:disabled[b-oo4zklqlx2],
.studio-field textarea:disabled[b-oo4zklqlx2] { opacity: 0.5; }

.studio-style-desc[b-oo4zklqlx2] {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-faint);
    font-style: italic;
}

.studio-hint[b-oo4zklqlx2]  { font-size: 12px; color: var(--text-faint); font-style: italic; }
.studio-error[b-oo4zklqlx2] { margin: 0; font-size: 12px; color: var(--text-danger); }

.studio-actions[b-oo4zklqlx2] {
    display: flex;
    gap: var(--sp-2);
    align-items: stretch;
}

.studio-action[b-oo4zklqlx2] { flex: 1; }

.studio-upload[b-oo4zklqlx2] {
    flex: 0 0 auto;
    cursor: pointer;
}

.studio-upload.disabled[b-oo4zklqlx2] {
    opacity: 0.45;
    pointer-events: none;
}

/* hide native file input - the label is the visible control */
.studio-upload[b-oo4zklqlx2]  input[type="file"] { display: none; }
/* /Features/Gameplay/LoadingPlaceholder.razor.rz.scp.css */
/* Layout-only. Chrome via .page-header / .page-title; back button via
   .btn.btn--back / .btn.btn--ghost; spinner via .spinner-circle--lg;
   error text via --text-danger. */

.loading-root[b-sesgfdtcxc] {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    background-color: var(--bg);
    background-image: url('/images/start_page/start_background_night.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text);
    overflow: hidden;
}

.loading-body[b-sesgfdtcxc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-5);
    padding: var(--sp-6) var(--sp-4);
}

.scenario-initials[b-sesgfdtcxc] {
    width: 120px;
    height: 120px;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-group) 100%);
    border: 2px solid rgba(var(--c-tan), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}

.loading-message[b-sesgfdtcxc] {
    max-width: 340px;
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
    font-style: italic;
    opacity: 0;
    transition: opacity 0.2s ease;
    line-height: 1.5;
}

.loading-message.visible[b-sesgfdtcxc] { opacity: 1; }

.loading-error[b-sesgfdtcxc] {
    color: var(--text-danger);
    font-size: 15px;
    text-align: center;
    max-width: 340px;
}
/* /Features/Gameplay/MapModal.razor.rz.scp.css */
/* Layout-only. Backdrop + panel via .overlay-backdrop + .panel.panel--full.
   Buttons via .btn.btn--primary / .btn.btn--ghost / .btn.btn--close. Spinner via .spinner-circle. */

.map-panel[b-n6m0lu4i1d] {
    gap: var(--sp-3);
    display: flex;
    flex-direction: column;
    padding: var(--sp-4);
}

.map-head[b-n6m0lu4i1d] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-title[b-n6m0lu4i1d] {
    text-transform: none;
    color: var(--accent);
}

.map-preview[b-n6m0lu4i1d] {
    position: relative;
    flex: 1;
    border-radius: var(--r-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(var(--c-line), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.map-preview img[b-n6m0lu4i1d] {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.map-placeholder[b-n6m0lu4i1d] {
    color: var(--text-faint);
    font-style: italic;
}

.map-preview-overlay[b-n6m0lu4i1d] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    background: rgba(0, 0, 0, 0.55);
    color: var(--accent);
    font-size: 13px;
}

.map-error[b-n6m0lu4i1d] {
    margin: 0;
    font-size: 12px;
    color: var(--text-danger);
}

.map-actions[b-n6m0lu4i1d] {
    display: flex;
    gap: var(--sp-2);
    align-items: stretch;
}

.map-action[b-n6m0lu4i1d] { flex: 1; }

/* Generate/Update is wrapped in PremiumFeatureGate, whose root div is the flex child.
   Stretch the slot and let the button fill it. */
.map-action-slot[b-n6m0lu4i1d] { flex: 1; }
.map-gen-btn[b-n6m0lu4i1d] { width: 100%; }

.map-upload[b-n6m0lu4i1d] {
    flex: 0 0 auto;
    cursor: pointer;
}

.map-upload.disabled[b-n6m0lu4i1d] {
    opacity: 0.45;
    pointer-events: none;
}

/* hide native file input - the label is the visible control */
.map-upload[b-n6m0lu4i1d]  input[type="file"] { display: none; }

.map-disclaimer[b-n6m0lu4i1d] {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.4;
}
/* /Features/Gameplay/NpcDrawer.razor.rz.scp.css */
/* Layout-only. Card visuals (.info-card.info-card--npc), bar utilities
   (.bar-track / .bar-fill), and chip pills come from overlays.css. */

.npc-drawer[b-i7bfgrbhwk] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
}

.npc-meta[b-i7bfgrbhwk] {
    margin: 0 0 var(--sp-3);
    font-size: 12px;
    color: var(--text-faint);
    text-transform: capitalize;
}

/* ── relation bars ── */
.relation-bars[b-i7bfgrbhwk] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
}

.bar-row[b-i7bfgrbhwk] {
    display: grid;
    grid-template-columns: 60px 1fr 70px;
    align-items: center;
    gap: var(--sp-2);
}

.bar-label[b-i7bfgrbhwk] {
    font-size: 12px;
    color: var(--text-dim);
}

.bar-value[b-i7bfgrbhwk] {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: capitalize;
    text-align: right;
}

/* ── other fields ── */
.npc-location[b-i7bfgrbhwk] {
    margin: var(--sp-2) 0 0;
    font-size: 12px;
    color: var(--cyan);
}

.npc-state[b-i7bfgrbhwk] {
    margin: var(--sp-1) 0 0;
    font-size: 13px;
    color: var(--text);
    font-style: italic;
}

.condition-chips[b-i7bfgrbhwk],
.wear-chips[b-i7bfgrbhwk] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    margin-top: var(--sp-2);
}

.npc-desc[b-i7bfgrbhwk] {
    margin: var(--sp-3) 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
    border-top: 1px solid rgba(var(--c-line), 0.06);
    padding-top: var(--sp-2);
}

.drawer-empty[b-i7bfgrbhwk] {
    color: var(--text-faint);
    font-style: italic;
    font-size: 14px;
    text-align: center;
    padding: var(--sp-6) 0;
    margin: 0;
}
/* /Features/Gameplay/PlayerDrawer.razor.rz.scp.css */
/* Layout-only. Card visuals (.info-card.info-card--player), bar utilities,
   and chip pills come from overlays.css. */

.player-drawer[b-xpzrw0ois4] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
}

.player-meta[b-xpzrw0ois4] {
    margin: 0 0 var(--sp-1);
    font-size: 12px;
    color: var(--text-faint);
    text-transform: capitalize;
}

.player-aliases[b-xpzrw0ois4] {
    margin: 0 0 var(--sp-2);
    font-size: 12px;
    color: var(--text-faint);
    font-style: italic;
}

/* ── skills ── */
.skill-bars[b-xpzrw0ois4] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-top: var(--sp-1);
}

.skill-head[b-xpzrw0ois4] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--sp-1);
}

.skill-name[b-xpzrw0ois4] {
    font-size: 13px;
    color: var(--text);
    text-transform: capitalize;
}

.skill-level[b-xpzrw0ois4] {
    font-size: 11px;
    color: var(--notif-player-accent);
    text-transform: capitalize;
}

.skill-fill[b-xpzrw0ois4] {
    background: var(--notif-player-accent);
}

/* ── chip groups ── */
.chip-group[b-xpzrw0ois4] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    margin-top: var(--sp-2);
}

.section-empty[b-xpzrw0ois4] {
    color: var(--text-faint);
    font-style: italic;
    font-size: 13px;
    margin: var(--sp-2) 0 0;
}

.drawer-empty[b-xpzrw0ois4] {
    color: var(--text-faint);
    font-style: italic;
    font-size: 14px;
    text-align: center;
    padding: var(--sp-6) 0;
    margin: 0;
}
/* /Features/Gameplay/QuestLog.razor.rz.scp.css */
/* Layout-only. Card visuals from .info-card + .info-card--quest. */

.quest-log[b-d21no53zzt] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
}

.quest-empty[b-d21no53zzt] {
    color: var(--text-faint);
    font-style: italic;
    font-size: 14px;
    text-align: center;
    padding: var(--sp-6) 0;
    margin: 0;
}
/* /Features/Gameplay/ReadAloudButton.razor.rz.scp.css */
/* Floating read-aloud control: top-right over the story area, below the header.
   Mirrors the MAUI SoundButton placement (top-right of the narrative). */
.read-aloud-float[b-lrmn8tgaex] {
    position: absolute;
    right: 12px;
    top: 64px;
    z-index: 5;
}

.read-aloud-btn[b-lrmn8tgaex] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(var(--c-line), 0.25);
    background: var(--bg-overlay-card);
    color: var(--text-dim);
    cursor: pointer;
    opacity: 0.85;
    transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.read-aloud-btn:hover[b-lrmn8tgaex]  { opacity: 1; transform: scale(1.06); }
.read-aloud-btn:active[b-lrmn8tgaex] { transform: scale(0.95); }
.read-aloud-btn:disabled[b-lrmn8tgaex] { cursor: default; }

/* Playing — premium aqua accent, matching the cloud-sync "on" treatment. */
.read-aloud-btn.playing[b-lrmn8tgaex] {
    color: var(--premium);
    border-color: rgba(var(--c-cyan), 0.55);
    opacity: 1;
}
.read-aloud-btn.playing:hover[b-lrmn8tgaex] { box-shadow: var(--sh-glow-aqua); }

.read-aloud-spinner[b-lrmn8tgaex] {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(var(--c-cyan), 0.3);
    border-top-color: var(--premium);
    border-radius: 50%;
    animation: read-aloud-spin-b-lrmn8tgaex 0.8s linear infinite;
}

@keyframes read-aloud-spin-b-lrmn8tgaex { to { transform: rotate(360deg); } }
/* /Features/Gameplay/SceneCards.razor.rz.scp.css */
/* Layout-only. Card visuals (.info-card + variants), chip pills, and
   typography come from shared utilities in overlays.css. */

.scene-cards[b-mhoh1kyelw] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
}

.object-chips[b-mhoh1kyelw] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    margin-top: var(--sp-2);
}

.route-chips[b-mhoh1kyelw] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    margin-top: var(--sp-1);
}

.chip--route[b-mhoh1kyelw] {
    background: rgba(var(--c-gold), 0.10);
    border: 1px solid rgba(var(--c-gold), 0.3);
    color: var(--gold);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    transition: background var(--t-fast);
}

.chip--route:hover:not(:disabled)[b-mhoh1kyelw] {
    background: rgba(var(--c-gold), 0.22);
}

.chip--route:disabled[b-mhoh1kyelw] {
    opacity: 0.5;
    cursor: default;
}

.empty-note[b-mhoh1kyelw] {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-faint);
    font-style: italic;
}
/* /Features/Gameplay/StoryFeed.razor.rz.scp.css */
/* Chat-style story feed. Two bubble variants:
   - bubble-ai / bubble-system: AI/narrator on the left, elevated warm panel
   - bubble-player: player's own actions on the right, gold ink on dark inset

   Cool-blue palette removed in Phase 4. */

.story-feed[b-hkn0kv0199] {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
}

.bubble[b-hkn0kv0199] {
    max-width: 85%;
    padding: 0.6rem 0.9rem;
    border-radius: 0.9rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.bubble p[b-hkn0kv0199] { margin: 0 0 0.4rem; }
.bubble p:last-child[b-hkn0kv0199] { margin-bottom: 0; }

.bubble-ai[b-hkn0kv0199],
.bubble-system[b-hkn0kv0199] {
    align-self: flex-start;
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid rgba(var(--c-line), 0.06);
    border-bottom-left-radius: 0.2rem;
}

.bubble-system[b-hkn0kv0199] {
    font-style: italic;
    opacity: 0.92;
}

.bubble-player[b-hkn0kv0199] {
    align-self: flex-end;
    background: var(--bg-group);
    color: var(--accent);
    border: 1px solid rgba(var(--c-gold), 0.4);
    border-bottom-right-radius: 0.2rem;
}

.thinking[b-hkn0kv0199] {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.thinking .dot[b-hkn0kv0199] {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--text-faint);
    animation: bubble-blink-b-hkn0kv0199 1.4s infinite both;
}

.thinking .dot:nth-child(2)[b-hkn0kv0199] { animation-delay: 0.2s; }
.thinking .dot:nth-child(3)[b-hkn0kv0199] { animation-delay: 0.4s; }

@keyframes bubble-blink-b-hkn0kv0199 {
    0%, 80%, 100% { opacity: 0.3; }
    40%           { opacity: 1; }
}
/* /Features/Gameplay/SuggestionStrip.razor.rz.scp.css */
/* Inline row of quick-action chips below the story feed. Cool-blue palette
   removed in Phase 4 — chips now use the gold ghost-button look. */

.suggestion-strip[b-cckun599d1] {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4) 0;
}

.chip[b-cckun599d1] {
    padding: var(--sp-2) var(--sp-3);
    border-radius: 1rem;
    border: 1px solid rgba(var(--c-gold), 0.45);
    background: rgba(var(--c-gold), 0.10);
    color: var(--accent);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background var(--t-fast);
}

.chip:hover[b-cckun599d1] {
    background: rgba(var(--c-gold), 0.22);
}
/* /Features/LoadGame/LoadGameList.razor.rz.scp.css */
/* Layout-only. Chrome via .page-header / .page-title / .status; buttons via
   .btn variants; colors via tokens. */

.load-game-root[b-a68bm3xk36] {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    background-color: var(--bg);
    background-image: url('/images/start_page/start_background_night.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text);
    overflow: hidden;
}

.status p[b-a68bm3xk36] { margin: 0; }
.status[b-a68bm3xk36] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
}

.save-list[b-a68bm3xk36] {
    list-style: none;
    margin: 0;
    padding: var(--sp-4);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    align-content: start;
}

.save-card[b-a68bm3xk36] {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    background: var(--bg-overlay-card);
    border: 1px solid rgba(var(--c-tan), 0.3);
    border-radius: var(--r-lg);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.save-card:hover[b-a68bm3xk36] {
    border-color: rgba(var(--c-cyan), 0.45);
    box-shadow: 0 2px 14px rgba(var(--c-cyan), 0.15);
}

.save-avatar[b-a68bm3xk36] {
    width: 56px;
    height: 56px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-group) 100%);
    border: 1px solid rgba(var(--c-tan), 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.save-body[b-a68bm3xk36] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.save-title[b-a68bm3xk36] {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.cloud-badge[b-a68bm3xk36] {
    display: inline-flex;
    align-items: center;
    color: rgb(var(--c-cyan));
    flex-shrink: 0;
}

.save-meta[b-a68bm3xk36] {
    font-size: 12px;
    color: var(--text-faint);
}

.meta-sep[b-a68bm3xk36] {
    margin: 0 5px;
    opacity: 0.5;
}

.save-actions[b-a68bm3xk36] {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
}

.delete-confirm-label[b-a68bm3xk36] {
    font-size: 12px;
    color: var(--text-danger);
}

@media (max-width: 480px) {
    .save-card[b-a68bm3xk36] {
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
    }
    .save-avatar[b-a68bm3xk36] { width: 48px; height: 48px; font-size: 17px; }
    .save-actions[b-a68bm3xk36] {
        grid-column: 1 / span 2;
        justify-content: flex-end;
    }
}
/* /Features/NewGame/NewGameSetup.razor.rz.scp.css */
/* Layout-only. Chrome via .page-header / .page-title / .status; buttons via
   .btn variants; colors via tokens. Form inputs stay inline (no shared input
   utility yet) but all values come from tokens. */

.setup-root[b-t2tw0e24nm] {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    background-color: var(--bg);
    background-image: url('/images/start_page/start_background_night.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text);
    overflow: hidden;
}

.hero[b-t2tw0e24nm] {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: var(--sp-4);
    padding: var(--sp-4);
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(var(--c-tan), 0.2);
}

.hero-image[b-t2tw0e24nm] {
    width: 128px;
    height: 128px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid rgba(var(--c-tan), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.hero-image img[b-t2tw0e24nm] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-fallback[b-t2tw0e24nm] {
    font-size: 36px;
    font-weight: 600;
    color: var(--tan);
    letter-spacing: 1px;
}

.hero-body[b-t2tw0e24nm] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    justify-content: center;
}

.hero-body h2[b-t2tw0e24nm] {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
}

.hero-desc[b-t2tw0e24nm] {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.setup-scroll[b-t2tw0e24nm] {
    overflow-y: auto;
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.field[b-t2tw0e24nm] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.field.horizontal[b-t2tw0e24nm] {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-2) var(--sp-3);
    background: var(--bg-overlay-card);
    border: 1px solid rgba(var(--c-tan), 0.25);
    border-radius: var(--r-md);
}

.field-label[b-t2tw0e24nm] {
    font-size: 13px;
    font-weight: 600;
    color: var(--tan);
    letter-spacing: 0.3px;
}

.field input[type="text"][b-t2tw0e24nm],
.field input[type="number"][b-t2tw0e24nm],
.field textarea[b-t2tw0e24nm],
.field select[b-t2tw0e24nm],
[b-t2tw0e24nm] .variables-editor input[type="text"],
[b-t2tw0e24nm] .variables-editor textarea,
[b-t2tw0e24nm] .variables-editor select {
    background: rgba(10, 8, 5, 0.7);
    border: 1px solid rgba(var(--c-tan), 0.4);
    border-radius: var(--r-md);
    padding: var(--sp-2) var(--sp-3);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.field textarea[b-t2tw0e24nm],
[b-t2tw0e24nm] .variables-editor textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.4;
}

.field input:focus-visible[b-t2tw0e24nm],
.field textarea:focus-visible[b-t2tw0e24nm],
.field select:focus-visible[b-t2tw0e24nm],
[b-t2tw0e24nm] .variables-editor input:focus-visible,
[b-t2tw0e24nm] .variables-editor textarea:focus-visible,
[b-t2tw0e24nm] .variables-editor select:focus-visible {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(var(--c-cyan), 0.4);
}

.field input[type="checkbox"][b-t2tw0e24nm] {
    width: 20px;
    height: 20px;
    accent-color: var(--cyan);
    cursor: pointer;
}

[b-t2tw0e24nm] .variables-editor {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

[b-t2tw0e24nm] .variables-editor .field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

[b-t2tw0e24nm] .variables-editor .field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tan);
    letter-spacing: 0.3px;
}

.sticky-actions[b-t2tw0e24nm] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 100%);
    border-top: 1px solid rgba(var(--c-cyan), 0.25);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 540px) {
    .hero[b-t2tw0e24nm] {
        grid-template-columns: 96px 1fr;
    }
    .hero-image[b-t2tw0e24nm] { width: 96px; height: 96px; }
    .hero-fallback[b-t2tw0e24nm] { font-size: 28px; }
    .hero-body h2[b-t2tw0e24nm] { font-size: 17px; }
}
/* /Features/NewGame/ScenarioList.razor.rz.scp.css */
/* Layout-only. Chrome via .page-header / .page-title / .status; back button
   via .btn.btn--back; colors via tokens. */

.new-game-root[b-s9t7w4zpdq] {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    background-color: var(--bg);
    background-image: url('/images/start_page/start_background_night.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text);
    overflow: hidden;
}

/* Page-header default is "auto 1fr"; this page also packs a search input. */
.new-game-root > .page-header[b-s9t7w4zpdq] {
    grid-template-columns: auto 1fr auto;
}

.search-input[b-s9t7w4zpdq] {
    background: rgba(10, 8, 5, 0.7);
    border: 1px solid rgba(var(--c-tan), 0.4);
    border-radius: var(--r-md);
    padding: var(--sp-2) var(--sp-3);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    min-width: 200px;
    max-width: 320px;
    width: 100%;
    justify-self: end;
}

.search-input:focus-visible[b-s9t7w4zpdq] {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(var(--c-cyan), 0.4);
}

.scenario-list[b-s9t7w4zpdq] {
    list-style: none;
    margin: 0;
    padding: var(--sp-4);
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-3);
    align-content: start;
}

.scenario-card[b-s9t7w4zpdq] {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: var(--sp-3);
    padding: var(--sp-3);
    background: var(--bg-overlay-card);
    border: 1px solid rgba(var(--c-tan), 0.3);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.scenario-card:hover[b-s9t7w4zpdq] {
    transform: translateY(-2px);
    border-color: rgba(var(--c-cyan), 0.6);
    box-shadow: 0 4px 18px rgba(var(--c-cyan), 0.25);
}

.scenario-image[b-s9t7w4zpdq] {
    width: 96px;
    height: 96px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid rgba(var(--c-tan), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scenario-image img[b-s9t7w4zpdq] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scenario-image-fallback[b-s9t7w4zpdq] {
    font-size: 28px;
    font-weight: 600;
    color: var(--tan);
    letter-spacing: 1px;
}

.scenario-body[b-s9t7w4zpdq] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.scenario-title-row[b-s9t7w4zpdq] {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.scenario-title-row h2[b-s9t7w4zpdq] {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.badge[b-s9t7w4zpdq] {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--r-sm);
    letter-spacing: 0.5px;
}

.badge.new[b-s9t7w4zpdq] {
    background: rgba(var(--c-cyan), 0.18);
    color: var(--cyan);
    border: 1px solid rgba(var(--c-cyan), 0.5);
}

.badge.adult[b-s9t7w4zpdq] {
    background: rgba(var(--c-danger), 0.18);
    color: var(--text-danger);
    border: 1px solid rgba(var(--c-danger), 0.5);
}

.badge.mine[b-s9t7w4zpdq] {
    background: rgba(var(--c-gold), 0.18);
    color: var(--gold);
    border: 1px solid rgba(var(--c-gold), 0.5);
}

.scenario-desc[b-s9t7w4zpdq] {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scenario-tags[b-s9t7w4zpdq] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    margin-top: 2px;
}

.tag[b-s9t7w4zpdq] {
    font-size: 11px;
    color: var(--tan);
    background: rgba(var(--c-tan), 0.1);
    border: 1px solid rgba(var(--c-tan), 0.25);
    border-radius: var(--r-sm);
    padding: 1px 6px;
}

@media (max-width: 540px) {
    .new-game-root > .page-header[b-s9t7w4zpdq] {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        row-gap: var(--sp-2);
    }
    .search-input[b-s9t7w4zpdq] {
        grid-column: 1 / span 2;
        max-width: none;
        justify-self: stretch;
    }
    .scenario-list[b-s9t7w4zpdq] {
        grid-template-columns: 1fr;
        padding: var(--sp-3);
    }
    .scenario-image[b-s9t7w4zpdq] { width: 80px; height: 80px; }
    .scenario-card[b-s9t7w4zpdq] { grid-template-columns: 80px 1fr; }
}
/* /Features/Novelizer/EpisodeList.razor.rz.scp.css */
.episode-list[b-o3254fcync] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.episode-card[b-o3254fcync] {
    border: 1px solid var(--color-border, #d8d0c0);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-1, #fff);
}

.episode-header[b-o3254fcync] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.episode-header:hover[b-o3254fcync] { background: var(--surface-2, #f5f0e8); }

.episode-card.expanded .episode-header[b-o3254fcync] { background: var(--surface-2, #f5f0e8); }

.episode-title-row[b-o3254fcync] {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.episode-number[b-o3254fcync] {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.episode-title[b-o3254fcync] {
    font-weight: 600;
    font-size: 0.95rem;
}

.episode-meta-row[b-o3254fcync] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.chip[b-o3254fcync] {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--surface-3, #ece5d8);
    color: var(--text-muted, #666);
    white-space: nowrap;
}

.chip--mood[b-o3254fcync] { text-transform: capitalize; }
.chip--peaceful[b-o3254fcync]  { background: #d4edda; color: #155724; }
.chip--tense[b-o3254fcync]     { background: #fff3cd; color: #856404; }
.chip--combat[b-o3254fcync]    { background: #f8d7da; color: #721c24; }
.chip--festive[b-o3254fcync]   { background: #d1ecf1; color: #0c5460; }
.chip--intimate[b-o3254fcync]  { background: #f3d4e8; color: #6d1b52; }

.episode-scrap[b-o3254fcync] {
    margin-left: auto;
    padding: 0.1rem 0.45rem;
    font-size: 0.8rem;
    border: 1px solid var(--text-danger, #c0392b);
    color: var(--text-danger, #c0392b);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.episode-scrap:hover[b-o3254fcync] { opacity: 1; }
/* /Features/Novelizer/EpisodeReader.razor.rz.scp.css */
.episode-reader[b-hu5e0qwaf8] {
    padding: 1rem 0.5rem 1.25rem;
    border-top: 1px solid var(--color-border, #e0d8c8);
}

.episode-cast[b-hu5e0qwaf8] {
    font-size: 0.8rem;
    color: var(--color-muted, #888);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.episode-prose p[b-hu5e0qwaf8] {
    margin: 0 0 0.85rem;
    line-height: 1.75;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.97rem;
    max-width: 65ch;
}
/* /Features/Novelizer/GeneratePanel.razor.rz.scp.css */
.generate-panel[b-28qkqf2217] {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.novelizer-stats[b-28qkqf2217] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.stat-chip[b-28qkqf2217] {
    background: var(--surface-2, #f5f0e8);
    color: var(--text-muted, #666);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.studio-controls[b-28qkqf2217] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.studio-field[b-28qkqf2217] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.studio-label[b-28qkqf2217] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted, #777);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.studio-field select[b-28qkqf2217] {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--color-border, #d0c8b8);
    border-radius: 6px;
    background: var(--surface-1, #fff);
    font-size: 0.9rem;
}

.studio-field select:disabled[b-28qkqf2217] { opacity: 0.5; }

.studio-style-desc[b-28qkqf2217] {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-faint, #999);
    font-style: italic;
}

.studio-hint[b-28qkqf2217] {
    font-size: 0.78rem;
    color: var(--text-faint, #999);
    font-style: italic;
}

.studio-error[b-28qkqf2217] {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-danger, #c0392b);
}

.generate-actions[b-28qkqf2217] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.generate-btn[b-28qkqf2217] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* /Features/Novelizer/NovelizerPage.razor.rz.scp.css */
.novelizer-panel[b-p7vri3yziy] {
    display: flex;
    flex-direction: column;
}

.novelizer-body[b-p7vri3yziy] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.novelizer-download-bar[b-p7vri3yziy] {
    display: flex;
    justify-content: flex-end;
}

.novelizer-empty[b-p7vri3yziy] {
    text-align: center;
    color: var(--color-muted, #888);
    padding: 2rem 1rem;
    font-style: italic;
}

.novelizer-generating-placeholder[b-p7vri3yziy] {
    display: flex;
    justify-content: center;
    padding: 2rem;
}
/* /Features/Settings/SettingsPage.razor.rz.scp.css */
/* Layout-only. Page chrome comes from .page-header / .page-title in app.css;
   back button from .btn.btn--back. Card visuals stay local because they're
   selectable controls, not generic info-cards. */

.settings-root[b-kxaqsb0xai] {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 var(--sp-4) 48px;
    height: 100%;
    overflow-y: auto;
}

.settings-root .page-header[b-kxaqsb0xai] {
    margin: 0 calc(var(--sp-4) * -1) var(--sp-4);
}

.settings-card[b-kxaqsb0xai] {
    background: var(--bg-panel);
    border: 1px solid rgba(var(--c-gold), 0.22);
    border-radius: var(--r-xl);
    padding: var(--sp-4);
    margin-bottom: 14px;
}

.settings-card h2[b-kxaqsb0xai] {
    font-size: 15px;
    margin: 0 0 4px;
    color: var(--gold);
}

.card-sub[b-kxaqsb0xai] {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-faint);
}

.ink-row[b-kxaqsb0xai] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.ink-row-balance[b-kxaqsb0xai] {
    color: var(--tan);
    font-weight: 700;
}

.ink-row-status[b-kxaqsb0xai] {
    margin-left: auto;
    color: var(--text-dim);
}

.ink-row-status.premium[b-kxaqsb0xai] {
    color: var(--premium);
}

.ink-row-chevron[b-kxaqsb0xai] {
    color: var(--text-faint);
    font-size: 18px;
}

.card-hint[b-kxaqsb0xai] {
    font-size: 13px;
    color: var(--text-faint);
    font-style: italic;
}

/* ---- preset rows ---- */
.preset-row[b-kxaqsb0xai] {
    display: block;
    width: 100%;
    text-align: left;
    background: rgba(var(--c-line), 0.05);
    border: 1px solid rgba(var(--c-line), 0.12);
    border-radius: var(--r-md);
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    color: var(--text);
}

.preset-row:hover[b-kxaqsb0xai] { background: rgba(var(--c-line), 0.09); }

.preset-row.selected[b-kxaqsb0xai] {
    border-color: rgba(var(--c-gold), 0.6);
    background: rgba(var(--c-gold), 0.12);
}

.preset-main[b-kxaqsb0xai] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.preset-name[b-kxaqsb0xai] {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preset-desc[b-kxaqsb0xai] {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-dim);
}

.badge.premium[b-kxaqsb0xai] {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: var(--r-sm);
    background: rgba(var(--c-gold), 0.2);
    border: 1px solid rgba(var(--c-gold), 0.5);
    color: var(--gold);
}

.cost-meter[b-kxaqsb0xai] {
    display: inline-flex;
    gap: 3px;
    flex: 0 0 auto;
}

.pip[b-kxaqsb0xai] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(var(--c-line), 0.18);
}

.pip.on[b-kxaqsb0xai] { background: var(--tan); }

/* ---- safety switch ---- */
.switch-row[b-kxaqsb0xai] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text);
}

.switch[b-kxaqsb0xai] { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input[b-kxaqsb0xai] { opacity: 0; width: 0; height: 0; }

.slider[b-kxaqsb0xai] {
    position: absolute;
    inset: 0;
    background: rgba(var(--c-line), 0.18);
    border-radius: 26px;
    transition: background var(--t-fast);
}

.slider[b-kxaqsb0xai]::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: var(--text);
    border-radius: 50%;
    transition: transform var(--t-fast);
}

.switch input:checked + .slider[b-kxaqsb0xai] { background: rgba(var(--c-gold), 0.55); }
.switch input:checked + .slider[b-kxaqsb0xai]::before { transform: translateX(20px); }

/* ---- theme segmented control ---- */
.segmented[b-kxaqsb0xai] {
    display: inline-flex;
    border: 1px solid rgba(var(--c-line), 0.18);
    border-radius: var(--r-md);
    overflow: hidden;
}

.seg[b-kxaqsb0xai] {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 8px 22px;
    font-size: 13px;
    cursor: pointer;
}

.seg.on[b-kxaqsb0xai] {
    background: rgba(var(--c-gold), 0.18);
    color: var(--gold);
}

/* ---- banners ---- */
.settings-banner[b-kxaqsb0xai] {
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-banner.warn[b-kxaqsb0xai] {
    background: rgba(var(--c-danger), 0.18);
    border: 1px solid rgba(var(--c-danger), 0.4);
    color: var(--text-danger);
}

.link-btn[b-kxaqsb0xai] {
    background: none;
    border: none;
    color: var(--cyan);
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.legal-link[b-kxaqsb0xai] {
    display: block;
    color: var(--cyan);
    text-decoration: underline;
    font-size: 14px;
    padding: 6px 0;
}

.voice-select[b-kxaqsb0xai] {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
}
/* /Features/StartMenu/GameStart.razor.rz.scp.css */
/* ===== Beta ribbon ===== */
.beta-ribbon[b-qpqer92u07] {
    position: fixed;
    top: 0;
    left: 0;
    width: 110px;
    height: 110px;
    overflow: hidden;
    pointer-events: none;
    z-index: var(--z-ribbon);
}

.beta-ribbon[b-qpqer92u07]::before {
    content: 'Beta';
    position: absolute;
    top: 34px;
    left: -30px;
    width: 140px;
    padding: 7px 0;
    background: linear-gradient(to bottom, var(--beta-from), var(--beta-to));
    color: var(--beta-text);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* ===== Start page root ===== */
.start-root[b-qpqer92u07] {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: grid;
    grid-template-rows: auto 1fr auto 70px;
    padding: 10px;
    box-sizing: border-box;
}

.start-root.day[b-qpqer92u07] {
    background-image: url('/images/start_page/start_background_day.jpg');
}

.start-root.night[b-qpqer92u07] {
    background-image: url('/images/start_page/start_background_night.jpg');
}

/* ===== Banner ===== */
.banner[b-qpqer92u07] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 12px;
}

.banner img[b-qpqer92u07] {
    max-width: min(467px, 80vw);
    width: 100%;
    height: auto;
    animation: bannerFloat-b-qpqer92u07 2.5s ease-in-out infinite alternate,
               bannerGlow-b-qpqer92u07 3s ease-in-out infinite alternate;
    will-change: transform, filter;
}

@keyframes bannerFloat-b-qpqer92u07 {
    0%   { transform: translate(-8px, -4px); }
    100% { transform: translate(8px, 4px); }
}

@keyframes bannerGlow-b-qpqer92u07 {
    0%   { filter: drop-shadow(0 0 24px rgba(var(--c-cyan), 0.4)); }
    100% { filter: drop-shadow(0 0 48px rgba(var(--c-cyan), 0.9)); }
}

/* ===== Main menu buttons =====
   Image-based CTAs. These are EonScribe's main-menu buttons, so the aqua
   drop-shadow glow is intentional (see web-design.md §4.1 .btn--main scope). */
.main-buttons[b-qpqer92u07] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px;
    min-height: 0;
    overflow: hidden;
}

.menu-btn[b-qpqer92u07] {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: transform var(--t-fast), filter var(--t-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
}

.menu-btn img[b-qpqer92u07] {
    max-width: 260px;
    width: auto;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(var(--c-cyan), 0.7));
}

.menu-btn:hover[b-qpqer92u07] { transform: scale(1.03); }
.menu-btn:hover img[b-qpqer92u07] { filter: drop-shadow(0 0 10px rgba(var(--c-cyan), 0.95)); }
.menu-btn:active[b-qpqer92u07] { transform: scale(0.97); }
.menu-btn:focus[b-qpqer92u07] { outline: none; }
.menu-btn:focus-visible img[b-qpqer92u07] { filter: drop-shadow(0 0 12px rgba(var(--c-cyan), 1)); }
.menu-btn:disabled[b-qpqer92u07] { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.menu-btn:disabled img[b-qpqer92u07] { filter: none; }

/* ===== Store badge ===== */
.store-badge[b-qpqer92u07] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
}

.store-badge a[b-qpqer92u07] {
    display: inline-flex;
    transition: transform var(--t-fast), filter var(--t-fast);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.store-badge img[b-qpqer92u07] {
    height: 46px;
    width: auto;
    display: block;
}

.store-badge a:hover[b-qpqer92u07] { transform: scale(1.05); }
.store-badge a:active[b-qpqer92u07] { transform: scale(0.97); }
.store-badge a:focus[b-qpqer92u07] { outline: none; }
.store-badge a:focus-visible[b-qpqer92u07] { filter: drop-shadow(0 0 8px rgba(var(--c-cyan), 0.9)); }

/* ===== Bottom bar ===== */
.bottom-bar[b-qpqer92u07] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    align-items: end;
    padding: 0 10px;
    gap: 8px;
}

.icon-btn[b-qpqer92u07] {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: end;
    transition: transform var(--t-fast);
}

.icon-btn:focus[b-qpqer92u07] { outline: none; }
.icon-btn:hover[b-qpqer92u07] { transform: scale(1.08); }
.icon-btn:active[b-qpqer92u07] { transform: scale(0.95); }

.icon-btn img[b-qpqer92u07] {
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.85));
}

.icon-btn.settings[b-qpqer92u07] { justify-self: start; }
.icon-btn.settings img[b-qpqer92u07] { width: 48px; height: 48px; }

.icon-btn.music[b-qpqer92u07] { justify-self: start; }
.icon-btn.music img[b-qpqer92u07] { max-width: 70px; height: 48px; width: auto; }

.icon-btn.account[b-qpqer92u07] { justify-self: center; }
.icon-btn.account img[b-qpqer92u07] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.icon-btn.discord[b-qpqer92u07] { justify-self: end; }
.icon-btn.discord img[b-qpqer92u07] {
    max-width: 48px;
    max-height: 48px;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.version[b-qpqer92u07] {
    color: var(--tan);
    font-family: var(--font-body);
    font-size: 14px;
    text-align: center;
    justify-self: center;
    align-self: end;
    padding: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ===== Landscape layout ===== */
@media (orientation: landscape) {
    .start-root[b-qpqer92u07] {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto 70px;
    }
    .banner[b-qpqer92u07] {
        grid-column: 1;
        grid-row: 1;
        align-items: center;
    }
    .main-buttons[b-qpqer92u07] {
        grid-column: 2;
        grid-row: 1;
    }
    .store-badge[b-qpqer92u07] {
        grid-column: 1 / span 2;
        grid-row: 2;
    }
    .bottom-bar[b-qpqer92u07] {
        grid-column: 1 / span 2;
        grid-row: 3;
    }
    .menu-btn img[b-qpqer92u07] { max-width: 240px; }
}
/* /Shared/Drawer.razor.rz.scp.css */
/* Layout/position overrides only. Visuals come from .overlay-backdrop,
   .panel.panel--drawer, .h-group, .btn.btn--close. The drawer is scoped to
   its positioned parent (not the viewport), so we override position+height
   from fixed/100vh to absolute. */

.scoped-backdrop[b-sagrzruebi] {
    position: absolute;
    z-index: var(--z-drawer);
}

.scoped-drawer[b-sagrzruebi] {
    position: absolute;
    height: 100%;
    z-index: calc(var(--z-drawer) + 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;   /* aside never scrolls → stable abspos containing block for the studio modal */
    padding: 0;         /* drawer-head + content own their padding; lets the modal sit edge-to-edge */
}

.drawer-body[b-sagrzruebi] {
    flex: 1 1 auto;
    min-height: 0;      /* allow the flex child to shrink so overflow-y actually scrolls */
    overflow-y: auto;
}

.drawer-head[b-sagrzruebi] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid rgba(var(--c-line), 0.08);
}
/* /Shared/GenerationBanner.razor.rz.scp.css */
.gen-banner[b-1wrgwyxzye] {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4);
    margin-bottom: var(--sp-4);
    background: var(--bg-elevated);
    border: 1px solid rgba(var(--c-gold), 0.25);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-card);
}

.gen-banner-text[b-1wrgwyxzye] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    min-width: 0;
}

.gen-banner-stage[b-1wrgwyxzye] {
    color: var(--accent);
}

.gen-banner-warn[b-1wrgwyxzye] {
    color: var(--text-dim);
}
/* /Shared/InkBalance.razor.rz.scp.css */
/* Small badge showing current ink balance. */

.ink-badge[b-n78jy09c16] {
    margin-left: auto;
    padding: var(--sp-1) var(--sp-3);
    border: none;
    border-radius: 1rem;
    background: var(--bg-elevated);
    color: var(--tan);
    font-family: inherit;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
}

.ink-badge.premium[b-n78jy09c16] {
    color: var(--premium);
}
/* /Shared/InkModal.razor.rz.scp.css */
/* Inkwell modal: balance + account + premium info. Layout only — colors/fonts come from utilities/tokens. */

.ink-modal[b-p9movdlw6d] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    max-height: 70vh;
    overflow-y: auto;
}

.ink-balance-block[b-p9movdlw6d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    text-align: center;
}

.ink-amount[b-p9movdlw6d] {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    color: var(--accent);
}

.ink-drop[b-p9movdlw6d] {
    font-size: 1.6rem;
}

.ink-account[b-p9movdlw6d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    color: var(--text-dim);
}

/* Provider glyph badge — inline next to the signed-in name.
   Brand colors (#4285f4 Google, #ff424d Patreon) live inline in the SVG fill and are
   intentional brand marks, not theme tokens — do not route through tokens.css. */
.ink-provider[b-p9movdlw6d] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    margin-left: var(--sp-1);
    vertical-align: -0.18em;
}

.ink-provider svg[b-p9movdlw6d] {
    width: 100%;
    height: 100%;
}

.ink-uid[b-p9movdlw6d] {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: var(--sp-1) var(--sp-2);
    color: var(--text-dim);
    cursor: pointer;
}

.ink-sub-status[b-p9movdlw6d] {
    color: var(--text-dim);
}

.ink-sub-status.premium[b-p9movdlw6d] {
    color: var(--premium);
}

.ink-section[b-p9movdlw6d] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.ink-list[b-p9movdlw6d] {
    margin: 0;
    padding-left: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.ink-link[b-p9movdlw6d] {
    color: var(--accent);
    text-decoration: underline;
    align-self: flex-start;
}

.ink-manage-note[b-p9movdlw6d] {
    color: var(--text-faint);
}

.ink-explainer[b-p9movdlw6d] {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-3);
}

.ink-explainer > summary[b-p9movdlw6d] {
    cursor: pointer;
    color: var(--accent);
}

.ink-explainer-body[b-p9movdlw6d] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding-top: var(--sp-2);
    color: var(--text-dim);
}
/* /Shared/ModalShell.razor.rz.scp.css */
/* Layout-only. Visuals come from .overlay-backdrop, .panel.panel--modal,
   .h-group, and .btn.btn--close (see wwwroot/css/). */

.modal-shell[b-0jh9l4n8pb] {
    /* Override base modal max-width for this shell preset */
    max-width: min(440px, 92vw);
    gap: var(--sp-3);
    display: flex;
    flex-direction: column;
}

.modal-head[b-0jh9l4n8pb] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}

.modal-title[b-0jh9l4n8pb] {
    /* color/typography from .h-group; only normalize the case for headings */
    text-transform: none;
    color: var(--accent);
}
/* /Shared/NotificationBookmarks.razor.rz.scp.css */
/* Layout + animation. Colors via tokens. */

.notif-stack[b-0iiq8ogjke] {
    position: absolute;
    top: 84px;            /* clear the header */
    right: 0;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--sp-2);
    max-width: min(320px, 80vw);
    pointer-events: none; /* container is click-through; the tabs re-enable */
}

.notif-bookmark[b-0iiq8ogjke] {
    pointer-events: auto;
    display: flex;
    align-items: center;
    max-width: 100%;
    padding: var(--sp-2) var(--sp-3);
    background: var(--bg-panel);
    border: 1px solid rgba(var(--c-gold), 0.4);
    border-right: none;
    border-radius: var(--r-md) 0 0 var(--r-md);
    box-shadow: -3px 2px 12px rgba(0, 0, 0, 0.5);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: transform var(--t-fast), background var(--t-fast);
    /* slide in once, then fade toward transparent over its lifetime */
    animation: notif-in-b-0iiq8ogjke 0.2s ease-out, notif-fade-b-0iiq8ogjke 60s linear forwards;
}

.notif-bookmark:hover[b-0iiq8ogjke] {
    transform: translateX(-6px);
    background: var(--bg-elevated);
}

.notif-bookmark-icon[b-0iiq8ogjke] {
    font-size: 18px;
    line-height: 1;
    padding-left: var(--sp-2);
    border-left: 3px solid var(--notif-cat, var(--notif-default-accent));
}

.notif-bookmark.notif-player[b-0iiq8ogjke]  { --notif-cat: var(--notif-player-accent); }
.notif-bookmark.notif-npc[b-0iiq8ogjke]     { --notif-cat: var(--notif-npc-accent); }
.notif-bookmark.notif-quest[b-0iiq8ogjke]   { --notif-cat: var(--notif-quest-accent); }
.notif-bookmark.notif-scene[b-0iiq8ogjke]   { --notif-cat: var(--notif-scene-accent); }
.notif-bookmark.notif-default[b-0iiq8ogjke] { --notif-cat: var(--notif-default-accent); }

@keyframes notif-in-b-0iiq8ogjke {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes notif-fade-b-0iiq8ogjke {
    0%   { opacity: 1; }
    85%  { opacity: 0.85; }
    100% { opacity: 0.05; }
}
/* /Shared/NotificationHistoryModal.razor.rz.scp.css */
/* Layout-only. Buttons via .btn.btn--ghost, colors via tokens. */

.notif-list[b-sgkne37jcv] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.notif-row[b-sgkne37jcv] {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    padding: var(--sp-3);
    background: rgba(var(--c-line), 0.04);
    border: 1px solid rgba(var(--c-line), 0.12);
    border-radius: var(--r-md);
    align-items: flex-start;
}

.notif-row-title[b-sgkne37jcv] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.notif-row-icon[b-sgkne37jcv] {
    margin-right: var(--sp-2);
}

.notif-row-details[b-sgkne37jcv] {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-dim);
    white-space: pre-wrap;
}

.notif-empty[b-sgkne37jcv] {
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--text-faint);
    padding: var(--sp-2) 0;
}
/* /Shared/NotificationOverlay.razor.rz.scp.css */
/* Layout-only. Text rendering via .t-body, button via .btn.btn--ghost. */

.notif-body[b-hbrdm2s3lz] {
    white-space: pre-wrap;
}

.notif-actions[b-hbrdm2s3lz] {
    display: flex;
    justify-content: flex-end;
}
/* /Shared/PremiumFeatureGate.razor.rz.scp.css */
.premium-feature-gate[b-pkbl56or6e] {
    position: relative;
}

.gate-content[b-pkbl56or6e] {
    transition: opacity 0.2s ease;
    width: 100%;
    height: 100%;
}

.gate-overlay[b-pkbl56or6e] {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.gate-icon[b-pkbl56or6e] {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
/* /Shared/PremiumTrialBanner.razor.rz.scp.css */
.premium-warn[b-b0s5tg16a3] {
    margin: 0;
    padding: var(--sp-2) var(--sp-3);
    background: var(--danger-bg);
    color: var(--danger-text);
    border-radius: var(--r-sm);
    font-size: 13px;
    line-height: 1.4;
}

.premium-warn strong[b-b0s5tg16a3] {
    font-weight: 700;
}
/* /Shared/QuillBusy.razor.rz.scp.css */
/* Layout only — sizing + centering. Visuals come from .spinner-circle (fallback) and the Lottie SVG. */

.quill-busy[b-4b8nkj080q] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 0;
}

.quill-busy--sm[b-4b8nkj080q] {
    width: 1.5rem;
    height: 1.5rem;
}

.quill-busy--lg[b-4b8nkj080q] {
    width: 3.25rem;
    height: 3.25rem;
}

/* Lottie injects an <svg>; make it fill the sized box. */
.quill-busy[b-4b8nkj080q]  svg {
    width: 100%;
    height: 100%;
}
/* /Shared/SignInGate.razor.rz.scp.css */
.signin-gate[b-7nkx9oqba0] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
    max-width: 420px;
    margin: var(--sp-6) auto;
    padding: var(--sp-5);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-card);
    text-align: center;
}

.signin-gate-msg[b-7nkx9oqba0] {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dim);
}
/* /Shared/TrialPromptModal.razor.rz.scp.css */
.trial-prompt[b-jn2pt1lcq4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
    gap: 1.5rem;
}

.mascot-container[b-jn2pt1lcq4] {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.mascot-img[b-jn2pt1lcq4] {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prompt-content[b-jn2pt1lcq4] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prompt-actions[b-jn2pt1lcq4] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 600px) {
    .trial-prompt[b-jn2pt1lcq4] {
        flex-direction: row;
        text-align: left;
        padding: 1.5rem;
    }
    
    .prompt-actions[b-jn2pt1lcq4] {
        flex-direction: row;
        justify-content: flex-start;
    }
}
