@font-face{font-family:'Nocte UI';src:url('/assets/fonts/PretendardVariable.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Nocte Serif';src:url('/assets/fonts/PretendardVariable.woff2') format('woff2');font-weight:400;font-display:swap}
:root{color-scheme:dark;--bg:#080f0d;--surface:#10221b;--raised:#1a3026;--text:#e8eee7;--muted:#a4b5a8;--line:#476455;--accent:#c1dac8;--gold:#c5b899;--stage:#07100c;--silver:#a1beb0;--edge:#597966;--button-top:#233e30;--button-bottom:#14271d;--button-shadow:#020a06;--highlight:#e8fff133}
html[data-theme=light]{color-scheme:light;--bg:#edf2f3;--surface:#f7faf9;--raised:#e0ebe5;--text:#213b2c;--muted:#5b7364;--line:#a9bfb1;--accent:#284e37;--gold:#756242;--stage:#e2ece5;--silver:#789987;--edge:#587d66;--button-top:#fff;--button-bottom:#e3ede6;--button-shadow:#b5c6b9;--highlight:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth;scrollbar-gutter:stable}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 'Nocte UI',sans-serif}body.viewer-open{overflow:hidden}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;color:inherit;min-height:44px;padding:10px 15px;border:1px solid var(--edge);border-radius:9px;background:linear-gradient(165deg,var(--button-top),var(--button-bottom));box-shadow:inset 0 1px 0 var(--highlight),0 3px 0 var(--button-shadow),0 6px 12px #0002;transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .2s,border-color .2s;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:8px}
button:hover:not(:disabled){border-color:var(--silver);transform:translateY(-2px);box-shadow:inset 0 1px 0 var(--highlight),0 5px 0 var(--button-shadow),0 9px 16px #0003}button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 3px #0003,0 1px 0 var(--button-shadow)}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,p{margin:0}h2{font-size:19px;font-weight:600;letter-spacing:-.03em}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.symbols{position:absolute;width:0;height:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}.skip{position:fixed;top:-60px;left:20px;z-index:10;padding:10px;background:var(--raised)}.skip:focus{top:10px}
header,main,footer{max-width:1120px;margin:auto;padding-inline:40px}header{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{font:22px/1.1 Georgia,serif;letter-spacing:2px}.brand span{font-weight:400;color:var(--muted)}.brand small{display:block;font:9px 'Nocte UI',sans-serif;letter-spacing:1px;margin-top:9px;color:var(--muted)}header nav{display:flex;align-items:center;gap:20px;font-size:12px;color:var(--muted)}.icon{width:44px;height:44px;padding:10px}.intro{text-align:center;padding:28px 0 24px}.eyebrow{font-size:10px;letter-spacing:.25em;color:var(--gold);margin-bottom:12px}h1{font:400 clamp(26px,3.1vw,32px)/1.5 'Nocte Serif',serif;letter-spacing:-.035em;font-synthesis:none}.intro>p:last-of-type{color:var(--muted);font-size:12px;line-height:1.7;margin-top:8px}.counts{display:flex;justify-content:center;align-items:baseline;gap:9px;margin-top:21px;color:var(--muted);font-size:14px}.counts strong{font-weight:500;font-size:28px;color:var(--text);line-height:1}.counts small{font-size:11px;margin-left:7px}
.collection{max-width:1040px;margin:auto;scroll-margin-top:24px}.collection-heading{display:grid;justify-items:center;gap:5px;text-align:center}.collection-heading>span{font-size:11px;color:var(--muted)}.legend{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:16px 0 25px}.legend span{display:flex;align-items:center;gap:6px}.legend b{font-weight:500;color:var(--text)}.legend i{width:5px;height:5px;border-radius:50%;display:inline-block}.relief{background:#9ebbab}.depth{background:#869eb4}.magician{background:#c6ab75}.filters{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.filters button{font-size:13px;min-width:64px;color:var(--muted)}.filters [aria-pressed=true]{border-color:var(--silver);background:linear-gradient(165deg,#e0eee3,#a5c6b2);color:#183e2a;box-shadow:inset 0 1px 0 #fff9,0 3px 0 var(--edge),0 7px 15px #0003}.search{position:relative;display:block;max-width:470px;margin:14px auto 0;border:1px solid var(--edge);border-radius:7px;padding:0 38px;color:var(--muted);background:linear-gradient(180deg,var(--bg),var(--surface));box-shadow:inset 0 2px 5px #0002,0 1px 0 var(--highlight)}.search>svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:18px;height:18px}.search input{border:0;background:none;color:var(--text);width:100%;padding:10px 4px;min-height:44px;font-size:13px;min-width:0;text-align:center}.search input::placeholder{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 18px}.card-tile{display:flex;flex-direction:column;min-width:0;padding:8px 8px 10px;gap:0;border:1px solid var(--line);border-radius:11px;background:linear-gradient(150deg,var(--surface),var(--button-bottom));text-align:center;box-shadow:inset 0 1px 0 var(--highlight),0 4px 0 var(--button-shadow),0 9px 20px #0002}.tile-image{width:100%;aspect-ratio:2/3;background:var(--stage);border-radius:6px;position:relative;overflow:hidden;border:1px solid var(--silver);box-shadow:0 3px 8px #0004}.tile-image img{display:block;width:100%;height:100%;object-fit:contain}.card-tile[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent),0 4px 0 var(--button-shadow)}.tile-name{display:block;width:100%;font-size:14px;font-weight:550;margin:0 0 4px;overflow-wrap:anywhere;line-height:1.4}.tile-kind{display:block;font-size:10px;color:var(--muted)}.tile-open{display:flex;justify-content:center;align-items:center;gap:5px;width:100%;padding-top:9px;margin-top:9px;border-top:1px solid var(--line);font-size:11px;color:var(--accent)}.tile-open svg{width:13px;height:13px}.tile-image .marker{position:absolute;left:4px;bottom:4px;font-size:9px;background:#14251ee8;color:#e2ddc5;padding:2px 5px;border-radius:3px}.void{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:10px;color:var(--muted);font-size:10px}.about{max-width:680px;margin:28px auto 0;border:1px solid var(--edge);border-radius:9px;padding:8px 20px;background:linear-gradient(145deg,var(--surface),var(--bg));box-shadow:inset 0 1px 0 var(--highlight);color:var(--muted);font-size:12px}.about summary{cursor:pointer;color:var(--text);min-height:44px;text-align:center}.about p{margin-top:15px;line-height:1.9}.about b{font-weight:550;color:var(--text)}#empty{padding:35px 0;color:var(--muted);font-size:13px;text-align:center}footer{display:grid;gap:7px;text-align:center;font-size:10px;color:var(--muted);letter-spacing:.08em;padding-block:40px}
.motion-dialog{width:min(560px,calc(100vw - 36px));height:min(1000px,calc(100dvh - 32px));max-width:none;max-height:none;margin:auto;padding:0;overflow:hidden;color:var(--text);border:3px solid var(--silver);border-radius:16px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--highlight),0 2px 0 var(--edge),0 30px 100px #0009;isolation:isolate}.motion-dialog[open]{animation:viewer-arrive .26s cubic-bezier(.16,1,.3,1) both}.motion-dialog::backdrop{background:#020a07d6;backdrop-filter:blur(9px);animation:backdrop-arrive .22s ease-out both}.player{height:100%;padding:15px 20px 13px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;background:linear-gradient(145deg,var(--surface),var(--bg));text-align:center}.player-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;flex-shrink:0;min-height:44px}.player-heading .badge{justify-self:start}.player-heading .icon{justify-self:end;width:40px;min-width:44px}.badge{font-size:10px;color:var(--accent);border:1px solid var(--line);padding:5px 9px;border-radius:5px}#position{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}.reverse{transform:rotate(180deg)}.viewer-stage{position:relative;display:grid;place-items:center;flex:none;width:100%}.screen{flex:none;width:min(calc(100% - 48px),calc((100dvh - 305px)*.75),465px);aspect-ratio:3/4;min-height:0;border:2px solid var(--edge);border-radius:9px;overflow:hidden;position:relative;background:var(--stage);box-shadow:inset 0 0 0 1px var(--silver),0 4px 16px #0003;touch-action:pan-y}.screen iframe{visibility:hidden;display:block;width:100%;height:100%;position:absolute;inset:0;border:0}.screen iframe.embedded-ready{visibility:visible}.screen .static-art{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:contain;padding:10px}.placeholder{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--muted);gap:16px;text-align:center;min-height:200px}.placeholder svg{width:40px;height:40px;opacity:.4}.player-copy{flex-shrink:0;text-align:center;padding:10px 22px 9px;margin-top:3px}.player-copy h2{font:400 22px/1.4 'Nocte Serif',serif;font-synthesis:none;letter-spacing:-.03em}.english{font:10px/1.4 Georgia,serif;letter-spacing:.1em;color:var(--muted);margin-top:3px}#play-status{font-size:10px;line-height:1.5;color:var(--accent);margin-top:3px}.fixed{font-size:10px;color:var(--gold)}.stage-arrow{position:absolute;z-index:2;top:calc(50% - 26px);width:44px;height:52px;min-height:44px;padding:0;border-color:var(--silver);border-radius:22px;background:linear-gradient(150deg,var(--button-top),var(--button-bottom));box-shadow:inset 0 1px 0 var(--highlight),0 3px 0 var(--button-shadow),0 5px 12px #0005}.stage-previous{left:0}.stage-next{right:0}.stage-arrow svg{width:22px;height:22px}.controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex-shrink:0;font-size:11px}.controls button{min-height:44px;padding:6px 4px;border-radius:7px;box-shadow:inset 0 1px 0 var(--highlight),0 2px 0 var(--button-shadow)}.controls #play{background:linear-gradient(165deg,#e0eee3,#a5c6b2);color:#183e2a;border-color:var(--silver);font-weight:600}.viewer-options{flex:none;width:100%}.viewer-options .controls{margin-top:0}.viewer-options summary{display:flex;align-items:center;justify-content:center;gap:7px;width:max-content;margin:auto;cursor:pointer;color:var(--text);font-size:11px;min-height:44px;list-style:none;padding:7px 16px;border:1px solid var(--edge);border-radius:22px;background:linear-gradient(165deg,var(--button-top),var(--button-bottom));box-shadow:inset 0 1px 0 var(--highlight),0 2px 0 var(--button-shadow)}.hint{font-size:10px;color:var(--muted);line-height:1.7;text-align:center}#viewer-help{flex-shrink:0}
@keyframes viewer-arrive{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}@keyframes backdrop-arrive{from{opacity:0}to{opacity:1}}
@media(min-width:768px) and (max-width:1023px){header,main,footer{padding-inline:28px}.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:21px 15px}.motion-dialog{width:min(560px,calc(100vw - 40px))}}
@media(max-width:767px){header,main,footer{padding-inline:18px}header{height:78px;gap:12px}.brand{font-size:18px}header nav{gap:12px;font-size:11px}.intro{padding:23px 0 20px}.intro>p:last-of-type{font-size:12px}.eyebrow{font-size:9px}.counts{margin-top:16px}.legend{gap:15px;font-size:10px}.filters{gap:9px 7px}.filters button{min-width:calc((100% - 14px)/3);font-size:12px;padding:8px}.search{margin-block:14px 0}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}.card-tile{padding:5px 5px 8px;border-radius:8px}.tile-name{font-size:12px;margin-top:0}.tile-kind{font-size:9px}.tile-open{font-size:10px;margin-top:7px;padding-top:7px}.tile-image .marker{font-size:8px}.motion-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:12px}.player{padding:10px;gap:8px}.player-copy h2{font-size:22px}.english{font-size:10px}.controls{gap:6px;font-size:11px}.controls button{min-height:44px}.hint{font-size:9px}#viewer-help{max-width:290px;margin-inline:auto}.player-heading{gap:7px}.badge{font-size:9px;padding:4px 7px}.collection-heading h2{font-size:18px}}
@media(max-width:359px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.tile-name{font-size:13px}.counts small{font-size:10px}.player{padding:8px}.controls{gap:4px;font-size:10px}}

/* Silverwork shared with the reading frames; compact information hierarchy. */
:root{--metal-hi:#e6f0e9;--metal-mid:var(--silver);--metal-edge:var(--edge);--metal-shadow:#020b07b3}
html[data-theme=light]{--metal-hi:#fff;--metal-shadow:#264b3433}
.ornate-panel{position:relative;isolation:isolate;border:2px solid var(--silver);border-radius:9px;background:linear-gradient(145deg,var(--surface),var(--bg));box-shadow:inset 0 0 0 1px var(--highlight),0 2px 0 var(--button-shadow),0 8px 20px #0002}
.panel-ornament{position:absolute;inset:0;z-index:2;pointer-events:none}
.panel-ornament:before{content:'';position:absolute;inset:4px;border:1px solid var(--edge);border-radius:4px;opacity:.65}
.panel-corner{position:absolute;width:29px;height:29px;fill:none;stroke:none;overflow:visible}
.panel-corner.tl{left:-5px;top:-5px}.panel-corner.tr{right:-5px;top:-5px;transform:scaleX(-1)}.panel-corner.br{right:-5px;bottom:-5px;transform:scale(-1)}.panel-corner.bl{left:-5px;bottom:-5px;transform:scaleY(-1)}
.panel-crest{position:absolute;width:52px;height:13px;left:calc(50% - 26px);top:-8px;background:var(--surface);fill:none;stroke:none}
.browse-panel{max-width:680px;margin:0 auto 24px;padding:19px 22px 17px}
.result-count{display:block;width:max-content;margin:0 auto 17px;padding:2px 10px;border:1px solid var(--line);border-radius:20px;background:var(--surface);font-size:11px;color:var(--muted)}.result-count:empty{display:none}
.tile-copy{display:block;width:100%;margin-top:7px;padding:10px 5px 2px;border:1px solid var(--line);border-radius:5px;background:linear-gradient(160deg,var(--raised),var(--surface));box-shadow:inset 0 1px 0 var(--highlight)}
.player-copy .fixed{position:absolute;right:12px;top:-7px;background:var(--surface);padding:0 5px;font-size:9px}
.viewer-options summary::-webkit-details-marker{display:none}.viewer-options summary:hover{background:var(--raised)}
.options-chevron{width:13px;height:13px;transform:rotate(90deg);transition:transform .2s}.viewer-options[open] .options-chevron{transform:rotate(-90deg)}
.options-body{margin-top:8px;padding:9px;border:1px solid var(--line);border-radius:9px;background:linear-gradient(150deg,var(--surface),var(--bg));box-shadow:inset 0 1px 0 var(--highlight)}
#viewer-help{font-size:9px;letter-spacing:.02em}
@media(max-width:767px){.browse-panel{padding:17px 14px 15px;margin-bottom:22px}.tile-copy{margin-top:6px;padding:8px 3px 2px}.player-copy{padding:10px 22px 9px}.panel-corner{width:26px;height:26px}.about{padding-inline:15px}}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}button:hover:not(:disabled),button:active:not(:disabled){transform:none}}

/* A single, uninterrupted card surface; playback state survives entering/exiting. */
.focus-close{display:none}
#expand-view svg{width:14px;height:14px}
html[data-card-focus=true]{scrollbar-gutter:auto}
.motion-dialog.card-focus{position:fixed;inset:0;width:100dvw;height:100dvh;margin:0;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none;background:var(--stage);animation:none}
.card-focus .player{position:relative;width:100%;height:100%;padding:0;gap:0;overflow:hidden;background:var(--stage)}
.card-focus :is(.player-heading,.player-copy,.viewer-options,#viewer-help){display:none}
.card-focus .viewer-stage{width:100%;height:100%;flex:1;min-height:0}
.card-focus .screen{width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none}
.card-focus .focus-close{display:inline-flex;position:absolute;z-index:5;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:44px;height:44px;padding:10px;border:1px solid #c1dac84d;border-radius:50%;background:#07100c99;color:#edf4ee;box-shadow:0 2px 10px #0003;backdrop-filter:blur(6px)}
.card-focus .stage-arrow{background:transparent;color:var(--accent);border:0;box-shadow:none;text-shadow:0 1px 5px #000;top:calc(50% - 26px)}
.card-focus .stage-previous{left:max(2px,env(safe-area-inset-left))}.card-focus .stage-next{right:max(2px,env(safe-area-inset-right))}

/* Daily results reuse this viewer, scoped to the card already drawn today. */
html[data-embedded=daily]{scrollbar-gutter:auto;overflow:hidden}
html[data-embedded=daily] body{background:transparent}
html[data-embedded=daily] body>:is(header,main,footer,.skip){display:none}
html[data-embedded=daily] .motion-dialog::backdrop{background:transparent;backdrop-filter:none}
html[data-embedded=daily] :is(#position,.stage-arrow){display:none}
html[data-embedded=daily] .player-heading .icon{grid-column:3}
