@font-face {
  font-family: "Pretendard";
  src: url("/platform-static/fonts/pretendard/PretendardVariable.woff2?v=20260511-pretendard") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --sm-bg: #050202;
  --sm-ink: #fff8f3;
  --sm-muted: rgba(255, 248, 243, 0.68);
  --sm-soft: rgba(255, 248, 243, 0.48);
  --sm-line: rgba(255, 255, 255, 0.13);
  --sm-red: #ff3b1f;
  --sm-orange: #ff7a2b;
  --sm-hot: #ff2d1f;
  --sm-gold: #ffc15a;
  --sm-green: #69f08b;
  --sm-cyan: #47d7ff;
  --sm-mint: #7fffd0;
  --sm-rose: #ff4f85;
  --sm-blue: #356dff;
  --sm-violet: #9b74ff;
  --sm-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--sm-ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 79, 133, 0.18), transparent 32%),
    radial-gradient(circle at 12% 75%, rgba(71, 215, 255, 0.12), transparent 24%),
    radial-gradient(circle at 88% 84%, rgba(127, 255, 208, 0.09), transparent 23%),
    #050202;
  font-family: var(--sm-font);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--sm-cyan);
  outline-offset: 3px;
}

.stockmatch-stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}

.phone-shell {
  position: relative;
  isolation: isolate;
  width: min(420px, calc(100vw - 22px));
  height: min(920px, calc(100svh - 24px));
  min-height: 760px;
  padding: 22px 18px 16px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-radius: 48px;
  background:
    radial-gradient(circle at 78% 6%, rgba(255, 79, 133, 0.17), transparent 24%),
    radial-gradient(circle at 12% 42%, rgba(71, 215, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(10, 3, 2, 0.98));
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 90px rgba(255, 58, 31, 0.16);
}

.device-glow {
  position: absolute;
  inset: 64px 8px auto;
  height: 300px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 59, 31, 0.23), transparent 64%);
  filter: blur(24px);
}

.status-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 790;
  letter-spacing: -0.03em;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-icons img {
  width: 19px;
  height: 19px;
  filter: brightness(0) saturate(100%) invert(99%) sepia(3%) saturate(411%) hue-rotate(188deg) brightness(116%) contrast(100%);
}

.status-icons img:last-child {
  width: 24px;
}

.app-top {
  height: 86px;
  display: grid;
  grid-template-columns: 58px 1fr auto auto;
  align-items: center;
  gap: 8px;
}

.profile-dot,
.streak-pill,
.heart-save,
.mode-tabs button,
.daily-pack,
.action-button,
.bottom-nav button,
.pack-close,
.pack-collect,
.boss-card,
.detail-close,
.detail-actions button {
  border: 0;
  cursor: pointer;
}

.profile-dot {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 18%, #fff8ef, #c9d3c7 52%, #343632 53%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.avatar-face {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #1e120f;
  border-radius: 50%;
  background: #f6d1ba;
  font-size: 18px;
  font-weight: 920;
}

.online-dot {
  position: absolute;
  right: 1px;
  bottom: 4px;
  width: 13px;
  height: 13px;
  border: 2px solid #070301;
  border-radius: 50%;
  background: #6beb23;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: var(--sm-ink);
  text-decoration: none;
  font-size: 28px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand strong {
  color: var(--sm-red);
}

.brand i {
  width: 27px;
  height: 27px;
  margin-left: 5px;
  display: inline-grid;
  place-items: center;
  color: var(--sm-red);
  border: 2px solid var(--sm-red);
  border-radius: 50%;
  font-size: 14px;
  font-style: normal;
  line-height: 1;
  transform: rotate(-18deg) translateY(-7px);
}

.streak-pill {
  justify-self: end;
  min-width: 58px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--sm-red);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.flame-mark {
  width: 19px;
  height: 26px;
  display: block;
  border-radius: 58% 58% 46% 46%;
  background:
    radial-gradient(circle at 52% 64%, #ffd27c 0 18%, transparent 20%),
    linear-gradient(155deg, #ffb13d 0%, #ff3b1f 48%, #ff1d0b 100%);
  transform: rotate(8deg);
  box-shadow: 0 0 18px rgba(255, 59, 31, 0.45);
}

.streak-pill strong {
  font-size: 22px;
  font-weight: 880;
}

.stock-language {
  position: relative;
  justify-self: end;
}

.language-pill,
.stock-language-menu button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.language-pill {
  min-width: 112px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: rgba(255, 248, 243, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.11) inset;
  white-space: nowrap;
}

.language-pill span {
  color: rgba(255, 248, 243, 0.52);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-pill strong {
  color: var(--sm-cyan);
  font-size: 13px;
  font-weight: 900;
}

.stock-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 172px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(10, 4, 3, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.stock-language-menu[hidden] {
  display: none;
}

.stock-language-menu button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  color: rgba(255, 248, 243, 0.78);
  border-radius: 11px;
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  text-align: left;
}

.stock-language-menu button.is-active {
  color: #190704;
  background: linear-gradient(135deg, var(--sm-orange), var(--sm-gold));
}

.mode-tabs {
  height: 74px;
  display: grid;
  grid-template-columns: 1.14fr 0.86fr 0.92fr 1fr;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45) inset;
}

.mode-tabs button {
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255, 248, 243, 0.62);
  border-radius: 18px;
  background: transparent;
  font-size: 14px;
  font-weight: 720;
  transition: color 170ms ease, background 170ms ease, transform 170ms ease;
}

.mode-tabs button img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.86;
  filter: brightness(0) saturate(100%) invert(87%) sepia(9%) saturate(386%) hue-rotate(325deg) brightness(104%) contrast(92%);
}

.mode-tabs button.is-active {
  color: #190704;
  background: linear-gradient(135deg, var(--sm-rose), #ff7942 52%, var(--sm-cyan));
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(255, 79, 133, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.mode-tabs button.is-active img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(6%) sepia(63%) saturate(1344%) hue-rotate(343deg) brightness(90%) contrast(108%);
}

.view-panel {
  height: calc(100% - 86px - 74px - 82px);
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 14px;
  overflow: auto;
  scrollbar-width: none;
}

.view-panel::-webkit-scrollbar {
  display: none;
}

.view-panel[data-view-panel="discover"] > .daily-pack {
  display: none;
}

.view-panel[hidden] {
  display: none;
}

.daily-pack {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px auto;
  align-items: center;
  gap: 11px;
  padding: 10px 13px 10px 16px;
  color: var(--sm-ink);
  border: 1px solid rgba(255, 94, 50, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 55, 30, 0.21), rgba(255, 122, 43, 0.08)),
    rgba(255, 255, 255, 0.035);
  text-align: left;
}

.daily-pack.wide {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pack-copy {
  display: grid;
  gap: 2px;
}

.pack-copy small,
.collection-head small {
  color: var(--sm-orange);
  font-size: 11px;
  font-weight: 880;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pack-copy strong {
  font-size: 15px;
  letter-spacing: -0.03em;
}

.pack-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.pack-meter i {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff3b1f, #ffbf5a);
  transition: width 240ms ease;
}

.pack-count {
  color: var(--sm-gold);
  font-size: 12px;
  font-weight: 850;
}

.match-card {
  position: relative;
  height: 506px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 27px;
  background: #0d0706;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 59, 31, 0.1) inset;
  transform-origin: 50% 90%;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
  touch-action: pan-y;
  user-select: none;
}

.match-card::before,
.match-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(9px) scale(0.96);
}

.match-card::after {
  transform: translateY(18px) scale(0.91);
  opacity: 0.5;
}

.match-card.is-dragging {
  transition: none;
}

.match-card.is-skip {
  transform: translateX(-22px) rotate(-3deg);
  opacity: 0.42;
}

.match-card.is-match {
  transform: translateX(22px) rotate(3deg) scale(1.012);
}

.match-card.is-alert {
  transform: translateY(-8px) scale(1.012);
}

.swipe-stamp {
  position: absolute;
  z-index: 5;
  top: 34px;
  min-width: 110px;
  padding: 10px 14px;
  border: 3px solid currentColor;
  border-radius: 16px;
  opacity: 0;
  font-size: 20px;
  font-weight: 920;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(-11deg) scale(0.92);
  transition: opacity 120ms ease, transform 120ms ease;
}

.stamp-skip {
  left: 22px;
  color: var(--sm-cyan);
}

.stamp-match {
  right: 22px;
  color: var(--sm-rose);
  transform: rotate(11deg) scale(0.92);
}

.stamp-alert {
  left: 50%;
  color: var(--sm-gold);
  transform: translateX(-50%) rotate(-2deg) scale(0.92);
}

.match-card[data-drag="skip"] .stamp-skip,
.match-card[data-drag="match"] .stamp-match,
.match-card[data-drag="alert"] .stamp-alert {
  opacity: 1;
  transform: rotate(-11deg) scale(1);
}

.match-card[data-drag="match"] .stamp-match {
  transform: rotate(11deg) scale(1);
}

.match-card[data-drag="alert"] .stamp-alert {
  transform: translateX(-50%) rotate(-2deg) scale(1);
}

.hero-art {
  position: absolute;
  inset: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
  filter: saturate(1.08) contrast(1.06);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 2, 2, 0.95) 0%, rgba(5, 2, 2, 0.55) 39%, rgba(5, 2, 2, 0.07) 66%),
    linear-gradient(180deg, rgba(5, 2, 2, 0.18) 0%, rgba(5, 2, 2, 0.17) 45%, rgba(5, 2, 2, 0.98) 84%);
}

.heart-save {
  position: absolute;
  right: 22px;
  top: 108px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 9, 8, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.match-score {
  position: absolute;
  top: 27px;
  right: 20px;
  z-index: 2;
  width: 112px;
  min-height: 94px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 79, 133, 0.28), transparent 60%),
    rgba(8, 5, 8, 0.78);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 79, 133, 0.16) inset;
  backdrop-filter: blur(16px);
}

.match-score small {
  color: rgba(255, 248, 243, 0.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-score strong {
  color: #fffdf9;
  font-size: 29px;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.match-score span {
  max-width: 88px;
  color: var(--sm-mint);
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}

.match-score em {
  margin-top: 2px;
  padding: 3px 7px;
  color: rgba(255, 248, 243, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.heart-save img {
  width: 31px;
  height: 31px;
  filter: brightness(0) saturate(100%) invert(58%) sepia(88%) saturate(1331%) hue-rotate(326deg) brightness(103%) contrast(101%);
}

.ticker-badge,
.card-copy,
.signal-ribbon,
.signal-meta-row,
.quote-row,
.love-block,
.trait-row,
.swipe-hint,
.date-plan,
.game-grid,
.fundamentals {
  position: relative;
  z-index: 1;
}

.ticker-badge {
  width: fit-content;
  margin: 31px 0 0 20px;
  padding: 9px 17px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #e33237, #b91825);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.card-copy {
  width: min(230px, calc(100% - 42px));
  margin: 16px 0 0 20px;
}

.rarity {
  margin: 0 0 9px;
  color: var(--sm-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-copy h1 {
  margin: 0;
  color: #fffdfa;
  font-size: 46px;
  line-height: 0.92;
  font-weight: 920;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.tagline {
  margin: 13px 0 0;
  color: rgba(255, 248, 243, 0.78);
  font-size: 16px;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.signal-ribbon {
  position: relative;
  z-index: 1;
  width: calc(100% - 40px);
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 20px 0;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(71, 215, 255, 0.25);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(71, 215, 255, 0.12), rgba(255, 79, 133, 0.1)),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.signal-ribbon span {
  color: var(--sm-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-ribbon strong {
  min-width: 0;
  overflow: hidden;
  color: #fffaf6;
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-meta-row {
  width: calc(100% - 40px);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 20px 0;
  overflow: hidden;
}

.signal-meta-row span {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  padding: 5px 8px;
  color: rgba(255, 248, 243, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-meta-row span:last-child {
  color: var(--sm-mint);
  border-color: rgba(127, 255, 208, 0.18);
}

.signal-meta-row [data-signal-source] {
  color: rgba(255, 213, 178, 0.9);
  border-color: rgba(255, 122, 43, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 122, 43, 0.12), rgba(255, 79, 133, 0.06)),
    rgba(255, 255, 255, 0.045);
  font-weight: 850;
}

.momentum-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 15px;
  color: #ff8b4b;
  border: 1px solid rgba(255, 76, 36, 0.65);
  border-radius: 14px;
  background: rgba(70, 9, 5, 0.42);
  font-size: 14px;
  font-weight: 820;
}

.quote-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(112px, 0.62fr);
  align-items: end;
  gap: 12px;
  margin: 14px 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.quote-row strong {
  display: block;
  color: #fffdf9;
  font-size: 33px;
  line-height: 0.94;
  font-weight: 850;
  letter-spacing: -0.07em;
}

.quote-row span {
  display: block;
  margin-top: 8px;
  color: var(--sm-red);
  font-size: 13px;
  font-weight: 760;
}

.sparkline {
  height: 58px;
  display: flex;
  align-items: end;
  gap: 3px;
  padding: 0 6px 5px;
  overflow: hidden;
}

.sparkline i {
  flex: 1;
  min-width: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #ff3b1f, rgba(255, 59, 31, 0.08));
  box-shadow: 0 0 12px rgba(255, 59, 31, 0.2);
}

.sparkline i:nth-child(1) { height: 18%; }
.sparkline i:nth-child(2) { height: 26%; }
.sparkline i:nth-child(3) { height: 24%; }
.sparkline i:nth-child(4) { height: 36%; }
.sparkline i:nth-child(5) { height: 34%; }
.sparkline i:nth-child(6) { height: 48%; }
.sparkline i:nth-child(7) { height: 52%; }
.sparkline i:nth-child(8) { height: 62%; }
.sparkline i:nth-child(9) { height: 74%; }
.sparkline i:nth-child(10) { height: 94%; }

.love-block {
  margin: 9px 20px 0;
}

.love-block h2 {
  margin: 0 0 5px;
  color: var(--sm-orange);
  font-size: 15px;
  font-weight: 860;
  letter-spacing: -0.04em;
}

.love-block p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: rgba(255, 248, 243, 0.77);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.36;
  letter-spacing: -0.02em;
}

.trait-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 10px 20px 0;
}

.trait-card {
  min-height: 78px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 10px 11px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
}

.trait-card.green {
  box-shadow: 0 0 0 1px rgba(127, 255, 208, 0.24) inset;
}

.trait-card.red {
  box-shadow: 0 0 0 1px rgba(255, 79, 133, 0.28) inset;
}

.trait-card h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trait-card.green h3 {
  color: var(--sm-mint);
}

.trait-card.red h3 {
  color: var(--sm-rose);
}

.trait-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: rgba(255, 248, 243, 0.76);
  font-size: 11.5px;
  line-height: 1.3;
}

.date-plan {
  width: calc(100% - 40px);
  min-height: 36px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 20px 0;
  padding: 7px 10px 7px 12px;
  border: 1px solid rgba(255, 122, 43, 0.24);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(255, 122, 43, 0.12), rgba(255, 79, 133, 0.06)),
    rgba(255, 255, 255, 0.045);
}

.date-plan small {
  color: var(--sm-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.date-plan span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 248, 243, 0.8);
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swipe-hint {
  display: none;
}

.game-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 20px 0;
}

.mini-stat {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.mini-stat span {
  color: rgba(255, 248, 243, 0.6);
  font-size: 12px;
}

.mini-stat strong {
  color: #fffdf8;
  font-size: 16px;
  line-height: 1.05;
}

.mini-stat small {
  color: var(--sm-orange);
  font-size: 13px;
  font-weight: 770;
}

.fundamentals {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 16px 20px 19px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.fundamentals div {
  min-width: 0;
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.fundamentals div:first-child {
  padding-left: 0;
  border-left: 0;
}

.fundamentals dt,
.fundamentals dd {
  margin: 0;
}

.fundamentals dt {
  color: rgba(255, 248, 243, 0.58);
  font-size: 12px;
  font-style: italic;
}

.fundamentals dd {
  margin-top: 5px;
  color: #fff9f4;
  font-size: 15px;
  font-weight: 720;
  white-space: nowrap;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 0 38px;
}

.action-button {
  position: relative;
  justify-self: center;
  width: 58px;
  height: 56px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 4px;
  padding: 7px 0 8px;
  color: var(--sm-orange);
  border: 1px solid rgba(255, 91, 45, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 0 1px rgba(255, 59, 31, 0.08) inset;
}

.action-button.match {
  width: 72px;
  height: 72px;
  justify-self: center;
  color: #ff321d;
  background:
    radial-gradient(circle, rgba(255, 59, 31, 0.3), rgba(255, 59, 31, 0.02) 64%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 35px rgba(255, 59, 31, 0.52),
    0 0 0 1px rgba(255, 59, 31, 0.34) inset;
}

.action-button img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(58%) sepia(96%) saturate(1901%) hue-rotate(338deg) brightness(104%) contrast(101%);
}

.action-button.match img {
  width: 33px;
  height: 33px;
  filter: brightness(0) saturate(100%) invert(31%) sepia(91%) saturate(3785%) hue-rotate(351deg) brightness(105%) contrast(102%);
}

.action-button strong {
  color: currentColor;
  font-size: 12px;
  font-weight: 870;
}

.bottom-nav {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 17px;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 8px 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.bottom-nav button {
  height: 54px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: rgba(255, 248, 243, 0.45);
  background: transparent;
  font-size: 11px;
  font-weight: 720;
}

.quest-board {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(71, 215, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(71, 215, 255, 0.14), rgba(127, 255, 208, 0.07)),
    rgba(255, 255, 255, 0.035);
}

.quest-board div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.quest-board small {
  color: var(--sm-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quest-board strong {
  overflow: hidden;
  color: #fffaf6;
  font-size: 13px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-board span {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #120705;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sm-mint), var(--sm-cyan));
  font-size: 12px;
  font-weight: 920;
}

.bottom-nav button img {
  width: 24px;
  height: 24px;
  opacity: 0.76;
  filter: brightness(0) saturate(100%) invert(83%) sepia(8%) saturate(314%) hue-rotate(325deg) brightness(97%) contrast(86%);
}

.bottom-nav button.is-active {
  color: var(--sm-orange);
}

.bottom-nav button.is-active img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(58%) sepia(96%) saturate(1901%) hue-rotate(338deg) brightness(104%) contrast(101%);
}

.collection-head {
  display: grid;
  gap: 8px;
  padding: 18px 6px 4px;
}

.collection-head h2 {
  margin: 0;
  font-size: 36px;
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.collection-head p {
  margin: 0;
  color: var(--sm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.dex-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dex-stats span,
.arena-scorecard span,
.ticker-mini,
.watch-item,
.boss-card,
.leaderboard-row,
.verification-feed {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.dex-stats span,
.arena-scorecard span {
  display: grid;
  gap: 2px;
  padding: 13px;
}

.dex-stats strong,
.arena-scorecard strong {
  color: var(--sm-orange);
  font-size: 26px;
  line-height: 1;
}

.dex-stats small,
.arena-scorecard small {
  color: var(--sm-muted);
  font-size: 11px;
  font-weight: 760;
}

.arena-scorecard {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 10px;
}

.arena-scorecard span:nth-child(1) strong {
  color: var(--sm-cyan);
}

.arena-scorecard span:nth-child(2) strong {
  color: var(--sm-mint);
}

.collection-grid,
.watch-stack {
  display: grid;
  gap: 10px;
}

.collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 338px;
  overflow: auto;
  padding: 2px 2px 4px;
}

.ticker-mini {
  min-height: 176px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 91, 45, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(12, 7, 7, 0.76);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 91, 45, 0.08) inset;
}

.ticker-mini strong {
  display: grid;
  gap: 3px;
  color: #fffaf6;
  font-size: 25px;
  line-height: 1;
}

.ticker-mini strong small {
  color: rgba(255, 248, 243, 0.56);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.ticker-mini-top,
.ticker-mini-foot,
.watch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticker-mini-top span {
  width: fit-content;
  padding: 5px 8px;
  color: #160805;
  border-radius: 999px;
  background: var(--sm-orange);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.ticker-mini-top em {
  color: var(--sm-mint);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.ticker-mini small {
  color: var(--sm-muted);
  font-size: 12px;
  line-height: 1.35;
}

.ticker-mini p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: rgba(255, 248, 243, 0.78);
  font-size: 12px;
  line-height: 1.36;
}

.premium-match-card {
  position: relative;
}

.ticker-mini-flags {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(127, 255, 208, 0.16);
  border-radius: 12px;
  background: rgba(127, 255, 208, 0.045);
}

.ticker-mini-flags b {
  color: var(--sm-mint);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-mini-foot {
  margin-top: auto;
  padding-top: 2px;
}

.ticker-mini-foot i {
  flex: 0 0 auto;
  color: rgba(127, 255, 208, 0.78);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.watch-stack {
  max-height: 430px;
  overflow: auto;
}

.watch-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 116px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(255, 91, 45, 0.1), rgba(255, 191, 90, 0.025)),
    rgba(255, 255, 255, 0.04);
}

.watch-item b {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #170704;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff3b1f, #ffb15c);
}

.watch-item strong,
.watch-item small {
  display: block;
}

.watch-item strong {
  color: #fffaf6;
}

.watch-item small {
  margin-top: 3px;
  color: var(--sm-muted);
  font-size: 12px;
}

.watch-item em {
  color: var(--sm-green);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.watch-catalyst {
  grid-column: 2 / 4;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 79, 133, 0.18);
  border-radius: 13px;
  background: rgba(255, 79, 133, 0.045);
}

.watch-catalyst small {
  color: var(--sm-rose);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-catalyst strong {
  font-size: 12px;
  line-height: 1.25;
}

.watch-meta {
  grid-column: 2 / 4;
}

.watch-meta span {
  color: rgba(255, 248, 243, 0.52);
  font-size: 11px;
  font-weight: 760;
}

.empty-card,
.empty-alert {
  min-height: 132px;
}

.boss-card {
  min-height: 118px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 17px;
  color: #fff8f3;
  text-align: left;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 122, 43, 0.22), transparent 32%),
    rgba(255, 255, 255, 0.045);
}

.boss-card span {
  color: var(--sm-orange);
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.boss-card strong {
  font-size: 18px;
  line-height: 1.14;
}

.boss-card small {
  color: var(--sm-muted);
  font-size: 12px;
  line-height: 1.4;
}

.leaderboard-list {
  display: grid;
  gap: 9px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.leaderboard-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
}

.leaderboard-rank {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #0b0504;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sm-cyan), var(--sm-mint));
  font-size: 13px;
  font-weight: 920;
}

.leaderboard-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.leaderboard-copy strong {
  overflow: hidden;
  color: #fffaf6;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-copy small {
  overflow: hidden;
  color: var(--sm-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-score {
  color: var(--sm-gold);
  font-size: 13px;
  font-weight: 900;
}

.verification-feed {
  display: grid;
  gap: 9px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(71, 215, 255, 0.11), rgba(127, 255, 208, 0.05)),
    rgba(255, 255, 255, 0.04);
}

.verification-feed h3 {
  margin: 0;
  color: var(--sm-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verification-feed div {
  display: grid;
  gap: 7px;
}

.verification-feed p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: rgba(255, 248, 243, 0.78);
  font-size: 12px;
  line-height: 1.25;
}

.verification-feed p b {
  color: var(--sm-mint);
  font-weight: 900;
  white-space: nowrap;
}

.arena-boss {
  min-height: 96px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 96px;
  bottom: auto;
  z-index: 40;
  transform: translateX(-50%);
  max-width: min(300px, calc(100vw - 32px));
  padding: 10px 14px;
  color: #fffaf6;
  border: 1px solid rgba(255, 122, 43, 0.44);
  border-radius: 999px;
  background: rgba(18, 6, 3, 0.94);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.44);
  font-size: 13px;
  font-weight: 780;
  text-align: center;
}

.pack-modal[hidden] {
  display: none;
}

.pack-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pack-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(18px);
}

.pack-panel {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  gap: 13px;
  padding: 24px;
  border: 1px solid rgba(255, 122, 43, 0.36);
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 0%, rgba(255, 59, 31, 0.24), transparent 42%),
    #090302;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.pack-panel small {
  color: var(--sm-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pack-panel h2,
.pack-panel p {
  margin: 0;
}

.pack-panel h2 {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.pack-panel p {
  color: var(--sm-muted);
  font-size: 14px;
  line-height: 1.48;
}

.pack-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: rgba(255, 248, 243, 0.62);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.pack-close img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(87%) sepia(9%) saturate(386%) hue-rotate(325deg) brightness(104%) contrast(92%);
}

.pack-reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pack-card-mini {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 59, 31, 0.23), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
}

.pack-card-mini strong {
  font-size: 30px;
  line-height: 0.95;
}

.pack-card-mini span {
  width: fit-content;
  padding: 5px 8px;
  color: #180704;
  border-radius: 999px;
  background: #ffb45e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pack-card-mini small {
  color: rgba(255, 248, 243, 0.64);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.pack-collect {
  min-height: 50px;
  color: #1a0704;
  border-radius: 17px;
  background: linear-gradient(135deg, #ff3b1f, #ffb15c);
  font-weight: 920;
}

.detail-drawer[hidden] {
  display: none;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: end center;
  padding: 18px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
}

.detail-panel {
  position: relative;
  width: min(420px, calc(100vw - 24px));
  max-height: min(690px, calc(100svh - 38px));
  overflow: auto;
  display: grid;
  gap: 13px;
  padding: 22px;
  border: 1px solid rgba(255, 122, 43, 0.42);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(105, 240, 139, 0.16), transparent 25%),
    radial-gradient(circle at 88% 16%, rgba(255, 59, 31, 0.28), transparent 35%),
    #090302;
  box-shadow:
    0 28px 88px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-close img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(87%) sepia(9%) saturate(386%) hue-rotate(325deg) brightness(104%) contrast(92%);
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 44px;
}

.detail-kicker span,
.detail-kicker strong {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 910;
  text-transform: uppercase;
}

.detail-kicker span {
  color: #170704;
  background: #ffb15c;
}

.detail-kicker strong {
  color: var(--sm-green);
  background: rgba(105, 240, 139, 0.11);
  box-shadow: 0 0 0 1px rgba(105, 240, 139, 0.22) inset;
}

.detail-panel h2,
.detail-panel p {
  margin: 0;
}

.detail-panel h2 {
  max-width: 330px;
  font-size: 36px;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-panel h2 span {
  color: var(--sm-orange);
}

.detail-panel p {
  color: rgba(255, 248, 243, 0.74);
  font-size: 14px;
  line-height: 1.45;
}

.capture-meter {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.capture-meter span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}

.capture-meter strong {
  color: rgba(255, 248, 243, 0.62);
}

.capture-meter b {
  color: #fffaf6;
}

.capture-meter i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.capture-meter em {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sm-hot), var(--sm-gold));
  transition: width 220ms ease;
}

.detail-rewards {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 9px;
}

.detail-rewards span {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
}

.detail-rewards small {
  color: rgba(255, 248, 243, 0.54);
  font-size: 10px;
  font-weight: 840;
  text-transform: uppercase;
}

.detail-rewards strong {
  min-width: 0;
  overflow: hidden;
  color: #fffaf6;
  font-size: 14px;
  line-height: 1.12;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-flags {
  display: grid;
  gap: 8px;
}

.detail-flags span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 14px;
  color: rgba(255, 248, 243, 0.82);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  line-height: 1.35;
}

.detail-flags span:first-child {
  box-shadow: 0 0 0 1px rgba(105, 240, 139, 0.22) inset;
}

.detail-flags span:last-child {
  box-shadow: 0 0 0 1px rgba(255, 59, 31, 0.24) inset;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-actions button {
  min-height: 48px;
  border-radius: 16px;
  color: #1a0704;
  background: linear-gradient(135deg, #ff3b1f, #ffb15c);
  font-weight: 900;
}

.detail-actions button:first-child {
  color: #fff8f3;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 122, 43, 0.33) inset;
}

.detail-disclaimer {
  color: rgba(255, 248, 243, 0.45);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-height: 850px) {
  .stockmatch-stage {
    padding: 10px;
  }

  .phone-shell {
    height: calc(100svh - 16px);
    min-height: 0;
    border-radius: 38px;
    padding-top: 14px;
  }

  .app-top {
    height: 66px;
  }

  .status-bar {
    height: 24px;
  }

  .mode-tabs {
    height: 58px;
  }

  .mode-tabs button {
    height: 44px;
    font-size: 13px;
  }

  .daily-pack {
    min-height: 54px;
  }

  .match-card {
    height: 380px;
    min-height: 0;
  }

  .match-score {
    top: 22px;
    width: 96px;
    min-height: 76px;
    padding: 9px;
  }

  .heart-save {
    top: 88px;
    width: 48px;
    height: 48px;
  }

  .ticker-badge {
    margin-top: 24px;
    padding: 8px 15px;
    font-size: 19px;
  }

  .card-copy {
    width: min(218px, calc(100% - 42px));
    margin-top: 13px;
  }

  .card-copy h1 {
    font-size: 36px;
  }

  .tagline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.22;
  }

  .momentum-pill {
    min-height: 28px;
    margin-top: 10px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .quote-row {
    margin-top: 10px;
    padding-bottom: 9px;
  }

  .quote-row strong {
    font-size: 28px;
  }

  .quote-row span {
    font-size: 12px;
  }

  .sparkline {
    height: 44px;
  }

  .love-block {
    display: none;
  }

  .love-block h2 {
    margin-bottom: 5px;
    font-size: 15px;
  }

  .love-block p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.36;
  }

  .trait-row {
    margin-top: 8px;
  }

  .trait-card {
    min-height: 58px;
    padding: 8px 10px;
  }

  .trait-card h3 {
    font-size: 10px;
  }

  .trait-card p {
    font-size: 10.5px;
  }

  .date-plan {
    display: none;
  }

  .date-plan small {
    font-size: 9px;
  }

  .date-plan span {
    font-size: 11px;
  }

  .game-grid {
    display: none;
  }

  .fundamentals {
    display: none;
  }

  .action-row {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 70px;
    z-index: 4;
    gap: 12px;
    padding-inline: 46px;
  }

  .action-button {
    width: 52px;
    height: 50px;
  }

  .action-button.match {
    width: 62px;
    height: 62px;
  }

  .action-button img {
    width: 21px;
    height: 21px;
  }

  .action-button strong {
    font-size: 12px;
  }

  .bottom-nav {
    height: 52px;
    bottom: 12px;
  }

  .bottom-nav button {
    height: 42px;
    font-size: 10px;
  }

  .bottom-nav button img {
    width: 20px;
    height: 20px;
  }

  .quest-board {
    display: none;
  }
}

@media (max-width: 430px) {
  .stockmatch-stage {
    padding: 0;
  }

  .phone-shell {
    width: 100vw;
    height: 100svh;
    min-height: 700px;
    border: 0;
    border-radius: 0;
    padding-inline: 14px;
  }

  .status-bar {
    padding-inline: 18px;
  }

  .brand {
    font-size: 26px;
  }

  .language-pill {
    min-width: 68px;
    height: 38px;
    padding-inline: 9px;
  }

  .language-pill span {
    display: none;
  }

  .language-pill strong {
    font-size: 12px;
  }

  .stock-language-menu {
    right: -4px;
    width: 156px;
  }

  .mode-tabs {
    grid-template-columns: 1.08fr 0.82fr 0.9fr 0.94fr;
  }

  .mode-tabs button {
    gap: 5px;
    font-size: 12px;
  }

  .mode-tabs button img {
    width: 14px;
    height: 14px;
  }

  .card-copy h1 {
    font-size: 42px;
  }

  .tagline {
    font-size: 14px;
  }

  .match-score {
    right: 16px;
    width: 102px;
  }

  .signal-ribbon,
  .quote-row,
  .love-block,
  .trait-row,
  .date-plan {
    margin-inline: 16px;
    width: calc(100% - 32px);
  }

  .trait-row {
    grid-template-columns: 1fr;
  }

  .action-row {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(334px, 100%);
    gap: 12px;
    margin: 4px auto 0;
    padding-inline: 30px;
  }

  .bottom-nav {
    left: 14px;
    right: 14px;
    padding-inline: 8px;
  }

  .bottom-nav button img {
    width: 21px;
    height: 21px;
  }

  .detail-drawer {
    padding: 10px;
  }

  .detail-panel {
    border-radius: 24px;
    padding: 18px;
  }

  .detail-panel h2 {
    font-size: 31px;
  }

  .detail-rewards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .stockmatch-stage {
    place-items: start center;
    padding: 20px;
    overflow: auto;
  }

  .phone-shell {
    width: min(860px, calc(100vw - 40px));
    height: auto;
    min-height: calc(100svh - 40px);
    margin: 0 auto;
    padding: 0 0 18px;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "top"
      "tabs"
      "main"
      "nav";
    justify-content: center;
    align-content: start;
    gap: 13px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .device-glow {
    display: none;
  }

  .app-top {
    grid-area: top;
    height: 64px;
    padding-inline: 2px;
    grid-template-columns: 48px minmax(200px, auto) 1fr auto auto;
    justify-content: start;
    gap: 12px;
  }

  .brand {
    justify-self: start;
    font-size: 31px;
  }

  .streak-pill {
    justify-self: end;
  }

  .app-top > .stock-language {
    display: block;
    justify-self: end;
  }

  .language-pill {
    min-width: 96px;
    height: 40px;
    padding-inline: 13px;
  }

  .stock-language-menu {
    right: 0;
  }

  .bottom-nav {
    grid-area: nav;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(520px, 100%);
    height: 60px;
    justify-self: center;
    display: grid;
    margin: 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(20, 11, 11, 0.74), rgba(5, 2, 2, 0.9)),
      rgba(255, 255, 255, 0.035);
    box-shadow:
      0 20px 52px rgba(0, 0, 0, 0.26),
      0 0 0 1px rgba(255, 91, 45, 0.08) inset;
    backdrop-filter: blur(18px);
  }

  .bottom-nav button {
    height: 44px;
    display: inline-flex;
    justify-content: center;
    gap: 7px;
    border-radius: 13px;
    font-size: 12px;
  }

  .bottom-nav button.is-active {
    color: #170604;
    background: linear-gradient(135deg, var(--sm-orange), var(--sm-gold));
  }

  .bottom-nav button.is-active img {
    filter: brightness(0) saturate(100%) invert(4%) sepia(31%) saturate(2731%) hue-rotate(348deg) brightness(94%) contrast(103%);
  }

  .bottom-nav button img {
    width: 18px;
    height: 18px;
  }

  .mode-tabs {
    grid-area: tabs;
    width: min(760px, 100%);
    height: 64px;
    justify-self: center;
    display: grid;
    border-radius: 22px;
  }

  .mode-tabs button {
    height: 50px;
    font-size: 13px;
  }

  .view-panel {
    grid-area: main;
    width: min(760px, 100%);
    justify-self: center;
    height: auto;
    min-height: 0;
    padding-top: 0;
    overflow: visible;
  }

  .view-panel[data-view-panel="discover"].is-active {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 14px;
    align-items: start;
  }

  .view-panel[data-view-panel="discover"] > .daily-pack {
    display: none;
  }

  .match-card {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: clamp(520px, calc(100svh - 280px), 620px);
    min-height: 520px;
    border-radius: 24px;
  }

  .match-card::before,
  .match-card::after {
    display: none;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5, 2, 2, 0.96) 0%, rgba(5, 2, 2, 0.68) 36%, rgba(5, 2, 2, 0.05) 72%),
      linear-gradient(180deg, rgba(5, 2, 2, 0.1) 0%, rgba(5, 2, 2, 0.1) 52%, rgba(5, 2, 2, 0.96) 91%);
  }

  .ticker-badge {
    margin: 36px 0 0 26px;
    font-size: 24px;
  }

  .card-copy {
    width: min(360px, calc(100% - 56px));
    margin-left: 26px;
  }

  .card-copy h1 {
    font-size: 62px;
  }

  .tagline {
    max-width: 330px;
    font-size: 17px;
  }

  .match-score {
    top: 28px;
    right: 26px;
  }

  .heart-save {
    top: 130px;
    right: 27px;
  }

  .signal-ribbon,
  .signal-meta-row,
  .quote-row,
  .love-block,
  .trait-row,
  .swipe-hint,
  .date-plan,
  .game-grid,
  .fundamentals {
    margin-left: 26px;
    margin-right: 26px;
    width: calc(100% - 52px);
  }

  .love-block {
    display: block;
  }

  .love-block p {
    -webkit-line-clamp: 3;
    font-size: 13px;
  }

  .date-plan {
    display: none;
  }

  .trait-row,
  .game-grid,
  .fundamentals {
    display: none;
  }

  .swipe-hint {
    position: absolute;
    left: 50%;
    bottom: 102px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 72px);
    padding: 6px 12px;
    color: rgba(255, 248, 243, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    font-size: 11px;
    font-weight: 760;
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
  }

  .quest-board {
    display: none;
  }

  .action-row {
    position: absolute;
    grid-column: 1;
    grid-row: 2;
    top: auto;
    left: 50%;
    right: auto;
    bottom: 10px;
    justify-self: center;
    z-index: 6;
    width: min(430px, calc(100% - 48px));
    height: auto;
    gap: 12px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(20, 11, 11, 0.72), rgba(5, 2, 2, 0.9)),
      rgba(255, 255, 255, 0.035);
    box-shadow:
      0 20px 52px rgba(0, 0, 0, 0.32),
      0 0 0 1px rgba(255, 91, 45, 0.08) inset;
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
  }

  .action-button {
    width: 62px;
    height: 58px;
  }

  .action-button.match {
    width: 74px;
    height: 74px;
  }

  .view-panel:not([data-view-panel="discover"]).is-active {
    width: min(900px, 100%);
    justify-self: center;
    align-self: start;
  }

  .collection-head {
    padding-top: 6px;
  }

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

  .leaderboard-list,
  .watch-stack {
    max-height: none;
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .phone-shell {
    width: min(820px, calc(100vw - 32px));
  }

  .view-panel[data-view-panel="discover"].is-active {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .match-card {
    grid-column: 1;
    grid-row: 1;
    height: clamp(500px, calc(100svh - 252px), 620px);
    min-height: 500px;
  }

  .action-row {
    grid-column: 1;
    grid-row: 2;
    top: auto;
    left: 50%;
    right: auto;
    bottom: 18px;
    transform: translateX(-50%);
  }
}

@media (min-width: 980px) and (max-width: 1180px) {
  .phone-shell {
    width: min(840px, calc(100vw - 36px));
  }

  .view-panel[data-view-panel="discover"].is-active {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .match-card {
    grid-column: 1;
    grid-row: 1;
    height: clamp(510px, calc(100svh - 252px), 640px);
    min-height: 510px;
  }

  .action-row {
    top: auto;
    left: 50%;
    bottom: 18px;
    width: min(430px, calc(100% - 48px));
    transform: translateX(-50%);
  }
}

@media (min-width: 900px) and (max-height: 780px) {
  .love-block {
    display: none;
  }

  .match-card {
    height: clamp(500px, calc(100svh - 230px), 560px);
    min-height: 500px;
  }

  .quote-row {
    margin-top: 12px;
  }

  .date-plan {
    margin-top: 8px;
  }

  .swipe-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* StockMatch V5 concept: reference-led poster deck */
:root {
  --sm-bg: #040101;
  --sm-ink: #fff7f0;
  --sm-muted: rgba(255, 244, 238, 0.64);
  --sm-soft: rgba(255, 244, 238, 0.42);
  --sm-line: rgba(255, 255, 255, 0.13);
  --sm-red: #ff3636;
  --sm-deep-red: #8f1315;
  --sm-hot: #ff4545;
  --sm-card: rgba(11, 4, 4, 0.72);
  --sm-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  min-height: 100%;
  background: var(--sm-bg);
}

body {
  min-width: 320px;
  color: var(--sm-ink);
  background:
    linear-gradient(138deg, rgba(255, 35, 35, 0.18) 0 1px, transparent 1px 34%),
    linear-gradient(22deg, transparent 0 48%, rgba(255, 35, 35, 0.1) 48% 48.2%, transparent 48.2%),
    linear-gradient(180deg, #080202 0%, #020101 62%, #050101 100%);
}

.stockmatch-stage {
  min-height: 100svh;
  display: block;
  padding: 32px 36px 34px;
  overflow: auto;
}

.phone-shell {
  width: min(1160px, 100%);
  height: auto;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.device-glow,
.profile-dot,
.mode-tabs,
.daily-pack,
.heart-save,
.signal-ribbon,
.signal-meta-row,
.momentum-pill,
.trait-row,
.date-plan,
.game-grid,
.fundamentals,
.bottom-nav {
  display: none !important;
}

.app-top {
  height: 56px;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.brand {
  justify-self: start;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 2px;
  color: var(--sm-ink);
  font-size: 34px;
  font-style: normal;
  font-weight: 920;
  line-height: 0.84;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.brand span,
.brand strong {
  grid-row: 1;
}

.brand strong {
  color: var(--sm-red);
}

.brand i {
  grid-row: 1;
  align-self: end;
  width: auto;
  height: auto;
  margin: 0 0 3px 8px;
  padding: 3px 6px 4px;
  display: inline-grid;
  place-items: center;
  color: var(--sm-red);
  border: 1px solid rgba(255, 54, 54, 0.82);
  border-radius: 5px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  transform: none;
}

.brand small {
  grid-column: 1 / 4;
  grid-row: 2;
  margin-top: 10px;
  color: rgba(255, 244, 238, 0.58);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.top-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 0 1px rgba(255, 54, 54, 0.05) inset;
}

.saved-stat,
.market-stat,
.account-stat {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 21px;
  color: rgba(255, 244, 238, 0.74);
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 720;
  cursor: pointer;
}

.account-stat i {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(var(--stock-accent-rgb), 0.2);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.account-stat.is-authenticated i {
  color: #070303;
  background: var(--stock-accent);
}

.saved-stat + .market-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.saved-stat img,
.market-stat img {
  width: 19px;
  height: 19px;
  filter: brightness(0) saturate(100%) invert(39%) sepia(94%) saturate(1944%) hue-rotate(335deg) brightness(111%) contrast(108%);
}

.saved-stat strong,
.market-stat strong {
  color: var(--sm-red);
  font-size: 18px;
  font-weight: 920;
}

.stock-language {
  justify-self: end;
}

.language-pill {
  min-width: 76px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.language-pill span {
  display: none;
}

.language-pill strong {
  color: rgba(255, 244, 238, 0.84);
  font-size: 12px;
}

.view-panel {
  height: auto;
  min-height: 0;
  padding-top: 0;
  overflow: visible;
}

.view-panel:not([data-view-panel="discover"]).is-active {
  width: min(860px, 100%);
  margin: 50px auto 0;
}

.view-panel[data-view-panel="discover"].is-active {
  --deck-inner-width: min(774px, calc(100vw - 118px));
  width: min(820px, calc(100vw - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  justify-items: center;
  gap: 24px;
}

.match-hero {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  margin-top: 0;
  text-align: center;
}

.match-hero h1 {
  margin: 0;
  color: #fffaf5;
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.match-hero p {
  margin: 18px 0 0;
  color: rgba(255, 244, 238, 0.62);
  font-size: 17px;
  font-weight: 520;
  letter-spacing: -0.02em;
}

.match-card {
  grid-column: 1;
  grid-row: 2;
  width: min(820px, calc(100vw - 72px));
  height: 620px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 55, 55, 0.58);
  border-radius: 20px;
  background: #080202;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.66),
    0 0 0 1px rgba(255, 80, 80, 0.13) inset,
    0 0 36px rgba(255, 37, 37, 0.26);
  transform-origin: 50% 78%;
}

.match-card::before,
.match-card::after {
  display: none;
}

.hero-art img {
  object-position: 62% 44%;
  filter: saturate(1.18) contrast(1.15) brightness(0.8);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(5, 1, 1, 0.98) 0%, rgba(5, 1, 1, 0.84) 35%, rgba(5, 1, 1, 0.18) 68%, rgba(5, 1, 1, 0.4) 100%),
    linear-gradient(180deg, rgba(5, 1, 1, 0.16) 0%, rgba(5, 1, 1, 0.16) 48%, rgba(5, 1, 1, 0.9) 100%);
}

.card-copy {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 56px));
  margin: 30px 0 0 30px;
}

.ticker-badge {
  margin: 0 0 22px;
  padding: 13px 21px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff3d47, #bd171d);
  color: #fffaf5;
  font-size: 30px;
  font-weight: 920;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rarity {
  margin: 0 0 14px;
  color: var(--sm-red);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-transform: none;
}

.card-copy h1 {
  margin: 0;
  color: #fffaf5;
  font-size: clamp(52px, 6vw, 76px);
  line-height: 0.88;
  font-weight: 920;
  letter-spacing: -0.09em;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.match-score {
  position: absolute;
  left: 22px;
  top: 224px;
  z-index: 2;
  width: 360px;
  height: 240px;
  min-height: 0;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0;
  padding: 18px 21px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(5, 3, 3, 0.67), rgba(5, 3, 3, 0.5));
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.match-score small {
  color: var(--sm-red);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-transform: none;
}

.match-score strong {
  margin-top: 5px;
  color: #fffaf5;
  font-size: 48px;
  line-height: 0.96;
  font-weight: 920;
  letter-spacing: -0.08em;
  text-transform: none;
}

.match-score span {
  max-width: 298px;
  margin-top: 9px;
  color: rgba(255, 244, 238, 0.78);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.42;
  text-align: left;
}

.match-score i {
  width: 100%;
  height: 1px;
  margin: 16px 0 13px;
  background: rgba(255, 255, 255, 0.12);
}

.match-score b {
  color: var(--sm-red);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.match-score b::before {
  content: "Move";
  display: block;
  margin-bottom: 4px;
  color: var(--sm-red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

:lang(ko) .match-score b::before {
  content: "행동";
}

.match-score em {
  display: none;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 10px;
  color: rgba(255, 244, 238, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.quote-row {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 42px;
  z-index: 2;
  width: auto;
  height: 100px;
  min-height: 0;
  display: grid;
  grid-template-columns: 0.74fr 0.78fr 1.9fr;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(9, 4, 4, 0.62);
  backdrop-filter: blur(12px);
}

.quote-row > div,
.quote-row .love-block {
  min-height: 64px;
  display: grid;
  align-content: center;
  margin: 0;
  padding: 0 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.quote-row > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.quote-row small,
.love-block h2 {
  margin: 0 0 8px;
  color: rgba(255, 244, 238, 0.64);
  font-size: 14px;
  font-weight: 690;
  letter-spacing: -0.03em;
}

.quote-row strong {
  color: #fffaf5;
  font-size: 33px;
  line-height: 1;
  font-weight: 880;
  letter-spacing: -0.05em;
}

.quote-row span {
  margin: 0;
  color: var(--sm-red);
  font-size: 22px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.love-block h2 {
  color: var(--sm-red);
  font-weight: 850;
}

.love-block p {
  max-width: 310px;
  margin: 0;
  color: rgba(255, 244, 238, 0.78);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.sparkline {
  display: none;
}

.swipe-hint {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 2;
  width: auto;
  height: auto;
  display: inline-flex;
  gap: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}

.swipe-hint span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.swipe-hint span.is-active,
.swipe-hint span:first-child {
  width: 38px;
  background: var(--sm-red);
}

.action-row {
  grid-column: 1;
  grid-row: 3;
  position: static;
  z-index: 1;
  width: var(--deck-inner-width);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: 0;
  margin: -20px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

.action-button {
  width: 94px;
  height: auto;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: rgba(255, 244, 238, 0.64);
  background: transparent;
}

.action-button img {
  width: 28px;
  height: 28px;
  padding: 23px;
  box-sizing: content-box;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  filter: brightness(0) saturate(100%) invert(43%) sepia(73%) saturate(1703%) hue-rotate(324deg) brightness(107%) contrast(97%);
}

.action-button strong {
  color: rgba(255, 244, 238, 0.64);
  font-size: 16px;
  font-weight: 680;
}

.action-button.match img {
  width: 36px;
  height: 36px;
  padding: 24px;
  border-color: rgba(255, 54, 54, 0.48);
  background: rgba(255, 54, 54, 0.18);
  box-shadow:
    0 0 36px rgba(255, 54, 54, 0.42),
    0 0 0 1px rgba(255, 54, 54, 0.22) inset;
  filter: brightness(0) saturate(100%) invert(36%) sepia(96%) saturate(2861%) hue-rotate(342deg) brightness(109%) contrast(107%);
}

.action-button.match strong {
  color: var(--sm-red);
  font-weight: 850;
}

.action-button.alert img {
  filter: brightness(0) saturate(100%) invert(80%) sepia(8%) saturate(310%) hue-rotate(314deg) brightness(101%) contrast(88%);
}

.match-card.is-skip {
  transform: translateX(-34px) rotate(-4deg);
  opacity: 0.48;
}

.match-card.is-match,
.match-card.is-alert {
  transform: translateX(34px) rotate(4deg) scale(1.012);
}

.stock-language-menu {
  right: 0;
  background: rgba(8, 2, 2, 0.98);
}

@media (max-width: 760px) {
  .stockmatch-stage {
    padding: 27px 24px 30px;
    overflow-x: hidden;
  }

  .phone-shell {
    width: 100%;
  }

  .app-top {
    height: 50px;
    grid-template-columns: minmax(170px, 1fr) auto;
  }

  .top-status {
    display: none;
  }

  .brand {
    font-size: 29px;
  }

  .brand i {
    margin-bottom: 2px;
    padding: 3px 5px 4px;
    font-size: 11px;
  }

  .brand small {
    margin-top: 8px;
    font-size: 11px;
  }

  .language-pill {
    min-width: 58px;
    height: 34px;
    border-radius: 12px;
  }

  .match-hero {
    margin-top: 34px;
  }

  .match-hero h1 {
    font-size: 30px;
  }

  .match-hero p {
    width: min(300px, 100%);
    margin: 14px auto 0;
    font-size: 15px;
    line-height: 1.5;
  }

  .view-panel[data-view-panel="discover"].is-active {
    width: 100%;
    gap: 24px;
  }

  .match-card {
    width: 100%;
    height: clamp(620px, calc(100svh - 180px), 680px);
    min-height: 620px;
    border-radius: 18px;
  }

  .hero-art img {
    object-position: 65% 24%;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(5, 1, 1, 0.18) 0%, rgba(5, 1, 1, 0.35) 30%, rgba(5, 1, 1, 0.98) 74%),
      linear-gradient(90deg, rgba(5, 1, 1, 0.94) 0%, rgba(5, 1, 1, 0.42) 54%, rgba(5, 1, 1, 0.18) 100%);
  }

  .card-copy {
    width: calc(100% - 42px);
    margin: 25px 0 0 21px;
  }

  .ticker-badge {
    margin-bottom: 18px;
    padding: 12px 18px;
    border-radius: 11px;
    font-size: 28px;
  }

  .rarity {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .card-copy h1 {
    font-size: clamp(43px, 12vw, 56px);
  }

  .match-score {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 186px;
    width: auto;
    min-height: 214px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .match-score small {
    font-size: 14px;
  }

  .match-score strong {
    margin-top: 4px;
    font-size: 43px;
  }

  .match-score span {
    max-width: 315px;
    margin-top: 9px;
    font-size: 15px;
    line-height: 1.48;
  }

  .match-score i {
    margin: 19px 0 16px;
  }

  .match-score b {
    font-size: 22px;
  }

  .match-score em {
    margin-top: 12px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .quote-row {
    left: 14px;
    right: 14px;
    bottom: 30px;
    min-height: 132px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "price change"
      "why why";
    align-items: start;
    row-gap: 10px;
    padding: 13px 14px;
    border-radius: 12px;
  }

  .quote-row > div,
  .quote-row .love-block {
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 0;
    padding: 0 10px;
  }

  .quote-row > div:nth-child(1) {
    grid-area: price;
    padding-left: 0;
  }

  .quote-row > div:nth-child(2) {
    grid-area: change;
  }

  .quote-row .love-block {
    grid-area: why;
    min-height: 0;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .quote-row small,
  .love-block h2 {
    margin-bottom: 7px;
    font-size: 13px;
  }

  .quote-row strong {
    font-size: 28px;
  }

  .quote-row span {
    font-size: 20px;
    line-height: 1.12;
  }

  .love-block p {
    max-width: none;
    font-size: 12.5px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  .love-block h2 {
    white-space: nowrap;
  }

  .swipe-hint {
    bottom: 8px;
    gap: 10px;
  }

  .swipe-hint span {
    width: 8px;
    height: 8px;
  }

  .swipe-hint span.is-active,
  .swipe-hint span:first-child {
    width: 31px;
  }

  .action-row {
    width: 100%;
    gap: 20px;
    margin-top: 0;
  }

  .action-button {
    width: 86px;
    gap: 12px;
  }

  .action-button img {
    width: 25px;
    height: 25px;
    padding: 20px;
  }

  .action-button.match img {
    width: 31px;
    height: 31px;
    padding: 23px;
  }

  .action-button strong {
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .stockmatch-stage {
    padding-inline: 14px;
  }

  .match-card {
    height: clamp(600px, calc(100svh - 224px), 620px);
    min-height: 600px;
  }

  .match-score {
    bottom: 170px;
    min-height: 205px;
  }

  .quote-row {
    left: 10px;
    right: 10px;
    bottom: 28px;
    min-height: 128px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-inline: 12px;
  }

  .quote-row > div,
  .quote-row .love-block {
    padding-inline: 8px;
  }

  .quote-row > div:nth-child(1) {
    padding-left: 0;
  }

  .quote-row .love-block {
    padding: 10px 0 0;
  }

  .quote-row strong {
    font-size: 25px;
  }

  .quote-row span {
    font-size: 18px;
  }

  .love-block p {
    font-size: 12px;
    line-height: 1.34;
  }
}

@media (min-width: 761px) and (max-width: 1280px), (min-width: 761px) and (max-height: 940px) {
  .stockmatch-stage {
    padding: 24px 30px 26px;
  }

  .phone-shell {
    width: min(1100px, 100%);
  }

  .app-top {
    height: 48px;
    grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
    gap: 14px;
  }

  .brand {
    font-size: 30px;
  }

  .brand i {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .brand small {
    margin-top: 8px;
    font-size: 12px;
  }

  .top-status {
    min-height: 48px;
  }

  .saved-stat,
  .market-stat,
  .account-stat {
    min-height: 48px;
    padding: 0 17px;
    font-size: 14px;
  }

  .account-stat span {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .saved-stat strong,
  .market-stat strong {
    font-size: 16px;
  }

  .language-pill {
    height: 38px;
  }

  .view-panel[data-view-panel="discover"].is-active {
    --deck-inner-width: min(774px, calc(100vw - 158px));
    width: min(820px, calc(100vw - 112px));
    gap: 18px;
  }

  .match-hero {
    margin-top: 4px;
  }

  .match-hero h1 {
    font-size: 34px;
  }

  .match-hero p {
    margin-top: 12px;
    font-size: 15px;
  }

  .match-card {
    width: min(820px, calc(100vw - 112px));
    height: 560px;
  }

  .card-copy {
    margin: 24px 0 0 28px;
  }

  .ticker-badge {
    margin-bottom: 18px;
    padding: 12px 20px;
    font-size: 28px;
  }

  .rarity {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .card-copy h1 {
    font-size: clamp(50px, 6vw, 66px);
  }

  .match-score {
    top: 210px;
    width: 350px;
    height: 210px;
    padding: 16px 20px 14px;
  }

  .match-score strong {
    font-size: 44px;
  }

  .match-score span {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.38;
  }

  .match-score i {
    margin: 14px 0 12px;
  }

  .match-score b {
    font-size: 19px;
  }

  .match-score em {
    margin-top: 8px;
  }

  .quote-row {
    bottom: 34px;
    height: 88px;
    padding: 13px 16px;
  }

  .quote-row > div,
  .quote-row .love-block {
    min-height: 58px;
    padding: 0 18px;
  }

  .quote-row strong {
    font-size: 30px;
  }

  .quote-row span {
    font-size: 20px;
  }

  .love-block p {
    max-width: none;
    font-size: 14px;
    line-height: 1.38;
  }

  .swipe-hint {
    bottom: 8px;
  }

  .action-row {
    width: var(--deck-inner-width);
    gap: 0;
    margin-top: -10px;
  }

  .action-button {
    width: 76px;
    gap: 5px;
  }

  .action-button img {
    width: 22px;
    height: 22px;
    padding: 15px;
  }

  .action-button.match img {
    width: 28px;
    height: 28px;
    padding: 16px;
  }

  .action-button strong {
    font-size: 13px;
  }

  .match-score em {
    display: none;
  }
}

@media (min-width: 761px) and (max-height: 820px) {
  .stockmatch-stage {
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .view-panel[data-view-panel="discover"].is-active {
    gap: 14px;
  }

  .match-hero {
    margin-top: 0;
  }

  .match-card {
    height: 540px;
  }

  .match-score {
    top: 188px;
    height: 205px;
    padding: 15px 20px 13px;
  }

  .match-score strong {
    font-size: 42px;
  }

  .match-score span {
    font-size: 13.5px;
    line-height: 1.34;
  }

  .match-score i {
    margin: 12px 0 10px;
  }

  .match-score b {
    font-size: 18px;
  }

  .quote-row {
    bottom: 32px;
    height: 84px;
    padding: 12px 16px;
  }

  .quote-row strong {
    font-size: 28px;
  }

  .quote-row span {
    font-size: 19px;
  }

  .swipe-hint {
    bottom: 7px;
  }
}

/* StockMatch V6: responsive decision deck with ticker-specific identity */
.match-card {
  --stock-accent: #ff3d47;
  --stock-accent-rgb: 255, 61, 71;
  border-color: rgba(var(--stock-accent-rgb), 0.58);
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(var(--stock-accent-rgb), 0.12) inset,
    0 0 34px rgba(var(--stock-accent-rgb), 0.18);
}

.hero-art img {
  object-position: center;
  filter: saturate(1.04) contrast(1.06) brightness(0.86);
  transition: opacity 180ms ease, filter 180ms ease;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(3, 2, 3, 0.98) 0%, rgba(3, 2, 3, 0.84) 35%, rgba(3, 2, 3, 0.15) 69%, rgba(3, 2, 3, 0.34) 100%),
    linear-gradient(180deg, rgba(3, 2, 3, 0.12) 0%, rgba(3, 2, 3, 0.12) 48%, rgba(3, 2, 3, 0.92) 100%);
}

.ticker-badge {
  color: #fffaf5;
  border: 1px solid rgba(var(--stock-accent-rgb), 0.68);
  background: rgba(var(--stock-accent-rgb), 0.2);
  box-shadow: 0 10px 30px rgba(var(--stock-accent-rgb), 0.16);
}

.rarity,
.match-score small,
.match-score b,
.match-score b::before,
.quote-row span,
.love-block h2 {
  color: var(--stock-accent);
}

.swipe-hint span.is-active {
  width: 38px;
  background: var(--stock-accent);
}

.swipe-hint span:first-child:not(.is-active) {
  width: 11px;
  background: rgba(255, 255, 255, 0.25);
}

.action-row {
  align-items: start;
  margin-top: 0;
}

.action-button,
.action-button.match {
  width: 104px;
  min-height: 104px;
  grid-template-rows: 78px auto;
  align-items: start;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.action-button img,
.action-button.match img {
  width: 78px;
  height: 78px;
  padding: 22px;
  box-sizing: border-box;
}

.action-button.match img {
  padding: 18px;
}

.toast {
  top: 84px;
  right: 24px;
  bottom: auto;
  left: auto;
  transform: none;
}

.view-panel:not([data-view-panel="discover"]).is-active {
  width: min(960px, 100%);
  margin-top: 32px;
}

.collection-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 10px 2px 8px;
}

.collection-head > div {
  display: grid;
  gap: 8px;
}

.collection-back {
  min-height: 40px;
  padding: 0 16px;
  color: rgba(255, 244, 238, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.dex-stats {
  margin-top: 12px;
  gap: 12px;
}

.dex-stats span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.collection-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-height: none;
  margin-top: 14px;
  gap: 14px;
  overflow: visible;
}

.ticker-mini {
  min-height: 208px;
  border-color: rgba(var(--stock-accent-rgb, 255, 91, 45), 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--stock-accent-rgb, 255, 91, 45), 0.2), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(10, 6, 7, 0.82);
}

.ticker-mini-top span {
  color: #fffaf5;
  border: 1px solid rgba(var(--stock-accent-rgb, 255, 91, 45), 0.46);
  background: rgba(var(--stock-accent-rgb, 255, 91, 45), 0.16);
}

.ticker-mini-top em,
.ticker-mini-flags b,
.ticker-mini-foot i {
  color: var(--stock-accent, #ff5b2d);
}

.collection-call {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.collection-call b {
  color: var(--stock-accent, #ff5b2d);
  font-size: 16px;
}

.collection-call span {
  color: #fffaf5;
  font-size: 17px;
  font-weight: 820;
}

.collection-call em {
  justify-self: end;
  color: rgba(255, 244, 238, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #ffbd6a;
  outline-offset: 3px;
}

@media (min-width: 761px) {
  .stockmatch-stage {
    padding: 24px 36px 28px;
  }

  .view-panel[data-view-panel="discover"].is-active {
    gap: 16px;
  }

  .match-hero p {
    margin-top: 12px;
  }

  .match-card {
    height: clamp(500px, calc(100svh - 300px), 560px);
    min-height: 500px;
  }

  .match-score {
    top: 216px;
    height: 198px;
    padding: 16px 20px 14px;
  }

  .match-score strong {
    font-size: 44px;
  }

  .match-score span {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.38;
  }

  .match-score i {
    margin: 14px 0 12px;
  }

  .match-score b {
    font-size: 19px;
  }

  .quote-row {
    bottom: 34px;
    height: 92px;
  }

  .action-row {
    min-height: 104px;
  }
}

@media (min-width: 761px) and (max-height: 820px) {
  .stockmatch-stage {
    padding: 16px 30px 18px;
  }

  .app-top {
    height: 44px;
  }

  .view-panel[data-view-panel="discover"].is-active {
    gap: 10px;
  }

  .match-hero h1 {
    font-size: 30px;
  }

  .match-hero p {
    margin-top: 8px;
    font-size: 14px;
  }

  .match-card {
    height: clamp(460px, calc(100svh - 288px), 520px);
    min-height: 460px;
  }

  .card-copy {
    margin-top: 18px;
  }

  .ticker-badge {
    margin-bottom: 10px;
    padding: 10px 17px;
    font-size: 24px;
  }

  .rarity {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .card-copy h1 {
    font-size: clamp(46px, 5.5vw, 58px);
  }

  .match-score {
    top: 166px;
    height: 178px;
    padding: 13px 18px 12px;
  }

  .match-score strong {
    font-size: 38px;
  }

  .match-score span {
    font-size: 12.5px;
    line-height: 1.3;
  }

  .match-score i {
    margin: 9px 0 8px;
  }

  .match-score b {
    font-size: 17px;
  }

  .quote-row {
    bottom: 28px;
    height: 82px;
    padding: 11px 15px;
  }

  .quote-row strong {
    font-size: 27px;
  }

  .quote-row span {
    font-size: 18px;
  }

  .love-block p {
    font-size: 12.5px;
    line-height: 1.32;
  }

  .action-row {
    min-height: 82px;
  }

  .action-button,
  .action-button.match {
    width: 88px;
    min-height: 82px;
    grid-template-rows: 58px auto;
    gap: 5px;
  }

  .action-button img,
  .action-button.match img {
    width: 58px;
    height: 58px;
    padding: 17px;
  }

  .action-button.match img {
    padding: 14px;
  }

  .action-button strong {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .stockmatch-stage {
    min-height: 100svh;
    padding: 14px 14px 116px;
    overflow-x: hidden;
  }

  .app-top {
    height: 44px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
  }

  .brand {
    font-size: 25px;
  }

  .brand small {
    margin-top: 6px;
    font-size: 9px;
  }

  .top-status {
    min-height: 34px;
    display: inline-flex;
    border-radius: 12px;
  }

  .saved-stat {
    min-height: 34px;
    gap: 5px;
    padding: 0 9px;
  }

  .saved-stat span {
    display: none;
  }

  .saved-stat img {
    width: 15px;
    height: 15px;
  }

  .saved-stat strong {
    font-size: 14px;
  }

  .market-stat {
    display: none;
  }

  .account-stat {
    min-height: 34px;
    padding: 0 7px;
  }

  .account-stat span {
    display: none;
  }

  .account-stat i {
    width: 22px;
    height: 22px;
  }

  .language-pill {
    min-width: 54px;
    height: 34px;
    padding-inline: 8px;
  }

  .match-hero {
    margin-top: 10px;
  }

  .match-hero h1 {
    font-size: 27px;
  }

  .match-hero p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
  }

  .view-panel[data-view-panel="discover"].is-active {
    gap: 12px;
  }

  .match-card {
    height: clamp(500px, calc(100svh - 304px), 540px);
    min-height: 500px;
  }

  .hero-art img {
    object-position: center;
  }

  .card-copy {
    margin-top: 20px;
  }

  .ticker-badge {
    margin-bottom: 12px;
    padding: 10px 16px;
    font-size: 24px;
  }

  .rarity {
    margin-bottom: 9px;
    font-size: 12px;
  }

  .card-copy h1 {
    font-size: clamp(39px, 11vw, 48px);
  }

  .match-score {
    bottom: 160px;
    min-height: 176px;
  }

  .match-score strong {
    font-size: 38px;
  }

  .match-score span {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.38;
  }

  .match-score i {
    margin: 12px 0 10px;
  }

  .match-score b {
    font-size: 18px;
  }

  .quote-row {
    bottom: 26px;
    min-height: 116px;
    padding: 11px 12px;
  }

  .quote-row strong {
    font-size: 24px;
  }

  .quote-row span {
    font-size: 17px;
  }

  .love-block p {
    font-size: 11.5px;
  }

  .action-row {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 24;
    width: auto;
    height: 88px;
    min-height: 88px;
    margin: 0;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(7, 3, 4, 0.94);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(18px);
  }

  .action-button,
  .action-button.match {
    width: 84px;
    min-height: 72px;
    grid-template-rows: 54px auto;
    gap: 3px;
  }

  .action-button img,
  .action-button.match img {
    width: 54px;
    height: 54px;
    padding: 16px;
  }

  .action-button.match img {
    padding: 13px;
  }

  .action-button strong {
    font-size: 11px;
  }

  .toast {
    top: auto;
    right: auto;
    bottom: 112px;
    left: 50%;
    transform: translateX(-50%);
  }

  .view-panel:not([data-view-panel="discover"]).is-active {
    width: 100%;
    margin-top: 18px;
    padding-bottom: 16px;
  }

  .collection-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding-top: 4px;
  }

  .collection-head h2 {
    font-size: 30px;
  }

  .collection-back {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .dex-stats {
    gap: 8px;
  }

  .dex-stats span {
    padding: 11px;
  }

  .dex-stats strong {
    font-size: 22px;
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* StockMatch V7: shared alignment grid and ticker-aware page atmosphere */
:root {
  --stock-accent: #f1b84a;
  --stock-accent-rgb: 241, 184, 74;
  --stage-hue-rotate: 0deg;
}

body {
  background-color: #040202;
  background-image:
    linear-gradient(138deg, rgba(var(--stock-accent-rgb), 0.12) 0 1px, transparent 1px 34%),
    linear-gradient(22deg, transparent 0 48%, rgba(var(--stock-accent-rgb), 0.08) 48% 48.2%, transparent 48.2%),
    linear-gradient(180deg, rgba(var(--stock-accent-rgb), 0.07) 0%, rgba(4, 2, 2, 0) 44%),
    linear-gradient(180deg, #080505 0%, #020101 62%, #050202 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: rgba(var(--stock-accent-rgb), 0.025);
  transition: background-color 320ms ease;
}

.stockmatch-stage {
  position: relative;
  z-index: 1;
}

.brand i,
.top-status,
.language-pill,
.action-button.match img {
  transition:
    color 280ms ease,
    border-color 280ms ease,
    background-color 280ms ease,
    box-shadow 280ms ease;
}

.brand i {
  color: var(--stock-accent);
  border-color: rgba(var(--stock-accent-rgb), 0.72);
  box-shadow: 0 0 18px rgba(var(--stock-accent-rgb), 0.08);
}

.top-status {
  border-color: rgba(var(--stock-accent-rgb), 0.22);
  background: rgba(var(--stock-accent-rgb), 0.035);
  box-shadow: 0 0 0 1px rgba(var(--stock-accent-rgb), 0.05) inset;
}

.saved-stat + .market-stat {
  border-left-color: rgba(var(--stock-accent-rgb), 0.16);
}

.saved-stat img,
.market-stat img {
  opacity: 0.84;
  filter: brightness(0) invert(1);
}

.saved-stat strong,
.market-stat strong {
  color: var(--stock-accent);
  transition: color 280ms ease;
}

.language-pill {
  border-color: rgba(var(--stock-accent-rgb), 0.2);
  background: rgba(var(--stock-accent-rgb), 0.03);
}

.action-button.match img {
  border-color: rgba(var(--stock-accent-rgb), 0.56);
  background: rgba(var(--stock-accent-rgb), 0.15);
  box-shadow:
    0 0 34px rgba(var(--stock-accent-rgb), 0.3),
    0 0 0 1px rgba(var(--stock-accent-rgb), 0.15) inset;
  filter: brightness(0) invert(1);
}

.action-button.match strong {
  color: var(--stock-accent);
  transition: color 280ms ease;
}

.action-button:focus-visible {
  outline: 0;
}

.action-button:focus-visible img {
  outline: 2px solid rgba(var(--stock-accent-rgb), 0.76);
  outline-offset: 4px;
}

@media (min-width: 761px) {
  .phone-shell {
    grid-template-areas:
      "top"
      "main";
    row-gap: 22px;
  }

  .app-top,
  .view-panel[data-view-panel="discover"].is-active {
    width: min(820px, calc(100vw - 72px));
    margin-right: auto;
    margin-left: auto;
  }

  .app-top {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
  }

  .brand {
    font-size: 31px;
    letter-spacing: 0;
  }

  .brand small {
    margin-top: 9px;
    letter-spacing: 0.16em;
  }

  .view-panel[data-view-panel="discover"].is-active {
    --deck-inner-width: 100%;
  }

  .match-card,
  .action-row {
    width: 100%;
  }
}

@media (min-width: 761px) and (max-width: 940px) {
  .app-top,
  .view-panel[data-view-panel="discover"].is-active {
    width: min(820px, calc(100vw - 40px));
  }

  .saved-stat,
  .market-stat {
    padding-inline: 15px;
  }
}

@media (min-width: 761px) and (min-height: 821px) and (max-height: 899px) {
  .stockmatch-stage {
    padding-bottom: 8px;
  }

  .match-card {
    height: clamp(508px, calc(100svh - 313px), 560px);
    min-height: 508px;
  }
}

/* StockMatch V8: cinematic desktop carousel from the selected mockup */
.brand-heart,
.legal-name,
.decision-actions,
.deck-side,
.deck-pagination,
.card-disclaimer,
.page-disclaimer {
  display: none;
}

.action-icon {
  display: contents;
}

[data-hero-title-accent] {
  margin-left: 0.2em;
}

@media (min-width: 901px) {
  body {
    overflow: hidden;
    background: #020101;
  }

  body::before {
    background-color: rgba(var(--stock-accent-rgb), 0.035);
    mix-blend-mode: screen;
  }

  .stockmatch-stage {
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
  }

  .stockmatch-stage::before {
    content: "";
    position: fixed;
    inset: 82px 0 0;
    z-index: 0;
    pointer-events: none;
    background: url("/platform-static/stockmatch-stage-grid-v1.png?v=20260711-v1") center bottom / cover no-repeat;
    opacity: 0.62;
  }

  .phone-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    min-height: 100svh;
    display: grid;
    grid-template-areas:
      "top"
      "main";
    grid-template-rows: 82px minmax(0, 1fr);
    row-gap: 0;
  }

  .app-top {
    grid-area: top;
    position: relative;
    z-index: 30;
    width: calc(100% - 64px);
    max-width: 1600px;
    height: 82px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .brand {
    width: fit-content;
    display: grid;
    grid-template-columns: auto auto 24px;
    grid-template-rows: auto auto;
    column-gap: 2px;
    align-items: center;
    font-size: 29px;
    line-height: 0.9;
    letter-spacing: 0;
  }

  .brand span,
  .brand strong,
  .brand-heart {
    grid-row: 1;
  }

  .brand-heart {
    grid-column: 3;
    width: 19px;
    height: 19px;
    margin-left: 4px;
    display: block;
    filter: brightness(0) saturate(100%) invert(34%) sepia(98%) saturate(3327%) hue-rotate(339deg) brightness(110%) contrast(105%);
  }

  .brand small {
    grid-column: 1 / 3;
    grid-row: 2;
    margin-top: 9px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .brand i {
    grid-column: 3;
    grid-row: 2;
    width: fit-content;
    margin: 7px 0 0 3px;
    padding: 2px 5px 3px;
    font-size: 11px;
  }

  .app-top .mode-tabs {
    grid-area: auto;
    position: absolute;
    top: 15px;
    left: 47.5%;
    width: 548px;
    height: 52px;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    background: rgba(5, 3, 4, 0.72);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
  }

  .app-top .mode-tabs button {
    min-width: 0;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.72);
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 720;
  }

  .app-top .mode-tabs button img {
    width: 19px;
    height: 19px;
    opacity: 0.84;
    filter: brightness(0) invert(1);
  }

  .app-top .mode-tabs button.is-active {
    color: #fff;
  }

  .app-top .mode-tabs button.is-active img {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 49, 68, 0.7));
  }

  .top-status {
    grid-area: auto;
    min-height: 46px;
    display: inline-flex;
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .saved-stat,
  .market-stat {
    min-height: 46px;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 23px;
    background: rgba(8, 5, 6, 0.74);
    font-size: 13px;
    white-space: nowrap;
  }

  .saved-stat + .market-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .saved-stat strong,
  .market-stat strong {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #f5323e;
    font-size: 11px;
  }

  .stock-language {
    grid-area: auto;
    justify-self: end;
  }

  .language-pill {
    min-width: 138px;
    height: 46px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 13px 0 8px;
    border-radius: 23px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(8, 5, 6, 0.74);
  }

  .language-avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #2b2227;
    font-size: 13px;
    font-style: normal;
    font-weight: 850;
  }

  .language-pill span {
    display: none;
  }

  .language-pill strong {
    font-size: 12px;
    white-space: nowrap;
  }

  .view-panel[data-view-panel="discover"].is-active {
    --deck-card-height: clamp(460px, calc(100svh - 437px), 508px);
    grid-area: main;
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 138px var(--deck-card-height) 150px 26px;
    justify-items: center;
    align-content: start;
    gap: 0;
    margin: 0;
    overflow: visible;
  }

  .match-hero {
    grid-row: 1;
    align-self: start;
    margin: 30px 0 0;
    text-align: center;
  }

  .match-hero h1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #fff;
    font-size: clamp(40px, 3.4vw, 54px);
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  }

  .match-hero h1 strong {
    color: #ff3344;
    font: inherit;
  }

  .match-hero h1 img {
    width: 32px;
    height: 32px;
    margin-left: 14px;
    transform: rotate(-12deg);
    filter: brightness(0) saturate(100%) invert(32%) sepia(94%) saturate(2975%) hue-rotate(339deg) brightness(110%) contrast(106%);
  }

  .match-hero p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 16px;
    letter-spacing: 0;
  }

  .match-card {
    grid-row: 2;
    position: relative;
    z-index: 10;
    width: min(900px, calc(100vw - 520px));
    height: var(--deck-card-height);
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--stock-accent-rgb), 0.86);
    border-radius: 22px;
    background: #050202;
    box-shadow:
      0 30px 90px rgba(0, 0, 0, 0.78),
      0 0 0 1px rgba(var(--stock-accent-rgb), 0.2) inset,
      0 0 34px rgba(var(--stock-accent-rgb), 0.42);
    transition: transform 170ms ease, opacity 170ms ease, border-color 280ms ease, box-shadow 280ms ease;
  }

  .match-card.is-deck-shifting {
    opacity: 0.28;
    transform: scale(0.975);
  }

  .hero-art img {
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.08) contrast(1.12) brightness(0.84);
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(3, 1, 2, 0.98) 0%, rgba(3, 1, 2, 0.92) 35%, rgba(3, 1, 2, 0.28) 60%, rgba(3, 1, 2, 0.06) 100%),
      linear-gradient(180deg, rgba(3, 1, 2, 0.05) 0%, rgba(3, 1, 2, 0.04) 72%, rgba(3, 1, 2, 0.82) 100%);
  }

  .card-copy {
    position: absolute;
    top: 24px;
    left: 34px;
    z-index: 4;
    width: min(540px, calc(100% - 68px));
    margin: 0;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: center;
  }

  .ticker-badge {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 88px;
    height: 88px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 7, 9, 0.84);
    font-size: 29px;
  }

  .rarity {
    display: none;
  }

  .legal-name {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    display: block;
    margin-bottom: 5px;
    color: var(--stock-accent);
    font-size: 12px;
    font-weight: 700;
  }

  .card-copy h1 {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: clamp(38px, 3.1vw, 52px);
    line-height: 0.98;
    letter-spacing: 0;
  }

  .match-score {
    position: absolute;
    top: 134px;
    left: 50px;
    bottom: auto;
    z-index: 5;
    width: min(410px, calc(54% - 58px));
    height: auto;
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .match-score > small {
    color: rgba(255, 255, 255, 0.54);
    font-size: 13px;
  }

  .verdict-main {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 2px;
  }

  .match-score .verdict-main strong {
    margin: 0;
    color: var(--stock-accent);
    font-size: 38px;
    line-height: 1;
    letter-spacing: 0;
  }

  .verdict-heart {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--stock-accent-rgb), 0.8);
    border-radius: 50%;
    background: rgba(var(--stock-accent-rgb), 0.13);
    box-shadow: 0 0 24px rgba(var(--stock-accent-rgb), 0.25);
  }

  .verdict-heart img {
    width: 28px;
    height: 28px;
    filter: brightness(0) saturate(100%) invert(36%) sepia(96%) saturate(2657%) hue-rotate(338deg) brightness(112%) contrast(106%);
  }

  .match-score > span:not(.verdict-heart) {
    display: block;
    max-width: 390px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-style: italic;
    line-height: 1.55;
  }

  .match-score > i {
    width: 100%;
    margin: 14px 0 11px;
  }

  .match-score > b {
    display: none;
  }

  .decision-actions {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .decision-actions > small {
    margin-right: 2px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
  }

  .decision-actions > span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid rgba(var(--stock-accent-rgb), 0.25);
    border-radius: 7px;
    background: rgba(5, 3, 4, 0.68);
  }

  .decision-actions img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(35%) sepia(95%) saturate(2691%) hue-rotate(337deg) brightness(110%) contrast(108%);
  }

  .decision-actions b {
    color: rgba(255, 255, 255, 0.83);
    font-size: 13px;
    letter-spacing: 0;
  }

  .decision-actions b::before {
    content: none !important;
    display: none !important;
  }

  .match-score em {
    display: none;
  }

  .quote-row {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 32px;
    z-index: 6;
    width: auto;
    height: 104px;
    display: grid;
    grid-template-columns: 0.78fr 0.92fr 1.7fr;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(8, 5, 6, 0.78);
  }

  .quote-row > div,
  .quote-row .love-block {
    min-height: 70px;
    padding: 0 22px;
  }

  .quote-row strong {
    font-size: 32px;
  }

  .quote-row span {
    font-size: 25px;
  }

  .love-block p {
    max-width: none;
    font-size: 13px;
    line-height: 1.45;
  }

  .swipe-hint {
    display: none;
  }

  .card-disclaimer {
    position: absolute;
    right: 22px;
    bottom: 8px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
  }

  .card-disclaimer img {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    filter: brightness(0) invert(1);
  }

  .deck-side {
    position: absolute;
    top: 184px;
    z-index: 2;
    width: 300px;
    height: calc(var(--deck-card-height) - 78px);
    display: block;
    overflow: hidden;
    border: 1px solid rgba(var(--side-accent-rgb), 0.42);
    border-radius: 22px;
    background: #080304;
    opacity: 0.48;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
  }

  .deck-side:hover,
  .deck-side:focus-visible {
    opacity: 0.76;
  }

  .deck-side-previous {
    left: calc(50% - 635px);
    transform: perspective(900px) rotateY(7deg) scale(0.96);
  }

  .deck-side-next {
    right: calc(50% - 635px);
    transform: perspective(900px) rotateY(-7deg) scale(0.96);
  }

  .deck-side > img,
  .deck-side-scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .deck-side > img {
    object-fit: cover;
    filter: brightness(0.42) saturate(0.8);
  }

  .deck-side-scrim {
    background: linear-gradient(180deg, rgba(6, 2, 3, 0.36), rgba(6, 2, 3, 0.96));
  }

  .deck-side > strong,
  .deck-side > i,
  .deck-side > b,
  .deck-side-arrow {
    position: absolute;
    z-index: 2;
    left: 38px;
  }

  .deck-side > strong {
    top: 32px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 22px;
  }

  .deck-side > i {
    bottom: 96px;
    color: var(--side-accent);
    font-size: 18px;
    font-style: normal;
    font-weight: 840;
  }

  .deck-side > b {
    bottom: 40px;
    color: var(--side-accent);
    font-size: 20px;
  }

  .deck-side-arrow {
    top: 50%;
    left: auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(var(--side-accent-rgb), 0.78);
    border-radius: 50%;
    background: rgba(var(--side-accent-rgb), 0.12);
    font-size: 42px;
    font-weight: 240;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 0 26px rgba(var(--side-accent-rgb), 0.26);
  }

  .deck-side-previous .deck-side-arrow {
    right: 34px;
  }

  .deck-side-next .deck-side-arrow {
    left: auto;
    right: 34px;
  }

  .deck-side-next > strong,
  .deck-side-next > i,
  .deck-side-next > b {
    left: auto;
    right: 38px;
    text-align: right;
  }

  .action-row {
    grid-row: 3;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    justify-self: center;
    z-index: 12;
    width: min(570px, calc(100vw - 80px));
    height: 150px;
    min-height: 0;
    margin: -2px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    transform: none;
  }

  .action-button,
  .action-button.match {
    width: 116px;
    min-height: 126px;
    grid-template-rows: 102px auto;
    gap: 7px;
  }

  .action-button .action-icon,
  .action-button.match .action-icon {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-style: solid;
    border-width: 1px;
    border-radius: 50%;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(15, 12, 13, 0.88);
  }

  .action-button.skip .action-icon,
  .action-button.alert .action-icon {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(15, 12, 13, 0.9);
  }

  .action-button.match .action-icon {
    width: 108px;
    height: 108px;
    border-color: rgba(var(--stock-accent-rgb), 0.85);
    background: rgba(var(--stock-accent-rgb), 0.14);
    box-shadow:
      0 0 34px rgba(var(--stock-accent-rgb), 0.54),
      0 0 0 1px rgba(var(--stock-accent-rgb), 0.18) inset;
  }

  .action-button .action-icon img,
  .action-button.match .action-icon img {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .action-button strong {
    color: rgba(255, 255, 255, 0.74);
    font-size: 16px;
  }

  .action-button.match strong {
    color: #fff;
  }

  .deck-pagination {
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .deck-pagination span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
  }

  .deck-pagination span.is-active {
    background: var(--stock-accent);
    box-shadow: 0 0 18px rgba(var(--stock-accent-rgb), 0.9);
  }

  .quest-board {
    display: none;
  }

  .page-disclaimer {
    position: fixed;
    left: 38px;
    bottom: 32px;
    z-index: 20;
    display: grid;
    gap: 6px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 600px) {
  .app-top {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .app-top .brand i,
  .top-status .saved-stat,
  .top-status .market-stat,
  .top-status .account-stat {
    display: none;
  }

  .top-status .access-stat {
    min-width: 46px;
    padding-inline: 8px;
  }
}

/* StockMatch V13: breathing room between the card and swipe controls */
@media (min-width: 901px) and (min-height: 821px) {
  .action-row {
    padding-top: 18px;
    box-sizing: border-box;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .action-row {
    padding-top: 10px;
    box-sizing: border-box;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .app-top {
    width: calc(100% - 40px);
    grid-template-columns: minmax(190px, 1fr) auto auto;
    gap: 10px;
  }

  .app-top .mode-tabs {
    left: 50%;
    width: min(500px, calc(100vw - 590px));
  }

  .app-top .mode-tabs button {
    gap: 5px;
    padding-inline: 7px;
    font-size: 12px;
  }

  .saved-stat,
  .market-stat,
  .account-stat {
    padding-inline: 11px;
  }

  .saved-stat span,
  .market-stat span,
  .account-stat span {
    display: none;
  }

  .language-pill {
    min-width: 108px;
  }

  .deck-side {
    display: none;
  }

  .match-card {
    width: min(900px, calc(100vw - 64px));
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .phone-shell {
    grid-template-rows: 68px minmax(0, 1fr);
  }

  .stockmatch-stage::before {
    top: 68px;
  }

  .app-top {
    height: 68px;
  }

  .app-top .mode-tabs {
    height: 46px;
  }

  .app-top .mode-tabs button {
    height: 44px;
  }

  .view-panel[data-view-panel="discover"].is-active {
    --deck-card-height: clamp(410px, calc(100svh - 336px), 452px);
    grid-template-rows: 82px var(--deck-card-height) 104px 20px;
  }

  .match-hero {
    margin-top: 14px;
  }

  .match-hero h1 {
    font-size: 34px;
  }

  .match-hero p {
    margin-top: 7px;
    font-size: 13px;
  }

  .deck-side {
    top: 118px;
  }

  .card-copy {
    top: 18px;
  }

  .ticker-badge {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .card-copy {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 14px;
  }

  .card-copy h1 {
    font-size: 39px;
  }

  .match-score {
    top: 108px;
  }

  .match-score .verdict-main strong {
    font-size: 32px;
  }

  .verdict-heart {
    width: 48px;
    height: 48px;
  }

  .match-score > span:not(.verdict-heart) {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.38;
  }

  .match-score > i {
    margin: 8px 0;
  }

  .decision-actions > span {
    min-height: 32px;
    padding-inline: 10px;
  }

  .quote-row {
    bottom: 24px;
    height: 82px;
    padding-block: 9px;
  }

  .quote-row > div,
  .quote-row .love-block {
    min-height: 58px;
  }

  .quote-row strong {
    font-size: 27px;
  }

  .quote-row span {
    font-size: 19px;
  }

  .love-block p {
    font-size: 11px;
  }

  .card-disclaimer {
    bottom: 5px;
  }

  .action-row {
    height: 104px;
  }

  .action-button,
  .action-button.match {
    width: 88px;
    min-height: 96px;
    grid-template-rows: 72px auto;
    gap: 4px;
  }

  .action-button .action-icon,
  .action-button.match .action-icon {
    width: 68px;
    height: 68px;
  }

  .action-button.match .action-icon {
    width: 76px;
    height: 76px;
  }

  .action-button .action-icon img,
  .action-button.match .action-icon img {
    width: 28px;
    height: 28px;
  }

  .action-button strong {
    font-size: 12px;
  }

  .deck-pagination span {
    width: 9px;
    height: 9px;
  }

  .page-disclaimer {
    display: none;
  }
}

/* StockMatch V12: crisp mode tabs and semantic swipe controls */
@media (min-width: 901px) {
  .app-top .mode-tabs {
    height: 48px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    background: rgba(5, 3, 4, 0.88);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  }

  .app-top .mode-tabs button {
    position: relative;
    height: 38px;
    gap: 8px;
    color: rgba(255, 255, 255, 0.58);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 720;
    transition: color 160ms ease, background-color 160ms ease;
  }

  .app-top .mode-tabs button + button::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
  }

  .app-top .mode-tabs button img {
    width: 18px;
    height: 18px;
    opacity: 0.66;
  }

  .app-top .mode-tabs button.is-active {
    color: #fff;
    background: rgba(255, 49, 68, 0.13);
    box-shadow: inset 0 -2px 0 #ff3144;
  }

  .app-top .mode-tabs button.is-active::before,
  .app-top .mode-tabs button.is-active + button::before {
    opacity: 0;
  }

  .app-top .mode-tabs button.is-active img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(36%) sepia(96%) saturate(3372%) hue-rotate(337deg) brightness(105%) contrast(104%);
  }

  .action-row {
    isolation: isolate;
  }

  .action-row::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -10px;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(3, 2, 2, 0.96) 0%, rgba(3, 2, 2, 0.82) 42%, rgba(3, 2, 2, 0) 76%);
  }

  .action-button,
  .action-button.match {
    width: 106px;
    min-height: 118px;
    grid-template-rows: 88px auto;
    gap: 7px;
  }

  .action-button .action-icon,
  .action-button.match .action-icon {
    width: 86px;
    height: 86px;
    border-width: 1px;
    background: #0a0708;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.52);
  }

  .action-button.match .action-icon {
    width: 94px;
    height: 94px;
    border-color: rgba(255, 49, 68, 0.86);
    background: #19090c;
    box-shadow: 0 0 28px rgba(255, 49, 68, 0.28), 0 12px 34px rgba(0, 0, 0, 0.54);
  }

  .action-button.skip .action-icon {
    border-color: rgba(255, 91, 96, 0.5);
  }

  .action-button.alert .action-icon {
    border-color: rgba(255, 190, 76, 0.5);
  }

  .action-button .action-icon img,
  .action-button.match .action-icon img {
    width: 34px;
    height: 34px;
    filter: none;
  }

  .action-button.skip .action-icon img {
    filter: brightness(0) saturate(100%) invert(46%) sepia(77%) saturate(1594%) hue-rotate(321deg) brightness(110%) contrast(105%);
  }

  .action-button.match .action-icon img {
    filter: brightness(0) saturate(100%) invert(36%) sepia(96%) saturate(3372%) hue-rotate(337deg) brightness(105%) contrast(104%);
  }

  .action-button.alert .action-icon img {
    filter: brightness(0) saturate(100%) invert(78%) sepia(80%) saturate(859%) hue-rotate(337deg) brightness(105%) contrast(103%);
  }

  .action-button strong,
  .action-button.match strong {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
  }

  .action-button.match strong {
    color: #ff5261;
  }
}

@media (max-width: 900px) {
  .action-row {
    isolation: isolate;
    overflow: visible;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(7, 4, 5, 0.97);
  }

  .action-button .action-icon,
  .action-button.match .action-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: #0b0809;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.46);
  }

  .action-button.skip .action-icon {
    border-color: rgba(255, 91, 96, 0.46);
  }

  .action-button.match .action-icon {
    border-color: rgba(255, 49, 68, 0.84);
    background: #19090c;
    box-shadow: 0 0 20px rgba(255, 49, 68, 0.24), 0 8px 22px rgba(0, 0, 0, 0.46);
  }

  .action-button.alert .action-icon {
    border-color: rgba(255, 190, 76, 0.46);
  }

  .action-button img,
  .action-button.match img {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .action-button.skip img {
    filter: brightness(0) saturate(100%) invert(46%) sepia(77%) saturate(1594%) hue-rotate(321deg) brightness(110%) contrast(105%);
  }

  .action-button.match img {
    filter: brightness(0) saturate(100%) invert(36%) sepia(96%) saturate(3372%) hue-rotate(337deg) brightness(105%) contrast(104%);
  }

  .action-button.alert img {
    filter: brightness(0) saturate(100%) invert(78%) sepia(80%) saturate(859%) hue-rotate(337deg) brightness(105%) contrast(103%);
  }

  .action-button.match strong {
    color: #ff5261;
  }
}

@media (min-width: 901px) and (max-width: 1750px) {
  .top-status .access-stat span,
  .top-status .saved-stat span,
  .top-status .market-stat span {
    display: none;
  }

  .top-status .access-stat,
  .top-status .saved-stat,
  .top-status .market-stat {
    min-width: 48px;
    padding-inline: 10px;
  }

  .language-pill {
    min-width: 108px;
  }
}

/* StockMatch V11: daily card access and checkout */
.access-stat {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 23px;
  background: rgba(8, 5, 6, 0.74);
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.access-stat img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.access-stat strong {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--stock-accent);
  font-size: 11px;
}

/* Keep every desktop header group in normal layout flow. */
@media (min-width: 901px) {
  .app-top {
    grid-template-columns: minmax(160px, 1fr) auto auto;
    gap: 12px;
  }

  .app-top .brand {
    grid-column: 1;
  }

  .app-top .top-status {
    grid-column: 2;
  }

  .app-top > .stock-language {
    grid-column: 3;
  }
}

.access-modal[hidden] {
  display: none;
}

.access-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 1, 1, 0.82);
  backdrop-filter: blur(12px);
}

.access-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: 30px;
  color: #fff;
  border: 1px solid rgba(var(--stock-accent-rgb), 0.62);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(var(--stock-accent-rgb), 0.13), transparent 36%),
    #090405;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 40px rgba(var(--stock-accent-rgb), 0.18);
}

.access-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.access-close img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}

.access-panel header {
  padding-right: 38px;
}

.access-panel header > small {
  color: var(--stock-accent);
  font-size: 11px;
  font-weight: 850;
}

.access-panel h2 {
  margin: 8px 0 7px;
  font-size: 26px;
  line-height: 1.2;
}

.access-panel header p,
.access-payment-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.55;
}

.access-balance {
  margin: 22px 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.access-balance span {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  gap: 5px;
}

.access-balance span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.access-balance small,
.access-products small,
.reward-ad small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 720;
}

.access-balance strong {
  font-size: 18px;
}

.reward-ad {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
  text-align: left;
  border: 1px solid rgba(88, 196, 255, 0.34);
  border-radius: 8px;
  background: rgba(41, 133, 184, 0.1);
}

.reward-ad-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #70d2ff;
  border: 1px solid rgba(112, 210, 255, 0.44);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.reward-ad > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.reward-ad strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.reward-ad b {
  color: #70d2ff;
  font-size: 11px;
}

.reward-ad.is-disabled {
  opacity: 0.44;
}

.sponsor-modal[hidden] {
  display: none;
}

.sponsor-modal {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sponsor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(12px);
}

.sponsor-panel {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  color: #fff;
  border: 1px solid rgba(var(--stock-accent-rgb), 0.62);
  border-radius: 8px;
  background: #0b0808;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
}

.sponsor-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.sponsor-close img { width: 16px; filter: brightness(0) invert(1); }
.sponsor-panel > small { color: var(--stock-accent); font-size: 10px; font-weight: 850; }
.sponsor-brand { margin: 22px 0 18px; display: flex; align-items: center; gap: 12px; }
.sponsor-brand span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(var(--stock-accent-rgb), 0.65); border-radius: 50%; color: var(--stock-accent); font-weight: 900; }
.sponsor-brand strong { font-size: 15px; }
.sponsor-panel h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.25; }
.sponsor-panel > p { margin: 0; color: rgba(255, 255, 255, 0.68); font-size: 14px; line-height: 1.6; }
.sponsor-panel > a { display: inline-flex; margin-top: 16px; color: var(--stock-accent); font-size: 13px; font-weight: 800; }
.sponsor-progress { height: 3px; margin: 24px 0 14px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.sponsor-progress i { display: block; width: 0; height: 100%; background: var(--stock-accent); transition: width 0.25s linear; }
.sponsor-claim { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #fff; border: 1px solid rgba(var(--stock-accent-rgb), 0.7); border-radius: 6px; background: rgba(var(--stock-accent-rgb), 0.16); }
.sponsor-claim:disabled { opacity: 0.48; }
.sponsor-claim span { font-size: 11px; }
.sponsor-disclosure { margin-top: 14px !important; font-size: 10px !important; color: rgba(255, 255, 255, 0.42) !important; }

.access-products {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.access-products button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 15px;
  color: #fff;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.access-products button > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.access-products button strong {
  font-size: 15px;
}

.access-products button > b {
  flex: 0 0 auto;
  color: var(--stock-accent);
  font-size: 16px;
}

.access-products button.is-featured {
  border-color: rgba(var(--stock-accent-rgb), 0.56);
  background: rgba(var(--stock-accent-rgb), 0.1);
}

.access-products button:disabled {
  opacity: 0.5;
}

.access-payment-note {
  margin-top: 14px;
  font-size: 11px;
}

body.is-access-locked .action-button {
  opacity: 0.5;
}

@media (min-width: 901px) {
  .top-status {
    gap: 8px;
  }

  .access-stat,
  .saved-stat,
  .market-stat {
    padding-inline: 12px;
  }
}

@media (max-width: 900px) {
  .access-stat {
    min-width: 48px;
    height: 42px;
    min-height: 42px;
    padding: 0 10px;
  }

  .access-stat span {
    display: none;
  }

  .access-stat img {
    width: 16px;
    height: 16px;
  }

  .access-panel {
    padding: 24px 18px 20px;
  }

  .access-panel h2 {
    padding-right: 18px;
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .access-modal {
    padding: 10px;
  }

  .access-panel {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
  }

  .access-balance span {
    padding: 12px;
  }

  .access-balance strong {
    font-size: 15px;
  }

  .reward-ad {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .reward-ad > b {
    grid-column: 2;
  }
}

/* StockMatch V9: decision detail, card progression, and tactile swipe feedback */
.decision-facts,
.deck-side-brand,
.deck-side-position,
.market-spark {
  display: none;
}

@media (min-width: 901px) {
  body::before {
    background-color: rgba(var(--stock-accent-rgb), 0.09);
  }

  .match-card {
    border-color: rgba(var(--stock-accent-rgb), 0.94);
    box-shadow:
      0 34px 100px rgba(0, 0, 0, 0.82),
      0 0 0 1px rgba(var(--stock-accent-rgb), 0.28) inset,
      0 0 42px rgba(var(--stock-accent-rgb), 0.48);
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 260ms ease, border-color 280ms ease, box-shadow 280ms ease;
  }

  .match-card.is-arriving {
    animation: stock-card-arrive 420ms cubic-bezier(0.18, 0.88, 0.25, 1) both;
  }

  .match-card.is-skip {
    transform: translateX(-112px) rotate(-7deg) scale(0.975);
    opacity: 0.24;
  }

  .match-card.is-match {
    transform: translateX(112px) rotate(7deg) scale(1.018);
    opacity: 0.36;
  }

  .match-card.is-alert {
    transform: translateY(-42px) scale(1.02);
    opacity: 0.42;
  }

  .match-card.is-deck-shifting[data-shift-direction="next"] {
    transform: translateX(-38px) rotate(-1.5deg) scale(0.98);
  }

  .match-card.is-deck-shifting[data-shift-direction="previous"] {
    transform: translateX(38px) rotate(1.5deg) scale(0.98);
  }

  .match-card.is-skip .stamp-skip,
  .match-card.is-match .stamp-match,
  .match-card.is-alert .stamp-alert {
    opacity: 1;
  }

  .match-card.is-skip .stamp-skip {
    transform: rotate(-11deg) scale(1);
  }

  .match-card.is-match .stamp-match {
    transform: rotate(11deg) scale(1);
  }

  .match-card.is-alert .stamp-alert {
    transform: translateX(-50%) rotate(-2deg) scale(1);
  }

  .swipe-stamp {
    top: 54px;
    z-index: 30;
    min-width: 142px;
    padding: 12px 18px;
    border-width: 2px;
    border-radius: 8px;
    background: rgba(5, 2, 3, 0.88);
    font-size: 24px;
    letter-spacing: 0;
    box-shadow: 0 0 28px currentColor;
    transition: transform 120ms ease;
  }

  .match-score {
    top: 126px;
    width: min(450px, calc(55% - 50px));
  }

  .verdict-main {
    gap: 14px;
  }

  .verdict-heart {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
  }

  .verdict-heart b,
  .verdict-heart small {
    color: #fff;
  }

  .verdict-heart b {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
  }

  .verdict-heart small {
    font-size: 10px;
    font-weight: 800;
  }

  .verdict-heart b::before,
  .decision-facts b::before,
  .market-spark b::before {
    content: none !important;
    display: none !important;
  }

  .match-score > span:not(.verdict-heart) {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .match-score > i {
    margin: 10px 0 9px;
  }

  .decision-facts {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 3, 4, 0.46);
  }

  .match-score > b {
    display: none;
  }

  .decision-facts > span {
    min-width: 0;
    min-height: 52px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 7px 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .decision-facts > span:first-child {
    border-left: 0;
  }

  .decision-facts small {
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
    font-weight: 720;
  }

  .decision-facts b {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .decision-facts > span:first-child b {
    color: var(--stock-accent);
  }

  .quote-row {
    bottom: 26px;
    height: 118px;
    grid-template-columns: 0.72fr 0.82fr 1.08fr 1.65fr;
    padding: 12px 14px;
  }

  .quote-row > div,
  .quote-row .love-block {
    min-height: 82px;
    padding: 0 15px;
  }

  .quote-row strong {
    font-size: 29px;
  }

  .quote-row > div:nth-child(2) > span {
    font-size: 20px;
  }

  .market-spark {
    display: grid;
    grid-template-rows: auto 38px auto;
    align-content: center;
    gap: 2px;
  }

  .market-spark canvas {
    width: 100%;
    height: 38px;
    display: block;
  }

  .market-spark b {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .market-spark b span {
    color: rgba(255, 255, 255, 0.58);
    font-size: inherit;
  }

  .market-spark b em {
    color: var(--stock-accent);
    font-style: normal;
  }

  .love-block h2 {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .love-block ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 3px;
    list-style: none;
  }

  .love-block li {
    position: relative;
    overflow: hidden;
    padding-left: 11px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10.5px;
    font-weight: 620;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .love-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--stock-accent);
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(var(--stock-accent-rgb), 0.8);
  }

  .deck-side {
    opacity: 0.62;
  }

  .deck-side > img {
    filter: brightness(0.52) saturate(0.95);
  }

  .deck-side-brand {
    position: absolute;
    top: 77px;
    left: 38px;
    z-index: 3;
    max-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .deck-side-brand em {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    border: 1px solid rgba(var(--side-accent-rgb), 0.72);
    border-radius: 10px;
    background: rgba(var(--side-accent-rgb), 0.18);
    box-shadow: 0 0 20px rgba(var(--side-accent-rgb), 0.28);
    font-size: 15px;
    font-style: normal;
    font-weight: 900;
  }

  .deck-side-brand small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .deck-side-position {
    position: absolute;
    right: 26px;
    bottom: 18px;
    z-index: 3;
    display: block;
    color: rgba(255, 255, 255, 0.36);
    font-size: 10px;
  }

  .deck-side-next .deck-side-brand {
    right: 38px;
    left: auto;
    flex-direction: row-reverse;
    text-align: right;
  }

  .deck-side-next .deck-side-position {
    right: auto;
    left: 26px;
  }

  .deck-pagination {
    width: 190px;
    gap: 6px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
  }

  .deck-pagination strong {
    color: var(--stock-accent);
    font-size: 15px;
  }

  .deck-pagination > span {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
  }

  .deck-pagination b {
    font-size: 11px;
    font-weight: 700;
  }

  .deck-pagination > i {
    width: 112px;
    height: 3px;
    margin-left: 8px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
  }

  .deck-pagination > i > em {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--stock-accent);
    box-shadow: 0 0 12px rgba(var(--stock-accent-rgb), 0.9);
    transition: width 260ms ease;
  }

  .action-button .action-icon {
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }

  .action-button:hover .action-icon,
  .action-button:focus-visible .action-icon {
    transform: translateY(-4px) scale(1.04);
    border-color: rgba(var(--stock-accent-rgb), 0.72);
    box-shadow: 0 0 24px rgba(var(--stock-accent-rgb), 0.28);
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .match-score {
    top: 100px;
  }

  .verdict-heart {
    width: 48px;
    height: 48px;
  }

  .verdict-heart b {
    font-size: 20px;
  }

  .decision-facts > span {
    min-height: 42px;
    padding-block: 5px;
  }

  .quote-row {
    bottom: 20px;
    height: 94px;
  }

  .quote-row > div,
  .quote-row .love-block {
    min-height: 68px;
  }

  .market-spark {
    grid-template-rows: auto 27px auto;
  }

  .market-spark canvas {
    height: 27px;
  }
}

@media (max-width: 900px) {
  .match-card {
    height: 568px;
    min-height: 568px;
  }

  .match-score {
    width: calc(100% - 40px);
  }

  .match-score > b {
    display: none;
  }

  .verdict-main {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .verdict-heart {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
  }

  .verdict-heart b,
  .verdict-heart small {
    color: #fff;
  }

  .verdict-heart b {
    font-size: 18px;
    line-height: 1;
  }

  .verdict-heart small {
    font-size: 8px;
  }

  .verdict-heart b::before,
  .decision-facts b::before,
  .market-spark b::before {
    content: none !important;
    display: none !important;
  }

  .decision-facts {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(4, 2, 3, 0.46);
  }

  .decision-facts > span {
    min-width: 0;
    min-height: 46px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 5px 7px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .decision-facts > span:first-child {
    border-left: 0;
  }

  .decision-facts small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 8px;
  }

  .decision-facts b {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 9px;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .decision-facts > span:first-child b {
    color: var(--stock-accent);
  }

  .quote-row {
    left: 10px;
    right: 10px;
    bottom: 12px;
    height: 146px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 56px 76px;
    grid-template-areas: none;
    padding: 6px 8px;
  }

  .quote-row > div,
  .quote-row .love-block {
    min-height: 0;
    padding: 5px 8px;
  }

  .quote-row > div:nth-child(1),
  .quote-row > div:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .quote-row > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .quote-row > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .quote-row strong {
    font-size: 23px;
  }

  .quote-row > div:nth-child(2) > span {
    font-size: 14px;
  }

  .market-spark {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    grid-template-rows: auto 26px auto;
    gap: 0;
  }

  .market-spark canvas {
    width: 100%;
    height: 26px;
  }

  .market-spark b {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.54);
    font-size: 8px;
    letter-spacing: 0;
  }

  .market-spark b span {
    color: inherit;
    font-size: inherit;
  }

  .market-spark b em {
    color: var(--stock-accent);
    font-style: normal;
  }

  .love-block h2 {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .quote-row .love-block {
    grid-column: 2;
    grid-row: 2;
  }

  .love-block ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
    list-style: none;
  }

  .love-block li {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.74);
    font-size: 8.5px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .love-block li:nth-child(3) {
    display: none;
  }

  .swipe-hint {
    display: none;
  }

  .deck-pagination {
    position: fixed;
    left: 50%;
    bottom: 104px;
    z-index: 26;
    width: 170px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 9px;
    transform: translateX(-50%);
  }

  .deck-pagination strong {
    color: var(--stock-accent);
    font-size: 12px;
  }

  .deck-pagination > span {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
  }

  .deck-pagination > i {
    width: 92px;
    height: 3px;
    margin-left: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
  }

  .deck-pagination > i > em {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--stock-accent);
  }

  .match-card.is-skip .stamp-skip,
  .match-card.is-match .stamp-match,
  .match-card.is-alert .stamp-alert {
    opacity: 1;
  }
}

@keyframes stock-card-arrive {
  from {
    opacity: 0.28;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-card.is-arriving {
    animation: none;
  }
}

/* StockMatch V10: shared text rows and optical baselines */
@media (min-width: 901px) {
  .verdict-heart {
    align-items: center;
  }

  .verdict-heart small {
    margin-top: 5px;
  }

  .decision-facts > span {
    grid-template-rows: 14px 14px;
    align-content: center;
  }

  .decision-facts small,
  .decision-facts b {
    line-height: 14px;
  }

  .quote-row > div,
  .quote-row .love-block {
    align-content: start;
    text-align: left;
  }

  .quote-row small,
  .love-block h2 {
    height: 18px;
    margin: 0;
    font-size: 12px;
    line-height: 18px;
  }

  .quote-row > div:nth-child(1),
  .quote-row > div:nth-child(2) {
    grid-template-rows: 18px minmax(0, 1fr);
    align-content: start;
    gap: 6px;
  }

  .quote-row > div:nth-child(1) > strong,
  .quote-row > div:nth-child(2) > span {
    align-self: start;
    margin: 0;
  }

  .market-spark {
    grid-template-rows: 18px 38px 12px;
    align-content: start;
    gap: 2px;
  }

  .market-spark b {
    height: 12px;
    line-height: 12px;
  }

  .love-block {
    grid-template-rows: 18px minmax(0, 1fr);
    align-content: start;
    gap: 3px;
  }

  .love-block ul {
    align-content: start;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .quote-row small,
  .love-block h2 {
    height: 14px;
    font-size: 10px;
    line-height: 14px;
  }

  .quote-row > div:nth-child(1),
  .quote-row > div:nth-child(2) {
    grid-template-rows: 14px minmax(0, 1fr);
    gap: 3px;
  }

  .market-spark {
    grid-template-rows: 14px 27px 10px;
  }

  .market-spark b {
    height: 10px;
    line-height: 10px;
  }

  .love-block {
    grid-template-rows: 14px minmax(0, 1fr);
    gap: 2px;
  }
}

@media (min-width: 901px) {
  .app-top .mode-tabs button.is-active {
    transform: none;
  }

  .action-button.skip:hover .action-icon,
  .action-button.skip:focus-visible .action-icon {
    border-color: rgba(255, 91, 96, 0.76);
    box-shadow: 0 0 24px rgba(255, 91, 96, 0.2), 0 12px 34px rgba(0, 0, 0, 0.52);
  }

  .action-button.match:hover .action-icon,
  .action-button.match:focus-visible .action-icon {
    border-color: rgba(255, 49, 68, 0.94);
    box-shadow: 0 0 30px rgba(255, 49, 68, 0.34), 0 12px 34px rgba(0, 0, 0, 0.54);
  }

  .action-button.alert:hover .action-icon,
  .action-button.alert:focus-visible .action-icon {
    border-color: rgba(255, 190, 76, 0.78);
    box-shadow: 0 0 24px rgba(255, 190, 76, 0.2), 0 12px 34px rgba(0, 0, 0, 0.52);
  }

  .stockmatch-stage::before {
    opacity: 0.7;
    filter: hue-rotate(var(--stage-hue-rotate)) saturate(0.92) brightness(0.82);
    transition: filter 520ms ease, opacity 320ms ease;
  }

  body::before {
    background:
      radial-gradient(circle at 50% 44%, rgba(var(--stock-accent-rgb), 0.16), transparent 38%),
      linear-gradient(180deg, rgba(var(--stock-accent-rgb), 0.09), rgba(var(--stock-accent-rgb), 0.025) 48%, transparent 78%);
    mix-blend-mode: screen;
    transition: background 520ms ease;
  }
}

/* StockMatch V14: one optical baseline for the desktop header. */
@media (min-width: 901px) {
  .app-top {
    width: min(1500px, calc(100% - 64px));
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    column-gap: 8px;
  }

  .app-top .brand {
    grid-template-columns: auto auto 20px auto;
    grid-template-rows: 29px 13px;
    column-gap: 2px;
    row-gap: 7px;
    align-content: center;
    align-items: center;
    line-height: 1;
  }

  .app-top .brand-heart {
    grid-column: 3;
    grid-row: 1;
    width: 17px;
    height: 17px;
    margin: 1px 0 0 4px;
  }

  .app-top .brand i {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    margin: 1px 0 0 8px;
    padding: 2px 5px 3px;
  }

  .app-top .brand small {
    grid-column: 1 / 5;
    grid-row: 2;
    align-self: center;
    margin: 0;
    line-height: 13px;
  }

  .app-top .top-status {
    height: 46px;
    min-height: 46px;
    align-items: stretch;
    gap: 8px;
  }

  .top-status .access-stat,
  .top-status .saved-stat,
  .top-status .market-stat,
  .top-status .account-stat,
  .app-top .language-pill {
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 23px;
    background: rgba(8, 5, 6, 0.76);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 720;
    line-height: 1;
    white-space: nowrap;
  }

  .top-status .saved-stat + .market-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .top-status .account-stat i,
  .top-status .access-stat strong,
  .top-status .saved-stat strong,
  .top-status .market-stat strong {
    flex: 0 0 auto;
  }

  .top-status .access-stat span,
  .top-status .saved-stat span,
  .top-status .market-stat span,
  .top-status .account-stat span {
    display: inline;
  }

  .app-top > .stock-language {
    height: 46px;
    display: flex;
    align-items: center;
  }

  .app-top .language-pill {
    min-width: 86px;
    padding-inline: 16px;
  }

  .app-top .language-avatar,
  .app-top .language-pill span {
    display: none;
  }

  .app-top .language-pill strong {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .app-top {
    width: calc(100% - 40px);
    grid-template-columns: minmax(190px, 1fr) auto auto;
  }

  .top-status .access-stat,
  .top-status .saved-stat,
  .top-status .market-stat,
  .top-status .account-stat {
    padding-inline: 11px;
  }

  .top-status .access-stat span,
  .top-status .saved-stat span,
  .top-status .market-stat span,
  .top-status .account-stat span {
    display: none;
  }

  .app-top .language-pill {
    min-width: 78px;
    padding-inline: 12px;
  }
}
