:root {
  --bg: #ece7db;
  --bg-deep: #d8d4cb;
  --paper: #f8f3e8;
  --paper-strong: #fffdf8;
  --panel: rgba(248, 243, 232, 0.92);
  --panel-border: rgba(7, 20, 39, 0.18);
  --ink: #0a1a31;
  --muted: #586271;
  --muted-soft: #7e8795;
  --line: rgba(10, 26, 49, 0.11);
  --gold: #f0b43a;
  --gold-soft: #f7dd8f;
  --emerald: #12d886;
  --emerald-soft: #d7fff0;
  --red: #da4d45;
  --orange: #f28a2e;
  --navy: #091b34;
  --cyan: #19b5ff;
  --magenta: #b4ff39;
  --untracked: #c7ceda;
  --shadow-xl: 0 26px 70px rgba(8, 18, 35, 0.18);
  --shadow-lg: 0 18px 42px rgba(8, 18, 35, 0.14);
  --shadow-sm: 0 10px 22px rgba(8, 18, 35, 0.09);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --landing-accent: #b4ff39;
  --landing-accent-shadow: rgba(180, 255, 57, 0.22);
  --landing-accent-glow: 0 0 18px rgba(180, 255, 57, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg, rgba(9, 27, 52, 0.09) 0 14%, transparent 14% 100%),
    linear-gradient(165deg, rgba(240, 180, 58, 0.14) 0 18%, transparent 18% 100%),
    radial-gradient(circle at 84% 18%, rgba(25, 181, 255, 0.18), transparent 18%),
    radial-gradient(circle at 18% 82%, rgba(180, 255, 57, 0.14), transparent 22%),
    linear-gradient(180deg, #f3eee3 0%, #e6e0d4 100%);
}

body {
  padding: 0;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

body.is-authenticated .app-shell {
  position: relative;
  max-width: none;
  padding: 6px 8px 32px;
  isolation: isolate;
}

body.is-authenticated .app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(9, 27, 52, 0.04) 0 14%, transparent 14% 100%),
    linear-gradient(163deg, rgba(240, 180, 58, 0.07) 0 15%, transparent 15% 100%),
    radial-gradient(circle at 50% 34%, rgba(25, 181, 255, 0.1), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(25, 181, 255, 0.08), transparent 18%),
    radial-gradient(circle at 18% 82%, rgba(180, 255, 57, 0.08), transparent 20%);
}

body.is-authenticated .app-shell::after {
  content: "";
  position: fixed;
  inset: 24px;
  pointer-events: none;
  z-index: -1;
  border-radius: 28px;
  border: 1px solid rgba(145, 172, 204, 0.1);
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, transparent 0 14%, rgba(25, 181, 255, 0.04) 14% 15%, transparent 15% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

body:not(.is-authenticated) .app-shell {
  max-width: none;
  min-height: 100svh;
}

body.is-authenticated {
  min-height: 100%;
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 18%, rgba(25, 181, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(180, 255, 57, 0.12), transparent 22%),
    radial-gradient(circle at 50% 84%, rgba(12, 108, 112, 0.18), transparent 30%),
    linear-gradient(180deg, #061224 0%, #0a1f3b 54%, #0a2842 100%);
}

html:has(body.is-authenticated) {
  height: auto;
  overflow-y: auto;
}

@media (min-width: 1161px) {
  html,
  body:not(.is-authenticated) {
    height: 100svh;
    overflow: hidden;
  }
}

.hero {
  position: relative;
  display: block;
  padding: 56px 72px 44px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(205, 226, 255, 0.2);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 54%, rgba(25, 181, 255, 0.16), transparent 26%),
    radial-gradient(circle at 18% 18%, rgba(28, 177, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(246, 203, 83, 0.16), transparent 26%),
    linear-gradient(128deg, rgba(5, 16, 34, 0.99) 0%, rgba(8, 33, 68, 0.985) 42%, rgba(12, 108, 112, 0.97) 100%);
  box-shadow: 0 36px 88px rgba(8, 18, 35, 0.22);
}

body:not(.is-authenticated) .hero {
  min-height: 100svh;
  margin-bottom: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -6% -20% 42%;
  height: 72%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  pointer-events: none;
}

body.is-authenticated .hero {
  display: none;
}

.hero__copy,
.auth-card,
.panel,
.stat-card,
.top-nav,
.capture-card {
  position: relative;
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.hero__copy {
  min-height: calc(100svh - 56px);
  display: flex;
  flex-direction: column;
  padding: 54px 520px 72px 62px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  color: white;
  animation: heroReveal 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__brand-mark {
  position: absolute;
  right: -12px;
  top: 88px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(5rem, 10vw, 8.6rem);
  line-height: 0.84;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  text-shadow: var(--landing-accent-glow);
  transform: rotate(90deg);
  transform-origin: top right;
  pointer-events: none;
  opacity: 0.9;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__backdrop-line {
  position: absolute;
  display: block;
  height: 18px;
  border-radius: 999px;
  opacity: 0.9;
  filter: blur(0.2px);
}

.hero__backdrop-line--a {
  width: 58%;
  left: -8%;
  top: 24%;
  background: linear-gradient(90deg, rgba(25, 181, 255, 0.9), rgba(18, 216, 134, 0.2));
  transform: rotate(-14deg);
}

.hero__backdrop-line--b {
  width: 66%;
  right: -14%;
  bottom: 18%;
  background: linear-gradient(90deg, rgba(240, 180, 58, 0.92), rgba(240, 180, 58, 0.08));
  transform: rotate(-10deg);
}

.hero__backdrop-line--c {
  width: 44%;
  right: 8%;
  top: 14%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  transform: rotate(-12deg);
}

.hero__backdrop-line--d {
  width: 72%;
  left: 18%;
  top: 56%;
  background: linear-gradient(90deg, rgba(180, 255, 57, 0.2), rgba(180, 255, 57, 0));
  transform: rotate(8deg);
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: 10px 0 10px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero__copy::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 260px;
  right: -60px;
  top: -44px;
  clip-path: polygon(16% 0, 100% 0, 100% 72%, 0 100%);
  background: linear-gradient(135deg, rgba(240, 180, 58, 0.98), rgba(180, 255, 57, 0.18));
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
  animation: heroAccentFloat 8s ease-in-out infinite alternate;
}

.hero__masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  max-width: 440px;
  position: relative;
  z-index: 20;
}

.hero__masthead .eyebrow {
  font-size: 0.96rem;
  letter-spacing: 0.28em;
}

.hero__badge,
.album-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  background: var(--landing-accent);
  border: 1px solid rgba(180, 255, 57, 0.28);
  color: #082038;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px var(--landing-accent-shadow);
}

.hero h1 {
  max-width: 8.1ch;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.5rem, 7.2vw, 8rem);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  z-index: 20;
  text-shadow: 0 14px 34px rgba(4, 12, 27, 0.34);
}

.hero h1 span:nth-child(2) {
  color: #fff3bf;
}

.hero h1 span {
  display: block;
}

.hero__lede {
  max-width: 24ch;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  z-index: 20;
}

.eyebrow {
  margin: 0;
  color: var(--landing-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: var(--landing-accent-glow);
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  position: relative;
  z-index: 20;
}

.hero__pills span {
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__feature-list {
  display: none;
}

.hero__feature-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  font-weight: 600;
}

.hero__feature-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(240, 180, 58, 1), rgba(180, 255, 57, 0.88));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  transform: rotate(10deg);
}

.hero__visual {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: min(100%, 1020px);
  min-height: 560px;
  margin-top: 12px;
  padding: 32px 0 54px;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
  perspective: 1600px;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 16% 0 1%;
  border-radius: 34px;
  background: transparent;
  box-shadow: none;
  transform: rotate(-5deg);
  z-index: 0;
  pointer-events: none;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 20% 3% 8%;
  border-radius: 28px;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(12, 108, 112, 0.08) 10% 11%, transparent 11% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  opacity: 0.24;
  transform: rotate(-5deg);
  z-index: 1;
  pointer-events: none;
}

.hero__desk {
  position: absolute;
  inset: 14% 6% 5%;
  border-radius: 32px;
  background: transparent;
  transform: rotate(-5deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__sticker,
.hero__token {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 24px 36px rgba(3, 10, 22, 0.22);
  will-change: transform, opacity;
}

.hero__sticker {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(9, 20, 38, 0.42);
  transform-origin: center;
  backface-visibility: hidden;
  z-index: 3;
}

.hero__sticker img,
.hero__token img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__sticker img {
  object-fit: cover;
  object-position: center 12%;
}

.hero__sticker--lead,
.hero__sticker--bottom,
.hero__sticker--top {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hero__sticker--lead img,
.hero__sticker--bottom img,
.hero__sticker--top img {
  filter: drop-shadow(0 24px 30px rgba(3, 10, 22, 0.28));
}

.hero__sticker--lead {
  left: 3%;
  bottom: -2%;
  width: 38%;
  min-height: 400px;
  z-index: 6;
  transform: rotate(-16deg);
  animation:
    heroStickerThrowLead 980ms cubic-bezier(0.2, 1, 0.3, 1) 140ms both,
    heroCardFloatA 8.5s ease-in-out 1300ms infinite alternate;
}

.hero__sticker--right {
  right: 10%;
  top: 10%;
  width: 28%;
  min-height: 300px;
  z-index: 5;
  transform: rotate(14deg);
  animation:
    heroStickerThrowRight 920ms cubic-bezier(0.2, 1, 0.3, 1) 240ms both,
    heroCardFloatB 7.5s ease-in-out 1260ms infinite alternate;
}

.hero__sticker--bottom {
  right: 4%;
  bottom: -4%;
  width: 36%;
  min-height: 264px;
  z-index: 4;
  opacity: 0.96;
  transform: rotate(7deg);
  animation:
    heroStickerThrowBottom 960ms cubic-bezier(0.2, 1, 0.3, 1) 320ms both,
    heroCardFloatC 7s ease-in-out 1320ms infinite alternate;
}

.hero__sticker--mini {
  left: 38%;
  bottom: 11%;
  width: 20%;
  min-height: 178px;
  z-index: 7;
  transform: rotate(-12deg);
  animation:
    heroStickerThrowMini 880ms cubic-bezier(0.2, 1, 0.3, 1) 420ms both,
    heroCardFloatD 7.8s ease-in-out 1280ms infinite alternate;
}

.hero__sticker--top {
  left: 52%;
  top: 5%;
  width: 22%;
  min-height: 224px;
  z-index: 4;
  transform: rotate(-8deg);
  animation:
    heroStickerThrowTop 930ms cubic-bezier(0.2, 1, 0.3, 1) 280ms both,
    heroCardFloatC 8.2s ease-in-out 1280ms infinite alternate;
}

.hero__sticker--edge {
  right: 2%;
  bottom: 6%;
  width: 14%;
  min-height: 138px;
  z-index: 5;
  transform: rotate(-18deg);
  animation:
    heroStickerThrowEdge 840ms cubic-bezier(0.2, 1, 0.3, 1) 500ms both,
    heroCardFloatB 8.8s ease-in-out 1300ms infinite alternate;
}

.hero__sticker--left-top {
  left: 18%;
  top: 10%;
  width: 15%;
  min-height: 148px;
  z-index: 4;
  transform: rotate(-20deg);
  animation:
    heroStickerThrowMini 920ms cubic-bezier(0.2, 1, 0.3, 1) 200ms both,
    heroCardFloatA 9.1s ease-in-out 1320ms infinite alternate;
}

.hero__sticker--far-right {
  right: -1%;
  top: 26%;
  width: 17%;
  min-height: 184px;
  z-index: 3;
  transform: rotate(18deg);
  animation:
    heroStickerThrowRight 980ms cubic-bezier(0.2, 1, 0.3, 1) 360ms both,
    heroCardFloatB 8.4s ease-in-out 1350ms infinite alternate;
}

.hero__sticker--center-small {
  left: 58%;
  bottom: 24%;
  width: 13%;
  min-height: 128px;
  z-index: 8;
  transform: rotate(9deg);
  animation:
    heroStickerThrowTop 860ms cubic-bezier(0.2, 1, 0.3, 1) 460ms both,
    heroCardFloatD 7.4s ease-in-out 1360ms infinite alternate;
}

.hero__token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  --token-rotate: 0deg;
  animation: heroTokenPop 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__token--logo {
  top: 22%;
  left: 28%;
  width: 96px;
  height: 132px;
  padding: 8px;
  z-index: 8;
  --token-rotate: -10deg;
  animation-delay: 680ms;
}

.hero__token--logo img {
  object-fit: contain;
}

.hero__token--badge {
  right: 8%;
  top: 18%;
  padding: 12px 14px;
  font-size: 0.74rem;
  z-index: 8;
  --token-rotate: -3deg;
  animation-delay: 740ms;
}

.hero__token--trade {
  left: 12%;
  bottom: 16%;
  padding: 12px 14px;
  font-size: 0.72rem;
  z-index: 8;
  --token-rotate: -5deg;
  animation-delay: 780ms;
}

.hero__token--region {
  left: 49%;
  bottom: 29%;
  padding: 10px 12px;
  font-size: 0.68rem;
  z-index: 8;
  --token-rotate: 5deg;
  animation-delay: 840ms;
}

.hero__token--score {
  right: 23%;
  bottom: 10%;
  padding: 10px 14px;
  font-size: 0.68rem;
  z-index: 8;
  --token-rotate: -10deg;
  animation-delay: 900ms;
}

.hero__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  z-index: 10;
  position: relative;
  animation: sectionFadeUp 720ms cubic-bezier(0.22, 1, 0.36, 1) 880ms both;
}

.hero__flags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__ticker {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 116px;
  display: flex;
  gap: 22px;
  padding: 12px 26px;
  background: rgba(245, 240, 226, 0.92);
  color: var(--navy);
  border-top: 1px solid rgba(9, 27, 52, 0.12);
  border-bottom: 1px solid rgba(9, 27, 52, 0.12);
  transform: rotate(-7deg);
  transform-origin: center;
  overflow: hidden;
  box-shadow: 0 18px 28px rgba(3, 10, 22, 0.18);
  z-index: 2;
  animation: heroTickerEnter 760ms cubic-bezier(0.22, 1, 0.36, 1) 820ms both;
}

.hero__ticker span {
  flex: 0 0 auto;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: tickerRun 18s linear infinite;
}

.hero__microcopy {
  max-width: 36rem;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
  z-index: 10;
  animation: sectionFadeUp 760ms cubic-bezier(0.22, 1, 0.36, 1) 980ms both;
}

.auth-card {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  z-index: 20;
  width: min(380px, calc(100vw - 56px));
  max-width: 100%;
  max-height: none;
  margin: 18px 0 0;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
  box-shadow: none;
  border: 0;
  backdrop-filter: none;
  animation: surfaceRise 760ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.auth-card::before {
  display: none;
}

.auth-card::after {
  display: none;
}

.auth-card__intro {
  margin-bottom: 10px;
  padding-right: 0;
}

.auth-card__intro .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

.auth-card__intro h2 {
  margin: 6px 0 8px;
  color: white;
  font-size: 1.26rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.auth-card__intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.42;
  font-size: 0.86rem;
}

.auth-card__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.auth-card__highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 1161px) {
  .hero {
    --hero-center-width: min(420px, 34vw);
  }

  .hero {
    min-height: 100svh;
    padding: 44px 52px 36px;
  }

  .hero__copy {
    min-height: calc(100svh - 40px);
    display: grid;
    justify-items: center;
    align-content: start;
    align-items: center;
    text-align: center;
    padding: 34px 48px 30px;
  }

  .hero__brand-mark {
    top: 54px;
    font-size: clamp(4.6rem, 8.6vw, 7.2rem);
  }

  .hero__masthead {
    justify-content: center;
    width: var(--hero-center-width);
    max-width: var(--hero-center-width);
    margin-bottom: 12px;
  }

  .hero__masthead .eyebrow {
    font-size: 1.06rem;
  }

  .hero h1 {
    width: var(--hero-center-width);
    max-width: var(--hero-center-width);
    font-size: clamp(3.8rem, 6vw, 6.1rem);
    line-height: 0.88;
  }

  .hero__lede {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.22;
    width: var(--hero-center-width);
    max-width: 22ch;
  }

  .hero__pills {
    margin-top: 10px;
    gap: 8px;
    justify-content: center;
    width: var(--hero-center-width);
  }

  .hero__pills span {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .hero__visual {
    position: absolute;
    inset: 96px 34px 74px 34px;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .hero__sticker--lead {
    left: 3%;
    width: 25%;
    min-height: 324px;
    bottom: 2%;
  }

  .hero__sticker--right {
    right: 6%;
    width: 21%;
    min-height: 238px;
    top: 10%;
  }

  .hero__sticker--bottom {
    right: 13%;
    width: 24%;
    min-height: 182px;
    bottom: -1%;
  }

  .hero__sticker--mini {
    left: 18%;
    width: 14%;
    min-height: 120px;
    bottom: 24%;
  }

  .hero__sticker--top {
    left: 70%;
    width: 15%;
    min-height: 156px;
    top: 2%;
  }

  .hero__sticker--edge {
    right: 9%;
    width: 10%;
    min-height: 98px;
    bottom: 18%;
  }

  .hero__sticker--left-top {
    left: 12%;
    top: 10%;
    width: 11%;
    min-height: 102px;
  }

  .hero__sticker--far-right {
    right: 1%;
    top: 42%;
    width: 13%;
    min-height: 132px;
  }

  .hero__sticker--center-small {
    left: 72%;
    bottom: 28%;
    width: 10%;
    min-height: 90px;
  }

  .hero__token--logo {
    width: 76px;
    height: 102px;
    left: 24%;
    top: 19%;
  }

  .hero__token--badge,
  .hero__token--trade,
  .hero__token--region,
  .hero__token--score {
    padding: 8px 10px;
    font-size: 0.62rem;
  }

  .hero__token--region {
    right: 16%;
    left: auto;
    bottom: 23%;
  }

  .hero__token--score {
    right: 18%;
    bottom: 10%;
  }

  .auth-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: var(--hero-center-width);
    max-height: none;
    overflow: visible;
    margin-top: 18px;
    padding: 10px 0 0;
    transform: none;
  }

  .auth-card__intro {
    margin-bottom: 12px;
    padding-right: 0;
    text-align: center;
  }

  .auth-card__highlights,
  .auth-divider,
  .auth-demo-button {
    text-align: center;
    justify-content: center;
  }
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
  padding: 3px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.auth-tab,
.ghost-button,
.secondary-button,
.primary-button,
.quantity-button,
.state-button,
.top-nav__item,
.accept-button {
  border: 0;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease, opacity 140ms ease;
}

.auth-tab {
  padding: 10px 12px;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-tab.is-active {
  background: linear-gradient(135deg, rgba(9, 27, 52, 0.92), rgba(17, 74, 158, 0.84));
  color: white;
  box-shadow: 0 8px 18px rgba(9, 27, 52, 0.16);
}

.auth-form,
.friend-form,
.quick-add-form {
  display: grid;
  gap: 12px;
}

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

.auth-form label,
.friend-form label,
.quick-add-form__field {
  display: grid;
  gap: 6px;
  color: var(--landing-accent);
  font-size: 0.84rem;
}

.auth-form input,
.filter-bar input,
.filter-bar select,
.friend-form input,
.quick-add-form__field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: white;
  box-shadow: none;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.auth-form input::placeholder,
.filter-bar input::placeholder,
.friend-form input::placeholder,
.quick-add-form__field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.auth-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.friend-form input:focus,
.quick-add-form__field input:focus {
  outline: none;
  border-bottom-color: rgba(25, 181, 255, 0.86);
  box-shadow: 0 1px 0 0 rgba(25, 181, 255, 0.22);
}

.quick-add-form__field input {
  text-transform: uppercase;
}

.primary-button {
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #091b34, #114a9e 54%, #12d886 118%);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(9, 27, 52, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-card .primary-button {
  width: auto;
  justify-self: center;
  padding: 11px 20px;
  background: var(--landing-accent);
  color: #082038;
  box-shadow: 0 12px 24px var(--landing-accent-shadow);
}

.secondary-button,
.ghost-button,
.accept-button {
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.secondary-button {
  background: transparent;
  color: white;
  border: 0;
  backdrop-filter: none;
}

body.is-authenticated .primary-button {
  background: var(--landing-accent);
  color: #081828;
  box-shadow: 0 16px 28px rgba(18, 216, 134, 0.18);
}

body.is-authenticated .ghost-button,
body.is-authenticated .secondary-button {
  background: rgba(9, 27, 52, 0.92);
  color: white;
  border: 1px solid rgba(205, 226, 255, 0.12);
  box-shadow: 0 14px 24px rgba(4, 14, 28, 0.14);
}

body.is-authenticated .ghost-button:hover,
body.is-authenticated .secondary-button:hover,
body.is-authenticated .primary-button:hover {
  box-shadow: 0 18px 30px rgba(4, 14, 28, 0.18), 0 0 18px rgba(180, 255, 57, 0.12);
}

.ghost-button {
  background: rgba(9, 27, 52, 0.06);
  color: var(--ink);
}

.accept-button {
  background: linear-gradient(135deg, #0d6b56, #13866b);
  color: white;
}

.auth-tab:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.quantity-button:hover,
.state-button:hover,
.top-nav__item:hover,
.accept-button:hover {
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-demo-button {
  width: 100%;
}

#login-form,
#forgot-password-form,
#reset-password-form,
#register-form {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.auth-message,
.muted,
.helper-copy,
.trade-codes,
.league-card__meta,
.request-card p,
.regional-card__meta,
.team-row__meta,
.sticker-group__header p,
.legend,
.camera-picker__copy {
  color: var(--muted);
}

.auth-message {
  min-height: 1.4em;
  margin: 14px 2px 0;
  font-size: 0.94rem;
}

.auth-message.is-error {
  color: var(--red);
}

.dashboard {
  display: grid;
  gap: 24px;
  color: var(--navy);
  position: relative;
}

.dashboard::before {
  content: "";
  position: absolute;
  top: 120px;
  right: 3%;
  width: 320px;
  height: 180px;
  clip-path: polygon(16% 0, 100% 0, 100% 74%, 0 100%);
  background: linear-gradient(135deg, rgba(180, 255, 57, 0.1), rgba(25, 181, 255, 0.04));
  pointer-events: none;
  z-index: 0;
}

.dashboard > * {
  position: relative;
  z-index: 1;
}

.dashboard-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(145, 172, 204, 0.14);
  background:
    radial-gradient(circle at top right, rgba(25, 181, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 247, 252, 0.92));
  box-shadow: 0 18px 38px rgba(10, 34, 62, 0.08);
}

.dashboard-top h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.dashboard-top .muted {
  color: #617084;
}

.dashboard-top .eyebrow {
  color: var(--landing-accent);
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-center {
  position: relative;
  display: flex;
  align-items: center;
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(145, 172, 204, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: 0 12px 22px rgba(10, 34, 62, 0.08);
}

.notification-bell--empty {
  color: rgba(16, 34, 59, 0.46);
  background: rgba(255, 255, 255, 0.76);
}

.notification-bell--active {
  color: var(--navy);
  border-color: rgba(180, 255, 57, 0.34);
  box-shadow: 0 14px 24px rgba(10, 34, 62, 0.1), 0 0 14px rgba(180, 255, 57, 0.1);
}

.notification-bell__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.notification-bell__count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff725e, #d83c4b);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(201, 78, 83, 0.28);
}

.notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 24px));
  max-height: min(72vh, 620px);
  padding: 14px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(205, 226, 255, 0.14);
  background:
    radial-gradient(circle at top right, rgba(25, 181, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(7, 19, 38, 0.96), rgba(9, 27, 52, 0.94));
  box-shadow: 0 26px 54px rgba(4, 14, 28, 0.26);
  color: white;
}

.notification-popover .muted,
.notification-popover .helper-copy,
.notification-popover .legend,
.notification-popover p {
  color: rgba(255, 255, 255, 0.84);
}

.notification-popover .album-chip {
  color: #082038;
}

.notification-popover__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 8px;
  background:
    linear-gradient(180deg, rgba(7, 19, 38, 0.98), rgba(7, 19, 38, 0.9));
  backdrop-filter: blur(10px);
}

.notification-popover__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-popover__close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
}

.notification-popover__head h3 {
  margin: 4px 0 0;
}

.top-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(145, 172, 204, 0.14);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(10, 34, 62, 0.08);
}

.mobile-main-nav {
  display: none;
}

.top-nav__item {
  padding: 12px 14px;
  border-radius: 8px;
  background: transparent;
  color: #526176;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-nav__item.is-active {
  background: var(--landing-accent);
  color: #081828;
  box-shadow: 0 10px 18px rgba(180, 255, 57, 0.16);
}

.album-sections {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(145, 172, 204, 0.14);
  box-shadow: 0 12px 24px rgba(10, 34, 62, 0.08);
}

.album-sections > [data-album-section="notebook"] { order: 1; }
#album-sections-intake-button { order: 2; }
.album-sections > [data-album-section="needed"] { order: 3; }
.album-sections > [data-album-section="duplicates"] { order: 4; }
.album-sections > [data-album-section="progress"] { order: 5; }

.album-sections__item {
  border: 0;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 8px;
  background: transparent;
  color: #526176;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

#album-sections-intake-button { touch-action: manipulation; }

.album-sections__item.is-active,
.album-sections__item:hover {
  background: var(--landing-accent);
  color: #081828;
  box-shadow: 0 10px 18px rgba(180, 255, 57, 0.16);
}

.album-section-panel {
  display: grid;
  gap: 20px;
}

.album-section-panel--needed > .panel {
  min-width: 0;
}

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

.stats-grid > .stat-card {
  animation: statLift 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stats-grid > .stat-card:nth-child(1) { animation-delay: 70ms; }
.stats-grid > .stat-card:nth-child(2) { animation-delay: 140ms; }
.stats-grid > .stat-card:nth-child(3) { animation-delay: 210ms; }
.stats-grid > .stat-card:nth-child(4) { animation-delay: 280ms; }

.stat-card {
  padding: 18px 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(145, 172, 204, 0.14);
  background:
    radial-gradient(circle at top right, rgba(25, 181, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 252, 0.92));
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(10, 34, 62, 0.08);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--emerald));
  background-size: 180% 100%;
  animation: stripeShift 6s linear infinite;
}

.stat-card p,
.stat-card span {
  margin: 0;
}

.stat-card p {
  font-weight: 800;
  color: #6b788a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.stat-card strong {
  display: block;
  margin: 12px 0 7px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.4rem, 3vw, 3.9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.stat-card--accent {
  background:
    radial-gradient(circle at top right, rgba(180, 255, 57, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(238, 255, 242, 0.98), rgba(229, 245, 235, 0.94));
  color: var(--navy);
}

.stat-card--dark {
  background:
    radial-gradient(circle at top right, rgba(240, 180, 58, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(233, 240, 248, 0.94));
  color: var(--navy);
}

.stat-card--accent p,
.stat-card--accent span,
.stat-card--dark p,
.stat-card--dark span {
  color: #617084;
}

.view-stack,
.view-panel {
  display: grid;
  gap: 20px;
}

.view-panel {
  animation: sectionFadeUp 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.content-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
}

.content-grid--league {
  grid-template-columns: 340px minmax(0, 1fr);
}

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

.league-sections {
  display: none;
}

.panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(205, 226, 255, 0.14);
  background:
    radial-gradient(circle at top right, rgba(25, 181, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 250, 0.92));
  animation: surfaceRise 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow: 0 22px 42px rgba(4, 14, 28, 0.12);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 92px;
  background: linear-gradient(135deg, rgba(180, 255, 57, 0.26), rgba(25, 181, 255, 0));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
  animation: cornerPulse 7s ease-in-out infinite alternate;
}

.panel__header {
  margin-bottom: 18px;
}

.panel__header--spread,
.capture-card__header,
.sticker-toolbar,
.dashboard-top,
.spotlight-card__top,
.league-card__top,
.regional-card__top,
.request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel h3,
.capture-card__header h3,
.sticker-group__header h4,
.league-block h4 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.is-authenticated .panel h3,
body.is-authenticated .capture-card__header h3,
body.is-authenticated .sticker-group__header h4,
body.is-authenticated .league-block h4 {
  color: var(--navy);
}

body.is-authenticated .panel .eyebrow,
body.is-authenticated .capture-card .eyebrow {
  color: var(--landing-accent);
  text-shadow: none;
}

body.is-authenticated .panel .muted,
body.is-authenticated .panel .helper-copy,
body.is-authenticated .panel .legend,
body.is-authenticated .panel .trade-codes,
body.is-authenticated .panel .league-card__meta,
body.is-authenticated .panel .regional-card__meta,
body.is-authenticated .panel .team-row__meta,
body.is-authenticated .panel .sticker-group__header p,
body.is-authenticated .panel p.muted,
body.is-authenticated .panel label span {
  color: #5f6d82;
}

body.is-authenticated .panel .legend__item,
body.is-authenticated .panel strong,
body.is-authenticated .panel .request-card p,
body.is-authenticated .panel .invite-bar__label,
body.is-authenticated .panel .invite-bar__link,
body.is-authenticated .panel .invite-bar__hint {
  color: var(--navy);
}

body.is-authenticated .filter-bar input,
body.is-authenticated .filter-bar select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(16, 34, 59, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 10px 20px rgba(10, 34, 62, 0.08);
}

body.is-authenticated .filter-bar input::placeholder {
  color: rgba(16, 34, 59, 0.42);
}

body.is-authenticated .filter-bar select option {
  color: var(--navy);
  background: white;
}

.team-progress,
.trade-spotlight,
.regional-rarity,
.league-friends,
.stack-list,
.sticker-groups,
.albums-grid {
  display: grid;
  gap: 12px;
}

.compare-card {
  display: grid;
  gap: 12px;
}

.group-overview {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 34, 59, 0.08);
}

.invite-banner {
  background: linear-gradient(135deg, rgba(0, 201, 139, 0.12), rgba(52, 200, 242, 0.1));
  border: 1px solid rgba(0, 201, 139, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.invite-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 201, 139, 0.07);
  border: 1px solid rgba(0, 201, 139, 0.2);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.invite-bar__label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.invite-bar__link {
  font-size: 12px;
  font-family: monospace;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-bar__copy {
  flex-shrink: 0;
}

.invite-bar__open {
  flex-shrink: 0;
}

.invite-bar__hint {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.export-menu {
  position: relative;
}

.export-menu__trigger {
  width: 100%;
}

.export-menu__popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 18;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(205, 226, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 19, 38, 0.96), rgba(9, 27, 52, 0.94));
  box-shadow: 0 22px 40px rgba(4, 14, 28, 0.24);
}

.export-menu__item {
  justify-content: center;
}

.request-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ghost-button--small {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.group-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-button {
  background: none;
  border: 1px solid rgba(16, 34, 59, 0.15);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s;
}

.icon-button:hover {
  background: rgba(0, 201, 139, 0.1);
}

.league-card--self {
  border-color: rgba(0, 201, 139, 0.35);
  background: linear-gradient(180deg, rgba(240, 255, 250, 0.92), rgba(230, 252, 245, 0.88));
}

.group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 250, 0.92));
  border: 1px solid rgba(205, 226, 255, 0.16);
  box-shadow: 0 16px 28px rgba(4, 14, 28, 0.1);
}

.group-card--active {
  border-color: rgba(180, 255, 57, 0.34);
  box-shadow: 0 18px 34px rgba(4, 14, 28, 0.12), 0 0 18px rgba(180, 255, 57, 0.12);
}

.group-member-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.compare-card__qr {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(52, 200, 242, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 34, 59, 0.08);
}

.compare-card__qr img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.compare-scan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.albums-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.album-card {
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(25, 181, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 250, 0.92));
  border: 1px solid rgba(205, 226, 255, 0.16);
  box-shadow: 0 18px 34px rgba(4, 14, 28, 0.12);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: surfaceRise 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.album-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--landing-accent), var(--cyan));
}

.album-card--active {
  border-color: rgba(180, 255, 57, 0.32);
  background:
    radial-gradient(circle at top right, rgba(180, 255, 57, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 237, 0.94));
  box-shadow: 0 24px 40px rgba(4, 14, 28, 0.14), 0 0 20px rgba(180, 255, 57, 0.12);
}

.album-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 40px rgba(8, 18, 35, 0.16);
}

.album-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.album-card__title {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.album-card__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.album-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.album-card__open {
  width: 100%;
}

.team-row,
.spotlight-card,
.league-card,
.regional-card,
.request-card {
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(25, 181, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 250, 0.92));
  border: 1px solid rgba(205, 226, 255, 0.16);
  box-shadow: 0 16px 30px rgba(4, 14, 28, 0.1);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  animation: surfaceRise 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.team-row {
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.team-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(10, 34, 62, 0.14);
}

.team-row--active {
  border-color: rgba(22, 92, 192, 0.22);
  box-shadow: 0 18px 34px rgba(22, 92, 192, 0.12);
}

.team-row__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.team-row__inline-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 34, 59, 0.08);
  display: grid;
  gap: 10px;
}

.team-row__inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-row__inline-close {
  padding: 6px 10px;
}

.team-row__name,
.regional-card__title,
.sticker-card h5 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 21, 17, 0.08);
}

.progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d3a12f, #34c8f2 40%, #00c98b 100%);
}

.spotlight-metrics,
.league-card__stats,
.league-card__trade,
.regional-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mini-metric {
  padding: 11px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 23, 43, 0.06), rgba(25, 181, 255, 0.04));
  border: 1px solid rgba(25, 181, 255, 0.12);
}

.mini-metric strong {
  display: block;
  font-size: 1.18rem;
}

.mini-metric span,
.helper-copy,
.trade-codes,
.league-card__meta,
.request-card p,
.regional-card__meta,
.team-row__meta {
  font-size: 0.9rem;
}

.progress-team-list {
  display: grid;
  gap: 10px;
}

.progress-team-group {
  display: grid;
  gap: 10px;
}

.progress-team-group + .progress-team-group {
  margin-top: 16px;
}

.progress-team-group__title {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 0.85rem;
}

.needed-board {
  display: grid;
  gap: 16px;
}

@media (min-width: 1161px) {
  .needed-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.needed-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(205, 226, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(25, 181, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 250, 0.94));
  box-shadow: 0 16px 30px rgba(4, 14, 28, 0.1);
}

.needed-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.needed-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.needed-group__title .mini-flag {
  flex: 0 0 auto;
}

.needed-group__title strong,
.needed-group__count {
  display: block;
  color: var(--navy);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.needed-group__title span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.needed-group__count {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(180, 255, 57, 0.16);
  color: #395400;
  font-size: 0.86rem;
}

.needed-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.needed-pill {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 68px;
  padding: 10px 10px 9px;
  border-radius: 14px;
  border: 1px solid rgba(16, 34, 59, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(10, 34, 62, 0.08);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.needed-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 255, 57, 0.34);
  box-shadow: 0 14px 24px rgba(10, 34, 62, 0.12);
  background: rgba(248, 255, 233, 0.98);
}

.needed-pill__code {
  color: var(--navy);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.needed-pill__name {
  color: #607089;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.progress-sticker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(205, 226, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 250, 0.92));
}

.progress-sticker-row__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.progress-sticker-row__main strong {
  flex: 0 0 auto;
  font-size: 0.9rem;
  color: var(--navy);
}

.progress-sticker-row__name {
  font-weight: 800;
}

.progress-sticker-row__meta {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}

.progress-sticker-row__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-sticker-row__button {
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
}

.progress-sticker-row__qty {
  min-width: 46px;
  justify-content: center;
}

.trade-codes,
.league-card__meta,
.regional-card__meta {
  margin-top: 6px;
}

.capture-shell {
  margin-bottom: 22px;
}

.capture-overlay,
.reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 18, 38, 0.48);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.capture-modal,
.reveal-modal {
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.player-detail-shell {
  width: min(1180px, 100%);
  max-height: min(92dvh, 980px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.capture-card {
  position: relative;
  max-height: inherit;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(101, 232, 95, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(52, 200, 242, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(242, 247, 255, 0.92));
}

.missing-import-card {
  display: grid;
  gap: 14px;
}

.missing-import-card .panel__header h3 {
  line-height: 0.96;
}

.missing-import-actions {
  justify-content: stretch;
}

#close-capture-button {
  margin-left: auto;
}

.missing-import-actions > .primary-button {
  flex: 1 1 auto;
}

.missing-import-actions > .ghost-button {
  flex: 0 0 auto;
}

.missing-import-capture {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.missing-import-text {
  width: 100%;
  min-height: 220px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 34, 59, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.missing-import-text:focus {
  outline: 2px solid rgba(44, 90, 160, 0.24);
  border-color: rgba(44, 90, 160, 0.5);
}

.reveal-card {
  position: relative;
  max-height: inherit;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  background:
    radial-gradient(circle at top right, rgba(101, 232, 95, 0.16), transparent 32%),
    radial-gradient(circle at bottom left, rgba(52, 200, 242, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(243, 248, 255, 0.94));
  box-shadow: var(--shadow-xl);
}

.reveal-card h3 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 20, 42, 0.9);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(4, 17, 40, 0.22);
}

.overlay-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.player-detail-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(52, 200, 242, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(211, 161, 47, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.99), rgba(239, 246, 255, 0.96));
  box-shadow: 0 36px 90px rgba(4, 17, 40, 0.28);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.player-detail-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 20, 42, 0.9);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(4, 17, 40, 0.22);
}

.player-detail-modal__layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 500px;
  max-height: inherit;
}

.player-detail-modal__preview {
  padding: 18px;
  border-right: 1px solid rgba(16, 34, 59, 0.08);
  background:
    linear-gradient(180deg, rgba(13, 45, 98, 0.06), rgba(13, 45, 98, 0.02)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 24%);
}

.player-detail-modal__panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px 18px 20px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.player-preview {
  display: grid;
  gap: 8px;
  height: 100%;
}

.player-preview__card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  height: 100%;
  min-height: 420px;
  padding: 16px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--team-secondary) 98%, white) 0%, color-mix(in srgb, var(--team-primary) 50%, white) 42%, color-mix(in srgb, var(--team-deep) 18%, white) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 26px 54px rgba(9, 21, 43, 0.2);
}

.player-preview__glow {
  position: absolute;
  inset: auto -10% -20% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--team-accent) 42%, transparent), transparent 68%);
  pointer-events: none;
}

.player-preview__topline,
.player-preview__footer,
.player-detail__headline-meta,
.player-detail__status-stack,
.detail-source-list,
.player-detail__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 6;
}

.player-preview__topline {
  position: relative;
  z-index: 2;
}

.player-preview__badge,
.player-preview__id,
.detail-status,
.detail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-preview__badge {
  background: rgba(255, 255, 255, 0.86);
  color: var(--team-deep);
}

.player-preview__id {
  margin-left: auto;
  background: rgba(9, 20, 42, 0.84);
  color: white;
}

.player-preview__media {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: end center;
  min-height: 190px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.68), transparent 54%);
}

.player-preview__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.player-preview__placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: rgba(9, 20, 42, 0.72);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    repeating-linear-gradient(135deg, rgba(9, 20, 42, 0.06) 0 10px, rgba(255, 255, 255, 0.16) 10px 20px);
}

.player-preview__placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  line-height: 1;
}

.player-preview__placeholder small {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.player-preview__meta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
}

.player-preview__country {
  margin: 0;
  color: rgba(9, 20, 42, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.player-preview__meta h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.player-preview__footer {
  color: rgba(9, 20, 42, 0.7);
  font-size: 0.92rem;
  font-weight: 800;
}

.player-preview__source {
  justify-self: start;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.player-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-right: 38px;
}

.player-detail__header h3 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.player-detail__headline-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.player-detail__status-stack {
  justify-content: end;
}

.detail-status {
  color: white;
  background: rgba(9, 20, 42, 0.88);
}

.detail-status--owned {
  background: rgba(0, 130, 92, 0.92);
}

.detail-status--duplicate {
  background: rgba(211, 161, 47, 0.94);
  color: #3a2700;
}

.detail-status--missing {
  background: rgba(201, 78, 83, 0.94);
}

.detail-status--untracked {
  background: rgba(118, 130, 153, 0.92);
}

.player-detail__section {
  display: grid;
  gap: 8px;
  padding-top: 0;
}

.player-detail__section-head {
  display: grid;
  gap: 2px;
}

.player-detail__section-head h4,
.detail-stats-group h5 {
  margin: 0;
}

.detail-stats-group {
  display: grid;
  gap: 6px;
}

.detail-stats-group h5 {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.detail-stat-card,
.detail-intel-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(16, 34, 59, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 20px rgba(10, 34, 62, 0.06);
}

.detail-stat-card span,
.detail-intel-card span,
.detail-region-meta,
.detail-intelligence-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-stat-card strong,
.detail-intel-card strong {
  font-size: 0.98rem;
}

.detail-chip {
  justify-self: start;
  background: rgba(13, 45, 98, 0.08);
  color: var(--muted);
}

.detail-chip--muted {
  background: rgba(118, 130, 153, 0.12);
}

.detail-source-list a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(13, 45, 98, 0.06);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.detail-intelligence-note,
.detail-region-meta {
  margin: 0;
}

.player-detail__actions {
  padding-top: 0;
}

.player-detail-loading {
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 340px;
  padding: 48px 28px;
  text-align: center;
}

.reveal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 12px;
}

.capture-mobile {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.capture-photo-entry {
  display: grid;
  gap: 10px;
}

.capture-photo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.camera-picker {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(13, 45, 98, 0.18);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.camera-picker__title {
  font-weight: 800;
}

.camera-preview {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(24, 21, 17, 0.08);
  max-height: 240px;
}

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

.quick-add-actions,
.filter-bar,
.legend,
.sticker-card__meta,
.state-actions,
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-bar input {
  min-width: 260px;
}

.sticker-toolbar {
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.notebook-controls,
.notebook-summary {
  display: grid;
  gap: 14px;
}

.notebook-controls {
  grid-auto-flow: column;
  align-items: center;
  justify-content: end;
}

.sticker-panel {
  padding: 0;
  overflow: visible;
}

.sticker-panel__top {
  display: grid;
  gap: 18px;
  padding: 22px 22px 0;
}

.album-book-stage {
  position: relative;
  min-height: min(74vh, 860px);
  padding: 10px 72px 14px;
}

.album-book {
  display: grid;
  min-height: inherit;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  touch-action: pan-y;
}

.album-book-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.92);
  color: white;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%);
}

.album-book-arrow:disabled {
  opacity: 0.38;
  cursor: default;
}

.album-book-arrow--prev {
  left: 10px;
}

.album-book-arrow--next {
  right: 10px;
}

.team-page {
  --team-primary: #34c8f2;
  --team-secondary: #ffffff;
  --team-accent: #00c98b;
  --team-deep: #0d2d62;
}

.team-page__surface {
  position: relative;
  min-height: 560px;
  padding: 16px 16px 14px;
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 25%, color-mix(in srgb, var(--team-deep) 92%, black) 25.5%, color-mix(in srgb, var(--team-deep) 88%, black) 100%);
  box-shadow: inset 0 0 0 1px rgba(16, 34, 59, 0.08), var(--shadow-lg);
}

.team-page__surface--album-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-page__surface--specials {
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(240, 246, 255, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 25%, color-mix(in srgb, var(--team-deep) 92%, black) 25.5%, color-mix(in srgb, var(--team-deep) 88%, black) 100%);
}

.team-page__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 72%, color-mix(in srgb, var(--team-accent) 55%, transparent) 0%, transparent 26%),
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--team-primary) 28%, transparent) 0%, transparent 16%),
    radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--team-accent) 20%, transparent) 0%, transparent 18%);
  pointer-events: none;
}

.team-page__hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.team-page__hero--specials {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(16, 34, 59, 0.08);
}

.team-page__eyebrow {
  margin: 0 0 4px;
  color: color-mix(in srgb, var(--team-accent) 72%, #ff5f35);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-page__headline h4 {
  max-width: 11ch;
  margin: 0;
  color: var(--team-deep);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.team-page__meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: rgba(16, 34, 59, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
}

.mini-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 26px;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(16, 34, 59, 0.14);
  box-shadow: 0 8px 14px rgba(13, 45, 98, 0.08);
  background: white;
}

.mini-flag img {
  display: block;
  width: 100%;
  height: 100%;
}

.team-page__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--team-primary);
  color: var(--team-deep);
  box-shadow: 0 8px 18px rgba(13, 45, 98, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-page__score {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 228px;
}

.team-page__metric {
  padding: 8px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.team-page__metric strong {
  display: block;
  font-size: 0.96rem;
}

.team-page__metric span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-page__watermark {
  position: absolute;
  left: 20px;
  bottom: 22px;
  z-index: 1;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(7rem, 18vw, 12rem);
  line-height: 0.85;
  color: color-mix(in srgb, var(--team-accent) 36%, transparent);
  letter-spacing: -0.06em;
  pointer-events: none;
}

.team-page__ribbon {
  position: absolute;
  pointer-events: none;
}

.team-page__ribbon--top {
  top: 0;
  left: 18%;
  width: 60%;
  height: 54px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--team-secondary) 88%, transparent), color-mix(in srgb, var(--team-primary) 88%, transparent), color-mix(in srgb, var(--team-accent) 88%, transparent));
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.team-page__ribbon--mid {
  top: 96px;
  left: 18%;
  width: 58%;
  height: 58px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--team-secondary) 74%, transparent), color-mix(in srgb, var(--team-primary) 90%, transparent));
  clip-path: polygon(0 0, 100% 0, 68% 100%, 12% 100%);
}

.team-page__ribbon--corner {
  right: -28px;
  top: 0;
  width: 104px;
  height: 100%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--team-accent) 70%, white), color-mix(in srgb, var(--team-primary) 36%, white));
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.72;
}

.team-page__slots {
  position: relative;
  z-index: 2;
  height: calc(100% - 278px);
  margin-top: 18px;
}

.team-page__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.team-page__content--specials {
  gap: 12px;
}

.team-page__specials-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.team-page__sticker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.team-page__sticker-grid--group {
  align-items: stretch;
}

.group-page-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(16, 34, 59, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.92));
  box-shadow: 0 12px 18px rgba(10, 34, 62, 0.12);
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.group-page-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(10, 34, 62, 0.16);
}

.group-page-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.group-page-card__meta {
  color: rgba(16, 34, 59, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.team-page__sticker-grid--album-view .sticker-card--compact {
  min-height: 230px;
}

.team-page__slots--grid {
  display: grid;
  grid-template-columns: repeat(var(--slot-columns, 5), minmax(0, 1fr));
  grid-template-rows: repeat(var(--slot-rows, 4), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  align-content: stretch;
  align-items: stretch;
}

.team-page__slot {
  position: absolute;
}

.team-page__slots--grid .team-page__slot {
  position: static;
  min-height: 0;
  height: 100%;
}

.team-page__slot .sticker-card {
  width: 100%;
  height: 100%;
}

.team-page__fixture-strip {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 3;
  display: grid;
  gap: 6px;
  width: min(52%, 520px);
  margin: 2px auto 0;
  transform: none;
}

.team-page__fixture-pill {
  justify-self: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(6, 8, 16, 0.92);
  color: white;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
}

.team-page__fixture-flags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.team-page__fixture-team,
.team-page__fixture-copy {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.92);
  color: var(--team-deep);
  border: 1px solid rgba(9, 27, 52, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px rgba(10, 34, 62, 0.12);
}

.team-page__fixture-team {
  border: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
}

.team-page__fixture-team strong {
  grid-column: 2;
  font-size: 0.88rem;
}

.team-page__fixture-team span,
.team-page__fixture-copy {
  font-size: 0.72rem;
  line-height: 1.3;
}

.team-page__fixture-team .mini-flag {
  grid-row: 1 / span 2;
}

.team-page__fixture-team.is-active {
  background: color-mix(in srgb, var(--team-accent) 24%, rgba(255, 255, 255, 0.88));
  border-color: color-mix(in srgb, var(--team-accent) 42%, white);
}

.team-page--flip-next .team-page__surface {
  animation: teamPageSlideNext 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.team-page--flip-prev .team-page__surface {
  animation: teamPageSlidePrev 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.team-page--flip-fade .team-page__surface {
  animation: teamPageFade 260ms ease;
}

.legend {
  color: var(--muted);
  font-size: 0.9rem;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.swatch--missing {
  background: var(--red);
}

.swatch--owned {
  background: var(--emerald);
}

.swatch--duplicate {
  background: var(--orange);
}

.swatch--untracked {
  background: var(--untracked);
}

.sticker-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.sticker-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.sticker-card {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(25, 181, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 250, 0.94));
  border: 1px solid rgba(205, 226, 255, 0.16);
  box-shadow: 0 16px 28px rgba(4, 14, 28, 0.1);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.sticker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(4, 14, 28, 0.14);
}

.sticker-card--compact {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(72px, 1fr) minmax(26px, auto) auto;
  gap: 4px;
  padding: 6px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(243, 236, 226, 0.96));
  border: 3px solid color-mix(in srgb, var(--team-secondary) 48%, rgba(9, 27, 52, 0.08));
  box-shadow: 0 10px 18px rgba(10, 34, 62, 0.12);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
}

.sticker-card--compact:hover {
  transform: translateY(-6px) rotateX(3deg) rotateY(-2.5deg);
  box-shadow: 0 24px 34px rgba(8, 18, 35, 0.18);
  filter: saturate(1.05);
}

.sticker-card--compact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.22) 48%, transparent 78%);
  transform: translateX(-135%);
  pointer-events: none;
}

.sticker-card--compact:hover::before {
  animation: chromeSweep 780ms ease;
}

.sticker-card--category-team {
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "top top"
    "art name"
    "art footer";
  align-items: stretch;
  gap: 4px 8px;
  padding: 6px;
}

.sticker-card--category-team .sticker-card__top {
  grid-area: top;
}

.sticker-card--category-team .sticker-card__art,
.sticker-card--category-team .sticker-card__art-photo {
  grid-area: art;
  min-height: 54px;
  height: 100%;
  aspect-ratio: auto;
  align-self: stretch;
}

.sticker-card--category-team .sticker-card__name {
  grid-area: name;
  align-self: center;
  font-size: 0.88rem;
  line-height: 0.94;
  min-height: 0;
}

.sticker-card--category-team .sticker-card__compact-footer {
  grid-area: footer;
  align-self: end;
}

.sticker-card--category-logo .sticker-card__art,
.sticker-card--category-logo .sticker-card__art-photo {
  min-height: 76px;
  max-height: 76px;
}

.sticker-card--category-logo .sticker-card__art {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 52%),
    linear-gradient(135deg, color-mix(in srgb, var(--team-primary) 22%, white), color-mix(in srgb, var(--team-accent) 18%, white));
}

.sticker-card--category-logo .sticker-card__art::before {
  inset: 14% 22%;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.16)),
    linear-gradient(135deg, color-mix(in srgb, var(--team-primary) 62%, white), color-mix(in srgb, var(--team-deep) 30%, white));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.42),
    0 8px 18px rgba(9, 20, 42, 0.18);
}

.sticker-card--category-logo .sticker-card__art::after {
  inset: 30% 34%;
  left: 34%;
  right: 34%;
  bottom: auto;
  height: 18%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.sticker-card--category-team .sticker-card__art {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, color-mix(in srgb, var(--team-primary) 18%, white), color-mix(in srgb, var(--team-accent) 14%, white));
}

.sticker-card--category-team .sticker-card__art::before {
  inset: auto 10% 16% 10%;
  height: 34%;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.16)),
    linear-gradient(90deg, color-mix(in srgb, var(--team-primary) 22%, white), color-mix(in srgb, var(--team-secondary) 28%, white));
}

.sticker-card--category-team .sticker-card__art::after {
  left: 10%;
  right: 10%;
  bottom: auto;
  top: 14%;
  height: 14%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(90deg, rgba(13, 45, 98, 0.08) 0 10px, rgba(255, 255, 255, 0.18) 10px 20px);
}

.sticker-card--category-team-badge .sticker-card__art,
.sticker-card--category-team-photo .sticker-card__art {
  min-height: 118px;
}

.sticker-card--category-player .sticker-card__art {
  min-height: 90px;
}

.sticker-card--compact.sticker-card--category-player .sticker-card__art {
  min-height: 74px;
  aspect-ratio: 1 / 1;
}

.sticker-card--compact.sticker-card--category-logo,
.sticker-card--compact.sticker-card--category-team {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(72px, 1fr) minmax(26px, auto) auto;
  grid-template-areas: none;
  gap: 4px;
  padding: 6px;
}

.sticker-card--compact.sticker-card--category-team .sticker-card__top,
.sticker-card--compact.sticker-card--category-team .sticker-card__art,
.sticker-card--compact.sticker-card--category-team .sticker-card__art-photo,
.sticker-card--compact.sticker-card--category-team .sticker-card__name,
.sticker-card--compact.sticker-card--category-team .sticker-card__compact-footer {
  grid-area: auto;
}

.sticker-card--compact.sticker-card--category-logo .sticker-card__art,
.sticker-card--compact.sticker-card--category-logo .sticker-card__art-photo,
.sticker-card--compact.sticker-card--category-team .sticker-card__art,
.sticker-card--compact.sticker-card--category-team .sticker-card__art-photo {
  min-height: 74px;
  max-height: none;
  aspect-ratio: 1 / 1;
  align-self: stretch;
}

.sticker-card--compact.sticker-card--category-logo .sticker-card__name,
.sticker-card--compact.sticker-card--category-team .sticker-card__name {
  min-height: 24px;
  align-self: start;
  font-size: 0.82rem;
  line-height: 1.02;
}

.sticker-card--compact.sticker-card--category-logo .sticker-card__photo {
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.sticker-card--compact.sticker-card--category-team .sticker-card__photo {
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.sticker-card--compact h5,
.sticker-card__name {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.01em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-wrap: pretty;
  color: var(--team-deep);
  font-weight: 800;
  text-transform: uppercase;
}

.sticker-card--compact .sticker-card__name {
  align-self: start;
}

.sticker-card--compact .sticker-card__meta {
  gap: 6px;
  justify-content: flex-start;
}

.sticker-card--compact .sticker-type {
  padding: 3px 5px;
  font-size: 0.52rem;
}

.sticker-card--category-player .sticker-card__name {
  font-size: 0.82rem;
  line-height: 1.02;
  min-height: 24px;
}

.sticker-card--category-logo .sticker-type,
.sticker-card--category-team .sticker-type {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sticker-card--category-team-badge .sticker-card__name,
.sticker-card--category-team-photo .sticker-card__name {
  font-size: 1.02rem;
}

.sticker-card__compact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 0;
  min-height: 16px;
}

.sticker-card__compact-state,
.sticker-card__compact-qty {
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sticker-card__compact-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  min-height: 16px;
  border-radius: 6px;
  background: rgba(9, 27, 52, 0.08);
}

.sticker-card--fresh {
  animation: stickerPasteIn 900ms cubic-bezier(0.2, 0.9, 0.2, 1);
  transform-origin: center;
}

.sticker-card--fresh::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--team-accent) 72%, white);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--team-accent) 16%, transparent);
  animation: stickerGlowOut 1200ms ease-out forwards;
  pointer-events: none;
}

@keyframes teamPageSlideNext {
  from {
    opacity: 0;
    transform: translateX(48px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes teamPageSlidePrev {
  from {
    opacity: 0;
    transform: translateX(-48px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes teamPageFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: saturate(0.82);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes heroAccentFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-12px, 10px, 0) scale(1.04);
  }
}

@keyframes heroStickerThrowLead {
  0% {
    opacity: 0;
    transform: translate3d(-180px, -180px, 0) rotate(-34deg) scale(0.62);
  }
  58% {
    opacity: 1;
    transform: translate3d(20px, 18px, 0) rotate(-12deg) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-16deg) scale(1);
  }
}

@keyframes heroStickerThrowRight {
  0% {
    opacity: 0;
    transform: translate3d(180px, -140px, 0) rotate(28deg) scale(0.68);
  }
  62% {
    opacity: 1;
    transform: translate3d(-18px, 14px, 0) rotate(8deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(14deg) scale(1);
  }
}

@keyframes heroStickerThrowBottom {
  0% {
    opacity: 0;
    transform: translate3d(130px, 160px, 0) rotate(18deg) scale(0.72);
  }
  60% {
    opacity: 1;
    transform: translate3d(-16px, -14px, 0) rotate(4deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(7deg) scale(1);
  }
}

@keyframes heroStickerThrowMini {
  0% {
    opacity: 0;
    transform: translate3d(0, -220px, 0) rotate(-28deg) scale(0.58);
  }
  62% {
    opacity: 1;
    transform: translate3d(12px, 16px, 0) rotate(-8deg) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-12deg) scale(1);
  }
}

@keyframes heroStickerThrowTop {
  0% {
    opacity: 0;
    transform: translate3d(50px, -190px, 0) rotate(-22deg) scale(0.66);
  }
  58% {
    opacity: 1;
    transform: translate3d(-10px, 10px, 0) rotate(-2deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(1);
  }
}

@keyframes heroStickerThrowEdge {
  0% {
    opacity: 0;
    transform: translate3d(200px, 20px, 0) rotate(-32deg) scale(0.62);
  }
  58% {
    opacity: 1;
    transform: translate3d(-12px, -10px, 0) rotate(-14deg) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-18deg) scale(1);
  }
}

@keyframes heroCardFloatA {
  0% {
    transform: rotate(-16deg) translateY(0);
  }
  100% {
    transform: rotate(-13deg) translateY(-8px);
  }
}

@keyframes heroCardFloatB {
  0% {
    transform: rotate(14deg) translateY(8px);
  }
  100% {
    transform: rotate(11deg) translateY(-6px);
  }
}

@keyframes heroCardFloatC {
  0% {
    transform: rotate(7deg) translateY(0);
  }
  100% {
    transform: rotate(10deg) translateY(-6px);
  }
}

@keyframes heroCardFloatD {
  0% {
    transform: rotate(-12deg) translateY(0);
  }
  100% {
    transform: rotate(-9deg) translateY(-8px);
  }
}

@keyframes heroTokenPop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.9) rotate(calc(var(--token-rotate) - 6deg));
  }
  72% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02) rotate(calc(var(--token-rotate) + 2deg));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--token-rotate));
  }
}

@keyframes heroTickerEnter {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-7deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-7deg);
  }
}

@keyframes tickerRun {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-120px);
  }
}

@keyframes surfaceRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statLift {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stripeShift {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 180% 0;
  }
}

@keyframes chromeSweep {
  from {
    transform: translateX(-135%);
  }
  to {
    transform: translateX(135%);
  }
}

@keyframes cornerPulse {
  0% {
    opacity: 0.72;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes stickerPasteIn {
  0% {
    opacity: 0;
    transform: scale(1.16) rotate(-7deg);
    filter: saturate(0.6);
  }
  42% {
    opacity: 1;
    transform: scale(0.94) rotate(2deg);
  }
  72% {
    transform: scale(1.03) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: saturate(1);
  }
}

@keyframes stickerGlowOut {
  0% {
    opacity: 1;
    transform: scale(0.96);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

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

  .sticker-card--compact:hover,
  .album-card:hover,
  .team-row:hover {
    transform: none;
  }
}

.sticker-card--compact .sticker-card__top {
  align-items: center;
}

.sticker-card__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  border-radius: 6px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--team-primary) 16%, white), color-mix(in srgb, var(--team-accent) 18%, white));
  border: 1px solid rgba(9, 27, 52, 0.1);
  overflow: hidden;
}

.sticker-card__art-photo {
  position: relative;
  display: grid;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(9, 27, 52, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(6, 12, 24, 0.12)),
    linear-gradient(180deg, color-mix(in srgb, var(--team-primary) 16%, white), color-mix(in srgb, var(--team-accent) 18%, white));
}

.sticker-card__photo {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 4px;
  object-fit: cover;
  object-position: center 14%;
  z-index: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: transform 260ms ease;
}

.sticker-card--compact:hover .sticker-card__photo {
  transform: scale(1.035);
}

.sticker-card--category-logo .sticker-card__photo {
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.sticker-card--category-team .sticker-card__photo {
  object-fit: cover;
  object-position: center;
}

.sticker-card--category-intro .sticker-card__photo,
.sticker-card--category-history .sticker-card__photo {
  object-fit: contain;
  object-position: center;
  padding: 6px;
}

.sticker-card__art-photo::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 28%, rgba(7, 13, 26, 0) 58%, rgba(7, 13, 26, 0.26) 100%);
  z-index: 1;
}

.sticker-card__art::before {
  content: "";
  position: absolute;
  inset: 9% 22% 28% 22%;
  border-radius: 999px 999px 46% 46%;
  background: color-mix(in srgb, var(--team-deep) 12%, white);
}

.sticker-card__art::after {
  content: "";
  position: absolute;
  left: 26%;
  right: 26%;
  bottom: 9%;
  height: 34%;
  border-radius: 999px 999px 26px 26px;
  background: color-mix(in srgb, var(--team-deep) 16%, white);
}

.sticker-card__art span {
  position: relative;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 24px;
}

.sticker-card--category-player .sticker-card__art span {
  margin-top: 0;
}

.sticker-card__art-photo span {
  display: none;
}

.sticker-card--owned .sticker-card__art::before,
.sticker-card--owned .sticker-card__art::after,
.sticker-card--duplicate .sticker-card__art::before,
.sticker-card--duplicate .sticker-card__art::after {
  opacity: 0;
}

.sticker-card--owned .sticker-card__art-photo::after,
.sticker-card--duplicate .sticker-card__art-photo::after {
  opacity: 1;
}

.sticker-card--owned .sticker-card__art,
.sticker-card--duplicate .sticker-card__art {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(6, 12, 24, 0.12)),
    linear-gradient(180deg, color-mix(in srgb, var(--team-primary) 16%, white), color-mix(in srgb, var(--team-accent) 18%, white));
}

.sticker-card--owned .sticker-card__art span,
.sticker-card--duplicate .sticker-card__art span {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(9, 21, 43, 0.16);
}

.sticker-card--compact .sticker-code {
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.56rem;
  opacity: 0.72;
}

.sticker-card--compact .sticker-status {
  font-size: 0.58rem;
}

.sticker-card--compact .sticker-status {
  font-size: 0.56rem;
  text-align: right;
}

.sticker-card--compact .sticker-card__footer {
  margin-top: 0;
  align-items: flex-end;
}

.sticker-card--compact .sticker-type {
  max-width: calc(100% - 36px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sticker-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(59, 40, 19, 0.12);
}

.sticker-card--missing {
  border-color: rgba(185, 72, 54, 0.22);
}

.sticker-card--owned {
  border-color: rgba(13, 107, 86, 0.22);
}

.sticker-card--duplicate {
  border-color: rgba(201, 107, 40, 0.28);
}

.sticker-card--untracked {
  border-color: rgba(201, 189, 168, 0.9);
}

.sticker-card__top,
.sticker-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sticker-code {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 45, 98, 0.08);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.sticker-status {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sticker-status--missing {
  color: var(--red);
}

.sticker-status--owned {
  color: var(--emerald);
}

.sticker-status--duplicate {
  color: var(--orange);
}

.sticker-status--untracked {
  color: var(--muted-soft);
}

.sticker-card h5 {
  margin: 14px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.sticker-type {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(52, 200, 242, 0.12);
  color: var(--muted);
  font-size: 0.84rem;
}

.state-button {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(13, 45, 98, 0.06);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.state-button.is-active {
  background: linear-gradient(135deg, #0d2d62, #1466d8 58%, #00c98b 100%);
  color: white;
}

.quantity-button {
  width: 29px;
  height: 29px;
  border-radius: 999px;
  background: rgba(13, 45, 98, 0.08);
  font-weight: 900;
}

.quantity-value {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
}

.empty-state {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed rgba(24, 21, 17, 0.14);
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1160px) {
  .content-grid,
  .content-grid--league,
  .stats-grid,
  .reveal-grid,
  .album-card__stats,
  .player-detail-modal__layout {
    grid-template-columns: 1fr;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .hero__copy {
    min-height: 0;
    padding: 34px;
  }

  .hero__visual {
    width: 100%;
    min-height: 470px;
  }

  .hero__sticker--lead {
    width: 40%;
    min-height: 344px;
  }

  .hero__sticker--mini {
    left: 40%;
    width: 19%;
    min-height: 152px;
    bottom: 8%;
  }

  .hero__token--logo {
    left: 30%;
  }

  .hero__ticker {
    bottom: 106px;
  }

  .auth-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-height: none;
    margin: 0;
    transform: none;
  }

  .dashboard-top,
  .panel__header--spread,
  .capture-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .top-nav {
    width: 100%;
  }

  .spotlight-metrics,
  .league-card__stats,
  .league-card__trade,
  .regional-card__stats,
  .team-page__score,
  .detail-stats-grid,
  .detail-intelligence-grid {
    grid-template-columns: 1fr;
  }

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

  .team-page__specials-grid {
    grid-template-columns: 1fr;
  }

  .team-page__sticker-grid--album-view .sticker-card--category-team-badge,
  .team-page__sticker-grid--album-view .sticker-card--category-team-photo {
    grid-column: span 2;
  }

  .team-page__fixture-flags {
    grid-template-columns: 1fr 1fr;
  }

  .player-detail-modal__preview {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 34, 59, 0.08);
  }

  .player-preview__card {
    min-height: 0;
  }
}

@media (min-width: 1161px) and (max-width: 1500px) {
  .team-page__sticker-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 781px) and (max-width: 1160px) {
  body:not(.is-authenticated) .hero {
    min-height: 100svh;
    padding: 14px;
    overflow: hidden;
  }

  body:not(.is-authenticated) .hero__copy {
    min-height: calc(100svh - 28px);
    display: grid;
    justify-items: center;
    align-content: start;
    padding: 22px 22px 26px;
    text-align: center;
  }

  body:not(.is-authenticated) .hero__brand-mark {
    display: none;
  }

  body:not(.is-authenticated) .hero__masthead {
    justify-content: center;
    max-width: none;
    margin-bottom: 8px;
  }

  body:not(.is-authenticated) .hero h1 {
    max-width: none;
    font-size: clamp(3.4rem, 10vw, 5.4rem);
    line-height: 0.9;
  }

  body:not(.is-authenticated) .hero__lede,
  body:not(.is-authenticated) .hero__pills {
    margin-inline: auto;
    justify-content: center;
  }

  body:not(.is-authenticated) .hero__visual {
    position: absolute;
    inset: 20% 0 8%;
    min-height: 0;
    margin: 0;
    padding: 0;
    z-index: 4;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 14%, rgba(0, 0, 0, 0) 30% 70%, rgba(0, 0, 0, 1) 86% 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 14%, rgba(0, 0, 0, 0) 30% 70%, rgba(0, 0, 0, 1) 86% 100%);
  }

  body:not(.is-authenticated) .hero__backdrop {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0 100%);
  }

  body:not(.is-authenticated) .hero__backdrop-line--a,
  body:not(.is-authenticated) .hero__backdrop-line--b,
  body:not(.is-authenticated) .hero__backdrop-line--c,
  body:not(.is-authenticated) .hero__backdrop-line--d {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 18%, rgba(0, 0, 0, 0) 32% 68%, rgba(0, 0, 0, 1) 82% 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 18%, rgba(0, 0, 0, 0) 32% 68%, rgba(0, 0, 0, 1) 82% 100%);
  }

  body:not(.is-authenticated) .hero__copy::after {
    right: -180px;
    top: -88px;
    opacity: 0.44;
  }

  body:not(.is-authenticated) .auth-card {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: min(62vw, 400px);
    max-height: none;
    margin: 16px 0 0;
    padding: 10px 0 0;
    overflow: visible;
    transform: none;
    z-index: 18;
  }

  body:not(.is-authenticated) .auth-card__intro,
  body:not(.is-authenticated) .auth-tabs,
  body:not(.is-authenticated) .auth-divider,
  body:not(.is-authenticated) .auth-demo-button {
    text-align: center;
  }

  body:not(.is-authenticated) .auth-card__highlights {
    justify-content: center;
  }

  body:not(.is-authenticated) .auth-card__intro,
  body:not(.is-authenticated) .auth-card__highlights {
    display: none;
  }

  body:not(.is-authenticated) .hero__flags,
  body:not(.is-authenticated) .hero__microcopy {
    position: absolute;
    left: 20px;
    right: 20px;
    justify-content: center;
    max-width: none;
    margin: 0;
  }

  body:not(.is-authenticated) .hero__flags {
    bottom: 62px;
  }

  body:not(.is-authenticated) .hero__microcopy {
    bottom: 24px;
  }

  body:not(.is-authenticated) .hero__ticker {
    display: none;
  }

  body:not(.is-authenticated) .hero__sticker--lead {
    left: -2%;
    bottom: 2%;
    width: 32%;
    min-height: 244px;
  }

  body:not(.is-authenticated) .hero__sticker--right {
    right: 4%;
    top: 12%;
    width: 20%;
    min-height: 170px;
  }

  body:not(.is-authenticated) .hero__sticker--bottom {
    right: -2%;
    bottom: 2%;
    width: 26%;
    min-height: 148px;
  }

  body:not(.is-authenticated) .hero__sticker--mini {
    left: 10%;
    bottom: 20%;
    width: 13%;
    min-height: 84px;
  }

  body:not(.is-authenticated) .hero__sticker--top {
    left: 72%;
    top: 14%;
    width: 14%;
    min-height: 110px;
  }

  body:not(.is-authenticated) .hero__sticker--left-top {
    left: 14%;
    top: 16%;
    width: 11%;
    min-height: 82px;
  }

  body:not(.is-authenticated) .hero__sticker--far-right {
    right: 6%;
    top: 43%;
    width: 11%;
    min-height: 84px;
  }

  body:not(.is-authenticated) .hero__sticker--center-small {
    left: 66%;
    bottom: 14%;
    width: 10%;
    min-height: 72px;
  }

  body:not(.is-authenticated) .hero__sticker--edge {
    right: 15%;
    bottom: 16%;
    width: 10%;
    min-height: 68px;
  }

  body:not(.is-authenticated) .hero__token--logo,
  body:not(.is-authenticated) .hero__token--trade,
  body:not(.is-authenticated) .hero__token--score {
    display: none;
  }

  body:not(.is-authenticated) .hero__token--badge {
    left: 10%;
    right: auto;
    top: 48%;
  }

  body:not(.is-authenticated) .hero__token--region {
    left: auto;
    right: 10%;
    bottom: 24%;
  }
}

@media (max-width: 780px) and (hover: none), (max-width: 780px) and (pointer: coarse) {
  body:not(.is-authenticated) .hero {
    min-height: 100svh;
    padding: 10px;
    overflow: hidden;
  }

  body:not(.is-authenticated) .hero__copy {
    min-height: calc(100svh - 20px);
    display: grid;
    justify-items: center;
    align-content: start;
    padding: 18px 18px 26px;
    text-align: center;
  }

  body:not(.is-authenticated) .hero__brand-mark {
    display: none;
  }

  body:not(.is-authenticated) .hero__masthead {
    justify-content: center;
    max-width: none;
    margin-bottom: 8px;
  }

  body:not(.is-authenticated) .hero__masthead .eyebrow {
    font-size: 1rem;
  }

  body:not(.is-authenticated) .hero h1 {
    max-width: none;
    font-size: clamp(2.9rem, 14vw, 4.3rem);
    line-height: 0.9;
  }

  body:not(.is-authenticated) .hero__lede {
    margin-inline: auto;
  }

  body:not(.is-authenticated) .hero__pills {
    justify-content: center;
    margin-top: 8px;
  }

  body:not(.is-authenticated) .hero__visual {
    position: absolute;
    inset: 15% 0 7%;
    min-height: 0;
    margin: 0;
    padding: 0;
    z-index: 4;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 12%, rgba(0, 0, 0, 0) 28% 72%, rgba(0, 0, 0, 1) 88% 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 12%, rgba(0, 0, 0, 0) 28% 72%, rgba(0, 0, 0, 1) 88% 100%);
  }

  body:not(.is-authenticated) .hero__backdrop-line--a,
  body:not(.is-authenticated) .hero__backdrop-line--b,
  body:not(.is-authenticated) .hero__backdrop-line--c,
  body:not(.is-authenticated) .hero__backdrop-line--d {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 16%, rgba(0, 0, 0, 0) 30% 70%, rgba(0, 0, 0, 1) 84% 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 16%, rgba(0, 0, 0, 0) 30% 70%, rgba(0, 0, 0, 1) 84% 100%);
  }

  body:not(.is-authenticated) .hero__copy::after {
    right: -220px;
    top: -112px;
    opacity: 0.32;
  }

  body:not(.is-authenticated) .hero__flags,
  body:not(.is-authenticated) .hero__microcopy {
    position: absolute;
    left: 16px;
    right: 16px;
    justify-content: center;
  }

  body:not(.is-authenticated) .hero__flags {
    bottom: 54px;
    margin-top: 0;
  }

  body:not(.is-authenticated) .hero__microcopy {
    bottom: 18px;
    margin: 0;
    max-width: none;
  }

  body:not(.is-authenticated) .hero__ticker {
    display: none;
  }

  body:not(.is-authenticated) .auth-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(88vw, 390px);
    max-height: none;
    margin: 14px 0 0;
    padding: 8px 0 0;
    overflow: visible;
    transform: none;
    z-index: 18;
  }

  body:not(.is-authenticated) .auth-card__intro {
    text-align: center;
    margin-bottom: 10px;
  }

  body:not(.is-authenticated) .auth-card__intro p,
  body:not(.is-authenticated) .auth-card__highlights {
    display: none;
  }

  body:not(.is-authenticated) .auth-card__intro h2 {
    font-size: 1.14rem;
  }

  body:not(.is-authenticated) .hero__sticker--lead {
    left: -4%;
    bottom: 10%;
    width: 40%;
    min-height: 220px;
  }

  body:not(.is-authenticated) .hero__sticker--right {
    right: -3%;
    top: 18%;
    width: 30%;
    min-height: 182px;
  }

  body:not(.is-authenticated) .hero__sticker--bottom {
    right: 12%;
    bottom: -2%;
    width: 34%;
    min-height: 164px;
  }

  body:not(.is-authenticated) .hero__sticker--mini {
    left: 8%;
    bottom: 31%;
    width: 19%;
    min-height: 96px;
  }

  body:not(.is-authenticated) .hero__sticker--top {
    left: 64%;
    top: 8%;
    width: 20%;
    min-height: 132px;
  }

  body:not(.is-authenticated) .hero__sticker--edge {
    right: 8%;
    bottom: 15%;
    width: 15%;
    min-height: 82px;
  }

  body:not(.is-authenticated) .hero__sticker--left-top {
    left: 10%;
    top: 12%;
    width: 15%;
    min-height: 94px;
  }

  body:not(.is-authenticated) .hero__sticker--far-right {
    right: 2%;
    top: 44%;
    width: 16%;
    min-height: 104px;
    display: block;
  }

  body:not(.is-authenticated) .hero__sticker--center-small {
    left: 68%;
    bottom: 29%;
    width: 13%;
    min-height: 84px;
    display: block;
  }

  body:not(.is-authenticated) .hero__token--logo,
  body:not(.is-authenticated) .hero__token--trade,
  body:not(.is-authenticated) .hero__token--score {
    display: none;
  }

  body:not(.is-authenticated) .hero__token--badge {
    left: 11%;
    right: auto;
    top: 48%;
  }

  body:not(.is-authenticated) .hero__token--region {
    left: auto;
    right: 9%;
    bottom: 26%;
  }

  #sticker-insight-overlay {
    place-items: start center;
    overflow-y: auto;
    padding:
      max(12px, env(safe-area-inset-top, 0px))
      12px
      max(24px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  }

  body.is-authenticated {
    padding: 14px;
  }

  .hero__copy,
  .auth-card,
  .panel,
  .stat-card,
  .capture-card {
    border-radius: 24px;
  }

  .hero__copy {
    min-height: 0;
    padding: 26px;
  }

  .hero {
    padding: 14px;
  }

  .hero__brand-mark {
    right: -18px;
    top: 110px;
    font-size: clamp(3.6rem, 12vw, 5.6rem);
  }

  .hero__visual {
    width: 100%;
    min-height: 410px;
    padding: 18px 0 20px;
  }

  .hero__sticker--lead {
    width: 48%;
    min-height: 274px;
  }

  .hero__sticker--bottom {
    right: 1%;
    width: 42%;
  }

  .hero__sticker--mini {
    left: 40%;
    width: 22%;
    min-height: 118px;
    bottom: 8%;
  }

  .hero__sticker--top {
    left: 54%;
    width: 22%;
    min-height: 160px;
  }

  .hero__sticker--edge {
    width: 18%;
    min-height: 102px;
  }

  .hero__sticker--left-top {
    left: 12%;
    top: 11%;
    width: 16%;
    min-height: 118px;
  }

  .hero__sticker--far-right {
    right: -2%;
    top: 25%;
    width: 18%;
    min-height: 138px;
  }

  .hero__sticker--center-small {
    left: 60%;
    bottom: 30%;
    width: 13%;
    min-height: 96px;
  }

  .hero__token--logo {
    width: 70px;
    height: 96px;
    top: 22%;
    left: 29%;
  }

  .hero__token--badge,
  .hero__token--trade {
    font-size: 0.64rem;
    padding: 10px 11px;
  }

  .hero__token--region {
    left: 48%;
    bottom: 25%;
    font-size: 0.58rem;
  }

  .hero__token--score {
    right: 18%;
    bottom: 7%;
    font-size: 0.58rem;
  }

  .hero__flags {
    gap: 6px;
  }

  .hero__flags span {
    min-width: 50px;
    padding: 7px 9px;
    font-size: 0.7rem;
  }

  .hero__ticker {
    left: -5%;
    right: -5%;
    bottom: 76px;
    padding: 8px 14px;
    gap: 14px;
  }

  .hero__ticker span {
    font-size: 0.82rem;
  }

  .auth-card {
    overflow: visible;
    padding: 20px 18px 18px;
    margin: 0;
    transform: none;
    border-radius: 24px;
  }

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

  .auth-card__intro h2 {
    font-size: 1.3rem;
  }

  .hero__feature-list {
    gap: 8px;
  }

  .hero__masthead,
  .sticker-card__footer,
  .quick-add-actions,
  .filter-bar,
  .dashboard-actions,
  .request-card,
  .spotlight-card__top,
  .league-card__top,
  .regional-card__top,
  .album-card__top,
  .group-card {
    align-items: stretch;
    flex-direction: column;
  }

  .notebook-controls {
    grid-auto-flow: row;
  }

  .sticker-panel__top {
    padding: 20px 20px 0;
  }

  .album-book-stage {
    min-height: 0;
    padding: 12px 16px 18px;
  }

  .album-book-arrow {
    position: static;
    transform: none;
    width: 100%;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 16px;
  }

  .album-book-arrow--next {
    margin-top: 12px;
    margin-bottom: 0;
  }

  .team-page__surface {
    min-height: 0;
    padding: 22px;
  }

  .team-page__hero {
    flex-direction: column;
  }

  .team-page__score {
    min-width: 0;
    width: 100%;
  }

  .team-page__content {
    gap: 16px;
  }

  .team-page__sticker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .team-page__watermark {
    left: 18px;
    bottom: 40px;
    font-size: 7rem;
  }

  .player-detail-shell {
    width: 100%;
    max-height: calc(100dvh - 28px);
  }

  .player-detail-modal {
    border-radius: 24px;
    max-height: inherit;
  }

  .player-detail-modal__preview,
  .player-detail-modal__panel {
    padding: 20px;
  }

  .player-detail-modal__preview {
    padding-bottom: 10px;
  }

  .player-detail__header {
    padding-right: 52px;
    flex-direction: column;
  }

  .player-detail__status-stack {
    justify-content: flex-start;
  }

  .player-preview__card {
    min-height: 340px;
  }

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

  .group-member-form {
    grid-template-columns: 1fr;
  }

  .filter-bar input {
    min-width: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 3.2rem;
  }

  .sticker-grid,
  .sticker-grid--wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) and (hover: hover) and (pointer: fine) {
  body:not(.is-authenticated) .hero {
    min-height: 100svh;
    padding: 12px;
    overflow: hidden;
  }

  body:not(.is-authenticated) .hero__copy {
    min-height: calc(100svh - 24px);
    display: grid;
    justify-items: center;
    align-content: start;
    padding: 20px 20px 24px;
    text-align: center;
  }

  body:not(.is-authenticated) .hero__brand-mark {
    display: none;
  }

  body:not(.is-authenticated) .hero__masthead {
    justify-content: center;
    max-width: none;
    margin-bottom: 8px;
  }

  body:not(.is-authenticated) .hero h1 {
    max-width: none;
    font-size: clamp(3rem, 10vw, 4.8rem);
    line-height: 0.9;
  }

  body:not(.is-authenticated) .hero__lede,
  body:not(.is-authenticated) .hero__pills {
    margin-inline: auto;
    justify-content: center;
  }

  body:not(.is-authenticated) .hero__visual {
    position: absolute;
    inset: 15% 0 8%;
    min-height: 0;
    margin: 0;
    padding: 0;
    z-index: 4;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 14%, rgba(0, 0, 0, 0) 30% 70%, rgba(0, 0, 0, 1) 86% 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 14%, rgba(0, 0, 0, 0) 30% 70%, rgba(0, 0, 0, 1) 86% 100%);
  }

  body:not(.is-authenticated) .hero__backdrop-line--a,
  body:not(.is-authenticated) .hero__backdrop-line--b,
  body:not(.is-authenticated) .hero__backdrop-line--c,
  body:not(.is-authenticated) .hero__backdrop-line--d {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 18%, rgba(0, 0, 0, 0) 32% 68%, rgba(0, 0, 0, 1) 82% 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0 18%, rgba(0, 0, 0, 0) 32% 68%, rgba(0, 0, 0, 1) 82% 100%);
  }

  body:not(.is-authenticated) .hero__copy::after {
    right: -210px;
    top: -100px;
    opacity: 0.36;
  }

  body:not(.is-authenticated) .auth-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(74vw, 420px);
    max-height: none;
    margin: 16px 0 0;
    padding: 8px 0 0;
    overflow: visible;
    transform: none;
    z-index: 18;
  }

  body:not(.is-authenticated) .auth-card__intro,
  body:not(.is-authenticated) .auth-tabs,
  body:not(.is-authenticated) .auth-divider,
  body:not(.is-authenticated) .auth-demo-button,
  body:not(.is-authenticated) .auth-card__highlights {
    text-align: center;
    justify-content: center;
  }

  body:not(.is-authenticated) .hero__flags,
  body:not(.is-authenticated) .hero__microcopy {
    position: absolute;
    left: 18px;
    right: 18px;
    justify-content: center;
    max-width: none;
    margin: 0;
  }

  body:not(.is-authenticated) .hero__flags {
    bottom: 54px;
  }

  body:not(.is-authenticated) .hero__microcopy {
    bottom: 18px;
  }

  body:not(.is-authenticated) .hero__ticker {
    display: none;
  }

  body:not(.is-authenticated) .hero__sticker--lead {
    left: 4%;
    bottom: 12%;
    width: 27%;
    min-height: 220px;
  }

  body:not(.is-authenticated) .hero__sticker--right {
    right: 6%;
    top: 15%;
    width: 20%;
    min-height: 160px;
  }

  body:not(.is-authenticated) .hero__sticker--bottom {
    right: 13%;
    bottom: 4%;
    width: 22%;
    min-height: 138px;
  }

  body:not(.is-authenticated) .hero__sticker--mini {
    left: 16%;
    bottom: 34%;
    width: 13%;
    min-height: 78px;
  }

  body:not(.is-authenticated) .hero__sticker--top {
    left: 71%;
    top: 14%;
    width: 14%;
    min-height: 108px;
  }

  body:not(.is-authenticated) .hero__sticker--left-top {
    left: 16%;
    top: 16%;
    width: 11%;
    min-height: 82px;
  }

  body:not(.is-authenticated) .hero__sticker--far-right {
    right: 8%;
    top: 41%;
    width: 12%;
    min-height: 92px;
  }

  body:not(.is-authenticated) .hero__sticker--center-small {
    left: 70%;
    bottom: 30%;
    width: 10%;
    min-height: 72px;
  }

  body:not(.is-authenticated) .hero__sticker--edge {
    right: 16%;
    bottom: 18%;
    width: 10%;
    min-height: 68px;
  }

  body:not(.is-authenticated) .hero__token--logo,
  body:not(.is-authenticated) .hero__token--trade,
  body:not(.is-authenticated) .hero__token--score {
    display: none;
  }

  body:not(.is-authenticated) .hero__token--badge {
    left: 15%;
    right: auto;
    top: 48%;
  }

  body:not(.is-authenticated) .hero__token--region {
    left: auto;
    right: 14%;
    bottom: 25%;
  }
}

/* ---- Inline quick actions on compact sticker cards (album book) -------- */

.sticker-card--compact .sticker-card__quick {
  position: absolute;
  inset: auto 6px 6px 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 14px 28px rgba(9, 21, 43, 0.16),
    0 0 0 1px rgba(13, 45, 98, 0.06);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 5;
}

.sticker-card--compact.is-active {
  z-index: 6;
  border-color: color-mix(in srgb, var(--navy) 38%, transparent);
  box-shadow: 0 22px 44px rgba(9, 21, 43, 0.22);
  transform: translateY(-2px);
}

.sticker-card--compact.is-active .sticker-card__quick {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quick-action {
  border: 0;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(13, 45, 98, 0.07);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.quick-action:hover {
  background: rgba(13, 45, 98, 0.12);
}

.quick-action:active {
  transform: scale(0.96);
}

.quick-action.is-active.quick-action--owned {
  background: linear-gradient(135deg, var(--emerald), #0d6b56);
  color: white;
}

.quick-action.is-active.quick-action--duplicate {
  background: linear-gradient(135deg, var(--orange), #b85d16);
  color: white;
}

.quick-action.is-active.quick-action--missing {
  background: linear-gradient(135deg, var(--red), #8a2f33);
  color: white;
}

.quick-action--info {
  background: rgba(13, 45, 98, 0.04);
  color: var(--muted);
}

.quick-action--info:hover {
  background: rgba(13, 45, 98, 0.1);
  color: var(--ink);
}

@media (max-width: 780px) {
  .quick-action {
    height: 38px;
    font-size: 0.78rem;
  }
}

/* ---- Floating toast for sticker actions ------------------------------- */

.sticker-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(16, 34, 59, 0.92);
  color: #f7faff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 38px rgba(9, 21, 43, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 1000;
}

.sticker-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sticker-toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted-soft);
  flex: 0 0 8px;
}

.sticker-toast--owned .sticker-toast__dot {
  background: var(--emerald);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--emerald) 24%, transparent);
}

.sticker-toast--duplicate .sticker-toast__dot {
  background: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 24%, transparent);
}

.sticker-toast--missing .sticker-toast__dot {
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 24%, transparent);
}

.sticker-toast--cleared .sticker-toast__dot {
  background: rgba(255, 255, 255, 0.4);
}

.sticker-toast__label {
  white-space: nowrap;
}

.sticker-toast__subject {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

@media (max-width: 820px) {
  .sticker-toast {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 780px) {
  .sticker-toast {
    padding: 10px 14px;
    font-size: 0.82rem;
  }
  .sticker-toast__subject {
    max-width: 140px;
  }
}

/* ---- Mobile polish --------------------------------------------------- */

@media (max-width: 820px) {
  body {
    --mobile-bottom-nav-offset: calc(10px + env(safe-area-inset-bottom, 0px));
    --mobile-bottom-nav-height: 72px;
    --mobile-bottom-nav-clearance: calc(var(--mobile-bottom-nav-offset) + var(--mobile-bottom-nav-height) + 44px);
    padding: 10px;
    padding-bottom: var(--mobile-bottom-nav-clearance);
  }

  .app-shell,
  .dashboard,
  .view-stack,
  .view-panel,
  .album-section-panel {
    gap: 14px;
    scroll-padding-bottom: calc(var(--mobile-bottom-nav-clearance) + 16px);
  }

  .dashboard {
    gap: 12px;
    padding-bottom: calc(var(--mobile-bottom-nav-clearance) + 28px);
  }

  .stats-grid {
    gap: 10px;
  }

  .panel,
  .capture-card,
  .stat-card {
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 37, 75, 0.11);
  }

  .panel__header {
    margin-bottom: 10px;
  }

  .panel h3,
  .capture-card__header h3,
  .sticker-group__header h4,
  .league-block h4 {
    line-height: 0.94;
  }

  .dashboard-top {
    gap: 10px;
  }

  .dashboard-top h2 {
    margin-top: 4px;
    font-size: clamp(1.55rem, 7.4vw, 2.1rem);
    line-height: 0.95;
  }

  .dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    gap: 8px;
    width: 100%;
    align-items: start;
    justify-content: end;
    position: relative;
    z-index: 1100;
    isolation: isolate;
  }

  .dashboard-actions > * {
    width: auto;
  }

  .notification-center {
    justify-content: flex-end;
  }

  .notification-bell {
    width: 42px;
    height: 42px;
  }

  body.is-authenticated .primary-button,
  body.is-authenticated .ghost-button,
  body.is-authenticated .secondary-button,
  body.is-authenticated .accept-button {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }

  body.is-authenticated .album-chip {
    padding: 6px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .stat-card {
    padding: 14px 14px 15px;
  }

  .stat-card p {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .stat-card strong {
    margin: 10px 0 5px;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .stat-card span {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .albums-grid,
  .league-friends,
  .stack-list,
  .trade-spotlight,
  .regional-rarity,
  .sticker-groups {
    gap: 10px;
  }

  body.is-authenticated .filter-bar input,
  body.is-authenticated .filter-bar select {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
  }

  .notification-popover {
    top: calc(100% + 8px);
    right: 0;
    width: min(100vw - 20px, 380px);
    max-height: 66vh;
    padding: 12px;
    border-radius: 18px;
  }

  .top-nav,
  .album-sections,
  .league-sections {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 6px;
    border-radius: 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .top-nav::-webkit-scrollbar,
  .album-sections::-webkit-scrollbar,
  .league-sections::-webkit-scrollbar {
    display: none;
  }

  .top-nav__item,
  .album-sections__item,
  .league-sections__item {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .dashboard-actions .top-nav {
    display: none;
  }

  body.is-authenticated .mobile-main-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: var(--mobile-bottom-nav-offset);
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-height: var(--mobile-bottom-nav-height);
    padding: 8px;
    overflow: visible;
    border-radius: 22px;
    background: rgba(255, 252, 246, 0.96);
    border: 1px solid rgba(16, 34, 59, 0.08);
    box-shadow: 0 20px 42px rgba(10, 34, 62, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  body.is-authenticated.modal-open .mobile-main-nav,
  body.modal-open .mobile-main-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
  }

  body.modal-open .album-sections,
  body.modal-open .league-sections {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
  }

  body.is-authenticated .mobile-main-nav .top-nav__item {
    min-width: 0;
    min-height: 46px;
    padding: 9px 8px;
    font-size: 0.76rem;
    text-align: center;
    color: rgba(16, 34, 59, 0.82);
  }

  body.is-authenticated .mobile-main-nav .top-nav__item.is-active {
    color: #081828;
  }

  .album-sections {
    position: sticky;
    top: 8px;
    z-index: 12;
    background: rgba(255, 252, 246, 0.94);
    box-shadow: 0 12px 26px rgba(10, 34, 62, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .league-sections {
    display: flex;
    position: sticky;
    top: 8px;
    z-index: 12;
    margin-bottom: 10px;
    background: rgba(255, 252, 246, 0.94);
    box-shadow: 0 12px 26px rgba(10, 34, 62, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .league-sections__item {
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: rgba(16, 34, 59, 0.76);
    font: inherit;
    font-weight: 800;
  }

  .league-sections__item.is-active {
    background: var(--landing-accent);
    color: #081828;
    box-shadow: 0 10px 20px rgba(4, 14, 28, 0.12);
  }

  .league-pane--mobile-hidden,
  .league-shell--mobile-hidden {
    display: none !important;
  }

  .content-grid,
  .content-grid--league {
    gap: 14px;
  }

  .album-card__title {
    font-size: 1.12rem;
    line-height: 0.98;
  }

  .album-card__meta,
  .league-card__meta,
  .regional-card__meta,
  .team-row__meta,
  .request-card p,
  .helper-copy,
  .trade-codes {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .album-card__stats,
  .spotlight-metrics,
  .league-card__stats,
  .league-card__trade,
  .regional-card__stats {
    gap: 8px;
    margin-top: 10px;
  }

  .mini-metric {
    padding: 9px 10px;
    border-radius: 11px;
  }

  .mini-metric strong {
    font-size: 1.02rem;
  }

  .needed-group {
    padding: 12px;
    border-radius: 16px;
  }

  .needed-group__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .needed-group__count {
    align-self: flex-start;
  }

  .needed-group__grid {
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
    gap: 8px;
  }

  .needed-pill {
    min-height: 58px;
    padding: 8px 7px;
    border-radius: 12px;
  }

  .needed-pill__code {
    font-size: 0.86rem;
  }

  .needed-pill__name {
    font-size: 0.64rem;
  }

  .group-overview {
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
  }

  .group-card,
  .request-card,
  .league-card,
  .regional-card,
  .team-row,
  .album-card,
  .spotlight-card {
    padding: 11px;
    border-radius: 15px;
  }

  .request-card__actions,
  .group-card__actions {
    width: 100%;
  }

  .request-card__actions > *,
  .group-card__actions > * {
    flex: 1 1 0;
  }

  .invite-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .invite-bar__label,
  .invite-bar__link {
    white-space: normal;
  }

  .invite-bar__copy,
  .invite-bar__open {
    width: 100%;
  }

  .invite-bar__copy,
  .invite-bar__open,
  .invite-bar__open.secondary-button,
  .invite-bar__copy.secondary-button {
    justify-content: center;
  }

  .missing-import-text {
    min-height: 144px;
    border-radius: 16px;
    padding: 13px 14px;
  }

  .capture-overlay,
  .reveal-overlay {
    align-items: end;
    padding: 10px;
  }

  .capture-modal,
  .reveal-modal {
    width: 100%;
    max-height: 92dvh;
  }

  .capture-card {
    max-height: 92dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
  }

  .missing-import-card {
    gap: 8px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .missing-import-card .eyebrow,
  .missing-import-card .helper-copy {
    margin: 0;
  }

  .missing-import-card .panel__header h3 {
    font-size: clamp(1.55rem, 6.9vw, 2rem);
  }

  .missing-import-card .panel__header .ghost-button {
    padding: 9px 12px;
  }

  .overlay-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 1.55rem;
  }

  .missing-import-capture {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .missing-import-capture .primary-button,
  .missing-import-capture .secondary-button,
  .missing-import-actions .primary-button {
    width: 100%;
    justify-content: center;
  }

  .missing-import-actions .ghost-button {
    width: auto;
    justify-content: center;
    margin-left: auto;
  }

  .missing-import-actions {
    position: sticky;
    bottom: 0;
    margin-top: 4px;
    padding-top: 10px;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(242, 247, 255, 0), rgba(242, 247, 255, 0.95) 26%, rgba(242, 247, 255, 0.98));
  }

  .sticker-panel__top {
    gap: 12px;
    padding: 14px 14px 0;
  }

  .notebook-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .notebook-controls > * {
    width: 100%;
  }

  .notebook-controls #page-indicator {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .sticker-toolbar {
    gap: 10px;
  }

  .notebook-summary {
    gap: 10px;
  }

  .filter-bar,
  .quick-add-actions,
  .legend,
  .state-actions,
  .quantity-controls {
    gap: 8px;
  }

  .album-book-stage {
    padding: 6px 0 12px;
    min-height: auto;
  }

  .album-book-arrow {
    height: 44px;
    margin-bottom: 8px;
    border-radius: 14px;
    font-size: 1.35rem;
  }

  .album-book-arrow--next {
    margin-top: 8px;
  }

  .team-page__surface {
    padding: 14px 12px 12px;
    border-radius: 22px;
  }

  .team-page__surface::before {
    opacity: 0.72;
  }

  .team-page__hero {
    gap: 8px;
    margin-bottom: 0;
  }

  .team-page__eyebrow {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  .team-page__headline h4 {
    max-width: none;
    font-size: clamp(1.5rem, 11vw, 2.2rem);
  }

  .team-page__meta-row {
    gap: 6px;
    margin-top: 4px;
    font-size: 0.72rem;
  }

  .mini-flag {
    width: 34px;
    height: 24px;
  }

  .team-page__badge {
    padding: 7px 10px;
  }

  .team-page__score {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .team-page__metric {
    padding: 7px 6px;
    border-radius: 12px;
  }

  .team-page__metric strong {
    font-size: 0.88rem;
  }

  .team-page__metric span {
    font-size: 0.58rem;
  }

  .team-page__watermark {
    left: 12px;
    bottom: 28px;
    font-size: 4.2rem;
    opacity: 0.42;
  }

  .team-page__ribbon--top {
    left: 26%;
    width: 56%;
    height: 34px;
  }

  .team-page__ribbon--mid {
    top: 72px;
    left: 26%;
    width: 54%;
    height: 34px;
  }

  .team-page__ribbon--corner {
    width: 68px;
    opacity: 0.52;
  }

  .team-page__content,
  .team-page__content--specials {
    gap: 8px;
  }

  .team-page__specials-grid,
  .team-page__sticker-grid {
    gap: 8px;
  }

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

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

  .team-page__sticker-grid--album-view .sticker-card--compact {
    min-height: 188px;
  }

  .team-page__fixture-strip {
    width: 100%;
    margin-top: 4px;
    gap: 5px;
  }

  .team-page__fixture-pill {
    padding: 4px 10px;
    font-size: 0.66rem;
  }

  .team-page__fixture-flags {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .team-page__fixture-team,
  .team-page__fixture-copy {
    padding: 7px 8px;
    border-radius: 12px;
  }

  .team-page__fixture-team {
    grid-template-columns: 30px 1fr;
    column-gap: 8px;
  }

  .team-page__fixture-team strong {
    font-size: 0.8rem;
  }

  .team-page__fixture-team span,
  .team-page__fixture-copy {
    font-size: 0.66rem;
  }

  .sticker-card--compact {
    grid-template-rows: auto minmax(66px, 1fr) minmax(32px, auto) auto;
    gap: 4px;
    padding: 4px;
    border-width: 3px;
    border-radius: 12px;
  }

  .sticker-card--category-team {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 6px 8px;
    padding: 6px;
  }

  .sticker-card--category-team .sticker-card__name {
    font-size: 0.8rem;
  }

  .sticker-card--category-logo .sticker-card__art,
  .sticker-card--category-logo .sticker-card__art-photo,
  .sticker-card--category-team .sticker-card__art,
  .sticker-card--category-team .sticker-card__art-photo {
    min-height: 66px;
  }

  .sticker-card--compact.sticker-card--category-player .sticker-card__art,
  .sticker-card__art-photo {
    border-radius: 7px;
  }

  .sticker-card--compact h5,
  .sticker-card__name,
  .sticker-card--category-player .sticker-card__name {
    font-size: 0.72rem;
    line-height: 1.05;
    min-height: 0;
  }

  .sticker-card--compact .sticker-code,
  .sticker-card--compact .sticker-status {
    font-size: 0.52rem;
  }

  .sticker-card__compact-footer {
    min-height: 14px;
  }

  .sticker-card__compact-state,
  .sticker-card__compact-qty,
  .sticker-card--compact .sticker-type {
    font-size: 0.5rem;
  }

  .sticker-card--compact .sticker-card__quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inset: auto 5px 5px 5px;
  }

  .quick-action {
    height: 34px;
    font-size: 0.72rem;
  }

  .player-detail-shell {
    width: 100%;
    padding: 0;
    max-height: calc(100dvh - 20px);
  }

  .player-detail-modal {
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(4, 17, 40, 0.22);
    max-height: inherit;
  }

  .player-detail-modal__layout {
    min-height: 0;
    max-height: inherit;
  }

  .player-detail-modal__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .player-detail-modal__preview,
  .player-detail-modal__panel {
    padding: 14px;
  }

  .player-detail-modal__panel {
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
  }

  .player-preview__card {
    min-height: 232px;
    padding: 10px;
    border-radius: 22px;
  }

  .player-preview__topline,
  .player-preview__footer,
  .player-detail__headline-meta,
  .player-detail__status-stack,
  .player-detail__actions {
    gap: 8px;
  }

  .player-preview__badge,
  .player-preview__id,
  .detail-status,
  .detail-chip {
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .player-preview__media {
    min-height: 128px;
    border-radius: 18px;
  }

  .player-preview__meta {
    gap: 4px;
  }

  .player-preview__country {
    font-size: 0.74rem;
  }

  .player-preview__meta h3 {
    font-size: clamp(1.2rem, 5.4vw, 1.7rem);
  }

  .player-preview__footer {
    font-size: 0.8rem;
  }

  .player-preview__source {
    display: none;
  }

  .player-detail__header {
    gap: 10px;
    padding-right: 26px;
  }

  .player-detail__header h3 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .player-detail__headline-meta {
    margin-top: 6px;
    font-size: 0.76rem;
  }

  .player-detail__section {
    gap: 6px;
  }

  .player-detail__section-head h4,
  .detail-stats-group h5 {
    font-size: 0.96rem;
  }

  .detail-stats-grid,
  .detail-intelligence-grid {
    gap: 8px;
  }

  .detail-stat-card,
  .detail-intel-card {
    gap: 4px;
    padding: 8px;
    border-radius: 14px;
  }

  .detail-stat-card span,
  .detail-intel-card span,
  .detail-region-meta,
  .detail-intelligence-note {
    font-size: 0.74rem;
  }

  .detail-stat-card strong,
  .detail-intel-card strong {
    font-size: 0.88rem;
  }

  .player-detail__actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 2px -14px -14px;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(239, 246, 255, 0), rgba(239, 246, 255, 0.94) 24%, rgba(239, 246, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
  }

  .player-detail__actions .primary-button,
  .player-detail__actions .secondary-button,
  .player-detail__actions .ghost-button {
    width: 100%;
  }

  .player-detail__actions .ghost-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    --mobile-bottom-nav-offset: calc(8px + env(safe-area-inset-bottom, 0px));
    --mobile-bottom-nav-height: 68px;
    --mobile-bottom-nav-clearance: calc(var(--mobile-bottom-nav-offset) + var(--mobile-bottom-nav-height) + 40px);
    padding: 8px;
    padding-bottom: var(--mobile-bottom-nav-clearance);
  }

  .hero h1 {
    font-size: 2.7rem;
    line-height: 0.84;
  }

  .hero__lede {
    font-size: 0.96rem;
  }

  .hero__feature-list li {
    grid-template-columns: 14px minmax(0, 1fr);
    font-size: 0.92rem;
  }

  .hero__visual {
    min-height: 340px;
    margin-top: 24px;
  }

  .hero__sticker--lead {
    width: 52%;
    min-height: 230px;
  }

  .hero__sticker--right {
    width: 30%;
    min-height: 176px;
  }

  .hero__sticker--bottom {
    width: 46%;
    min-height: 164px;
  }

  .hero__sticker--top,
  .hero__sticker--edge,
  .hero__sticker--far-right,
  .hero__sticker--center-small {
    display: none;
  }

  .hero__sticker--mini {
    width: 24%;
    min-height: 92px;
    left: 43%;
  }

  .hero__sticker--left-top {
    width: 18%;
    min-height: 84px;
    left: 9%;
    top: 14%;
  }

  .hero__token--trade,
  .hero__token--score {
    display: none;
  }

  .hero__token--logo {
    width: 58px;
    height: 82px;
  }

  .hero__token--badge,
  .hero__token--region {
    padding: 8px 10px;
  }

  .hero__microcopy {
    font-size: 0.84rem;
  }

  .dashboard-actions {
    grid-template-columns: auto auto auto;
    gap: 6px;
  }

  .dashboard-actions #album-chip,
  .dashboard-actions #logout-button,
  .notification-center {
    grid-column: auto;
  }

  .notification-popover {
    position: fixed;
    top: 72px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 58vh;
  }

  .notification-popover__head {
    padding-bottom: 6px;
  }

  .panel,
  .capture-card,
  .stat-card {
    padding: 12px;
    border-radius: 16px;
  }

  .dashboard-top h2 {
    font-size: clamp(1.4rem, 9vw, 1.9rem);
  }

  body.is-authenticated .primary-button,
  body.is-authenticated .ghost-button,
  body.is-authenticated .secondary-button,
  body.is-authenticated .accept-button {
    padding: 9px 11px;
    font-size: 0.76rem;
  }

  body.is-authenticated .album-chip {
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .dashboard-actions .top-nav,
  .album-sections {
    border-radius: 16px;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 12px 12px 13px;
  }

  .stat-card strong {
    margin: 8px 0 4px;
    font-size: clamp(1.7rem, 8.5vw, 2.45rem);
  }

  .stat-card span {
    font-size: 0.74rem;
  }

  body.is-authenticated .mobile-main-nav {
    left: 8px;
    right: 8px;
    bottom: var(--mobile-bottom-nav-offset);
    padding: 7px;
    border-radius: 18px;
  }

  body.is-authenticated .mobile-main-nav .top-nav__item {
    min-height: 44px;
    padding: 7px 6px;
    font-size: 0.7rem;
  }

  .sticker-panel__top {
    padding: 14px 14px 0;
  }

  .album-book-stage {
    padding-bottom: 10px;
  }

  .team-page__surface {
    padding: 11px 9px 9px;
    border-radius: 18px;
  }

  .team-page__headline h4 {
    font-size: clamp(1.4rem, 12vw, 1.9rem);
  }

  .team-page__score {
    gap: 5px;
  }

  .team-page__metric {
    padding: 6px;
  }

  .team-page__sticker-grid,
  .team-page__specials-grid {
    gap: 6px;
  }

  .team-page__sticker-grid--album-view .sticker-card--compact {
    min-height: 172px;
  }

  .sticker-card--compact {
    padding: 4px;
    gap: 4px;
  }

  .album-card__title {
    font-size: 1rem;
  }

  .album-card__stats,
  .spotlight-metrics,
  .league-card__stats,
  .league-card__trade,
  .regional-card__stats {
    gap: 6px;
  }

  .mini-metric {
    padding: 8px 9px;
  }

  .mini-metric strong {
    font-size: 0.94rem;
  }

  .sticker-card--compact.sticker-card--category-player .sticker-card__art {
    min-height: 62px;
  }

  .sticker-card--category-logo .sticker-card__art,
  .sticker-card--category-logo .sticker-card__art-photo,
  .sticker-card--category-team .sticker-card__art,
  .sticker-card--category-team .sticker-card__art-photo {
    min-height: 58px;
  }

  .sticker-card--category-team {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .sticker-card--compact h5,
  .sticker-card__name,
  .sticker-card--category-player .sticker-card__name {
    font-size: 0.68rem;
  }

  .sticker-card--compact .sticker-card__quick {
    padding: 5px;
    gap: 5px;
  }

  .quick-action {
    height: 32px;
    font-size: 0.68rem;
  }

  .player-detail-modal {
    border-radius: 18px;
    max-height: calc(100dvh - 16px);
  }

  .player-detail-modal__layout {
    min-height: 0;
    max-height: inherit;
  }

  .player-detail-modal__preview,
  .player-detail-modal__panel {
    padding: 12px;
  }

  .player-detail-modal__preview {
    padding-bottom: 8px;
  }

  .player-detail-modal__panel {
    min-height: 0;
    overflow-y: auto;
  }

  .player-preview__card {
    min-height: 214px;
    padding: 9px;
    border-radius: 18px;
  }

  .player-preview__topline {
    gap: 6px;
  }

  .player-preview__badge,
  .player-preview__id,
  .detail-status,
  .detail-chip {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .player-preview__media {
    min-height: 108px;
    border-radius: 14px;
  }

  .player-preview__country {
    font-size: 0.68rem;
  }

  .player-preview__meta h3 {
    font-size: 1.15rem;
  }

  .player-preview__footer {
    font-size: 0.72rem;
  }

  .player-detail__header {
    gap: 8px;
    padding-right: 20px;
  }

  .player-detail__header h3 {
    font-size: 1.25rem;
  }

  .player-detail__headline-meta {
    margin-top: 4px;
    font-size: 0.7rem;
  }

  .player-detail__status-stack {
    gap: 6px;
  }

  .detail-stats-grid,
  .detail-intelligence-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .detail-stat-card,
  .detail-intel-card {
    padding: 7px;
    border-radius: 12px;
  }

  .detail-stat-card span,
  .detail-intel-card span,
  .detail-region-meta,
  .detail-intelligence-note {
    font-size: 0.7rem;
  }

  .detail-stat-card strong,
  .detail-intel-card strong {
    font-size: 0.82rem;
  }

  .player-detail__actions {
    gap: 6px;
    margin: 2px -12px -12px;
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 8;
  }

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

  .progress-sticker-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .progress-sticker-row__controls {
    justify-content: flex-end;
  }
}

/* ---- Forgot / reset password forms ----------------------------------- */

.auth-form__row-end {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.auth-form__intro {
  margin: 0 0 6px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-form__back {
  align-self: center;
  margin-top: 4px;
}

.auth-form__switch {
  justify-self: center;
  margin-top: 2px;
}

.link-button {
  background: transparent;
  border: 0;
  padding: 6px 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color 120ms ease, opacity 120ms ease;
}

.link-button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:active {
  opacity: 0.75;
}
