:root{font-family:system-ui,'Segoe UI',sans-serif;color:#fff4d9;background:#183a31;font-synthesis:none}
*{box-sizing:border-box}
html,body{margin:0;min-width:320px;min-height:100%;background:#183a31}
button{font:inherit}
.app-shell{min-height:100vh}
.topbar{height:54px;padding:0 clamp(12px,2vw,28px);display:flex;align-items:center;justify-content:space-between;gap:16px;background:#183b2f;border-bottom:1px solid #f7dc9655}
.brand{display:flex;align-items:center;gap:9px;color:#fff7dd;text-decoration:none}
.brand-mark{position:relative;width:33px;height:33px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(150deg,#ffe493,#d79239);box-shadow:0 3px 0 #714b29}
.brand-mark span{position:absolute;width:16px;height:13px;clip-path:polygon(0 100%,50% 0,100% 100%);background:#5b4323}.brand-mark span+span,.brand-mark span+span+span{display:none}
.brand-copy strong{display:block;font-size:13px;letter-spacing:.09em}.brand-copy i{font-style:normal;color:#ffd577}.brand-copy small{display:block;margin-top:2px;font-size:7px;letter-spacing:.16em;color:#c6d9b5}
.world-label{font-size:9px;letter-spacing:.12em;color:#dbeac9}.status-dot{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#a7e29e;box-shadow:0 0 7px #9fff9a}.divider{display:inline-block;width:1px;height:10px;margin:0 9px;background:#e9e3b66b}
.profile-chip{display:flex;align-items:center;gap:7px;font-size:10px;color:#eeecca}.profile-avatar{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e9cd79;color:#3d4226;font-weight:800}
#app{height:calc(100dvh - 54px);min-height:540px}.forest-scene{position:relative;isolation:isolate;overflow:hidden;width:100%;height:100%;min-height:540px;background:#568667}
.world-viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}.world-viewport:active{cursor:grabbing}
.world-content{position:absolute;left:0;top:0;transform-origin:top left;background:#568667;will-change:transform}
.backdrop-panel{position:absolute;top:0;width:1602px;height:900px;background-image:url('/images/forest-backdrop.svg?v=3');background-size:1602px 900px;background-repeat:no-repeat;pointer-events:none}.backdrop-panel.mirrored{transform:scaleX(-1)}
.world-content:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#0d273f30 0%,transparent 36%,transparent 76%,#17331645 100%)}
.tree{position:absolute;isolation:isolate}.tree-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;filter:drop-shadow(14px 20px 14px #20452765)}
.tree-select{position:absolute;z-index:2;left:38%;top:9%;width:24%;height:81%;padding:0;border:0;background:transparent;cursor:pointer}.tree-select span{position:absolute;bottom:0;left:50%;width:max-content;max-width:220px;transform:translateX(-50%);border:1px solid #ffeba5a8;border-radius:999px;background:#1a4937e8;box-shadow:0 4px 16px #12372899;padding:7px 13px;color:#fff4cd;font-size:13px;font-weight:800;text-shadow:0 1px 2px #183429}.tree.is-selected .tree-select span{background:#e7b95d;color:#332718;text-shadow:none}
.branch-slot{position:absolute;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;width:51px;height:51px;transform:translate(-50%,0);border:2px solid #fff1ac;border-radius:50%;background:#1b674fcf;color:#fff5cc;box-shadow:0 0 0 5px #fce5934d,0 5px 16px #173c24a8;cursor:pointer;opacity:0;pointer-events:none}.tree.is-selected .branch-slot{opacity:1;pointer-events:auto;animation:branch-pulse 2.3s ease-in-out infinite}.branch-slot span{font-size:27px;font-weight:800;line-height:21px}.branch-slot small{font-size:8px;font-weight:900;letter-spacing:.07em}.branch-slot:hover{background:#d89e43;color:#2f301b;transform:translate(-50%,-3px)}
.hive-slot,.hive-preview{position:absolute;z-index:4;display:flex;flex-direction:column;align-items:center;width:112px;height:158px;transform:translate(-50%,0);padding:0;border:0;background:transparent;cursor:pointer;filter:drop-shadow(3px 9px 7px #23321b9c)}.hive-slot img,.hive-preview img{display:block;width:94px;height:132px;object-fit:contain;pointer-events:none}.hive-slot span,.hive-preview span{display:block;white-space:nowrap;border:1px solid #fff0afbb;border-radius:999px;background:#2b5b40ed;padding:3px 7px;color:#fff4d4;font-size:9px;font-weight:900;letter-spacing:.08em;text-shadow:0 1px 2px #1b352b}.hive-slot.my-hive span{background:#f2cb6b;color:#382a16;text-shadow:none}.hive-slot:hover img{transform:scale(1.08)}.hive-preview{opacity:.78;pointer-events:none}.hive-preview img{filter:drop-shadow(0 0 9px #fff3b7)}.hive-preview span{background:#dfae60;color:#322411}
.bee-flight{position:absolute;z-index:3;width:12px;height:9px;border-radius:45%;background:repeating-linear-gradient(90deg,#e7a940 0 3px,#2d3020 3px 5px);box-shadow:0 1px 3px #17282080;pointer-events:none;animation:bee-fly 5s ease-in-out infinite alternate}.bee-flight:before,.bee-flight:after{content:'';position:absolute;top:-5px;width:7px;height:6px;border-radius:70%;background:#fff9d2b8}.bee-flight:before{left:0;transform:rotate(-25deg)}.bee-flight:after{right:0;transform:rotate(25deg)}.bee-b{animation-delay:-2s}.bee-c{animation-delay:-3.5s}.bee-d{animation-delay:-1s}
.game-hud{position:absolute;z-index:7;left:clamp(12px,2vw,28px);right:clamp(12px,2vw,28px);top:15px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;pointer-events:none}.hud-nav{display:flex;align-items:center;gap:7px;flex-wrap:wrap;pointer-events:auto;margin-left:auto;justify-content:flex-end}.hud-nav button{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #fff9cb8c;border-radius:999px;color:#fff5d5;background:#153c2ee8;box-shadow:0 4px 15px #16311d7a;backdrop-filter:blur(9px);font-weight:700;font-size:11px}.hud-nav button{cursor:pointer}.hud-nav button:disabled{opacity:.57;cursor:not-allowed}.hud-nav button:not(:disabled):hover,.action-dock button:not(:disabled):hover{filter:brightness(1.13)}
.activity-banner{position:absolute;z-index:6;top:66px;left:50%;width:max-content;max-width:min(86vw,560px);padding:9px 17px;border:1px solid #ffe9a9a8;border-radius:999px;background:#294837e6;color:#fff6d7;font-size:12px;font-weight:700;text-align:center;box-shadow:0 6px 22px #18231b55;transform:translateX(-50%);backdrop-filter:blur(10px)}
.pan-control{position:absolute;z-index:6;top:48%;width:45px;height:58px;border:1px solid #fff0afaa;border-radius:13px;background:#234733d8;color:#ffde83;font-size:38px;line-height:1;cursor:pointer;box-shadow:0 5px 20px #19321d8c}.pan-left{left:12px}.pan-right{right:12px}.pan-control:hover{background:#d8ad60;color:#322711}

.action-dock{position:absolute;z-index:7;bottom:16px;left:50%;display:flex;align-items:stretch;gap:7px;padding:7px;border:1px solid #f4dd9a99;border-radius:17px;background:#173b30e6;box-shadow:0 10px 28px #1023199e;transform:translateX(-50%);backdrop-filter:blur(14px)}.action-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:86px;min-height:62px;padding:6px 10px;border:1px solid #f7e1a96b;border-radius:12px;color:#fff5d6;background:linear-gradient(160deg,#3f6748,#254532);font-size:10px;font-weight:800;cursor:pointer}.action-dock button span{font-size:24px;line-height:1}.action-dock button small{font-size:7px;color:#f5daa3}.action-dock button:disabled{opacity:.6;cursor:not-allowed;filter:grayscale(.35)}
.action-panel{position:absolute;z-index:9;right:clamp(14px,3vw,45px);top:132px;width:min(330px,calc(100% - 28px));padding:22px;border:1px solid #f7dda3;border-radius:17px;background:#193b2ff2;color:#fff5dd;box-shadow:0 15px 38px #0b221bbb;backdrop-filter:blur(14px)}.action-panel[hidden],.panel-resource[hidden]{display:none}.panel-close{position:absolute;top:10px;right:12px;width:27px;height:27px;border:1px solid #ffffff66;border-radius:7px;background:#ffffff1f;color:white;cursor:pointer}.panel-eyebrow{margin:0;color:#ffe08a;font-size:9px;font-weight:900;letter-spacing:.15em}.action-panel h1{margin:6px 0 7px;font-size:22px}.action-panel p:not(.panel-eyebrow){font-size:12px;line-height:1.5;color:#e2ebd3}.panel-resource{display:flex;align-items:center;justify-content:space-between;margin-top:15px;padding:10px 0;border-top:1px solid #ffffff3c;font-size:12px}.panel-resource strong{color:#ffdf81;font-size:22px}.panel-buttons{display:flex;flex-wrap:wrap;gap:8px}.panel-buttons button{flex:1;min-width:115px;padding:10px;border:1px solid #ffe9ac;border-radius:9px;background:#f3e9c9;color:#3c3325;font-weight:800;font-size:12px;cursor:pointer}.panel-buttons .panel-primary{background:linear-gradient(#ffe393,#e2ae50)}
.footer{display:none}.not-found{display:grid;place-content:center;min-height:70vh;text-align:center}.home-link{color:#ffdc7c}button:focus-visible{outline:3px solid #fff4c0;outline-offset:2px}
@keyframes bee-fly{0%{transform:translate(0,0) rotate(-6deg)}50%{transform:translate(25px,-18px) rotate(8deg)}100%{transform:translate(-17px,9px) rotate(-10deg)}}@keyframes branch-pulse{50%{box-shadow:0 0 0 8px #fce5932d,0 5px 16px #173c24a8}}
@media(max-width:700px){.topbar{height:48px}.world-label{display:none}.brand-copy strong{font-size:11px}.brand-copy small{font-size:6px}#app{height:calc(100dvh - 48px);min-height:540px}.forest-scene{min-height:540px}.game-hud{top:8px;left:8px;right:8px;display:block}.hud-nav{margin-top:6px;gap:5px}.hud-nav button{min-height:29px;padding:5px 8px;font-size:9px}.activity-banner{top:87px;max-width:88vw;font-size:9px;padding:7px 11px}.pan-control{width:34px;height:45px;font-size:29px;top:45%}.pan-left{left:5px}.pan-right{right:5px}.action-panel{left:50%;right:auto;top:auto;bottom:100px;width:min(350px,calc(100% - 18px));padding:15px;transform:translateX(-50%)}.action-panel h1{font-size:18px}.action-dock{bottom:6px;width:calc(100% - 10px);gap:3px;padding:4px;border-radius:11px}.action-dock button{min-width:0;flex:1;min-height:61px;padding:4px 1px;font-size:8px;border-radius:8px}.action-dock button span{font-size:20px}.action-dock button small{font-size:6px}}
@media(max-width:380px){.activity-banner{top:84px}.action-dock button{font-size:7px}}
@media(prefers-reduced-motion:reduce){.bee-flight,.tree.is-selected .branch-slot{animation:none}}

/* Evolução: um painel compacto por cima da floresta, sem alterar a câmera. */
.hive-slot.appearance-leaf img,.appearance-preview.appearance-leaf img{filter:hue-rotate(62deg) saturate(.9)}
.hive-slot.appearance-violet img,.appearance-preview.appearance-violet img{filter:hue-rotate(206deg) saturate(.85)}
.action-panel{max-height:calc(100% - 220px);overflow-y:auto}
.action-panel.panel-expanded{width:min(450px,calc(100% - 28px))}
.panel-details h2{margin:18px 0 8px;color:#ffe2a0;font-size:12px;letter-spacing:.09em;text-transform:uppercase}
.panel-buttons{margin-top:12px}
.panel-buttons button:disabled,.panel-details button:disabled{opacity:.48;cursor:not-allowed}
.hive-summary{display:flex;flex-wrap:wrap;gap:5px;margin-top:11px}
.hive-summary span{display:inline-flex;gap:4px;border-radius:6px;background:#e7c67530;padding:6px;font-size:10px}
.hive-summary b{color:#ffe8a1}
.evolution-list,.building-choices,.appearance-choices{display:grid;gap:6px}
.evolution-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #ffffff25;padding:6px 0}
.evolution-row small,.bee-choices small,.building-choice small{display:block;color:#d8e6d0;font-size:10px;line-height:1.4}
.evolution-row button,.bee-choices button,.building-choice,.appearance-option{border:1px solid #e6d49e78;border-radius:8px;background:#355c47;color:#fff1d1;padding:8px;text-align:left;font-size:11px;cursor:pointer}
.evolution-row button{min-width:100px;text-align:center}
.bee-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.bee-choices button{min-height:76px}
.bee-choices b,.building-choice b{display:block;margin-bottom:4px}
.building-choice.is-active,.appearance-option:hover{outline:2px solid #ffdc83;background:#557046}
.building-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0}
.building-cell{min-height:72px;padding:6px;border:1px dashed #ffe3a28e;border-radius:9px;background:#e9e0b21c;color:#ffedca;cursor:pointer}
.building-cell span{display:block;font-size:20px}.building-cell small{display:block;font-size:10px}
.building-cell.is-built{border-style:solid;background:#ba844f55}
.building-cell.is-preview{border-style:solid;background:#f9d37a7a;box-shadow:0 0 10px #ffdf91}
.appearance-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.appearance-option{min-height:65px;text-align:center}.appearance-leaf{background-color:#45735e}.appearance-violet{background-color:#65557f}
.appearance-preview{display:flex;align-items:center;gap:14px;margin-top:12px;border:1px dashed #ffdc83;border-radius:10px;padding:8px}
.appearance-preview img{width:58px;height:72px;object-fit:contain}.appearance-preview span{font-size:12px}
@media(max-width:700px){.action-panel,.action-panel.panel-expanded{bottom:82px;width:min(410px,calc(100% - 18px));max-height:min(58dvh,500px)}}.profile-chip #logout-button{border:1px solid #fff4d966;border-radius:7px;background:#ffffff15;color:#fff4d9;padding:5px 8px;font-size:9px;font-weight:800;cursor:pointer}.profile-chip #logout-button[hidden]{display:none}
.account-screen{display:grid;place-items:center;min-height:100%;padding:22px;background:linear-gradient(140deg,#234b3cdd,#18352ee8),url('/images/forest-backdrop.svg') center/cover}
.account-card{display:grid;gap:12px;width:min(440px,100%);padding:26px;border:1px solid #f5df9c99;border-radius:18px;background:#18392ff2;color:#fff5dd;box-shadow:0 18px 55px #071d1799}
.account-card h1{margin:0;font-size:24px}.account-card p{margin:0;color:#e1e9d2;font-size:13px;line-height:1.5}.account-card .account-eyebrow{color:#ffe08a;font-size:9px;font-weight:900;letter-spacing:.15em}
.account-card label{display:grid;gap:6px;color:#f5e9c8;font-size:11px;font-weight:800}.account-card input{width:100%;height:42px;padding:9px 11px;border:1px solid #eedca17a;border-radius:9px;background:#0f2d24;color:white;font:inherit}.account-card input:focus{outline:2px solid #ffe08a;outline-offset:1px}
.account-card button{min-height:40px;padding:9px 12px;border:1px solid #ffe9ac;border-radius:9px;background:#efe4c1;color:#3c3325;font-weight:800;font-size:12px;cursor:pointer}.account-card button.account-primary{background:linear-gradient(#ffe393,#e2ae50)}.account-card button:disabled{opacity:.55;cursor:wait}.account-card .account-switch{border:0;background:transparent;color:#ffe08a;text-decoration:underline}.account-card small{color:#d1dec7;font-size:10px;line-height:1.4}.account-card .account-error{min-height:18px;color:#ffb4a7;font-size:11px}
@media(max-width:700px){.hud-nav{align-items:center}}

.account-card [hidden]{display:none}


/* Stage 5 — test wallet connection */
.wallet-open-button{border:1px solid #ffe08a;border-radius:999px;padding:8px 13px;background:#234638;color:#ffe08a;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}
.wallet-open-button[hidden]{display:none}
.wallet-open-button:hover,.wallet-open-button:focus-visible{background:#315a46;outline:2px solid #ffe08a;outline-offset:2px}
.wallet-dialog{width:min(760px,calc(100vw - 28px));max-height:min(88vh,780px);overflow:auto;border:1px solid #ffe08a;border-radius:18px;padding:clamp(18px,3vw,28px);background:#17382f;color:#fff4d9;box-shadow:0 24px 90px #071a15aa}
.wallet-dialog::backdrop{background:#081710c9;backdrop-filter:blur(5px)}
.wallet-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.wallet-dialog h2{margin:2px 0 0;font-size:24px}
.wallet-dialog h3{margin:4px 0 8px;font-size:20px}
.wallet-eyebrow{margin:0;color:#ffdc7a;font-size:9px;font-weight:900;letter-spacing:.13em}
.wallet-close-button{width:36px;height:36px;border:1px solid #ffffff3a;border-radius:50%;background:#ffffff0c;color:#fff4d9;font-size:22px;cursor:pointer}
.wallet-intro{max-width:650px;color:#d9e8d5;font-size:13px;line-height:1.55}
.wallet-network-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.wallet-network-card{display:flex;flex-direction:column;align-items:stretch;gap:9px;border:1px solid #ffffff2a;border-radius:14px;padding:16px;background:#ffffff08}
.wallet-network-card label{color:#e7e7cd;font-size:11px;font-weight:700}
.wallet-network-meta,.wallet-network-hint{margin:0;color:#d6e4ce;font-size:11px;line-height:1.45}
.wallet-network-meta b{color:#ffe08a}
.wallet-network-card select{width:100%;min-height:40px;border:1px solid #ffffff45;border-radius:8px;padding:8px;background:#112e27;color:#fff4d9}
.wallet-connect-button{min-height:42px;border:0;border-radius:9px;background:linear-gradient(#ffe393,#e2ae50);color:#382b1d;font-weight:900;cursor:pointer}
.wallet-connect-button:hover,.wallet-connect-button:focus-visible{filter:brightness(1.06);outline:2px solid #fff0b6;outline-offset:2px}
.wallet-state{margin:3px 0 0;color:#c4e5bb;font-size:12px;font-weight:800}
.wallet-address{margin:0;padding:10px;border-radius:8px;background:#071f19aa;overflow-wrap:anywhere}
.wallet-address span{display:block;margin-bottom:4px;color:#ffdf8a;font-size:10px;font-weight:800}
.wallet-address code{color:#f8f1d9;font-size:11px;word-break:break-all}
.wallet-error{min-height:16px;margin:0;color:#ffb4a7;font-size:11px;line-height:1.45}
.wallet-disconnect-button{align-self:flex-start;border:1px solid #ffffff42;border-radius:8px;padding:8px 11px;background:#ffffff0d;color:#fff4d9;font-weight:700;cursor:pointer}
.wallet-confirm-line{display:flex;align-items:flex-start;gap:8px;line-height:1.4}
.wallet-confirm-line input{margin:1px 0 0;accent-color:#e7b755}
@media(max-width:620px){.topbar{gap:8px}.wallet-open-button{padding:7px 9px;font-size:9px}.wallet-network-grid{grid-template-columns:1fr}.wallet-dialog{max-height:92vh;padding:17px}.wallet-dialog h2{font-size:21px}}

/* Stage 6 — signed wallet identity */
.wallet-auth-actions{display:grid;gap:7px;margin-top:4px}
.wallet-auth-actions[hidden]{display:none}
.wallet-auth-actions button{min-height:38px;border:1px solid #ffe08a;border-radius:8px;padding:8px 10px;background:#e7bd62;color:#382b1d;font-size:11px;font-weight:900;cursor:pointer}
.wallet-auth-actions button:disabled{opacity:.55;cursor:wait}
.wallet-linked-section{margin-top:18px;border-top:1px solid #ffffff2b;padding-top:12px}
.wallet-linked-section h3{font-size:16px}
.wallet-linked-section p{color:#d6e4ce;font-size:11px}
#wallet-linked-list{display:grid;gap:7px;padding:0;list-style:none}
#wallet-linked-list li{padding:9px;border:1px solid #ffffff2a;border-radius:8px;font-size:11px}
#wallet-linked-list code{word-break:break-all;color:#ffe08a}
.hive-interior{position:fixed;z-index:20;top:54px;right:0;bottom:0;left:0;display:grid;place-items:center;padding:clamp(12px,3vw,36px);background:#061811bb;backdrop-filter:blur(9px)}
.hive-interior[hidden]{display:none}
.hive-interior-card{display:grid;grid-template-rows:auto auto minmax(0,1fr);width:min(1120px,100%);height:min(820px,100%);overflow:hidden;border:1px solid #f1d58d;border-radius:24px;background:linear-gradient(160deg,#f7f0dc,#d9e4f0 65%,#c9d9e9);box-shadow:0 24px 70px #071c18a8}
.hive-interior-header{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:10px 18px;background:linear-gradient(110deg,#28744e,#174a38);border-bottom:3px solid #e8c76b;color:#fff5d8}
.hive-interior-heading{display:flex;align-items:center;gap:11px}
.hive-interior-icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid #f8dfa0;border-radius:11px;background:#edc265;color:#3e321e;font-size:23px;font-weight:900}
.hive-interior-heading small{display:block;color:#f4d98f;font-size:9px;font-weight:900;letter-spacing:.15em}
.hive-interior-heading strong{display:block;margin-top:2px;font-size:20px}
.hive-interior-close{display:grid;place-items:center;width:40px;height:40px;border:2px solid #fff6d7;border-radius:50%;background:#ae3f38;color:#fff;font-size:29px;line-height:1;cursor:pointer;box-shadow:0 3px 0 #762a29}
.hive-interior-close:hover{background:#c85245}
.hive-interior-location{margin:0;padding:10px 18px;border-bottom:1px solid #b7c6d8;background:#edf3fa;color:#304c37;font-size:13px;font-weight:800}
.hive-interior-room{display:grid;place-items:center;min-height:0;padding:12px;background:radial-gradient(ellipse at 50% 42%,#fff4d9 0,#dde8f2 70%)}
.hive-interior-room svg{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
@media(max-width:700px){.hive-interior{top:48px;padding:7px}.hive-interior-card{width:100%;height:calc(100% - 4px);border-radius:17px}.hive-interior-header{min-height:56px;padding:8px 12px}.hive-interior-heading strong{font-size:17px}.hive-interior-icon{width:32px;height:32px}.hive-interior-location{padding:8px 12px;font-size:11px}.hive-interior-room{padding:5px}.hive-interior-close{width:36px;height:36px}}


/* Interior da colmeia: faixa limpa, favos proporcionais e listas de abelhas */
.hive-interior-card{position:relative;display:flex;flex-direction:column;width:min(1120px,100%);height:min(820px,100%);overflow:hidden;border-radius:22px}
.hive-interior-main{position:relative;display:grid;grid-template-rows:auto auto minmax(0,1fr);flex:1;min-height:0}
.hive-economy-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;padding:7px 10px;background:#f1e2be;border-bottom:1px solid #c59646}
.hive-economy-card{position:relative;display:flex;align-items:center;gap:6px;min-width:0;min-height:44px;padding:5px 6px;border:1px solid #c49b50;border-radius:10px;background:linear-gradient(150deg,#fff4d5,#e8d2a0);box-shadow:0 2px 0 #aa844a55;color:#34493a;text-align:left}
button.hive-economy-card{font:inherit;cursor:pointer}
.hive-economy-card.is-bee-card{padding-right:17px;transition:transform .14s ease,filter .14s ease,box-shadow .14s ease}
.hive-economy-card.is-bee-card:hover,.hive-economy-card.is-bee-card:focus-visible{z-index:2;transform:translateY(-2px);filter:brightness(1.05);outline:2px solid #dfaa42;outline-offset:1px;box-shadow:0 4px 8px #70451b44}
.hive-economy-icon{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;background:linear-gradient(150deg,#ffdf86,#d89b38);color:#5e4217;font-size:14px;font-weight:900}
.hive-economy-copy{display:flex;flex-direction:column;min-width:0;line-height:1.04}
.hive-economy-copy small{overflow:hidden;color:#415847;font-size:8px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
.hive-economy-copy strong{margin-top:2px;color:#263c30;font-size:12px;line-height:1}
.hive-economy-copy em{overflow:hidden;margin-top:2px;color:#66766c;font-size:6px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.hive-reserve-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;padding:5px 10px;background:linear-gradient(180deg,#f1e2be,#ead7aa);border-bottom:1px solid #c59646}
.hive-reserve-card{display:grid;grid-template-columns:minmax(175px,1fr) minmax(250px,1.4fr) minmax(230px,1fr);align-items:center;gap:10px;min-width:0;padding:6px 10px;border:1px solid #b89753;border-radius:11px;background:linear-gradient(135deg,#fff4d8,#e8d3a4);box-shadow:0 2px 0 #94774355;color:#34493a}
.hive-reserve-card--safe{background:linear-gradient(135deg,#efe6d1,#d8c69b)}
.hive-reserve-heading{display:flex;align-items:center;gap:8px;min-width:0}
.hive-reserve-heading>span{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid #c49b50;border-radius:9px;background:linear-gradient(150deg,#ffdf86,#d89b38);font-size:18px}
.hive-reserve-heading small,.hive-reserve-heading strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hive-reserve-heading small{color:#91651d;font-size:7px;font-weight:900;letter-spacing:.08em}
.hive-reserve-heading strong{margin-top:2px;color:#263c30;font-size:13px}
.hive-reserve-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}
.hive-reserve-card dl>div{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 8px;border:1px solid #cfb77f;border-radius:7px;background:#fff8e6}
.hive-reserve-card dt{font-size:10px;font-weight:800}
.hive-reserve-card dd{margin:0;color:#234536;font-size:12px;font-weight:950}
.hive-reserve-card p{margin:0;color:#66766c;font-size:8px;line-height:1.3}
.hive-economy-arrow{position:absolute;right:5px;color:#9c6e24;font-size:17px;font-weight:900}
.hive-comb-inspector{position:absolute;z-index:5;right:50%;bottom:9px;display:flex;align-items:center;gap:8px;max-width:min(92%,520px);padding:7px 10px;border:1px solid #e8c26a;border-radius:11px;background:#183f32ee;box-shadow:0 4px 14px #18332155;color:#fff5d8;transform:translateX(50%)}
.hive-comb-inspector[hidden]{display:none}
.hive-comb-inspector>div{min-width:0}
.hive-comb-inspector strong{display:block;font-size:10px}
.hive-comb-inspector small{display:block;color:#f5e6c2;font-size:8px;line-height:1.3}
.hive-comb-inspector button{flex:0 0 auto;padding:6px 9px;border:1px solid #ffe39b;border-radius:8px;background:linear-gradient(#ffe18d,#e4ac48);color:#372719;font-size:9px;font-weight:900;cursor:pointer}
.hive-comb-inspector button:disabled{opacity:.55;cursor:not-allowed}
.hive-interior-room{position:relative;display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden;padding:6px;background:radial-gradient(ellipse at 50% 42%,#fff1d3 0,#d9e5ec 70%)}
.hive-interior-room svg{grid-area:1/1;display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
.hive-comb-overlay{position:absolute;z-index:2;top:50%;left:50%;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));width:min(62%,690px);aspect-ratio:2/1;transform:translate(-50%,-50%);perspective:1000px;pointer-events:none;filter:drop-shadow(0 10px 7px #42220e55)}
.hive-comb-overlay::before{position:absolute;inset:3% -4%;z-index:-1;border:2px solid #f4d17a;border-radius:46% 46% 14% 14% / 18% 18% 12% 12%;background:linear-gradient(155deg,#f9d17d,#bd792c 46%,#8b501b);box-shadow:inset 0 6px 12px #fff1b8aa,inset 0 -10px 16px #55300b77,0 4px 0 #75461d;content:"";transform:rotateX(7deg) scaleY(.9)}
.hive-comb-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;padding:0;border:0;background:transparent;color:#fff5d2;cursor:pointer;pointer-events:auto;transform-style:preserve-3d;transition:filter .16s ease,translate .16s ease}
.hive-comb-cell:hover,.hive-comb-cell:focus-visible{z-index:4;outline:none;filter:brightness(1.16);translate:0 -3px}
.hive-comb-cell[data-comb-row="1"],.hive-comb-cell[data-comb-row="3"]{translate:50% 0}
.comb-cell-hex{position:relative;display:grid;place-items:center;width:104%;height:88%;overflow:hidden;border:2px solid #f5d984;background:linear-gradient(145deg,#ffe69a 0%,#da9d3f 20%,#895018 21%,#60350f 100%);box-shadow:inset 0 3px 4px #fff9d6,inset 0 -7px 9px #3f210a99,0 3px 0 #8d5718,0 7px 8px #28170970;clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);transform:rotateX(8deg)}
.comb-cell-hex::before{position:absolute;inset:3px;border:1px solid #ffdf79;border-radius:inherit;background:linear-gradient(160deg,#815018 0%,#4d2c10 58%,#2c1a0b 100%);clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);content:""}
.comb-cell-face{position:absolute;inset:6px;z-index:1;background:radial-gradient(ellipse at 35% 18%,#9c6422 0,#61380f 56%,#39210c 100%);clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);box-shadow:inset 0 4px 7px #301b0c}
.comb-cell-face::after{position:absolute;inset:auto 0 0;height:var(--nectar-fill,0%);background:linear-gradient(0deg,#dc8d19,#f8c34a 72%,#ffe08b);box-shadow:0 0 8px #ffc64e88;content:"";transition:height .3s ease}
.hive-comb-cell.has-nectar .comb-cell-face{background:radial-gradient(ellipse at 30% 12%,#e9ae39 0,#9d5a12 48%,#4c2a0c 100%)}
.hive-comb-cell.is-locked .comb-cell-hex{border-color:#948269;background:linear-gradient(145deg,#e7d9ba,#97866c 35%,#554b3c 100%);box-shadow:inset 0 2px 4px #fff3d1,0 3px 0 #554b3e,0 7px 8px #28170973}
.hive-comb-cell.is-locked .comb-cell-hex::before{border-color:#b1a187;background:linear-gradient(#766b5b,#403a32)}
.hive-comb-cell.is-locked .comb-cell-face{background:linear-gradient(145deg,#8c806d,#4e463a)}
.hive-comb-cell.is-locked .comb-cell-quantity{color:#f2dfb3;font-size:clamp(6px,.56vw,8px)}
.hive-comb-cell.is-selected .comb-cell-hex{filter:brightness(1.15);outline:2px solid #fff2b1;outline-offset:2px}
.hive-comb-cell.is-ready .comb-cell-hex{animation:honey-cell-ready-pulse 1.25s ease-in-out infinite;box-shadow:inset 0 3px 5px #fff9d6,0 0 0 2px #fff0a3,0 0 13px 6px #ffdf58aa,0 3px 0 #8d5718,0 7px 8px #28170970}
.hive-comb-cell.is-ready::after{position:absolute;z-index:5;top:-3%;left:50%;padding:2px 5px;border:1px solid #fff0aa;border-radius:999px;background:#177042;color:#fff8d8;font-size:clamp(5px,.48vw,7px);font-weight:1000;line-height:1;letter-spacing:.04em;text-shadow:0 1px 2px #163525;content:"PRONTO";transform:translateX(-50%);animation:honey-cell-ready-label 1.25s ease-in-out infinite}
@keyframes honey-cell-ready-pulse{0%,100%{filter:brightness(1);transform:rotateX(8deg) scale(1)}50%{filter:brightness(1.3);transform:rotateX(8deg) scale(1.07)}}
@keyframes honey-cell-ready-label{0%,100%{opacity:.7}50%{opacity:1;box-shadow:0 0 10px #ffdf58}}
@media(prefers-reduced-motion:reduce){.hive-comb-cell.is-ready .comb-cell-hex,.hive-comb-cell.is-ready::after{animation:none}}
.comb-cell-lock{position:relative;z-index:2;width:12px;height:10px;margin-top:5px;border:2px solid #f0c858;border-radius:2px;background:#34281b;box-shadow:0 1px 2px #1c140d}
.comb-cell-lock::before{position:absolute;bottom:6px;left:1px;width:6px;height:6px;border:2px solid #f0c858;border-bottom:0;border-radius:5px 5px 0 0;content:""}
.comb-cell-quantity{position:relative;z-index:2;margin-top:1px;color:#fff8dd;font-size:clamp(7px,.68vw,9px);font-weight:950;line-height:1;text-shadow:0 1px 3px #301d0f,0 0 4px #301d0f;white-space:nowrap}
.hive-comb-cell.is-locked .comb-cell-quantity{font-size:clamp(6px,.56vw,8px)}
.comb-worker-bee{position:absolute;z-index:3;top:50%;right:7%;font-size:clamp(15px,2vw,23px);filter:drop-shadow(0 2px 2px #29170b99);pointer-events:none;animation:comb-bee-flight 7s ease-in-out infinite}
@keyframes comb-bee-flight{0%,100%{transform:translate3d(0,5px,0) rotate(-8deg)}45%{transform:translate3d(-10px,-14px,0) rotate(8deg)}75%{transform:translate3d(4px,2px,0) rotate(-5deg)}}
.hive-bee-directory{position:absolute;z-index:6;inset:64px 0 0;display:flex;flex-direction:column;min-height:0;padding:14px 18px 18px;background:linear-gradient(150deg,#f4e8c9,#dce7ed);color:#283b30}
.hive-bee-directory[hidden]{display:none}
.hive-bee-directory-header{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding-bottom:12px;border-bottom:1px solid #bda46e}
.hive-bee-directory-header button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #f4d47a;border-radius:10px;background:#e6b957;color:#392b17;font-size:27px;line-height:1;cursor:pointer}
.hive-bee-directory-header small{color:#91651d;font-size:9px;font-weight:900;letter-spacing:.14em}
.hive-bee-directory-header h2{margin:2px 0 0;color:#253c30;font-size:22px}
.hive-bee-directory-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;overflow:auto;padding:14px 0}
.hive-bee-roster-card{display:flex;align-items:center;gap:10px;min-height:70px;padding:10px;border:1px solid #c4a866;border-radius:14px;background:linear-gradient(145deg,#fff5dc,#e4d1a4);box-shadow:0 3px 0 #94774355}
.hive-bee-roster-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:linear-gradient(150deg,#ffe189,#dfa138);color:#694713;font-size:20px}
.hive-bee-roster-card strong,.hive-bee-roster-card small{display:block}
.hive-bee-roster-card strong{color:#283d30;font-size:14px}
.hive-bee-roster-card small{margin-top:3px;color:#5c6d60;font-size:11px}
.hive-bee-empty{align-self:start;max-width:640px;margin:12px 0;padding:16px;border:1px solid #c7a968;border-radius:14px;background:#fff5dc;color:#4c553e;font-size:14px;line-height:1.5}
@media(max-width:900px){
  .hive-economy-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px 7px}
  .hive-economy-card{min-height:40px;padding:4px}
  .hive-economy-copy em{font-size:7px}
  .hive-comb-overlay{width:min(76%,620px);aspect-ratio:2/1}
}
@media(max-width:600px){
  .hive-interior{top:48px;padding:5px}
  .hive-interior-card{width:100%;height:calc(100% - 2px);border-radius:15px}
  .hive-interior-header{min-height:54px;padding:7px 10px}
  .hive-interior-heading strong{font-size:16px}
  .hive-interior-icon{width:31px;height:31px}
  .hive-interior-main{grid-template-rows:auto auto minmax(220px,1fr)}
  .hive-economy-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:6px}
  .hive-reserve-stack{gap:4px;padding:4px 6px}
  .hive-reserve-card{grid-template-columns:minmax(0,1fr);gap:5px;padding:7px}
  .hive-reserve-heading strong{font-size:12px}
  .hive-reserve-card p{font-size:8px}
  .hive-economy-card{min-height:39px;padding:4px}
  .hive-economy-copy small{font-size:8px}
  .hive-economy-copy strong{font-size:12px}
  .hive-economy-copy em{font-size:7px}
  .hive-comb-inspector{right:50%;bottom:6px;max-width:96%;padding:6px 8px}
  .hive-comb-inspector small{font-size:8px}
  .hive-interior-room{padding:2px}
  .hive-comb-overlay{width:90%;aspect-ratio:1.3/1;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr))}
  .hive-comb-cell[data-mobile-row="6"]{grid-row:7}
  .hive-comb-cell[data-mobile-row="6"][data-mobile-column="0"]{grid-column:4}
  .hive-comb-cell[data-mobile-row="6"][data-mobile-column="1"]{grid-column:5}
  .hive-comb-cell[data-comb-row="1"],.hive-comb-cell[data-comb-row="3"]{translate:none}
  .hive-comb-cell[data-mobile-row="1"],.hive-comb-cell[data-mobile-row="3"],.hive-comb-cell[data-mobile-row="5"]{translate:50% 0}
  .comb-cell-hex{width:110%;height:92%}
  .comb-cell-quantity{font-size:6px}
  .hive-comb-cell.is-locked .comb-cell-quantity{font-size:5px}
  .comb-cell-lock{width:9px;height:8px;margin-top:4px}
  .comb-cell-lock::before{bottom:5px;width:5px;height:5px}
  .comb-worker-bee{right:2%;font-size:16px}
  .hive-bee-directory{inset:54px 0 0;padding:10px}
  .hive-bee-directory-header h2{font-size:18px}
  .hive-bee-directory-content{grid-template-columns:1fr;gap:7px;padding:10px 0}
  .hive-bee-roster-card{min-height:58px;padding:8px}
  .hive-bee-roster-icon{flex-basis:32px;width:32px;height:32px;font-size:17px}
  .hive-bee-roster-card strong{font-size:12px}
  .hive-bee-roster-card small,.hive-bee-empty{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.comb-worker-bee{animation:none}}

/* Mapa-múndi: ponto de entrada compartilhado após autenticação */
.world-map-screen{position:relative;isolation:isolate;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(10px,1.8vh,18px);width:100%;height:100%;min-height:540px;padding:clamp(14px,2.5vw,34px);overflow:hidden;background:radial-gradient(ellipse at 50% 46%,#225044 0,#173a31 74%,#102b27 100%);color:#fff3d4}
.world-map-screen::before,.world-map-screen::after{position:absolute;z-index:-1;border:1px solid #f2d17a1a;border-radius:50%;content:"";pointer-events:none}
.world-map-screen::before{width:min(80vw,1050px);height:min(80vw,1050px);top:-55%;left:-28%}
.world-map-screen::after{width:min(70vw,870px);height:min(70vw,870px);right:-30%;bottom:-55%}
.world-map-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.world-map-eyebrow{margin:0 0 5px;color:#f2d27b;font-size:10px;font-weight:900;letter-spacing:.2em}
.world-map-heading h1{margin:0;color:#fff6db;font-size:clamp(26px,3.1vw,42px);line-height:1.05;letter-spacing:-.035em;text-shadow:0 4px 18px #081c18aa}
.world-map-intro{margin:7px 0 0;color:#d1e0c9;font-size:clamp(12px,1.15vw,15px)}
.world-map-status{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:8px 12px;border:1px solid #c8d9ae55;border-radius:999px;background:#12392cbb;color:#e6efc8;font-size:9px;font-weight:900;letter-spacing:.12em}
.world-map-frame{position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid #e9ce8066;border-radius:22px;background:#0b486b;box-shadow:0 16px 44px #071b1870,inset 0 0 0 5px #ffffff0a}
.world-map-frame::after{position:absolute;z-index:1;inset:0;border:1px solid #d6f0d21c;border-radius:inherit;box-shadow:inset 0 0 70px #09283b44;content:"";pointer-events:none}
.world-map-art{position:relative;z-index:0;display:block;width:100%;height:100%;border:0}
.world-map-country-picker{position:absolute;z-index:20;top:clamp(70px,14vh,140px);left:clamp(12px,2.5vw,34px);color:#fff4d5}
.world-map-country-picker summary{display:flex;align-items:center;gap:7px;min-height:38px;padding:0 14px;border:1px solid #f2d17b;border-radius:999px;background:#143d31ee;box-shadow:0 4px 14px #06253a55;color:#fff2c8;font-size:11px;font-weight:900;cursor:pointer;list-style:none}
.world-map-country-picker summary::-webkit-details-marker{display:none}
.world-map-country-picker summary::after{content:"⌄";color:#f2d27b;font-size:14px}
.world-map-country-picker[open] summary::after{content:"⌃"}
.world-map-country-picker summary:hover,.world-map-country-picker summary:focus-visible{background:#1c583d;outline:2px solid #ffe8a8;outline-offset:2px}
.world-map-country-panel{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px;width:min(290px,calc(100vw - 56px));max-height:min(68vh,480px);min-height:0;margin-top:8px;padding:11px;overflow:hidden;border:1px solid #d9c47b99;border-radius:14px;background:#143d31f5;box-shadow:0 12px 30px #071d1ad9}
.world-map-country-panel label{font-size:10px;font-weight:900;color:#f2d27b}
.world-map-country-panel input{width:100%;height:38px;padding:0 10px;border:1px solid #a9ba8b;border-radius:9px;background:#f1f2dc;color:#15372d;font:inherit;font-size:12px}
.world-map-country-list{display:grid;min-height:0;gap:3px;overflow-y:auto;overscroll-behavior:contain;padding-right:6px;scrollbar-width:thin;scrollbar-color:#d6ae58 #123a2e}
.world-map-country-option{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:33px;padding:5px 8px;border:1px solid #e0cf8a33;border-radius:8px;background:#174837;color:#f7f0d1;text-align:left;cursor:pointer}
.world-map-country-option:hover,.world-map-country-option:focus-visible{border-color:#f2d27b;background:#236044;outline:none}
.world-map-country-option[hidden]{display:none}
.world-map-country-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:750}
.world-map-country-option small{flex:0 0 auto;color:#f2d27b;font-size:10px;font-variant-numeric:tabular-nums;font-weight:800}
.world-map-compass{position:absolute;z-index:2;top:14px;right:15px;display:grid;justify-items:center;gap:1px;width:42px;padding:6px 0;border:1px solid #d1e5d075;border-radius:999px;background:#123a43aa;color:#e4f1d7;pointer-events:none}
.world-map-compass span,.world-map-compass small{font-size:7px;font-weight:900;letter-spacing:.08em}
.world-map-compass b{color:#f2d27b;font-size:16px;line-height:1}
.world-map-footnote{margin:0;color:#c7d8c2;font-size:10px;line-height:1.4;text-align:right}
@media(max-width:700px){
  .world-map-screen{gap:10px;min-height:540px;padding:12px}
  .world-map-heading{align-items:center}
  .world-map-eyebrow{font-size:8px;letter-spacing:.15em}
  .world-map-heading h1{font-size:27px}
  .world-map-intro{max-width:260px;font-size:11px;line-height:1.35}
  .world-map-status{gap:5px;padding:7px 9px;font-size:7px}
  .world-map-status .status-dot{width:6px;height:6px}
  .world-map-frame{border-radius:16px}
  .world-map-art{object-fit:contain;background:#0b486b}
  .world-map-country-picker{top:clamp(52px,12vh,90px);left:12px}
  .world-map-country-picker summary{min-height:34px;padding:0 11px;font-size:10px}
  .world-map-country-panel{max-height:min(62vh,400px)}
  .world-map-compass{top:8px;right:8px;width:32px;padding:4px 0}
  .world-map-compass b{font-size:13px}
  .world-map-footnote{font-size:8px;text-align:left}
}




.world-map-player-menu{position:absolute;z-index:4;top:clamp(32px,5vh,44px);right:clamp(14px,2.5vw,34px);display:flex;align-items:center;gap:9px;min-height:38px;padding:5px 11px 5px 6px;border:1px solid #f2d17b;border-radius:999px;background:#143d31ed;color:#fff2c8;box-shadow:0 5px 16px #06253a66;font-size:10px;font-weight:900;cursor:pointer;transition:filter .16s,transform .16s}.world-map-player-menu:hover{filter:brightness(1.16);transform:translateY(-1px)}.world-map-player-menu:focus-visible{outline:2px solid #fff0a3;outline-offset:3px}.player-menu-avatar-mini{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f2d27b;color:#273b27;font-size:12px;font-weight:950}.world-map-player-menu b{color:#f2d27b;font-size:14px}
.player-menu-screen{position:relative;isolation:isolate;width:100%;height:100%;min-height:540px;overflow:auto;padding:clamp(18px,3vw,40px);background:radial-gradient(ellipse at 14% 4%,#285544 0,#183b31 52%,#102b27 100%);color:#fff3d4}.player-menu-header{display:flex;align-items:center;gap:15px;max-width:1000px;margin:0 auto 26px}.player-menu-header h1{margin:0;color:#fff6db;font-size:clamp(28px,4vw,44px);line-height:1.04;letter-spacing:-.035em}.player-menu-header p:last-child{margin:8px 0 0;color:#d1e0c9;font-size:13px}.player-menu-back{display:grid;place-items:center;flex:0 0 auto;width:43px;height:43px;border:1px solid #f2d17b88;border-radius:50%;background:#143d31;color:#ffe9ad;font-size:24px;cursor:pointer}.player-profile-card,.player-map-summary{max-width:1000px;margin:0 auto 16px;border:1px solid #e4cc806b;border-radius:18px;background:linear-gradient(130deg,#194638f2,#17392ff0);box-shadow:0 14px 38px #071c1766}.player-profile-card{display:flex;align-items:center;gap:18px;padding:22px}.player-profile-avatar{display:grid;place-items:center;flex:0 0 auto;width:82px;height:82px;border:3px solid #f4d77f;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff1bb,#d9a947 78%);color:#37412a;font-size:34px;font-weight:950;box-shadow:0 7px 20px #061d1988}.player-profile-identity{min-width:0}.player-profile-identity small,.player-map-summary-heading small{color:#f2d27b;font-size:9px;font-weight:950;letter-spacing:.18em}.player-profile-identity h2{margin:3px 0 5px;color:#fff6dc;font-size:25px}.player-profile-identity p{margin:0;color:#d1e0c9;font-size:11px;overflow-wrap:anywhere}.player-profile-identity code{color:#f8e9bf;font-size:10px}.player-profile-status{display:flex;align-items:center;gap:7px;margin-left:auto;color:#dceacb;font-size:9px;font-weight:900;letter-spacing:.12em;white-space:nowrap}.player-profile-status .status-dot{width:7px;height:7px}.player-map-summary{padding:20px}.player-map-summary-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:14px;border-bottom:1px solid #f2d27b32}.player-map-summary-heading h2{margin:4px 0 0;color:#fff6db;font-size:25px}.player-map-flag{display:grid;place-items:center;width:52px;height:38px;border:1px solid #f2d27b88;border-radius:9px;background:#143d31;color:#ffe9ad;font-size:12px;font-weight:950;letter-spacing:.12em}.player-map-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding-top:14px}.player-map-stat-grid article{display:grid;gap:8px;min-height:74px;padding:13px;border:1px solid #e4cc8040;border-radius:12px;background:#102f27aa}.player-map-stat-grid small{color:#c5d5ba;font-size:10px}.player-map-stat-grid b{color:#fff2c8;font-size:16px}.player-menu-actions{display:flex;gap:10px;max-width:1000px;margin:20px auto}.player-menu-actions button{min-height:43px;padding:0 16px;border:1px solid #f2d17b;border-radius:999px;background:#143d31;color:#fff2c8;font-size:11px;font-weight:950;cursor:pointer}.player-menu-actions button:hover,.player-menu-back:hover{filter:brightness(1.14)}.player-profile-note{max-width:1000px;margin:14px auto;color:#bdcfb6;font-size:10px;line-height:1.5}.hud-nav #player-menu-back{border-color:#f2d17b;background:#9b7737;color:#fff8df}.hud-nav #player-menu-back:hover{filter:brightness(1.15)}
@media(max-width:700px){.world-map-player-menu{top:8px;right:8px;min-height:33px;gap:6px;padding:4px 9px 4px 4px;font-size:8px}.player-menu-avatar-mini{width:23px;height:23px;font-size:10px}.player-menu-screen{min-height:540px;padding:16px}.player-menu-header{align-items:flex-start;gap:10px;margin-bottom:18px}.player-menu-header h1{font-size:27px}.player-menu-header p:last-child{max-width:250px;font-size:10px}.player-menu-back{width:35px;height:35px;font-size:20px}.player-profile-card{gap:12px;padding:15px}.player-profile-avatar{width:58px;height:58px;font-size:25px}.player-profile-identity h2{font-size:20px}.player-profile-status{align-self:flex-start;margin:5px 0 0 auto;font-size:7px}.player-map-summary{padding:15px}.player-map-summary-heading h2{font-size:21px}.player-map-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.player-map-stat-grid article{min-height:64px;padding:10px}.player-menu-actions{flex-wrap:wrap}.player-menu-actions button{flex:1;min-width:145px;padding:0 9px;font-size:10px}.player-profile-note{font-size:9px}}
@media(max-width:400px){.player-profile-card{flex-wrap:wrap}.player-profile-status{flex-basis:100%;margin-left:70px}.world-map-player-menu span:not(.player-menu-avatar-mini){display:none}}

.country-entry-message{min-height:1.2em;margin:6px 0;color:#ffe5a1;font-size:12px;text-align:center}

.world-map-country-picker[open]{position:absolute;z-index:20;top:clamp(70px,14vh,140px);right:auto;bottom:auto;left:clamp(12px,2.5vw,34px);width:min(290px,calc(100vw - 24px));max-height:calc(100dvh - 140px);overflow:hidden}
.world-map-country-picker[open] .world-map-country-panel{max-height:calc(100dvh - 200px)}
.world-map-country-picker[open] .world-map-country-list{height:auto;max-height:min(48dvh,calc(100dvh - 320px),420px);min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:auto}
@media(max-width:700px){.world-map-country-picker[open]{top:clamp(52px,12vh,90px);left:12px;max-height:calc(100dvh - 120px)}.world-map-country-picker[open] .world-map-country-panel{max-height:calc(100dvh - 180px)}}


/* Player deposits in NOWPayments custody and internal GFT approval */
.deposit-page{max-width:980px;margin:20px auto;padding:24px;border:1px solid #f5df9c66;border-radius:20px;background:linear-gradient(145deg,#17392feF,#102c25f2);color:#fff6dc;box-shadow:0 20px 60px #071d1788}
.deposit-page .player-menu-header{margin-bottom:18px}
.deposit-tabs{display:flex;gap:8px;margin:18px 0 14px}.deposit-tabs button{min-height:40px;padding:9px 16px;border:1px solid #f1da95;border-radius:10px;background:#183c31;color:#f8e9bc;font-weight:800;cursor:pointer}.deposit-tabs button.is-active{background:linear-gradient(#ffe393,#e2ae50);color:#3c3325}.deposit-panel[hidden]{display:none!important}
.deposit-balance-card{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;border:1px solid #f5df9c66;border-radius:14px;background:#0d2d25;margin-bottom:16px}
.deposit-balance-card small{color:#ffe08a;font-size:10px;font-weight:900;letter-spacing:.12em}
.deposit-balance-card h2{margin:5px 0 0;font-size:28px}.deposit-balance-card p{margin:0;color:#f3d991;text-align:right;font-size:12px;line-height:1.7;font-weight:800}
.deposit-wallet-status{margin:0;padding:10px 12px;border:1px solid #f5df9c44;border-radius:9px;background:#0f2d24;color:#ffe08a!important;font-weight:800}
.deposit-form .deposit-link-button{width:100%;min-height:44px;padding:10px 16px;border:1px solid #ffe9ac;border-radius:10px;background:linear-gradient(#ffe393,#e2ae50);color:#3c3325;font-weight:900;font-size:13px;cursor:pointer}
.deposit-form .deposit-link-button:disabled{opacity:.6;cursor:wait}
.deposit-link-feedback{min-height:1.3em;margin:0!important;color:#d1dec7!important;font-weight:800}
.deposit-link-feedback[data-state="success"]{color:#a9e7ac!important}
.deposit-link-feedback[data-state="error"]{color:#ffb4a7!important}
.deposit-form,.manual-withdraw-card{display:grid;gap:12px;padding:20px;border:1px solid #f5df9c55;border-radius:15px;background:#18382ff2}.deposit-form h2,.deposit-history h2,.manual-withdraw-card h2{margin:0;font-size:19px}.deposit-form p,.manual-withdraw-card p,.deposit-history p{margin:0;color:#e1e9d2;font-size:13px;line-height:1.55}
.deposit-form label{display:grid;gap:6px;color:#f5e9c8;font-size:12px;font-weight:800}
.deposit-form input,.deposit-form select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #eedca17a;border-radius:9px;background:#0f2d24;color:white;font:inherit}
.deposit-form small{color:#d1dec7;font-size:11px;line-height:1.5}
.deposit-conversion-preview{padding:10px 12px;border-radius:9px;background:#0f2d24;color:#ffe08a!important;font-weight:800}
.deposit-submit{min-height:44px;padding:10px 16px;border:1px solid #ffe9ac;border-radius:10px;background:linear-gradient(#ffe393,#e2ae50);color:#3c3325;font-weight:900;font-size:13px;cursor:pointer}
.deposit-submit:disabled{opacity:.6;cursor:wait}
.deposit-feedback{min-height:18px;color:#ffe08a!important}
.deposit-history{display:grid;gap:10px;margin-top:18px}
.deposit-history-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;border:1px solid #f5df9c44;border-radius:10px;background:#18382f}
.deposit-history-item div{display:grid;gap:5px}.deposit-history-item small{color:#d1dec7;font-size:11px}.deposit-history-item span{color:#ffe08a;font-size:11px;font-weight:800;text-align:right}
.manual-withdraw-card{margin-top:8px;border-color:#ffe08a88}
@media(max-width:620px){.deposit-page{margin:10px;padding:16px}.deposit-balance-card{align-items:flex-start;flex-direction:column}.deposit-balance-card p{text-align:left}.deposit-history-item{align-items:flex-start;flex-direction:column}.deposit-history-item span{text-align:left}}

/* Menu do jogador: saldos informativos e atalhos para as próximas áreas. */
.player-currency-card{align-content:start}
.player-currency-card span{color:#d1dec7;font-size:10px;line-height:1.35}
.player-feature-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:1000px;margin:0 auto 12px}
.player-feature-actions button{min-height:48px;padding:8px 14px;border:1px solid #f2d17b;border-radius:12px;background:#143d31;color:#fff2c8;font-size:12px;font-weight:950;cursor:pointer;box-shadow:0 7px 18px #071c1740}
.player-feature-actions button:hover{filter:brightness(1.14)}
.player-feature-placeholder{display:grid;place-content:center;justify-items:center;gap:9px;max-width:1000px;min-height:240px;margin:0 auto 16px;padding:28px;border:1px solid #e4cc806b;border-radius:18px;background:linear-gradient(130deg,#194638f2,#17392ff0);text-align:center;box-shadow:0 14px 38px #071c1766}
.player-feature-placeholder small{color:#f2d27b;font-size:10px;font-weight:950;letter-spacing:.16em}
.player-feature-placeholder h2{margin:0;color:#fff6db;font-size:26px}
.player-feature-placeholder p{max-width:520px;margin:0;color:#d1e0c9;font-size:13px;line-height:1.6}
@media(max-width:700px){.player-feature-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.player-feature-actions button{min-height:44px;padding:8px;font-size:11px}.player-feature-placeholder{min-height:200px;padding:20px}}

/* Baú: vitrine decorativa, com volumes em perspectiva e movimento suave. */
.treasure-vault-page{padding-bottom:42px}
.treasure-vault-hero{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(300px,1.1fr);align-items:center;gap:24px;max-width:1000px;min-height:280px;margin:0 auto 22px;padding:24px 30px;border:1px solid #e4cc8075;border-radius:20px;background:radial-gradient(ellipse at 22% 45%,#3d6848 0,#204c3b 40%,#15382f 100%);box-shadow:0 18px 44px #071c1766;overflow:hidden}
.treasure-hero-stage{position:relative;display:grid;place-items:center;min-height:240px;perspective:900px}
.treasure-hero-stage:before{content:"";position:absolute;width:84%;height:62%;border-radius:50%;background:radial-gradient(ellipse,#e4ba5966 0,transparent 72%);filter:blur(13px);animation:treasure-aura 4s ease-in-out infinite}
.treasure-chest-art{position:relative;z-index:1;display:block;width:min(100%,360px);height:auto;overflow:visible;filter:drop-shadow(0 20px 18px #091c1380);transform-style:preserve-3d;animation:treasure-float 5.4s ease-in-out infinite}
.treasure-chest-art .treasure-lid{transform-box:fill-box;transform-origin:50% 100%;animation:treasure-lid-breathe 5.4s ease-in-out infinite}
.treasure-chest-glint{transform-box:fill-box;transform-origin:center;animation:treasure-glint 3s ease-in-out infinite}
.treasure-spark{position:absolute;z-index:2;color:#ffefae;font-size:22px;text-shadow:0 0 16px #ffd665b8;animation:treasure-glint 3s ease-in-out infinite}
.treasure-spark-one{top:16%;left:18%}.treasure-spark-two{top:27%;right:15%;animation-delay:-1s}.treasure-spark-three{bottom:20%;left:12%;font-size:15px;animation-delay:-2s}
.treasure-vault-copy{position:relative;z-index:2;max-width:470px}
.treasure-vault-copy>small,.treasure-chest-section-heading small{color:#f2d27b;font-size:9px;font-weight:950;letter-spacing:.18em}
.treasure-vault-copy h2{margin:9px 0;color:#fff6db;font-size:clamp(25px,3vw,36px);line-height:1.08}
.treasure-vault-copy p{max-width:430px;margin:0;color:#d1e0c9;font-size:13px;line-height:1.7}
.treasure-chest-section{max-width:1000px;margin:0 auto}
.treasure-chest-section-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 11px}
.treasure-chest-section-heading h2{margin:4px 0 0;color:#fff6db;font-size:22px}
.treasure-chest-section-heading>span{display:grid;place-items:center;width:34px;height:34px;border:1px solid #e4cc8070;border-radius:50%;background:#15392e;color:#f5d57c;font-size:12px;font-weight:950}
.treasure-chest-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.treasure-chest-card{position:relative;display:grid;justify-items:center;gap:5px;min-width:0;padding:13px 9px 14px;border:1px solid #e4cc8055;border-radius:15px;background:linear-gradient(145deg,#1c4939,#14352d 72%);box-shadow:0 10px 25px #071c1744;overflow:hidden;animation:treasure-card-float 5s ease-in-out infinite;animation-delay:var(--chest-delay,0s)}
.treasure-chest-card:before{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,#fff0b98c,transparent)}
.treasure-chest-card-art{display:grid;place-items:center;width:100%;min-height:116px}
.treasure-chest-card-art .treasure-chest-art{width:min(100%,175px);filter:drop-shadow(0 10px 10px #061b1490)}
.treasure-chest-card h3{margin:0;color:#fff2ca;font-size:14px;font-weight:900}
.treasure-back-action{margin-top:20px}
@keyframes treasure-float{0%,100%{transform:translateY(2px) rotateY(-4deg) rotateZ(-1deg)}50%{transform:translateY(-9px) rotateY(4deg) rotateZ(1deg)}}
@keyframes treasure-card-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes treasure-lid-breathe{0%,100%{transform:translateY(0) rotateX(0)}50%{transform:translateY(-2px) rotateX(-3deg)}}
@keyframes treasure-aura{0%,100%{opacity:.55;transform:scale(.88)}50%{opacity:1;transform:scale(1.08)}}
@keyframes treasure-glint{0%,75%,100%{opacity:.48;transform:scale(.8)}84%{opacity:1;transform:scale(1.25)}}
@media(max-width:800px){.treasure-vault-hero{grid-template-columns:1fr;gap:4px;padding:18px 22px}.treasure-hero-stage{min-height:215px}.treasure-hero-stage .treasure-chest-art{width:min(82%,320px)}.treasure-vault-copy{max-width:none;text-align:center}.treasure-vault-copy p{margin-inline:auto}.treasure-chest-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.treasure-vault-page{padding:14px}.treasure-vault-hero{margin-bottom:18px;padding:12px 16px 18px}.treasure-hero-stage{min-height:185px}.treasure-chest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.treasure-chest-card{padding:10px 7px 12px}.treasure-chest-card-art{min-height:104px}.treasure-chest-card-art .treasure-chest-art{width:min(100%,155px)}.treasure-chest-section-heading h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.treasure-chest-art,.treasure-chest-art .treasure-lid,.treasure-chest-glint,.treasure-chest-card,.treasure-hero-stage:before,.treasure-spark{animation:none}}


/* Estoque e preço dos baús: apresentação dos limites definidos. */
.treasure-vault-copy strong{color:#ffdc82}
.treasure-queen-stock,.treasure-chest-stock{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#d4e2cb;font-size:11px}
.treasure-queen-stock{max-width:340px;margin-top:16px}
.treasure-queen-stock b,.treasure-chest-stock b{color:#fff2cb;font-size:13px;font-variant-numeric:tabular-nums}
.treasure-chest-progress{display:block;width:100%;height:8px;margin:4px 0 2px;overflow:hidden;border:0;border-radius:999px;background:#0c271f}
.treasure-chest-progress::-webkit-progress-bar{border-radius:999px;background:#0c271f}
.treasure-chest-progress::-webkit-progress-value{border-radius:999px;background:linear-gradient(90deg,#d69b3c,#ffe58f)}
.treasure-chest-progress::-moz-progress-bar{border-radius:999px;background:linear-gradient(90deg,#d69b3c,#ffe58f)}
.treasure-queen-progress{max-width:340px}
.treasure-chest-price{color:#ffe18b;font-size:13px;font-weight:950}
.treasure-chest-price span{color:#c9d9c4;font-size:9px;font-weight:600}
.treasure-chest-stock{width:100%;margin-top:3px;font-size:10px}
.treasure-sales-note{max-width:720px;margin:12px 0 0;color:#c7d8c3;font-size:11px;line-height:1.5}
@media(max-width:820px){.treasure-chest-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.treasure-vault-hero{grid-template-columns:1fr;gap:0;padding:15px 16px}.treasure-hero-stage{min-height:190px}.treasure-vault-copy{padding:0 3px 8px}.treasure-vault-copy p{font-size:12px}.treasure-chest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.treasure-chest-card{padding:11px 8px}.treasure-chest-card h3{min-height:34px;text-align:center;font-size:12px}.treasure-chest-card-art{min-height:96px}.treasure-chest-card-art .treasure-chest-art{max-width:150px}}
@media(prefers-reduced-motion:reduce){.treasure-chest-card,.treasure-chest-card .treasure-chest-art,.treasure-chest-card .treasure-lid{animation:none!important}}

/* Prévia animada e compra persistente dos baús. */
.treasure-wallet-line{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 16px;padding:12px 16px;border:1px solid #e4cc8055;border-radius:12px;background:#0d2d24;color:#d8e6d0;font-size:12px}
.treasure-wallet-line b{color:#ffe18b}.treasure-wallet-line [role=status]{color:#ffe18b}
.treasure-chest-card{gap:8px}
.treasure-buy-button,.treasure-result-again,.treasure-open-button{min-height:34px;padding:8px 12px;border:1px solid #e1c36c;border-radius:999px;background:linear-gradient(140deg,#ffe18a,#d69a3b);color:#173627;font:inherit;font-size:10px;font-weight:950;cursor:pointer;transition:transform .18s ease,filter .18s ease}
.treasure-buy-button{width:100%}.treasure-queen-buy,.treasure-queen-open{margin-top:10px;max-width:280px}.treasure-open-button{width:100%;border-color:#f7dc83;background:linear-gradient(135deg,#f5d878,#bf852f);color:#183528}.treasure-open-button:disabled{cursor:not-allowed;opacity:.5;filter:saturate(.45)}.treasure-odds-note{margin:2px 0 14px;padding:10px 14px;border:1px solid #e4cc8055;border-radius:10px;background:#0d2d24;color:#e6e9cf;font-size:11px;line-height:1.55}.treasure-odds-note strong{margin-right:5px;color:#ffe18b}.treasure-chest-unopened{margin:-3px 0 2px;color:#ffe18b}
.treasure-buy-button:hover,.treasure-result-again:hover,.treasure-result-collection:hover,.treasure-open-button:not(:disabled):hover{filter:brightness(1.08);transform:translateY(-2px)}
.treasure-buy-button:disabled{cursor:not-allowed;opacity:.52;filter:saturate(.55);transform:none}
.treasure-result-dialog{position:fixed;inset:0;width:min(520px,calc(100vw - 28px));max-width:none;max-height:min(92vh,700px);margin:auto;padding:25px 24px 22px;overflow:auto;border:1px solid #f5d777;border-radius:24px;background:radial-gradient(ellipse at 50% 20%,#315d3e,#17392e 65%);color:#fff4d3;text-align:center;box-shadow:0 26px 90px #000b}
.treasure-result-dialog::backdrop{background:#061710d9;backdrop-filter:blur(5px)}
.treasure-result-close{position:absolute;top:9px;right:12px;width:34px;height:34px;border:1px solid #f2d37b88;border-radius:50%;background:#0d2a21;color:#fff2c6;font-size:24px;cursor:pointer}
.treasure-result-kicker{margin:0;color:#ffdb77;font-size:10px;font-weight:950;letter-spacing:.18em}
.treasure-result-dialog h2{margin:5px 0 7px;color:#fff2cb;font-size:24px}
.treasure-result-description{max-width:350px;margin:0 auto 14px;color:#d6e4cf;font-size:12px;line-height:1.55}
.treasure-result-scene{position:relative;display:grid;place-items:center;min-height:285px;margin:0 auto 7px;isolation:isolate}
.treasure-result-scene::before{position:absolute;z-index:-1;width:250px;height:200px;border-radius:50%;background:radial-gradient(ellipse,#ffcf53aa,transparent 70%);content:"";opacity:.35}
.treasure-result-chest{position:absolute;left:50%;bottom:22px;width:min(82%,330px);transform:translateX(-50%);filter:drop-shadow(0 18px 16px #06170d99)}
.treasure-result-chest .treasure-chest-art{width:100%;animation:treasure-result-idle 2.4s ease-in-out infinite}
.treasure-result-scene.is-opening .treasure-result-chest .treasure-lid{transform-box:fill-box;transform-origin:50% 100%;animation:treasure-lid-open .78s cubic-bezier(.2,.8,.25,1) forwards}
.treasure-result-burst{position:absolute;z-index:3;top:7px;color:#ffea9e;font-size:32px;letter-spacing:22px;opacity:0;transform:scale(.3)}
.treasure-result-scene.is-opening .treasure-result-burst{animation:treasure-burst .95s ease-out .6s forwards}
.treasure-result-scene.is-opening::before{animation:treasure-light-pulse 1.3s ease-out .42s both}
@keyframes treasure-result-idle{0%,100%{transform:translateY(0) rotateY(-3deg)}50%{transform:translateY(-7px) rotateY(3deg)}}
@keyframes treasure-lid-open{0%{transform:rotateX(0) translateY(0)}55%{transform:rotateX(48deg) translateY(-14px)}100%{transform:rotateX(72deg) translateY(-24px)}}
@keyframes treasure-burst{0%{opacity:0;transform:scale(.3) rotate(-25deg)}40%{opacity:1;transform:scale(1.3) rotate(8deg)}100%{opacity:0;transform:scale(1.8) rotate(25deg)}}
@keyframes treasure-light-pulse{0%{opacity:.25;transform:scale(.5)}45%{opacity:1;transform:scale(1.18)}100%{opacity:.48;transform:scale(1)}}
@media(max-width:560px){.treasure-result-dialog{padding:22px 15px 18px}.treasure-result-scene{min-height:255px}.treasure-chest-card{gap:7px}}
@media(prefers-reduced-motion:reduce){.treasure-result-chest .treasure-chest-art,.treasure-result-scene.is-opening *,.treasure-result-scene.is-opening::before{animation-duration:.01ms!important;animation-iteration-count:1!important}}

.treasure-result-close{z-index:10}

/* Raridades visuais nos personagens animados dos baús. */
.treasure-result-pack{position:absolute;z-index:3;left:50%;bottom:78px;width:min(48%,176px);height:min(48vw,176px);max-height:176px;opacity:0;transform:translateX(-50%);overflow:hidden;filter:drop-shadow(0 12px 14px #06160e99);pointer-events:none}
.treasure-prize-stage{position:relative;display:block;width:100%;height:100%;isolation:isolate}
.treasure-rarity-common{--rarity-color:#fffdf4;--rarity-soft:#fffdf477;--rarity-mark:'✧'}
.treasure-rarity-uncommon{--rarity-color:#72e5a2;--rarity-soft:#72e5a255;--rarity-mark:'✦'}
.treasure-rarity-rare{--rarity-color:#69cfff;--rarity-soft:#69cfff66;--rarity-mark:'◆'}
.treasure-rarity-epic{--rarity-color:#8794ff;--rarity-soft:#8794ff77;--rarity-mark:'✦'}
.treasure-rarity-legendary{--rarity-color:#ff9a3d;--rarity-soft:#ff9a3d88;--rarity-mark:'♛'}
.treasure-prize-aura{position:absolute;z-index:0;inset:14%;border:2px solid var(--rarity-color);border-radius:50%;background:radial-gradient(ellipse,var(--rarity-soft),transparent 72%);box-shadow:0 0 18px var(--rarity-soft),inset 0 0 14px var(--rarity-soft);animation:treasure-rarity-pulse 1.6s ease-in-out infinite}
.treasure-prize-aura:before{position:absolute;top:-10%;right:3%;color:var(--rarity-color);content:var(--rarity-mark);font-size:18px;font-weight:950;text-shadow:0 0 10px var(--rarity-color);animation:treasure-rarity-mark 1.6s ease-in-out infinite}
.treasure-prize-aura:after{position:absolute;inset:-11%;border:1px solid var(--rarity-color);border-radius:50%;content:"";opacity:.7}
.treasure-rarity-rare .treasure-prize-aura{border-style:double;border-width:3px}
.treasure-rarity-rare .treasure-prize-aura:after{inset:-16%;border-style:dashed;animation:treasure-rarity-orbit 7s linear infinite}
.treasure-rarity-epic .treasure-prize-aura{border-style:dotted;border-width:3px}
.treasure-rarity-epic .treasure-prize-aura:after{inset:-18%;border-width:2px;border-style:dotted;animation:treasure-rarity-orbit 5s linear infinite}
.treasure-rarity-legendary .treasure-prize-aura{border-style:double;border-width:4px;box-shadow:0 0 25px var(--rarity-soft),inset 0 0 20px var(--rarity-soft)}
.treasure-rarity-legendary .treasure-prize-aura:after{inset:-19%;border-width:2px;border-style:double;animation:treasure-rarity-orbit 8s linear infinite}
.treasure-prize-art{position:absolute;z-index:2;inset:0;display:block;width:100%;height:100%;background-image:var(--atlas-sheet);background-repeat:no-repeat;background-size:400% 300%;background-position:0% var(--atlas-y);filter:drop-shadow(0 0 6px var(--rarity-soft));animation:treasure-prize-frames .92s steps(1,end) infinite}
.treasure-prize-art:after{position:absolute;inset:0;content:"";pointer-events:none;background:var(--rarity-color);opacity:.58;mix-blend-mode:normal;-webkit-mask-image:var(--rarity-mask);mask-image:var(--rarity-mask);-webkit-mask-mode:alpha;mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:400% 300%;mask-size:400% 300%;-webkit-mask-position:0% var(--atlas-y);mask-position:0% var(--atlas-y);animation:treasure-prize-mask-frames .92s steps(1,end) infinite}
.treasure-result-scene.is-opening .treasure-result-pack{animation:treasure-character-reveal .18s ease-out forwards}
.treasure-result-rarity{display:inline-flex;align-items:center;justify-content:center;margin:1px auto 9px;padding:4px 11px;border:1px solid currentColor;border-radius:999px;background:#071b1588;color:var(--rarity-color);font-size:9px;font-weight:950;letter-spacing:.18em;box-shadow:0 0 12px var(--rarity-soft)}
.treasure-result-dialog[data-rarity-key="common"]{border-color:#fffdf4}
.treasure-result-dialog[data-rarity-key="uncommon"]{border-color:#72e5a2}
.treasure-result-dialog[data-rarity-key="rare"]{border-color:#69cfff}
.treasure-result-dialog[data-rarity-key="epic"]{border-color:#8794ff}
.treasure-result-dialog[data-rarity-key="legendary"]{border-color:#ff9a3d}
@keyframes treasure-character-reveal{from{opacity:0;transform:translateX(-50%) scale(.98)}to{opacity:1;transform:translateX(-50%) scale(1)}}
@keyframes treasure-prize-frames{0%,24.99%{background-position-x:0%}25%,49.99%{background-position-x:33.3333%}50%,74.99%{background-position-x:66.6667%}75%,100%{background-position-x:100%}}
@keyframes treasure-prize-mask-frames{0%,24.99%{-webkit-mask-position-x:0%;mask-position-x:0%}25%,49.99%{-webkit-mask-position-x:33.3333%;mask-position-x:33.3333%}50%,74.99%{-webkit-mask-position-x:66.6667%;mask-position-x:66.6667%}75%,100%{-webkit-mask-position-x:100%;mask-position-x:100%}}
@keyframes treasure-rarity-pulse{0%,100%{transform:scale(.9);opacity:.65}50%{transform:scale(1.05);opacity:1}}
@keyframes treasure-rarity-mark{0%,100%{transform:scale(.85) rotate(-8deg)}50%{transform:scale(1.15) rotate(8deg)}}
@keyframes treasure-rarity-orbit{to{transform:rotate(360deg)}}
@media(max-width:560px){.treasure-result-pack{bottom:72px;width:min(50%,156px);height:min(50vw,156px)}}
@media(prefers-reduced-motion:reduce){.treasure-prize-art{animation:none!important;background-position-x:0!important}.treasure-prize-art:after{animation:none!important;-webkit-mask-position-x:0!important;mask-position-x:0!important}.treasure-prize-aura,.treasure-prize-aura:before,.treasure-prize-aura:after{animation:none!important}.treasure-result-scene.is-opening .treasure-result-pack{animation-duration:.01ms!important}}

/* Coleções do jogador: seis atalhos na linha marcada e cards animados por categoria. */
.player-menu-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}
.player-menu-actions button{min-width:0}
.player-menu-actions button[data-player-destination^="colecao-"]{flex:1 1 82px;min-height:43px;padding:6px 8px;border-radius:13px;background:linear-gradient(145deg,#23513f,#12382d);font-size:10px;line-height:1.15;white-space:normal}
.player-menu-actions button[data-player-destination^="colecao-"]:before{display:block;margin-bottom:2px;font-size:13px;line-height:1}
.player-menu-actions button[data-player-destination="colecao-operarias"]:before{content:"🐝"}
.player-menu-actions button[data-player-destination="colecao-defensoras"]:before{content:"🛡️"}
.player-menu-actions button[data-player-destination="colecao-atacantes"]:before{content:"⚔️"}
.player-menu-actions button[data-player-destination="colecao-zangoes"]:before{content:"🪽"}
.player-menu-actions button[data-player-destination="colecao-rainha"]:before{content:"♛"}
.player-menu-actions button[data-player-destination="colecao-colmeia"]:before{content:"⬡"}
.character-collection-content{max-width:1000px;margin:0 auto}
.character-collection-heading{display:flex;align-items:center;justify-content:space-between;margin:4px 0 14px;padding:0 2px 12px;border-bottom:1px solid #e4cc8044}
.character-collection-heading small{color:#f2d27b;font-size:9px;font-weight:950;letter-spacing:.16em}
.character-collection-heading h2{margin:4px 0 0;color:#fff4d2;font-size:21px}
.character-collection-count{display:grid;place-items:center;width:40px;height:40px;border:1px solid #f2d17b;border-radius:50%;background:#c9963f;color:#263a2a;font-weight:950}
.character-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.character-collection-message,.character-collection-empty{grid-column:1/-1;min-height:190px;display:grid;place-content:center;justify-items:center;gap:8px;padding:24px;border:1px dashed #e4cc8075;border-radius:18px;color:#d1e0c9;text-align:center}
.character-collection-empty>span{font-size:32px}
.character-collection-empty h3{margin:0;color:#fff4d2;font-size:18px}
.character-collection-empty p{max-width:440px;margin:0;color:#bdcfb6;font-size:12px;line-height:1.5}
.character-card{--character-rarity-color:#f2d17b;overflow:hidden;border:1px solid #e4cc8075;border-radius:18px;background:linear-gradient(160deg,#1d4b3c,#12382d 70%);box-shadow:0 12px 30px #071c1740}
.character-card-portrait{position:relative;display:block;width:100%;height:190px;padding:12px;border:0;background:radial-gradient(ellipse at 50% 45%,#548d5b 0,#214b39 48%,#102f27 100%)}
.character-card-portrait--interactive{cursor:pointer}
.character-card-portrait--interactive:focus-visible{outline:3px solid #ffe08a;outline-offset:-5px}
.character-card-art{position:relative;display:grid;place-items:center;width:100%;height:100%;overflow:hidden;border-radius:12px;background:radial-gradient(ellipse,#f1d57444,transparent 68%)}
.character-card-aura{position:absolute;width:62%;aspect-ratio:1;border:1px solid #f4d87a88;border-radius:50%;box-shadow:0 0 24px #f4d87a44;animation:treasure-aura 3s ease-in-out infinite}
.character-card-sprite{position:absolute;inset:2% 10%;background-image:var(--character-sheet);background-repeat:no-repeat;background-size:400% 300%;background-position:0% var(--character-row);filter:drop-shadow(0 7px 8px #071c1770);animation:treasure-prize-frames .92s steps(1,end) infinite}.character-card-art.character-art-attacker .character-card-sprite{background-size:400% 100%;background-position:0% 0%}

.character-card-details{padding:14px 16px 16px}
.character-card-rarity{display:inline-flex;padding:4px 9px;border:1px solid color-mix(in srgb,var(--character-rarity-color),transparent 42%);border-radius:999px;color:var(--character-rarity-color);font-size:9px;font-weight:900;letter-spacing:.08em}
.character-card-details h3{margin:9px 0 12px;color:#fff4d2;font-size:18px}
.character-card-details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}
.character-card-details dl>div{padding:8px;border:1px solid #e4cc8033;border-radius:10px;background:#0d2d2550}
.character-card-details dt{color:#bdcfb6;font-size:9px}
.character-card-details dd{margin:3px 0 0;color:#ffe29a;font-size:13px;font-weight:900}
.character-card-no-stats{margin:0;color:#bdcfb6;font-size:11px;line-height:1.45}

.character-card--rarity-common{--character-rarity-color:#fffdf2}.character-card--rarity-uncommon{--character-rarity-color:#53e295}.character-card--rarity-rare{--character-rarity-color:#62b9ff}.character-card--rarity-epic{--character-rarity-color:#718dff}.character-card--rarity-legendary{--character-rarity-color:#ffad42}
.character-card-stars{position:absolute;z-index:3;top:5px;left:8px;right:8px;display:flex;justify-content:space-evenly;align-items:center;gap:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;transform:none;white-space:nowrap;pointer-events:none}.character-card-stars span{font-size:clamp(13px,1.25vw,17px);line-height:1;color:#fff7dc;text-shadow:0 1px 4px #071c17,0 0 8px #fff7dc99}.character-card-stars .is-empty{color:#fff7dc;opacity:.95;-webkit-text-stroke:.3px #fff7dc}.character-card-stars .is-earned{color:#ffd34f;filter:drop-shadow(0 0 6px #ffd34f);text-shadow:0 1px 4px #071c17,0 0 10px #ffd34f}
.character-card-worker-stats{margin-bottom:9px!important}.character-card-energy,.character-card-queen-rate{display:grid;gap:5px;margin-top:8px}.character-card-energy-heading{display:flex;justify-content:space-between;gap:8px;color:#bdcfb6;font-size:8px;font-weight:900;letter-spacing:.1em}.character-card-energy-heading small{color:#a9baa9;font-size:8px;letter-spacing:.04em}.character-card-energy-meter{height:9px;overflow:hidden;border:1px solid #91a48b70;border-radius:999px;background:repeating-linear-gradient(90deg,#294138 0 17%,#354e42 17% 20%)}.character-card-energy-meter span{display:block;height:100%;background:linear-gradient(90deg,#70de88,#d7e66c)}.character-card-energy-refill{justify-self:start;min-height:28px;padding:5px 9px;border:1px solid #d5b856;border-radius:999px;background:linear-gradient(140deg,#ffe18a,#d49b3f);color:#173627;font:inherit;font-size:9px;font-weight:900;cursor:pointer}.character-card-energy-refill:disabled{opacity:.55;cursor:wait}.character-card-queen-rate{grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0}.character-card-queen-rate>div{padding:7px;border:1px solid #70815b66;border-radius:9px;background:#102f27}.character-card-queen-rate dt{color:#bdcfb6;font-size:9px}.character-card-queen-rate dd{margin:3px 0 0;color:#ffd36b;font-size:13px;font-weight:900}
.character-card-hive-stats{display:grid;grid-template-columns:minmax(0,1fr);margin:8px 0 0!important}.character-card-hive-stats>div{padding:7px;border:1px solid #70815b66;border-radius:9px;background:#102f27}.character-card-hive-stats dt{color:#bdcfb6;font-size:9px}.character-card-hive-stats dd{margin:3px 0 0;color:#ffd36b;font-size:14px;font-weight:900}.character-card-structure{display:grid;gap:5px;margin-top:8px}.character-card-structure-meter{height:9px;overflow:hidden;border:1px solid #91a48b70;border-radius:999px;background:repeating-linear-gradient(90deg,#294138 0 17%,#354e42 17% 20%)}.character-card-structure-meter span{display:block;height:100%;background:linear-gradient(90deg,#70de88,#d7e66c)}
.character-collection-feedback{min-height:18px;color:#ffc2a9;font-size:11px}
@media(max-width:700px){.player-menu-actions button[data-player-destination^="colecao-"]{flex:1 1 calc(33.333% - 8px);min-height:48px;font-size:9px}.character-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.character-card-portrait{height:150px;padding:8px}.character-card-details{padding:11px}.character-card-details h3{font-size:15px}}
@media(max-width:420px){.character-card-grid{grid-template-columns:1fr}.character-card{display:grid;grid-template-columns:38% 1fr}.character-card-portrait{height:100%;min-height:185px}.character-card-details{align-self:center}}

.treasure-confirm-dialog{width:min(420px,calc(100vw - 32px));max-width:none;margin:auto;padding:24px;border:1px solid #e1c36c;border-radius:20px;background:radial-gradient(ellipse at 50% 10%,#315d3e,#17392e 72%);color:#fff4d3;text-align:center;box-shadow:0 24px 70px #000b}
.treasure-confirm-dialog::backdrop{background:#061710d9;backdrop-filter:blur(5px)}
.treasure-confirm-kicker{margin:0;color:#ffdb77;font-size:10px;font-weight:950;letter-spacing:.18em}
.treasure-confirm-dialog h2{margin:8px 0;color:#fff2cb;font-size:22px}
.treasure-confirm-dialog [data-treasure-confirm-message]{margin:0 auto 20px;max-width:340px;color:#d6e4cf;font-size:13px;line-height:1.55}
.treasure-confirm-actions{display:flex;justify-content:center;gap:10px}
.treasure-confirm-actions button,.treasure-result-collection{min-height:36px;padding:8px 14px;border:1px solid #e1c36c;border-radius:999px;font:inherit;font-size:11px;font-weight:900;cursor:pointer}
.treasure-confirm-cancel{background:#153b30;color:#ffe18a}
.treasure-confirm-submit,.treasure-result-collection{background:linear-gradient(140deg,#ffe18a,#d69a3b);color:#173627}
.treasure-result-collection{margin-left:8px}
@media(max-width:430px){.treasure-confirm-actions{flex-direction:column}.treasure-confirm-actions button{width:100%}.treasure-result-collection{margin:8px 0 0}}

.exchange-page{max-width:1240px;margin:20px auto;padding:0 18px 36px}
.exchange-page .player-menu-header{margin-bottom:20px}
.exchange-layout{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(0,1.7fr);gap:18px;align-items:start}
.exchange-wallet-column,.exchange-market-column{min-width:0}
.exchange-wallet-card,.exchange-trade-card,.exchange-market-panel{border:1px solid #8d8a4d;border-radius:17px;background:linear-gradient(145deg,#174436,#102f27);box-shadow:0 12px 32px #06171066;color:#fff3ce}
.exchange-wallet-card{padding:20px}
.exchange-kicker{margin:0;color:#ffd46b;font-size:10px;font-weight:950;letter-spacing:.16em}
.exchange-balance{display:flex;align-items:baseline;gap:9px;margin:10px 0 2px}
.exchange-balance span{display:grid;place-items:center;width:32px;height:32px;border:1px solid #e2bf5d;border-radius:50%;background:linear-gradient(140deg,#ffe99b,#c78d31);color:#203b2e;font-weight:1000}
.exchange-balance strong{font-size:36px;line-height:1.1}
.exchange-balance small{color:#ffdb77;font-weight:900}
.exchange-wallet-note{min-height:20px;margin:8px 0 17px;color:#d2dfcf;font-size:12px}
.exchange-wallet-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.exchange-wallet-actions button,.exchange-market-tabs button,.exchange-periods button{border:1px solid #a99450;border-radius:9px;background:#214737;color:#fff0c2;font:inherit;font-size:11px;font-weight:850;padding:10px 8px}
.exchange-wallet-actions button:first-child{background:linear-gradient(140deg,#ffe18a,#d49b3f);color:#233b2d}
.exchange-wallet-actions button:disabled{opacity:.48;cursor:not-allowed}
.exchange-trade-card{margin-top:14px;padding:18px}.exchange-market-tabs button.is-active{background:linear-gradient(140deg,#ffe18a,#d59b3f);color:#24392d;border-color:#efd37d}
.exchange-trade-card label{display:block;margin:14px 0 6px;color:#dce7cf;font-size:12px;font-weight:750}
.exchange-trade-card input{box-sizing:border-box;width:100%;height:44px;border:1px solid #837e50;border-radius:10px;background:#102f27;color:#fff4d4;padding:0 12px;font:inherit}
.exchange-quote{display:flex;justify-content:space-between;gap:12px;margin:14px 0;color:#d2dfcf;font-size:12px}
.exchange-quote strong{color:#ffdb77}
.exchange-submit{width:100%;min-height:42px;border:1px solid #857b4a;border-radius:999px;background:#657466;color:#eff3de;font:inherit;font-size:12px;font-weight:900;opacity:.78}
.exchange-blocked-note{color:#d8dfc6;font-size:11px;line-height:1.5}
.exchange-link-button{display:block;margin:12px auto 0;border:0;background:transparent;color:#ffe092;font:inherit;font-size:11px;font-weight:800;text-decoration:underline;cursor:pointer}
.exchange-market-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:10px}
.exchange-market-tabs button{min-height:40px}
.exchange-market-panel{padding:18px;min-height:395px}
.exchange-market-panel[hidden]{display:none}
.exchange-price-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:2px 2px 15px}
.exchange-price-header strong{display:block;margin-top:4px;font-size:30px;color:#fff0ca}
.exchange-price-header small{display:block;margin-top:2px;color:#d3dfcf;font-size:11px}
.exchange-price-badges{display:flex;gap:7px}
.exchange-price-badges span{border-radius:9px;background:#4a573a;padding:7px 9px;color:#ddd8a3;font-size:10px;font-weight:900}
.exchange-chart{position:relative;display:grid;place-items:center;height:250px;overflow:hidden;border-radius:10px;background:linear-gradient(180deg,#f2d9a5,#f4e4bc);color:#735334}
.exchange-chart-grid{position:absolute;inset:24px 12px;display:flex;flex-direction:column;justify-content:space-between}
.exchange-chart-grid i{border-top:1px solid #b38a57aa}
.exchange-chart-empty{z-index:1;text-align:center}
.exchange-chart-empty span{display:block;color:#a07a38;font-size:20px}
.exchange-chart-empty strong{display:block;margin-top:7px;font-size:15px}
.exchange-chart-empty p{margin:5px;color:#866841;font-size:11px}
.exchange-periods{display:flex;gap:5px;margin:10px 0}
.exchange-periods button{padding:7px 10px;background:#52683e;color:#e5d19a;font-size:10px}
.exchange-periods button:disabled{cursor:not-allowed;opacity:.65}
.exchange-periods button.is-active{background:#c58b39;color:#fff3d1}
.exchange-market-stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #a78a54;border-radius:9px;background:#f4dfb0;color:#4d3822}
.exchange-market-stats div{padding:10px;border-right:1px solid #b99a60}
.exchange-market-stats div:last-child{border:0}
.exchange-market-stats small{display:block;color:#8b6337;font-size:9px;font-weight:950}
.exchange-market-stats strong{display:block;margin-top:4px;font-size:13px}
.exchange-disclaimer{margin:12px 0 0;color:#d5ddc9;font-size:11px;line-height:1.5}
.exchange-empty-panel{display:grid;place-content:center;min-height:340px;text-align:center}
.exchange-empty-panel strong{color:#ffda79;font-size:19px}
.exchange-empty-panel p{max-width:380px;color:#d2dfcf;font-size:13px;line-height:1.6}
@media(max-width:850px){.exchange-layout{grid-template-columns:1fr}.exchange-wallet-column{display:grid;grid-template-columns:1fr 1fr;gap:12px}.exchange-trade-card{margin-top:0}}
@media(max-width:560px){.exchange-page{padding:0 10px 24px}.exchange-wallet-column{grid-template-columns:1fr}.exchange-market-tabs{grid-template-columns:repeat(3,1fr)}.exchange-market-tabs button{font-size:10px;padding:8px 4px}.exchange-market-panel{padding:12px;min-height:350px}.exchange-chart{height:210px}.exchange-market-stats{grid-template-columns:repeat(2,1fr)}.exchange-market-stats div:nth-child(2){border-right:0}.exchange-market-stats div:nth-child(-n+2){border-bottom:1px solid #b99a60}.exchange-price-header strong{font-size:25px}}

.exchange-chart-svg{position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:visible}
.exchange-chart-svg polyline{fill:none;stroke:#00a85a;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px #006c3c55)}
.exchange-chart-axis{position:absolute;inset:8px 7px;display:flex;flex-direction:column;justify-content:space-between;z-index:2;pointer-events:none;color:#74552e;font-size:10px;font-weight:850}
.exchange-market-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.exchange-market-data-grid>div,.exchange-trade-history article{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #7d8151;border-radius:11px;background:#12362c;color:#fff0c2}
.exchange-market-data-grid small,.exchange-trade-history article>span{color:#ffd86e;font-size:9px;font-weight:950;letter-spacing:.1em}
.exchange-market-data-grid strong,.exchange-trade-history article strong{font-size:16px}
.exchange-market-data-grid>p,.exchange-trade-history>p{grid-column:1/-1;color:#d5e1ce}
.exchange-trade-history{display:grid;gap:9px;max-height:380px;overflow:auto}
.exchange-trade-history article small{color:#c8d5c6;font-size:11px}

.withdraw-balance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.withdraw-balance-card{display:grid;gap:9px;padding:18px;border:1px solid #f5df9c55;border-radius:14px;background:#0d2d25}.withdraw-balance-card small{color:#ffe08a;font-size:10px;font-weight:900;letter-spacing:.1em}.withdraw-balance-card b{color:#fff2c8;font-size:25px}.withdraw-balance-card span{color:#e1e9d2;font-size:12px;line-height:1.45}@media(max-width:700px){.withdraw-balance-grid{grid-template-columns:1fr}.withdraw-balance-card{padding:15px}.withdraw-balance-card b{font-size:22px}}

.character-card-art.character-art-explorer .character-card-sprite{inset:15% 16% 2%;filter:brightness(1.08) saturate(1.08) drop-shadow(0 7px 8px #071c1770)}

.character-card-chance{display:grid;gap:4px;margin:0 0 8px}.character-card-chance-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#bdcfb6;font-size:8px;font-weight:900;letter-spacing:.08em}.character-card-chance-heading strong{color:#ffe29a;font-size:13px;letter-spacing:0;white-space:nowrap}.character-card-chance>small{color:#d2dfcf;font-size:8px;line-height:1.3}.character-card-chance-meter{height:8px;overflow:hidden;border:1px solid #e1c36c66;border-radius:999px;background:#0d2d25}.character-card-chance-meter span{display:block;height:100%;min-width:4px;border-radius:inherit;background:linear-gradient(90deg,#4acb85,#ffe17a);box-shadow:0 0 8px #ffe17a66}
.character-card-art.character-art-reproducer .character-card-sprite{inset:14% 22% 2%;background-size:400% 100%;background-position:0% 0%;filter:brightness(1.07) saturate(1.06) drop-shadow(0 7px 8px #071c1770)}

/* O menu destaca apenas a ação selecionada pelo jogador nesta aba. */
.player-menu-actions button[data-player-menu-action].is-active,.player-feature-actions button[data-player-menu-action].is-active,.player-menu-actions button[data-player-menu-action]:active,.player-feature-actions button[data-player-menu-action]:active{background:linear-gradient(140deg,#ffe18a,#d49b3f);color:#263a2a;box-shadow:0 0 0 1px #f4dc88,0 7px 18px #071c1760}

/* Neutraliza estilos legados e deixa amarelo somente o botão selecionado. */
.player-menu-actions button[data-player-menu-action]:not(.is-active):not([data-player-menu-action^="collection:"]),.player-feature-actions button[data-player-menu-action]:not(.is-active){background:#143d31;color:#fff2c8;box-shadow:0 7px 18px #071c1740}
.player-menu-actions button[data-player-menu-action^="collection:"]:not(.is-active){background:linear-gradient(145deg,#23513f,#12382d);color:#fff2c8}

/* Base da colmeia: personagens vinculados e espaços de produção */
.hive-economy-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.hive-base-stage{display:grid;grid-template-columns:minmax(82px,13%) minmax(0,1fr) minmax(82px,13%);align-items:stretch;gap:8px;min-width:0;min-height:0;padding:8px 10px}
.hive-character-placements{display:flex;flex-direction:column;justify-content:space-evenly;gap:8px;min-width:0;min-height:0}
.hive-character-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:104px;padding:5px 4px;border:1px solid #d9ad58;border-radius:12px;background:linear-gradient(155deg,#fff0c7,#e1bd74);box-shadow:0 3px 8px #452b1633;color:#354535;text-align:center}
.hive-character-slot.is-empty{border-style:dashed;background:linear-gradient(155deg,#f3e9d1,#cdd7d3)}
.hive-character-slot>strong{max-width:100%;color:#334a38;font-size:clamp(8px,.8vw,11px);line-height:1.1}
.hive-character-slot-portrait{position:relative;display:grid;place-items:center;width:min(100%,86px);height:64px;overflow:hidden;border-radius:10px;background:radial-gradient(ellipse,#ffe08b77,transparent 72%)}
.hive-character-slot-portrait .character-card-art{width:100%;height:100%;border-radius:0;background:transparent}
.hive-character-slot-portrait .character-card-sprite{inset:2% 10%;animation-duration:1.25s}
.hive-character-placeholder{font-size:30px;line-height:1;opacity:.6}
.hive-character-count{display:grid;place-items:center;min-width:44px;min-height:20px;padding:2px 8px;border:1px solid #9c7739;border-radius:7px;background:#f7e5b4;color:#47351d;font-size:10px;font-weight:950}
.hive-comb-cell--larva.is-unlocked .comb-cell-hex{border-color:#f4d17a;background:linear-gradient(145deg,#fff2c8,#e2ad54 32%,#7f4a1b 33%,#593311 100%)}
.hive-comb-cell--larva.is-unlocked .comb-cell-hex::before{background:linear-gradient(145deg,#a87030,#583615 72%,#42270f)}
.hive-comb-cell--larva.is-unlocked .comb-cell-face{background:radial-gradient(ellipse at 40% 25%,#c18b3d,#70421c 72%,#452a12)}
.hive-comb-cell--larva .comb-cell-quantity{font-size:clamp(6px,.58vw,8px)}
.character-card-assignment{display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin-top:10px;padding:8px 12px;border:1px solid #f5d887;border-radius:10px;background:linear-gradient(130deg,#ffe18e,#dca844);color:#263a2d;font:900 11px inherit;cursor:pointer}
.character-card-assignment:hover{filter:brightness(1.06);transform:translateY(-1px)}
.character-card-assignment:disabled{opacity:.62;cursor:wait}
.character-card-assignment.is-assigned{margin:8px 0 0;padding:5px 0;border:0;background:transparent;color:#96e5a7;font-size:10px}
@media(max-width:700px){.hive-economy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hive-base-stage{grid-template-columns:64px minmax(0,1fr) 64px;gap:4px;padding:5px 4px}.hive-character-placements{gap:4px}.hive-character-slot{min-height:76px;gap:2px;padding:3px 2px;border-radius:8px}.hive-character-slot-portrait{height:48px}.hive-character-slot>strong{font-size:7px}.hive-character-count{min-width:32px;min-height:16px;font-size:8px}.hive-interior-room{padding:2px}.character-card-assignment{min-height:32px;font-size:10px}}
@media(max-width:430px){.hive-base-stage{grid-template-columns:54px minmax(0,1fr) 54px}.hive-character-slot{min-height:68px}.hive-character-slot-portrait{height:42px}.hive-character-placeholder{font-size:23px}}

/* Caldeirão de cera: visual animado e encaixe na lateral da colmeia. */
.hive-character-placements-right{justify-content:flex-start;align-items:stretch;padding-top:clamp(0px,2vh,18px)}
.hive-character-placements-right .hive-character-slot{transform:translateY(-8px);min-height:92px}
.hive-cauldron-card{display:grid;justify-items:center;gap:4px;width:100%;padding:8px 5px;border:1px solid #d9ad58;border-radius:13px;background:linear-gradient(160deg,#fff0c8,#d6aa56);box-shadow:0 5px 12px #452b1640;color:#344637;text-align:center}
.hive-cauldron-card>strong{font-size:clamp(9px,.85vw,12px);color:#294532}
.hive-cauldron-card>small{font-size:7px;color:#63724c}
.hive-cauldron-visual{position:relative;display:grid;place-items:center;width:90px;height:78px;perspective:170px;filter:drop-shadow(0 7px 6px #51371955);animation:hive-cauldron-rock 3.6s ease-in-out infinite}
.hive-cauldron-glow{position:absolute;top:13px;width:62px;height:26px;border-radius:50%;background:#ffc94a99;filter:blur(9px);animation:hive-cauldron-glow 1.5s ease-in-out infinite alternate}
.hive-cauldron-pot{position:absolute;top:24px;width:64px;height:42px;border:3px solid #8c5422;border-radius:12px 12px 22px 22px;background:linear-gradient(110deg,#754119,#d99030 28%,#8c4c20 55%,#552f1a);box-shadow:inset 0 4px 6px #ffe28d88,inset 0 -7px 7px #321b1b88,0 3px 0 #63351d;transform:rotateX(-10deg)}
.hive-cauldron-pot:before{content:"";position:absolute;left:-8px;right:-8px;top:-5px;height:11px;border:3px solid #8a5424;border-radius:50%;background:linear-gradient(#ffe59b,#bd7427 65%,#57371e)}
.hive-cauldron-pot:after{content:"";position:absolute;left:10px;right:10px;top:1px;height:9px;border-radius:50%;background:radial-gradient(ellipse,#ffd24e 0 25%,#8ee0a0 55%,#435744 100%);box-shadow:0 0 10px #ffca48}
.hive-cauldron-pot i{position:absolute;top:17px;left:-8px;width:74px;height:4px;border-radius:99px;background:linear-gradient(90deg,#d99d3c,#ffe9a3,#95602b);box-shadow:0 2px 2px #643b1e}
.hive-cauldron-legs{position:absolute;top:57px;width:44px;height:12px;border:3px solid #815021;border-top:0;border-radius:0 0 50% 50%;transform:perspective(25px) rotateX(12deg)}
.hive-cauldron-legs:before,.hive-cauldron-legs:after{content:"";position:absolute;top:-3px;width:4px;height:14px;border-radius:4px;background:linear-gradient(90deg,#70451f,#d99b3a,#71451f)}
.hive-cauldron-legs:before{left:3px}.hive-cauldron-legs:after{right:3px}
.hive-cauldron-bubble{position:absolute;z-index:2;top:27px;width:7px;height:7px;border:1px solid #fff0b3;border-radius:50%;background:#90de9d;box-shadow:0 0 7px #8eeaa0;animation:hive-cauldron-bubble 1.7s ease-in infinite}
.hive-cauldron-bubble--one{left:37px}.hive-cauldron-bubble--two{left:51px;animation-delay:.8s;width:5px;height:5px}
.hive-cauldron-ingredients{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;width:100%}
.hive-cauldron-ingredient{display:grid;align-content:center;justify-items:center;gap:1px;min-width:0;aspect-ratio:1;padding:2px;border:1px solid #ac853e;border-radius:7px;background:linear-gradient(150deg,#fff2cc,#ddbb72);color:#344637;cursor:pointer}
.hive-cauldron-ingredient>span{font-size:12px;line-height:1}.hive-cauldron-ingredient>small{max-width:100%;font-size:6px;line-height:1.1;white-space:nowrap}.hive-cauldron-ingredient>strong{font-size:8px;line-height:1}.hive-cauldron-ingredient>em{font-size:5px;font-style:normal;line-height:1}
.hive-cauldron-ingredient.is-loaded{border-color:#39956b;background:linear-gradient(145deg,#d2f2bf,#7dcd8c);box-shadow:0 0 8px #65e49c99;color:#174c37}
.hive-cauldron-ingredient.is-unavailable{opacity:.55;cursor:not-allowed}
.hive-cauldron-ingredient:disabled{cursor:default}
.hive-cauldron-card.is-mixing .hive-cauldron-visual{animation:hive-cauldron-mix .28s ease-in-out infinite}
.hive-cauldron-card.is-mixing .hive-cauldron-bubble{animation-duration:.55s;box-shadow:0 0 12px #a5ffbf}
.hive-cauldron-card.is-mixing .hive-cauldron-glow{background:#ffe05fe0;filter:blur(12px);animation-duration:.4s}
.hive-cauldron-feedback.is-result-success{color:#145c37;font-weight:1000;text-shadow:0 0 9px #fff6ad}
.hive-cauldron-feedback.is-result-failure{color:#98452c;font-weight:900}
.hive-cauldron-feedback.is-result-error{color:#713b2c}
.hive-cauldron-button{width:100%;min-height:29px;padding:4px 3px;border:1px solid #a8792f;border-radius:999px;background:linear-gradient(145deg,#ffe28b,#d89636);color:#233a2a;font:inherit;font-size:8px;font-weight:900;cursor:pointer;box-shadow:0 2px 0 #a56d2a}
.hive-cauldron-button:hover{filter:brightness(1.06);transform:translateY(-1px)}
.hive-cauldron-button:disabled{opacity:.6;cursor:wait}
.hive-cauldron-feedback{min-height:0;margin:0;color:#31573d;font-size:7px;line-height:1.25}
.character-card-queen-rate{grid-template-columns:repeat(3,minmax(0,1fr))}
.character-card-queen-rate dd{font-size:clamp(10px,1vw,13px)}
.comb-worker-bee{left:auto!important;right:1.5%!important;top:40%!important}
@keyframes hive-cauldron-rock{0%,100%{transform:rotate(-1deg) translateY(0)}50%{transform:rotate(1deg) translateY(-3px)}}
@keyframes hive-cauldron-glow{from{opacity:.55;transform:scale(.86)}to{opacity:1;transform:scale(1.12)}}
@keyframes hive-cauldron-bubble{0%{opacity:0;transform:translateY(7px) scale(.6)}35%{opacity:1}100%{opacity:0;transform:translateY(-16px) scale(1.15)}}
@keyframes hive-cauldron-mix{0%,100%{transform:translateX(-2px) rotate(-4deg) scale(1)}25%{transform:translateX(3px) rotate(3deg) scale(1.08)}50%{transform:translateX(-3px) rotate(-3deg) scale(1.04)}75%{transform:translateX(2px) rotate(4deg) scale(1.09)}}
@media(max-width:700px){.hive-cauldron-card{padding:4px 2px;gap:2px}.hive-cauldron-visual{width:54px;height:48px;transform:scale(.65);transform-origin:center;margin:-8px 0}.hive-cauldron-ingredients{gap:2px}.hive-cauldron-ingredient>span{font-size:9px}.hive-cauldron-ingredient>small{font-size:5px}.hive-cauldron-ingredient>strong{font-size:7px}.hive-cauldron-ingredient>em{font-size:4px}.hive-cauldron-button{font-size:6px;min-height:23px}.hive-cauldron-card>small{font-size:6px}.hive-character-placements-right .hive-character-slot{min-height:68px;transform:translateY(-4px)}.character-card-queen-rate{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.character-card-queen-rate>div{padding:5px 3px}.character-card-queen-rate dd{font-size:10px}}


/* Mercado Oficial */
.official-market-page{display:grid;gap:18px}
.official-market-feedback{min-height:18px;color:#ffe08a;font-size:13px}
.official-market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:14px;align-items:start}
.official-market-price{margin:12px 0 4px;color:#ffdd79;font-size:19px;font-weight:900}
.official-market-stock{margin:0 0 8px;color:#ccdec8;font-size:11px}
.character-card button[data-official-market-buy]{width:100%;min-height:40px;border:1px solid #ffe8a7;border-radius:10px;background:linear-gradient(#ffe393,#dba43e);color:#392f1e;font-weight:900;cursor:pointer}
.character-card button[data-official-market-buy]:disabled{opacity:.55;cursor:wait}
.official-market-empty{grid-column:1/-1;display:grid;place-items:center;min-height:180px;padding:24px;border:1px dashed #e5c86d66;border-radius:16px;color:#cbdcc5;text-align:center}
@media(max-width:560px){.official-market-grid{grid-template-columns:1fr}}


/* Recursos do Mercado Oficial */
.official-resource-card{display:grid;align-content:start;gap:8px;min-height:220px;padding:20px;border:1px solid #e5c86d88;border-radius:16px;background:linear-gradient(155deg,#1b4435,#0f2d24);color:#fff5dd;box-shadow:0 12px 30px #071c1770}
.official-resource-card .eyebrow{margin:0;color:#ffdd79;font-size:10px;font-weight:900;letter-spacing:.12em}
.official-resource-card h2{margin:6px 0 0;font-size:24px}
.official-resource-amount{margin:0;color:#dce9d2;font-weight:800}
.official-resource-card button[data-official-market-buy]{width:100%;min-height:40px;border:1px solid #ffe8a7;border-radius:10px;background:linear-gradient(#ffe393,#dba43e);color:#392f1e;font-weight:900;cursor:pointer}
.official-resource-card button[data-official-market-buy]:disabled{opacity:.55;cursor:wait}

.player-profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.player-profile-edit-page{max-width:880px;margin:0 auto}
.player-profile-edit{display:grid;gap:13px;max-width:600px;padding:20px;border:1px solid #e5c86d77;border-radius:16px;background:#15382df2;color:#fff5dd}
.player-profile-edit label{display:grid;gap:7px;font-size:12px;font-weight:800}
.player-profile-edit input,.player-profile-edit select{width:100%;min-height:42px;padding:10px;border:1px solid #e5c86d77;border-radius:9px;background:#0e2c23;color:#fff5dd;font:inherit}
.player-profile-edit small{color:#c8ddcc;line-height:1.5}
.player-profile-edit button{min-height:44px;border:1px solid #ffe8a7;border-radius:10px;background:linear-gradient(#ffe393,#dba43e);color:#392f1e;font-weight:900;cursor:pointer}
.player-profile-photo-preview{width:92px;height:92px;object-fit:cover;border:2px solid #ffe08a;border-radius:50%}
.player-profile-feedback{min-height:18px;color:#ffe08a}
.player-profile-referrals{margin-top:14px;padding:18px;border:1px solid #e5c86d55;border-radius:14px;background:#12352a}


/* Detalhes interativos das cartas e resultado do caldeirão */
.hive-character-slot{width:100%;border:1px solid #d9ad58;appearance:none;font:inherit;cursor:pointer;transition:filter .15s ease,transform .15s ease,box-shadow .15s ease}
.hive-character-slot:hover,.hive-character-slot:focus-visible{filter:brightness(1.05);transform:translateY(-2px);box-shadow:0 0 0 2px #fff0b3,0 5px 14px #452b1640;outline:none}
.hive-detail-summary{flex:0 0 auto;margin:12px 0;padding:12px 14px;border:1px solid #c8a75e;border-radius:15px;background:linear-gradient(145deg,#fff6df,#e8d5a8);box-shadow:0 3px 10px #6043191f}
.hive-detail-summary>p{margin:0 0 8px;color:#967027;font-size:9px;font-weight:950;letter-spacing:.14em}
.hive-detail-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:0}
.hive-detail-metrics>div{display:grid;gap:3px;padding:8px 10px;border:1px solid #bea15b66;border-radius:10px;background:#fff9e9}
.hive-detail-metrics dt{color:#69745e;font-size:9px;font-weight:850}
.hive-detail-metrics dd{margin:0;color:#294532;font-size:16px;font-weight:950;line-height:1.15}
.hive-detail-metrics small{color:#69745e;font-size:9px;line-height:1.3}
.hive-detail-card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));align-content:start;gap:12px;overflow:auto;padding:2px 2px 16px}
.hive-detail-card-list>.character-card{width:100%;max-width:420px;justify-self:center}
.hive-cauldron-result{display:grid;justify-items:center;gap:9px;align-self:start;max-width:620px;margin:20px auto;padding:clamp(18px,4vw,34px);border:2px solid #cda759;border-radius:22px;background:linear-gradient(150deg,#fff5d8,#e7d09b);box-shadow:0 10px 30px #5337192c;text-align:center;color:#2c4435}
.hive-cauldron-result.is-success{border-color:#57a879;background:linear-gradient(150deg,#efffe7,#cfeac3)}
.hive-cauldron-result.is-failure{border-color:#c89451}
.hive-cauldron-result-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#e7bd5f;color:#47341b;font-size:34px;box-shadow:0 0 0 6px #f2dfa8}
.hive-cauldron-result.is-success .hive-cauldron-result-icon{background:#64b47e;color:#143b27;box-shadow:0 0 0 6px #bce2ad}
.hive-cauldron-result>small{color:#8c6b2c;font-size:10px;font-weight:950;letter-spacing:.14em}
.hive-cauldron-result h3{margin:0;color:#264b34;font-size:clamp(21px,3vw,32px)}
.hive-cauldron-result p{max-width:440px;margin:0;color:#53664f;font-size:14px;line-height:1.45}
.hive-cauldron-result dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:8px 0 0}
.hive-cauldron-result dl>div{display:grid;gap:4px;padding:10px;border:1px solid #a98e53;border-radius:10px;background:#fff9e8}
.hive-cauldron-result dt{color:#6d7056;font-size:10px;font-weight:850}
.hive-cauldron-result dd{margin:0;color:#2b4734;font-size:13px;font-weight:950}
@media(max-width:700px){.hive-detail-summary{margin:7px 0;padding:9px}.hive-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.hive-detail-metrics>div{padding:6px}.hive-detail-metrics dd{font-size:13px}.hive-detail-card-list{grid-template-columns:1fr;gap:8px;padding-bottom:10px}.hive-cauldron-result{margin:8px auto;padding:18px}.hive-cauldron-result p{font-size:12px}}

.hive-integrity-meter{display:grid;gap:5px;margin-bottom:9px;padding:8px 10px;border:1px solid #bda05c;border-radius:10px;background:#fff9e9}
.hive-integrity-meter>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#344b36;font-size:11px}
.hive-integrity-meter>div:first-child span{font-weight:950}
.hive-integrity-track{height:10px;overflow:hidden;border:1px solid #806b39;border-radius:999px;background:#d8cba5}
.hive-integrity-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d95d4d,#e9c45c 55%,#5bbf7b);transition:width .25s ease}

/* Baús de iniciante */
.player-starter-chests-button{appearance:none;border:1px solid #f5d77a;border-radius:999px;padding:10px 18px;background:linear-gradient(135deg,#ffdf83,#e6aa42);color:#244035;font-weight:800;box-shadow:0 3px 0 #936a2d;cursor:pointer}
.player-starter-chests-button:hover{filter:brightness(1.06);transform:translateY(-1px)}
.player-starter-chests-button[hidden]{display:none}
.starter-treasure-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.starter-treasure-card{border-color:#edc967;box-shadow:0 12px 30px #081f1a55}
.starter-treasure-card>p{line-height:1.55}
.starter-chest-tag{margin:8px 0 0;color:#eac56d;font-size:.72rem;font-weight:900;letter-spacing:.12em}
.starter-chest-conversion{font-size:1.1rem;font-weight:900;color:#ffdf83}
.starter-treasure-page .treasure-wallet-line{flex-wrap:wrap}
@media(max-width:700px){.player-profile-card{flex-wrap:wrap}.player-starter-chests-button{order:3;width:100%}}

.starter-chest-open-note{margin:.75rem 0 0;color:#d6e7cf;font-size:.9rem}.starter-chest-complete{max-width:760px;margin:24px auto;padding:28px;border:1px solid #eaca75;border-radius:18px;background:#1d493c;text-align:center}.starter-chest-complete strong{font-size:1.25rem;color:#ffe08a}.starter-chest-complete p{line-height:1.6}

.hive-worker-production-list{display:grid;gap:8px;margin-top:10px}
.hive-worker-index{display:block;margin:0 0 8px;color:#f5d77a;font-size:10px;font-weight:950;letter-spacing:.12em}
.hive-worker-production{display:grid;gap:5px;margin:0 0 10px;padding:9px 10px;border:1px solid #d2b35b;border-radius:11px;background:#0c3027}
.hive-worker-production-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#f5dc8d;font-size:11px}
.hive-worker-production-heading strong{font-size:10px;letter-spacing:.08em}
.hive-worker-production-heading span{font-weight:900;white-space:nowrap}
.hive-worker-production-track{height:10px;overflow:hidden;border:1px solid #91a48b70;border-radius:999px;background:#334a3d}
.hive-worker-production-track span{display:block;width:var(--worker-progress,0%);height:100%;border-radius:inherit;background:linear-gradient(90deg,#77d884,#e2ce64);transition:width .3s linear}
.hive-worker-production small{color:#c1d0b8;font-size:9px}
.hive-character-card-dialog{width:min(92vw,460px);max-width:460px;max-height:90vh;overflow:auto;padding:16px;border:1px solid #d6b75b;border-radius:18px;background:#e9e7d7;box-shadow:0 20px 70px #051c17aa}
.hive-character-card-dialog::backdrop{background:#061d18bb;backdrop-filter:blur(4px)}
.hive-character-card-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;color:#264b38}
.hive-character-card-dialog-header small{color:#9a7429;font-size:9px;font-weight:950;letter-spacing:.14em}
.hive-character-card-dialog-header h3{margin:3px 0;font-size:20px}
.hive-character-card-dialog-header button{width:34px;height:34px;border:1px solid #b75f4d;border-radius:50%;background:#c64f43;color:white;font-size:24px;cursor:pointer}
.hive-character-card-dialog .character-card{max-width:100%}


/* Painéis permanentes de bônus da colmeia. */
.hive-bonus-card{align-items:flex-start;min-height:56px;border-color:#bb9142;background:linear-gradient(145deg,#fff1c5,#e8c77f)}
.hive-bonus-card--general{background:linear-gradient(145deg,#f9e9b9,#dfba65)}
.hive-bonus-card--honey .hive-economy-icon{background:linear-gradient(150deg,#ffe694,#dfae42)}
.hive-bonus-card--larvae .hive-economy-icon{background:linear-gradient(150deg,#e9dbff,#b99bd7)}
.hive-bonus-card--cauldron .hive-economy-icon{background:linear-gradient(150deg,#ffd3a3,#d78c43)}
.hive-bonus-card .hive-economy-copy{gap:1px}
.hive-bonus-card .hive-economy-copy strong{font-size:13px}
.hive-bonus-card .hive-economy-copy em{display:block;overflow:visible;white-space:normal;text-overflow:clip;font-size:8px;line-height:1.15;overflow-wrap:anywhere}
@media(max-width:900px){.hive-bonus-card{min-height:52px}.hive-bonus-card .hive-economy-copy em{font-size:7px}}
@media(max-width:600px){.hive-bonus-card{min-height:50px}.hive-bonus-card .hive-economy-copy em{font-size:7px}}


.referral-link-card,.referral-list-card{background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(241,248,237,.96));border:1px solid rgba(47,101,62,.16);border-radius:22px;box-shadow:0 16px 40px rgba(23,54,39,.08);padding:clamp(20px,4vw,32px);margin:18px 0}.referral-link-card h2,.referral-list-card h2{margin:6px 0 10px;color:#173627}.referral-link-card>p:not(.account-eyebrow):not(.referral-feedback){color:#526858;line-height:1.55;max-width:760px}.referral-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:18px}.referral-link-row label{grid-column:1/-1;font-weight:700;color:#244b31}.referral-link-row input{min-width:0;width:100%;height:48px;border:1px solid #bfd1c2;border-radius:12px;background:#fff;padding:0 14px;color:#244b31;font:inherit}.referral-link-row .account-primary{height:48px;white-space:nowrap}.referral-feedback{min-height:1.4em;margin:10px 0 0;color:#26713d;font-weight:700}.referral-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.referral-summary-grid article{display:grid;gap:8px;padding:20px;border-radius:18px;background:#173627;color:#fff;box-shadow:0 12px 28px rgba(23,54,39,.12)}.referral-summary-grid small{color:#d7e9d8;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem}.referral-summary-grid b{font-size:clamp(1.5rem,4vw,2.1rem)}.referral-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}.referral-list li{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #e2eadf}.referral-list li:last-child{border-bottom:0}.referral-list li div{display:grid;gap:5px}.referral-list li small{color:#6b786d}.referral-status{border-radius:999px;padding:7px 11px;font-size:.78rem;font-weight:800;white-space:nowrap}.referral-status.is-rewarded{background:#e1f4df;color:#23633a}.referral-status.is-pending{background:#fff3d3;color:#805c11}@media(max-width:640px){.referral-link-row{grid-template-columns:1fr}.referral-link-row label{grid-column:auto}.referral-summary-grid{grid-template-columns:1fr}.referral-list li{align-items:flex-start;flex-direction:column}.referral-status{white-space:normal}}


.player-market-page{gap:16px}
.player-market-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:8px;border:1px solid #e5c86d66;border-radius:14px;background:#0f2d24}
.player-market-tabs button{flex:1 1 140px;min-height:42px;padding:9px 12px;border:1px solid #e5c86d66;border-radius:10px;background:transparent;color:#f6e9c8;font-weight:900;cursor:pointer}
.player-market-tabs button.is-active{background:linear-gradient(#ffe393,#dba43e);color:#392f1e}
.player-market-view h2{margin:8px 0 12px;color:#ffdf8a}
.player-market-seller{margin:4px 0;color:#cfe1d2;font-size:12px}
.player-market-card-controls{display:grid;gap:8px;margin-top:12px}
.player-market-card-controls label,.player-market-resource-form label{display:grid;gap:5px;color:#f5e9c8;font-size:11px;font-weight:800}
.player-market-card-controls input,.player-market-resource-form input{width:100%;min-height:38px;padding:7px 9px;border:1px solid #eedca17a;border-radius:8px;background:#0f2d24;color:#fff;font:inherit}
.player-market-card-controls button,.player-market-resource-form button,.character-card button[data-player-market-buy],.official-resource-card button[data-player-market-buy]{width:100%;min-height:40px;padding:9px;border:1px solid #ffe8a7;border-radius:10px;background:linear-gradient(#ffe393,#dba43e);color:#392f1e;font-weight:900;cursor:pointer}
.player-market-card-controls button.player-market-secondary{background:transparent;color:#f3dba0}
.player-market-card-controls button:disabled,.player-market-resource-form button:disabled{opacity:.55;cursor:wait}
.player-market-status{color:#ffdf8a;font-weight:900}
.player-market-resources{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin-bottom:24px}
.player-market-resource-form{display:grid;align-content:start;gap:10px;padding:16px;border:1px solid #e5c86d88;border-radius:16px;background:linear-gradient(155deg,#1b4435,#0f2d24);color:#fff5dd;box-shadow:0 12px 30px #071c1770}
.player-market-resource-form small{color:#ffdd79;font-size:10px;font-weight:900;letter-spacing:.12em}
.player-market-resource-form h3{margin:5px 0;font-size:20px}
.player-market-resource-form strong{color:#ffdf8a;font-size:18px}
@media(max-width:560px){.player-market-tabs{padding:6px}.player-market-tabs button{flex-basis:100%}}

/* Keep all four left-side hive roles visible when the resource panels reduce stage height. */
.hive-character-placements-left{justify-content:flex-start;gap:4px;overflow:hidden}
.hive-character-placements-left .hive-character-slot{position:relative;flex:1 1 0;min-height:0;gap:2px;padding:3px 2px}
.hive-character-placements-left .hive-character-slot-portrait{height:clamp(24px,6vh,42px)}
.hive-character-placements-left .hive-character-slot>strong{font-size:clamp(7px,.72vw,10px)}
.hive-character-placements-left .hive-character-count{position:absolute;top:2px;right:2px;min-width:20px;min-height:14px;padding:0 3px;font-size:8px}
@media(max-width:700px){.hive-character-placements-left{gap:3px}.hive-character-placements-left .hive-character-slot{min-height:0}.hive-character-placements-left .hive-character-slot-portrait{height:clamp(22px,5.5vh,36px)}.hive-character-placements-left .hive-character-slot>strong{font-size:6px}}

/* Formação defensiva 2.5D */
.hive-interior:has(.hive-bee-directory.is-defense-formation){padding:5px}
.hive-interior-card:has(.hive-bee-directory.is-defense-formation){width:min(1600px,100%);height:100%;max-height:none;border-radius:16px}
.hive-bee-directory.is-defense-formation{inset:64px 0 0;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch;gap:7px;overflow:hidden;padding:7px clamp(8px,1.5vw,22px) 12px;background:linear-gradient(145deg,#f0e5c4,#d8e4e9);color:#283b30;backdrop-filter:none}
.hive-bee-directory.is-defense-formation .hive-bee-directory-header{flex:0 0 auto;width:100%;min-height:39px;padding:3px 8px 7px;border:0;border-bottom:1px solid #bda46e;border-radius:0;background:transparent;color:#283b30}
.hive-bee-directory.is-defense-formation .hive-bee-directory-header small{color:#91651d}
.hive-bee-directory.is-defense-formation .hive-bee-directory-header h2{color:#253c30;font-size:clamp(19px,2vw,27px)}
.hive-bee-directory.is-defense-formation .hive-bee-directory-header button{margin-left:auto;background:#e6b957}
.hive-bee-directory.is-defense-formation .hive-bee-directory-content{display:block;flex:1;min-height:0;width:100%;max-height:none;overflow:hidden;padding:0;border:1px solid #c8a75e;border-radius:16px;background:linear-gradient(150deg,#fff8e5,#f1dfb7);box-shadow:0 12px 32px #60431935}
.defense-formation-panel{display:grid;grid-template-rows:auto minmax(0,1.28fr) minmax(92px,.67fr) auto;gap:clamp(5px,1vh,10px);height:100%;min-height:0;padding:clamp(7px,1.15vh,14px);color:#294532}
.defense-formation-overview{display:grid;grid-template-columns:minmax(190px,1fr) minmax(350px,1.35fr);align-items:center;gap:12px;min-height:0;padding:2px 8px 6px}
.defense-formation-overview>div:first-child small{color:#896922;font-size:10px;font-weight:950;letter-spacing:.14em}
.defense-formation-overview h3{margin:3px 0;color:#174a38;font-size:clamp(17px,2vw,25px)}
.defense-formation-overview p{margin:0;color:#68745f;font-size:clamp(10px,1vw,12px)}
.defense-formation-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:none;margin:0}
.defense-formation-totals>div{display:grid;align-content:center;gap:3px;min-height:52px;padding:6px 9px;border:1px solid #c8a75e;border-radius:12px;background:linear-gradient(145deg,#fff9e9,#f1dfb3);box-shadow:0 3px 8px #60431912;text-align:center}
.defense-formation-totals small{color:#896922;font-size:9px;font-weight:950;letter-spacing:.1em}
.defense-formation-totals strong{color:#174a38;font-size:clamp(17px,2vw,25px)}
.defense-formation-board{position:relative;isolation:isolate;display:grid;grid-template-rows:minmax(0,.88fr) minmax(0,1.12fr);gap:0;min-height:0;overflow:hidden;border:1px solid #997743;border-radius:18px;background:#163c30;box-shadow:inset 0 1px 0 #ffe6a35c,0 8px 18px #263b2d33}
.defense-formation-board::before,.defense-formation-board::after{content:none}

.defense-position-row{position:relative;z-index:1;display:grid;grid-template-columns:clamp(48px,6vw,82px) minmax(0,1fr);align-items:center;gap:3px;min-height:0;padding:0 clamp(3px,1.2vw,18px);border:0;border-radius:0;background:transparent}
.defense-position-row:first-child{grid-row:2}
.defense-position-row:last-child{grid-row:1}
.defense-position-row>strong{justify-self:center;display:grid;place-items:center;writing-mode:vertical-rl;transform:rotate(180deg);padding:9px 5px;border:1px solid #f4d58c66;border-radius:999px;background:#0c2b23b8;color:#ffe4a0;font-size:clamp(8px,1vh,11px);font-weight:950;letter-spacing:.16em;text-align:center;text-shadow:0 1px 5px #071811}
.defense-position-row>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:clamp(3px,1.2vw,18px);width:min(100%,1180px);height:100%;margin:0 auto}
.defense-slot{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;justify-items:center;align-items:end;gap:0;min-width:0;min-height:0;padding:4px 2px 8px;border:0;border-radius:12px;background:transparent;box-shadow:none;color:#fff5d8;text-align:center;cursor:pointer;transition:filter .2s ease,transform .2s ease}
.defense-slot:hover,.defense-slot:focus-visible{z-index:3;outline:0;filter:brightness(1.13);transform:translateY(-3px)}
.defense-slot::before{content:"";position:absolute;z-index:-1;left:50%;bottom:17px;width:clamp(80px,10vw,150px);height:clamp(22px,3.6vh,42px);transform:translateX(-50%) rotateX(58deg);border:1px solid #ffe29a99;border-radius:50%;background:radial-gradient(ellipse,#ffde7c55,#13281e15 68%,transparent 78%);box-shadow:0 14px 15px #07191199}
.defense-slot::after{content:"";position:absolute;z-index:-2;left:50%;bottom:6px;width:clamp(70px,10vw,144px);height:18px;transform:translateX(-50%);border-radius:50%;background:#061a13a8;filter:blur(6px)}
.defense-slot.is-empty{justify-items:center;border:0;border-radius:0;background:transparent;color:#f9e5b2}
.defense-slot.is-empty::before{bottom:30%;width:clamp(58px,6.8vw,98px);height:clamp(30px,4vh,48px);clip-path:none;transform:translateX(-50%) rotateX(58deg);border:2px solid #f5d784cc;border-radius:50%;background:radial-gradient(ellipse,#f8d97855,transparent 72%);box-shadow:0 0 28px #f6d47566}
.defense-slot.is-empty::after{content:none}
.defense-slot.is-target{border:0;background:radial-gradient(ellipse at center bottom,#9be87a38,transparent 72%);box-shadow:none}
.defense-slot.is-target::before{border-color:#d5f29a;box-shadow:0 0 24px #bcf28f88}
.defense-slot-number,.defense-slot>span:first-child{position:absolute;z-index:4;top:4px;left:4px;display:grid;place-items:center;width:clamp(19px,2.4vh,25px);height:clamp(19px,2.4vh,25px);border:1px solid #f2d17e;border-radius:50%;background:#0d3328;color:#ffe3a0;font-size:clamp(8px,.9vh,10px);font-weight:950;box-shadow:0 2px 8px #071a1380}
.defense-slot-art{position:relative;z-index:2;grid-row:1;display:grid;place-items:center;width:clamp(86px,13vh,150px);height:clamp(76px,12vh,138px);max-width:100%;overflow:visible;border:0;border-radius:0;background:transparent;filter:drop-shadow(0 12px 8px #061b1599);animation:formation-bee-hover 3.2s ease-in-out infinite}
.defense-slot-art .character-card-art{display:none}.defense-guardian-sprite{position:absolute;z-index:2;inset:-7% -6% -2%;width:112%;height:109%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 11px 12px #07130fc9);transform-origin:center bottom;animation:formation-guardian-idle 3.4s ease-in-out infinite;pointer-events:none}
.defense-slot-art .character-card-aura{display:none}
.defense-slot-art .character-card-sprite{display:none}
.defense-position-row:first-child .defense-slot-art{width:clamp(130px,22vh,230px);height:clamp(118px,20vh,215px)}
.defense-position-row:last-child .defense-slot-art{width:clamp(92px,14vh,160px);height:clamp(82px,13vh,148px);opacity:.96}
.defense-slot>strong{position:relative;z-index:3;align-self:end;max-width:94%;overflow:hidden;padding:3px 8px;border:1px solid #f2d38a65;border-radius:999px;background:#0c2c23d9;color:#fff3d0;font-size:clamp(9px,1.15vh,13px);line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
.defense-slot>small{position:relative;z-index:3;max-width:98%;overflow:hidden;margin-top:3px;padding:2px 5px;border-radius:6px;background:#0c2c23c9;color:#f9df9f;font-size:clamp(7px,.9vh,10px);line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
.defense-slot.is-empty>strong{align-self:end;margin:0 0 14%;padding:4px 9px;background:#0b2a22c9;font-size:clamp(8px,1vh,11px)}
.defense-slot.is-empty>span:first-child{top:4px;left:4px}
.defense-selection-zone{display:grid;grid-template-rows:auto minmax(0,1fr);gap:5px;min-height:0;overflow:hidden;padding:6px 9px;border:1px solid #b99a58;border-radius:13px;background:linear-gradient(145deg,#fff8e5,#e9d6a8)}
.defense-selection-zone>header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#294532}
.defense-selection-zone>header strong{font-size:clamp(9px,1vh,11px);letter-spacing:.1em}
.defense-selection-zone>header small{color:#68745f;font-size:clamp(8px,.9vh,10px)}
.defense-candidate-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));align-content:center;align-items:stretch;gap:5px;min-height:0;overflow:hidden}
.defense-candidate-list>p{margin:4px 0;color:#68745f;font-size:11px}
.defense-candidate{display:flex;align-items:center;gap:7px;width:100%;min-width:0;min-height:clamp(40px,6vh,58px);padding:4px 7px;border:1px solid #c3a15a;border-radius:10px;background:linear-gradient(145deg,#fff9e8,#f0dfb8);color:#294532;text-align:left;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.defense-candidate:hover,.defense-candidate:focus-visible{outline:2px solid #d7aa45;outline-offset:1px;transform:translateY(-2px)}
.defense-candidate.is-pending,.defense-candidate.is-placed{border-color:#328753;background:#e0f1d3;box-shadow:0 0 0 2px #79b67b35}
.defense-candidate.is-unavailable,.defense-candidate:disabled{opacity:.55;cursor:not-allowed}
.defense-candidate-art{flex:0 0 clamp(32px,4.2vh,45px);width:clamp(32px,4.2vh,45px);height:clamp(32px,4.2vh,45px);overflow:hidden;border:1px solid #d3ad59;border-radius:50%;background:#164533}
.defense-candidate-art .character-card-art{width:100%;height:100%;min-height:0;aspect-ratio:1}
.defense-candidate-copy{display:grid;gap:2px;flex:1;min-width:0}
.defense-candidate-copy strong{overflow:hidden;color:#294532;font-size:clamp(9px,1vh,12px);text-overflow:ellipsis;white-space:nowrap}
.defense-candidate-copy small{overflow:hidden;color:#68745f;font-size:clamp(7px,.85vh,10px);text-overflow:ellipsis;white-space:nowrap}
.defense-candidate>b{flex:0 0 auto;color:#476844;font-size:clamp(7px,.8vh,10px);white-space:nowrap}
.defense-formation-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:0}
.defense-formation-footer .defense-formation-note,.defense-formation-footer .defense-formation-warning,.defense-formation-feedback{max-width:none;margin:0;padding:5px 9px;font-size:clamp(8px,.9vh,11px);line-height:1.25;text-align:left}
.defense-formation-footer>button{min-width:150px;padding:8px 15px;border:1px solid #f5dda1;border-radius:11px;background:linear-gradient(135deg,#f7dc8e,#dca843);color:#3c2d14;font:inherit;font-size:clamp(10px,1.1vh,13px);font-weight:900;cursor:pointer;box-shadow:0 3px 0 #947743}
.defense-formation-footer>button:disabled{opacity:.65;cursor:wait}
@keyframes formation-bee-hover{0%,100%{transform:translateY(2px) rotate(-1.5deg)}50%{transform:translateY(-7px) rotate(1.5deg)}}
@keyframes formation-bee-breathe{0%,100%{scale:1}50%{scale:1.035}}
@keyframes formation-guardian-idle{0%,100%{transform:translateY(3px) rotate(-1deg)}50%{transform:translateY(-8px) rotate(1deg)}}
@media(max-width:800px){
 .hive-bee-directory.is-defense-formation{inset:54px 0 0;padding:5px}
 .hive-bee-directory.is-defense-formation .hive-bee-directory-content{border-radius:12px}
 .defense-formation-panel{grid-template-rows:auto minmax(0,1.2fr) minmax(82px,.7fr) auto;gap:4px;padding:5px}
 .defense-formation-overview{grid-template-columns:minmax(130px,.8fr) minmax(0,1.2fr);gap:5px;padding:1px 4px 3px}
 .defense-formation-overview h3{font-size:clamp(14px,2.5vw,19px)}
 .defense-formation-overview p{font-size:9px}
 .defense-formation-totals{gap:3px}
 .defense-formation-totals>div{min-height:42px;padding:4px 2px}
 .defense-formation-totals small{font-size:7px}
 .defense-formation-totals strong{font-size:clamp(13px,2.3vw,18px)}
 .defense-position-row{grid-template-columns:34px minmax(0,1fr);padding:0 2px}
 .defense-position-row>strong{font-size:7px;padding:6px 3px}
 .defense-position-row>div{gap:2px}
 .defense-position-row:first-child .defense-slot-art{width:clamp(70px,13vh,116px);height:clamp(62px,12vh,106px)}
 .defense-position-row:last-child .defense-slot-art{width:clamp(60px,10vh,90px);height:clamp(54px,9vh,82px)}
 .defense-slot{padding:2px 0 5px}
 .defense-slot::before{bottom:12px}
 .defense-slot::after{bottom:3px}
 .defense-slot>strong{font-size:8px}
 .defense-slot>small{font-size:7px}
 .defense-selection-zone{padding:4px}
 .defense-candidate-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:3px}
 .defense-candidate{min-height:36px;padding:3px 4px}
 .defense-candidate-art{flex-basis:30px;width:30px;height:30px}
 .defense-candidate-copy small,.defense-candidate>b{font-size:7px}
 .defense-formation-footer .defense-formation-note,.defense-formation-footer .defense-formation-warning,.defense-formation-feedback{font-size:7px}
 .defense-formation-footer>button{min-width:112px;padding:7px 8px;font-size:9px}
}
@media(max-width:460px){
 .defense-formation-overview{grid-template-columns:minmax(95px,.72fr) minmax(0,1.28fr)}
 .defense-formation-overview>div:first-child small{font-size:7px}
 .defense-formation-overview p{font-size:8px}
 .defense-position-row{grid-template-columns:24px minmax(0,1fr)}
 .defense-position-row>strong{font-size:6px;letter-spacing:.08em}
 .defense-selection-zone>header small{font-size:7px}
 .defense-candidate-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .defense-candidate-copy strong{font-size:8px}
 .defense-formation-footer{grid-template-columns:minmax(0,1fr) auto;gap:4px}
 .defense-formation-footer>button{min-width:100px;padding:6px;font-size:8px}
}
@media(max-height:700px){
 .defense-formation-panel{grid-template-rows:auto minmax(0,1.15fr) minmax(76px,.65fr) auto;padding:4px;gap:4px}
 .defense-formation-overview h3{font-size:clamp(14px,2vh,19px)}
 .defense-formation-board{border-radius:12px}
 .defense-position-row:first-child .defense-slot-art{width:clamp(70px,12vh,112px);height:clamp(64px,11vh,100px)}
 .defense-position-row:last-child .defense-slot-art{width:clamp(60px,9vh,86px);height:clamp(55px,8vh,76px)}
 .defense-candidate{min-height:36px}
 .defense-candidate-art{flex-basis:28px;width:28px;height:28px}
}
@media(max-height:560px){
 .defense-formation-panel{grid-template-rows:auto minmax(0,1fr) minmax(58px,.46fr) auto;gap:3px}
 .defense-formation-overview{padding:0 3px}
 .defense-formation-overview>div:first-child small{font-size:7px}
 .defense-formation-overview p{font-size:8px}
 .defense-formation-totals>div{min-height:34px}
 .defense-position-row:first-child .defense-slot-art{width:clamp(58px,10vh,80px);height:clamp(52px,9vh,72px)}
 .defense-position-row:last-child .defense-slot-art{width:clamp(48px,8vh,66px);height:clamp(44px,7vh,60px)}
 .defense-selection-zone{grid-template-rows:auto minmax(0,1fr)}
 .defense-candidate{min-height:30px}
 .defense-candidate-art{flex-basis:23px;width:23px;height:23px}
 .defense-formation-footer>button{min-width:96px;padding:5px}
}
@media(prefers-reduced-motion:reduce){
 .defense-slot-art,.defense-slot-art .character-card-art,.defense-slot-art .character-card-aura,.defense-slot-art .character-card-sprite,.defense-guardian-sprite{animation:none!important}
 .defense-slot,.defense-candidate{transition:none}
}

/* Formação defensiva: roster compacto no cabeçalho e arena ampliada */
.defense-arena-backdrop{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 54%;pointer-events:none}
.defense-position-row{position:relative;z-index:1}
.defense-position-row>strong,.defense-position-row>div{position:relative;z-index:1}
.hive-interior.is-defense-formation .hive-interior-header{justify-content:flex-start;gap:clamp(6px,.8vw,12px);min-height:64px;padding:6px clamp(8px,1vw,16px)}
.hive-interior.is-defense-formation .hive-interior-heading{flex:0 0 auto}
.hive-interior.is-defense-formation .hive-interior-close{flex:0 0 auto;margin-left:auto}
.defense-roster-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:center;gap:clamp(3px,.45vw,7px);flex:1;min-width:0}
.defense-roster-strip .defense-candidate{width:100%;min-width:0;min-height:42px;padding:3px 5px;gap:4px;border-radius:10px;box-shadow:0 2px 5px #10291d20}
.defense-roster-strip .defense-candidate-art{flex:0 0 27px;width:27px;height:27px}
.defense-roster-strip .defense-candidate-copy{min-width:0;gap:1px}
.defense-roster-strip .defense-candidate-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(8px,.72vw,10px)}
.defense-roster-strip .defense-candidate-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(6px,.55vw,8px);line-height:1.15}
.defense-roster-strip .defense-candidate>b{flex:0 0 auto;max-width:50px;font-size:clamp(6px,.55vw,8px);line-height:1.1;text-align:center}
.defense-roster-empty{grid-column:1/-1;margin:0;padding:4px 8px;color:#f5e9c8;font-size:10px}
.defense-formation-panel{grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(5px,.8vh,10px)}
.defense-formation-board{min-height:0}
.defense-position-row:first-child .defense-slot-art{width:clamp(50px,8vh,82px);height:clamp(46px,7vh,72px)}
.defense-position-row:last-child .defense-slot-art{width:clamp(42px,6.8vh,70px);height:clamp(39px,5.8vh,62px)}
@media(max-width:700px){
 .hive-interior.is-defense-formation .hive-interior-header{gap:4px;padding:4px 6px}
 .hive-interior.is-defense-formation .hive-interior-heading{gap:5px}
 .hive-interior.is-defense-formation .hive-interior-heading strong{font-size:13px}
 .hive-interior.is-defense-formation .hive-interior-heading small{font-size:6px}
 .hive-interior.is-defense-formation .hive-interior-icon{width:28px;height:28px;font-size:18px}
 .defense-roster-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
 .defense-roster-strip .defense-candidate{min-height:34px;padding:2px 3px}
 .defense-roster-strip .defense-candidate-art{flex-basis:21px;width:21px;height:21px}
 .defense-roster-strip .defense-candidate-copy small{display:none}
 .defense-roster-strip .defense-candidate>b{max-width:42px}
 .hive-interior.is-defense-formation .hive-interior-close{width:32px;height:32px}
}
@media(max-height:700px){
 .defense-formation-panel{grid-template-rows:auto minmax(0,1fr) auto;gap:4px;padding:4px}
 .defense-formation-overview{padding:1px 4px 3px}
 .defense-formation-totals>div{min-height:42px}
 .defense-position-row:first-child .defense-slot-art{width:clamp(46px,7.5vh,72px);height:clamp(42px,6.5vh,64px)}
 .defense-position-row:last-child .defense-slot-art{width:clamp(40px,6vh,62px);height:clamp(36px,5.3vh,54px)}
}
@media(max-height:560px){
 .defense-roster-strip .defense-candidate{min-height:30px}
 .defense-roster-strip .defense-candidate-art{flex-basis:20px;width:20px;height:20px}
 .defense-formation-overview p{font-size:8px}
 .defense-position-row:first-child .defense-slot-art{width:clamp(38px,6.5vh,58px);height:clamp(34px,5.7vh,50px)}
 .defense-position-row:last-child .defense-slot-art{width:clamp(34px,5.5vh,50px);height:clamp(30px,4.8vh,44px)}
}
