/* v57.63 開局劇本 (presets-ui.mjs): 劇本 sits left of ☰ in the select header, a plate like it (select.css #select .team-entry button); its list
   is ☰'s menu panel (.select-menu-list), its items a name, the map and the sides, and who the person plays */
#select .team-entry .preset-toggle{letter-spacing:.08em}
.preset-list{min-width:0;width:min(300px,calc(100vw - 32px))}
#select .preset-list .preset-item{display:grid;gap:3px;justify-items:start;text-align:left;width:100%;min-height:0;padding:10px 12px;line-height:1.35;white-space:normal}
.preset-item strong{font-size:16px;font-weight:900;color:var(--paper,#f6f0d6)}
.preset-item span{font-size:12px;font-weight:700;color:#cfe3dc}
.preset-item small{font-size:11px;font-weight:700;color:#ffe397}
/* a phone held upright: ☰ floats over the title group's right end (select.css keeps 58 px of the group free for it); 劇本 needs as much again */
@media (min-width:360px) and (max-width:899px) and (orientation:portrait){#select .select-heading:has(.has-presets) .select-title-group{padding-right:116px}}
/* v57.64 a preset's front page (presets-ui.mjs #preset-news): result-news.css's newspaper, the page and the dock with 開打 beside it (the dock
   under it on a phone held upright). Its masthead, tally and caption are result-news.css's own unscoped rules; the page, print and fold below
   are #result.newspaper's, for this sheet */
#preset-news{--news-gap:18px;--news-top:max(var(--news-gap),env(safe-area-inset-top));--news-bottom:max(var(--news-gap),env(safe-area-inset-bottom));padding:var(--news-top) max(var(--news-gap),env(safe-area-inset-right)) var(--news-bottom) max(var(--news-gap),env(safe-area-inset-left));background:#182322ee;overflow:hidden;z-index:9}
#preset-news .menu-panel{display:grid;grid-template-columns:minmax(0,620px) minmax(230px,300px);grid-template-rows:minmax(0,1fr);align-items:center;justify-content:center;gap:34px;width:100%;max-width:1040px;height:calc(100dvh - var(--news-top) - var(--news-bottom));max-height:none;padding:0;border:0;border-image:none;border-radius:0;background:none;color:#28251f;filter:none;overflow:visible;box-shadow:none;text-align:left}
#preset-news .news-body{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;height:100%;overflow:visible}
#preset-news .news-front{--paper-tilt:-.8deg;position:relative;isolation:isolate;transform:rotate(var(--paper-tilt));container-type:inline-size;flex:none;aspect-ratio:4/5;box-sizing:border-box;display:flex;flex-direction:column;gap:0;padding:3.8%;background:#f0e9d9;color:#28251f;border:1px solid #a79980;box-shadow:0 22px 45px -10px #000b,2px 3px 0 #d6ccb7,4px 5px 0 #9b907b,inset 0 0 28px #80633318;overflow:hidden}
#preset-news .news-front::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background-image:url('ui/news-grain.svg'),linear-gradient(90deg,transparent 48.8%,#63503a0a 49.7%,#fff9e824 50.1%,transparent 51.3%),linear-gradient(0deg,transparent 49%,#63503a0d 49.8%,#fff9e830 50.15%,transparent 51.2%);background-size:180px 180px,100% 100%,100% 100%;mix-blend-mode:multiply;opacity:.65}
#preset-news .news-photo::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(#30271b 0.55px,transparent .85px) 0 0/3px 3px;mix-blend-mode:multiply;opacity:.13}
html[lang='en'] #preset-news .news-brand{font-size:7cqw;letter-spacing:0}
#preset-news .news-headline{flex:none;font:900 11cqw/1.1 "Songti TC",Georgia,serif;color:#29251f;letter-spacing:-.025em;margin:2cqw 0 1.5cqw;text-shadow:none;font-style:normal}
#preset-news .news-meta{flex:none;display:flex;align-items:baseline;justify-content:space-between;gap:2cqw;margin-top:1.8cqw;color:#756957}
#preset-news .news-date,#preset-news .news-where{flex:none;white-space:nowrap;font:600 2.5cqw/1.3 system-ui}#preset-news .news-where{font-weight:700;text-align:right}
#preset-news .news-deck{flex:none;font:600 3.2cqw/1.45 system-ui;color:#51483b;margin:0 0 2cqw}
#preset-news .news-photo{flex:1;min-height:0;position:relative;margin:0;border:1px solid #635442;background:#b8a48a;overflow:hidden}
#preset-news .news-picture{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.65) sepia(.15) brightness(1.1)}
#preset-news .news-stamp{position:absolute;right:3cqw;top:2.5cqw;padding:.7cqw 2cqw;border:4px double #9f3426;background:#f3ecdcf0;color:#9f3426;font:900 7cqw/1.25 "Songti TC",Georgia,serif;transform:rotate(-9deg)}
/* the dock: skin.css's gold primary for 開打 and navy secondary for 回到選角, on result-news.css's glass */
#preset-news .news-dock{position:relative;align-self:center;display:flex;flex-direction:column;gap:8px;width:100%;box-sizing:border-box;padding:14px;border:1px solid #88b3a845;border-radius:20px;background:#0b1e24db;backdrop-filter:blur(16px);box-shadow:0 12px 36px #0007}
#preset-news .news-dock .primary{width:100%;min-height:60px;margin:0;padding:10px 15%;font-size:20px;white-space:normal}
#preset-news .news-dock .secondary{width:100%;min-height:44px;margin:0;padding:8px 12px;font-size:13px;white-space:normal}
#preset-news .news-x{position:absolute;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));z-index:2;width:44px;height:44px;min-height:0;margin:0;padding:0;border:1px solid #88b3a855;border-radius:50%;background:#0b1e24cc;color:#e9ebd8;font:700 18px/1 system-ui;box-shadow:none}
#preset-news .news-x:focus-visible,#preset-news .news-dock button:focus-visible{outline:3px solid #ffe9a8;outline-offset:2px}
@media(max-width:700px) and (orientation:portrait){
 #preset-news{--news-gap:10px}
 #preset-news .menu-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:16px;max-width:520px}
 #preset-news .news-front{padding:3.5%;--paper-tilt:-.4deg}
 #preset-news .news-dock{padding:9px 10px;border-radius:16px;max-width:440px;justify-self:center}
 #preset-news .news-dock .primary{min-height:52px;font-size:18px}
}
@media(max-height:550px) and (orientation:landscape){
 #preset-news{--news-gap:12px}
 #preset-news .menu-panel{grid-template-columns:minmax(0,1fr) minmax(200px,260px);gap:24px;max-width:760px}
 #preset-news .news-front{padding:2.5%}
}
/* the tally's words are longer than the result's numbers: smaller, and a long one (群賢樓 · 委員會) breaks at its space, never inside a word
   (v57.65: nowrap ran 群賢樓 · 委員會 into the next cell) */
#preset-news .news-number b{font-size:5.2cqw;line-height:1.15;word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}html[lang='en'] #preset-news .news-number b{font-size:4.2cqw;word-break:normal}
/* v57.66 the foot of the page: what the preset is taken from, and its sources entry */
#preset-news .news-source{flex:none;margin:1.6cqw 0 0;text-align:center;font:600 2.4cqw/1.35 system-ui;color:#786a55}#preset-news .news-source a{color:#9f3426;text-decoration:underline;text-underline-offset:2px}
