/* Amber hangar: dark plum metal, warm highlights and distinct vehicle paint. */
:root {
  color-scheme: dark;
  --bg: #291c29;
  --surface: #462b42;
  --surface2: #352333;
  --line: #251823;
  --text: #fff9ec;
  --muted: #fff0db;
  --amber: #ffcf46;
  --teal: #ffab7f;
  --ink: #271823;
  --cut: 9px 2px 10px 3px;
}
body {
  background: linear-gradient(180deg,#2211214f,#3a183624 59%,#291625ad), url(../arcade/hangar-ambar.webp) center top/cover fixed, #4e3749;
}
button:focus-visible, a:focus-visible, canvas:focus-visible {
  outline: 3px solid white; outline-offset: 2px;
  box-shadow: 0 0 0 6px #764768;
}
.mast {
  background: linear-gradient(180deg,#4b3247f5,#2d1f2cf5);
  border-bottom: 3px solid #37212f;
  box-shadow: inset 0 -2px 0 #a57365, 0 3px 0 #43293a80;
}
.brand b, .brand em { color: white; text-shadow: 2px 2px 0 #35202e; }
.brand em { color: #ffbd8e; }
.brand small { color: #3a2433; background: #ffe077; }
.emblem { background: #ffda5b; }
.emblem:before { background: #754867; }
nav a { color: #f8e7d9; font-weight: 750; }
nav a[aria-current=page] { color: #ffe97d; }
nav a[aria-current=page]:after { height: 4px; background: #ffce42; box-shadow: 0 -1px #fff0a0; }
.player { border-color: #a47a66; }
.player small { color: #f5e9c4; }
.avatar { background: #f1ddaf; color: #eac087; }
.avatar:before { background: #673f5a; }
.wallet {
  border: 2px solid #372230; border-radius: var(--cut); background: #422839;
  color: #ffe16c; box-shadow: inset 0 1px 0 #a67a65;
  text-shadow: 1px 2px #311f2b;
}
.section-head h1, .strip-head h2, .detail h2, .modal-inner h2 {
  color: #fff9ec; font-weight: 900; font-style: italic; letter-spacing: -.04em;
  paint-order: stroke fill; -webkit-text-stroke: 3px #392332;
  text-shadow: 2px 3px 0 #372230;
}
.section-head h1 { font-size: clamp(32px,3.4vw,53px); }
.section-head h1:before { width: 8px; background: #ffac6a; box-shadow: 4px 0 #623d56; }
.inventory-count, .filter-count, .catalog-link {
  color: #fff8ee; font-weight: 750; background: #4c2e42ed;
  border: 2px solid #3d2635; border-radius: 6px 2px; padding: 5px 9px;
  box-shadow: inset 0 1px #aa8069;
}
.inventory-count .ic, .catalog-link .ic { color: #edcf9b; }
.showcase {
  border: 3px solid var(--ink); border-radius: 14px 5px 15px 4px;
  background: #6a415d; box-shadow: 0 4px 0 #2d1c27f0;
}
.stage { background: #a1614b url(../arcade/hangar-ambar.webp) 26% 60%/155% auto no-repeat; }
.stage:before { background: linear-gradient(to top,#5b385085,transparent 24%,transparent 84%,#4a2e4155); }
.view-label, .rotate-controls {
  background: #4c2e42ed; border: 2px solid #3d2535; color: #f9f4de;
  border-radius: var(--cut); box-shadow: inset 0 1px 0 #b68568;
}
.rotate-controls button { color: #ffc195; }
.rotate-controls button:hover { background: #6d4657; }
.rotate-controls span { color: #fff9ec; }
#hero { filter: drop-shadow(1px 2px 0 #3a2433) drop-shadow(0 7px 5px #472b3e60); }
.detail, dialog {
  background: radial-gradient(ellipse at 100% 0%,#975745,transparent 75%), linear-gradient(120deg,#603b54,#492d40);
}
.detail { border-left: 3px solid var(--ink); box-shadow: inset 0 2px #c89872; }
.status { color: #ffcc96; }
.status.preview { color: #ffe57f; }
.tags, .tags .ic, .desc, .action-hint { color: #f6e6db; }
.tags>i, .stats { border-color: #ad856e; }
.tags>i { background: #b18c74; }
.stats { border-top-color: #a3745f; }
.stat>div:first-child .ic { color: #ffba9a; }
.meter { background: #3e2636; height: 6px; border-radius: 2px; }
.meter i { background: linear-gradient(90deg,#f26b61,#ffc797); }
.stat:nth-of-type(2) .meter i { background: linear-gradient(90deg,#e99b4b,#ffe69b); }
.stat:nth-of-type(3) .meter i { background: linear-gradient(90deg,#cd567e,#ffb8ab); }
.primary, .secondary, .filter-row button {
  font-weight: 850; border: 2px solid var(--ink); border-radius: var(--cut);
  box-shadow: inset 0 2px #ffffff87, 0 2px #37212f;
}
.primary { color: #37250d; background: linear-gradient(#ffe87b,#ffc837 58%,#ffae29); }
.primary:hover:not(:disabled) { background: linear-gradient(#fff1a7,#ffcd49); }
.secondary, .filter-row button { color: #fcfaed; background: linear-gradient(#a25a43,#6a415d); }
.filter-row button:hover, .secondary:hover { background: #a55b43; }
.filter-row button[aria-pressed=true] { color: #30240e; border-color: #37212f; background: linear-gradient(#ffea84,#ffbf31); }
.strip { gap: 13px; scrollbar-color: #dcb485 #4e3044; padding-bottom: 12px; }
.grid { gap: clamp(11px,1.3vw,21px); }
.card {
  border: 3px solid var(--ink); border-radius: 13px 3px 13px 3px; background: #4d2f43;
  box-shadow: 0 3px 0 #321f2c; transition: transform .15s, border-color .15s;
}
.card:hover { border-color: #f0d8a7; transform: translateY(-1px); }
.card.selected { border-color: #ffdf54; box-shadow: 0 2px 0 #35202e,inset 0 0 0 1px #ffdf54; }
.card-pic {
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(145deg,transparent 55%,#ffffff43 55.5%,transparent 64%), radial-gradient(ellipse at 34% 25%,#fffb 0%,transparent 58%), linear-gradient(120deg,color-mix(in srgb,var(--paint) 70%,#ffe0ae),color-mix(in srgb,var(--paint) 65%,#593752));
}
.card-pic:after {
  z-index: -1; opacity: .38;
  background: radial-gradient(circle,#ffffffa8 1px,transparent 1.4px) left top/6px 6px;
  mask-image: linear-gradient(55deg,transparent 20%,#000 90%);
}
.card-pic canvas { filter: drop-shadow(1px 2px 0 #422a3abc) drop-shadow(0 4px 3px #422a3a4a); }
.card-icon, .card-icon.owned {
  z-index: 1; display: grid; place-content: center; width: 21px; height: 21px;
  color: #fbf8e7; background: #4f3045; border: 1px solid #2f1c28;
  border-radius: 4px 2px 6px; font-size: 15px;
}
.card-icon.owned { color: #ffe5a7; background: #62462c; }
.card-meta { background: linear-gradient(115deg,#68405b,#4a2d40); box-shadow: inset 0 1px #ad8a74; }
.card-name { color: white; text-shadow: 1px 2px #382230; font-weight: 850; }
.card-name:before { width: 5px; transform: skew(-13deg); }
.card-state { color: #ffd2ab; }
.price, .catalog-link { color: #fff199; }
.empty { color: white; background: #5e3a52ec; border-radius: 9px; }
dialog { border: 3px solid #3d2535; box-shadow: 0 5px 0 #2d1c27,0 20px 80px #1e131a9c; }
dialog::backdrop { background: #2f1d29bf; }
.modal-inner { box-shadow: inset 0 2px #c39c7b; }
.modal-inner p, .modal-close { color: #f7e9dc; }
.dialog-symbol { background: #59374e; color: #ffdb55; border: 2px solid #3a2332; }
.toast { background: #4f3045; color: #fcfaee; }
.toast:not(:empty) { border: 2px solid #e7c18b; }
@media (max-width:720px) {
  .mast nav a { gap: 4px; }
  .section-head h1 { font-size: clamp(28px,7vw,36px); }
  .stage { background-position: 25% 65%; }
  .detail { border-left: 0; border-top: 3px solid var(--ink); }
  .filter-count,.inventory-count,.catalog-link { padding: 4px 6px; }
}
@media (max-width:390px) {
  .mast nav a .ic { display: none; }
  .filter-row { gap: 4px; }
}
.card-pic .arcade-model{position:absolute;inset:3% 6%;width:88%;height:94%;object-fit:contain;filter:saturate(1.25) drop-shadow(1px 2px 0 #3a233275)}.card:hover .arcade-model{transform:scale(1.035)}

.model-spec {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 15px;
  font-size: 13px;
}
.model-spec b, .card-burst {
  color: #ffe3a0;
  background: #30202b;
  border: 1px solid #b48661;
  border-radius: 3px;
  line-height: 1.3;
}
.model-spec b { padding: 3px 8px; }
.model-spec span { color: #f2d8c9; }
.card-burst {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 5px;
  font-size: clamp(10px, .86vw, 13px);
  font-weight: 800;
}
.card-icon { top: 6px; }

/* USDT prices and demo purchases are separate units and separate states. */
.economy-status{display:flex;align-items:center;gap:14px;margin:0 0 20px;padding:13px 16px;border:1px solid #b78972;border-radius:9px;background:linear-gradient(110deg,#543947ed,#342636ed)}
.economy-badge{flex:none;padding:7px 10px;color:#aaf6d7;background:#204a43;border:1px solid #6eae91;border-radius:5px;font-size:13px;font-weight:850;letter-spacing:.035em}
.economy-status p{margin:0;color:#fff0d7;font-size:15px;line-height:1.4}.economy-status small{display:block;color:#e5cbc7;font-size:13px;margin-top:3px}
.catalog-price{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px;margin:0 0 15px;padding:11px 13px;border:1px solid #bd8b71;border-radius:7px;background:#32212ca6}
.catalog-price>span{font-size:14px;color:#f6ddcc}.catalog-price strong{font-size:24px;font-weight:900;color:#b3f5dc}.catalog-price small{grid-column:1/-1;font-size:12px;color:#edd0c5}
.cost.usdt-cost{color:#b3f5dc;font-size:14px;font-weight:850;white-space:nowrap}
.card-ownership{display:block;flex-basis:100%;color:#f2d8cc;font-size:12px;font-weight:650;line-height:1.3}
.action-hint{font-size:13px;line-height:1.4}
@media(max-width:720px){.economy-status{align-items:flex-start;gap:10px;padding:12px}.economy-status p{font-size:14px}.economy-badge{font-size:11px;padding:6px}.catalog-price strong{font-size:22px}.cost.usdt-cost{font-size:13px}}
@media(max-width:390px){.economy-status{flex-direction:column}.catalog-price{grid-template-columns:1fr}.catalog-price strong{grid-row:2}.card-ownership{font-size:11px}}

.garage-heading{display:flex;align-items:center;gap:12px;min-width:0}
#garage-back,.modal-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;border:1px solid #ba8567;border-radius:7px;color:#ffe0ad;background:linear-gradient(#704451,#422738);font-weight:800}
#garage-back{font-size:28px;padding:0 8px;flex-shrink:0}.modal-back{padding:7px 12px;font-size:14px;margin:0 0 18px}.modal-back span{font-size:23px;line-height:1}
.mast .back-lobby>span{font-size:24px;line-height:1}.section-head .garage-heading h1{margin:0}
@media(max-width:560px){.garage-heading{gap:8px}.section-head .garage-heading h1{font-size:24px}.section-head{gap:8px}.inventory-count{max-width:110px;text-align:right}}

/* Shared arsenal counters and persistent tank upgrades. */
.mast-inner{gap:22px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.mast .player-info{gap:7px;margin-left:auto}.mast .player-info .player{display:none}.mast .wallet{min-height:43px;gap:7px;padding:7px 10px;font-size:18px;white-space:nowrap}.mast .wallet .unit-name{font-size:9px;letter-spacing:.04em}.gold-token{display:inline-grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;border:2px solid #ffd471;background:radial-gradient(circle at 35% 25%,#ffe8a2,#ffc13e 55%,#bb6b17);box-shadow:inset 0 0 0 2px #ad641d,0 2px 0 #512718;color:#8d430e;text-shadow:0 1px #fff5b9;font-size:18px;font-style:italic;font-weight:950}.gold-token.small{width:21px;height:21px;font-size:13px}.match-ticket{display:inline-grid;place-items:center;width:28px;height:23px;color:#fff1d4;background:#be6a79;border:2px dashed #ffd2b4;transform:rotate(-12deg);font-size:16px}.matches-wallet{color:#fbd6d8}.gold-wallet{color:#ffdd62}
.upgrade-panel{position:relative;width:100%;margin-top:19px;padding:15px;border:1px solid #caa06c;border-radius:12px 3px 12px 3px;background:radial-gradient(ellipse at 100% 0,#9a624933,transparent 60%),linear-gradient(135deg,#34212e,#4c2f3b);box-shadow:inset 0 1px #ffdd9c55,0 3px #2b1b28;grid-column:1/-1}.upgrade-heading{display:flex;gap:10px;align-items:center}.upgrade-heading small{display:block;color:#e8bb80;font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:850}.upgrade-heading h3{margin:3px 0;color:#fff2d4;font-size:21px;font-weight:900;font-style:italic}.level-cap{margin-left:auto;padding:5px 6px;border:1px solid #a97e63;border-radius:3px;font-size:10px;color:#e9c594;white-space:nowrap}.upgrade-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:14px 0}.upgrade-steps span{padding:6px 0;text-align:center;border:1px solid #80576b;background:#3a2633;color:#c5aeb8;border-radius:4px;font-size:12px;font-weight:850}.upgrade-steps .reached{color:#342016;border-color:#ffdc85;background:linear-gradient(#ffe48b,#e8a639);box-shadow:0 2px #6b422c}.upgrade-steps [aria-current=step]{outline:1px solid #fff4bd;outline-offset:2px}.upgrade-panel p{margin:6px 0;color:#f0dbcd;font-size:12px;line-height:1.5}.upgrade-panel #upgrade-current{font-weight:750;color:#fff0d4}.upgrade-button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:45px;margin:12px 0 6px;padding:9px;border:2px solid #35202c;border-radius:6px 2px;color:#33200e;background:linear-gradient(#ffe58b,#f1b52c);box-shadow:inset 0 2px #fff5b4,0 3px #241821;font-weight:900;font-size:14px}.upgrade-button:hover:not(:disabled){filter:brightness(1.12)}.upgrade-button:disabled{cursor:default;color:#c9b3bd;background:linear-gradient(#684454,#4a303e);border-color:#392430;box-shadow:inset 0 1px #937183}.upgrade-panel .upgrade-hint{font-size:11px;color:#dcc3c7}
@media(max-width:1200px){.mast-inner{gap:6px 20px}.mast .brand{height:45px}.mast nav{margin-left:auto;min-height:45px}.mast .player-info{flex:1 0 100%;justify-content:flex-end;margin-left:0;height:auto;padding-bottom:5px}}
@media(max-width:720px){.mast-inner{gap:0;padding-top:5px;padding-bottom:0}.mast .brand{width:100%;justify-content:center;height:45px}.mast .player-info{order:1;justify-content:center;width:100%;padding:0 0 7px}.mast nav{order:2;min-height:43px}.mast .wallet{padding:6px 8px;font-size:17px;gap:5px}.mast .wallet .unit-name{font-size:8px}.gold-token{width:24px;height:24px;font-size:16px}.match-ticket{width:24px;height:21px}.upgrade-panel{padding:13px}.upgrade-heading h3{font-size:20px}}
@media(max-width:390px){.mast .wallet{padding:6px;font-size:16px}.mast .wallet .unit-name{font-size:7px}.mast .player-info{gap:4px}.upgrade-panel{padding:12px}.level-cap{font-size:8px}}
