/* Shared layout for the Spin Wheel, Congratulations and Thank You pages:
   one screen, full width, no scrolling. */
html, body {
  height: 100%;
  overflow: hidden;
}
.sw-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none !important;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0 !important;
  padding: 12px 16px !important;
}
.sw-strip {
  flex: none;
  width: min(100%, 620px);
}
.sw-strip img {
  display: block;
  width: 100%;
  height: auto;
}
.sw-logo {
  flex: none;
  height: clamp(64px, 17vh, 190px);
  margin-top: 4px;
}
.sw-logo img {
  height: 100%;
  width: auto;
}
@media (max-height: 520px) {
  .sw-logo { display: none; }
  .sw-strip { width: min(100%, 380px); }
}

/* Marquee bulbs on the gold rims */
.sw-bulb {
  fill: #fff4c2;
  animation: swBulb 1.2s ease-in-out infinite alternate;
}
.sw-bulb.alt {
  animation-delay: -0.6s;
}
.sw-spinning .sw-bulb {
  animation-duration: 0.25s;
}
@keyframes swBulb {
  from { fill: #fff4c2; }
  to { fill: #c96a12; }
}

/* Result pages: medallion + message, centred between the logo and the bottom strip */
.sw-result {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8vh;
  text-align: center;
}
.sw-medal {
  width: min(72vw, 300px, 34vh);
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 10px 22px rgba(120, 33, 12, 0.35));
  animation: swMedalIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.sw-medal svg {
  display: block;
  width: 100%;
  height: 100%;
}
.sw-medal text {
  font-family: vivoHeavy, Arial, sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
}
@keyframes swMedalIn {
  from { transform: scale(0.6); opacity: 0; }
}
.sw-title {
  margin: 0;
  font-family: vivoHeavy, Arial, sans-serif;
  font-size: clamp(24px, min(5.4vh, 8.6vw), 46px);
  line-height: 1.1;
  color: #78210c;
}
.sw-lead {
  margin: 0;
  font-size: clamp(15px, 2.2vh, 20px);
  line-height: 1.35;
  color: #78210c;
}
.sw-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .sw-bulb, .sw-medal { animation: none; }
}

/* Primary call-to-action, matches the Spin the Wheel button */
.sw-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: min(80vw, 320px);
  padding: clamp(10px, 1.8vh, 16px) 28px;
  border: 2px solid #fcd793;
  border-radius: 999px;
  font-family: vivoHeavy, Arial, sans-serif;
  font-size: clamp(16px, 2.5vh, 21px);
  line-height: 1.35;
  color: #fcd793 !important;
  text-decoration: none;
  background: linear-gradient(to bottom, #a3301a, #78210c);
  box-shadow: 0 6px 14px rgba(120, 33, 12, 0.35);
  transition: transform 0.15s ease;
}
.sw-cta:active {
  transform: scale(0.97);
}
.sw-cta small {
  font-size: 0.8em;
  opacity: 0.9;
}

/* Home page */
.sw-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4vh;
}
.sw-hero-logo {
  height: clamp(150px, 40vh, 400px);
  max-width: 100%;
}
.sw-hero-logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Personal details form */
.sw-form-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5vh 0;
}
.sw-form-card {
  width: min(100%, 780px) !important;
  margin: 0 !important;
  padding: 18px 20px 20px;
  border: 2px solid #fcd793;
  border-radius: 22px;
  background: linear-gradient(to bottom, #a3301a, #78210c);
  box-shadow: 0 10px 26px rgba(120, 33, 12, 0.35);
  text-align: center;
}
.sw-form-card h1 {
  margin: 0 0 14px;
  font-family: vivoHeavy, Arial, sans-serif;
  font-size: clamp(18px, 4.6vw, 24px);
  color: #fcd793;
}
.sw-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  text-align: left;
}
@media (min-width: 700px) {
  .sw-fields {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }
  .sw-fields .sw-wide {
    grid-column: 1 / -1;
  }
}
.sw-form-card .form-footer {
  margin-top: 12px;
}
.sw-form-card .checkbox-container {
  justify-content: center;
  margin-top: 4px;
  font-size: 13px;
  text-align: left;
  color: #fbe3b0;
}
.sw-form-card .submit-btn {
  margin-top: 12px;
  min-width: min(70vw, 260px);
  border-radius: 999px !important;
  border: 0 !important;
  font-family: vivoHeavy, Arial, sans-serif;
  color: #78210c !important;
  background: #ffd56a !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Participant account: login card and account page */
.sw-account-card .sw-account-sub {
  margin: -6px 0 14px;
  color: #fbe3b0;
  font-size: 14px;
}
.sw-fields-single {
  grid-template-columns: 1fr !important;
}
.sw-account-card .form-control,
.sw-account .form-control {
  height: 44px;
  border-radius: 20px !important;
  border: 1px solid #fcd793 !important;
  color: #fcd793 !important;
  background: transparent !important;
}
.sw-account-card .form-control::placeholder,
.sw-account .form-control::placeholder {
  color: rgba(252, 215, 147, 0.8) !important;
}
.sw-account-card .submit-btn,
.sw-account .submit-btn {
  margin-top: 12px;
  min-width: min(70vw, 260px);
  border-radius: 999px !important;
  border: 0 !important;
  font-family: vivoHeavy, Arial, sans-serif;
  color: #78210c !important;
  background: #ffd56a !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.sw-account-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #fbe3b0;
}
.sw-link {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  color: #ffd56a !important;
  text-decoration: underline;
}
.sw-account-msg {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  color: #78210c;
  background: #ffe7a8;
}
.sw-account-msg.error {
  color: #fff;
  background: #b3261e;
}
.sw-account-msg.success {
  color: #0f3d1e;
  background: #c7efcf;
}

.sw-account {
  position: relative;
  z-index: 2;
  flex: 1;
  width: min(100%, 780px);
  padding: 2vh 0;
}
.sw-account-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sw-account-head h1 {
  margin: 0;
  font-family: vivoHeavy, Arial, sans-serif;
  font-size: clamp(22px, 6vw, 34px);
  color: #78210c;
}
.sw-account-head .sw-link {
  color: #78210c !important;
}
.sw-panel {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 2px solid #fcd793;
  border-radius: 22px;
  color: #fff8e8;
  background: linear-gradient(to bottom, #a3301a, #78210c);
  box-shadow: 0 10px 26px rgba(120, 33, 12, 0.3);
}
.sw-panel h2 {
  margin: 0 0 12px;
  font-family: vivoHeavy, Arial, sans-serif;
  font-size: 20px;
  color: #fcd793;
}
.sw-details,
.sw-entry-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px 18px;
  margin: 0;
}
.sw-details dt,
.sw-entry-meta dt {
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fbe3b0;
  opacity: 0.85;
}
.sw-details dd,
.sw-entry-meta dd {
  margin: 0;
  font-size: 15px;
  word-break: break-word;
}
.sw-entry {
  padding: 14px 0;
  border-top: 1px solid rgba(252, 215, 147, 0.35);
}
.sw-entry:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.sw-entry-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sw-year {
  padding: 2px 12px;
  border-radius: 999px;
  font-family: vivoHeavy, Arial, sans-serif;
  color: #78210c;
  background: #ffd56a;
}
.sw-entry-date {
  font-size: 13px;
  color: #fbe3b0;
}
.sw-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid #fbe3b0;
}
.sw-result strong {
  font-family: vivoHeavy, Arial, sans-serif;
  font-size: 17px;
}
.sw-result span {
  font-size: 13px;
  color: #fbe3b0;
}
.sw-result.won { border-left-color: #6fd38a; }
.sw-result.pending { border-left-color: #ffd56a; }
.sw-result.rejected { border-left-color: #ff8a80; }
.sw-result.muted { border-left-color: rgba(251, 227, 176, 0.5); }
.sw-vouchers {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.sw-voucher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px;
  border: 1px dashed #ffd56a;
  border-radius: 14px;
  background: rgba(255, 213, 106, 0.12);
}
.sw-voucher span {
  font-size: 12px;
  text-transform: uppercase;
  color: #fbe3b0;
}
.sw-voucher code {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #ffd56a;
  user-select: all;
}
.sw-voucher small {
  color: #fbe3b0;
}
.sw-inline-link {
  font-family: vivoHeavy, Arial, sans-serif;
  color: #78210c !important;
  text-decoration: underline;
}

/* Account page: change mobile / email */
.sw-edit {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.sw-edit details {
  border: 1px solid rgba(252, 215, 147, 0.5);
  border-radius: 16px;
  padding: 10px 14px;
}
.sw-edit summary {
  cursor: pointer;
  color: #ffd56a;
  font-size: 15px;
}
.sw-edit details[open] summary {
  margin-bottom: 10px;
}
.sw-edit .sw-fields {
  display: grid;
  gap: 10px;
}
