/* Approved design/v2 palette and geometry. Local CSS studio fallback: no remote media. */
.sg-root{--sg-bg:#080e0d;--sg-panel:#0d1715;--sg-panel-2:#14201c;--sg-sunk:#07100b;--sg-line:#32483b;--sg-line-strong:#486750;--sg-ink:#f4f5ed;--sg-ink-dim:#b6cbb9;--sg-ink-faint:#9eada6;--sg-gold:#b2f67d;--sg-gold-dim:#72c66c;--sg-gold-soft:#193522;--sg-teal:#91d877;--sg-rose:#91b9a1;--sg-red:#ef9b86;--sg-paper:#102018;--sg-paper-2:#15271e;--sg-paper-line:#486750;--sg-paper-ink:#f4f5ed;--sg-paper-dim:#b6cbb9;color-scheme:dark;font-family:Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;}
.sg-root h1,.sg-root h2,.sg-root h3,.sg-root h4{font-family:inherit;font-weight:800;color:var(--sg-ink);letter-spacing:-.03em;}
.sg-root [hidden]{display:none!important;}
.sg-game{border:1px solid #32483b;background:radial-gradient(ellipse at 85% 60%,#25372a88,transparent 40%),linear-gradient(120deg,#07120f,#101a18 52%,#090d0c);isolation:isolate;}
/* Softbox / studio wall motif, drawn locally, below all interactive content. */
.sg-game:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.18;pointer-events:none;background:linear-gradient(65deg,transparent 60%,#79a38a15 60% 61%,transparent 61%),radial-gradient(ellipse at 85% 18%,#c7ecc35a,transparent 28%),linear-gradient(100deg,transparent 70%,#040805 70% 72%,transparent 72%);}
.sg-game .sg-app{display:grid;grid-template-columns:225px minmax(0,1fr);max-width:1600px;padding:0;min-height:880px;}
.sg-content{min-width:0;padding:30px 32px 24px;}
.sg-sidebar{border-right:1px solid #334e3d;background:#050908c4;padding:31px 17px;align-self:start;position:sticky;top:0;max-height:100vh;overflow:auto;scrollbar-width:thin;}
.sg-brand{font-size:23px;font-weight:900;line-height:.95;letter-spacing:-1px;border-left:3px solid #b2f67d;padding-left:13px;}
.sg-brand small{display:block;font-size:10px;letter-spacing:2px;color:#72c66c;margin-bottom:10px;line-height:1.5;}
.sg-side-version{color:#a2c3aa;font-size:11px;letter-spacing:.8px;margin:18px 0 32px;}
.sg-menu-label{font-size:10px;letter-spacing:2px;color:#91b49d;margin:22px 8px 13px;}
.sg-sidebar button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:12px 11px;margin:4px 0;background:transparent;border:1px solid transparent;border-radius:11px;color:#d4e3d5;font-size:13px;line-height:1.45;font-weight:600;cursor:pointer;transition:background .16s,border-color .16s;}
.sg-sidebar button.sg-nav-active{background:linear-gradient(90deg,#234b2c,#102015);border-color:#80bc71;color:#d6fdb9;}
.sg-nav-arrow{margin-left:auto;color:#8dbb87;}
.sg-nav-people{padding-left:12px;margin:5px 0 8px 14px;border-left:1px solid #3a5940;}
.sg-sidebar .sg-nav-people button{font-size:12px;padding:8px;}
.sg-side-note{border:1px solid #34493b;border-radius:15px;padding:16px;margin-top:30px;color:#b6cbb9;font-size:12px;line-height:1.7;}
.sg-game .sg-title-block h1{font-size:clamp(25px,3vw,34px);letter-spacing:-1.3px;}
.sg-game .sg-top-row{align-items:center;}
.sg-game .sg-subtitle{font:12px system-ui;color:#a0b8a7;}
.sg-game .sg-filmstrip{margin-top:16px;opacity:.65;}
.sg-game .sg-stats-bar{display:grid;grid-template-columns:2.4fr repeat(7,minmax(0,1fr));gap:8px;margin:20px 0;}
.sg-game .sg-stat-card,.sg-game .sg-stat-card.sg-wide{min-width:0;padding:12px 10px;background:linear-gradient(140deg,#14231eec,#0a1311e8);border:1px solid #344c3d;border-radius:12px;}
.sg-game .sg-stat-label{font:600 10px/1.3 system-ui;letter-spacing:0;min-height:2.6em;color:#abc2ae;}
.sg-game .sg-stat-value{font:800 clamp(14px,1.5vw,23px)/1.3 system-ui;color:#d9ffc0;overflow-wrap:anywhere;}
.sg-game .sg-stat-sub{font:10px/1.5 system-ui;}
.sg-game .sg-stat-card.sg-wide .sg-stat-value{color:#b2f67d;}
.sg-game .sg-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.sg-game .sg-slot-card{min-width:0;border:1px solid #3d5d42;background:linear-gradient(140deg,#14251aee,#0a1511ee);border-radius:15px;padding:17px 13px;}
.sg-game .sg-slot-eyebrow{font:800 10px system-ui;letter-spacing:2px;color:#89b48d;}
.sg-game .sg-slot-title{font:800 22px system-ui;color:#eff9e9;margin:5px 0 15px;}
.sg-game .sg-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
.sg-game .sg-action-btn{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:7px;text-align:left;min-height:66px;padding:10px 8px;border:1px solid #486750;background:#102019;border-radius:9px;font:650 12px/1.3 system-ui;color:#e7f1e7;transform:none;transition:background .15s,border-color .15s,box-shadow .15s;}
.sg-game .sg-action-btn>.sg-ic{font-size:20px;flex:0 0 22px;}
.sg-game .sg-action-btn>span:nth-child(2){flex:1 1 60px;}
.sg-game .sg-action-btn .sg-pick-note{font:10px/1.4 system-ui;color:#c4d4bf;flex-basis:100%;}
.sg-game .sg-action-btn.sg-selected{border-color:#b2ff93;box-shadow:0 0 11px #8cfa6a42,inset 0 0 19px #6ed74918;background:linear-gradient(130deg,#224d2b,#102216);color:white;}
.sg-game .sg-action-btn.sg-selected:after{content:'✓';position:absolute;right:5px;top:2px;color:#b2f67d;font-size:11px;}
.sg-game .sg-action-btn:disabled{opacity:.48;cursor:not-allowed;}
.sg-game .sg-end-day-wrap{gap:10px;flex-wrap:wrap;margin-top:18px;}
.sg-root .sg-btn-primary{background:linear-gradient(90deg,#41752b,#28602f);border:1px solid #a5ec75;color:#f3ffe6;border-radius:10px;box-shadow:0 0 24px #80ec6c25;font:750 14px system-ui;}
.sg-root .sg-btn-ghost{border:1px solid #547759;background:#15271e;color:#e2f1e0;border-radius:10px;font:650 13px system-ui;padding:12px 16px;cursor:pointer;}
.sg-game .sg-save-status{font:12px system-ui;color:#9ceb82;margin:12px 0;}
.sg-game .sg-save-error{color:#ffb39c;}
.sg-game .sg-day-report{border:1px solid #41634a;border-radius:17px;padding:22px;background:linear-gradient(135deg,#18251dcf,#08130fef);margin:20px 0;}
.sg-game .sg-report-head{font:800 23px system-ui;color:#e4f6dd;}
.sg-game .sg-report-brief{display:grid;grid-template-columns:1fr;gap:10px;}
.sg-game .sg-report-block{background:#0a1710;border:1px solid #3e6548;border-radius:12px;padding:15px;}
.sg-game .sg-report-block summary{font:750 15px/1.5 system-ui;cursor:pointer;}
.sg-game .sg-report-block p,.sg-game .sg-report-note{font:14px/1.75 system-ui;color:#c3d4c4;}
.sg-subpage{margin:24px 0;min-height:540px;outline:none;}
.sg-subpage h2{font-size:30px;margin:6px 0 22px;}
.sg-subpage>p{color:#bcd3c0;font-size:14px;line-height:1.7;margin:0 0 20px;}
.sg-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}
.sg-page-card{background:linear-gradient(137deg,#102018ed,#09130eeb);border:1px solid #3a5d42;border-radius:17px;padding:24px;margin-bottom:16px;box-shadow:0 10px 36px #0003;min-width:0;}
.sg-page-grid>.sg-page-card{margin-bottom:0;}
.sg-page-card h3{font-size:20px;margin:0 0 14px;}
.sg-page-card p,.sg-page-card li{font-size:14px;color:#b9ccba;line-height:1.7;}
.sg-page-card p{margin:10px 0 18px;}
.sg-fact{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #2c4832;font-size:12px;flex-wrap:wrap;color:#bbcfbe;}
.sg-fact strong{color:#d9ffc0;}
.sg-page-bar{height:8px;background:#192a20;border:1px solid #39553e;overflow:hidden;border-radius:20px;margin:14px 0 20px;}
.sg-page-bar i{display:block;height:100%;background:linear-gradient(90deg,#4f9760,#b2f67d);}
.sg-activity-list{list-style:none;margin:16px 0;padding:0;}
.sg-activity-list li{padding:12px 0;border-top:1px solid #314b36;}
.sg-activity-list small{display:block;font-size:11px;color:#add395;}
.sg-activity-list .sg-locked small{color:#e6c6a0;}
.sg-owned-label{color:#b4e8a3!important;}
.sg-portal.sg-overlay{background:#020706dc;backdrop-filter:blur(8px);padding:17px;}
.sg-portal .sg-modal-card{background:linear-gradient(140deg,#14291b,#0d1711);color:#f4f5ed;border:1px solid #85b877;border-radius:21px;width:min(740px,100%);max-height:90dvh;overflow:auto;box-shadow:0 35px 130px #000d,0 0 40px #538e5522;padding:32px;}
.sg-portal .sg-modal-title{font:800 27px/1.25 system-ui;color:#efffe6;}
.sg-portal .sg-modal-text,.sg-portal .sg-modal-outcome,.sg-portal .sg-rules{font:14px/1.8 system-ui;color:#c6d9c9;}
.sg-portal .sg-modal-outcome{border-color:#486750;background:#102019;}
.sg-portal .sg-choice-btn{color:#ecf6e8;background:#102019;border:1px solid #486750;border-radius:13px;padding:17px 20px;font:650 15px/1.6 system-ui;transform:none;}
.sg-portal .sg-modal-close{color:#e2ffdc;background:#183622;border-color:#5d8c66;}
.sg-portal .sg-lock-note{color:#e6c6a0;}
.sg-portal .sg-shop-name,.sg-portal .sg-shop-desc{color:#d4e6d3;}
.sg-mobile-bar,.sg-nav-shade{display:none;}
.sg-root button:focus-visible,.sg-root a:focus-visible,.sg-root summary:focus-visible,.sg-root input:focus-visible{outline:3px solid #b2f67d;outline-offset:3px;}
.sg-root button:disabled{cursor:not-allowed;opacity:.5;}
@media(hover:hover) and (pointer:fine){.sg-sidebar button:hover:not(:disabled),.sg-root .sg-choice-btn:hover:not(:disabled),.sg-game .sg-action-btn:hover:not(:disabled),.sg-root .sg-btn-ghost:hover:not(:disabled){background:#1d3b24;border-color:#a5df85;transform:none;}}
@media(max-width:1400px){.sg-game .sg-stats-bar{grid-template-columns:repeat(4,minmax(0,1fr));}.sg-game .sg-stat-card.sg-wide{grid-column:span 1;}.sg-game .sg-action-grid{grid-template-columns:1fr;}}
@media(max-width:1000px){.sg-game .sg-app{grid-template-columns:195px minmax(0,1fr);}.sg-content{padding:24px 20px;}.sg-game .sg-slots{gap:10px;}.sg-game .sg-action-btn{font-size:11px;}}
@media(max-width:850px){.sg-game .sg-app{grid-template-columns:1fr;}.sg-content{padding:18px;}.sg-mobile-bar{display:flex;justify-content:space-between;align-items:center;border:1px solid #2e5035;background:#07110b;border-radius:12px;padding:8px 11px;margin-bottom:18px;color:#d9f6d3;font-size:12px;}.sg-menu-toggle{border:1px solid #537d52;background:#153322;color:#d6f7d0;padding:12px;border-radius:8px;cursor:pointer;}.sg-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(285px,87vw);max-height:100dvh;background:#08110dfc;z-index:100;transform:translateX(-110%);visibility:hidden;transition:transform .2s,visibility .2s;}.sg-sidebar.sg-nav-open{transform:translateX(0);visibility:visible;}.sg-nav-shade:not([hidden]){display:block;position:fixed;inset:0;background:#020706aa;border:0;z-index:99;}.sg-game .sg-slots,.sg-page-grid{grid-template-columns:1fr;}.sg-game .sg-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.sg-game .sg-action-btn{font-size:13px;min-height:66px;}.sg-game .sg-stats-bar{grid-template-columns:repeat(2,minmax(0,1fr));}.sg-game .sg-stat-value{font-size:22px;}.sg-page-card{padding:20px;}.sg-root.sg-portal .sg-modal-card{padding:24px 19px;}.sg-portal .sg-modal-title{font-size:24px;}}
@media(prefers-reduced-motion:reduce){.sg-root *,.sg-root *:before,.sg-root *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
/* Reset the old column tile layout before applying the reference's compact rows. */
.sg-game .sg-action-btn{flex-direction:row;align-content:center;}
.sg-game .sg-daymod-label{font-family:inherit;font-style:normal;font-weight:700;}
.sg-game .sg-intro-card .sg-modal-text{color:#c6d9c9;}
.sg-game .sg-intro-card .sg-modal-title{color:#efffe6;}
.sg-portal .sg-modal-eyebrow{color:#b2f67d;}
@media(min-width:1001px){.sg-game .sg-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Shortcodes can live in a narrow theme column even on a wide desktop. */
.sg-game.sg-medium .sg-stats-bar{grid-template-columns:repeat(4,minmax(0,1fr));}
.sg-game.sg-compact .sg-app{grid-template-columns:1fr;}
.sg-game.sg-compact .sg-content{padding:18px;}
.sg-game.sg-compact .sg-mobile-bar{display:flex;justify-content:space-between;align-items:center;border:1px solid #2e5035;background:#07110b;border-radius:12px;padding:8px 11px;margin-bottom:18px;color:#d9f6d3;font-size:12px;}
.sg-game.sg-compact .sg-menu-toggle{border:1px solid #537d52;background:#153322;color:#d6f7d0;padding:12px;border-radius:8px;cursor:pointer;}
.sg-game.sg-compact .sg-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(285px,87vw);max-height:100dvh;background:#08110dfc;z-index:100;transform:translateX(-110%);visibility:hidden;transition:transform .2s,visibility .2s;}
.sg-game.sg-compact .sg-sidebar.sg-nav-open{transform:translateX(0);visibility:visible;}
.sg-game.sg-compact .sg-nav-shade:not([hidden]){display:block;position:fixed;inset:0;background:#020706aa;border:0;z-index:99;}
.sg-game.sg-compact .sg-slots,.sg-game.sg-compact .sg-page-grid{grid-template-columns:1fr;}
.sg-game.sg-compact .sg-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.sg-game.sg-compact .sg-action-btn{font-size:13px;min-height:66px;}
.sg-game.sg-compact .sg-stats-bar{grid-template-columns:repeat(2,minmax(0,1fr));}
.sg-game.sg-compact .sg-stat-value{font-size:22px;}
.sg-game.sg-compact .sg-page-card{padding:20px;}
.sg-game .sg-action-btn{overflow-wrap:anywhere;}
.sg-game.sg-tiny .sg-action-grid{grid-template-columns:1fr;}

/* 2.0.1: explicit control tokens beat legacy paper colors and theme form defaults.
   !important is deliberately limited to plugin controls that Divi styles by ID. */
.sg-root.sg-game{display:block;width:100%;max-width:100%;min-width:0;}
.sg-game.sg-pre .sg-app{padding:0;}
.sg-game .sg-content{display:flex;flex-direction:column;min-width:0;}
.sg-game .sg-content>.sg-credits{margin:28px 0 0;margin-top:auto;padding:24px 0 0;opacity:1;flex-shrink:0;}
.sg-root :is(h1,h2,h3,h4){font-family:inherit!important;color:var(--sg-ink)!important;line-height:1.25;overflow-wrap:anywhere;}
.sg-root :is(p,li,summary){font-family:inherit;line-height:1.65;}
.sg-root :is(input:not([type="range"]),textarea,select){
 box-sizing:border-box!important;background:#0a1511!important;color:#f4f5ed!important;
 -webkit-text-fill-color:#f4f5ed!important;caret-color:#b2f67d;border:1px solid #617b69!important;
 border-radius:9px;padding:12px 14px;max-width:100%;font:400 16px/1.5 system-ui!important;
 opacity:1!important;box-shadow:none;
}
.sg-root :is(input,textarea)::placeholder{color:#a9bcb0!important;-webkit-text-fill-color:#a9bcb0!important;opacity:1!important;}
.sg-root :is(input,textarea,select):focus{outline:2px solid #b2f67d!important;outline-offset:2px;border-color:#b2f67d!important;box-shadow:0 0 0 3px #75b87222!important;}
.sg-root :is(input,textarea,select):disabled,.sg-root :is(input,textarea)[readonly]{background:#17221d!important;color:#b6c5bc!important;-webkit-text-fill-color:#b6c5bc!important;opacity:1!important;}
.sg-root input:-webkit-autofill{box-shadow:0 0 0 1000px #0a1511 inset!important;-webkit-text-fill-color:#f4f5ed!important;caret-color:#b2f67d!important;}
.sg-root :is(.sg-setup-label,.sg-volume-label){color:#c6ddca!important;font-family:inherit;}
.sg-root :is(.sg-setup-note,.sg-lock-note,.sg-pick-note){color:#b6c8bc!important;opacity:1!important;}
.sg-root button{
 --sg-control-bg:#102019;--sg-control-ink:#e7f1e7;--sg-control-border:#486750;
 background:var(--sg-control-bg)!important;color:var(--sg-control-ink)!important;border-color:var(--sg-control-border)!important;
 font-family:inherit!important;line-height:1.45;letter-spacing:normal;text-transform:none;
 text-shadow:none!important;opacity:1;transform:none!important;
}
.sg-root .sg-btn-primary{--sg-control-bg:linear-gradient(90deg,#41752b,#28602f);--sg-control-ink:#f3ffe6;--sg-control-border:#a5ec75;}
.sg-root :is(.sg-selected,.sg-gender-btn.sg-on,.sg-nav-active){--sg-control-bg:linear-gradient(130deg,#224d2b,#102216);--sg-control-ink:#f4fff0;--sg-control-border:#b2f67d;}
.sg-root .sg-sidebar button:not(.sg-nav-active),.sg-root .sg-ver-btn{--sg-control-bg:transparent;}
.sg-root button:focus-visible,.sg-root summary:focus-visible,.sg-root a:focus-visible{outline:3px solid #b2f67d!important;outline-offset:3px;}
@media(hover:hover) and (pointer:fine){
 .sg-root button:hover:not(:disabled){--sg-control-bg:#1d3b24;--sg-control-border:#a5df85;}
 .sg-root .sg-btn-primary:hover:not(:disabled){--sg-control-bg:linear-gradient(90deg,#467c2e,#34723a);}
}
.sg-root button:active:not(:disabled){--sg-control-bg:#264a2e;box-shadow:inset 0 0 0 1px #b2f67d;}
.sg-root :is(button:disabled,button.sg-unavail,button.sg-locked){--sg-control-bg:#17221d;--sg-control-ink:#aebfb4;--sg-control-border:#405349;opacity:1!important;box-shadow:none!important;cursor:not-allowed;}
.sg-root :is(button:disabled,button.sg-unavail,button.sg-locked) .sg-ic{filter:grayscale(.65);}
.sg-root .sg-activity-list .sg-locked small{color:#b6c8bc;}
.sg-root .sg-volume-label{display:flex;justify-content:space-between;gap:20px;margin:24px 0 12px;max-width:440px;}
.sg-root .sg-volume{width:100%;max-width:440px;accent-color:#a5df85;min-height:44px;cursor:pointer;}
.sg-root.sg-overlay{position:fixed!important;inset:0!important;z-index:2147483100!important;}
.sg-portal .sg-report-brief{display:grid;gap:12px;margin:20px 0;}
.sg-portal .sg-report-block{border:1px solid #3e6548;border-radius:12px;padding:15px;background:#0a1710;}
.sg-portal .sg-report-block summary{color:#e4f6dd;font-size:15px;font-weight:750;cursor:pointer;}
.sg-portal .sg-report-block p,.sg-portal .sg-report-note{color:#c3d4c4;font-size:14px;line-height:1.75;margin:12px 0 0;}
.sg-root.sg-nav-portal{position:fixed;inset:0;z-index:2147483000;isolation:isolate;}
.sg-nav-portal .sg-nav-shade{display:block;position:absolute;inset:0;width:100%;height:100%;margin:0;border:0!important;--sg-control-bg:#020706aa;}
.sg-nav-portal .sg-sidebar{display:block;position:absolute;left:0;top:0;bottom:0;max-height:100dvh;width:min(285px,87vw);z-index:1;transform:none;visibility:visible;background:#08110d;padding:31px 17px;overflow:auto;}
.sg-root .sg-board-page{overflow-x:auto;margin:18px 0 24px;}
.sg-root .sg-board-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6;color:#d6e8d7;}
.sg-root .sg-board-table td,.sg-root .sg-board-table th{padding:14px 10px;border-bottom:1px solid #3b5141;text-align:left;vertical-align:top;}
.sg-root .sg-board-table td{color:#d6e8d7;overflow-wrap:anywhere;}
.sg-root .sg-board-table th{color:#b2f67d;font-size:12px;white-space:nowrap;}
.sg-root .sg-board-rank{min-width:32px;}
.sg-root .sg-board-score{font-weight:800;white-space:nowrap;}
.sg-root .sg-changelog-page{max-width:960px;color:#c9dbcd;}
.sg-root .sg-changelog-entry{border:1px solid #41634a;border-radius:14px;background:#0d1a13;margin:18px 0;padding:18px 22px;}
.sg-root .sg-changelog-entry>summary{cursor:pointer;font-size:20px;font-weight:750;color:#d9ffc0;}
.sg-root .sg-changelog-entry p,.sg-root .sg-changelog-entry li{font-size:14px;line-height:1.8;color:#c9dbcd;}
.sg-root .sg-changelog-entry .sg-cl-list{padding-left:22px;margin:14px 0 24px;}
.sg-root .sg-changelog-entry .sg-cl-list li{margin:8px 0;}
.sg-root .sg-page-status{padding:24px;background:#0d1a13;border:1px solid #41634a;border-radius:12px;color:#d9ebdc;}
@media(max-width:450px){.sg-root .sg-board-table{font-size:12px;}.sg-root .sg-board-table td,.sg-root .sg-board-table th{padding:10px 5px;}.sg-root .sg-changelog-entry{padding:15px;}.sg-root .sg-changelog-entry>summary{font-size:17px;}}
.sg-nav-portal .sg-nav-shade:hover,.sg-nav-portal .sg-nav-shade:active{--sg-control-bg:#020706aa!important;box-shadow:none;}
.sg-nav-portal .sg-nav-shade{z-index:0!important;}
.sg-root :is(h1,h2,h3,h4){line-height:1.25!important;font-weight:800!important;}
.sg-game .sg-title-block h1{font-size:clamp(25px,3vw,34px)!important;}
.sg-game .sg-subpage h2{font-size:clamp(24px,3vw,30px)!important;}

/* Day results are an ordinary content chapter, replacing the planner. */
.sg-game .sg-summary-screen{border:1px solid #41634a;border-radius:17px;padding:28px;background:linear-gradient(135deg,#18251dcf,#08130fef);outline:none;}
.sg-game .sg-summary-screen h2{font-size:clamp(25px,3vw,32px)!important;margin:8px 0 24px;}
.sg-game .sg-summary-screen .sg-report-brief{display:grid;gap:14px;}
.sg-game .sg-summary-screen .sg-report-block{padding:18px 20px;}
.sg-game .sg-summary-screen .sg-report-block summary{font-size:15px;font-weight:750;}
.sg-game .sg-summary-screen .sg-report-block p{font-size:14px;line-height:1.75;margin:12px 0 0;}
.sg-game .sg-summary-actions{display:flex;justify-content:flex-end;margin-top:24px;}
.sg-game .sg-summary-actions .sg-btn-primary{min-width:180px;min-height:48px;padding:13px 24px;}
@media(max-width:600px){.sg-game .sg-summary-screen{padding:20px 16px;}.sg-game .sg-summary-screen .sg-report-block{padding:15px;}.sg-game .sg-summary-actions .sg-btn-primary{width:100%;}}

/* 2.1: viewport, layout and density preferences are presentation only. */
.sg-game{width:100%;max-width:none;box-sizing:border-box;}
.sg-game.sg-layout-wide .sg-app{max-width:none;}
.sg-game .sg-top-row{flex-wrap:wrap;gap:12px;}
.sg-game .sg-view-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;max-width:100%;}
.sg-game .sg-view-toolbar button{min-height:44px;padding:10px 14px;}
.sg-game .sg-view-status{max-width:260px;font:12px/1.5 system-ui;color:#c5ddc4;}
.sg-game .sg-collapse-menu{min-height:44px;margin:0 0 20px;}
.sg-game.sg-sidebar-collapsed:not(.sg-compact) .sg-app{grid-template-columns:76px minmax(0,1fr);}
.sg-game.sg-sidebar-collapsed:not(.sg-compact) .sg-sidebar{padding:18px 10px;}
.sg-game.sg-sidebar-collapsed:not(.sg-compact) .sg-sidebar :is(.sg-brand,.sg-side-version,.sg-menu-label,.sg-side-note,.sg-nav-label,.sg-nav-arrow){display:none;}
.sg-game.sg-sidebar-collapsed:not(.sg-compact) .sg-sidebar button{min-height:44px;justify-content:center;font-size:19px;padding:10px;}
.sg-game.sg-compact .sg-collapse-menu{display:none;}
.sg-game.sg-expanded-view{border-radius:0!important;overflow-y:auto;overscroll-behavior:contain;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);}
.sg-game:fullscreen{width:100%;height:100%;max-width:none;max-height:none;}
.sg-game.sg-immersive{position:fixed!important;inset:0!important;width:100%!important;height:var(--sg-visual-height,100dvh)!important;max-height:none!important;margin:0!important;z-index:2147483000;}
.sg-game.sg-expanded-view .sg-app{min-height:100%;}
.sg-game .sg-setting-label{display:grid;gap:8px;margin:20px 0;color:#d9ecd3;font-size:14px;}
.sg-game .sg-setting-label select{min-height:44px;width:100%;max-width:360px;padding:10px;border:1px solid #648b66;border-radius:8px;background:#102019;color:#eef5e8;font:inherit;}
.sg-game .sg-shortcuts{display:grid;gap:8px;}
.sg-game .sg-shortcuts dt{font-weight:750;color:#d6efc4;}
.sg-game .sg-shortcuts dd{margin:0 0 12px;color:#c1d2c1;}
.sg-game.sg-density-compact .sg-content{padding:18px;}
.sg-game.sg-density-compact .sg-page-card{padding:16px;}
.sg-game.sg-density-compact :is(.sg-slots,.sg-page-grid){gap:10px;}
.sg-game.sg-density-compact .sg-action-btn{min-height:52px;padding:8px;}
.sg-game.sg-density-compact .sg-slot-card{padding:12px 10px;}
.sg-game.sg-density-compact .sg-stat-card{padding:9px;}
.sg-root.sg-no-motion *,.sg-root.sg-no-motion *:before,.sg-root.sg-no-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
.sg-root select:focus-visible{outline:3px solid #b2f67d;outline-offset:3px;}
.sg-game :is(.sg-subpage,.sg-main,.sg-summary-screen){scroll-margin-top:calc(90px + env(safe-area-inset-top));}
@media(max-width:600px){.sg-game .sg-view-toolbar{width:100%;}.sg-game .sg-view-status{max-width:100%;}}
.sg-game .sg-plan-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;border:1px solid #43634b;border-radius:12px;background:#0a1711;margin:12px 0;}
.sg-game .sg-plan-overview :is(small,strong,span){display:block;overflow-wrap:anywhere;}
.sg-game .sg-plan-overview small{color:#b2c9b5;font:11px/1.5 system-ui;}
.sg-game .sg-plan-overview strong{color:#e3f1db;font:650 12px/1.6 system-ui;}
.sg-game .sg-plan-overview span{color:#c6d9c5;font:11px/1.6 system-ui;}
.sg-game .sg-repeat-status{color:#d0e1c9;font-size:13px;line-height:1.6;}
.sg-root .sg-destructive{border-color:#f4b29f!important;color:#ffd9cb!important;background:#39251f!important;}
.sg-game .sg-view-toolbar{justify-content:flex-end;margin-bottom:12px;}
.sg-game .sg-career-charts{margin-top:28px;}
.sg-game .sg-chart{margin:0;}
.sg-game .sg-chart svg{display:block;width:100%;height:auto;overflow:visible;}
.sg-game .sg-chart text{fill:#c8dcc7;font:11px system-ui;}
.sg-game .sg-chart-legend{display:inline-block;margin:5px 16px 12px 0;font-size:12px;}
.sg-game .sg-series-0{color:#b2f67d;}.sg-game .sg-series-1{color:#b6cedc;}
.sg-game .sg-chart-values summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px;color:#dfedda;}
.sg-game .sg-table-scroll{overflow-x:auto;max-width:100%;}
.sg-game .sg-table-scroll table{width:100%;border-collapse:collapse;font-size:12px;color:#d9e8d3;}
.sg-game .sg-table-scroll :is(th,td){padding:10px 8px;border-bottom:1px solid #42614a;text-align:left;}
.sg-game .sg-history-empty{color:#bed0bb;font-size:13px;line-height:1.7;}
.sg-game .sg-career-timeline{list-style:none;margin:20px 0;padding:0 0 0 18px;border-left:2px solid #5d8758;}
.sg-game .sg-career-timeline li{position:relative;padding:0 0 22px 8px;}
.sg-game .sg-career-timeline li:before{content:'';width:8px;height:8px;border-radius:50%;background:#b2f67d;position:absolute;left:-23px;top:7px;}
.sg-game .sg-career-timeline time{display:block;font-size:11px;letter-spacing:1px;color:#b2f67d;margin:5px 0 9px;}
.sg-game .sg-career-timeline strong{font-size:14px;color:#e2efd9;}
.sg-game .sg-career-timeline p{font-size:13px;line-height:1.7;color:#bfd1bd;margin:8px 0 0;}
.sg-game .sg-next-milestone,.sg-game [data-sg-nearest]{border:1px solid #89b76d;border-radius:12px;padding:18px;background:#14291a;}
.sg-game .sg-achieved{border-color:#7cad68;}
.sg-game .sg-career-ending,.sg-game .sg-ending-comparison{margin:28px 0;padding:24px;border:1px solid #4b6e4e;border-radius:16px;background:#0b1811;}
.sg-game .sg-ending-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.sg-game .sg-ending-facts div{padding:12px;border-bottom:1px solid #3a563d;}
.sg-game .sg-ending-facts dt{font-size:12px;color:#b9cfba;}
.sg-game .sg-ending-facts dd{font-size:20px;font-weight:750;color:#d5f8bd;margin:6px 0 0;overflow-wrap:anywhere;}
@media(max-width:600px){.sg-game .sg-ending-facts{grid-template-columns:1fr;}.sg-game .sg-career-ending,.sg-game .sg-ending-comparison{padding:18px 12px;}}
.sg-game .sg-career-charts>p{font:14px/1.7 system-ui;color:#bed1bc;}
.sg-game .sg-guide{margin:16px 0 22px;padding:16px 20px;border:1px solid #557c50;border-radius:12px;background:#102316;}
.sg-game .sg-guide h3{font-size:17px;margin:0 0 12px;}
.sg-game .sg-guide p{font:14px/1.7 system-ui;color:#c8dbc1;margin:8px 0 12px;}
.sg-game .sg-guide button{min-height:44px;margin:5px 8px 5px 0;}
.sg-game .sg-guide-actions{display:flex;flex-wrap:wrap;}
.sg-game .sg-share-preview{display:block;width:100%;height:auto;max-width:900px;border:1px solid #6a915e;border-radius:12px;margin:16px 0;}
.sg-game .sg-share-download{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;}
.sg-game .sg-share-result p{font:13px/1.7 system-ui;color:#c7d9bf;}
.sg-game .sg-ending-actions{flex-wrap:wrap;gap:10px;}

/* 2.2 P0: every payout surface belongs to the dark dialog. */
.sg-root.sg-portal .sg-payout{color:#e4f0de;}
.sg-root.sg-portal :is(.sg-pay-row,.sg-sub-row){color:#d9e8d4;border-color:#45634a;flex-wrap:wrap;}
.sg-root.sg-portal :is(.sg-pay-row b,.sg-sub-row b){color:#edf7e6;}
.sg-root.sg-portal :is(.sg-pos,.sg-pay-row b.sg-pos,.sg-sub-row b.sg-pos){color:#b2f67d;}
.sg-root.sg-portal :is(.sg-neg,.sg-pay-row b.sg-neg,.sg-sub-row b.sg-neg){color:#ffc3ab;}
.sg-root.sg-portal .sg-pay-total{color:#f2ffe8;border-top-color:#729763;}
.sg-root.sg-portal :is(.sg-pay-note,.sg-subs-note){color:#c3d7be;}
.sg-root.sg-portal .sg-pay-why{color:#d8ead1;background:#14271b;border-color:#94be72;}
.sg-root.sg-portal .sg-subs-box{background:#102019;border-color:#45634a;}
.sg-root.sg-portal .sg-subs-head{color:#c8e8b3;}
.sg-root.sg-portal .sg-sub-total{border-top-color:#57764d;}
.sg-root.sg-portal .sg-pay-status.sg-ok{background:#142d1b;border-color:#91cb72;color:#d5fac4;}
.sg-root.sg-portal .sg-pay-status.sg-warn{background:#30241e;border-color:#e4aa87;color:#ffdcc8;}
/* Tables are scoped to the game, including comparison on the ending screen. */
.sg-root .sg-board-page,.sg-root .sg-score-comparison .sg-table-scroll{max-width:100%;overflow-x:auto;background:#0b1811;border:1px solid #3b5141;border-radius:10px;}
.sg-root .sg-board-table{background:#0b1811!important;border:0!important;border-collapse:collapse!important;outline:0!important;box-shadow:none!important;min-width:430px;}
.sg-root .sg-board-table :is(thead,tbody,tfoot,tr,th,td){background:#0b1811!important;color:#d6e8d7!important;border-color:#3b5141!important;box-shadow:none!important;outline:0!important;}
.sg-root .sg-board-table :is(th,td){border-style:solid!important;border-width:0 0 1px!important;}
.sg-root .sg-board-table thead,.sg-root .sg-board-table th{background:#13291b!important;color:#d0edb8!important;}

/* 2.2: one presentation system for six settings groups and every viewport. */
.sg-game .sg-settings-body{padding:0 20px 20px;display:grid;gap:12px;}
.sg-game .sg-setting{padding:12px 0;border-bottom:1px solid #314e39;}
.sg-game .sg-setting .sg-setting-label{margin:0 0 8px;font-weight:700;}
.sg-game .sg-setting select{min-height:44px;max-width:100%;padding:10px 12px;border:1px solid #648b66;border-radius:8px;background:#102019;color:#eef5e8;font:14px system-ui;}
.sg-game .sg-setting p,.sg-game .sg-settings-body>p{color:#c1d5bd;font:13px/1.7 system-ui;margin:8px 0 0;}
.sg-root.sg-large-controls :is(button,.sg-btn-ghost,.sg-share-download,select){min-height:52px!important;padding:14px 18px!important;font-size:15px!important;}
.sg-root.sg-large-controls .sg-action-btn{min-height:78px!important;gap:10px;}
.sg-root.sg-large-controls .sg-sidebar button{margin-block:8px;}
.sg-root :is(button,select,input[type='range']){touch-action:manipulation;}
.sg-game .sg-stat-day,.sg-game .sg-stats-expand{display:none;}
.sg-game.sg-stats-brief .sg-statsBar{grid-template-columns:repeat(4,minmax(0,1fr));}
.sg-game.sg-stats-brief .sg-stat-day{display:block;}
.sg-game.sg-stats-brief:not(.sg-stats-expanded) .sg-statsBar>.sg-stat-card:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(6)):not(.sg-stat-day){display:none;}
.sg-game.sg-stats-brief .sg-stats-expand{display:flex;align-items:center;justify-content:center;grid-column:1/-1;min-height:44px;}
.sg-game.sg-stats-expanded .sg-statsBar{grid-template-columns:repeat(4,minmax(0,1fr));}
.sg-game.sg-stats-pinned:not(.sg-expanded-view){overflow:visible;}
.sg-game.sg-stats-pinned .sg-statsBar{position:sticky;top:var(--sg-stats-top,0px);z-index:20;max-height:var(--sg-stats-max-height,40dvh);overflow:auto;overscroll-behavior:contain;background:#0b1811;padding:8px;border:1px solid #4a6c4c;border-radius:12px;}
.sg-game.sg-stats-pinned :is(button,input,select,a){scroll-margin-top:calc(var(--sg-stats-top,0px) + var(--sg-stats-max-height,40dvh) + 12px);}
.sg-root.sg-minimal:before,.sg-root.sg-low-effects:before{display:none;}
.sg-root.sg-minimal{background:#0b1711!important;}
.sg-root.sg-minimal .sg-filmstrip{display:none;}
.sg-root.sg-minimal :is(.sg-page-card,.sg-slot-card,.sg-summary-screen){border-radius:6px;box-shadow:none;}
.sg-root.sg-low-effects{background:#0c1812!important;}
.sg-root.sg-low-effects *,.sg-root.sg-low-effects{box-shadow:none!important;text-shadow:none!important;backdrop-filter:none!important;filter:none!important;}
.sg-root .sg-affordable{border-color:#9bc981;box-shadow:inset 0 0 0 1px #638650;}
.sg-root .sg-toast-limited{max-width:260px;font-size:12px;padding:10px 14px;}
.sg-root.sg-colorblind :is(.sg-unavail,.sg-locked,.sg-not-achieved){border-style:dashed!important;}

/* 2.2.1: keep the existing body/fullscreen portal readable under theme rules. */
.sg-root.sg-portal.sg-overlay .sg-modal-card{
 background:#12231a!important;color:#f4f5ed!important;opacity:1!important;
 border-color:#85b877!important;box-sizing:border-box;min-width:0;
 max-width:100%;max-height:min(90dvh,calc(var(--sg-dialog-viewport,100dvh) - 34px));
 padding:clamp(16px,4vw,32px);overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;
 font-family:Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important;
}
.sg-root.sg-portal.sg-overlay .sg-modal-title{color:#efffe6!important;}
.sg-root.sg-portal.sg-overlay .sg-modal-eyebrow{color:#b2f67d!important;}
.sg-root.sg-portal.sg-overlay :is(.sg-modal-text,.sg-modal-outcome,.sg-rules,.sg-shop-desc,.sg-setup-note){color:#c6d9c9!important;}
.sg-root.sg-portal.sg-overlay .sg-modal-card :is(p,li,dt,dd,b,strong,em,small,label){color:inherit!important;background:transparent!important;text-shadow:none!important;}
.sg-root.sg-portal.sg-overlay :is(.sg-modal-text,.sg-rules){background:transparent!important;}
.sg-root.sg-portal.sg-overlay .sg-modal-outcome{background:#102019!important;border-color:#7d9d7d!important;}
.sg-root.sg-portal.sg-overlay :is(.sg-setup-msg,[role="alert"]){color:#ffd4c4!important;}
.sg-root.sg-portal.sg-overlay .sg-modal-card button{
 --sg-control-bg:#102019;--sg-control-ink:#ecf6e8;--sg-control-border:#7d9d7d;
 min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;
}
.sg-root.sg-portal.sg-overlay .sg-modal-card .sg-btn-primary{--sg-control-bg:#37652b;--sg-control-ink:#f3ffe6;--sg-control-border:#a5ec75;}
@media(hover:hover) and (pointer:fine){
 .sg-root.sg-portal.sg-overlay .sg-modal-card button:hover:not(:disabled){--sg-control-bg:#1d3b24;--sg-control-border:#a5df85;}
 .sg-root.sg-portal.sg-overlay .sg-modal-card .sg-btn-primary:hover:not(:disabled){--sg-control-bg:#457b34;}
}
.sg-root.sg-portal.sg-overlay .sg-modal-card button:disabled{
 --sg-control-bg:#17221d;--sg-control-ink:#b9cbbd;--sg-control-border:#768577;
 opacity:1!important;border-style:dashed;cursor:not-allowed;
}
.sg-root.sg-portal.sg-overlay .sg-lock-note{color:#c3d7be!important;opacity:1!important;}
.sg-root.sg-portal.sg-overlay .sg-modal-card :is(.sg-pos,.sg-pay-row b.sg-pos,.sg-sub-row b.sg-pos){color:#b2f67d!important;}
.sg-root.sg-portal.sg-overlay .sg-modal-card :is(.sg-neg,.sg-pay-row b.sg-neg,.sg-sub-row b.sg-neg){color:#ffc3ab!important;}
.sg-root.sg-portal.sg-overlay .sg-modal-card a{color:#b2f67d!important;text-decoration:underline;}
.sg-root.sg-portal.sg-overlay .sg-modal-close{min-width:44px;min-height:44px;}
.sg-root.sg-toastWrap .sg-toast{background:#102019!important;color:#f4f5ed!important;border-color:#7d9d7d;}
.sg-root.sg-portal.sg-overlay .sg-shop-item.sg-owned{opacity:1!important;border-style:dashed;}
.sg-root.sg-portal.sg-overlay .sg-shop-owned{color:#c3d7be!important;}
.sg-root .sg-setup-msg{color:#ffd4c4!important;}
.sg-game .sg-changelog-version{color:#b2f67d;font-weight:750;}
.sg-game .sg-changelog-summary{color:#d4e6d3;line-height:1.7;max-width:72ch;}
.sg-game .sg-changelog-category h4{margin:18px 0 6px;color:#bce9aa;}
.sg-game .sg-changelog-category ul{padding-left:22px;color:#d4e6d3;line-height:1.7;}
.sg-game .sg-changelog-group{border:1px solid #3e6548;border-radius:12px;padding:12px 16px;margin:16px 0;}
.sg-game .sg-changelog-group>summary{cursor:pointer;color:#c9dfc2;font-weight:700;min-height:44px;display:list-item;align-content:center;}
.sg-game .sg-changelog-detail{margin-top:18px;border-top:1px solid #486750;padding-top:14px;overflow-wrap:anywhere;}
.sg-game .sg-changelog-page [hidden]{display:none!important;}
.sg-root.sg-colorblind :is(.sg-achieved,.sg-owned-label){border:3px double #b8d6df;}
.sg-root.sg-colorblind .sg-pay-status.sg-ok:before{content:'✓ ';font-weight:900;}.sg-root.sg-colorblind .sg-pay-status.sg-warn:before{content:'! ';font-weight:900;}
.sg-root.sg-system-contrast{--sg-ink:#fff;--sg-ink-dim:#e4f3dc;--sg-ink-faint:#d1e6ca;}
.sg-root.sg-system-contrast :is(button,select,input,.sg-page-card,.sg-slot-card){border-color:#bfdfa4!important;}
.sg-root.sg-system-contrast :is(p,label,summary,small){color:#edf8e6;}
@media(forced-colors:active){.sg-root,.sg-root *{forced-color-adjust:auto!important;box-shadow:none!important;}.sg-root :is(button,input,select,summary){border:1px solid ButtonText!important;}.sg-root :focus-visible{outline:3px solid Highlight!important;}.sg-root .sg-chart :is(line,polyline,circle){stroke:CanvasText;}}
@media(max-width:600px){.sg-game .sg-setting select{width:100%;}.sg-game.sg-stats-brief .sg-statsBar{grid-template-columns:repeat(2,minmax(0,1fr));}.sg-root.sg-large-controls .sg-action-btn{font-size:14px!important;padding:12px 10px!important;}}
.sg-game.sg-compact.sg-stats-pinned .sg-statsBar{grid-template-columns:repeat(2,minmax(0,1fr));}
.sg-game.sg-compact.sg-stats-pinned .sg-stat-day{display:block;}
.sg-game.sg-compact.sg-stats-pinned:not(.sg-stats-expanded) .sg-statsBar>.sg-stat-card:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(6)):not(.sg-stat-day){display:none;}
.sg-game.sg-compact.sg-stats-pinned .sg-stats-expand{display:flex;align-items:center;justify-content:center;grid-column:1/-1;min-height:44px;}
@media(max-width:850px){.sg-root :is(button,select,input[type='range']){min-height:44px;min-width:44px;}}
/* 2.2 backup, reports and local leaderboard controls; plugin scope only. */
.sg-game .sg-backup-file-label {display:block;margin-top:16px;color:#e2eddb;font-weight:650}
.sg-game .sg-backup-file {display:block;width:100%;max-width:100%;min-height:44px;margin:8px 0 12px;padding:8px;background:#102019;color:#e2eddb;border:1px solid #58715b;border-radius:6px}
.sg-game .sg-backup-file::file-selector-button {min-height:44px;background:#233c28;color:#eff8e8;border:1px solid #91bc78;border-radius:5px;padding:6px 12px;margin-right:8px}
.sg-game .sg-diagnostics-label {display:block;color:#d2e2cb}
.sg-game .sg-diagnostics {display:block;width:100%;max-width:100%;padding:12px;background:#0b1812;color:#e2eddb;border:1px solid #58715b;border-radius:6px;font:14px/1.6 ui-monospace,monospace}
.sg-game .sg-diagnostics-label[hidden] {display:none}
.sg-game .sg-storage-message {padding:12px 0;color:#d6ecc5;overflow-wrap:anywhere}
.sg-game .sg-storage-message[role="alert"] {color:#ffd0b6}
.sg-game .sg-monthly-reports,.sg-game .sg-career-style,.sg-game .sg-record {margin:24px 0;padding:20px;background:#0e1e16;border:1px solid #486449;border-radius:10px}
.sg-game .sg-monthly-report {padding:12px 0;border-bottom:1px solid #38523e}
.sg-game .sg-monthly-report summary,.sg-game .sg-career-style summary {padding:10px 0;cursor:pointer;color:#d9f0c9;font-weight:650}
.sg-game .sg-board-filters {display:flex;flex-wrap:wrap;gap:16px;margin:16px 0}
.sg-game .sg-board-filters label {display:grid;gap:6px;color:#dbe9d3;min-width:180px;max-width:100%}
.sg-game .sg-board-filters select {max-width:100%;min-height:44px;padding:8px;background:#102019;color:#eff8e8;border:1px solid #58715b;border-radius:6px}
.sg-game.sg-large-controls .sg-backup-file::file-selector-button,.sg-game.sg-large-controls .sg-board-filters select {min-height:52px}
.sg-game.sg-minimal .sg-monthly-reports,.sg-game.sg-minimal .sg-career-style,.sg-game.sg-minimal .sg-record {border-radius:2px}
@media(forced-colors:active){.sg-game .sg-backup-file,.sg-game .sg-diagnostics,.sg-game .sg-board-filters select{background:Canvas;color:CanvasText;border:1px solid CanvasText}}

.sg-root.sg-fast-motion:not(.sg-no-motion) *,.sg-root.sg-fast-motion:not(.sg-no-motion) *:before,.sg-root.sg-fast-motion:not(.sg-no-motion) *:after{animation-duration:.1s!important;transition-duration:.07s!important;}

/* 2.2.2: one ending chapter; all rules are confined to the final screen. */
.sg-game .sg-ending.sg-ending-v222{max-width:900px;margin:0 auto;padding:26px;text-align:left;display:flex;flex-direction:column;gap:24px;min-width:0;background:#0b1811;border-radius:18px;}
.sg-game .sg-ending-v222 :is(p,h2,h3,h4){margin-top:0;}
.sg-game .sg-ending-v222 .sg-ending-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:#b2f67d;margin-bottom:14px;}
.sg-game .sg-ending-v222 .sg-ending-story h2{font-size:clamp(30px,4vw,44px)!important;font-weight:800;line-height:1.15;text-transform:none;letter-spacing:-.025em;margin:0 0 12px;}
.sg-game .sg-ending-v222 .sg-ending-date{color:#b9cfba;font-size:13px;margin-bottom:16px;}
.sg-game .sg-ending-v222 .sg-ending-text{font-size:16px;font-weight:400;font-style:normal;line-height:1.8;color:#d4e6d3;max-width:72ch;margin:0;padding:0;text-align:left;}
.sg-game .sg-ending-v222 :is(.sg-final-score,.sg-career-style,.sg-thanks){margin:0;padding:26px;border:1px solid #41634a;border-radius:18px;background:#12231a;box-shadow:none;max-width:none;}
.sg-game .sg-ending-v222 .sg-final-score{text-align:center;}
.sg-game .sg-ending-v222 .sg-final-score h3{font-size:12px!important;font-weight:700;letter-spacing:.1em;margin:0 0 12px;}
.sg-game .sg-ending-v222 .sg-final-score-value{display:block;font:800 clamp(52px,9vw,84px)/1.1 system-ui;color:#b2f67d;letter-spacing:-.04em;overflow-wrap:anywhere;}
.sg-game .sg-ending-v222 .sg-save-msg{font:400 13px/1.65 system-ui;color:#c6d9c9;margin:16px 0 0;min-height:1.65em;padding:0;border:0;background:none;box-shadow:none;}
.sg-game .sg-ending-v222 .sg-retry{margin-left:8px;min-height:44px;padding:8px 14px;border:1px solid #829c7a;border-radius:9px;}
.sg-game .sg-ending-v222 .sg-sum{margin:0;padding:0;border:0;max-width:none;background:none;}
.sg-game .sg-ending-v222 :is(.sg-sum>h3,.sg-career-style>h3,.sg-thanks-title,.sg-promo-label){font-size:20px!important;font-weight:750;font-style:normal;line-height:1.4;margin:0 0 16px;letter-spacing:normal;text-transform:none;}
.sg-game .sg-ending-v222 .sg-sum-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.sg-game .sg-ending-v222 .sg-sum-item{position:relative;display:flex;flex-direction:column;gap:7px;padding:22px;border:1px solid #365940;border-radius:14px;background:#0e1e16;min-width:0;}
.sg-game .sg-ending-v222 .sg-ending-stat-icon{position:absolute;right:20px;top:17px;color:#b2f67d;font:500 20px/1 system-ui;text-transform:none;letter-spacing:0;}
.sg-game .sg-ending-v222 .sg-sum-item h4{font-size:14px!important;line-height:1.5;font-weight:650;margin:0 28px 5px 0;}
.sg-game .sg-ending-v222 .sg-sum-item>b{font-size:clamp(24px,3vw,30px);line-height:1.25;color:#d5f8bd;overflow-wrap:anywhere;}
.sg-game .sg-ending-v222 .sg-sum-item em{font-size:12px;line-height:1.65;color:#bfd2c0;}
.sg-game .sg-ending-v222 .sg-ending-work{display:grid;gap:8px;margin:0;}
.sg-game .sg-ending-v222 .sg-ending-work>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
.sg-game .sg-ending-v222 .sg-ending-work dt{font-size:12px;line-height:1.5;color:#bfd2c0;}
.sg-game .sg-ending-v222 .sg-ending-work dd{font-size:23px;line-height:1.2;font-weight:750;color:#d5f8bd;margin:0;overflow-wrap:anywhere;}
.sg-game .sg-ending-v222 .sg-career-style-name{font-size:25px;font-weight:750;line-height:1.3;color:#d5f8bd;margin:0 0 10px;}
.sg-game .sg-ending-v222 .sg-career-style>p:last-child{margin:0;color:#c6d9c9;font-size:15px;line-height:1.7;}
.sg-game .sg-ending-v222 .sg-ending-details{margin:0;background:#0c1912;border:1px solid #41634a;border-radius:14px;min-width:0;}
.sg-game .sg-ending-v222 .sg-ending-details>summary{display:flex;align-items:center;gap:16px;cursor:pointer;padding:20px 24px;list-style:none;min-height:60px;}
.sg-game .sg-ending-v222 .sg-ending-details>summary::-webkit-details-marker{display:none;}
.sg-game .sg-ending-v222 .sg-ending-details>summary:after{content:'＋';font-size:23px;color:#b2f67d;margin-left:auto;flex-shrink:0;}
.sg-game .sg-ending-v222 .sg-ending-details[open]>summary:after{content:'−';}
.sg-game .sg-ending-v222 .sg-ending-details>summary strong{display:block;font-size:17px;line-height:1.5;color:#e4f6dd;}
.sg-game .sg-ending-v222 .sg-ending-details>summary small{display:block;font-size:12px;line-height:1.6;color:#bfd2c0;margin-top:4px;}
.sg-game .sg-ending-v222 .sg-ending-details-content{padding:0 24px 24px;display:grid;gap:28px;min-width:0;}
.sg-game .sg-ending-v222 .sg-ending-details-content :is(.sg-career-ending,.sg-ending-comparison,.sg-journal,.sg-record,.sg-monthly-reports){margin:0;padding:0;border:0;background:none;border-radius:0;max-width:none;box-shadow:none;text-align:left;}
.sg-game .sg-ending-v222 .sg-ending-details-content h4{font-size:17px!important;font-weight:750;line-height:1.5;margin:0 0 14px;color:#e4f6dd!important;}
.sg-game .sg-ending-v222 .sg-ending-details-content :is(p,li){font-size:14px;color:#c6d9c9;}
.sg-game .sg-ending-v222 .sg-ending-details-content :is(.sg-monthly-reports h3,.sg-milestone h3){font-size:15px!important;line-height:1.5;}
.sg-game .sg-ending-v222 .sg-ending-facts{gap:12px;margin:0 0 18px;}
.sg-game .sg-ending-v222 .sg-ending-facts>div{padding:0;border:0;min-width:0;}
.sg-game .sg-ending-v222 .sg-ending-facts dd{font-size:18px;line-height:1.5;}
.sg-game .sg-ending-v222 .sg-journal-head{font-family:inherit;text-transform:none;letter-spacing:0;}
.sg-game .sg-ending-v222 .sg-journal-row{padding:12px 0;}
.sg-game .sg-ending-v222 .sg-compare{margin:0 0 16px;}
.sg-game .sg-ending-v222 .sg-cmp-main b{font-size:25px;}
.sg-game .sg-ending-v222 .sg-thanks-icon{display:block;font-size:26px;line-height:1;margin-bottom:16px;}
.sg-game .sg-ending-v222 .sg-thanks-text{font-size:15px;line-height:1.8;color:#c6d9c9;}
.sg-game .sg-ending-v222 .sg-thanks-offer{margin:18px 0;padding:0;border:0;font-size:14px;color:#d4e6d3;}
.sg-game .sg-ending-v222 .sg-thanks-cta{display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;padding:12px 22px;background:#2e632c!important;color:#f3ffe6!important;border:1px solid #a5ec75;border-radius:10px;font:750 15px/1.5 system-ui;box-shadow:none;white-space:normal;overflow-wrap:anywhere;text-align:center;}
.sg-game .sg-ending-v222 .sg-thanks-cta:hover{background:#244f24!important;border-color:#d5f8bd;box-shadow:none;}
.sg-game .sg-ending-v222 .sg-promo{margin:0;padding:4px 0;border:0;max-width:none;text-align:left;}
.sg-game .sg-ending-v222 .sg-promo>p{font-size:14px;color:#bfd2c0;margin:0 0 18px;}
.sg-game .sg-ending-v222 .sg-promo-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.sg-game .sg-ending-v222 .sg-promo-btn{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:48px;padding:12px 16px;border:1px solid #829c7a!important;border-radius:10px;background:#102019!important;color:#e7f1e7!important;font:650 14px/1.5 system-ui;text-align:left;white-space:normal;overflow-wrap:anywhere;}
.sg-game .sg-ending-v222 .sg-promo-btn:hover{background:#1d3b24!important;border-color:#a5df85!important;}
.sg-game .sg-ending-v222 .sg-promo-btn .sg-ic{flex:0 0 auto;font-size:18px;}
.sg-game .sg-ending-v222 .sg-ending-footer{padding-top:4px;min-width:0;}
.sg-game .sg-ending-v222 .sg-fb{margin:0 0 22px;padding:0;border:0;max-width:none;text-align:left;display:flex;align-items:center;flex-wrap:wrap;gap:14px;}
.sg-game .sg-ending-v222 .sg-fb-q{margin:0;font-size:13px;}
.sg-game .sg-ending-v222 .sg-fb-row{gap:8px;}
.sg-game .sg-ending-v222 :is(.sg-fb-btn,.sg-ending-actions button){min-height:48px;border-radius:10px;}
.sg-game .sg-ending-v222 .sg-fb-btn{min-width:48px;padding:10px;}
.sg-game .sg-ending-v222 .sg-ending-actions{justify-content:flex-start;gap:12px;}
.sg-game .sg-ending-v222 .sg-ending-actions button{padding:12px 22px;}
.sg-game .sg-ending-v222 .sg-ending-actions .sg-btn-primary{flex:1 1 240px;--sg-control-bg:#2e632c;}
.sg-game .sg-ending-v222 button{--sg-control-border:#829c7a;}
.sg-game .sg-ending-v222 .sg-ending-actions .sg-btn-primary{--sg-control-border:#a5ec75;}
.sg-game.sg-large-controls .sg-ending-v222 :is(button,a,summary){min-height:52px;}
.sg-game.sg-minimal .sg-ending-v222 :is(.sg-final-score,.sg-sum-item,.sg-career-style,.sg-ending-details,.sg-thanks){border-radius:6px;}
@media(max-width:600px){.sg-game .sg-ending.sg-ending-v222{gap:20px;padding:18px 12px;}.sg-game .sg-ending-v222 :is(.sg-final-score,.sg-career-style,.sg-thanks){padding:20px;}.sg-game .sg-ending-v222 .sg-sum-item{padding:18px;}.sg-game .sg-ending-v222 .sg-ending-details>summary{padding:18px;}.sg-game .sg-ending-v222 .sg-ending-details-content{padding:0 18px 20px;}.sg-game .sg-ending-v222 .sg-promo-row{grid-template-columns:1fr;}.sg-game .sg-ending-v222 .sg-ending-actions button{flex:1 1 100%;}.sg-game .sg-ending-v222 .sg-thanks-cta{width:100%;}}
@media(max-width:450px){.sg-game .sg-ending-v222 .sg-sum-grid{grid-template-columns:1fr;}.sg-game .sg-ending-v222 .sg-ending-facts{grid-template-columns:1fr;}}

/* 2.3.1: a score-led ending, using the existing game tokens. */
.sg-game .sg-ending-v231 .sg-final-score{border-color:var(--sg-line-strong);background:var(--sg-panel-2);padding:30px 24px;}
.sg-game .sg-ending-v231 .sg-final-score-value{font-size:clamp(64px,10vw,96px);color:var(--sg-gold);}
.sg-game .sg-ending-v231 .sg-career-title{display:flex;align-items:center;justify-content:center;gap:16px;padding:0 12px;}
.sg-game .sg-ending-v231 .sg-career-title-icon{font-size:32px;line-height:1;color:var(--sg-gold);}
.sg-game .sg-ending-v231 .sg-career-title p{font-size:10px;letter-spacing:.12em;color:var(--sg-ink-dim);margin:0 0 4px;}
.sg-game .sg-ending-v231 .sg-career-title h3{font-size:clamp(22px,3vw,28px)!important;line-height:1.25;margin:0;color:var(--sg-gold);}
.sg-game .sg-ending-v231 :is(.sg-career-verdict,.sg-ending-benchmark){padding:4px 0;}
.sg-game .sg-ending-v231 :is(.sg-career-verdict,.sg-ending-benchmark)>h3{font-size:20px!important;line-height:1.4;margin:0 0 12px;}
.sg-game .sg-ending-v231 .sg-career-verdict>p{font-size:16px;line-height:1.85;color:var(--sg-ink-dim);margin:0;}
.sg-game .sg-ending-v231 .sg-career-style{margin:0;padding:0;border:0;background:none;}
.sg-game .sg-ending-v231 .sg-compare{display:block;margin:0;padding:0;border:0;background:none;}
.sg-game .sg-ending-v231 .sg-ending-text{font-family:inherit;}
.sg-game .sg-ending-v231 .sg-benchmark-result{font-size:16px;color:var(--sg-ink);margin:0 0 8px;line-height:1.65;}
.sg-game .sg-ending-v231 .sg-benchmark-result strong{color:var(--sg-gold);}
.sg-game .sg-ending-v231 .sg-benchmark-note{font-size:12px;line-height:1.7;color:var(--sg-ink-dim);margin:0;}
.sg-game .sg-ending-v231 .sg-thanks{background:var(--sg-panel-2);border-color:var(--sg-line-strong);}
.sg-game .sg-ending-v231 .sg-thanks-text{margin-bottom:18px;}
.sg-game .sg-ending-v231 .sg-thanks-icon{float:right;margin:0 0 12px 16px;font-size:23px;}
.sg-game .sg-ending-v231 .sg-promo-btn{transform:none!important;}
/* Investments use the normal document/fullscreen scroll, without a nested viewport. */
.sg-game .sg-investments-page{color:var(--sg-ink-dim);min-width:0;}
.sg-game .sg-investments-cash{color:var(--sg-ink);}
.sg-game .sg-investment-tabs{display:flex;gap:8px;overflow-x:auto;padding:3px 3px 12px;margin:20px -3px;border-bottom:1px solid var(--sg-line);}
.sg-game .sg-investment-tabs [role=tab]{flex:0 0 auto;min-height:46px;padding:12px 22px;border:1px solid var(--sg-line-strong);border-radius:10px;background:var(--sg-panel-2);color:var(--sg-ink);font:700 14px/1.4 system-ui;cursor:pointer;transform:none;}
.sg-game .sg-investment-tabs [aria-selected=true]{background:var(--sg-gold-soft);border-color:var(--sg-gold);box-shadow:inset 0 -3px 0 var(--sg-gold);}
.sg-game .sg-investment-tabs [role=tab]:hover{background:var(--sg-gold-soft);transform:none;}
.sg-game .sg-investment-tabs [role=tab]:focus-visible{outline:2px solid var(--sg-gold);outline-offset:3px;}
.sg-game .sg-investment-panels [role=tabpanel]{min-width:0;outline-offset:4px;}
.sg-game .sg-investment-panels [data-shop-panel=lifestyle]:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
.sg-game [data-shop-panel=lifestyle]>.sg-modal-text{grid-column:1/-1;color:var(--sg-ink-dim);font:14px/1.7 system-ui;margin:0;}
.sg-game .sg-investment-item{padding:20px;border:1px solid var(--sg-line-strong);border-radius:14px;background:var(--sg-panel-2);min-width:0;}
.sg-game .sg-investment-item h3{font-size:18px!important;line-height:1.4;margin:0 0 10px;}
.sg-game .sg-investment-item p{font-size:13px;line-height:1.65;color:var(--sg-ink-dim);margin:0 0 12px;}
.sg-game .sg-investment-finance{font:12px/1.6 system-ui;margin:16px 0;}
.sg-game .sg-investment-finance>div{display:flex;flex-wrap:wrap;gap:4px 14px;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--sg-line);}
.sg-game .sg-investment-finance dd{margin:0 0 0 auto;text-align:right;font-weight:700;color:var(--sg-ink);white-space:nowrap;}
.sg-game .sg-investment-finance .sg-neg,.sg-game .sg-investment-item .sg-investment-warning{color:#ffc59a;}
.sg-game .sg-investment-finance .sg-pos{color:var(--sg-gold);}
.sg-game .sg-investment-item .sg-choice-btn{min-height:46px;max-width:100%;padding:12px 16px;border:1px solid var(--sg-line-strong);border-radius:10px;background:var(--sg-gold-soft);color:var(--sg-ink);font:650 14px/1.5 system-ui;cursor:pointer;box-shadow:none;transform:none;}
.sg-game .sg-investment-item .sg-choice-btn:hover{border-color:var(--sg-gold);background:var(--sg-panel);transform:none;}
.sg-game .sg-investment-item .sg-choice-btn:disabled{opacity:.6;cursor:not-allowed;}
.sg-game .sg-investments-page .sg-shop{display:grid;gap:12px;}
.sg-game .sg-investments-page .sg-shop-item{display:flex;align-items:center;gap:16px;background:var(--sg-panel-2);border:1px solid var(--sg-line-strong);border-radius:12px;padding:18px;}
.sg-game .sg-investments-page .sg-shop-ic{flex:0 0 32px;font-size:26px;}
.sg-game .sg-investments-page .sg-shop-body{flex:1 1 180px;min-width:0;}
.sg-game .sg-investments-page .sg-shop-name{font-size:16px;font-weight:750;line-height:1.4;}
.sg-game .sg-investments-page .sg-shop-desc{font-size:13px;line-height:1.65;margin-top:6px;}
.sg-game .sg-investments-page .sg-shop-item.sg-affordable{border-color:var(--sg-gold);}
.sg-game .sg-investments-page .sg-shop-item.sg-owned{opacity:1;border-style:dashed;}
.sg-game .sg-investments-page :is(.sg-shop-name,.sg-shop-desc,.sg-shop-owned){color:var(--sg-ink);}
.sg-game .sg-investments-page .sg-shop-desc{color:var(--sg-ink-dim);}
.sg-game .sg-investments-page .sg-shop-buy{flex:0 0 auto;min-height:46px;max-width:100%;padding:12px 16px;border:1px solid var(--sg-line-strong);border-radius:10px;background:var(--sg-gold-soft);color:var(--sg-ink);font:650 14px/1.5 system-ui;cursor:pointer;white-space:nowrap;transform:none;}
.sg-game .sg-investments-page .sg-shop-buy:hover{background:var(--sg-panel);border-color:var(--sg-gold);transform:none;}
.sg-game .sg-investments-page .sg-shop-buy:disabled{opacity:.6;cursor:not-allowed;}
.sg-game .sg-investments-page [data-shop-status]{min-height:1.65em;margin:20px 0 12px;color:var(--sg-gold);}
.sg-game .sg-investments-back{margin-top:20px;}
.sg-game.sg-large-controls .sg-investments-page :is(button,[role=tab]){min-height:52px;}
.sg-game.sg-minimal .sg-investments-page :is(.sg-shop-item,.sg-investment-item){border-radius:6px;box-shadow:none;}
@media(max-width:1050px){.sg-game .sg-investment-panels [data-shop-panel=lifestyle]:not([hidden]){grid-template-columns:1fr;}}
@media(max-width:600px){.sg-game .sg-investment-item,.sg-game .sg-investments-page .sg-shop-item{padding:16px;}.sg-game .sg-investments-page .sg-shop-item{flex-wrap:wrap;}.sg-game .sg-investments-page .sg-shop-buy{margin-left:auto;}.sg-game .sg-investment-tabs [role=tab]{padding:12px 16px;}}

/* 2.3.2: shared content-page components. Never style the game, HUD or portals. */
.sg-game .sg-content-page{font-size:14px;line-height:1.7;color:var(--sg-ink);min-width:0;}
.sg-game .sg-content-page :is(h2,h3,h4,h5,p,ul,ol,dl,figure){margin-top:0;}
.sg-game .sg-content-page :is(h2,h3,h4,h5){font-family:inherit;line-height:1.4;color:var(--sg-ink);letter-spacing:-.02em;}
.sg-game .sg-content-page .sg-page-header{margin:0 0 24px;max-width:78ch;}
.sg-game .sg-content-page .sg-page-eyebrow{font-size:11px;font-weight:750;line-height:1.5;letter-spacing:.12em;color:var(--sg-gold);margin:0 0 8px;}
.sg-game .sg-content-page h2.sg-page-title{font-size:clamp(24px,2.5vw,26px)!important;line-height:1.3;margin:0 0 12px;}
.sg-game .sg-content-page .sg-page-intro{font-size:14px;line-height:1.75;color:var(--sg-ink-dim);margin:0;}
.sg-game .sg-content-page :is(p,li,dt,dd){font-size:14px;line-height:1.7;}
.sg-game .sg-content-page :is(p,li){color:var(--sg-ink-dim);}
.sg-game .sg-content-page .sg-page-grid{gap:16px;align-items:start;}
.sg-game .sg-content-page :is(.sg-page-card,.sg-investment-item,.sg-settings-panel){background:var(--sg-panel-2);border:1px solid var(--sg-line-strong);border-radius:14px;padding:20px;margin:0;min-width:0;box-shadow:none;}
.sg-game .sg-content-page .sg-page-card>:is(h3,h4){font-size:18px!important;line-height:1.4;font-weight:750;margin:0 0 14px;}
.sg-game .sg-content-page .sg-section-title,.sg-game .sg-content-page>section>h3,.sg-game .sg-content-page .sg-career-charts>h3,.sg-game .sg-content-page .sg-monthly-reports>h3,.sg-game .sg-content-page .sg-changelog-page>section>h3{font-size:20px!important;font-weight:750;margin:0 0 16px;}
.sg-game .sg-content-page .sg-section-subtitle{font-size:17px!important;margin:12px 0 0;}
.sg-game .sg-content-page .sg-page-card p{margin:0 0 14px;}
.sg-game .sg-content-page .sg-page-card>:last-child{margin-bottom:0;}
.sg-game .sg-content-page .sg-fact{gap:12px;padding:10px 0;border-bottom-color:var(--sg-line);font-size:14px;}
.sg-game .sg-content-page .sg-fact>span{color:var(--sg-ink-dim);}
.sg-game .sg-content-page .sg-fact>strong{font-size:14px;color:var(--sg-ink);text-align:right;}
.sg-game .sg-content-page .sg-person-role{font-size:13px;line-height:1.6;color:var(--sg-ink-dim);}
.sg-game .sg-content-page .sg-activity-list{margin:16px 0;padding:0;list-style:none;}
.sg-game .sg-content-page .sg-activity-list li{padding:10px 0;border-bottom:1px solid var(--sg-line);font-size:14px;}
.sg-game .sg-content-page .sg-activity-list small{display:block;font-size:12px;line-height:1.6;color:var(--sg-ink-dim);margin-top:4px;}
.sg-game .sg-content-page .sg-activity-list .sg-locked{opacity:1;border-left:2px dashed var(--sg-line-strong);padding-left:12px;}
.sg-game .sg-content-page .sg-page-bar{height:7px;background:var(--sg-sunk);border:1px solid var(--sg-line);margin:12px 0;}
.sg-game .sg-content-page .sg-page-bar>i{background:var(--sg-gold);}
.sg-game .sg-content-page .sg-next-milestone{padding:14px 16px;border:1px solid var(--sg-gold);border-radius:12px;background:var(--sg-gold-soft);}
.sg-game .sg-content-page .sg-milestone.sg-achieved{border-color:var(--sg-gold);}
.sg-game .sg-content-page .sg-milestone.sg-not-achieved{border-style:dashed;opacity:1;}
.sg-game .sg-content-page .sg-milestone[data-sg-nearest]{box-shadow:inset 3px 0 0 var(--sg-gold);}
.sg-game .sg-content-page .sg-career-timeline{margin:0 0 24px;padding:0 0 0 22px;border-left:1px solid var(--sg-line-strong);}
.sg-game .sg-content-page .sg-career-timeline li{padding:0 0 20px 8px;margin:0;background:none;border:0;box-shadow:none;}
.sg-game .sg-content-page .sg-career-timeline time{font-size:12px;color:var(--sg-ink-dim);line-height:1.6;}
.sg-game .sg-content-page .sg-career-timeline strong{font-size:15px;line-height:1.6;color:var(--sg-ink);margin:4px 0;}
.sg-game .sg-content-page .sg-career-timeline p{font-size:14px;line-height:1.7;margin:4px 0 0;}
.sg-game .sg-content-page .sg-rules-page{display:grid;gap:16px;}
.sg-game .sg-content-page .sg-rules-page ul{padding-left:20px;margin:0;}
.sg-game .sg-content-page .sg-rules-page li+li{margin-top:10px;}
.sg-game .sg-content-page :is(button,.sg-btn-ghost,.sg-btn-primary){min-height:44px;max-width:100%;padding:11px 16px;border:1px solid var(--sg-line-strong);border-radius:10px;background:var(--sg-panel-2);color:var(--sg-ink);font-family:inherit;font-size:14px;font-weight:650;line-height:1.5;cursor:pointer;white-space:normal;box-shadow:none;transform:none!important;transition:background-color .12s,border-color .12s,color .12s;}
.sg-game .sg-content-page .sg-btn-primary{background:var(--sg-gold-soft);border-color:var(--sg-gold);font-weight:750;}
.sg-game .sg-content-page button:hover{background:var(--sg-panel);border-color:var(--sg-gold);transform:none!important;box-shadow:none;}
.sg-game .sg-content-page button:active{background:var(--sg-gold-soft);transform:none!important;}
.sg-game .sg-content-page :is(button,select,input,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--sg-gold);outline-offset:3px;}
.sg-game .sg-content-page button:disabled{opacity:.58;cursor:not-allowed;transform:none!important;box-shadow:none;}
.sg-game .sg-content-page .sg-action-danger{border-color:var(--sg-red);border-style:dashed;}
.sg-game .sg-content-page .sg-page-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;}
.sg-game .sg-content-page .sg-page-tabs{display:flex;gap:8px;overflow-x:auto;max-width:100%;margin:0 0 20px;padding:4px 3px 12px;border-bottom:1px solid var(--sg-line);scrollbar-width:thin;}
.sg-game .sg-content-page .sg-page-tabs>[role=tab]{flex:0 0 auto;white-space:nowrap;min-height:46px;padding:12px 18px;}
.sg-game .sg-content-page .sg-page-tabs>[aria-selected=true]{background:var(--sg-gold-soft);border-color:var(--sg-gold);box-shadow:inset 0 -3px 0 var(--sg-gold);}
.sg-game .sg-content-page .sg-settings-panel>h3{margin-bottom:18px;}
.sg-game .sg-content-page .sg-settings-body{padding:0;display:grid;gap:14px;}
.sg-game .sg-content-page .sg-settings-body>button{width:fit-content;}
.sg-game .sg-content-page .sg-setting{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.7fr);gap:6px 18px;padding:14px;border:1px solid var(--sg-line);border-radius:10px;background:var(--sg-panel);min-width:0;}
.sg-game .sg-content-page .sg-setting-label{grid-column:1;font-size:14px;font-weight:700;line-height:1.5;color:var(--sg-ink);}
.sg-game .sg-content-page .sg-setting select{grid-column:2;grid-row:1/3;width:100%;}
.sg-game .sg-content-page .sg-setting>p{grid-column:1;font-size:13px;line-height:1.7;margin:0;color:var(--sg-ink-dim);}
.sg-game .sg-content-page :is(select,input,textarea){box-sizing:border-box;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--sg-line-strong);border-radius:8px;background:var(--sg-panel);color:var(--sg-ink);font-family:inherit;font-size:14px;line-height:1.5;}
.sg-game .sg-content-page .sg-volume-setting{display:grid;gap:8px;padding:14px;border:1px solid var(--sg-line);border-radius:10px;background:var(--sg-panel);}
.sg-game .sg-content-page .sg-volume-label{display:flex;justify-content:space-between;gap:16px;font-size:14px;color:var(--sg-ink);}
.sg-game .sg-content-page .sg-volume{width:100%;accent-color:var(--sg-gold);margin:0;}
.sg-game .sg-content-page .sg-shortcuts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:10px 18px;margin:0;}
.sg-game .sg-content-page .sg-shortcuts dt{font-size:13px;font-weight:700;color:var(--sg-ink);}
.sg-game .sg-content-page .sg-shortcuts dd{font-size:13px;margin:0;color:var(--sg-ink-dim);}
.sg-game .sg-content-page :is(.sg-sound-preview-status,.sg-storage-message,[data-shop-status]):empty{display:none;}
.sg-game .sg-content-page .sg-backup-file{width:100%;}
.sg-game .sg-content-page .sg-backup-file::file-selector-button{min-height:44px;margin-right:10px;padding:9px 12px;border:1px solid var(--sg-line-strong);border-radius:8px;background:var(--sg-gold-soft);color:var(--sg-ink);font:650 14px/1.5 system-ui;}
.sg-game .sg-content-page .sg-diagnostics{font:13px/1.7 ui-monospace,monospace;}
.sg-game .sg-content-page :is(.sg-page-status,.sg-storage-message){padding:14px 16px;border:1px solid var(--sg-line-strong);border-radius:10px;background:var(--sg-panel-2);color:var(--sg-ink-dim);font-size:14px;line-height:1.7;margin:16px 0;}
.sg-game .sg-content-page [role=alert]{border-color:var(--sg-red);border-style:dashed;color:var(--sg-ink);}
.sg-game .sg-content-page :is(.sg-career-charts,.sg-monthly-reports){margin:24px 0 0;padding:0;border:0;background:none;box-shadow:none;}
.sg-game .sg-content-page .sg-career-charts>.sg-page-grid{margin-top:18px;}
.sg-game .sg-content-page .sg-chart{margin:0;overflow-x:auto;}
.sg-game .sg-content-page .sg-chart svg{display:block;width:100%;min-width:520px;}
.sg-game .sg-content-page .sg-chart svg text{font-size:16px;fill:var(--sg-ink-dim);}
.sg-game .sg-content-page .sg-chart figcaption{font-size:13px;line-height:1.6;margin:12px 0;}
.sg-game .sg-content-page details{border:1px solid var(--sg-line-strong);border-radius:12px;background:var(--sg-panel-2);margin:0 0 12px;padding:0;min-width:0;}
.sg-game .sg-content-page details>summary{display:flex;align-items:center;gap:12px;list-style:none;min-height:48px;padding:14px 16px;font-family:inherit;font-size:14px;font-weight:700;line-height:1.6;color:var(--sg-ink);cursor:pointer;}
.sg-game .sg-content-page details>summary::-webkit-details-marker{display:none;}
.sg-game .sg-content-page details>summary:after{content:'＋';flex:0 0 auto;margin-left:auto;font-size:20px;color:var(--sg-gold);}
.sg-game .sg-content-page details[open]>summary:after{content:'−';}
.sg-game .sg-content-page details>:not(summary){padding:0 16px 16px;}
.sg-game .sg-content-page .sg-ending-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px;}
.sg-game .sg-content-page .sg-ending-facts>div{min-width:0;padding:8px 0;border-bottom:1px solid var(--sg-line);}
.sg-game .sg-content-page .sg-ending-facts dt{font-size:13px;color:var(--sg-ink-dim);}
.sg-game .sg-content-page .sg-ending-facts dd{font-size:17px;font-weight:700;margin:4px 0 0;color:var(--sg-ink);}
.sg-game .sg-content-page .sg-monthly-report h4{font-size:17px!important;margin:18px 0 12px;}
.sg-game .sg-content-page .sg-investment-item h3{font-size:18px!important;margin-bottom:12px;}
.sg-game .sg-content-page .sg-investment-finance{font-size:13px;}
.sg-game .sg-content-page .sg-investment-finance :is(dt,dd){font-size:13px;line-height:1.6;}
.sg-game .sg-content-page .sg-investment-finance .sg-neg,.sg-game .sg-content-page .sg-investment-warning{color:var(--sg-red);}
.sg-game .sg-content-page .sg-investment-finance .sg-pos{color:var(--sg-gold);}
.sg-game .sg-content-page :is(.sg-board-page,.sg-table-scroll){max-width:100%;overflow-x:auto;}
.sg-game .sg-content-page table{width:100%;border-collapse:collapse;border-color:var(--sg-line);background:var(--sg-panel);font-size:14px;}
.sg-game .sg-content-page :is(th,td){padding:11px 12px;font-size:14px;line-height:1.6;border-color:var(--sg-line);color:var(--sg-ink);}
.sg-game .sg-content-page th{font-weight:750;background:var(--sg-panel-2);}
.sg-game .sg-content-page .sg-board-filters{gap:14px;margin:20px 0;}
.sg-game .sg-content-page .sg-board-filters label{font-size:14px;gap:8px;}
.sg-game .sg-content-page .sg-changelog-version{font-size:17px;color:var(--sg-gold);}
.sg-game .sg-content-page .sg-release-title{font-size:17px!important;line-height:1.6;margin:0;}
.sg-game .sg-content-page .sg-changelog-category>h5{font-size:14px!important;margin:16px 0 8px;color:var(--sg-ink);}
.sg-game .sg-content-page .sg-changelog-category ul{padding-left:20px;}
.sg-game .sg-content-page .sg-changelog-summary{font-size:14px;line-height:1.7;}
.sg-game .sg-content-page .sg-changelog-group>summary .sg-section-title{font-size:18px!important;margin:0;}
.sg-game .sg-content-page .sg-changelog-detail{margin-top:16px;padding-top:16px;border-color:var(--sg-line);}
.sg-game .sg-content-page .sg-changelog-detail :is(h5,h6){font-size:15px!important;margin:16px 0 10px;}
.sg-game.sg-large-controls .sg-content-page :is(button,select,input,summary){min-height:52px;}
.sg-game.sg-large-controls .sg-content-page .sg-backup-file::file-selector-button{min-height:52px;}
.sg-game.sg-minimal .sg-content-page :is(.sg-page-card,.sg-investment-item,.sg-settings-panel,details){border-radius:6px;box-shadow:none;}
.sg-game.sg-colorblind .sg-content-page :is(.sg-achieved,.sg-owned-label){border:3px double var(--sg-ink-dim);}
.sg-game.sg-system-contrast .sg-content-page :is(.sg-settings-panel,.sg-investment-item,details){border-color:var(--sg-ink-dim);}
@media(max-width:600px){.sg-game .sg-content-page .sg-page-header{margin-bottom:20px;}.sg-game .sg-content-page :is(.sg-page-card,.sg-investment-item,.sg-settings-panel){padding:16px;}.sg-game .sg-content-page .sg-setting{grid-template-columns:minmax(0,1fr);padding:12px;gap:8px;}.sg-game .sg-content-page .sg-setting select{grid-column:1;grid-row:auto;}.sg-game .sg-content-page .sg-setting>p{grid-column:1;}.sg-game .sg-content-page .sg-ending-facts{grid-template-columns:1fr;}.sg-game .sg-content-page .sg-shortcuts{grid-template-columns:minmax(0,1fr);gap:4px;}.sg-game .sg-content-page .sg-shortcuts dd{margin-bottom:10px;}.sg-game .sg-content-page .sg-page-tabs>[role=tab]{padding:12px 16px;}}
