/* White, ink and neutral grey application chrome. */
#home .home-copyright{position:absolute;top:100%;left:0;right:0;margin:0;padding:0 12px;color:#aaa;font-size:11px;line-height:1.6;letter-spacing:.02em;text-align:center}
:root{color:#202020;background:#fafafa;color-scheme:light}body{background:#fafafa}main{width:min(1100px,calc(100% - 48px))}.panel{background:#fff;border-color:#dedede;box-shadow:0 12px 40px #00000006}.eyebrow,.status{color:#707070}button,.seat-link{background:#222;color:#fff;font-weight:600;box-shadow:none}button:hover:not(:disabled){filter:none;box-shadow:0 4px 14px #00000012}.secondary,.minor{background:#f1f1f1;color:#292929;border:1px solid #dedede}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #555;outline-offset:5px}.error{color:#555}.home{position:relative;display:flex;flex-direction:column;width:100%;min-height:calc(100svh - 88px);margin:0;padding:0;border:0;background:transparent;box-shadow:none;animation:none}.home-nav,.settings-nav{display:flex;align-items:center;justify-content:space-between}.home-nav{font-weight:600;text-align:left}.settings-icon{display:grid;place-items:center;width:46px;height:46px;padding:0;background:white;color:#292929;border:1px solid #dedede;border-radius:50%}.home-center{margin:auto;padding:65px 0 115px}.brand-mark{width:76px;margin:0 auto 22px;color:#292929}.home-logo{font-size:clamp(42px,7.5vw,76px);letter-spacing:-.065em;font-weight:800;line-height:1.12;margin:0;color:#242424}.home-logo span{font-weight:400}.home-logo{position:relative;width:fit-content;margin-inline:auto}.home-preview-badge{position:absolute;right:.1em;top:100%;margin-top:-1px;padding:2px 6px 2px 8px;border:1px solid rgba(36,36,36,.16);border-radius:5px;font-size:9px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;line-height:1.35;color:#8a8a8a;background:transparent;white-space:nowrap}.home-subtitle{font-size:13px;letter-spacing:.22em;color:#777;margin:20px 0 0}html[lang="en"] .home-subtitle{visibility:hidden}.home-subtitle-note{font-size:.9em;letter-spacing:.08em;color:#9a9a9a}.home .mode-buttons{display:flex;flex-direction:column;gap:12px;align-items:center;margin-top:42px}.home .mode-card{width:264px;max-width:100%;min-height:54px;margin:0;padding:15px 22px;border-radius:9px;font-size:14px;letter-spacing:.035em;background:#222;color:#fff;border:1px solid #222}.home .mode-card.secondary{background:#fff;color:#333;border-color:#d5d5d5}.home .error{margin:12px 0 0;font-size:13px;max-width:420px}.mobile-entry{position:absolute;right:0;bottom:0;display:flex;align-items:center;gap:18px;text-align:right}.mobile-entry p{font-size:12px;font-weight:600;margin:0 0 7px}.mobile-entry small,.mobile-entry a{display:block;color:#888;font-size:11px;line-height:1.8}.mobile-entry .qr{width:100px;height:100px;margin:0;padding:5px;border:1px solid #e2e2e2;border-radius:6px}.settings-screen{max-width:900px;margin:20px auto;padding:32px}.settings-nav h1{font-size:24px}.settings-screen .language-options{justify-content:flex-start;margin:28px 0 36px;color:#555}.settings-screen .language-options button{background:#f1f1f1;color:#444}.settings-screen .language-options button.active{background:#222;color:#fff;box-shadow:none}.settings-screen h2{font-size:16px}.settings-screen .version-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.settings-screen .version-card{background:#fff;border:1px solid #dedede;color:#555;box-shadow:none}.settings-screen .version-card.active{background:#f4f4f4;border-color:#222;box-shadow:inset 0 0 0 1px #222}.settings-screen .version-card :is(span,strong,b,small){color:inherit}.settings-screen #version-note{color:#777}.version-rules{background:#f7f7f7;border-color:#ddd;color:#555}.version-rules-content :is(h3,h4,p,li){color:#444}.version-rules-content :is(th,code,pre){background:#eee;color:#333;border-color:#ddd}.seat{background:#f6f6f6}.seat.joined{outline-color:#555}.seat-link{display:inline-block}.ready-screen :is(.ready-seat,.ready-status){color:#444}.ready-screen select{background:#fff;color:#333;border-color:#ccc}
@media(max-width:600px){main{width:calc(100% - 32px);padding-top:20px;padding-bottom:20px}.home{min-height:calc(100svh - 40px)}.home-center{padding:65px 0 45px}.mobile-entry{position:static;align-self:flex-end;margin:15px 0 0;gap:12px}.mobile-entry .qr{width:84px;height:84px}.settings-screen{padding:20px}.settings-screen .version-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-screen .version-card{min-width:0}.settings-screen .language-options{flex-wrap:wrap}}
#home>.page-name{display:none!important}.panel>.page-name{background:#eee!important;color:#555!important;border-color:#ddd!important}.settings-screen .version-rules-content{background:#fff;color:#444}.settings-screen .version-rules summary{color:#333}
.home-monsters{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;contain:strict}
.home-monster{position:absolute;left:50%;top:46%;width:min(58vw,760px);height:min(76svh,760px);object-fit:contain;opacity:0;will-change:transform,opacity;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse at center,#000 30%,transparent 72%)}
body[data-ui-screen="home"] main,body[data-ui-screen="ready"] main{position:relative;z-index:1}
.home-center{position:relative;isolation:isolate}
.home-center::before{content:"";position:absolute;inset:0 -55px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,#fafafae8 10%,#fafafa99 45%,transparent 72%)}
#home .home-center,#home .home-nav,#home .mobile-entry{transition:opacity 180ms ease}
#home.home-departing .home-center,#home.home-departing .home-nav,#home.home-departing .mobile-entry{opacity:0;pointer-events:none}
@media(max-width:767px){.home-monster{top:39%;width:88vw;height:58svh}.home-center::before{inset:0 -16px;background:radial-gradient(ellipse,#fafafaf0 12%,#fafafab3 48%,transparent 75%)}}
/* 单人大厅：与首页共用同一层背景与离场淡出，只换中间的按钮组。 */
#solo.solo-screen{position:relative;display:flex;flex-direction:column;width:100%;min-height:calc(100svh - 88px);margin:0;padding:0;border:0;background:transparent;box-shadow:none;animation:none;text-align:center}
#solo .solo-nav{display:flex;align-items:center;gap:10px;text-align:left}
#solo .solo-back{display:grid;place-items:center;width:44px;height:44px;min-width:44px;margin:0;padding:10px;border:0;border-radius:50%;background:transparent;color:#252525;box-shadow:none}
#solo .solo-back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
#solo .solo-center{position:relative;isolation:isolate;margin:auto;padding:65px 0 115px}
#solo .solo-center::before{content:"";position:absolute;inset:-20px -55px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,#fafafae8 10%,#fafafa99 45%,transparent 72%)}
#solo .mode-buttons{display:flex;flex-direction:column;gap:12px;align-items:center;margin:0}
#solo .mode-card{width:264px;max-width:100%;min-height:54px;margin:0;padding:15px 12px;border-radius:9px;font-size:14px;letter-spacing:.02em;background:#222;color:#fff;border:1px solid #222}
#solo .mode-card.secondary{background:#fff;color:#333;border-color:#d5d5d5}
#solo .mode-card:disabled{background:#f4f4f4;color:#9a9a9a;border-color:#e2e2e2;cursor:not-allowed}
#solo .error{margin:12px auto 0;font-size:13px;max-width:420px}
#solo .solo-center,#solo .solo-nav{transition:opacity 180ms ease}
#solo.home-departing .solo-center,#solo.home-departing .solo-nav{opacity:0;pointer-events:none}
body[data-ui-screen="solo"] main{position:relative;z-index:1}
@media(max-width:600px){#solo.solo-screen{min-height:calc(100svh - 40px)}#solo .solo-center{padding:65px 0 45px}#solo .solo-center::before{inset:-20px -16px;background:radial-gradient(ellipse,#fafafaf0 12%,#fafafab3 48%,transparent 75%)}}
@media(prefers-reduced-motion:reduce){#solo .solo-center,#solo .solo-nav{transition:none}}
@media(prefers-reduced-motion:reduce){.home-monsters{display:none}#home .home-center,#home .home-nav,#home .mobile-entry{transition:none}}
@media (max-width:767px){.home-subtitle{font-size:12px;letter-spacing:.14em;margin-top:28px;color:#7a7a7a}.home-preview-badge{margin-top:4px;font-size:7.5px;font-weight:600;letter-spacing:.16em;padding:1px 4px 1px 5px;border-radius:3px;color:#444;border-color:rgba(36,36,36,.38)}}
.home-profile-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.home-profile-actions button{margin:0;flex-shrink:0}
/* Player profile: identity first, progression next, match history below. */
#profile.profile-screen{max-width:900px;margin:16px auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#292929;text-align:left}
#profile .profile-nav{justify-content:flex-start;gap:14px;margin-bottom:28px}
#profile h1{margin:0;font-size:21px;letter-spacing:-.03em}
#profile .profile-local{margin-left:auto;padding:6px 10px;border:1px solid #dedede;border-radius:6px;color:#777;font-size:11px;white-space:nowrap}
#profile .profile-hero{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:24px;padding:32px;border:1px solid #dedede;border-radius:14px;background:#fff}
#profile .profile-avatar{display:grid;place-items:center;width:80px;height:80px;border:1px solid #e3e3e3;border-radius:20px;background:#f6f6f6;color:#444}
#profile .profile-avatar svg{width:38px;height:38px}
#profile label,#profile h2{margin:0;color:#777;font-size:12px;font-weight:600}
#profile .profile-name-row{display:flex;align-items:center;gap:14px;margin-top:5px}
#profile .profile-name-row input{flex:1;min-width:0;width:100%;margin:0;padding:5px 0;border:0;border-bottom:1px solid transparent;border-radius:0;background:transparent;color:#222;font:inherit;font-size:26px;font-weight:650;letter-spacing:-.03em}
#profile .profile-name-row input:hover{border-bottom-color:#ddd}
#profile .profile-name-row input:focus{outline:none;border-bottom-color:#333}
#profile .profile-name-row button{flex-shrink:0;margin:0;padding:8px 13px;border:1px solid #ddd;border-radius:7px;background:#fff;color:#444;font-size:12px}
#profile-status{margin:4px 0 0;font-size:12px;color:#666;line-height:1.5}
#profile-status:empty{display:none}
#profile .profile-level-block{min-width:105px;padding-left:24px;border-left:1px solid #eee;text-align:right}
#profile .profile-level-block span{display:block;color:#777;font-size:11px}
#profile-level{display:block;margin-top:5px;font-size:30px;font-weight:650;letter-spacing:-.05em;white-space:nowrap}
#profile .profile-experience{grid-column:2 / -1;padding-top:2px}
#profile .profile-experience-heading,#profile .profile-experience-foot,#profile .profile-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#profile-exp{font-size:12px;font-variant-numeric:tabular-nums}
#profile progress{display:block;appearance:none;width:100%;height:6px;margin:12px 0;border:0;border-radius:8px;overflow:hidden;background:#eee;accent-color:#333}
#profile progress::-webkit-progress-bar{background:#eee;border-radius:8px}
#profile progress::-webkit-progress-value{background:#333;border-radius:8px}
#profile progress::-moz-progress-bar{background:#333;border-radius:8px}
#profile .profile-experience-foot{color:#888;font-size:11px;flex-wrap:wrap}
#profile .profile-stats{display:grid;grid-template-columns:minmax(0,2fr) minmax(160px,1fr);gap:16px;margin:16px 0 28px}
#profile .profile-stats>section{min-width:0;padding:24px;border:1px solid #dedede;border-radius:12px;background:#fff}
#profile-progress{font-size:14px;font-weight:600;white-space:nowrap}
#profile-stage-progress{margin-top:14px;color:#888;font-size:12px;line-height:1.8}
#profile .profile-balance{display:flex;align-items:center;gap:12px;margin-top:14px}
#profile .profile-balance svg{width:28px;height:28px;fill:none;stroke:#888;stroke-width:1.3}
#profile-tokens{font-size:30px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2;overflow-wrap:anywhere}
#profile .profile-history{display:grid;gap:20px}
#profile .profile-history-group{padding:24px;border:1px solid #dedede;border-radius:12px;background:#fff}
#profile .profile-history h2{font-size:14px;color:#333;margin:0 0 20px}
#profile .profile-history-group>p{margin:0;padding:34px 16px;border:1px dashed #e2e2e2;border-radius:8px;text-align:center;color:#999;font-size:13px}
#profile .profile-history-scroll{overflow-x:auto}
#profile table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}
#profile th,#profile td{padding:14px 12px;border-bottom:1px solid #eee;vertical-align:middle;overflow-wrap:anywhere}
#profile th{background:#fafafa;font-size:11px;font-weight:500;color:#888}
#profile td:first-child{min-width:125px;color:#777;font-variant-numeric:tabular-nums}
#profile td:last-child{white-space:nowrap;font-weight:600}
#profile tr:last-child td{border-bottom:0}
#profile .profile-match-loss td:last-child{color:#999}
#profile .profile-note{margin:18px 0 0;color:#999;text-align:center;font-size:11px;line-height:1.6}
@media(max-width:600px){
 #profile.profile-screen{margin:0 auto}
 #profile .profile-nav{margin-bottom:20px;gap:8px}
 #profile h1{font-size:19px}
 #profile .profile-hero{grid-template-columns:56px minmax(0,1fr);padding:20px;gap:16px}
 #profile .profile-avatar{width:56px;height:56px;border-radius:16px}
 #profile .profile-avatar svg{width:29px;height:29px}
 #profile .profile-name-row{gap:8px}
 #profile .profile-name-row input{font-size:21px}
 #profile .profile-name-row button{padding:7px 9px}
 #profile .profile-level-block{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;padding:14px 0 0;border-left:0;border-top:1px solid #eee;text-align:left}
 #profile-level{margin:0;font-size:23px}
 #profile .profile-experience{grid-column:1 / -1;padding:0}
 #profile .profile-stats{grid-template-columns:minmax(0,1fr);gap:12px;margin:12px 0 20px}
 #profile .profile-stats>section{padding:20px}
 #profile .profile-wallet{display:flex;align-items:center;justify-content:space-between}
 #profile .profile-balance{margin:0}
 #profile-tokens{font-size:26px}
 #profile .profile-history-group{padding:20px 16px}
 #profile th,#profile td{padding:12px 8px}
}
#profile .profile-experience h2,#profile .profile-wallet h2{display:inline-flex;align-items:center;gap:5px}
#profile .profile-help-icon{display:inline-grid;place-items:center;width:28px;height:28px;flex-shrink:0;margin:0;padding:4px;border:0;border-radius:50%;background:transparent;color:#888;cursor:pointer;box-shadow:none}
#profile .profile-help-icon:hover{background:#f1f1f1;color:#222}
#profile .profile-help-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.profile-help-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:28px;border:1px solid #ddd;border-radius:14px;background:#fff;color:#292929;text-align:left;box-shadow:0 16px 60px #0002}
.profile-help-dialog::backdrop{background:#0006}
#profile .profile-help-dialog h2{margin:0 0 24px;font-size:20px;color:#222}
#profile .profile-help-dialog h3{margin:20px 0 8px;font-size:13px;color:#444}
#profile .profile-help-dialog p{margin:0;color:#777;font-size:13px;line-height:1.85}
.profile-help-dialog button{display:block;width:100%;margin:26px 0 0;padding:12px 16px;border:1px solid #222;border-radius:8px;background:#222;color:#fff;font-size:13px}
#profile .profile-wallet{position:relative;padding-right:112px}
#profile .profile-redeem-link{position:absolute;right:20px;top:50%;transform:translateY(-50%);margin:0;padding:8px 0;border:0;background:transparent;color:#888;font-size:12px;font-weight:400;box-shadow:none;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
#profile .profile-redeem-link:hover{color:#333}
#profile .profile-redeem-dialog input{box-sizing:border-box;width:100%;margin:10px 0 14px;padding:12px;border:1px solid #ccc;border-radius:8px;background:#fff;color:#222;font:inherit}
#profile .profile-redeem-actions{display:flex;gap:12px}
#profile .profile-redeem-actions button{margin-top:20px}
#profile .profile-redeem-actions [type=button]{background:#fff;color:#666;border-color:#ddd}
#profile .profile-redeem-actions button:disabled{opacity:.5;cursor:wait}
@media(max-width:600px){#profile .profile-wallet{flex-wrap:wrap;gap:14px;padding-right:20px}#profile .profile-redeem-link{position:static;transform:none;width:100%;text-align:right;padding:0}}
