@charset "UTF-8";

/* Original transparent artwork from krimidinner_rahmen_skalierbar.zip.
   Only the straight edges stretch; the corner proportions stay fixed. */
:is(.panel, .participation-details, .workflow-step-button, .invitation-card, .tip-box, .status-banner, .preparation-ready, .stat, .task-card, .clue-card, .epilogue-card, .saved-room, .farewell-story, .reentry-card:not(.invitation-card)){
    --krimi-frame-width: 24px;
    --krimi-frame-source: url("/assets/rahmen/rahmen-gold-klassisch.webp?v=b95e54503d14ddf7");
    --krimi-frame-slice: 85 95 85 95;
    --krimi-frame-gap-y: calc(var(--krimi-frame-width) * .33);
    --krimi-frame-gap-x: calc(var(--krimi-frame-width) * .26);
    position: relative;
    isolation: isolate;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 9px;
}

:is(.panel, .participation-details, .workflow-step-button, .invitation-card, .tip-box, .status-banner, .preparation-ready, .stat, .task-card, .clue-card, .epilogue-card, .saved-room, .farewell-story, .reentry-card:not(.invitation-card))::before{
    content: "";
    position: absolute;
    z-index: 1;
    inset: calc(-1 * var(--krimi-frame-gap-y)) calc(-1 * var(--krimi-frame-gap-x));
    pointer-events: none;
    border: var(--krimi-frame-width) solid transparent;
    border-image-source: var(--krimi-frame-source);
    border-image-slice: var(--krimi-frame-slice);
    border-image-width: var(--krimi-frame-width);
    border-image-repeat: stretch;
}

.panel.panel-topline, .panel.role-panel, .panel.workflow-card, .clue-card.read, .stat + .stat, .summary-stats .stat:nth-child(3){
    border: 1px solid transparent;
}
.host-control-region > .panel{
    --krimi-frame-source: url("/assets/rahmen/rahmen-gold-breit.webp?v=b95e54503d14ddf7");
    --krimi-frame-slice: 105 112 105 112;
}


/* Small fields use smaller corners and retain space for their content. */
:is(.workflow-step-button, .stat, .invitation-card, .tip-box, .preparation-ready, .status-banner, .task-card, .clue-card, .epilogue-card, .saved-room, .reentry-card:not(.invitation-card)){
    --krimi-frame-width: 17px;
}
.summary-stats{ border: 0; border-radius: 0; background: none; gap: 10px; }
.stat{ background: var(--surface-input); }
.summary-stats .stat{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 90px;
    text-align: center;
}
.summary-stats .stat-value{ margin-bottom: 0; }
.task-card, .clue-card, .epilogue-card, .saved-room, .reentry-card:not(.invitation-card){
    padding: 19px;
    margin-top: 14px;
    background: var(--surface-input);
}
.task-card:first-child, .clue-card:first-child, .epilogue-card:first-child, .saved-room:first-child, .reentry-card:first-child:not(.invitation-card){
    padding-top: 19px;
    margin-top: 0;
}
.task-card:last-child, .clue-card:last-child, .epilogue-card:last-child, .saved-room:last-child, .reentry-card:last-child:not(.invitation-card){
    padding-bottom: 19px;
}
.clue-card.read{ padding-left: 19px; }
.task-card > :last-child, .clue-card > :last-child, .epilogue-card > :last-child{ margin-bottom: 0; }
.farewell-story{ padding: 27px 24px; }

/* Existing state labels and colors remain visible beside the common gold edge. */
.workflow-card.is-current::before, .workflow-step.is-current .workflow-step-button::before{
    filter: brightness(1.3);
}
.workflow-step.is-current .workflow-step-button{
    box-shadow: inset 0 0 18px #e3bf821a;
}
.participation-details > .panel::before{ display: none; }

@media (max-width: 700px) {
    .panel, .participation-details{ --krimi-frame-width: 21px; }
    .summary-stats{ gap: 8px; }
    .workflow-step-button{ --krimi-frame-width: 15px; }
    .task-card, .clue-card, .epilogue-card, .saved-room, .reentry-card:not(.invitation-card){ padding: 16px; }
    .task-card:first-child, .clue-card:first-child, .epilogue-card:first-child, .saved-room:first-child, .reentry-card:first-child:not(.invitation-card){ padding-top: 16px; }
    .task-card:last-child, .clue-card:last-child, .epilogue-card:last-child, .saved-room:last-child, .reentry-card:last-child:not(.invitation-card){ padding-bottom: 16px; }
    .clue-card.read{ padding-left: 16px; }
    .farewell-story{ padding: 24px 17px; }
}

.invitation-card, .reentry-card, .reentry-card:not(.invitation-card), .reentry-card:first-child, .reentry-card:last-child, .reentry-card:not(.invitation-card):first-child, .reentry-card:not(.invitation-card):last-child{
    padding: 16px;
}

/* One source pixel per CSS pixel. Opening a field reveals more of the same
   texture rather than rescaling it; the origin remains at its upper left. */
:is(.panel, .participation-details, .workflow-step-button, .workflow-step.is-current .workflow-step-button, .workflow-step-button:hover:not(:disabled), .invitation-card, .tip-box, .status-banner, .preparation-ready, .stat, .task-card, .clue-card, .epilogue-card, .saved-room, .farewell-story, .reentry-card:not(.invitation-card)){
    --krimi-field-tint: #00000000;
    --ink: #f5ead8;
    --muted: #d5c5ae;
    color: var(--ink);
    /* The PNG contains transparent space outside its gold stroke. Reserve
       that space so only the frame, never the leather, reaches the edge. */
    border: solid transparent;
    border-width: var(--krimi-frame-gap-y) var(--krimi-frame-gap-x);
    border-radius: calc(var(--krimi-frame-width) * .65);
    background-color: #211c16;
    background-image: linear-gradient(var(--krimi-field-tint), var(--krimi-field-tint)),
        url("/assets/rahmen/feld-leder.webp?v=b95e54503d14ddf7");
    background-size: 1024px 1536px;
    background-position: 0 0;
    background-repeat: repeat;
    background-origin: border-box;
    background-clip: padding-box;
}
.workflow-card.is-current, .workflow-step.is-current .workflow-step-button{ --krimi-field-tint: #d8b36e12; }
.workflow-card.is-complete, .workflow-step.is-complete .workflow-step-button{ --krimi-field-tint: #566b3514; }
.workflow-card.is-locked, .workflow-step.is-locked .workflow-step-button{ --krimi-field-tint: #00000036; }
.status-banner.error{ color: var(--red); }
.participation-details > .panel{ background: none; }

/* All illustrated headers share one proportional scene and fade into the
   field's repeating leather, regardless of how tall its content becomes. */
body[data-story="umbra"] .panel-scene{
    container-type: inline-size;
    --krimi-scene-height: max(120px, 32cqw);
}
body[data-story="umbra"] .panel-scene > .panel-heading{
    min-height: max(84px, 22cqw);
    text-align: left;
    padding-top: 0;
    padding-right: 0;
    margin-bottom: 10px;
}
body[data-story="umbra"] .panel-scene::after{
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 100%;
    height: var(--krimi-scene-height);
    border-radius: 8px 8px 0 0;
    pointer-events: none;
    background-image: var(--krimi-scene-image);
    background-position: top right;
    background-size: 100% auto;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
body[data-story="umbra"] #round-step-audio{ --krimi-scene-image: url("/assets/rahmen/gemeinsam-anhoeren.webp?v=b95e54503d14ddf7"); }
body[data-story="umbra"] #round-step-audio::after{
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    background-size: cover;
    background-position: center right;
    -webkit-mask-image: none;
    mask-image: none;
}
body[data-story="umbra"] #round-step-clues{ --krimi-scene-image: url("/assets/rahmen/hinweise-verteilen.webp?v=b95e54503d14ddf7"); }
body[data-story="umbra"] #round-step-clues::after{
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    background-image: linear-gradient(0deg, #100b0873, #100b081f), var(--krimi-scene-image);
    background-size: cover;
    background-position: center right;
    -webkit-mask-image: linear-gradient(to right, transparent 18%, #000 49%);
    mask-image: linear-gradient(to right, transparent 18%, #000 49%);
}
body[data-story="umbra"] #round-step-reading{ --krimi-scene-image: url("/assets/rahmen/hinweise-lesen.webp?v=b95e54503d14ddf7"); }
body[data-story="umbra"] .scene-task{
    --krimi-scene-image: url("/assets/rahmen/gemeinsam-loesen.webp?v=b95e54503d14ddf7");
    aspect-ratio: 1024 / 578;
}
body[data-story="umbra"] .scene-task::after{
    height: auto;
    aspect-ratio: 1024 / 578;
    background-size: 100% 100%;
    background-position: top center;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
body[data-story="umbra"] .scene-task > .panel-heading{
    min-height: max(94px, 32cqw);
}
/* Keep the first recording's title directly beneath its panel title. The
   spacing between recordings, including "Der Brief", stays on audio-card. */
body[data-story="umbra"] :is(#round-step-audio, #round-step-task.scene-discussion) > .panel-heading{
    min-height: 0;
    margin-bottom: 14px;
}
body[data-story="umbra"] .scene-discussion{ --krimi-scene-image: url("/assets/rahmen/schlussdiskussion.webp?v=b95e54503d14ddf7"); }
body[data-story="umbra"] .scene-recap{ --krimi-scene-image: url("/assets/rahmen/sechs-schritte.webp?v=b95e54503d14ddf7"); }
body[data-story="umbra"] .scene-farewell{ --krimi-scene-image: url("/assets/rahmen/licht.webp?v=b95e54503d14ddf7"); }
/* Listening cards keep their artwork behind all content, including host audio. */
body[data-story="umbra"] .panel-scene.scene-full::after{
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    background-image: linear-gradient(90deg, #100b0899, #100b0859), var(--krimi-scene-image);
    background-position: center right;
    background-size: cover;
    -webkit-mask-image: none;
    mask-image: none;
}
body[data-story="umbra"] .scene-farewell-host > .panel-heading{
    min-height: 0;
    margin-bottom: 18px;
}
#round-step-audio .story-audio-player{ max-width: 580px; margin-top: 0; }
/* The transparent source canvases stay intact; show the central artwork band. */
.story-audio-player, .intro-play-artwork{ aspect-ratio: 1668 / 460; overflow: hidden; }
.story-audio-art, .intro-play-artwork .intro-play-art{
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
}
.story-audio-toggle{
    left: 15.707434%;
    top: 4.456522%;
    width: 21.342926%;
    height: 86.086957%;
    clip-path: ellipse(50% 50%);
}
.story-audio-toggle:hover:not(:disabled){ box-shadow: inset 0 0 18px #e3c28c80; }
.story-audio-toggle:focus-visible{
    outline: 0;
    box-shadow: inset 0 0 0 3px #ffe0a8, inset 0 0 0 6px #38220d;
}
/* The opaque centre covers the artwork's play triangle during playback. */
.story-audio-toggle.is-playing::before{
    inset: 16%;
    background: linear-gradient(#691214, #400405 55%, #340203);
}
.story-audio-time{ left: 41.5%; right: 14.5%; top: 47.5%; }

.audio-reading-fallback{ margin-top: 16px; font-size: .82rem; }
.audio-reading-fallback > summary{ width: fit-content; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.audio-reading-fallback > summary:hover, .audio-reading-fallback[open] > summary{ color: var(--ink); }
.audio-reading-fallback > summary:focus-visible{ outline: 2px solid var(--gold); outline-offset: 4px; }
.audio-reading-fallback[open] > summary{ margin-bottom: 12px; }
.audio-reading-fallback .reading-copy{ max-width: 70ch; margin-bottom: 0; }
.discussion-audios + p{ margin-top: 20px; }
.role-tip{ margin-top: 22px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.role-tip > summary{ cursor: pointer; color: var(--muted); font-size: .83rem; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; }
.role-tip[open] > summary{ margin-bottom: 18px; }
.role-tip > :last-child{ margin-bottom: 0; }
@media (max-width: 700px) { .role-tip{ padding: 17px; } }

/* Shared brand header, on the overview and every game page alike.
   The decoration ends above the desktop navigation and never receives input. */
.sidebar::before{
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    pointer-events: none;
    background: url("/assets/rahmen/kopfbereich.webp?v=b95e54503d14ddf7") left top / auto 150px no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.sidebar > *{ position: relative; z-index: 1; }
@media (max-width: 700px) {
    /* Brand and status row share one curtain. The two automatic grid rows
       determine its height, ending exactly at the existing topbar border. */
    body .app-shell{
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto minmax(0, 1fr);
        isolation: isolate;
    }
    body .app-shell::before{
        content: "";
        grid-column: 1;
        grid-row: 1 / 3;
        z-index: 0;
        pointer-events: none;
        background: url("/assets/rahmen/kopfbereich.webp?v=b95e54503d14ddf7") left top / cover no-repeat;
    }
    body .workspace{ display: contents; }
    body .app-shell > .sidebar{
        grid-column: 1;
        grid-row: 1;
        position: relative;
        z-index: 1;
        background: transparent;
    }
    body .sidebar::before{ display: none; }
    body .app-shell .topbar{
        grid-column: 1;
        grid-row: 2;
        position: relative;
        z-index: 1;
        background: transparent;
    }
    body .workspace > main{
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        min-width: 0;
    }
}

/* The page uses its own darker leather, behind the framed fields. The native
   pixel size stays constant while content grows or the viewport changes. */
html:root, body, body[data-theme]{
    background-color: #15120e;
    background-image: url("/assets/rahmen/seiten-hintergrund.webp?v=b95e54503d14ddf7");
    background-size: 1024px 1536px;
    background-position: 0 0;
    background-repeat: repeat;
}
.workspace{ background: transparent; }
:is(.sidebar, .topbar){
    background-color: #15120e;
    background-image: url("/assets/rahmen/seiten-hintergrund.webp?v=b95e54503d14ddf7");
    background-size: 1024px 1536px;
    background-position: 0 0;
    background-repeat: repeat;
}
.game-tabs, .preparation-steps, .clue-round-tabs{
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
/* Wrapped phone tabs remain in the page flow and cannot cover a panel heading. */
@media (max-width: 700px) {
    .game-tabs{ position: static; }
}
:is(.game-tabs, .preparation-steps, .clue-round-tabs) .button:not(.selected):not(:disabled){
    background: transparent;
    border-color: #a78a57;
}
.link-access > .qr-access{ margin-bottom: 14px; }


/* The desktop sidebar uses the full portrait artwork. Its proportions stay
   intact while the sticky navigation fills the viewport height. */
@media (min-width: 701px) {
    body .app-shell > .sidebar{
        background-image: url("/assets/rahmen/seitenleiste.webp?v=b95e54503d14ddf7");
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }
    body .app-shell > .sidebar::before{ display: none; }
}

/* The same leather is used for every affirmative control and selected tab. */
:root, body[data-theme]{
    --paper: #17130f;
    --panel: #2b231a;
    --surface-input: #211b14;
    --surface-topbar: #211b14;
    --surface-raised: #3a2e20;
    --surface-hover: #403424;
    --wine: #18130e;
    --shadow: 0 10px 32px #0006;
    --krimi-green-art: url("/assets/rahmen/gruene-flaeche.webp?v=b95e54503d14ddf7");
}
:is(.button:not(.button-secondary):not(.button-quiet):not(.button-danger):not(.workflow-step-button), .game-tabs .button.selected, .preparation-steps .button.selected, .clue-round-tabs .button.selected, .workflow-step.is-complete .workflow-step-button, .krimi-role-option[aria-selected="true"], .krimi-role-option.is-active){
    background-color: #25450f;
    background-image: var(--krimi-green-art);
    background-size: 720px 240px;
    background-position: center;
    background-repeat: repeat;
    color: #fff3df;
}
:is(.button:not(.button-secondary):not(.button-quiet):not(.button-danger):not(.workflow-step-button), .game-tabs .button.selected, .preparation-steps .button.selected, .clue-round-tabs .button.selected, .workflow-step.is-complete .workflow-step-button):hover:not(:disabled){
    background-image: var(--krimi-green-art);
    background-color: #2c5016;
    filter: brightness(1.1);
}
.button-quiet, .button-danger{ filter: none; }
.clue-round-tabs .button:disabled{
    background-color: #29251e;
    background-image: none;
}

/* Dialogs remain a single brown card over a neutral dimmed page. */
#confirmation{
    color: #f5ead8;
    background-color: #211b14;
    background-image: url("/assets/rahmen/feld-leder.webp?v=b95e54503d14ddf7");
    background-size: 1024px 1536px;
    background-position: 0 0;
    border-color: #d3ad64;
    box-shadow: 0 20px 80px #0009;
}
#confirmation::backdrop{ background: rgb(0 0 0 / .58); backdrop-filter: none; }
#confirmation .eyebrow, #confirmation p{ color: #dfcfb8; }

/* The choice opens inside the page, with no operating-system popup or nested scroll area. */
.krimi-role-picker{ width: 100%; min-width: 0; }
.krimi-role-trigger{
    appearance: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #a78a57;
    border-radius: 6px;
    color: #f5ead8;
    background: #211b14 url("/assets/rahmen/feld-leder.webp?v=b95e54503d14ddf7") 0 0 / 1024px 1536px repeat;
    text-align: left;
    font: inherit;
    font-size: .9rem;
    line-height: 1.5;
}
.krimi-role-trigger[data-empty="true"] .krimi-role-caption{ color: #d5c5ae; }
.krimi-role-trigger:disabled{ opacity: .5; cursor: default; }
.krimi-role-trigger[aria-expanded="true"]{ border-color: #e3c28c; }
.krimi-role-arrow{
    flex: none;
    width: 9px;
    height: 9px;
    border: solid #e3c28c;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
}
.krimi-role-trigger[aria-expanded="true"] .krimi-role-arrow{ transform: translateY(2px) rotate(225deg); }
.krimi-role-options{
    display: grid;
    gap: 5px;
    margin-top: 8px;
    padding: 7px;
    border: 1px solid #caa25b;
    border-radius: 7px;
    background: #211b14 url("/assets/rahmen/feld-leder.webp?v=b95e54503d14ddf7") 0 0 / 1024px 1536px repeat;
}
.krimi-role-option{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: .9rem;
    line-height: 1.5;
    color: #f5ead8;
    cursor: pointer;
    touch-action: manipulation;
}
.krimi-role-option:hover, .krimi-role-option.is-active{ border-color: #d8b36e; }
.krimi-role-option[aria-selected="true"]::after{
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f7dfac;
    box-shadow: 0 0 0 2px #234215, 0 0 0 3px #d8b36e;
}

/* Completion controls follow the audio status with a visible pause in the layout. */
.ending-completion-controls{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 12px;
    text-align: center;
}
.ending-completion-controls .button{ flex: 0 1 auto; }
.narrator-recap{ max-width: none; width: 100%; margin-inline: 0; }
.recap-completion-controls{
    justify-content: flex-start;
    padding-inline: 0;
    margin-inline: 0;
    text-align: left;
}
:is(#ending-audio, #farewell-audio, .ending-audio) .task-title{ justify-content: center; text-align: center; }
:is(#ending-audio, #farewell-audio, .ending-audio) .task-title h3{ width: 100%; margin-bottom: 12px; }
:is(#ending-audio, #farewell-audio, .ending-audio) .audio-card{ padding-top: 24px; }
:is(#ending-audio, #farewell-audio, .ending-audio) .audio-message{ margin-top: 18px; margin-bottom: 0; }
body[data-story="umbra"] .scene-recap:has(#ending-audio) > .panel-heading,
body[data-story="umbra"] .scene-farewell-host > .panel-heading{
    min-height: 0;
    margin-bottom: 14px;
}
body[data-story="umbra"] :is(.scene-recap #ending-audio, .scene-farewell-host #farewell-audio) .audio-card{ padding-top: 0; }
body[data-story="umbra"] :is(.scene-recap #ending-audio, .scene-farewell-host #farewell-audio) .task-title{
    justify-content: flex-start;
    text-align: left;
}
body[data-story="umbra"] .scene-farewell-host > .panel-heading .round-title{ margin-bottom: 0; }
body[data-story="umbra"] .scene-farewell-host #farewell-audio{ margin-top: 0; }
.resolution-audio{ max-width: none; margin-inline: 0; text-align: center; }
.resolution-audio .audio-reading-fallback{ text-align: left; }
.resolution-audio .reading-copy{ margin-inline: 0; text-align: left; }
.farewell-story #farewell-audio{ max-width: none; margin-inline: 0; }
.farewell-story .audio-reading-fallback .reading-copy{ margin-inline: 0; text-align: left; }
.host-control-region > div + div{ margin-top: 24px; }
.host-primary-controls{ justify-content: center; margin-top: 24px; }
@media (min-width: 701px) {
    .host-primary-controls, .ending-completion-controls, .audio-card > .audio-controls{
        justify-content: flex-start;
        text-align: left;
    }
}
.intro-play-artwork{
    position: relative;
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    line-height: 0;
}
.intro-play-artwork .intro-play-art{ filter: drop-shadow(0 5px 8px #0005); }
/* Only the round play disc in the visible artwork band is interactive. */
.intro-play-artwork .intro-play-button{
    position: absolute;
    left: 17.086331%;
    top: 50.760870%;
    width: 16.546763%;
    height: auto;
    aspect-ratio: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    clip-path: circle(50%);
    background: transparent;
    filter: none;
    transform: translate(-50%, -50%);
    transition: background-color .15s, box-shadow .15s;
}
.intro-play-artwork .intro-play-button:hover{ background: #ffe5ae1a; filter: none; }
.intro-play-artwork .intro-play-button:active{ transform: translate(-50%, -50%); background: #0002; }
.intro-play-artwork .intro-play-button:focus-visible{
    outline: 0;
    box-shadow: inset 0 0 0 3px #ffe4a8, inset 0 0 0 6px #38220d;
}
.intro-play-artwork-unavailable{ aspect-ratio: auto; overflow: visible; }
.intro-play-artwork-unavailable .intro-play-button{
    position: static;
    width: 100%;
    aspect-ratio: auto;
    border-radius: 8px;
    clip-path: none;
    transform: none;
}
.intro-play-artwork-unavailable .intro-play-button:active{ transform: none; }
.intro-play-artwork-unavailable .intro-play-fallback{ display: block; }

/* The desktop footer sits beneath the pen artwork; phones show it below the page. */
.legal-sidebar-footer{ display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.app-version{ color: #cfbda5; font-size: .74rem; line-height: 1.6; }
.legal-link{ color: #f0d4a2; font-size: .79rem; line-height: 1.7; text-underline-offset: 3px; }
.mobile-legal-footer{ display: none; }
.impressum-panel{ max-width: 720px; margin-bottom: 24px; }
.impressum-name{ font-weight: 600; margin-bottom: 12px; }
.impressum-address{ font-style: normal; line-height: 1.7; margin-bottom: 24px; }
.impressum-email{ display: inline-block; overflow-wrap: anywhere; margin-bottom: 8px; }
.impressum-draft{ margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
@media (min-width: 701px) and (max-height: 700px) { .legal-sidebar-footer{ padding-top: 18px; } }
@media (max-width: 700px) {
    .legal-sidebar-footer{ display: none; }
    body .app-shell{ grid-template-rows: auto auto minmax(0, 1fr) auto; }
    .mobile-legal-footer{ display: flex; grid-column: 1; grid-row: 4; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 17px 18px; margin-top: 15px; }
}


/* Round size and host participation are separate choices, with one clear total. */
.round-setup{ margin: 22px 0 24px; max-width: 480px; }
.round-setup-group{ margin: 0; padding: 0; border: 0; min-width: 0; }
.round-setup-group + .round-setup-group{ margin-top: 22px; }
.round-setup-group legend{ margin-bottom: 11px; padding: 0; color: var(--ink); font-size: .87rem; font-weight: 600; line-height: 1.5; }
.round-setup-counts, .round-setup-host{ display: grid; gap: 8px; }
.round-setup-counts{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
.round-setup-host{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.round-setup-difficulties{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.round-setup-difficulties .round-setup-label{ height: 100%; flex-direction: column; align-items: flex-start; gap: 6px; }
.round-setup-choice-title{ font-weight: 600; }
.round-setup-choice-description{ font-size: .79rem; }
.round-setup-choice{ position: relative; min-width: 0; margin: 0; cursor: pointer; }
.round-setup-choice input{ position: absolute; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.round-setup-label{ display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; padding: 10px 12px; border: 1px solid #a78a57; border-radius: 5px; color: #f5ead8; background: #211b14 url("/assets/rahmen/feld-leder.webp?v=b95e54503d14ddf7") 0 0 / 1024px 1536px repeat; line-height: 1.4; font-size: .9rem; }
.round-setup-counts .round-setup-label{ font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; }
.round-setup-choice input:checked + .round-setup-label{ border-color: #e3c28c; background: #25450f var(--krimi-green-art) center / 720px 240px repeat; color: #fff3df; }
.round-setup-choice:hover input:not(:disabled) + .round-setup-label{ border-color: #e3c28c; }
.round-setup-choice input:focus-visible + .round-setup-label{ outline: 3px solid var(--gold); outline-offset: 4px; }
.round-setup.is-disabled{ opacity: .55; }
.round-setup.is-disabled .round-setup-choice{ cursor: default; }
.round-setup-explanation{ margin: 15px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
@media (max-width: 360px) { .round-setup-counts{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Every story card keeps readable copy on the left and its own artwork on the right. */
.story-choice-group{ min-width: 0; margin: 24px 0; padding: 0; border: 0; }
.story-choice-group > legend{ padding: 0; margin-bottom: 12px; color: var(--ink); font-size: .87rem; font-weight: 600; line-height: 1.5; }
.story-choice-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.story-choice-grid:has(> .story-choice:only-child) { grid-template-columns: minmax(0, 1fr); }
.story-choice{ position: relative; display: flex; min-width: 0; min-height: 260px; margin: 0; padding: 28px 42px 26px 24px; border: 1px solid #8e754d; border-radius: 7px; background-color: #130f12; background-image: linear-gradient(90deg, #0b080af5 0%, #0b080ad1 48%, #0b080a4d 100%), var(--story-cover, none); background-size: cover; background-position: right center; background-repeat: no-repeat; color: #f5ead8; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.story-choice[data-story-id="umbra"] { --story-cover: url("/assets/umbra-cover.webp?v=b95e54503d14ddf7"); }
.story-choice-copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 42ch; }
.story-choice input{ position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.story-choice-title{ display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.24rem; font-weight: 400; line-height: 1.35; }
.story-choice .story-logo { max-width: 330px; margin: 0; }
.story-choice-description{ display: block; color: #e1d4c4; font-size: .86rem; font-weight: 400; line-height: 1.7; }
.story-choice-meta{ display: block; margin-top: auto; padding-top: 5px; color: #dec392; font-size: .74rem; font-weight: 600; line-height: 1.6; }
.story-choice:hover:not(:has(input:disabled)){ border-color: #d0ad72; box-shadow: 0 0 18px #d8ad5814; }
.story-choice:has(input:checked){ border-color: #dcba7c; box-shadow: inset 0 0 0 1px #dcba7c55, 0 0 22px #dfb45d26; }
.story-choice:has(input:checked) .story-choice-description{ color: #ecdfc9; }
.story-choice:has(input:focus-visible){ outline: 3px solid var(--gold); outline-offset: 4px; }
.story-choice:has(input:disabled){ opacity: .55; cursor: default; }
@media (max-width: 700px) {
    .story-choice-grid{ grid-template-columns: minmax(0, 1fr); }
    .story-choice { min-height: 248px; padding: 22px 30px 22px 18px; background-image: linear-gradient(90deg, #0b080ae0 0%, #0b080a80 45%, #0b080a00 100%), var(--story-cover, none); }
    .story-choice .story-logo { max-width: 250px; }
    .story-choice-copy { gap: 13px; }
}

/* The floor plan fits the page without creating a separate scroll area. */
.scene-map-image{ display: block; width: 100%; max-width: 100%; height: auto; border-radius: 4px; }
.scene-map-image-button{ appearance: none; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; line-height: 0; cursor: zoom-in; }
.scene-map-image-button:focus-visible{ outline: 3px solid var(--gold); outline-offset: 4px; }
.map-actions, .scene-map-actions{ display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.scene-map-dialog{ width: min(96vw, 1450px); max-width: none; max-height: 96dvh; overflow: hidden; padding: 18px; border: 1px solid #a78a57; color: #f5ead8; background: #211b14 url("/assets/rahmen/feld-leder.webp?v=b95e54503d14ddf7") 0 0 / 1024px 1536px repeat; }
.scene-map-dialog[open]{ display: flex; flex-direction: column; gap: 12px; }
.scene-map-dialog::backdrop{ background: #000b; }
body.image-viewer-open{ overflow: hidden; }
.scene-map-dialog-heading{ display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.scene-map-dialog-heading h2{ margin: 0; }
.scene-map-viewport{ position: relative; display: flex; align-items: center; justify-content: center; flex: 0 1 auto; width: 100%; height: min(64dvh, 650px); max-height: calc(100dvh - 245px); min-height: 80px; overflow: hidden; touch-action: none; border: 1px solid #a78a57; border-radius: 4px; background: #15120e; }
.scene-map-large{ display: block; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; pointer-events: none; will-change: transform; }
.scene-map-viewport.is-zoomed{ cursor: grab; }
.scene-map-viewport:focus-visible{ outline: 2px solid #d8b36e; outline-offset: 2px; }
.scene-map-viewport.is-zoomed.is-dragging{ cursor: grabbing; }
.scene-map-controls{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.scene-map-zoom-value{ min-width: 55px; text-align: center; color: #dec392; font-size: .82rem; font-variant-numeric: tabular-nums; }
.scene-map-dialog .map-instructions{ margin: 0; color: #d5c5ae; font-size: .8rem; line-height: 1.6; }
@media (max-width: 700px) {
    .scene-map-dialog{ width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 12px; border-radius: 0; }
    .scene-map-dialog[open]{ gap: 10px; }
    .scene-map-dialog-heading{ flex: none; align-items: flex-start; }
    .scene-map-dialog-heading h2{ font-size: 1.25rem; overflow-wrap: anywhere; }
    .scene-map-viewport{ flex: 1 1 auto; height: auto; max-height: none; min-height: 0; }
    .scene-map-controls, .scene-map-dialog .map-instructions{ flex: none; }
}

/* Returning players keep an accessible action row even on a small phone. */
.participant-return-row{ flex-wrap: wrap; }
.participant-return-row > .person{ flex: 1 1 180px; min-width: 0; }
.participant-return-row .list-main{ overflow-wrap: anywhere; }

/* One protected portrait file is shared by the role and the public cast gallery. */
.role-appearance{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.role-appearance > .portrait-image-button{ width: 100%; max-width: 260px; margin-inline: auto; }
.role-appearance-copy{ min-width: 0; }
.role-appearance-copy h3{ margin: 0 0 12px; }
.role-appearance-copy p{ margin: 0 0 14px; font-size: .9rem; line-height: 1.75; }
.role-appearance-copy p:last-child{ margin-bottom: 0; }
.portrait-image-button{ appearance: none; display: block; width: 100%; padding: 0; border: 1px solid var(--control-line); border-radius: 6px; background: var(--surface-input); line-height: 0; cursor: zoom-in; overflow: hidden; }
.portrait-image-button[hidden]{ display: none; }
.portrait-image-button:disabled{ cursor: default; }
.portrait-image-button:focus-visible{ outline: 3px solid var(--gold); outline-offset: 4px; }
.portrait-image-button:hover:not(:disabled){ border-color: var(--gold); }
.portrait-image{ display: block; width: 100%; height: auto; opacity: 0; }
.portrait-image-button.is-loaded .portrait-image{ opacity: 1; }
.portrait-gallery{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
.portrait-card{ min-width: 0; }
.portrait-card h3{ margin: 13px 0 5px; font-size: 1.06rem; line-height: 1.35; }
.portrait-player{ margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; overflow-wrap: anywhere; }
@media (min-width: 760px) { .role-appearance{ grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.role-appearance.portrait-unavailable{ grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .portrait-gallery{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Newspaper fonts load when the canvas renderer requests them. */
@font-face{ font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-400-normal.woff2?v=b95e54503d14ddf7") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face{ font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-700-normal.woff2?v=b95e54503d14ddf7") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face{ font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-900-normal.woff2?v=b95e54503d14ddf7") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face{ font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-400-italic.woff2?v=b95e54503d14ddf7") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face{ font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2?v=b95e54503d14ddf7") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face{ font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2?v=b95e54503d14ddf7") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face{ font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2?v=b95e54503d14ddf7") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
.newspaper-preview{ display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1528; background: transparent; color-scheme: only light; forced-color-adjust: none; border: 0; }
.newspaper-preview-button{ appearance: none; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; line-height: 0; cursor: zoom-in; }
.newspaper-preview-button:disabled{ cursor: default; }
.newspaper-preview-button .newspaper-preview{ pointer-events: none; }
.newspaper-preview-hint{ margin: 8px 0 14px; }
.newspaper-page-controls{ margin-bottom: 16px; }
.newspaper-page-controls .is-current{ border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.newspaper-status{ margin: 10px 0 16px; }
.newspaper-actions{ flex-wrap: wrap; margin-bottom: 12px; }
.newspaper-text{ border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.newspaper-text > summary{ cursor: pointer; color: var(--muted); font-size: .83rem; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; }
.newspaper-readable{ margin-top: 20px; max-width: 75ch; overflow-wrap: anywhere; }
.newspaper-readable p, .newspaper-readable li{ line-height: 1.8; }
.newspaper-readable h3, .newspaper-readable h4{ margin-top: 24px; }
.newspaper-readable blockquote{ margin-inline: 0; font-family: Georgia, serif; font-size: 1.5rem; }
.newspaper-photo-reminder{ text-align: left; max-width: 65ch; margin: 0 0 18px; color: var(--muted); font-size: .88rem; line-height: 1.7; }
/* The complete UMBRA logo keeps a compact footprint on phones. */
.story-logo { width: 100%; max-width: 460px; margin-bottom: 16px; }
.umbra-logo { display: block; width: 100%; height: auto; max-width: 100%; color-scheme: only light; }
.story-preview-title { margin-top: 4px; }
.story-preview-description { max-width: 65ch; color: var(--muted); font-size: .94rem; line-height: 1.75; }
@media (max-width: 700px) {
    .story-logo { max-width: 270px; margin-bottom: 12px; }
    .story-preview-description { font-size: .88rem; }
}
