@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Pacifico&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --font-heading: "Playfair Display", Georgia, serif;
  --page-bg: #111111;
  --hero-fg: #f4efe6;
  --accent: #c9a96e;
  --accent-strong: #d4b67a;
  --brand-gold: #c9a96e;
  --brand-gold-light: #d4b67a;
  --text-color: #e5e5e5;
  --panel-bg: #1c1c1c;
  --restaurant-red: #c9a96e;
  --restaurant-red-strong: #d4b67a;
  --dark-header: #111111;
  --paper: rgba(28, 28, 28, 0.94);
  --paper-soft: rgba(38, 38, 38, 0.88);
  --border-gold: rgba(201, 169, 110, 0.42);
  --muted-text: #9a9a9a;
  --wheel-text-color: #fffaf2;
  --wheel-label-font: 700 32px "Playfair Display", Georgia, serif;
  --wheel-rim-gold: #c9a96e;
  --wheel-rim-light: #fff1b8;
  --wheel-rim-deep: #7f5716;
  --wheel-label-max-width: 178;
  --wheel-label-line-height: 34;
  --wheel-label-stroke-width: 5;
  --wheel-prize-radius-factor: 0.58;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.shop-page {
  font-family: Inter, Arial, sans-serif;
}

button,
input,
textarea {
  font-family: inherit;
}

@keyframes s1-gold-shine {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@keyframes welcome-title-shine {
  0% {
    transform: translateX(-130%) skewX(-18deg);
    opacity: 0;
  }

  18% {
    opacity: 0.9;
  }

  48% {
    opacity: 0.35;
  }

  100% {
    transform: translateX(135%) skewX(-18deg);
    opacity: 0;
  }
}

body:not(.welcome-page) {
  position: relative;
  background: #111111;
}

body:not(.welcome-page)::before,
body:not(.welcome-page)::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

body:not(.welcome-page)::before {
  z-index: 0;
  background-image: url("../images/welcome-hero.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body:not(.welcome-page)::after {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.74) 44%, rgba(17, 17, 17, 0.94)),
    linear-gradient(90deg, rgba(201, 169, 110, 0.12), transparent 34%, rgba(201, 169, 110, 0.08));
}

.welcome-page {
  background: #050505;
  color: #ffffff;
}

.welcome-hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.welcome-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.86));
}

.welcome-content {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 32px));
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.welcome-content p {
  color: var(--brand-gold);
  font-size: clamp(22px, 4vw, 42px);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}

.welcome-content h1 {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: var(--brand-gold-light);
  font-size: clamp(64px, 12vw, 150px);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.9;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.75);
}

.welcome-content h1::after {
  position: absolute;
  inset: -18% auto -18% 0;
  width: 34%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), rgba(255, 226, 142, 0.62), transparent);
  mix-blend-mode: screen;
  animation: welcome-title-shine 4.8s ease-in-out infinite;
}

.welcome-steps {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.welcome-steps div {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 15px 12px;
  border: 1px solid rgba(201, 169, 110, 0.36);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.54);
  backdrop-filter: blur(6px);
}

.welcome-steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: #111111;
  font-weight: 800;
}

.welcome-steps strong {
  color: #f4efe6;
  font-size: 15px;
  line-height: 1.25;
}

.legal-page {
  min-height: 100vh;
  background: #111111;
  color: #e5e5e5;
}

.legal-layout {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 48px 0;
}

.legal-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 10px;
  background: rgba(28, 28, 28, 0.94);
}

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

.legal-panel h1,
.legal-panel h2 {
  font-family: var(--font-heading);
}

.legal-panel h1 {
  font-size: 1.8rem;
}

.legal-panel h2 {
  margin-top: 10px;
  font-size: 1.15rem;
}

.legal-panel p {
  color: rgba(229, 229, 229, 0.82);
  line-height: 1.6;
}

.legal-panel a {
  color: var(--brand-gold-light);
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.hero {
  padding: 18px 0 24px;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 2rem;
  color: #f4efe6;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
}

.shop-page .hero-copy > h1 {
  font-family: var(--font-heading);
}

.shop-logo {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  justify-self: center;
  margin-bottom: 4px;
  border-radius: 0.75rem;
  background: rgba(17, 17, 17, 0.42);
  border: 2px solid rgba(201, 169, 110, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

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

.shop-description {
  max-width: 720px;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.58;
  color: rgba(229, 229, 229, 0.86);
}

.shop-description p,
.shop-description ul,
.shop-description ol {
  margin: 0 0 10px;
}

.shop-description p:last-child,
.shop-description ul:last-child,
.shop-description ol:last-child {
  margin-bottom: 0;
}

.shop-description ul,
.shop-description ol {
  display: inline-grid;
  gap: 6px;
  text-align: left;
  padding-left: 22px;
}

.shop-description a {
  color: var(--brand-gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.game-ready-message[hidden] {
  display: none;
}

.game-ready-message {
  max-width: 780px;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.58;
  color: var(--brand-gold-light);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.72);
}

.client-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 420px;
}

.meta-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

.wheel-section {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  gap: 24px;
  align-items: start;
}

.flow-shell {
  display: block;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.shop-footer {
  display: flex;
  justify-content: center;
  margin: 22px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.shop-footer[hidden] {
  display: none;
}

.shop-footer button {
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(17, 17, 17, 0.44);
  color: var(--brand-gold-light);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.shop-footer button:hover {
  background: rgba(201, 169, 110, 0.12);
  color: #fff4c8;
}

.step {
  display: none;
}

.step.is-active {
  display: block;
}

.step-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: #f4efe6;
  text-align: center;
}

.step-copy h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
}

.step-copy p {
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.58;
  color: rgba(229, 229, 229, 0.78);
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(320px, 640px);
  justify-content: center;
  gap: 24px;
  align-items: start;
}

.sentiment-choice {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sentiment-button {
  min-height: 260px;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.86);
  color: #f4efe6;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sentiment-button:hover {
  border-color: rgba(201, 169, 110, 0.75);
  background: rgba(201, 169, 110, 0.1);
  transform: translateY(-2px);
}

.sentiment-icon {
  width: clamp(112px, 16vw, 150px);
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
  line-height: 0;
}

.sentiment-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.sentiment-icon circle:first-child {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
}

.sentiment-icon circle:not(:first-child) {
  fill: currentColor;
}

.sentiment-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
}

.sentiment-good .sentiment-icon {
  color: #86efac;
}

.sentiment-bad .sentiment-icon {
  color: #fca5a5;
}

.review-form {
  background: var(--paper);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  display: grid;
  gap: 16px;
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-gold);
}

.review-form label {
  display: grid;
  gap: 8px;
}

.review-form span {
  font-size: 14px;
  font-weight: 700;
  color: #f4efe6;
}

.review-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 15px;
  background: rgba(17, 17, 17, 0.72);
  color: #f4efe6;
}

.review-form input:focus,
.review-form textarea:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.16);
  outline: none;
}

.stars {
  display: flex;
  gap: 6px;
}

.star-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(229, 229, 229, 0.42);
  border-radius: 8px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.star-button.is-active {
  background: var(--brand-gold);
  color: #111111;
  box-shadow: 0 10px 22px rgba(201, 169, 110, 0.25);
}

.reviews-panel {
  background: rgba(17, 17, 17, 0.86);
  color: #f4efe6;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  display: grid;
  gap: 16px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 169, 110, 0.3);
}

.reviews-list {
  display: grid;
  gap: 12px;
}

.review-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 169, 110, 0.18);
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.review-stars {
  color: var(--brand-gold);
  white-space: nowrap;
}

.review-card p {
  font-size: 14px;
  line-height: 1.45;
}

.google-actions {
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto;
}

.google-review-box {
  max-width: 720px;
  background: var(--paper);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  display: grid;
  gap: 14px;
  margin: 0 auto 18px;
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-gold);
}

.google-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.google-review-head h3 {
  margin: 0;
  font-size: 16px;
  color: #f4efe6;
}

.google-review-content {
  min-height: 112px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid rgba(201, 169, 110, 0.18);
  color: #e5e5e5;
  line-height: 1.55;
  white-space: pre-wrap;
}

.google-instructions {
  max-width: 720px;
  margin: 0 auto 18px;
  padding-left: 22px;
  line-height: 1.55;
  color: rgba(229, 229, 229, 0.86);
}

.compact-button {
  padding: 10px 14px;
  font-size: 14px;
}

.panel {
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-gold);
}

.wheel-shell {
  position: relative;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 54px 32px 42px;
  min-height: 640px;
  width: 100%;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.wheel-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 520px);
  overflow: visible;
}

.pointer {
  position: absolute;
  top: -36px;
  width: 32px;
  height: 38px;
  border: 0;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #fff7d7 0%, var(--brand-gold) 45%, #8f681f 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.72),
    0 10px 18px rgba(0, 0, 0, 0.28);
  z-index: 6;
}

.pointer::after {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 0;
  content: "";
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 16px solid #8f681f;
  transform: translateX(-50%);
}

#wheelCanvas {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.32));
}

.spin-button,
.submit-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.spin-button,
.submit-button {
  background: var(--brand-gold);
  color: #111111;
  box-shadow: 0 12px 24px rgba(201, 169, 110, 0.22);
}

.ghost-button {
  border: 1px solid rgba(201, 169, 110, 0.42);
  background: rgba(201, 169, 110, 0.08);
  color: var(--brand-gold);
}

.spin-button:hover,
.submit-button:hover {
  background: var(--brand-gold-light);
  transform: translateY(-1px);
}

.ghost-button:hover {
  background: rgba(201, 169, 110, 0.16);
  border-color: rgba(201, 169, 110, 0.68);
}

.submit-button:disabled,
.ghost-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.spin-button:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: clamp(74px, 15vw, 102px);
  min-width: 0;
  height: clamp(74px, 15vw, 102px);
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 4px solid rgba(255, 250, 236, 0.9);
  font-size: clamp(20px, 3.4vw, 30px);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.46),
    0 14px 34px rgba(0, 0, 0, 0.34);
}

.spin-button:hover {
  transform: translate(-50%, calc(-50% - 1px));
}

.spin-button:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.panel {
  padding: 24px;
  display: grid;
  gap: 24px;
  color: #e5e5e5;
}

.panel-block {
  display: grid;
  gap: 12px;
}

.prize-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.prize-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 169, 110, 0.14);
  border-radius: 8px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: 0 0 auto;
  position: relative;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.swatch::before {
  position: absolute;
  inset: 2px 3px auto 3px;
  height: 5px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.result-text {
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.58;
  color: var(--muted-text);
}

.wheel-claim-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
}

.wheel-claim-panel p,
.review-form span,
.claim-email-fields span {
  font-family: Inter, Arial, sans-serif;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form span {
  font-size: 14px;
  font-weight: 700;
}

.lead-form input {
  width: 100%;
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
}

.submit-button {
  padding: 14px 20px;
}

.ghost-button {
  padding: 14px 20px;
}

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

.claim-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(17, 17, 17, 0.54);
  backdrop-filter: blur(10px);
}

#savePrizeButton[hidden],
#quitGameButton[hidden] {
  display: none;
}

.wheel-claim-panel {
  width: min(100%, 420px);
  display: grid;
  gap: 12px;
  max-height: min(88vh, 760px);
  margin: 0;
  padding: 22px;
  overflow-y: auto;
  color: #e5e5e5;
  text-align: center;
  border: 1px solid rgba(201, 169, 110, 0.34);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

body.claim-popup-open .shop-logo,
body.claim-popup-open .hero,
body.claim-popup-open .wheel-stage {
  filter: blur(4px);
  opacity: 0.68;
}

#reviewMessage,
#claimMessage,
.alert-message {
  color: #ef4444;
  font-size: 17px;
  font-weight: 800;
}

.promo-qr-block[hidden] {
  display: none;
}

.prize-image-block[hidden] {
  display: none;
}

.prize-image-block {
  width: min(100%, 260px);
  justify-self: center;
}

.prize-image-block img {
  width: 100%;
  max-height: 190px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.promo-qr-block {
  width: min(100%, 230px);
  display: grid;
  gap: 8px;
  justify-items: center;
  justify-self: center;
  padding: 12px;
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.promo-qr-block img {
  width: 160px;
  height: 160px;
  display: block;
  border-radius: 6px;
  background: #ffffff;
}

.promo-qr-block p {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.claim-email-fields {
  display: grid;
  gap: 8px;
}

.claim-email-fields[hidden] {
  display: none;
}

.claim-email-fields label {
  display: grid;
  gap: 8px;
}

.claim-email-fields span {
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.58;
  color: var(--muted-text);
}

.claim-email-fields input {
  width: 100%;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 15px;
  background: rgba(17, 17, 17, 0.72);
  color: #f4efe6;
}

.google-popup[hidden] {
  display: none;
}

.google-popup {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
}

.google-popup-card {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  background: var(--paper);
  color: #f4efe6;
  text-align: center;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.45);
}

.google-popup-card strong {
  color: var(--brand-gold-light);
  font-size: 1.35em;
}

.legal-popup {
  z-index: 45;
}

.legal-popup-card {
  width: min(620px, 100%);
  text-align: left;
}

.legal-popup-card h2 {
  text-align: center;
}

.legal-popup-content {
  display: grid;
  gap: 10px;
}

.legal-popup-content p {
  margin: 0;
  color: rgba(244, 239, 230, 0.86);
  line-height: 1.56;
}

.legal-popup-content strong {
  font-size: 1em;
}

.validation-popup-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.validation-page {
  min-height: 100vh;
}

.validation-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.validation-card {
  width: min(680px, 100%);
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
}

.validation-head {
  display: grid;
  gap: 10px;
  text-align: center;
}

.validation-form {
  display: grid;
  gap: 14px;
}

.validation-form[hidden] {
  display: none;
}

.validation-form label {
  display: grid;
  gap: 8px;
}

.validation-form span {
  font-size: 14px;
  font-weight: 700;
}

.validation-form input {
  width: 100%;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 16px;
  background: rgba(17, 17, 17, 0.72);
  color: #f4efe6;
}

.validation-display {
  display: grid;
  gap: 12px;
}

.validation-display div {
  display: grid;
  gap: 8px;
}

.validation-display span {
  font-size: 13px;
  font-weight: 700;
  color: rgba(244, 239, 230, 0.72);
}

.validation-display input {
  width: 100%;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 16px;
  font-weight: 700;
  background: rgba(17, 17, 17, 0.72);
  color: #f4efe6;
  overflow-wrap: anywhere;
  opacity: 1;
  -webkit-text-fill-color: #f4efe6;
}

.validation-result {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(239, 68, 68, 0.44);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
}

.validation-result.is-valid {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.1);
}

.validation-result.is-used {
  border-color: rgba(201, 169, 110, 0.48);
  background: rgba(201, 169, 110, 0.1);
}

.form-note {
  font-size: 1rem;
  line-height: 1.58;
  color: var(--muted-text);
}

@media (max-width: 900px) {
  .wheel-section {
    grid-template-columns: 1fr;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .wheel-shell {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  body.shop-page {
    --wheel-label-font: 700 32px "Playfair Display", Georgia, serif;
    --wheel-label-max-width: 138;
    --wheel-label-line-height: 34;
    --wheel-label-stroke-width: 4;
    --wheel-prize-radius-factor: 0.56;
  }

  body:not(.welcome-page)::before {
    background-attachment: scroll;
  }

  .welcome-content {
    width: min(100% - 28px, 420px);
    gap: 12px;
  }

  .welcome-content p {
    font-size: 26px;
  }

  .welcome-content h1 {
    font-size: 52px;
    overflow-wrap: anywhere;
  }

  .welcome-steps {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .welcome-steps div {
    grid-template-columns: 32px 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
    padding: 12px 14px;
  }

  .layout {
    width: min(100% - 20px, 1200px);
    padding: 22px 0 36px;
  }

  .shop-logo {
    width: 4rem;
    height: 4rem;
    margin-bottom: 2px;
  }

  .hero {
    padding: 24px 0 20px;
  }

  h1 {
    font-size: 1.5rem;
    line-height: 2rem;
    overflow-wrap: anywhere;
  }

  .shop-description {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.56;
  }

  .step-copy {
    margin-bottom: 14px;
  }

  .step-copy h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .step-copy p {
    font-size: 1rem;
    line-height: 1.58;
  }

  .client-meta {
    grid-template-columns: 1fr;
  }

  .review-layout,
  .wheel-section,
  .sentiment-choice {
    gap: 16px;
  }

  .sentiment-choice {
    grid-template-columns: 1fr;
  }

  .sentiment-button {
    min-height: 160px;
  }

  .sentiment-icon {
    width: clamp(88px, 24vw, 112px);
  }

  .review-form,
  .reviews-panel,
  .google-review-box,
  .panel {
    padding: 16px;
  }

  .review-form input,
  .review-form textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .stars {
    justify-content: space-between;
    gap: 4px;
  }

  .review-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .google-review-head {
    align-items: stretch;
    flex-direction: column;
  }

  .google-instructions {
    padding-left: 18px;
    font-size: 14px;
  }

  .google-actions {
    display: grid;
    max-width: 100%;
  }

  .submit-button,
  .ghost-button,
  .button-link {
    width: 100%;
    min-height: 46px;
  }

  .wheel-shell {
    min-height: auto;
    padding: 34px 8px 18px;
  }

  .wheel-stage {
    width: min(100%, calc(100vw - 66px), 318px);
  }

  .pointer {
    top: -30px;
    width: 28px;
    height: 32px;
  }

  .pointer::after {
    bottom: -9px;
    border-left-width: 12px;
    border-right-width: 12px;
    border-top-width: 15px;
  }

  #wheelCanvas {
    width: 100%;
  }

  .spin-button {
    width: 66px;
    height: 66px;
    min-height: 0;
    padding: 0;
  }

  .star-button {
    width: calc((100vw - 72px) / 5);
    max-width: 42px;
    height: 42px;
    font-size: 24px;
    padding: 0;
  }

  .prize-item {
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .welcome-content h1 {
    font-size: 44px;
  }

  .welcome-content p {
    font-size: 23px;
  }

  .layout {
    width: min(100% - 16px, 1200px);
  }

  h1 {
    font-size: 1.5rem;
  }

  .review-form,
  .reviews-panel,
  .google-review-box,
  .panel {
    padding: 14px;
  }

  .star-button {
    width: calc((100vw - 56px) / 5);
    height: 38px;
    font-size: 22px;
  }

  #wheelCanvas {
    width: 100%;
  }

  .wheel-stage {
    width: min(100%, calc(100vw - 58px), 306px);
  }

  .submit-button,
  .ghost-button {
    font-size: 15px;
    padding: 13px 14px;
  }

  .spin-button {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }
}
