:root {
  color-scheme: dark;
  --pink: #ff2fb3;
  --hot-pink: #ff006e;
  --violet: #8f2cff;
  --purple: #5b1dff;
  --cyan: #23e7ff;
  --lime: #c8ff47;
  --yellow: #ffe55c;
  --ink: #14051f;
  --ink-2: #230a35;
  --white: #fff9ff;
  --muted: rgba(255, 249, 255, 0.68);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --line: rgba(255, 255, 255, 0.22);
  --shadow: 0 30px 90px rgba(11, 2, 24, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  color: var(--white);
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(255, 47, 179, 0.28), transparent 34%),
    linear-gradient(240deg, rgba(35, 231, 255, 0.2), transparent 36%),
    linear-gradient(135deg, #14051f 0%, #3a0a61 38%, #ff187f 72%, #4b18cb 100%);
}

body::before {
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  content: "";
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 54px
    ),
    linear-gradient(90deg, rgba(255, 229, 92, 0.16), transparent 28%, rgba(35, 231, 255, 0.16) 72%, transparent);
  transform: rotate(-7deg);
  animation: backgroundShift 16s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

button {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

img {
  display: block;
}

.app-shell {
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
}

.view {
  display: none;
  min-height: 100dvh;
  width: 100%;
}

.view.is-active {
  display: flex;
  animation: viewIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-view {
  position: relative;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
}

.brand-bar,
.game-topbar,
.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.brand-bar {
  position: relative;
  z-index: 5;
}

.dagoltem-logo,
.mini-logo,
.summary-logo {
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 14px 24px rgba(16, 3, 27, 0.36));
}

.dagoltem-logo {
  width: clamp(118px, 13vw, 180px);
}

.brand-pill,
.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--lime);
}

.brand-pill {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.home-hero {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 620px;
}

.hero-copy {
  position: relative;
  z-index: 6;
  width: min(860px, 94vw);
  text-align: center;
  animation: heroCopyIn 900ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(4.2rem, 12vw, 11rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 8px 0 rgba(255, 0, 110, 0.28),
    0 26px 72px rgba(20, 5, 31, 0.56);
}

.hero-copy h1 span {
  display: block;
}

.hero-line {
  width: min(640px, 92vw);
  margin: 24px auto 0;
  color: rgba(255, 249, 255, 0.84);
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  font-weight: 700;
}

.discover-button {
  position: relative;
  min-width: min(340px, 92vw);
  margin-top: 38px;
  padding: 20px 30px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--hot-pink), var(--violet), var(--cyan)),
    var(--pink);
  box-shadow: 0 20px 50px rgba(255, 0, 110, 0.32), inset 0 0 28px rgba(255, 255, 255, 0.24);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 1000;
  text-transform: uppercase;
  transform: translateZ(0);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.discover-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 0 24%, rgba(255, 255, 255, 0.52) 40%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: buttonSweep 2.6s ease-in-out infinite;
}

.discover-button span {
  position: relative;
  z-index: 1;
}

.discover-button:hover {
  filter: saturate(1.15);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 70px rgba(255, 0, 110, 0.44), inset 0 0 28px rgba(255, 255, 255, 0.28);
}

.hero-media {
  position: absolute;
  inset: 8% 0 5%;
  z-index: 1;
  pointer-events: none;
}

.preview-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(210px, 24vw, 360px);
  aspect-ratio: 0.72;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: previewFloat 5.8s ease-in-out infinite;
}

.preview-card img {
  width: 94%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.3));
}

.preview-card-a {
  left: 4vw;
  top: 12%;
  transform: rotate(-13deg);
}

.preview-card-b {
  right: 5vw;
  top: 8%;
  transform: rotate(12deg);
  animation-delay: -1.8s;
}

.preview-card-c {
  left: 50%;
  bottom: 0;
  width: clamp(180px, 18vw, 280px);
  opacity: 0.78;
  transform: translateX(-50%) rotate(4deg);
  animation-delay: -3.3s;
}

.game-view {
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 94px 0 26px;
}

.game-topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 16px clamp(16px, 4vw, 44px);
  background: linear-gradient(to bottom, rgba(20, 5, 31, 0.72), rgba(20, 5, 31, 0));
}

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

.mini-logo {
  width: clamp(64px, 7vw, 92px);
  flex: 0 0 auto;
}

.topbar-brand p,
.topbar-brand h2 {
  margin: 0;
}

.topbar-brand p {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar-brand h2 {
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.08;
}

.progress-wrap {
  display: grid;
  min-width: clamp(120px, 18vw, 220px);
  gap: 7px;
  font-weight: 900;
  text-align: right;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan));
  transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rail {
  position: fixed;
  top: 98px;
  bottom: 22px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  width: clamp(70px, 8vw, 112px);
  min-height: 0;
  gap: 10px;
  pointer-events: none;
}

.rail-pass {
  left: clamp(8px, 2vw, 24px);
}

.rail-smash {
  right: clamp(8px, 2vw, 24px);
}

.rail-heading {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 9px 8px;
  background: rgba(20, 5, 31, 0.32);
  color: var(--white);
  font-size: clamp(0.66rem, 1.4vw, 0.8rem);
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
}

.rail-pass .rail-heading {
  box-shadow: inset 0 0 0 1px rgba(35, 231, 255, 0.28), 0 10px 34px rgba(35, 231, 255, 0.14);
}

.rail-smash .rail-heading {
  box-shadow: inset 0 0 0 1px rgba(255, 47, 179, 0.3), 0 10px 34px rgba(255, 47, 179, 0.18);
}

.rail-items {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  gap: 9px;
  overflow: hidden;
  padding: 2px;
  mask-image: linear-gradient(to bottom, #000 0 88%, transparent);
}

.rail-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 0.86;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.rail-card::after {
  position: absolute;
  inset: auto 8px 8px;
  height: 4px;
  border-radius: 999px;
  content: "";
  background: currentColor;
}

.rail-pass .rail-card {
  color: var(--cyan);
}

.rail-smash .rail-card {
  color: var(--pink);
}

.rail-card.just-added {
  animation: railAdd 420ms cubic-bezier(0.15, 1.2, 0.35, 1) both;
}

.rail-card img {
  width: 92%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.28));
}

.game-stage {
  position: relative;
  z-index: 10;
  display: grid;
  width: min(430px, calc(100vw - 220px));
  min-width: 236px;
  gap: 20px;
}

.deck {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: min(620px, 70dvh);
  min-height: 430px;
  perspective: 1200px;
}

.profile-card {
  --pass-opacity: 0;
  --smash-opacity: 0;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    linear-gradient(160deg, rgba(255, 47, 179, 0.28), rgba(143, 44, 255, 0.16) 52%, rgba(35, 231, 255, 0.16)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    0 36px 86px rgba(10, 2, 26, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  touch-action: none;
  user-select: none;
  backdrop-filter: blur(22px);
  transform-origin: 50% 92%;
}

.profile-card.is-active {
  cursor: grab;
  animation: cardIn 460ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.profile-card.is-active.is-dragging { animation: none; }

.profile-card.is-active:active {
  cursor: grabbing;
}

.profile-card.is-next {
  opacity: 0.52;
  pointer-events: none;
  transform: translateY(20px) scale(0.92);
  filter: blur(1px) saturate(0.9);
}

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

.profile-card.snap-back {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-card.fly-left {
  animation: flyLeft 520ms cubic-bezier(0.55, 0.02, 0.88, 0.42) forwards;
}

.profile-card.fly-right {
  animation: flyRight 520ms cubic-bezier(0.55, 0.02, 0.88, 0.42) forwards;
}

.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.2) 48%, transparent 56% 100%);
  mix-blend-mode: screen;
  transform: translateX(-64%);
  animation: cardSweep 4.8s ease-in-out infinite;
}

.creature-figure {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 22px 18px 4px;
}

.creature-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.34));
  animation: creatureHover 3.8s ease-in-out infinite;
}

.profile-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(to top, rgba(20, 5, 31, 0.88), rgba(20, 5, 31, 0.58) 72%, transparent),
    linear-gradient(90deg, rgba(255, 47, 179, 0.16), rgba(35, 231, 255, 0.12));
}

.profile-copy h3,
.profile-copy p {
  margin: 0;
}

.profile-copy h3 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.profile-copy > p {
  color: rgba(255, 249, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.35;
}

.aura {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 249, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
}

.decision-stamp {
  position: absolute;
  top: 30px;
  z-index: 4;
  border: 4px solid currentColor;
  border-radius: 16px;
  padding: 8px 12px;
  background: rgba(20, 5, 31, 0.38);
  font-size: clamp(1.6rem, 7vw, 3rem);
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-13deg);
  backdrop-filter: blur(10px);
}

.stamp-pass {
  left: 20px;
  color: var(--cyan);
  opacity: var(--pass-opacity);
}

.stamp-smash {
  right: 20px;
  color: var(--pink);
  opacity: var(--smash-opacity);
  transform: rotate(13deg);
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  align-items: center;
}

.round-action {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)),
    rgba(20, 5, 31, 0.36);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.round-action span {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 1000;
  line-height: 0.82;
}

.round-action small {
  font-size: clamp(0.62rem, 1.6vw, 0.78rem);
  font-weight: 1000;
  text-transform: uppercase;
}

.round-action:hover:not(:disabled) {
  transform: translateY(-5px) scale(1.03);
}

.pass-action {
  color: var(--cyan);
}

.favorite-action {
  color: var(--yellow);
}

.smash-action {
  color: var(--pink);
}

.favorite-action.is-active {
  border-color: rgba(255, 229, 92, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 229, 92, 0.34), rgba(255, 255, 255, 0.08)),
    rgba(20, 5, 31, 0.42);
  box-shadow: 0 18px 48px rgba(255, 229, 92, 0.24);
}

.favorite-action.pulse {
  animation: favoritePulse 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.burst-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}

.burst-particle {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 1000;
  opacity: 0;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  animation: burst 860ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.burst-particle.smash {
  color: var(--pink);
}

.burst-particle.pass {
  color: var(--cyan);
}

.summary-view {
  flex-direction: column;
  gap: 24px;
  padding: clamp(18px, 4vw, 44px);
}

.summary-header {
  flex-wrap: wrap;
}

.summary-logo {
  width: clamp(96px, 12vw, 150px);
}

.summary-header > div {
  flex: 1 1 260px;
}

.summary-header h2 {
  margin: 4px 0 0;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.replay-button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  box-shadow: 0 18px 42px rgba(255, 0, 110, 0.28);
  font-weight: 1000;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease;
}

.replay-button:hover {
  filter: saturate(1.18);
  transform: translateY(-3px);
}

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

.stats-strip article,
.favorite-panel,
.summary-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(20, 5, 31, 0.32);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.stats-strip article {
  display: grid;
  min-height: 112px;
  place-items: center;
  border-radius: 22px;
  text-align: center;
}

.stats-strip span {
  color: var(--white);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 1000;
  line-height: 0.88;
}

.stats-strip small {
  color: var(--muted);
  font-weight: 1000;
  text-transform: uppercase;
}

.favorite-panel {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 34px);
  min-height: 210px;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(16px, 3vw, 28px);
}

.favorite-panel img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.3));
}

.favorite-panel h3,
.favorite-panel p {
  margin: 0;
}

.favorite-panel h3 {
  margin-top: 6px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.favorite-panel p:last-child {
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.summary-card {
  display: grid;
  grid-template-rows: 220px auto;
  overflow: hidden;
  border-radius: 24px;
  animation: summaryIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.summary-card.smash {
  box-shadow: 0 20px 58px rgba(255, 47, 179, 0.18);
}

.summary-card.pass {
  box-shadow: 0 20px 58px rgba(35, 231, 255, 0.13);
}

.summary-image {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 47, 179, 0.12), rgba(35, 231, 255, 0.1));
}

.summary-image img {
  width: 100%;
  height: 192px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.28));
}

.summary-copy {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.summary-copy h3,
.summary-copy p {
  margin: 0;
}

.summary-copy h3 {
  font-size: 1.25rem;
  line-height: 1.02;
}

.summary-copy p {
  color: var(--muted);
  font-size: 0.92rem;
}

.decision-chip,
.favorite-chip {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.decision-chip {
  background: rgba(255, 255, 255, 0.12);
}

.summary-card.smash .decision-chip {
  color: var(--pink);
}

.summary-card.pass .decision-chip {
  color: var(--cyan);
}

.favorite-chip {
  margin-left: 5px;
  background: rgba(255, 229, 92, 0.18);
  color: var(--yellow);
}

@media (max-width: 820px) {
  .home-hero {
    min-height: 650px;
  }

  .hero-copy h1 {
    font-size: clamp(3.3rem, 19vw, 7rem);
  }

  .preview-card {
    opacity: 0.58;
  }

  .preview-card-a {
    left: -20vw;
  }

  .preview-card-b {
    right: -22vw;
  }

  .game-stage {
    width: min(370px, calc(100vw - 132px));
  }

  .deck {
    min-height: 410px;
    height: min(560px, 66dvh);
  }

  .rail {
    top: 110px;
    width: 54px;
  }

  .rail-heading {
    padding: 8px 5px;
    font-size: 0.58rem;
  }

  .rail-card {
    border-radius: 12px;
  }

  .profile-copy {
    padding: 14px;
  }

  .profile-copy > p {
    font-size: 0.86rem;
  }
}

@media (max-width: 560px) {
  .brand-bar {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .brand-pill {
    display: none;
  }

  .home-view {
    padding: 16px;
  }

  .home-hero {
    min-height: 610px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4rem);
    line-height: 0.88;
  }

  .hero-line {
    width: min(320px, 86vw);
    font-size: 0.98rem;
  }

  .discover-button {
    width: min(320px, 86vw);
    min-width: 0;
    padding: 17px 22px;
  }

  .preview-card-a {
    left: -42vw;
    top: 24%;
  }

  .preview-card-b {
    right: -50vw;
    top: 20%;
  }

  .preview-card-c {
    bottom: 4%;
    width: 190px;
  }

  .game-topbar {
    align-items: flex-start;
    padding: 12px 12px 18px;
  }

  .topbar-brand {
    gap: 8px;
  }

  .progress-wrap {
    min-width: 92px;
    font-size: 0.82rem;
  }

  .game-view {
    padding-top: 108px;
  }

  .game-stage {
    width: min(330px, calc(100vw - 128px));
    gap: 14px;
  }

  .deck {
    min-height: 390px;
    height: min(520px, 64dvh);
  }

  .profile-card {
    border-radius: 22px;
  }

  .creature-figure {
    padding: 16px 10px 0;
  }

  .profile-copy h3 {
    font-size: clamp(1.45rem, 9vw, 2.25rem);
  }

  .tag-row span {
    padding: 6px 7px;
    font-size: 0.66rem;
  }

  .round-action {
    border-radius: 18px;
  }

  .summary-view {
    padding: 16px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .favorite-panel {
    grid-template-columns: 1fr;
  }

  .favorite-panel img {
    max-height: 190px;
  }
}

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

@keyframes backgroundShift {
  0% {
    transform: translate3d(-2%, 0, 0) rotate(-7deg);
  }
  100% {
    transform: translate3d(2%, 0, 0) rotate(-7deg);
  }
}

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

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes buttonSweep {
  0%,
  35% {
    transform: translateX(-120%);
  }
  72%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes previewFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.94) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes cardSweep {
  0%,
  42% {
    transform: translateX(-64%);
  }
  72%,
  100% {
    transform: translateX(64%);
  }
}

@keyframes creatureHover {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.015);
  }
}

@keyframes flyLeft {
  to {
    opacity: 0;
    transform: translate3d(-118vw, 18vh, 0) rotate(-34deg);
  }
}

@keyframes flyRight {
  to {
    opacity: 0;
    transform: translate3d(118vw, 18vh, 0) rotate(34deg);
  }
}

@keyframes railAdd {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.72);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes favoritePulse {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.16) rotate(5deg);
  }
}

@keyframes burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.56) rotate(0);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.3) rotate(var(--r));
  }
}

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