[hidden]{display:none!important}.account-page{max-width:980px;margin:auto;padding:24px 20px 48px}.account-page header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:16px}.account-page header a{color:#acc8ff;text-decoration:none}.account-page h1{font-size:34px;margin:0}.profile-head{display:flex;align-items:center;gap:22px;padding:24px;border:1px solid #365381;border-radius:22px;background:radial-gradient(ellipse at top right,#263e68,#192232 65%)}.avatar-art{display:block;background-image:url('/avatars-sheet.webp');background-size:400% var(--as,300%);background-repeat:no-repeat;width:100%;height:100%;background-position:var(--ax,0%) var(--ay,0%)}.avatar-button{flex:0 0 110px;height:110px;padding:8px;border-radius:25px;border:1px solid #6496ef;background:#233554;cursor:pointer}.profile-head h2{margin:0 0 8px;font-size:25px}.profile-id{font-size:13px;font-family:monospace;color:#9eb5d9;overflow-wrap:anywhere}.profile-head .text-button{padding:0}.profile-section{margin-top:25px}.profile-section h2{font-size:22px;margin:0 0 16px}.profile-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-card{padding:18px;border-radius:16px;background:#1a2231;border:1px solid #303e55;min-width:0}.profile-card strong{font-size:26px;color:#d3e4ff;display:block}.profile-card p{font-size:14px;color:#aebad0;margin:8px 0 0}.profile-rank{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:18px}.rank-art{background-image:url('/ranks-sheet.webp');background-size:400% 200%;background-position:var(--rx,0%) var(--ry,0%);display:block;width:82px;height:82px;flex-shrink:0}.profile-rank h3{font-size:23px;margin:0}.profile-rank p{margin:8px 0;font-size:14px;color:#b5c5dd}.rank-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin-top:18px}.rank-step{text-align:center;opacity:.48;min-width:0;font-size:12px}.rank-step.active{opacity:1}.rank-step .rank-art{width:60px;height:60px;margin:auto}.rank-step strong{display:block;font-size:12px;overflow-wrap:anywhere}.rank-step small{color:#aebad0}.profile-symbols{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.profile-symbol{text-align:center;background:#202b40;border:1px solid #374967;border-radius:12px;padding:12px 4px}.profile-symbol .face-icon{--face-size:38px}.profile-symbol strong{display:block;font-size:20px;margin-top:8px}.profile-filters{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.profile-filters button{background:#222d40;border:1px solid #3c4c66;color:#b7c9e4;border-radius:10px;padding:9px 12px;font-size:14px}.profile-filters button[aria-pressed=true]{background:#3268ff;color:#fff}.profile-history{display:grid;gap:0;max-height:460px;overflow:auto}.history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px 0;border-bottom:1px solid #303d51}.history-row strong{font-size:15px}.history-row small{display:block;color:#a0b0c9;margin-top:5px;font-size:12px}.history-row b{font-size:16px;white-space:nowrap}.history-row b.positive{color:#8ee6b0}.avatar-dialog{max-width:620px;width:calc(100vw - 24px);padding:24px;background:#172237;border:1px solid #4e6c97;border-radius:20px;color:white}.avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.avatar-option{height:130px;min-width:0;padding:6px 6px 24px;position:relative;background:#223250;border:1px solid #3d557b;border-radius:14px;color:#c9dcff}.avatar-option[aria-pressed=true]{border:2px solid #91b6ff;background:#2b4774}.avatar-option span:last-child{position:absolute;bottom:6px;left:0;right:0;font-size:12px}.profile-link{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #3f5272;border-radius:14px;padding:3px;background:#243551}.profile-link .avatar-art{width:36px;height:36px}.header-account{display:flex;gap:10px;align-items:center}.missions-rank{display:flex;align-items:center;gap:14px;padding:16px 18px;margin:0 0 22px;background:#1e2d46;border:1px solid #3e557b;border-radius:16px}.missions-rank .rank-art{width:60px;height:60px}.missions-rank strong{font-size:18px}.missions-rank p{margin:5px 0 0;font-size:14px;color:#afbed6}.missions-rank a{margin-left:auto;color:#aac8ff;font-size:14px}.legal-links{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;margin:16px 0}.legal-links a{font-size:13px;color:#a5badb}.cookie-banner{position:fixed;bottom:12px;left:12px;right:12px;z-index:1000;max-width:740px;margin:auto;padding:14px 18px;display:flex;gap:16px;align-items:center;border:1px solid #4d6490;border-radius:16px;background:#1d2b43;box-shadow:0 8px 40px #0008}.cookie-banner p{font-size:13px;line-height:1.6;margin:0;color:#c3d3ed}.cookie-banner button{border:0;border-radius:9px;background:#3268ff;color:#fff;padding:10px 14px;cursor:pointer}.cookie-banner a{color:#acd1ff}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin-form{display:grid;gap:12px}.admin-form label{font-size:14px;color:#c1d1eb}.admin-form input,.admin-form select,.admin-form textarea{width:100%;min-width:0;padding:11px;border-radius:9px;border:1px solid #435a7d;background:#142035;color:white;font:inherit}.admin-form button{font-size:15px}.admin-users button{width:100%;display:flex;justify-content:space-between;gap:10px;text-align:left;margin-bottom:8px;padding:12px;border:1px solid #3b4f71;background:#233452;color:#d9e8ff;border-radius:10px;font-size:13px;overflow-wrap:anywhere}.admin-note{background:#22344e;border-radius:12px;padding:12px;color:#b7c8e4;font-size:14px;line-height:1.6}.admin-audit{font-size:13px;overflow:auto;max-height:400px}.admin-audit p{border-bottom:1px solid #34445d;padding:12px 0;overflow-wrap:anywhere}.legal-page h2{font-size:22px;margin-top:28px}.legal-page p,.legal-page li{font-size:16px;line-height:1.8;color:#b9c8e1}.legal-page a{color:#a6c6ff}.page-error{color:#ffacb7;line-height:1.6;font-size:15px}.profile-card progress{margin-top:14px}.case-track{will-change:transform;transform:translate3d(0,0,0);backface-visibility:hidden}.case-window{contain:layout paint}.case-track.is-spinning .case-item{box-shadow:none}.case-track.is-spinning{pointer-events:none}@media(max-width:650px){.account-page{padding:20px 14px 36px}.account-page h1{font-size:27px}.profile-head{padding:18px;gap:14px}.avatar-button{flex-basis:82px;height:82px;border-radius:19px}.profile-head h2{font-size:21px}.profile-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-card{padding:14px}.profile-card strong{font-size:24px}.rank-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 8px}.profile-rank{grid-template-columns:72px 1fr;gap:12px}.profile-rank>.rank-art{width:70px;height:70px}.profile-symbols{gap:5px}.profile-symbol .face-icon{--face-size:30px}.avatar-grid{gap:8px}.avatar-option{height:102px;padding:5px 5px 24px}.avatar-option span:last-child{font-size:11px}.admin-grid{grid-template-columns:1fr}.cookie-banner{align-items:flex-start}.missions-rank{gap:10px;padding:12px}.missions-rank strong{font-size:16px}.missions-rank p{font-size:12px}.missions-rank a{font-size:12px}.missions-rank .rank-art{width:48px;height:48px}.profile-head .text-button{font-size:13px}.profile-symbol strong{font-size:18px}}

.account-page{display:block!important}.account-page h1{letter-spacing:-.8px;line-height:1.15}.account-page footer,.app footer{flex-wrap:wrap;gap:12px}.app footer .legal-links{flex-basis:100%;margin:4px 0 0;justify-content:flex-start}.admin-form .motion-control input[type=checkbox]{width:auto;flex:none}.admin-form .motion-control{display:flex;align-items:center;gap:9px}.profile-section>a{display:inline-block;margin-top:14px}

.avatar-change{margin:2px 0 0;padding:10px 14px;border:1px solid #8fb4ff;border-radius:11px;background:#3268ff;color:#fff;font:inherit;font-size:14px;cursor:pointer}.avatar-hint{font-size:12px;color:#bbcee9;margin:7px 0 12px}.rank-catalog{margin-top:20px}.rank-catalog summary{cursor:pointer;color:#cce0ff;font-weight:700;font-size:16px}.rank-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.rank-step{opacity:1;padding:12px 5px;background:#202d43;border:1px solid #394d6b;border-radius:12px}.rank-step.current{border-color:#a8f5c0;background:#253d3b}.rank-step strong{font-size:13px;color:#e1ebff}.rank-current,.rank-reward{display:block;margin-top:5px;font-size:11px;line-height:1.4;color:#a8f5c0}.avatar-dialog{max-height:calc(100dvh - 24px);overflow-y:auto}.avatar-option{cursor:pointer}.avatar-option:focus-visible,.avatar-change:focus-visible{outline:3px solid #a8f5c0;outline-offset:3px}@media(max-width:400px){.rank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-head{align-items:flex-start}.avatar-hint{line-height:1.5}.profile-head h2{font-size:18px}}

.avatar-button{position:relative;overflow:hidden}.avatar-button::after{content:'✎';position:absolute;bottom:5px;right:5px;display:grid;place-items:center;width:24px;height:24px;background:#3268ff;border:1px solid #a9c8ff;border-radius:8px;color:white;font-size:16px;pointer-events:none}.avatar-option{height:auto;aspect-ratio:1;padding:5px;overflow:hidden}.avatar-option .avatar-art{position:static!important;inset:auto!important;font-size:inherit!important;border-radius:9px}.avatar-hint{margin:4px 0 12px;line-height:1.5}.rank-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}.rank-rules article{padding:16px;border:1px solid #3b4d67;background:#202c41;border-radius:13px}.rank-rules strong{font-size:16px;color:#dbe8ff}.rank-rules p{font-size:14px;line-height:1.5}.rank-rules small{display:block;margin-top:10px;font-size:12px;color:#aec1de}.rank-rules .rank-rules-reward{background:#243b36;border-color:#638c79}.rank-pack{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.rank-pack span{background:#375349;color:#bbf5d1;font-size:12px;padding:6px 8px;border-radius:7px}.missions-rank>div{flex:1;min-width:0}.missions-rank strong{display:block}.missions-rank a{flex:none;white-space:nowrap}.missions-rank progress{margin-top:10px}.missions-rank #missions-rank-season{font-size:12px}@media(max-width:420px){.rank-rules{grid-template-columns:1fr}.missions-rank{flex-wrap:wrap}.missions-rank a{margin-left:58px}.missions-rank .rank-art{width:48px;height:48px}}

.avatar-button{padding:0}.avatar-art{background-image:var(--avatar-image,url('/avatar-0.webp'));background-size:cover!important;background-position:center!important;border-radius:inherit}.avatar-option{padding:0}.avatar-option .avatar-art{border-radius:12px}

/* Rank navigation and history pagination stay in document flow. */
.missions-rank .missions-rank-link{display:inline-block;margin:10px 0 0;font-size:14px;line-height:1.5}
.profile-history{scrollbar-gutter:stable;padding-right:6px;min-width:0}
.history-row>div{min-width:0;overflow-wrap:anywhere}
.history-pagination{display:flex;justify-content:center;position:static;clear:both;padding-top:16px}
.history-pagination:has(button[hidden]){display:none}
#history-more{position:static;inset:auto;transform:none;width:auto;min-width:180px;max-width:100%;min-height:44px;margin:0;padding:11px 22px;border:1px solid #5275a9;border-radius:12px;background:#263c5e;color:#e0ecff;font-size:14px;font-weight:700;box-shadow:none}
#history-more:hover:not(:disabled){background:#304d76}
@media(max-width:650px){#history-more{width:100%}.history-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.history-row b{font-size:14px}.history-row strong{font-size:14px}}

.missions-rank .missions-rank-link{padding:7px 11px;border:1px solid #9a7741;border-radius:10px;background:#3b3021;color:#f6d69e;font-size:13px;font-weight:700;line-height:1.4;text-decoration:none;white-space:normal}
.missions-rank .missions-rank-link:hover{background:#493a25}
.rank-guide-title{margin:24px 0 12px;font-size:18px}
.rank-rules{margin-top:0;align-items:stretch}
.rank-rules article{display:flex;align-items:flex-start;gap:12px;padding:16px;background:#1d2a40;border-radius:15px}
.rank-rule-icon{display:block;width:48px;height:48px;object-fit:contain;flex:0 0 48px}
.rank-rules article>div{min-width:0}
.rank-rule-label{display:block;font-size:12px;color:#abc1df;line-height:1.5;margin-bottom:6px}
.rank-rules strong{font-size:16px;line-height:1.45}
.rank-rules strong>span{color:#a8f5c0;white-space:nowrap}
.rank-rules p{font-size:13px;margin-top:6px;line-height:1.5}
.rank-guide-note{padding:12px 14px;border-radius:10px;background:#152034;color:#a8bbd7;font-size:13px;line-height:1.6}
@media(max-width:650px){.rank-rules{grid-template-columns:1fr}.rank-rule-icon{width:44px;height:44px;flex-basis:44px}.rank-rules article{padding:14px}.missions-rank .missions-rank-link{margin-left:0}}

.langame-card-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.langame-card-head>img{width:40px;height:40px;border-radius:10px;object-fit:cover;flex:0 0 40px}.langame-card-head>div{flex:1;min-width:160px}.langame-card-head h2{margin:0;font-size:19px}.langame-card-head p{margin:5px 0 0}.langame-badge{padding:7px 10px;border-radius:10px;background:#25354f;border:1px solid #3c5376;color:#c6d5e9;font-size:12px;line-height:1.4}.langame-badge.linked{background:rgba(168,245,192,.14);border-color:rgba(168,245,192,.35);color:#a8f5c0}.langame-card #langame-connect{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;max-width:100%;white-space:normal}.langame-card #langame-connect[hidden]{display:none}.langame-demo-note{margin:18px 0 0;padding:11px 13px;border-radius:10px;background:#152034;color:#a8bbd7;font-size:12px;line-height:1.6}@media(max-width:650px){.langame-card-head{gap:10px}.langame-card-head>div{min-width:0;flex-basis:calc(100% - 50px)}.langame-badge{margin-left:50px}.langame-card #langame-connect{width:100%;box-sizing:border-box}.langame-card .help{overflow-wrap:anywhere}}

#langame-preview{margin-top:20px;padding-top:18px;border-top:1px solid #ffffff15}.langame-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.langame-preview-head h3{margin:0}#langame-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}#langame-summary .profile-card{min-width:0;padding:14px}#langame-summary strong{font-size:clamp(18px,4vw,26px);overflow-wrap:anywhere}#langame-summary p{font-size:12px;line-height:1.5}#langame-review{margin:14px 0;padding:12px;border-radius:12px;background:#ffd4a310}#langame-review summary{cursor:pointer;color:#ffd4a3}#langame-review p{line-height:1.6}#langame-sync-retry{margin-top:12px}

.langame-journal{margin-top:16px}.langame-journal>summary{cursor:pointer;padding:13px 15px;background:#263450;border:1px solid #3e5275;border-radius:12px;color:#d3e4ff;font-weight:600}.langame-operation{margin-top:10px;padding:14px;border:1px solid #ffffff14;border-radius:12px;background:#ffffff04;min-width:0}.langame-operation-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.langame-operation-head strong{font-size:14px}.langame-operation-state{font-size:11px;padding:5px 8px;border-radius:8px;background:#adcaff18;color:#c0d6ff;line-height:1.5}.langame-operation.review .langame-operation-state{background:#ffd4a318;color:#ffd4a3}.langame-operation.cancelled{opacity:.7}.langame-operation-id,.langame-operation>small{display:block;font-size:11px;margin-top:8px;color:#aebad0;overflow-wrap:anywhere}.langame-operation>b{display:block;margin-top:9px;font-size:20px}.langame-operation p{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.langame-journal .history-pagination{margin-bottom:0}

.langame-operation.waiting .langame-operation-state{background:#e2c6ff18;color:#e2c6ff}
#admin-coupon-rows .history-row{grid-template-columns:minmax(0,1fr);overflow-wrap:anywhere}#admin-coupon-rows .history-row strong{font-size:15px}#admin-coupon-rows .history-row p{border:0;padding:0}#admin-coupon-more{display:block;margin:16px auto 0;max-width:100%}

.rank-season-list{display:grid;gap:12px;margin-top:16px}.rank-season-card{display:flex;gap:14px;align-items:center;padding:14px;border:1px solid var(--line,rgba(105,156,255,.18));border-radius:16px;background:rgba(68,132,255,.05);min-width:0}.rank-season-card .rank-art{flex:0 0 56px;width:56px;height:56px}.rank-season-card>div{min-width:0;overflow-wrap:anywhere}.rank-season-card p{margin:5px 0}.rank-season-card small{font-size:.875rem;color:var(--muted,#9eafcf)}
