@charset "UTF-8";
:root {
  --bg: #0a1d12;
  --panel: #e8efe3;
  --panel-light: #ffffff;
  --panel-dark: #8aa48f;
  --ink: #15301e;
  --slot: #66816a;
  --slot-dark: #2a3d30;
  --wood: #12281b;
  --wood-dark: #06120b;
  --wood-light: #1b3a27;
  --chalk: #f4f8ef;
  --board: #08130d;
  --led: #ffd23d;
  --green: #2ea44f;
  --orange: #ef8a1f;
  --blue: #2f6fd6;
  --btn: #55695b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background-size: 64px 64px;
  image-rendering: pixelated;
  color: #fff;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
}

html { background-color: var(--bg); }

:root {
  --inv-w: 200px;
  --gap: 0px;
  --chrome-h: 160px;
  --stage-w: min(calc(100vw - 32px - var(--inv-w) - var(--gap)), calc((100vh - var(--chrome-h) - 34px) * 1.8241 + 34px));
}
#app { width: calc(var(--stage-w) + var(--inv-w) + var(--gap) + 32px); max-width: 100%; margin: 0 auto; padding: 8px 16px 8px; }

.logo {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(20px, 3vw, 32px);
  color: var(--chalk);
  letter-spacing: 3px;
  text-shadow: 3px 3px 0 #0e5a2a, 6px 6px 0 rgba(0,0,0,.5);
}
.logo span { color: var(--chalk); text-shadow: 3px 3px 0 #1f8a3e, 6px 6px 0 rgba(0,0,0,.55); }
.logo span::before, .logo span::after { content: "⚽"; display: inline-block; margin: 0 .35em; font-size: .7em; vertical-align: .15em; text-shadow: none; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.5)); }

@media (min-width: 901px) { #app > .logo { width: var(--stage-w); } }

.mc-panel {
  background: var(--panel) repeating-linear-gradient(0deg, transparent 0 23px, rgba(21,48,30,.05) 23px 24px);
  color: var(--ink);
  border: 3px solid var(--wood-dark);
  box-shadow: inset 4px 4px 0 var(--panel-light), inset -4px -4px 0 var(--panel-dark);
  border-radius: 4px;
}

#topbar {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px 14px;
  background:
    radial-gradient(ellipse 60% 120% at 50% -40%, rgba(255,255,220,.14), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 48px, rgba(0,0,0,.06) 48px 96px),
    linear-gradient(180deg, var(--wood-light), var(--wood) 60%, #0d2014);
  border: 4px solid var(--wood-dark);
  border-bottom: none;
  box-shadow: inset 0 0 0 3px rgba(244,248,239,.85), inset 0 0 0 6px rgba(0,0,0,.35);
}
.tb-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-spacer { flex: 1; }
.tb-bottom { padding-top: 10px; border-top: 2px dashed rgba(244,248,239,.35); }
#topbar .pix-btn { height: 38px; }

.bal-chip {
  position: relative; overflow: hidden;
  display: flex; align-items: stretch; gap: 0; height: 40px; padding: 0;
  flex: none; width: max-content;
  font-family: inherit; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, #13291b, var(--board));
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #b8901e, inset 0 0 0 4px #3a2306, 0 0 12px rgba(255,210,61,.18);
}

.bal-chip .ico { width: 24px; height: 24px; flex: none; align-self: center; margin: 0 8px 0 10px; filter: drop-shadow(0 0 4px rgba(255,210,61,.7)); }
.bal-chip .bal-text { justify-content: center; gap: 3px; padding-right: 12px; min-width: max-content; }
.bal-chip small { font-size: 6px; color: #9fd8a8; letter-spacing: 1px; text-shadow: 1px 1px 0 #000; }
.bal-chip #ui-coins { font-size: 13px; color: var(--led); text-shadow: 0 0 6px rgba(255,210,61,.55), 2px 2px 0 #3a2306; }

.bal-cta { display: flex; align-items: center; padding: 0 10px; font-size: 7px; color: #fff; letter-spacing: .5px; text-shadow: 1px 1px 0 #0b3a1c; background: var(--green); border-left: 3px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.3), inset -2px -2px 0 rgba(0,0,0,.25); margin: 2px 2px 2px 0; }

.bal-chip::after { content: ""; position: absolute; top: -20%; left: -40%; width: 26%; height: 140%; background: linear-gradient(90deg, transparent, rgba(255,240,170,.35), transparent); transform: skewX(-20deg); pointer-events: none; opacity: 0; }
.bal-chip:hover::after { opacity: 1; animation: bal-shine .7s ease-out; }
@keyframes bal-shine { from { left: -40%; } to { left: 130%; } }
.bal-chip:hover { filter: brightness(1.12); }
.bal-chip:hover .bal-cta { background-color: #38c05e; }
.bal-chip:active { transform: translateY(2px); }
.stat { display: flex; align-items: center; gap: 6px; font-size: 16px; text-shadow: 2px 2px 0 #000; }

.ca-box { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px; background: var(--board); border: 3px solid #000; box-shadow: inset 0 0 0 2px #2a4a34; text-shadow: 2px 2px 0 #000; }
.ca-label { font-size: 12px; color: #6fe08a; }
.ca-addr { font-size: 11px; color: var(--led); text-decoration: none; letter-spacing: .5px; text-shadow: 0 0 6px rgba(255,210,61,.5), 2px 2px 0 #000; }
.ca-addr[href]:hover { color: #fff; text-decoration: underline; }
.ca-box.soon { padding-right: 12px; }
.ca-box.soon .ca-addr { color: var(--led); animation: ca-blink 1.6s steps(2) infinite; }
@keyframes ca-blink { 50% { opacity: .45; } }
.ca-copy { font-family: inherit; font-size: 13px; color: #fff; background: #1b3a27; border: 2px solid #000; width: 26px; height: 26px; cursor: pointer; }
.ca-copy:hover { background: var(--green); }
.muted-in { opacity: .7; }

.ico { display: inline-block; width: 24px; height: 24px; image-rendering: pixelated; background-size: contain; background-repeat: no-repeat; }
.ico.sm { width: 12px; height: 12px; vertical-align: middle; }

.pix-btn {
  font-family: inherit; font-size: 10px; color: #fff;
  padding: 9px 12px;
  background-color: var(--btn);
  border: 3px solid #000;
  cursor: pointer;
  text-shadow: 2px 2px 0 #3a3a3a;
  background-image: linear-gradient(180deg, rgba(255,255,255,.16) 0 45%, rgba(0,0,0,0) 45%), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 6px, transparent 6px 12px);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -3px 0 rgba(0,0,0,.35);
}
.pix-btn:hover:not(:disabled) { filter: brightness(1.12); outline: 2px solid #fff; outline-offset: -5px; }
.pix-btn:active:not(:disabled) { transform: translateY(2px); }
.pix-btn:disabled { filter: grayscale(1) brightness(.8); opacity: .6; cursor: not-allowed; }
.pix-btn.green { background-color: var(--green); }
.pix-btn.orange { background-color: var(--orange); }
.pix-btn.blue { background-color: var(--blue); }
.pix-btn.purple { background-color: #7d4fc4; }
.pix-btn.teal { background-color: #149a86; }

.play { display: flex; gap: var(--gap); align-items: flex-start; }
.main-col { flex: none; width: var(--stage-w); min-width: 0; }
#stage { position: relative; flex: none; width: var(--stage-w); padding: 10px; background: linear-gradient(180deg, #0d2014, #091a10); border: 4px solid var(--wood-dark); box-shadow: inset 0 0 0 3px rgba(244,248,239,.85), inset 0 0 0 6px rgba(0,0,0,.35); }
#game { display: block; width: 100%; height: auto; image-rendering: pixelated; border: 3px solid #000; background: #68a548; }
#map-banner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center;
  font-size: clamp(16px, 3.6vw, 36px); text-align: center;
  text-shadow: 4px 4px 0 #000;
  background: rgba(0,0,0,.35);
  pointer-events: none;
  animation: pop .6s ease-out;
}
#map-banner small { font-size: .45em; color: #ffd23d; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.sound-wrap { position: relative; display: flex; gap: 6px; }
#btn-mute { height: 38px; padding: 0 10px; min-width: 64px; }
#btn-mute.on { color: #fff; background-color: #b8362b; box-shadow: inset 3px 3px 0 rgba(255,255,255,.25), inset -3px -3px 0 rgba(0,0,0,.35); }
#mixer.all-muted .mix-row { opacity: .45; }
#mixer.all-muted .mix-head::after { content: " · MUTED"; color: #ff6b5e; }
#btn-sound { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; }
.snd-led { width: 8px; height: 8px; flex: none; background: #6fe08a; border: 2px solid #000; box-shadow: 0 0 6px #6fe08a; }
#btn-sound.muted .snd-led { background: #e0483a; box-shadow: 0 0 6px #e0483a; }
#btn-sound[aria-expanded="true"] { outline: 2px solid var(--chalk); outline-offset: -5px; }

#mixer {
  position: absolute; z-index: 20; right: 0; top: calc(100% + 8px);
  width: 260px; padding: 0 12px 12px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--board); color: var(--chalk); text-shadow: 1px 1px 0 #000;
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #2a4a34, 0 10px 24px rgba(0,0,0,.6);
}
#mixer::before { content: ""; position: absolute; right: 14px; top: -9px; border: 6px solid transparent; border-bottom-color: #000; border-top: none; }
.mix-head { margin: 0 -12px; padding: 8px 12px; font-size: 8px; letter-spacing: 1px; color: #6fe08a; background: #0f2418; border-bottom: 2px dashed rgba(244,248,239,.3); }
.mix-row { display: grid; grid-template-columns: 1fr 44px; grid-template-rows: auto auto; gap: 6px 8px; align-items: center; font-size: 8px; cursor: pointer; }
.mix-row span { grid-column: 1 / -1; }
.mix-row b { font-weight: normal; font-size: 9px; color: var(--led); text-align: right; text-shadow: 0 0 6px rgba(255,210,61,.5), 1px 1px 0 #000; }
.mix-row input[type=range] {
  --fill: 50%; --accent: #3fbf5f;
  -webkit-appearance: none; appearance: none; width: 100%; height: 12px; margin: 0; cursor: pointer;
  background:
    linear-gradient(90deg, var(--accent) 0 var(--fill), transparent var(--fill)),
    repeating-linear-gradient(90deg, #1d3a27 0 8px, #16301f 8px 16px);
  border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(244,248,239,.25);
}
.mix-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 18px; background: var(--chalk); border: 2px solid #000; box-shadow: inset -2px -2px 0 #9aa79c; }
.mix-row input[type=range]::-moz-range-thumb { width: 10px; height: 14px; background: var(--chalk); border: 2px solid #000; border-radius: 0; box-shadow: inset -2px -2px 0 #9aa79c; }
.mix-row input[type=range]:focus-visible { outline: 2px solid var(--led); outline-offset: 2px; }

.side-col { flex: none; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.social { display: flex; flex-direction: column; gap: 10px; width: var(--inv-w); }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; font-size: 11px; text-decoration: none; }
.social-btn svg { width: 22px; height: 22px; fill: #fff; flex: none; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.35)); }
.social-btn.discord { background: #5865f2; }
.social-btn.telegram { background: #229ed9; }

#inventory {
  flex: none; width: var(--inv-w);
  display: flex; flex-direction: column;
  padding: 12px 10px;
  background: var(--panel);
  color: var(--ink);
  border: 4px solid var(--wood-dark);
  border-left: none;
  align-self: flex-start;
  box-shadow: inset 0 0 0 3px #000, inset 6px 6px 0 var(--panel-light), inset -6px -6px 0 var(--panel-dark);
  overflow-y: auto;
}
.inv-title { font-size: 10px; color: #3f3f3f; margin: 2px 2px 10px; }
.balance {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; margin-bottom: 12px;
  background: #3a3a3a;
  box-shadow: inset 3px 3px 0 #1e1e1e, inset -3px -3px 0 #8b8b8b;
}
.balance .ico { width: 28px; height: 28px; flex: none; }
.bal-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#ui-coins { font-size: 13px; color: #ffd23d; text-shadow: 2px 2px 0 #5a3a00; white-space: nowrap; }
.bal-text small { font-size: 7px; color: #c8c8c8; text-shadow: 1px 1px 0 #000; }
#hotbar { display: flex; flex-direction: column; gap: 2px; }
.inv-row { display: flex; align-items: center; gap: 8px; }
.inv-row .slot { margin: 0; flex: none; }
.inv-name { font-size: 10px; color: #3f3f3f; line-height: 1.4; }
.inv-name small { display: block; font-size: 8px; color: #7a5a00; margin-top: 4px; white-space: nowrap; }
.inv-row.empty .inv-name { color: #7a7a7a; }
.inv-sep { height: 2px; background: #8b8b8b; box-shadow: 0 2px 0 #fff; margin: 8px 2px 10px; }
.slot {
  position: relative;
  width: 60px; height: 60px;
  margin: 2px;
  background: var(--slot);
  box-shadow: inset 3px 3px 0 var(--slot-dark), inset -3px -3px 0 #fff;
  display: flex; align-items: center; justify-content: center;
}
.slot canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.slot .qty { position: absolute; right: 4px; bottom: 3px; font-size: 10px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none; }
.slot.empty canvas { opacity: .25; }
.slot.bump { animation: bump .25s; }
@keyframes bump { 50% { transform: scale(1.15); } }

#bottom-tabs { display: flex; gap: 10px; width: max-content; margin: -4px 0 0 calc(var(--stage-w) / 2); transform: translateX(-50%); }
.tab-btn {
  display: flex; align-items: stretch;
  padding: 0; height: 36px;
  font-family: inherit; color: #fff; text-shadow: 2px 2px 0 #3a3a3a;
  background: var(--btn);
  border: 3px solid #000; border-top: none;
  box-shadow: inset 3px 0 0 rgba(255,255,255,.35), inset -3px -3px 0 rgba(0,0,0,.35);
  cursor: pointer;
}
.tab-btn .tab-label { display: flex; align-items: center; padding: 0 14px; font-size: 11px; }
.tab-btn .tab-arrow { display: flex; align-items: center; padding: 0 12px; font-size: 13px; border-left: 3px solid #000; background: rgba(0,0,0,.15); }
.tab-btn:hover { filter: brightness(1.12); }
.tab-btn.open { background-color: var(--green); }
#rest-toggle { background-color: #1f6b46; }
#rest-toggle.open { background-color: #27855a; }
.tab-btn.hidden { display: none; }


#drawer, #rest-panel {
  position: absolute; z-index: 5;
  left: 50%; bottom: 10px;
  transform: translateX(-50%);
  width: min(88%, 1400px); min-width: 320px;
  height: calc(100% - 20px);
  display: flex; flex-direction: column;
  padding: 14px 14px 12px;
  box-shadow: inset 4px 4px 0 var(--panel-light), inset -4px -4px 0 var(--panel-dark), 0 10px 40px rgba(0,0,0,.6);
  animation: slide-up .18s ease-out;
}
@keyframes slide-up { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.drawer-head h2 { margin: 0; font-size: 12px; }
.drawer-close { background: none; border: none; color: var(--ink); font-family: inherit; font-size: 16px; cursor: pointer; padding: 2px 4px; }
.drawer-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.drawer-actions .pix-btn { font-size: 8px; padding: 7px 9px; }

.hero-section, .hero-card { --cu: min(calc((var(--stage-w) - 250px) / 1250 * 1.3), calc((100cqh - 30px) / 560)); }
#hero-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; container-type: size; }

.hero-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(var(--cu) * 8); }

.hero-section.active { display: flex; flex-direction: column; }
.hero-section.active .hero-grid { grid-auto-rows: minmax(var(--row-h, auto), auto); }
.hero-section.active .hero-grid.none { grid-auto-rows: auto; }
.hero-section + .hero-section { margin-top: 14px; padding-top: 12px; border-top: 2px solid #8b8b8b; box-shadow: inset 0 2px 0 #fff; }
.hero-section h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 calc(var(--cu) * 8); font-size: max(9px, calc(var(--cu) * 11)); color: #3f3f3f; }
.hero-section h3 .cnt { color: #6a6a6a; }
.hero-section h3 small { flex-basis: 100%; font-size: 7px; color: #7a7a7a; }
.hero-section.active h3 { color: #2a7a1e; }
.empty-note { margin: 0; font-size: 8px; color: #6a6a6a; }
.hero-card {
  display: grid; grid-template-columns: calc(var(--cu) * 68) 1fr; gap: calc(var(--cu) * 6) calc(var(--cu) * 10);
  padding: calc(var(--cu) * 10);
  background: var(--slot);
  color: #fff;
  text-shadow: 1px 1px 0 #3a3a3a;
  box-shadow: inset 3px 3px 0 var(--slot-dark), inset -3px -3px 0 #e0e0e0;
  font-size: calc(var(--cu) * 9); line-height: 1.6;
  min-width: 0;
  align-content: center;
}
.hero-card > div { min-width: 0; }
.hero-card .avatar { position: relative; width: calc(var(--cu) * 68); height: calc(var(--cu) * 68); }
.hero-card canvas { width: 100%; height: 100%; image-rendering: pixelated; background: #68a548; border: 2px solid #000; box-sizing: border-box; }
.hero-card .name { font-size: calc(var(--cu) * 11); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card .rar { display: inline-block; padding: calc(var(--cu) * 2) calc(var(--cu) * 4); font-size: calc(var(--cu) * 8); color: #fff; text-shadow: 1px 1px 0 #000; border: 2px solid #000; margin: calc(var(--cu) * 4) 0; }
.hero-card .role { display: inline-block; padding: calc(var(--cu) * 2) calc(var(--cu) * 4); margin-left: calc(var(--cu) * 3); border: 2px solid #000; font-size: calc(var(--cu) * 8); color: #fff; text-shadow: 1px 1px 0 #000; }

.hero-card .skills { display: flex; flex-wrap: nowrap; gap: calc(var(--cu) * 3); margin: calc(var(--cu) * 2) 0 calc(var(--cu) * 3); }

.sk {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 1px;
  background: #24242a;
  border: 2px solid var(--skc, #000);
  box-shadow: inset 0 0 0 1px #000;
  cursor: help;
}
.sk img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.hero-card .sk { flex: 0 1 calc(var(--cu) * 22); width: auto; min-width: 0; max-width: calc(var(--cu) * 22); height: auto; aspect-ratio: 1; box-sizing: border-box; }
.got .skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 66px; }
.got .sk { width: 18px; height: 18px; border-width: 1px; padding: 0; }

#tip {
  position: fixed; z-index: 100; max-width: 260px;
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px 10px;
  background: #1a1022; color: #fff;
  border: 2px solid #2a0a4a; box-shadow: 0 0 0 2px #5a2a8a, 0 6px 18px rgba(0,0,0,.5);
  font-size: 8px; line-height: 1.6; text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}
#tip b { font-size: 9px; font-weight: normal; }
.hero-card .role.starter { background: #3fa02e; }
.hero-card .role.reserve { background: #5a6a8a; }
.hero-card .role.off { background: #6a6a6a; }
.hero-card .stats { display: flex; flex-wrap: wrap; gap: 0 calc(var(--cu) * 8); white-space: nowrap; font-size: calc(var(--cu) * 8.5); }
.hero-card .stats b { color: #9dff7a; font-weight: normal; }
.hero-card .stats .eco { flex-basis: 100%; color: #fff6b0; }
.hero-card .stats .eco b { color: #ffd23d; }
.energy { grid-column: 1 / -1; height: calc(var(--cu) * 10); background: #2a2a2a; border: 2px solid #000; overflow: hidden; }
.energy > div { height: 100%; background: linear-gradient(#8ef06a, #3fae2e); transition: width .3s; }
.hero-card .row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: calc(var(--cu) * 9); }
.hero-card .row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hero-card .pix-btn { flex: none; font-size: calc(var(--cu) * 8); padding: calc(var(--cu) * 5) calc(var(--cu) * 8); }

.hero-card.active { background: #9fb59a; box-shadow: inset 3px 3px 0 #2e5a24, inset -3px -3px 0 #e6ffe0, 0 0 0 2px #3fa02e; }
.hero-card.resting { filter: saturate(.55) brightness(.9); opacity: .85; }
.hero-card .zzz { display: none; position: absolute; right: -4px; top: -6px; pointer-events: none; }
.hero-card.resting .zzz { display: block; }
.zzz i { position: absolute; right: 0; top: 0; font-style: normal; color: #fff; text-shadow: 2px 2px 0 #141010; opacity: 0; animation: zzz 2.4s linear infinite; }
.zzz i:nth-child(2) { animation-delay: .8s; }
.zzz i:nth-child(3) { animation-delay: 1.6s; }
@keyframes zzz {
  0%   { transform: translate(-10px, 22px); font-size: 7px; opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(4px, -6px); font-size: 13px; opacity: 0; }
}

#mint-panel {
  position: absolute; z-index: 6;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow-y: auto;
  padding: 16px 18px;
  box-shadow: inset 4px 4px 0 var(--panel-light), inset -4px -4px 0 var(--panel-dark), 0 10px 40px rgba(0,0,0,.6);
  animation: pop-in .15s ease-out;
}
@keyframes pop-in { from { transform: translate(-50%, -50%) scale(.92); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
#mint-panel h2 { font-size: 14px; }
.mint-sub { margin: 0 0 14px; font-size: 8px; color: #5a5a5a; }
.mint-title { display: flex; align-items: center; gap: 12px; }
.droprate-wrap { position: relative; }
.pix-btn.droprate { display: inline-block; font-size: 8px; padding: 6px 9px; background: #5a6a8a; cursor: help; }
.droprate-wrap:hover .pix-btn.droprate { background: #3b7fd0; }

#droprate {
  display: none;
  position: fixed; z-index: 60; left: 0; top: 0;
  width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto;
  grid-template-columns: 270px 1fr; gap: 0 18px;
  padding: 12px 14px;
  pointer-events: none;
  background: var(--board); color: var(--chalk); text-shadow: 1px 1px 0 #000;
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #2a4a34, 0 10px 24px rgba(0,0,0,.6);
}
#droprate.show { display: grid; }
.dr-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
#droprate h3 small.dr-note { margin: 0 0 0 6px; color: #c8c8c8; font-size: 7px; }
.dr-skills .dr-skill { margin: 0; }
@media (max-width: 700px) { #droprate { grid-template-columns: 1fr; } .dr-skills { grid-template-columns: 1fr; } #droprate .dr-col + .dr-col { margin-top: 10px; } }
#droprate h3 { margin: 0 0 8px; font-size: 9px; color: #ffd23d; }
.dr-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; margin: 5px 0; }
.dr-sk { font-size: 7px; color: #c8c8c8; }
.dr-note { margin: 2px 0 8px; font-size: 7px; color: #c8c8c8; }
.dr-h { margin: 12px 0 2px !important; }
.dr-skill { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; margin: 6px 0; }
.dr-skill b { display: block; font-size: 8px; font-weight: normal; margin-bottom: 2px; }
.dr-skill span:not(.sk) { font-size: 7px; line-height: 1.5; color: #e0e0e0; }
.dr-tag { padding: 2px 5px; font-size: 7px; border: 2px solid #000; text-align: center; }
.dr-pct { font-size: 9px; text-align: right; }
#mint-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.mint-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 12px 12px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(255,255,220,.16), transparent 70%),
    repeating-linear-gradient(90deg, #1d4a2c 0 18px, #215233 18px 36px);
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px rgba(244,248,239,.75), inset 0 -40px 30px -20px rgba(0,0,0,.45);
  color: #fff; text-shadow: 2px 2px 0 #08110b;
  transition: transform .12s, box-shadow .12s;
}
.mint-opt:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--led), inset 0 -40px 30px -20px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.35); }
.mint-tag { align-self: stretch; padding: 4px 6px; font-size: 7px; letter-spacing: 1px; text-align: center; color: #9fd8a8; background: var(--board); border: 2px solid #000; }
.mint-stack { display: flex; justify-content: center; align-items: flex-end; height: 92px; margin-top: 4px; isolation: isolate; } /* keeps the portraits' z-index inside the card, under the sticky panel header */
.mint-stack img {
  width: 76px; height: auto; margin: 0 -18px; image-rendering: pixelated; user-select: none;

  transform: translateY(calc(var(--d, 0) * 6px)) scale(calc(1 - var(--d, 0) * .12));
  z-index: calc(10 - var(--d, 0) * 2); position: relative;
  filter: drop-shadow(0 0 1px rgba(244,248,239,.9)) drop-shadow(3px 4px 0 rgba(0,0,0,.45)) brightness(calc(1 - var(--d, 0) * .15));
}
.mint-stack[data-count="1"] img { width: 88px; }
.mint-qty { font-size: 22px; color: var(--chalk); }
.mint-each { font-size: 7px; color: #b8e6c0; }
.mint-price { display: flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 12px; color: var(--led); text-shadow: 0 0 6px rgba(255,210,61,.45), 2px 2px 0 #3a2306; background: var(--board); border: 2px solid #000; box-shadow: inset 0 0 0 1px #b8901e; }
.mint-price img { width: 16px; height: 16px; image-rendering: pixelated; }
.mint-opt .pix-btn { width: 100%; font-size: 10px; }
#mint-result { margin-top: 14px; padding-top: 12px; border-top: 2px solid #8b8b8b; box-shadow: inset 0 2px 0 #fff; }
#mint-result h3 { margin: 0 0 10px; font-size: 10px; color: #2a7a1e; }
.mint-got { display: flex; flex-wrap: wrap; gap: 6px; }
.got { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; background: var(--slot); border: 3px solid; }
.got canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.got span { font-size: 6px; padding: 1px 3px; color: #fff; text-shadow: 1px 1px 0 #000; border: 1px solid #000; }

.trade-btn { margin-top: 10px; width: 100%; font-size: 11px; }

#market-panel {
  position: absolute; z-index: 6;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1180px, calc(100% - 20px)); height: calc(100% - 20px);
  display: flex; flex-direction: column;
  padding: 16px 18px;
  box-shadow: inset 4px 4px 0 var(--panel-light), inset -4px -4px 0 var(--panel-dark), 0 10px 40px rgba(0,0,0,.6);
  animation: pop-in .15s ease-out;
}
#market-panel h2 { font-size: 14px; }
.mk-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mk-tabs, .mk-modes { display: flex; gap: 6px; }
.mk-tab, .mk-mode, .mk-chip {
  font-family: inherit; color: #fff; cursor: pointer;
  border: 3px solid #000; text-shadow: 2px 2px 0 #3a3a3a;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.3), inset -3px -3px 0 rgba(0,0,0,.35);
}
.mk-tab { font-size: 11px; padding: 9px 14px; background: #6a6a6a; }
.mk-tab.active { background: #8a4fc4; }
.mk-mode { font-size: 9px; padding: 7px 10px; background: #6a6a6a; }
.mk-mode.active { background: var(--green); }
#mk-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
#mk-filters:empty { display: none; }
.mk-chip { font-size: 7px; padding: 5px 8px; background: var(--chip, #5a5a5a); opacity: .55; }
.mk-chip.active { opacity: 1; outline: 2px solid #fff; outline-offset: -5px; }
#mk-note { margin: 0 0 10px; }
#mk-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; align-content: start; }
#mk-list.houses { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.mk-empty { grid-column: 1 / -1; font-size: 9px; color: #5a5a5a; text-align: center; padding: 30px 0; }
.mk-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; align-content: start;
  padding: 8px 10px;
  background: var(--slot);
  box-shadow: inset 3px 3px 0 var(--slot-dark), inset -3px -3px 0 #e0e0e0;
  border-left: 5px solid var(--rc, #555);
  color: #fff; text-shadow: 1px 1px 0 #3a3a3a; font-size: 8px; min-width: 0;
}
.mk-card canvas { width: 56px; height: 56px; image-rendering: pixelated; background: rgba(0,0,0,.18); border: 2px solid #000; }
.mk-card .mk-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mk-card .mk-name { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-card .rar { align-self: flex-start; font-size: 6px; padding: 2px 4px; border: 1px solid #000; }
.mk-card .skills { display: flex; flex-wrap: wrap; gap: 2px; }
.mk-card .skills .sk { width: 18px; height: 18px; }
.mk-card .stats { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: 7px; color: #e8e8e8; }
.mk-meta { font-size: 6px; color: #e0e0e0; }
.mk-card > .mk-meta { grid-column: 1 / -1; }
.mk-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 2px; }
.mk-price { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #ffd23d; text-shadow: 2px 2px 0 #5a3a00; white-space: nowrap; }
.mk-price img { width: 14px; height: 14px; image-rendering: pixelated; }
.mk-foot .pix-btn { font-size: 8px; padding: 7px 10px; }
.mk-sell { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.mk-sell input { width: 100%; font-family: inherit; font-size: 10px; padding: 6px; border: 3px solid #000; background: #222; color: #ffd23d; }
.mk-sell small { grid-column: 1 / -1; font-size: 6px; color: #e8e8e8; }
.mk-sell .pix-btn { font-size: 8px; padding: 7px 10px; }
.mk-house { grid-template-columns: 1fr; }
.mk-house > img { width: 100%; height: 90px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.mk-house .mk-info { align-items: center; text-align: center; }
.mk-card.mine { background: #8f86a0; }

#house-panel {
  position: absolute; z-index: 6;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1180px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow-y: auto;
  padding: 16px 18px;
  box-shadow: inset 4px 4px 0 var(--panel-light), inset -4px -4px 0 var(--panel-dark), 0 10px 40px rgba(0,0,0,.6);
  animation: pop-in .15s ease-out;
}
#house-panel h2 { font-size: 14px; }
#house-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.house-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 8px 12px;
  background: var(--slot);
  box-shadow: inset 3px 3px 0 var(--slot-dark), inset -3px -3px 0 #e0e0e0;
  color: #fff; text-shadow: 2px 2px 0 #3a3a3a; text-align: center;
}
.house-card.owned { background: #9fb59a; box-shadow: inset 3px 3px 0 #2e5a24, inset -3px -3px 0 #e6ffe0, 0 0 0 2px #3fa02e; }
.house-img { width: 100%; aspect-ratio: 3 / 2; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(ellipse at 50% 85%, rgba(255,210,120,.35), rgba(0,0,0,0) 70%); }
.house-img img { max-width: 100%; max-height: 100%; image-rendering: auto; filter: drop-shadow(0 4px 4px rgba(0,0,0,.45)); }
.house-name { font-size: 10px; }
.house-info { width: 100%; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 6px; font-size: 8px; text-align: left; }
.house-info dt { color: #f0f0f0; }
.house-info dd { margin: 0; text-align: right; color: #ffd23d; text-shadow: 1px 1px 0 #5a3a00; white-space: nowrap; }
.house-info dd.gold { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.house-info dd img { width: 12px; height: 12px; image-rendering: pixelated; }
.house-boost { margin: 0; font-size: 7px; line-height: 1.5; color: #fff6b0; text-align: left; }
.house-outside { grid-column: 1 / -1; margin: 0 0 4px; font-size: 8px; color: #3f3f3f; }
.house-outside b { color: #b8281e; font-weight: normal; }
.house-card .pix-btn { width: 100%; font-size: 10px; margin-top: auto; }
.house-owned { width: 100%; padding: 8px 4px; font-size: 8px; background: #2e5a24; border: 3px solid #000; }
@media (max-width: 1200px) { #house-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

#rest-panel { height: auto; max-height: calc(100% - 20px); width: min(1000px, 88%); }
#rest-list { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 10px; }
.rest-house {
  --t-bg: #6e4a2a; --t-line: #5a3a1e; --t-edge: #3a2412; --t-card: rgba(0,0,0,.28); --t-head: #fff;
  padding: 10px 12px 12px;
  background: repeating-linear-gradient(0deg, var(--t-bg) 0 14px, var(--t-line) 14px 16px);
  border: 4px solid var(--t-edge);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.18), inset -3px -3px 0 rgba(0,0,0,.3);
}

.theme-cabin   { --t-bg: #8a5a2a; --t-line: #6e4420; --t-edge: #3a2412; }

.theme-manor   { --t-bg: #5a5a62; --t-line: #46464e; --t-edge: #6e4420; }

.theme-stone   { --t-bg: #b8bcc4; --t-line: #9aa0a8; --t-edge: #5a5e66; --t-card: rgba(40,40,50,.35); }

.theme-gold    { --t-bg: #e0b020; --t-line: #c89410; --t-edge: #7a5208; --t-card: rgba(90,50,0,.35); }

.theme-diamond { --t-bg: #3ecfc4; --t-line: #2aa8a0; --t-edge: #0e5a58; --t-card: rgba(0,50,60,.35); }
.rh-head { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 14px; color: var(--t-head); text-shadow: 2px 2px 0 rgba(0,0,0,.6); }
.rest-house.busy .rh-head { margin-bottom: 10px; }
.rh-head img.rh-img { width: 96px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.rh-title b { display: block; font-size: 12px; font-weight: normal; margin-bottom: 6px; }
.rh-title span { display: block; font-size: 8px; line-height: 1.6; }
.rh-beds { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rh-beds small { font-size: 8px; }
.rh-slots { display: grid; grid-template-columns: repeat(7, 18px); gap: 3px; justify-content: end; }
.rh-slot { width: 18px; height: 18px; image-rendering: pixelated; background: rgba(0,0,0,.35); border: 1px solid rgba(0,0,0,.6); }
.rh-slot.free { opacity: .35; filter: grayscale(1); }
.rh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rest-card {
  display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: center;
  padding: 6px 8px;
  background: var(--t-card);
  border: 2px solid rgba(0,0,0,.45);
  color: #fff; text-shadow: 1px 1px 0 #000;
  font-size: 8px; line-height: 1.5;
  min-width: 0;
}
.rest-card .rc-info { min-width: 0; }
.rest-card canvas { width: 48px; height: 48px; image-rendering: pixelated; background: rgba(0,0,0,.25); border: 2px solid #000; }
.rest-card .name { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rest-card .rar { display: inline-block; padding: 1px 4px; font-size: 7px; border: 1px solid #000; margin: 2px 0 4px; }
.rest-card .energy { height: 7px; margin-bottom: 3px; }
.rc-time { font-size: 7px; }

#mint-anim {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(40,30,20,.88), rgba(10,8,6,.95) 70%);
  cursor: pointer;
}
#mint-anim .anim-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.anim-box {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto;
  padding: 12px;
}
.anim-box > * { flex-shrink: 0; }
.anim-fx { width: min(480px, 92%); height: auto; image-rendering: pixelated; }
.anim-title { min-height: 16px; font-size: 12px; color: #fff; text-shadow: 2px 2px 0 #000; text-align: center; }
.anim-title b { font-weight: normal; }
.anim-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; }
.anim-ok { cursor: pointer; }
.got.pop { animation: got-pop .38s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes got-pop { from { transform: translateY(24px) scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
.got.shine { box-shadow: 0 0 0 2px #fff, 0 0 18px 4px currentColor; animation: got-pop .38s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes shine { to { box-shadow: 0 0 0 2px #fff, 0 0 28px 8px currentColor; } }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal-box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; line-height: 1.8; font-size: 10px; }
.modal-box.wide { width: min(720px, 100%); }
.modal-box h2 { margin-top: 0; font-size: 13px; }
.modal-close { position: absolute; right: 10px; top: 10px; background: none; border: none; color: var(--ink); font-size: 16px; cursor: pointer; font-family: inherit; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.small { font-size: 8px; line-height: 1.8; word-break: break-word; }

#toast {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  background: rgba(16,16,16,.92); color: #fff;
  border: 3px solid #5a5a5a;
  font-size: 10px; line-height: 1.6;
  z-index: 20;
}

#stage > #toast { position: absolute; top: 12px; bottom: auto; z-index: 4; pointer-events: none; text-align: center; }

.hidden { display: none !important; }

@media (max-width: 1500px) and (min-width: 901px) {
  #topbar { padding: 8px 10px; gap: 8px; }
  .tb-row { gap: 6px; }
  #topbar .pix-btn { font-size: 8px; padding: 7px 8px; }
  #topbar #btn-sound { height: 30px; padding: 0 8px; gap: 6px; }
  #topbar #btn-mute { height: 30px; padding: 0 8px; min-width: 0; }
  .ca-box { height: 30px; }
  .ca-label, .ca-addr { font-size: 9px; }
}

@media (max-width: 900px) {
  :root { --stage-w: 100%; }

  #drawer, #rest-panel { position: fixed; left: 0; right: 0; bottom: 0; transform: none; width: auto; min-width: 0; height: 75vh; animation: none; }
  #rest-panel { height: auto; max-height: 75vh; }
  .hero-section, .hero-card { --cu: 0.85px; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mint-panel, #house-panel, #market-panel { position: fixed; }
  #market-panel { height: calc(100vh - 20px); }
  #mk-list, #mk-list.houses { grid-template-columns: 1fr; }
  .trade-btn { margin-top: 8px; }
  #house-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mint-options { grid-template-columns: 1fr; }
  #droprate { position: fixed; left: 16px; right: 16px; top: 120px; width: auto; max-width: none; }
  .dr-row { grid-template-columns: 100px 1fr auto; gap: 8px; }
  .hero-section.active { min-height: 0; }
  #app { width: auto; }
  .play { flex-direction: column; align-items: stretch; }
  .main-col { width: auto; }
  #inventory { width: auto; align-self: stretch; padding: 10px; border-left: 4px solid var(--wood-dark); border-top: 4px solid var(--wood-dark); margin-top: 10px; }

  #bottom-tabs { margin: -4px auto 0; transform: none; }
  .social { width: auto; flex-direction: row; }
  .social-btn { flex: 1; padding: 10px 8px; font-size: 9px; }
  .inv-title { display: none; }
  .bal-chip { height: 34px; }
  #topbar .pix-btn { height: 30px; }
  #hotbar { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px; }
  .inv-name, .inv-sep { display: none; }
}

@media (max-width: 640px) {
  #app { padding: 8px 8px 60px; }
  .stat { font-size: 12px; }
  #stage { padding: 4px; }
  .slot { width: 44px; height: 44px; margin: 1px; }
  .slot canvas { width: 32px; height: 32px; }
  .slot .qty { font-size: 8px; }
}

.wd-box { margin-top: 14px; padding-top: 12px; border-top: 2px solid #8b8b8b; display: flex; flex-direction: column; gap: 8px; }
.wd-box h3 { margin: 0; font-size: 11px; }
.wd-field { display: flex; flex-direction: column; gap: 4px; font-size: 8px; }
.wd-field input { font-family: inherit; font-size: 10px; padding: 7px; border: 3px solid #000; background: #222; color: #ffd23d; }
#wd-list h4 { margin: 6px 0; font-size: 9px; }
.wd-item { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: center; font-size: 7px; padding: 5px 6px; background: rgba(0,0,0,.08); margin-bottom: 3px; }
.wd-item b { font-weight: normal; }
.wd-item b.pending { color: #b06a00; }
.wd-item b.paid { color: #1e7a14; }

#gate {
  position: absolute; inset: 10px; z-index: 7;
  display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
  background: repeating-linear-gradient(0deg, #2b2b30 0 30px, #24242a 30px 32px), #2b2b30;
}
body.locked #topbar .tb-bottom button:not(#btn-wallet):not(#btn-mute):not(#btn-sound), body.locked #bottom-tabs button, body.locked #btn-houses, body.locked #btn-fusion-side { opacity: .45; pointer-events: none; }
.gate-box { width: min(460px, 100%); padding: 26px 24px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.gate-box .logo { margin: 0 0 4px; padding: 12px 8px 10px; font-size: 26px; background: var(--board); border: 3px solid #000; }
.gate-sub { margin: 0; font-size: 10px; line-height: 1.6; color: #3a3a3a; }
.gate-main { font-size: 13px; padding: 14px; }
#gate-wallets { display: flex; flex-direction: column; gap: 8px; }
.gate-wallet {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  font-family: inherit; font-size: 10px; color: #fff; text-decoration: none; cursor: pointer; text-align: left;
  background: #3a3a3a; border: 3px solid #000; box-shadow: inset 3px 3px 0 #5a5a5a, inset -3px -3px 0 #1e1e1e;
}
.gate-wallet:hover { background: #4a4a52; }
.gate-wallet img { width: 28px; height: 28px; border-radius: 6px; }
.gw-dot { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #9945ff, #14f195); flex: none; }
#gate-msg { min-height: 1em; margin: 0; color: #3a3a3a; }
.gate-note { margin: 0; font-size: 7px; line-height: 1.6; color: #6a6a6a; }

.ref-box { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.ref-box h3 { margin: 0; font-size: 11px; }
.ref-code { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 8px; }
.ref-code b { font-weight: normal; font-size: 14px; letter-spacing: 2px; color: #ffd23d; background: #222; border: 3px solid #000; padding: 6px 8px; text-align: center; }
.ref-code .pix-btn { font-size: 8px; padding: 7px 9px; }
.ref-use { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ref-use input, .gate-ref input { font-family: inherit; font-size: 10px; padding: 7px; border: 3px solid #000; background: #222; color: #ffd23d; text-transform: uppercase; }
.ref-use .pix-btn { font-size: 8px; padding: 7px 10px; }
#ref-msg:empty { display: none; }
.gate-ref { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 8px; color: #3a3a3a; }

.wd-balance { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 6px 0 4px; background: var(--board); border: 3px solid #000; }
.wd-balance .ico { width: 30px; height: 30px; }
.wd-balance b { display: block; font-weight: normal; font-size: 15px; color: #ffd23d; text-shadow: 2px 2px 0 #5a3a00; }
.wd-balance small { display: block; margin-top: 4px; font-size: 7px; color: #c8c8c8; }
#withdraw-panel .wd-box { border-top: none; padding-top: 4px; }
.wd-amount-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.wd-amount-row .pix-btn { font-size: 8px; padding: 6px 10px; }
.wd-rules { line-height: 1.6; margin: 0; }
.wd-rules b { color: #8a5a00; font-weight: normal; }
.wd-calc { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 9px; padding: 8px 10px; background: rgba(0,0,0,.08); border: 2px solid rgba(0,0,0,.2); }
.wd-calc:empty { display: none; }
.wd-calc b { font-weight: normal; text-align: right; color: #a33; }
.wd-calc b.recv { color: #2a7a1a; }

.pay-choice-box { max-width: 420px; }
.pay-choice-box .small b { color: #8a5a00; font-weight: normal; }
.pay-choice-btns { display: grid; gap: 10px; margin-top: 12px; }
.pay-choice-btns .pix-btn { padding: 14px; font-size: 11px; }

.drawer-actions .fusion-btn { margin-left: auto; font-size: 11px; padding: 9px 18px; animation: fusion-glow 1.6s ease-in-out infinite; }
@keyframes fusion-glow { 50% { box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -3px 0 rgba(0,0,0,.35), 0 0 12px 2px #b06cff; } }
.fusion-side { margin-top: 8px; animation: fusion-glow 1.6s ease-in-out infinite; }
.fusion-box { width: min(860px, 100%); }
.fusion-box .small b { color: #6a2fa0; font-weight: normal; }
.fusion-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.fusion-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.fusion-card { cursor: pointer; }
.fusion-card:hover { filter: brightness(1.1); }
.fusion-card.picked { outline: 3px solid #b06cff; outline-offset: -3px; background: #7a5a9a; }
.fusion-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.fusion-foot #fusion-info { flex: 1; min-width: 200px; font-size: 9px; }
.fusion-foot #fusion-info b { font-weight: normal; color: #6a2fa0; }

.fusion-foot #fusion-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fu-sel b { color: #6a2fa0; }
.fu-rar { display: inline-block; padding: 3px 6px; color: #fff; text-shadow: 1px 1px 0 #000; border: 2px solid #000; font-size: 8px; }
.fu-cost { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; background: var(--board); border: 3px solid #000; box-shadow: inset 0 0 0 2px #ffd23d; color: #ffd23d; font-size: 13px; text-shadow: 2px 2px 0 #000; }
.fu-cost .ico { width: 24px; height: 24px; background-size: contain; image-rendering: pixelated; }
.fu-cost small { display: block; font-size: 7px; color: #e8c86a; margin-bottom: 3px; }
.fu-cost.short { box-shadow: inset 0 0 0 2px #e04040; color: #ff7a7a; }

@keyframes stake-flow { to { background-position: 300% 0; } }
@keyframes stake-pulse { 50% { box-shadow: inset 3px 3px 0 rgba(255,255,255,.6), inset -3px -3px 0 rgba(120,60,0,.45), 0 0 24px 7px rgba(255,210,61,.95); } }
.stake-box { width: min(560px, 100%); }
.stake-now { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.stake-now > div { padding: 10px 12px; background: var(--board); border: 3px solid #000; box-shadow: inset 0 0 0 2px #ffd23d; }
.stake-now small { display: block; font-size: 7px; color: #e8c86a; margin-bottom: 4px; }
.stake-now b { font-weight: normal; font-size: 14px; color: #ffd23d; text-shadow: 2px 2px 0 #000; }
.stake-now b.buff { color: #9dff7a; }
.stake-tiers { display: grid; gap: 4px; margin-bottom: 12px; }
.stake-tier { display: flex; justify-content: space-between; padding: 6px 10px; font-size: 9px; background: rgba(0,0,0,.08); border: 2px solid rgba(0,0,0,.2); }
.stake-tier b { font-weight: normal; color: #2a7a1a; }
.stake-tier.on { background: #ffd23d; border-color: #000; box-shadow: 0 0 10px rgba(255,210,61,.8); }

.stake-tier b.nerf { color: #b8321e; }

.stake-grace { margin: 0 0 10px; padding: 8px 10px; font-size: 9px; line-height: 1.7; background: #e4f6dc; border: 2px solid #5fbf3a; color: #1e4a12; }
.stake-grace b { color: #2a7a1a; }
.stake-now b.buff.nerf { color: #ff7a5a; font-size: 12px; }
#stake-badge.nerf { color: #ff7a5a; }
.stake-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.stake-form .small b { color: #8a5a00; font-weight: normal; }

.mix-match span { color: #e9c75c; }
.mix-match input[type=range] { --accent: #d8aa32; }
.mix-match b { color: #e9c75c !important; }

.anim-reroll { font-size: 12px; padding: 12px 20px; animation: fusion-glow 1.4s ease-in-out infinite; }
.anim-ok { margin-top: -2px; }
.anim-confirm { max-width: 420px; padding: 14px 16px; background: var(--board); border: 3px solid #000; box-shadow: inset 0 0 0 2px #ff9f1a; color: #fff; text-align: center; font-size: 10px; line-height: 1.7; text-shadow: 2px 2px 0 #000; cursor: default; }
.anim-confirm b { color: #ffd23d; font-weight: normal; }
.anim-confirm > div { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
:is(#pay-choice, #demo-leave) { z-index: 60; }
.anim-reroll small { font-size: 9px; opacity: .85; }

.wp-btn { display: block; text-align: center; text-decoration: none; font-size: 8px; padding: 7px 6px; background-color: #173a26; margin-top: auto; }
.side-col .wp-btn + .social { margin-top: 0; }

.side-col { gap: 8px; }
.wp-btn { padding: 5px 6px; font-size: 7px; }
.side-col .social .social-btn { padding: 7px 4px; }
.side-col { gap: 6px; }
.side-col .social .social-btn { padding: 6px 4px; }

.drawer-actions .auto-btn { font-size: 10px; padding: 9px 16px; background: #6a6a6a; }
.drawer-actions .auto-btn.on { background: var(--green); animation: auto-glow 1.6s ease-in-out infinite; }
.drawer-actions .auto-btn b { font-weight: normal; color: #fff; }
@keyframes auto-glow { 50% { box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -3px 0 rgba(0,0,0,.35), 0 0 12px 2px #7dff4a; } }

#btn-buy.super-on { background: #9b45d6; animation: super-glow 1.2s ease-in-out infinite; }
@keyframes super-glow { 50% { box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -3px 0 rgba(0,0,0,.35), 0 0 16px 4px #c07af5; filter: brightness(1.15); } }
.super-mint { margin: 0 0 12px; padding: 10px 12px; background: radial-gradient(120% 120% at 50% 0%, #5a1f8f 0%, #24083a 70%); border: 3px solid #000; box-shadow: inset 0 0 0 2px #c07af5, 0 0 14px 2px rgba(192,122,245,.6); color: #fff; text-shadow: 2px 2px 0 #000; animation: super-glow 1.6s ease-in-out infinite; }
.sm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 9px; }
.sm-head b { font-weight: normal; font-size: 13px; color: #ffd8ff; letter-spacing: 1px; }
.sm-timer { margin-left: auto; color: #ffd23d; font-size: 10px; }
.sm-odds { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; font-size: 8px; }
.sm-odds span { padding: 3px 6px; background: var(--c); border: 2px solid #000; }
.sm-odds b { font-weight: normal; color: #fff; }
.sm-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sm-buy { background: #b03ad8; font-size: 10px; line-height: 1.8; padding: 8px; }
.sm-buy small { font-size: 9px; color: #ffd23d; }
.sm-buy img { width: 12px; height: 12px; vertical-align: -2px; image-rendering: pixelated; }

#btn-buy.hero-on { background-color: var(--green); animation: hero-glow 1.6s ease-in-out infinite; }
@keyframes hero-glow { 50% { box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -3px 0 rgba(0,0,0,.35), 0 0 14px 3px #ffffff; } }

#app { position: relative; }

@keyframes hm-blink { 50% { filter: brightness(1.6); box-shadow: 0 0 0 3px #fff, 0 0 26px 10px #fff; } }
.got.got-legend { background: #fbf6e6; animation: got-pop .38s cubic-bezier(.2, 1.7, .4, 1) both !important; }
.got.got-legend span { color: #8a6410; text-shadow: none; }
#mint-anim.legend .anim-box { animation: none; }
@keyframes hm-box-flash { 50% { filter: brightness(1.5) drop-shadow(0 0 16px #fff); } }

@keyframes hm-aura { 50% { transform: scale(1.12); opacity: .65; } }

@keyframes hm-aura-big { 50% { inset: -22px; } }
@keyframes hm-aura-mini { 50% { inset: -13px; } }
@keyframes hm-aura-big { 50% { inset: -24px; } }
@keyframes hm-aura-mini { 50% { inset: -14px; } }

.mk-tag { font-size: 9px; filter: drop-shadow(1px 1px 0 #000); }


.stake-rarity { margin: 0 0 8px; line-height: 1.7; }
.stake-rarity b { font-weight: normal; }
.wd-tiers { grid-column: 1 / -1; display: block; margin-top: 6px; font-size: 7px; line-height: 1.6; color: #8a8a90; }

@media (min-width: 901px) {
  /* The stage grows until the page reaches the bottom of the window, without scrolling:
     the 1120×614 canvas (ratio 1.8241) plus 28px of padding and border, under the
     topbar and tabs, less 4px for canvas rounding. ui.js measures that chrome into --chrome-h. */
  :root { --stage-w: max(560px, min(calc(100vw - 32px), calc((100dvh - var(--chrome-h, 231px) - 32px) * 1.8241 + 28px))); }
  #app { width: calc(var(--stage-w) + 32px); }
}
.play { flex-direction: column; align-items: stretch; }
.main-col { width: auto; }
.side-col { align-self: stretch; }
#inventory { width: auto; align-self: stretch; padding: 10px; border-left: 4px solid var(--wood-dark); border-top: 4px solid var(--wood-dark); margin-top: 10px; }
#bottom-tabs { margin: -4px auto 0; transform: none; }
.social { width: auto; flex-direction: row; }
.social-btn { flex: 1; }

#mint-panel {
  padding: 0 0 16px; color: var(--chalk);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,255,220,.12), transparent 70%),
    linear-gradient(180deg, #11281a, #08140d);
  border: 3px solid #000;
  box-shadow: inset 0 0 0 3px rgba(244,248,239,.85), inset 0 0 0 6px rgba(0,0,0,.4), 0 14px 44px rgba(0,0,0,.7);
}
#mint-panel .drawer-head {
  position: sticky; top: 0; z-index: 3;
  margin: 0 0 12px; padding: 12px 16px;
  background: var(--board); border-bottom: 2px dashed rgba(244,248,239,.35);
  box-shadow: inset 0 3px 0 rgba(244,248,239,.85), inset 3px 0 0 rgba(244,248,239,.85), inset -3px 0 0 rgba(244,248,239,.85);
}
#mint-panel h2 { margin: 0; font-size: 15px; color: var(--chalk); letter-spacing: 1px; text-shadow: 2px 2px 0 #1f7a3a, 4px 4px 0 rgba(0,0,0,.5); }
#mint-panel h2::before { content: "⚽"; margin-right: 8px; font-size: 13px; text-shadow: none; }
#mint-panel .drawer-close { width: 30px; height: 30px; padding: 0; color: var(--chalk); background: #1b3a27; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.2); font-size: 13px; }
#mint-panel .drawer-close:hover { background: #e0483a; }
#mint-panel .mint-sub { margin: 0 16px 14px; font-size: 8px; line-height: 1.6; color: #9fd8a8; }
#mint-panel #mint-options, #mint-panel .super-mint, #mint-panel #mint-result { margin-left: 16px; margin-right: 16px; }

#mint-panel .pix-btn.droprate { background-color: var(--board); color: var(--led); border: 2px solid #000; box-shadow: inset 0 0 0 1px #b8901e; text-shadow: 1px 1px 0 #000; }
#mint-panel .droprate-wrap:hover .pix-btn.droprate { background-color: #1b3a27; color: #fff; }

#mint-panel .mint-opt { box-shadow: inset 0 0 0 2px rgba(244,248,239,.55), inset 0 -40px 30px -20px rgba(0,0,0,.45); }
#mint-panel .mint-opt:hover { box-shadow: inset 0 0 0 2px var(--led), inset 0 -40px 30px -20px rgba(0,0,0,.45), 0 0 18px rgba(255,210,61,.25); }
#mint-panel .mint-opt .pix-btn { font-size: 11px; padding: 11px 12px; }
#mint-panel .mint-opt .pix-btn:not(:disabled) { animation: mint-ready 1.8s ease-in-out infinite; }
@keyframes mint-ready { 50% { box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -3px 0 rgba(0,0,0,.35), 0 0 12px rgba(111,224,138,.7); } }

#mint-panel #mint-result { margin-top: 16px; padding: 12px; background: var(--board); border: 3px solid #000; box-shadow: inset 0 0 0 2px #2a4a34; }
#mint-panel #mint-result h3 { margin: 0 0 10px; font-size: 10px; color: #6fe08a; text-shadow: 1px 1px 0 #000; }
#mint-panel .mint-got { gap: 8px; }
#mint-panel .got { background: #13291b; border-width: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }

#mint-anim { background: radial-gradient(circle at 50% 40%, rgba(17,40,26,.9), rgba(4,10,6,.96) 70%); }
.flip-stage { position: relative; width: 210px; height: 315px; flex: none; perspective: 900px; margin: 38px 0 4px; }
.flip-card { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 0 14px var(--glow, #fff)) drop-shadow(0 10px 12px rgba(0,0,0,.6)); }
.flip-face img { width: 100%; height: 100%; display: block; image-rendering: pixelated; user-select: none; pointer-events: none; }
.flip-front { transform: rotateY(180deg); }

.flip-face .flip-player { position: absolute; left: 50%; top: 9%; width: 62%; height: auto; aspect-ratio: 1; transform: translateX(-50%); image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.45)); }
.flip-info { position: absolute; left: 12%; right: 12%; top: 52.5%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.flip-info b { font-weight: normal; font-size: 15px; color: #fff; text-shadow: 2px 2px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.flip-info span { padding: 4px 8px; font-size: 10px; letter-spacing: 1px; border: 2px solid; box-shadow: 0 2px 0 rgba(0,0,0,.5); }
.flip-stage .anim-fx { position: absolute; left: 50%; top: 50%; width: 320px; height: 400px; transform: translate(-50%, -50%); pointer-events: none; image-rendering: pixelated; }

.hero-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 14px 12px; }
.hero-card.pcard { display: flex; flex-direction: column; gap: 6px; padding: 0; background: none; box-shadow: none; border: 0; color: var(--ink); grid-template-columns: none; }
.hero-card.pcard.active, .hero-card.pcard.resting { background: none; box-shadow: none; opacity: 1; filter: none; }
.pc-card { position: relative; width: 100%; aspect-ratio: 2 / 3; container-type: inline-size; color: #fff; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); transition: transform .12s; }
.pcard:hover .pc-card { transform: translateY(-3px); }
.pc-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }

.pc-face { position: absolute; left: 50%; top: 10%; width: 64%; transform: translateX(-50%); image-rendering: pixelated; pointer-events: none; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); }

.pc-top { align-self: flex-start; display: flex; align-items: center; gap: 6px; margin: 0 0 -7% 8%; position: relative; z-index: 1; }
.pc-id { font-size: 8px; color: #fff; text-shadow: 1px 1px 0 #000; }
.pcard .role { position: absolute; right: 15%; top: 11%; margin: 0; padding: 1cqw 2.5cqw; font-size: 4.5cqw; border: 2px solid #000; color: #fff; text-shadow: 1px 1px 0 #000; }

.pc-name { position: absolute; left: 9%; right: 9%; top: calc(53% + 10.6cqw); text-align: center; font-size: calc(64cqw / var(--len, 8)); line-height: 8cqw; height: 8cqw; white-space: nowrap; overflow: hidden; text-shadow: 2px 2px 0 #000; }
.pcard .pc-top .rar { margin: 0; padding: 2px 5px; font-size: 7px; line-height: 1; border: 1px solid; }
.pcard .skills { position: absolute; left: 12%; right: 12%; top: calc(74% - 4.7cqw); display: flex; justify-content: center; gap: 2cqw; margin: 0; }
.pcard .sk { flex: 0 0 13cqw; width: 13cqw; max-width: none; height: 13cqw; padding: 0; border-width: 1px; }
.pcard .stats { position: absolute; left: 15%; right: 15%; top: 77.5%; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqw 6cqw; font-size: 4.4cqw; white-space: nowrap; text-shadow: 1px 1px 0 #000; color: #e8efe3; }
.pcard .stats span:nth-child(odd) { text-align: right; }
.pcard .stats b { color: #fff; font-weight: normal; font-size: 5.2cqw; }

.pcard.r1 .pc-card, .pcard.r4 .pc-card { color: #1d2329; }
.pcard.r1 .pc-name, .pcard.r4 .pc-name, .pcard.r1 .stats, .pcard.r4 .stats { color: #1d2329; text-shadow: 1px 1px 0 rgba(255,255,255,.6); }
.pcard.r1 .stats b, .pcard.r4 .stats b { color: #000; }
.pcard.r4 .pc-name { color: #6a4806; }

.pcard.r3 .pc-name { color: #06243a; text-shadow: 1px 1px 0 rgba(255,255,255,.6); }

.pcard.resting .pc-card { filter: saturate(.45) brightness(.82) drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.pcard .zzz { position: absolute; right: 16%; top: 20%; z-index: 2; font-size: 9cqw; }
.pcard.active .pc-card { filter: drop-shadow(0 0 6px rgba(111,224,138,.8)) drop-shadow(0 4px 0 rgba(0,0,0,.35)); }

.pcard .energy { height: 8px; margin: 0 6%; }
.pcard .row { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin: 0 6%; font-size: 7px; }
.pcard .pix-btn { font-size: 7px; padding: 5px 7px; }
.got .got-face { width: 48px; height: 48px; image-rendering: pixelated; }

#drawer {
  padding: 0 0 12px; color: var(--chalk);
  background:
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(255,255,220,.1), transparent 70%),
    linear-gradient(180deg, #11281a, #08140d);
  border: 3px solid #000;
  box-shadow: inset 0 0 0 3px rgba(244,248,239,.85), inset 0 0 0 6px rgba(0,0,0,.4), 0 14px 44px rgba(0,0,0,.7);
}
#drawer .drawer-head { margin: 0; padding: 12px 16px; background: var(--board); box-shadow: inset 0 3px 0 rgba(244,248,239,.85), inset 3px 0 0 rgba(244,248,239,.85), inset -3px 0 0 rgba(244,248,239,.85); }
#drawer h2 { margin: 0; font-size: 15px; color: var(--chalk); letter-spacing: 1px; text-shadow: 2px 2px 0 #1f7a3a, 4px 4px 0 rgba(0,0,0,.5); }
#drawer h2::before { content: "⚽"; margin-right: 8px; font-size: 13px; text-shadow: none; }
#drawer #ui-hero-count { font-size: 9px; color: var(--led); letter-spacing: 0; text-shadow: 0 0 6px rgba(255,210,61,.4), 1px 1px 0 #000; }
#drawer .drawer-close { width: 30px; height: 30px; padding: 0; color: var(--chalk); background: #1b3a27; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.2); font-size: 13px; }
#drawer .drawer-close:hover { background: #e0483a; }

#drawer .drawer-actions { align-items: center; gap: 8px; margin: 0 0 4px; padding: 10px 16px; background: #0d1f14; border-top: 2px dashed rgba(244,248,239,.3); border-bottom: 2px solid #000; }
#drawer .drawer-actions .pix-btn { font-size: 8px; padding: 8px 10px; }
#drawer .drawer-actions .auto-btn { background-color: #3a4a40; }
#drawer .drawer-actions .auto-btn.on { background-color: var(--green); }
#drawer .drawer-actions .fusion-btn { font-size: 10px; padding: 9px 16px; }
#drawer #hero-list { padding: 8px 16px 0; }

#drawer .hero-section h3 { align-items: center; margin: 4px 0 12px; padding: 7px 10px; font-size: 9px; letter-spacing: 1px; color: var(--chalk); background: var(--board); border: 2px solid #000; box-shadow: inset 0 0 0 1px #2a4a34; }
#drawer .hero-section.active h3 { color: #6fe08a; }
#drawer .hero-section h3 .cnt { margin-left: auto; color: var(--led); }
#drawer .hero-section + .hero-section { margin-top: 18px; padding-top: 0; border-top: 0; box-shadow: none; }
#drawer .empty-note { color: #9fd8a8; }

#drawer .hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 18px 16px; }
#drawer .pcard .energy { height: 10px; background: #050c08; border: 2px solid #000; }
#drawer .pcard .row { font-size: 8px; color: #b8e6c0; }
#drawer .pcard .pix-btn { font-size: 8px; padding: 6px 9px; }
@media (max-width: 700px) { #drawer .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.flip-front.r1 .flip-info b { color: #1d2329; text-shadow: 1px 1px 0 rgba(255,255,255,.6); }
.flip-front.r4 .flip-info b { color: #6a4806; text-shadow: 1px 1px 0 rgba(255,255,255,.6); }
.flip-front.r3 .flip-info b { color: #06243a; text-shadow: 1px 1px 0 rgba(255,255,255,.6); }

.mint-tabs { display: flex; gap: 6px; margin: 0 16px 12px; }
.mint-tab {
  flex: 1; padding: 10px 8px; font: inherit; font-size: 10px; letter-spacing: 1px; cursor: pointer;
  color: #9fd8a8; background: var(--board); border: 2px solid #000;
  box-shadow: inset 0 0 0 1px rgba(244,248,239,.25);
}
.mint-tab:hover { color: #fff; background: #1b3a27; }
.mint-tab.on { color: var(--board); background: var(--led); box-shadow: inset 0 0 0 2px #fff3a0, inset 0 -3px 0 #b8901e; text-shadow: none; }
#mint-panel.tires .super-mint { display: none !important; }
.tire-opt .mint-stack { align-items: center; }
.tire-opt .mint-stack img { width: 76px; margin: 0 -20px; transform: translateY(calc(var(--d, 0) * -8px)) scale(calc(1 - var(--d, 0) * .12)); }
.tire-opt .mint-stack[data-count="1"] img { width: 92px; }
.mint-note { margin: -4px 0 10px; font-size: 7px; line-height: 1.6; color: #9fd8a8; }

.flip-face .flip-tire { top: 24%; width: 80%; aspect-ratio: 2 / 1; image-rendering: pixelated; filter: drop-shadow(3px 4px 0 rgba(0,0,0,.45)); }
.got .got-tireimg { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; margin: 0; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.got .got-bonus { font-size: 6px; color: #6fe08a; text-shadow: 1px 1px 0 #000; }

.pc-tire {
  position: absolute; left: 50%; top: calc(84.5% - 5.9cqw); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 1.5cqw;
  min-width: 34cqw; height: 9cqw; padding: 0 2.5cqw; cursor: pointer;
  font: inherit; color: rgba(244,248,239,.8);
  background: rgba(8,19,13,.82); border: 1px dashed rgba(244,248,239,.55); border-radius: 2px;
}
.pc-tire span { font-size: 6cqw; line-height: 1; color: var(--led); }
.pc-tire i { font-style: normal; font-size: 4.2cqw; letter-spacing: .5px; }
.pc-tire:hover { border-style: solid; border-color: var(--led); color: #fff; }
.pc-tire.on { border: 1px solid var(--bc); background: rgba(8,19,13,.9); box-shadow: 0 0 6px var(--bc); }
.pc-tire.on img { width: 8cqw; height: 8cqw; image-rendering: pixelated; }
.pc-tire.on i { color: #6fe08a; }
.tire-picker {
  position: fixed; z-index: 1200; width: 260px; max-width: calc(100vw - 16px); padding: 10px;
  color: var(--chalk); background: linear-gradient(180deg, #11281a, #08140d);
  border: 3px solid #000; box-shadow: inset 0 0 0 2px rgba(244,248,239,.8), 0 10px 30px rgba(0,0,0,.6);
  font-size: 8px;
}
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bp-head b { font-size: 8px; color: var(--led); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-x { flex: none; width: 22px; height: 22px; padding: 0; font: inherit; color: var(--chalk); background: #1b3a27; border: 2px solid #000; cursor: pointer; }
.bp-x:hover { background: #e0483a; }
.bp-cur { display: flex; align-items: center; gap: 6px; padding: 6px; margin-bottom: 8px; background: var(--board); border: 1px solid #2a4a34; }
.bp-cur img { width: 28px; height: 28px; image-rendering: pixelated; }
.bp-cur span { flex: 1; font-size: 7px; line-height: 1.5; }
.bp-cur .pix-btn { font-size: 7px; padding: 6px 8px; }
.bp-list { display: flex; flex-direction: column; gap: 5px; max-height: 220px; overflow-y: auto; margin-bottom: 8px; }
.bp-item {
  display: grid; grid-template-columns: 36px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 3px;
  padding: 6px 8px; font: inherit; text-align: left; cursor: pointer; color: var(--chalk);
  background: #13291b; border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--bc);
}
.bp-item:hover { background: #1b3a27; box-shadow: inset 0 0 0 2px var(--bc), 0 0 8px var(--bc); }
.bp-item img { grid-row: span 2; width: 36px; height: 36px; image-rendering: pixelated; }
.bp-name { justify-self: start; padding: 2px 5px; font-size: 6px; border: 1px solid; }
.bp-item small { grid-column: 2; font-size: 6px; color: #6fe08a; }
.bp-item em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-size: 9px; color: var(--led); }
.bp-empty { margin: 4px 0 10px; font-size: 7px; line-height: 1.6; color: #9fd8a8; }
.tire-picker .bp-mint { width: 100%; font-size: 8px; padding: 8px; }

.fusion-box.mc-panel {
  width: min(900px, 100%); color: var(--chalk);
  background: radial-gradient(ellipse 80% 30% at 50% 0%, rgba(255,255,220,.1), transparent 70%), linear-gradient(180deg, #11281a, #08140d);
  border: 3px solid #000;
  box-shadow: inset 0 0 0 3px rgba(244,248,239,.85), inset 0 0 0 6px rgba(0,0,0,.4), 0 14px 44px rgba(0,0,0,.7);
}
.fusion-box h2 { margin: 0 0 6px; font-size: 15px; color: var(--chalk); letter-spacing: 1px; text-shadow: 2px 2px 0 #6a2fa0, 4px 4px 0 rgba(0,0,0,.5); }
.fusion-box .small { color: #9fd8a8; }
.fusion-box .small b { color: #d6b3ff; }
.fusion-box .modal-close { color: var(--chalk); width: 30px; height: 30px; background: #1b3a27; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.2); font-size: 13px; }
.fusion-box .modal-close:hover { background: #e0483a; }
.fusion-box .mk-chip { border: 2px solid #000; }
.fusion-list {
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; max-height: 52vh; padding: 10px 6px 6px;
  background: rgba(0,0,0,.25); border: 2px solid #000; box-shadow: inset 0 0 0 1px #2a4a34;
}
@media (max-width: 760px) { .fusion-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fusion-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fusion-list .mk-empty { grid-column: 1 / -1; color: #9fd8a8; }
.fusion-card.pcard { position: relative; cursor: pointer; }
.fusion-card.pcard:hover { filter: none; }
.fusion-card.picked { outline: none; background: none; }
.fusion-card.picked .pc-card { transform: translateY(-3px); filter: drop-shadow(0 0 4px #b06cff) drop-shadow(0 0 10px #b06cff) drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.fu-mark {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); z-index: 3; display: none;
  padding: 3px 6px; font-size: 7px; letter-spacing: 1px; color: #fff; background: #7a3ab0; border: 2px solid #000;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.35), 0 0 8px #b06cff; pointer-events: none;
}
.fusion-card.picked .fu-mark { display: block; }
.fusion-foot #fusion-info { color: var(--chalk); }
.fusion-foot #fusion-info b { color: #d6b3ff; }

.flip-front .flip-pc { position: absolute; inset: 0; filter: none; }
.flip-front.pcard .pc-card, .flip-front.pcard:hover .pc-card { transform: none; }
.flip-face .flip-pc img.pc-bg { width: 100%; height: 100%; }
.flip-face .flip-pc img.pc-face { width: 64%; height: auto; }
.flip-face .flip-pc img.flip-tire { top: 2%; width: 86%; aspect-ratio: 1; height: auto; }
.flip-front .flip-pc .pc-name { text-shadow: 2px 2px 0 #000; }
.flip-front.r1 .flip-pc .pc-name, .flip-front.r3 .flip-pc .pc-name, .flip-front.r4 .flip-pc .pc-name { text-shadow: 1px 1px 0 rgba(255,255,255,.6); }
.flip-pc .flip-bonus { align-items: center; justify-content: center; white-space: nowrap; height: 13cqw; font-size: 5.2cqw; letter-spacing: .5px; transform: translateY(3.8cqw); }
.flip-pc .flip-bonus span {
  padding: 1.4cqw 3cqw; color: #1d2329; text-shadow: 0 1px 0 rgba(255,255,255,.7);
  background: linear-gradient(180deg, #f4f7fa, #b9c1c9 55%, #8a939c); border: 2px solid #4f565e;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(0,0,0,.45);
}

.flip-rar {
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%) scale(.6); opacity: 0; z-index: 3;
  padding: 4px 10px; font-size: 11px; letter-spacing: 1px; border: 2px solid; box-shadow: 0 2px 0 rgba(0,0,0,.5);
  animation: flip-rar-in .35s .55s ease-out forwards; white-space: nowrap;
}
@keyframes flip-rar-in { to { opacity: 1; transform: translateX(-50%) scale(1); } }

.got[class*=" r"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 3px 0 rgba(0,0,0,.45); }
.got[class*=" r"] > span { box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.got[class*=" r"] .got-face { filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.got.got-tire .got-bonus { padding: 1px 3px; background: rgba(8,19,13,.75); }

#house-panel {
  padding: 0 0 16px; color: var(--chalk);
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,255,220,.12), transparent 70%), linear-gradient(180deg, #11281a, #08140d);
  border: 3px solid #000;
  box-shadow: inset 0 0 0 3px rgba(244,248,239,.85), inset 0 0 0 6px rgba(0,0,0,.4), 0 14px 44px rgba(0,0,0,.7);
}
#house-panel .drawer-head {
  position: sticky; top: 0; z-index: 3; margin: 0 0 12px; padding: 12px 16px;
  background: var(--board); border-bottom: 2px dashed rgba(244,248,239,.35);
  box-shadow: inset 0 3px 0 rgba(244,248,239,.85), inset 3px 0 0 rgba(244,248,239,.85), inset -3px 0 0 rgba(244,248,239,.85);
}
#house-panel h2 { margin: 0; font-size: 15px; color: var(--chalk); letter-spacing: 1px; text-shadow: 2px 2px 0 #1f7a3a, 4px 4px 0 rgba(0,0,0,.5); }
#house-panel h2::before { content: "⚽"; margin-right: 8px; font-size: 13px; text-shadow: none; }
#house-panel .drawer-close { width: 30px; height: 30px; padding: 0; color: var(--chalk); background: #1b3a27; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.2); font-size: 13px; }
#house-panel .drawer-close:hover { background: #e0483a; }
#house-panel .mint-sub { margin: 0 16px 10px; font-size: 8px; line-height: 1.6; color: #9fd8a8; }
#house-panel #house-list { margin: 0 16px; gap: 12px; }
#house-panel .house-outside { margin: 0 0 4px; padding: 8px 10px; font-size: 8px; line-height: 1.6; color: #cfe8d4; background: var(--board); border: 2px solid #000; box-shadow: inset 0 0 0 1px #2a4a34; }
#house-panel .house-outside b { color: var(--led); }

#house-panel .house-card {
  position: relative; gap: 8px; padding: 22px 10px 12px; color: var(--chalk); text-shadow: 1px 1px 0 #000;
  background: linear-gradient(180deg, #17331f, #0c1d12);
  border: 3px solid var(--te); box-shadow: inset 0 0 0 2px var(--tc), inset 0 -40px 30px -20px rgba(0,0,0,.45), 0 4px 0 rgba(0,0,0,.45);
  transition: transform .12s, box-shadow .12s;
}
#house-panel .house-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--tc), inset 0 -40px 30px -20px rgba(0,0,0,.45), 0 0 16px var(--tc); }
#house-panel .house-card.owned { box-shadow: inset 0 0 0 2px var(--tc), 0 0 0 2px #6fe08a, 0 0 14px rgba(111,224,138,.45); }
#house-panel .house-card.soldout { filter: saturate(.5); }
.hc-tag { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); padding: 3px 8px; font-size: 7px; letter-spacing: 1px; white-space: nowrap; border: 2px solid; box-shadow: 0 2px 0 rgba(0,0,0,.5); }
#house-panel .house-img { background: radial-gradient(ellipse at 50% 80%, rgba(255,255,220,.22), transparent 70%); }
#house-panel .house-img img { filter: drop-shadow(0 6px 6px rgba(0,0,0,.55)); }
#house-panel .house-name { min-height: 2.6em; display: flex; align-items: center; font-size: 9px; line-height: 1.4; color: var(--tc); }
.hc-speed { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; background: var(--board); border: 2px solid #000; box-shadow: inset 0 0 0 1px #b8901e; }
.hc-speed b { font-weight: normal; font-size: 18px; color: var(--led); text-shadow: 0 0 6px rgba(255,210,61,.45), 2px 2px 0 #3a2306; }
.hc-speed small { font-size: 6px; letter-spacing: 1px; color: #9fd8a8; }
.hc-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hc-stats span { display: flex; flex-direction: column; gap: 3px; padding: 5px 4px; background: rgba(0,0,0,.3); border: 1px solid #2a4a34; }
.hc-stats small { font-size: 6px; letter-spacing: 1px; color: #9fd8a8; }
.hc-stats b { font-weight: normal; font-size: 8px; color: var(--chalk); white-space: nowrap; }
.hc-supply { width: 100%; height: 6px; background: #08130d; border: 1px solid #000; box-shadow: inset 0 0 0 1px #2a4a34; }
.hc-supply i { display: block; height: 100%; background: linear-gradient(90deg, var(--tc), #fff); }
#house-panel .house-boost { width: 100%; font-size: 6px; color: #fff3a0; }
#house-panel .house-owned { display: flex; justify-content: space-between; gap: 4px; padding: 6px 8px; font-size: 7px; color: #d8ffe0; background: #1f5a30; border: 2px solid #000; box-shadow: inset 0 0 0 1px #6fe08a; }
#house-panel .house-owned b { font-weight: normal; color: #6fe08a; }
.hc-price { align-self: stretch; justify-content: center; margin-top: auto; }
#house-panel .house-card .pix-btn { margin-top: 0; font-size: 11px; padding: 10px 12px; }

#house-panel .hc-bench { display: flex; align-items: center; gap: 14px; }
.hc-bench > div { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 12px; background: #08130d; border: 2px solid #000; box-shadow: inset 0 0 0 1px #b8901e; }
.hc-bench small { font-size: 6px; letter-spacing: 1px; color: #9fd8a8; }
.hc-bench > div b { font-weight: normal; font-size: 18px; color: var(--led); text-shadow: 0 0 6px rgba(255,210,61,.45), 2px 2px 0 #3a2306; }
.hc-bench p { margin: 0; }
.hc-bench p b { color: var(--led); }
.hc-sol { color: #d9b8ff; text-shadow: 0 0 6px rgba(176,108,255,.45), 2px 2px 0 #2a0f4a; box-shadow: inset 0 0 0 1px #8a5ad8; }
#house-panel .house-card .pix-btn { font-size: 10px; }

.ref-panel.mc-panel {
  width: min(460px, 100%); color: var(--chalk); line-height: 1.6;
  background: radial-gradient(ellipse 80% 30% at 50% 0%, rgba(255,255,220,.12), transparent 70%), linear-gradient(180deg, #11281a, #08140d);
  border: 3px solid #000;
  box-shadow: inset 0 0 0 3px rgba(244,248,239,.85), inset 0 0 0 6px rgba(0,0,0,.4), 0 14px 44px rgba(0,0,0,.7);
}
.ref-panel h2 { margin: 0 0 4px; font-size: 15px; color: var(--chalk); letter-spacing: 1px; text-shadow: 2px 2px 0 #1f8a7a, 4px 4px 0 rgba(0,0,0,.5); }
.ref-panel h2::before { content: "⚽"; margin-right: 8px; font-size: 13px; text-shadow: none; }
.ref-panel .modal-close { color: var(--chalk); width: 30px; height: 30px; background: #1b3a27; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.2); font-size: 13px; }
.ref-panel .modal-close:hover { background: #e0483a; }
.ref-panel .ref-box { gap: 12px; }

.ref-hero { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--board); border: 2px solid #000; box-shadow: inset 0 0 0 1px #b8901e; }
.ref-hero b { flex: none; font-weight: normal; font-size: 30px; color: var(--led); text-shadow: 0 0 10px rgba(255,210,61,.5), 3px 3px 0 #3a2306; }
.ref-hero p { margin: 0; font-size: 8px; line-height: 1.7; color: #cfe8d4; }

.ref-panel .ref-code { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px; background: rgba(0,0,0,.28); border: 2px solid #000; box-shadow: inset 0 0 0 1px #2a4a34; }
.ref-code small, .ref-stats small, .ref-use small { font-size: 6px; letter-spacing: 1px; color: #9fd8a8; }
.ref-panel .ref-code b { font-size: 20px; letter-spacing: 4px; color: var(--led); background: #08130d; border: 2px solid #000; box-shadow: inset 0 0 0 1px #b8901e; padding: 10px; text-shadow: 0 0 8px rgba(255,210,61,.45); }
.ref-link { font-size: 7px; color: #cfe8d4; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.ref-panel .ref-code .pix-btn { font-size: 10px; padding: 10px; }

.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ref-stats div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; background: var(--board); border: 2px solid #000; box-shadow: inset 0 0 0 1px #2a4a34; }
.ref-stats b { font-weight: normal; font-size: 16px; color: #6fe08a; text-shadow: 0 0 6px rgba(111,224,138,.45), 2px 2px 0 #000; }

.ref-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ref-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; text-align: center; font-size: 6.5px; line-height: 1.6; color: #cfe8d4; background: rgba(0,0,0,.25); border: 1px dashed rgba(244,248,239,.3); }
.ref-steps b { width: 20px; height: 20px; display: grid; place-items: center; font-weight: normal; font-size: 9px; color: var(--board); background: var(--led); border: 2px solid #000; }
.ref-by { margin: 0; padding: 8px; font-size: 8px; text-align: center; color: #6fe08a; background: rgba(31,90,48,.4); border: 1px solid #2f7a45; }

.ref-panel .ref-use { display: flex; flex-direction: column; gap: 6px; }
.ref-panel .ref-use.hidden { display: none; }
.ref-use > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ref-panel .ref-use input { font-size: 10px; padding: 9px; letter-spacing: 2px; color: var(--led); background: #08130d; border: 2px solid #000; box-shadow: inset 0 0 0 1px #2a4a34; }
.ref-panel .ref-use input::placeholder { color: rgba(255,210,61,.35); }
.ref-panel .ref-use .pix-btn { font-size: 9px; padding: 9px 14px; }
.ref-panel #ref-msg { margin: 0; font-size: 8px; color: var(--led); }
.ref-stats-err:empty { display: none; }
.ref-stats-err { margin: 0; color: #ff6b5e; }

.hc-cost { align-self: stretch; margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.hc-cost .mint-price { justify-content: center; font-size: 11px; padding: 4px 6px; }
.hc-plus { align-self: center; font-size: 9px; line-height: 1; color: #9fd8a8; }
#house-panel .house-card .pix-btn:disabled { font-size: 8px; }

.release-notice{max-width:1120px;margin:10px auto 18px;padding:14px 16px;border:2px solid #e3bd55;background:#243c2c;color:#ffecb4;font:12px/1.7 Verdana,sans-serif;text-align:center}.gate-box .release-notice{font-size:11px;margin:12px 0}.release-notice.hidden{display:none}

.prelaunch #gate{align-items:flex-start}.prelaunch #gate .gate-box{margin-block:auto}

:root { --site-cream: #f6f3e8; --site-ink: #173d2d; --site-yellow: #ffcd42; --site-green: #d5e8bf; }
html, body { background: var(--site-cream); }
#app { padding-top: 14px; }
#topbar {
  position: relative; z-index: auto; gap: 12px; padding: 12px 16px 15px;
  color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink);
  box-shadow: 4px 4px 0 var(--site-ink); font-family: 'Trebuchet MS', Verdana, sans-serif;
}
.tb-row { gap: 12px; }
.tb-top { min-height: 56px; flex-wrap: nowrap; }
.tb-bottom { padding-top: 12px; border-top: 1px solid #cbd4c0; }
.menu-brand { flex: 0 0 auto; width: 194px; margin: 0; line-height: 0; }
.menu-brand img, .gate-brand img { display: block; width: 100%; height: auto; }
.gate-brand { width: min(260px, 100%); margin: 0 auto; line-height: 0; }
#stage { margin-top: 8px; }
.ca-box, .ca-box.soon {
  height: auto; min-width: 0; padding: 7px 10px; gap: 6px; background: #e9eddd;
  border: 1px solid #c7d2bb; box-shadow: none; text-shadow: none;
}
.ca-label, .ca-addr { font: 800 11px/1.3 'Trebuchet MS', Verdana, sans-serif; color: var(--site-ink); letter-spacing: .03em; text-shadow: none; }
.ca-addr { overflow-wrap: anywhere; }
.ca-box.soon .ca-addr { color: #88600b; animation: none; }
.ca-addr[href]:hover { color: #39834d; }
.bal-chip {
  height: 48px; min-width: 0; color: var(--site-ink); background: #e9eddd;
  border: 2px solid var(--site-ink); box-shadow: 3px 3px 0 var(--site-ink);
  font-family: 'Trebuchet MS', Verdana, sans-serif;
}
.bal-chip .ico { width: 24px; height: 24px; margin: 0 7px 0 9px; filter: none; }
.bal-chip .bal-text { gap: 1px; padding-right: 10px; }
.bal-chip small { font-size: 9px; font-weight: 800; color: #60755a; text-shadow: none; }
.bal-chip #ui-coins { font-size: 15px; font-weight: 900; color: var(--site-ink); text-shadow: none; }
.bal-cta { padding: 0 12px; margin: 0; color: var(--site-ink); background: var(--site-yellow); border-left: 2px solid var(--site-ink); box-shadow: none; font-size: 10px; font-weight: 900; text-shadow: none; }
.bal-chip::after { display: none; }
.bal-chip:hover .bal-cta { background: #f3bf35; }

#app :is(.pix-btn, .tab-btn, .mint-tab, .mk-tab, .mk-mode, .mk-chip, .gate-wallet, .drawer-close, .modal-close, .bp-x, .ca-copy) {
  font-family: 'Trebuchet MS', Verdana, sans-serif; font-weight: 900; letter-spacing: 0;
  color: var(--site-ink); text-shadow: none; background: var(--site-green); border: 2px solid var(--site-ink);
  border-radius: 0; box-shadow: 3px 3px 0 var(--site-ink); transition: transform .18s, box-shadow .18s;
}
#app #topbar .pix-btn { min-height: 38px; height: auto; padding: 8px 12px; font-size: 12px; }
#app :is(.trade-btn, .social-btn, .tab-btn .tab-label) { font-size: 12px; }
#app :is(.pix-btn, .tab-btn, .mint-tab, .mk-tab, .mk-mode, .mk-chip, .gate-wallet, .drawer-close, .modal-close, .bp-x, .ca-copy):hover:not(:disabled) {
  color: var(--site-ink); filter: none; outline: none; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--site-ink);
}
#app :is(.pix-btn, .tab-btn, .mint-tab, .mk-tab, .mk-mode, .mk-chip, .gate-wallet, .drawer-close, .modal-close, .bp-x, .ca-copy):focus-visible,
#app .bal-chip:focus-visible, #app a:focus-visible { outline: 3px solid #d66325; outline-offset: 4px; }
#app :is(.pix-btn.orange, .pix-btn.green, .mint-tab.on, .mk-tab.active, .mk-mode.active, .tab-btn.open),
#app #btn-buy, #app #gate-connect, #app #mint-panel .mint-opt .pix-btn, #app #house-panel .house-card .pix-btn { background: var(--site-yellow); }
#app :is(.pix-btn.blue, .pix-btn.teal, .pix-btn.purple) { background: var(--site-green); }
#app :is(.pix-btn, .tab-btn):disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.5); }
#app #btn-mute.on { background: #f0c5b5; color: #762e21; }
#app .drawer-actions .auto-btn b { color: inherit; font-weight: 900; }
#app :is(.fusion-side, .fusion-btn, .auto-btn.on), #app #mint-panel .mint-opt .pix-btn { animation: none; }
#app .tab-btn { height: 38px; padding: 0; align-items: stretch; }
#app .tab-btn .tab-arrow { border-left: 2px solid var(--site-ink); background: transparent; }
#app .social-btn.discord { background: #e0e0ee; color: #35375a; }
#app .social-btn.telegram { background: #dbeaf0; color: #17546c; }
#app .social-btn svg { fill: currentColor; filter: none; }
#app .mk-chip { background: var(--chip, var(--site-green)); }
#app .mk-chip.active { outline: 2px solid #d66325; outline-offset: 2px; }
body.locked #topbar .tb-bottom button:not(#btn-wallet):not(#btn-mute):not(#btn-sound), body.locked #bottom-tabs button, body.locked #btn-houses, body.locked #btn-fusion-side { opacity: .45; pointer-events: none; }
body.locked #topbar :is(#btn-wallet, #btn-mute, #btn-sound) { opacity: 1; pointer-events: auto; }
@media (max-width: 760px) {
  #app { padding: 8px 10px 40px; }
  #topbar { padding: 10px 10px 13px; gap: 9px; }
  .tb-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .menu-brand { width: min(180px, 100%); }
  .tb-top .tb-spacer { display: none; }
  .tb-top .ca-box { grid-column: 1 / -1; grid-row: 2; width: fit-content; max-width: 100%; }
  .tb-top .bal-chip { grid-column: 2; grid-row: 1; }
  .bal-chip { height: 42px; }
  .bal-chip #ui-coins { font-size: 13px; }
  .bal-cta { padding: 0 7px; font-size: 9px; }
  .tb-bottom { gap: 8px; }
  .tb-bottom .tb-spacer { display: none; }
  #topbar .pix-btn, #topbar #btn-mute, #topbar #btn-sound { min-height: 36px; height: auto; padding: 7px 9px; font-size: 11px; }
  .sound-wrap { margin-left: auto; }
}
@media (max-width: 420px) {
  .menu-brand { width: 150px; }
  .tb-bottom .sound-wrap { order: 3; margin-left: 0; }
  /* the sound buttons sit on the left here, so the mixer opens to the right and its arrow points at SOUND */
  #mixer { left: 0; right: auto; }
  #mixer::before { left: var(--mixer-arrow, 14px); right: auto; }
  #btn-wallet { order: 4; margin-left: 0; }
  .tb-bottom::before { content: ''; order: 2; flex-basis: 100%; height: 0; }
  #topbar .pix-btn, #topbar #btn-mute, #topbar #btn-sound { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  #app :is(.pix-btn, .tab-btn, .mint-tab, .mk-tab, .mk-mode, .mk-chip, .gate-wallet, .drawer-close, .modal-close, .bp-x, .ca-copy) { transition: none; }
}

.sound-wrap { gap: 12px; }
#inventory {
  display: flex; flex-direction: column; gap: 10px; padding: 12px;
  color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink);
  box-shadow: 4px 4px 0 var(--site-ink); overflow: visible;
}
#inventory .trade-btn { margin: 0; }

#bottom-tabs {
  width: 100%; margin: 0; padding: 4px 4px 0; transform: none;
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px;
}
#bottom-tabs :is(#drawer-toggle, #btn-houses, #btn-fusion-side, #btn-venues, #btn-market) { flex: 0 0 auto; }
.side-col { margin-top: 10px; }
#drawer, #house-panel, #venue-panel, .fusion-box.mc-panel {
  color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink);
  border-radius: 0; box-shadow: 5px 5px 0 var(--site-ink), 0 14px 36px rgba(23,61,45,.24);
  font-family: 'Trebuchet MS', Verdana, sans-serif; text-shadow: none;
}
#drawer .drawer-head, #house-panel .drawer-head, #venue-panel .drawer-head {
  padding: 14px 18px; background: var(--site-cream); border-bottom: 1px solid #cbd4c0; box-shadow: none;
}
#drawer h2, #house-panel h2, #venue-panel h2, .fusion-box h2 {
  color: var(--site-ink); font: 900 22px/1.2 'Trebuchet MS', Verdana, sans-serif; letter-spacing: -.03em; text-shadow: none;
}
#drawer h2::before, #house-panel h2::before { content: none; }
#drawer #ui-hero-count { font: 700 12px/1.4 'Trebuchet MS', Verdana, sans-serif; color: #5b6d56; text-shadow: none; }
#app :is(#drawer, #house-panel, #venue-panel, .fusion-box) :is(.drawer-close, .modal-close) {
  width: 34px; height: 34px; padding: 0; color: var(--site-ink); background: var(--site-green);
  border: 2px solid var(--site-ink); box-shadow: 3px 3px 0 var(--site-ink); font: 900 16px/1 'Trebuchet MS', Verdana, sans-serif;
}
#app :is(#drawer, #house-panel, #venue-panel, .fusion-box) :is(.drawer-close, .modal-close):hover { background: #c7dfad; }
#drawer .drawer-actions { gap: 9px; margin: 0; padding: 12px 18px 15px; background: #e9eddd; border: 0; border-bottom: 1px solid #cbd4c0; }
#drawer .drawer-actions .pix-btn { min-height: 34px; padding: 7px 10px; font-size: 11px; }
#drawer #hero-list { padding: 16px 18px; }
#drawer .hero-section h3, #drawer .hero-section.active h3 {
  padding: 8px 0; margin: 0 0 14px; color: var(--site-ink); background: transparent; border: 0;
  border-bottom: 2px solid #cbd4c0; box-shadow: none; font: 900 12px/1.3 'Trebuchet MS', Verdana, sans-serif; letter-spacing: .08em;
}
#drawer .hero-section h3 .cnt { color: #557153; }
#drawer .empty-note { color: #60715b; font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif; }
#drawer .hero-grid.none { display: block; }
#drawer .pcard .pc-id { color: var(--site-ink); text-shadow: none; font: 800 10px/1 'Trebuchet MS', Verdana, sans-serif; }
#drawer .pcard .row { color: #3c5741; font: 700 11px/1.3 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
#drawer .pcard .energy { background: #cbd5c1; border: 1px solid #98ad96; }
#drawer .pcard .pix-btn { font-size: 10px; }

.fusion-box.mc-panel { padding: 24px; }
.fusion-box h2 { padding-right: 40px; }
.fusion-box .small, .fusion-box .small b { color: #52664f; font: 14px/1.55 'Trebuchet MS', Verdana, sans-serif; }
.fusion-box .small b { color: var(--site-ink); font-weight: 900; }
.fusion-tabs { gap: 9px; margin: 16px 0; }
#app .fusion-box .mk-chip { padding: 8px 10px; opacity: 1; background: #e9eddd; font-size: 11px; }
#app .fusion-box .mk-chip.active { background: var(--site-yellow); outline: none; }
.fusion-list { min-height: 110px; padding: 14px; background: #e9eddd; border: 1px solid #cbd4c0; box-shadow: none; }
.fusion-list .mk-empty { align-self: center; color: #60715b; font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif; }
.fusion-card .pc-id { color: var(--site-ink); text-shadow: none; }
.fusion-card.picked .pc-card { filter: drop-shadow(0 0 3px #d59d17) drop-shadow(0 4px 0 rgba(23,61,45,.35)); }
.fusion-foot { gap: 12px; margin-top: 18px; }
.fusion-foot #fusion-info, .fusion-foot #fusion-info b { color: var(--site-ink); font: 700 13px/1.5 'Trebuchet MS', Verdana, sans-serif; }
.fu-cost, .fu-cost.short { background: #ffebb2; border: 1px solid #cda83d; box-shadow: none; color: var(--site-ink); text-shadow: none; font: 900 15px/1.2 'Trebuchet MS', Verdana, sans-serif; }
.fu-cost small { color: #756022; font: 800 9px/1.2 'Trebuchet MS', Verdana, sans-serif; }
.fu-cost.short { background: #f9e0d7; border-color: #c97c69; color: #8e3927; }

:is(#house-panel, #venue-panel) .mint-sub { margin: 0 18px 14px; color: #52664f; font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif; }
#house-panel #house-list { margin: 0 18px; gap: 12px; }
:is(#house-panel, #venue-panel) .house-outside { color: #435d45; background: #e9eddd; border: 1px solid #cbd4c0; box-shadow: none; font: 13px/1.5 'Trebuchet MS', Verdana, sans-serif; }
:is(#house-panel, #venue-panel) .house-outside b, .hc-bench p b { color: var(--site-ink); font-weight: 900; }
.hc-bench > div, .hc-speed, .hc-stats span { background: #f6f3e8; border: 1px solid #cbd4c0; box-shadow: none; }
.hc-bench small, .hc-speed small, .hc-stats small { color: #60715b; font: 800 9px/1.2 'Trebuchet MS', Verdana, sans-serif; }
.hc-bench > div b, .hc-speed b { color: #39834d; text-shadow: none; font: 900 19px/1.1 'Trebuchet MS', Verdana, sans-serif; }
:is(#house-panel, #venue-panel) :is(.house-card, .house-card:hover, .house-card.owned) {
  color: var(--site-ink); text-shadow: none; background: #e9eddd; border: 2px solid #b4c3a1; box-shadow: none;
}
:is(#house-panel, #venue-panel) .house-card.owned { border-color: #39834d; }
#house-panel .house-img { background: none; }
#house-panel .house-img img { filter: drop-shadow(0 4px 2px rgba(23,61,45,.18)); }
:is(#house-panel, #venue-panel) .house-name { color: var(--site-ink); font: 900 13px/1.3 'Trebuchet MS', Verdana, sans-serif; }
.hc-stats b { color: var(--site-ink); font: 900 11px/1.3 'Trebuchet MS', Verdana, sans-serif; }
.hc-supply { background: #cad5c2; border: 1px solid #9ab091; box-shadow: none; }
#house-panel .house-boost { color: #52664f; font: 11px/1.4 'Trebuchet MS', Verdana, sans-serif; }
#house-panel .house-owned { color: var(--site-ink); background: #d5e8bf; border: 1px solid #a4c394; box-shadow: none; font: 700 10px/1.3 'Trebuchet MS', Verdana, sans-serif; }
#house-panel .house-owned b { color: #39834d; font-weight: 900; }
:is(#house-panel, #venue-panel) :is(.mint-price, .hc-sol) {
  color: var(--site-ink); background: #f6f3e8; border: 1px solid #cbd4c0; text-shadow: none; box-shadow: none;
  font: 900 11px/1.3 'Trebuchet MS', Verdana, sans-serif;
}
:is(#house-panel, #venue-panel) .hc-plus { color: #60715b; font: 900 11px/1 'Trebuchet MS', Verdana, sans-serif; }
:is(#house-panel, #venue-panel) .house-card .pix-btn:disabled { opacity: .75; color: #586957; }
@media (max-width: 760px) {
  .sound-wrap { gap: 8px; }
  #drawer .drawer-head, #house-panel .drawer-head, #venue-panel .drawer-head { padding: 12px 14px; }
  #drawer h2, #house-panel h2, #venue-panel h2, .fusion-box h2 { font-size: 19px; }
  #drawer .drawer-actions { padding: 10px 14px 13px; }
  #drawer #hero-list { padding: 12px 14px; }
  .fusion-box.mc-panel { padding: 20px 16px; }
  #house-panel #house-list { margin: 0 12px; }
  :is(#house-panel, #venue-panel) .hc-bench { align-items: flex-start; gap: 9px; }
}

#withdraw-panel { background: rgba(15, 35, 25, .66); }
#withdraw-panel .withdraw-box {
  width: min(510px, 100%); padding: 28px; color: var(--site-ink);
  background: var(--site-cream); border: 2px solid var(--site-ink); border-radius: 0;
  box-shadow: 6px 6px 0 var(--site-ink), 0 18px 50px rgba(15,35,25,.25);
  font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif;
}
#withdraw-panel .modal-close {
  width: 36px; height: 36px; right: 20px; top: 20px; padding: 0;
  font: 900 16px/1 'Trebuchet MS', Verdana, sans-serif;
}
.wd-heading { padding-right: 44px; }
.wd-eyebrow { display: block; color: #557253; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
#withdraw-panel .wd-heading h2 { margin: 7px 0 5px; color: var(--site-ink); font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }
.wd-heading p { margin: 0; color: #5b6d56; font-size: 13px; line-height: 1.45; }
#withdraw-panel .wd-balance {
  gap: 13px; margin: 22px 0 0; padding: 15px 16px; background: #e9eddd;
  border: 1px solid #c7d2bb;
}
#withdraw-panel .wd-balance .ico { width: 30px; height: 30px; flex: 0 0 auto; }
#withdraw-panel .wd-balance small { margin: 0 0 3px; color: #5b6d56; font-size: 11px; font-weight: 800; }
#withdraw-panel .wd-balance b { color: var(--site-ink); font-size: 19px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; text-shadow: none; }
#withdraw-panel .wd-box { margin-top: 20px; padding: 0; gap: 15px; }
#withdraw-panel .wd-field { gap: 7px; color: var(--site-ink); font-size: 12px; font-weight: 900; }
#withdraw-panel .wd-field input {
  width: 100%; min-width: 0; height: 46px; padding: 0 12px; color: var(--site-ink);
  background: #fffef8; border: 1px solid #9aab94; border-radius: 0;
  font: 600 14px/1.2 'Trebuchet MS', Verdana, sans-serif;
}
#withdraw-panel .wd-field input::placeholder { color: #768574; opacity: 1; }
#withdraw-panel .wd-field input:focus-visible { outline: 3px solid #d66325; outline-offset: 2px; }
#withdraw-panel #wd-wallet { background: #edf0e5; color: #52664f; }
#withdraw-panel .wd-amount-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
#app #withdraw-panel #wd-max { min-width: 62px; padding: 0 14px; font-size: 12px; }
#withdraw-panel .wd-calc {
  gap: 8px 12px; padding: 12px 14px; color: #52664f; background: #e9eddd;
  border: 1px solid #c7d2bb; font-size: 12px;
}
#withdraw-panel .wd-calc b { color: #9b4433; font-weight: 900; }
#withdraw-panel .wd-calc b.recv { color: #26703c; }
#withdraw-panel .wd-tiers { color: #60715b; font-size: 11px; line-height: 1.45; }
#withdraw-panel .wd-rules, #withdraw-panel #wd-msg { margin: 0; color: #52664f; font-size: 12px; line-height: 1.5; }
#withdraw-panel .wd-rules b { color: var(--site-ink); font-weight: 900; }
#app #withdraw-panel #wd-send { min-height: 46px; font-size: 13px; }
#withdraw-panel #wd-msg:empty, #withdraw-panel #wd-list:empty { display: none; }
#withdraw-panel #wd-list h4 { margin: 4px 0 8px; color: var(--site-ink); font-size: 13px; }
#withdraw-panel .wd-item { gap: 8px; padding: 10px; color: #52664f; background: #e9eddd; font-size: 11px; }
#withdraw-panel .wd-item b { font-weight: 900; }
#withdraw-panel .wd-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) {
  #withdraw-panel { padding: 12px; }
  #withdraw-panel .withdraw-box { padding: 22px 18px; max-height: calc(100dvh - 24px); }
  #withdraw-panel .modal-close { top: 14px; right: 14px; }
  #withdraw-panel .wd-heading h2 { font-size: 21px; }
  #withdraw-panel .wd-balance { margin-top: 18px; }
  #withdraw-panel .wd-item { grid-template-columns: 1fr auto; }
  #withdraw-panel .wd-item span:nth-child(2) { grid-row: 2; }
}

#bottom-tabs .social { display: flex; flex: 0 0 auto; flex-direction: row; width: auto; gap: 8px; margin-left: auto; }
#app #bottom-tabs .social-btn { display: flex; flex: 0 0 auto; width: 38px; height: 38px; padding: 8px; align-items: center; justify-content: center; }
#bottom-tabs .social-btn svg { width: 20px; height: 20px; }
#app #bottom-tabs .lang-select { display: flex; flex: 0 0 auto; height: 38px; min-width: 44px; padding: 0 6px; font-family: inherit; font-size: 11px; font-weight: 900; color: var(--site-ink); background: #ffcd42; border: 2px solid var(--site-ink); border-radius: 0; box-shadow: 2px 2px 0 var(--site-ink); text-align: center; text-align-last: center; cursor: pointer; outline: none; transition: transform .18s, box-shadow .18s; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.side-col:has(> #guide-link.hidden) { display: none; }
@media (max-width: 480px) {
  #bottom-tabs { gap: 5px; padding-inline: 0; }
  #app #bottom-tabs .tab-label { padding-inline: 8px; font-size: 11px; }
  #bottom-tabs .social { gap: 5px; order: 1; }
  #app #bottom-tabs .lang-select { min-width: 36px; padding: 0 4px; font-size: 10px; }
  #bottom-tabs #rest-toggle { order: 2; }
}

#mixer { width: min(260px, calc(100vw - 32px)); padding: 0 14px 14px; gap: 13px; background: var(--site-cream); color: var(--site-ink); border: 2px solid var(--site-ink); box-shadow: 4px 4px 0 var(--site-ink), 0 12px 24px rgba(23,61,45,.18); text-shadow: none; font-family: 'Trebuchet MS', Verdana, sans-serif; }
#mixer::before { border-bottom-color: var(--site-ink); }
#mixer .mix-head { margin: 0 -14px; padding: 12px 14px; color: var(--site-ink); background: #e5ebdc; border-bottom: 1px solid #cbd4c0; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
#mixer .mix-row { font-size: 12px; font-weight: 700; gap: 6px 8px; }
#mixer .mix-row span, #mixer .mix-row b { color: var(--site-ink) !important; text-shadow: none; }
#mixer .mix-row b { font-size: 12px; font-weight: 700; }
#mixer .mix-row input[type=range] { --accent: #6aa85c; height: 10px; background: linear-gradient(90deg, var(--accent) 0 var(--fill), #d3ddc9 var(--fill)); border: 1px solid var(--site-ink); box-shadow: none; }
#mixer .mix-match input[type=range] { --accent: #ffcd47; }
#mixer .mix-row input[type=range]::-webkit-slider-thumb { background: var(--site-cream); border: 2px solid var(--site-ink); box-shadow: 2px 2px 0 var(--site-ink); }
#mixer .mix-row input[type=range]::-moz-range-thumb { background: var(--site-cream); border: 2px solid var(--site-ink); box-shadow: 2px 2px 0 var(--site-ink); }

.tb-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.tb-top .menu-brand { grid-column: 2; grid-row: 1; justify-self: center; }
.tb-top .ca-box { grid-column: 1; grid-row: 1; justify-self: start; width: 210px; max-width: 100%; height: 48px; }
.tb-top .bal-chip { grid-column: 3; grid-row: 1; justify-self: end; width: 210px; max-width: 100%; }
.tb-top .tb-spacer { display: none; }
@media (max-width: 760px) {
  .tb-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tb-top .menu-brand { grid-column: 1 / -1; grid-row: 1; }
  .tb-top .ca-box { grid-column: 1; grid-row: 2; width: 100%; height: 42px; }
  .tb-top .bal-chip { grid-column: 2; grid-row: 2; width: 100%; height: 42px; }
}
@media (max-width: 420px) {
  .tb-top .bal-chip .ico { width: 20px; height: 20px; margin: 0 4px; }
  .tb-top .bal-chip .bal-text { padding-right: 4px; }
  .tb-top .bal-chip #ui-coins { font-size: 12px; }
  .tb-top .bal-cta { padding: 0 5px; font-size: 8px; }
}

#drawer .pcard.active .pc-card { filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }

#drawer .hero-section h3, #drawer .hero-section.active h3 { font-size: 14px; }
#drawer .pcard .pc-id { font-size: 12px; }
#drawer .pcard .pc-top .rar { font-size: 9px; }
#drawer .pcard .row { font-size: 13px; }
#drawer .pcard .row .pix-btn { font-size: 12px; }

.tire-picker {
  width: 290px; padding: 14px; color: var(--site-ink); background: var(--site-cream);
  border: 2px solid var(--site-ink); box-shadow: 4px 4px 0 var(--site-ink), 0 12px 24px rgba(23,61,45,.2);
  font: 14px/1.4 'Trebuchet MS', Verdana, sans-serif; text-shadow: none;
}
.tire-picker .bp-head { gap: 12px; margin-bottom: 12px; }
.tire-picker .bp-head b { color: var(--site-ink); font-size: 14px; font-weight: 900; }
.tire-picker .bp-x, .tire-picker .pix-btn {
  color: var(--site-ink); background: var(--site-green); border: 2px solid var(--site-ink); border-radius: 0;
  box-shadow: 3px 3px 0 var(--site-ink); font: 900 12px/1.2 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; cursor: pointer;
}
.tire-picker .bp-x { width: 32px; height: 32px; font-size: 16px; }
.tire-picker .bp-x:hover, .tire-picker .pix-btn:hover { background: #c7dfad; }
.tire-picker :is(button):focus-visible { outline: 3px solid #d66325; outline-offset: 3px; }
.tire-picker .bp-empty { margin: 0 0 14px; color: #52664f; font-size: 13px; line-height: 1.45; }
.tire-picker .bp-mint { width: 100%; min-height: 38px; padding: 9px; background: var(--site-yellow); }
.tire-picker .bp-mint:hover { background: #f3bf35; }
.tire-picker .bp-cur { gap: 8px; padding: 8px; margin-bottom: 12px; background: #e9eddd; border: 1px solid #c7d2bb; }
.tire-picker .bp-cur span { font-size: 12px; }
.tire-picker .bp-cur .pix-btn { padding: 7px; font-size: 10px; }
.tire-picker .bp-list { gap: 7px; margin-bottom: 12px; }
.tire-picker .bp-item { color: var(--site-ink); background: #e9eddd; border: 1px solid #c7d2bb; box-shadow: none; }
.tire-picker .bp-item:hover { background: #dce8d2; border-color: var(--site-ink); box-shadow: none; }
.tire-picker .bp-name { font-size: 10px; }
.tire-picker .bp-item small { color: #52664f; font-size: 11px; }
.tire-picker .bp-item em { color: var(--site-ink); font-size: 12px; font-weight: 700; }

#mint-panel { color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink); box-shadow: 5px 5px 0 var(--site-ink), 0 14px 36px rgba(23,61,45,.24); font-family: 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
#mint-panel .drawer-head { padding: 14px 18px; background: var(--site-cream); border-bottom: 1px solid #cbd4c0; box-shadow: none; }
#mint-panel h2 { color: var(--site-ink); font: 900 22px/1.2 'Trebuchet MS', Verdana, sans-serif; letter-spacing: -.03em; text-shadow: none; }
#mint-panel h2::before { content: none; }
#app #mint-panel .drawer-close { width: 34px; height: 34px; padding: 0; color: var(--site-ink); background: var(--site-green); border: 2px solid var(--site-ink); box-shadow: 3px 3px 0 var(--site-ink); font: 900 16px/1 'Trebuchet MS', Verdana, sans-serif; }
#app #mint-panel .droprate { color: var(--site-ink); background: var(--site-green); border: 2px solid var(--site-ink); box-shadow: 3px 3px 0 var(--site-ink); font-size: 11px; text-shadow: none; }
#mint-panel .mint-sub { margin: 0 18px 14px; color: #52664f; font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif; }
#mint-panel .mint-opt, #mint-panel .mint-opt:hover { padding: 14px; color: var(--site-ink); background: #e9eddd; border: 1px solid #c7d2bb; box-shadow: none; text-shadow: none; }
#mint-panel .mint-opt:hover { transform: none; border-color: #91a98a; }
#mint-panel .mint-tag { color: var(--site-ink); background: #d5e8bf; border: 1px solid #afc6a6; font-size: 11px; font-weight: 900; }
#mint-panel .mint-qty { color: var(--site-ink); font-size: 24px; font-weight: 900; }
#mint-panel .mint-each { color: #52664f; font-size: 12px; }
#mint-panel .mint-price { color: var(--site-ink); background: transparent; border: 0; box-shadow: none; text-shadow: none; font-size: 15px; font-weight: 900; }
#mint-panel #mint-result { color: var(--site-ink); background: #e9eddd; border: 1px solid #c7d2bb; box-shadow: none; }
#mint-panel #mint-result h3 { color: var(--site-ink); text-shadow: none; }
#droprate { color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink); box-shadow: 4px 4px 0 var(--site-ink), 0 12px 24px rgba(23,61,45,.2); font-family: 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
#droprate h3, #droprate h3 small.dr-note, #droprate .dr-note, #droprate .dr-sk, #droprate .dr-skill span:not(.sk), #droprate .dr-pct { color: var(--site-ink); }

.tb-top .bal-cta { flex: 1 0 auto; justify-content: center; }

#referral-panel.ref-panel.mc-panel { width: min(520px, 100%); max-height: min(90dvh, 820px); overflow-y: auto; padding: 28px; background: var(--site-cream); color: var(--site-ink); border: 3px solid var(--site-ink); box-shadow: 5px 5px 0 #193e2c; font-family: 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
#referral-panel .modal-close { top: 20px; right: 20px; width: 34px; height: 34px; color: var(--site-ink); background: #e4ead9; border: 2px solid var(--site-ink); box-shadow: 2px 2px 0 var(--site-ink); }
#referral-panel .modal-close:hover { background: #ffcd47; }
#referral-panel .ref-heading { padding-right: 38px; }
#referral-panel .ref-eyebrow { color: #61765a; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
#referral-panel .ref-heading h2 { margin: 6px 0; color: var(--site-ink); font-size: 24px; line-height: 1.15; letter-spacing: -.03em; text-shadow: none; }
#referral-panel .ref-heading h2::before { content: none; }
#referral-panel .ref-heading p { margin: 0; color: #52664f; font-size: 13px; line-height: 1.5; }
#referral-panel .ref-box { gap: 14px; margin-top: 20px; }
#referral-panel .ref-hero { gap: 16px; padding: 15px; background: #e2ebd8; border: 1px solid #bccfb3; box-shadow: none; }
#referral-panel .ref-hero b { color: #287342; font-size: 30px; font-weight: 900; text-shadow: none; }
#referral-panel .ref-hero p { color: #405b40; font-size: 12px; line-height: 1.45; }
#referral-panel .ref-code { padding: 14px; gap: 8px; background: #edf0e4; border: 1px solid #cbd7c3; box-shadow: none; }
#referral-panel .ref-code small, #referral-panel .ref-stats small, #referral-panel .ref-use small { color: #61765a; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
#referral-panel .ref-code b { padding: 10px; color: var(--site-ink); background: #faf9ef; border: 2px solid var(--site-ink); box-shadow: none; font-size: 18px; font-weight: 900; text-shadow: none; overflow-wrap: anywhere; }
#referral-panel .ref-link { color: #52664f; font-size: 11px; overflow-wrap: anywhere; }
#app #referral-panel .ref-code .pix-btn { min-height: 44px; font-size: 12px; }
#referral-panel .ref-stats { gap: 8px; }
#referral-panel .ref-stats div { align-items: flex-start; gap: 4px; padding: 12px; background: #edf0e4; border: 1px solid #cbd7c3; box-shadow: none; }
#referral-panel .ref-stats b { color: var(--site-ink); font-size: 20px; font-weight: 900; text-shadow: none; overflow-wrap: anywhere; }
#referral-panel .ref-steps { gap: 8px; }
#referral-panel .ref-steps li { align-items: flex-start; gap: 7px; padding: 10px; text-align: left; color: #52664f; background: transparent; border: 0; border-top: 2px solid #cbd7c3; font-size: 11px; line-height: 1.4; }
#referral-panel .ref-steps b { width: 22px; height: 22px; color: var(--site-ink); background: #ffcd47; border: 1px solid var(--site-ink); font-size: 11px; font-weight: 900; }
#referral-panel .ref-by, #referral-panel #ref-msg { color: #52664f; font-size: 12px; }
#referral-panel .ref-use input { min-width: 0; color: var(--site-ink); background: #faf9ef; border: 2px solid var(--site-ink); box-shadow: none; font-family: inherit; font-size: 12px; }
#referral-panel .ref-use input::placeholder { color: #768574; }
#referral-panel .ref-use input:focus-visible { outline: 3px solid #d66325; outline-offset: 2px; }
#referral-panel .ref-stats-err { font-size: 12px; }
@media (max-width: 520px) { #referral-panel.ref-panel.mc-panel { padding: 22px 18px; max-height: calc(100dvh - 24px); } #referral-panel .modal-close { top: 14px; right: 14px; } #referral-panel .ref-heading h2 { font-size: 21px; } #referral-panel .ref-steps { grid-template-columns: 1fr; gap: 0; } #referral-panel .ref-steps li { flex-direction: row; align-items: center; } }
#gate .gate-ref { gap: 7px; color: var(--site-ink); font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 12px; font-weight: 900; }
#gate .gate-ref input { min-height: 44px; padding: 10px 12px; color: var(--site-ink); background: #faf9ef; border: 2px solid var(--site-ink); font: 700 14px 'Trebuchet MS', Verdana, sans-serif; }
#gate .gate-ref input::placeholder { color: #768574; }
#gate .gate-ref input:focus-visible { outline: 3px solid #d66325; outline-offset: 2px; }

/* entry deposit: matches unlock after the first 50,000 ViceCoin deposited */
.entry-banner { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); padding: 8px 12px; font-family: inherit; font-size: 8px; color: #fff; background: rgba(20, 24, 18, .92); border: 3px solid #000; box-shadow: 0 0 0 3px #ffd23d; cursor: pointer; }
.entry-banner b { color: #ffd23d; font-weight: normal; }
.entry-banner em { font-style: normal; padding: 4px 6px; background: #2f9b3a; border: 2px solid #000; }
.entry-banner.hidden, .entry-msg.hidden { display: none; }
.ref-history h4 { font-size: 7px; margin: 8px 0 4px; }
@media (max-width: 600px) { .entry-banner { flex-wrap: wrap; justify-content: center; font-size: 7px; } }

/* wallet panel: same site-style card as the withdrawal and referral panels */
#wallet-panel .wallet-box {
  width: min(510px, 100%); max-height: min(90dvh, 820px); overflow-y: auto; padding: 28px; color: var(--site-ink);
  background: var(--site-cream); border: 2px solid var(--site-ink); border-radius: 0;
  box-shadow: 6px 6px 0 var(--site-ink), 0 18px 50px rgba(15,35,25,.25);
  font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif; text-shadow: none;
}
#wallet-panel .modal-close {
  width: 36px; height: 36px; right: 20px; top: 20px; padding: 0; color: var(--site-ink);
  background: #e4ead9; border: 2px solid var(--site-ink); box-shadow: 2px 2px 0 var(--site-ink);
  font: 900 16px/1 'Trebuchet MS', Verdana, sans-serif;
}
#wallet-panel .modal-close:hover { background: #ffcd47; }
.wl-heading { padding-right: 44px; }
.wl-eyebrow { display: block; color: #557253; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
#wallet-panel .wl-heading h2 { margin: 7px 0 5px; color: var(--site-ink); font-size: 24px; line-height: 1.15; letter-spacing: -.03em; text-shadow: none; }
.wl-heading p { margin: 0; color: #5b6d56; font-size: 13px; line-height: 1.45; }
.wl-account { display: flex; align-items: center; gap: 13px; margin: 22px 0 0; padding: 15px 16px; background: #e9eddd; border: 1px solid #c7d2bb; }
.wl-account .ico { width: 30px; height: 30px; flex: 0 0 auto; }
.wl-account small { display: block; margin: 0 0 3px; color: #5b6d56; font-size: 11px; font-weight: 800; }
.wl-account b { display: block; color: var(--site-ink); font-size: 19px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.wl-note:empty { display: none; }
.wl-note { display: block; margin-top: 3px; color: #5b6d56; font-size: 12px; }
#wallet-panel .entry-msg { margin: 15px 0 0; padding: 10px 12px; color: #5a3a00; background: #fff3d1; border: 1px solid #e0a020; font-size: 12px; line-height: 1.45; }
.wl-box { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
#wallet-panel .wd-field { gap: 7px; color: var(--site-ink); font-size: 12px; font-weight: 900; }
#wallet-panel .wd-field input {
  width: 100%; min-width: 0; height: 46px; padding: 0 12px; color: var(--site-ink);
  background: #fffef8; border: 1px solid #9aab94; border-radius: 0;
  font: 600 14px/1.2 'Trebuchet MS', Verdana, sans-serif;
}
#wallet-panel .wd-field input::placeholder { color: #768574; opacity: 1; }
#wallet-panel .wd-field input:focus-visible, #wallet-panel summary:focus-visible { outline: 3px solid #d66325; outline-offset: 2px; }
#app #wallet-panel .pix-btn { min-height: 46px; font-size: 13px; }
#wallet-panel .wl-msg { margin: 0; color: #52664f; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#wallet-panel .wl-msg:empty { display: none; }
#wallet-panel .deposit-reconcile { border-top: 2px solid #cbd7c3; padding-top: 12px; color: #52664f; font-size: 12px; }
#wallet-panel .deposit-reconcile summary { cursor: pointer; font-weight: 900; color: var(--site-ink); }
.wl-reconcile { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.wl-footer { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 2px solid #cbd7c3; }
@media (max-width: 480px) {
  #wallet-panel { padding: 12px; }
  #wallet-panel .wallet-box { padding: 22px 18px; max-height: calc(100dvh - 24px); }
  #wallet-panel .modal-close { top: 14px; right: 14px; }
  #wallet-panel .wl-heading h2 { font-size: 21px; }
  .wl-footer .pix-btn { width: 100%; }
}

/* outdated game build: stays until the page reloads (or the player dismisses it) */
.update-toast { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 10px 12px; color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink); box-shadow: 4px 4px 0 var(--site-ink); font: 700 13px/1.4 'Trebuchet MS', Verdana, sans-serif; }
.update-toast.hidden { display: none; }
#app .update-toast .pix-btn { flex: none; min-height: 36px; font-size: 12px; }
.update-dismiss { flex: none; width: 30px; height: 30px; padding: 0; color: var(--site-ink); background: #e4ead9; border: 2px solid var(--site-ink); font: 900 14px/1 'Trebuchet MS', Verdana, sans-serif; cursor: pointer; }
@media (max-width: 600px) { .update-toast { flex-wrap: wrap; justify-content: center; text-align: center; font-size: 12px; } }

/* Stage panels: Squad, Mint, Fusion, Referral and Recovery all open the same way,
   centred over the circuit with the same pop-in, one at a time (see openStagePanel in ui.js). */
#stage > .stage-panel {
  position: absolute; z-index: 6; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%);
  width: min(1180px, calc(100% - 20px)); min-width: 0; max-height: calc(100% - 20px); overflow-y: auto;
  animation: pop-in .15s ease-out;
}
/* The squad list sizes itself from the panel height. */
#stage > #drawer.stage-panel { height: calc(100% - 20px); overflow: hidden; }
#stage > #market-panel.stage-panel { height: calc(100% - 20px); overflow: hidden; }
#stage > #referral-panel.stage-panel { width: min(1180px, calc(100% - 20px)); max-height: calc(100% - 20px); }
#stage > #referral-panel .ref-box { max-width: 760px; margin-inline: auto; }
#stage > #fusion-panel.stage-panel .fusion-list { max-height: none; }
@media (max-width: 900px) {
  #stage > .stage-panel { position: fixed; width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  #stage > #drawer.stage-panel { height: calc(100dvh - 20px); }
}

/* Rarity badges (style comes from rb() in ui.js): readable sizes in the site font. */
.dr-tag { padding: 5px 8px; font-size: 12px; line-height: 1.2; }
.fu-rar { padding: 3px 7px; font-size: 11px; }
.hc-tag { padding: 3px 9px; font-size: 10px; }
.mk-card .rar, .rest-card .rar { padding: 2px 6px; font-size: 10px; }
.got span { padding: 2px 5px; font-size: 9px; }
.sm-odds span { font-size: 11px; }
.pcard .pc-top .rar { padding: 3px 6px; box-shadow: 1px 1px 0 #173d2d !important; border-width: 1px !important; }
#drawer .pcard .pc-top .rar { font-size: 10px; }

/* Keep the AUTO PLAY off state legible against the club palette. */
#app #drawer .drawer-actions .auto-btn:not(.on) {
  color: #173d2d;
  background: #dce5d2;
}
#app #drawer .drawer-actions .auto-btn:disabled {
  color: #405740;
  background: #e1e8da;
  opacity: 1;
  filter: none;
}

/* Fusion follows the same stage-sized panel and header as the squad. */
#stage > #fusion-panel.stage-panel {
  height: calc(100% - 20px); padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
#stage > #fusion-panel.stage-panel.hidden { display: none; }
#fusion-panel .drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex: 0 0 auto; padding: 14px 18px; background: var(--site-cream);
  border-bottom: 1px solid #cbd4c0; box-shadow: none;
}
#fusion-panel .drawer-head h2 { margin: 0; padding: 0; }
#fusion-panel .drawer-head .modal-close { position: static; flex: 0 0 auto; }
#fusion-panel .fusion-body {
  display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column;
  overflow-y: auto; padding: 16px 18px;
}
#fusion-panel .fusion-body > .small { margin: 0; }
#fusion-panel .fusion-tabs, #fusion-panel .fusion-foot { flex: 0 0 auto; }
#stage > #fusion-panel.stage-panel .fusion-list { flex: 1 0 110px; overflow-y: auto; }
@media (max-width: 900px) {
  #stage > #fusion-panel.stage-panel { height: calc(100dvh - 20px); }
}
@media (max-width: 480px) {
  #fusion-panel .fusion-body { padding: 14px 16px; }
}

/* One wallet panel for deposits and withdrawals. */
.wallet-tabs { display: flex; gap: 10px; margin-top: 22px; padding: 0 3px 3px 0; }
#app .wallet-tab { flex: 1; min-height: 44px; padding: 10px 12px; color: var(--site-ink); background: #e9eddd; border: 2px solid var(--site-ink); box-shadow: 3px 3px 0 var(--site-ink); font: 900 12px/1.2 'Trebuchet MS', Verdana, sans-serif; cursor: pointer; }
#app .wallet-tab.on { background: var(--site-yellow); }
#app .wallet-tab:focus-visible { outline: 3px solid #d66325; outline-offset: 3px; }
.wallet-tab-description { margin: 18px 0 0; color: #52664f; font-size: 13px; }
#wallet-panel #withdraw-panel { background: transparent; }
#wallet-panel #withdraw-panel .wd-balance { margin-top: 14px; }
#wallet-panel #withdraw-panel .wd-box { margin-top: 16px; }
@media (max-width: 420px) { .tb-top .bal-cta { font-size: 8px; text-align: center; } }
.tb-top .bal-cta { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; line-height: 1.15; }

#withdraw-panel .wd-rules span { display: block; }

/* Mint / fusion reveal in the standard layout: site type, cream cards, dark-green borders and hard shadows. */
#mint-anim { font-family: 'Trebuchet MS', Verdana, sans-serif; background: radial-gradient(circle at 50% 40%, rgba(23,61,45,.92), rgba(8,22,15,.97) 70%); }
#mint-anim .anim-title { min-height: 26px; color: var(--site-cream); font: 900 24px/1.25 'Trebuchet MS', Verdana, sans-serif; letter-spacing: -.02em; text-shadow: 3px 3px 0 var(--site-ink); }
#mint-anim .anim-title b { color: var(--site-yellow); font-weight: 900; }
#app #mint-anim .pix-btn { min-height: 46px; padding: 10px 22px; font-size: 14px; }
#app #mint-anim .anim-reroll { display: inline-flex; align-items: center; gap: 10px; background: var(--site-green); animation: none; }
#app #mint-anim .anim-reroll.hidden, #app #mint-anim .anim-ok.hidden, #mint-anim .anim-confirm.hidden { display: none; }
#mint-anim .anim-reroll small { padding: 2px 7px; color: var(--site-ink); background: var(--site-cream); border: 1px solid var(--site-ink); font-size: 11px; font-weight: 900; opacity: 1; }
#app #mint-anim .anim-ok { min-width: 200px; margin-top: 4px; background: var(--site-yellow); }
#mint-anim .anim-confirm { max-width: 460px; padding: 18px 20px; color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink); box-shadow: 5px 5px 0 var(--site-ink); font: 14px/1.55 'Trebuchet MS', Verdana, sans-serif; }
#mint-anim .anim-confirm p { margin: 0; }
#mint-anim .anim-confirm b { color: var(--site-ink); font-weight: 900; }
/* Reroll confirm: centered over the whole screen on a dim backdrop (ui.js moves it out of .anim-box). */
#mint-anim > .anim-confirm {
  position: fixed; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px)); max-width: none;
  box-shadow: 5px 5px 0 var(--site-ink), 0 0 0 100vmax rgba(8, 22, 15, .62);
}
/* Mints end without a title; the empty title takes no space. */
#mint-anim .anim-title:empty { display: none; }
#mint-anim .anim-confirm > div { gap: 10px; margin-top: 14px; }
#mint-anim .flip-rar { font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 14px; padding: 5px 12px; }
:is(#mint-anim .anim-grid, #mint-result .mint-got) { gap: 10px; }
:is(#mint-anim, #mint-result) .got { gap: 5px; padding: 8px; color: var(--site-ink) !important; background: var(--site-cream) !important; border: 2px solid var(--site-ink) !important; box-shadow: 3px 3px 0 var(--site-ink); }
:is(#mint-anim, #mint-result) .got span { font-size: 10px; padding: 2px 6px; }
:is(#mint-anim, #mint-result) .got .got-bonus { padding: 2px 6px; color: #1f6b38; background: #fffef8; border: 1px solid var(--site-ink); font: 900 11px/1.25 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; text-align: center; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
#mint-anim .anim-confirm, #mint-anim .anim-confirm * { text-shadow: none; }
/* Revealed cards do not flash: keep only the entrance pop (no pulsing glow or blinking). */
:is(#mint-anim, #mint-result) .got.shine, :is(#mint-anim, #mint-result) .got.got-legend { animation: got-pop .38s cubic-bezier(.2, 1.7, .4, 1) both !important; }
/* Every revealed card in the list has the same width, whatever its rarity label. */
:is(#mint-anim, #mint-result) .got { width: 104px; box-sizing: border-box; }
:is(#mint-anim, #mint-result) .got span:not(.sk) { max-width: 100%; box-sizing: border-box; text-align: center; white-space: nowrap; }
@media (max-width: 480px) { :is(#mint-anim, #mint-result) .got { width: 88px; } :is(#mint-anim, #mint-result) .got span:not(.sk) { font-size: 9px; padding: 2px 4px; } }
/* Revealed cards follow their rarity's card palette: tinted inside, rarity-coloured ring, dark outline and shadow. */
:is(#mint-anim, #mint-result) .got { --tint: #f6f3e8; --ring: #c7d2bb; background: var(--tint) !important; box-shadow: 3px 3px 0 var(--site-ink), 0 0 0 3px var(--ring); }
:is(#mint-anim, #mint-result) .got.r0 { --tint: #f4dfc8; --ring: #c8813f; }
:is(#mint-anim, #mint-result) .got.r1 { --tint: #eef1f4; --ring: #9aa3ab; }
:is(#mint-anim, #mint-result) .got.r2 { --tint: #fff1c2; --ring: #e8b521; }
:is(#mint-anim, #mint-result) .got.r3 { --tint: #dcf1ff; --ring: #46b6f2; }
:is(#mint-anim, #mint-result) .got.r4 { --tint: #fff8e3; --ring: #d9a93a; }

/* Skill tooltip (every skill icon in the game): standard cream card with the skill's colour stripe. */
#tip { gap: 6px; max-width: 240px; padding: 10px 12px 10px 14px; color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink); border-left: 6px solid var(--skc, var(--site-ink)); border-radius: 0; box-shadow: 4px 4px 0 var(--site-ink); font: 13px/1.45 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
#tip .tip-head { display: flex; align-items: center; gap: 8px; }
#tip .tip-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; background: var(--skc, var(--site-ink)); border: 2px solid var(--site-ink); }
#tip .tip-icon img { width: 18px; height: 18px; image-rendering: pixelated; }
#tip b { color: var(--site-ink); font: 900 14px/1.2 'Trebuchet MS', Verdana, sans-serif; text-transform: uppercase; letter-spacing: .03em; }
#tip .tip-desc { color: #52664f; }
/* Mint result summary below the packs: readable site type. */
#mint-panel #mint-result { padding: 16px 18px 18px; font-family: 'Trebuchet MS', Verdana, sans-serif; }
#mint-panel #mint-result h3 { margin: 0 0 6px; color: var(--site-ink); font: 900 20px/1.2 'Trebuchet MS', Verdana, sans-serif; letter-spacing: -.02em; }
#mint-panel #mint-result .mint-note { margin: 0 0 14px; color: #52664f; font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
#mint-panel #mint-result .mint-got { margin-top: 12px; }
#mint-panel #mint-result .got span:not(.sk) { font-size: 11px; }
#mint-panel #mint-result h3, #mint-panel #mint-result .mint-note { text-align: center; }
#mint-panel #mint-result .mint-got { justify-content: center; }

/* Drop-rate popover (#droprate.dr-v2): standard cream card, readable type, odds bars. */
#droprate.dr-v2 { width: min(860px, calc(100vw - 24px)); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 26px; padding: 20px 22px; color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink); box-shadow: 5px 5px 0 var(--site-ink), 0 14px 30px rgba(23,61,45,.22); font: 14px/1.45 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
#droprate.dr-v2 .dr-eyebrow { display: block; color: #61765a; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
#droprate.dr-v2 h3 { margin: 4px 0 14px; color: var(--site-ink); font: 900 20px/1.2 'Trebuchet MS', Verdana, sans-serif; letter-spacing: -.02em; }
#droprate.dr-v2 .dr-table { display: flex; flex-direction: column; gap: 8px; }
#droprate.dr-v2 .dr-row { display: grid; grid-template-columns: 112px minmax(40px, 1fr) 62px auto; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; background: #e9eddd; border: 1px solid #c7d2bb; }
#droprate.dr-v2 .dr-tag { padding: 4px 6px; font-size: 12px; text-align: center; }
#droprate.dr-v2 .dr-bar { height: 10px; background: #fffef8; border: 1px solid var(--site-ink); }
#droprate.dr-v2 .dr-bar i { display: block; height: 100%; border-right: 1px solid var(--site-ink); }
#droprate.dr-v2 .dr-pct { color: var(--site-ink); font: 900 16px/1 'Trebuchet MS', Verdana, sans-serif; text-align: right; }
#droprate.dr-v2 .dr-sk { padding: 3px 8px; color: var(--site-ink); background: #fffef8; border: 1px solid #9aab94; font-size: 12px; font-weight: 800; white-space: nowrap; }
#droprate.dr-v2 .dr-note { margin: 14px 0 0; color: #52664f; font-size: 13px; line-height: 1.5; }
#droprate.dr-v2 .dr-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#droprate.dr-v2 .dr-skill { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; margin: 0; padding: 10px; background: #fffef8; border: 1px solid #c7d2bb; border-left: 5px solid var(--skc); }
#droprate.dr-v2 .dr-skill-icon { display: grid; place-items: center; width: 32px; height: 32px; background: var(--skc); border: 2px solid var(--site-ink); }
#droprate.dr-v2 .dr-skill-icon img { width: 22px; height: 22px; image-rendering: pixelated; }
#droprate.dr-v2 .dr-skill b { display: block; margin: 0 0 2px; color: var(--site-ink); font: 900 13px/1.2 'Trebuchet MS', Verdana, sans-serif; text-transform: uppercase; letter-spacing: .03em; }
#droprate.dr-v2 .dr-skill span { color: #52664f; font-size: 12px; line-height: 1.4; }
@media (max-width: 760px) {
  #droprate.dr-v2 { grid-template-columns: 1fr; padding: 16px; }
  #droprate.dr-v2 .dr-col + .dr-col { margin-top: 18px; }
  #droprate.dr-v2 .dr-row { grid-template-columns: 96px minmax(30px, 1fr) 54px; }
  #droprate.dr-v2 .dr-sk { grid-column: 1 / -1; justify-self: start; }
  #droprate.dr-v2 .dr-skills { grid-template-columns: 1fr; }
}
#droprate.dr-v2.dr-tires { width: min(560px, calc(100vw - 24px)); grid-template-columns: 1fr; }
@media (max-width: 900px) { #droprate.dr-v2 { pointer-events: auto; overscroll-behavior: contain; } }

/* Signed out: the demo match plays behind the sign-in card instead of a solid screen. */
#gate { background: rgba(9, 24, 16, .42); }
#gate .gate-box { box-shadow: 6px 6px 0 var(--site-ink), 0 18px 40px rgba(0,0,0,.35); }
/* Sign-in card in the standard layout: cream card, dark-green border and hard shadow, site type. */
#gate .gate-box.mc-panel { width: min(420px, 100%); gap: 12px; padding: 22px 24px 20px; color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink); border-radius: 0; box-shadow: 6px 6px 0 var(--site-ink), 0 18px 40px rgba(0,0,0,.35); font-family: 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
#gate .gate-brand { width: min(200px, 70%); }
#gate .gate-sub { margin: 0; color: var(--site-ink); font: 900 18px/1.3 'Trebuchet MS', Verdana, sans-serif; letter-spacing: -.01em; }
#gate .gate-ref { text-align: left; }
#app #gate .gate-main { min-height: 48px; padding: 12px; font-size: 14px; }
#gate #gate-msg { color: #9b4433; font: 700 13px/1.4 'Trebuchet MS', Verdana, sans-serif; }
#gate #gate-msg:empty { display: none; }
#gate .gate-note { margin: 2px 0 0; padding-top: 12px; color: #52664f; border-top: 1px solid #cbd4c0; font: 12px/1.5 'Trebuchet MS', Verdana, sans-serif; }
#gate #gate-wallets .small { margin: 0; color: #52664f; font: 13px/1.5 'Trebuchet MS', Verdana, sans-serif; }
#app #gate .gate-wallet { min-height: 46px; justify-content: center; font-size: 14px; }
@media (max-width: 480px) { #gate .gate-box.mc-panel { padding: 18px 16px; } #gate .gate-sub { font-size: 16px; } }
#gate { padding: 12px; }
#gate .gate-box.mc-panel { gap: 10px; padding: 16px 22px 14px; margin-block: auto; }
#gate .gate-brand { width: min(150px, 55%); }
#gate .gate-sub { font-size: 16px; }
#app #gate .gate-main { min-height: 42px; padding: 9px; }
#gate .gate-note { padding-top: 8px; font-size: 11px; }

/* Payment choice modal in the standard layout (same family as the withdrawal and wallet panels). */
:is(#pay-choice, #demo-leave) .pay-choice-box { width: min(440px, 100%); max-width: none; padding: 24px; color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink); border-radius: 0; box-shadow: 6px 6px 0 var(--site-ink), 0 18px 50px rgba(15,35,25,.25); font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
:is(#pay-choice, #demo-leave) .modal-close { top: 18px; right: 18px; width: 34px; height: 34px; padding: 0; color: var(--site-ink); background: #e4ead9; border: 2px solid var(--site-ink); box-shadow: 2px 2px 0 var(--site-ink); font: 900 15px/1 'Trebuchet MS', Verdana, sans-serif; }
:is(#pay-choice, #demo-leave) .pc-eyebrow { display: block; padding-right: 44px; color: #557253; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
:is(#pay-choice, #demo-leave) h2 { margin: 6px 0 16px; padding-right: 44px; color: var(--site-ink); font: 900 22px/1.2 'Trebuchet MS', Verdana, sans-serif; letter-spacing: -.02em; text-shadow: none; }
:is(#pay-choice, #demo-leave) h2::before { content: none; }
:is(#pay-choice, #demo-leave) .pc-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
:is(#pay-choice, #demo-leave) .pc-summary > div { padding: 10px 12px; background: #e9eddd; border: 1px solid #c7d2bb; }
:is(#pay-choice, #demo-leave) .pc-summary small { display: block; color: #5b6d56; font-size: 11px; font-weight: 800; }
:is(#pay-choice, #demo-leave) .pc-summary b { display: block; color: var(--site-ink); font-size: 16px; font-weight: 900; overflow-wrap: anywhere; }
:is(#pay-choice, #demo-leave) .pay-choice-btns { gap: 12px; margin: 0; }
#app :is(#pay-choice, #demo-leave) .pay-choice-btns .pix-btn { min-height: 48px; padding: 12px; font-size: 14px; }
@media (max-width: 420px) { :is(#pay-choice, #demo-leave) .pay-choice-box { padding: 20px 16px; } :is(#pay-choice, #demo-leave) .pc-summary { grid-template-columns: 1fr; } }

/* Coach and Stake modals in the standard layout (same family as payment choice, withdrawal and wallet). */
:is(#coach-panel, #stake-panel) .modal-box.mc-panel { padding: 24px; color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink); border-radius: 0; box-shadow: 6px 6px 0 var(--site-ink), 0 18px 50px rgba(15,35,25,.25); font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
#coach-panel .coach-box { width: min(480px, 100%); }
#stake-panel .stake-box { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; }
:is(#coach-panel, #stake-panel) .modal-close { top: 18px; right: 18px; width: 34px; height: 34px; padding: 0; color: var(--site-ink); background: #e4ead9; border: 2px solid var(--site-ink); box-shadow: 2px 2px 0 var(--site-ink); font: 900 15px/1 'Trebuchet MS', Verdana, sans-serif; }
:is(#coach-panel, #stake-panel) h2 { margin: 0 0 10px; padding-right: 44px; color: var(--site-ink); font: 900 22px/1.2 'Trebuchet MS', Verdana, sans-serif; letter-spacing: -.02em; text-shadow: none; }
:is(#coach-panel, #stake-panel) h2::before { content: none; }
:is(#coach-panel, #stake-panel) .small { color: #52664f; font: 13px/1.55 'Trebuchet MS', Verdana, sans-serif; text-shadow: none; }
:is(#coach-panel, #stake-panel) .small b, #stake-panel .stake-form .small b, #stake-panel .stake-rarity b { color: var(--site-ink); font-weight: 900; }
:is(#coach-panel, #stake-panel) .stake-now { gap: 8px; margin: 14px 0; }
:is(#coach-panel, #stake-panel) .stake-now > div { padding: 10px 12px; background: #e9eddd; border: 1px solid #c7d2bb; box-shadow: none; }
:is(#coach-panel, #stake-panel) .stake-now small { margin-bottom: 2px; color: #5b6d56; font-size: 11px; font-weight: 800; }
:is(#coach-panel, #stake-panel) .stake-now b { color: var(--site-ink); font-size: 18px; font-weight: 900; text-shadow: none; }
#stake-panel .stake-now b.buff { color: #26703c; }
#stake-panel .stake-now b.buff.nerf { color: #9b4433; font-size: 16px; }
#stake-panel .stake-grace { padding: 10px 12px; color: #1f4a2b; background: #e2ebd8; border: 1px solid #9fc28e; font-size: 13px; line-height: 1.5; }
#stake-panel .stake-tiers { gap: 6px; }
#stake-panel .stake-tier { padding: 8px 12px; color: var(--site-ink); background: #fffef8; border: 1px solid #c7d2bb; font-size: 13px; }
#stake-panel .stake-tier b { color: #26703c; font-weight: 900; }
#stake-panel .stake-tier b.nerf { color: #9b4433; }
#stake-panel .stake-tier.on { background: #fff1c2; border: 2px solid var(--site-ink); box-shadow: 2px 2px 0 var(--site-ink); }
#stake-panel .stake-form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid #cbd4c0; }
#stake-panel .wd-field { gap: 7px; color: var(--site-ink); font-size: 12px; font-weight: 900; }
#stake-panel .wd-field input { width: 100%; min-width: 0; height: 46px; padding: 0 12px; color: var(--site-ink); background: #fffef8; border: 1px solid #9aab94; border-radius: 0; font: 600 14px/1.2 'Trebuchet MS', Verdana, sans-serif; }
#stake-panel .wd-field input:focus-visible { outline: 3px solid #d66325; outline-offset: 2px; }
#stake-panel .wd-amount-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
#app #stake-panel .wd-amount-row .pix-btn { min-width: 100px; padding: 0 16px; font-size: 13px; }
#stake-panel .stake-presets { gap: 8px; margin: 0; }
#app #stake-panel .stake-presets .mk-chip { min-height: 34px; padding: 6px 10px; font-size: 12px; }
#coach-panel .modal-actions { margin: 14px 0 0; }
#app #coach-panel #coach-hire { width: 100%; min-height: 48px; padding: 12px; font-size: 14px; animation: none; }
@media (max-width: 480px) { :is(#coach-panel, #stake-panel) .modal-box.mc-panel { padding: 20px 16px; } :is(#coach-panel, #stake-panel) h2 { font-size: 20px; } }
#stake-panel :is(.stake-presets, #stake-hint, .stake-rarity, .stake-tiers):empty { display: none; }

/* Demo Banner: fixed bar in the site style */
#demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px;
  background: var(--site-cream);
  color: var(--site-ink);
  border-bottom: 2px solid var(--site-ink);
  box-shadow: 0 4px 0 var(--site-ink);
  font-family: 'Trebuchet MS', Verdana, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
#demo-banner.hidden {
  display: none !important;
}
#demo-banner #demo-banner-text {
  letter-spacing: .02em;
}
#app #demo-banner #demo-banner-connect {
  min-height: 32px;
  padding: 6px 14px;
  font-size: 11px;
  white-space: nowrap;
}
body.has-demo-banner #app {
  padding-top: 56px;
}
@media (max-width: 640px) {
  #demo-banner {
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    font-size: 11px;
  }
  body.has-demo-banner #app {
    padding-top: 74px;
  }
}
#demo-leave .dl-text { margin: 0 0 18px; color: #3f5240; font-size: 14px; line-height: 1.55; }

/* Marketplace: same cream panel as Squad and Training; players shown on the squad's rarity cards. */
#app #market-panel {
  display: flex; flex-direction: column; padding: 0;
  color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink);
  border-radius: 0; box-shadow: 5px 5px 0 var(--site-ink), 0 14px 36px rgba(23,61,45,.24);
  font-family: 'Trebuchet MS', Verdana, sans-serif; text-shadow: none;
}
#app #market-panel.hidden { display: none; }
#market-panel .drawer-head { margin: 0; padding: 14px 18px; background: var(--site-cream); border-bottom: 1px solid #cbd4c0; }
#market-panel h2 { margin: 0; color: var(--site-ink); font: 900 22px/1.2 'Trebuchet MS', Verdana, sans-serif; letter-spacing: -.03em; text-shadow: none; }
#app #market-panel .drawer-close {
  width: 34px; height: 34px; padding: 0; color: var(--site-ink); background: var(--site-green);
  border: 2px solid var(--site-ink); box-shadow: 3px 3px 0 var(--site-ink); font: 900 16px/1 'Trebuchet MS', Verdana, sans-serif;
}
#app #market-panel .drawer-close:hover { background: #c7dfad; }
#market-panel .mk-bar { margin: 0; padding: 12px 18px 14px; gap: 12px; background: #e9eddd; border-bottom: 1px solid #cbd4c0; }
#market-panel .mk-modes { gap: 9px; }
#app #market-panel .mk-mode { min-height: 34px; padding: 7px 12px; font: 900 11px/1.2 'Trebuchet MS', Verdana, sans-serif; letter-spacing: .04em; }
#app #market-panel .mk-mode:not(.active) { background: var(--site-green); }
#market-panel #mk-filters { gap: 9px; margin: 14px 18px 0; }
#app #market-panel .mk-chip { min-height: 30px; padding: 6px 10px; opacity: 1; outline: none; background: #e9eddd; font: 800 11px/1.2 'Trebuchet MS', Verdana, sans-serif; }
#app #market-panel .mk-chip.active { background: var(--site-yellow); }
#market-panel #mk-note { margin: 12px 18px 14px; color: #52664f; font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif; }
#market-panel #mk-list { padding: 4px 18px 18px; margin: 0; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 16px; }
#market-panel .mk-empty { padding: 30px 0; color: #60715b; font: 14px/1.5 'Trebuchet MS', Verdana, sans-serif; }

#market-panel .mk-card.pcard { display: flex; flex-direction: column; gap: 6px; padding: 0; min-width: 0; color: var(--site-ink); background: none; border: 0; box-shadow: none; text-shadow: none; }
#market-panel .pcard .pc-id { color: var(--site-ink); text-shadow: none; font: 800 10px/1 'Trebuchet MS', Verdana, sans-serif; }
#market-panel .pcard .pc-top .rar { font-size: 10px; }
#market-panel .mk-body { display: flex; flex-direction: column; gap: 7px; padding: 10px; background: #e9eddd; border: 2px solid #b4c3a1; }
#market-panel .mk-card.mine .mk-body { border-color: #39834d; }
#market-panel .mk-meta { color: #60715b; font: 11px/1.4 'Trebuchet MS', Verdana, sans-serif; overflow-wrap: anywhere; }
#market-panel .mk-foot { margin: 0; gap: 8px; }
#market-panel .mk-price { gap: 5px; color: var(--site-ink); text-shadow: none; font: 900 14px/1 'Trebuchet MS', Verdana, sans-serif; }
#market-panel .mk-price img { width: 16px; height: 16px; }
#app #market-panel .mk-foot .pix-btn, #app #market-panel .mk-sell .pix-btn { padding: 7px 10px; font: 900 11px/1.2 'Trebuchet MS', Verdana, sans-serif; }
#app #market-panel .mk-foot .pix-btn.green, #app #market-panel .mk-sell .pix-btn { background: var(--site-yellow); }
#app #market-panel .mk-foot .pix-btn:disabled { opacity: .75; color: #586957; }
#market-panel .mk-sell { gap: 6px 8px; }
#market-panel .mk-sell input { min-width: 0; padding: 6px 8px; color: var(--site-ink); background: var(--site-cream); border: 2px solid var(--site-ink); font: 900 13px/1.2 'Trebuchet MS', Verdana, sans-serif; }
#market-panel .mk-sell small { color: #60715b; font: 11px/1.4 'Trebuchet MS', Verdana, sans-serif; }
@media (max-width: 760px) {
  #market-panel .drawer-head { padding: 12px 14px; }
  #market-panel h2 { font-size: 19px; }
  #market-panel .mk-bar { padding: 10px 14px 12px; }
  #market-panel #mk-filters { margin: 12px 14px 0; }
  #market-panel #mk-note { margin: 10px 14px 12px; }
  #market-panel #mk-list, #market-panel #mk-list.houses { padding: 4px 14px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}

/* Fusion footer: one bar in the panel style, summary on the left and FUSE as the main action. */
#fusion-panel .fusion-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; padding: 12px 14px;
  background: #e9eddd; border: 1px solid #cbd4c0;
}
#fusion-panel .fusion-foot #fusion-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
#fusion-panel .fu-sel { display: inline-flex; align-items: center; gap: 7px; color: #52664f; font: 700 13px/1.2 'Trebuchet MS', Verdana, sans-serif; }
#fusion-panel .fusion-foot #fusion-info .fu-sel b {
  min-width: 46px; padding: 6px 8px; text-align: center; color: var(--site-ink); background: var(--site-cream);
  border: 2px solid var(--site-ink); font: 900 15px/1 'Trebuchet MS', Verdana, sans-serif;
}
#fusion-panel .fusion-foot #fusion-info .fu-sel b.full { background: var(--site-green); }
#fusion-panel .fu-path { display: inline-flex; align-items: center; gap: 8px; }
#fusion-panel .fu-path i { color: #60715b; font: 900 16px/1 'Trebuchet MS', Verdana, sans-serif; font-style: normal; }
#fusion-panel .fu-path .fu-rar { padding: 4px 8px; font-size: 10px; border-width: 1px !important; box-shadow: none !important; }
#fusion-panel .fu-cost, #fusion-panel .fu-cost.short { gap: 8px; padding: 5px 12px 5px 8px; border-width: 1px; font: 900 14px/1.15 'Trebuchet MS', Verdana, sans-serif; }
#fusion-panel .fu-cost .ico { width: 22px; height: 22px; }
#fusion-panel .fu-cost small { margin-bottom: 1px; font-size: 9px; letter-spacing: .06em; }
#app #fusion-panel .fusion-foot .pix-btn { min-height: 40px; padding: 8px 14px; font: 900 12px/1.2 'Trebuchet MS', Verdana, sans-serif; letter-spacing: .04em; }
#app #fusion-panel #fusion-go { min-width: 150px; padding-inline: 24px; background: var(--site-yellow); font-size: 14px; }
#fusion-panel #fusion-go { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
#fusion-panel .fusion-foot .pix-btn { align-self: stretch; }
#fusion-panel #fusion-go .fu-go-label { font-size: 15px; line-height: 1; }
#fusion-panel #fusion-go .fu-go-cost { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; line-height: 1; letter-spacing: .03em; }
#fusion-panel #fusion-go .fu-go-cost .ico { width: 14px; height: 14px; background-size: contain; background-repeat: no-repeat; }
#fusion-panel #fusion-go.short .fu-go-cost { color: #9b2c1f; }
#app #fusion-panel .fusion-foot .pix-btn:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 760px) {
  #fusion-panel .fusion-foot { padding: 12px; }
  #fusion-panel .fusion-foot #fusion-info { flex-basis: 100%; }
  #app #fusion-panel .fusion-foot .pix-btn { flex: 1 1 auto; padding-inline: 10px; white-space: nowrap; }
  #app #fusion-panel #fusion-go { min-width: 0; }
}

/* Bonus balance (influencer rewards): in the wallet panel, only above 0; pays mints only. */
#wallet-panel .w-bonus { gap: 13px; margin: 0 0 14px; padding: 12px 16px; background: #dff3ee; border: 1px solid #9fd0c4; }
#wallet-panel .w-bonus .ico { width: 30px; height: 30px; flex: 0 0 auto; }
#wallet-panel .w-bonus small { margin: 0 0 3px; color: #1f7a6a; font-size: 11px; font-weight: 800; }
#wallet-panel .w-bonus b { color: #0f5a4d; font-size: 19px; font-weight: 900; line-height: 1.2; text-shadow: none; }
#wallet-panel .w-bonus .wl-note { display: block; margin-top: 2px; color: #3d6b60; font-size: 11px; }

/* Circuit overlay, bottom left: the five players on the circuit with live stamina (ui.js renderCircuitSquad).
   Stage panels (z-index 6) cover it. */
#stage > .circuit-squad {
  position: absolute; left: 13px; bottom: 22px; z-index: 3; display: flex; align-items: stretch;
  font: 700 10px/1.1 'Trebuchet MS', Verdana, sans-serif; color: var(--site-ink);
}
#stage > .circuit-squad.hidden { display: none; }
/* Arrow tab on the left edge of the circuit: collapses the overlay to just the arrow. */
.circuit-squad .ps-toggle {
  flex: none; width: 22px; padding: 0; color: var(--site-ink); background: var(--site-green);
  border: 2px solid var(--site-ink); border-right-width: 0; box-shadow: 3px 3px 0 var(--site-ink);
  font: 900 11px/1 'Trebuchet MS', Verdana, sans-serif; cursor: pointer;
}
.circuit-squad.collapsed .ps-toggle { min-height: 40px; border-right-width: 2px; }
.circuit-squad .ps-toggle:hover { background: #c7dfad; }
.circuit-squad .ps-list {
  display: flex; gap: 5px; padding: 5px; color: inherit; font: inherit;
  background: rgba(246, 243, 232, .92); border: 2px solid var(--site-ink); box-shadow: 3px 3px 0 var(--site-ink); cursor: pointer;
}
.circuit-squad.collapsed .ps-list { display: none; }
.circuit-squad .ps-list:hover { background: #fffdf4; }
.circuit-squad :is(.ps-toggle, .ps-list):focus-visible { outline: 3px solid #d66325; outline-offset: 3px; }
.circuit-squad .ps-card { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 52px; }
.circuit-squad img {
  width: 34px; height: 34px; image-rendering: pixelated; background: #e9eddd;
  border: 2px solid var(--rc, var(--site-ink)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.circuit-squad .ps-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.circuit-squad .ps-bar { width: 100%; height: 5px; background: #cbd5c1; border: 1px solid #98ad96; }
.circuit-squad .ps-bar i { display: block; height: 100%; background: #39a04f; transition: width .4s linear; }
.circuit-squad .ps-card.mid .ps-bar i { background: #e0a72a; }
.circuit-squad .ps-card.low .ps-bar i { background: #d4472f; }
.circuit-squad .ps-num { font-size: 9px; color: #52664f; white-space: nowrap; }
@media (max-width: 900px) {
  #stage > .circuit-squad { left: 13px; bottom: 16px; }
  .circuit-squad .ps-list { gap: 3px; padding: 4px; }
  .circuit-squad .ps-card { width: 40px; }
  .circuit-squad img { width: 26px; height: 26px; }
  .circuit-squad .ps-name { display: none; }
  .circuit-squad .ps-num { font-size: 8px; }
}
