/* Auto-Guild Battler — 16-Bit Royal Tournament Fantasy UI */
:root {
  --bg-deep: #111521;
  --bg-panel: #192033;
  --bg-card: #222b44;
  --bg-card-hi: #2b3757;
  --border: #3a496e;
  --gold: #fbbf24;
  --gold-soft: #fde68a;
  --crimson: #ef4444;
  --emerald: #34d399;
  --sky: #38bdf8;
  --violet: #c084fc;
  --text: #f3f4f6;
  --muted: #9ca3af;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #1f2942 0%, #0f131f 70%);
  color: var(--text);
  font-family: 'Trebuchet MS', 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 10px 64px; /* bottom clearance for studio-bar.js */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Top HUD Bar ──────────────────────────────────────────────────────────── */
.hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  background: linear-gradient(180deg, #212a42, #161d2f);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hud-left, .hud-stats, .hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 20, 34, 0.72);
}

.pill-royal { background: #312e81; color: #e0e7ff; border-color: #6366f1; }
.pill-daily { background: #4c1d95; color: #f5d0fe; border-color: #c084fc; }
.pill-heart { color: #fca5a5; border-color: #ef4444; }
.pill-gold { color: var(--gold); border-color: #b45309; }
.pill-cap { color: #93c5fd; border-color: #2563eb; }
.pill-streak { color: #fdba74; border-color: #ea580c; }

.rival-label {
  font-size: 13px;
  font-weight: 700;
  color: #fca5a5;
  white-space: nowrap;
}

.icon-btn {
  background: #24304d;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: #33436b; border-color: var(--gold); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn.active { background: #b45309; border-color: var(--gold); color: #fff; }

.info-banner {
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.65), rgba(30, 58, 138, 0.65));
  border: 1px solid #818cf8;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #ede9fe;
}

/* ── Main Arena Layout ────────────────────────────────────────────────────── */
.arena-layout {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 8px;
  align-items: stretch;
}

.synergy-rail {
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3px;
}

.relics-title {
  margin-top: 4px;
}

.synergy-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.syn-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(15, 21, 35, 0.72);
  border: 1px solid #2b3654;
  font-size: 12px;
  transition: all 0.2s;
  cursor: default;
}

.syn-pill .syn-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #cbd5e1;
}

.syn-pill .syn-cnt {
  font-weight: 900;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #1e293b;
  color: #94a3b8;
}

.syn-pill.tier-1 {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.85));
  border-color: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.25);
}
.syn-pill.tier-1 .syn-name { color: #f8fafc; }
.syn-pill.tier-1 .syn-cnt { background: #2563eb; color: #fff; }

.syn-pill.tier-2 {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.36), rgba(120, 53, 15, 0.55));
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}
.syn-pill.tier-2 .syn-name { color: #fef3c7; }
.syn-pill.tier-2 .syn-cnt { background: var(--gold); color: #111827; }

.relic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.relic-empty {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.relic-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #422006, #78350f);
  border: 1px solid var(--gold);
  font-size: 11px;
  font-weight: 800;
  color: #fef3c7;
}

/* ── Canvas Stage ─────────────────────────────────────────────────────────── */
.canvas-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  background: #101624;
  border: 2px solid #4d5f8c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

#battle-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 864 / 464;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: pointer;
  touch-action: manipulation;
}

.battle-toast {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 20, 34, 0.92);
  border: 2px solid var(--gold);
  color: #fef3c7;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

.unit-inspector {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(15, 20, 34, 0.92);
  border: 1px solid #60a5fa;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
  z-index: 4;
}

/* ── Command Dock: Bench + Shop ───────────────────────────────────────────── */
.command-dock {
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dock-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.bench-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.dock-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.bench-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 56px));
  gap: 5px;
}

.bench-slot {
  position: relative;
  height: 50px;
  background: #131929;
  border: 2px dashed #33415c;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  overflow: hidden;
}

.bench-slot:hover { border-color: #60a5fa; background: #1a243d; }
.bench-slot.occupied { border-style: solid; border-color: #4f648e; background: #1e2842; }
.bench-slot.selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.55); transform: translateY(-2px); }

.bench-slot canvas {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}

.bench-star {
  position: absolute;
  top: 1px;
  left: 3px;
  font-size: 9px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 1px 2px #000;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  border: 2px solid transparent;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:hover:not(:disabled) { filter: brightness(1.1); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-fight {
  background: linear-gradient(180deg, #dc2626, #991b1b);
  border-color: #fca5a5;
  padding: 10px 22px;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}

.btn-sell {
  background: linear-gradient(180deg, #b45309, #78350f);
  border-color: var(--gold);
  padding: 9px 12px;
}

.btn-primary {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border-color: #93c5fd;
}

.btn-daily {
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  border-color: #d8b4fe;
  flex-direction: column;
  gap: 2px;
}
.btn-daily small {
  font-size: 11px;
  font-weight: 600;
  color: #ede9fe;
}

.btn-secondary {
  background: #27324f;
  border-color: #4f6391;
  color: #e5e7eb;
}

.btn-share {
  background: linear-gradient(180deg, #059669, #047857);
  border-color: #6ee7b7;
}

.btn-lg {
  padding: 12px 16px;
  font-size: 14px;
}

/* ── Tavern Shop Row ──────────────────────────────────────────────────────── */
.tavern-row {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 8px;
  align-items: stretch;
}

.tavern-controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btn-xp, .btn-reroll, .btn-freeze {
  padding: 5px 9px;
  justify-content: space-between;
  font-size: 12px;
  width: 100%;
}

.btn-xp { background: linear-gradient(180deg, #1d4ed8, #1e3a8a); border-color: #60a5fa; }
.btn-reroll { background: linear-gradient(180deg, #0f766e, #115e59); border-color: #5eead4; }
.btn-freeze { background: #24304d; border-color: #64748b; }
.btn-freeze.frozen { background: #0369a1; border-color: #7dd3fc; }

.btn-main { font-weight: 900; }
.btn-sub { font-size: 11px; color: #dbeafe; font-weight: 700; }

.shop-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.shop-card {
  position: relative;
  background: linear-gradient(180deg, #24304d, #192136);
  border: 2px solid #445680;
  border-radius: 9px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
  text-align: left;
  color: var(--text);
}

.shop-card:hover:not(.sold):not(.cant-afford) {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.shop-card.merge-ready {
  border-color: var(--gold);
  background: linear-gradient(180deg, #422d10, #1f1b24);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.shop-card.pair-hint {
  border-color: #38bdf8;
}

.shop-card.sold {
  opacity: 0.32;
  cursor: default;
  border-style: dashed;
}

.shop-card.cant-afford {
  opacity: 0.65;
}

.shop-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-portrait {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.35));
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-portrait canvas {
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
}

.shop-meta {
  min-width: 0;
  flex: 1;
}

.shop-name {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-cost {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  color: var(--gold);
  margin-top: 1px;
}

.shop-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
}

.trait-chip {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.shop-ult {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.merge-tag {
  position: absolute;
  top: -8px;
  right: 6px;
  background: linear-gradient(90deg, #f59e0b, #fde047);
  color: #111827;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.pair-tag {
  position: absolute;
  top: -8px;
  right: 6px;
  background: #0284c7;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
}

/* ── Modals ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px 64px;
  z-index: 50;
  overflow-y: auto;
}

#modal-guildhall, #modal-leaderboard {
  z-index: 60;
}

.modal-card {
  background: linear-gradient(180deg, #1d263d, #131929);
  border: 2px solid #576c9c;
  border-radius: 14px;
  padding: 18px 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.modal-wide {
  max-width: 640px;
}

.title-crest {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: var(--gold);
  margin-bottom: 4px;
}

.game-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #fef3c7, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.game-tagline {
  margin: 6px 0 10px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
}

.hero-parade {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 12px;
  min-height: 56px;
}

.hero-parade canvas {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6));
}

.challenge-callout {
  background: rgba(124, 58, 237, 0.28);
  border: 1px solid #c084fc;
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #f3e8ff;
}

.title-stats-row, .result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.result-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-box {
  background: rgba(12, 16, 28, 0.72);
  border: 1px solid #33415c;
  border-radius: 8px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-k {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.6px;
}

.stat-box strong {
  font-size: 15px;
  color: var(--gold-soft);
}

.title-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.title-sub-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cliffhanger-bar {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fef3c7;
  margin-top: 6px;
}

.modal-heading {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 900;
}

.modal-sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: #cbd5e1;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  margin-bottom: 8px;
}

.crown-wallet {
  background: #422006;
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 900;
  color: #fef3c7;
}

/* Relic Forge Cards */
.relic-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.relic-card {
  background: linear-gradient(180deg, #2b3556, #1a2138);
  border: 2px solid #6366f1;
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.relic-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
}

.relic-icon { font-size: 30px; }
.relic-name { font-size: 14px; font-weight: 900; color: var(--gold-soft); }
.relic-desc { font-size: 12px; color: #cbd5e1; line-height: 1.35; }

/* Guild Hall Upgrades */
.upgrade-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  margin-bottom: 12px;
}

.upgrade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 20, 34, 0.72);
  border: 1px solid #354569;
  border-radius: 9px;
  padding: 8px 10px;
}

.upgrade-info {
  flex: 1;
}

.upgrade-title {
  font-size: 13px;
  font-weight: 900;
  color: #f8fafc;
}

.upgrade-desc {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
}

.modal-footer-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

/* Leaderboard */
.lb-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
  margin-bottom: 10px;
}

.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 20, 34, 0.72);
  border: 1px solid #2e3b5c;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 13px;
}

.lb-rank { font-weight: 900; color: var(--gold); width: 28px; }
.lb-name { flex: 1; font-weight: 700; }
.lb-meta { font-weight: 800; color: #93c5fd; }

/* Result Modal */
.comp-summary {
  background: rgba(12, 16, 28, 0.72);
  border: 1px solid #33415c;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #e2e8f0;
  margin-bottom: 8px;
  line-height: 1.45;
}

.lb-submit-box {
  display: flex;
  gap: 6px;
  margin: 10px 0 6px;
}

.lb-submit-box input {
  flex: 1;
  min-width: 0;
  background: #0f1524;
  border: 1px solid #4d6291;
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.submit-msg {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 8px;
}

.result-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

/* ── Mobile Responsive (390×844 = 0px horizontal overflow!) ──────────────── */
@media (max-width: 820px) {
  .app-shell {
    padding: 6px 6px 68px;
    gap: 6px;
  }

  .hud-bar {
    padding: 5px 7px;
  }

  .pill {
    font-size: 11px;
    padding: 2px 7px;
  }

  .rival-label {
    font-size: 11px;
  }

  .icon-btn {
    padding: 3px 7px;
    font-size: 12px;
  }

  .arena-layout {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .synergy-rail {
    padding: 6px 7px;
    gap: 4px;
  }

  .rail-title {
    display: none;
  }

  .synergy-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .syn-pill {
    padding: 3px 5px;
    font-size: 11px;
  }

  .dock-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .bench-group {
    justify-content: space-between;
  }

  .bench-slots {
    flex: 1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .bench-slot {
    height: 44px;
  }

  .bench-slot canvas {
    width: 30px;
    height: 30px;
  }

  .cta-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cta-group.has-sell {
    grid-template-columns: auto 1fr;
  }

  .tavern-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tavern-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .btn-xp, .btn-reroll, .btn-freeze {
    flex-direction: column;
    padding: 5px 4px;
    gap: 1px;
    font-size: 11px;
  }

  .shop-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .shop-portrait {
    width: 38px;
    height: 38px;
  }

  .shop-portrait canvas {
    width: 34px;
    height: 34px;
  }

  .title-btn-grid {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-title {
    font-size: 24px;
  }

  .hero-parade canvas {
    width: 40px;
    height: 40px;
  }
}
