:root {
  --bg: #070707;
  --panel: rgba(17, 17, 17, 0.8);
  --panel-soft: rgba(24, 24, 24, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f8d15f;
  --gold-deep: #bd7f18;
  --red: #ff5a2a;
  --red-deep: #b21800;
  --cream: #f8f1e1;
  --muted: rgba(248, 241, 225, 0.72);
  --neon: #ff3b14;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top, rgba(248, 209, 95, 0.18), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(255, 90, 42, 0.18), transparent 22%),
    radial-gradient(circle at 80% 8%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #0c0c0c 0%, #060606 44%, #120904 100%);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -12rem;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 60%);
  filter: blur(12px);
}

body::after {
  left: -8rem;
  bottom: 5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 42, 0.15), transparent 65%);
  filter: blur(24px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.88), rgba(248, 209, 95, 0.34) 45%, rgba(12, 12, 12, 0.2) 60%),
    linear-gradient(145deg, rgba(248, 209, 95, 0.35), rgba(255, 90, 42, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.28);
  overflow: hidden;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -10% auto auto -40%;
  width: 70%;
  height: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(-24deg);
}

.brand-mark img {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
  border-radius: 14px;
  filter: saturate(1.05) contrast(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong,
.hero-section h1,
.section-heading h3,
.footer-block h3,
.ticker-value,
.gallery-copy strong {
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff4bc 0%, #f7d461 36%, #f39c24 72%, #fff2d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 0 16px rgba(248, 209, 95, 0.18);
}

.brand-text strong {
  font-family: "Bebas Neue", "Noto Sans SC", sans-serif;
  font-size: 32px;
}

.brand-text em {
  color: var(--cream);
  opacity: 0.8;
  font-style: normal;
  font-size: 14px;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-link,
.wallet-button,
.primary-cta,
.secondary-cta,
.ghost-button,
.vote-button,
.ca-box button,
.clip-button {
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  font-family: "Bebas Neue", "Noto Sans SC", sans-serif;
  font-size: 20px;
}

.wallet-button,
.primary-cta,
.secondary-cta,
.ghost-button,
.ca-box button,
.vote-button {
  border-radius: 999px;
  cursor: pointer;
}

.wallet-button,
.primary-cta,
.clip-button {
  background: linear-gradient(135deg, var(--gold) 0%, var(--red) 100%);
  color: #1d0f04;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(255, 90, 42, 0.24);
}

.wallet-button {
  height: 46px;
  padding: 0 18px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background:
    linear-gradient(140deg, rgba(20, 20, 20, 0.94), rgba(9, 9, 9, 0.88)),
    url("./Gemini_Generated_Image_1f0axd1f0axd1f0a.png") center/cover;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.9) 18%, rgba(7, 7, 7, 0.55) 55%, rgba(7, 7, 7, 0.78) 100%);
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.clinic-badge,
.result-tag,
.fee-ribbon span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.9rem, 4vw, 5.3rem);
  line-height: 0.98;
}

.hero-section h2 {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.32rem);
  line-height: 1.65;
}

.hero-cta-row,
.clinic-actions,
.ai-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta-row {
  margin: 24px 0;
}

.primary-cta,
.secondary-cta,
.ghost-button,
.vote-button,
.ca-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  font-weight: 800;
}

.secondary-cta,
.ghost-button,
.vote-button,
.ca-box button {
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
}

.primary-cta.compact {
  min-height: 54px;
}

.ticker-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 18px;
}

.ticker-card,
.result-panel,
.wait-panel,
.clinic-panel,
.ai-panel,
.gallery-panel,
.footer-block,
.section-block {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ticker-card {
  padding: 16px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(249, 220, 117, 0.18), rgba(9, 9, 9, 0.88) 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.ticker-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(248, 241, 225, 0.78);
  font-size: 14px;
}

.ticker-value {
  display: block;
  font-size: clamp(1.42rem, 2vw, 2rem);
}

.jackpot .ticker-value {
  animation: blink 1.4s infinite;
}

.ticker-value.waiting {
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  line-height: 1.4;
  animation: none;
}

.hero-quotes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-quotes li {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(248, 241, 225, 0.86);
  font-size: 14px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.hero-orb {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1;
  padding: 18px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.32), transparent 26%),
    linear-gradient(160deg, rgba(248, 209, 95, 0.42), rgba(255, 90, 42, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  animation: floatOrb 5.6s ease-in-out infinite;
}

.hero-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  filter: saturate(1.06) contrast(1.05);
}

.shine {
  position: absolute;
  inset: 8% auto auto -18%;
  width: 42%;
  height: 16%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(-24deg);
  filter: blur(4px);
  animation: sweep 4.2s linear infinite;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-badges span {
  padding: 10px 14px;
  background: rgba(9, 9, 9, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-weight: 700;
}

.section-block {
  margin-top: 24px;
  padding: 28px;
  border-radius: 30px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.section-heading h3,
.footer-block h3 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
}

.section-heading p,
.clinic-copy p,
.gallery-copy p,
.disclaimer,
.ai-note,
.result-panel p,
.wait-panel p,
.footer-copy li {
  color: var(--muted);
  line-height: 1.7;
}

.roulette-section {
  background:
    linear-gradient(145deg, rgba(17, 17, 17, 0.94), rgba(8, 8, 8, 0.92)),
    radial-gradient(circle at 75% 20%, rgba(255, 90, 42, 0.16), transparent 24%);
}

.roulette-grid,
.ai-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.avatar-stage,
.roulette-panel {
  min-width: 0;
}

.avatar-card {
  position: relative;
  padding: 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 18%),
    linear-gradient(180deg, rgba(248, 209, 95, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 520px;
  overflow: hidden;
}

.avatar-card img {
  width: 100%;
  height: 100%;
  min-height: 488px;
  object-fit: cover;
  border-radius: 22px;
  filter: saturate(1.02) contrast(1.05);
}

.hair {
  position: absolute;
  top: 20px;
  width: 3px;
  height: 70px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 209, 95, 0.8), transparent);
  border-radius: 999px;
  transform-origin: bottom center;
  z-index: 3;
  animation: wiggle 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(248, 209, 95, 0.55);
}

.hair-a {
  left: 42%;
  transform: rotate(-16deg);
}

.hair-b {
  left: 50%;
  height: 82px;
  transform: rotate(2deg);
  animation-delay: 0.3s;
}

.hair-c {
  left: 58%;
  height: 74px;
  transform: rotate(14deg);
  animation-delay: 0.6s;
}

.hair.hidden {
  opacity: 0;
}

.avatar-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-caption span {
  color: rgba(248, 241, 225, 0.72);
}

.avatar-caption strong,
.fee-ribbon strong {
  font-family: "Bebas Neue", "Noto Sans SC", sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.roulette-panel,
.ai-panel,
.gallery-panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel-soft);
}

.input-label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  color: rgba(248, 241, 225, 0.84);
}

.inline-controls {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

input,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.42);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(248, 209, 95, 0.9);
  box-shadow: 0 0 0 4px rgba(248, 209, 95, 0.14);
}

.clip-button {
  position: relative;
  min-height: 76px;
  border-radius: 22px;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 8% 50%);
  padding: 0 24px;
  cursor: pointer;
  text-align: center;
  font-weight: 900;
}

.clip-button span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.72;
}

.clip-button.wide {
  width: 100%;
}

.result-panel,
.wait-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
}

.result-panel h4,
.wait-panel h4,
.clinic-copy h4,
.gallery-head h4 {
  margin: 14px 0 8px;
  font-size: 1.35rem;
}

.probability-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.probability-row span {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.marquee-shell {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.marquee-track {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  padding: 14px 0;
  min-width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  color: #ffd782;
  font-weight: 700;
}

.clinic-section {
  background:
    linear-gradient(145deg, rgba(10, 14, 18, 0.94), rgba(7, 9, 13, 0.96)),
    linear-gradient(90deg, rgba(19, 200, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(248, 209, 95, 0.08), transparent 26%);
}

.clinic-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(38, 71, 90, 0.34), rgba(7, 7, 7, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent);
}

.clinic-copy {
  padding-right: 10px;
}

.clinic-stats {
  display: grid;
  gap: 12px;
}

.clinic-stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.clinic-stat span {
  display: block;
  margin-bottom: 8px;
  color: rgba(248, 241, 225, 0.72);
}

.clinic-stat strong {
  font-family: "Bebas Neue", "Noto Sans SC", sans-serif;
  font-size: 2rem;
}

.clinic-actions {
  grid-column: 1 / -1;
}

.ai-section {
  background:
    linear-gradient(145deg, rgba(16, 16, 16, 0.95), rgba(8, 8, 8, 0.95)),
    radial-gradient(circle at 85% 14%, rgba(248, 209, 95, 0.16), transparent 22%);
}

.fee-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}

.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.gallery-head span {
  color: rgba(248, 241, 225, 0.68);
  font-size: 14px;
}

.gallery-grid {
  display: grid;
  gap: 16px;
}

.gallery-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.gallery-copy strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.footer-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 28px;
  margin-top: 24px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(17, 17, 17, 0.95), rgba(7, 7, 7, 0.96)),
    radial-gradient(circle at 84% 16%, rgba(255, 90, 42, 0.16), transparent 20%);
}

.tokenomics-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.tokenomics-list li + li {
  margin-top: 10px;
}

.footer-box {
  display: grid;
  gap: 16px;
  align-content: start;
}

.ca-box {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 209, 95, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ca-box span {
  color: rgba(248, 241, 225, 0.72);
}

.ca-box strong {
  font-family: "Bebas Neue", "Noto Sans SC", sans-serif;
  font-size: 2rem;
  word-break: break-all;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  min-width: 220px;
  max-width: min(92vw, 560px);
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

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

.icon-link:hover,
.wallet-button:hover,
.primary-cta:hover,
.secondary-cta:hover,
.ghost-button:hover,
.vote-button:hover,
.ca-box button:hover,
.clip-button:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 209, 95, 0.85);
  box-shadow: 0 16px 28px rgba(248, 209, 95, 0.14);
}

.clip-button:disabled,
.ghost-button:disabled,
.vote-button:disabled,
.wallet-button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-10%) rotate(-24deg);
  }
  100% {
    transform: translateX(235%) rotate(-24deg);
  }
}

@keyframes blink {
  0%,
  100% {
    color: #ff5a2a;
    text-shadow: 0 0 12px rgba(255, 90, 42, 0.3);
  }
  50% {
    color: #ffe38f;
    text-shadow: 0 0 20px rgba(248, 209, 95, 0.55);
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-shell.shake {
  animation: shellShake 0.48s ease;
}

.avatar-card.rattle,
.result-panel.flash,
.wait-panel.flash,
.gallery-card.flash,
.clinic-stat.flash,
.ticker-card.flash,
.primary-cta.flash,
.ghost-button.flash,
.wallet-button.flash,
.clip-button.flash {
  animation: cardPulse 0.6s ease;
}

.result-panel[data-variant="grand"] {
  border-color: rgba(248, 209, 95, 0.88);
  box-shadow:
    0 0 0 1px rgba(248, 209, 95, 0.32),
    0 26px 60px rgba(248, 209, 95, 0.18);
  background:
    radial-gradient(circle at top, rgba(248, 209, 95, 0.16), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.result-panel[data-variant="small"] {
  border-color: rgba(255, 136, 56, 0.65);
  box-shadow: 0 22px 50px rgba(255, 90, 42, 0.14);
}

.result-panel[data-variant="dud"] {
  border-color: rgba(255, 255, 255, 0.12);
}

.wait-panel[data-variant="done"] {
  border-color: rgba(248, 209, 95, 0.7);
  box-shadow: 0 20px 44px rgba(248, 209, 95, 0.12);
}

.combo-meter,
.progress-shell {
  position: relative;
  width: 100%;
  height: 14px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.combo-meter::before,
.progress-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  animation: scanline 2.8s linear infinite;
}

.combo-bar,
.progress-bar {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.45s ease;
}

.combo-bar {
  background: linear-gradient(90deg, #ff6d2b 0%, #f8d15f 55%, #fff1a8 100%);
  box-shadow: 0 0 18px rgba(255, 109, 43, 0.35);
}

.progress-bar {
  background: linear-gradient(90deg, #f8d15f 0%, #ff5a2a 100%);
  box-shadow: 0 0 16px rgba(248, 209, 95, 0.28);
}

.gallery-card.is-new {
  animation: cardRise 0.7s ease;
}

.vote-button.is-hot {
  box-shadow: 0 18px 32px rgba(255, 90, 42, 0.22);
  border-color: rgba(255, 136, 56, 0.8);
}

.fx-surface {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 45;
}

.spark {
  position: fixed;
  left: 0;
  top: 0;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #0c0c0c;
  background: linear-gradient(180deg, #fff4bc, #f8d15f);
  box-shadow: 0 12px 20px rgba(248, 209, 95, 0.24);
  transform: translate(var(--origin-x), var(--origin-y)) scale(0.6);
  opacity: 0;
  animation: sparkFly 0.95s ease-out forwards;
}

.spark.fire {
  background: linear-gradient(180deg, #ffe29c, #ff7d34);
}

.spark.ash {
  color: var(--cream);
  background: linear-gradient(180deg, #6d6d6d, #1b1b1b);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.24);
}

@keyframes shellShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}

@keyframes cardPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes scanline {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(240%);
  }
}

@keyframes cardRise {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sparkFly {
  0% {
    opacity: 0;
    transform: translate(var(--origin-x), var(--origin-y)) scale(0.5);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--origin-x) + var(--drift-x)), calc(var(--origin-y) + var(--drift-y)))
      scale(1);
  }
}

@media (max-width: 1080px) {
  .hero-section,
  .roulette-grid,
  .clinic-panel,
  .ai-grid,
  .footer-block {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    align-items: stretch;
  }

  .hero-orb {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 14px;
  }

  .site-header {
    position: static;
    padding: 12px;
  }

  .brand {
    width: 100%;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-section,
  .section-block,
  .footer-block {
    padding: 20px;
  }

  .ticker-board,
  .inline-controls {
    grid-template-columns: 1fr;
  }

  .hero-section h1 {
    font-size: clamp(2.2rem, 14vw, 3.4rem);
  }

  .avatar-card {
    min-height: 400px;
  }

  .avatar-card img {
    min-height: 364px;
  }

  .gallery-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
