:root{--region-viewport-style-ready:1}
/* Cosmetic shop: all purchased effects are visual and keep team colours readable. */
.cosmetic-badge{display:block;overflow:visible;flex-shrink:0}
.profile-avatar{background:transparent!important;border:0;overflow:visible}
.profile-avatar .cosmetic-badge,.player-avatar .cosmetic-badge{width:100%;height:100%}
.player-avatar:has(.cosmetic-badge){background:transparent;border:0;overflow:visible}
.map-stage svg.cosmetic-badge{width:30px;height:30px;min-height:0!important;overflow:visible;touch-action:none}
.marker>circle{fill:none;filter:none}
.marker .cosmetic-badge circle{filter:none}
.shop-dialog{width:min(1060px,calc(100vw - 36px));max-width:none;max-height:calc(100dvh - 36px);padding:0;border:1px solid #d9ddca;border-radius:22px;background:#faf9f2;color:var(--ink);box-shadow:0 28px 100px #1d3f3b40}
.shop-dialog::backdrop{background:#203b34a6;backdrop-filter:blur(5px)}
.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:26px 30px 22px;border-bottom:1px solid #e5e4d5;background:#faf9f2;position:sticky;top:0;z-index:2}
.shop-heading h2{font-size:27px;margin-top:8px;line-height:1.2;max-width:660px}
.shop-close{border:1px solid #dedfce;border-radius:50%;width:36px;height:36px;flex-shrink:0;background:#f0f1e5;color:#657859;font-size:24px}
.shop-layout{display:grid;grid-template-columns:300px minmax(0,1fr)}
.shop-showcase{padding:22px 24px 28px;background:radial-gradient(ellipse at 50% 24%,#ecedd5 0,transparent 65%),#f1f2e6;border-right:1px solid #e0e3d1;text-align:center;min-width:0}
.shop-preview-art{min-height:215px;display:grid;place-items:center}.shop-landscape{display:block;width:100%;height:auto;overflow:visible}
.shop-showcase h3{font-family:var(--serif);font-size:23px;font-weight:normal;line-height:1.3}
.shop-showcase p{font-size:11px;line-height:1.7;color:#7d886f;margin-top:10px;overflow-wrap:anywhere}
.shop-wallet{display:flex;align-items:center;justify-content:center;gap:12px;background:#fffdf2;border:1px solid #dedfc8;border-radius:14px;margin:24px 0 12px;padding:16px}
.shop-coin{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(140deg,#f4dc9c,#cdaa60);border:3px double #b18a46;color:#fff5cf;font-size:24px;box-shadow:0 2px 0 #ba964f}
.shop-wallet strong{font-size:25px;font-weight:600;letter-spacing:1px;font-variant-numeric:tabular-nums}.shop-wallet small{display:block;font-size:10px;color:#8a8c72;margin-top:3px}
.shop-showcase .shop-mode{font-size:10px;line-height:1.6;color:#8b8e77}.shop-showcase .shop-fair{border-top:1px solid #dce1cc;padding-top:18px;margin-top:20px;color:#637854;font-family:var(--serif);font-size:14px}
.shop-goods{min-width:0;padding:24px}
.shop-tabs{display:flex;gap:5px;padding:5px;border:1px solid #e1e4d4;border-radius:12px;background:#eff1e6}
.shop-tab{flex:1;min-width:0;border:0;border-radius:8px;padding:11px 4px;color:#7c886e;background:transparent;font-size:12px}
.shop-tab[aria-pressed=true]{color:#385b42;background:#fffdf4;box-shadow:0 2px 8px #62734c13}
.shop-category-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:60px}
.shop-category-heading p{font-size:10px;color:#849072;line-height:1.5}.shop-category-heading .text-button{font-size:10px;flex-shrink:0}
.shop-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.shop-product{min-width:0;display:flex;flex-direction:column;position:relative;border:1px solid #e0e3d1;background:#fffef8;border-radius:15px;padding:10px 12px 14px;transition:border-color .2s,box-shadow .2s}
.shop-product.is-equipped{border-color:#8ca37b;box-shadow:0 0 0 2px #8ca37b18}
.shop-product-art{border:0;width:100%;min-height:145px;padding:12px 0;background:radial-gradient(ellipse,#f0edda,transparent 72%);display:grid;place-items:center;border-radius:10px;color:inherit}
.shop-product-art:hover{background:#f0f3e5}.shop-product-art>.shop-landscape{min-height:145px}
.shop-product-art>.cosmetic-badge{width:112px;height:112px;max-width:100%}
.shop-product-tag{font-size:8px;letter-spacing:.5px;text-transform:uppercase;align-self:flex-start;color:#8f936e;background:#f0f2e4;border-radius:4px;padding:4px 6px;margin:0 0 8px}
.is-equipped .shop-product-tag{background:#e4ecd7;color:#567443}
.shop-product h3{font-family:var(--serif);font-size:17px;font-weight:normal;line-height:1.3}.shop-product>p{font-size:10px;color:#89917b;line-height:1.65;margin:8px 0 14px;flex:1}
.shop-product .shop-buy{width:100%;min-height:38px;padding:10px 4px;font-size:11px;white-space:nowrap}.shop-status{font-size:11px;color:#667e51;line-height:1.6;min-height:35px;margin-top:18px}
.capture-effect{pointer-events:none}.capture-particle{animation:cosmetic-spark 1.1s ease-out both;animation-delay:var(--delay);transform-box:fill-box;transform-origin:center}
.capture-ring{animation:cosmetic-ring 1.15s ease-out both;transform-origin:0 0}.capture-aurora .capture-particle{animation-duration:1.4s}
@keyframes cosmetic-spark{0%{opacity:0;transform:translate(0,0) scale(.4)}15%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.15) rotate(90deg)}}
@keyframes cosmetic-ring{0%{opacity:.8;transform:scale(.5)}100%{opacity:0;transform:scale(7)}}
@media(max-width:920px){.shop-layout{grid-template-columns:240px minmax(0,1fr)}.shop-showcase{padding:15px}.shop-goods{padding:18px}.shop-products{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-preview-art{min-height:180px}.shop-heading h2{font-size:24px}}
@media(max-width:600px){.shop-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.shop-heading{padding:16px;align-items:flex-start}.shop-heading h2{font-size:20px;max-width:260px}.shop-heading .tiny-label{font-size:8px;letter-spacing:1px}.shop-layout{grid-template-columns:1fr}.shop-showcase{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:12px;padding:12px 16px;border-right:0;border-bottom:1px solid #e0e3d1;text-align:left}.shop-preview-art{grid-row:1/5;min-height:112px;align-self:center}.shop-showcase h3{font-size:19px;align-self:end}.shop-showcase>p{margin-top:5px;font-size:10px}.shop-wallet{margin:9px 0 0;padding:8px 10px;justify-content:flex-start;gap:8px;width:max-content;max-width:100%}.shop-coin{width:26px;height:26px;font-size:16px}.shop-wallet strong{font-size:20px}.shop-wallet small{font-size:9px}.shop-showcase .shop-mode{grid-column:1/-1;margin-top:10px}.shop-showcase .shop-fair{display:none}.shop-goods{padding:14px}.shop-tab{font-size:11px;padding:11px 3px;min-height:40px}.shop-category-heading{min-height:55px}.shop-category-heading p{font-size:9px}.shop-category-heading .text-button{font-size:9px}.shop-products{gap:10px}.shop-product{padding:8px 10px 12px}.shop-product-art{min-height:120px;padding:8px 0}.shop-product-art>.shop-landscape{min-height:120px}.shop-product-art>.cosmetic-badge{width:92px;height:92px}.shop-product h3{font-size:17px}.shop-product .shop-buy{min-height:42px;font-size:11px}.shop-product>p{font-size:10px;line-height:1.6}.shop-status{margin-top:12px}}
@media(max-width:360px){.header nav{gap:19px}.shop-goods{padding:10px}.shop-product{padding:8px}.shop-product h3{font-size:15px}.shop-product>p{font-size:9px}.shop-product .shop-buy{font-size:10px}.shop-showcase{grid-template-columns:90px minmax(0,1fr);padding:12px}.shop-heading h2{font-size:18px}.shop-tab{font-size:10px}}
@media(prefers-reduced-motion:reduce){.capture-effect{display:none}.shop-product{transition:none}}
.shop-product-art{position:relative;padding-bottom:23px}.shop-art-hint{position:absolute;bottom:5px;left:0;right:0;font-size:8px;color:#9c9f83;opacity:.8}
.shop-art-symbol{position:absolute;right:5px;top:8px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f4e5b7;color:#b18c46;border:1px solid #e6d49d;font-size:23px;line-height:1}
.shop-art-symbol[data-style=aurora]{background:#daeee5;color:#6b9f95;border-color:#b5d5c5}.shop-art-symbol[data-style=fireworks]{background:#eee1ed;color:#b68bab;border-color:#d5bdd0}
/* Cartographer's table · shared typography and vector artwork, v1.9.0. */
:root{--paper:#f3f1e7;--ink:#243c50;--muted:#596d79;--line:#d5dedc;--copper:#b97835;--green:#286e74;--serif:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font:16px/1.5 var(--serif);color:var(--ink);background:var(--paper);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{display:flex;flex-direction:column;background:radial-gradient(ellipse at 80% 0,#e2e9df,transparent 60%),var(--paper)}[hidden]{display:none!important}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button,a,input,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #a46b26;outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:750;line-height:1.2;letter-spacing:-.035em}h1{font-size:clamp(30px,3.2vw,46px)}h1 em{font-style:normal;color:#a26a32}h2{font-size:27px}h3{font-size:21px}p{line-height:1.65}svg{max-width:100%;display:block}button{transition:background .16s,box-shadow .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}.rq-icon{display:inline-block;vertical-align:middle;width:22px!important;height:22px!important;min-height:0!important;flex-shrink:0;overflow:visible}.rq-icon path{vector-effect:non-scaling-stroke}[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:15px 28px;min-height:86px;background:#fffcf4;border-bottom:1px solid var(--line);position:relative;z-index:10}.brand{display:flex;align-items:center;gap:12px;font:750 20px/1.05 var(--serif);white-space:nowrap}.brand img{width:46px;height:46px;filter:none}.brand-bottom{display:block;color:#276c71}.brand-star{margin-left:7px;color:#bf853b}.brand-star .rq-icon{width:16px!important;height:16px!important}.header>nav{display:flex;gap:6px;min-width:0}.nav-item{border:0;background:transparent;border-radius:12px;padding:12px 14px;min-height:46px;color:#536b76;font-size:15px;font-weight:650;display:inline-flex;align-items:center;gap:7px}.nav-item.active{color:#235d67;background:#e4eeea}.nav-item span{margin:0}.profile{display:flex;align-items:center;gap:12px;margin-left:auto}.profile-rating-button{display:flex;align-items:center;gap:9px;text-align:left;padding:7px 12px;min-height:44px;background:#f5efdf;border:1px solid #e4d3ab;border-radius:12px;color:#795a31}.profile-medal{color:#b08534}.profile strong{font-size:19px;line-height:1.15;letter-spacing:0;font-variant-numeric:tabular-nums}.profile small{display:block;font-size:12px;line-height:1.3;color:#74654a}.profile-avatar{width:46px;height:46px;margin:0;padding:0;background:none;border:0;border-radius:50%;display:grid;place-items:center}.game-language-menu{order:5;flex-shrink:0}.header .game-language-menu summary{min-height:44px;font-size:14px}.header .game-language-menu nav a{min-height:44px;font-size:15px}
main{width:100%;max-width:1640px;flex:1;min-height:0;padding:0 28px;margin:0 auto;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.intro{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:27px 0 24px}.eyebrow,.tiny-label{font-size:12px;font-weight:750;letter-spacing:1.25px;color:#5f7d7f;line-height:1.5}.eyebrow{display:flex;align-items:center;gap:8px}.eyebrow>span{width:6px;height:6px;background:#c28b40;border-radius:50%}h1{margin:11px 0 12px}.intro p{font-size:16px;line-height:1.6;color:var(--muted)}.intro-note{display:flex;align-items:center;gap:12px;font-size:16px;line-height:1.55;color:#53717b;flex-shrink:0}.intro-note>span{width:50px;height:50px;border:1px solid #c4d4d0;background:#fdf9eb;border-radius:16px;color:#b17f31;display:grid;place-items:center}.intro-note>span .rq-icon{width:31px!important;height:31px!important}.intro-note strong{font-weight:750}.lobby-layout{display:grid;grid-template-columns:390px minmax(0,1fr);gap:22px;max-width:1440px;margin:0 auto 26px;align-items:stretch}.lobby-card{padding:28px;border:1px solid #d6dfd5;border-radius:24px;background:#fffdf5;box-shadow:0 5px 0 #e1e6d9;min-width:0}.lobby-card h2{font-size:29px;margin:10px 0 13px}.muted{color:var(--muted);font-size:16px}.small{font-size:14px}label{display:block;color:#405d66;font-size:15px;font-weight:650;margin:18px 0 7px}input,select{width:100%;min-height:48px;background:#fffef8;border:1px solid #c8d5d1;border-radius:11px;padding:11px 13px;color:var(--ink);min-width:0}select{cursor:pointer}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:47px;border:1px solid #c5d3ce;border-radius:12px;padding:12px 18px;font-size:15px;font-weight:700;line-height:1.4;background:#fffdf5;color:#345d65}.primary{color:#fff9e9;background:linear-gradient(165deg,#3c7e85,#275866);border-color:#285c66;box-shadow:0 4px 0 #1d424e,0 7px 15px #1c4b6018}.primary:hover:not(:disabled){background:#397581;box-shadow:0 4px 0 #1d424e,0 8px 20px #1c4b6029}.secondary{background:#e8efdf;border-color:#c2d0b8;box-shadow:0 3px 0 #d4ddc7;color:#426849}.wide{width:100%}.journey-card #quickPlay{margin-top:14px;justify-content:space-between}.under-button,.capacity-hint{font-size:13px;color:#5a6c71;line-height:1.5;margin-top:11px}.capacity-hint{min-height:40px;margin-bottom:12px}.divider{display:flex;align-items:center;gap:10px;margin:25px 0 16px;color:#6e7d77;font-size:11px;font-weight:650;letter-spacing:.8px}.divider:before,.divider:after{content:"";height:1px;background:#dae1d5;flex:1}.divider span{white-space:nowrap}.join-row{display:flex;gap:9px;margin-top:14px}.join-row input{flex:1;text-transform:uppercase;letter-spacing:1px}.icon-button{width:48px;flex-shrink:0;padding:10px}.little-note{display:flex;align-items:center;gap:13px;border-top:1px solid #e0e5d6;padding-top:20px;margin-top:22px;color:#415f58;font-size:16px;font-weight:700}.little-note>span{color:#b38f3e}.little-note .rq-icon{width:34px!important;height:34px!important}.little-note small{display:block;font-size:13px;font-weight:400;color:#64756c;line-height:1.6;margin-top:4px}
.rooms-card{display:flex;flex-direction:column;overflow:hidden;position:relative;background:linear-gradient(160deg,#fffdf5,#f6f2e4)}.rooms-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.room-count{width:40px;height:40px;display:grid;place-items:center;border:1px solid #d5ddc6;border-radius:50%;color:#5d7c52;background:#edf1e3;font-size:17px}.rooms{display:grid;gap:10px;margin:20px 0 0;max-height:330px;overflow:auto;overscroll-behavior:contain}.rooms-empty{padding:22px;border:1px dashed #b8c8ba;border-radius:15px;text-align:center;color:#5c756b;font-size:16px;background:#fafaf0}.room-item{width:100%;min-width:0;display:flex;align-items:center;gap:13px;text-align:left;padding:15px;border:1px solid #d6dfce;border-radius:14px;background:#fffcf1;color:var(--ink);box-shadow:0 3px 0 #e5e8d8}.room-item-icon{width:40px;height:40px;display:grid;place-items:center;background:#eee7cc;color:#a17634;border-radius:12px;flex-shrink:0}.room-item-icon .rq-icon{width:26px!important;height:26px!important}.room-item-details{min-width:0;flex:1}.room-item-details b{display:block;font-size:17px}.room-item-details small{display:block;font-size:13px;color:#5e746e;line-height:1.5;margin-top:4px}.room-item-join{font-size:14px;font-weight:700;flex-shrink:0;color:#35707b}.rooms-note{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:auto;padding-top:25px;position:relative}.rooms-note>span{display:none}.rooms-note p{font:750 23px/1.3 var(--serif);color:#476a71;margin-top:12px}.rooms-note em{font-style:normal;color:#aa7736}.rooms-note>small{font-size:13px;color:#596f6c;margin:10px 0 2px}.lobby-atlas{width:100%;max-width:650px;max-height:290px;filter:drop-shadow(0 6px 0 #a3b4a31f)}#lobbyIllustration{width:100%;padding:0 8px}.feature-strip{display:flex;justify-content:center;gap:45px;padding:10px 12px 30px}.feature-strip>div{display:flex;align-items:center;gap:12px;min-width:0}.feature-strip>div>span{color:#b18538;background:#fffaf0;border:1px solid #ded6be;width:47px;height:47px;border-radius:14px;display:grid;place-items:center;flex-shrink:0}.feature-strip b{display:block;font-size:17px;font-weight:700}.feature-strip small{display:block;font-size:13px;color:#5f736f;line-height:1.5;margin-top:3px}footer{display:flex;justify-content:space-between;gap:16px;flex:0 0 auto;font-size:11px;padding:9px 28px;color:#667c76;border-top:1px solid var(--line)}footer i{display:inline-flex;margin:0 7px;color:#aa8439}footer i .rq-icon{width:12px!important;height:12px!important}
/* The live map takes the space; auxiliary panels can scroll independently. */
.in-room .intro{padding:12px 0 13px;flex-shrink:0}.in-room .intro .eyebrow,.in-room .intro-note{display:none}.in-room .intro h1{font-size:25px;line-height:1.2;margin:0 0 5px}.in-room .intro p{font-size:14px}.in-room .feature-strip{display:none}.in-room .game-language-menu{display:none}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;flex:1;min-height:0;margin-bottom:18px}.atlas-card{min-height:0;min-width:0;display:flex;flex-direction:column;border:1px solid #bbcfd0;border-radius:22px;background:#fffdf3;overflow:hidden;box-shadow:0 4px 0 #d7e0d5}.atlas-heading{padding:18px 22px 15px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0}.atlas-heading .tiny-label{font-size:11px}.atlas-heading h2{font-size:22px;margin-top:5px}.atlas-heading h2>span{font:600 12px var(--serif);display:inline-block;color:#4a6f70;border:1px solid #c5d8cc;background:#eaf0df;padding:4px 8px;border-radius:20px;margin-left:8px;letter-spacing:0}.game-goal{font-size:14px;color:#5e746f;line-height:1.5;margin-top:8px;max-width:650px}.round-clock{display:flex;align-items:center;gap:8px;flex-shrink:0;background:#fff2ce;border:1px solid #dbc48a;color:#7b5b2f;padding:9px 13px;border-radius:13px}.round-clock b{font-size:24px;font-weight:750;font-variant-numeric:tabular-nums}.round-clock .rq-icon{width:21px!important;height:21px!important}.map-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden;background:radial-gradient(ellipse at 50% 20%,#e8f3ed,#cddfe2);border-block:1px solid #becfca}.map-stage:after{content:"";position:absolute;inset:14px;pointer-events:none;border:1px solid #7da0a333;border-radius:13px;background:none;z-index:0}#map{width:100%;height:100%;min-height:0;display:block;touch-action:none;user-select:none;position:relative;z-index:1}.map-decoration{fill:#5c7c87;font:600 11px var(--serif);letter-spacing:2px;pointer-events:none}.map-decoration circle,.map-decoration path{fill:none;stroke:#72959a;stroke-width:1.5;opacity:.65}.region{fill:#e5cb92;stroke:#fff8de;stroke-width:1.2;vector-effect:non-scaling-stroke;transition:fill .35s,stroke .2s;cursor:pointer;outline:none}.region:nth-child(3n){fill:#d7c58e}.region:nth-child(5n){fill:#ebd6a9}.region.owned{stroke:#fff6d6;stroke-width:1.4}.region.reachable{stroke:#9b702e;stroke-width:2;stroke-dasharray:4 3}.region:hover,.region.selected,.region:focus-visible{filter:brightness(1.06);outline:none;stroke:#744d20;stroke-width:2.4}.region.reachable.selected{stroke:#9b5c22;stroke-dasharray:none;stroke-width:3}.region.fighting{stroke:#edac48;stroke-width:3;animation:battle-border 1.3s ease-in-out infinite}.marker{pointer-events:none}.marker>circle{fill:none;stroke-width:3}.map-banner{stroke-linejoin:round}.battle-marker{pointer-events:none;color:#a85d34}.battle-marker>circle{fill:#fff4d5;stroke:#c18531;stroke-width:2;animation:battle-ring 1.6s ease-in-out infinite}.battle-swords{overflow:visible;animation:swords 1.15s ease-in-out infinite;transform-origin:center;transform-box:fill-box}.sea-route{fill:none;stroke:#658a94;stroke-width:1.5;stroke-dasharray:4 5;pointer-events:none}.map-stage .cosmetic-badge{overflow:visible;min-height:0!important}.map-controls{position:absolute;right:18px;bottom:18px;z-index:3;border:1px solid #a7bfc1;border-radius:13px;background:#fffcf0;overflow:hidden;box-shadow:0 4px 15px #28465912;display:flex;flex-direction:column}.map-controls button{width:44px;height:44px;background:#fffdf2;border:0;padding:10px;color:#3d656f}.map-controls button+button{border-top:1px solid #d8e0d3}.map-hint{position:absolute;bottom:18px;left:18px;max-width:calc(100% - 95px);padding:7px 11px;background:#fdfbefdf;border:1px solid #d1d9c9;border-radius:9px;font-size:14px;color:#476268;z-index:2;line-height:1.45;pointer-events:none}.map-tooltip{position:absolute;z-index:5;pointer-events:none;background:#24475a;color:#fff8e4;padding:7px 10px;max-width:235px;font-size:14px;border-radius:8px;box-shadow:0 5px 12px #1f3a4c22}.atlas-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:13px 18px;gap:14px;background:#fffdf3}.legend{display:flex;flex-wrap:wrap;gap:9px 15px;font-size:13px;color:#526d73}.legend>span{display:flex;align-items:center;gap:6px}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#b1bd8c}.dot.own{background:#c67847}.dot.neutral{background:#d7c58e}.dot.fight{background:#e9ad42}.dot.guard{background:#5b94aa;border-radius:2px}.map-scale{font-size:10px;letter-spacing:1px;color:#72867c}.map-action{position:absolute;z-index:5;width:290px;max-width:calc(100% - 24px);border:1px solid #c4a368;border-radius:16px;background:#fffaf0;padding:20px;box-shadow:0 12px 30px #224a5c30}.map-action h3{font:750 21px/1.25 var(--serif);padding-right:25px;color:#2c4d60}.map-action p{font-size:15px;color:#5a6c6e;line-height:1.55;margin:9px 0 16px}.map-action .button{min-height:47px;font-size:15px;padding:10px 12px}.map-action-close{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:#ede9dc;color:#49626a;font-size:22px}.map-action-close .rq-icon{width:18px!important;height:18px!important}.map-stage.dragging,.map-stage.dragging .region{cursor:grabbing}.side-card{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px;border:1px solid #d1dbce;border-radius:22px;background:#fffcf3;box-shadow:0 4px 0 #dce3d3}.room-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:13px}.room-top .tiny-label{font-size:11px}.text-button{border:0;background:transparent;color:#446e79;min-height:36px;padding:5px 0;font-size:14px;text-decoration:underline;text-underline-offset:3px;line-height:1.4}.side-card h2{font-size:25px;margin-bottom:9px;overflow-wrap:anywhere}.side-card .muted.small{font-size:14px}.code-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 13px;margin:15px 0 20px;border:1px dashed #a8b7a3;border-radius:11px;background:#f0f2e2;color:#406575}.code-chip span{font-size:12px;font-weight:650}.code-chip b{font-size:22px;letter-spacing:3px}.players{display:grid;gap:17px;margin-top:24px}.player{display:flex;align-items:center;gap:10px;min-width:0;position:relative;padding-left:8px;border-left:3px solid var(--player-color)}.player-avatar{width:43px;height:43px;flex-shrink:0;display:block}.player-main{flex:1;min-width:0}.player-name{font-size:15px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}.player-detail{font-size:12px;color:#5c726f;margin-top:5px}.player-score{font-size:19px;color:#406a6c;font-weight:750;font-variant-numeric:tabular-nums}.player-score small{display:block;font-size:11px;color:#62796f;text-align:right;font-weight:500}.player-bar{height:4px;background:#e3e9da;border-radius:4px;margin-top:7px;overflow:hidden}.player-bar>span{display:block;height:100%;background:var(--player-color);transition:width .4s}#waiting{margin-top:22px}#waiting .button{margin-top:15px}.events{display:grid;gap:12px;max-height:170px;overflow:auto;overscroll-behavior:contain}.event{padding-left:10px;border-left:2px solid #cbd5c4;font-size:13px;color:#5b706b;line-height:1.6}.event.capture{border-color:#bd8a43}.pause-layer{position:absolute;inset:0;z-index:7;background:#e4eee3e8;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font:750 30px var(--serif);padding:24px;color:#345e63}.pause-layer small{font-size:16px;line-height:1.6;font-weight:400;margin-top:14px;color:#536f72}.shield-marker{pointer-events:none}.shield-icon{fill:#377d8f;stroke:#fff3d4;stroke-width:2;filter:drop-shadow(0 3px 0 #1c435838)}.shield-detail{fill:none;stroke:#addce0;stroke-width:1;opacity:.8}.shield-countdown{text-anchor:middle;fill:#fff8e5;font:750 19px var(--serif)}
/* Onboarding remains part of the map rather than hiding the first action. */
.tutorial-card{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border-top:1px solid #d9cb9d;background:#faf0cf}.tutorial-copy{min-width:0}.tutorial-copy small{font-size:12px;font-weight:750;letter-spacing:.6px;color:#846230}.tutorial-copy h3{font:750 23px/1.25 var(--serif);margin:5px 0}.tutorial-copy p{font-size:15px;color:#536b6e;line-height:1.6;max-width:650px}.tutorial-actions{display:flex;flex-direction:column;gap:9px;flex-shrink:0}.tutorial-actions .button{font-size:15px;min-height:44px}.tutorial-actions .text-button{font-size:13px}.tutorial-marker{pointer-events:none}.tutorial-marker>circle{fill:none;stroke:#bd702e;stroke-width:3;animation:tutorial-pulse 1.4s infinite}.tutorial-marker>rect{fill:#fff4d6;stroke:#c7a562;stroke-width:1}.tutorial-marker>text{font:750 13px var(--serif);text-anchor:middle;fill:#77502d}.region.tutorial-focus{stroke:#c17b28;stroke-width:3.3;animation:tutorial-pulse 1.5s ease-in-out infinite}.tutorial-mode .map-hint{display:none}.battle-tutorial{padding:12px 15px;background:#f8edca;border:1px solid #d7c48a;border-radius:12px;margin:15px 0;color:#715e34;font-size:15px;line-height:1.55}
/* Questions and all other dialogs use the same readable game controls. */
dialog{width:min(610px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:32px;border:1px solid #c8d5d0;border-radius:24px;background:#fffdf4;color:var(--ink);box-shadow:0 22px 80px #203b4c38}dialog::backdrop{background:#1c374b8c;backdrop-filter:blur(3px)}.close-dialog{position:absolute;z-index:5;right:13px;top:13px;width:44px;height:44px;display:grid;place-items:center;border:1px solid #d4ddd3;border-radius:50%;background:#edf1e5;color:#3f636a;padding:10px}.battle-dialog{width:min(700px,calc(100vw - 24px))}.battle-header{display:flex;align-items:center;gap:14px;margin-bottom:20px}.battle-emblem{width:54px;height:54px;border-radius:17px;background:#efe4c7;color:#a97836;display:grid;place-items:center;flex-shrink:0}.battle-emblem .rq-icon{width:32px!important;height:32px!important}.battle-header h2{font:750 25px/1.25 var(--serif);margin-top:5px}.battle-header .tiny-label{font-size:11px}.battle-timer{margin-left:auto;min-width:54px;height:54px;display:grid;place-items:center;background:#fff1cd;border:1px solid #ddc48e;border-radius:16px;color:#8a6233;font-size:25px;font-weight:750;font-variant-numeric:tabular-nums}.question-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 15px;font-size:14px;color:#60716e}.question-meta>span:first-child{padding:6px 12px;border:1px solid #c7d8ca;background:#e7efdf;color:#446c59;border-radius:20px}.question-meta>span:last-child{font-size:13px}#questionText{font:750 26px/1.45 var(--serif);margin-bottom:22px;color:#263f52;overflow-wrap:anywhere}.answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer{min-width:0;min-height:65px;width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border:1px solid #c8d5d2;border-radius:14px;background:#f0f4eb;box-shadow:0 3px 0 #d8e1d3;color:#375b61;font-size:17px;font-weight:600;line-height:1.45}.answer:hover:not(:disabled){background:#e0eeea;border-color:#72a2a4}.answer>span:first-child{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border:1px solid #c3d5ce;border-radius:8px;background:#fffdf3;color:#68817c;font-size:13px;font-weight:700}.answer>span:last-child{overflow-wrap:anywhere}.answer.correct{background:#d2ead2;border-color:#69a16a}.answer.wrong{background:#f6ddd6;border-color:#d29d90}.answer.chosen{border-color:#4d8994;background:#dcebed}.battle-footnote{font-size:14px;line-height:1.55;text-align:center;color:#60746e;margin-top:20px}.duel-progress{display:flex;gap:12px}.duel-side{flex:1;min-width:0;padding:12px;border:1px solid #d5dfd3;background:#eef1e3;border-radius:12px;font-size:15px;color:#55736f}.duel-side>span{display:block;overflow-wrap:anywhere}.duel-side b{display:block;font-size:24px;letter-spacing:5px;line-height:1.4;color:#3b6c72}.prep{margin:15px 0;padding:14px;border:1px solid #e0c48e;border-radius:12px;background:#fff1d3;color:#8b6530;text-align:center;font-size:16px}
#infoContent h2{font-size:30px;margin:9px 30px 22px 0}#infoContent h3{font-size:21px;margin:24px 0 10px}#infoContent p{font-size:16px;color:#5d7273;line-height:1.75;margin:12px 0}#infoContent .small{font-size:14px}.ranking-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:15px;align-items:center;padding:16px 0;border-bottom:1px solid #dae2d5;font-size:17px}.ranking-row>span:first-child{color:#a87a34;font-weight:750}.ranking-row>span:nth-child(2){overflow-wrap:anywhere}.ranking-row strong{color:#346d78}.profile-form{margin:18px 0}.profile-form label{font-size:16px}.profile-form .button{margin-top:14px}.profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.profile-stats>div{padding:18px;background:#edf2e7;border:1px solid #d1dfcd;border-radius:15px}.profile-stats strong{display:block;font-size:27px;color:#2b6e77;font-variant-numeric:tabular-nums}.profile-stats small{display:block;font-size:14px;color:#5e726a;margin-top:6px}#resultDialog{text-align:center;width:min(620px,calc(100vw - 24px))}.result-icon{display:grid;place-items:center;width:84px;height:84px;margin:0 auto 22px;border-radius:24px;background:#f8e6b5;color:#ae7728;animation:reward-in .6s ease-out}.result-icon .rq-icon{width:48px!important;height:48px!important}#resultDialog.defeat .result-icon{background:#e4eae6;color:#6d8187;animation:none}#resultDialog h2{font-size:32px;margin:11px 0 14px}#resultSubtitle{font-size:16px;line-height:1.65}#resultPlayers{margin:24px 0}.result-row{display:flex;justify-content:space-between;gap:18px;text-align:left;padding:14px 0;border-bottom:1px solid #d8e1d3;font-size:16px}.result-row small{display:block;font-size:13px;color:#5f756a;margin-top:5px}.result-row b{font-weight:750}.leave-emblem{display:grid;place-items:center;width:65px;height:65px;background:#e5efdf;color:#32717a;border-radius:19px;margin-bottom:20px}.leave-emblem .rq-icon{width:34px!important;height:34px!important}#leaveDialog h2{font-size:29px;margin:9px 0 15px}#leaveText{font-size:17px;line-height:1.7;color:#516d71}.leave-actions{display:grid;gap:13px;margin-top:25px}.dialog-feedback{padding:13px 15px;background:#e4eee5;border:1px solid #bdd3c3;border-radius:12px;margin:16px 0 0;color:#356b62;font-size:15px;line-height:1.6}.dialog-feedback.error{background:#f9e9df;border-color:#debbae;color:#98473f}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;max-width:min(600px,calc(100vw - 24px));font-size:16px;line-height:1.6;background:#284f62;color:#fff8e5;border:1px solid #7298a1;padding:14px 22px;border-radius:15px;box-shadow:0 12px 30px #203b4b2b}.toast.error{background:#935443;border-color:#c68a72}
/* The existing cosmetic catalogue keeps its billing, now with the atlas theme. */
.shop-dialog{background:#fffdf4;border-color:#cbd8d1;border-radius:24px}.shop-heading{background:#fffdf4;border-color:#d4ded2;padding:25px 28px;gap:18px}.shop-heading h2{font:750 27px/1.3 var(--serif);margin-top:8px}.shop-close{width:44px;height:44px;min-width:44px;padding:10px;display:grid;place-items:center;background:#edf1e5;border:1px solid #d1ddd0;border-radius:50%;color:#406775}.shop-layout{grid-template-columns:270px minmax(0,1fr);gap:24px;padding:25px 28px}.shop-showcase{padding:20px;background:#e6eee8;border:1px solid #ccd9ca;border-radius:18px}.shop-showcase h3{font:750 23px/1.3 var(--serif)}.shop-showcase>p{font-size:15px;color:#55716b;line-height:1.65}.shop-showcase .shop-mode{font-size:13px;color:#5c756e}.shop-showcase .shop-fair{font:650 16px/1.55 var(--serif);color:#3b6c70;border-color:#c5d4c7}.shop-wallet{border-color:#d2bc84;background:#f6e9bf;color:#815e2c}.shop-wallet strong{font-size:25px}.shop-wallet small{font-size:13px}.shop-coin .rq-icon{width:31px!important;height:31px!important}.shop-tabs{gap:7px;flex-wrap:wrap}.shop-tab{min-height:44px;padding:10px 15px;font-size:15px;border-radius:12px}.shop-tab.active{background:#2c6e77;color:#fff7df;border-color:#2c6e77}.shop-category-heading p{font-size:15px;color:#5f746b}.shop-products{gap:14px}.shop-product{padding:16px;border-color:#d1ddce;border-radius:17px;background:#fffdf4}.shop-product h3{font:750 20px/1.25 var(--serif)}.shop-product>p{font-size:14px;line-height:1.65;color:#5d716b}.shop-product-tag{font-size:12px}.shop-art-hint{font-size:13px}.shop-product-art{border-radius:12px;background:#ecf0df}.shop-art-symbol .rq-icon{width:64px!important;height:64px!important}.shop-buy{font-size:15px!important;min-height:46px}.shop-status{font-size:15px;line-height:1.6}.shop-landscape{width:100%;height:auto}
@keyframes swords{0%,100%{transform:rotate(-9deg)}50%{transform:rotate(9deg)}}@keyframes battle-ring{50%{stroke-width:3;stroke-opacity:.6}}@keyframes battle-border{50%{stroke:#fff3b5}}@keyframes tutorial-pulse{50%{stroke-opacity:.45}}@keyframes reward-in{0%{transform:translateY(10px) scale(.7);opacity:0}65%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
@media(min-width:1700px){.header{padding-inline:max(28px,calc((100vw - 1580px)/2))}.game-layout{grid-template-columns:minmax(0,1fr) 330px}.side-card{padding:25px}.player-name{font-size:17px}.player-detail{font-size:14px}.event{font-size:15px}.legend{font-size:14px}.atlas-heading h2{font-size:25px}.game-goal{font-size:16px}.in-room .intro h1{font-size:29px}.map-hint{font-size:15px}}
@media(max-width:1150px){.header{padding:14px 20px;gap:13px}.brand{font-size:17px}.brand img{width:40px;height:40px}.nav-item{font-size:14px;padding:11px 9px}.header>nav{gap:2px}.profile-medal{display:none}.profile-rating-button{padding:6px 9px}.profile{gap:7px}.profile strong{font-size:17px}.game-layout{grid-template-columns:minmax(0,1fr) 260px;gap:12px}.side-card{padding:16px}.atlas-heading{padding:14px 17px}.atlas-heading h2{font-size:20px}.atlas-heading h2>span{display:none}.map-scale{display:none}.intro{padding-top:22px}main{padding-inline:20px}.lobby-layout{grid-template-columns:350px minmax(0,1fr);gap:17px}.lobby-card{padding:24px}.lobby-card h2{font-size:26px}.rooms-note p{font-size:21px}.feature-strip{gap:25px}.feature-strip b{font-size:16px}.feature-strip small{font-size:12px}.shop-layout{grid-template-columns:230px minmax(0,1fr);gap:18px;padding:20px}.shop-products{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.header{flex-wrap:wrap;gap:8px 13px;padding:12px 18px}.header>nav{order:5;width:100%;justify-content:center;gap:12px}.game-language-menu{order:4}.profile{margin-left:auto}.brand-star{display:none}.intro-note{display:none}.lobby-layout{grid-template-columns:320px minmax(0,1fr)}.lobby-card{padding:20px}.lobby-card h2{font-size:24px}.muted{font-size:15px}.rooms-note p{font-size:20px}.lobby-atlas{min-height:180px}.feature-strip{gap:18px}.feature-strip small{font-size:12px}.game-layout{grid-template-columns:minmax(0,1fr) 225px}.side-card{padding:14px}.player-avatar{width:33px;height:33px}.player-name{font-size:14px}.player-detail{font-size:12px}.player-score{font-size:16px}.atlas-heading .tiny-label{display:none}.atlas-heading h2{font-size:19px}.game-goal{font-size:13px}.atlas-footer{padding:10px 12px}.legend{font-size:12px;gap:6px 10px}.map-hint{font-size:12px;left:12px;bottom:12px}.map-controls{right:12px;bottom:12px}.in-room .intro{padding-block:10px}.in-room .intro h1{font-size:22px}.in-room .intro p{font-size:13px}}
@media(max-width:720px) and (orientation:portrait){
 .header{padding:11px 12px;gap:8px;flex-wrap:wrap;min-height:0}.brand{font-size:16px;gap:8px}.brand img{width:35px;height:35px}.profile{gap:4px}.profile-rating-button{padding:5px 8px;min-height:40px}.profile strong{font-size:16px}.profile small{font-size:10px}.profile-avatar{width:38px;height:38px}.header .game-language-menu{margin-left:auto}.header .game-language-menu summary{padding:8px;font-size:13px;min-height:40px}.header>nav{width:100%;order:6;gap:0;justify-content:space-between}.nav-item{min-height:42px;font-size:13px;padding:8px;flex:1;justify-content:center}.nav-item .rq-icon{width:17px!important;height:17px!important}.header #rulesNav>span{display:none}main{padding:0 12px}.intro{padding:24px 2px 20px}.eyebrow{font-size:11px;letter-spacing:.6px}.intro h1{font-size:32px;margin:10px 0 12px}.intro h1 em{display:block}.intro p{font-size:16px;line-height:1.65}.lobby-layout{display:flex;flex-direction:column;gap:18px;margin:0 0 24px}.lobby-card{padding:22px;border-radius:21px}.lobby-card h2{font-size:27px}.lobby-card .muted{font-size:16px}.lobby-card .muted br{display:none}label{font-size:15px}.capacity-hint{min-height:0;font-size:14px}.under-button{font-size:13px}.divider{font-size:10px;letter-spacing:.6px}.rooms-card{min-height:360px}.rooms-card .rooms{max-height:300px}.rooms-note{padding-top:20px}.rooms-note p{font-size:22px}.lobby-atlas{min-height:0;max-height:200px}.little-note{display:none}.room-item{padding:12px;gap:9px}.room-item-details b{font-size:16px}.room-item-details small{font-size:13px}.room-item-join{font-size:13px}.room-item-icon{width:32px;height:35px}.room-item-icon .rq-icon{width:23px!important;height:23px!important}.feature-strip{display:grid;gap:18px;padding:0 12px 30px}.feature-strip b{font-size:17px}.feature-strip small{font-size:14px}footer{font-size:10px;gap:10px;padding:9px 12px}footer>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}footer i{margin:0 3px}.in-room .header{padding:8px 12px;gap:6px}.in-room .header>nav{gap:2px}.in-room .header .nav-item{min-height:38px;font-size:13px;padding:7px}.in-room .intro{display:none}.in-room .profile-rating-button{display:none}.game-layout{display:flex;flex-direction:column;min-height:calc(100dvh - 160px);height:auto;gap:12px;margin-bottom:16px}.atlas-card{flex-shrink:0;min-height:450px}.atlas-heading{padding:13px 14px;gap:10px;align-items:flex-start}.atlas-heading h2{font-size:19px;margin-top:0}.atlas-heading h2>span{display:none}.game-goal{font-size:13px;margin-top:6px;max-width:250px}.round-clock{padding:8px;border-radius:10px;gap:4px}.round-clock .rq-icon{display:none}.round-clock b{font-size:22px}.map-stage{flex:none;height:clamp(280px,46dvh,430px);min-height:0}.map-stage:after{inset:8px;border-radius:8px}.map-hint{left:9px;bottom:9px;max-width:calc(100% - 66px);padding:6px 8px;font-size:12px}.map-controls{right:8px;bottom:8px}.map-controls button{width:40px;height:40px;padding:9px}.atlas-footer{padding:11px 12px}.legend{font-size:12px;gap:7px 12px}.map-action{padding:16px;width:255px;border-radius:14px}.map-action h3{font-size:19px}.map-action p{font-size:14px;margin:8px 0 12px;line-height:1.5}.map-action .button{font-size:15px;min-height:46px}.side-card{padding:18px;border-radius:20px;overflow:visible}.side-card h2{font-size:23px}.players{grid-template-columns:1fr 1fr;gap:16px 12px;margin-top:20px}.player{gap:7px;padding-left:6px}.player-avatar{width:29px;height:29px}.player-name{font-size:13px}.player-detail{font-size:11px;line-height:1.4}.player-score{font-size:16px}.player-score small{font-size:10px}.events{max-height:150px}.event{font-size:13px}.code-chip{margin-block:13px}.room-top{margin-bottom:9px}.room-top .tiny-label{font-size:11px}.text-button{font-size:14px}.tutorial-card{padding:14px;gap:12px;flex-direction:column;align-items:stretch}.tutorial-copy small{font-size:11px}.tutorial-copy h3{font-size:20px}.tutorial-copy p{font-size:15px;line-height:1.6}.tutorial-actions{display:flex;flex-direction:column;gap:8px}.tutorial-actions .button{font-size:15px;min-height:45px}.tutorial-actions .text-button{font-size:14px;min-height:35px}.tutorial-marker>text{font-size:13px}
 dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:23px 18px;border-radius:21px}.battle-header{gap:9px;margin-bottom:16px}.battle-emblem{width:41px;height:44px;border-radius:12px}.battle-emblem .rq-icon{width:26px!important;height:26px!important}.battle-header h2{font-size:19px;line-height:1.3;margin-top:4px}.battle-header .tiny-label{font-size:10px;letter-spacing:.5px}.battle-timer{width:43px;height:44px;min-width:43px;font-size:23px;border-radius:12px}.question-meta{font-size:13px;margin:16px 0 13px;gap:6px}.question-meta>span:first-child{font-size:12px;padding:5px 9px}.question-meta>span:last-child{font-size:12px}#questionText{font-size:22px;line-height:1.4;margin-bottom:18px}.answers{grid-template-columns:1fr;gap:10px}.answer{font-size:16px;min-height:56px;padding:12px;gap:10px}.answer>span:first-child{width:25px;height:25px;font-size:12px}.battle-footnote{font-size:13px;margin-top:17px}.duel-progress{gap:9px}.duel-side{font-size:14px;padding:9px}.duel-side b{font-size:23px}.battle-tutorial{font-size:14px;padding:10px;line-height:1.5}.prep{font-size:15px;padding:11px}#infoContent h2{font-size:28px;margin-bottom:18px}#infoContent h3{font-size:20px}#infoContent p{font-size:16px}.ranking-row{font-size:15px;gap:11px;padding:14px 0}.profile-stats{gap:9px}.profile-stats>div{padding:15px}.profile-stats strong{font-size:24px}.profile-stats small{font-size:13px}.profile-form .button{width:100%}#resultDialog h2{font-size:28px}.result-icon{width:68px;height:68px;margin-bottom:17px}.result-icon .rq-icon{width:39px!important;height:39px!important}#resultSubtitle{font-size:16px}.result-row{font-size:15px}.result-row small{font-size:13px}#leaveDialog h2{font-size:26px}#leaveText{font-size:16px}.toast{font-size:15px;padding:12px 16px}.shop-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.shop-heading{padding:19px 16px;gap:10px}.shop-heading h2{font-size:23px}.shop-heading .tiny-label{font-size:10px}.shop-close{width:40px;height:40px;min-width:40px;padding:9px}.shop-layout{display:flex;flex-direction:column;padding:16px;gap:20px}.shop-showcase{width:100%;padding:16px;display:grid;grid-template-columns:85px minmax(0,1fr);gap:8px 13px;position:static}.shop-preview-art{grid-column:1;grid-row:1/4;align-self:center;width:85px}.shop-showcase h3{font-size:20px}.shop-showcase>p{font-size:14px}.shop-showcase .shop-wallet{grid-column:2;padding:8px 10px;margin:4px 0}.shop-showcase .shop-mode,.shop-showcase .shop-fair{grid-column:1/-1;font-size:13px;margin-top:6px}.shop-wallet strong{font-size:23px}.shop-wallet small{font-size:12px}.shop-tabs{gap:6px}.shop-tab{font-size:14px;min-height:44px;padding:9px 12px}.shop-category-heading{flex-wrap:wrap;gap:5px}.shop-category-heading p{font-size:14px}.shop-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-product{padding:11px}.shop-product h3{font-size:18px;overflow-wrap:anywhere}.shop-product>p{font-size:14px}.shop-product-art{height:122px}.shop-buy{font-size:14px!important;padding:10px 7px!important}.shop-product-tag{font-size:11px}.shop-art-hint{font-size:12px}.shop-art-symbol .rq-icon{width:54px!important;height:54px!important}
}
@media(max-width:380px) and (orientation:portrait){.header .profile-rating-button{display:none}.header>nav{gap:0}.nav-item{font-size:12px;padding:8px 6px}.brand{font-size:15px}.header .game-language-menu summary{font-size:12px;min-height:39px}.profile-avatar{width:34px;height:34px}.lobby-card{padding:18px}.lobby-card h2{font-size:25px}.rooms-heading .tiny-label{font-size:10px}.room-item-icon{display:none}.players{grid-template-columns:1fr}.player-avatar{width:38px;height:38px}.player-name{font-size:15px}.player-detail{font-size:13px}.map-action{width:240px}.map-stage{height:300px}.shop-products{grid-template-columns:1fr}.shop-product{display:flex;padding:16px}.shop-product-art{height:145px;margin-bottom:14px}.shop-product h3{font-size:20px}.shop-product>p{font-size:15px}.shop-buy{font-size:15px!important}}
@media(max-height:540px) and (orientation:landscape){.header{min-height:54px;padding:8px 14px;flex-wrap:nowrap;gap:10px}.brand{font-size:14px}.brand img{width:32px;height:32px}.brand-star{display:none}.header>nav{order:initial;width:auto;gap:2px;margin:auto}.nav-item{font-size:12px;min-height:37px;padding:7px}.profile-rating-button{display:none}.profile-avatar{width:35px;height:35px}.header .game-language-menu summary{min-height:37px;font-size:12px;padding:6px}.header .game-language-menu{order:initial}.in-room .intro{display:none}.game-layout{grid-template-columns:minmax(0,1fr) 200px;gap:10px;margin-bottom:8px}.atlas-card{border-radius:15px}.atlas-heading{padding:8px 12px;gap:8px}.atlas-heading h2{font-size:16px;margin:0}.game-goal{font-size:12px;margin-top:4px;line-height:1.4}.round-clock{padding:6px 8px;border-radius:9px}.round-clock b{font-size:20px}.round-clock .rq-icon{display:none}.atlas-footer{padding:7px 10px}.legend{font-size:11px;gap:5px 9px}.map-hint{font-size:11px;left:7px;bottom:7px;padding:4px 7px}.map-controls{right:7px;bottom:7px;border-radius:9px}.map-controls button{width:33px;height:33px;padding:7px}.map-controls .rq-icon{width:18px!important;height:18px!important}.side-card{padding:12px;border-radius:15px}.side-card h2{font-size:19px}.room-top .tiny-label{font-size:10px}.text-button{font-size:12px}.players{gap:13px;margin-top:16px}.player-avatar{width:29px;height:29px}.player-name{font-size:12px}.player-detail{font-size:11px}.player-score{font-size:15px}.player-score small{font-size:10px}.events{max-height:85px}.event{font-size:12px}.side-card .divider{margin-top:18px}.map-action{width:260px;max-height:calc(100% - 16px);overflow:auto;padding:14px}.map-action h3{font-size:17px}.map-action p{font-size:13px;margin:7px 0 12px}.map-action .button{font-size:14px;min-height:41px;padding:8px}.map-action-close{width:30px;height:30px}.tutorial-card{padding:9px 12px;gap:10px}.tutorial-copy small{font-size:10px}.tutorial-copy h3{font-size:17px;margin:3px 0}.tutorial-copy p{font-size:12px;line-height:1.5}.tutorial-actions{gap:3px}.tutorial-actions .button{font-size:12px;min-height:36px;padding:8px 10px}.tutorial-actions .text-button{font-size:11px;min-height:28px}footer{display:none}dialog{max-height:calc(100dvh - 16px);padding:22px}.battle-dialog{width:min(730px,calc(100vw - 24px))}.battle-header{margin-bottom:12px}.battle-header h2{font-size:21px}.battle-emblem{width:42px;height:42px}.battle-timer{height:44px;min-width:44px;font-size:23px}.question-meta{margin:12px 0}.answers{grid-template-columns:1fr 1fr}#questionText{font-size:22px;margin-bottom:16px}.answer{font-size:16px;min-height:55px;padding:11px}.battle-footnote{font-size:13px;margin-top:15px}.battle-tutorial{font-size:14px}.shop-layout{grid-template-columns:200px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Small phones keep the four answers reachable before the optional tutorial note. */
@media(max-width:380px) and (orientation:portrait){#battleDialog{padding:18px 15px}.battle-header{margin-bottom:12px}.battle-header h2{font-size:18px}.question-meta{margin:12px 0 10px}#questionText{font-size:20px;margin-bottom:14px}.answers{gap:8px}.answer{min-height:49px;padding:10px;line-height:1.4}.battle-tutorial{font-size:13px;padding:10px;line-height:1.5;margin-top:14px}.battle-footnote{font-size:12px;margin-top:12px}}
@media(max-width:720px){.map-controls button{width:44px;height:44px}.profile-avatar{min-width:44px;min-height:44px}}

.shop-category-heading .text-button{font-size:14px;min-height:44px}.shop-product-tag{color:#536568}.shop-art-hint{color:#52666b;opacity:1}.shop-product-art:hover .shop-art-hint,.shop-product-art:focus-visible .shop-art-hint{color:#294d63}
/* Every view has a viewport budget; explicit pages replace scroll containers. */
html,body{height:100%;min-height:0;min-width:0;overflow:visible}body{height:100dvh;display:flex;flex-direction:column}.header{height:58px;min-height:58px;padding:0 22px;gap:12px;flex-shrink:0}.header>.brand{flex:1;min-width:0;max-width:220px}.brand>span{font-size:21px;line-height:1.05;min-width:0}.brand .brand-bottom{font-size:21px;display:inline;margin-left:4px}.brand>img{width:36px;height:36px;flex-shrink:0}.brand-star{display:none}.header>.profile{margin-left:auto;gap:8px;flex-shrink:0}.header [data-igrodvor-account-slot]{display:flex;min-width:0;order:9}.game-language-menu{flex-shrink:0}.viewport-header-menu{position:relative;flex:0 0 auto}.viewport-header-menu>summary{width:32px;height:32px;border:1px solid #d2dbc3;border-radius:10px;background:#f8f7ed;display:grid;place-items:center;font-size:18px;cursor:pointer;list-style:none}.viewport-header-menu>summary::-webkit-details-marker{display:none}.viewport-header-menu>nav{display:flex;gap:6px}.viewport-header-menu .nav-item{font-size:12px;padding:6px 9px;min-height:32px;white-space:nowrap}.viewport-header-menu:not([open])>nav{display:none}.viewport-header-menu[open]>nav{display:flex}.profile-rating-button{min-height:32px;padding:3px 6px;font-size:12px}.profile-rating-button strong{font-size:15px}.profile-rating-button small{font-size:9px}.profile-rating-button .profile-medal{height:24px;width:24px}.profile-avatar{height:34px;width:34px;min-width:34px;font-size:14px}.header .game-language-menu summary{font-size:12px;padding:6px 8px}.header .game-language-menu>nav{font-size:12px}.header .game-language-menu>nav a{font-size:12px;padding:6px 10px}main{flex:1;min-height:0;width:100%;max-width:1440px;margin:0 auto;padding:8px 22px 12px;display:flex;flex-direction:column;gap:9px}.viewport-lobby-tabs{display:flex;gap:8px;height:36px;flex:0 0 36px}.viewport-lobby-tabs button{flex:1;min-width:0;font-size:14px;min-height:34px;padding:5px 12px;border:1px solid #d5ddc6;background:#fffdf4;border-radius:12px;font-weight:700}.viewport-lobby-tabs button[aria-pressed=true]{background:#e3edcd;border-color:#9eb784}.lobby-layout{flex:1;min-height:0;display:block;margin:0;padding:0}.lobby-card{height:100%;min-height:0;max-width:none;padding:14px 18px;border-radius:20px;display:flex;flex-direction:column;gap:8px}.viewport-journey-body{flex:1;min-height:0}.viewport-item{display:flow-root}.journey-card h2{font-size:26px;margin:2px 0 8px}.journey-card>.tiny-label,.viewport-item>.tiny-label{font-size:9px;line-height:1.3}.journey-card label{font-size:12px;margin:6px 0 4px;display:block}.journey-card input,.journey-card select{min-height:38px;padding:8px 12px;font-size:14px;margin:0}.journey-card .button{min-height:38px;font-size:14px;padding:8px 14px;margin:7px 0 0}.journey-card .under-button,.journey-card .capacity-hint{font-size:12px;line-height:1.3;margin:6px 0}.journey-card .divider{margin:10px 0 6px;font-size:10px}.join-row{display:flex;gap:8px;margin:10px 0}.join-row input{min-width:0;flex:1}.join-row .button{margin:0;min-width:38px;width:42px;min-height:38px;padding:7px}.rooms-heading{flex-shrink:0;min-height:30px;margin:0}.rooms-heading h2{font-size:25px;margin:0}.rooms-heading .tiny-label{display:none}.room-count{font-size:18px;padding:4px 9px}.rooms{flex:1;min-height:0;max-height:none;overflow:visible;padding:0;margin:0}.room-item{min-height:64px;width:100%;padding:10px;margin-bottom:7px;gap:12px}.room-item-details{min-width:0}.room-item-details b{font-size:14px;line-height:1.2;overflow-wrap:anywhere;white-space:normal}.room-item-details small{font-size:12px;line-height:1.3}.room-item-join{font-size:12px;white-space:nowrap}.room-item-icon{width:32px;height:32px;flex-shrink:0}.rooms-empty{font-size:13px;line-height:1.4;padding:12px;margin:0}.viewport-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 32px;height:32px;font-size:12px}.viewport-pager button{font-size:12px;min-height:30px;padding:5px 10px;background:#e6edd9;border:1px solid #d5dfc7;border-radius:10px}.viewport-pager button:disabled{opacity:.45;cursor:default}.viewport-pager span{white-space:nowrap;font-variant-numeric:tabular-nums}body>footer{display:none}
.game-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:12px;margin:0}.atlas-card{min-height:0;height:100%;display:flex;flex-direction:column;padding:10px;position:relative;overflow:visible}.atlas-heading{flex-shrink:0;display:flex;align-items:center;gap:10px;margin:0 0 6px;min-height:40px}.atlas-heading>div:first-child{flex:1;min-width:0}.atlas-heading .tiny-label{font-size:9px}.atlas-heading h2{font-size:22px;margin:0;line-height:1.15}.atlas-heading h2>span{font-size:11px}.round-clock{min-width:65px;padding:5px 9px;border-radius:11px}.round-clock b{font-size:19px}.round-clock svg{height:19px;width:19px}.map-stage{flex:1;min-height:0;height:auto;max-height:none;position:relative}.map-stage>svg{width:100%;height:100%;display:block;min-height:0}.atlas-footer{min-height:22px;flex-shrink:0;padding:5px 0 0;margin:0}.legend{gap:8px;flex-wrap:wrap}.legend span{font-size:10px;line-height:1.3}.map-scale{display:none}.map-controls{left:8px;bottom:8px;gap:3px}.map-controls button{height:28px;width:28px;padding:5px}.map-hint{font-size:10px;bottom:8px;right:8px;max-width:60%}.map-action{width:min(260px,calc(100% - 24px));padding:10px 12px;border-radius:15px}.map-action h3{font-size:18px;line-height:1.2;margin:0 25px 5px 0}.map-action p{font-size:12px;line-height:1.3;margin:4px 0 8px}.map-action .button{font-size:13px;min-height:34px;padding:6px 10px;margin:0}.viewport-team-button{display:none}.side-card{min-height:0;height:100%;padding:12px;position:relative;overflow:visible;display:flex;flex-direction:column}.viewport-team-close{display:none}.side-card #roomPanel{height:100%;min-height:0;display:flex;flex-direction:column;gap:7px}.viewport-team-body{flex:1;min-height:0}.viewport-team-body>#players,.viewport-team-body>#events{display:contents}.viewport-team-footer{flex-shrink:0}.room-top{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:0 0 6px}.room-top>.tiny-label{font-size:8px}.room-top .text-button{font-size:11px;padding:3px}.side-card h2{font-size:22px;line-height:1.15;margin:5px 0}.side-card #roomSize{font-size:12px;line-height:1.3;margin:4px 0 8px}.code-chip{font-size:11px;padding:5px 8px;min-height:32px;max-width:100%;margin:5px 0 9px}.code-chip b{font-size:16px;letter-spacing:1px}.player{min-height:50px;padding:7px;margin:0 0 6px;gap:8px}.player-avatar{height:31px;width:31px;flex-shrink:0}.player-main{min-width:0}.player-name{font-size:12px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}.player-detail{font-size:10px;line-height:1.25}.player-score{font-size:14px}.player-score small{font-size:9px}.viewport-team-body .divider{font-size:9px;margin:8px 0}.viewport-team-body #events>*{font-size:11px;line-height:1.35;margin:4px 0}.viewport-team-footer #waiting p{font-size:12px;line-height:1.3;margin:4px 0}.viewport-team-footer #startRoom{font-size:13px;min-height:34px;padding:7px 10px;margin:6px 0 0}.tutorial-card{flex-shrink:0;padding:8px 10px;gap:10px;margin:0 0 6px}.tutorial-copy small{font-size:10px}.tutorial-copy h3{font-size:15px;line-height:1.2;margin:2px 0}.tutorial-copy p{font-size:12px;line-height:1.3;margin:3px 0}.tutorial-actions{gap:6px}.tutorial-actions .button{font-size:12px;min-height:32px;padding:5px 9px}.tutorial-actions .text-button{font-size:11px;min-height:28px}
dialog:where(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog){width:min(700px,calc(100vw - 24px));height:min(660px,calc(100dvh - 24px));max-height:none;max-width:none;min-height:0;padding:20px;border-radius:22px;overflow:visible}dialog:where(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog)[open]{display:flex;flex-direction:column;gap:9px}dialog:where(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog) h2{font-size:26px;line-height:1.1;margin:4px 0 10px}dialog:where(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog) p{font-size:13px;line-height:1.4;margin:8px 0}.close-dialog,.shop-close{position:absolute;right:8px;top:7px;width:32px;height:32px;z-index:2}.close-dialog svg,.shop-close svg{width:19px;height:19px}#infoContent{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}.viewport-dialog-heading{flex-shrink:0;padding-right:28px}.viewport-dialog-heading h2{font-size:25px;margin:4px 0}.viewport-dialog-heading .tiny-label{font-size:10px}.viewport-dialog-body{flex:1;min-height:0;min-width:0}.viewport-form{display:contents}.viewport-dialog-footer{flex-shrink:0}.viewport-dialog-body>.profile-form{display:contents}.viewport-dialog-body label{font-size:12px;display:block;margin:7px 0 4px}.viewport-dialog-body input{font-size:14px;padding:8px 12px;min-height:38px;margin:0;width:100%}.viewport-dialog-body .button{font-size:13px;min-height:36px;padding:7px 12px;margin:8px 0}.ranking-row{font-size:13px;padding:8px 10px;min-height:39px;margin:0 0 5px}.ranking-row>span:nth-child(2){overflow-wrap:anywhere;line-height:1.2}.profile-stats{margin:8px 0;gap:8px}.profile-stats strong{font-size:22px}.profile-stats small{font-size:11px;line-height:1.2}.dialog-feedback{font-size:12px!important;line-height:1.3!important;margin:5px 0!important;padding:5px 8px!important}.viewport-dialog-body .intro{margin:0;padding:0;display:contents}.viewport-dialog-body .intro h1{font-size:23px;line-height:1.15;margin:5px 0 12px}.viewport-dialog-body .intro .eyebrow{font-size:9px;line-height:1.2}.viewport-dialog-body .intro-note{font-size:13px;margin:7px 0;display:block;transform:none}.viewport-dialog-body .intro-note>span{height:22px;width:22px;display:inline-flex;vertical-align:middle;margin-right:7px}.viewport-dialog-body .intro-note strong{font-size:15px}.viewport-dialog-body .feature-strip{display:contents}.viewport-dialog-body .feature-strip>div{padding:8px;margin:7px 0;display:flex;gap:10px;align-items:center}.viewport-dialog-body .feature-strip>div>span{height:32px;width:32px;flex-shrink:0}.viewport-dialog-body .feature-strip b{font-size:15px}.viewport-dialog-body .feature-strip small{font-size:12px;line-height:1.3}.viewport-dialog-body .little-note{padding:8px;margin:7px 0}.viewport-dialog-body .little-note small{font-size:12px;line-height:1.3}.viewport-dialog-body .rooms-note{display:grid;grid-template-columns:110px minmax(0,1fr);padding:8px;min-height:0;margin:6px 0;gap:10px}.viewport-dialog-body .rooms-note>div{height:85px;width:110px}.viewport-dialog-body .rooms-note svg{width:100%;height:100%}.viewport-dialog-body .rooms-note>span{display:none}.viewport-dialog-body .rooms-note p{font-size:15px;line-height:1.2;margin:0}.viewport-dialog-body .rooms-note>small{font-size:11px;grid-column:1/3}.viewport-dialog-body .viewport-battle-notes p{font-size:13px;line-height:1.4}
.battle-dialog{width:min(760px,calc(100vw - 24px));padding:14px 18px;gap:6px}.battle-header{flex-shrink:0;min-height:34px;gap:10px;margin:0}.battle-header h2{font-size:23px;line-height:1.1;margin:0}.battle-header .tiny-label{font-size:9px}.battle-emblem{width:30px;height:30px;padding:6px}.battle-timer{min-width:40px;width:40px;height:36px;font-size:22px}.duel-progress{flex-shrink:0;min-height:0;gap:10px;margin:0}.duel-side{padding:4px 8px;font-size:11px;line-height:1.2}.duel-side b{font-size:13px}.question-meta{font-size:11px;min-height:14px;flex-shrink:0;margin:0}#questionText{font-size:19px;line-height:1.25;margin:4px 0 6px;flex-shrink:0}.answers{min-height:0;flex:1;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:max-content;align-content:start;gap:6px;margin:0;overflow:visible}.answer{font-size:15px;line-height:1.3;padding:10px 12px;min-height:44px;min-width:0;white-space:normal;gap:9px}.answer>span:first-child{flex:0 0 23px;width:23px;height:23px;font-size:12px}.answer>span:last-child{min-width:0;overflow-wrap:anywhere}.viewport-answer-footer{flex-shrink:0}.battle-tutorial{font-size:11px;line-height:1.3;margin:2px 0;flex-shrink:0}.viewport-result-body{flex:1;min-height:0;min-width:0}.viewport-result-body #resultPlayers{display:contents}.viewport-result-footer{flex-shrink:0;display:flex;flex-direction:column;gap:5px}.viewport-result-footer .button{font-size:13px;min-height:35px;padding:7px 10px;margin:0}.result-icon{display:none}.result-row{font-size:13px;min-height:46px;padding:8px 10px;gap:10px;margin:0 0 6px}.result-row small{font-size:11px;line-height:1.3}.result-row b{font-size:14px;white-space:nowrap}.result-row>div{min-width:0;overflow-wrap:anywhere;line-height:1.2}.leave-emblem{display:none}.leave-actions{margin-top:auto;display:flex;gap:8px}.leave-actions .button{font-size:13px;min-height:36px;padding:7px 12px;margin:0}.shop-dialog{width:min(850px,calc(100vw - 24px));display:flex;flex-direction:column;gap:8px}.shop-heading{flex-shrink:0;padding-right:30px;margin:0;min-height:0}.shop-heading h2{font-size:24px;line-height:1.15;margin:4px 0}.shop-heading .tiny-label{font-size:9px}.viewport-shop-body{flex:1;min-height:0;min-width:0}.viewport-shop-body .shop-layout,.viewport-shop-body .shop-showcase,.viewport-shop-body .shop-goods,.viewport-shop-body #shopProducts{display:contents}.viewport-shop-body .shop-preview-art{height:100px;width:140px;margin:8px auto}.viewport-shop-body .shop-preview-art svg{height:100%;width:100%}.viewport-shop-body .shop-preview-art img{height:100%;max-width:100%;object-fit:contain}.viewport-shop-body h3{font-size:19px;margin:8px 0}.viewport-shop-body p{font-size:13px;line-height:1.35;margin:8px 0}.viewport-shop-body .shop-wallet{min-height:44px;padding:7px 10px;margin:6px 0}.viewport-shop-body .shop-wallet strong{font-size:22px}.viewport-shop-body .shop-wallet small{font-size:11px}.viewport-shop-body .shop-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0}.viewport-shop-body .shop-tabs button{font-size:12px;min-height:32px;padding:5px 10px}.viewport-shop-body .shop-category-heading{display:flex;gap:10px;align-items:center;font-size:12px;margin:7px 0}.viewport-shop-body .shop-product{min-height:100px;padding:10px;margin:0 0 8px;max-width:none;display:flex;gap:12px;align-items:center}.viewport-shop-body .shop-product-art{width:80px;height:80px;flex-shrink:0}.viewport-shop-body .shop-product h3{font-size:16px}.viewport-shop-body .shop-product p{font-size:12px;line-height:1.3}.viewport-shop-body .shop-product .button{font-size:12px;min-height:33px;padding:6px 10px}.shop-status:empty{display:none}.shop-status{font-size:12px;line-height:1.3;margin:4px 0}.viewport-shop-footer{flex-shrink:0}
@media(min-width:900px){.viewport-header-menu>summary{display:none}.viewport-header-menu>nav{position:static;box-shadow:none;border:0;background:transparent;padding:0}}
@media(max-width:899px){.header{height:50px;min-height:50px;padding:0 12px;gap:7px}.header>.brand{max-width:none}.brand>span,.brand .brand-bottom{font-size:18px}.brand>img{width:29px;height:29px}.viewport-header-menu[open]>nav{position:absolute;top:38px;right:0;z-index:80;min-width:190px;padding:8px;border-radius:14px;background:#fffdf1;border:1px solid #d4ddc1;box-shadow:0 10px 30px #304b3733;display:flex;flex-direction:column;gap:3px}.viewport-header-menu .nav-item{font-size:13px;min-height:31px;padding:6px 10px;display:flex;align-items:center;justify-content:space-between}.header>.profile{gap:5px}.profile-rating-button{padding:2px 4px;min-height:30px}.profile-rating-button .profile-medal{width:21px;height:21px}.profile-rating-button strong{font-size:13px}.profile-rating-button small{font-size:8px}.profile-avatar{height:31px;width:31px;min-width:31px}.header .game-language-menu summary{font-size:11px;padding:5px}.game-layout{display:flex}.atlas-card{flex:1;min-width:0;padding:8px}.atlas-heading h2{font-size:19px}.atlas-heading .tiny-label{font-size:8px}.viewport-team-button{display:inline-flex;font-size:12px;min-height:30px;padding:5px 9px;flex-shrink:0}.side-card{position:fixed;inset:56px 12px 12px;z-index:60;height:auto;min-height:0;padding:12px 14px;background:#fffdf1;box-shadow:0 16px 70px #24483466;border:1px solid #d3debf;border-radius:20px}.viewport-team-close{display:grid;place-items:center;position:absolute;top:7px;right:8px;width:30px;height:30px;background:#edf0dc;border-radius:10px;font-size:21px;z-index:2}.viewport-team-body{padding-right:25px}.viewport-team-footer{padding-right:0}.side-card #roomPanel{gap:7px}body.in-room:not([data-team-open=true]) .side-card{display:none}.atlas-footer{min-height:18px}.legend span{font-size:9px}.legend{gap:4px 7px}.tutorial-card{padding:7px 8px;gap:8px}.tutorial-copy h3{font-size:14px}.tutorial-copy p{font-size:11px}.tutorial-actions .button{font-size:11px;min-height:29px;padding:4px 7px}.tutorial-actions .text-button{font-size:10px}main{padding:6px 12px 10px}.viewport-lobby-tabs{height:34px;flex-basis:34px}.lobby-card{padding:10px 12px}.journey-card h2{font-size:23px}.journey-card .under-button,.journey-card .capacity-hint{font-size:11px}.journey-card input,.journey-card select{font-size:13px;min-height:36px}.journey-card .button{font-size:13px;min-height:36px}.rooms-heading h2{font-size:23px}.room-item{min-height:60px;padding:8px;gap:8px}.room-item-details b{font-size:13px}.room-item-details small{font-size:11px}.room-item-join{font-size:11px}.room-item-icon{width:28px;height:28px}.room-item-icon svg{width:25px;height:25px}dialog:where(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog){padding:16px;gap:7px}.viewport-dialog-heading h2{font-size:23px}.battle-dialog{padding:12px 14px;gap:5px}.battle-header h2{font-size:21px}#questionText{font-size:17px}.answer{font-size:14px;padding:8px 10px;min-height:42px}.shop-heading h2{font-size:22px}}
@media(max-width:420px){.header{padding:0 8px;gap:5px}.header>.brand{gap:5px}.brand>span,.brand .brand-bottom{font-size:15px;line-height:1.1}.brand .brand-bottom{display:block;margin:0}.brand>img{width:25px;height:25px}.profile-rating-button{display:none}.header>.profile{margin-left:0}.header .game-language-menu summary{font-size:10px;padding:5px 3px}.viewport-header-menu>summary{width:29px;height:29px}.profile-avatar{width:28px;height:28px;min-width:28px}main{padding:6px 8px 8px;gap:7px}.lobby-card{padding:9px;gap:6px}.journey-card h2{font-size:21px}.journey-card label{font-size:12px}.journey-card input,.journey-card select{min-height:35px}.viewport-pager button{font-size:11px;min-height:28px;padding:4px 8px}.viewport-pager{height:30px;flex-basis:30px;font-size:11px}.rooms-heading h2{font-size:21px}.room-item-details b{font-size:12px}.room-item-details small{font-size:10px}.room-item{gap:6px}.room-item-icon{width:24px;height:24px}.room-item-icon svg{width:23px;height:23px}.room-item-join{font-size:10px}.atlas-card{padding:6px}.atlas-heading{gap:5px;min-height:40px}.atlas-heading h2{font-size:17px}.atlas-heading h2>span{font-size:10px}.atlas-heading .tiny-label{display:none}.round-clock{min-width:53px;padding:4px 6px}.round-clock b{font-size:16px}.round-clock svg{display:none}.viewport-team-button{font-size:11px;padding:5px 7px}.tutorial-card{flex-direction:column;gap:4px;padding:6px 8px}.tutorial-actions{display:flex;justify-content:space-between;width:100%}.tutorial-copy p{font-size:11px}.tutorial-actions .button{min-height:28px}.map-hint{font-size:9px;max-width:55%}.map-controls{left:5px;bottom:5px}.map-controls button{height:25px;width:25px}.legend span{font-size:9px}.map-action{padding:8px 10px;width:calc(100% - 24px)}.map-action h3{font-size:17px}.map-action p{font-size:12px}.side-card{inset:55px 8px 8px;padding:10px 12px}.viewport-team-body{padding-right:22px}.side-card h2{font-size:21px}dialog:where(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog){width:calc(100vw - 20px);height:calc(100dvh - 20px);padding:14px}.battle-dialog{padding:12px;gap:6px}.battle-header h2{font-size:18px}.battle-header .tiny-label{font-size:8px}.battle-emblem{display:none}.battle-timer{font-size:20px;width:36px;min-width:36px;height:32px}#questionText{font-size:16px;line-height:1.25}.answer{font-size:13px;line-height:1.25;padding:8px;gap:5px;min-height:44px}.answer>span:first-child{font-size:10px;width:18px;height:18px;flex-basis:18px}.question-meta{font-size:10px}.duel-side{font-size:10px;padding:4px 6px}.duel-side b{font-size:12px}.viewport-dialog-body .profile-stats{grid-template-columns:1fr 1fr}.viewport-dialog-body .intro h1{font-size:21px}.leave-actions{flex-direction:column}.leave-actions .button{font-size:12px}.shop-heading h2{font-size:20px}.viewport-shop-body .shop-product{padding:8px;gap:8px;min-height:92px}.viewport-shop-body .shop-product-art{width:64px;height:64px}.viewport-shop-body .shop-product h3{font-size:14px}.viewport-shop-body .shop-product p{font-size:11px}.viewport-shop-body .shop-product .button{font-size:11px}.viewport-dialog-body .rooms-note{grid-template-columns:90px minmax(0,1fr);gap:8px}.viewport-dialog-body .rooms-note>div{width:90px;height:74px}}
@media(max-height:380px){.header{height:40px;min-height:40px;padding:0 12px}.brand>span,.brand .brand-bottom{font-size:17px}.brand>img{width:27px;height:27px}.header .game-language-menu summary{font-size:11px}.viewport-header-menu>summary{height:29px;width:29px}.viewport-header-menu[open]>nav{top:33px;padding:6px;gap:2px}.viewport-header-menu .nav-item{min-height:28px;font-size:12px;padding:4px 8px}main{padding:4px 12px 6px;gap:6px}.viewport-lobby-tabs{height:30px;flex-basis:30px}.viewport-lobby-tabs button{font-size:12px;min-height:28px;padding:4px 9px}.lobby-card{padding:7px 10px;gap:5px}.journey-card h2{font-size:21px;margin:0 0 4px}.viewport-item>.tiny-label{display:none}.journey-card label{font-size:11px;margin:4px 0 3px}.journey-card input,.journey-card select{min-height:31px;padding:5px 10px}.journey-card .button{font-size:12px;min-height:31px;padding:5px 10px;margin-top:5px}.journey-card .under-button,.journey-card .capacity-hint{font-size:10px;margin:4px 0;line-height:1.2}.journey-card .divider{margin:5px 0;font-size:9px}.join-row{margin:6px 0}.join-row .button{min-height:31px;min-width:35px;width:38px}.viewport-pager{height:27px;flex-basis:27px;font-size:11px}.viewport-pager button{font-size:11px;min-height:25px;padding:3px 8px}.rooms-heading{min-height:25px}.rooms-heading h2{font-size:21px}.room-count{font-size:15px;padding:2px 7px}.room-item{min-height:51px;padding:7px 9px;gap:9px;margin-bottom:5px}.room-item-details b{font-size:12px}.room-item-details small{font-size:10px}.room-item-join{font-size:11px}.room-item-icon{width:26px;height:26px}.rooms-empty{font-size:12px;padding:7px}.atlas-card{padding:5px}.atlas-heading{min-height:30px;margin-bottom:4px;gap:7px}.atlas-heading .tiny-label{display:none}.atlas-heading h2{font-size:18px}.atlas-heading h2>span{font-size:10px}.round-clock{min-width:57px;padding:2px 7px}.round-clock b{font-size:16px}.round-clock svg{width:15px;height:15px}.viewport-team-button{font-size:11px;min-height:27px;padding:4px 8px}.atlas-footer{min-height:16px;padding-top:3px}.legend span{font-size:9px}.tutorial-card{position:absolute;z-index:12;top:42px;left:8px;max-width:62%;padding:5px 7px;gap:6px;display:flex;flex-direction:row;align-items:center;background:#fffbedf2;box-shadow:0 3px 15px #324d3120}.tutorial-copy h3{font-size:12px;margin:0}.tutorial-copy p{font-size:10px;margin:2px 0;line-height:1.2}.tutorial-copy small{font-size:9px}.tutorial-actions{flex-direction:column;gap:3px;flex-shrink:0}.tutorial-actions .button{font-size:10px;min-height:25px;padding:3px 6px}.tutorial-actions .text-button{font-size:9px;padding:0;min-height:20px}.map-controls{left:6px;bottom:6px}.map-controls button{width:24px;height:24px;padding:4px}.map-hint{font-size:9px;bottom:5px;right:5px}.map-action{padding:7px 9px;max-width:290px;width:54%;border-radius:12px}.map-action h3{font-size:15px;margin-bottom:3px}.map-action p{font-size:11px;line-height:1.2;margin:3px 0 6px}.map-action .button{font-size:12px;min-height:28px;padding:4px 8px}.side-card{inset:45px 10px 7px;padding:9px 12px}.side-card #roomPanel{gap:5px}.side-card h2{font-size:20px;margin:2px 0}.side-card #roomSize{font-size:11px;margin:2px 0 5px}.room-top{margin:0 0 4px}.code-chip{min-height:28px;padding:3px 7px;margin:3px 0 6px}.player{min-height:40px;padding:5px 7px;margin-bottom:4px}.player-name{font-size:11px}.player-detail{font-size:10px}.player-avatar{width:27px;height:27px}.player-score{font-size:13px}.viewport-team-footer #waiting p{font-size:11px;line-height:1.2;margin:3px 0}.viewport-team-footer #startRoom{font-size:12px;min-height:29px;padding:4px 9px;margin-top:4px}dialog:where(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog){height:calc(100dvh - 20px);padding:12px 16px;gap:6px}.viewport-dialog-heading h2{font-size:22px;margin:0}.viewport-dialog-heading .tiny-label{display:none}dialog:where(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog) p{font-size:12px;line-height:1.3;margin:6px 0}.viewport-dialog-body input{min-height:32px;padding:6px 10px}.viewport-dialog-body label{font-size:12px;margin:5px 0 3px}.viewport-dialog-body .button{font-size:12px;min-height:31px;padding:5px 10px;margin:6px 0}.ranking-row{font-size:12px;min-height:33px;padding:6px 8px;margin-bottom:4px}.profile-stats strong{font-size:18px}.profile-stats small{font-size:10px}.viewport-dialog-body .intro h1{font-size:21px;margin:4px 0 8px}.viewport-dialog-body .intro-note{font-size:12px}.viewport-dialog-body .feature-strip>div{padding:5px;margin:4px 0}.viewport-dialog-body .rooms-note{min-height:0;max-height:none;padding:5px}.viewport-dialog-body .rooms-note>div{height:65px}.viewport-dialog-body .rooms-note p{font-size:13px}.battle-dialog{padding:10px 14px;gap:4px}.battle-header{min-height:27px}.battle-header h2{font-size:18px}.battle-header .tiny-label{font-size:8px}.battle-emblem{height:25px;width:25px;padding:4px}.battle-timer{width:34px;min-width:34px;height:28px;font-size:19px}.question-meta{font-size:10px;min-height:12px}.duel-side{font-size:10px;padding:2px 6px}.duel-side b{font-size:12px}#questionText{font-size:16px;line-height:1.2;margin:3px 0}.answer{font-size:13px;line-height:1.2;min-height:34px;padding:6px 8px;gap:6px}.answer>span:first-child{width:19px;height:19px;flex-basis:19px;font-size:11px}.battle-tutorial{font-size:10px;line-height:1.2;margin:1px 0}.result-row{min-height:38px;font-size:12px;padding:6px 8px;margin-bottom:4px}.result-row small{font-size:10px}.result-row b{font-size:12px}.viewport-result-footer .button{font-size:12px;min-height:29px;padding:4px 9px}.leave-actions .button{font-size:12px;min-height:31px;padding:5px 10px}.shop-heading h2{font-size:20px;margin:2px 0}.shop-heading .tiny-label{display:none}.viewport-shop-body .shop-preview-art{height:75px;width:100px}.viewport-shop-body .shop-product{min-height:86px;padding:7px 9px}.viewport-shop-body .shop-product-art{width:64px;height:64px}.viewport-shop-body .shop-product h3{font-size:15px}.viewport-shop-body .shop-product p{font-size:11px}.viewport-shop-body .shop-product .button{font-size:11px;min-height:28px;padding:4px 8px}}
dialog:where(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog):not([open]){display:none!important}
.viewport-capacity{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:7px 0}.viewport-capacity button{min-height:34px;border:1px solid #d5dfc5;background:#fffdf2;font-size:14px;font-weight:700;border-radius:10px}.viewport-capacity button[aria-pressed=true]{background:#ddecbe;border-color:#99b777;color:#385f3c}
@media(max-height:380px){.viewport-capacity{gap:5px;margin:5px 0}.viewport-capacity button{min-height:28px;font-size:12px}}
main,.in-room main{overflow:visible;display:flex;flex-direction:column;min-height:0}.atlas-card,.tutorial-mode .atlas-card{min-height:0;height:100%;flex-shrink:1}.atlas-heading,.tutorial-mode .atlas-heading{display:flex;padding:0}.map-controls{right:auto;top:auto;width:auto;height:auto;flex-direction:column}.map-stage,.tutorial-mode .map-stage{flex:1;min-height:0;height:auto}
.battle-dialog #prep{font-size:12px;line-height:1.3;padding:8px 10px;min-height:0;margin:4px 0;flex-shrink:0}.battle-dialog:has(#prep:not([hidden])) #answers,.battle-dialog:has(#prep:not([hidden])) .viewport-answer-footer{display:none}
@media(max-height:380px){.battle-dialog #prep{font-size:12px;padding:6px 9px}}
.viewport-shop-body .shop-product{display:grid;grid-template-columns:80px minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:4px 12px;min-width:0;min-height:100px}.viewport-shop-body .shop-product-art{grid-column:1;grid-row:1/4;width:80px;height:80px;min-height:0;padding:0;margin:0}.viewport-shop-body .shop-product-art>.cosmetic-badge,.viewport-shop-body .shop-product-art>.shop-landscape{min-height:0;width:100%;height:100%;max-height:80px}.viewport-shop-body .shop-product-tag{grid-column:2;grid-row:1;justify-self:start;font-size:10px;line-height:1.1;padding:3px 5px;margin:0}.viewport-shop-body .shop-product h3{grid-column:2;grid-row:2;margin:0;font-size:17px;line-height:1.2}.viewport-shop-body .shop-product>p{grid-column:2;grid-row:3;font-size:12px;line-height:1.3;margin:0}.viewport-shop-body .shop-product .shop-buy{grid-column:3;grid-row:1/4;min-height:32px;width:auto;max-width:150px;white-space:normal;font-size:12px;padding:6px 10px}
@media(max-width:420px){.viewport-shop-body .shop-product{grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:4px 8px;min-height:0;padding:8px}.viewport-shop-body .shop-product-art{width:64px;height:70px;grid-row:1/4}.viewport-shop-body .shop-product h3{font-size:15px}.viewport-shop-body .shop-product>p{font-size:12px}.viewport-shop-body .shop-product .shop-buy{grid-column:1/3;grid-row:4;max-width:none;width:100%;min-height:31px;font-size:12px}.viewport-shop-body .shop-product-tag{font-size:9px}}
@media(max-height:380px){.viewport-shop-body .shop-product{grid-template-columns:64px minmax(0,1fr) auto;gap:3px 9px;min-height:84px;padding:7px 9px}.viewport-shop-body .shop-product-art{width:64px;height:66px;grid-column:1;grid-row:1/4}.viewport-shop-body .shop-product-art>.cosmetic-badge,.viewport-shop-body .shop-product-art>.shop-landscape{max-height:66px}.viewport-shop-body .shop-product h3{font-size:15px}.viewport-shop-body .shop-product>p{font-size:12px}.viewport-shop-body .shop-product .shop-buy{grid-column:3;grid-row:1/4;max-width:140px;min-height:29px;font-size:11px;padding:4px 8px}}
@media(max-height:380px){.tutorial-card{width:40%;max-width:40%;flex-direction:column;align-items:stretch;gap:4px}.tutorial-copy{min-width:0}.tutorial-copy small{font-size:8px;line-height:1.1}.tutorial-copy h3{font-size:12px;line-height:1.15}.tutorial-copy p{font-size:10px;line-height:1.2;margin:3px 0}.tutorial-actions{flex-direction:row;align-items:center;justify-content:space-between;gap:4px;flex-shrink:0;width:100%}.tutorial-actions .button{font-size:10px;min-height:25px;padding:3px 6px}.tutorial-actions .text-button{font-size:9px;min-height:25px;padding:0}}
@media(max-height:380px){.battle-tutorial{padding:6px 8px;min-height:0;font-size:10px;line-height:1.2;margin:0}.battle-dialog{gap:4px}}
.viewport-dialog-body p{font-size:13px;line-height:1.4;margin:8px 0}.viewport-dialog-body .viewport-text-parts,.viewport-dialog-body .profile-stats{display:contents}.viewport-text-part{display:block;font-size:13px;line-height:1.4;margin:8px 0}.viewport-dialog-body .profile-stats>div{min-height:65px;padding:10px 12px;border:1px solid #d5dfce;border-radius:12px;margin:5px 0}.viewport-dialog-body .profile-stats strong,.viewport-dialog-body .profile-stats small{display:block}
@media(max-height:380px){.battle-dialog[open]{gap:4px}.battle-dialog .battle-header h2{font-size:18px;line-height:1.1;margin:0}.battle-dialog .battle-header .tiny-label{font-size:8px;line-height:1.2}.battle-dialog .question-meta{min-height:18px;line-height:1.1}.battle-dialog .question-meta>span{padding:4px 8px}.viewport-dialog-body p,.viewport-text-part{font-size:12px;line-height:1.3;margin:6px 0}.viewport-dialog-body .profile-stats>div{min-height:54px;padding:7px 10px;margin:4px 0}}
.viewport-dialog-body .rooms-note{display:contents}.viewport-dialog-body .rooms-note>div{margin:5px auto}.viewport-dialog-body .rooms-note>p,.viewport-dialog-body .rooms-note>small{display:block}.viewport-shop-body .shop-preview-art{min-height:0;align-self:auto;grid-row:auto}
@media(max-width:419px),(max-height:319px){.battle-dialog .answers{grid-template-columns:minmax(0,1fr)}}

/* Owned initial shell: original SEO/controller roots stay in source but inert until boot+fit. */
.region-starting{min-height:100dvh;height:100dvh;margin:0;overflow:hidden}.region-starting>[data-region-boot-root]{visibility:hidden;pointer-events:none}.region-starting>[data-region-boot-root][hidden]{display:none!important}.region-startup[hidden]{display:none!important}.region-startup{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:14px;box-sizing:border-box;background:#edf2df;color:#294d49;font-family:system-ui,sans-serif}.region-startup>div{width:min(440px,100%);box-sizing:border-box;padding:22px;border:2px solid #d6c496;border-bottom:6px solid #bba87a;border-radius:24px;background:#fffdf0;text-align:center;box-shadow:0 12px 40px #284c3e17}.region-startup h2{margin:6px 0 14px;font-size:26px;line-height:1.15}.region-startup p{margin:10px 0;font-size:16px;line-height:1.4}.region-startup h3{margin:16px 0 12px;font-size:16px}.region-startup a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 18px;box-sizing:border-box;border:1px solid #2b7f78;border-bottom:4px solid #205c57;border-radius:14px;background:#39988c;color:#fffdf0;font-weight:800;text-decoration:none}.region-startup small{display:block;font-size:12px;line-height:1.4;color:#687c60}.region-startup-emblem{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:14px;background:#f7dc8c;color:#816329;font-size:30px}.region-startup[data-state=loading] .region-startup-emblem{animation:region-startup-breathe 1.4s ease-in-out infinite}.region-startup[data-state=error] .region-startup-emblem{color:#b95839;background:#fce4bf}@keyframes region-startup-breathe{50%{transform:scale(.9);opacity:.65}}@media(max-height:360px){.region-startup>div{padding:12px 18px;border-radius:18px}.region-startup-emblem{width:28px;height:28px;font-size:24px}.region-startup h2{font-size:22px;margin:4px 0 7px}.region-startup p{font-size:14px;margin:7px 0}.region-startup h3{margin:10px 0 8px}.region-startup small{font-size:11px}}@media(prefers-reduced-motion:reduce){.region-startup .region-startup-emblem{animation:none}}
/* Bounded C3 polish: owned controls fit their original compact slots. */
.viewport-lobby-tabs button{line-height:1.15;white-space:normal;padding-block:4px;min-height:100%;height:100%;display:flex;align-items:center;justify-content:center}
@media(max-height:380px){.header #avatar{width:30px;max-width:30px;flex:0 0 30px;height:30px;min-height:30px;max-height:30px;min-width:30px;padding:3px;display:grid;place-items:center;line-height:1}.header #avatar svg{max-width:22px;max-height:22px}}
:is(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog) :is(.close-dialog,.shop-close){min-width:32px;max-width:32px;width:32px;height:32px;padding:0;display:grid;place-items:center;line-height:1}:is(#battleDialog,#infoDialog,#shopDialog,#leaveDialog,#resultDialog) :is(.close-dialog,.shop-close) svg{display:block;max-width:20px;max-height:20px}
.viewport-shop-body .shop-product-art .shop-art-hint{display:block;max-width:100%;width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:normal;line-height:1.1;font-size:9.5px;letter-spacing:-.2px;text-align:center;padding:2px;position:absolute;bottom:0;left:0;border-radius:5px;background:#fffdf4ed;color:#37575b}.viewport-shop-body .shop-product-art{position:relative}

/* Poll/action notices own a flow row; no room name, card or pager is covered. */
#toast:not([hidden]){position:static;left:auto;right:auto;top:auto;bottom:auto;transform:none;align-self:center;flex:0 0 auto;width:calc(100% - 24px);max-width:1400px;box-sizing:border-box;margin:0 12px 8px;padding:8px 12px;font-size:13px;line-height:1.3;border-radius:12px}
@media(max-height:380px){#toast:not([hidden]){margin-bottom:4px;padding:6px 10px;font-size:12px}}

/* Fixed compact team panel shares the same flow-notice budget as the map. */
@media(max-width:899px){.side-card{bottom:calc(8px + var(--region-flow-reserve,0px))}}

/* Original About copy remains readable at the same responsive widths. */
#infoDialog .viewport-dialog-body .little-note{display:flex}

/* C6: anchor the owned compact menu to the viewport, including the native shared brand. */
@media(max-width:899px){.header .viewport-header-menu[open]>nav{position:fixed;top:56px;left:8px;right:8px;width:auto;min-width:0;max-width:none}}
@media(max-width:899px) and (max-height:380px){.header .viewport-header-menu[open]>nav{top:46px}}

/* C8: keep the native shared account visible as its standard icon at intermediate widths. */
@media(min-width:700px) and (max-width:999px){.header [data-igrodvor-account-slot] .ig-account-link-header{width:34px;min-width:34px;max-width:34px;height:36px;min-height:36px;padding:4px;gap:0;justify-content:center;box-sizing:border-box}.header [data-igrodvor-account-slot] .ig-account-link-header>span{display:none}.header [data-igrodvor-account-slot] .ig-account-link-header>svg{width:22px;height:22px;flex:none}}

/* C10: keep the full portal game name on two original lines beside desktop navigation. */
@media(min-width:900px){.header .brand>span>.brand-bottom{display:block}}
