* { box-sizing: border-box; }
:root {
  --cyan: #00ffff; --teal: #009999; --tile: #00868b;
  --bg: #031b1d; --panel: #052326; --panel2: #0a3438; --panel3: #0e4a50; --line: #11585e; --line2: #1a7a80;
  --text: #d8f4f4; --dim: #7fb9bd; --gold: #ffd23e; --good: #3ddc68; --bad: #ff6a5c;
}
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font-family: "Trebuchet MS", "Segoe UI", Arial, Helvetica, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
#stage { --sw: 200px; --fs: 12px; position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; background: #000; }
#stage.wide { --fs: 17px; }
.screen { position: absolute; inset: 0; }
.wrap { position: absolute; left: 50%; top: 0; width: 1280px; height: 720px; margin-left: -640px; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; color: inherit; }
svg { fill: currentColor; display: block; }

.btn { display: block; width: 100%; height: 52px; padding: 0 24px; background: var(--panel2); border: 2px solid var(--line2); border-radius: 10px; color: #e8ffff; font-size: 20px; font-weight: bold; }
.btn:hover { background: var(--panel3); border-color: var(--cyan); }
.btn.primary { background: #00c2c8; border-color: var(--cyan); color: #00191b; }
.btn.primary:hover { background: var(--cyan); }
.price { color: var(--gold); font-weight: bold; white-space: nowrap; }
.price::before, .coin { content: ''; display: inline-block; width: .78em; height: .78em; margin-right: .3em; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 .14em #b98a00; vertical-align: -.04em; }
.star { font-style: normal; color: rgba(0, 0, 0, .35); }
.star.on { color: var(--gold); }

.modal { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; background: rgba(0, 12, 14, .74); }
.modal .card { position: relative; min-width: 420px; padding: 26px 30px 30px; background: var(--panel); border: 2px solid #00c2c8; border-radius: 16px; color: var(--text); display: flex; flex-direction: column; gap: 12px; text-align: center; box-shadow: 0 12px 0 rgba(0, 0, 0, .35); }
.modal h2 { margin: 0 0 6px; font-size: 38px; color: #fff; }

/* ------------------------------------------------ menu */
#menu { background-color: var(--teal);
  background-image: linear-gradient(#009292 3px, transparent 3px), linear-gradient(90deg, #009292 3px, transparent 3px); background-size: 72px 72px; }
#title { position: absolute; left: 38px; top: 10px; margin: 0; font-size: 96px; line-height: 108px; font-weight: bold; color: var(--cyan); font-family: Arial, Helvetica, sans-serif;
  text-shadow: 2px 2px 0 #00dede, 4px 4px 0 #00cfcf, 6px 6px 0 #00c0c0, 8px 8px 0 #00b0b0; }
#menuButtons { position: absolute; left: 40px; top: 256px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mbtn { background: none; border: none; padding: 0; font-size: 40px; font-weight: bold; color: #001f20; line-height: 58px; text-align: left; transition: transform .1s; }
.mbtn small { display: block; margin: -8px 0 6px; font-size: 16px; line-height: 18px; color: #004b4d; }
#bContinue { color: #fff; }
.mbtn:hover, .mbtn.on { color: var(--cyan); transform: translateX(8px); }
#version { position: absolute; right: 10px; bottom: 6px; font-size: 18px; color: #006a6a; }
#starTotal { position: absolute; left: 40px; bottom: 26px; font-size: 26px; font-weight: bold; color: #003c3c; }
#starTotal .star { margin-right: 8px; }

#mapList { position: absolute; left: 330px; top: 250px; width: 916px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 14px; }
.mapCard { background: var(--panel); border: 3px solid var(--panel); border-radius: 10px; overflow: hidden; cursor: pointer; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); transition: transform .1s; }
.mapCard:hover { border-color: var(--cyan); transform: translateY(-3px); }
.mapCard canvas { display: block; width: 100%; height: auto; }
.mapCard .cap { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 10px; color: #fff; font-size: 18px; font-weight: bold; }
.mapCard .star { font-size: 16px; color: #1b5257; }
.mapCard .star.on { color: var(--gold); }

#mapDetail .card { flex-direction: row; gap: 26px; text-align: left; padding: 26px; }
#mapDetail canvas { width: 448px; height: 288px; display: block; border-radius: 8px; }
#mapDetail .right { width: 340px; display: flex; flex-direction: column; gap: 10px; }
#mapDetail h2 { margin: 0; }
#mapDetail .sub { font-size: 16px; color: var(--dim); margin-bottom: 4px; }
.diffBtn { display: block; width: 100%; padding: 9px 14px; text-align: left; background: var(--panel2); border: 2px solid var(--line2); border-radius: 10px; color: #fff; }
.diffBtn:hover { background: var(--panel3); border-color: var(--cyan); }
.diffBtn .dn { font-size: 24px; font-weight: bold; }
.diffBtn .star { float: right; font-size: 28px; line-height: 30px; color: #1b5257; }
.diffBtn .star.on { color: var(--gold); }
.diffBtn .dd { display: block; font-size: 14px; color: var(--dim); margin-top: 2px; }
.xbtn { position: absolute; right: -18px; top: -18px; width: 44px; height: 44px; padding: 11px; background: var(--panel); border: 2px solid #00c2c8; border-radius: 50%; color: var(--cyan); }
.xbtn:hover { background: var(--panel3); }

#help { position: absolute; left: 330px; top: 250px; width: 916px; padding: 18px 26px; background: var(--panel); border-radius: 12px; color: var(--text); font-size: 17px; line-height: 23px; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
#help h2 { margin: 0 0 8px; font-size: 28px; color: #fff; }
#help p { margin: 0 0 9px; }
#help b { color: var(--cyan); }

/* ------------------------------------------------ game */
#game { background: #000; }
#cv { position: absolute; left: 0; top: 0; width: 1080px; height: 720px; }
#mapLabel { position: absolute; left: 66px; top: 0; height: 36px; line-height: 36px; color: #4f8f93; font-size: 15px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; pointer-events: none; }

#side { position: absolute; left: 1080px; top: 0; width: var(--sw); height: 720px; display: flex; flex-direction: column; background: var(--panel); border-left: 2px solid var(--line); color: var(--text); font-size: var(--fs); line-height: 1.3; }
#stats { display: flex; justify-content: space-between; align-items: center; height: 4.6em; padding: 0 .8em; flex: none; }
#money { font-size: 2.1em; font-weight: bold; color: var(--gold); white-space: nowrap; }
#waveTxt { text-align: right; font-size: 1.35em; font-weight: bold; color: #fff; line-height: 1.1; white-space: nowrap; }
#waveTxt small { display: block; font-size: .62em; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

#mid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35em; padding: 0 .5em; flex: none; }
#stage.wide #shop { grid-template-columns: repeat(5, 1fr); }
.shopBtn { position: relative; height: 6.2em; background: var(--panel2); border: 2px solid var(--line); border-radius: .55em; cursor: pointer; }
.shopBtn canvas { display: block; height: 4.3em; width: auto; margin: .15em auto 0; }
.shopBtn .key { position: absolute; left: .4em; top: .15em; font-size: .85em; font-weight: bold; color: var(--dim); }
#stage.wide .shopBtn .key { display: none; }
.shopBtn .pr { display: block; text-align: center; font-size: 1.05em; line-height: 1.2; font-weight: bold; color: var(--gold); }
.shopBtn.no canvas { opacity: .35; }
.shopBtn.no .pr { color: var(--bad); }
.shopBtn:hover { border-color: var(--line2); background: var(--panel3); }
.shopBtn.on { border-color: var(--cyan); background: var(--panel3); }

#info { flex: 1; min-height: 0; margin: .5em; padding: .6em .7em; background: #07292c; border-radius: .55em; overflow: hidden; display: flex; flex-direction: column; }
#info h3, #sel h3 { margin: 0 0 .25em; font-size: 1.35em; color: #fff; display: flex; justify-content: space-between; align-items: baseline; }
#info .stat { color: var(--dim); margin-top: .5em; }
#info .row { display: flex; align-items: center; height: 1.95em; font-size: 1.08em; flex: none; }
#info .row canvas { width: 2.1em; height: 1.8em; margin-right: .4em; flex: none; }
#info .row .new { margin-left: .5em; padding: 0 .4em; background: var(--gold); color: #000; font-size: .78em; font-weight: bold; border-radius: .25em; }
#info .warn { margin-top: .3em; color: var(--gold); font-size: .95em; line-height: 1.2; }
#info .ibar { display: flex; flex-wrap: wrap; gap: .35em; margin-top: auto; padding-top: .5em; }
.ibtn { flex: 1 1 40%; height: 2.4em; padding: 0 .3em; background: var(--panel2); border: 1px solid var(--line2); border-radius: .45em; color: #e8ffff; font-size: 1em; font-weight: bold; white-space: nowrap; }
.ibtn:hover { background: var(--panel3); border-color: var(--cyan); }
.ibtn.on { background: #00c2c8; border-color: var(--cyan); color: #00191b; }

#sel { flex: 1; min-height: 0; padding: 0 .5em .5em; display: flex; flex-direction: column; gap: .4em; }
#sel .head { display: flex; align-items: center; gap: .6em; flex: none; }
#sel .head canvas { height: 4.4em; width: auto; flex: none; background: var(--tile); border-radius: .5em; }
#sel .head .hh { flex: 1; min-width: 0; }
#sel .head h3 { font-size: 1.6em; margin: 0; }
#sel .stats { font-size: .95em; color: var(--dim); }
#sel .line { display: flex; gap: .35em; flex: none; }
#sel .line .ibtn { flex: 1 1 0; }
#sel .line .ibtn.sm { flex: 0 0 2.6em; }
#sel .paths { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .4em; }
#stage.wide #sel .paths { flex-direction: row; }
#sel .path { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: .45em .55em .55em; background: var(--panel2); border-radius: .55em; border-left: .3em solid #fff; }
#sel .pathB { border-left-color: #ffe600; }
#sel .pn { display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: .9em; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
#sel .pips i { display: inline-block; width: .8em; height: .8em; margin-left: .25em; border-radius: 50%; border: .16em solid #fff; }
#sel .pips i.f { background: #fff; }
#sel .pathB .pips i { border-color: #ffe600; }
#sel .pathB .pips i.f { background: #ffe600; }
#sel .urow { display: flex; align-items: center; gap: .5em; margin: .25em 0; }
#sel .urow canvas { height: 3.5em; width: auto; flex: none; }
#sel .un { font-size: 1.15em; font-weight: bold; color: #fff; line-height: 1.15; }
#sel .ud { flex: 1; min-height: 0; overflow: hidden; color: var(--text); }
#sel .buy { flex: none; width: 100%; height: 2.4em; margin-top: .35em; background: #12a045; border: 1px solid var(--good); border-radius: .45em; color: #fff; font-size: 1.1em; font-weight: bold; }
#sel .buy .price { color: #fff; }
#sel .buy:hover { background: #18bd53; }
#sel .buy.no { background: #2a3d40; border-color: #4a6064; cursor: default; }
#sel .buy.no .price { color: var(--bad); }
#sel .buy.lock { background: none; border-color: var(--line); color: var(--dim); cursor: default; }
#sel .sell { flex: none; width: 100%; height: 2.5em; background: #5c1a14; border: 1px solid #b0382c; border-radius: .45em; color: #ffd6d0; font-size: 1.1em; font-weight: bold; }
#sel .sell:hover { background: #7c2219; }

#ctl { flex: none; display: flex; flex-direction: column; gap: .45em; padding: .5em; border-top: 2px solid var(--line); }
.crow { display: flex; gap: .4em; align-items: stretch; }
#auto { display: flex; align-items: center; gap: .45em; font-size: 1.1em; font-weight: bold; cursor: pointer; white-space: nowrap; padding-right: .3em; }
#auto input { display: none; }
#auto .sw { position: relative; width: 2.5em; height: 1.4em; border-radius: .7em; background: #1b4347; flex: none; transition: background .12s; }
#auto .sw::after { content: ''; position: absolute; left: .2em; top: .2em; width: 1em; height: 1em; border-radius: 50%; background: var(--dim); transition: left .12s; }
#auto input:checked + .sw { background: #00c2c8; }
#auto input:checked + .sw::after { left: 1.3em; background: #fff; }
#speed { flex: 1; display: flex; height: 2.6em; border: 1px solid var(--line2); border-radius: .45em; overflow: hidden; }
.spd { flex: 1; padding: 0; background: var(--panel2); border: none; border-left: 1px solid var(--line2); color: var(--dim); font-size: 1.05em; font-weight: bold; }
.spd:first-child { border-left: none; }
.spd:hover { color: #fff; }
.spd.on { background: #00c2c8; color: #00191b; }
.cbtn { flex: none; width: 3.1em; height: 4em; padding: .8em; background: var(--panel2); border: 1px solid var(--line2); border-radius: .5em; color: #e8ffff; }
.cbtn svg { width: 100%; height: 100%; }
.cbtn:hover { background: var(--panel3); border-color: var(--cyan); }
.cbtn.on { background: var(--gold); border-color: #fff; color: #201800; }
#bNext { flex: 1; min-width: 0; height: 4em; display: flex; align-items: center; justify-content: center; gap: .5em; padding: 0 .4em; background: #00c2c8; border: 2px solid var(--cyan); border-radius: .5em; color: #00191b; font-size: 1em; font-weight: bold; line-height: 1.1; text-align: left; }
#bNext svg { width: 1.7em; height: 1.7em; flex: none; }
#bNext span { font-size: 1.15em; }
#bNext:hover { background: var(--cyan); }
#bNext.no { background: var(--panel2); border-color: var(--line); color: var(--dim); cursor: default; }
#bNext.no svg { display: none; }

#overlaySub { font-size: 34px; letter-spacing: 6px; min-height: 6px; }
#overlaySub.txt { font-size: 20px; letter-spacing: 0; color: var(--dim); }
#overlaySub .star { color: #1b5257; }
#overlaySub .star.on { color: var(--gold); }
#rotate { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--teal); color: #001f20; font-size: 26px; font-weight: bold; text-align: center; }

/* ------------------------------------------------ tower overview */
#dex { z-index: 6; background: var(--bg); color: var(--text); }
#dexHead { position: absolute; left: 0; right: 0; top: 0; height: 88px; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--panel); border-bottom: 2px solid var(--line); }
#dexHead h2 { margin: 0; width: 138px; font-size: 32px; color: var(--cyan); font-family: Arial, Helvetica, sans-serif; text-shadow: 2px 2px 0 #007f84; }
#dexTabs { flex: 1; display: flex; gap: 6px; justify-content: center; }
.dtab { width: 88px; height: 72px; padding: 3px 0 0; background: var(--panel2); border: 2px solid var(--line); border-radius: 9px; color: var(--dim); font-size: 12px; font-weight: bold; }
.dtab canvas { display: block; height: 46px; width: auto; margin: 0 auto; }
.dtab:hover { border-color: var(--line2); color: #fff; }
.dtab.on { background: var(--panel3); border-color: var(--cyan); color: #fff; }
#dexClose { width: 52px; height: 52px; padding: 14px; background: var(--panel2); border: 2px solid var(--line2); border-radius: 50%; color: var(--cyan); }
#dexClose:hover { background: var(--panel3); border-color: var(--cyan); }
#dexBody { position: absolute; left: 0; right: 0; top: 88px; bottom: 0; display: flex; padding: 18px 6px; }
#dex .arrow { flex: none; width: 56px; padding: 6px; background: none; border: none; color: var(--line2); }
#dex .arrow svg { width: 44px; height: 44px; }
#dex .arrow:hover { color: var(--cyan); }
#dexLeft { flex: none; width: 330px; margin-right: 18px; }
#dexStage { width: 330px; height: 300px; background: var(--tile); border: 4px solid #000; border-radius: 12px; overflow: hidden;
  background-image: linear-gradient(rgba(0, 0, 0, .28) 4px, transparent 4px), linear-gradient(90deg, rgba(0, 0, 0, .28) 4px, transparent 4px); background-size: 110px 110px; background-position: -2px -2px; }
#dexCv { display: block; width: 300px; height: 300px; margin: -4px auto 0; }
#dexTitle { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
#dexName { margin: 0; font-size: 36px; color: #fff; }
#dexCost { font-size: 26px; }
#dexDesc { margin: 4px 0 12px; font-size: 17px; line-height: 22px; min-height: 44px; }
#dexStats { display: flex; flex-wrap: wrap; gap: 6px; }
#dexStats span { padding: 5px 10px; background: var(--panel2); border-radius: 6px; font-size: 15px; color: var(--dim); }
#dexStats b { color: #fff; margin-left: 5px; }
#dexRight { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
#dexPaths { display: flex; flex-direction: column; gap: 12px; }
.prow { padding: 8px 12px 10px; background: var(--panel); border-radius: 12px; border-left: 6px solid #fff; }
.prow.pB { border-left-color: #ffe600; }
.prow .pt { margin-bottom: 6px; font-size: 14px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.prow .pt b { color: #fff; }
.prow.pB .pt b { color: #ffe600; }
.pcards { display: flex; align-items: center; }
.ucard { flex: 1 1 0; min-width: 0; height: 166px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 6px; background: var(--panel2); border: 2px solid var(--line); border-radius: 10px; color: var(--text); text-align: center; position: relative; }
.ucard canvas { flex: none; height: 74px; width: auto; }
.ucard .tier { display: block; font-size: 11px; font-weight: bold; letter-spacing: 2px; color: var(--dim); }
.ucard .nm { display: block; margin: 1px 0 3px; font-size: 16px; line-height: 18px; font-weight: bold; color: #fff; }
.ucard .price { font-size: 15px; }
.ucard:hover, .ucard.hov { border-color: #fff; background: var(--panel3); }
.ucard.sel { border-color: var(--cyan); background: var(--panel3); }
.ucard.own::after { content: 'OWNED'; position: absolute; right: 6px; top: 6px; padding: 1px 6px; background: var(--good); color: #00220c; font-size: 10px; font-weight: bold; letter-spacing: 1px; border-radius: 4px; }
.pcards .chev { flex: none; width: 22px; height: 22px; padding: 3px; color: var(--line2); }
#dexDetail { flex: 1; min-height: 0; padding: 10px 20px; background: #07292c; border-radius: 12px; border-left: 6px solid var(--cyan); display: flex; flex-direction: column; }
#dexDetail h4 { margin: 0; font-size: 22px; color: #fff; display: flex; justify-content: space-between; align-items: baseline; }
#dexDetail .sub { font-size: 13px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
#dexDetail p { margin: 4px 0 0; font-size: 17px; line-height: 22px; }
#dexDetail .foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 15px; color: var(--dim); }
#stage.wide .cbtn { width: 4.6em; padding: .9em 1.1em; }

/* ------------------------------------------------ modes, options, achievements, summary, toasts */
.star.imp.on { color: #ff4fa8; }
.seg { display: flex; border: 2px solid var(--line2); border-radius: 10px; overflow: hidden; }
.seg button { flex: 1; height: 38px; padding: 0; background: var(--panel2); border: none; border-left: 2px solid var(--line2); color: var(--dim); font-size: 17px; font-weight: bold; }
.seg button:first-child { border-left: none; }
.seg button:hover { color: #fff; }
.seg button.on { background: #00c2c8; color: #00191b; }
#mapDetail .mdesc { font-size: 14px; color: var(--dim); min-height: 34px; line-height: 17px; }
#mapDetail .right { width: 360px; gap: 8px; }
.diffBtn { padding: 6px 14px; }
.diffBtn .dn { font-size: 21px; }
.diffBtn .best { float: right; font-size: 14px; line-height: 28px; color: var(--gold); font-weight: bold; }
.diffBtn.locked { opacity: .5; cursor: default; }
.diffBtn.locked:hover { background: var(--panel2); border-color: var(--line2); }

.opts { display: flex; gap: 22px; justify-content: center; margin-top: 4px; }
.opt { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: bold; color: var(--text); cursor: pointer; }
.opt input { display: none; }
.opt .sw { position: relative; width: 40px; height: 22px; border-radius: 11px; background: #1b4347; flex: none; }
.opt .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--dim); transition: left .12s; }
.opt input:checked + .sw { background: #00c2c8; }
.opt input:checked + .sw::after { left: 21px; background: #fff; }
.note { font-size: 14px; color: var(--dim); }
#help .opts { justify-content: flex-start; margin-top: 12px; }

#ach { position: absolute; left: 330px; top: 250px; width: 916px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.achCard { height: 62px; padding: 8px 12px 8px 54px; position: relative; background: var(--panel); border-radius: 10px; color: var(--dim); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); opacity: .72; }
.achCard::before { content: '★'; position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: #0e3a3e; color: #1b5257; font-size: 22px; line-height: 34px; text-align: center; }
.achCard b { display: block; font-size: 17px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.achCard span { display: block; font-size: 13px; line-height: 15px; }
.achCard.on { opacity: 1; }
.achCard.on::before { background: var(--gold); color: #5a3d00; }
#achHead { grid-column: 1 / -1; font-size: 20px; font-weight: bold; color: #003c3c; }

#overlay .card { width: 720px; padding: 22px 30px 26px; gap: 10px; }
#overlay h2 { font-size: 34px; }
#sumFigures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#sumFigures div { padding: 8px 6px; background: var(--panel2); border-radius: 8px; font-size: 22px; font-weight: bold; color: #fff; }
#sumFigures small { display: block; font-size: 12px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }
#sumDamage { display: flex; flex-direction: column; gap: 4px; text-align: left; }
#sumDamage h4 { margin: 4px 0 2px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.drow { display: flex; align-items: center; gap: 8px; height: 22px; font-size: 14px; }
.drow canvas { height: 22px; width: auto; flex: none; }
.drow .nm { width: 64px; font-weight: bold; color: #fff; }
.drow .bar { flex: 1; height: 12px; background: var(--panel2); border-radius: 6px; overflow: hidden; }
.drow .bar i { display: block; height: 100%; border-radius: 6px; }
.drow .val { width: 110px; text-align: right; color: var(--text); }
.brow { display: flex; gap: 12px; margin-top: 6px; }

#toasts { position: absolute; left: 74px; top: 46px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.toast { padding: 7px 18px 7px 12px; max-width: 380px; background: var(--panel); border: 2px solid var(--gold); border-radius: 12px; color: #fff; font-size: 16px; font-weight: bold; box-shadow: 0 5px 0 rgba(0, 0, 0, .35); animation: toast 4.2s forwards; }
.toast small { display: block; font-size: 13px; color: var(--dim); font-weight: normal; }
.toast::before { content: '★'; color: var(--gold); margin-right: 10px; float: left; font-size: 26px; line-height: 36px; }
.toast.plain { border-color: var(--cyan); }
.toast.plain::before { color: var(--cyan); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-16px); } 6% { opacity: 1; transform: none; } 88% { opacity: 1; } 100% { opacity: 0; } }

#info .pick { display: flex; gap: .3em; margin: .4em 0; align-items: center; }
#info .pick .ibtn { flex: 1 1 0; }
#info .pick b { flex: 1.4 1 0; text-align: center; font-size: 1.3em; color: #fff; }
#sel .rg { flex: none; color: var(--cyan); font-size: .95em; font-weight: bold; }
#sel .pips i { width: .7em; height: .7em; margin-left: .18em; }
.newAch { margin-top: 2px; padding: 6px 10px; background: #3a2f00; border: 1px solid var(--gold); border-radius: 8px; color: var(--gold); font-size: 15px; font-weight: bold; }
