* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pro: #118a53;
  --pro-light: #d9f8e7;
  --pro-border: #7de0ae;
  --con: #d44735;
  --con-light: #ffe2d9;
  --con-border: #f5a392;
  --blue: #2569d9;
  --blue-dark: #1744a2;
  --blue-light: #e7f0ff;
  --gold: #ffb829;
  --gold-light: #fff2c7;
  --ink: #202234;
  --muted: #666f86;
  --gray: #666f86;
  --gray-light: #f6f2ea;
  --paper: #fffaf0;
  --panel: rgba(255,255,255,0.94);
  --border: #e8dcc7;
  --shadow: 0 18px 45px rgba(36, 35, 61, 0.14);
  --ring: 0 0 0 4px rgba(37, 105, 217, 0.14);
}

body {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,184,41,0.28), transparent 32rem),
    linear-gradient(180deg, #fff7df 0%, #f2fbff 46%, #fff9ec 100%);
  color: var(--ink);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("assets/capybara-debate-hero.png");
  background-size: min(1180px, 115vw) auto;
  background-repeat: no-repeat;
  background-position: right top 86px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,247,223,0.96), rgba(255,247,223,0.82) 43%, rgba(255,247,223,0.35)),
    radial-gradient(circle at 85% 18%, rgba(68, 178, 255, 0.16), transparent 20rem);
  pointer-events: none;
  z-index: -1;
}

/* Header */
header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 42px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, 0.86);
  border-bottom: 1px solid rgba(232, 220, 199, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffcb57, #ff8f3d);
  color: white;
  font-size: 23px;
  font-weight: 900;
  border: 3px solid white;
  box-shadow: 0 10px 22px rgba(187, 104, 25, 0.24);
}

header h1 {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
}

.brand p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.resolution-card {
  margin-left: auto;
  min-width: 0;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid rgba(255,184,41,0.36);
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(36, 35, 61, 0.08);
}

.settings-btn {
  margin-left: auto;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(232, 220, 199, 0.9);
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.settings-btn:hover {
  color: var(--blue-dark);
  box-shadow: var(--ring);
}

.user-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.user-bar .settings-btn {
  margin-left: 0;
}

.resolution-card:hover { box-shadow: var(--ring); }

.resolution-label {
  color: #9a5c00;
  background: var(--gold-light);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.resolution-text {
  min-width: 0;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Navigation */
nav {
  display: flex;
  gap: 10px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(255,255,255,0.68);
  border-bottom: 1px solid rgba(232, 220, 199, 0.64);
  overflow-x: auto;
}

nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

nav button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--blue-dark);
}

nav button:hover { transform: translateY(-1px); }
nav button.active {
  background: white;
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(36, 35, 61, 0.10);
}

/* Layout */
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.74) 49%, rgba(255,255,255,0.08)),
    url("assets/capybara-debate-hero.png") right center / cover no-repeat;
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 44px);
}

.eyebrow,
.section-kicker {
  color: #9a5c00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h2 {
  margin-top: 8px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  font-weight: 950;
  max-width: 11ch;
}

.hero p {
  margin: 14px 0 22px;
  max-width: 450px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 650;
}

.quest-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.practice-timer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, auto);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(232, 220, 199, 0.82);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 24px rgba(36, 35, 61, 0.07);
}

.practice-timer strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 950;
}

.timer-display {
  min-width: 104px;
  text-align: center;
  color: var(--blue-dark);
  font-size: 30px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.timer-display.timer-warning {
  color: var(--con);
}

.timer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Resources */
.resource-status {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 14px;
  min-height: 620px;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-card {
  padding: 14px;
  border: 1px solid rgba(232, 220, 199, 0.9);
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(36, 35, 61, 0.06);
}

.resource-card:hover {
  border-color: var(--gold);
  box-shadow: var(--ring);
}

.resource-card.active {
  border-color: var(--gold);
  box-shadow: var(--ring);
}

.resource-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.resource-level {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-title {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 5px;
}

.resource-source {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.resource-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.resource-progress {
  margin-top: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.resource-note {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--gold-light);
  color: #8a5300;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.resource-viewer {
  min-width: 0;
  border: 1px solid rgba(232, 220, 199, 0.9);
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(36, 35, 61, 0.08);
}

.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,250,240,0.9);
}

.viewer-title {
  font-size: 14px;
  font-weight: 900;
}

.viewer-source {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.resource-frame {
  width: 100%;
  height: 520px;
  border: 0;
  background: white;
}

.viewer-note {
  padding: 8px 14px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.resource-preview {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(255,242,199,0.62), rgba(231,240,255,0.7)),
    white;
}

.resource-preview h3 {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.05;
  max-width: 620px;
}

.resource-preview p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  max-width: 580px;
}

.resource-quest {
  border-top: 1px solid var(--border);
  padding: 14px;
  background: rgba(255, 255, 255, 0.95);
}

.resource-quest-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 950;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quest-task {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.quest-task input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.quest-task.done span {
  color: var(--muted);
  text-decoration: line-through;
}

.quest-note {
  width: 100%;
  min-height: 62px;
  margin-top: 7px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.72);
  resize: vertical;
}

.quest-note:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 106, 216, 0.12);
}

.preview-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(232, 220, 199, 0.84);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 30px rgba(36, 35, 61, 0.06);
}

.quest-step span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--blue);
  font-weight: 950;
}

.quest-step strong { font-size: 14px; font-weight: 950; }
.quest-step em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; }
.quest-step.active { border-color: rgba(255,184,41,0.72); }
.quest-step.active span { background: linear-gradient(145deg, #ffb829, #ff7a35); }

.tab-panel {
  display: none;
  padding: 22px;
  border: 1px solid rgba(232, 220, 199, 0.88);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tab-panel.active { display: block; }

/* Section header */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin-top: 3px;
  font-size: 25px;
  font-weight: 950;
}

.section-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

/* Side selector */
.side-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.side-btn {
  min-height: 48px;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: white;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.side-btn:hover { transform: translateY(-1px); }
.side-btn.pro { color: var(--pro); }
.side-btn.con { color: var(--con); }
.side-btn.pro.active { background: var(--pro-light); border-color: var(--pro); box-shadow: 0 8px 20px rgba(17,138,83,0.12); }
.side-btn.con.active { background: var(--con-light); border-color: var(--con); box-shadow: 0 8px 20px rgba(212,71,53,0.12); }

/* Buttons */
.btn {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(145deg, var(--blue), var(--blue-dark)); color: white; box-shadow: 0 10px 24px rgba(37,105,217,0.24); }
.btn-primary:hover { background: linear-gradient(145deg, #2f78ef, var(--blue-dark)); }
.btn-primary:disabled { background: #9fbff6; cursor: not-allowed; transform: none; }
.btn-secondary { background: white; color: var(--ink); border: 2px solid var(--border); }
.btn-secondary:hover { background: #fff7df; }
.btn-danger { background: white; color: var(--con); border: 2px solid var(--con-border); }
.btn-danger:hover { background: var(--con-light); }
.btn-sm { min-height: 32px; padding: 5px 10px; border-radius: 10px; font-size: 12px; }

/* Cards */
.card,
.pending-card,
.case-editor,
.case-item {
  background: white;
  border: 2px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(36, 35, 61, 0.06);
}

.card {
  padding: 16px;
  margin-bottom: 12px;
}

.card.pro-card { border-left: 8px solid var(--pro); }
.card.con-card { border-left: 8px solid var(--con); }

.argument-game-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,250,240,0.97)),
    white;
}

.argument-game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 166, 46, 0.18), transparent 26%),
    radial-gradient(circle at 15% 92%, rgba(43, 106, 216, 0.13), transparent 28%);
}

.arg-card-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(230px, 25vw, 340px);
  margin: -8px -8px 12px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.55), transparent 30%),
    linear-gradient(110deg, rgba(255, 139, 44, 0.16), rgba(43, 106, 216, 0.12)),
    #fff7df;
  border: 2px solid rgba(226, 213, 190, 0.95);
}

.arg-card-art img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 26px rgba(24, 32, 51, 0.18));
}

.arg-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.44) 42%, transparent 66%);
  transform: translateX(-100%);
  animation: cardShine 4.8s ease-in-out infinite;
}

.arg-card-art.rarity-common {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.58), transparent 30%),
    linear-gradient(120deg, #eef5ff, #fff2d9);
}

.arg-card-art.rarity-rare {
  border-color: rgba(20, 184, 166, 0.58);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.58), transparent 28%),
    linear-gradient(120deg, #d8fff7, #ecfeff 42%, #fff7df);
}

.arg-card-art.rarity-epic {
  border-color: rgba(124, 58, 237, 0.58);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.52), transparent 28%),
    linear-gradient(120deg, #e9d5ff, #dbeafe 46%, #fff7df);
}

.arg-card-art.rarity-legendary {
  border-color: rgba(245, 158, 11, 0.78);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.48), transparent 28%),
    linear-gradient(120deg, #451a03, #b45309 38%, #fef3c7);
}

.arg-card-art.rarity-mythic {
  border-color: rgba(236, 72, 153, 0.74);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.5), transparent 28%),
    conic-gradient(from 220deg, #f0abfc, #93c5fd, #86efac, #fde68a, #f0abfc);
}

.rarity-chip,
.card-power-chip,
.drop-note {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(24, 32, 51, 0.12);
}

.rarity-chip {
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  letter-spacing: 0;
}

.card-power-chip {
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(24, 32, 51, 0.88);
  color: white;
}

.drop-note {
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray);
  font-size: 12px;
  line-height: 1.25;
}

.rarity-pill {
  display: inline-block;
  padding: 4px 9px;
  margin-right: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  background: #eef2ff;
  color: #1e3a8a;
}

.rarity-pill.rarity-rare { background: #ccfbf1; color: #0f766e; }
.rarity-pill.rarity-epic { background: #ede9fe; color: #6d28d9; }
.rarity-pill.rarity-legendary { background: #fef3c7; color: #92400e; }
.rarity-pill.rarity-mythic { background: #fce7f3; color: #be185d; }

.origin-pill {
  display: inline-block;
  padding: 4px 9px;
  margin-right: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  background: #f1f5f9;
  color: #64748b;
}

.origin-pill.user {
  background: #dcfce7;
  color: #15803d;
}

@keyframes cardShine {
  0%, 55% { transform: translateX(-100%); }
  75%, 100% { transform: translateX(100%); }
}

.card-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.card-title {
  font-size: 16px;
  font-weight: 950;
}

.card-actions { display: flex; gap: 6px; flex-shrink: 0; }

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  margin-right: 6px;
}

.badge-pro { background: var(--pro-light); color: var(--pro); }
.badge-con { background: var(--con-light); color: var(--con); }

/* CWI layout */
.cwi { display: grid; gap: 8px; }
.cwi-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.cwi-label {
  color: var(--muted);
  font-weight: 950;
}
.cwi-value { color: var(--ink); }

.card-trainer-slot {
  position: relative;
  margin-top: 14px;
}

.trainer-loading,
.trainer-error {
  padding: 14px;
  border-radius: 14px;
  background: #fff7df;
  border: 1px solid #f4d46a;
  color: #8a5300;
  font-weight: 900;
}

.sparkle {
  display: inline-block;
  margin-right: 8px;
  color: var(--gold);
  animation: sparklePulse 1s ease-in-out infinite alternate;
}

@keyframes sparklePulse {
  from { transform: scale(0.86) rotate(-8deg); opacity: 0.65; }
  to { transform: scale(1.16) rotate(8deg); opacity: 1; }
}

.trainer-panel {
  padding: 14px;
  border-radius: 16px;
  border: 2px solid rgba(255, 180, 66, 0.75);
  background:
    linear-gradient(180deg, rgba(255,251,235,0.96), rgba(240,247,255,0.96)),
    white;
  box-shadow: 0 16px 36px rgba(36, 35, 61, 0.1);
}

.card-flip-in {
  animation: cardFlipIn 0.42s cubic-bezier(.2,.8,.2,1);
  transform-origin: top center;
}

@keyframes cardFlipIn {
  from { opacity: 0; transform: perspective(800px) rotateX(-14deg) translateY(-6px); }
  to { opacity: 1; transform: perspective(800px) rotateX(0) translateY(0); }
}

.trainer-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.trainer-kicker {
  color: #8a5300;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trainer-score {
  color: var(--ink);
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.trainer-score span {
  color: var(--muted);
  font-size: 14px;
}

.trainer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 720px;
}

.trainer-action-hint {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.train-move {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 128px;
  min-height: 58px;
  gap: 2px;
  text-align: left;
  white-space: normal;
}

.train-move span {
  font-size: 12px;
  font-weight: 950;
  color: var(--ink);
}

.train-move em {
  font-style: normal;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.18;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.stat-card {
  padding: 9px;
  border: 1px solid rgba(232, 220, 199, 0.95);
  border-radius: 12px;
  background: rgba(255,255,255,0.85);
}

.stat-label,
.stat-value {
  font-size: 11px;
  font-weight: 950;
  color: var(--muted);
}

.stat-value {
  color: var(--ink);
  margin-top: 5px;
}

.stat-bar {
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #e8dcc7;
  overflow: hidden;
}

.stat-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width 0.35s ease;
}

.coach-burst {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  margin-bottom: 12px;
}

.trainer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.trainer-box {
  padding: 11px 12px;
  border-radius: 14px;
  line-height: 1.4;
}

.trainer-box.attack {
  background: var(--con-light);
  border: 1px solid var(--con-border);
}

.trainer-box.shield {
  background: var(--pro-light);
  border: 1px solid var(--pro-border);
}

.trainer-box-label,
.upgrade-card-title {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.trainer-box p {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
}

.coach-notes {
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(37, 105, 217, 0.18);
  background: var(--blue-light);
}

.coach-notes ul {
  margin-left: 18px;
  display: grid;
  gap: 5px;
}

.coach-notes li {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.upgrade-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(43, 106, 216, 0.18);
  background: rgba(255,255,255,0.9);
}

.evidence-needed {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--gold-light);
  color: #8a5300;
  font-size: 13px;
  font-weight: 800;
}

/* Forms */
.edit-form,
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-form label,
.modal-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 950;
  color: var(--muted);
}

.edit-form input,
.edit-form textarea,
.modal-form input,
.modal-form textarea,
.case-content-area,
.chat-input-area textarea,
#case-title-input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
}

.edit-form input:focus,
.edit-form textarea:focus,
.modal-form input:focus,
.modal-form textarea:focus,
.case-content-area:focus,
.chat-input-area textarea:focus,
#case-title-input:focus {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.edit-form textarea { min-height: 78px; resize: vertical; }
.edit-form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }

/* Pending argument */
.pending-card {
  padding: 16px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff9dd, #fffef8);
  border-color: #f4d46a;
}

/* Cases */
.cases-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.case-sidebar { min-width: 0; }
.case-editor-area { min-width: 0; }
.case-list { display: flex; flex-direction: column; gap: 10px; }

.case-item {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.case-item:hover,
.case-item.active {
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-1px);
}

.case-item-info { flex: 1; min-width: 0; }
.case-item-title { font-size: 14px; font-weight: 950; overflow-wrap: anywhere; }
.case-item-meta { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 700; }

.case-editor { overflow: hidden; }
.case-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 2px solid var(--border);
  background: linear-gradient(180deg, #fff8e1, #fffdf8);
}

.case-editor-toolbar span { font-size: 13px; font-weight: 900; flex: 1; }
#case-title-input { border-color: transparent; background: transparent; font-weight: 950; flex: 1; min-width: 120px; }

.case-draft-select {
  min-height: 34px;
  border: 2px solid #eadfc9;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  padding: 0 10px;
  outline: none;
}

.case-content-area {
  min-height: 430px;
  border: none;
  border-radius: 0;
  padding: 18px;
  resize: vertical;
  line-height: 1.65;
  background: white;
}

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

#chat-session-info {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chat-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 250px);
  min-height: 440px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(36, 35, 61, 0.08);
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.90)),
    url("assets/capybara-coach-card.png") right 18px bottom 10px / 230px auto no-repeat;
}

.chat-bubble {
  max-width: min(78%, 720px);
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 8px 18px rgba(36,35,61,0.08);
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: #fff8e7;
  color: var(--ink);
  border: 2px solid #f1ddac;
  border-bottom-left-radius: 6px;
}

.chat-bubble .bubble-label {
  font-size: 11px;
  font-weight: 950;
  margin-bottom: 4px;
  opacity: 0.74;
}

.chat-input-area {
  border-top: 2px solid var(--border);
  padding: 12px;
  display: flex;
  gap: 8px;
  background: #fffaf0;
}

.chat-input-area textarea {
  flex: 1;
  resize: none;
  height: 52px;
}

/* Empty state */
.empty {
  text-align: center;
  padding: 44px 24px;
  color: var(--muted);
}

.empty img {
  width: min(220px, 70%);
  border-radius: 24px;
  margin-bottom: 16px;
  box-shadow: 0 14px 30px rgba(36, 35, 61, 0.12);
}

.empty h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 8px;
}

.empty p { font-size: 14px; font-weight: 700; }

.empty.compact {
  padding: 18px 12px;
}

.empty.compact h3 {
  font-size: 15px;
}

.empty.compact p {
  font-size: 12px;
}

.resolution-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.resolution-list-item > div {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.active-resolution-item {
  color: var(--blue);
  font-weight: 950;
}

.active-resolution-item span {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 950;
}

/* Login */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(231, 240, 255, 0.96)),
    url("assets/capybara-debate-hero.png") center bottom / min(760px, 96vw) auto no-repeat;
  overflow: auto;
}

.login-card {
  width: min(430px, 100%);
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 2px solid rgba(255,255,255,0.94);
  border-radius: 26px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 28px 76px rgba(36, 35, 61, 0.2);
  backdrop-filter: blur(16px);
}

.login-badge {
  align-self: center;
  padding: 7px 11px;
  border: 1px solid rgba(255,184,41,0.36);
  border-radius: 999px;
  background: var(--gold-light);
  color: #9a5c00;
  font-size: 12px;
  font-weight: 950;
}

.login-master {
  width: 118px;
  height: 118px;
  margin: 18px auto 10px;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(36, 35, 61, 0.16));
}

.login-card h2 {
  text-align: center;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.login-subtitle {
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 850;
}

.login-form {
  margin-top: 25px;
  display: grid;
  gap: 9px;
}

.login-form label {
  margin-top: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.login-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,250,240,0.74);
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  outline: none;
}

.login-form input:focus {
  border-color: rgba(37, 105, 217, 0.48);
  box-shadow: var(--ring);
}

.login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  justify-content: center;
  font-size: 15px;
}

.login-error {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 71, 53, 0.28);
  border-radius: 14px;
  background: rgba(255, 226, 217, 0.74);
  color: #9f2d22;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.login-error.show {
  display: block;
}

.login-help {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 28, 48, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
  backdrop-filter: blur(8px);
}

.modal {
  width: 520px;
  max-width: 100%;
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: 24px;
  background: var(--paper);
  border: 2px solid white;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.settings-modal {
  width: min(760px, calc(100vw - 32px));
}

.confirm-modal {
  width: min(440px, calc(100vw - 32px));
}

.settings-section {
  margin-top: 16px;
}

.settings-section > label {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 8px;
}

.settings-section select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--ink);
  background: white;
  font-size: 14px;
  font-weight: 800;
}

.settings-help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.source-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.88);
  cursor: pointer;
}

.source-option input {
  width: 18px;
  height: 18px;
}

.source-option strong {
  display: block;
  font-size: 13px;
}

.source-option em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.modal h3 {
  font-size: 21px;
  font-weight: 950;
  margin-bottom: 16px;
}

.modal-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.list-label {
  font-size: 12px;
  font-weight: 950;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Loading */
.loading-dots::after {
  content: "";
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.btn-secondary .spinner,
.btn-danger .spinner {
  border-color: #d6dbe8;
  border-top-color: var(--blue);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(360px, calc(100vw - 32px));
  background: #202234;
  color: white;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  z-index: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.flex { display: flex; flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

@media (max-width: 820px) {
  header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .resolution-card {
    width: 100%;
    margin-left: 0;
  }

  .settings-btn {
    width: 100%;
    margin-left: 0;
  }

  .user-bar {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 360px;
    align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.76) 58%, rgba(255,255,255,0.08)),
      url("assets/capybara-debate-hero.png") center bottom / 118% auto no-repeat;
  }

  .hero-copy { padding: 24px; }
  .hero h2 { max-width: 12ch; }

  .login-screen {
    padding: 16px;
  }

  .login-card {
    padding: 26px;
    border-radius: 22px;
  }

  .login-master {
    width: 96px;
    height: 96px;
  }

  .login-card h2 {
    font-size: 30px;
  }

  .quest-strip,
  .practice-timer,
  .cases-layout,
  .resource-layout {
    grid-template-columns: 1fr;
  }

  .timer-display {
    text-align: left;
  }

  .timer-actions {
    justify-content: flex-start;
  }

  .resource-frame {
    height: 440px;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .section-header .flex { width: 100%; }
  .section-header .btn { flex: 1; }

  .case-editor-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  #case-title-input {
    flex-basis: 100%;
  }

  .chat-layout {
    height: calc(100vh - 310px);
  }

  .stat-grid,
  .trainer-columns {
    grid-template-columns: 1fr;
  }

  .trainer-topline {
    flex-direction: column;
  }

  .trainer-actions {
    justify-content: flex-start;
  }

  .trainer-action-hint {
    text-align: left;
  }

  .train-move {
    flex: 1 1 220px;
  }
}

@media (max-width: 560px) {
  main { width: min(100% - 20px, 1120px); padding-top: 12px; }
  nav { padding-inline: 10px; }
  .tab-panel { padding: 16px; border-radius: 20px; }
  .hero { border-radius: 20px; }
  .hero p { font-size: 14px; }
  .side-selector { grid-template-columns: 1fr; }
  .card-header { flex-direction: column; }
  .card-actions { width: 100%; }
  .card-actions .btn { flex: 1; }
  .cwi-row { grid-template-columns: 1fr; gap: 3px; }
  .chat-bubble { max-width: 92%; }
  .chat-input-area { flex-direction: column; }
  .chat-input-area .btn { width: 100%; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .source-grid { grid-template-columns: 1fr; }
}

/* ── Guide feature ── */
.guide-stages {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.guide-stage {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.7);
  border: 2px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}

.guide-stage.active {
  background: var(--gold-light);
  border-color: var(--gold);
  color: #92400e;
}

@media print {
  body.printing-case {
    background: white;
  }

  body.printing-case::before,
  body.printing-case::after,
  body.printing-case header,
  body.printing-case nav,
  body.printing-case .hero,
  body.printing-case .quest-strip,
  body.printing-case .practice-timer,
  body.printing-case .section-header,
  body.printing-case .side-selector,
  body.printing-case .case-sidebar,
  body.printing-case .case-editor-toolbar,
  body.printing-case #toast {
    display: none !important;
  }

  body.printing-case main,
  body.printing-case .tab-panel,
  body.printing-case .cases-layout,
  body.printing-case .case-editor-area,
  body.printing-case .case-editor {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    background: white !important;
  }

  body.printing-case .tab-panel:not(#tab-cases) {
    display: none !important;
  }

  body.printing-case #tab-cases {
    display: block !important;
  }

  body.printing-case .case-content-area {
    min-height: auto;
    height: auto;
    width: 100%;
    padding: 0;
    border: none;
    color: #111;
    font: 13pt/1.55 Georgia, "Times New Roman", serif;
    white-space: pre-wrap;
  }
}

.guide-stage.done {
  background: var(--pro-light);
  border-color: var(--pro-border);
  color: var(--pro);
}

.guide-stage-sep {
  color: var(--muted);
  font-size: 12px;
}

/* Coach Capy chat bubbles */
.chat-bubble.coach {
  align-self: flex-start;
  background: var(--gold-light);
  border: 2px solid rgba(255,184,41,0.4);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.chat-bubble.coach a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
}

.chat-bubble.coach a:hover {
  color: var(--blue);
}

.guide-award {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  width: min(520px, 94%);
  align-self: center;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8e8, #eef6ff);
  border: 2px solid #f5d57a;
  box-shadow: 0 16px 32px rgba(36, 35, 61, 0.12);
  animation: cardFlipIn 0.32s ease both;
}

.guide-award.rarity-ssr {
  background: linear-gradient(135deg, #ede9fe, #dffcff, #fff7df);
  border-color: #a78bfa;
}

.guide-award.rarity-ur {
  background: conic-gradient(from 210deg, #fde68a, #fbcfe8, #bfdbfe, #bbf7d0, #fde68a);
  border-color: #f59e0b;
}

.guide-award img {
  width: 88px;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(24, 32, 51, 0.18);
}

.award-kicker {
  color: #92400e;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-award h4 {
  margin: 3px 0;
  font-size: 18px;
}

.guide-award p {
  margin: 0;
  color: var(--gray);
  font-weight: 800;
  line-height: 1.35;
}

.collection-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.collection-summary > div {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.86);
}

.collection-summary strong {
  display: block;
  font-size: 24px;
  font-weight: 950;
}

.collection-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.recent-awards { margin-bottom: 16px; }
.recent-title {
  font-size: 13px;
  color: var(--muted);
  font-weight: 950;
  margin-bottom: 8px;
}

.recent-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.recent-card {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--border);
  font-weight: 900;
}

.recent-card img {
  width: 42px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.collection-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  border: 2px solid var(--border);
  box-shadow: 0 12px 24px rgba(36, 35, 61, 0.08);
}

.collection-card.locked {
  filter: grayscale(0.92);
  opacity: 0.58;
}

.collection-card.rarity-ssr { border-color: #a78bfa; }
.collection-card.rarity-ur {
  border-color: #f59e0b;
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.2);
}

.collection-art {
  position: relative;
  aspect-ratio: 307 / 512;
  background: #f8fafc;
}

.collection-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-rarity,
.owned-count {
  position: absolute;
  top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: white;
  background: rgba(24,32,51,0.82);
  font-size: 11px;
  font-weight: 950;
}

.collection-rarity { left: 8px; }
.owned-count { right: 8px; }

.collection-info {
  padding: 10px;
  display: grid;
  gap: 2px;
}

.collection-info strong {
  font-size: 14px;
  font-weight: 950;
}

.collection-info span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
