@font-face{font-family:Board;src:url('/fonts/Jua-Regular.ttf') format('truetype');font-display:swap}
:root{--ink:#293d42;--muted:#7a8c8d;--green:#438b75;--line:#e3e9e2}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#eaf0e7;color:var(--ink);font-family:Board,'Segoe UI','Malgun Gothic',sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #e5aa40;outline-offset:4px}#viewport{position:fixed;inset:0}#viewport canvas{display:block}.topbar{position:absolute;top:0;left:0;right:0;height:100px;padding:25px 40px;display:flex;align-items:center;gap:24px;pointer-events:none}.topbar>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:13px;color:inherit;text-decoration:none}.brand-icon{width:45px;height:45px;border-radius:14px;background:#4e9079;color:#fff;display:grid;place-content:center;font-size:31px;font-weight:900;position:relative;box-shadow:0 4px 0 #36735f}.brand-icon span{position:absolute;right:3px;top:1px;font-size:22px;color:#f7d673}.brand b{font-size:25px;letter-spacing:-1px}.brand-dot{color:#e4ab48}.brand small{display:block;margin-top:2px;font-size:10px;letter-spacing:.5px;color:var(--muted)}.header-meta{display:flex;align-items:center;margin-left:auto;gap:10px;font-size:10px;letter-spacing:1.5px;color:#7f9390}.status-dot,.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#559b7d}.divider{height:14px;width:1px;background:#b9c9c0;margin:0 10px}.icon-button{border:1px solid #c9d6cd;border-radius:50%;width:31px;height:31px;background:#ffffff60;color:#648175;font-size:13px}.intro{position:absolute;left:42px;top:135px;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:2.3px;color:#77908a;font-weight:700}.intro h1{font-size:29px;line-height:1.48;letter-spacing:-1px;margin:14px 0}.intro em{font-style:normal;color:#4a8b73}.intro p{font-size:11px;line-height:1.9;color:#81918c}.pills{display:flex;gap:7px;margin-top:18px}.pills span{font-size:9px;border:1px solid #cbd9cd;border-radius:20px;padding:6px 10px;background:#ffffff40}.detail{position:absolute;right:28px;top:120px;width:230px;background:#fffffff2;backdrop-filter:blur(15px);border:1px solid #fff;border-radius:22px;padding:20px;box-shadow:0 16px 50px #34594710;display:none}.detail.open{display:block;animation:appear .3s}.detail-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#7f9187}.detail-top button{border:0;background:none;color:#8fa096;font-size:22px}.company-logo{height:83px;display:flex;align-items:center;justify-content:center;margin:16px 0}.company-logo img{width:120px;height:80px;object-fit:contain}.company-logo .special-icon{font-size:44px}.country{font-size:11px;color:#718980}.detail h2{font-size:21px;margin:8px 0 3px;letter-spacing:-.7px}.detail p{font-size:11px;color:#849089;line-height:1.7;margin:0}.stat{display:flex;justify-content:space-between;align-items:center;margin-top:23px}.stat span{font-size:11px;color:#87968e}.stat strong{font-size:22px;color:#41866c}.detail-rule{height:1px;background:#e8ede6;margin:18px 0}.tiny-label{font-size:8px;color:#98a69e;letter-spacing:1.8px}.detail h3{font-size:13px;margin:8px 0}.source-note{display:block;color:#a3aea6;font-size:9px;margin-top:15px}.tile-index{border-top:1px dashed #dce5dc;margin-top:15px;padding-top:12px;font-size:9px;color:#a1afa4;letter-spacing:1px}.view-controls{position:absolute;bottom:64px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:3px;background:#fffffff2;padding:7px 10px;border-radius:15px;box-shadow:0 8px 28px #3d66591a;border:1px solid white;white-space:nowrap}.view-controls button{border:0;background:none;font-size:11px;color:#7c8c83;border-radius:9px;padding:10px 14px}.view-controls button.active{background:#4d8b76;color:white}.control-label{font-size:8px;letter-spacing:1.5px;color:#98a59e;margin:0 10px}.control-divider{height:18px;width:1px;background:#e1e7de;margin:0 6px}.bottom-left{position:absolute;left:42px;bottom:35px;font-size:9px;letter-spacing:1.7px;color:#6a8075}.bottom-left small{display:block;margin:9px 0 0 12px;font-size:9px;letter-spacing:0;color:#91a094}.live-dot{margin-right:6px}.tools{position:absolute;right:35px;bottom:34px;display:flex;gap:8px}.tools button{font-size:14px;border:1px solid #cbd9cd;background:#ffffff70;border-radius:11px;padding:9px 12px;color:#688578}.tools button span{font-size:10px;margin-left:5px}.tools button[aria-pressed=true]{background:#ffffff}.hint{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);font-size:10px;color:#8d9c91;white-space:nowrap}.loading{position:fixed;inset:0;background:#eaf0e7;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;z-index:99;transition:opacity .5s}.loading.hidden{opacity:0;pointer-events:none}.loading span{font-size:12px;color:#8a9e90}.loading-mark{font-size:48px;color:#56917a}.tile-label{width:164px;height:164px;border-radius:12px;background:#fffdf5;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;user-select:none;cursor:pointer;border:3px solid #fffef8;box-shadow:inset 0 0 0 1px #d9e1d7;pointer-events:auto;backface-visibility:hidden}.tile-label:focus-visible,.tile-label.selected{outline:5px solid #ffd266}.tile-label .tile-stripe{position:absolute;top:0;left:0;right:0;height:17px;background:var(--tile-color)}.tile-label .tile-no{position:absolute;top:4px;left:8px;color:#ffffffc9;font-size:8px}.tile-label img{width:93px;height:67px;object-fit:contain;margin-top:12px}.tile-label .tile-name{font-size:13px;font-weight:800;margin:2px 0 5px;max-width:151px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#34463e}.tile-label .tile-country{font-size:11px;color:#75867a}.tile-label .tile-value{font-weight:900;font-size:16px;color:#466e57;margin-top:4px}.tile-label .tile-category{font-size:8px;color:#94a08e;margin-top:4px}.tile-label.special{background:var(--tile-bg);border-color:#ffffffaa;box-shadow:none}.special .tile-name{color:#fff;font-size:16px}.special .tile-country{color:#ffffffd9}.special .tile-category{color:#ffffffc9}.tile-symbol{font-size:38px;margin:7px 0 5px}.special .tile-value{color:#fff;font-size:12px}.corner .tile-name{font-size:19px}.corner .tile-symbol{font-size:45px}.world-label{pointer-events:none;text-align:center;user-select:none;width:600px}.world-label .overline{font-size:14px;letter-spacing:8px;color:#73917e;font-weight:700}.world-label b{display:block;font-size:80px;letter-spacing:-4px;color:#507664;text-shadow:0 4px 0 #faffee}.world-label p{font-size:17px;letter-spacing:4px;color:#8ba187;margin:8px}.mini-sign{pointer-events:none;font-size:16px;font-weight:800;color:#fff;background:#4f8472;border:3px solid #fff8dd;padding:8px 13px;border-radius:8px;white-space:nowrap}@keyframes appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(max-width:1000px){.intro h1{font-size:22px}.intro{left:26px;top:110px}.intro p,.pills{display:none}.topbar{padding:20px 25px}.detail{width:210px;right:18px;top:100px}.header-meta{font-size:8px}.bottom-left{left:25px}.tools{right:20px}.tools span{display:none}}@media(max-width:600px){.intro{top:97px;left:20px}.intro h1{font-size:18px}.intro .eyebrow{font-size:7px}.topbar{height:80px;padding:18px 20px}.brand b{font-size:20px}.brand-icon{width:35px;height:35px;font-size:25px}.brand small{font-size:8px}.header-meta{display:none}.icon-button{margin-left:auto}.detail{top:auto;bottom:135px;right:12px;width:190px;padding:16px}.detail .company-logo{height:47px;margin:8px}.detail h2{font-size:17px}.detail-rule{margin:10px 0}.stat{margin-top:13px}.detail-index,.source-note{display:none}.view-controls{bottom:71px}.view-controls button{padding:10px;font-size:10px}.control-label{display:none}.bottom-left{bottom:24px;left:20px;font-size:8px}.bottom-left small{display:none}.tools{bottom:17px;right:15px}.hint{font-size:8px;bottom:50px}}

.navigation-pads{position:absolute;bottom:31px;left:35px;display:flex;gap:22px;align-items:center;user-select:none;touch-action:none}.pad-group{display:flex;flex-direction:column;align-items:center;gap:9px}.pad-label{font-size:10px;color:#7b9384;letter-spacing:1px}.analog-pad{width:88px;height:88px;position:relative;border-radius:50%;border:1px solid #c0d2c4;background:radial-gradient(circle,#d8e4d5 0 45%,#fafff1c9 46% 68%,#dbe7d8 70%);box-shadow:0 4px 15px #3f625711,inset 0 1px 0 #fff;touch-action:none;padding:0}.analog-guide{position:absolute;background:#8ba48f33}.analog-guide.horizontal{width:66px;height:1px;left:10px;top:43px}.analog-guide.vertical{height:66px;width:1px;top:10px;left:43px}.analog-knob{position:absolute;width:39px;height:39px;left:24px;top:24px;display:grid;place-items:center;background:#fafff4;border:1px solid #bdcfc1;border-radius:50%;color:#5a8b74;font-size:23px;box-shadow:0 4px 8px #3f625725;pointer-events:none;will-change:transform}.analog-pad.held .analog-knob{background:#5b957c;color:#fff}.dpad{display:grid;width:88px;height:88px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:2px}.dpad button,.dpad-center{display:grid;place-items:center;border:1px solid #c4d4c7;background:#fafff0d9;color:#789681;font-size:11px;box-shadow:0 2px 5px #45634c0a;touch-action:none;padding:0}.dpad button.active,.dpad button:active{background:#5b957c;color:white}.dpad [data-pan=up]{grid-area:1/2;border-radius:8px 8px 3px 3px}.dpad [data-pan=left]{grid-area:2/1;border-radius:8px 3px 3px 8px}.dpad-center{grid-area:2/2;border:0;background:#dae6d6;font-size:17px;color:#87a390}.dpad [data-pan=right]{grid-area:2/3;border-radius:3px 8px 8px 3px}.dpad [data-pan=down]{grid-area:3/2;border-radius:3px 3px 8px 8px}.bottom-left{bottom:165px;left:36px}.bottom-left small{display:none}
@media(max-width:1000px){.navigation-pads{left:22px;gap:17px}.bottom-left{left:23px;bottom:163px}}
@media(max-width:600px){.navigation-pads{left:18px;bottom:104px;gap:14px;transform:scale(.8);transform-origin:left bottom}.bottom-left{left:18px;bottom:208px;font-size:7px}.pad-label{font-size:11px}.view-controls{bottom:62px}.hint{bottom:42px;font-size:7px}.detail{bottom:213px}}

/* Readable company face: logo / name / two-column facts. */
.tile-label:not(.special){justify-content:flex-start;padding:19px 5px 5px;gap:0}.tile-label .tile-logo{height:61px;width:144px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.tile-label .tile-logo img{width:137px;height:60px;object-fit:contain;margin:0}.tile-label:not(.special) .tile-name{font-size:19px;line-height:24px;min-height:24px;margin:2px 0 3px;max-width:150px;letter-spacing:-.7px}.tile-facts{width:100%;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #d6dfd0;padding-top:4px;flex:1}.tile-facts>div{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;gap:3px}.fact-left{border-right:1px solid #d6dfd0}.tile-facts strong{font-size:22px;line-height:24px;color:#426a50}.tile-facts .tile-flag{font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif;font-size:23px;line-height:24px}.tile-facts span{font-size:11px;line-height:13px;color:#61745d;white-space:nowrap;max-width:73px;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.3px}

.version-button{display:flex;align-items:center;border:1px solid #bbd0be;background:#fafff0d9;color:#6a8877;text-decoration:none;font-size:11px;border-radius:11px;padding:9px 12px;white-space:nowrap}.version-button.active{background:#548d75;color:white;border-color:#548d75}.route-label{pointer-events:none;display:flex;align-items:center;gap:6px;white-space:nowrap;color:#546f5e;background:#fff7df;border:2px solid #fffdf2;border-radius:12px;padding:7px 11px;box-shadow:0 3px 0 #c6d2b5;font-size:16px}.route-label span{font-size:12px;color:#97aa8b}.route-label b{font-weight:700}.exam-grade{pointer-events:none;color:#c18777;font-size:32px;font-weight:800}.math-formula{pointer-events:none;color:#fff9d9;font-size:25px;letter-spacing:4px}@media(max-width:600px){.tools{gap:5px}.version-button{font-size:9px;padding:9px 8px}}

.tile-country-code{position:absolute;top:2px;right:7px;display:flex;align-items:center;gap:4px;font-size:9px;line-height:13px;color:#fff}.tile-country-code>span{font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif;font-size:11px;line-height:13px}



.asset-panel{position:absolute;top:114px;right:28px;width:230px;padding:19px 20px;background:#ffffffe0;border:1px solid #ffffffee;border-radius:22px;backdrop-filter:blur(14px);box-shadow:0 12px 35px #34594712;pointer-events:none}.asset-heading>span{font-size:8px;color:#8aa393;letter-spacing:2px}.asset-heading h2{font-size:18px;color:#507763;margin:6px 0 15px}.asset-panel dl{margin:0;display:flex;flex-direction:column;gap:12px}.asset-panel dl>div{display:flex;justify-content:space-between;align-items:center;gap:10px}.asset-panel dt{font-size:11px;color:#788d80}.asset-panel dd{margin:0;font-size:13px;color:#436c57;font-variant-numeric:tabular-nums}.detail{z-index:2}@media(max-width:600px){.asset-panel{top:100px;right:12px;width:174px;padding:13px 14px;border-radius:17px}.asset-heading h2{font-size:15px;margin-bottom:10px}.asset-panel dl{gap:9px}.asset-panel dt{font-size:9px}.asset-panel dd{font-size:11px}.intro{max-width:165px}}

/* Crisp company names and larger campus route titles. */
.tile-label:not(.special) .tile-name{font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",sans-serif;font-weight:700;font-size:19px;letter-spacing:-.4px;line-height:25px}
.route-label{font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",sans-serif;font-size:24px;padding:8px 13px;gap:8px;color:#3b5d49}.route-label span{font-size:16px;color:#70886b}.route-label b{font-weight:700}.world-label p{font-size:23px;letter-spacing:2px;color:#63845e}

.tile-country-code{max-width:134px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;font-size:8px;line-height:13px}.tile-label .tile-facts .tile-flag{display:flex;align-items:center;justify-content:center}.tile-label .tile-facts .tile-flag img{width:43px;height:36px;margin:0;object-fit:contain}

/* Compact introduction below the brand. */
.intro{top:96px}.intro h1{line-height:1.22;margin:10px 0 12px}.intro p{line-height:1.55;margin:0}.intro .pills{margin-top:13px}
@media(max-width:1000px){.intro{top:90px}}
@media(max-width:600px){.intro{top:82px}.intro h1{line-height:1.2;margin:8px 0 10px}}

.chance-dialog{width:min(620px,90vw);max-height:90vh;overflow:auto;border:1px solid #c4d6c6;border-radius:22px;padding:22px;background:#fffdf6;color:#38584b;box-shadow:0 20px 80px #203f3933}.chance-dialog::backdrop{background:#263f3a66;backdrop-filter:blur(5px)}.chance-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.chance-head h2{font:700 20px/1.4 "Malgun Gothic",sans-serif;margin:0 0 12px}.chance-head button{border:0;background:transparent;font-size:28px;color:#38584b;cursor:pointer}.chance-dialog img{width:100%;border-radius:12px}.chance-dialog p{font:500 15px/1.7 "Malgun Gothic",sans-serif;white-space:pre-line}.chance-dialog small{color:#788879}.investment-table{width:100%;font-size:11px;border-collapse:collapse;margin-top:10px}.investment-table th,.investment-table td{padding:5px;border-bottom:1px solid #d8e1d5;text-align:right}.investment-table th:first-child{text-align:left}#preview-chance{background:#e4ebd9;color:#557563}

.chance-dialog{width:min(540px,90vw);padding:0 0 22px}.chance-head{padding:24px 26px 14px;background:#d99431;color:#fff}.chance-head h2{margin:0;font-size:23px}.chance-head button{color:#fff}.chance-dialog[data-category="market"] .chance-head{background:#527d6a}.chance-meta{padding:10px 26px;font-size:12px;font-weight:700;background:#f1eee1;color:#668273}.chance-dialog .chance-description{padding:0 26px;margin:20px 0;white-space:pre-line;color:#69766d;font-size:14px;line-height:1.7}.chance-effect{margin:0 26px;padding:20px;background:#edf2e5;border:1px solid #d5dfcc;border-radius:14px;font:700 17px/1.75 "Malgun Gothic",sans-serif;white-space:pre-line}.chance-dialog .chance-defense{padding:0 26px;font-size:13px;color:#8b7653}.chance-original{margin:18px 26px}.chance-original summary{cursor:pointer;font-size:12px;color:#6f8877}.chance-original img{margin-top:12px}.chance-dialog>small{display:block;margin:0 26px;font-size:11px}

.tools{bottom:58px}.theme-controls{position:absolute;right:35px;bottom:15px;display:flex;gap:6px;background:#fffdf1aa;border:1px solid #fff;border-radius:14px;padding:6px;backdrop-filter:blur(12px)}.theme-controls button{display:flex;align-items:center;gap:6px;font:600 11px "Malgun Gothic",sans-serif;color:#617269;border:1px solid transparent;background:transparent;border-radius:9px;padding:7px 9px;cursor:pointer}.theme-controls button:before{content:"";width:12px;height:12px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0000000d}.theme-controls button[aria-pressed="true"]{background:#fffef7;border-color:var(--swatch);color:#394d44;box-shadow:0 2px 6px #00000008}.chance-effect{word-break:keep-all;overflow-wrap:anywhere}@media(max-width:600px){.tools{bottom:62px;right:12px}.theme-controls{right:12px;bottom:14px;gap:1px}.theme-controls button{padding:7px 6px;font-size:10px}.view-controls{bottom:220px}}



.asset-panel{width:320px;padding:28px 27px;border-radius:27px}.asset-heading>span{font-size:11px;letter-spacing:2px}.asset-heading h2{font-size:27px;line-height:1.35;margin:7px 0 20px}.asset-panel dl{gap:17px}.asset-panel dl>div{min-height:28px;align-items:center}.asset-panel dt{font-size:17px;line-height:1.45;letter-spacing:-.4px}.asset-panel dd{font-size:22px;line-height:1.4;font-weight:700}@media(max-width:700px){.asset-panel{width:250px;padding:21px;top:96px;right:15px}.asset-heading h2{font-size:23px;margin-bottom:14px}.asset-panel dt{font-size:14px}.asset-panel dd{font-size:19px}.asset-panel dl{gap:13px}}

@media(max-width:700px){
 .topbar,.intro,.tools,.theme-controls{display:none}
 .asset-panel{top:16px;left:16px;right:16px;width:auto;padding:22px 24px;border-radius:24px}
 .asset-heading>span{font-size:10px}.asset-heading h2{font-size:26px;margin:5px 0 17px}
 .asset-panel dl{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}
 .asset-panel dl>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
 .asset-panel dt{font-size:16px;line-height:1.4}.asset-panel dd{font-size:23px;line-height:1.3;margin:0}
 .view-controls{bottom:165px}.navigation-pads{bottom:25px}.bottom-left{bottom:137px}.hint{bottom:205px}
 .detail{top:244px;bottom:auto;max-height:calc(100vh - 260px);overflow:auto}
}

@media(min-width:701px){.tools{bottom:76px}}

/* Align the brand and intro to one column, with an even vertical rhythm. */
@media(min-width:701px){
 .brand{width:230px}.brand-icon{flex-shrink:0}.brand b{letter-spacing:.5px}
 .intro{left:40px;width:230px;display:grid;gap:12px}
 .intro .eyebrow{display:block;width:100%;text-align:justify;text-align-last:justify;line-height:1.2}
 .intro h1{width:100%;margin:0;line-height:1.2}
 .intro-line{display:block;text-align:justify;text-align-last:justify;white-space:nowrap}
 .intro p{margin:0;line-height:1.18}
 .intro .pills{margin-top:0}
}
@media(min-width:701px) and (max-width:1000px){.intro{left:25px;width:190px}.brand{width:230px}}

@media(min-width:701px){
 .intro .eyebrow{text-align:left;text-align-last:auto;letter-spacing:1.8px;white-space:nowrap}
 .intro h1{font-size:30px}
 .intro-line{text-align:left;text-align-last:auto;letter-spacing:.3px}
 .intro em.intro-line{letter-spacing:.8px}
}

.brand-word{white-space:nowrap}.intro .eyebrow{white-space:nowrap}

/* A native modal keeps company information clear of the assets panel. */
dialog.detail{position:fixed;inset:0;margin:auto;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);height:fit-content;overflow:auto;padding:28px 32px;border-radius:25px;border:1px solid #fff;background:#fffef8;box-shadow:0 24px 90px #1d3a3533;animation:none}
dialog.detail::backdrop{background:#203b3566;backdrop-filter:blur(4px)}
dialog.detail .detail-top{font-size:11px}dialog.detail .detail-top button{width:36px;height:36px;font-size:28px;border-radius:50%;background:#eef2e8}
dialog.detail .company-logo{height:95px;margin:16px 0}dialog.detail .company-logo img{width:230px;height:95px}
dialog.detail .country{font-size:13px}dialog.detail h2{font-size:29px;margin:8px 0 4px}dialog.detail p{font-size:13px}
dialog.detail .stat{margin-top:20px;gap:20px}dialog.detail .stat span{font-size:14px}dialog.detail .stat strong{font-size:25px;white-space:nowrap}
dialog.detail h3{font-size:17px}dialog.detail #detail-desc{font:400 14px/1.7 'Malgun Gothic',sans-serif;color:#718276}
dialog.detail .investment-table{font-size:14px;margin-top:17px}dialog.detail .investment-table th,dialog.detail .investment-table td{padding:10px 8px}
dialog.detail .source-note{font-size:10px;display:block}dialog.detail .tile-index{font-size:10px;display:block}
@media(max-width:700px){dialog.detail{inset:0;top:0;bottom:0;padding:22px 24px;max-height:calc(100dvh - 32px)}dialog.detail h2{font-size:26px}dialog.detail .stat strong{font-size:23px}}

dialog.detail.open{animation:none;opacity:1;transform:none}
dialog.detail{padding:24px 30px;background:#fffef9}
dialog.detail .company-hero{text-align:center;padding-bottom:17px;border-bottom:1px solid #e4eadd}
dialog.detail .company-logo{height:76px;margin:9px 0 10px}dialog.detail .company-logo img{height:76px;width:205px;mix-blend-mode:multiply}
dialog.detail h2{font:700 28px/1.25 'Malgun Gothic',sans-serif;margin:7px 0 4px;color:#2e4d41}
dialog.detail #detail-en{font:600 12px/1.5 'Segoe UI',sans-serif;color:#93a091;letter-spacing:1px}
.company-meta{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:13px}
dialog.detail .country,.company-meta #detail-founded{display:inline-flex;align-items:center;gap:7px;border:1px solid #dce5d5;background:#eff3e8;border-radius:30px;padding:6px 11px;font:600 12px/1.3 'Malgun Gothic',sans-serif;color:#64806d}
dialog.detail .country img{width:23px;height:18px;object-fit:contain}.company-meta #detail-founded[hidden]{display:none}
dialog.detail .stat{margin-top:16px;padding:11px 14px;background:#eff4e7;border-radius:12px}dialog.detail .stat span{font-size:12px}dialog.detail .stat strong{font-size:22px}
dialog.detail .detail-rule{display:none}dialog.detail .tiny-label{display:block;margin-top:18px;letter-spacing:2px;font-size:9px}
dialog.detail h3{margin:5px 0 8px;font:700 16px/1.4 'Malgun Gothic',sans-serif}
dialog.detail #detail-desc{font-size:13px;line-height:1.65}dialog.detail .investment-table{margin-top:14px;font-size:13px}
dialog.detail .investment-table th,dialog.detail .investment-table td{padding:9px 7px}dialog.detail .investment-table tr:first-child{background:#eff3e8}
dialog.detail .investment-table tr:first-child th{color:#62806b;font-weight:600;font-size:11px}dialog.detail .investment-table td{color:#3e604e;font-weight:700;font-variant-numeric:tabular-nums}
dialog.detail .source-note{margin-top:12px;line-height:1.4}dialog.detail .tile-index{margin-top:12px;padding-top:10px;color:#8da18f}
@media(max-width:700px){dialog.detail{padding:20px 23px}dialog.detail .company-logo{height:65px}dialog.detail .company-logo img{height:65px}dialog.detail h2{font-size:25px}}

/* Let the board remain visible through the assets surface. */
.asset-panel{background:rgba(255,255,255,.38);border-color:rgba(255,255,255,.58);backdrop-filter:blur(2px);box-shadow:0 12px 35px #3459470a}
.company-content{display:block}.company-basic,.company-details{min-width:0}
@media(min-width:701px){
 dialog.detail{width:min(850px,calc(100vw - 48px));padding:25px 30px;overflow:visible}
 .company-content{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(320px,1.15fr);gap:30px;align-items:center;margin-top:14px}
 .company-basic{padding-right:28px;border-right:1px solid #e2e9dc}
 dialog.detail .company-hero{border-bottom:0;padding-bottom:9px}
 dialog.detail .company-logo{height:110px;margin:0 0 20px}dialog.detail .company-logo img{width:240px;height:110px}
 dialog.detail .company-meta{gap:8px;margin-top:18px}
 dialog.detail .stat{margin-top:22px;gap:12px;padding:13px 14px}
 dialog.detail .tiny-label{margin-top:0}
 dialog.detail #detail-desc{line-height:1.7}
 dialog.detail .investment-table{margin-top:18px;font-size:14px}
 dialog.detail .investment-table th,dialog.detail .investment-table td{padding:12px 8px}
 dialog.detail .source-note{margin-top:14px}
}
@media(min-width:701px) and (max-height:600px){
 dialog.detail{padding:18px 24px}.company-content{gap:23px;margin-top:7px}
 dialog.detail .company-logo{height:76px;margin-bottom:12px}dialog.detail .company-logo img{height:76px}
 dialog.detail .investment-table th,dialog.detail .investment-table td{padding:8px 7px}
 dialog.detail .company-meta{margin-top:12px}dialog.detail .stat{margin-top:14px}
}
@media(max-width:700px){.company-content{display:block}.company-basic{padding:0;border:0}.company-details{margin-top:18px}}

.asset-panel dl{gap:8px}.asset-heading h2{margin-bottom:14px}@media(max-width:700px){.asset-panel dl{gap:10px 22px}.asset-heading h2{margin-bottom:13px}}

/* Draw the close icon geometrically so font metrics cannot offset its center. */
dialog.detail #close-detail{position:relative;display:grid;place-items:center;padding:0;flex:0 0 36px;line-height:1;font-size:0}
dialog.detail #close-detail::before,dialog.detail #close-detail::after{content:"";position:absolute;left:50%;top:50%;width:18px;height:2px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
dialog.detail #close-detail::after{transform:translate(-50%,-50%) rotate(-45deg)}

.investor-identity{display:flex;align-items:center;gap:7px;max-width:100%;margin:8px 0 0;padding:0;border:0;background:none;color:#527765;font:600 12px/1.4 "Malgun Gothic",sans-serif;text-align:left}.investor-identity #investor-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#investor-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;background:#e5b34f}
.investor-dialog{width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:30px;border:1px solid #fff;border-radius:26px;background:#fffdf7;color:#35574a;box-shadow:0 24px 80px #203b3533;font-family:"Malgun Gothic",sans-serif}.investor-dialog::backdrop{background:#294b4566;backdrop-filter:blur(5px)}.investor-eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#82a392}.investor-dialog h2{margin:12px 0 8px;font-size:25px;letter-spacing:-1px}.investor-dialog p{font-size:12px;line-height:1.7;color:#819087;margin:0}.investor-preview{display:grid;place-items:center;height:125px;margin:14px 0;background:radial-gradient(ellipse at center,#edf2e2 0,transparent 70%)}.preview-pawn{position:relative;width:76px;height:104px}.preview-base{position:absolute;bottom:0;left:7px;width:62px;height:15px;border-radius:50%;background:#eee4c6;box-shadow:0 4px 0 #d7ceb1}.preview-coat{position:absolute;bottom:9px;left:18px;width:40px;height:43px;border-radius:13px 13px 8px 8px;background:var(--pawn-color);z-index:1;box-shadow:inset -6px 0 0 #0000000d}.preview-face{position:absolute;left:15px;top:24px;width:46px;height:42px;border-radius:45%;background:#f7d7b5;color:#493e38;font:bold 24px/37px sans-serif;text-align:center;letter-spacing:7px;padding-left:7px;z-index:2}.preview-hat{position:absolute;top:8px;left:12px;width:52px;height:28px;border-radius:30px 30px 9px 9px;background:var(--pawn-color);z-index:3;border-bottom:5px solid #ffffff44}.investor-name-label,.investor-colors legend{display:block;font-size:13px;font-weight:700;margin-bottom:9px}.investor-dialog input[type=text]{width:100%;height:46px;padding:0 13px;border:1px solid #d2ded0;border-radius:11px;background:#fff;color:#35574a;font:16px "Malgun Gothic",sans-serif}.investor-dialog input[type=text]:focus{outline:2px solid #7cad95;outline-offset:2px}.investor-colors{border:0;padding:0;margin:20px 0 0;min-width:0}#investor-color-options{display:flex;gap:8px;justify-content:space-between}.investor-color{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;gap:7px;cursor:pointer;font-size:11px;color:#738779}.investor-color input{position:absolute;width:1px;height:1px;opacity:0}.investor-swatch{display:block;width:38px;height:38px;border:4px solid #fffdf7;border-radius:50%;background:var(--choice-color);box-shadow:0 0 0 1px #dde5d6}.investor-color input:checked+.investor-swatch{box-shadow:0 0 0 2px #527d68}.investor-color input:checked+.investor-swatch::after{content:'✓';display:block;text-align:center;line-height:30px;color:#fff;font-size:20px;font-weight:bold}.investor-color input:focus-visible+.investor-swatch{outline:3px solid #35574a;outline-offset:4px}.investor-submit{width:100%;margin-top:23px;padding:14px 10px;border:0;border-radius:12px;background:#528a73;color:white;font:700 14px "Malgun Gothic",sans-serif}.investor-submit:hover{background:#43765f}.investor-dialog .investor-error:empty{display:none}@media(max-width:700px){.investor-dialog{padding:24px}.investor-dialog h2{font-size:23px}.investor-preview{height:112px;margin:10px 0}.investor-identity{font-size:12px}}

.lobby-dialog{width:min(920px,calc(100vw - 32px));padding:30px}.lobby-heading{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:25px}#lobby-connection{font-size:11px;color:#568970;white-space:nowrap;margin-top:4px}.lobby-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px}.lobby-profile{padding-left:30px;border-left:1px solid #e2e9da}.lobby-dialog h3{font-size:15px;margin:0}.lobby-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}#lobby-room-count{font-size:12px;color:#899987}#lobby-room-list{display:grid;gap:7px}.lobby-room{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid #dce5d5;border-radius:11px;background:#fff;color:#436550;text-align:left;font:13px "Malgun Gothic",sans-serif}.lobby-room span{font-size:11px;color:#7b8e7f}.lobby-room[aria-pressed=true]{border-color:#538b72;background:#edf4e8;box-shadow:0 0 0 1px #538b72}.lobby-room:disabled{opacity:.55;cursor:default}.lobby-create{width:100%;margin-top:10px;padding:12px;border:1px dashed #9bb69f;border-radius:11px;background:#eff4e8;color:#548268;font:700 13px "Malgun Gothic",sans-serif}.lobby-dialog button:disabled{opacity:.5;cursor:not-allowed}#lobby-selection-title{margin:19px 0 10px;font-size:12px;color:#718575}#lobby-members{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lobby-member{display:flex;align-items:center;gap:6px;min-width:0;padding:10px;background:#f1f4eb;border-radius:9px;font-size:12px}.lobby-member>span:not(.member-dot){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-member small{font-size:9px;color:#78927c;flex-shrink:0;margin-left:auto}.member-dot{height:11px;width:11px;border-radius:50%;flex-shrink:0}.empty-member{color:#9baa95;font-size:10px}.lobby-dialog #lobby-status{margin-top:12px;font-size:11px}.lobby-room-actions{display:flex;gap:8px;margin-top:12px}.lobby-room-actions button{border:1px solid #ccdcca;border-radius:10px;background:#fff;color:#61816a;padding:10px 13px;font:700 12px "Malgun Gothic",sans-serif}.lobby-room-actions #lobby-start,.lobby-room-actions #lobby-return{background:#528a73;color:#fff;border-color:#528a73}.lobby-dialog .investor-error{margin-top:12px;color:#b3624e}.investor-color.unavailable{opacity:.35;cursor:not-allowed}.lobby-dialog [hidden]{display:none!important}@media(max-width:700px){.lobby-dialog{padding:23px}.lobby-heading{margin-bottom:20px}.lobby-heading h2{font-size:21px}.lobby-columns{grid-template-columns:1fr;gap:24px}.lobby-profile{padding:22px 0 0;border-left:0;border-top:1px solid #e2e9da}.lobby-dialog .investor-preview{height:105px}.lobby-room{padding:10px 12px}.lobby-dialog input[autofocus]{scroll-margin:30px}}

@media(min-width:701px){.lobby-dialog{padding:24px}.lobby-heading{margin-bottom:18px}.lobby-room{padding:10px 14px}.lobby-dialog .investor-preview{height:110px}.lobby-create{padding:10px}.lobby-dialog #lobby-status{margin-top:9px}}

#investor-title:focus{outline:none}

.lobby-dialog .assigned-color-note{margin-top:14px;padding:12px;border-radius:10px;background:#edf3e7;font-size:12px;color:#64846b}

/* Separate the investor identity from the compact asset rows. */
.asset-panel .asset-heading{margin-bottom:18px}.asset-panel dl{row-gap:4px}.asset-panel dl>div{min-height:26px}.asset-panel dt{line-height:1.25}.asset-panel dd{line-height:1.2}@media(max-width:700px){.asset-panel .asset-heading{margin-bottom:18px}.asset-panel dl{row-gap:6px}}
.asset-panel .investor-identity{pointer-events:auto}

.company-investment[hidden],#investment-form[hidden]{display:none!important}.company-investment{margin-top:16px;padding:14px;border-radius:13px;background:#edf3e6;border:1px solid #d6e2ce}dialog.detail .company-investment h3{font-size:16px;margin:0 0 7px}dialog.detail .company-investment p{font:12px/1.5 "Malgun Gothic",sans-serif;color:#71836e}.investment-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.investment-choices label{display:flex;flex-direction:column;gap:4px;font:700 12px "Malgun Gothic",sans-serif;color:#4f735e}.investment-choices small{font:10px/1.4 "Malgun Gothic",sans-serif;color:#7b8c75}.investment-choices select{width:100%;padding:7px;border:1px solid #c6d8bf;border-radius:8px;background:#fff;color:#426951;font:13px "Malgun Gothic",sans-serif}#investment-total{display:block;font:700 12px/1.5 "Malgun Gothic",sans-serif;color:#528269}.investment-actions{display:flex;gap:8px;margin-top:11px}.investment-actions button{padding:9px 11px;border:1px solid #cadac3;border-radius:9px;background:#fff;color:#61836b;font:700 11px "Malgun Gothic",sans-serif}#investment-buy{background:#528a73;color:#fff;border-color:#528a73}#investment-buy:disabled{opacity:.45;cursor:not-allowed}dialog.detail{max-height:calc(100dvh - 32px);overflow:auto}

.salary-notice{position:fixed;left:50%;top:20%;transform:translateX(-50%);z-index:5;width:min(350px,calc(100vw - 40px));padding:20px 24px;border:1px solid #ffffff;border-radius:19px;background:#fffdf2ee;box-shadow:0 15px 50px #36564630;text-align:center;backdrop-filter:blur(8px)}.salary-notice[hidden]{display:none}.salary-notice>span{font:700 13px "Malgun Gothic",sans-serif;color:#678975}.salary-notice strong{display:block;margin:9px 0;font-size:30px;color:#528a73}.salary-notice p{margin:0;font:12px/1.5 "Malgun Gothic",sans-serif;color:#84907c}@media(max-width:700px){.salary-notice{top:35%}}

@media(min-width:701px){dialog.detail:has(#company-investment:not([hidden])){padding:22px 28px}dialog.detail:has(#company-investment:not([hidden])) .investment-table{margin-top:12px}dialog.detail:has(#company-investment:not([hidden])) .investment-table th,dialog.detail:has(#company-investment:not([hidden])) .investment-table td{padding:7px 6px}dialog.detail:has(#company-investment:not([hidden])) .source-note{margin-top:9px}dialog.detail:has(#company-investment:not([hidden])) .company-content{margin-top:10px}}

.asset-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.asset-title-row h2{font-size:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}.asset-title-row button{flex-shrink:0;border:1px solid #91b09c;border-radius:10px;background:#ffffffa6;color:#476e59;padding:7px 9px;font:700 12px "Malgun Gothic",sans-serif;pointer-events:auto}.asset-player-nav{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:9px}.asset-player-nav:has(button[hidden]){display:none}.asset-player-nav button{pointer-events:auto;width:28px;height:28px;display:grid;place-items:center;padding:0;border:1px solid #b5c9b9;border-radius:50%;background:#ffffff80;color:#507763;font:24px/1 sans-serif}.asset-player-nav span{font:11px "Malgun Gothic",sans-serif;color:#6b8a76}.asset-player-nav [hidden]{display:none}.investor-identity:disabled{opacity:1;cursor:default}.investor-identity:disabled>span:last-child{display:none}
.portfolio-dialog{width:min(700px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:28px;border:1px solid #fff;border-radius:25px;background:#fffdf7;color:#35574a;box-shadow:0 24px 80px #203b3533;font-family:"Malgun Gothic",sans-serif}.portfolio-dialog::backdrop{background:#294b4566;backdrop-filter:blur(4px)}.portfolio-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.portfolio-top h2{margin:5px 0 0;font-size:25px}.portfolio-top p{margin:0;color:#799381;font-size:12px}.portfolio-top button{border:0;background:transparent;color:#648175;font:32px/1 sans-serif;padding:5px}.portfolio-summary{padding:16px 0;margin:10px 0 0;border-bottom:1px solid #dce5d8;font-size:13px;color:#648175}#portfolio-list{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:18px}.portfolio-card{padding:18px;border:1px solid #dce5d8;background:#f0f4e9;border-radius:16px}.portfolio-company h3{font-size:18px;margin:0 0 5px}.portfolio-company span{font-size:11px;color:#789180}.portfolio-quantities{display:flex;gap:6px;flex-wrap:wrap;margin:15px 0}.portfolio-quantities span{font-size:12px;padding:5px 7px;border-radius:7px;background:#fffdf7;color:#648175}.portfolio-card>strong{font-size:14px}.portfolio-empty{grid-column:1/-1;text-align:center;color:#819087;font-size:14px;line-height:1.8;padding:32px 10px}@media(max-width:700px){.asset-title-row h2{font-size:23px}.portfolio-dialog{padding:22px}#portfolio-list{grid-template-columns:1fr}.portfolio-top h2{font-size:22px}}

#special-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;max-height:250px;overflow:auto}#special-actions:empty{display:none}#special-actions button{padding:9px 11px;border:1px solid #b4c9af;border-radius:9px;background:#fffdf6;color:#426b55;font:700 12px "Malgun Gothic",sans-serif}#investment-message{white-space:pre-line}

.chance-intro{position:fixed;inset:0;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:hidden;margin:auto;padding:30px 20px;border:1px solid #f4df9f;border-radius:28px;background:#253f37;color:#fff8df;text-align:center;box-shadow:0 25px 100px #193d4055}.chance-intro::backdrop{background:#19362f99;backdrop-filter:blur(6px)}.chance-intro[open]{animation:chance-pop .4s cubic-bezier(.2,1.4,.4,1)}.chance-intro-content{position:relative;z-index:1}.chance-intro-rays{position:absolute;inset:-65%;background:repeating-conic-gradient(from 0deg,#dfb55522 0deg 12deg,transparent 12deg 30deg);animation:chance-rays 14s linear infinite}.chance-intro #chance-intro-dice{display:inline-block;margin:0 0 12px;padding:8px 20px;background:#ffffff15;border:1px solid #ffffff25;border-radius:30px;font:700 20px "Malgun Gothic",sans-serif}.chance-intro-label{display:block;color:#f7d075;font:700 14px "Malgun Gothic",sans-serif;letter-spacing:1px}.chance-intro h2{margin:18px 0 12px;font-size:54px;line-height:1.05;color:#ffe1a0;text-shadow:0 4px 0 #142d24}.chance-intro h2 span{display:block;font-size:36px;color:#fff9e7}.chance-card-stack{position:relative;width:90px;height:108px;margin:24px auto 20px;animation:chance-wiggle .65s ease-in-out infinite alternate}.chance-card-stack i{position:absolute;inset:0;border:3px solid #ffe3a3;border-radius:12px;background:#5e8c76;box-shadow:0 5px 0 #152f24;font:normal 65px/102px Board,sans-serif}.chance-card-stack i:first-child{transform:rotate(-15deg);background:#bc8177}.chance-card-stack i:nth-child(2){transform:rotate(12deg);background:#81aec0}.chance-intro-note{font:13px/1.6 "Malgun Gothic",sans-serif;color:#c9dbcd}.chance-intro button{padding:11px 27px;border:0;border-radius:12px;background:#f1c56b;color:#304e3e;font:700 14px "Malgun Gothic",sans-serif;box-shadow:0 4px 0 #b98e42}.chance-dialog[open]{animation:chance-reveal .45s ease-out}@keyframes chance-pop{from{opacity:0;transform:scale(.65) rotate(-6deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes chance-rays{to{transform:rotate(360deg)}}@keyframes chance-wiggle{from{transform:translateY(2px) rotate(-5deg)}to{transform:translateY(-5px) rotate(5deg)}}@keyframes chance-reveal{from{opacity:0;transform:translateY(20px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:700px){.chance-intro{padding:25px 15px}.chance-intro h2{font-size:44px}.chance-intro h2 span{font-size:29px}}@media(prefers-reduced-motion:reduce){.chance-intro[open],.chance-intro-rays,.chance-card-stack,.chance-dialog[open]{animation:none}}

.asset-panel dd .asset-caption{display:block;font:11px/1.4 "Malgun Gothic",sans-serif;color:#7a9582;margin-top:3px}.chance-runtime{margin:18px 26px;padding:17px;border:1px solid #cfddc9;border-radius:14px;background:#f4f7ee;font-family:"Malgun Gothic",sans-serif}.chance-runtime h3{margin:0 0 12px;font-size:16px}.chance-runtime .chance-runtime-error{color:#bf3e35!important;font-size:14px;font-weight:700;margin:0 0 14px;line-height:1.6;white-space:pre-line}.chance-runtime .chance-runtime-note{font-size:13px;color:#637c6a;margin:0 0 12px;line-height:1.6}.chance-decision-form{display:flex;flex-direction:column;gap:10px}.chance-decision-form label{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;font-size:13px}.chance-decision-form small{flex-basis:100%;font-size:11px}.chance-decision-form select{height:37px;border:1px solid #b4c9ad;border-radius:8px;padding:4px 8px;color:#426951;background:#fff;font:13px "Malgun Gothic",sans-serif}.chance-decision-form button,.chance-runtime-button{border:0;border-radius:9px;background:#52876b;color:#fff;padding:11px 15px;font:700 13px "Malgun Gothic",sans-serif;margin:4px 6px 4px 0}.chance-runtime-secondary{border:1px solid #becdb5;border-radius:9px;background:transparent;color:#617c68;padding:10px 13px;font:12px "Malgun Gothic",sans-serif}.chance-decision-form button:disabled{opacity:.4;cursor:default}.chance-change-list{padding-left:19px;margin:0 0 14px;font-size:13px;line-height:1.8}.chance-runtime .chance-selection-total{font-size:13px;color:#648168;margin:5px 0}.portfolio-card p{font-size:12px;color:#718a78;line-height:1.6}

#portfolio-list{grid-template-columns:1fr}.portfolio-holding{display:grid;grid-template-columns:minmax(0,1fr) 185px;gap:24px;align-items:center}.portfolio-holding-details{min-width:0}.portfolio-holding-details>strong{font-size:15px}.company-summary{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:15px 11px 11px;background:#fffdf5;border:2px solid #ffffff;border-radius:12px;box-shadow:0 3px 0 #c7d5bf;overflow:hidden;min-width:0}.company-summary::before{content:'';position:absolute;left:0;right:0;top:0;height:7px;background:#8dad9a}.company-summary-logo{height:68px;width:100%;display:grid;place-items:center}.company-summary-logo img{width:100%;height:100%;object-fit:contain;max-height:68px}.company-summary-fallback{font:bold 16px/1.2 "Malgun Gothic",sans-serif;text-align:center;color:#426652}.company-summary-brand{max-width:100%;font:700 11px/1.3 "Malgun Gothic",sans-serif;text-align:center;overflow-wrap:anywhere;color:#6e8876}.company-summary-country{display:flex;align-items:center;justify-content:center;gap:5px;font:11px/1.4 "Malgun Gothic",sans-serif;color:#66806d}.company-summary-country img{width:17px;height:13px;object-fit:contain}.company-summary-founded{font:10px "Malgun Gothic",sans-serif;color:#8a9d88}.chance-company-options{display:flex;flex-direction:column;gap:10px}.chance-company-option{position:relative;display:grid!important;grid-template-columns:22px minmax(0,1fr) 115px;gap:10px!important;align-items:center;border:1px solid #c6d7bd;border-radius:12px;padding:10px;background:#fffdf7;cursor:pointer}.chance-company-option:has(input:checked){border-color:#53876a;box-shadow:0 0 0 2px #53876a30}.chance-company-option input{accent-color:#52876b;width:17px;height:17px}.chance-company-option .company-summary{padding:12px 7px 8px}.chance-company-option .company-summary-logo{height:40px}.chance-company-option .company-summary-logo img{max-height:40px}.chance-company-option .company-summary-founded{display:none}.chance-company-option strong{font-size:14px}.chance-company-option p{font:12px/1.4 "Malgun Gothic",sans-serif;margin:5px 0;color:#79917b}.chance-company-option .company-summary-brand{font-size:9px}.chance-company-option .company-summary-country{font-size:9px}@media(max-width:700px){.portfolio-holding{grid-template-columns:minmax(0,1fr) 128px;gap:13px;padding:15px}.company-summary-logo{height:52px}.company-summary-logo img{max-height:52px}.company-summary-country{font-size:10px}.company-summary-brand{font-size:10px}.portfolio-company h3{font-size:17px}.portfolio-holding-details>strong{font-size:13px}.chance-company-option{grid-template-columns:19px minmax(0,1fr) 95px;gap:8px!important}}

.portfolio-finance{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));}.portfolio-finance>h3{grid-column:1/-1;margin:8px 0 0}.portfolio-finance h4{margin:0 0 12px}.portfolio-finance p{font-size:12px;line-height:1.6}.portfolio-finance strong{font-size:14px}.asset-panel [data-asset="mortgage"]{font-size:clamp(14px,1.2vw,20px)}@media(max-width:640px){.portfolio-finance{grid-template-columns:1fr}}

.chance-preview-nav{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0}.chance-preview-nav button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #becfb5;border-radius:50%;background:#fffdf5;color:#52876b;font:32px/1 sans-serif}.chance-preview-nav span{font:12px "Malgun Gothic",sans-serif;color:#79917b}

/* Compact desktop portfolio tiles; mobile retains the vertical list. */
.portfolio-finance{grid-column:1/-1}
@media(min-width:701px){
 .portfolio-dialog{width:min(1120px,calc(100vw - 64px));padding:24px}
 #portfolio-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
 .portfolio-holding{grid-template-columns:minmax(0,1fr) 100px;gap:12px;padding:14px;min-height:142px}
 .portfolio-company h3{font-size:16px}.portfolio-company span{font-size:10px}
 .portfolio-quantities{gap:4px;margin:10px 0}.portfolio-quantities span{font-size:10px;padding:4px 5px}
 .portfolio-holding-details>strong{font-size:12px}
 .portfolio-holding .company-summary{padding:12px 6px 8px;gap:3px}
 .portfolio-holding .company-summary-logo{height:40px}.portfolio-holding .company-summary-logo img{max-height:40px}
 .portfolio-holding .company-summary-brand,.portfolio-holding .company-summary-country{font-size:9px}
 .portfolio-holding .company-summary-founded{font-size:8px}
 .portfolio-finance .portfolio-card{padding:14px}.portfolio-finance h4{margin-bottom:8px}.portfolio-finance p{margin-bottom:0}
}
@media(min-width:1100px){#portfolio-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

.cash-rolling{font-variant-numeric:tabular-nums;white-space:nowrap}.cash-digit{display:inline-block;min-width:.57em;text-align:center}.cash-changing{color:#b48935!important}.cash-changing .cash-digit-settled{color:#438b75}@media(prefers-reduced-motion:reduce){.cash-changing{color:inherit!important}}

.asset-panel [data-asset="mortgage"]{font-size:23px}.asset-panel dl>div:has([data-asset="mortgage"]) dt{white-space:nowrap}

#view-menu{top:24px;bottom:auto;z-index:15;max-width:calc(100vw - 32px)}#view-menu[hidden]{display:none}#view-menu-toggle{display:grid;place-items:center;flex-shrink:0}#view-menu-toggle svg{fill:none;stroke:currentColor;stroke-width:1.7}#view-menu-toggle[aria-expanded="true"]{background:#4d8b76;color:white}@media(max-width:1100px){#view-menu{top:88px}}@media(max-width:700px){#view-menu{top:70px;display:flex;overflow-x:auto;padding:6px;gap:0}#view-menu[hidden]{display:none}#view-menu button{padding:9px 10px;font-size:10px}.topbar #view-menu-toggle{display:grid}}

/* Keep help anchored; pull the eye and status group closer to it. */
.topbar{column-gap:10px}


#view-menu #hint{top:calc(100% + 8px);bottom:auto;left:50%;transform:translateX(-50%);margin:0;font-size:9px;line-height:1.4;pointer-events:none}#view-menu{overflow:visible}@media(max-width:700px){#view-menu #hint{font-size:8px}#view-menu{flex-wrap:wrap;justify-content:center}}

.pawn-picker{border:0;padding:0;margin:15px 0}.pawn-picker legend{font-size:13px;color:#638370;margin-bottom:8px}#pawn-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}#pawn-options label{position:relative;display:flex;flex-direction:column;align-items:center;border:1px solid #dce5d8;border-radius:11px;padding:5px;cursor:pointer;background:#fffdf7}#pawn-options label:has(input:checked){border-color:#4d8b76;box-shadow:0 0 0 2px #4d8b7630}#pawn-options input{position:absolute;left:4px;top:4px;width:12px;height:12px;accent-color:#4d8b76}#pawn-options img{width:100%;height:62px;object-fit:contain}#pawn-options span{font:10px "Malgun Gothic",sans-serif;white-space:nowrap}#pawn-options label:has(input:disabled){cursor:default}

.selected-pawn-preview{width:95px;height:110px;object-fit:contain}

#pawn-options{grid-template-columns:repeat(3,minmax(0,1fr))}#pawn-options img{height:55px}

.solo-settings{border:1px solid #cbdac5;border-radius:12px;padding:12px;margin:12px 0;background:#f2f6ed}.solo-settings summary{cursor:pointer;font-weight:bold;color:#4c8069}.solo-settings p{font-size:11px;line-height:1.6;color:#78917b}.solo-settings fieldset{border:0;padding:8px 0;margin:0}.solo-settings legend,.solo-settings label{font-size:11px;color:#64806c}.solo-policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.solo-policy-grid label{display:flex;flex-direction:column;gap:5px}.solo-settings input{width:100%;padding:7px;border:1px solid #cbdac5;border-radius:7px;background:#fff}.solo-settings select{padding:7px;border:1px solid #cbdac5;border-radius:7px}.solo-settings button{border:0;background:#50876c;color:white;padding:10px 16px;border-radius:9px;width:100%}
.opponent-assets{position:absolute;top:290px;left:32px;width:238px;display:grid;gap:10px;max-height:calc(100dvh - 410px);overflow:auto;z-index:3}.opponent-assets[hidden]{display:none}.opponent-widget{background:#fffdf5bb;backdrop-filter:blur(5px);border:1px solid #ffffffc0;border-left:4px solid var(--opponent-color);border-radius:14px;padding:12px 14px;color:#557761}.opponent-widget h3{font-size:13px;margin:0 0 7px}.opponent-widget p{font-size:11px;margin:5px 0;line-height:1.4}.opponent-widget small{font-size:10px}.opponent-widget.is-turn{box-shadow:0 0 0 2px #629479}.opponent-logos{display:flex;gap:5px;margin-top:7px;align-items:center}.opponent-logos img{width:24px;height:20px;object-fit:contain;background:#fff;border-radius:3px}.turn-status{position:absolute;top:85px;left:50%;transform:translateX(-50%);padding:9px 18px;border-radius:18px;background:#fffdf5dd;color:#4d8067;font-size:13px;z-index:4;pointer-events:none}.turn-status[hidden]{display:none}@media(max-width:1000px){.opponent-assets{display:none}.turn-status{top:75px;font-size:11px}}@media(min-width:1001px) and (max-height:850px){.opponent-assets{top:270px;max-height:calc(100dvh - 330px)}.opponent-widget{padding:9px 12px}}

@media(min-width:1001px) and (max-height:850px){.opponent-assets{top:265px;max-height:calc(100dvh - 395px);gap:7px}.opponent-widget{padding:7px 11px}.opponent-widget h3{font-size:12px;margin-bottom:4px}.opponent-widget p{font-size:10px;line-height:1.2;margin:2px 0}.opponent-widget>small{float:right;font-size:9px}.opponent-logos{display:none}}

@media(min-width:1001px) and (max-height:850px){.opponent-widget{padding:5px 11px}.opponent-widget p{margin:1px 0}.opponent-assets{gap:6px}}


.network-banner{position:fixed;top:85px;left:50%;transform:translateX(-50%);background:#fffdf4ec;color:#46755d;padding:10px 20px;border-radius:18px;z-index:18;font:13px/1.5 "Malgun Gothic",sans-serif;text-align:center}.network-banner[hidden]{display:none}.network-banner.network-wait{background:#fff1d9;color:#9a5b26;border:1px solid #dfb76f}.network-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;border:1px solid white;border-radius:22px;background:#fffdf6;color:#365d49;padding:0;font-family:"Malgun Gothic",sans-serif}.network-dialog::backdrop{background:#294b4555;backdrop-filter:blur(3px)}.network-heading{display:flex;justify-content:space-between;gap:12px;padding:18px 24px;border-bottom:1px solid #dce4d7;background:#eaf0df}.network-heading h2{margin:0;font-size:20px}.network-heading>button{border:0;background:none;font-size:28px;color:#688673}.network-content{padding:20px 24px}.network-content p,.network-content li{font-size:13px;line-height:1.7;white-space:pre-line}.network-content .company-summary{width:170px;float:right;margin:0 0 12px 16px}.network-content table{width:100%;font-size:12px;border-collapse:collapse;clear:both}.network-content td,.network-content th{padding:9px;border-bottom:1px solid #dce4d7;text-align:right}.network-content blockquote{margin:16px 0;padding:16px;background:#eef3e6;border-radius:12px;line-height:1.8;white-space:pre-line}.network-content form{display:grid;gap:10px;margin:18px 0}.network-content label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.network-content select,.network-content input{padding:8px;border:1px solid #c4d3bc;border-radius:7px;font:13px "Malgun Gothic",sans-serif;color:#42684f;background:white}.network-content button{margin:5px 7px 5px 0;border:0;border-radius:9px;background:#52876b;color:#fff;padding:10px 15px;font:13px "Malgun Gothic",sans-serif}.network-content button:disabled{opacity:.5}.network-error{color:#bb4939!important;font-weight:bold}@media(max-width:700px){.network-banner{top:74px;max-width:calc(100vw - 24px);width:max-content;font-size:11px}.network-content{padding:16px}.network-heading{padding:16px}.network-heading h2{font-size:18px}}

.theme-controls #board-outline-toggle{border-left:1px solid #c8d3c4;border-radius:0 8px 8px 0;margin-left:3px;white-space:nowrap}.theme-controls #board-outline-toggle:before{display:none}.theme-controls #board-outline-toggle[aria-pressed="true"]{border-color:#6c907d;background:#e1eddf}@media(max-width:600px){.theme-controls{max-width:calc(100vw - 24px);flex-wrap:wrap;justify-content:flex-end}}
.company-summary-icon{font-size:44px;line-height:1}
.network-content .network-event-note{clear:both;margin:12px 0;padding:12px 14px;background:#eef3e6;border-radius:12px;line-height:1.7}
/* While the camera moves the board changes every frame, so backdrop blur is suspended (restored when it stops). */
html.camera-moving *{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* HTML labels are compositor layers (will-change set inline); this briefly drops it so they re-raster sharply after a zoom change. */
.labels-reraster>*{will-change:auto!important}
