/* Bundled original fonts; no remote font provider. */
@font-face{font-family:"Luckiest Guy";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/luckiest-guy-400-0.woff2") format("woff2");}
@font-face{font-family:"Luckiest Guy";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/luckiest-guy-400-1.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/nunito-700-2.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/nunito-700-3.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/nunito-700-4.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/nunito-700-5.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/nunito-700-6.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/nunito-800-7.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/nunito-800-8.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/nunito-800-9.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/nunito-800-10.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/nunito-800-11.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/nunito-900-12.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/nunito-900-13.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/nunito-900-14.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/nunito-900-15.woff2") format("woff2");}
@font-face{font-family:"Nunito";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/nunito-900-16.woff2") format("woff2");}
:root {
  --ink: #07041a;
  --panel: rgba(10, 6, 36, 0.9);
  --blue: #2ea8ff;
  --blue-dark: #1d4ed8;
  --gold: #ffd028;
  --orange: #ff9f1c;
  --purple: #6d28d9;
  --purple-dark: #3b0764;
  --green: #4ade80;
  --red: #fb7185;
  --white: #fff8ee;
  --cyan: #7df9ff;
  --magenta: #e93cff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.35), transparent 35%),
    linear-gradient(180deg, #081225, #020617 65%, #000);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button {
  font-family: inherit;
}

.app {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.hide {
  display: none !important;
}

.wallet-screen,
.start-screen,
.game-screen {
  min-height: calc(100vh - 28px);
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.45);
}

/* KEEP THE BIG BACKGROUND IMAGE */
.wallet-screen,
.start-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.88)),
    url("assets/duckyverse-banner.jpg");
  background-size: cover;
  background-position: center;
}

.game-screen {
  padding: 12px;
  background: linear-gradient(180deg, #071026, #020617);
}

.wallet-card,
.start-card {
  width: min(560px, 100%);
  padding: 28px;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: rgba(2, 6, 23, 0.86);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.82), 0 0 28px rgba(250, 204, 21, 0.22);
  text-align: center;
}

/* THIS IS THE IMPORTANT FIX:
   HIDE THE SMALL DUPLICATE IMAGE */
.poster {
  display: none;
}

.studio {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-shadow: 5px 5px 0 #000, 0 0 18px rgba(250, 204, 21, 0.6);
  -webkit-text-stroke: 2px #000;
}

.tagline {
  margin: 0 auto 20px;
  max-width: 440px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.wallet-choice-grid {
  display: grid;
  gap: 12px;
}

.wallet-choice,
.main-btn,
.small-btn,
#resetBtn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  color: white;
  background: linear-gradient(180deg, #334155, #111827);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 0 #000;
}

.wallet-choice {
  display: grid;
  gap: 4px;
  text-align: left;
}

.wallet-choice span {
  font-size: 19px;
}

.wallet-choice small {
  opacity: 0.82;
}

.primary-choice,
.main-btn {
  background: linear-gradient(180deg, #fde047, #f59e0b);
  color: #111827;
}

.guest-choice {
  background: linear-gradient(180deg, #38bdf8, #2563eb);
}

.wallet-status,
.action-text,
.access-pill {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #e0f2fe;
  font-weight: 800;
}

.xaman-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.86);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.start-card {
  text-align: left;
}

.start-card h1,
.start-card .studio,
.start-card .tagline {
  text-align: left;
}

.mini-instructions {
  margin-top: 16px;
  color: #e2e8f0;
  line-height: 1.35;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.brand {
  color: var(--gold);
  font-size: 25px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-shadow: 3px 3px 0 #000;
}

.subbrand {
  margin-top: 3px;
  color: #bfdbfe;
  font-weight: 900;
}

.hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.hud-card {
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
}

.hud-card.enemy {
  text-align: right;
}

.name {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 1000;
}

.health {
  height: 24px;
  border: 3px solid white;
  border-radius: 999px;
  overflow: hidden;
  background: #111827;
}

#p1Health,
#p2Health {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.arena-name {
  color: white;
  font-size: 16px;
  font-weight: 1000;
  text-align: center;
  text-shadow: 3px 3px 0 #000;
  white-space: nowrap;
}

.action-text {
  margin: 0 0 10px;
  border-radius: 16px;
  text-align: center;
}

.canvas-wrap {
  position: relative;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid white;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.55);
}

.winner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.68);
  border-radius: 24px;
  text-align: center;
  font-size: clamp(34px, 7vw, 72px);
  font-weight: 1000;
  white-space: pre-line;
  text-shadow: 5px 5px 0 #000;
}

.mobile-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.move-pad,
.attack-pad {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.control-btn {
  min-height: 64px;
  border: 3px solid white;
  border-radius: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 5px 0 #000;
}

.control-btn span {
  display: block;
}

.control-btn small {
  display: block;
  margin-top: 4px;
  opacity: 0.75;
}

.move {
  min-width: 102px;
}

.jump {
  background: linear-gradient(180deg, #38bdf8, #1d4ed8);
}

.punch {
  min-width: 150px;
  background: linear-gradient(180deg, #facc15, #f97316);
  color: #111827;
}

.special {
  min-width: 150px;
  background: linear-gradient(180deg, #a855f7, #581c87);
}

@media (max-width: 850px) {
  .wallet-screen,
  .start-screen {
    flex-direction: column;
  }

  .hud {
    grid-template-columns: 1fr;
  }

  .hud-card.enemy {
    text-align: left;
  }

  .arena-name {
    order: -1;
  }

  .mobile-controls {
    grid-template-columns: 1fr;
  }

  .move,
  .punch,
  .special {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 520px) {
  .app {
    padding: 8px;
  }

  .wallet-screen,
  .start-screen,
  .game-screen {
    min-height: calc(100vh - 16px);
    border-width: 3px;
    border-radius: 20px;
  }

  .wallet-card,
  .start-card {
    padding: 18px;
  }

  h1 {
    font-size: 48px;
  }

  .brand {
    font-size: 19px;
  }

  .control-btn {
    min-height: 58px;
    font-size: 12px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .app {
    padding: 6px;
  }

  .game-screen {
    min-height: auto;
  }

  .topbar {
    margin-bottom: 6px;
  }

  .hud {
    margin-bottom: 6px;
  }

  .action-text {
    display: none;
  }

  canvas {
    max-height: 58vh;
    object-fit: contain;
  }

  .mobile-controls {
    margin-top: 6px;
  }

  .control-btn {
    min-height: 44px;
    padding: 6px 8px;
  }
}

/* DUCKYVERSE V2 */
.progress-strip { display:grid; grid-template-columns:1fr 1.25fr 1fr; gap:10px; margin-bottom:10px; }
.rank-card,.meter-card,.combo-card { min-width:0; padding:9px 12px; border:2px solid rgba(255,255,255,.5); border-radius:14px; background:rgba(15,23,42,.78); font-weight:1000; }
.rank-card span,.meter-card span,.combo-card span { display:block; color:var(--gold); font-size:13px; letter-spacing:.06em; }
.rank-card small,.combo-card small { display:block; margin-top:4px; color:#dbeafe; font-weight:800; }
.combo-card { text-align:right; }
.special-meter { height:12px; margin-top:6px; overflow:hidden; border:2px solid white; border-radius:999px; background:#111827; }
#specialMeter { width:0%; height:100%; background:linear-gradient(90deg,#7c3aed,#facc15); transition:width .12s linear; }
.guard { min-width:120px; background:linear-gradient(180deg,#475569,#0f172a); }
.control-btn.ready-special { outline:4px solid var(--gold); transform:translateY(-2px); }
.winner { white-space:normal; }
.result-card { width:min(560px,94%); padding:24px; border:3px solid white; border-radius:24px; background:rgba(2,6,23,.92); box-shadow:0 8px 0 #000; }
.result-title { color:var(--gold); font-size:clamp(32px,7vw,64px); line-height:.95; white-space:pre-line; }
.result-stats { margin:16px 0; font-size:clamp(14px,3vw,20px); line-height:1.55; font-weight:900; white-space:pre-line; }
.unlock-teaser { margin:14px 0; padding:12px; border:2px dashed var(--gold); border-radius:14px; color:var(--gold); font-weight:1000; font-size:14px; }
.result-actions { display:flex; gap:10px; justify-content:center; }
.result-actions button { min-width:130px; }
@media (max-width:850px){ .progress-strip{grid-template-columns:1fr 1fr}.combo-card{grid-column:1/-1;text-align:center}.attack-pad{flex-wrap:wrap}.guard,.punch,.special{min-width:0;flex:1 1 28%} }
@media (max-width:520px){ .progress-strip{font-size:11px;gap:6px}.rank-card,.meter-card,.combo-card{padding:7px}.result-card{padding:16px}.result-actions{flex-direction:column}.result-actions button{width:100%} }
html { touch-action: manipulation; }
html, body { overscroll-behavior: none; }
body.combat-active { overscroll-behavior:none; touch-action:manipulation; }
.game-screen .mobile-controls { touch-action:none; user-select:none; -webkit-user-select:none; }

/* DUCKYVERSE 2.1  -  map, toasts, hit flash */
.map-title { font-size: clamp(36px, 8vw, 64px) !important; }
.verse-list { display: grid; gap: 12px; margin: 8px 0 18px; }
.verse-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px; border: 2px solid rgba(255,255,255,.45);
  background: rgba(15,23,42,.82); text-align: left;
}
.verse-item.playable { border-color: var(--gold); box-shadow: 0 0 16px rgba(250,204,21,.18); }
.verse-item.locked { opacity: .72; }
.verse-item strong { display: block; font-size: 18px; }
.verse-item small { display: block; margin-top: 3px; color: #bfdbfe; }
.verse-status {
  flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 1000;
  letter-spacing: .08em; background: #111827; border: 2px solid rgba(255,255,255,.4);
}
.verse-item.playable .verse-status { background: linear-gradient(180deg,#fde047,#f59e0b); color:#111827; border-color:#000; }
.toast-host {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(420px, 92vw);
  pointer-events: none;
}
.toast {
  pointer-events: none; padding: 12px 16px; border-radius: 16px;
  background: rgba(2,6,23,.94); border: 2px solid var(--gold); color: #fff;
  font-weight: 900; text-align: center; box-shadow: 0 8px 0 #000;
  animation: toastIn .18s ease-out;
}
.toast small { display:block; margin-top:4px; color:#bfdbfe; font-weight:800; }
@keyframes toastIn { from { transform: translateY(12px); opacity:0; } to { transform:none; opacity:1; } }
.control-btn.active-hold { transform: translateY(2px); box-shadow: 0 2px 0 #000; filter: brightness(1.15); }
#p1Health.hurt, #p2Health.hurt { filter: saturate(1.4); }
.result-stats .line-gold { color: var(--gold); }

/* 2.1.3  -  fight-first mobile chrome */
html, body {
  height: 100%;
  height: 100dvh;
  overflow-x: hidden;
}
.app {
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}
.game-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 16px);
  padding: 8px 8px max(10px, env(safe-area-inset-bottom));
}
.fight-chrome { flex: 0 0 auto; }
.canvas-wrap { flex: 0 1 auto; min-height: 0; position: relative; }
canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 46vh;
  object-fit: contain;
  border-width: 3px;
  border-radius: 16px;
}
.topbar { margin-bottom: 6px; }
.brand { font-size: 16px; letter-spacing: 0.12em; }
.subbrand { font-size: 10px; letter-spacing: 0.04em; }
#resetBtn { padding: 8px 12px; font-size: 12px; border-radius: 12px; }
.hud { gap: 6px; margin-bottom: 6px; }
.hud-card { padding: 6px 8px; border-radius: 12px; }
.name { margin-bottom: 4px; font-size: 11px; letter-spacing: 0.08em; }
.health { height: 14px; border-width: 2px; }
.arena-name { font-size: 11px; letter-spacing: 0.12em; }
.meter-row { margin-bottom: 6px; }
.meter-card { padding: 6px 10px; }
.meter-card span { font-size: 10px; }
.special-meter { height: 10px; margin-top: 4px; }
.action-text {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(2,6,23,0.72);
  pointer-events: none;
  z-index: 2;
}
.fight-secondary { margin-bottom: 6px; }
body.combat-active .fight-secondary,
body.combat-active .topbar .subbrand,
body.combat-active .arena-name {
  display: none;
}
body.combat-active .topbar { margin-bottom: 4px; }
body.combat-active .hud { margin-bottom: 4px; }
body.combat-active .meter-row { margin-bottom: 4px; }

.mobile-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: env(safe-area-inset-bottom);
}
.move-pad, .attack-pad {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
}
.move-pad { background: rgba(56,189,248,0.12); border: 2px solid rgba(56,189,248,0.35); }
.attack-pad { background: rgba(250,204,21,0.10); border: 2px solid rgba(250,204,21,0.28); }
.control-btn {
  min-height: 64px;
  min-width: 0;
  width: 100%;
  border-radius: 16px;
  font-size: 11px;
  letter-spacing: 0;
  padding: 6px 2px;
}
.control-btn small { font-size: 9px; }
.result-card {
  width: min(420px, 94%);
  padding: 18px 16px 16px;
}
.result-title { font-size: clamp(28px, 8vw, 48px); }
.result-stats { margin: 10px 0 12px; font-size: 13px; line-height: 1.4; }
.unlock-teaser { margin: 0 0 12px; padding: 8px; font-size: 11px; }
.result-actions { flex-direction: column; gap: 8px; }
.result-actions .main-btn { width: 100%; min-height: 48px; font-size: 18px; }
.result-actions .small-btn { width: 100%; opacity: 0.9; }
.toast-host { bottom: max(12px, env(safe-area-inset-bottom)); }

@media (max-width: 850px) {
  .hud { grid-template-columns: 1fr 1fr; }
  .arena-name { display: none; }
  .mobile-controls { grid-template-columns: 1fr 1fr; }
  .progress-strip { grid-template-columns: 1fr 1fr; }
  .combo-card { grid-column: auto; text-align: right; }
}
@media (max-width: 360px) {
  .control-btn { min-height: 56px; font-size: 11px; }
  .brand { font-size: 14px; }
}
/* Landscape side-column removed in 2.2B-R2. Width > height is the layout, not this grid. */

/* 2.2 arcade story + tighter portrait fight */
.story-row { display:flex; gap:14px; align-items:center; text-align:left; }
.story-portrait {
  width:86px; height:86px; flex:0 0 86px; border-radius:50%;
  border:3px solid #fff; box-shadow:0 5px 0 #000;
  background: radial-gradient(circle at 35% 30%, #7dd3fc, #1d4ed8 62%, #020617);
}
.story-portrait.cpu-port, #storyPortrait.cpu {
  background: radial-gradient(circle at 35% 30%, #d8b4fe, #6d28d9 62%, #020617);
}
.story-portrait.sentry {
  background: radial-gradient(circle at 35% 30%, #cbd5e1, #334155 62%, #020617);
}
.story-portrait.baron {
  background: radial-gradient(circle at 35% 30%, #fde68a, #b45309 62%, #020617);
}
.story-copy h2 { margin:0 0 8px; color:var(--gold); font-size:22px; text-shadow:3px 3px 0 #000; }
.vs-board {
  width:min(560px,94%); display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:22px 16px; border:3px solid #fff; border-radius:24px; background:rgba(2,6,23,.88);
}
.vs-side { text-align:center; flex:1; }
.vs-side strong { display:block; margin-top:8px; font-size:13px; letter-spacing:.06em; }
.vs-mark {
  font-size:42px; font-weight:1000; color:var(--gold);
  text-shadow:4px 4px 0 #000; -webkit-text-stroke:2px #000;
}
.vs-sub { margin-top:16px; font-weight:900; letter-spacing:.14em; color:#bfdbfe; }
.char-pick { cursor:pointer; }
.char-pick.locked { cursor:default; }
#continueBtn { width:100%; }
@media (max-width: 850px) {
  .story-row { flex-direction:column; text-align:center; }
  .story-copy { text-align:center; }
}

/* DUCKYVERSE 2.2A  -  portrait combat UI
   Arena + fighters first. Health / Quack Power overlay the canvas.
   Rank, records, challenges leave the fight. Two-thumb controls stay large.
   No combat number changes. */
.fight-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.combo-callout {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 46%;
  z-index: 4;
  margin: 0;
  text-align: center;
  font-weight: 1000;
  font-size: clamp(18px, 5.4vw, 32px);
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 3px 3px 0 #000, 0 0 12px rgba(250, 204, 21, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}
.combo-callout.hot {
  opacity: 1;
  transform: none;
}

body.combat-active {
  position: fixed;
  left: 0;
  top: 0;
  overflow: hidden;
  width: var(--app-w, 100%);
  height: var(--app-h, 100dvh);
  overscroll-behavior: none;
  touch-action: none;
}
body.combat-active .app {
  width: var(--app-w, 100%);
  max-width: none;
  height: var(--app-h, 100dvh);
  padding: 0;
  margin: 0;
}
body.combat-active .game-screen {
  min-height: 0;
  width: var(--app-w, 100%);
  height: var(--app-h, 100dvh);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
body.combat-active .fight-secondary,
body.combat-active .brand,
body.combat-active .subbrand,
body.combat-active .arena-name,
body.combat-active .topbar-id {
  display: none !important;
}
body.combat-active .fight-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
body.combat-active .canvas-wrap {
  position: absolute;
  inset: 0;
  flex: none;
  min-height: 0;
  overflow: hidden;
  display: block;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.08) 40%, rgba(2, 6, 23, 0.4) 100%),
    url("assets/duckyverse-arena.jpg") center / cover no-repeat,
    #020617;
}
body.combat-active canvas {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: fill;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.combat-active .fight-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: calc(4px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 0 calc(8px + env(safe-area-inset-left));
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.62) 0%, rgba(2, 6, 23, 0.12) 78%, transparent 100%);
}
.arcade-hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: start;
}
.hud-fighter {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.hud-fighter.p2 { flex-direction: row; }
.hud-port {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  border: 2px solid #fff8ee;
  box-shadow: 0 0 10px rgba(125, 249, 255, 0.45);
  background:
    radial-gradient(circle at 35% 30%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 60% 48%, #ff9f1c 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #2ea8ff 0 58%, #1e1b4b 100%);
}
.hud-port.cpu-port {
  box-shadow: 0 0 10px rgba(233, 60, 255, 0.5);
  background:
    radial-gradient(circle at 35% 30%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 60% 48%, #fb7185 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #a855f7 0 58%, #3b0764 100%);
}
.hud-bars { min-width: 0; flex: 1; }
.hud-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.arcade-hud .name {
  margin: 0 0 3px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #7df9ff;
  text-shadow: 0 0 8px rgba(125,249,255,0.45);
}
.hud-fighter.p2 .name { color: #f0abfc; text-align: right; }
.arcade-hud .health {
  height: 12px;
  border-width: 2px;
  border-color: #fff8ee;
  box-shadow: 0 0 8px rgba(125, 249, 255, 0.28);
}
.hud-fighter.p2 .health { box-shadow: 0 0 8px rgba(233, 60, 255, 0.28); }
.qp {
  margin-top: 3px;
}
.qp span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #c4b5fd;
  font-weight: 800;
}
.qp .special-meter {
  height: 6px;
  margin-top: 2px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(233, 60, 255, 0.45);
}
.hud-round {
  text-align: center;
  padding-top: 2px;
  min-width: 52px;
}
.hud-round small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #7df9ff;
}
.hud-round strong {
  font-family: "Luckiest Guy", "Arial Black", sans-serif;
  font-size: 18px;
  color: #fff8ee;
  text-shadow: 0 2px 0 #0b1026, 0 0 10px #e93cff;
}
body.combat-active #resetBtn {
  pointer-events: auto;
  padding: 4px 8px;
  font-size: 9px;
  min-height: 24px;
  border-radius: 8px;
  opacity: 0.8;
}
body.combat-active .control-btn.move {
  background: radial-gradient(circle at 35% 30%, #7df9ff, #1d4ed8 62%, #0b1026);
}
body.combat-active .control-btn.jump {
  background: radial-gradient(circle at 35% 30%, #93c5fd, #1e3a8a 62%, #0b1026);
}
body.combat-active .control-btn.guard {
  background: radial-gradient(circle at 35% 30%, #67e8f9, #155e75 62%, #0b1026);
}
body.combat-active .control-btn.punch {
  background: radial-gradient(circle at 35% 30%, #fde047, #b45309 62%, #0b1026);
}
body.combat-active .control-btn.special {
  background: radial-gradient(circle at 35% 30%, #f0abfc, #6d28d9 62%, #0b1026);
}
body.combat-active .combo-callout {
  top: 22%;
}
body.combat-active .topbar {
  justify-content: flex-end;
  margin: 0 0 4px;
  pointer-events: none;
}
body.combat-active #resetBtn {
  pointer-events: auto;
  padding: 6px 10px;
  font-size: 11px;
  min-height: 32px;
  border-radius: 10px;
  opacity: 0.82;
}
body.combat-active .hud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  pointer-events: none;
}
body.combat-active .hud-card {
  padding: 5px 8px;
  border-radius: 12px;
  border-width: 1px;
  background: rgba(2, 6, 23, 0.72);
}
body.combat-active .name {
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: 0.1em;
}
body.combat-active .health {
  height: 12px;
  border-width: 2px;
}
body.combat-active .meter-row {
  margin: 6px 0 0;
  pointer-events: none;
}
body.combat-active .meter-card {
  padding: 4px 8px 6px;
  border-radius: 12px;
  border-width: 1px;
  background: rgba(2, 6, 23, 0.7);
}
body.combat-active .meter-card span {
  font-size: 9px;
  letter-spacing: 0.12em;
}
body.combat-active .special-meter {
  height: 8px;
  margin-top: 3px;
}
body.combat-active .action-text {
  left: 24%;
  right: 24%;
  top: auto;
  bottom: 21%;
  padding: 0;
  font-size: 11px;
  line-height: 1.2;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-shadow: 0 1px 2px #000;
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.combat-active .action-text.live {
  opacity: 1;
}
.fight-pause {
  position: absolute;
  top: calc(48px + env(safe-area-inset-top));
  left: calc(50% - 46px);
  bottom: auto;
  transform: none;
  z-index: 8;
  width: 44px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,248,238,0.35);
  background: rgba(7,4,26,0.45);
  color: #fff8ee;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  pointer-events: auto;
}
.fight-land {
  position: absolute;
  top: calc(48px + env(safe-area-inset-top));
  left: calc(50% + 4px);
  bottom: auto;
  z-index: 40;
  min-width: 44px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(125,249,255,0.55);
  background: rgba(7,4,26,0.72);
  color: #7df9ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: auto;
  touch-action: manipulation;
}
.land-hint {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 41;
  width: min(320px, 90%);
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid #ffe566;
  background: rgba(7,4,26,0.92);
  color: #ffe566;
  text-align: left;
  white-space: pre-line;
  font: 700 12px/1.4 ui-monospace, monospace;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.land-hint.hide { display: none; }
html.debug-orient .orient-debug {
  top: 16%;
  left: 8px;
  right: 8px;
  bottom: auto;
  max-width: none;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  z-index: 20;
}

html.combat-lock,
html.combat-lock body {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #07041a !important;
}
.toast-compact {
  position: absolute;
  left: 50%;
  top: 62px;
  transform: translateX(-50%);
  z-index: 24;
  width: max-content;
  max-width: 68%;
  padding: 4px 10px;
  border-radius: 999px;
  border-width: 1px;
  font-size: 11px;
  letter-spacing: 0.08em;
  box-shadow: none;
  animation: none;
  pointer-events: none;
}
.pause-sheet {
  position: absolute;
  left: 50%;
  top: calc(82px + env(safe-area-inset-top));
  bottom: auto;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}
.pause-sheet.hide { display: none !important; }
.pause-sheet button,
#resetBtn {
  min-height: 36px;
  min-width: 132px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7,4,26,0.92);
  color: #fff8ee;
  font-size: 11px;
  font-weight: 800;
}
.land-status {
  position: absolute;
  left: 50%;
  top: calc(84px + env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index: 42;
  width: min(260px, 84%);
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(7, 4, 26, 0.9);
  color: #ffe566;
  text-align: center;
  white-space: pre-line;
  font: 700 10px/1.35 ui-monospace, monospace;
  pointer-events: none;
}
.land-status.hide { display: none !important; }
.orient-debug {
  position: absolute;
  left: 8px;
  bottom: 46px;
  z-index: 9;
  max-width: 70%;
  padding: 4px 6px;
  background: rgba(0,0,0,0.72);
  color: #7df9ff;
  font: 10px/1.3 ui-monospace, monospace;
  pointer-events: none;
}
body.combat-active .mobile-controls {
  background: linear-gradient(180deg, transparent, rgba(7, 4, 26, 0.28) 70%);
}
@media (orientation: landscape) {
  body.combat-active .mobile-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  body.combat-active .move-pad,
  body.combat-active .attack-pad {
    pointer-events: auto;
    width: auto;
  }
  body.combat-active .arcade-hud {
    padding-right: 72px;
  }
}
.title-gate {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: white;
}
.title-gate.hide { display: none !important; }
.title-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.title-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,4,26,0.12) 0%, rgba(7,4,26,0.05) 42%, rgba(7,4,26,0.88) 100%);
}
.title-stack {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
}
.title-stack h1 {
  margin: 0;
  font-family: "Luckiest Guy", "Arial Black", sans-serif;
  font-size: clamp(52px, 14vw, 92px);
  line-height: 0.9;
  color: #ffe566;
  text-shadow: 0 4px 0 #1e1b4b, 0 0 16px rgba(233, 60, 255, 0.65);
}
.title-stack .tagline { color: #fff8ee; margin: 6px 0 12px; }
.play-now {
  display: block;
  width: min(280px, 88%);
  margin: 8px auto 12px;
  min-height: 62px;
  font-size: 28px;
  letter-spacing: 0.12em;
}
.title-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ghost-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 248, 238, 0.5);
  background: rgba(7, 4, 26, 0.5);
  color: white;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.title-links { display: flex; gap: 14px; justify-content: center; margin-top: 8px; }
.tiny-link {
  background: none;
  border: 0;
  color: #ddd6fe;
  font-weight: 800;
  min-height: 36px;
}
.title-gate .xaman-panel {
  margin-top: 10px;
  text-align: left;
  background: rgba(7, 4, 26, 0.86);
  border-radius: 16px;
  padding: 12px;
}
.title-gate .wallet-status { font-size: 12px; opacity: 0.8; margin-top: 8px; }
.start-screen {
  background: #07041a url("assets/duckyverse-banner.jpg") center / cover no-repeat;
}
.start-card {
  background: rgba(7, 4, 26, 0.78);
}
body.combat-active .mobile-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  margin: 0;
  padding: 8px 10px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 4, 26, 0.55) 55%);
  border-top: 0;
  touch-action: none;
  pointer-events: auto;
}
body.combat-active .move-pad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
}
body.combat-active .attack-pad {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    ". jump ."
    "guard punch special";
  gap: 8px;
  padding: 4px;
  background: transparent;
  border: 0;
}
body.combat-active .attack-pad .jump { grid-area: jump; }
body.combat-active .attack-pad .guard { grid-area: guard; }
body.combat-active .attack-pad .punch { grid-area: punch; }
body.combat-active .attack-pad .special { grid-area: special; }
body.combat-active .control-btn {
  min-height: 54px;
  min-width: 54px;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 8px 2px;
  touch-action: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35), 0 4px 0 #0b1026, 0 0 12px rgba(125,249,255,0.25);
}
body.combat-active .control-btn.punch {
  min-height: 64px;
  font-size: 13px;
}
body.combat-active .control-btn.special {
  min-height: 64px;
}
body.combat-active .result-card {
  width: min(360px, 92%);
  padding: 14px 14px 12px;
  border-radius: 20px;
}
body.combat-active .result-title {
  font-size: clamp(26px, 7vw, 40px);
  line-height: 0.95;
}
body.combat-active .result-stats {
  margin: 8px 0 10px;
  font-size: 12px;
  line-height: 1.35;
}
body.combat-active .unlock-teaser {
  margin: 0 0 10px;
  padding: 7px;
  font-size: 11px;
}
body.combat-active .result-actions {
  flex-direction: column;
  gap: 8px;
}
body.combat-active .result-actions .main-btn {
  width: 100%;
  min-height: 48px;
}
body.combat-active .result-actions .small-btn {
  width: 100%;
  min-height: 40px;
}
body.combat-active .winner {
  pointer-events: auto;
  touch-action: manipulation;
}
body.combat-active .toast-host {
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 76px));
}

@media (max-width: 360px) {
  body.combat-active .mobile-controls {
    gap: 6px;
    padding: 6px 6px max(8px, env(safe-area-inset-bottom));
  }
  body.combat-active .move-pad,
  body.combat-active .attack-pad {
    gap: 4px;
    padding: 4px;
  }
  body.combat-active .control-btn {
    min-height: 56px;
    min-width: 44px;
    font-size: 10px;
  }
  body.combat-active .control-btn.punch {
    min-height: 56px;
    font-size: 12px;
  }
  body.combat-active canvas {
    width: 142%;
  }
}

/* 2.2B-R2: do not park controls in a side column on short landscape. */

@media (min-width: 851px) {
  body.combat-active .app {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    height: 100dvh;
    padding: 0;
  }
  body.combat-active canvas {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }
  body.combat-active .control-btn {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }
}

@media (max-width: 360px) {
  body.combat-active .control-btn {
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    font-size: 8px;
  }
  .hud-port { width: 32px; height: 32px; flex: 0 0 32px; }
  .hud-round { display: none; }
  body.combat-active #resetBtn { display: none; }
  .qp span { display: none; }
  .arcade-hud .name { font-size: 8px; }
}

/* DUCKYVERSE 2.2A-R  -  official banner visual DNA
   bright, chunky, dimensional cartoon arcade. Presentation only. */
html, body {
  font-family: Nunito, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(233, 60, 255, 0.28), transparent 42%),
    linear-gradient(180deg, #1d4ed8 0%, #2e1065 48%, #07041a 100%);
}
h1 {
  font-family: "Luckiest Guy", "Arial Black", Arial, sans-serif;
  letter-spacing: 0.02em;
  color: var(--gold);
  -webkit-text-stroke: 3px #1e1b4b;
  text-shadow:
    0 4px 0 #6d28d9,
    0 8px 0 #0b1026,
    0 0 22px rgba(233, 60, 255, 0.5);
}
.studio {
  font-family: Nunito, sans-serif;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(125, 249, 255, 0.45);
}
.wallet-card,
.start-card {
  background: rgba(10, 6, 36, 0.82);
  border: 3px solid rgba(125, 249, 255, 0.55);
  box-shadow: 0 10px 0 #0b1026, 0 0 28px rgba(233, 60, 255, 0.28);
}
.main-btn,
.primary-choice {
  background: linear-gradient(180deg, #ffe566, #f59e0b);
  color: #1e1b4b;
  box-shadow: 0 6px 0 #7c2d12, 0 0 16px rgba(250, 204, 21, 0.35);
}
.guest-choice {
  background: linear-gradient(180deg, #7df9ff, #2ea8ff);
  color: #0b1026;
}
.wallet-choice,
.small-btn,
#resetBtn {
  border: 2px solid rgba(255, 248, 238, 0.35);
}
.access-pill {
  background: rgba(46, 168, 255, 0.2);
  border-color: var(--cyan);
  color: var(--cyan);
}
.verse-item.playable {
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(46, 168, 255, 0.18), rgba(109, 40, 217, 0.28));
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.2);
}
.verse-item.playable .verse-status {
  background: linear-gradient(180deg, #ffe566, #f59e0b);
  color: #1e1b4b;
}
.story-portrait {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 28%, #7df9ff 0 14%, #2ea8ff 32%, #1d4ed8 68%, #07041a 100%);
  box-shadow: 0 0 0 3px #fff8ee, 0 0 18px rgba(46, 168, 255, 0.65), 0 7px 0 #0b1026;
}
.story-portrait.has-art,
.hud-port.has-art {
  background-size: cover;
  background-position: center 12%;
  background-repeat: no-repeat;
}
.story-portrait.has-art::before,
.hud-port.has-art::before { display: none !important; }
.story-portrait::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 22%;
  bottom: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #fff 0 8%, transparent 9%),
    radial-gradient(circle at 62% 42%, #ff9f1c 0 22%, transparent 23%),
    radial-gradient(circle at 50% 48%, #2ea8ff 0 58%, #1e1b4b 100%);
  box-shadow: inset 0 0 0 3px #0b1026;
}
.story-portrait.cpu-port::before,
#storyPortrait.cpu::before {
  background:
    radial-gradient(circle at 32% 30%, #fff 0 8%, transparent 9%),
    radial-gradient(circle at 62% 42%, #fb7185 0 22%, transparent 23%),
    radial-gradient(circle at 50% 48%, #c084fc 0 58%, #4c1d95 100%);
}
.story-portrait.sentry::before {
  background:
    radial-gradient(circle at 50% 40%, #22d3ee 0 18%, transparent 19%),
    radial-gradient(circle at 50% 48%, #94a3b8 0 58%, #1e293b 100%);
}
.story-portrait.baron::before {
  background:
    radial-gradient(circle at 62% 42%, #b45309 0 22%, transparent 23%),
    radial-gradient(circle at 50% 48%, #fbbf24 0 58%, #7c2d12 100%);
}
.vs-board {
  background:
    radial-gradient(circle at 50% 40%, rgba(233, 60, 255, 0.35), transparent 55%),
    rgba(7, 4, 26, 0.82);
  border: 3px solid #fff8ee;
  box-shadow: 0 0 40px rgba(233, 60, 255, 0.4), 0 10px 0 #0b1026;
}
.vs-mark {
  font-family: "Luckiest Guy", "Arial Black", sans-serif;
  color: var(--gold);
  text-shadow: 4px 5px 0 #6d28d9, 0 0 18px #e93cff;
  animation: vsPulse 0.8s ease-in-out infinite alternate;
}
@keyframes vsPulse {
  from { transform: scale(1); filter: saturate(1); }
  to { transform: scale(1.08); filter: saturate(1.25) drop-shadow(0 0 12px #e93cff); }
}
#vsScreen {
  background:
    radial-gradient(circle at 50% 35%, rgba(46, 168, 255, 0.35), transparent 42%),
    linear-gradient(rgba(7, 4, 26, 0.28), rgba(7, 4, 26, 0.82)),
    url("assets/duckyverse-banner.jpg");
  background-size: cover;
  background-position: center;
}

/* 2.2B-R2  -  landscape from real viewport (html.layout-land), not 100dvh */
html.layout-land body.combat-active,
html.layout-land body.combat-active .app,
html.layout-land body.combat-active .game-screen {
  width: var(--app-w) !important;
  height: var(--app-h) !important;
  min-height: 0 !important;
  max-height: var(--app-h) !important;
}
html.layout-land body.combat-active .game-screen {
  display: block !important;
  padding: 0 !important;
  grid-template-columns: none !important;
}
html.layout-land body.combat-active .fight-stage,
html.layout-land body.combat-active .canvas-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
html.layout-land body.combat-active canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}
html.layout-land body.combat-active .mobile-controls {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  height: auto !important;
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  grid-column: auto !important;
  grid-row: auto !important;
  border: 0 !important;
  pointer-events: none;
  padding-left: max(8px, env(safe-area-inset-left));
  padding-right: max(8px, env(safe-area-inset-right));
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}
html.layout-land body.combat-active .move-pad,
html.layout-land body.combat-active .attack-pad {
  width: auto !important;
  pointer-events: auto;
}
html.layout-land body.combat-active .action-text {
  display: block;
  bottom: 18%;
}
body.combat-active .hud-card {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.86), rgba(7, 4, 26, 0.7));
  border: 2px solid rgba(125, 249, 255, 0.6);
  box-shadow: 0 0 12px rgba(125, 249, 255, 0.28);
}
body.combat-active .hud-card.enemy {
  border-color: rgba(233, 60, 255, 0.62);
  box-shadow: 0 0 12px rgba(233, 60, 255, 0.28);
}
body.combat-active .health {
  height: 13px;
  border-color: #fff8ee;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.35), 0 0 8px rgba(125, 249, 255, 0.3);
}
body.combat-active .meter-card {
  border: 1px solid rgba(233, 60, 255, 0.45);
  box-shadow: 0 0 10px rgba(233, 60, 255, 0.2);
}
body.combat-active .special-meter {
  box-shadow: 0 0 8px rgba(233, 60, 255, 0.35);
}
#specialMeter {
  background: linear-gradient(90deg, #6d28d9, #e93cff, #ffe566);
}
.combo-callout.hot {
  font-family: "Luckiest Guy", "Arial Black", sans-serif;
  font-size: clamp(22px, 7vw, 42px);
  color: var(--gold);
  text-shadow: 3px 4px 0 #6d28d9, 0 0 16px #e93cff;
}
.control-btn.ready-special {
  outline: 3px solid var(--gold);
  animation: specialPulse 0.7s ease-in-out infinite;
}
@keyframes specialPulse {
  from { box-shadow: 0 5px 0 #000, 0 0 8px #e93cff; }
  to { box-shadow: 0 5px 0 #000, 0 0 22px #7df9ff, 0 0 8px #ffe566; }
}
body.combat-active .result-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(233, 60, 255, 0.35), transparent 55%),
    rgba(7, 4, 26, 0.94);
  border: 3px solid #fff8ee;
  box-shadow: 0 0 28px rgba(233, 60, 255, 0.45), 0 8px 0 #0b1026;
}
body.combat-active .result-title {
  font-family: "Luckiest Guy", "Arial Black", sans-serif;
  color: var(--gold);
  text-shadow: 4px 5px 0 #6d28d9, 0 0 18px #e93cff;
  -webkit-text-stroke: 2px #1e1b4b;
}
body.combat-active .winner {
  background:
    radial-gradient(circle at 50% 40%, rgba(46, 168, 255, 0.28), rgba(7, 4, 26, 0.72) 62%);
}
.unlock-teaser {
  border-color: var(--gold);
  color: var(--gold);
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .vs-mark, .control-btn.ready-special { animation: none; }
}

/* 2.2B-R3  -  native landscape combat. Class is set from the visible viewport, not a media query. */
html.combat-landscape,
html.combat-landscape body.combat-active,
html.combat-landscape body.combat-active .app,
html.combat-landscape body.combat-active .game-screen {
  width: var(--app-w) !important;
  height: var(--app-h) !important;
  min-height: 0 !important;
  max-height: var(--app-h) !important;
  overflow: hidden !important;
}
html.combat-landscape body.combat-active .game-screen {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  grid-template-columns: none !important;
}
html.combat-landscape body.combat-active .fight-stage,
html.combat-landscape body.combat-active .canvas-wrap,
html.combat-landscape body.combat-active canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: fill !important;
}
html.combat-landscape body.combat-active .fight-chrome {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)) !important;
}
html.combat-landscape body.combat-active .mobile-controls {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  grid-template-columns: none !important;
  margin: 0 !important;
  pointer-events: none !important;
  background: none !important;
  padding: 0 max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important;
}
html.combat-landscape body.combat-active .move-pad,
html.combat-landscape body.combat-active .attack-pad {
  width: auto !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 0 !important;
}
html.combat-landscape body.combat-active .move-pad {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
}
html.combat-landscape body.combat-active .attack-pad {
  display: grid !important;
  grid-template-columns: 52px 52px 52px !important;
  grid-template-areas:
    ". jump ."
    "guard punch special" !important;
  gap: 8px !important;
}
html.combat-landscape body.combat-active .control-btn {
  width: 52px !important;
  height: 52px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
html.combat-landscape .orient-debug {
  white-space: pre;
  bottom: auto;
  top: 42%;
  max-width: 46%;
}

.title-quick {
  display: block;
  margin: 0 auto 6px;
  min-width: 168px;
  background: rgba(7, 4, 26, 0.55);
}
.title-rank {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffe566;
}
@media (max-width: 899px) {
  .mini-instructions { display: none; }
}

/* 2.2B-R7  -  landscape composition only when the viewport itself is landscape. */
html.game-landscape body.combat-active .fight-stage,
html.game-landscape body.combat-active .canvas-wrap,
html.game-landscape body.combat-active canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}
html.game-landscape body.combat-active .fight-chrome {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  max-height: 18% !important;
  writing-mode: horizontal-tb !important;
  padding: max(4px, var(--rot-pad-top, env(safe-area-inset-top))) max(12px, var(--rot-pad-right, env(safe-area-inset-right))) 0 max(12px, var(--rot-pad-left, env(safe-area-inset-left))) !important;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.55), transparent) !important;
}
html.game-landscape body.combat-active .arcade-hud,
html.game-landscape body.combat-active .hud-fighter,
html.game-landscape body.combat-active .hud-bars,
html.game-landscape body.combat-active .name,
html.game-landscape body.combat-active .qp,
html.game-landscape body.combat-active .qp span {
  writing-mode: horizontal-tb !important;
}
html.game-landscape body.combat-active .arcade-hud {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
}
html.game-landscape body.combat-active .hud-fighter {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  min-width: 0 !important;
}
html.game-landscape body.combat-active .hud-fighter.p2 { justify-content: flex-end !important; }
html.game-landscape body.combat-active .name,
html.game-landscape body.combat-active .qp span {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.game-landscape .hud-port {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
}
html.game-landscape .hud-round strong { font-size: 15px !important; }
html.game-landscape body.combat-active .arcade-hud .health { height: 8px !important; }
html.game-landscape body.combat-active .qp .special-meter { height: 4px !important; }
html.game-landscape body.combat-active .mobile-controls {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  grid-template-columns: none !important;
  pointer-events: none !important;
  background: none !important;
  padding: 0 max(10px, var(--rot-pad-right, env(safe-area-inset-right))) max(6px, var(--rot-pad-bottom, env(safe-area-inset-bottom))) max(10px, var(--rot-pad-left, env(safe-area-inset-left))) !important;
}
html.game-landscape body.combat-active .move-pad,
html.game-landscape body.combat-active .attack-pad {
  width: auto !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 0 !important;
}
html.game-landscape body.combat-active .move-pad {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
}
html.game-landscape body.combat-active .attack-pad {
  display: grid !important;
  grid-template-columns: 48px 58px 48px !important;
  grid-template-areas:
    ". jump ."
    "guard punch special" !important;
  gap: 6px !important;
}
html.game-landscape body.combat-active .control-btn {
  width: 48px !important;
  height: 48px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  opacity: 0.78;
}
html.game-landscape body.combat-active .control-btn.punch {
  width: 58px !important;
  height: 58px !important;
}
html.game-landscape body.combat-active .control-btn.active,
html.game-landscape body.combat-active .control-btn:active {
  opacity: 1;
}
html.game-landscape body.combat-active .fight-pause,
html.game-landscape body.combat-active .fight-land {
  top: auto !important;
  bottom: max(2px, var(--rot-pad-bottom, env(safe-area-inset-bottom))) !important;
  height: 26px !important;
  opacity: 0.75;
}
html.game-landscape body.combat-active .fight-pause {
  left: calc(50% - 50px) !important;
  right: auto !important;
}
html.game-landscape body.combat-active .fight-land {
  left: calc(50% + 2px) !important;
  right: auto !important;
}
html.game-landscape body.combat-active .combo-callout {
  top: 30% !important;
  bottom: auto !important;
}
html.game-landscape body.combat-active .action-text {
  top: 34% !important;
  bottom: auto !important;
  left: 28% !important;
  right: 28% !important;
}




.story-card.ticket-beat h2 {
  font-size: 34px;
  letter-spacing: 0.04em;
  color: #ffe566;
}
.story-card.ticket-beat .tagline {
  white-space: pre-line;
  font-size: 20px;
  letter-spacing: 0.16em;
  color: #fff8ee;
}
.story-card.fade-beat {
  background: #000;
  border-color: #000;
  box-shadow: none;
}
.story-card.fade-beat .studio,
.story-card.fade-beat h2,
.story-card.fade-beat .tagline,
.story-card.fade-beat .story-portrait {
  opacity: 0;
}
#gameScreen.train-ride .fight-chrome,
#gameScreen.train-ride .progress-strip,
#gameScreen.train-ride .mobile-controls,
#gameScreen.train-ride .combo-callout,
#gameScreen.train-ride .action-text,
#gameScreen.train-ride #winner {
  display: none !important;
}
.train-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(transparent, rgba(5, 2, 16, 0.92) 42%);
  pointer-events: none;
}
.train-overlay .main-btn { pointer-events: auto; }
.train-overlay h2 {
  margin: 0 0 6px;
  color: #ffe566;
  font-size: 34px;
}
.train-overlay .studio { color: #e9d5ff; letter-spacing: 0.16em; }
.train-overlay .tagline { color: #fff7ed; margin: 0 0 10px; }
#p1Health.hit-pulse, #p2Health.hit-pulse { filter: brightness(1.85); }
.new-game-confirm {
  margin-top: 8px;
  padding: 10px;
  border: 2px solid #f5c542;
  background: rgba(7, 4, 26, 0.88);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.new-game-confirm.hide { display: none; }
button.verse-item {
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
}
.verse-rail { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 4px 0 12px; }
.verse-rail i { width: 12px; height: 12px; border-radius: 50%; background: #1e293b; display: block; box-shadow: inset 0 0 0 2px #000; }
.verse-rail i.on { background: #fde047; }
.verse-rail i.here { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.roster-row { display: flex; gap: 10px; align-items: center; }
.roster-face { width: 72px; height: 72px; border-radius: 12px; background: #111 center/cover no-repeat; flex: none; border: 2px solid #000; }
.roster-face.locked { filter: grayscale(1) brightness(.4); }
.arena-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }

.hero-line {
  margin: 0 0 14px;
  color: #fff8ee;
  font-weight: 800;
  font-size: 15px;
}
.title-secondary {
  display: block;
  width: min(240px, 78%);
  margin: 4px auto 12px;
  min-height: 46px;
  font-size: 15px;
}
.title-tertiary {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  justify-content: center;
  max-width: 340px;
  margin: 0 auto;
}
.title-tertiary .tiny-link {
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.82;
  min-height: 32px;
  padding: 0 2px;
}
.roster-face { width: 72px; height: 72px; border-radius: 12px; }
.roster-row { gap: 12px; padding: 8px; }
.roster-row strong { display: block; font-size: 16px; }
.roster-row small { display: block; letter-spacing: 0.06em; opacity: 0.85; }
.roster-row.you { outline: 2px solid #fde047; }
.bug-panel {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  background: #0f1020;
  color: #fff8ee;
  border: 2px solid #f5c542;
  border-radius: 16px;
  padding: 14px;
  text-align: left;
}
.bug-panel label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.bug-panel textarea {
  width: 100%;
  min-height: 52px;
  margin: 4px 0 8px;
  font: inherit;
  color: #0f1020;
}
.bug-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bug-actions button, #aboutClose {
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 900;
}
@media (max-width: 360px) {
  body.combat-active .hud-round { display: block; }
  body.combat-active .hud-round strong { font-size: 11px; }
}

.title-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.title-poster { opacity: 0; }
.title-veil { z-index: 1; }
.play-now {
  min-height: 84px;
  font-size: 34px;
  width: min(340px, 94%);
  box-shadow: 0 0 24px rgba(253, 224, 71, 0.35);
}
.title-after {
  margin: 0 0 8px;
  color: #fde047;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 12px;
}
.title-tertiary .tiny-link#bugBtn,
.title-tertiary .tiny-link#aboutBtn,
.title-tertiary .tiny-link#connectWalletBtn {
  opacity: 0.55;
  font-size: 10px;
}
.fight-land { display: none !important; }
.vs-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 12px;
}
.vs-mini .story-portrait { width: 84px; height: 84px; }
.roster-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}
.roster-rail .roster-row {
  flex: 0 0 132px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 168px;
}
.roster-rail .roster-row.you { flex-basis: 168px; outline: 2px solid #fde047; }
.roster-rail .roster-row.you .roster-face { width: 96px; height: 96px; }
.flavor { display: block; font-size: 10px; letter-spacing: 0.04em; opacity: 0.75; margin-top: 4px; }
.verse-rail.named {
  position: relative;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 10px 4px 4px;
  background: linear-gradient(#fbbf24, #fbbf24) center 16px / calc(100% - 28px) 2px no-repeat;
}
.verse-node { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 54px; font-size: 9px; letter-spacing: 0.04em; color: #e7e5e4; }
.verse-node i { width: 14px; height: 14px; }
.verse-node.ghost { opacity: 0.55; }
.verse-node.ghost i {
  background: transparent;
  box-shadow: 0 0 8px #7df9ff;
  outline: 1px solid #7df9ff;
}
.story-card[data-beat="route"] { box-shadow: inset 0 8px 0 #fde047; }
.story-card[data-beat="track"] { box-shadow: inset 0 -10px 0 rgba(148,163,184,0.55); }
.story-card[data-beat="absent"] { background: #05060d; }
.story-card[data-beat="expand"] { background: radial-gradient(circle at 50% 130%, #1d4ed8, #07041a 62%); }
.story-card[data-beat="open"] { box-shadow: inset 0 0 0 2px rgba(125,249,255,0.45); }
@media (prefers-reduced-motion: reduce) {
  .play-now { box-shadow: none; }
}
.story-card[data-place="castle"] { border-color: #a78bfa; }
.story-card[data-place="express"] { border-color: #f5c542; background: linear-gradient(180deg, #1c140c, #07041a); }
.story-card[data-place="platform"] { border-color: #64748b; background: #05060d; }
.story-card[data-place="yard"] { border-color: #fbbf24; }
.story-card[data-place="water"] { border-color: #38bdf8; background: linear-gradient(180deg, #082f49, #07041a); }
.story-card[data-place="below"] { border-color: #fb923c; background: #0b1020; }
.story-card[data-place="tear"] { border-color: #f5d0fe; background: linear-gradient(90deg, #1e1b4b 50%, #3b0764 50%); }
.story-card[data-place="final"] { border-color: #ef4444; background: linear-gradient(180deg, #450a0a, #07041a); }
.story-card.post-win h2 { color: #fde047; letter-spacing: 0.06em; }
.qp .special-meter.locked { box-shadow: 0 0 10px #fde047; border-color: #fde047; }
.arcade-hud .health { height: 14px; }
@media (prefers-reduced-motion: reduce) {
  .play-now { box-shadow: none; }
}


.arena-row button { min-height: 36px; padding: 6px 8px; font-size: 12px; }


.guest-edition{font:700 12px/1.5 Nunito,Arial,sans-serif;color:#fff3bd;margin:8px 0 12px}.guest-arcade{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none}.guest-arcade:focus-visible{outline:3px solid #ffd028;outline-offset:3px}
