:root {
  --ink: #102a34;
  --ink-soft: #35505a;
  --deep-sea: #0a3440;
  --sea: #0f6677;
  --sun: #c28b42;
  --paper: #fff8ee;
  --paper-strong: #fdf1dc;
  --line: #e7c595;
  --good: #0e9f6e;
  --bad: #d64545;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem min(3vw, 1.5rem);
  background: #ffffff;
  border-bottom: 1px solid #d7e6ea;
  font-size: 0.84rem;
  color: #35505a;
}

.topbar p {
  margin: 0;
}

.topbar a {
  color: #0f6677;
  font-weight: 700;
  text-decoration: none;
}

.main-nav {
  width: min(1140px, 94vw);
  margin: 0.8rem auto 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d8e6ea;
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #4b6670;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 0.8rem;
}

.nav-links a {
  text-decoration: none;
  color: #153640;
  font-weight: 700;
  font-size: 0.86rem;
}

.lang-select {
  border: 1px solid #bdd3d8;
  border-radius: 10px;
  padding: 0.4rem 0.45rem;
  background: #fff;
  font-weight: 700;
  color: #12323c;
}

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #faecd8 0%, transparent 35%),
    radial-gradient(circle at 80% 20%, #d7e8ea 0%, transparent 33%),
    linear-gradient(130deg, #fff8f0 0%, #f7fbfc 45%, #eff7f8 100%);
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.3;
}

.bg-shape-1 {
  width: 420px;
  height: 420px;
  background: conic-gradient(from 80deg, #e2bf91, #f1e0be, #c9dee2, #e2bf91);
  top: -120px;
  right: -100px;
  animation: drift 18s ease-in-out infinite;
}

.bg-shape-2 {
  width: 300px;
  height: 300px;
  background: conic-gradient(from 180deg, #dcb88a, #fef4e4, #bfd9dd, #dcb88a);
  bottom: -90px;
  left: -80px;
  animation: drift 20s ease-in-out infinite reverse;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(25px, -20px) rotate(20deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.page-wrap {
  width: min(1140px, 94vw);
  margin: 2rem auto 2.5rem;
  animation: reveal 600ms ease;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  background: linear-gradient(140deg, rgba(255, 246, 230, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 14px 40px rgba(19, 37, 46, 0.1);
}

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(90deg, rgba(255, 248, 238, 0.99) 0%, rgba(255, 248, 238, 0.95) 56%, rgba(255, 248, 238, 0.6) 80%, rgba(255, 248, 238, 0.12) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.4rem 1.5rem 1.5rem;
  max-width: 100%;
  background: linear-gradient(90deg, rgba(255, 248, 238, 0.98) 0%, rgba(255, 248, 238, 0.94) 70%, rgba(255, 248, 238, 0.3) 100%);
}

.hero-visual {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(255, 248, 238, 0.92) 0%, rgba(255, 248, 238, 0.74) 34%, rgba(255, 248, 238, 0.3) 64%, rgba(255, 248, 238, 0.04) 100%),
    url("headerhero.jpg") 38% center / cover no-repeat;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 248, 238, 0.22) 0%, rgba(255, 248, 238, 0.06) 50%, rgba(255, 248, 238, 0) 82%);
}

.header-winners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 102, 119, 0.08);
  border: 1px solid rgba(15, 102, 119, 0.14);
}

.header-winners-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
}

.header-winners-ticker {
  font-weight: 700;
  color: #2e4e59;
  font-size: 0.9rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-seal {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: transparent;
  color: #0a3561;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  overflow: hidden;
}

.brand-seal-mark {
  border: 0;
  box-shadow: none;
}

.brand-seal svg {
  width: 88%;
  height: 88%;
  display: block;
}

.brand-seal-small {
  width: 42px;
  height: 42px;
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  color: var(--sea);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero-card h1 {
  margin: 0.35rem 0 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.subline {
  margin: 0;
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero-note {
  margin: 0.65rem 0 0;
  color: #56707a;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-rating {
  margin: 0.5rem 0 0;
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e4cfac;
  background: #fff7e9;
  color: #7a520e;
  font-weight: 800;
  font-size: 0.9rem;
}

.site-footer {
  width: min(1140px, 94vw);
  margin: 1.1rem auto 2rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d8e6ea;
  box-shadow: 0 10px 28px rgba(19, 37, 46, 0.07);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer-copy {
  margin: 0;
  color: #49626c;
  font-size: 0.88rem;
  font-weight: 700;
}

.jhold-secret {
  color: var(--sea);
  cursor: pointer;
  user-select: none;
}

.jhold-secret:active {
  opacity: 0.72;
}

.table-pill {
  margin-top: 1rem;
  display: inline-block;
  font-weight: 700;
  background: #e7f2f4;
  border: 1px solid #cadfe3;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  color: #066e6b;
}

.content-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.wheel-card,
.form-card {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid #f3e4cf;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(19, 37, 46, 0.08);
}

.wheel-card {
  padding: 1rem 1rem 1.25rem;
  text-align: center;
  position: relative;
}

.wheel-canvas-wrap {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
}

.wheel-canvas-wrap.jackpot-shake {
  animation: jackpotShake 2s cubic-bezier(0.16, 0.84, 0.24, 1);
}

#wheelCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
  display: block;
  margin: 0;
}

.wheel-center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 8px 18px rgba(19, 37, 46, 0.18));
}

.wheel-center-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pointer {
  width: 38px;
  height: 30px;
  border-radius: 56% 56% 44% 44% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 36% 34%, #fff9f0 0 2px, transparent 2.1px),
    radial-gradient(circle at 64% 34%, #fff9f0 0 2px, transparent 2.1px),
    linear-gradient(180deg, #ffbd78 0%, #f97a3f 56%, #ef542e 100%);
  position: absolute;
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 4px 12px rgba(249, 100, 64, 0.34);
  transform-origin: 50% 22%;
}

.pointer::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 26px;
  width: 22px;
  height: 16px;
  background: linear-gradient(180deg, #ffb46f, #f06234);
  clip-path: polygon(50% 100%, 0 0, 38% 0, 50% 65%, 62% 0, 100% 0);
}

.pointer::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 11px;
  width: 18px;
  height: 10px;
  border-bottom: 2px solid rgba(255, 244, 228, 0.96);
  border-radius: 0 0 999px 999px;
}

.spin-btn {
  margin-top: 0.8rem;
  border: none;
  border-radius: 14px;
  padding: 0.85rem 1.3rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(120deg, #e47f2d, #f39d45);
  color: #fff;
  box-shadow: 0 10px 18px rgba(243, 157, 69, 0.35);
}

.spin-status {
  min-height: 1.4rem;
  margin-top: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.spin-status.spinning {
  color: #0f6677;
}

.spin-status.win {
  color: #9b6400;
}

.spin-status.lose {
  color: #3e5c64;
}

.spin-btn:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.fineprint {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.result-box {
  margin-top: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  text-align: left;
}

.result-box.win {
  background: linear-gradient(145deg, #fff7da, #fffdf6);
  border-color: #d7ad45;
}

.result-box.lose {
  background: linear-gradient(145deg, #f4f8fa, #ffffff);
  border-color: #c6d7de;
}

.result-box h3 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", serif;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 52, 0.45);
  display: grid;
  place-items: center;
  z-index: 40;
}

.popup-card {
  width: min(440px, 92vw);
  border-radius: 18px;
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  animation: popupIn 280ms ease;
}

.popup-card h3 {
  margin: 0 0 0.4rem;
  font-family: "Playfair Display", serif;
}

.popup-card p {
  margin: 0;
  color: #2d4a54;
}

.popup-close {
  margin-top: 0.9rem;
}

.popup-win {
  background: linear-gradient(145deg, #fff8ea, #fffdf8);
  border: 2px solid #e3bc6a;
}

.popup-lose {
  background: linear-gradient(145deg, #f4f8fa, #ffffff);
  border: 2px solid #c6d7de;
}

.confetti-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  animation: confettiDrop 1.9s ease-in forwards;
}

.vip-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #fffbe6 0%, #ffd777 45%, #f3ad3c 100%);
  box-shadow: 0 0 12px rgba(255, 210, 110, 0.85);
  left: var(--sx);
  top: var(--sy);
  animation: vipSparkleBurst 620ms cubic-bezier(0.18, 0.82, 0.22, 1) forwards;
}

.vip-sparkle.alt {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ffffff 0%, #ffeaa8 58%, #f1b74c 100%);
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes confettiDrop {
  0% {
    opacity: 0;
    transform: translateY(-10px) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(540deg);
  }
}

@keyframes vipSparkleBurst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  22% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 0.22), calc(var(--dy) * 0.22)) scale(1.1) rotate(80deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(250deg);
  }
}

@keyframes jackpotShake {
  0% { transform: translateX(0) rotate(0deg); }
  10% { transform: translateX(-5px) rotate(-1deg); }
  20% { transform: translateX(5px) rotate(1deg); }
  30% { transform: translateX(-7px) rotate(-1.2deg); }
  40% { transform: translateX(7px) rotate(1.2deg); }
  50% { transform: translateX(-6px) rotate(-1deg); }
  60% { transform: translateX(6px) rotate(1deg); }
  70% { transform: translateX(-4px) rotate(-0.7deg); }
  80% { transform: translateX(4px) rotate(0.7deg); }
  90% { transform: translateX(-2px) rotate(-0.3deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

.hidden {
  display: none;
}

.form-card {
  padding: 1.15rem;
}

.form-card h2 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", serif;
}

.form-card p {
  margin-top: 0;
  color: var(--ink-soft);
}

label {
  display: block;
  margin: 0.65rem 0 0.2rem;
  font-weight: 700;
}

input[type="email"],
input[type="number"] {
  width: 100%;
  border: 1px solid #dfd7cb;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.checks {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.checks label {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.links {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.links a {
  color: #0f4f5f;
  font-weight: 700;
  text-decoration: none;
}

.links a[data-i18n="openGoogle"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #9fd5df;
  background: #d9f3f8;
  color: #0c4f5d;
}

.form-message {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  font-weight: 700;
}

.form-message.error {
  color: var(--bad);
}

.form-message.ok {
  color: var(--good);
}

.winner-feed {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f2e4d2;
}

.winner-feed h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

#winnerTicker {
  margin: 0;
  font-weight: 700;
  color: #1d4250;
}

.admin-link {
  margin-top: 1rem;
  display: inline-block;
}

/* ── Star rating widget ───────────────────────────────── */
.star-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.15rem;
}

.star-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.9rem;
  cursor: pointer;
  color: #d0c4b4;
  line-height: 1;
  transition: color 120ms, transform 100ms;
  -webkit-tap-highlight-color: transparent;
}

.star-btn.active,
.star-btn.hover {
  color: #e8a30a;
}

.star-btn:hover {
  transform: scale(1.15);
}

/* ── Review textarea ──────────────────────────────────── */
#reviewText {
  width: 100%;
  border: 1px solid #dfd7cb;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  resize: vertical;
  min-height: 80px;
}

.word-count {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #7a8f96;
  text-align: right;
}

@media (max-width: 920px) {
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand-row {
    width: 100%;
    justify-content: center;
  }

  .lang-select {
    margin-left: auto;
    margin-right: auto;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-card,
  .wheel-card,
  .form-card {
    border-radius: 18px;
  }

  .page-wrap {
    width: 100%;
    padding: 0 0.5rem;
    margin-top: 0.75rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
  }

  .spin-btn {
    width: 100%;
  }

  .wheel-card {
    padding: 0.75rem 0.75rem 1rem;
  }

  .form-card {
    padding: 0.85rem;
  }

  .hero-card {
    padding: 1rem 0.9rem;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .hero-visual {
    min-height: 220px;
    order: 2;
  }

  .hero-copy {
    order: 1;
    padding: 1rem 0.9rem;
  }

  .site-footer {
    width: calc(100% - 1rem);
    margin-bottom: 1.2rem;
  }

  .hero-card h1 {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .brand-sub {
    display: none;
  }

  .brand-seal {
    width: 42px;
    height: 42px;
  }

  .brand-seal-small {
    width: 38px;
    height: 38px;
  }
}
