/* Drill Baron — worlds (destination picker, atlas) and daily missions */

/* destination worlds: same card language as the mining sites */
.worlds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.world { text-align: left; display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); position: relative; min-width: 0;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .38); }
.world .w-ic { width: 72px; height: 72px; margin: 0 auto 2px; }
.world .wn { font: 800 17px/1.1 var(--display); letter-spacing: .3px; }
.world .wm { font-size: 11px; color: #b9c8ff; line-height: 1.25; }
.world .sb { font-size: 11px; color: var(--dim); }
.world.sel { border-color: var(--gold); background: linear-gradient(180deg, rgba(255, 196, 61, .2), #181d30); box-shadow: 0 3px 0 rgba(0, 0, 0, .38), 0 0 20px rgba(255, 196, 61, .24); }
.world.sel::after { content: '✓'; position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--ui); background: var(--gold); color: #2a1800; }
.world.locked { opacity: .55; }
.world.locked .w-ic { filter: grayscale(1) brightness(.6); }
#drawer .world { background: rgba(14, 18, 34, .62); border-color: rgba(160, 180, 240, .22); }

/* atlas (Collection › Worlds) */
.wsec .wbody { padding: 0 10px 6px; }
.wsec .wbody .mods { margin-bottom: 4px; }
.wsec.locked .mus-h .ic { filter: grayscale(1) brightness(.6); }
.wsec .here { font: 700 10px var(--ui); font-style: normal; color: #2a1800; background: var(--gold); border-radius: 999px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; letter-spacing: 0; text-transform: none; }

/* missions button: glows when a reward is waiting */
.icon-btn.mis-btn { position: relative; }
.icon-btn.mis-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font: 800 11px/18px var(--ui); color: #fff; }
.icon-btn.mis-btn.ready { border-color: rgba(255, 207, 110, .9); box-shadow: 0 4px 0 #070910, 0 0 16px rgba(255, 196, 61, .55), inset 0 1px 0 rgba(255, 255, 255, .22); color: #ffd45e; }

/* missions window */
.mis-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; text-align: left; }
.mis { border: 1px solid var(--line2); border-radius: 14px; padding: 9px 10px; background: rgba(255, 255, 255, .03); }
.mis.done { border-color: rgba(255, 196, 61, .7); background: linear-gradient(180deg, rgba(255, 196, 61, .14), rgba(255, 255, 255, .02)); }
.mis.got { opacity: .6; }
.mi-t { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tier { font: 800 10px var(--ui); text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 999px; }
.tier.t0 { background: rgba(89, 224, 143, .18); color: #8cf0b4; }
.tier.t1 { background: rgba(63, 169, 255, .18); color: #9fd2ff; }
.tier.t2 { background: rgba(180, 140, 255, .2); color: #d3b8ff; }
.mi-bar { position: relative; height: 16px; border-radius: 999px; background: rgba(0, 0, 0, .4); margin: 7px 0; overflow: hidden; }
.mi-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #f29a16, #ffd45e); border-radius: 999px; }
.mi-bar span { position: relative; display: block; text-align: center; font: 800 11px/16px var(--ui); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.mi-r { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mi-rw { font-weight: 700; color: #ffe27a; display: inline-flex; align-items: center; gap: 3px; }
.mi-rw .ci { width: 16px; height: 16px; }
.mi-ok { color: var(--ok); font-weight: 800; font-size: 13px; }
.btn.small { padding: 7px 12px; font-size: 15px; border-radius: 12px; }
.btn:disabled { opacity: .45; filter: grayscale(.6); cursor: default; }
.mis-bonus { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 14px; border: 1px dashed rgba(127, 208, 255, .5); text-align: left; font-weight: 700; font-size: 13px; }
.mis-bonus span { display: inline-flex; align-items: center; gap: 6px; }
.mis-bonus.got { opacity: .6; }

/* planet in the depth card's site chip */
.site-chip .chip-ic, .note .chip-ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }

/* world event chip and its line in the atlas */
.chip.wev { color: #ffd9a8; border-color: rgba(255, 170, 90, .65); }
.wev-d { color: #ffd9a8; }

/* a world just unlocked and never explored */
.world.fresh:not(.sel) { border-color: rgba(180, 140, 255, .8); box-shadow: 0 3px 0 rgba(0, 0, 0, .38), 0 0 18px rgba(180, 140, 255, .3); }
.w-new { position: absolute; top: 6px; left: 8px; font: 800 10px var(--ui); text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 999px; background: var(--violet); color: #1a0f2e; }

/* what's new window */
.news { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; text-align: left; }
.news-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); }
.news-i .ic { width: 44px; height: 44px; flex: 0 0 44px; }
.news-i p { margin: 0; font-size: 13px; line-height: 1.3; }

/* the worlds waiting behind the first expedition */
.w-teaser { display: flex; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.w-teaser .w-t { width: 40px; height: 40px; filter: grayscale(.85) brightness(.75); }
.w-teaser .w-t:first-child { filter: none; }

/* a world for sale */
.world.buyable { border-color: rgba(95, 240, 220, .55); }
.world .wbuy { margin-top: 4px; width: 100%; min-height: 0; padding: 8px 10px; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 5px; white-space: nowrap; font: 900 16px/1 var(--display); }
.world .wbuy .ci { width: 16px; height: 16px; }

/* drill types: the track of the 7 and their icons, each centred in its square */
.rig-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0; }
.rig-track .rt { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 4px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); filter: grayscale(1) brightness(.5); }
.rig-track .rt > .ic, .rig-track .rt > .rig-bits { width: 100%; height: 100%; }
.rig-track .rt span { position: absolute; top: 2px; left: 4px; font: 800 9px/1 var(--ui); color: var(--dim); }
.rig-track .rt.got { filter: none; border-color: rgba(89, 224, 143, .55); background: rgba(89, 224, 143, .12); }
.rig-track .rt.cur { filter: none; border-color: var(--gold); background: rgba(255, 196, 61, .16); box-shadow: 0 0 12px rgba(255, 196, 61, .4); }
.rig-track .rt.next { filter: grayscale(.3) brightness(.85); border-style: dashed; border-color: rgba(255, 196, 61, .7); }
/* 1, 2 or 3 drill bits side by side, overlapping a little, always centred */
.rig-bits { display: flex; align-items: center; justify-content: center; }
.rig-bits .ic { height: 100%; width: 100%; object-fit: contain; }
.rig-bits.n2 .ic { width: 62%; margin: 0 -9%; }
.rig-bits.n3 .ic { width: 48%; margin: 0 -8%; }
.rigcard .drill-head .ic.xl, .rigcard .drill-head .rig-bits.xl { width: 74px; height: 74px; flex: none; }

/* three round buttons now (sound, missions, settings): the row takes the room it needs instead of squeezing them */
@media (min-aspect-ratio: 1/1) {
  .sbtns { width: auto; gap: 6px; justify-content: flex-end; }
}
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .sbtns { right: 6px; gap: 4px; }
  .sbtns .icon-btn { width: 32px; height: 32px; }
  .sbtns .icon-btn svg { width: 18px; height: 18px; }
}

/* laboratory branches: the full name on two lines rather than « Découver… » */
.branches button span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.05; font-size: 9.5px; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; text-align: center; }

/* rewarded ad on the unknown machine */
.buy.adbuy { background: linear-gradient(180deg, #7fd0ff, #2c8de6 55%, #1769c0); border-color: #bfe6ff; color: #fff; box-shadow: 0 3px 0 #0f4a8c; }
.buy.adbuy .q { font-size: 10px; opacity: .9; }
.rigcard .btn.ad { margin-top: 8px; }
