:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #29392f;
    background: #f7f6ef;
    font-synthesis: none;
    --green: #344e40;
    --muted: #72776d;
    --line: #dedfd4;
    --orange: #ad562d;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
button {
    font: inherit;
    cursor: pointer;
}
button:disabled {
    cursor: default;
}
a {
    color: inherit;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #b75d32;
    outline-offset: 5px;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
button {
    transition:
        background 0.15s,
        transform 0.15s;
}
button:not(:disabled):hover {
    transform: translateY(-1px);
}
.site-header {
    max-width: 1240px;
    margin: auto;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -1px;
}
.brand-light {
    font-weight: 400;
}
.brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    margin-top: 5px;
    font-weight: 600;
}
.brand-mark {
    font:
        italic 38px Georgia,
        serif;
    background: var(--green);
    color: #f7f6ef;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding-bottom: 5px;
}
.preview-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: #626e61;
    background: #edeee5;
    border: 1px solid #dfe2d5;
    padding: 9px 13px;
    border-radius: 20px;
}
.preview-badge > span {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #6b8764;
}
main {
    max-width: 1240px;
    margin: auto;
    padding: 0 40px;
}
.welcome {
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 30px;
    padding: 54px 0 48px;
}
.eyebrow,
.section-label {
    font-size: 10px;
    letter-spacing: 1.9px;
    font-weight: 650;
    color: #7a806f;
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}
.small-line {
    height: 1px;
    width: 28px;
    background: #b37349;
}
.welcome h1 {
    font:
        normal 76px/0.99 Georgia,
        "Times New Roman",
        serif;
    letter-spacing: -3px;
    margin: 25px 0;
}
.welcome h1 em {
    color: var(--orange);
    font-weight: normal;
}
.lead {
    font-size: 16px;
    line-height: 1.7;
    color: #4f5b50;
    margin-bottom: 15px;
}
.intro {
    max-width: 390px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}
.story-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 23px 0;
}
.story-meta span {
    font-size: 10px;
    border: 1px solid #dce0d3;
    border-radius: 4px;
    padding: 6px 10px;
    color: #626f59;
}
.primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 15px 22px;
    color: #fffdf5;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.primary:hover {
    background: #253d30;
}
.primary:disabled {
    opacity: 0.55;
}
.start-button {
    min-width: 260px;
}
.hint {
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    margin: 12px 0 0;
}
.notebook-art {
    height: 460px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #ebe9d9 0, transparent 65%);
    isolation: isolate;
}
.art-orbit {
    position: absolute;
    border: 1px solid #dfdfcf;
    border-radius: 50%;
    z-index: -1;
}
.orbit-one {
    width: 350px;
    height: 350px;
}
.orbit-two {
    width: 430px;
    height: 430px;
    border-style: dashed;
}
.notebook {
    width: 215px;
    height: 285px;
    transform: rotate(-12deg);
    border-radius: 4px 12px 12px 4px;
    background: #597a88;
    box-shadow:
        inset 12px 0 0 #456570,
        inset 15px 0 0 #72939d,
        8px 12px 0 #e1dccb,
        12px 22px 35px #3c4f3525;
    display: grid;
    place-items: center;
    position: relative;
}
.notebook:after {
    content: "";
    position: absolute;
    top: 0;
    right: 28px;
    height: 100%;
    width: 7px;
    background: #314c5c99;
}
.notebook-label {
    width: 135px;
    background: #f5efdd;
    padding: 20px 12px;
    transform: rotate(2deg);
    color: #354e5b;
    text-align: center;
    border: 1px solid #e1dac6;
}
.notebook-label small {
    font-size: 9px;
    letter-spacing: 4px;
}
.notebook-label strong {
    display: block;
    font:
        italic 31px/1.05 Georgia,
        serif;
    margin: 10px 0;
}
.notebook-label > span {
    font-size: 8px;
    letter-spacing: 1px;
}
.ticket {
    position: absolute;
    z-index: -1;
    bottom: 68px;
    right: 5px;
    width: 290px;
    background: #d8a77d;
    transform: rotate(12deg);
    padding: 15px 22px;
    border: 1px dashed #ab7653;
    box-shadow: 0 6px 8px #674f2520;
}
.ticket > span {
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
}
.ticket strong {
    display: block;
    font:
        28px Georgia,
        serif;
    letter-spacing: 1px;
    margin: 5px 0;
}
.ticket small {
    font-size: 8px;
    letter-spacing: 1px;
}
.art-star {
    position: absolute;
    color: #b67548;
}
.star-one {
    font-size: 38px;
    top: 80px;
    right: 30px;
}
.star-two {
    font-size: 30px;
    bottom: 70px;
    left: 25px;
}
.art-caption {
    position: absolute;
    bottom: 6px;
    font:
        italic 15px Georgia,
        serif;
    color: #7c816e;
    transform: rotate(-4deg);
}
.how-it-works {
    border-top: 1px solid var(--line);
    padding: 30px 0 38px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.how-it-works > div {
    position: relative;
    padding-left: 40px;
}
.step-number {
    position: absolute;
    left: 0;
    font:
        22px Georgia,
        serif;
    color: #a5aa97;
}
.how-it-works strong {
    font-size: 12px;
    font-weight: 650;
}
.how-it-works p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    margin: 6px 0 0;
}
footer {
    max-width: 1160px;
    margin: 20px auto 0;
    border-top: 1px solid var(--line);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 10px;
    color: #7c8272;
}
.adventure-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 38px 0 28px;
}
.adventure-heading h1 {
    font:
        36px Georgia,
        serif;
    margin: 13px 0 0;
    letter-spacing: -0.8px;
}
.text-button {
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 12px;
    padding: 10px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.game-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
    gap: 26px;
    margin-bottom: 45px;
}
.story-card {
    background: #fffef9;
    border: 1px solid #e0e2d6;
    border-radius: 10px;
    padding: 32px 36px;
    min-height: 440px;
    box-shadow: 0 4px 20px #3b473506;
}
.chapter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.phase-badge {
    font-size: 10px;
    color: #65765c;
    background: #f0f2e8;
    padding: 6px 10px;
    border-radius: 14px;
}
.chapter-progress {
    display: flex;
    gap: 5px;
    margin: 20px 0 26px;
}
.chapter-progress span {
    height: 3px;
    border-radius: 2px;
    background: #e8eadd;
    flex: 1;
}
.chapter-progress .done {
    background: #8d9d77;
}
.story-card > h2 {
    font:
        30px Georgia,
        serif;
    letter-spacing: -0.4px;
}
.narration {
    font:
        20px/1.9 Georgia,
        serif;
    color: #4f5b4f;
    margin: 0 0 28px;
}
.reading-note {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f2f3e9;
    border-radius: 5px;
    padding: 17px;
    font-size: 12px;
    color: #69745e;
}
.pulse-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #8c9d70;
}
.scene-ready {
    text-align: center;
    padding: 25px 0 16px;
}
.scene-icon {
    font-size: 40px;
    color: #b57346;
}
.scene-ready h3 {
    font:
        25px Georgia,
        serif;
    margin: 15px 0;
}
.scene-ready p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 340px;
    margin: 0 auto 25px;
}
.question-panel,
.decision {
    border-top: 1px solid var(--line);
    padding-top: 26px;
}
.question-panel h2,
.decision h2 {
    font:
        24px/1.4 Georgia,
        serif;
    margin: 12px 0 20px;
}
.options {
    display: grid;
    gap: 10px;
}
.option {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    background: #fffef9;
    border: 1px solid #dce0d3;
    border-radius: 5px;
    padding: 12px 15px;
    min-height: 50px;
    color: #384c3b;
    font-size: 13px;
    width: 100%;
}
.option-letter {
    width: 27px;
    height: 27px;
    border: 1px solid #dce0d3;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    flex-shrink: 0;
}
.option:not(:disabled):hover {
    background: #f0f3e9;
    border-color: #8c9d77;
}
.option:disabled {
    color: #667160;
}
.option.selected {
    background: #e9eee1;
    border-color: #8b9c76;
}
.option.selected .option-letter {
    background: var(--green);
    color: #fff;
}
.feedback {
    background: #f8efe2;
    border-left: 3px solid #b17d47;
    padding: 15px 18px;
    margin-top: 20px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.6;
}
.feedback.correct {
    background: #edf3e5;
    border-color: #6a8859;
}
.feedback p {
    margin: 7px 0 0;
    font-size: 13px;
}
.next-button {
    margin-top: 20px;
}
.journey-card {
    padding: 28px 24px;
    border: 1px solid #dfe2d2;
    border-radius: 10px;
    background: #eeefe4;
}
.journey-card > .section-label {
    display: block;
    font-size: 8px;
    letter-spacing: 1.3px;
    margin-bottom: 30px;
}
.journey-stop {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 28px;
    align-items: start;
}
.journey-stop:not(:nth-of-type(3)):after {
    content: "";
    position: absolute;
    width: 1px;
    background: #ccd3be;
    left: 5px;
    top: 17px;
    bottom: 4px;
}
.journey-dot {
    height: 11px;
    width: 11px;
    border: 1px solid #aebba0;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}
.journey-dot.active {
    background: #728762;
    border-color: #728762;
}
.journey-stop strong {
    font-size: 12px;
    font-weight: 600;
}
.journey-stop small {
    display: block;
    font-size: 10px;
    color: #7b836f;
    margin-top: 6px;
}
.journey-card blockquote {
    font:
        italic 23px/1.4 Georgia,
        serif;
    color: #768466;
    border-top: 1px solid #d8deca;
    padding-top: 25px;
    margin: 5px 0 25px;
}
.journey-hint {
    font-size: 10px;
    line-height: 1.8;
    color: #7a826d;
    margin-bottom: 0;
}
.timer {
    border-top: 1px solid #d8deca;
    padding: 20px 0;
    text-align: center;
}
.timer > strong {
    font:
        60px Georgia,
        serif;
    color: var(--green);
}
.timer > strong span {
    font: 17px system-ui;
}
.timer small {
    display: block;
    font-size: 10px;
    color: #7a826d;
    margin-top: 5px;
}
.decision > p {
    font-size: 12px;
    color: var(--muted);
}
.choice {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    padding: 17px;
    border: 1px solid #aebda0;
    border-radius: 5px;
    color: var(--green);
    background: #f0f4e8;
    font-size: 13px;
    text-align: left;
    gap: 15px;
}
.choice:hover {
    background: #e4ecd9;
}
.ending {
    text-align: center;
    padding: 12px 0;
}
.ending-icon {
    font-size: 50px;
    color: #b67548;
    display: block;
    margin-bottom: 18px;
}
.ending h2 {
    font:
        34px/1.25 Georgia,
        serif;
    margin: 18px 0;
}
.ending > p {
    font-size: 14px;
    line-height: 1.9;
    color: #6c7665;
    max-width: 460px;
    margin: 0 auto;
}
.ending-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 11px;
    color: #6c7665;
    margin: 25px 0;
}
.error-banner {
    background: #f9e9db;
    border: 1px solid #d4b091;
    padding: 15px;
    border-radius: 5px;
    font-size: 13px;
    margin-top: 20px;
}
.loading-screen {
    padding: 120px 0;
    text-align: center;
    font:
        24px Georgia,
        serif;
}
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5dfcf;
    padding: 20px;
    text-align: center;
    z-index: 1000;
}
.loading-progress {
    width: 100px;
    height: 100px;
    display: block;
    margin: 25vh auto 0;
}
.loading-progress circle {
    fill: none;
    stroke: #c8d2bd;
    stroke-width: 4;
}
.loading-progress circle:last-child {
    stroke: var(--green);
    stroke-dasharray:
        calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
}
.loading-progress-text {
    text-align: center;
    font-size: 13px;
    color: #69745e;
}
.loading-progress-text:after {
    content: "Preparando sua aventura…";
}
@media (min-width: 1450px) {
    .welcome {
        min-height: 680px;
    }
    .welcome h1 {
        font-size: 86px;
    }
}
@media (max-width: 900px) {
    .welcome h1 {
        font-size: 65px;
    }
    .welcome {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .notebook-art {
        transform: scale(0.85);
        transform-origin: center;
    }
    .game-grid {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 18px;
    }
    .story-card {
        padding: 25px;
    }
    .journey-card {
        padding: 24px 18px;
    }
    footer {
        margin-left: 40px;
        margin-right: 40px;
    }
    .site-header {
        padding: 24px 30px;
    }
    main {
        padding: 0 30px;
    }
}
@media (max-width: 680px) {
    .site-header {
        padding: 20px;
    }
    .brand {
        font-size: 20px;
    }
    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 32px;
    }
    .brand small {
        font-size: 6px;
        letter-spacing: 1.6px;
    }
    .preview-badge {
        font-size: 9px;
        padding: 7px 9px;
        gap: 5px;
    }
    .preview-badge > span {
        width: 4px;
        height: 4px;
    }
    main {
        padding: 0 20px;
    }
    .welcome {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 38px 0 15px;
    }
    .welcome h1 {
        font-size: 64px;
        margin: 24px 0;
    }
    .eyebrow {
        font-size: 8px;
        letter-spacing: 1.3px;
    }
    .lead {
        font-size: 15px;
    }
    .intro {
        font-size: 12px;
        max-width: 360px;
    }
    .notebook-art {
        height: 360px;
        margin: -10px -10px 0;
        transform: scale(0.8);
    }
    .how-it-works {
        grid-template-columns: 1fr;
        gap: 23px;
        padding: 28px 0;
    }
    .how-it-works > div {
        padding-left: 43px;
    }
    .how-it-works strong {
        font-size: 13px;
    }
    .how-it-works p {
        font-size: 12px;
    }
    footer {
        margin: 15px 20px 0;
        padding: 20px 0;
        flex-direction: column;
        gap: 10px;
        font-size: 9px;
    }
    .adventure-heading {
        padding-top: 28px;
        gap: 10px;
        align-items: start;
    }
    .adventure-heading h1 {
        font-size: 29px;
    }
    .adventure-heading .text-button {
        font-size: 10px;
        padding: 0;
        white-space: nowrap;
        margin-top: 28px;
    }
    .game-grid {
        grid-template-columns: 1fr;
    }
    .story-card {
        padding: 24px 20px;
    }
    .story-card > h2 {
        font-size: 27px;
    }
    .chapter-heading .section-label {
        font-size: 9px;
        letter-spacing: 1px;
    }
    .narration {
        font-size: 19px;
        line-height: 1.85;
    }
    .journey-card {
        display: none;
    }
    .question-panel h2 {
        font-size: 23px;
    }
    .ending h2 {
        font-size: 29px;
    }
    .primary {
        min-height: 48px;
    }
    .option {
        min-height: 54px;
    }
    .scene-ready h3 {
        font-size: 23px;
    }
    .phase-badge {
        font-size: 9px;
    }
    .desktop-break {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    button:not(:disabled):hover {
        transform: none;
    }
}

.audio-player {
  border: 1px solid var(--line);
  background: #f1f3e9;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 24px;
}
.audio-heading { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.audio-heading span { color: var(--muted); font-size: 10px; }
.audio-player audio { width: 100%; margin-top: 12px; }
.audio-player audio:not([controls]) { display: none; }
.audio-player p { margin: 10px 0 0; font-size: 10px; line-height: 1.6; color: var(--muted); }
@media (max-width: 680px) { .audio-heading { flex-direction: column; gap: 6px; } }

/* Editorial studio */
.admin-shell { min-height: 100vh; background: #f4f3ed; }
.admin-header { padding: 22px 4%; background: #fafaf5; border-bottom: 1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.admin-header .brand { text-decoration:none; }
.admin-login { max-width: 570px; margin: 7vh auto; padding: 32px; }
.admin-login h1 { font-family: Georgia, serif; font-size: clamp(34px,5vw,52px); font-weight:400; line-height:1.12; margin:22px 0; }
.admin-login p, .admin-title p, .admin-card > p { color:var(--muted); line-height:1.6; }
.admin-login form { margin:32px 0 20px; }
.admin-shell label, .catalog-select { display:flex; flex-direction:column; gap:8px; margin:18px 0; font-size:14px; font-weight:600; }
.admin-shell input, .admin-shell textarea, .admin-shell select, .catalog-select select { width:100%; padding:12px 14px; color:var(--green); font:inherit; font-weight:400; background:#fff; border:1px solid #c7cec3; border-radius:6px; min-height:44px; }
.admin-shell input:focus, .admin-shell textarea:focus, .admin-shell select:focus, .catalog-select select:focus { outline:2px solid #617b65; outline-offset:2px; }
.admin-shell textarea { resize:vertical; line-height:1.6; }
.admin-shell input:disabled, .admin-shell textarea:disabled, .admin-shell select:disabled { background:#efefe8; color:#566153; opacity:1; }
.admin-shell button:disabled { opacity:.5; }
.admin-frame { max-width:1540px; margin:auto; display:grid; grid-template-columns:230px minmax(0,1fr); }
.admin-nav { padding:36px 20px; border-right:1px solid var(--line); display:flex; flex-direction:column; align-items:stretch; gap:10px; }
.admin-nav > button, .admin-nav > a, .admin-identity button { text-align:left; padding:12px; border:0; border-radius:6px; background:transparent; text-decoration:none; font:inherit; font-size:14px; }
.admin-nav .section-label { margin:0 12px 18px; }
.admin-nav > .active { background:#e0e7d9; color:#294d32; font-weight:700; }
.admin-identity { margin-top:45px; padding:12px; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.admin-identity button { display:block; padding-left:0; margin-top:10px; }
.admin-main { width:100%; max-width:none; margin:0; align-self:start; padding:36px clamp(18px,3vw,48px); min-width:0; }
.admin-title { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin:18px 0 30px; }
.admin-title h1, .admin-main > h1 { font-family:Georgia,serif; font-weight:400; font-size:clamp(28px,3vw,42px); line-height:1.15; margin:15px 0; overflow-wrap:anywhere; }
.admin-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.admin-shell .primary, .admin-shell .secondary { padding:12px 20px; border-radius:5px; font-size:14px; }
.secondary { color:var(--green); background:#f8faf4; border:1px solid #a9b7a4; }
.admin-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:30px; }
.admin-metrics > div { background:#fafbf6; border:1px solid var(--line); border-radius:8px; padding:22px; }
.admin-metrics strong { display:block; font-family:Georgia,serif; font-size:36px; margin-bottom:8px; font-weight:400; }
.admin-metrics span { color:var(--muted); font-size:13px; }
.admin-table { overflow-x:auto; border:1px solid var(--line); border-radius:8px; background:#fff; }
.admin-table table { border-collapse:collapse; width:100%; text-align:left; font-size:14px; }
.admin-table th { background:#ecefe5; font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); padding:18px; }
.admin-table td { padding:20px 18px; border-top:1px solid var(--line); }
.admin-table td:first-child { min-width:200px; }
.admin-table small { display:block; margin-top:8px; color:var(--muted); }
.status-tag { display:inline-block; padding:7px 10px; font-size:12px; border-radius:20px; background:#eeeae1; white-space:nowrap; }
.status-tag.published { background:#e1edda; color:#325136; }
.status-tag.draft { background:#f8eed5; color:#73591f; }
.admin-pagination { display:flex; justify-content:flex-end; gap:20px; align-items:center; margin:24px 0; font-size:13px; }
.admin-pagination button { border:0; background:transparent; color:var(--green); padding:10px; }
.admin-card, .admin-scene { display:block; border:1px solid #d7ddcf; border-radius:9px; background:#fcfcf7; padding:26px; margin:24px 0; min-width:0; }
.admin-card h2 { font-family:Georgia,serif; font-weight:400; font-size:26px; }
.admin-scene .admin-title { margin:0 0 15px; }
.admin-scene h3 { font-size:18px; margin-top:12px; }
.admin-shell fieldset { margin-inline:0; min-width:0; }
.admin-scene fieldset { border:0; padding:0; }
.admin-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.admin-option { display:flex; align-items:center; gap:12px; margin:12px 0; }
.admin-option input { flex:1; min-width:0; }
.admin-transition { display:grid; grid-template-columns:1fr 2fr 2fr auto; gap:12px; align-items:center; border-bottom:1px solid var(--line); }
.admin-shell .admin-check { flex-direction:row; align-items:flex-start; font-weight:400; line-height:1.6; }
.admin-check input { width:19px; height:19px; min-height:19px; margin:2px 6px 0 0; flex-shrink:0; accent-color:var(--green); }
.admin-audio { border-top:1px solid var(--line); margin-top:24px; padding-top:24px; }
.admin-audio audio, .admin-preview audio { width:min(100%,480px); }
.admin-audio p { font-size:13px; color:var(--muted); }
.admin-error, .admin-notice { padding:16px 20px; border-radius:5px; margin:20px 0; line-height:1.6; }
.admin-error { background:#faeae2; border:1px solid #e0b7a6; color:#773522; }
.admin-notice { background:#e8eee1; border:1px solid #c3d2b7; color:#344e40; }
.admin-shell .danger { color:#963f29; }
.admin-issues { padding-left:24px; color:#773522; line-height:1.8; }
.admin-empty { padding:30px; }
.admin-account { max-width:480px; }
.admin-preview .choice { margin:12px 0; }
.admin-preview h3 { margin-top:24px; }
.catalog-select { max-width:460px; margin:24px 0 16px; }
.catalog-synopsis { color:var(--muted); max-width:460px; line-height:1.6; }
@media (max-width:850px) {
    .admin-frame { grid-template-columns:1fr; }
    .admin-nav { border-right:0; border-bottom:1px solid var(--line); padding:14px 18px; flex-direction:row; flex-wrap:wrap; align-items:center; }
    .admin-nav .section-label { display:none; }
    .admin-identity { margin:0 0 0 auto; padding:0; border:0; }
    .admin-identity small { display:none; }
    .admin-identity button { margin:0; padding:12px; }
    .admin-title { flex-direction:column; }
    .admin-form-grid { grid-template-columns:1fr; gap:0; }
    .admin-transition { grid-template-columns:1fr; gap:0; padding-bottom:12px; }
    .admin-transition label { margin:10px 0; }
}
@media (max-width:520px) {
    .admin-login { margin:25px auto; padding:24px; }
    .admin-header { padding:18px; }
    .admin-header .preview-badge { display:none; }
    .admin-main { width:100%; max-width:none; margin:0; align-self:start; padding:24px 16px; }
    .admin-card, .admin-scene { padding:18px; }
    .admin-metrics { gap:8px; }
    .admin-metrics > div { padding:14px 10px; }
    .admin-metrics span { font-size:11px; }
    .admin-option { flex-wrap:wrap; }
}
@media (max-width:520px) {
    .admin-table table, .admin-table tbody { display:block; }
    .admin-table thead { display:none; }
    .admin-table tr { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:12px; }
    .admin-table tr + tr { border-top:1px solid var(--line); }
    .admin-table td { border:0; padding:10px; }
    .admin-table td:first-child { grid-column:1 / -1; min-width:0; }
    .admin-table td:nth-child(3) { align-self:center; }
    .admin-table td:last-child { grid-column:1 / -1; text-align:right; }
    .admin-table .text-button { min-height:44px; }
}

/* Story universes: the published version supplies this palette. */
:root { --green:#6d28d9; --orange:#f97316; --primary:#6d28d9; --accent:#f97316; --page:#f5f3ff; --surface:#fff; --ink:#231942; --button-ink:#fff; --story-font:ui-rounded,system-ui,sans-serif; background:#f5f3ff; }
.experience { min-height:100vh; color:var(--ink); background:radial-gradient(ellipse at top right,color-mix(in srgb,var(--accent) 15%,transparent),transparent 50%),radial-gradient(ellipse at left 35%,color-mix(in srgb,var(--primary) 10%,transparent),transparent 55%),var(--page); font-family:var(--story-font); }
.experience h1,.experience h2,.experience h3 { font-family:var(--story-font); letter-spacing:-.04em; }
.experience .welcome h1 { font-weight:850; line-height:1.05; }
.experience .welcome h1 em { font-style:normal; color:var(--primary); text-shadow:4px 4px 0 color-mix(in srgb,var(--accent) 25%,transparent); }
.experience .site-header { border-color:color-mix(in srgb,var(--primary) 15%,transparent); }
.experience .primary,.theme-pill { background:var(--primary); color:var(--button-ink); border-radius:16px; box-shadow:0 5px 0 color-mix(in srgb,var(--primary) 65%,#000); }
.experience .primary:hover { background:color-mix(in srgb,var(--primary) 85%,#000); }
.experience .secondary { color:var(--ink); border-color:var(--primary); background:var(--surface); }
.experience .story-card,.experience .journey-card { background:var(--surface); color:var(--ink); border:1px solid color-mix(in srgb,var(--primary) 18%,transparent); border-radius:26px; box-shadow:0 12px 40px color-mix(in srgb,var(--primary) 8%,transparent); }
.experience .journey-card { background:color-mix(in srgb,var(--primary) 7%,var(--surface)); }
.experience .eyebrow,.experience .section-label,.experience .hint,.experience .lead,.experience .intro,.experience .journey-hint,.experience .catalog-synopsis { color:var(--ink); }
.experience .phase-badge,.experience .preview-badge,.experience .story-meta span { color:var(--ink); background:color-mix(in srgb,var(--accent) 14%,var(--surface)); border-color:color-mix(in srgb,var(--accent) 35%,transparent); border-radius:24px; }
.experience .option,.experience .choice { color:var(--ink); border-color:color-mix(in srgb,var(--primary) 25%,transparent); background:var(--surface); border-radius:14px; }
.experience .option:hover,.experience .choice:hover { background:color-mix(in srgb,var(--primary) 9%,var(--surface)); }
.experience .catalog-select select { background:var(--surface); color:var(--ink); border:2px solid color-mix(in srgb,var(--primary) 35%,transparent); border-radius:14px; }
.experience .step-number { color:var(--primary); background:color-mix(in srgb,var(--primary) 10%,var(--surface)); border-radius:14px; }
.scene-artwork { margin:20px 0 26px; overflow:hidden; border-radius:20px; background:color-mix(in srgb,var(--primary) 7%,var(--surface)); text-align:center; }
.scene-artwork img { display:block; max-height:430px; width:100%; object-fit:contain; }
.scene-artwork figcaption { padding:14px; font-size:13px; line-height:1.6; }
.scene-artwork button { margin:18px; }
.admin-shell { --primary:#6d28d9; --surface:#fff; --ink:#231942; background:#f5f3ff; }
.admin-header,.admin-card,.admin-scene,.admin-metrics>div { background:#fff; border-color:#e4ddf7; }
.admin-nav>.active { background:#ede5ff; color:#6025c3; }
.admin-shell .primary { background:#6d28d9; border-radius:12px; }
.admin-shell .secondary { border-radius:12px; }
.admin-shell .admin-title h1 { font-family:ui-rounded,system-ui,sans-serif; font-weight:800; letter-spacing:-.05em; }
.theme-presets { display:flex; flex-wrap:wrap; gap:12px; }
.theme-colors { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
.theme-colors input { padding:4px; height:52px; cursor:pointer; }
.theme-sample { min-height:0; padding:30px; border-radius:20px; margin-top:20px; }
.theme-sample h3 { font-size:28px; margin:20px 0; }
.theme-pill { display:inline-block; padding:14px 20px; font-weight:700; }
.motion-gentle .brand-mark { animation:story-bob 5s ease-in-out infinite; }
@keyframes story-bob { 50% { transform:rotate(-8deg) translateY(-3px); } }
@media(max-width:680px) { .theme-colors { grid-template-columns:repeat(3,1fr); }.experience .welcome h1 { font-size:56px; }.scene-artwork img { max-height:280px; } }
@media(prefers-reduced-motion:reduce) { .experience *, .experience *::before, .experience *::after { animation:none!important; transition:none!important; } }
.multiplayer-link { display:inline-block; margin-top:8px; color:var(--primary); font-weight:750; text-underline-offset:5px; }
.rooms-main { padding-top:48px; padding-bottom:70px; }
.rooms-main h1 { font-size:clamp(35px,5vw,62px); font-weight:850; margin:25px 0; line-height:1.08; }
.rooms-main h1 em { font-style:normal; color:var(--primary); }
.room-intro { display:grid; grid-template-columns:1.3fr 1fr; gap:48px; align-items:center; }
.room-intro p,.room-experience p { line-height:1.7; }
.room-experience .admin-card { color:var(--ink); background:var(--surface); border-color:color-mix(in srgb,var(--primary) 20%,transparent); border-radius:24px; }
.room-experience label { display:flex; flex-direction:column; gap:10px; margin:22px 0; font-size:14px; font-weight:700; }
.room-experience input,.room-experience select { padding:13px; min-height:48px; border:1px solid #bcb0de; border-radius:12px; font:inherit; width:100%; color:var(--ink); background:var(--surface); }
.avatar-picker { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:20px 0 28px; }
.avatar-picker button { font-size:27px; padding:12px; background:#f8f4ff; border:2px solid transparent; border-radius:16px; }
.avatar-picker .selected { border-color:var(--primary); background:#eaddff; }
.room-entry { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.room-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.room-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:28px; }
.room-code { display:block; font-size:clamp(28px,4vw,48px); letter-spacing:5px; margin:18px 0; color:var(--primary); }
.room-solo { padding:10px 18px; border-radius:14px; text-decoration:none; font-size:14px; }
.room-member { display:flex; align-items:center; gap:14px; border-top:1px solid #e8e0f5; padding:20px 0; }
.room-members { margin-top:28px; }
.member-avatar { font-size:32px; }
.room-member small { display:block; font-size:12px; margin-top:7px; }
.member-ready { margin-left:auto; font-size:12px; padding:8px; border-radius:20px; background:#fff0d9; color:#624015; }
.member-ready.is-ready { background:#dcfce7; color:#166534; }
.room-ready { display:block; margin:30px 0; width:100%; }
.room-development { padding:18px; font-size:13px; background:color-mix(in srgb,var(--primary) 7%,var(--surface)); border-radius:15px; }
.room-live { font-weight:700; color:var(--primary); }
@media(max-width:780px) { .room-intro,.room-entry,.room-grid { grid-template-columns:1fr; gap:8px; }.room-heading { align-items:flex-start; }.room-heading h1 { font-size:38px; }.room-experience .brand { font-size:17px; gap:5px; }.room-solo { font-size:11px; padding:10px; }.rooms-main { padding-top:30px; } }
