/* One complete landscape cast card per story; preserve the author's full composition. */
.cast-cards,.cast-cards-dialog{color-scheme:light;--cast-paper:#fffdf7;--cast-cream:#f2eee3;--cast-ink:#293c32;--cast-muted:#6d7469;--cast-gold:#93784c;--cast-line:#d8d2c2;color:var(--cast-ink);font-family:Arial,"Noto Sans KR",sans-serif}
.cast-cards{margin-top:38px;padding:34px 36px;background:linear-gradient(110deg,#ebeede 0%,#f6f1e7 65%,#f3ede0 100%);border:1px solid var(--cast-line);border-radius:14px;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);gap:22px 36px;align-items:center}
.cast-cards-heading,.cast-cards-buttons{min-width:0}
.cast-cards-eyebrow{font-size:9px;line-height:1.7;letter-spacing:.17em;color:var(--cast-gold)}
.cast-cards .cast-cards-title{font-family:var(--serif,Georgia,"Noto Serif KR",serif);font-size:27px;font-weight:500;line-height:1.4;letter-spacing:-.025em;margin:10px 0}
.cast-cards .cast-cards-lead{font-size:12px;line-height:1.85;color:var(--cast-muted);margin:0;max-width:360px}
.cast-cards-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cast-cards-country{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 9px;align-items:center;text-align:left;min-height:116px;width:100%;padding:20px 19px;border:1px solid #c3c4ad;border-radius:10px;background:#fffdf5;color:var(--cast-ink);box-shadow:0 3px 0 #35452c05;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.cast-cards-country:hover{border-color:var(--cast-gold);background:#fffefb;box-shadow:0 8px 23px #334c2c10}
.cast-cards-button-copy{display:flex;flex-direction:column;gap:6px;min-width:0;grid-column:1/-1}
.cast-cards-country-code{font:500 25px/1.1 Georgia,serif;letter-spacing:.08em;color:var(--cast-ink)}
.cast-cards-country-name{font-size:11px;line-height:1.5;color:var(--cast-muted);overflow-wrap:anywhere}
.cast-cards-button-note{font-size:11px;line-height:1.6;color:var(--cast-ink);overflow-wrap:anywhere}
.cast-cards-button-arrow{font-size:22px;line-height:1;color:var(--cast-gold)}
.cast-cards-list-status{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:12px;line-height:1.6;color:var(--cast-muted)}
.cast-cards-list-retry{padding:7px 10px;min-height:36px;border:1px solid var(--cast-line);border-radius:6px;color:var(--cast-ink);background:var(--cast-paper);font:inherit;cursor:pointer}
.cast-cards-dialog{width:min(1440px,96vw);max-width:96vw;height:min(88dvh,calc(54vw + 124px));max-height:92dvh;min-height:0;inset:0;margin:auto;padding:0;border:1px solid #b8b399;border-radius:14px;background:var(--cast-paper);box-shadow:0 24px 100px #07160dad;overflow:hidden;overscroll-behavior:contain}
.cast-cards-dialog[open]{display:flex;flex-direction:column}
.cast-cards-dialog::backdrop{background:#0c1913dd;backdrop-filter:blur(6px)}
.cast-cards-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 21px;border-bottom:1px solid var(--cast-line);flex:0 0 auto}
.cast-cards-dialog-heading{min-width:0}
.cast-cards-dialog-country{font-size:10px;line-height:1.5;letter-spacing:.07em;color:var(--cast-gold)}
.cast-cards-dialog-heading h2{font-family:var(--serif,Georgia,"Noto Serif KR",serif);font-size:22px;font-weight:500;line-height:1.4;letter-spacing:-.025em;margin:4px 0 0;overflow-wrap:anywhere}
.cast-cards-dialog button{color:var(--cast-ink);background:var(--cast-paper);border:1px solid var(--cast-line);border-radius:7px;cursor:pointer;flex-shrink:0;font-family:Arial,"Noto Sans KR",sans-serif}
.cast-cards-dialog .cast-cards-close{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;font-size:29px;line-height:1}
.cast-cards-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 21px;border-bottom:1px solid var(--cast-line);flex:0 0 auto;background:#f8f6ed}
.cast-cards-hint{font-size:11px;line-height:1.6;color:var(--cast-muted);margin:0;max-width:580px}
.cast-cards-zoom{display:flex;align-items:center;gap:5px;flex-shrink:0}
.cast-cards-zoom button{min-height:38px;min-width:38px;padding:5px 10px;font-size:20px;line-height:1}
.cast-cards-zoom .cast-cards-fit{font-size:11px;line-height:1.3;max-width:90px;padding:7px 10px}
.cast-cards-zoom-level{min-width:48px;max-width:68px;text-align:center;color:var(--cast-ink);font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
.cast-cards-dialog button:disabled{opacity:.42;cursor:default}
.cast-cards-dialog button:not(:disabled):hover{background:#ececdd;border-color:var(--cast-gold)}
.cast-cards-stage{position:relative;flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:auto;scroll-behavior:auto;background:#e9e6db;background-image:linear-gradient(45deg,#eeece2 25%,transparent 25%),linear-gradient(-45deg,#eeece2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eeece2 75%),linear-gradient(-45deg,transparent 75%,#eeece2 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;scrollbar-width:thin;scrollbar-color:#a3a28c #eeeade}
.cast-cards-canvas{display:grid;place-items:center;min-width:100%;min-height:100%;box-sizing:border-box}
.cast-cards-artwork{display:block;max-width:none!important;max-height:none!important;object-fit:contain;object-position:center;flex-shrink:0;box-shadow:0 3px 19px #2c351d20;user-select:none;-webkit-user-drag:none;pointer-events:none;touch-action:auto}
.cast-cards-stage.is-zoomed{cursor:grab}
.cast-cards-stage.is-dragging{cursor:grabbing;user-select:none}
.cast-cards-message{height:100%;min-height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:15px;padding:22px;box-sizing:border-box;background:var(--cast-cream);color:var(--cast-muted)}
.cast-cards-message p{margin:0;font-size:13px;line-height:1.9;max-width:440px}
.cast-cards-dialog .cast-cards-retry{padding:10px 18px;min-height:44px;font-size:12px}
.cast-cards button:focus-visible,.cast-cards-dialog button:focus-visible{outline:3px solid #647d4f;outline-offset:3px}
.cast-cards-stage:focus-visible{outline:3px solid #647d4f;outline-offset:-3px}
html.cast-cards-modal-open,body.cast-cards-modal-open{overflow:hidden;overscroll-behavior:none}
.cast-cards [hidden],.cast-cards-dialog [hidden]{display:none!important}
@media(max-width:980px){.cast-cards{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);padding:28px;gap:22px}.cast-cards-toolbar{gap:10px}.cast-cards-hint{font-size:10px}}
@media(max-width:680px){.cast-cards{grid-template-columns:1fr;padding:25px 22px;gap:22px;margin-top:27px}.cast-cards .cast-cards-title{font-size:25px}.cast-cards .cast-cards-lead{max-width:100%}.cast-cards-country{min-height:112px;padding:18px}.cast-cards-dialog{width:96vw;max-width:96vw;border-radius:10px;height:min(90dvh,84vw)}.cast-cards-dialog-header{padding:10px 14px;gap:10px}.cast-cards-dialog-heading h2{font-size:19px;margin-top:3px}.cast-cards-dialog-country{font-size:9px}.cast-cards-toolbar{justify-content:center;padding:7px 10px}.cast-cards-hint{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.cast-cards-zoom{gap:6px}.cast-cards-zoom button{min-height:42px;min-width:42px}.cast-cards-zoom .cast-cards-fit{min-width:70px}.cast-cards-message p{font-size:12px}}
@media(max-width:350px){.cast-cards{padding:22px 16px}.cast-cards-buttons{gap:9px}.cast-cards-country{padding:15px 12px}.cast-cards-country-code{font-size:23px}.cast-cards-country-name,.cast-cards-button-note{font-size:10px}.cast-cards-dialog-heading h2{font-size:17px}.cast-cards-dialog-header{padding:8px 10px}.cast-cards-zoom{gap:3px}.cast-cards-zoom-level{min-width:43px}}
@media(max-height:430px) and (min-width:560px){.cast-cards-dialog{height:94dvh;max-height:94dvh}.cast-cards-dialog-header{padding:6px 14px}.cast-cards-dialog-heading h2{font-size:17px;display:inline;margin-left:10px}.cast-cards-dialog-country{font-size:9px}.cast-cards-dialog .cast-cards-close{height:36px;min-height:36px;width:38px;min-width:38px}.cast-cards-toolbar{padding:3px 14px}.cast-cards-zoom button{min-height:32px}.cast-cards-hint{font-size:10px}}
@media(prefers-reduced-motion:reduce){.cast-cards-country{transition:none}}
@media(forced-colors:active){.cast-cards,.cast-cards-dialog,.cast-cards-stage,.cast-cards-message{background:Canvas;color:CanvasText}.cast-cards-country,.cast-cards-dialog button{border-color:ButtonText}.cast-cards-artwork{forced-color-adjust:none}.cast-cards-dialog::backdrop{background:#000c}}
/* 159: a compact, stable toolbar lets the window follow the artwork ratio. */
.cast-cards-dialog .cast-cards-dialog-heading{flex:1;min-width:0}
.cast-cards-dialog .cast-cards-dialog-country{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cast-cards-dialog .cast-cards-dialog-heading h2{display:block;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cast-cards-dialog .cast-cards-toolbar{justify-content:center}
.cast-cards-dialog .cast-cards-hint{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
