/* Second approved layout. Existing game artwork and controls are reused. */
html{scroll-behavior:smooth;scroll-padding-top:24px}
.layout-v2 .page{height:auto;min-height:100dvh;padding:0 0 24px}
.layout-v2 .layout{display:block;width:min(1480px,100%);max-width:1480px;height:auto;margin:auto;padding:0 28px}
.layout-v2 .topbar{height:88px;min-height:0;display:flex;align-items:center;padding:0;gap:24px;border-bottom:1px solid #9f865766;margin-bottom:24px}
.layout-v2 .wordmark{font-size:40px;letter-spacing:4px}
.site-nav{display:flex;align-items:center;gap:30px;font:19px 'SimSun',serif;color:#ead39c}
.site-nav a{text-decoration:none;padding:16px 0;white-space:nowrap}.site-nav a:hover{color:#fff1c0;text-shadow:0 0 12px #edbd69}
.portal-columns{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(420px,1fr);gap:24px;align-items:stretch}
.portal-main,.portal-services{display:flex;flex-direction:column;gap:24px;min-width:0}
.portal-intro{padding:28px 20px 16px;border:1px solid #9f865777;background:#0b100b52}
.layout-v2 .hero{height:auto;min-height:0;max-width:none;padding:26px 16px 42px;margin:0}
.layout-v2 .hero h1{font-size:clamp(32px,3.25vw,55px);letter-spacing:1px;line-height:1.3;margin:0 0 16px}
.layout-v2 .hero-subtitle{font-size:27px;letter-spacing:1px;margin:0 0 12px}.layout-v2 .hero-caption{font-size:15px;letter-spacing:1px;margin:0}
.layout-v2 .official-launch{width:100%;padding:12px 14px;font-size:18px;line-height:1.6}
.layout-v2 .official-launch p{white-space:normal}
.layout-v2 .version-banner{position:static;translate:none;top:auto;height:auto;min-height:0;margin:0 0 12px;padding:0 0 12px;background:none;border:0;border-bottom:1px solid #9f865766;gap:18px}
.layout-v2 .version-label{font-size:25px;letter-spacing:2px}.layout-v2 .version-banner h2{font-size:31px;letter-spacing:3px}.layout-v2 .version-divider{height:30px}
.layout-v2 .launch-description{font-size:17px;line-height:1.6;margin:8px 0}.layout-v2 .launch-hd-highlight{font-size:25px;letter-spacing:0;line-height:1.5;margin:8px 0}
.layout-v2 .download-group{width:100%;margin:0;padding:18px 14px;border:1px solid #9f865777;background:#10160de0;gap:16px}
.layout-v2 .downloads{display:flex;flex-wrap:wrap;align-items:stretch;margin:0;gap:8px}
.layout-v2 .downloads .recommended{flex-basis:100%;font-size:20px;min-height:58px}.layout-v2 .download{font-size:14px;padding:8px;white-space:normal;text-align:center}
.layout-v2 .updater-download{min-height:90px;gap:8px;padding:12px 6px;animation:updater-glow 2.5s ease-in-out infinite;box-shadow:0 0 12px #eeb44855}
.layout-v2 .updater-download strong{font-size:22px;letter-spacing:0}.layout-v2 .updater-download small{font-size:13px}
.layout-v2 .account-panel{height:auto;min-height:0;padding:26px 22px 22px;flex:1;margin-top:8px}
.layout-v2 .account-panel h2{text-align:center;font-size:30px;margin:0 0 14px}.layout-v2 .tabs{margin-bottom:22px;gap:6px}.layout-v2 .tabs button{font-size:15px;min-height:42px}
.layout-v2 #account-form{gap:17px}.layout-v2 .field{grid-template-columns:70px minmax(0,1fr);gap:8px;font-size:14px}.layout-v2 .field input{height:44px}.layout-v2 .email-input{grid-template-columns:minmax(0,1fr) 100px;gap:8px}.layout-v2 .status{margin-left:78px;font-size:12px}
.layout-v2 .primary{min-height:54px;margin-top:4px}.layout-v2 .secondary{font-size:14px}
.layout-v2 .guide-entry{width:100%;min-height:126px;margin:0;padding:22px 12px;box-shadow:none}.layout-v2 .guide-entry strong{font-size:30px}.layout-v2 .guide-entry span{font-size:16px}
.layout-v2 .updates{height:550px!important;min-height:420px;flex:1;padding:26px;max-height:680px}.layout-v2 .updates h2{font-size:28px;margin-bottom:18px}.layout-v2 .updates p{font-size:15px;line-height:1.9}.layout-v2 .updates h3.update-subheading{font-size:21px;margin:10px 0 16px}
.layout-v2 .trade-preview{padding:12px 16px;margin-bottom:18px}.layout-v2 .trade-preview h3{font-size:19px;margin-bottom:6px}.layout-v2 .trade-preview p{font-size:14px}
.layout-v2 .driver-help{position:static;top:auto;right:auto;transform:none;width:100%;max-width:none;margin-top:24px;padding:20px 24px;display:grid;grid-template-columns:1fr 1fr;gap:8px 28px}
.layout-v2 .driver-help h2{margin:0;font-size:22px}.layout-v2 .driver-help>p{margin:0;font-size:13px}.layout-v2 .driver-help .driver-requirements{white-space:normal;grid-column:2;grid-row:1;font-size:14px}.layout-v2 .driver-actions{grid-column:1;grid-row:3;gap:12px;margin:0}.layout-v2 .driver-actions a{min-height:54px}
.layout-v2 .log-entry{grid-column:2;grid-row:3;margin:0;padding:0;border:0;flex-wrap:wrap;justify-content:flex-start}.layout-v2 .log-entry>span{display:none}.layout-v2 .log-entry button{min-height:48px}
@media(min-width:1900px){.layout-v2 .layout{padding-top:16px}.layout-v2 .hero{padding-top:32px;padding-bottom:48px}}
@media(max-width:1100px){.portal-columns{grid-template-columns:minmax(0,1.3fr) minmax(360px,1fr)}.layout-v2 .layout{padding:0 20px}.site-nav{gap:16px;font-size:16px}.layout-v2 .wordmark{font-size:30px}.layout-v2 .hero{padding:12px 0 28px}.layout-v2 .hero-subtitle{font-size:21px}.layout-v2 .version-label{font-size:20px}.layout-v2 .version-banner h2{font-size:24px}.layout-v2 .launch-hd-highlight{font-size:22px}.layout-v2 .account-panel{padding:26px 14px}.layout-v2 .field{grid-template-columns:1fr}.layout-v2 .status{margin-left:0}}
@media(max-width:760px){.layout-v2 .layout{padding:0 16px}.layout-v2 .topbar{height:auto;display:block;padding:20px 0 12px;margin-bottom:20px}.site-nav{gap:0;justify-content:space-between;font-size:14px;margin-top:8px}.portal-columns{display:flex;flex-direction:column;gap:28px}.portal-main,.portal-services{gap:24px}.portal-intro{padding:20px 12px 12px}.layout-v2 .hero h1{font-size:32px}.layout-v2 .hero-subtitle{font-size:19px}.layout-v2 .hero-caption{font-size:12px}.layout-v2 .official-launch{font-size:16px;padding:10px 8px}.layout-v2 .launch-description{font-size:15px}.layout-v2 .launch-hd-highlight{font-size:21px}.layout-v2 .version-banner{gap:10px}.layout-v2 .version-label{font-size:18px}.layout-v2 .version-banner h2{font-size:22px;letter-spacing:0}.layout-v2 .updates{height:480px!important;flex:auto;min-height:0;padding:24px 18px}.layout-v2 .account-panel{flex:auto;padding:26px 20px}.layout-v2 .driver-help{display:flex;flex-direction:column;padding:20px 16px;gap:14px}.layout-v2 .driver-actions{grid-template-columns:1fr 1fr}.layout-v2 .driver-actions a{padding:8px;flex-direction:column;font-size:12px}.layout-v2 .log-entry button{white-space:normal;flex:1;padding:8px}.layout-v2 .guide-entry strong{font-size:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Remove the old equal-panel feedback loop; each column now owns its height. */
.layout-v2 .updates{flex:none;height:500px!important;max-height:none}
.layout-v2 .hero{padding-top:12px;padding-bottom:28px}
.layout-v2 .portal-intro{padding-top:18px}
@media(max-width:760px){.layout-v2 .updates{height:440px!important}}

@media(min-width:1101px){.layout-v2 .topbar{height:72px;margin-bottom:20px}.layout-v2 .layout{padding-top:0}.layout-v2 #account-form{gap:14px}.layout-v2 .updates{flex:1;min-height:480px;height:480px!important}.layout-v2 .portal-main{min-height:0}.layout-v2 .guide-entry{min-height:112px}.layout-v2 .driver-help{margin-top:20px;padding-top:16px;padding-bottom:16px}}

@media(min-width:1101px){.portal-columns{height:1010px}.portal-main{display:grid;grid-template-rows:auto minmax(0,1fr)}.portal-services{display:grid;grid-template-rows:auto minmax(0,1fr) 112px}.layout-v2 .updates{height:100%!important;min-height:0;max-height:100%}.layout-v2 .account-panel{min-height:0}.layout-v2 .guide-entry{height:112px;min-height:0}}

/* Let announcement copy use the full panel width without forced short lines. */
.layout-v2 .updates-body{padding-right:10px}
.layout-v2 .updates-body p,.layout-v2 .updates-body .update-items{font-size:16px;line-height:1.85;text-align:justify;text-indent:0;letter-spacing:0;max-width:none}
.layout-v2 .updates-body p{margin:0 0 12px}
.layout-v2 .updates-body h3,.layout-v2 .updates-body h3.update-subheading{font-size:20px;line-height:1.5;margin:20px 0 12px}
.layout-v2 .updates-body time+h3{margin-top:10px}
.layout-v2 .updates-body .update-items{padding-left:1.5em;margin:8px 0 14px}
.layout-v2 .updates-body .update-items li+li{margin-top:9px}
.layout-v2 .updates-body .update-divider{margin:20px 0}
@media(max-width:760px){.layout-v2 .updates-body p,.layout-v2 .updates-body .update-items{font-size:15px}.layout-v2 .updates-body{padding-right:8px}}
/* Taiwan access announcement: small preview; full image loads only on click. */
.layout-v2 .hero-with-access{display:grid;grid-template-columns:minmax(0,1fr) 200px;align-items:center;gap:22px;padding-left:8px;padding-right:8px}
.hero-copy{min-width:0}
.layout-v2 .hero-with-access h1{font-size:clamp(28px,2.45vw,40px);white-space:nowrap}
.layout-v2 .hero-with-access .hero-subtitle{font-size:clamp(18px,1.45vw,23px);letter-spacing:0}
.taiwan-access{display:block;min-width:0;text-align:center;text-decoration:none;color:#f3d58d}
.taiwan-thumbnail{position:relative;display:block;border:2px solid #d5b464;box-shadow:0 0 8px #ffd46c99,inset 0 0 3px #fff3b8}
.taiwan-thumbnail img{display:block;width:100%;height:auto}
.taiwan-thumbnail::after{content:"";position:absolute;inset:-2px;border:1px solid #ffe5a0;box-shadow:0 0 14px #ffcf6aaa,0 0 24px #dca23b55;pointer-events:none;animation:taiwan-glow 3s ease-in-out infinite}
.taiwan-caption{display:block;margin-top:9px;font:17px/1.5 'SimSun',serif;white-space:nowrap;text-shadow:0 0 8px #dba54966}
.taiwan-access:hover .taiwan-thumbnail,.taiwan-access:focus-visible .taiwan-thumbnail{box-shadow:0 0 20px #ffda84}
.taiwan-access:focus-visible{outline:2px solid #ffe5a0;outline-offset:6px}
@keyframes taiwan-glow{0%,100%{opacity:.35}50%{opacity:1}}
@media(min-width:761px) and (max-width:1250px){.layout-v2 .hero-with-access{grid-template-columns:1fr}.taiwan-access{width:180px;justify-self:end}.layout-v2 .hero-with-access h1{white-space:normal}}
@media(max-width:760px){.layout-v2 .hero-with-access{grid-template-columns:1fr;gap:20px}.layout-v2 .hero-with-access h1{font-size:clamp(23px,6.5vw,32px);white-space:normal}.taiwan-access{width:200px;justify-self:center}}
@media(prefers-reduced-motion:reduce){.taiwan-thumbnail::after{animation:none;opacity:.65}}

button.taiwan-access{padding:0;border:0;background:none;cursor:pointer;font:inherit}
#taiwan-preview{position:fixed;inset:0;margin:auto;padding:42px 8px 8px;width:fit-content;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #d5b464;background:#0c110e;color:#f3d58d;box-shadow:0 0 28px #dba54966}
#taiwan-preview::backdrop{background:rgba(0,0,0,.82)}
#taiwan-preview img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 84px);object-fit:contain;margin:auto}
.taiwan-preview-close{position:absolute;right:8px;top:4px;width:34px;height:34px;padding:0;background:#151b13;border:1px solid #a98c51;color:#f3d58d;font:28px/1 sans-serif;cursor:pointer}
.taiwan-preview-close:focus-visible{outline:2px solid #ffe5a0;outline-offset:2px}

@media(prefers-reduced-motion:reduce){.layout-v2 .updater-download{animation:none;box-shadow:0 0 18px 3px #eeb44890,0 0 32px #eeb44845}}

.layout-v2 .diagnostic-download{flex-direction:row;gap:8px;line-height:1.4}
.layout-v2 .diagnostic-download>.icon{flex:none}
.layout-v2 .diagnostic-copy{display:grid;gap:3px;min-width:0}
.layout-v2 .diagnostic-copy>small{display:block;font-size:12px;font-weight:400;white-space:nowrap;color:#d9c99f}
@media(max-width:760px){.layout-v2 .diagnostic-download{gap:4px}.layout-v2 .diagnostic-download>.icon{width:18px;height:18px}}

.layout-v2 .diagnostic-copy > span { white-space: nowrap; }
.layout-v2 .downloads > .download { flex-grow: 1; }
@media (max-width: 380px) { html:lang(en) .layout-v2 .diagnostic-download { font-size: 12px; } }

.peer-row{box-sizing:border-box;flex:1 0 100%;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px 11px;padding:8px 4px 11px;border-bottom:1px solid #80683f77;color:#ead29b;line-height:1.65}
.peer-link{font:600 14px/1.65 "Microsoft YaHei",sans-serif;color:#f1ce81;text-decoration:underline;text-decoration-color:#ac854d;text-underline-offset:4px;white-space:nowrap}
.peer-rule{width:1px;height:12px;background:#796640}
.peer-tip{font:12px/1.65 "Microsoft YaHei",sans-serif;color:#c5bb9e;white-space:nowrap}
.peer-tip a{color:#ead29b;text-decoration:underline;text-underline-offset:3px}
.peer-row a:hover{color:#fff0ba}
