:root {
  --bg: #09110e;
  --panel: #111e19;
  --panel-light: #182a22;
  --line: #294438;
  --muted: #91a99a;
  --text: #edf5df;
  --accent: #b9ed88;
  --accent-dark: #1d3828;
  --gold: #f2c86b;
  --danger: #ff8f86;
  --v2-teal: #73d6bb;
  --v2-deep: #0b1512;
  --v2-soft-line: rgb(185 237 136 / 12%);
  --v2-radius: 16px;
}

[hidden] { display: none !important; }

body.v2-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 12% -8%, rgb(61 112 77 / 28%), transparent 42%),
    radial-gradient(ellipse at 94% 12%, rgb(33 94 82 / 17%), transparent 34%),
    linear-gradient(115deg, transparent 0 49.8%, rgb(185 237 136 / 2%) 50%, transparent 50.2%) 0 0 / 150px 150px,
    var(--bg);
  color: var(--text);
}

body.v2-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(255 255 255 / 1.5%) 1px, transparent 1px) 0 0 / 80px 100%;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.v2-page ::selection { background: #557542; color: #fff; }
.v2-app { width: min(1380px, calc(100% - 48px)); }
.v2-page main { min-height: 65vh; }
.v2-page .scene { padding: 24px 0 12px; }

.v2-header {
  gap: 30px;
  padding: 30px 0 24px;
  border-bottom-color: rgb(185 237 136 / 17%);
}

.v2-brand h1 {
  max-width: 850px;
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 720;
  letter-spacing: .045em;
  line-height: 1.12;
  text-wrap: balance;
}

.v2-brand .eyebrow { margin-bottom: 10px; color: var(--v2-teal); }
.v2-brand-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .025em; }

.v2-wallet-block { flex: 0 0 auto; text-align: right; }
.v2-wallet-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#credits { min-width: 126px; border-color: #6e603a; background: linear-gradient(135deg, #2a291c, #1d2219); box-shadow: inset 0 1px rgb(255 255 255 / 4%); text-align: center; }
#credits::before { margin-right: 9px; color: #d7b55f; content: "◆"; font-size: 14px; }

.v2-page .panel {
  border-color: var(--line);
  background: linear-gradient(145deg, rgb(20 35 28 / 97%), rgb(13 25 20 / 97%));
  box-shadow: 0 18px 50px rgb(0 0 0 / 17%), inset 0 1px rgb(255 255 255 / 2%);
}

.v2-workshop-intro {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border-color: #365640 !important;
  background:
    radial-gradient(circle at 90% 20%, rgb(185 237 136 / 9%), transparent 27%),
    linear-gradient(105deg, #193427, #111e19 72%) !important;
}

.v2-workshop-intro::after {
  position: absolute;
  top: -60px;
  right: 8%;
  width: 190px;
  height: 190px;
  border: 1px solid rgb(185 237 136 / 8%);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgb(185 237 136 / 2%), 0 0 0 60px rgb(185 237 136 / 1.5%);
  content: "";
  pointer-events: none;
}

.v2-workshop-intro > * { position: relative; z-index: 1; }
.v2-workshop-intro h2 { margin-bottom: 9px; font-size: clamp(22px, 3vw, 29px); font-weight: 650; }
.v2-workshop-intro p:last-child { max-width: 720px; line-height: 1.65; }

.v2-security-note {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgb(115 214 187 / 20%);
  border-radius: 30px;
  background: rgb(7 18 14 / 35%);
  color: #a8cbbb;
  font-size: 11px;
  white-space: nowrap;
}

.v2-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--v2-teal); box-shadow: 0 0 10px rgb(115 214 187 / 55%); }

.v2-page section.v2-workshop-console { padding: 0; overflow: hidden; }
.v2-tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); background: rgb(7 16 12 / 32%); }

.v2-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 22px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: color .16s, background .16s, border-color .16s;
}

.v2-tab:hover { background: rgb(185 237 136 / 3%); color: var(--text); }
.v2-tab.is-active,
.v2-tab[aria-selected="true"] { border-bottom-color: var(--accent); background: linear-gradient(to top, rgb(185 237 136 / 6%), transparent); color: var(--accent); }
.v2-tab-index { color: #5e7b69; font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.v2-tab.is-active .v2-tab-index,
.v2-tab[aria-selected="true"] .v2-tab-index { color: #8db471; }
.v2-tab-panel { padding: 26px; }

.v2-section-heading { align-items: center; margin-bottom: 22px; }
.v2-section-heading h2 { font-size: 23px; font-weight: 650; }
.v2-section-heading > span { max-width: 390px; line-height: 1.5; text-align: right; }
.v2-section-heading .eyebrow,
.v2-subsection-heading .eyebrow,
.v2-console-heading .eyebrow { color: #8ebc78; }

.v2-subsection-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.v2-subsection-heading h3,
.v2-console-heading h3 { margin: 0; font-size: 16px; font-weight: 650; }
.v2-subsection-heading .eyebrow,
.v2-console-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
.v2-subsection-heading > span { color: var(--muted); font-size: 11px; text-align: right; }

.v2-formation-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(250px, .8fr); gap: 20px; align-items: start; }
.v2-formation-board { min-width: 0; padding: 14px; border: 1px solid #2a4738; border-radius: 13px; background: #0c1712; }
.v2-board-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 12px; color: #718d7c; font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
#formation-capacity { padding: 5px 9px; border: 1px solid #39573f; border-radius: 6px; background: #192b20; color: var(--accent); font-size: 11px; letter-spacing: .02em; text-transform: none; }
#formation-capacity.is-over-capacity { border-color: #79423e; background: #311e1b; color: var(--danger); }

.v2-canvas-frame { overflow: hidden; border: 1px solid #35533e; border-radius: 9px; background: #0a130f; box-shadow: inset 0 0 30px rgb(0 0 0 / 30%); }
#formation-canvas,
#raid-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 11 / 5;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.v2-formation-instructions { margin: 13px 2px 0; color: #9caf9f; font-size: 12px; line-height: 1.65; }
.v2-inline-message { min-height: 20px; margin: 10px 2px 0; color: var(--v2-teal); font-size: 12px; line-height: 1.55; }
.v2-inline-message.is-error { color: var(--danger); }
.v2-inline-message.is-success { color: var(--accent); }
.v2-module-tray { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgb(22 38 30 / 60%); }

.v2-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 11px; min-width: 0; }
.v2-module-grid { grid-template-columns: 1fr; max-height: 480px; padding-right: 3px; overflow-y: auto; scrollbar-color: #3a5b46 transparent; scrollbar-width: thin; }

.v2-module-card,
.v2-item-card {
  position: relative;
  min-width: 0;
  padding: 13px;
  border: 1px solid #304b3c;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a2d24, #14231c);
  color: var(--text);
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}

button.v2-module-card { width: 100%; font: inherit; text-align: left; cursor: pointer; }
button.v2-module-card:hover,
.v2-module-card.is-selected,
.v2-module-card.selected { border-color: var(--accent); background: linear-gradient(145deg, #263f2e, #192b21); box-shadow: inset 0 0 0 1px rgb(185 237 136 / 16%); }
button.v2-module-card:hover { transform: translateY(-1px); }
.v2-module-card.is-equipped,
.v2-item-card.is-equipped { border-color: #4c7d68; }
.v2-item-card.is-locked { border-color: #6f633e; }
.v2-module-card h4,
.v2-item-card h4 { margin: 0 0 5px; font-size: 14px; }
.v2-module-card p,
.v2-item-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.v2-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.v2-card-badge { flex: 0 0 auto; padding: 3px 6px; border-radius: 5px; background: #2a4232; color: var(--accent); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.v2-item-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 10px; color: #b5c6b8; font-size: 11px; }
.v2-item-price { margin-top: 10px; color: var(--gold); font-size: 12px; font-weight: 700; }
.v2-item-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.v2-item-actions .button { flex: 1 1 auto; }

.v2-page .v2-buy-button,
.v2-page .v2-sell-button,
.v2-page .v2-equip-button,
.v2-page .v2-lock-button { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.v2-page .v2-buy-button { border-color: #83b866; background: #314f34; color: #e6f8d3; }
.v2-page .v2-buy-button:hover:not(:disabled) { background: #406442; }
.v2-page .v2-sell-button { border-color: #71613c; background: #302b1d; color: #e8ca82; }
.v2-page .v2-sell-button:hover:not(:disabled) { background: #403823; }
.v2-page .v2-lock-button.is-locked { border-color: #8a7744; color: var(--gold); }

.v2-empty-state { grid-column: 1 / -1; margin: 0; padding: 24px 14px; border: 1px dashed #34503f; border-radius: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

.v2-cannon-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.v2-cannon-spec,
.v2-cannon-parts,
.v2-stock-section,
.v2-shop-inventory { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgb(19 34 27 / 65%); }
.v2-cannon-stats { display: grid; gap: 12px; }
.v2-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v2-stat { padding: 11px; border: 1px solid #2c4738; border-radius: 8px; background: #111f18; }
.v2-stat span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.v2-stat strong { color: var(--text); font-size: 16px; }
.v2-component-slot { padding: 13px; border: 1px solid #355342; border-radius: 9px; background: #17291f; }

.v2-shop-message { margin: -5px 0 18px; }
.v2-shop-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr); gap: 18px; align-items: start; }
.v2-shop-offers { display: grid; gap: 16px; min-width: 0; }
.v2-stock-section { position: relative; }
.v2-rotating-stock { border-color: #46543a; background: linear-gradient(145deg, rgb(35 43 27 / 50%), rgb(18 32 25 / 70%)); }
.v2-rotating-stock .eyebrow { color: var(--gold); }
.v2-shop-inventory { position: sticky; top: 14px; }
#shop-inventory { grid-template-columns: 1fr; max-height: 660px; padding-right: 3px; overflow-y: auto; scrollbar-color: #3a5b46 transparent; scrollbar-width: thin; }

.v2-operation-panel { border-color: #3a5438 !important; }
.v2-level-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.v2-page .level-button { position: relative; min-height: 78px; border-color: #304c3b; background: #14251c; transition: border-color .15s, background .15s, transform .15s; }
.v2-page .level-button:hover:not(:disabled) { border-color: #577657; background: #1c3224; transform: translateY(-1px); }
.v2-page .level-button.selected { border-color: var(--accent); background: linear-gradient(145deg, #2b442f, #1b3022); box-shadow: inset 0 0 0 1px rgb(185 237 136 / 10%); }
.v2-level-footer { padding-top: 18px; border-top: 1px solid var(--line); }
.v2-selected-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
#selected-level-name { font-size: 19px; }
.v2-level-footer p { max-width: 760px; line-height: 1.55; }
.v2-page .v2-deploy-button { min-width: 180px; min-height: 46px; }

.v2-raid-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 2px 18px; }
.v2-raid-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 650; }
.v2-live-indicator { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; color: #a8c3b1; font-size: 11px; white-space: nowrap; }
.v2-live-indicator > span { width: 7px; height: 7px; border-radius: 50%; background: #e8bd68; box-shadow: 0 0 10px rgb(232 189 104 / 45%); }

.v2-raid-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.v2-raid-hud .hud-item { padding: 15px 20px; border-right: 1px solid var(--line); }
.v2-raid-hud .hud-item:last-child { border-right: 0; }
.v2-raid-hud .hud-item span { font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.v2-raid-hud .hud-item strong { font-size: 20px; }
#raid-lives { color: #ffa39b; }
#raid-scrap { color: var(--gold); }
#raid-loot-count { color: var(--v2-teal); }

.v2-page .boss-health { border-color: #745269; background: linear-gradient(120deg, #281c25, #151d18); }

.v2-raid-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: stretch; }
.v2-raid-board { align-self: start; padding: 10px; border-color: #3b5b43; background: #09130e !important; }
.v2-raid-board::after { position: absolute; inset: 10px; border: 1px solid rgb(185 237 136 / 4%); border-radius: 5px; content: ""; pointer-events: none; }

.v2-raid-console { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 18px; }
.v2-console-heading { margin-bottom: 14px; }
.v2-cannon-telemetry { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.v2-meter + .v2-meter { margin-top: 15px; }
.v2-meter-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.v2-meter-label strong { color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.v2-meter-track { height: 10px; overflow: hidden; border: 1px solid #2e4438; border-radius: 8px; background: #09130f; box-shadow: inset 0 1px 3px rgb(0 0 0 / 45%); }
.v2-meter-fill { width: 0; height: 100%; border-radius: inherit; transition: width .12s linear, background .15s; }
.v2-heat-bar .v2-meter-fill,
#raid-heat-fill { background: linear-gradient(90deg, #d9a754, #ef755e); box-shadow: 0 0 10px rgb(239 117 94 / 25%); }
.v2-heat-bar.is-overheated .v2-meter-fill { background: var(--danger); animation: v2-overheat-pulse .7s ease-in-out infinite alternate; }
.v2-charge-bar .v2-meter-fill,
#raid-charge-fill { width: 100%; background: linear-gradient(90deg, #4caa99, #b9ed88); box-shadow: 0 0 10px rgb(115 214 187 / 20%); }

.v2-carried-loot { min-width: 0; }
.v2-loot-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.v2-loot-heading > span { padding: 3px 6px; border: 1px solid #665735; border-radius: 5px; color: var(--gold); font-size: 9px; text-transform: uppercase; }
.v2-loot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 190px; overflow-y: auto; }
.v2-loot-grid .v2-item-card { padding: 9px; }
.v2-loot-grid .v2-item-card h4 { font-size: 11px; }
.v2-insured-note { display: grid; gap: 3px; margin-top: 10px; padding: 10px; border: 1px solid #575438; border-radius: 8px; background: rgb(62 58 30 / 17%); }
.v2-insured-note strong { color: #e7d28c; font-size: 11px; }
.v2-insured-note span { color: var(--muted); font-size: 10px; line-height: 1.45; }

.v2-extraction-panel { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.v2-extraction-status { min-height: 34px; margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.v2-extraction-progress { height: 6px; margin-bottom: 12px; overflow: hidden; border-radius: 6px; background: #09130f; }
#extraction-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--v2-teal), var(--accent)); box-shadow: 0 0 12px rgb(115 214 187 / 25%); transition: width .1s linear; }
.v2-extraction-panel.is-extracting #extraction-fill { background: linear-gradient(90deg, #6ab7a3, #d1f4a7); }
.v2-page .v2-extract-button { min-height: 42px; }
.v2-page .v2-abandon-button { min-height: 34px; margin-top: 7px; color: #b7938c; font-size: 11px; }
.v2-page .v2-abandon-button:hover:not(:disabled) { background: rgb(125 64 56 / 15%); color: var(--danger); }

.v2-control-help { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 14px; padding: 12px 16px; color: #a4b7a8; font-size: 11px; }
.v2-control-help > span { display: inline-flex; align-items: center; gap: 7px; }
.v2-control-help kbd { padding: 4px 7px; border: 1px solid #3b5846; border-bottom-width: 2px; border-radius: 5px; background: #1b2d23; color: #dcebd7; font: inherit; font-size: 10px; font-weight: 700; }
.v2-control-help .v2-control-warning { margin-left: auto; color: #d7bd7b; }

.v2-result-card { max-width: 720px; margin: 42px auto; padding: clamp(26px, 5vw, 44px); border-color: #456141 !important; background: radial-gradient(circle at 50% 0, rgb(185 237 136 / 7%), transparent 38%), linear-gradient(145deg, #15271e, #0f1c16) !important; }
.v2-result-emblem { display: grid; place-items: center; width: 64px; height: 64px; margin: 18px auto 22px; border: 1px solid #55754b; border-radius: 50%; box-shadow: 0 0 0 8px rgb(185 237 136 / 3%), 0 0 35px rgb(185 237 136 / 8%); }
.v2-result-emblem span { width: 21px; height: 32px; border-radius: 80% 15% 70% 25%; background: linear-gradient(145deg, #d4f5a5, #6ea36b); box-shadow: 0 0 15px rgb(185 237 136 / 30%); transform: rotate(25deg); }
#result-title { margin-bottom: 10px; font-size: clamp(26px, 4vw, 34px); }
#result-subtitle { margin-bottom: 24px; line-height: 1.6; }
.v2-result-summary { margin: 0 0 26px; border-top: 1px solid var(--line); text-align: left; }
.v2-result-summary:empty { display: none; }
.v2-result-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.v2-result-row strong { color: var(--text); text-align: right; }
.v2-result-row.is-lost strong { color: var(--danger); }
.v2-result-row.is-secured strong { color: var(--accent); }
.v2-result-actions { flex-wrap: wrap; }
.v2-result-actions .button { min-width: 150px; }

.v2-footer { letter-spacing: .025em; }
.v2-page .toast { max-width: min(520px, calc(100% - 28px)); border-color: #577652; background: #1b3225; box-shadow: 0 12px 35px rgb(0 0 0 / 35%); text-align: center; }

@keyframes v2-overheat-pulse {
  from { opacity: .65; }
  to { opacity: 1; }
}

@media (max-width: 1100px) {
  .v2-formation-layout,
  .v2-cannon-layout { grid-template-columns: 1fr; }
  .v2-module-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); max-height: none; }
  .v2-shop-layout { grid-template-columns: 1fr; }
  .v2-shop-inventory { position: static; }
  #shop-inventory { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); max-height: none; }
  .v2-raid-layout { grid-template-columns: 1fr; }
  .v2-raid-console { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .v2-cannon-telemetry { padding: 0 18px 0 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .v2-extraction-panel { margin: 0; padding: 0 0 0 18px; border-top: 0; border-left: 1px solid var(--line); }
  .v2-loot-grid { max-height: 150px; }
}

@media (max-width: 820px) {
  .v2-level-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-control-help .v2-control-warning { flex-basis: 100%; margin-left: 0; }
}

@media (max-width: 720px) {
  .v2-app { width: min(100% - 24px, 1380px); }
  .v2-header { align-items: flex-start; gap: 18px; padding: 20px 0; }
  .v2-brand h1 { font-size: clamp(24px, 6vw, 34px); }
  .v2-brand-subtitle { display: none; }
  .v2-wallet-block { padding-top: 20px; }
  #credits { min-width: 98px; }
  .v2-workshop-intro { align-items: flex-start; }
  .v2-security-note { white-space: normal; }
  .v2-tab { flex: 1; justify-content: center; padding: 10px 8px; font-size: 12px; }
  .v2-tab-index { display: none; }
  .v2-tab-panel { padding: 20px 16px; }
  .v2-section-heading { align-items: flex-start; gap: 8px; }
  .v2-section-heading > span { max-width: none; text-align: left; }
  .v2-formation-board { padding: 9px; }
  .v2-board-topline { margin-top: 3px; }
  .v2-level-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-level-footer { align-items: stretch; }
  .v2-page .v2-deploy-button { width: 100%; }
  .v2-raid-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .v2-raid-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-raid-hud .hud-item:nth-child(2) { border-right: 0; }
  .v2-raid-hud .hud-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .v2-raid-console { display: flex; }
  .v2-cannon-telemetry { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .v2-extraction-panel { padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .v2-loot-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); max-height: none; }
  .v2-control-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .v2-control-help > span { align-items: flex-start; flex-wrap: wrap; }
  .v2-control-help .v2-control-warning { grid-column: 1 / -1; }
  .v2-result-actions { flex-direction: column; }
  .v2-result-actions .button { width: 100%; }
}

@media (max-width: 480px) {
  .v2-header { flex-direction: column; gap: 14px; }
  .v2-wallet-block { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; text-align: left; }
  .v2-wallet-label { margin: 0; }
  #credits { min-width: 100px; padding: 8px 12px; font-size: 17px; }
  .v2-page section.panel { padding: 18px 16px; }
  .v2-page section.v2-workshop-console { padding: 0; }
  .v2-workshop-intro { gap: 14px; }
  .v2-tabs { padding-inline: 5px; }
  .v2-tab { min-height: 48px; font-size: 11px; }
  .v2-tab-panel { padding: 18px 12px; }
  .v2-subsection-heading { align-items: flex-start; }
  .v2-item-grid,
  .v2-module-grid,
  #shop-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-module-card,
  .v2-item-card { padding: 11px; }
  .v2-cannon-spec,
  .v2-cannon-parts,
  .v2-stock-section,
  .v2-shop-inventory { padding: 13px; }
  .v2-raid-hud .hud-item { padding: 12px; }
  .v2-raid-hud .hud-item strong { font-size: 17px; }
  .v2-raid-board { padding: 5px; }
  .v2-raid-board::after { inset: 5px; }
  .v2-result-card { margin: 20px auto; }
  .v2-result-row { gap: 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-page *,
  .v2-page *::before,
  .v2-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
