/* A portrait newspaper and a separate game-controls dock, on desktop and phones alike. */
#result.newspaper{
 --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:#182322e8;overflow:hidden;
}
#result.newspaper .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;
}
#result.newspaper .news-body{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;height:100%;overflow:visible}
#result.newspaper .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;
}
/* Static grain and a shallow fold: printed stock, without filtering or blurring the type. */
#result.newspaper .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}
#result.newspaper .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}
.news-mast{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:3px solid #9f3426;border-bottom:2px solid #302b23;padding:1.8cqw 0;font-family:"Songti TC",serif}
.news-brand{font-size:8.5cqw;letter-spacing:.13em;white-space:nowrap}.news-extra{font:900 3cqw system-ui;color:#9f3426}.news-edition{font:700 2.9cqw/1.25 system-ui;max-width:22%;text-align:right}
html[lang='en'] #result.newspaper .news-brand{font-size:7cqw;letter-spacing:0}
#result.newspaper .news-headline{flex:none;font:900 8.4cqw/1.15 "Songti TC",Georgia,serif;color:#29251f;letter-spacing:-.025em;margin:2cqw 0;text-shadow:none;font-style:normal}
#result.newspaper .news-meta{flex:none;display:flex;align-items:baseline;justify-content:space-between;gap:2cqw;margin-top:1.8cqw;color:#756957}
#result.newspaper .news-date{flex:none;white-space:nowrap;font:600 2.5cqw/1.3 system-ui}
#result.newspaper #result-series{font:700 2.5cqw/1.3 system-ui;color:#756957;margin:0;padding:0;letter-spacing:0;text-align:right}
#result.newspaper #result-copy{flex:none;font:600 3.2cqw/1.45 system-ui;color:#51483b;white-space:pre-line;max-width:none;margin:0 0 2cqw}
#result.newspaper .news-photo{flex:1;min-height:0;position:relative;margin:0;border:1px solid #635442;background:#b8a48a;overflow:hidden}
#result.newspaper .news-picture{display:block;width:100%;height:100%;max-height:none;object-fit:cover;filter:saturate(.65) sepia(.15) brightness(1.1)}
.news-caption{position:absolute;left:2cqw;top:2cqw;padding:1px 4px;background:#f0e9d9db;color:#3e352a;font:2.4cqw/1.4 system-ui}
#result.newspaper #result-grade{display:grid;position:absolute;right:3cqw;bottom:3cqw;place-items:center;min-width:0;width:auto;height:auto;padding:.7cqw 2cqw;margin:0;border:4px double #9f3426;border-radius:0;background:#f3ecdcf0;box-shadow:none;color:#9f3426;font:900 10cqw/1.25 "Songti TC",serif;text-shadow:none;transform:rotate(-9deg)}
#result.newspaper.news-loss #result-grade{color:#494840;border-color:#494840}
.news-tally{flex:none;display:grid;grid-template-columns:repeat(3,1fr);border-top:3px double #504433;border-bottom:1px solid #504433;margin-top:2cqw;padding:1.8cqw 0}
.news-number{text-align:center;min-width:0;border-right:1px solid #afa18a;padding:0 4px}.news-number:last-child{border:0}.news-number b{display:block;font:700 6.8cqw/1.1 Georgia,"Songti TC",serif;color:#75604b;overflow-wrap:anywhere}.news-number span{display:block;font:2.6cqw/1.35 system-ui;color:#756957;margin-top:1cqw}
#result.newspaper .news-front>.fine{flex:none;margin:2cqw 0 0;padding:0;text-align:center;font:2.4cqw/1.35 system-ui;color:#786a55}
/* Controls retain skin.css's gold primary and navy secondary artwork. */
#result.newspaper .news-dock{position:relative;align-self:center;width:100%;padding:14px;border:1px solid #88b3a845;border-radius:20px;background:#0b1e24db;backdrop-filter:blur(16px);box-shadow:0 12px 36px #0007;color:#e9ebd8}
#result.newspaper .result-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;padding:0;background:none;border:0;flex:none}
#result.newspaper .result-actions .primary{width:100%;min-height:56px;margin:0;padding:10px 15%;font-size:16px;white-space:normal}
#result.newspaper .result-actions .secondary{min-height:44px;width:auto;margin:0;padding:8px 12px;font-size:12px;white-space:normal}
#result.newspaper .result-actions .result-row{display:flex;flex-wrap:wrap;gap:6px}
#result.newspaper .result-actions .result-row>button{flex:1;min-width:90px}
#result.newspaper .share-status{margin:0;font-size:12px;color:#bedacb}#result.newspaper .share-status:empty{display:none}
#result.newspaper .news-details{margin:6px 0 0;border-top:1px solid #96b6a53b}
#result.newspaper .news-details>summary{cursor:pointer;min-height:44px;padding:12px 2px;font:700 12px/20px system-ui;color:#c9dfcf}
.news-details>summary:focus-visible{outline:2px solid #ffe9a8;outline-offset:2px}
#result.newspaper .news-detail-content{position:absolute;z-index:8;top:50%;right:calc(100% + 18px);width:min(440px,45vw);max-height:min(70dvh,600px);transform:translateY(-50%);overflow:auto;overscroll-behavior:contain;padding:14px;border:1px solid #8ba79a;border-radius:12px;background:#0b2028f7;box-shadow:0 10px 35px #0008;color:#e9ebd8}
#result.newspaper #result-title{font-size:18px;margin:4px 0 10px}
#result.newspaper .news-detail-content #result-stats{grid-template-columns:1fr;font-size:12px}
#result.newspaper .news-detail-content .kpi-grid{grid-template-columns:repeat(3,1fr)}
#result.newspaper .news-detail-content #result-awards{grid-template-columns:1fr}
#result.newspaper .news-detail-content #result-room{grid-template-columns:1fr}
@media(max-width:700px) and (orientation:portrait){
 #result.newspaper{--news-gap:10px}
 #result.newspaper .menu-panel{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:18px;max-width:520px}
 #result.newspaper .news-front{padding:3.5%;--paper-tilt:-.4deg}
 #result.newspaper .news-dock{padding:9px 10px;border-radius:16px;max-width:440px;justify-self:center}
 #result.newspaper .result-actions .primary{min-height:48px;font-size:15px}
 #result.newspaper .result-actions{gap:5px}
 #result.newspaper .result-actions .result-row>button{min-width:75px}
 #result.newspaper .news-details{margin-top:4px}
 #result.newspaper .news-details>summary{font-size:11px;padding:10px 2px;min-height:40px;line-height:20px}
 #result.newspaper .news-detail-content{top:auto;bottom:calc(100% + 12px);left:0;right:auto;transform:none;width:100%;max-height:52dvh}
}
@media(max-height:550px) and (orientation:landscape){
 #result.newspaper{--news-gap:12px}
 #result.newspaper .menu-panel{grid-template-columns:minmax(0,1fr) minmax(210px,280px);gap:24px;max-width:760px}
 #result.newspaper .news-front{padding:2.5%}
 #result.newspaper .news-detail-content{bottom:auto;top:50%;left:auto;right:calc(100% + 12px);width:min(340px,45vw);max-height:calc(100dvh - var(--news-top) - var(--news-bottom))}
}
