:root{
    --bg:#17130f;--panel:#241c15;--panel2:#30251b;--text:#f4eadb;--muted:#b9a992;
    --accent:#d9a441;--accent2:#8f5d2d;--line:#4a3928;--danger:#c96a5c;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(circle at top,#33251a 0,#17130f 48%);color:var(--text);min-height:100vh}
a{color:#e7bd6a;text-decoration:none} a:hover{text-decoration:underline}
.landing{display:grid;place-items:center;padding:24px}
.landing-card{max-width:620px;text-align:center;padding:64px 30px}
.brand-mark{font-size:72px;filter:drop-shadow(0 10px 20px #0008)}
.eyebrow{letter-spacing:.18em;font-size:12px;color:var(--accent);font-weight:800;margin:8px 0}
h1,h2,h3,h4,p{margin-top:0}
.landing h1{font-family:Georgia,serif;font-size:68px;margin:0 0 12px}
.lead{color:var(--muted);font-size:19px}
.landing-actions{display:flex;gap:12px;justify-content:center;margin-top:30px;flex-wrap:wrap}
.btn{border:1px solid var(--line);border-radius:9px;padding:12px 18px;font-weight:800;cursor:pointer;color:var(--text);background:var(--panel2);font-size:14px}
.btn:hover{filter:brightness(1.12);text-decoration:none}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn[hidden]{display:none!important}
.btn-primary{background:var(--accent);color:#1d160e;border-color:#e4b65b}
.btn-small{padding:8px 12px;font-size:12px}
.auth-page{display:grid;place-items:center;padding:20px}
.auth-card{width:min(430px,100%);background:#211a14ee;border:1px solid var(--line);border-radius:16px;padding:34px;box-shadow:0 20px 60px #0007}
.auth-card h1{font-family:Georgia,serif;font-size:38px}
.back-link{display:inline-block;margin-bottom:25px;color:var(--muted)}
form{display:grid;gap:15px}
label{display:grid;gap:7px;font-size:13px;color:var(--muted);font-weight:700}
input{width:100%;padding:12px;border-radius:8px;border:1px solid var(--line);background:#15110e;color:var(--text);font-size:15px}
.alert{background:#5d2c27;border:1px solid #9d4f45;padding:10px 12px;border-radius:8px;margin-bottom:15px}
.muted{color:var(--muted);font-size:13px;margin:18px 0 0}
.game-page{background:#17130f}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:20px max(20px,calc((100% - 1180px)/2));border-bottom:1px solid var(--line);background:#17130fee;position:sticky;top:0;z-index:5;backdrop-filter:blur(10px)}
.topbar h1{font-family:Georgia,serif;font-size:27px;margin:0}
.player-menu{display:flex;gap:18px;align-items:center;color:var(--muted);font-size:14px}
.game-shell{max-width:1180px;margin:auto;padding:22px}
.resource-bar{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:18px}
.resource{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 10px;display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center}
.resource span{grid-row:span 2;font-size:23px}.resource strong{font-size:17px}.resource small{color:var(--muted)}
.hero-panel{background:linear-gradient(120deg,#3b2b1d,#251c15);border:1px solid var(--line);border-radius:16px;padding:26px;display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.hero-panel h2{font-family:Georgia,serif;font-size:34px;margin-bottom:8px}.hero-panel p:not(.eyebrow){color:var(--muted);margin:0}
.level-card{text-align:center;border:1px solid var(--line);border-radius:12px;padding:13px 20px;background:#17130fcc;min-width:105px}
.level-card span,.level-card small{display:block;color:var(--muted);font-size:11px}.level-card strong{display:block;font-size:32px;color:var(--accent)}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;min-height:290px}
.panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:8px}
.panel-head h3{margin:0;font-family:Georgia,serif}.panel-head span{font-size:11px;color:var(--muted)}
.building-row,.dino-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #3a2c20}
.building-row>div,.dino-row>div{flex:1}.building-action{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex:0 0 auto}.upgrade-cost{color:var(--muted);font-size:11px;white-space:normal;text-align:right;line-height:1.35;max-width:190px}.building-row small,.dino-row small{display:block;color:var(--muted);margin-top:3px;font-size:12px}
.expedition{text-align:center;padding:22px 5px}.map-icon{font-size:52px}.expedition h4{font-family:Georgia,serif;font-size:22px;margin:8px 0}.expedition p{color:var(--muted);font-size:13px;line-height:1.5}
.result-box{min-height:42px;margin-top:15px;padding:10px;color:var(--muted);font-size:12px}.result-box.success{color:#e6c17b}
.dino-icon{font-size:27px}.dino-row b{font-size:12px;color:var(--accent)}
.empty-state{color:var(--muted);padding:35px 10px;text-align:center;font-size:13px;line-height:1.6}
@media(max-width:850px){.dashboard-grid{grid-template-columns:1fr}.resource-bar{grid-template-columns:repeat(2,1fr)}.resource:last-child{grid-column:span 2}.hero-panel{gap:20px}.hero-panel h2{font-size:27px}}
@media(max-width:520px){.topbar{padding:15px}.game-shell{padding:12px}.player-menu span{display:none}.hero-panel{padding:20px}.level-card{min-width:80px}.landing h1{font-size:48px}}

/* Language selector */
.language-switcher{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:700}
.language-switcher label{display:inline;color:var(--muted);font-size:11px;font-weight:700}
.language-switcher select{appearance:auto;border:1px solid var(--line);border-radius:7px;padding:7px 9px;background:var(--panel2);color:var(--text);font:inherit;font-size:12px;cursor:pointer}
.language-switcher-floating{position:fixed;top:20px;right:24px;z-index:10}
.language-switcher-auth{position:fixed;top:20px;right:24px;z-index:10}
@media(max-width:850px){.player-menu{gap:10px}.player-menu .language-switcher label{display:none}}
@media(max-width:520px){.language-switcher-floating,.language-switcher-auth{top:12px;right:12px}.language-switcher select{padding:6px 7px}}


/* Expedition countdown */
.expedition-timer{margin:16px auto 10px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);display:flex;align-items:center;justify-content:center;gap:12px;max-width:260px}
.expedition-timer .timer-label{color:var(--muted);font-size:12px}
.expedition-timer strong{font-size:24px;letter-spacing:1px;font-variant-numeric:tabular-nums}
#collect-expedition-btn{margin-top:4px}

/* Building purpose and production */
.building-row{align-items:flex-start}
.building-main{min-width:0}
.building-description{color:var(--muted);font-size:11px;line-height:1.45;margin:5px 0 5px}
.building-production{display:inline-block;color:var(--accent);font-size:11px;font-weight:800;margin-top:1px}
.building-effect{display:block;color:var(--muted);font-size:11px;line-height:1.35;margin-top:1px}

/* Compact building information tooltip */
.building-name-line{display:flex;align-items:center;gap:7px;min-width:0}
.building-info{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid var(--line);border-radius:50%;color:var(--muted);font-size:11px;font-weight:800;cursor:help;position:relative;flex:0 0 auto;line-height:1;user-select:none}
.building-info::after{content:attr(data-tooltip);position:absolute;left:24px;top:50%;transform:translateY(-50%);width:240px;padding:10px 12px;background:#30251b;color:var(--text);border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 24px rgba(0,0,0,.35);font-size:12px;font-weight:400;line-height:1.45;text-align:left;white-space:pre-line;opacity:0;visibility:hidden;pointer-events:none;z-index:20;transition:opacity .15s ease,visibility .15s ease}
.building-info:hover::after,.building-info:focus::after{opacity:1;visibility:visible}
.building-info:focus{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:520px){.building-info::after{left:22px;top:24px;transform:none;width:min(230px,calc(100vw - 70px))}}

/* Clickable game brand */
.game-brand{display:inline-block;letter-spacing:.18em;font-size:12px;color:var(--accent);font-weight:800;margin:8px 0;text-decoration:none}
.game-brand:hover{color:var(--accent);text-decoration:none;filter:brightness(1.12)}
.game-brand:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}

/* Clickable outpost title */
.outpost-title{color:inherit;text-decoration:none}
.outpost-title:hover{color:inherit;text-decoration:none}
.outpost-title:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:3px}

/* V0.1.12 - compact buildings, production on resource cards, bestiary management */
.building-row{align-items:center}
.building-main{min-width:0}
.building-main>strong{display:block}
.building-main>small{display:block;color:var(--muted);margin-top:3px;font-size:12px}
.building-info{display:inline-flex}
.building-production,.building-effect{display:none}
.upgrade-cost{display:block;color:var(--muted);font-size:10px;white-space:normal;text-align:right;line-height:1.35;max-width:210px;margin-top:2px}

.resource{grid-template-columns:auto 1fr}
.resource-main{min-width:0;display:flex;flex-direction:column}
.resource-icon{grid-row:1 / span 4}

.resource-capacity-bar{height:6px;width:100%;margin-top:5px;background:rgba(255,255,255,.07);border:1px solid var(--line);border-radius:999px;overflow:hidden}
.resource-capacity-fill{height:100%;width:0;background:var(--accent);border-radius:999px;transition:width .25s ease}
.resource-gold .resource-main{justify-content:center}
.resource-production{grid-column:2;color:var(--accent);font-style:normal;font-size:11px;font-weight:800;margin-top:2px;white-space:pre-line;line-height:1.35}
.resource-production-muted{color:var(--muted);font-weight:600}

.dino-row{align-items:center}
.dino-info{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid var(--line);border-radius:50%;color:var(--muted);font-size:11px;font-weight:800;cursor:help;position:relative;flex:0 0 auto;line-height:1;user-select:none}
.dino-info::after{content:attr(data-tooltip);position:absolute;right:24px;top:50%;transform:translateY(-50%);width:230px;padding:10px 12px;background:#30251b;color:var(--text);border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 24px rgba(0,0,0,.35);font-size:12px;font-weight:400;line-height:1.45;text-align:left;white-space:pre-line;opacity:0;visibility:hidden;pointer-events:none;z-index:20;transition:opacity .15s ease,visibility .15s ease}
.dino-info:hover::after,.dino-info:focus::after{opacity:1;visibility:visible}
.dino-info:focus{outline:2px solid var(--accent);outline-offset:2px}
.release-dino-btn{border:1px solid var(--line);border-radius:7px;padding:6px 8px;background:transparent;color:var(--muted);font-size:10px;font-weight:700;cursor:pointer;flex:0 0 auto}
.release-dino-btn:hover{color:var(--text);background:var(--panel2)}
.release-dino-btn:disabled{opacity:.5;cursor:not-allowed}
.dino-quantity{min-width:22px;text-align:right}
@media(max-width:520px){
  .resource-production{font-size:10px;line-height:1.35}
  .dino-info::after{right:22px;top:24px;transform:none;width:min(220px,calc(100vw - 70px))}
  .release-dino-btn{padding:5px 6px;font-size:9px}
}

/* V0.1.17 - building upgrade costs on a dedicated line */
.building-row{display:block;padding:12px 0;border-bottom:1px solid #3a2c20}
.building-top{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;min-width:0}
.building-main{min-width:0}
.building-level{display:block;color:var(--muted);font-size:12px;white-space:nowrap;margin:0}
.building-action{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto}
.upgrade-cost{display:block;width:100%;min-width:0;max-width:none;margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1;white-space:nowrap;text-align:left}
.upgrade-cost-label{display:none}
.upgrade-cost-items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;width:100%;gap:4px;min-width:0;white-space:nowrap}
.upgrade-cost-item{display:inline-flex;align-items:center;justify-content:center;gap:3px;color:var(--text);font-size:11px;font-weight:700;white-space:nowrap;min-width:0}
.upgrade-cost-item.is-empty{visibility:hidden}
.upgrade-cost-icon{font-size:14px;line-height:1}
.upgrade-cost-amount{font-variant-numeric:tabular-nums}
@media(max-width:520px){
  .building-top{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .building-main{grid-column:1;grid-row:1}
  .building-level{grid-column:1;grid-row:2;margin-top:-3px}
  .building-action{grid-column:2;grid-row:1 / span 2}
  .upgrade-cost{margin-top:7px}
  .upgrade-cost-items{gap:2px}
  .upgrade-cost-item{font-size:10px;gap:2px}
  .upgrade-cost-icon{font-size:12px}
}

/* V0.1.18 - Expedition history */
.expedition-history{margin:28px 0 0;padding-top:18px;border-top:1px solid var(--line);text-align:left}
.expedition-history-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
.expedition-history-head h5{margin:0;font-size:14px;color:var(--text);font-family:Georgia,serif}
.expedition-history-head span{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.expedition-history-list{display:flex;flex-direction:column}
.history-row{display:grid;grid-template-columns:82px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid rgba(90,66,45,.55);font-size:10px}
.history-row:last-child{border-bottom:0}
.history-row time{color:var(--muted);font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-loot{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.history-loot span{white-space:nowrap;color:var(--text);font-weight:700}
.history-dino{color:var(--accent);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:135px}
.history-empty{padding:13px 0;color:var(--muted);font-size:11px;text-align:center}
@media(max-width:520px){
  .history-row{grid-template-columns:1fr auto;gap:5px 8px}
  .history-row time{grid-column:1}
  .history-dino{grid-column:2;grid-row:1;max-width:120px;text-align:right}
  .history-loot{grid-column:1 / -1;gap:6px}
}

/* V0.2.0 - player progression */
.level-card{min-width:116px}
.xp-progress{width:100%;height:5px;margin:7px 0 4px;background:#17130f;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.xp-progress span{display:block;height:100%;width:0;background:var(--accent);border-radius:inherit;transition:width .25s ease}
.level-card .xp-next{display:block;font-size:9px;color:var(--muted);line-height:1.25}
.unlock-preview{margin-left:auto;min-width:190px;max-width:280px;padding:10px 13px;border:1px solid var(--line);border-radius:10px;background:rgba(48,37,27,.55);display:flex;flex-direction:column;gap:2px}
.unlock-preview-label{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.unlock-preview strong{font-size:12px;color:var(--accent)}
.unlock-preview small{font-size:11px;color:var(--text);line-height:1.35}
.building-locked{opacity:.58}
.building-lock-badge{font-size:10px;color:var(--muted);font-weight:800;white-space:nowrap}
.upgrade-cost-locked{color:var(--muted);text-align:left}
.upgrade-unlock-text{font-size:10px;font-weight:700}
.history-xp{color:var(--accent)!important}
@media(max-width:850px){.unlock-preview{margin-left:0;max-width:none;grid-column:1 / -1}.hero-panel{display:grid;grid-template-columns:minmax(0,1fr) auto}}
@media(max-width:520px){.hero-panel{display:flex;flex-wrap:wrap}.unlock-preview{width:100%;min-width:0}.level-card{min-width:105px}.building-lock-badge{font-size:9px}}


/* V0.2.2 - compact player level progress */
.progress-area{width:min(390px,42%);display:flex;flex-direction:column;gap:8px;flex:0 0 auto}
.level-card{width:100%;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;text-align:center;padding:11px 14px}
.level-card-heading{display:flex;align-items:baseline;justify-content:center;gap:7px}
.level-card-heading span{color:var(--muted);font-size:10px}
.level-card-heading strong{font-size:30px;line-height:1;color:var(--accent)}
.level-card-xp{min-width:0}
.xp-progress{margin:0;height:8px;width:100%;background:#17130f;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.xp-progress span{display:block;height:100%;width:0;background:var(--accent);border-radius:inherit;transition:width .25s ease}
.xp-value{margin-top:5px;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.xp-value span{color:var(--text);font-weight:800}
.unlock-preview-label{display:block;margin-bottom:4px}
.unlock-preview-content{display:flex;align-items:baseline;gap:8px;min-width:0}
.unlock-preview-content strong{white-space:nowrap}
.unlock-preview-content small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.expedition .btn-primary{display:inline-flex;align-items:center;justify-content:center;min-width:190px;min-height:48px;line-height:1.2;white-space:nowrap}
#explore-btn{font-size:14px}
@media(max-width:850px){
  .hero-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,38%);gap:18px}
  .progress-area{width:100%;max-width:390px;justify-self:end}
}
@media(max-width:650px){
  .hero-panel{display:flex;flex-wrap:wrap}
  .progress-area{width:100%;max-width:none}
}
@media(max-width:520px){
  .level-card{padding:10px 11px}
  .level-card-heading strong{font-size:28px}
  .unlock-preview-content{display:block}
  .unlock-preview-content small{display:block;margin-top:2px}
  .expedition .btn-primary{min-width:180px;width:auto}
}

/* V0.2.3 - fix player XP progress display */
.level-card-xp{display:block;width:100%;min-width:0}
.level-card .xp-progress{display:block;width:100%;height:9px;margin:0;background:#17130f;border:1px solid var(--line);border-radius:999px;overflow:hidden;box-sizing:border-box}
.level-card .xp-progress > span{display:block!important;width:0;height:100%;padding:0;margin:0;background:var(--accent);border-radius:inherit;transition:width .25s ease;box-sizing:border-box}
.level-card .xp-value{display:flex;align-items:center;justify-content:center;gap:3px;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
.level-card .xp-value span{display:inline!important;width:auto!important;height:auto!important;padding:0!important;margin:0!important;color:var(--text);font-weight:800;line-height:inherit}

/* V0.3.0 - expedition zones */
.zone-picker{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 14px;text-align:left}
.zone-card{appearance:none;border:1px solid var(--line);border-radius:9px;background:rgba(48,37,27,.48);color:var(--text);padding:9px 9px;display:flex;align-items:center;gap:8px;min-width:0;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease};touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none
.zone-card:hover:not(:disabled){background:var(--panel2);transform:translateY(-1px)}
.zone-card.selected{border-color:var(--accent);background:rgba(217,164,65,.10);box-shadow:inset 0 0 0 1px rgba(217,164,65,.12)}
.zone-card.locked,.zone-card:disabled{opacity:.48;cursor:not-allowed}
.zone-card-icon{font-size:22px;line-height:1;flex:0 0 auto}
.zone-card-body{display:flex;flex-direction:column;min-width:0;gap:2px}
.zone-card-body strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zone-card-body small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.selected-zone{padding:2px 4px 5px}
.selected-zone .map-icon{font-size:42px}
.selected-zone h4{margin:5px 0 5px}
.selected-zone p{margin-bottom:8px}
.zone-card.is-active{pointer-events:none}
.expedition-history .history-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:8px 0}
.expedition-history .history-row time{grid-column:1;grid-row:1}
.expedition-history .history-row .history-zone{grid-column:2;grid-row:1;max-width:125px;text-align:right}
.expedition-history .history-row .history-loot{grid-column:1 / -1;grid-row:2;gap:6px;line-height:1.3}
.expedition-history .history-row .history-dino{grid-column:1 / -1;grid-row:3;max-width:100%;margin-top:1px}
.history-zone{font-size:9px;color:var(--accent);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:520px){
  .zone-picker{grid-template-columns:1fr 1fr;gap:6px}
  .zone-card{padding:8px 7px}
  .zone-card-icon{font-size:19px}
  .zone-card-body strong{font-size:10px}
  .zone-card-body small{font-size:8px}
  .expedition-history .history-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 6px}
  .expedition-history .history-row .history-zone{max-width:115px}
}

/* V0.4.0 - dinosaur progression and stat tooltip */
.dino-details{min-width:0}
.dino-details strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dino-details small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dino-info::after{width:250px;line-height:1.5}
@media(max-width:520px){.dino-info::after{width:min(240px,calc(100vw - 70px))}}

/* V0.5.0 - basic PvE combat */
.team-toggle-btn{border:1px solid var(--line);border-radius:7px;padding:6px 8px;background:transparent;color:var(--muted);font-size:10px;font-weight:700;cursor:pointer;flex:0 0 auto}
.team-toggle-btn:hover{color:var(--text);background:var(--panel2)}
.team-toggle-btn.selected{color:var(--accent);border-color:var(--accent);background:rgba(217,164,65,.10)}
.team-toggle-btn:disabled{opacity:.5;cursor:not-allowed}
.combat-panel{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.combat-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.combat-head h4{margin:0;font-size:15px;font-family:Georgia,serif}
.combat-head small{color:var(--muted);font-size:10px}
#battle-zone-label{color:var(--accent);font-size:10px;font-weight:700;white-space:nowrap;max-width:130px;overflow:hidden;text-overflow:ellipsis}
.battle-team-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.battle-team-summary strong{font-size:12px}.battle-team-summary span{color:var(--muted);font-size:10px}
.battle-selected-team{display:flex;gap:6px;flex-wrap:wrap;min-height:30px;margin-bottom:9px}
.battle-team-chip{display:flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid var(--line);border-radius:7px;background:rgba(48,37,27,.5);font-size:10px;min-width:0}
.battle-team-chip strong{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-team-chip small{color:var(--muted);white-space:nowrap}.battle-empty{color:var(--muted);font-size:11px}
.battle-start-btn{width:100%;min-height:38px}.battle-start-btn:disabled{opacity:.45;cursor:not-allowed}
.battle-view{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.battle-opponent,.battle-active{padding:10px;border:1px solid var(--line);border-radius:9px;background:rgba(48,37,27,.42);min-width:0}
.battle-side-label{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em;font-weight:800;margin-bottom:4px}
.battle-opponent strong,.battle-active strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-opponent small,.battle-active small{color:var(--muted);font-size:9px}
.battle-hp{height:6px;margin:8px 0 4px;background:#17130f;border:1px solid var(--line);border-radius:999px;overflow:hidden}.battle-hp span{display:block;height:100%;width:0;background:var(--accent);border-radius:inherit;transition:width .2s ease}
.battle-actions{display:flex;gap:7px;margin-top:8px}.battle-actions .btn{flex:1;min-height:36px}.battle-flee-btn{background:transparent}
.battle-log{margin-top:8px;max-height:105px;overflow:auto;padding:7px 8px;border:1px solid var(--line);border-radius:8px;background:#17130f;color:var(--muted);font-size:10px;line-height:1.45}.battle-log div+div{margin-top:3px}.battle-result{margin-top:8px;padding:8px;border-radius:8px;background:rgba(217,164,65,.10);border:1px solid var(--line);color:var(--text);font-size:10px;line-height:1.4}
@media(max-width:520px){.team-toggle-btn{padding:5px 6px;font-size:9px}.battle-view{grid-template-columns:1fr}.battle-actions{flex-direction:column}.battle-team-chip{max-width:100%}}

/* V0.6.0 - multi-page game navigation */
.topbar{gap:18px;flex-wrap:wrap;align-items:center}
.topbar-brand-wrap{flex:0 0 auto;min-width:190px}
.game-nav{display:flex;align-items:center;gap:5px;flex:1 1 auto;min-width:320px;justify-content:center}
.game-nav-link{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid transparent;border-radius:8px;color:var(--muted);font-size:12px;font-weight:800;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.game-nav-link:hover{color:var(--text);text-decoration:none;background:var(--panel2);border-color:var(--line)}
.game-nav-link.active{color:var(--text);background:rgba(217,164,65,.10);border-color:var(--line);box-shadow:inset 0 -2px 0 var(--accent)}
.game-nav-link span:first-child{font-size:15px;line-height:1}
.single-page-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.single-page-grid .panel{min-height:0}
.page-heading{background:linear-gradient(120deg,#3b2b1d,#251c15);border:1px solid var(--line);border-radius:16px;padding:24px 26px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.page-heading h2{font-family:Georgia,serif;font-size:30px;margin:0 0 7px}.page-heading p:not(.eyebrow){color:var(--muted);margin:0;max-width:720px}
.page-stat{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:10px;padding:12px 16px;background:#17130fcc;color:var(--accent);font-size:12px;font-weight:800;white-space:nowrap}
.content-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;min-height:290px}
.content-card .panel-head{margin-bottom:4px}
.expedition-page{max-width:760px;margin:0 auto;padding:25px 8px 8px}
.expedition-page .zone-picker{margin-bottom:22px}
.battle-page-card{max-width:900px;margin:0 auto}
.battle-page-card .combat-panel{border-top:0;margin-top:0;padding-top:8px}
.battle-zone-picker{padding:8px 0 0}
.battle-zone-picker .zone-picker{max-width:680px;margin:0 auto 14px}
.battle-hint{color:var(--muted);font-size:11px;text-align:center;margin:4px 0 10px}
.battle-page-card .battle-setup{max-width:680px;margin:0 auto}
.battle-page-card .battle-view{max-width:760px;margin:12px auto 0}
.battle-page-card .battle-log,.battle-page-card .battle-actions,.battle-page-card .battle-result{max-width:760px;margin-left:auto;margin-right:auto}
@media(max-width:1000px){.topbar{justify-content:center}.topbar-brand-wrap{margin-right:auto}.player-menu{margin-left:auto}.game-nav{order:3;flex-basis:100%;min-width:0;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}}
@media(max-width:650px){.topbar{padding:12px 15px;gap:9px}.topbar-brand-wrap{min-width:0}.topbar h1{font-size:24px}.game-brand{font-size:10px}.player-menu{gap:8px;font-size:12px}.game-nav{gap:3px}.game-nav-link{padding:7px 8px;font-size:11px}.page-heading{padding:20px;align-items:flex-start}.page-heading h2{font-size:26px}.page-stat{align-self:center}.content-card{padding:14px}}
@media(max-width:520px){.topbar-brand-wrap{flex:1 1 100%}.player-menu{position:absolute;right:12px;top:12px}.game-nav{flex-basis:100%;overflow-x:auto}.page-heading{flex-direction:column}.page-stat{align-self:flex-start}.page-heading p:not(.eyebrow){font-size:12px}.content-card{border-radius:12px}.expedition-page{padding:18px 2px 4px}}


/* V0.6.1 - denser interface without sacrificing readability */
.content-card{padding:14px;min-height:0}
.content-card .panel-head{padding-bottom:9px;margin-bottom:2px}
.dino-row{gap:8px;padding:9px 0}
.dino-icon{font-size:25px}
.dino-details small{margin-top:2px}
.team-toggle-btn,.release-dino-btn{padding:5px 7px}
.building-row{padding:10px 0}
@media(max-width:650px){.content-card{padding:12px}.dino-row{gap:7px;padding:8px 0}}
@media(max-width:520px){.dino-row{padding:7px 0}.dino-icon{font-size:23px}.team-toggle-btn,.release-dino-btn{padding:5px 6px;font-size:9px}}


/* V0.6.2 - genuinely compact lists */
.content-card{padding:12px}
.content-card .panel-head{padding-bottom:8px;margin-bottom:0}
.dino-list,.building-list{margin:0}
.content-card .dino-row{min-height:0;height:44px;box-sizing:border-box;padding:5px 0;gap:8px}
.content-card .dino-icon{font-size:23px;line-height:1}
.content-card .dino-details{min-width:0;line-height:1.1}
.content-card .dino-details strong{font-size:13px;line-height:1.1}
.content-card .dino-details small{font-size:10px;margin-top:2px;line-height:1.1}
.content-card .dino-info{width:16px;height:16px;font-size:10px}
.content-card .dino-quantity{font-size:11px;min-width:20px}
.content-card .team-toggle-btn,.content-card .release-dino-btn{padding:4px 7px;font-size:9px;line-height:1}
.content-card .building-row{padding:7px 0}
.content-card .building-top{gap:8px}
.content-card .building-name-line strong{font-size:13px}
.content-card .building-level{font-size:10px}
.content-card .upgrade-cost{margin-top:5px;font-size:10px}
.content-card .upgrade-cost-item{font-size:10px}
.content-card .upgrade-cost-icon{font-size:12px}
@media(max-width:650px){
  .content-card .dino-row{height:42px;padding:4px 0}
  .content-card .team-toggle-btn,.content-card .release-dino-btn{padding:4px 6px}
}


/* V0.6.6 - Bestiary redesign: use the available width for dinosaur stats */
.bestiary-section .dino-list .dino-row,
.content-card .dino-list .dino-row{
  display:grid !important;
  grid-template-columns:34px minmax(190px, 1fr) 1fr 22px 34px auto auto !important;
  align-items:center !important;
  column-gap:14px !important;
  min-height:72px !important;
  height:auto !important;
  padding:10px 6px !important;
  box-sizing:border-box !important;
}

.content-card .dino-list .dino-row .dino-icon{
  width:34px !important;
  font-size:30px !important;
  line-height:1 !important;
  text-align:center !important;
}

.content-card .dino-list .dino-row .dino-details{
  min-width:0 !important;
  width:auto !important;
  align-self:center !important;
}

.content-card .dino-list .dino-row .dino-details strong{
  display:block !important;
  font-size:15px !important;
  line-height:1.2 !important;
}

.content-card .dino-list .dino-row .dino-details small{
  display:block !important;
  font-size:11px !important;
  line-height:1.3 !important;
  margin-top:4px !important;
}

.content-card .dino-list .dino-row .dino-stats{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:14px !important;
  min-width:0 !important;
  white-space:nowrap !important;
  font-size:11px !important;
}

.content-card .dino-list .dino-row .dino-stats span{
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
}

.content-card .dino-list .dino-row .dino-info,
.content-card .dino-list .dino-row .dino-quantity,
.content-card .dino-list .dino-row .team-toggle-btn,
.content-card .dino-list .dino-row .release-dino-btn{
  justify-self:start !important;
  margin:0 !important;
}

.content-card .dino-list .dino-row .team-toggle-btn,
.content-card .dino-list .dino-row .release-dino-btn{
  white-space:nowrap !important;
  padding:6px 9px !important;
  font-size:10px !important;
}

@media(max-width:900px){
  .content-card .dino-list .dino-row{
    grid-template-columns:30px minmax(150px, 1fr) 1fr 20px 30px auto auto !important;
    column-gap:9px !important;
    padding:8px 3px !important;
  }
  .content-card .dino-list .dino-row .dino-stats{
    gap:8px !important;
    font-size:10px !important;
  }
}

@media(max-width:700px){
  .content-card .dino-list .dino-row{
    grid-template-columns:28px minmax(130px, 1fr) 20px 28px auto auto !important;
    min-height:62px !important;
    column-gap:7px !important;
  }
  .content-card .dino-list .dino-row .dino-stats{
    grid-column:2 / -1 !important;
    grid-row:2 !important;
    gap:9px !important;
    overflow:auto !important;
    padding-top:3px !important;
  }
  .content-card .dino-list .dino-row .dino-info{
    grid-column:3 !important;
  }
  .content-card .dino-list .dino-row .dino-quantity{
    grid-column:4 !important;
  }
}


/* V0.6.7 - full bestiary redesign with local dinosaur portraits and visible stats */
.content-card .dino-list .dino-row{
  display:grid !important;
  grid-template-columns:78px minmax(180px,1.2fr) minmax(330px,2fr) 22px 34px auto auto !important;
  align-items:center !important;
  column-gap:14px !important;
  min-height:92px !important;
  height:auto !important;
  padding:9px 4px !important;
  box-sizing:border-box !important;
}
.content-card .dino-portrait{
  width:70px !important;
  height:70px !important;
  border-radius:12px !important;
  overflow:hidden !important;
  border:1px solid var(--line) !important;
  background:#17130f !important;
}
.content-card .dino-portrait img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:contain !important;
}
.content-card .dino-details{
  min-width:0 !important;
}
.content-card .dino-details strong{
  display:block !important;
  font-size:15px !important;
  line-height:1.2 !important;
}
.content-card .dino-details small{
  display:block !important;
  margin-top:5px !important;
  font-size:11px !important;
  line-height:1.2 !important;
}
.content-card .dino-stats{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:wrap !important;
  gap:8px 14px !important;
  min-width:0 !important;
}
.content-card .dino-stats span{
  display:inline-flex !important;
  align-items:center !important;
  gap:3px !important;
  white-space:nowrap !important;
  color:var(--muted) !important;
  font-size:12px !important;
}
.content-card .dino-stats b{
  color:var(--text) !important;
  font-size:12px !important;
}
.content-card .dino-info,
.content-card .dino-quantity,
.content-card .dino-row .team-toggle-btn,
.content-card .dino-row .release-dino-btn{
  justify-self:start !important;
  margin:0 !important;
}
.content-card .dino-row .team-toggle-btn,
.content-card .dino-row .release-dino-btn{
  white-space:nowrap !important;
  padding:6px 9px !important;
  font-size:10px !important;
}
@media(max-width:1000px){
  .content-card .dino-list .dino-row{
    grid-template-columns:68px minmax(150px,1fr) minmax(260px,1.5fr) 20px 30px auto auto !important;
    column-gap:9px !important;
  }
  .content-card .dino-portrait{width:62px !important;height:62px !important}
  .content-card .dino-stats{gap:6px 9px !important}
}
@media(max-width:760px){
  .content-card .dino-list .dino-row{
    grid-template-columns:60px 1fr auto auto !important;
    min-height:78px !important;
  }
  .content-card .dino-portrait{width:54px !important;height:54px !important}
  .content-card .dino-details{grid-column:2 !important}
  .content-card .dino-stats{grid-column:2 / -1 !important;grid-row:2 !important}
  .content-card .dino-info{grid-column:3 !important;grid-row:1 !important}
  .content-card .dino-quantity{grid-column:4 !important;grid-row:1 !important}
  .content-card .dino-row .team-toggle-btn,
  .content-card .dino-row .release-dino-btn{grid-row:3 !important}
  .content-card .dino-row .team-toggle-btn{grid-column:2 / 3 !important}
  .content-card .dino-row .release-dino-btn{grid-column:3 / -1 !important}
}

/* V0.6.9 - embedded dinosaur portraits */
.content-card .dino-portrait{display:flex !important;align-items:center !important;justify-content:center !important;}
.content-card .dino-portrait img{width:100% !important;height:100% !important;object-fit:contain !important;}
.content-card .dino-fallback{font-size:34px !important;}
.content-card .dino-portrait.is-fallback::before{content:"🦖";font-size:34px;}

/* V0.6.17 - Outpost building cards */
.outpost-buildings-panel{overflow:visible}
.building-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding-top:4px}
.building-card{position:relative;min-width:0;background:var(--panel2);border:1px solid var(--line);border-radius:14px;overflow:visible;box-shadow:0 7px 18px rgba(0,0,0,.16);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.building-card:hover{transform:translateY(-2px);border-color:rgba(194,138,74,.75);box-shadow:0 10px 24px rgba(0,0,0,.24);z-index:50}
.building-card-image{position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:13px 13px 0 0;background:#241b14;border-bottom:1px solid var(--line)}
.building-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.building-card-level{position:absolute;left:9px;bottom:9px;padding:5px 8px;border:1px solid rgba(255,255,255,.12);border-radius:7px;background:rgba(25,18,13,.86);color:var(--text);font-size:10px;font-weight:800;backdrop-filter:blur(4px)}
.building-card-lock{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(12,9,7,.5);font-size:30px}
.building-card-body{padding:11px 11px 12px;min-height:128px;display:flex;flex-direction:column}
.building-card-title{display:flex;align-items:center;gap:7px;min-width:0}
.building-card-title strong{font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.building-card-title .building-info{margin-left:auto}
.building-card-title .building-info:hover::after,.building-card-title .building-info:focus::after{z-index:100}
.building-card-effect{margin-top:6px;color:var(--accent);font-size:10px;font-weight:800;line-height:1.25;min-height:13px}
.building-card-cost{margin-top:10px}
.building-card-cost-label{display:block;margin-bottom:6px;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em;font-weight:800}
.building-card-cost .upgrade-cost-items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
.building-card-cost .upgrade-cost-item{font-size:10px;gap:2px;justify-content:center}
.building-card-cost .upgrade-cost-icon{font-size:12px}
.building-upgrade-btn{width:100%;margin-top:auto;min-height:34px}
.building-card-unlock{margin-top:10px;padding:8px 9px;border:1px solid rgba(150,130,105,.28);border-radius:8px;background:rgba(0,0,0,.12);color:var(--muted);font-size:10px;line-height:1.35;font-weight:700}
.building-under-construction{border-color:rgba(194,138,74,.9);box-shadow:0 0 0 1px rgba(194,138,74,.18),0 10px 24px rgba(0,0,0,.24)}
.building-construction-status{margin-top:10px;padding:9px;border:1px solid rgba(194,138,74,.35);border-radius:9px;background:rgba(194,138,74,.08);display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:center}
.building-construction-status strong{font-size:10px;color:var(--accent)}
.building-construction-target{font-size:10px;color:var(--muted);text-align:right}
.building-construction-timer{grid-column:1 / -1;font-size:18px;font-weight:900;letter-spacing:.04em;color:var(--text);text-align:center;margin-top:2px}
.building-construction-bar{height:6px;margin-top:8px;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden}
.building-construction-bar span{display:block;width:0;height:100%;background:var(--accent);border-radius:inherit;transition:width .25s linear}
.building-upgrade-btn:disabled{opacity:.45;cursor:not-allowed;transform:none!important}
.building-card.building-locked{opacity:.68}
.building-card.building-locked:hover{transform:none;border-color:var(--line);box-shadow:0 7px 18px rgba(0,0,0,.16)}
@media(max-width:1050px){.building-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.building-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:480px){.building-grid{grid-template-columns:1fr;gap:12px}.building-card-image{aspect-ratio:16/9}.building-card-body{min-height:0}.building-card-title strong{font-size:14px}}


/* V0.6.18 - tactical PvE combat */
.battle-view-new{max-width:820px;margin:10px auto 0}
.battle-turnbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;margin-bottom:10px;border:1px solid var(--line);border-radius:9px;background:rgba(217,164,65,.07)}
.battle-turnbar span{font-size:10px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}.battle-turnbar strong{font-size:11px;color:var(--accent)}
.battle-duel{display:grid;grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);align-items:center;gap:8px}
.battle-combatant{position:relative;padding:12px;border:1px solid var(--line);border-radius:12px;background:rgba(48,37,27,.45);min-width:0}.battle-combatant.enemy{box-shadow:inset 0 0 0 1px rgba(190,90,70,.06)}.battle-combatant.player{box-shadow:inset 0 0 0 1px rgba(217,164,65,.06)}
.battle-combatant-top{display:flex;justify-content:space-between;gap:8px;min-width:0}.battle-combatant-top>div{min-width:0}.battle-combatant-top strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-combatant-top small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.battle-status-badge{min-width:22px;text-align:center;font-size:15px}
.battle-portrait-wrap{height:145px;margin:9px auto;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#17130f}.battle-portrait-wrap img{width:100%;height:100%;object-fit:contain;display:block}.battle-hp{height:8px;margin:7px 0 4px;background:#17130f;border:1px solid var(--line);border-radius:999px;overflow:hidden}.battle-hp span{display:block;height:100%;width:0;background:var(--accent);border-radius:inherit;transition:width .2s ease}.battle-hp-text{font-size:9px;color:var(--muted);text-align:right}.battle-vs{font-size:13px;font-weight:900;color:var(--accent);text-align:center}
.battle-roster-title,.battle-action-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 7px}.battle-roster-title strong,.battle-action-title strong{font-size:11px}.battle-roster-title small{font-size:9px;color:var(--muted)}
.battle-roster{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.battle-roster-card{appearance:none;color:var(--text);border:1px solid var(--line);border-radius:9px;background:rgba(48,37,27,.42);padding:7px;display:flex;align-items:center;gap:7px;text-align:left;cursor:pointer;min-width:0}.battle-roster-card:hover:not(:disabled){border-color:var(--accent);background:rgba(217,164,65,.08)}.battle-roster-card.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px rgba(217,164,65,.18);background:rgba(217,164,65,.08)}.battle-roster-card.defeated{opacity:.38;filter:grayscale(.7)}.battle-roster-card:disabled{cursor:default}.battle-roster-portrait{width:44px;height:44px;flex:0 0 44px;border-radius:7px;overflow:hidden;border:1px solid var(--line);background:#17130f}.battle-roster-portrait img{width:100%;height:100%;object-fit:contain;display:block}.battle-roster-info{min-width:0;flex:1}.battle-roster-info strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-roster-info small{display:block;font-size:8px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-mini-hp{height:4px;background:#17130f;border:1px solid var(--line);border-radius:999px;overflow:hidden;margin:4px 0 2px}.battle-mini-hp span{display:block;height:100%;background:var(--accent)}
.battle-actions-new{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.battle-action-btn{appearance:none;display:flex;align-items:center;gap:8px;text-align:left;min-width:0;min-height:58px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:rgba(48,37,27,.45);color:var(--text);cursor:pointer}.battle-action-btn:hover:not(:disabled){border-color:var(--accent);transform:translateY(-1px)}.battle-action-btn:disabled{opacity:.42;cursor:not-allowed;transform:none}.battle-action-btn.attack{background:rgba(217,164,65,.10)}.battle-action-btn .action-icon{font-size:18px;flex:0 0 auto}.battle-action-btn b{display:block;font-size:10px}.battle-action-btn small{display:block;color:var(--muted);font-size:8px;line-height:1.25;margin-top:2px}.battle-log{margin-top:9px;max-height:125px;overflow:auto;padding:8px 9px;border:1px solid var(--line);border-radius:8px;background:#17130f;color:var(--muted);font-size:10px;line-height:1.45}.battle-log div+div{margin-top:3px}.battle-result{margin-top:8px;padding:9px;border-radius:8px;background:rgba(217,164,65,.10);border:1px solid var(--line);color:var(--text);font-size:10px;line-height:1.4}
@media(max-width:700px){.battle-duel{grid-template-columns:1fr 34px 1fr}.battle-portrait-wrap{height:120px}.battle-roster{grid-template-columns:1fr}.battle-actions-new{grid-template-columns:1fr 1fr}.battle-action-btn{min-height:52px}}
@media(max-width:480px){.battle-duel{grid-template-columns:1fr;gap:7px}.battle-vs{display:none}.battle-combatant{padding:9px}.battle-portrait-wrap{height:130px}.battle-actions-new{grid-template-columns:1fr}.battle-turnbar{align-items:flex-start;flex-direction:column}}


/* V0.6.23 - immediate visual feedback for selected battle team */
.content-card .dino-list .dino-row.team-selected{
  background:rgba(217,164,65,.08) !important;
  box-shadow:inset 3px 0 0 var(--accent) !important;
  border-radius:8px !important;
}
.content-card .dino-list .dino-row.team-selected .dino-portrait{
  border-color:var(--accent) !important;
  box-shadow:0 0 0 2px rgba(217,164,65,.12) !important;
}
.content-card .dino-list .team-toggle-btn.selected{
  color:#fff !important;
  background:var(--accent) !important;
  border-color:var(--accent) !important;
}

.battle-history-card{max-width:900px;margin:14px auto 0}.battle-history-list{display:flex;flex-direction:column}.battle-history-row{display:grid;grid-template-columns:105px minmax(110px,1fr) minmax(150px,1.2fr) auto 1fr;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}.battle-history-row:last-child{border-bottom:0}.battle-history-opponent strong{display:block;font-size:11px;color:var(--text)}.battle-history-opponent small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.battle-history-result{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;padding:4px 7px;border:1px solid var(--line);border-radius:999px;white-space:nowrap}.battle-history-result.victory{color:#9fd38a}.battle-history-result.defeat{color:#d98a7a}.battle-history-result.fled{color:var(--muted)}.battle-history-row .history-loot{justify-content:flex-end}@media(max-width:700px){.battle-history-row{grid-template-columns:1fr auto;gap:5px 8px}.battle-history-row time{grid-column:1}.battle-history-row .history-zone{grid-column:2;text-align:right}.battle-history-opponent{grid-column:1}.battle-history-result{grid-column:2;grid-row:3}.battle-history-row .history-loot{grid-column:1 / -1;justify-content:flex-start}}
/* V0.6.39 - unify resource amount and capacity typography */
.resource-value{display:flex;align-items:baseline;gap:1px;min-width:0;white-space:nowrap;line-height:1.1;color:var(--text);font-size:17px;font-weight:800}
.resource-value strong,
.resource-value strong{display:inline}
@media(max-width:520px){.resource-value,.resource-value strong,}


/* V0.7.1 - Bestiary: readable stats, dedicated skills column, hover descriptions */
.content-card .dino-list .dino-row{
  display:grid !important;
  grid-template-columns:70px minmax(145px,1.05fr) minmax(240px,1.25fr) 20px minmax(240px,1.25fr) 30px auto auto !important;
  align-items:center !important;
  column-gap:11px !important;
  row-gap:7px !important;
  min-height:92px !important;
  height:auto !important;
  padding:10px 4px !important;
  box-sizing:border-box !important;
}
.content-card .dino-portrait{width:62px !important;height:62px !important;display:flex !important;align-items:center !important;justify-content:center !important;border:1px solid var(--line) !important;border-radius:11px !important;background:#17130f !important;overflow:hidden !important}
.content-card .dino-portrait img{width:100% !important;height:100% !important;display:block !important;object-fit:cover !important}
.content-card .dino-fallback{font-size:32px !important}
.content-card .dino-details{min-width:0 !important}
.content-card .dino-details strong{display:block !important;font-size:14px !important;line-height:1.2 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
.content-card .dino-details small{display:block !important;font-size:10px !important;line-height:1.3 !important;margin-top:4px !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
.content-card .dino-stats{display:flex !important;align-items:center !important;justify-content:flex-start !important;flex-wrap:wrap !important;gap:6px 10px !important;min-width:0 !important}
.content-card .dino-stats span{display:inline-flex !important;align-items:center !important;gap:3px !important;white-space:nowrap !important;color:var(--muted) !important;font-size:11px !important}
.content-card .dino-stats b{color:var(--text) !important;font-size:11px !important}
.content-card .dino-info{justify-self:center !important;margin:0 !important}
.content-card .dino-skills{display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:5px !important;min-width:0 !important;max-width:100% !important}
.content-card .dino-skill{position:relative !important;display:inline-flex !important;align-items:center !important;gap:4px !important;min-width:0 !important;padding:5px 7px !important;border:1px solid var(--line) !important;border-radius:7px !important;background:rgba(48,37,27,.38) !important;cursor:help !important;outline:none !important}
.content-card .dino-skill-icon{font-size:12px !important;line-height:1 !important;flex:0 0 auto !important}
.content-card .dino-skill>strong{font-size:9px !important;line-height:1.1 !important;color:var(--text) !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;max-width:125px !important}
.content-card .dino-skill::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%) translateY(4px);width:240px;max-width:min(240px,calc(100vw - 70px));padding:9px 11px;background:#30251b;color:var(--text);border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 24px rgba(0,0,0,.38);font-size:11px;font-weight:400;line-height:1.4;text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;z-index:200;transition:opacity .15s ease,transform .15s ease,visibility .15s ease}
.content-card .dino-skill:hover::after,.content-card .dino-skill:focus::after{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.content-card .dino-skill:hover,.content-card .dino-skill:focus{border-color:var(--accent) !important;background:rgba(217,164,65,.08) !important}
.content-card .dino-quantity{justify-self:center !important;margin:0 !important;font-size:11px !important;white-space:nowrap !important}
.content-card .dino-row .team-toggle-btn,.content-card .dino-row .release-dino-btn{justify-self:start !important;margin:0 !important;white-space:nowrap !important;padding:6px 8px !important;font-size:9px !important}
@media(max-width:1100px){.content-card .dino-list .dino-row{grid-template-columns:62px minmax(130px,1fr) minmax(205px,1.15fr) 20px minmax(205px,1fr) 28px auto auto !important;column-gap:8px !important}.content-card .dino-portrait{width:56px !important;height:56px !important}.content-card .dino-stats{gap:5px 8px !important}}
@media(max-width:850px){.content-card .dino-list .dino-row{grid-template-columns:58px minmax(135px,1fr) 20px 28px auto auto !important;min-height:104px !important}.content-card .dino-stats{grid-column:2 / -1 !important;grid-row:2 !important}.content-card .dino-skills{grid-column:2 / -1 !important;grid-row:3 !important}.content-card .dino-info{grid-column:3 !important;grid-row:1 !important}.content-card .dino-quantity{grid-column:4 !important;grid-row:1 !important}.content-card .dino-row .team-toggle-btn{grid-column:2 !important;grid-row:4 !important}.content-card .dino-row .release-dino-btn{grid-column:3 / -1 !important;grid-row:4 !important}}
@media(max-width:520px){.content-card .dino-list .dino-row{grid-template-columns:52px 1fr 20px 28px !important;min-height:132px !important}.content-card .dino-portrait{width:48px !important;height:48px !important}.content-card .dino-details strong{font-size:13px !important}.content-card .dino-skills{grid-column:2 / -1 !important}.content-card .dino-skill>strong{max-width:105px !important}.content-card .dino-row .team-toggle-btn{grid-column:2 / 3 !important}.content-card .dino-row .release-dino-btn{grid-column:3 / -1 !important}}

/* V0.7.1 - Bestiary: readable stats, dedicated skills column, hover descriptions */
.content-card .dino-list .dino-row{display:grid !important;grid-template-columns:70px minmax(145px,1.05fr) minmax(240px,1.25fr) 20px minmax(240px,1.25fr) 30px auto auto !important;align-items:center !important;column-gap:11px !important;row-gap:7px !important;min-height:92px !important;height:auto !important;padding:10px 4px !important;box-sizing:border-box !important}
.content-card .dino-portrait{width:62px !important;height:62px !important;display:flex !important;align-items:center !important;justify-content:center !important;border:1px solid var(--line) !important;border-radius:11px !important;background:#17130f !important;overflow:hidden !important}
.content-card .dino-portrait img{width:100% !important;height:100% !important;display:block !important;object-fit:cover !important}.content-card .dino-fallback{font-size:32px !important}
.content-card .dino-details{min-width:0 !important}.content-card .dino-details strong{display:block !important;font-size:14px !important;line-height:1.2 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}.content-card .dino-details small{display:block !important;font-size:10px !important;line-height:1.3 !important;margin-top:4px !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
.content-card .dino-stats{display:flex !important;align-items:center !important;justify-content:flex-start !important;flex-wrap:wrap !important;gap:6px 10px !important;min-width:0 !important}.content-card .dino-stats span{display:inline-flex !important;align-items:center !important;gap:3px !important;white-space:nowrap !important;color:var(--muted) !important;font-size:11px !important}.content-card .dino-stats b{color:var(--text) !important;font-size:11px !important}
.content-card .dino-info{justify-self:center !important;margin:0 !important}.content-card .dino-skills{display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:5px !important;min-width:0 !important;max-width:100% !important}.content-card .dino-skill{position:relative !important;display:inline-flex !important;align-items:center !important;gap:4px !important;min-width:0 !important;padding:5px 7px !important;border:1px solid var(--line) !important;border-radius:7px !important;background:rgba(48,37,27,.38) !important;cursor:help !important;outline:none !important}.content-card .dino-skill-icon{font-size:12px !important;line-height:1 !important;flex:0 0 auto !important}.content-card .dino-skill>strong{font-size:9px !important;line-height:1.1 !important;color:var(--text) !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;max-width:125px !important}
.content-card .dino-skill::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%) translateY(4px);width:240px;max-width:min(240px,calc(100vw - 70px));padding:9px 11px;background:#30251b;color:var(--text);border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 24px rgba(0,0,0,.38);font-size:11px;font-weight:400;line-height:1.4;text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;z-index:200;transition:opacity .15s ease,transform .15s ease,visibility .15s ease}.content-card .dino-skill:hover::after,.content-card .dino-skill:focus::after{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}.content-card .dino-skill:hover,.content-card .dino-skill:focus{border-color:var(--accent) !important;background:rgba(217,164,65,.08) !important}
.content-card .dino-quantity{justify-self:center !important;margin:0 !important;font-size:11px !important;white-space:nowrap !important}.content-card .dino-row .team-toggle-btn,.content-card .dino-row .release-dino-btn{justify-self:start !important;margin:0 !important;white-space:nowrap !important;padding:6px 8px !important;font-size:9px !important}
@media(max-width:1100px){.content-card .dino-list .dino-row{grid-template-columns:62px minmax(130px,1fr) minmax(205px,1.15fr) 20px minmax(205px,1fr) 28px auto auto !important;column-gap:8px !important}.content-card .dino-portrait{width:56px !important;height:56px !important}.content-card .dino-stats{gap:5px 8px !important}}
@media(max-width:850px){.content-card .dino-list .dino-row{grid-template-columns:58px minmax(135px,1fr) 20px 28px auto auto !important;min-height:104px !important}.content-card .dino-stats{grid-column:2 / -1 !important;grid-row:2 !important}.content-card .dino-skills{grid-column:2 / -1 !important;grid-row:3 !important}.content-card .dino-info{grid-column:3 !important;grid-row:1 !important}.content-card .dino-quantity{grid-column:4 !important;grid-row:1 !important}.content-card .dino-row .team-toggle-btn{grid-column:2 !important;grid-row:4 !important}.content-card .dino-row .release-dino-btn{grid-column:3 / -1 !important;grid-row:4 !important}}
@media(max-width:520px){.content-card .dino-list .dino-row{grid-template-columns:52px 1fr 20px 28px !important;min-height:132px !important}.content-card .dino-portrait{width:48px !important;height:48px !important}.content-card .dino-details strong{font-size:13px !important}.content-card .dino-skills{grid-column:2 / -1 !important}.content-card .dino-skill>strong{max-width:105px !important}.content-card .dino-row .team-toggle-btn{grid-column:2 / 3 !important}.content-card .dino-row .release-dino-btn{grid-column:3 / -1 !important}}


/* V0.7.5 - insufficient resources modal */
.fow-modal-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(4px);animation:fow-modal-in .16s ease-out}
.fow-modal{width:min(480px,100%);max-height:min(80vh,620px);overflow:auto;background:linear-gradient(145deg,#30251b,#1d1712);border:1px solid #9d6a2f;border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.65);padding:22px;color:var(--text)}
.fow-modal-title{display:flex;align-items:center;gap:11px;margin-bottom:8px}.fow-modal-title h2{margin:0;font-family:Georgia,serif;font-size:23px;color:#f0c36a}.fow-modal-warning{font-size:25px}.fow-modal>p{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.5}
.resource-shortage-list{display:grid;gap:9px;margin-bottom:18px}.resource-shortage-row{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:10px;padding:10px 11px;background:rgba(0,0,0,.18);border:1px solid var(--line);border-radius:9px}.resource-shortage-icon{font-size:22px;text-align:center}.resource-shortage-main{min-width:0;display:grid;gap:3px}.resource-shortage-main strong{font-size:14px;color:var(--text)}.resource-shortage-main>span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.resource-shortage-main b{color:#e47b6c;font-weight:800;margin-left:5px}.fow-modal-ok{display:block;margin-left:auto;min-width:74px;background:var(--accent);color:#1d160e;border-color:#e4b65b}
@keyframes fow-modal-in{from{opacity:0}to{opacity:1}}
@media(max-width:520px){.fow-modal-backdrop{padding:12px}.fow-modal{padding:18px}.fow-modal-title h2{font-size:20px}}

/* V0.7.6 - Combat skill engine fix */
.battle-combat-skills{display:flex;flex-wrap:wrap;gap:5px;min-height:0;margin:5px 0 2px}.battle-combat-effects{display:flex;flex-wrap:wrap;gap:4px;min-height:0;margin:4px 0 2px}.battle-effect-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border:1px solid rgba(217,164,65,.35);border-radius:999px;background:rgba(217,164,65,.08);color:var(--text);font-size:8px;line-height:1}.battle-effect-chip b{font-size:8px;font-weight:700;white-space:nowrap}.battle-effect-chip small{display:inline-flex;align-items:center;justify-content:center;min-width:14px;height:14px;border-radius:50%;background:rgba(0,0,0,.25);font-size:8px;color:var(--text)}

.battle-skill-chip{position:relative;display:inline-flex;align-items:center;gap:4px;padding:4px 6px;border:1px solid var(--line);border-radius:7px;background:rgba(48,37,27,.38);color:var(--text);font-size:9px;line-height:1;cursor:help;outline:none}
.battle-skill-chip>b{font-size:9px;font-weight:700;white-space:nowrap}
.battle-skill-chip:hover,.battle-skill-chip:focus{border-color:var(--accent);background:rgba(217,164,65,.08)}
.battle-skill-chip::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%) translateY(4px);width:220px;max-width:min(220px,calc(100vw - 60px));padding:8px 10px;background:#30251b;color:var(--text);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 22px rgba(0,0,0,.45);font-size:10px;font-weight:400;line-height:1.4;text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;z-index:500;transition:opacity .15s ease,transform .15s ease,visibility .15s ease}
.battle-skill-chip:hover::after,.battle-skill-chip:focus::after{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
@media(max-width:480px){.battle-combat-skills{justify-content:center}.battle-skill-chip::after{left:0;transform:translateY(4px)}.battle-skill-chip:hover::after,.battle-skill-chip:focus::after{transform:translateY(0)}}

.bestiary-page-stat{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.bestiary-page-stat small{font-size:.78rem;opacity:.78;white-space:nowrap}@media(max-width:700px){.bestiary-page-stat{align-items:flex-start}.bestiary-page-stat small{white-space:normal}}

/* V0.7.13 - Dinosaur fusion controls */
.content-card .dino-list .dino-row{grid-template-columns:68px minmax(0,1.15fr) minmax(0,1.3fr) 18px minmax(0,1.4fr) 90px 28px 78px 65px !important;column-gap:8px !important;}
.content-card .dino-fusion{display:flex !important;flex-direction:column !important;align-items:flex-start !important;gap:4px !important;min-width:0 !important}
.content-card .fusion-dino-btn{white-space:nowrap !important;padding:6px 8px !important;font-size:9px !important;line-height:1 !important;border:1px solid var(--line) !important;border-radius:7px !important;background:rgba(48,37,27,.38) !important;color:var(--text) !important;cursor:pointer !important}
.content-card .fusion-dino-btn:hover:not(:disabled),.content-card .fusion-dino-btn:focus:not(:disabled){border-color:var(--accent) !important;background:rgba(217,164,65,.08) !important}
.content-card .fusion-dino-btn:disabled,.content-card .fusion-dino-btn.is-disabled{opacity:.45 !important;cursor:not-allowed !important}
.content-card .fusion-meta{font-size:9px !important;color:var(--muted) !important;line-height:1.2 !important;white-space:nowrap !important}
@media(max-width:1200px){
  .content-card .dino-list .dino-row{grid-template-columns:62px minmax(0,1.1fr) minmax(0,1.25fr) 18px minmax(0,1.25fr) 82px 28px 74px 62px !important;column-gap:8px !important}
  .content-card .dino-portrait{width:62px !important;height:62px !important}
}
@media(max-width:950px){
  .content-card .dino-list .dino-row{grid-template-columns:58px minmax(0,1fr) minmax(0,1.15fr) 18px minmax(0,1.15fr) 76px 26px 70px 60px !important;column-gap:7px !important}
  .content-card .dino-portrait{width:54px !important;height:54px !important}
}
@media(max-width:850px){
  .content-card .dino-list .dino-row{grid-template-columns:58px minmax(135px,1fr) 20px 28px !important;min-height:142px !important}
  .content-card .dino-details{grid-column:2 !important;grid-row:1 !important}
  .content-card .dino-stats{grid-column:2 / -1 !important;grid-row:2 !important}
  .content-card .dino-skills{grid-column:2 / -1 !important;grid-row:3 !important}
  .content-card .dino-fusion{grid-column:2 / -1 !important;grid-row:4 !important;flex-direction:row !important;align-items:center !important}
  .content-card .dino-info{grid-column:3 !important;grid-row:1 !important}
  .content-card .dino-quantity{grid-column:4 !important;grid-row:1 !important}
  .content-card .dino-row .team-toggle-btn{grid-column:2 !important;grid-row:5 !important}
  .content-card .dino-row .release-dino-btn{grid-column:3 / -1 !important;grid-row:5 !important}
}
@media(max-width:520px){
  .content-card .dino-list .dino-row{grid-template-columns:52px 1fr 20px 28px !important;min-height:164px !important}
  .content-card .dino-portrait{width:48px !important;height:48px !important}
  .content-card .dino-fusion{gap:6px !important}
  .content-card .fusion-dino-btn{font-size:8px !important;padding:5px 7px !important}
}

/* V0.7.16 - compact fusion display */
.content-card .dino-details small{white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;display:block !important}
.content-card .dino-fusion{justify-content:center !important}
.content-card .fusion-meta{overflow:visible !important;text-overflow:clip !important}

/* V0.7.16 - Bestiary rows: keep all controls inside the card */
.content-card .dino-details{min-width:0 !important}
.content-card .dino-details small{white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
.content-card .dino-stats{min-width:0 !important;white-space:nowrap !important}
.content-card .dino-skills{min-width:0 !important;max-width:100% !important;overflow:visible !important}
.content-card .dino-fusion{min-width:0 !important}
.content-card .fusion-dino-btn{max-width:100% !important}
.content-card .dino-row .team-toggle-btn,.content-card .dino-row .release-dino-btn{max-width:100% !important;overflow:hidden !important;text-overflow:ellipsis !important}


/* V0.7.26 - Bestiary card grid: individual dinosaur portraits, stats, skills and actions */
.bestiary-card-panel{overflow:visible !important}
.bestiary-grid{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:4px 2px 8px}
.bestiary-grid .dino-card{display:flex !important;flex-direction:column !important;min-width:0 !important;height:auto !important;min-height:0 !important;padding:0 !important;margin:0 !important;border:1px solid var(--line) !important;border-radius:14px !important;background:linear-gradient(180deg,#211a14,#18130f) !important;box-shadow:0 8px 22px rgba(0,0,0,.16) !important;overflow:visible !important;position:relative !important}
.bestiary-grid .dino-card:hover{border-color:#73522c !important;transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.24) !important}
.dino-card-visual{height:190px !important;position:relative !important;display:flex !important;align-items:center !important;justify-content:center !important;border-bottom:1px solid var(--line) !important;border-radius:13px 13px 0 0 !important;background:radial-gradient(circle at 50% 40%,rgba(91,67,42,.32),rgba(18,14,11,.94) 72%) !important;overflow:hidden !important}
.dino-card-image{width:100% !important;height:100% !important;object-fit:contain !important;display:block !important;padding:8px !important;box-sizing:border-box !important;filter:drop-shadow(0 7px 9px rgba(0,0,0,.38)) !important}
.dino-card-image.image-error{display:block !important}
.dino-rarity-badge{position:absolute !important;left:10px !important;top:10px !important;padding:4px 7px !important;border:1px solid rgba(217,164,65,.45) !important;border-radius:999px !important;background:rgba(22,16,11,.78) !important;color:var(--accent) !important;font-size:9px !important;font-weight:800 !important;backdrop-filter:blur(3px)}
.bestiary-grid .dino-quantity{position:absolute !important;right:10px !important;top:10px !important;min-width:0 !important;margin:0 !important;padding:4px 7px !important;border:1px solid var(--line) !important;border-radius:999px !important;background:rgba(22,16,11,.78) !important;color:var(--accent) !important;font-size:10px !important;z-index:3}
.bestiary-grid .dino-info{position:absolute !important;right:10px !important;bottom:10px !important;width:22px !important;height:22px !important;background:rgba(22,16,11,.82) !important;z-index:4 !important}
.bestiary-grid .dino-info::after{right:0 !important;top:auto !important;bottom:30px !important;transform:none !important;width:260px !important;max-width:min(260px,calc(100vw - 50px)) !important}
.bestiary-grid .dino-info:hover::after,.bestiary-grid .dino-info:focus::after{transform:none !important}
.dino-card-body{padding:13px !important;display:flex !important;flex-direction:column !important;gap:10px !important;min-width:0 !important}
.dino-card-title{min-width:0 !important}
.bestiary-grid .dino-details{min-width:0 !important}
.bestiary-grid .dino-details strong{display:block !important;font-size:16px !important;line-height:1.2 !important;color:var(--text) !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
.bestiary-grid .dino-details small{display:block !important;margin-top:4px !important;font-size:10px !important;color:var(--muted) !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
.bestiary-grid .fusion-level-label{color:var(--accent) !important;font-weight:700 !important;margin-left:5px !important}
.bestiary-grid .dino-stats{display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:5px !important;min-width:0 !important}
.bestiary-grid .dino-stats span{display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:2px !important;min-width:0 !important;padding:6px 3px !important;border:1px solid rgba(106,77,43,.55) !important;border-radius:8px !important;background:rgba(48,37,27,.3) !important;color:var(--muted) !important;font-size:11px !important;line-height:1 !important}
.bestiary-grid .dino-stats b{color:var(--text) !important;font-size:12px !important;line-height:1 !important}
.bestiary-grid .dino-stats em{font-style:normal !important;font-size:7px !important;color:var(--muted) !important;font-weight:700 !important}
.bestiary-grid .dino-skills{display:flex !important;flex-wrap:wrap !important;gap:6px !important;min-height:32px !important;overflow:visible !important}
.bestiary-grid .dino-skill{display:inline-flex !important;align-items:center !important;gap:5px !important;min-width:0 !important;padding:6px 8px !important;border:1px solid var(--line) !important;border-radius:8px !important;background:rgba(48,37,27,.38) !important;cursor:help !important;position:relative !important;z-index:2 !important}
.bestiary-grid .dino-skill:hover,.bestiary-grid .dino-skill:focus{border-color:var(--accent) !important;background:rgba(217,164,65,.08) !important;z-index:50 !important}
.bestiary-grid .dino-skill>strong{font-size:9px !important;max-width:145px !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;color:var(--text) !important}
.bestiary-grid .dino-skill::after{z-index:500 !important}
.dino-card-actions{display:grid !important;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) auto !important;gap:6px !important;align-items:stretch !important;margin-top:auto !important;padding-top:2px !important}
.dino-card-actions .dino-fusion{display:flex !important;flex-direction:column !important;align-items:stretch !important;justify-content:center !important;min-width:0 !important;gap:3px !important}
.dino-card-actions .fusion-dino-btn,.dino-card-actions .team-toggle-btn,.dino-card-actions .release-dino-btn{width:100% !important;min-width:0 !important;padding:7px 8px !important;font-size:9px !important;line-height:1.15 !important;white-space:nowrap !important}
.dino-card-actions .fusion-meta{font-size:8px !important;text-align:center !important;color:var(--muted) !important;white-space:nowrap !important}
.dino-card-actions .team-toggle-btn.selected{border-color:var(--accent) !important;background:rgba(217,164,65,.13) !important;color:var(--accent) !important}
@media(max-width:1050px){.bestiary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dino-card-visual{height:180px !important}}
@media(max-width:650px){.bestiary-grid{grid-template-columns:1fr;gap:13px}.dino-card-visual{height:220px !important}.dino-card-body{padding:12px !important}.bestiary-grid .dino-details strong{font-size:15px !important}.dino-card-actions{grid-template-columns:1.25fr 1fr auto !important}}
@media(max-width:420px){.dino-card-visual{height:190px !important}.bestiary-grid .dino-stats{gap:4px !important}.bestiary-grid .dino-stats span{padding:5px 2px !important}.dino-card-actions{grid-template-columns:1fr 1fr !important}.dino-card-actions .release-dino-btn{grid-column:1 / -1 !important}.bestiary-grid .dino-skill>strong{max-width:120px !important}}

/* V0.7.29 - Bestiary card grid override + per-species image endpoints: prevent legacy row CSS from collapsing cards */
.content-card .dino-list.bestiary-grid .dino-card{
  display:flex !important; flex-direction:column !important;
  grid-template-columns:none !important; align-items:stretch !important;
  min-height:0 !important; height:auto !important; padding:0 !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-card-visual{
  width:100% !important; height:190px !important; min-height:190px !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  grid-column:auto !important; grid-row:auto !important; overflow:hidden !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-card-image{
  width:100% !important; height:100% !important; max-width:100% !important; max-height:100% !important;
  display:block !important; object-fit:contain !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-card-body{
  display:flex !important; flex-direction:column !important; gap:10px !important;
  width:100% !important; box-sizing:border-box !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-details{
  width:100% !important; min-width:0 !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-stats{
  display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  grid-column:auto !important; grid-row:auto !important;
  width:100% !important; min-width:0 !important; gap:5px !important;
  overflow:visible !important; white-space:normal !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-stats span{
  display:flex !important; flex-direction:column !important; align-items:center !important;
  justify-content:center !important; min-width:0 !important; gap:2px !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-skills{
  display:flex !important; flex-wrap:wrap !important; width:100% !important;
  grid-column:auto !important; grid-row:auto !important; overflow:visible !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-card-actions{
  display:grid !important; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(72px,.7fr) !important;
  width:100% !important; margin-top:auto !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-card-actions .fusion-dino-btn,
.content-card .dino-list.bestiary-grid .dino-card .dino-card-actions .team-toggle-btn,
.content-card .dino-list.bestiary-grid .dino-card .dino-card-actions .release-dino-btn{
  width:100% !important; max-width:none !important;
}
@media(max-width:1050px){
  .content-card .dino-list.bestiary-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media(max-width:650px){
  .content-card .dino-list.bestiary-grid{grid-template-columns:1fr !important}
  .content-card .dino-list.bestiary-grid .dino-card .dino-card-visual{height:220px !important;min-height:220px !important}
}
@media(max-width:420px){
  .content-card .dino-list.bestiary-grid .dino-card .dino-card-visual{height:190px !important;min-height:190px !important}
  .content-card .dino-list.bestiary-grid .dino-card .dino-stats{grid-template-columns:repeat(5,minmax(0,1fr)) !important}
  .content-card .dino-list.bestiary-grid .dino-card .dino-card-actions{grid-template-columns:1fr 1fr !important}
  .content-card .dino-list.bestiary-grid .dino-card .release-dino-btn{grid-column:1 / -1 !important}
}


/* V0.7.29 - dinosaur artwork reliability */
.content-card .dino-list.bestiary-grid .dino-card .dino-card-image{
  object-fit:contain !important;
  object-position:center !important;
  opacity:1 !important;
  visibility:visible !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-card-visual{
  background:radial-gradient(circle at center, rgba(76,55,34,.20), rgba(12,10,8,.55)) !important;
}

/* V0.8.17 - Construction queue layout refresh */
.construction-queue-panel{
  width:calc(100% - 28px);max-width:none;margin:18px auto 22px;padding:20px 22px;
  box-sizing:border-box;background:linear-gradient(180deg,rgba(42,32,24,.98),rgba(23,18,15,.98));
  border:1px solid rgba(214,162,74,.32);border-radius:16px;box-shadow:0 12px 35px rgba(0,0,0,.22)
}
.construction-queue-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:14px;border-bottom:1px solid rgba(214,162,74,.13)}
.construction-queue-header>div:first-child{min-width:0}
.construction-queue-header .eyebrow{margin:0 0 5px;color:#b58b51;font-size:10px;font-weight:800;letter-spacing:.14em}
.construction-queue-header h2{margin:0;color:#f0d8ac;font-size:22px;line-height:1.15}
.construction-queue-header>div:first-child>span{display:block;margin-top:7px;color:#a9957f;font-size:12px}
.construction-queue-balance{display:flex;align-items:center;gap:5px;padding:8px 11px;border:1px solid rgba(214,162,74,.2);border-radius:9px;background:rgba(255,255,255,.025);font-weight:900;color:#f0d8ac;font-size:14px;white-space:nowrap}
.construction-queue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.construction-queue-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;min-width:0;min-height:88px;padding:13px 14px;border:1px solid rgba(214,162,74,.2);border-radius:12px;background:rgba(255,255,255,.025)}
.construction-queue-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:rgba(214,162,74,.10);font-size:19px}
.construction-queue-main{min-width:0}
.construction-queue-main strong{display:block;color:#ead5b2;font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.construction-queue-main span{display:block;color:#9f8c76;font-size:11px;margin-top:4px}
.construction-queue-bar{height:5px;margin-top:9px;background:rgba(255,255,255,.07);border-radius:99px;overflow:hidden}
.construction-queue-bar i{display:block;width:0;height:100%;background:#d6a24a;border-radius:inherit}
.construction-queue-time{font-size:14px;font-weight:900;color:#f0d8ac;min-width:68px;text-align:right;white-space:nowrap}
.construction-queue-empty{min-height:88px;display:flex;align-items:center;justify-content:center;padding:16px;border:1px dashed rgba(214,162,74,.2);border-radius:11px;color:#9f8c76;font-size:12px;text-align:center}
.construction-queue-premium{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0;padding:14px 15px;min-height:88px;border-radius:12px;background:rgba(214,162,74,.055);border:1px solid rgba(214,162,74,.18)}
.construction-queue-premium>div{min-width:0}
.construction-queue-premium strong{display:block;color:#ead5b2;font-size:12px;line-height:1.25}
.construction-queue-premium span{display:block;color:#9f8c76;font-size:11px;line-height:1.35;margin-top:4px}
.construction-queue-premium .btn{white-space:nowrap;flex:0 0 auto}
.construction-queue-premium.active{background:rgba(92,154,91,.06);border-color:rgba(92,154,91,.25)}
.construction-queue-premium.active .construction-queue-active-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;background:rgba(92,154,91,.12);color:#a9d5a8;font-weight:800;white-space:nowrap}
.construction-queue-purchase-slot{height:100%;box-sizing:border-box;background:linear-gradient(180deg,rgba(214,162,74,.08),rgba(214,162,74,.035));border-color:rgba(214,162,74,.25)}
.construction-queue-empty-slot{flex-direction:column;gap:4px;background:rgba(92,154,91,.045);border-color:rgba(92,154,91,.2)}
.construction-queue-empty-slot-icon{font-size:20px;line-height:1}
.construction-queue-empty-slot strong{display:block;color:#a9d5a8;font-size:12px}
.construction-queue-empty-slot span:last-child{font-size:11px}
@media(max-width:800px){
  .construction-queue-panel{width:calc(100% - 20px);padding:16px}
  .construction-queue-list{grid-template-columns:1fr}
}
@media(max-width:560px){
  .construction-queue-header{align-items:flex-start;flex-direction:column;gap:10px}
  .construction-queue-balance{align-self:flex-start}
  .construction-queue-item{grid-template-columns:38px minmax(0,1fr);gap:10px}
  .construction-queue-icon{width:38px;height:38px}
  .construction-queue-time{grid-column:2;text-align:left;margin-top:-3px}
  .construction-queue-premium{align-items:flex-start;flex-direction:column}
  .construction-queue-premium .btn{width:100%}
}

/* V0.7.32 - Direct PNG loading: images are served as ordinary static files. */
.content-card .dino-list.bestiary-grid .dino-card .dino-card-image{
  display:block !important; visibility:visible !important; opacity:1 !important;
  width:100% !important; height:100% !important; object-fit:contain !important;
}


/* V0.7.36 - isolated dinosaur artwork renderer */
.fow-dino-art {
  width: 100% !important;
  height: 190px !important;
  min-height: 190px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
  background: #18130f !important;
  border-bottom: 1px solid var(--line) !important;
}
.fow-dino-art > img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 8px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  filter: none !important;
}
@media(max-width:650px){.fow-dino-art{height:220px !important;min-height:220px !important}}
@media(max-width:420px){.fow-dino-art{height:190px !important;min-height:190px !important}}


/* V0.7.40 - Dinosaur level, progressive XP bar and fusion stars */
.content-card .dino-list.bestiary-grid .dino-card .dino-card-title .dino-level-row{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  margin-top:4px !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-level-text{
  flex:0 0 auto !important;
  font-size:10px !important;
  color:var(--muted) !important;
  white-space:nowrap !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-xp-wrap{
  flex:1 1 auto !important;
  min-width:65px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:2px !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-xp-track{
  width:100% !important;
  height:5px !important;
  overflow:hidden !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(106,77,43,.55) !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-xp-fill{
  display:block !important;
  height:100% !important;
  border-radius:999px !important;
  background:var(--accent) !important;
  transition:width .25s ease !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-xp-text{
  font-size:7px !important;
  line-height:1 !important;
  color:var(--muted) !important;
  white-space:nowrap !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-fusion-stars{
  flex:0 0 auto !important;
  min-width:12px !important;
  color:var(--accent) !important;
  font-size:11px !important;
  letter-spacing:1px !important;
  white-space:nowrap !important;
  text-shadow:0 0 5px rgba(217,164,65,.18) !important;
}


/* V0.7.41 - XP dinosaur more readable */
.content-card .dino-list.bestiary-grid .dino-card .dino-level-row{
  gap:10px !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-level-text{
  font-size:11px !important;
  font-weight:600 !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-xp-wrap{
  min-width:95px !important;
  gap:3px !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-xp-track{
  height:7px !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-xp-text{
  font-size:9px !important;
  line-height:1.1 !important;
  font-weight:600 !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-fusion-stars{
  font-size:12px !important;
}


/* V0.7.42 - fusion stars beside dinosaur name */
.content-card .dino-list.bestiary-grid .dino-card .dino-name-row{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  min-width:0 !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-name-row strong{
  min-width:0 !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-name-row .dino-fusion-stars{
  flex:0 0 auto !important;
  color:var(--accent) !important;
  font-size:12px !important;
  line-height:1 !important;
  letter-spacing:1px !important;
  white-space:nowrap !important;
}

/* V0.7.42 - fusion stars immediately before dinosaur name */
.content-card .dino-list.bestiary-grid .dino-card .dino-name-row{
  display:flex !important;
  align-items:center !important;
  gap:5px !important;
  min-width:0 !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-name-row .dino-fusion-stars{
  display:inline !important;
  flex:0 0 auto !important;
  margin:0 !important;
  font-size:12px !important;
  letter-spacing:1px !important;
  vertical-align:baseline !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-name-row strong{
  min-width:0 !important;
}


/* V0.7.43 - fusion stars stay directly beside the dinosaur name */
.content-card .dino-list.bestiary-grid .dino-card .dino-card-title .dino-name-row{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  width:100% !important;
  min-width:0 !important;
  gap:6px !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-card-title .dino-name-row strong{
  display:block !important;
  flex:0 1 auto !important;
  min-width:0 !important;
  white-space:nowrap !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-card-title .dino-name-row .dino-fusion-stars{
  display:inline-block !important;
  flex:0 0 auto !important;
  margin:0 !important;
  color:var(--accent) !important;
  font-size:12px !important;
  line-height:1 !important;
  letter-spacing:1px !important;
  white-space:nowrap !important;
}


/* V0.7.44 - fusion stars explicitly after dinosaur name */
.content-card .dino-list.bestiary-grid .dino-card .dino-card-title .dino-name-row{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:nowrap !important;
  direction:ltr !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-card-title .dino-name-row strong{
  order:1 !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-card-title .dino-name-row .dino-fusion-stars{
  order:2 !important;
}


/* V0.7.45 - XP bar represents actual progress within the current level */
.content-card .dino-list.bestiary-grid .dino-card .dino-xp-track{
  position:relative !important;
  overflow:hidden !important;
}
.content-card .dino-list.bestiary-grid .dino-card .dino-xp-fill{
  min-width:0 !important;
  max-width:100% !important;
  transition:width .35s ease !important;
}


/* V0.7.46 - robust XP progress rendering */
.content-card .dino-list.bestiary-grid .dino-card .dino-xp-fill{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  transform-origin:left center !important;
  transform:scaleX(var(--xp-progress, 0)) !important;
  background:var(--accent) !important;
}

/* Combat arena: animate the transparent dinosaur artwork itself. */
.battle-arena{position:relative;max-width:820px;min-height:390px;margin:12px auto 0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:radial-gradient(circle at 50% 48%,rgba(217,164,65,.10),transparent 34%),linear-gradient(180deg,rgba(27,36,28,.96),rgba(19,15,12,.98));box-shadow:inset 0 -90px 120px rgba(0,0,0,.28)}
.battle-arena:before{content:"";position:absolute;left:0;right:0;bottom:0;height:35%;background:linear-gradient(180deg,transparent,rgba(0,0,0,.22));pointer-events:none}
.battle-arena-top{position:absolute;top:12px;z-index:5;width:31%;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:rgba(23,19,15,.78);backdrop-filter:blur(3px)}
.player-arena-info{left:12px}.enemy-arena-info{right:12px;text-align:right}
.battle-arena-top strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-arena-top small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.battle-arena-top .battle-status-badge{position:absolute;right:8px;top:8px}.enemy-arena-info .battle-status-badge{left:8px;right:auto}.battle-arena-top .battle-hp{height:7px;margin:6px 0 3px}.battle-arena-top .battle-hp-text{font-size:8px}
.battle-arena-center{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:space-between;padding:105px 8% 30px;z-index:2}.battle-fighter{position:relative;width:38%;height:245px;display:flex;align-items:flex-end;justify-content:center;will-change:transform;filter:drop-shadow(0 14px 8px rgba(0,0,0,.30))}.battle-fighter img{width:100%;height:100%;object-fit:contain;object-position:center bottom;display:block;user-select:none;pointer-events:none;transform-origin:center bottom;will-change:transform}.enemy-fighter img{transform:scaleX(-1)}
.battle-arena-vs{align-self:center;margin-bottom:28px;font-size:18px;font-weight:900;color:var(--accent);text-shadow:0 2px 10px rgba(0,0,0,.8);z-index:3}.battle-fighter-effects{position:absolute;inset:0;pointer-events:none}.battle-damage-float{position:absolute;inset:0;z-index:10;pointer-events:none}.battle-damage-number{position:absolute;font-weight:1000;font-size:25px;color:#fff;text-shadow:0 2px 0 #000,0 0 8px rgba(190,60,45,.8);animation:battleDamageFloat .75s ease-out forwards}.battle-damage-number.heal{color:#b9ef8a;text-shadow:0 2px 0 #000,0 0 8px rgba(90,190,80,.8)}
.battle-arena-skills{position:absolute;bottom:10px;z-index:5;max-width:38%}.player-arena-skills{left:12px}.enemy-arena-skills{right:12px;text-align:right}.battle-arena-skills .battle-combat-skills,.battle-arena-skills .battle-combat-effects{margin-top:4px}
/* The image receives the movement; the fighter container stays fixed as the stage. */
.battle-fighter img.attack-lunge{animation:battleDinoAttackPlayer .68s cubic-bezier(.16,.82,.24,1)}
.battle-fighter img.special-lunge{animation:battleDinoSpecialPlayer .82s cubic-bezier(.16,.82,.24,1)}
.enemy-fighter img.attack-lunge{animation:battleDinoAttackEnemy .68s cubic-bezier(.16,.82,.24,1)}
.enemy-fighter img.special-lunge{animation:battleDinoSpecialEnemy .82s cubic-bezier(.16,.82,.24,1)}
.battle-fighter img.hit-react{animation:battleDinoHitPlayer .36s ease-out}.enemy-fighter img.hit-react{animation:battleDinoHitEnemy .36s ease-out}
.battle-fighter.guard-react{animation:battleGuard .42s ease-out}.battle-fighter.defeated{animation:battleDefeat .8s ease forwards}.battle-fighter.victory{animation:battleVictory .7s ease-in-out}
.battle-fighter.impact-flash:after{content:"";position:absolute;left:50%;top:48%;width:42px;height:42px;border-radius:50%;background:rgba(255,230,160,.85);box-shadow:0 0 30px 12px rgba(217,164,65,.45);transform:translate(-50%,-50%);animation:battleImpact .24s ease-out forwards}
@keyframes battleDinoAttackPlayer{0%{transform:translateX(0) rotate(0) scale(1)}18%{transform:translateX(-10px) rotate(-2deg) scale(1.02)}48%{transform:translateX(54px) rotate(-5deg) scale(1.08)}60%{transform:translateX(68px) rotate(-2deg) scale(1.1)}78%{transform:translateX(30px) rotate(2deg) scale(1.04)}100%{transform:translateX(0) rotate(0) scale(1)}}
@keyframes battleDinoAttackEnemy{0%{transform:scaleX(-1) translateX(0) rotate(0) scale(1)}18%{transform:scaleX(-1) translateX(-10px) rotate(2deg) scale(1.02)}48%{transform:scaleX(-1) translateX(54px) rotate(5deg) scale(1.08)}60%{transform:scaleX(-1) translateX(68px) rotate(2deg) scale(1.1)}78%{transform:scaleX(-1) translateX(30px) rotate(-2deg) scale(1.04)}100%{transform:scaleX(-1) translateX(0) rotate(0) scale(1)}}
@keyframes battleDinoSpecialPlayer{0%{transform:translateX(0) rotate(0) scale(1)}20%{transform:translateX(-14px) rotate(-3deg) scale(1.03)}48%{transform:translateX(78px) rotate(-8deg) scale(1.13)}62%{transform:translateX(90px) rotate(-3deg) scale(1.16)}82%{transform:translateX(32px) rotate(3deg) scale(1.05)}100%{transform:translateX(0) rotate(0) scale(1)}}
@keyframes battleDinoSpecialEnemy{0%{transform:scaleX(-1) translateX(0) rotate(0) scale(1)}20%{transform:scaleX(-1) translateX(-14px) rotate(3deg) scale(1.03)}48%{transform:scaleX(-1) translateX(78px) rotate(8deg) scale(1.13)}62%{transform:scaleX(-1) translateX(90px) rotate(3deg) scale(1.16)}82%{transform:scaleX(-1) translateX(32px) rotate(-3deg) scale(1.05)}100%{transform:scaleX(-1) translateX(0) rotate(0) scale(1)}}
@keyframes battleDinoHitPlayer{0%{transform:translateX(0) rotate(0) scale(1)}20%{transform:translateX(-16px) rotate(-2deg) scale(.98)}45%{transform:translateX(13px) rotate(2deg) scale(1.01)}70%{transform:translateX(-6px) rotate(-1deg) scale(1)}100%{transform:translateX(0) rotate(0) scale(1)}}
@keyframes battleDinoHitEnemy{0%{transform:scaleX(-1) translateX(0) rotate(0) scale(1)}20%{transform:scaleX(-1) translateX(-16px) rotate(2deg) scale(.98)}45%{transform:scaleX(-1) translateX(13px) rotate(-2deg) scale(1.01)}70%{transform:scaleX(-1) translateX(-6px) rotate(1deg) scale(1)}100%{transform:scaleX(-1) translateX(0) rotate(0) scale(1)}}
@keyframes battleGuard{0%,100%{transform:scale(1)}35%{transform:scale(.96) rotate(-1deg)}65%{transform:scale(1.03) rotate(1deg)}}
@keyframes battleDefeat{0%{transform:translateY(0) rotate(0);opacity:1}55%{transform:translateY(8px) rotate(5deg);opacity:.85}100%{transform:translateY(28px) rotate(12deg);opacity:.28;filter:grayscale(1) drop-shadow(0 14px 8px rgba(0,0,0,.2))}}
@keyframes battleVictory{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-12px) scale(1.04)}}
@keyframes battleImpact{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}35%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.7)}}
@keyframes battleDamageFloat{0%{opacity:0;transform:translateY(10px) scale(.75)}20%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-48px) scale(1.08)}}
@media(max-width:700px){.battle-arena{min-height:350px}.battle-arena-center{padding-left:3%;padding-right:3%}.battle-fighter{height:210px;width:43%}.battle-arena-top{width:39%}.battle-arena-skills{display:none}}
@media(max-width:480px){.battle-arena{min-height:330px}.battle-arena-center{padding:105px 1% 20px}.battle-fighter{height:190px;width:47%}.battle-arena-top{width:44%;padding:6px 7px}.battle-arena-top strong{font-size:11px}.battle-arena-top small{font-size:8px}.battle-arena-vs{font-size:14px}.battle-damage-number{font-size:21px}}



.daily-missions-card{margin-top:22px}.daily-missions-grid{display:grid;gap:10px}.mission-row{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:14px;align-items:center;padding:13px 14px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(0,0,0,.12)}.mission-main{min-width:0}.mission-main strong{display:block;margin-bottom:5px}.mission-main>span{font-size:.8rem;opacity:.7}.mission-progress{height:7px;background:rgba(255,255,255,.08);border-radius:99px;overflow:hidden;margin-top:7px}.mission-progress i{display:block;height:100%;background:linear-gradient(90deg,#d6a24a,#e6c16a);border-radius:inherit}.mission-reward{font-size:.82rem;white-space:nowrap;opacity:.9}.mission-claim:disabled{opacity:.45;cursor:not-allowed}.mission-complete{border-color:rgba(214,162,74,.35)}.mission-bonus{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:6px;padding:15px;border:1px solid rgba(214,162,74,.35);border-radius:12px;background:rgba(214,162,74,.08)}.mission-bonus small{display:block;margin-top:4px;opacity:.75}.construction-queue-purchase-slot{height:100%;box-sizing:border-box;background:linear-gradient(180deg,rgba(214,162,74,.08),rgba(214,162,74,.035));border-color:rgba(214,162,74,.25)}
.construction-queue-empty-slot{flex-direction:column;gap:4px;background:rgba(92,154,91,.045);border-color:rgba(92,154,91,.2)}
.construction-queue-empty-slot-icon{font-size:20px;line-height:1}
.construction-queue-empty-slot strong{display:block;color:#a9d5a8;font-size:12px}
.construction-queue-empty-slot span:last-child{font-size:11px}
@media(max-width:800px){.mission-row{grid-template-columns:1fr}.mission-reward{white-space:normal}.mission-bonus{flex-direction:column;align-items:flex-start}}

.mission-empty{padding:18px;text-align:center;opacity:.7;border:1px dashed rgba(255,255,255,.12);border-radius:12px}

/* Missions quotidiennes — encart supérieur compact */
.daily-missions-widget{margin:16px 0 22px;padding:0;border:1px solid rgba(214,162,74,.32);border-radius:14px;background:linear-gradient(135deg,rgba(214,162,74,.10),rgba(0,0,0,.16));box-shadow:0 8px 24px rgba(0,0,0,.14);overflow:hidden}.daily-missions-summary{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,260px) auto;gap:18px;align-items:center;padding:13px 16px}.daily-missions-summary-title{display:flex;align-items:center;gap:11px}.daily-missions-summary-title strong{display:block;font-size:1rem}.daily-missions-summary-title small{display:block;margin-top:2px;font-size:.72rem;opacity:.65}.daily-missions-target-icon{font-size:1.35rem}.daily-missions-summary-progress{display:flex;align-items:center;gap:10px;font-size:.78rem;font-weight:700;white-space:nowrap}.daily-summary-progress{flex:1;height:7px;background:rgba(255,255,255,.08);border-radius:99px;overflow:hidden}.daily-summary-progress i{display:block;height:100%;background:linear-gradient(90deg,#d6a24a,#e6c16a);border-radius:inherit;transition:width .3s ease}.daily-missions-toggle{min-width:132px}.daily-missions-details{padding:0 16px 16px;border-top:1px solid rgba(255,255,255,.08)}.daily-missions-details[hidden]{display:none}.daily-missions-details .mission-row{margin-top:10px}.daily-missions-details .mission-bonus{margin-top:10px}.daily-missions-widget .mission-row{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:14px;align-items:center;padding:13px 14px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(0,0,0,.12)}.daily-missions-widget .mission-main{min-width:0}.daily-missions-widget .mission-main strong{display:block;margin-bottom:5px}.daily-missions-widget .mission-main>span{font-size:.8rem;opacity:.7}.daily-missions-widget .mission-progress{height:7px;background:rgba(255,255,255,.08);border-radius:99px;overflow:hidden;margin-top:7px}.daily-missions-widget .mission-progress i{display:block;height:100%;background:linear-gradient(90deg,#d6a24a,#e6c16a);border-radius:inherit}.daily-missions-widget .mission-reward{font-size:.82rem;white-space:nowrap;opacity:.9}.daily-missions-widget .mission-claim:disabled{opacity:.45;cursor:not-allowed}.daily-missions-widget .mission-complete{border-color:rgba(214,162,74,.35)}.daily-missions-widget .mission-bonus{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px;border:1px solid rgba(214,162,74,.35);border-radius:12px;background:rgba(214,162,74,.08)}.daily-missions-widget .mission-bonus small{display:block;margin-top:4px;opacity:.75}.daily-missions-widget .mission-empty{padding:18px;text-align:center;opacity:.7;border:1px dashed rgba(255,255,255,.12);border-radius:12px;margin-top:10px}.construction-queue-purchase-slot{height:100%;box-sizing:border-box;background:linear-gradient(180deg,rgba(214,162,74,.08),rgba(214,162,74,.035));border-color:rgba(214,162,74,.25)}
.construction-queue-empty-slot{flex-direction:column;gap:4px;background:rgba(92,154,91,.045);border-color:rgba(92,154,91,.2)}
.construction-queue-empty-slot-icon{font-size:20px;line-height:1}
.construction-queue-empty-slot strong{display:block;color:#a9d5a8;font-size:12px}
.construction-queue-empty-slot span:last-child{font-size:11px}
@media(max-width:800px){.daily-missions-summary{grid-template-columns:1fr;gap:10px}.daily-missions-summary-progress{width:100%}.daily-missions-toggle{width:100%}.daily-missions-widget .mission-row{grid-template-columns:1fr}.daily-missions-widget .mission-reward{white-space:normal}.daily-missions-widget .mission-bonus{flex-direction:column;align-items:flex-start}}


.daily-reward-widget{margin:12px 0 16px;padding:0;border:1px solid rgba(214,162,74,.34);border-radius:14px;background:linear-gradient(135deg,rgba(214,162,74,.12),rgba(0,0,0,.16));box-shadow:0 7px 20px rgba(0,0,0,.12);overflow:hidden}.daily-reward-summary{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(170px,auto) auto auto;gap:12px;align-items:center;padding:11px 14px}.daily-reward-icon{font-size:1.45rem}.daily-reward-title strong{display:block;font-size:.95rem}.daily-reward-title small{display:block;margin-top:2px;font-size:.7rem;opacity:.68}.daily-reward-preview{font-size:.78rem;font-weight:700;white-space:nowrap}.daily-reward-open{white-space:nowrap}.daily-reward-details{padding:0 14px 14px;border-top:1px solid rgba(255,255,255,.08)}.daily-reward-details[hidden]{display:none}.daily-reward-grid{display:grid;grid-template-columns:repeat(7,minmax(80px,1fr));gap:8px;padding-top:12px}.daily-reward-day{min-height:82px;padding:9px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(0,0,0,.13);text-align:center}.daily-reward-day.is-current{border-color:rgba(214,162,74,.65);background:rgba(214,162,74,.10);box-shadow:inset 0 0 0 1px rgba(214,162,74,.15)}.daily-reward-day.is-claimed{opacity:.65}.daily-reward-day-number{font-size:1rem;font-weight:800;margin-bottom:3px}.daily-reward-day strong{display:block;font-size:.68rem;opacity:.72}.daily-reward-day small{display:block;margin-top:6px;font-size:.67rem;line-height:1.3}.daily-reward-note{margin:10px 2px 0;font-size:.68rem;opacity:.55}@media(max-width:900px){.daily-reward-summary{grid-template-columns:auto 1fr auto;gap:10px}.daily-reward-preview{grid-column:2/-1}.daily-reward-open{grid-column:3}.daily-reward-grid{grid-template-columns:repeat(4,minmax(80px,1fr))}}@media(max-width:560px){.daily-reward-summary{grid-template-columns:auto 1fr}.daily-reward-preview{grid-column:2}.daily-reward-summary .btn{grid-column:1/-1;width:100%}.daily-reward-grid{grid-template-columns:repeat(2,minmax(100px,1fr))}}

/* Missions + récompense quotidienne côte à côte */
.daily-top-widgets{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:12px 0 22px;align-items:stretch}.daily-top-widget-item{min-width:0;display:flex}.daily-top-widget-item .daily-reward-widget,.daily-top-widget-item .daily-missions-widget{margin:0;height:100%;width:100%;box-sizing:border-box;display:flex;flex-direction:column}.daily-top-widget-item .daily-reward-summary{grid-template-columns:auto minmax(0,1fr);gap:8px 10px;padding:11px 13px}.daily-top-widget-item .daily-reward-preview{grid-column:2;white-space:normal;font-size:.75rem}.daily-top-widget-item .daily-reward-summary .btn{font-size:.72rem;padding:7px 9px}.daily-top-widget-item .daily-reward-summary .daily-reward-claim{grid-column:1 / 2}.daily-top-widget-item .daily-reward-summary .daily-reward-open{grid-column:2;grid-row:3}.daily-top-widget-item .daily-reward-details{padding:0 12px 12px}.daily-top-widget-item .daily-reward-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.daily-top-widget-item .daily-missions-summary{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:11px 13px}.daily-top-widget-item .daily-missions-summary-title{grid-column:1/-1}.daily-top-widget-item .daily-missions-summary-progress{min-width:0}.daily-top-widget-item .daily-missions-toggle{min-width:0;white-space:nowrap}.daily-top-widget-item .daily-missions-details{padding:0 12px 12px}.daily-top-widget-item .daily-missions-widget .mission-row{grid-template-columns:1fr;gap:8px}.daily-top-widget-item .daily-missions-widget .mission-reward{white-space:normal}
@media(max-width:1000px){.daily-top-widgets{grid-template-columns:1fr}.daily-top-widget-item .daily-reward-summary{grid-template-columns:auto minmax(0,1fr) auto}.daily-top-widget-item .daily-reward-preview{grid-column:2}.daily-top-widget-item .daily-reward-summary .daily-reward-claim{grid-column:auto}.daily-top-widget-item .daily-reward-summary .daily-reward-open{grid-column:auto;grid-row:auto}}


.achievement-widget{margin:12px 0 22px;border:1px solid rgba(214,162,74,.30);border-radius:14px;background:linear-gradient(135deg,rgba(214,162,74,.07),rgba(0,0,0,.14));overflow:hidden}.achievement-summary{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,320px) auto;gap:16px;align-items:center;padding:12px 15px}.achievement-summary-title{display:flex;align-items:center;gap:11px}.achievement-icon{font-size:1.35rem}.achievement-summary-title strong{display:block}.achievement-summary-title small{display:block;margin-top:2px;font-size:.72rem;opacity:.65}.achievement-summary-progress{display:flex;align-items:center;gap:10px;font-size:.78rem;font-weight:700}.achievement-summary-bar{flex:1;height:7px;background:rgba(255,255,255,.08);border-radius:99px;overflow:hidden}.achievement-summary-bar i{display:block;height:100%;background:linear-gradient(90deg,#d6a24a,#e6c16a);border-radius:inherit;transition:width .3s ease}.achievement-list{padding:0 15px 15px;border-top:1px solid rgba(255,255,255,.08)}.achievement-list[hidden]{display:none}.achievement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:12px}.achievement-card{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;padding:11px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(0,0,0,.12)}.achievement-card.is-complete{border-color:rgba(214,162,74,.35)}.achievement-card.is-claimed{opacity:.62}.achievement-card-icon{font-size:1.45rem}.achievement-card-body strong{display:block;font-size:.84rem;line-height:1.25}.achievement-card-body small{display:block;margin-top:4px;font-size:.72rem;opacity:.68}.achievement-card-progress{height:6px;background:rgba(255,255,255,.08);border-radius:99px;overflow:hidden;margin-top:7px}.achievement-card-progress i{display:block;height:100%;background:linear-gradient(90deg,#d6a24a,#e6c16a);border-radius:inherit}.achievement-card-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px}.achievement-card-reward{font-size:.72rem;opacity:.78}.achievement-card .btn:disabled{opacity:.45;cursor:not-allowed}@media(max-width:900px){.achievement-summary{grid-template-columns:1fr auto}.achievement-summary-title{grid-column:1/-1}.achievement-summary-progress{min-width:0}.achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.achievement-summary{grid-template-columns:1fr}.achievement-summary-progress{width:100%}.achievement-toggle{width:100%}.achievement-grid{grid-template-columns:1fr}}


/* =========================================================
   CENTRE DES OBJECTIFS — interface dédiée
   ========================================================= */
.objectives-page .game-shell{padding-bottom:48px}
.objectives-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:20px 0 14px;padding:2px 0}
.objectives-header .eyebrow{margin:0 0 5px;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#d6a24a}
.objectives-header h2{margin:0;font-size:1.55rem}
.objectives-header p:not(.eyebrow){margin:7px 0 0;max-width:760px;opacity:.72}
.objectives-total{min-width:150px;padding:12px 16px;border:1px solid rgba(214,162,74,.22);border-radius:12px;background:rgba(214,162,74,.06);text-align:center}
.objectives-total strong{display:block;font-size:1.25rem;color:#e6c16a}
.objectives-total span{display:block;margin-top:2px;font-size:.7rem;opacity:.65}
.objectives-tabs{display:flex;gap:8px;margin:0 0 14px;padding:6px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(0,0,0,.16)}
.objectives-tab{appearance:none;border:1px solid transparent;border-radius:9px;padding:10px 15px;background:transparent;color:inherit;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;transition:.18s ease}
.objectives-tab:hover{background:rgba(255,255,255,.05)}
.objectives-tab.active{border-color:rgba(214,162,74,.42);background:rgba(214,162,74,.13);color:#f0c66e;box-shadow:inset 0 0 0 1px rgba(214,162,74,.08)}
.objectives-panel{display:none;min-width:0}
.objectives-panel.active{display:block;animation:objectivesFade .18s ease}
@keyframes objectivesFade{from{opacity:.45;transform:translateY(3px)}to{opacity:1;transform:none}}
.objectives-panel>.daily-reward-widget,.objectives-panel>.daily-missions-widget,.objectives-panel>.achievement-widget{margin-top:0}
.objectives-panel[data-objective-panel="missions"]{display:none}
.objectives-panel[data-objective-panel="missions"].active{display:grid;grid-template-columns:1fr;gap:12px}
.objectives-panel[data-objective-panel="missions"] .daily-reward-widget{margin:0}
.objectives-panel[data-objective-panel="missions"] .daily-missions-widget{margin:0}
.quest-section-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 14px;padding:18px 20px;border:1px solid rgba(214,162,74,.24);border-radius:14px;background:linear-gradient(135deg,rgba(214,162,74,.08),rgba(0,0,0,.14))}
.quest-section-head .eyebrow{margin:0 0 5px;font-size:.68rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#d6a24a}
.quest-section-head h3{margin:0;font-size:1.25rem}
.quest-section-head p:not(.eyebrow){margin:6px 0 0;opacity:.68;font-size:.82rem}
.quest-progress{width:min(260px,30%);flex:0 0 auto;text-align:right;font-size:.75rem;font-weight:700}
.quest-progress>div{height:7px;margin-top:7px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}
.quest-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d6a24a,#e6c16a);transition:width .3s ease}
.quest-list{display:grid;gap:10px}
.quest-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 17px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(0,0,0,.13);transition:border-color .18s ease,background .18s ease}
.quest-card:hover{border-color:rgba(214,162,74,.22);background:rgba(214,162,74,.035)}
.quest-card.is-complete{border-color:rgba(214,162,74,.36);background:rgba(214,162,74,.055)}
.quest-card.is-claimed{opacity:.62}
.quest-card-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:rgba(214,162,74,.10);font-size:1.2rem}
.quest-card-body{min-width:0}
.quest-card-chapter{margin-bottom:3px;font-size:.63rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#d6a24a;opacity:.8}
.quest-card-body strong{display:block;font-size:.9rem;line-height:1.3}
.quest-card-body small{display:block;margin-top:4px;font-size:.72rem;opacity:.65}
.quest-card-progress{height:6px;margin-top:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}
.quest-card-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d6a24a,#e6c16a);transition:width .3s ease}
.quest-card-actions{min-width:145px;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.quest-card-actions>span{font-size:.72rem;white-space:nowrap;opacity:.8}
.quest-card .btn:disabled{opacity:.45;cursor:not-allowed}
.achievement-widget{margin:0}
.construction-queue-purchase-slot{height:100%;box-sizing:border-box;background:linear-gradient(180deg,rgba(214,162,74,.08),rgba(214,162,74,.035));border-color:rgba(214,162,74,.25)}
.construction-queue-empty-slot{flex-direction:column;gap:4px;background:rgba(92,154,91,.045);border-color:rgba(92,154,91,.2)}
.construction-queue-empty-slot-icon{font-size:20px;line-height:1}
.construction-queue-empty-slot strong{display:block;color:#a9d5a8;font-size:12px}
.construction-queue-empty-slot span:last-child{font-size:11px}
@media(max-width:800px){
  .objectives-header{align-items:flex-start;flex-direction:column}
  .objectives-total{width:100%;box-sizing:border-box}
  .objectives-tabs{overflow-x:auto}
  .objectives-tab{white-space:nowrap;flex:1}
  .quest-section-head{align-items:flex-start;flex-direction:column}
  .quest-progress{width:100%;text-align:left}
  .quest-card{grid-template-columns:auto minmax(0,1fr)}
  .quest-card-actions{grid-column:1/-1;min-width:0;flex-direction:row;align-items:center;justify-content:space-between}
}
@media(max-width:520px){
  .objectives-tabs{gap:4px;padding:4px}
  .objectives-tab{padding:9px 10px;font-size:.75rem}
  .quest-card{grid-template-columns:1fr}
  .quest-card-icon{width:34px;height:34px}
  .quest-card-actions{grid-column:auto;align-items:flex-start;flex-direction:column}
}

/* V1.1 - objective lists keep completed quests/achievements collapsed */
.objective-active-section,.objective-completed-section{margin-top:14px}
.objective-subsection-title{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:10px 12px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(0,0,0,.10)}
.objective-subsection-title>span{font-size:1.15rem}.objective-subsection-title strong{display:block;font-size:.86rem}.objective-subsection-title small{display:block;margin-top:2px;font-size:.68rem;opacity:.62}
.objective-claimable-section .objective-subsection-title{border-color:rgba(214,162,74,.28);background:rgba(214,162,74,.055)}
.objective-history-section{border-top:1px solid rgba(255,255,255,.08);padding-top:10px}
.objective-history-toggle{width:100%;display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(0,0,0,.12);color:inherit;text-align:left;cursor:pointer;font:inherit}
.objective-history-toggle:hover{border-color:rgba(214,162,74,.24);background:rgba(214,162,74,.035)}
.objective-history-toggle>span{display:inline-block;transition:transform .18s ease;color:var(--accent)}.objective-history-toggle.open>span{transform:rotate(180deg)}
.objective-history-toggle strong{font-size:.8rem}.objective-history-toggle small{margin-left:auto;min-width:24px;padding:2px 7px;border-radius:99px;background:rgba(214,162,74,.12);color:var(--accent);font-size:.68rem;text-align:center}
.objective-history-content{padding-top:10px}.objective-history-content[hidden]{display:none}.objective-empty{padding:20px;text-align:center;border:1px dashed rgba(255,255,255,.10);border-radius:11px;color:var(--muted);font-size:.8rem}
@media(max-width:700px){.objective-subsection-title{padding:9px 10px}.objective-history-toggle{padding:9px 10px}}

/* =========================================================
   CLASSEMENT — progression communautaire
   ========================================================= */
.leaderboard-page .game-shell{padding-bottom:48px}

.leaderboard-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:20px 0 14px}
.leaderboard-header .eyebrow{margin:0 0 5px;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#d6a24a}
.leaderboard-header h2{margin:0;font-size:1.55rem}.leaderboard-header p:not(.eyebrow){margin:7px 0 0;opacity:.72}
.leaderboard-your-rank{min-width:150px;padding:12px 16px;border:1px solid rgba(214,162,74,.22);border-radius:12px;background:rgba(214,162,74,.06);text-align:center}
.leaderboard-your-rank span{display:block;font-size:.7rem;opacity:.65}.leaderboard-your-rank strong{display:block;margin-top:2px;font-size:1.35rem;color:#e6c16a}
.leaderboard-tabs{display:flex;gap:8px;margin:0 0 14px;padding:6px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(0,0,0,.16)}
.leaderboard-tab{flex:1;text-align:center;text-decoration:none;border:1px solid transparent;border-radius:9px;padding:10px 15px;color:inherit;font-size:.82rem;font-weight:700;transition:.18s ease}
.leaderboard-tab:hover{background:rgba(255,255,255,.05)}.leaderboard-tab.active{border-color:rgba(214,162,74,.42);background:rgba(214,162,74,.13);color:#f0c66e}
.leaderboard-card{border:1px solid rgba(214,162,74,.24);border-radius:14px;background:linear-gradient(135deg,rgba(214,162,74,.07),rgba(0,0,0,.14));overflow:hidden}
.leaderboard-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.leaderboard-card-head h3{margin:0;font-size:1rem}.leaderboard-card-head p{margin:4px 0 0;font-size:.72rem;opacity:.62}.leaderboard-card-head>span{font-size:.7rem;opacity:.6}
.leaderboard-table{width:100%}.leaderboard-row{display:grid;grid-template-columns:90px minmax(0,1fr) 180px;align-items:center;gap:14px;padding:13px 18px;border-bottom:1px solid rgba(255,255,255,.055)}.leaderboard-row:last-child{border-bottom:0}
.leaderboard-row-head{padding-top:9px;padding-bottom:9px;font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;opacity:.5}.leaderboard-row-head span:last-child{text-align:right}
.leaderboard-rank{font-weight:800;color:#d6a24a}.leaderboard-player{min-width:0}.leaderboard-player b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leaderboard-player small{display:block;margin-top:2px;font-size:.65rem;color:#d6a24a}.leaderboard-row>strong{text-align:right;font-size:.88rem}.leaderboard-row.is-you{background:rgba(214,162,74,.09);box-shadow:inset 3px 0 #d6a24a}
.leaderboard-empty{padding:35px;text-align:center;opacity:.65}
@media(max-width:700px){.leaderboard-header{align-items:flex-start;flex-direction:column}.leaderboard-your-rank{width:100%;box-sizing:border-box}.leaderboard-tabs{overflow-x:auto}.leaderboard-tab{white-space:nowrap}.leaderboard-row{grid-template-columns:55px minmax(0,1fr) 110px;padding:12px 12px}.leaderboard-card-head{padding:14px 12px}}
@media(max-width:480px){.leaderboard-tabs{gap:4px;padding:4px}.leaderboard-tab{padding:9px 8px;font-size:.72rem}.leaderboard-row{grid-template-columns:42px minmax(0,1fr) 90px;gap:8px}.leaderboard-row>strong{font-size:.8rem}}

/* V1.1.0 - centered three-column top navigation */

.topbar{display:grid;grid-template-columns:minmax(190px,220px) minmax(0,1fr) minmax(250px,290px);align-items:center;gap:18px;}
.topbar-brand-wrap{min-width:0;margin:0;}
.game-nav{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;overflow:visible;order:initial;}
.game-nav-link{padding:8px 9px;font-size:12px;}
.player-menu{display:flex;justify-content:flex-end;align-items:center;gap:12px;min-width:0;margin:0;}
@media(max-width:1120px){
  .topbar{grid-template-columns:minmax(170px,210px) minmax(0,1fr);}
  .game-nav{grid-column:2;grid-row:1;}
  .player-menu{grid-column:1 / -1;grid-row:2;justify-content:flex-end;}
}
@media(max-width:850px){
  .topbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;}
  .topbar-brand-wrap{flex:1 1 auto;}
  .game-nav{order:3;flex-basis:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:2px;}
  .player-menu{order:2;margin-left:auto;}
}
@media(max-width:650px){
  .topbar{padding:12px 15px;gap:9px;}
  .game-nav-link{padding:7px 8px;font-size:11px;}
}

/* V1.2.0 - stable two-row header: brand/account on top, navigation centered below */
.topbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:24px;
  row-gap:10px;
  padding-top:14px;
  padding-bottom:12px;
}
.topbar-brand-wrap{grid-column:1;grid-row:1;min-width:0;margin:0;}
.game-brand{display:block;}
.topbar h1{margin:0;}
.player-menu{grid-column:2;grid-row:1;display:flex;justify-content:flex-end;align-items:center;gap:12px;min-width:0;margin:0;white-space:nowrap;}
.game-nav{
  grid-column:1 / -1;
  grid-row:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:0;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 2px 3px;
  scrollbar-width:thin;
}
.game-nav-link{flex:0 0 auto;padding:8px 10px;font-size:12px;}
@media(max-width:850px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:9px 12px;padding:12px 15px;}
  .topbar-brand-wrap{grid-column:1;grid-row:1;}
  .player-menu{grid-column:2;grid-row:1;margin:0;}
  .game-nav{grid-column:1 / -1;grid-row:2;justify-content:flex-start;overflow-x:auto;}
}
@media(max-width:520px){
  .topbar{padding:10px 12px;}
  .topbar h1{font-size:24px;}
  .game-brand{font-size:10px;}
  .player-menu{gap:8px;font-size:12px;}
  .player-menu span{display:none;}
  .game-nav-link{padding:7px 8px;font-size:11px;}
}


/* V1.1.0 - unified header cache/version and stable two-row navigation */
.topbar{display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(190px,1fr);grid-template-areas:"brand nav player";align-items:center;column-gap:18px;row-gap:10px;flex-wrap:nowrap;}
.topbar-brand-wrap{grid-area:brand;min-width:0;}
.game-nav{grid-area:nav;min-width:0;justify-content:center;display:flex;align-items:center;gap:5px;white-space:nowrap;}
.player-menu{grid-area:player;justify-content:flex-end;min-width:0;white-space:nowrap;}
@media(max-width:1100px){.topbar{grid-template-columns:minmax(180px,1fr) minmax(0,1fr);grid-template-areas:"brand player" "nav nav";}.game-nav{justify-content:flex-start;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin;}.player-menu{justify-content:flex-end;}}
@media(max-width:650px){.topbar{grid-template-columns:1fr auto;grid-template-areas:"brand player" "nav nav";padding:12px 15px;}.game-nav{gap:3px;}.game-nav-link{padding:7px 8px;font-size:11px;}.player-menu{gap:8px;font-size:12px;}.player-menu .language-switcher label{display:none;}}
@media(max-width:520px){.topbar{grid-template-columns:1fr;grid-template-areas:"brand" "player" "nav";}.player-menu{justify-content:flex-start;}.game-nav{width:100%;}}

/* V1.3.0 - definitive two-row header on every page */
.topbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  grid-template-areas:
    "brand player"
    "nav nav";
  align-items:center;
  column-gap:24px;
  row-gap:10px;
  padding:16px max(20px,calc((100% - 1180px)/2));
  flex-wrap:nowrap;
}
.topbar-brand-wrap{grid-area:brand;min-width:0;margin:0;}
.game-brand{display:block;margin:0 0 4px;}
.topbar h1{margin:0;font-size:27px;}
.player-menu{grid-area:player;display:flex;align-items:center;justify-content:flex-end;gap:12px;white-space:nowrap;}
.game-nav{
  grid-area:nav;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:0;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 0 3px;
  scrollbar-width:thin;
}
.game-nav-link{flex:0 0 auto;padding:8px 10px;font-size:12px;}

@media(max-width:700px){
  .topbar{grid-template-columns:minmax(0,1fr) auto;padding:12px 15px;column-gap:12px;row-gap:8px;}
  .topbar h1{font-size:24px;}
  .game-brand{font-size:10px;}
  .game-nav{justify-content:flex-start;}
  .game-nav-link{padding:7px 8px;font-size:11px;}
  .player-menu{gap:8px;font-size:12px;}
  .player-menu .language-switcher label{display:none;}
}
@media(max-width:520px){
  .topbar{grid-template-columns:1fr;grid-template-areas:"brand" "player" "nav";}
  .player-menu{justify-content:flex-start;}
  .game-nav{width:100%;}
}
/* PvP Arena V1 */
.pvp-opponents{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pvp-opponent{border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(0,0,0,.14);padding:13px}.pvp-opponent-head,.pvp-opponent-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.pvp-opponent-head strong{font-size:.9rem}.pvp-opponent-head span,.pvp-opponent-foot span{font-size:.72rem;opacity:.68}.pvp-opponent-dinos{display:flex;gap:7px;margin:12px 0}.pvp-opponent-dinos span{width:48px;height:48px;border-radius:9px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);display:grid;place-items:center;overflow:hidden}.pvp-opponent-dinos img{width:100%;height:100%;object-fit:contain}.pvp-match{margin-top:14px}.pvp-versus{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:start;padding:18px}.pvp-versus>div>strong{display:block;text-align:center;margin-bottom:10px}.pvp-vs{font-size:1.2rem;font-weight:900;align-self:center;opacity:.7}.pvp-team{display:grid;gap:8px}.pvp-dino{display:grid;grid-template-columns:58px 1fr;gap:9px;align-items:center;padding:8px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(0,0,0,.13)}.pvp-dino.active{border-color:rgba(214,162,74,.65);box-shadow:inset 0 0 0 1px rgba(214,162,74,.12)}.pvp-dino.dead{opacity:.42}.pvp-dino img{width:58px;height:58px;object-fit:contain}.pvp-dino strong,.pvp-dino small{display:block}.pvp-dino small{font-size:.68rem;opacity:.65;margin-top:2px}.pvp-hp{height:6px;background:rgba(255,255,255,.08);border-radius:99px;overflow:hidden;margin:6px 0 3px}.pvp-hp i{display:block;height:100%;background:#d6a24a}.pvp-actions{display:flex;justify-content:center;gap:10px;padding:0 18px 18px}.pvp-log{margin:0 18px 18px;min-height:42px;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:rgba(0,0,0,.13);font-size:.76rem}.pvp-result{margin:0 18px 18px;padding:14px;border-radius:10px;text-align:center;font-weight:800;background:rgba(214,162,74,.12);border:1px solid rgba(214,162,74,.35)}.pvp-history{display:grid}.pvp-history-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:.8rem}.pvp-history-row small{opacity:.55}.pvp-history-row strong{text-transform:capitalize}.pvp-history-row:last-child{border-bottom:0}@media(max-width:900px){.pvp-opponents{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.pvp-opponents{grid-template-columns:1fr}.pvp-versus{grid-template-columns:1fr}.pvp-vs{text-align:center}.pvp-actions{flex-wrap:wrap}.pvp-actions .btn{flex:1;min-width:120px}}

/* V1.4.0 - framed Objectives progress header */
.objectives-header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:18px 0 14px;
  padding:24px 22px;
  border:1px solid rgba(214,162,74,.42);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(68,49,32,.72),rgba(34,25,18,.82));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 24px rgba(0,0,0,.12);
}
.objectives-header::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:16px;
  pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.018);
}
.objectives-header h2{margin:4px 0 7px;font-size:28px;}
.objectives-header p:not(.eyebrow){margin:0;max-width:760px;line-height:1.5;opacity:.82;}
.objectives-header .eyebrow{margin:0 0 2px;}
.objectives-total{
  flex:0 0 130px;
  min-height:78px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  border:1px solid rgba(214,162,74,.28);
  border-radius:12px;
  background:rgba(0,0,0,.14);
}
.objectives-total strong{font-size:25px;color:#d6a24a;line-height:1.1;}
.objectives-total span{font-size:11px;opacity:.72;margin-top:4px;}
@media(max-width:650px){
  .objectives-header{align-items:stretch;flex-direction:column;padding:18px;}
  .objectives-total{flex-basis:auto;min-height:60px;}
  .objectives-header h2{font-size:24px;}
}

.leaderboard-page-heading{margin-top:18px;margin-bottom:14px}

/* PvP V2 - framed heading and team switching */
.pvp-page-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;margin:18px 0 14px;padding:24px 22px;border:1px solid rgba(214,162,74,.42);border-radius:16px;background:linear-gradient(135deg,rgba(68,49,32,.72),rgba(34,25,18,.82));box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 24px rgba(0,0,0,.12)}
.pvp-page-heading h2{margin:4px 0 7px;font-size:28px}.pvp-page-heading p:not(.eyebrow){margin:0;max-width:760px;line-height:1.5;opacity:.82}.pvp-heading-badge{flex:0 0 150px;min-height:68px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border:1px solid rgba(214,162,74,.28);border-radius:12px;background:rgba(0,0,0,.14)}.pvp-heading-badge strong{font-size:16px;color:#d6a24a}.pvp-heading-badge span{font-size:10px;opacity:.68;margin-top:5px}.pvp-switches{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px}.pvp-switches .btn{font-size:.7rem;padding:6px 9px}.pvp-switches .btn:disabled{opacity:.4;cursor:not-allowed}@media(max-width:650px){.pvp-page-heading{align-items:stretch;flex-direction:column;padding:18px}.pvp-heading-badge{flex-basis:auto;min-height:58px}.pvp-page-heading h2{font-size:24px}}

/* V0.3.0 - PvP matchmaking */
.pvp-matchmaking{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:13px 15px;border:1px solid rgba(214,162,74,.25);border-radius:12px;background:rgba(214,162,74,.06)}
.pvp-matchmaking strong,.pvp-matchmaking small{display:block}.pvp-matchmaking strong{font-size:.86rem}.pvp-matchmaking small{margin-top:3px;font-size:.7rem;opacity:.65}.pvp-matchmaking .btn{white-space:nowrap}
.pvp-recommended{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid rgba(214,162,74,.42);border-radius:11px;background:rgba(214,162,74,.10)}
.pvp-recommended strong,.pvp-recommended small{display:block}.pvp-recommended small{margin-top:3px;font-size:.7rem;opacity:.68}
@media(max-width:650px){.pvp-matchmaking,.pvp-recommended{flex-direction:column;align-items:stretch}.pvp-matchmaking .btn,.pvp-recommended .btn{width:100%}}
/* Pioneer profile */
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.profile-card{min-width:0}.profile-heading-badge{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.profile-heading-badge strong{font-size:20px;color:#f2c46d}.profile-heading-badge span{font-size:12px;color:#c9b7a0}.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.profile-stats>div{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:96px;border:1px solid rgba(198,156,82,.28);border-radius:12px;background:rgba(255,255,255,.025);text-align:center}.profile-stats span{font-size:22px}.profile-stats strong{font-size:20px;color:#f4d38b;margin-top:4px}.profile-stats small{font-size:11px;color:#bfae99;margin-top:3px}.profile-member{margin-top:14px;color:#a99a89;font-size:12px}.profile-pvp-rate{margin:12px 0}.profile-pvp-bar{height:10px;border-radius:99px;background:#211913;overflow:hidden;border:1px solid rgba(198,156,82,.22)}.profile-pvp-bar i{display:block;height:100%;background:linear-gradient(90deg,#8f5d2d,#e2b45f);border-radius:99px}.profile-pvp-stats{display:flex;flex-wrap:wrap;gap:14px;color:#cbbba6;font-size:12px}.profile-team{margin-top:16px}.profile-team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.profile-dino{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid rgba(198,156,82,.25);border-radius:12px;background:rgba(255,255,255,.025)}.profile-dino-art{width:72px;height:72px;display:flex;align-items:center;justify-content:center;flex:none}.profile-dino-art img{max-width:100%;max-height:100%;object-fit:contain}.profile-dino>div:last-child{display:flex;flex-direction:column;gap:3px}.profile-dino strong{color:#f2d39b}.profile-dino span,.profile-dino small{font-size:11px;color:#bfae99}.profile-dino small{color:#e0bd72}.profile-back{margin-top:16px}@media(max-width:900px){.profile-grid{grid-template-columns:1fr}.profile-team-grid{grid-template-columns:1fr}.profile-stats{grid-template-columns:repeat(2,1fr)}}
.leaderboard-player-link{color:#f0cf8b;text-decoration:none;font-weight:700}.leaderboard-player-link:hover{text-decoration:underline;color:#ffe2a8}
.pvp-player-link{color:inherit;text-decoration:none}.pvp-player-link:hover{color:#f2c46d;text-decoration:underline}

/* Friends V1 */
.friends-page-heading{margin-top:18px;margin-bottom:14px}.friends-page-heading .page-stat{display:flex;align-items:center;gap:6px}.friends-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}.friends-search-card{margin-top:16px}.friends-search{display:flex;align-items:center;gap:12px}.friends-search .btn{flex:none}.friends-search-form,.friends-search{min-width:0}.friends-search input{flex:1;min-width:0;padding:11px 13px;border:1px solid rgba(214,162,74,.28);border-radius:10px;background:#17120f;color:#f2dfc1;outline:none}.friends-search input:focus{border-color:rgba(214,162,74,.65);box-shadow:0 0 0 3px rgba(214,162,74,.08)}.friends-search span{font-size:11px;color:#a99a89}.friends-list,.friends-results{display:flex;flex-direction:column;gap:8px}.friends-results{margin-top:14px}.friend-row{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid rgba(198,156,82,.22);border-radius:11px;background:rgba(255,255,255,.025)}.friend-avatar{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(214,162,74,.10);border:1px solid rgba(214,162,74,.24);font-size:19px;flex:none}.friend-main{display:flex;flex-direction:column;min-width:0;flex:1}.friend-main a{color:#f0cf8b;text-decoration:none}.friend-main a:hover{text-decoration:underline;color:#ffe2a8}.friend-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.friend-main small{font-size:11px;color:#a99a89}.friend-main .friend-status-line{display:block;margin-top:3px;line-height:1.2}.friend-main .friend-level-line{display:block;margin-top:2px;line-height:1.2}.friend-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.friend-actions .btn{white-space:nowrap}.friends-search-card .panel-head{margin-bottom:12px}@media(max-width:900px){.friends-layout{grid-template-columns:1fr}}@media(max-width:650px){.friends-search{align-items:stretch;flex-direction:column}.friends-search .btn{width:100%}.friends-search span{width:100%}.friend-row{align-items:flex-start}.friend-actions{width:100%;justify-content:flex-start;margin-left:50px}.friend-actions .btn{flex:0 0 auto}}
.profile-friend-action{margin-top:8px}.friend-status{font-size:11px;color:#c9b7a0;display:inline-block;padding:6px 9px;border:1px solid rgba(198,156,82,.22);border-radius:9px;background:rgba(255,255,255,.025)}

/* Notifications V1 */
.notification-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid rgba(214,162,74,.22);border-radius:9px;background:rgba(255,255,255,.025);color:#f0cf8b;text-decoration:none;font-size:16px;line-height:1;transition:.18s ease}.notification-bell:hover,.notification-bell.active{border-color:rgba(214,162,74,.62);background:rgba(214,162,74,.08);color:#ffe2a8}.notification-bell b{position:absolute;right:-5px;top:-6px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#a83256;color:#fff;font-size:9px;display:flex;align-items:center;justify-content:center;border:2px solid #17130f}.notifications-page-heading{margin-top:18px;margin-bottom:14px}.notifications-card{margin-top:0}.notifications-list{display:flex;flex-direction:column;gap:8px}.notification-row{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid rgba(198,156,82,.22);border-radius:11px;background:rgba(255,255,255,.025);transition:.18s ease}.notification-row.unread{border-color:rgba(214,162,74,.48);background:rgba(214,162,74,.055)}.notification-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(214,162,74,.10);border:1px solid rgba(214,162,74,.24);font-size:19px;flex:none}.notification-main{min-width:0;flex:1}.notification-main strong{display:block;color:#f0cf8b;font-size:14px}.notification-main p{margin:4px 0 3px;color:#d0c1ae;font-size:12px}.notification-main small{color:#8f8375;font-size:10px}.notification-actions{display:flex;gap:6px;align-items:center;flex:none}.notification-actions .btn{white-space:nowrap}@media(max-width:650px){.notification-row{align-items:flex-start;flex-wrap:wrap}.notification-actions{width:100%;margin-left:52px}.notification-bell{width:31px;height:31px}.player-menu{gap:7px}}

/* Notifications V2 - dropdown overlay */
.notification-wrap{position:relative;display:flex;align-items:center;flex:none}
.notification-bell{cursor:pointer;font-family:inherit}
.notification-dropdown{position:absolute;z-index:1200;top:calc(100% + 10px);right:0;width:390px;max-width:min(390px,calc(100vw - 28px));border:1px solid rgba(214,162,74,.38);border-radius:14px;background:linear-gradient(180deg,#2a2018,#1b1511);box-shadow:0 18px 45px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.035);overflow:hidden}
.notification-dropdown[hidden]{display:none}
.notification-dropdown-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid rgba(198,156,82,.18)}
.notification-dropdown-head strong{font-size:14px;color:#f2d39b}
.notification-read-all{border:0;background:none;color:#d6a24a;font:inherit;font-size:10px;font-weight:700;cursor:pointer;padding:4px 0}.notification-read-all:hover{color:#ffe2a8;text-decoration:underline}
.notification-dropdown-list{display:flex;flex-direction:column;max-height:390px;overflow:auto;padding:7px}
.notification-dropdown-item{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid transparent;border-radius:10px;transition:.15s ease}.notification-dropdown-item:hover{background:rgba(255,255,255,.025)}.notification-dropdown-item.unread{background:rgba(214,162,74,.075);border-color:rgba(214,162,74,.18)}
.notification-dropdown-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;flex:none;border-radius:50%;background:rgba(214,162,74,.09);border:1px solid rgba(214,162,74,.18);font-size:16px}
.notification-dropdown-main{min-width:0;flex:1}.notification-dropdown-main strong{display:block;color:#f0cf8b;font-size:11px;line-height:1.25}.notification-dropdown-main p{margin:3px 0 2px;color:#cbbba7;font-size:10px;line-height:1.35}.notification-dropdown-main small{color:#8f8375;font-size:9px}
.notification-dropdown-actions{display:flex;align-items:center;gap:4px;flex:none}.notification-dropdown-view,.notification-dropdown-mark{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 7px;border:1px solid rgba(198,156,82,.24);border-radius:7px;background:rgba(255,255,255,.025);color:#d6a24a;text-decoration:none;font:inherit;font-size:9px;font-weight:700;cursor:pointer}.notification-dropdown-view:hover,.notification-dropdown-mark:hover{border-color:rgba(214,162,74,.58);color:#ffe2a8;background:rgba(214,162,74,.08)}
.notification-dropdown-empty{text-align:center;padding:28px 14px;color:#958878;font-size:11px}
.notification-dropdown-foot{padding:8px 14px;border-top:1px solid rgba(198,156,82,.14);text-align:right;color:#8f8375;font-size:9px}.notification-dropdown-foot span{color:#d6a24a;font-weight:700}
@media(max-width:650px){.notification-dropdown{position:fixed;top:64px;right:12px;width:390px}.notification-dropdown-list{max-height:55vh}.notification-wrap{position:static}}

.friend-presence{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;vertical-align:middle;background:#777;box-shadow:0 0 0 2px rgba(255,255,255,.04)}.friend-presence.online{background:#65c77a;box-shadow:0 0 7px rgba(101,199,122,.55)}.friend-presence.offline{background:#6f665e}
.chat-modal{position:fixed;inset:0;z-index:1400;display:flex;align-items:center;justify-content:center;padding:20px}.chat-modal[hidden]{display:none}.chat-backdrop{position:absolute;inset:0;background:rgba(5,4,3,.66);backdrop-filter:blur(2px)}.chat-dialog{position:relative;width:min(560px,100%);max-height:min(680px,calc(100vh - 40px));display:flex;flex-direction:column;border:1px solid rgba(214,162,74,.38);border-radius:16px;background:linear-gradient(180deg,#2a2018,#17120f);box-shadow:0 24px 70px rgba(0,0,0,.5);overflow:hidden}.chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid rgba(198,156,82,.18)}.chat-head strong{display:block;color:#f2d39b;font-size:15px}.chat-head small{display:block;color:#8f8375;font-size:10px;margin-top:3px}.chat-close{width:32px;height:32px;border:1px solid rgba(198,156,82,.22);border-radius:8px;background:rgba(255,255,255,.025);color:#d6a24a;font-size:20px;line-height:1;cursor:pointer}.chat-messages{display:flex;flex-direction:column;gap:8px;min-height:260px;max-height:440px;overflow:auto;padding:15px}.chat-bubble{max-width:78%;padding:9px 11px;border:1px solid rgba(198,156,82,.18);border-radius:12px;background:rgba(255,255,255,.025)}.chat-bubble.mine{align-self:flex-end;background:rgba(214,162,74,.10);border-color:rgba(214,162,74,.28)}.chat-bubble.theirs{align-self:flex-start}.chat-bubble p{margin:0;color:#ead9c2;font-size:12px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}.chat-bubble small{display:block;margin-top:4px;color:#8f8375;font-size:9px;text-align:right}.chat-empty{text-align:center;margin:auto;color:#958878;font-size:11px}.chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid rgba(198,156,82,.16)}.chat-form input{flex:1;min-width:0;padding:10px 12px;border:1px solid rgba(214,162,74,.28);border-radius:9px;background:#17120f;color:#f2dfc1;outline:none}.chat-form input:focus{border-color:rgba(214,162,74,.65);box-shadow:0 0 0 3px rgba(214,162,74,.08)}.chat-form .btn{flex:none}.friend-actions .btn{white-space:nowrap}@media(max-width:650px){.chat-modal{padding:10px}.chat-dialog{max-height:calc(100vh - 20px)}.chat-messages{max-height:none;flex:1}.chat-bubble{max-width:88%}}

/* Clan V1 */
.clan-page .clan-search-card{margin-top:14px}.clan-form{display:flex;flex-direction:column;gap:14px}.clan-form-grid{display:grid;grid-template-columns:1fr 180px;gap:14px}.clan-form label{display:flex;flex-direction:column;gap:7px;color:#d8c8a8;font-size:.9rem}.clan-form input,.clan-form textarea,.clan-search input{width:100%;box-sizing:border-box;background:#14100d;border:1px solid #5a4527;border-radius:10px;color:#f4ead8;padding:11px 13px;outline:none}.clan-form textarea{resize:vertical}.clan-form input:focus,.clan-form textarea:focus,.clan-search input:focus{border-color:#b9903f;box-shadow:0 0 0 2px rgba(185,144,63,.12)}.clan-muted{color:#a9977d;margin:0 0 14px}.clan-tag{color:#d7a83f;font-size:.9em}.clan-members,.clan-requests{display:flex;flex-direction:column}.clan-member-row,.clan-search-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid rgba(140,110,68,.22)}.clan-member-row:first-child,.clan-search-row:first-child{border-top:0}.clan-member-row .friend-main{flex:1}.clan-role{padding:5px 9px;border:1px solid #59462b;border-radius:999px;font-size:.75rem;color:#cbb88f;text-transform:capitalize}.clan-role-leader{color:#e6bc5e}.clan-role-officer{color:#cba66c}.clan-search{display:flex;align-items:center;gap:12px}.clan-search input{flex:1}.clan-search>span{white-space:nowrap;color:#9d8d75;font-size:.82rem}.clan-results{margin-top:10px}.clan-search-row>div:first-child{flex:1}.clan-search-row small{display:block;color:#9d8d75;margin-top:3px}.clan-search-row p{margin:5px 0 0;color:#b6a58c;font-size:.84rem}.clan-create-card .btn{align-self:flex-start}.clan-page .page-heading{margin-bottom:14px}.construction-queue-purchase-slot{height:100%;box-sizing:border-box;background:linear-gradient(180deg,rgba(214,162,74,.08),rgba(214,162,74,.035));border-color:rgba(214,162,74,.25)}
.construction-queue-empty-slot{flex-direction:column;gap:4px;background:rgba(92,154,91,.045);border-color:rgba(92,154,91,.2)}
.construction-queue-empty-slot-icon{font-size:20px;line-height:1}
.construction-queue-empty-slot strong{display:block;color:#a9d5a8;font-size:12px}
.construction-queue-empty-slot span:last-child{font-size:11px}
@media(max-width:800px){.clan-form-grid{grid-template-columns:1fr}.clan-search{flex-direction:column;align-items:stretch}.clan-search>span{white-space:normal}.clan-search-row{align-items:flex-start;flex-direction:column}.clan-search-row>div:last-child{width:100%}.clan-search-row .btn{width:100%}.clan-member-row{align-items:flex-start}.clan-member-row .friend-actions{flex-wrap:wrap}}

/* Social sub-navigation */
.social-subnav{display:flex;align-items:center;gap:6px;margin:0 0 16px;padding:5px;border:1px solid rgba(198,156,82,.20);border-radius:12px;background:rgba(255,255,255,.018);width:max-content;max-width:100%;box-sizing:border-box}.social-subnav a{display:inline-flex;align-items:center;gap:7px;padding:9px 18px;border-radius:8px;color:#b9aa94;text-decoration:none;font-weight:700;font-size:.88rem;transition:background .15s ease,color .15s ease,border-color .15s ease}.social-subnav a:hover{background:rgba(214,162,74,.07);color:#f1d08e}.social-subnav a.active{background:rgba(214,162,74,.13);color:#f1d08e;box-shadow:inset 0 0 0 1px rgba(214,162,74,.32)}@media(max-width:650px){.social-subnav{width:100%}.social-subnav a{flex:1;justify-content:center;padding:9px 10px}}

.clan-chat-card{margin-top:14px}.clan-chat-messages{height:300px;overflow:auto;background:#110d0a;border:1px solid rgba(140,110,68,.25);border-radius:10px;padding:12px}.clan-chat-message{max-width:78%;margin:0 0 10px;padding:8px 11px;background:#1a1510;border:1px solid rgba(140,110,68,.22);border-radius:10px}.clan-chat-message.mine{margin-left:auto;background:#211b13}.clan-chat-message>div{display:flex;gap:10px;align-items:center}.clan-chat-message time{font-size:.72rem;color:#8f806c}.clan-chat-message p{margin:5px 0 0;color:#e7dcc8;white-space:pre-wrap;word-break:break-word}.clan-chat-form{display:flex;gap:10px;margin-top:10px}.clan-chat-form input{flex:1;min-width:0;background:#14100d;border:1px solid #5a4527;border-radius:10px;color:#f4ead8;padding:11px 13px;outline:none}.clan-chat-form input:focus{border-color:#b9903f;box-shadow:0 0 0 2px rgba(185,144,63,.12)}@media(max-width:700px){.clan-chat-message{max-width:92%}.clan-chat-form{flex-direction:column}.clan-chat-form .btn{width:100%}}
.clan-progress-card{margin:14px 0;padding:14px;border:1px solid rgba(140,110,68,.28);border-radius:12px;background:rgba(20,15,10,.45)}
.clan-progress-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.clan-progress-head h3{margin:0 0 4px}.clan-progress-head p{margin:0;color:#9d8d75;font-size:.82rem}.clan-progress-head>strong{color:#e3bd68;white-space:nowrap}.clan-progress-track{height:10px;margin:12px 0;border-radius:999px;background:#100d09;border:1px solid rgba(140,110,68,.25);overflow:hidden}.clan-progress-track span{display:block;height:100%;background:linear-gradient(90deg,#80612d,#d4a94e);border-radius:inherit;transition:width .3s ease}.clan-donate-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.clan-donate-btn{display:flex;flex-direction:column;align-items:center;gap:3px}.clan-donate-btn small{color:#a9977d;font-size:.72rem}.clan-donate-btn:disabled{opacity:.45;cursor:not-allowed}.clan-donate-hint{display:block;margin-top:10px;color:#9d8d75;font-size:.78rem}@media(max-width:700px){.clan-progress-head{flex-direction:column}.clan-donate-grid{grid-template-columns:repeat(2,1fr)}}

/* Combat sub-navigation */
.combat-subnav{display:flex;align-items:center;gap:6px;margin:0 0 16px;padding:5px;border:1px solid rgba(198,156,82,.20);border-radius:12px;background:rgba(255,255,255,.018);width:max-content;max-width:100%;box-sizing:border-box}.combat-subnav a{display:inline-flex;align-items:center;gap:7px;padding:9px 18px;border-radius:8px;color:#b9aa94;text-decoration:none;font-weight:700;font-size:.88rem;transition:background .15s ease,color .15s ease,border-color .15s ease}.combat-subnav a:hover{background:rgba(214,162,74,.07);color:#f1d08e}.combat-subnav a.active{background:rgba(214,162,74,.13);color:#f1d08e;box-shadow:inset 0 0 0 1px rgba(214,162,74,.32)}@media(max-width:650px){.combat-subnav{width:100%}.combat-subnav a{flex:1;justify-content:center;padding:9px 10px}}

/* Combat V1.1 - align PvE card with the full page content width */
.battle-page-card{max-width:none;width:100%;box-sizing:border-box}

/* V1.8.1 - Campfire remains the progression gate without special card styling */
.building-campfire-locked{opacity:.82}
.building-campfire-locked .building-card-image{filter:saturate(.72)}

/* Camp interactive map V1 */
.camp-panel{overflow:visible}.camp-map{position:relative;min-height:620px;margin:0;border:1px solid rgba(198,156,82,.30);border-radius:18px;overflow:hidden;background:#2c261b;box-shadow:inset 0 0 80px rgba(0,0,0,.28),0 10px 30px rgba(0,0,0,.18)}
.camp-map-sky,.camp-map-ground{position:absolute;inset:0}.camp-map-sky{background:linear-gradient(180deg,#3a4b3b 0%,#4f6040 30%,#5c6940 55%,#5a6039 100%)}.camp-map-ground{background:radial-gradient(ellipse at 50% 48%,rgba(157,137,76,.18),transparent 48%),radial-gradient(ellipse at 20% 80%,rgba(32,55,31,.24),transparent 35%),radial-gradient(ellipse at 85% 20%,rgba(38,58,34,.22),transparent 35%);mix-blend-mode:multiply}.camp-map::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 18%,transparent 78%,rgba(0,0,0,.20));}
.camp-map-path{position:absolute;height:70px;background:rgba(177,150,91,.28);border-radius:50px;filter:blur(1px);transform-origin:center;box-shadow:inset 0 0 12px rgba(75,56,30,.16)}.camp-path-a{width:62%;left:19%;top:48%;transform:rotate(8deg)}.camp-path-b{width:28%;left:36%;top:52%;transform:rotate(74deg)}.camp-path-c{width:31%;left:45%;top:56%;transform:rotate(-68deg)}
.camp-map-label{position:absolute;left:20px;top:18px;z-index:5;display:flex;flex-direction:column;gap:3px;padding:10px 13px;border:1px solid rgba(255,235,190,.16);border-radius:11px;background:rgba(23,20,13,.58);backdrop-filter:blur(5px);box-shadow:0 8px 20px rgba(0,0,0,.14)}.camp-map-label strong{font-size:14px;color:#f0d18e}.camp-map-label span{font-size:10px;color:#d1c3a6}
.camp-decor{position:absolute;z-index:2;user-select:none;pointer-events:none;filter:drop-shadow(0 7px 5px rgba(0,0,0,.22))}.camp-tree{font-size:42px;opacity:.72}.t1{left:7%;top:16%}.t2{left:88%;top:12%}.t3{left:6%;top:72%}.t4{left:90%;top:76%}.camp-rock{font-size:28px;opacity:.55}.r1{left:33%;top:18%}.r2{left:61%;top:83%}
.camp-hotspot{position:absolute;z-index:8;transform:translate(-50%,-50%);width:150px;height:135px;border:0;background:transparent;color:#f3e2c2;padding:0;cursor:pointer;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;transition:transform .16s ease,filter .16s ease}.camp-hotspot:hover{transform:translate(-50%,-50%) scale(1.07);filter:brightness(1.08)}.camp-hotspot:focus-visible{outline:2px solid #e2b45f;outline-offset:4px;border-radius:14px}.camp-hotspot img{position:absolute;left:50%;top:5px;transform:translateX(-50%);width:105px;height:92px;object-fit:contain;filter:drop-shadow(0 9px 6px rgba(0,0,0,.32))}.camp-hotspot-shadow{position:absolute;left:50%;bottom:29px;width:105px;height:28px;transform:translateX(-50%);border-radius:50%;background:rgba(35,25,13,.30);filter:blur(4px)}.camp-hotspot-glow{position:absolute;left:50%;top:5px;width:105px;height:92px;transform:translateX(-50%);border-radius:50%;background:transparent;transition:box-shadow .16s ease}.camp-hotspot:hover .camp-hotspot-glow{box-shadow:0 0 26px rgba(220,175,88,.22)}.camp-hotspot-name,.camp-hotspot-level{position:relative;z-index:3;display:block;padding:4px 8px;border-radius:7px;background:rgba(26,20,14,.82);border:1px solid rgba(255,235,190,.13);line-height:1.1}.camp-hotspot-name{max-width:175px;font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.camp-hotspot-level{margin-top:3px;font-size:9px;color:#d8c19b}.camp-hotspot-status{position:absolute;right:11px;top:6px;z-index:4;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(20,15,11,.86);border:1px solid rgba(214,162,74,.38);font-size:13px}.camp-hotspot-locked{opacity:.58}.camp-hotspot-campfire-locked{opacity:.68}.camp-hotspot-construction .camp-hotspot-glow{box-shadow:0 0 26px rgba(214,162,74,.32)}.camp-hotspot-construction .camp-hotspot-name{border-color:rgba(214,162,74,.48);color:#f2cf8c}
.camp-map-help{display:flex;justify-content:space-between;gap:12px;margin-top:9px;padding:0 3px;color:#9d8d75;font-size:10px}.camp-map-help span:last-child{color:#bfa77d}
.camp-building-templates{display:block}.camp-detail-card{display:none;position:fixed;z-index:1600;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 34px));max-height:min(700px,calc(100vh - 34px));overflow:auto;background:linear-gradient(180deg,#2a2018,#17120f);border:1px solid rgba(214,162,74,.40);border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.035)}.camp-detail-card.is-open{display:block}.camp-detail-card::before{content:"";position:fixed;inset:0;z-index:-1;background:rgba(5,4,3,.70);backdrop-filter:blur(3px)}.camp-detail-image{position:relative;height:190px;background:linear-gradient(180deg,#3c3023,#241b14);border-bottom:1px solid rgba(198,156,82,.20);display:flex;align-items:center;justify-content:center}.camp-detail-image img{width:160px;height:160px;object-fit:contain;filter:drop-shadow(0 12px 10px rgba(0,0,0,.30))}.camp-detail-body{padding:18px 19px 20px}.camp-detail-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.camp-detail-title .eyebrow{margin:0 0 3px}.camp-detail-title h3{margin:0;font-size:24px;color:#f0d8ac}.camp-detail-close{width:34px;height:34px;border:1px solid rgba(198,156,82,.25);border-radius:9px;background:rgba(255,255,255,.025);color:#d6a24a;font-size:22px;line-height:1;cursor:pointer}.camp-detail-description{margin:10px 0 0;color:#bfae99;line-height:1.5;font-size:12px}.camp-detail-effect{margin-top:12px;padding:10px 11px;border:1px solid rgba(214,162,74,.25);border-radius:9px;background:rgba(214,162,74,.07);color:#e0b65f;font-size:11px;font-weight:800}.camp-detail-card .building-card-cost{margin-top:15px}.camp-detail-card .building-card-unlock{margin-top:15px}.camp-detail-card .building-construction-status{margin-top:15px}.camp-detail-card .building-construction-bar{margin-top:9px}.camp-detail-card .upgrade-btn{width:100%;margin-top:12px}.camp-detail-card.building-locked{opacity:1}.camp-detail-card.building-campfire-locked{opacity:1}.camp-detail-card.building-under-construction{border-color:rgba(214,162,74,.40)}body.camp-detail-open{overflow:hidden}
.construction-queue-purchase-slot{height:100%;box-sizing:border-box;background:linear-gradient(180deg,rgba(214,162,74,.08),rgba(214,162,74,.035));border-color:rgba(214,162,74,.25)}
.construction-queue-empty-slot{flex-direction:column;gap:4px;background:rgba(92,154,91,.045);border-color:rgba(92,154,91,.2)}
.construction-queue-empty-slot-icon{font-size:20px;line-height:1}
.construction-queue-empty-slot strong{display:block;color:#a9d5a8;font-size:12px}
.construction-queue-empty-slot span:last-child{font-size:11px}
@media(max-width:800px){.camp-map{min-height:560px}.camp-hotspot{width:120px;height:120px}.camp-hotspot img,.camp-hotspot-shadow,.camp-hotspot-glow{width:86px}.camp-hotspot img{height:78px}.camp-hotspot-name{font-size:9px;max-width:115px}.camp-hotspot-level{font-size:8px}.camp-map-help{flex-direction:column}.camp-map-label{left:12px;top:12px}}
@media(max-width:560px){.camp-map{min-height:680px}.camp-hotspot{width:112px;height:112px}.camp-hotspot img{width:78px;height:70px}.camp-hotspot-shadow,.camp-hotspot-glow{width:76px}.camp-hotspot-name{max-width:108px}.camp-map-label{font-size:9px}.camp-detail-image{height:150px}.camp-detail-image img{width:125px;height:125px}.camp-detail-title h3{font-size:20px}}

/* === Frontier cinematic redesign V1 === */
:root{
  --bg:#0d100d;--panel:#171712;--panel2:#242117;--text:#f4ead8;--muted:#b9ad95;
  --accent:#d9a441;--accent2:#8b5f2f;--line:#4d3b24;--danger:#c96a5c;
}
body.game-page{background:#0d100d;color:var(--text)}
.topbar{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:220px minmax(0,1fr) auto;grid-template-areas:"brand nav player";align-items:center;gap:12px;padding:8px 22px;background:rgba(12,14,12,.92);border-bottom:1px solid rgba(217,164,65,.22);box-shadow:0 8px 28px rgba(0,0,0,.35);backdrop-filter:blur(12px)}
.topbar-brand-wrap{grid-area:brand;min-width:0}.brand-logo-link{display:flex;align-items:center;width:max-content;max-width:205px}.brand-logo-image{display:block;width:205px;height:auto;max-height:58px;object-fit:contain;object-position:left center;filter:drop-shadow(0 3px 8px rgba(0,0,0,.45))}
.topbar h1{display:none}.game-nav{grid-area:nav;display:flex;justify-content:center;align-items:center;gap:4px;min-width:0;overflow:visible}.game-nav-link{border:1px solid transparent;border-radius:10px;padding:11px 12px;color:#c8bda9;font-size:12px;font-weight:800;transition:.18s ease;white-space:nowrap}.game-nav-link:hover{color:#fff;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.08)}.game-nav-link.active{color:#fff;background:linear-gradient(180deg,rgba(217,164,65,.18),rgba(217,164,65,.06));border-color:rgba(217,164,65,.5);box-shadow:inset 0 -2px 0 var(--accent),0 5px 18px rgba(0,0,0,.16)}.game-nav-link span:first-child{font-size:16px}.player-menu{grid-area:player;display:flex;align-items:center;gap:12px;color:#d2c7b5;font-size:13px;white-space:nowrap}.player-menu>a{color:#e7bd6a}.language-switcher label{display:none}.language-switcher select{background:#191915;border-color:#554326;border-radius:8px;padding:8px 10px}
.outpost-shell{width:100%;max-width:1480px;margin:0 auto;padding:18px 18px 30px}.outpost-shell>.resource-bar{margin:0 0 14px;grid-template-columns:repeat(5,1fr);gap:10px}.outpost-shell>.resource-bar .resource{background:rgba(24,25,20,.88);border-color:rgba(216,180,100,.25);box-shadow:0 8px 22px rgba(0,0,0,.25);border-radius:11px;padding:10px 12px}.outpost-shell>.resource-bar .resource strong{font-size:16px}.outpost-shell>.resource-bar .resource-production{font-size:10px}
.outpost-stage{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:14px;min-height:720px}.outpost-map{position:relative;min-height:720px;overflow:hidden;border:1px solid rgba(216,180,100,.25);border-radius:18px;background:#27311f url('../assets/camp-background.jpg') center/cover no-repeat;box-shadow:0 20px 60px rgba(0,0,0,.35),inset 0 0 100px rgba(0,0,0,.28)}.outpost-map-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,9,7,.25),transparent 25%,transparent 70%,rgba(4,8,6,.28));pointer-events:none}.outpost-title-overlay{position:absolute;left:28px;top:24px;z-index:6;max-width:470px;text-shadow:0 3px 16px rgba(0,0,0,.75)}.outpost-title-overlay h2{font:700 40px Georgia,serif;margin:2px 0 5px}.outpost-title-overlay p:not(.eyebrow){margin:0;color:#f0e4d0;font-size:14px}.camp-map-label{top:auto;left:22px;bottom:22px;z-index:7;background:rgba(13,15,11,.72);border-color:rgba(238,211,155,.22);box-shadow:0 8px 22px rgba(0,0,0,.3)}
.camp-hotspot{width:175px;height:80px;justify-content:center;z-index:8}.camp-hotspot img,.camp-hotspot-shadow,.camp-hotspot-glow{display:none}.camp-hotspot-name,.camp-hotspot-level{background:rgba(16,17,13,.88);border:1px solid rgba(224,182,94,.55);box-shadow:0 8px 20px rgba(0,0,0,.35);backdrop-filter:blur(4px);text-align:left;width:100%;padding:7px 12px}.camp-hotspot-name{font-size:13px}.camp-hotspot-level{font-size:10px;color:#d8c49f;border-top:0;margin-top:-4px;border-radius:0 0 8px 8px;padding-top:3px}.camp-hotspot-name{border-radius:8px 8px 0 0}.camp-hotspot:hover{transform:translate(-50%,-50%) scale(1.045)}.camp-hotspot-status{right:-4px;top:7px}.camp-hotspot-locked{filter:grayscale(.35);opacity:.72}.camp-hotspot-campfire-locked{opacity:.82}
.outpost-level-card{position:absolute;left:24px;bottom:22px;z-index:9;display:flex;align-items:center;gap:10px;min-width:245px;padding:10px 13px;background:rgba(13,15,11,.82);border:1px solid rgba(217,164,65,.3);border-radius:12px;box-shadow:0 10px 25px rgba(0,0,0,.35);backdrop-filter:blur(6px)}.outpost-level-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#3a2b1c;font-size:22px}.outpost-level-card>div:last-child{flex:1}.outpost-level-card strong{display:block;color:#f0c35c;font-size:14px}.outpost-level-card span{display:block;color:#d4c8b5;font-size:10px;margin-bottom:5px}.outpost-level-card .xp-progress{height:7px;margin:0;background:#30271d;border:1px solid #5a4324;border-radius:999px;overflow:hidden}.outpost-level-card .xp-progress span{display:block;height:100%;margin:0;background:linear-gradient(90deg,#c98e2e,#e3bb55)}
.outpost-side-panel{position:relative;align-self:stretch;padding:15px;background:rgba(16,17,14,.94);border:1px solid rgba(216,180,100,.25);border-radius:18px;box-shadow:0 18px 45px rgba(0,0,0,.35);overflow:hidden}.outpost-expedition-image{height:135px;border-radius:12px;overflow:hidden;border:1px solid rgba(216,180,100,.22);background:linear-gradient(180deg,#c88f52 0%,#e7bd77 28%,#8a5a36 29%,#5b432a 100%);position:relative;margin-bottom:14px}.outpost-expedition-image:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 38%,rgba(255,232,170,.95) 0 6%,rgba(255,200,100,.35) 16%,transparent 32%),linear-gradient(160deg,transparent 50%,rgba(46,38,22,.5) 51%),linear-gradient(15deg,transparent 58%,rgba(59,43,26,.7) 59%)}.outpost-expedition-cactus{position:absolute;right:45px;bottom:22px;font-size:45px;filter:drop-shadow(0 5px 5px rgba(0,0,0,.35))}.outpost-side-panel h3{font:700 26px Georgia,serif;margin:2px 0 7px}.outpost-side-description{color:#c7baa6;font-size:13px;line-height:1.5;margin-bottom:18px}.outpost-side-stat{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid rgba(255,255,255,.08);font-size:12px}.outpost-side-stat span{color:#a99b87}.outpost-side-stat strong{color:#f2e5cf;text-align:right}.outpost-expedition-btn{display:block;text-align:center;margin-top:16px;padding:14px 12px}.outpost-active-expedition{margin-top:12px;padding:11px;border:1px solid rgba(217,164,65,.28);border-radius:10px;background:rgba(217,164,65,.08)}.outpost-active-expedition strong{display:block;font-size:12px;color:#f1c768}.outpost-active-expedition span{display:block;margin-top:4px;font-size:10px;color:#bcae99}
.camp-building-templates{position:fixed;inset:0;pointer-events:none;z-index:100}.camp-detail-card{pointer-events:auto}.camp-detail-card:not(.is-open){display:none}
@media(max-width:1100px){.topbar{grid-template-columns:200px 1fr auto}.game-nav-link{padding:9px 8px;font-size:11px}.brand-logo-image{width:185px}.outpost-stage{grid-template-columns:minmax(0,1fr) 280px}.camp-hotspot{width:150px}}
@media(max-width:900px){.topbar{grid-template-columns:1fr auto;grid-template-areas:"brand player" "nav nav"}.game-nav{justify-content:flex-start;overflow-x:auto}.outpost-stage{grid-template-columns:1fr}.outpost-side-panel{min-height:auto}.outpost-map{min-height:680px}.outpost-shell>.resource-bar{grid-template-columns:repeat(3,1fr)}.outpost-shell>.resource-bar .resource:last-child{grid-column:auto}}
@media(max-width:650px){.topbar{padding:7px 10px}.brand-logo-image{width:160px}.player-menu{gap:7px;font-size:11px}.player-menu>span{display:none}.outpost-shell{padding:10px}.outpost-shell>.resource-bar{grid-template-columns:repeat(2,1fr)}.outpost-map{min-height:650px;background-position:center}.outpost-title-overlay{left:18px;top:18px}.outpost-title-overlay h2{font-size:30px}.outpost-title-overlay p:not(.eyebrow){font-size:11px}.camp-hotspot{width:128px;height:65px}.camp-hotspot-name{font-size:10px;padding:6px 8px}.camp-hotspot-level{font-size:8px;padding:3px 8px}.outpost-level-card{left:14px;bottom:14px;min-width:205px}.outpost-side-panel{padding:12px}}

/* V1.10.0 - immersive outpost map: full-width interactive camp */
.outpost-stage{display:block;min-height:0}
.outpost-map{width:100%;min-height:0;height:auto;aspect-ratio:1210/705;background-image:url('../assets/camp-background-cropped-clean.jpg');background-size:100% 100%;background-position:center;background-repeat:no-repeat;border-radius:20px;box-shadow:0 24px 70px rgba(0,0,0,.42),inset 0 0 120px rgba(0,0,0,.25)}
.outpost-map-overlay{background:linear-gradient(180deg,rgba(5,8,7,.22),transparent 20%,transparent 76%,rgba(4,7,6,.30));}
.outpost-side-panel{display:none!important}
.outpost-title-overlay{display:none!important}
.camp-hotspot{width:230px;height:72px;justify-content:center;z-index:10}
.camp-hotspot-name,.camp-hotspot-level{width:100%;box-sizing:border-box;background:rgba(17,15,12,.90);border-color:rgba(224,182,94,.62);box-shadow:0 8px 22px rgba(0,0,0,.40);backdrop-filter:blur(5px);text-align:left}
.camp-hotspot-name{display:flex;align-items:center;gap:9px;border-radius:9px 9px 0 0;padding:8px 12px;font-size:13px}
.camp-hotspot-level{margin-top:-4px;border-top:0;border-radius:0 0 9px 9px;padding:3px 12px 7px;font-size:10px}
.camp-hotspot-icon{width:23px;flex:0 0 23px;text-align:center;font-size:17px;line-height:1}
.camp-hotspot-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.camp-hotspot:hover{transform:translate(-50%,-50%) scale(1.025);filter:brightness(1.10)}
.camp-hotspot:after{content:"";position:absolute;inset:-7px;border:1px solid transparent;border-radius:13px;pointer-events:none;transition:border-color .15s,box-shadow .15s}
.camp-hotspot:hover:after{border-color:rgba(238,194,99,.55);box-shadow:0 0 24px rgba(218,166,68,.16)}
.camp-hotspot-status{right:-5px;top:-5px}
.camp-hotspot-locked,.camp-hotspot-campfire-locked{opacity:.88}
.outpost-level-card{z-index:12}
.camp-building-templates{position:fixed;inset:0;pointer-events:none;z-index:100}
@media(max-width:900px){.outpost-shell{padding-left:10px;padding-right:10px}.outpost-map{aspect-ratio:1210/780;min-height:620px;background-size:100% 100%}.camp-hotspot{width:190px;height:66px}.camp-hotspot-name{font-size:11px}.camp-hotspot-level{font-size:9px}}
@media(max-width:650px){.outpost-map{aspect-ratio:auto;height:680px}.camp-hotspot{width:155px;height:60px}.camp-hotspot-name{font-size:10px;padding:6px 8px}.camp-hotspot-level{font-size:8px;padding:3px 8px 6px}.camp-hotspot-icon{width:19px;flex-basis:19px;font-size:14px}.outpost-level-card{left:12px;bottom:12px}}
/* Visual V3 - clean interactive building markers */
.camp-hotspot{width:220px;height:70px;padding:0;border-radius:10px;overflow:visible}
.camp-hotspot-name{font-size:12px;padding:8px 11px;min-width:0}
.camp-hotspot-level{font-size:9px;padding:3px 10px 6px}
.camp-hotspot-name-text{display:block;min-width:0;max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.camp-hotspot-icon{width:22px;flex:0 0 22px;font-size:16px}
@media(max-width:900px){.camp-hotspot{width:190px}.camp-hotspot-name-text{max-width:145px}}
@media(max-width:650px){.camp-hotspot{width:160px}.camp-hotspot-name{font-size:10px}.camp-hotspot-level{font-size:8px}.camp-hotspot-name-text{max-width:120px}}

/* Visual V4 — rebuilt interactive outpost map: HTML plaques align exactly with the clean artwork. */
.outpost-stage{display:block!important}
.outpost-map{position:relative!important;width:100%!important;aspect-ratio:1210/705!important;height:auto!important;min-height:0!important;background-image:url('../assets/camp-background-interactive.jpg?v=4.0.0')!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;border-radius:20px!important;overflow:hidden!important;box-shadow:0 24px 70px rgba(0,0,0,.42),inset 0 0 120px rgba(0,0,0,.22)!important}
.outpost-map-overlay{position:absolute;inset:0!important;background:linear-gradient(180deg,rgba(5,8,7,.08),transparent 20%,transparent 82%,rgba(4,7,6,.22))!important;pointer-events:none!important}
.outpost-side-panel{display:none!important}
.outpost-title-overlay{display:none!important}
/* Each plaque is the exact size/position of its counterpart in the background artwork, so there is never a duplicate plaque. */
.camp-hotspot{position:absolute!important;transform:translate(-50%,-50%)!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;z-index:10!important;width:auto!important;height:auto!important;display:block!important}
.camp-hotspot-name,.camp-hotspot-level{box-sizing:border-box!important;background:linear-gradient(180deg,rgba(22,20,15,.98),rgba(15,14,11,.98))!important;border:1px solid rgba(224,182,94,.72)!important;box-shadow:0 8px 18px rgba(0,0,0,.36)!important;backdrop-filter:none!important;color:#f4ead8!important}
.camp-hotspot-name{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;height:39px!important;padding:7px 12px!important;border-radius:9px 9px 0 0!important;font-size:13px!important;font-weight:800!important;white-space:nowrap!important}
.camp-hotspot-level{display:block!important;width:100%!important;height:23px!important;margin:0!important;padding:3px 12px 5px!important;border-top:0!important;border-radius:0 0 9px 9px!important;color:#d7c49d!important;font-size:10px!important;font-weight:700!important;white-space:nowrap!important}
.camp-hotspot-icon{width:23px!important;flex:0 0 23px!important;font-size:17px!important;line-height:1!important;text-align:center!important}
.camp-hotspot-name-text{display:block!important;max-width:none!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.camp-hotspot[data-camp-building="Wood Workshop"]{width:191px!important}
.camp-hotspot[data-camp-building="Stone Yard"]{width:211px!important}
.camp-hotspot[data-camp-building="Metal Foundry"]{width:164px!important}
.camp-hotspot[data-camp-building="Campfire"]{width:185px!important}
.camp-hotspot[data-camp-building="Ranch"]{width:176px!important}
.camp-hotspot[data-camp-building="Dinosaur Pen"]{width:232px!important}
.camp-hotspot[data-camp-building="Storage Wagon"]{width:229px!important}
.camp-hotspot:hover{transform:translate(-50%,-50%) scale(1.035)!important;filter:brightness(1.08)!important}
.camp-hotspot:after{content:"";position:absolute;inset:-5px;border:1px solid transparent;border-radius:12px;pointer-events:none;transition:border-color .15s,box-shadow .15s}
.camp-hotspot:hover:after{border-color:rgba(238,194,99,.58);box-shadow:0 0 22px rgba(218,166,68,.15)}
.camp-hotspot-status{right:-5px!important;top:-5px!important}
.camp-hotspot-locked{opacity:.78!important}
.camp-hotspot-campfire-locked{opacity:.9!important}
.outpost-level-card{z-index:12!important}
@media(max-width:900px){.outpost-map{aspect-ratio:1210/705!important;min-height:0!important}.camp-hotspot[data-camp-building="Wood Workshop"]{width:150px!important}.camp-hotspot[data-camp-building="Stone Yard"]{width:170px!important}.camp-hotspot[data-camp-building="Metal Foundry"]{width:135px!important}.camp-hotspot[data-camp-building="Campfire"]{width:150px!important}.camp-hotspot[data-camp-building="Ranch"]{width:145px!important}.camp-hotspot[data-camp-building="Dinosaur Pen"]{width:175px!important}.camp-hotspot[data-camp-building="Storage Wagon"]{width:175px!important}.camp-hotspot-name{height:34px!important;font-size:10px!important;padding:6px 8px!important}.camp-hotspot-level{height:20px!important;font-size:8px!important;padding:3px 8px!important}}
@media(max-width:650px){.outpost-map{aspect-ratio:auto!important;height:620px!important;background-size:cover!important;background-position:center!important}.camp-hotspot[data-camp-building="Wood Workshop"],.camp-hotspot[data-camp-building="Stone Yard"],.camp-hotspot[data-camp-building="Metal Foundry"],.camp-hotspot[data-camp-building="Campfire"],.camp-hotspot[data-camp-building="Ranch"],.camp-hotspot[data-camp-building="Dinosaur Pen"],.camp-hotspot[data-camp-building="Storage Wagon"]{width:132px!important}.camp-hotspot-name{height:30px!important;font-size:9px!important}.camp-hotspot-level{height:18px!important;font-size:7px!important}.camp-hotspot-icon{width:18px!important;flex-basis:18px!important;font-size:13px!important}.outpost-level-card{left:12px!important;bottom:12px!important}}

/* =========================================================
   OUTPOST MAP — V5 CLEAN HOTSPOTS
   The artwork contains legacy plaques. Each live hotspot fully
   covers its matching plaque with an opaque surface so there is
   only one visible UI layer. Coordinates match the 1210x705 map.
   ========================================================= */
.outpost-map{
  aspect-ratio:1210/705!important;
  min-height:0!important;
  height:auto!important;
  background-image:url('../assets/camp-background-interactive.jpg?v=5.0.0')!important;
  background-size:100% 100%!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
}
.outpost-map-overlay{display:none!important}
.camp-hotspot{
  position:absolute!important;
  transform:none!important;
  padding:0!important;
  margin:0!important;
  border:1px solid rgba(224,182,94,.72)!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,rgba(22,20,15,1),rgba(15,14,11,1))!important;
  box-shadow:0 8px 18px rgba(0,0,0,.42)!important;
  overflow:hidden!important;
  z-index:20!important;
  display:block!important;
  color:#f4ead8!important;
  text-align:left!important;
}
.camp-hotspot-name,
.camp-hotspot-level{
  width:100%!important;
  box-sizing:border-box!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  border-radius:0!important;
  margin:0!important;
}
.camp-hotspot-name{
  height:39px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 12px!important;
  font-size:13px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.camp-hotspot-level{
  height:24px!important;
  display:block!important;
  padding:3px 12px 6px!important;
  color:#d7c49d!important;
  font-size:10px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.camp-hotspot-icon{width:23px!important;flex:0 0 23px!important;font-size:17px!important;line-height:1!important;text-align:center!important}
.camp-hotspot-name-text{display:block!important;min-width:0!important;max-width:none!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.camp-hotspot-status{right:5px!important;top:5px!important;z-index:4!important}
.camp-hotspot:hover{transform:none!important;filter:brightness(1.08)!important}
.camp-hotspot:after{content:none!important}
/* Exact plaque rectangles in the 1210x705 artwork, expanded 2px so the baked edge cannot peek through. */
.camp-hotspot[data-camp-building="Wood Workshop"]{left:43.22%!important;top:.85%!important;width:15.62%!important;height:9.05%!important}
.camp-hotspot[data-camp-building="Stone Yard"]{left:6.53%!important;top:19.15%!important;width:26.78%!important;height:10.50%!important}
.camp-hotspot[data-camp-building="Metal Foundry"]{left:70.83%!important;top:18.73%!important;width:16.20%!important;height:10.08%!important}
.camp-hotspot[data-camp-building="Campfire"]{left:45.78%!important;top:34.75%!important;width:15.10%!important;height:9.35%!important}
.camp-hotspot[data-camp-building="Ranch"]{left:12.81%!important;top:50.78%!important;width:15.95%!important;height:9.50%!important}
.camp-hotspot[data-camp-building="Dinosaur Pen"]{left:69.84%!important;top:56.45%!important;width:19.45%!important;height:10.10%!important}
.camp-hotspot[data-camp-building="Storage Wagon"]{left:40.95%!important;top:68.25%!important;width:19.20%!important;height:10.05%!important}
@media(max-width:900px){
 .outpost-map{aspect-ratio:1210/705!important;min-height:0!important;height:auto!important}
 .camp-hotspot-name{height:34px!important;font-size:10px!important;padding:6px 8px!important}
 .camp-hotspot-level{height:20px!important;font-size:8px!important;padding:3px 8px!important}
 .camp-hotspot-icon{width:19px!important;flex-basis:19px!important;font-size:14px!important}
}
@media(max-width:650px){
 .outpost-map{aspect-ratio:auto!important;height:620px!important;background-size:cover!important}
 .camp-hotspot-name{height:30px!important;font-size:9px!important}
 .camp-hotspot-level{height:18px!important;font-size:7px!important}
}

/* Visual V5.1 — detail panel stays perfectly fixed when hovered.
   The generic building-card hover rule must never move the modal. */
.camp-detail-card:hover,
.camp-detail-card.building-card:hover,
.camp-detail-card.is-open:hover{
  transform:translate(-50%,-50%)!important;
  border-color:rgba(214,162,74,.40)!important;
  box-shadow:0 28px 90px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.035)!important;
}
.camp-detail-card.is-open{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
}

/* V5.3 - unified camp hotspot sizing: keep labels consistent and prevent name clipping */
.camp-hotspot{
  width:220px !important;
  min-width:220px !important;
  max-width:220px !important;
  box-sizing:border-box !important;
}
.camp-hotspot-name{
  width:100% !important;
  min-height:36px !important;
  height:auto !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
  padding:7px 10px !important;
}
.camp-hotspot-icon{
  flex:0 0 23px !important;
  width:23px !important;
}
.camp-hotspot-name-text{
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  line-height:1.15 !important;
  text-align:left !important;
}
.camp-hotspot-level{
  width:100% !important;
  box-sizing:border-box !important;
  height:20px !important;
  padding:3px 10px !important;
}
@media(max-width:900px){
  .camp-hotspot{width:180px !important;min-width:180px !important;max-width:180px !important}
  .camp-hotspot-name{min-height:32px !important;font-size:10px !important;padding:6px 8px !important}
  .camp-hotspot-icon{flex-basis:19px !important;width:19px !important;font-size:14px !important}
  .camp-hotspot-level{height:19px !important;font-size:8px !important;padding:3px 8px !important}
}
@media(max-width:650px){
  .camp-hotspot{width:150px !important;min-width:150px !important;max-width:150px !important}
  .camp-hotspot-name{min-height:30px !important;font-size:9px !important}
  .camp-hotspot-icon{flex-basis:18px !important;width:18px !important;font-size:13px !important}
  .camp-hotspot-level{height:18px !important;font-size:7px !important}
}

/* V5.4 - fully cover the baked legacy plaques in the camp artwork.
   The interactive HTML hotspots are intentionally wide enough to hide the old plaques behind them. */
.camp-hotspot{
  width:250px !important;
  min-width:250px !important;
  max-width:250px !important;
}
.camp-hotspot-name{
  width:100% !important;
}
.camp-hotspot-name-text{
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
@media(max-width:900px){
  .camp-hotspot{width:205px !important;min-width:205px !important;max-width:205px !important}
}
@media(max-width:650px){
  .camp-hotspot{width:170px !important;min-width:170px !important;max-width:170px !important}
}

/* V6 - invisible building click zones: the artwork is the interface. */
.outpost-map{
  background-image:url('../assets/camp-background-clean-generated.jpg?v=6.0.0') !important;
}
.camp-hotspot{
  transform:translate(-50%,-50%) !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  width:17% !important;
  height:12% !important;
  min-width:0 !important;
  min-height:0 !important;
  padding:0 !important;
  color:transparent !important;
  opacity:0 !important;
  cursor:pointer !important;
  transition:none !important;
}
.camp-hotspot:hover,
.camp-hotspot:focus-visible,
.camp-hotspot:active{
  transform:translate(-50%,-50%) !important;
  filter:none !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:0 !important;
}
.camp-hotspot::after,
.camp-hotspot-name,
.camp-hotspot-level,
.camp-hotspot-status,
.camp-hotspot-icon,
.camp-hotspot-name-text{display:none !important;content:none !important}
.camp-hotspot-accessible-label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important}
.camp-hotspot[data-camp-building="Wood Workshop"]{left:51.03% !important;top:11% !important;width:25% !important;height:19% !important}
.camp-hotspot[data-camp-building="Stone Yard"]{left:18% !important;top:29% !important;width:27% !important;height:25% !important}
.camp-hotspot[data-camp-building="Metal Foundry"]{left:78% !important;top:30% !important;width:23% !important;height:25% !important}
.camp-hotspot[data-camp-building="Campfire"]{left:53% !important;top:49% !important;width:22% !important;height:22% !important}
.camp-hotspot[data-camp-building="Ranch"]{left:22% !important;top:64% !important;width:27% !important;height:24% !important}
.camp-hotspot[data-camp-building="Dinosaur Pen"]{left:80% !important;top:69% !important;width:29% !important;height:25% !important}
.camp-hotspot[data-camp-building="Storage Wagon"]{left:53% !important;top:78% !important;width:28% !important;height:21% !important}
@media(max-width:650px){
  .camp-hotspot[data-camp-building="Wood Workshop"]{width:30% !important;height:20% !important}
  .camp-hotspot[data-camp-building="Stone Yard"]{width:32% !important;height:27% !important}
  .camp-hotspot[data-camp-building="Metal Foundry"]{width:28% !important;height:27% !important}
  .camp-hotspot[data-camp-building="Campfire"]{width:27% !important;height:24% !important}
  .camp-hotspot[data-camp-building="Ranch"]{width:32% !important;height:26% !important}
  .camp-hotspot[data-camp-building="Dinosaur Pen"]{width:34% !important;height:28% !important}
  .camp-hotspot[data-camp-building="Storage Wagon"]{width:33% !important;height:24% !important}
}

/* =========================================================
   OUTPOST V7 — CLEAN INTERACTIVE MAP
   The map artwork contains no labels, plaques or UI.
   Buildings themselves are the clickable targets.
   ========================================================= */
.outpost-stage{display:block!important;width:100%!important;}
.outpost-map{position:relative!important;width:100%!important;aspect-ratio:16/9!important;min-height:0!important;height:auto!important;background:#394a35 url('../assets/outpost-map-v7.svg?v=7.0.0') center/cover no-repeat!important;border:1px solid rgba(216,180,100,.28)!important;border-radius:20px!important;overflow:hidden!important;box-shadow:0 24px 70px rgba(0,0,0,.46),inset 0 0 100px rgba(0,0,0,.20)!important;}
.outpost-map-overlay{display:none!important;}
.camp-hotspot{position:absolute!important;transform:translate(-50%,-50%)!important;width:190px!important;height:145px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;z-index:10!important;cursor:pointer!important;display:block!important;}
.camp-hotspot-hitbox{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.camp-hotspot-hitbox img{width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 12px 9px rgba(0,0,0,.34))!important;transition:filter .16s ease,transform .16s ease!important;}
.camp-hotspot:hover .camp-hotspot-hitbox img{filter:drop-shadow(0 14px 12px rgba(0,0,0,.40)) brightness(1.08)!important;transform:scale(1.035)!important;}
.camp-hotspot:focus-visible{outline:2px solid #e2b45f!important;outline-offset:5px!important;border-radius:18px!important;}
.camp-hotspot-accessible-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.camp-hotspot-name,.camp-hotspot-level,.camp-hotspot-icon,.camp-hotspot-status{display:none!important;}
.camp-hotspot-locked{opacity:.55!important;filter:grayscale(.45)!important;}
.camp-hotspot-campfire-locked{opacity:.75!important;}
.camp-hotspot-construction .camp-hotspot-hitbox img{filter:drop-shadow(0 0 18px rgba(214,162,74,.45)) drop-shadow(0 12px 9px rgba(0,0,0,.34))!important;}
@media(max-width:900px){.outpost-map{aspect-ratio:16/10!important}.camp-hotspot{width:155px!important;height:125px!important;}}
@media(max-width:650px){.outpost-map{aspect-ratio:auto!important;height:650px!important;background-size:cover!important}.camp-hotspot{width:135px!important;height:110px!important;}}

/* Outpost V8 — realistic camp artwork + invisible building hitboxes. */
.outpost-stage{display:block!important}
.outpost-map{
  position:relative!important;
  width:100%!important;
  aspect-ratio:1710 / 920!important;
  height:auto!important;
  min-height:0!important;
  background:#172019 url('../assets/camp-map-realistic-v8.png?v=8.0.0') center center / 100% 100% no-repeat!important;
  border:1px solid rgba(216,180,100,.28)!important;
  border-radius:20px!important;
  overflow:hidden!important;
  box-shadow:0 24px 70px rgba(0,0,0,.48), inset 0 0 120px rgba(0,0,0,.18)!important;
}
.outpost-map-overlay{display:none!important}
.outpost-side-panel{display:none!important}
.outpost-title-overlay{display:none!important}
.camp-hotspot{
  position:absolute!important;
  transform:translate(-50%,-50%)!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:50%!important;
  overflow:visible!important;
  z-index:10!important;
  width:20%!important;
  height:18%!important;
  color:transparent!important;
  font-size:0!important;
  cursor:pointer!important;
  transition:filter .18s ease, transform .18s ease!important;
}
.camp-hotspot-hitbox{display:block!important;position:absolute!important;inset:0!important}
.camp-hotspot-hitbox img,
.camp-hotspot-name,
.camp-hotspot-level,
.camp-hotspot-status{display:none!important}
.camp-hotspot-accessible-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.camp-hotspot::after{
  content:"";
  position:absolute;
  inset:4%;
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(235,193,94,.16) 0%,rgba(235,193,94,.06) 38%,transparent 72%);
  opacity:0;
  transition:opacity .18s ease, transform .18s ease;
  pointer-events:none;
}
.camp-hotspot:hover::after,
.camp-hotspot:focus-visible::after{opacity:1;transform:scale(1.03)}
.camp-hotspot:hover{transform:translate(-50%,-50%)!important;filter:brightness(1.04)!important}
.camp-hotspot:focus-visible{outline:2px solid rgba(232,190,93,.75)!important;outline-offset:4px!important}
/* Hitbox sizes follow the actual structures in the artwork. */
.camp-hotspot[data-camp-building="Wood Workshop"]{width:25%!important;height:22%!important}
.camp-hotspot[data-camp-building="Stone Yard"]{width:29%!important;height:23%!important}
.camp-hotspot[data-camp-building="Metal Foundry"]{width:24%!important;height:25%!important}
.camp-hotspot[data-camp-building="Campfire"]{width:17%!important;height:18%!important}
.camp-hotspot[data-camp-building="Ranch"]{width:27%!important;height:23%!important}
.camp-hotspot[data-camp-building="Dinosaur Pen"]{width:30%!important;height:24%!important}
.camp-hotspot[data-camp-building="Storage Wagon"]{width:25%!important;height:20%!important}
.outpost-level-card{z-index:12!important}
.construction-queue-purchase-slot{height:100%;box-sizing:border-box;background:linear-gradient(180deg,rgba(214,162,74,.08),rgba(214,162,74,.035));border-color:rgba(214,162,74,.25)}
.construction-queue-empty-slot{flex-direction:column;gap:4px;background:rgba(92,154,91,.045);border-color:rgba(92,154,91,.2)}
.construction-queue-empty-slot-icon{font-size:20px;line-height:1}
.construction-queue-empty-slot strong{display:block;color:#a9d5a8;font-size:12px}
.construction-queue-empty-slot span:last-child{font-size:11px}
@media(max-width:800px){
  .outpost-map{aspect-ratio:1710 / 920!important}
}
@media(max-width:560px){
  .outpost-map{aspect-ratio:1710 / 920!important;min-width:760px!important}
  .outpost-shell{overflow-x:auto!important}
}


/* Outpost V8.1 — permanent clickable-building guidance.
   The hitboxes stay invisible; a soft golden halo remains visible over each
   clickable structure so players can immediately understand what is interactive.
   No labels, boxes or layout movement are introduced. */
.outpost-map .camp-hotspot::after{
  content:"" !important;
  position:absolute !important;
  inset:8% !important;
  border:1px solid rgba(235,193,94,.34) !important;
  border-radius:42% !important;
  background:radial-gradient(ellipse at center,
    rgba(235,193,94,.14) 0%,
    rgba(235,193,94,.06) 34%,
    transparent 70%) !important;
  opacity:.78 !important;
  box-shadow:0 0 18px rgba(235,193,94,.14) !important;
  animation:campClickablePulse 2.8s ease-in-out infinite !important;
  pointer-events:none !important;
  transform:none !important;
}
.outpost-map .camp-hotspot:hover::after,
.outpost-map .camp-hotspot:focus-visible::after{
  opacity:1 !important;
  box-shadow:0 0 24px rgba(235,193,94,.26) !important;
  animation:none !important;
  transform:none !important;
}
.outpost-map .camp-hotspot:hover{
  transform:translate(-50%,-50%) !important;
  filter:brightness(1.06) !important;
}
.outpost-map .camp-hotspot:focus-visible{
  outline:2px solid rgba(232,190,93,.72) !important;
  outline-offset:4px !important;
}
.outpost-map .camp-hotspot-locked::after{
  opacity:.35 !important;
  border-color:rgba(210,210,195,.24) !important;
  box-shadow:none !important;
  animation:none !important;
}
.outpost-map .camp-hotspot-campfire-locked::after{
  opacity:.52 !important;
}
.outpost-map .camp-hotspot-construction::after{
  opacity:.96 !important;
  border-color:rgba(245,201,95,.55) !important;
  box-shadow:0 0 26px rgba(245,201,95,.28) !important;
}
@keyframes campClickablePulse{
  0%,100%{opacity:.62;box-shadow:0 0 16px rgba(235,193,94,.10)}
  50%{opacity:.88;box-shadow:0 0 23px rgba(235,193,94,.20)}
}
@media(prefers-reduced-motion:reduce){
  .outpost-map .camp-hotspot::after{animation:none !important;}
}


/* Outpost V8.2 — visible permanent building highlights.
   The clickable zones remain invisible to interaction, while a soft gold
   ring and glow make the buildings easy to discover at a glance. */
.outpost-map .camp-hotspot::after{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  inset:-5% !important;
  border:2px solid rgba(242,194,88,.64) !important;
  border-radius:46% / 40% !important;
  background:radial-gradient(ellipse at center,
    rgba(242,194,88,.13) 0%,
    rgba(242,194,88,.07) 34%,
    rgba(242,194,88,0) 72%) !important;
  box-shadow:
    0 0 0 1px rgba(242,194,88,.14),
    0 0 20px rgba(242,194,88,.22),
    inset 0 0 18px rgba(242,194,88,.08) !important;
  opacity:.92 !important;
  pointer-events:none !important;
  transform:none !important;
  animation:campClickablePulse82 2.8s ease-in-out infinite !important;
  transition:none !important;
  z-index:2 !important;
}
.outpost-map .camp-hotspot:hover::after,
.outpost-map .camp-hotspot:focus-visible::after{
  opacity:1 !important;
  border-color:rgba(249,208,105,.88) !important;
  box-shadow:
    0 0 0 1px rgba(242,194,88,.22),
    0 0 28px rgba(242,194,88,.34),
    inset 0 0 20px rgba(242,194,88,.10) !important;
  animation:none !important;
}
.outpost-map .camp-hotspot:hover{
  transform:translate(-50%,-50%) !important;
  filter:none !important;
}
.outpost-map .camp-hotspot-locked::after{
  opacity:.28 !important;
  border-color:rgba(190,190,180,.32) !important;
  box-shadow:0 0 0 1px rgba(190,190,180,.08) !important;
  animation:none !important;
}
.outpost-map .camp-hotspot-campfire-locked::after{
  opacity:.45 !important;
}
.outpost-map .camp-hotspot-construction::after{
  opacity:1 !important;
  border-color:rgba(255,213,102,.92) !important;
  box-shadow:
    0 0 0 1px rgba(255,213,102,.26),
    0 0 32px rgba(255,213,102,.42),
    inset 0 0 24px rgba(255,213,102,.12) !important;
}
@keyframes campClickablePulse82{
  0%,100%{opacity:.72;box-shadow:0 0 0 1px rgba(242,194,88,.10),0 0 16px rgba(242,194,88,.15),inset 0 0 14px rgba(242,194,88,.05)}
  50%{opacity:1;box-shadow:0 0 0 1px rgba(242,194,88,.18),0 0 25px rgba(242,194,88,.28),inset 0 0 22px rgba(242,194,88,.10)}
}
@media(prefers-reduced-motion:reduce){
  .outpost-map .camp-hotspot::after{animation:none !important;}
}


/* Outpost V8.3 — permanent highlight uses a real child element, not a pseudo-element.
   This makes the clickable locations visibly discoverable across browsers. */
.outpost-map .camp-hotspot{
  pointer-events:auto !important;
}
.outpost-map .camp-hotspot-highlight{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  width:78% !important;
  height:58% !important;
  transform:translate(-50%,-50%) !important;
  display:block !important;
  border:2px solid rgba(244,201,101,.78) !important;
  border-radius:46% / 42% !important;
  background:radial-gradient(ellipse at center, rgba(244,201,101,.16) 0%, rgba(244,201,101,.07) 42%, rgba(244,201,101,0) 74%) !important;
  box-shadow:0 0 0 1px rgba(244,201,101,.18), 0 0 18px rgba(244,201,101,.24), inset 0 0 18px rgba(244,201,101,.08) !important;
  opacity:.92 !important;
  pointer-events:none !important;
  z-index:1 !important;
  animation:campHighlight83 2.6s ease-in-out infinite !important;
}
.outpost-map .camp-hotspot:hover .camp-hotspot-highlight,
.outpost-map .camp-hotspot:focus-visible .camp-hotspot-highlight{
  opacity:1 !important;
  border-color:rgba(255,218,122,.96) !important;
  box-shadow:0 0 0 1px rgba(255,218,122,.24), 0 0 28px rgba(255,218,122,.34), inset 0 0 22px rgba(255,218,122,.10) !important;
  animation:none !important;
}
.outpost-map .camp-hotspot-locked .camp-hotspot-highlight{
  opacity:.28 !important;
  border-color:rgba(195,195,182,.34) !important;
  box-shadow:0 0 0 1px rgba(195,195,182,.08) !important;
  animation:none !important;
}
.outpost-map .camp-hotspot-campfire-locked .camp-hotspot-highlight{
  opacity:.48 !important;
}
.outpost-map .camp-hotspot-construction .camp-hotspot-highlight{
  opacity:1 !important;
  border-color:rgba(255,216,105,.98) !important;
  box-shadow:0 0 0 1px rgba(255,216,105,.28), 0 0 32px rgba(255,216,105,.44), inset 0 0 24px rgba(255,216,105,.13) !important;
}
@keyframes campHighlight83{
  0%,100%{opacity:.72;box-shadow:0 0 0 1px rgba(244,201,101,.10),0 0 14px rgba(244,201,101,.14),inset 0 0 12px rgba(244,201,101,.04)}
  50%{opacity:1;box-shadow:0 0 0 1px rgba(244,201,101,.20),0 0 24px rgba(244,201,101,.28),inset 0 0 20px rgba(244,201,101,.09)}
}
@media(prefers-reduced-motion:reduce){
  .outpost-map .camp-hotspot-highlight{animation:none !important;}
}


/* Outpost V8.4 — permanent click guidance is baked directly into the map artwork.
   HTML hotspots remain invisible hitboxes only; no CSS-generated glow/halo layers. */
.outpost-map{
  background-image:url('../assets/camp-map-realistic-v8-building-outline-precise.png?v=8.6.0') !important;
  background-size:100% 100% !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
.outpost-map .camp-hotspot::before,
.outpost-map .camp-hotspot::after,
.outpost-map .camp-hotspot-highlight{
  display:none !important;
  content:none !important;
  box-shadow:none !important;
  background:none !important;
  border:0 !important;
  animation:none !important;
}
.outpost-map .camp-hotspot,
.outpost-map .camp-hotspot:hover,
.outpost-map .camp-hotspot:focus-visible,
.outpost-map .camp-hotspot:active{
  transform:translate(-50%,-50%) !important;
  filter:none !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Outpost V8.5 — interaction guidance is baked into the map artwork; HTML hitboxes remain invisible. */
.outpost-map .camp-hotspot::before,.outpost-map .camp-hotspot::after,.outpost-map .camp-hotspot-highlight{display:none!important;content:none!important;background:none!important;border:0!important;box-shadow:none!important;animation:none!important}


/* Outpost V8.7 — building silhouettes are the visual interaction guide.
   The map artwork contains the permanent gold contours; HTML hotspots are click-only hitboxes. */
.outpost-map{
  background-image:url('../assets/camp-map-realistic-v8-building-contours3.png?v=8.7.0') !important;
  background-size:100% 100% !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
.outpost-map .camp-hotspot,
.outpost-map .camp-hotspot:hover,
.outpost-map .camp-hotspot:focus,
.outpost-map .camp-hotspot:focus-visible,
.outpost-map .camp-hotspot:active{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
  transform:translate(-50%,-50%) !important;
}
.outpost-map .camp-hotspot::before,
.outpost-map .camp-hotspot::after,
.outpost-map .camp-hotspot-highlight{
  display:none !important;
  content:none !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  animation:none !important;
}


/* Outpost V8.8 — definitive baked building outlines.
   The artwork is the sole visual guide; HTML hotspots remain click-only. */
.outpost-map{
  background-image:url('../assets/camp-map-realistic-v8-building-outlines-final.png?v=8.8.0') !important;
  background-size:100% 100% !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
.outpost-map .camp-hotspot::before,
.outpost-map .camp-hotspot::after,
.outpost-map .camp-hotspot-highlight{
  display:none !important;
  content:none !important;
}


/* Outpost V8.9 — final interactive artwork supplied as a clean game map.
   The artwork itself contains the gold-highlighted outlines of the buildings and fences.
   HTML hotspots remain invisible click targets only. */
.outpost-map{
  background-image:url('../assets/camp-map-realistic-v8-interactive.png?v=8.9.0') !important;
  background-size:100% 100% !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
.outpost-map .camp-hotspot,
.outpost-map .camp-hotspot:hover,
.outpost-map .camp-hotspot:focus,
.outpost-map .camp-hotspot:focus-visible,
.outpost-map .camp-hotspot:active{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
  transform:translate(-50%,-50%) !important;
}
.outpost-map .camp-hotspot::before,
.outpost-map .camp-hotspot::after,
.outpost-map .camp-hotspot-highlight,
.outpost-map .camp-hotspot-hitbox{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  animation:none !important;
}

/* Outpost V8.10 — clickable areas expanded to fully cover each permanently
   highlighted building/fenced zone in the approved map artwork. The hitboxes
   are invisible and use rectangular envelopes that match the gold-highlighted
   footprints, so every highlighted pixel is reachable by click. */
.outpost-map .camp-hotspot{
  transform:none !important;
  border-radius:0 !important;
  overflow:visible !important;
  width:auto !important;
  height:auto !important;
  left:auto !important;
  top:auto !important;
}
.outpost-map .camp-hotspot:hover,
.outpost-map .camp-hotspot:focus,
.outpost-map .camp-hotspot:focus-visible,
.outpost-map .camp-hotspot:active{
  transform:none !important;
  filter:none !important;
}
.outpost-map .camp-hotspot[data-camp-building="Wood Workshop"]{
  left:54.7% !important;
  top:7.5% !important;
  width:34.8% !important;
  height:22.8% !important;
}
.outpost-map .camp-hotspot[data-camp-building="Stone Yard"]{
  left:0.5% !important;
  top:15.0% !important;
  width:39.0% !important;
  height:33.5% !important;
}
.outpost-map .camp-hotspot[data-camp-building="Metal Foundry"]{
  left:70.0% !important;
  top:13.0% !important;
  width:29.6% !important;
  height:32.0% !important;
}
.outpost-map .camp-hotspot[data-camp-building="Campfire"]{
  left:40.0% !important;
  top:35.0% !important;
  width:25.5% !important;
  height:23.0% !important;
}
.outpost-map .camp-hotspot[data-camp-building="Ranch"]{
  left:8.5% !important;
  top:48.0% !important;
  width:37.0% !important;
  height:33.5% !important;
}
.outpost-map .camp-hotspot[data-camp-building="Dinosaur Pen"]{
  left:61.0% !important;
  top:48.5% !important;
  width:36.0% !important;
  height:34.0% !important;
}
.outpost-map .camp-hotspot[data-camp-building="Storage Wagon"]{
  left:40.0% !important;
  top:73.0% !important;
  width:32.0% !important;
  height:24.0% !important;
}
/* Keep the decorative map focus card above hitboxes. */
.outpost-level-card{z-index:30 !important;}

/* Outpost V8.11 — exact clickable SVG regions over the baked highlights. */
.outpost-map .camp-click-overlay{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:12!important;
  overflow:visible!important;
  pointer-events:none!important;
}
.outpost-map .camp-hit-path{
  fill:rgba(255,255,255,0)!important;
  stroke:rgba(255,255,255,0)!important;
  stroke-width:0!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  outline:none!important;
}
.outpost-map .camp-hit-path:focus-visible{
  stroke:rgba(232,190,93,.95)!important;
  stroke-width:4!important;
  vector-effect:non-scaling-stroke!important;
}
.outpost-map > .camp-hotspot{pointer-events:none!important;}
/* Keep the visual highlight entirely in the baked map artwork. */

/* HEADER FINAL — two-level navigation: identity/player on row 1, main menu on row 2. */
.topbar{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-areas:
    "brand player"
    "nav nav" !important;
  align-items:center !important;
  column-gap:18px !important;
  row-gap:10px !important;
  padding:14px max(20px,calc((100% - 1280px)/2)) 10px !important;
  flex-wrap:initial !important;
}
.topbar-brand-wrap{
  grid-area:brand !important;
  min-width:0 !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
}
.brand-logo-link{display:inline-flex;align-items:center;max-width:240px}
.brand-logo-image{display:block;max-width:220px;width:auto;height:56px;object-fit:contain}
.player-menu{
  grid-area:player !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:12px !important;
  min-width:0 !important;
  margin:0 !important;
  white-space:nowrap !important;
}
.game-nav{
  grid-area:nav !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  min-width:0 !important;
  width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  padding:2px 0 3px !important;
  scrollbar-width:thin;
}
.game-nav-link{
  flex:0 0 auto !important;
  padding:8px 10px !important;
  font-size:12px !important;
}

@media (max-width: 1100px){
  .topbar{grid-template-columns:minmax(0,1fr) auto !important;grid-template-areas:"brand player" "nav nav" !important;}
  .game-nav{justify-content:flex-start !important;}
}
@media (max-width: 650px){
  .topbar{padding:12px 15px 9px !important;row-gap:8px !important;}
  .brand-logo-image{height:48px;max-width:190px;}
  .player-menu{gap:8px !important;font-size:12px !important;}
  .game-nav{gap:3px !important;}
  .game-nav-link{padding:7px 8px !important;font-size:11px !important;}
}
@media (max-width: 520px){
  .topbar{grid-template-columns:1fr auto !important;grid-template-areas:"brand player" "nav nav" !important;}
  .brand-logo-image{height:44px;max-width:170px;}
  .player-menu .language-switcher label{display:none !important;}
}

/* Expedition 6.0 - dinosaur selector, exploration stat and risk preview */
.expedition-zone-facts{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:10px auto 2px;color:var(--muted);font-size:11px}.expedition-zone-facts span{display:inline-flex;align-items:center;gap:5px}.expedition-zone-facts b{color:var(--text)}
.expedition-dino-section{margin:16px 0 12px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}.expedition-subhead{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:10px}.expedition-subhead h4{margin:0;font:700 18px Georgia,serif;color:var(--text)}.expedition-subhead span{font-size:10px;color:var(--muted);text-align:right}
.expedition-dino-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.expedition-dino-card{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:9px;text-align:left;padding:8px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:linear-gradient(180deg,rgba(36,29,22,.9),rgba(23,18,14,.92));color:inherit;cursor:pointer;min-width:0;transition:border-color .16s ease,background .16s ease,transform .16s ease}.expedition-dino-card:hover:not(:disabled){border-color:rgba(214,162,74,.38);transform:translateY(-1px)}.expedition-dino-card.selected{border-color:rgba(214,162,74,.8);background:linear-gradient(180deg,rgba(74,54,30,.92),rgba(35,25,17,.94));box-shadow:inset 0 0 0 1px rgba(214,162,74,.12)}.expedition-dino-card:disabled{cursor:default;opacity:.7}.expedition-dino-portrait{width:52px;height:52px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.035);overflow:hidden}.expedition-dino-portrait img{width:100%;height:100%;object-fit:contain}.expedition-dino-main{min-width:0}.expedition-dino-main strong,.expedition-dino-main small,.expedition-dino-main b{display:block}.expedition-dino-main strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.expedition-dino-main small{margin-top:2px;font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.expedition-dino-main b{margin-top:4px;color:var(--accent);font-size:10px}
.expedition-selection-summary{margin:8px 0 12px;min-height:44px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(0,0,0,.12)}.expedition-selection-placeholder{text-align:center;color:var(--muted);font-size:11px}.expedition-selection-details{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;font-size:11px}.expedition-selection-details>span{color:var(--muted)}.expedition-selection-details b{color:var(--text)}.expedition-selection-details>strong{color:var(--accent);font-size:12px}.expedition-selection-details[hidden],.expedition-selection-placeholder[hidden]{display:none}
.history-found-dino{grid-column:1 / -1;color:var(--muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1000px){.expedition-dino-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.expedition-dino-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.expedition-subhead{align-items:flex-start;flex-direction:column}.expedition-subhead span{text-align:left}.expedition-selection-details{gap:9px}}@media(max-width:520px){.expedition-dino-picker{grid-template-columns:1fr}.expedition-zone-facts{gap:10px}.expedition-selection-details{justify-content:flex-start}}

/* Expedition stat layout */
.bestiary-grid .dino-stats{grid-template-columns:repeat(6,minmax(0,1fr)) !important}
@media(max-width:650px){.bestiary-grid .dino-stats{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}

.friends-sent-card{grid-column:1/-1}
.friends-sent-card .friend-row{background:rgba(255,255,255,.015)}

.friend-inline-form{display:inline-flex;margin:0}.friend-inline-form .btn{margin:0}

.friends-flash{margin:0 0 16px;padding:12px 16px;border:1px solid #6b5427;border-radius:12px;background:#211b13;color:#f2d79b;font-weight:700}.friends-flash-error{border-color:#7a3a37;color:#f0b7b2}.friends-flash-info{border-color:#4f5f76;color:#c3d1ea}


/* V8.16 - show required upgrade time in building details */
.building-upgrade-time{margin-top:12px;padding:10px 11px;border:1px solid rgba(214,162,74,.22);border-radius:9px;background:rgba(214,162,74,.05);display:flex;align-items:center;gap:10px;color:var(--text)}
.building-upgrade-time-icon{font-size:18px;line-height:1}
.building-upgrade-time span:last-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex:1;min-width:0}
.building-upgrade-time strong{font-size:11px;color:var(--muted);font-weight:800}
.building-upgrade-time em{font-size:12px;color:var(--accent);font-style:normal;font-weight:900;white-space:nowrap}
@media(max-width:520px){.building-upgrade-time span:last-child{gap:8px;flex-wrap:wrap}.building-upgrade-time em{margin-left:auto}}
/* Weekly missions V1 */
.objectives-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .objectives-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.weekly-missions-widget { width: 100%; }

/* Leaderboard clans */
.leaderboard-clan-row .leaderboard-player small{display:block;margin-top:4px;color:#a99f8c;font-weight:500}
.leaderboard-clan-row .clan-tag{font-size:.82em;color:#d6a644;font-weight:700}

/* Clan profile */
.clan-profile-heading .clan-tag{font-size:.65em;vertical-align:middle}.clan-profile-grid{margin-bottom:14px}.clan-profile-stats{grid-template-columns:repeat(4,1fr)}.clan-profile-progress{margin-top:14px}.clan-profile-progress .profile-member{display:flex;justify-content:space-between;gap:10px}.clan-profile-progress small{display:block;color:#9d8d75;margin-top:5px}.clan-profile-description{color:#d2c2a7;line-height:1.55;margin:0;white-space:normal}.clan-profile-members{display:flex;flex-direction:column}.clan-profile-member{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid rgba(140,110,68,.22)}.clan-profile-member:first-child{border-top:0}.clan-profile-member .friend-main{flex:1;min-width:0}.clan-profile-member .friend-main a{color:#f2e6d3;text-decoration:none}.clan-profile-member .friend-main a:hover{color:#e3bd68}.clan-profile-member .friend-main small{display:block;color:#9d8d75;margin-top:3px}.presence-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:#6f665a}.presence-dot.online{background:#65b96d;box-shadow:0 0 8px rgba(101,185,109,.35)}.clan-profile-page .profile-back{margin-top:14px}.leaderboard-clan-row .leaderboard-player-link{color:inherit;text-decoration:none}.leaderboard-clan-row .leaderboard-player-link:hover{text-decoration:underline}.construction-queue-purchase-slot{height:100%;box-sizing:border-box;background:linear-gradient(180deg,rgba(214,162,74,.08),rgba(214,162,74,.035));border-color:rgba(214,162,74,.25)}
.construction-queue-empty-slot{flex-direction:column;gap:4px;background:rgba(92,154,91,.045);border-color:rgba(92,154,91,.2)}
.construction-queue-empty-slot-icon{font-size:20px;line-height:1}
.construction-queue-empty-slot strong{display:block;color:#a9d5a8;font-size:12px}
.construction-queue-empty-slot span:last-child{font-size:11px}
@media(max-width:800px){.clan-profile-stats{grid-template-columns:repeat(2,1fr)}.clan-profile-member{align-items:flex-start}.clan-profile-member .clan-role{display:none}}

/* Profile enhancements */
.profile-heading-xp{width:190px;margin-top:6px}.profile-heading-xp>span{display:block;text-align:right;font-size:11px;color:#bfae99;margin-bottom:5px}.profile-xp-track{height:7px;border-radius:99px;background:#211913;border:1px solid rgba(198,156,82,.22);overflow:hidden}.profile-xp-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#8f5d2d,#e2b45f)}.profile-clan-link{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid rgba(198,156,82,.25);border-radius:12px;background:rgba(255,255,255,.025);text-decoration:none}.profile-clan-link strong{color:#f2d39b}.profile-clan-link strong span{color:#bfae99;font-weight:400}.profile-clan-link small{font-size:11px;color:#bfae99}.profile-clan-link:hover{border-color:rgba(226,180,95,.55);background:rgba(255,255,255,.04)}
@media(max-width:600px){.profile-heading-xp{width:150px}}

.profile-clan-inline{margin-top:14px;padding-top:12px;border-top:1px solid rgba(140,110,68,.22)}.profile-clan-inline-head{font-size:13px;font-weight:700;color:#d8c49e;margin-bottom:8px}.profile-clan-empty{font-size:12px;color:#a99a89;padding:10px 0 2px}.profile-clan-inline .profile-clan-link{padding:10px 12px}

/* Monetization / Frontier Credits */
.shop-intro{display:flex;align-items:center;gap:18px;margin-bottom:18px}.shop-intro-icon,.shop-product-badge{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;font-size:28px;background:rgba(255,193,7,.12);border:1px solid rgba(255,193,7,.24);flex:0 0 auto}.shop-intro h3{margin:0 0 5px}.shop-intro p{margin:0;opacity:.78}.shop-grid{display:grid;gap:14px}.shop-product{display:flex;align-items:center;gap:16px}.shop-product-main{flex:1;min-width:0}.shop-product-main h3{margin:0 0 5px}.shop-product-main p{margin:0 0 8px;opacity:.75}.shop-credit-amount{display:block}.shop-product-main small{display:block;margin-top:3px;opacity:.65}.shop-product-buy{min-width:150px;text-align:right;display:grid;gap:8px;justify-items:end}.shop-product-buy strong{font-size:1.15rem}.shop-product-buy button[disabled]{opacity:.65;cursor:not-allowed}.shop-rules{margin-top:18px}.shop-rules h3{margin-top:0}.shop-rules p{margin-bottom:0;opacity:.78}@media(max-width:700px){.shop-product{align-items:flex-start}.shop-product-buy{min-width:105px}.shop-product-buy strong{font-size:1rem}.shop-intro{align-items:flex-start}}

.shop-services{margin-top:18px}.shop-services h3{margin-top:0}.shop-services p{opacity:.78}.shop-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-service{display:flex;justify-content:space-between;align-items:center;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}.shop-service span{font-weight:700}@media(max-width:700px){.shop-service-grid{grid-template-columns:1fr}}

/* Clan premium XP contributions */
.clan-credit-donate{margin-top:12px;padding:9px 11px;border:1px solid rgba(212,175,55,.22);border-radius:10px;background:rgba(212,175,55,.035);display:flex;align-items:center;justify-content:space-between;gap:12px}
.clan-credit-donate>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.clan-credit-donate strong{font-size:.86rem;line-height:1.2}
.clan-credit-donate small{opacity:.68;font-size:.74rem;line-height:1.2}
.clan-credit-donate-grid{display:flex;gap:6px;flex-wrap:nowrap;justify-content:flex-end}
.clan-credit-donate-btn{white-space:nowrap;padding:7px 10px;font-size:.78rem;min-height:34px}
.clan-credit-donate-btn:disabled{opacity:.45;cursor:not-allowed}
@media (max-width:900px){.clan-credit-donate{flex-direction:column;align-items:stretch}.clan-credit-donate-grid{justify-content:flex-start;flex-wrap:wrap}.clan-credit-donate-btn{flex:0 0 auto}}
@media (max-width:520px){.clan-credit-donate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.clan-credit-donate-btn{width:100%;padding:7px 6px;font-size:.74rem}}

/* Construction queue */
.construction-queue-panel{width:min(1120px,calc(100% - 28px));margin:18px auto 0;padding:16px 18px;background:linear-gradient(180deg,rgba(42,32,24,.96),rgba(23,18,15,.96));border:1px solid rgba(214,162,74,.28);border-radius:16px;box-shadow:0 12px 35px rgba(0,0,0,.22)}
.construction-queue-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.construction-queue-header .eyebrow{margin:0 0 3px;color:#b58b51;font-size:9px;font-weight:800;letter-spacing:.12em}.construction-queue-header h2{margin:0;color:#f0d8ac;font-size:18px}.construction-queue-header>div:first-child>span{display:block;margin-top:3px;color:#a9957f;font-size:11px}.construction-queue-balance{font-weight:900;color:#f0d8ac;font-size:14px;white-space:nowrap}
.construction-queue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:13px}.construction-queue-item{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid rgba(214,162,74,.20);border-radius:11px;background:rgba(255,255,255,.025)}.construction-queue-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:rgba(214,162,74,.10);font-size:16px}.construction-queue-main{min-width:0}.construction-queue-main strong{display:block;color:#ead5b2;font-size:12px}.construction-queue-main span{display:block;color:#9f8c76;font-size:10px;margin-top:2px}.construction-queue-time{font-size:13px;font-weight:900;color:#f0d8ac;min-width:58px;text-align:right}.construction-queue-bar{height:4px;margin-top:7px;background:rgba(255,255,255,.07);border-radius:99px;overflow:hidden}.construction-queue-bar i{display:block;width:0;height:100%;background:#d6a24a;border-radius:inherit}
.construction-queue-empty{padding:12px;border:1px dashed rgba(214,162,74,.20);border-radius:10px;color:#9f8c76;font-size:11px;text-align:center}.construction-queue-premium{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:11px 12px;border-radius:11px;background:rgba(214,162,74,.055);border:1px solid rgba(214,162,74,.18)}.construction-queue-premium>div{min-width:0}.construction-queue-premium strong{display:block;color:#ead5b2;font-size:11px}.construction-queue-premium span{display:block;color:#9f8c76;font-size:10px;margin-top:3px}.construction-queue-premium .btn{white-space:nowrap}.construction-queue-premium.active{background:rgba(92,154,91,.06);border-color:rgba(92,154,91,.25)}.construction-queue-premium.active .construction-queue-active-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:999px;background:rgba(92,154,91,.12);color:#a9d5a8;font-weight:800;white-space:nowrap}
@media(max-width:700px){.construction-queue-list{grid-template-columns:1fr}.construction-queue-panel{width:calc(100% - 18px);padding:13px}.construction-queue-premium{align-items:flex-start;flex-direction:column}.construction-queue-premium .btn{width:100%}}

/* V0.8.18 - two construction slots side by side + spacing before camp */
.construction-queue-panel{margin-bottom:22px!important}
.construction-queue-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.construction-queue-item,.construction-queue-empty,.construction-queue-purchase-slot{min-height:88px;box-sizing:border-box}
.construction-queue-empty{display:flex;align-items:center;justify-content:center}
.construction-queue-premium{margin-top:0;min-height:88px;box-sizing:border-box}
.construction-queue-purchase-slot{height:100%;margin:0;background:linear-gradient(180deg,rgba(214,162,74,.08),rgba(214,162,74,.035));border-color:rgba(214,162,74,.25)}
.construction-queue-empty-slot{flex-direction:column;gap:3px;background:rgba(92,154,91,.045);border-color:rgba(92,154,91,.2)}
.construction-queue-empty-slot-icon{font-size:18px;line-height:1}
.construction-queue-empty-slot strong{display:block;color:#a9d5a8;font-size:11px}
.construction-queue-empty-slot span:last-child{font-size:10px}
@media(max-width:700px){.construction-queue-list{grid-template-columns:1fr}}

/* Construction cancellation */
.construction-queue-actions{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:92px}
.construction-cancel-btn{border-color:rgba(214,162,74,.28);background:rgba(255,255,255,.025);color:#c8b8a3;white-space:nowrap}
.construction-cancel-btn:hover{border-color:rgba(214,162,74,.5);color:#f0d8ac}
.building-construction-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:10px;align-items:center}
.building-construction-actions .building-finish-btn{margin-top:0}
.building-construction-actions .construction-cancel-btn{min-height:36px}
@media(max-width:520px){
  .construction-queue-actions{min-width:0;align-items:stretch}
  .construction-queue-actions .construction-queue-time{text-align:center}
  .building-construction-actions{grid-template-columns:1fr}
}

/* Unified action confirmation modal — matches the resource shortage modal */
.fow-confirm-backdrop{z-index:1600}
.fow-confirm-modal{width:min(480px,100%)}
.fow-confirm-modal>p{white-space:pre-line}
.fow-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}
.fow-confirm-actions .btn{min-width:92px}
.fow-confirm-actions .fow-modal-cancel{background:rgba(255,255,255,.045);border-color:var(--line);color:var(--muted)}
.fow-confirm-actions .fow-confirm-ok{background:var(--accent);color:#1d160e;border-color:#e4b65b}
@media(max-width:520px){.fow-confirm-actions{flex-direction:column-reverse}.fow-confirm-actions .btn{width:100%}}
