/* Character edition: paper dossiers, portrait selection and a theatrical display. */
.identity-select{width:100%;display:flex;align-items:center;gap:12px;padding:7px 12px 7px 7px;border:1px solid #252d3340;border-left:4px solid var(--look);background:#fffaeb;box-shadow:2px 3px 0 #252d3314;text-align:left;transition:background .15s}
.identity-select:hover{background:#fffdf5}.identity-select>img{width:57px;height:57px;object-fit:contain;background:color-mix(in srgb,var(--look) 12%,#f5eddb);border-radius:50%}
.identity-select>span{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:2px 9px}.identity-select small{grid-column:1/-1;font-size:9px;color:#8b7f6c;letter-spacing:1px}.identity-select b{font-size:18px;letter-spacing:2px}.identity-select em{font-style:normal;font-size:9px;color:var(--look)}.identity-select>i{margin-left:auto;font-style:normal;font-size:10px;color:#746853;white-space:nowrap}.cast-quip{font-size:10px;color:#87765f;margin:8px 0 18px;padding-left:11px;letter-spacing:.5px}
#poster-note.cast-stage{right:3vw;bottom:5vh;width:min(37vw,430px);max-width:none;padding:21px 18px 15px;text-align:center;background:linear-gradient(150deg,#fff9e7ee,#f4e4c3ee);border:1px solid #fbf4df;outline:1px solid #252d3340;outline-offset:-9px;box-shadow:8px 12px 0 #252d3321;transform:rotate(2deg);overflow:hidden}
#poster-note.cast-stage>span{position:relative;z-index:2;display:block;font:10px monospace;letter-spacing:2px;color:#8a785e}
#poster-note.cast-stage>img{position:relative;z-index:1;display:block;width:100%;height:clamp(260px,42vh,430px);object-fit:contain;margin:13px 0 0;filter:drop-shadow(5px 7px 0 #252d331c);transform:rotate(-2deg)}
#poster-note.cast-stage>b{position:relative;z-index:2;font-size:27px;letter-spacing:8px;margin:2px 0 5px;font-family:'Microsoft JhengHei',sans-serif}
#poster-note.cast-stage>small{display:block;font-size:10px;letter-spacing:2px;color:#7d6b55}
#poster-note.cast-stage>p{font-size:8px;color:#8c7b62;border-top:1px dashed #baa68a;padding-top:12px;margin:17px 0 0;line-height:1.8}
#poster-note.cast-stage .stage-orbit{position:absolute;inset:15% 5% 20%;border:1px solid #bdb09070;border-radius:50%;transform:rotate(-24deg);background:radial-gradient(ellipse,color-mix(in srgb,var(--look) 16%,transparent),transparent 72%)}
#poster-note.cast-stage .stage-stamp{position:absolute;right:13px;bottom:120px;z-index:2;color:#bf5641;border:4px double #bf5641;padding:8px;font:900 22px/1.15 'SimSun',serif;letter-spacing:3px;transform:rotate(-12deg);opacity:.8}
.person>img{width:33px;height:33px;object-fit:contain;border-bottom:2px solid var(--look);flex:none}.person{padding:3px 8px}.person.mine{background:#fff9e7}.person.holding{background:#f9ceb6}
.cast-card{width:min(1000px,100%);padding:27px 30px 18px;max-height:92dvh}.cast-heading{padding-right:24px}.cast-heading h2{font-size:30px;letter-spacing:2px;margin-bottom:6px}.cast-heading>p:last-child{margin:0 0 18px;font-size:10px}
.cast-layout{display:grid;grid-template-columns:235px 1fr;gap:27px}.cast-preview{position:relative;display:flex;flex-direction:column;align-items:flex-start;border-right:1px dashed #b4a182;padding-right:25px}.portrait-well{width:100%;height:255px;background:radial-gradient(ellipse,#e8dcc1 1%,transparent 68%);border-bottom:1px solid #c7b797}.portrait-well img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(4px 5px 0 #252d3315)}
.party-chip{font-size:9px;color:var(--look);padding:4px 8px;border:1px solid var(--look);border-radius:2px;display:inline-block;margin-top:12px;background:#fff8e8}.cast-preview h3{font-size:25px;letter-spacing:4px;margin:8px 0 3px}.cast-preview>p{font-size:10px;line-height:1.7;margin:4px 0;color:#8a795e}.cast-preview blockquote{font-family:'SimSun',serif;font-size:13px;font-weight:bold;margin:11px 0 0;color:#594b38;border-left:2px solid #c18b4d;padding-left:9px;line-height:1.6}.cast-preview .primary{font-size:12px;padding:11px 6px;box-shadow:3px 3px 0 var(--ink);margin:17px 0 10px;white-space:nowrap}.cast-preview>a{font-size:9px;color:var(--blue);text-underline-offset:3px}
.cast-collection{min-width:0}.cast-filters{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 14px}.cast-filters button{border:1px solid #ae997c;background:#fff8e8;border-radius:20px;padding:6px 12px;font-size:10px;white-space:nowrap}.cast-filters button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}.cast-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;max-height:445px;overflow-y:auto;scrollbar-width:thin;padding:3px 4px 8px}
.cast-tile{position:relative;min-width:0;padding:8px 3px 7px;background:#fff9ea;border:1px solid #b8a98d;box-shadow:2px 3px 0 #252d3312;text-align:center;transition:transform .15s,background .15s}.cast-tile:hover{transform:translateY(-2px);background:#fffefa}.cast-tile img{display:block;width:100%;height:78px;object-fit:contain}.cast-tile b{display:block;font-size:11px;letter-spacing:1px;margin-top:4px;white-space:nowrap}.cast-tile small{display:block;font-size:8px;color:var(--look);margin-top:3px}.cast-tile.selected{border:2px solid var(--look);background:color-mix(in srgb,var(--look) 10%,#fffaed);padding:7px 2px 6px}.cast-tile.selected:after{content:'✓';position:absolute;top:4px;right:5px;color:var(--look);font-size:12px;font-weight:bold}.cast-footnote{font-size:8px!important;line-height:1.7!important;margin:18px 0 0;padding-top:10px;border-top:1px dashed #bba68a;display:flex;justify-content:space-between;gap:12px}.cast-footnote a{color:var(--blue);white-space:nowrap}
@media(max-width:1050px){.cast-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cast-layout{grid-template-columns:210px 1fr;gap:20px}.cast-preview{padding-right:20px}.portrait-well{height:240px}}
@media(max-height:780px) and (min-width:760px){#poster-note.cast-stage{bottom:4vh}#poster-note.cast-stage>img{height:37vh}.identity-select{padding-top:5px;padding-bottom:5px}.identity-select>img{width:47px;height:47px}.cast-quip{margin-bottom:14px}.portrait-well{height:200px}.cast-grid{max-height:350px}.cast-preview h3{font-size:22px}.cast-heading h2{font-size:26px}}
@media(max-width:759px){.identity-select>img{width:51px;height:51px}.identity-select b{font-size:17px}.cast-quip{margin-bottom:16px}.person>img{width:27px;height:27px}.person{padding:2px 2px}.cast-card{padding:24px 17px 16px}.cast-heading h2{font-size:25px;letter-spacing:1px}.cast-heading>p:last-child{font-size:9px;line-height:1.7;margin-bottom:12px}.cast-layout{display:flex;flex-direction:column;gap:15px}.cast-preview{display:grid;grid-template-columns:116px 1fr;column-gap:14px;align-items:start;border:0;border-bottom:1px dashed #b4a182;padding:0 0 14px}.portrait-well{grid-column:1;grid-row:1/7;height:181px;border:0}.cast-preview .party-chip{grid-column:2;margin-top:3px;justify-self:start}.cast-preview h3{grid-column:2;font-size:22px;margin:6px 0 2px}.cast-preview>p{grid-column:2;font-size:8px;line-height:1.6;margin:0}.cast-preview blockquote{grid-column:2;font-size:10px;margin:7px 0}.cast-preview .primary{grid-column:2;margin:4px 0 8px;padding:9px 2px;font-size:10px;white-space:normal}.cast-preview>a{grid-column:2;font-size:8px}.cast-filters{gap:5px;margin:0 0 10px}.cast-filters button{font-size:9px;padding:5px 9px}.cast-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:280px}.cast-tile img{height:61px}.cast-tile b{font-size:10px;letter-spacing:0}.cast-tile small{font-size:7px}.cast-footnote{display:block;margin-top:12px;font-size:7px!important}.cast-footnote a{display:block;margin-top:6px}}
@media(max-width:360px){.cast-layout{gap:10px}.cast-preview{grid-template-columns:99px 1fr;gap:3px 10px}.portrait-well{height:168px}.cast-preview h3{font-size:19px}.cast-tile img{height:51px}.cast-filters button{padding:5px 7px;font-size:8px}.cast-card{padding-left:14px;padding-right:14px}.cast-grid{gap:5px}}
@media(max-width:759px) and (max-height:650px){.identity-select>img{width:42px;height:42px}.identity-select b{font-size:15px}.cast-quip{display:none}.identity-select{margin-bottom:15px}.cast-grid{max-height:205px}.cast-heading h2{font-size:22px}.cast-heading>p:last-child{font-size:8px}.portrait-well{height:161px}}
