@font-face {
  font-family: 'CelebrationsMix';
  src: url('./assets/fonts/CelebrationsMix-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CelebrationsSans';
  src: url('./assets/fonts/CelebrationsSans-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GothamMedium';
  src: url('./assets/fonts/Gotham-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


:root {
  --red: #d50100;
  --deep-red: #d40004;
  --yellow: #ffc907;
  --white: #fff;
  font-family: 'CelebrationsSans', sans-serif;
}

*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--red);
  color: var(--white);
}

.show {
  display: block !important;
}

.hidden {
  display: none !important;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero {
  width: 100%;
  padding-top: 60px;
  position: relative;
}

.decor {
  position: fixed;
  user-select: none;
  z-index: 2;
}

/* Circles */
.circle {
  position: fixed;
  user-select: none;
  border-radius: 100%;
  top: clamp(-100px, -5vw, -40px);
  background-color: var(--yellow);
}

.circle-1 {
  width: clamp(200px, 16vw, 300px);
  height: clamp(200px, 16vw, 300px);
  left: clamp(-70px, -5vw, -30px);
}

.circle-2 {
  width: clamp(160px, 12vw, 260px);
  height: clamp(160px, 12vw, 260px);
  right: clamp(-90px, -3vw, -20px);
}

/* Person 1 */
.decor.person-1 {
  left: clamp(9px, 2vw, 32px);
  top: clamp(25px, 0.5vw, 0px);
  width: clamp(170px, 12vw, 280px);
}

/* Person 2 */
.decor.person-2 {
  right: clamp(40px, 7vw, 85px);
  top: clamp(40px, 7vw, 105px);
  width: clamp(140px, 14.5vw, 250px);
  z-index: 5;
}

/* Tree */
.decor.tree {
  right: clamp(-128px, -10vw, -40px);
  top: clamp(-120px, -8vw, -40px);
  width: clamp(300px, 24vw, 390px);
}

/* Twix */
.decor.twix-angle {
  left: clamp(-40px, -4vw, -40px);
  top: clamp(25%, 25%, 30%);
  width: clamp(106px, 12vw, 200px);
}

/* Confetti drops */
.decor.confetti-drops {
  left: clamp(10px, 1vw, 10px);
  top: clamp(40%, 42%, 48%);
  width: clamp(70px, 8vw, 150px);
}

/* Malteser */
.decor.malteser-angle {
  left: clamp(-55px, -4vw, -20px);
  top: clamp(54%, 56%, 62%);
  width: clamp(140px, 12vw, 200px);
  transform: rotate(-28deg);
}

/* Birthday */
.decor.birthday {
  left: clamp(10%, 10%, 15%);
  bottom: clamp(20px, 4vw, 40px);
  width: clamp(200px, 20vw, 200px);
}

/* Mars */
.decor.mars-angle {
  right: clamp(-66px, -5vw, -20px);
  top: clamp(25%, 30%, 32%);
  width: clamp(170px, 15vw, 250px);
  transform: rotate(-50deg);
}

/* Tape */
.decor.confetti-tape {
  right: clamp(24px, 2vw, 24px);
  top: clamp(56%, 56%, 70%);
  width: clamp(80px, 12vw, 170px);
  transform: rotate(45deg);
}

/* Milkyway */
.decor.milkyway-angle {
  right: clamp(17%, 17%, 22%);
  bottom: clamp(48px, 4vw, 60px);
  width: clamp(190px, 15vw, 190px);
}

/* Title logo */
.title .logo {
  max-width: clamp(500px, 50vw, 750px);
  width: 100%;
}

/* Small logos under title */
.title-sm-logos {
  max-width: clamp(260px, 55vw, 820px);
}

/* Hero logos */
.logos .confetti-stars {
  height: clamp(50px, 6vw, 90px);
}

.logos .celebration {
  height: clamp(200px, 13vw, 250px);
}

.logos .mm {
  height: clamp(170px, 10vw, 190px);
}

.title {
  text-align: center;
  position: relative;
}

.title-sm-logos {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
}

.title-sm-logos img {
  width: 60px;
}

.title-sm-logos img:first-child {
  transform: rotate(65deg);
}

.title-sm-logos img:last-child {
  transform: rotate(25deg);
}

.subtitle {
  text-align: center;
  max-width: 420px;
  margin: 60px auto 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
  font-family: 'GothamMedium', sans-serif;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 90px;
  margin-top: 10px;
}

.stars{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 70%;
  margin: 0 auto;
}

.stars img {
  position: absolute;
  width: clamp(80px, 15vw, 80px);
}

.star-1 {
  left: clamp(5%, 10vw, 15%);
  top: clamp(190px, 8vh, 200px);
  transform: rotate(15deg);
}

.star-2 {
  right: clamp(2%, 6vw, 10%);
  top: clamp(140px, 10vh, 200px);
  transform: rotate(-15deg);
}


/* calendar grid */
.calendar-wrap {
  width: 100%;
  padding: 0px 32px 85px;
  margin-top: 50px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  position: relative;
  flex: 1;
  padding-bottom: 200px;
}

.calendar {
  width: 70%;
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* ALWAYS 6 PER ROW */
  gap: 38px 54px; /* row-gap, column-gap */
  justify-items: center;
}

.calendar > :nth-last-child(3) {
  grid-column-start: 1.5; 
}

.day {
  background: transparent;
  border-radius: 14px;
  padding: 18px 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: default;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
  border: 3px solid #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
  user-select: none;
  position: relative;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #00000080;
  border-radius: 14px;
}

.lock-overlay img {
  width: 30px;
  display: inline-block;
}

.day .small {
  font-size: clamp(16px, 2vw, 24px);
  font-family: 'CelebrationsMix', sans-serif;
  opacity: 0.95;
}

.day .num {
  font-size: clamp(40px, 6vw, 70px);
  font-family: 'CelebrationsMix', sans-serif;
  margin-top: clamp(4px, 0.5vw, 6px);
}

.today {
  background: var(--yellow);
  color: var(--deep-red);
  cursor: pointer;
}

.future {
  opacity: 0.95;
}

.disabled {
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(0.02);
}

.redeemed {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.6);
  opacity: 0.9;
  color: #fff;
}

.redeemed .num {
  position: relative;
}

.redeemed .check {
  position: absolute;
  right: 8px;
  top: 8px;
  background: green;
  color: white;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 8px;
  font-weight: 700;
}

/* bottom action / CTA */
.cta {
  width: 100%;
  background: var(--yellow);
  padding: 22px;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta img {
  width: 100%;
  max-width: 470px;
}

/* modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--yellow);
  color: #000;
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  padding: 22px;
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-header {
  text-align: center;
  position: relative;
}

.modal h2 {
  margin-bottom: 12px;
  font-size: 22px;
  font-family: 'CelebrationsMix', sans-serif;
  color: #fff;
}

.modal p {
  margin: 0 auto;
  color: #444;
  max-width: 400px;
}

.modal-claim-small {
  font-size: 12px;
}

.modal-discount-big {
  font-size: 48px;
  font-weight: 700;
  color: var(--red);
}

.modal-last-line {
  font-size: 14px;
}

.modal .form-row {
  display: flex;
  gap: 10px;
}

.redeemForm {
  margin: 20px auto 0;
  max-width: 400px;
}

.redeemForm .form-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #444;
  text-align: center;
}

.redeemForm .form-control {
  flex: 1;
  padding: 8px 12px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
  width: 100%;
}

.redeemForm .form-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.redeemForm .form-status {
  font-size: 14px;
  color: #444;
}

.redeemForm .btn,
.code-container .btn {
  padding: 14px 14px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.code-container{
  display: none;
  text-align: center;
  margin-top: 12px;
}
.success-code {
  margin-bottom: 10px;
  background: #f4f4f4;
  padding: 10px;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 2px;
  color: #0a0;
}

.close-x {
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 700;
  cursor: pointer;
}

.privacy-disclaimer {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 11px;
  color: #333;
}

.privacy-link {
  text-decoration: underline;
  cursor: pointer;
}

.privacy-tooltip {
  display: none;
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 260px;
  background: #ffffff;
  color: #000000;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 11px;
  line-height: 1.4;
  z-index: 5;
}

.privacy-disclaimer:hover .privacy-tooltip {
  display: block !important;
}

@media screen and (min-width: 1920px) {
  .calendar{
    width: 80%;
  }
}


@media screen and (min-width: 2400px) and (min-height: 1200px) {
  /* Circles */
  .circle-1 {
    width: clamp(200px, 16vw, 450px);
    height: clamp(200px, 16vw, 450px);
    left: clamp(-70px, -5vw, -50px);
  }

  .circle-2 {
    width: clamp(160px, 12vw, 400px);
    height: clamp(160px, 12vw, 400px);
    right: clamp(-90px, -3vw, -40px);
  }

  /* Person 1 */
  .decor.person-1 {
    width: clamp(170px, 12vw, 380px);
    left: clamp(9px, 2vw, 50px);
    top: clamp(-15px, 0.5vw, 10px);
  }

  /* Person 2 */
  .decor.person-2 {
    width: clamp(140px, 12vw, 350px);
    right: clamp(40px, 7vw, 120px);
    top: clamp(40px, 7vw, 120px);
  }

  /* Tree */
  .decor.tree {
    width: clamp(300px, 24vw, 500px);
    right: clamp(-128px, -10vw, -60px);
    top: clamp(-120px, -8vw, -60px);
  }

  /* Twix */
  .decor.twix-angle {
    width: clamp(106px, 12vw, 300px);
  }

  /* Confetti drops */
  .decor.confetti-drops {
    width: clamp(70px, 8vw, 250px);
  }

  /* Malteser */
  .decor.malteser-angle {
    width: clamp(140px, 12vw, 300px);
  }

  /* Birthday */
  .decor.birthday {
    width: clamp(240px, 20vw, 400px);
    bottom: clamp(20px, 4vw, 60px);
  }

  /* Mars */
  .decor.mars-angle {
    width: clamp(170px, 15vw, 350px);
  }

  /* Tape */
  .decor.confetti-tape {
    width: clamp(80px, 12vw, 300px);
  }

  /* Milkyway */
  .decor.milkyway-angle {
    width: clamp(190px, 15vw, 350px);
  }

  /* Title logo */
  .title .logo {
    max-width: clamp(500px, 50vw, 900px);
  }

  /* Small logos under title */
  .title-sm-logos {
    max-width: clamp(260px, 35vw, 600px);
  }

  /* Hero logos */
  .logos .confetti-stars {
    height: clamp(50px, 6vw, 100px);
  }

  .logos .celebration {
    height: clamp(100px, 15vw, 220px);
  }

  .logos .mm {
    height: clamp(70px, 10vw, 150px);
  }

  .day .num {
    font-size: clamp(70px, 8vw, 120px);
    margin-top: clamp(6px, 1vw, 12px);
  }

  .day .small {
    font-size: clamp(30px, 4vw, 50px);
  }
}


@media screen and (min-width: 1024px) {
  body {
    overflow: hidden;
  }

  .lg-block {
    display: block !important;
  }

  .lg-hidden {
    display: none !important;
  }

  .lg-inline-block {
    display: inline-block !important;
  }

  .cta{
    position: fixed;
    bottom: 0;
  }
}



@media screen and (max-width:1023px) {
  .main {
    overflow: hidden;
  }

  .page {
    height: 100%;
    overflow-y: scroll;
  }

  .decor,
  .circle {
    position: absolute;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
  }

  .hero-content .subtitle {
    order: 2;
    font-size: 10px;
    margin-top: 28px;
    max-width: 180px;
  }

  .title-sm-logos {
    max-width: 260px;
    display: none;
  }

  .title-sm-logos img {
    width: 36px;
  }

  .decor.tree {
    right: -90px;
    top: 0;
    width: 180px;
  }

  .logos {
    gap: 25px;
    margin-top: 0px;
    margin-bottom: 10px;
  }

  .logos .celebration {
    height: 60px;
  }

  .logos .mm {
    height: 40px;
  }

  .circle {
    width: 130px;
    height: 130px;

  }

  .circle-1 {
    left: -92px;
    top: 60px;
  }

  .circle-2 {
    top: -57px;
    right: -104px;
  }

  .decor.person-1 {
    width: 90px;
    top: auto;
    bottom: 12px;
  }

  .decor.twix-angle {
    left: -50px;
    top: 20%;
    width: 80px;
  }

  .decor.malteser-angle {
    left: -60px;
    top: 62%;
    width: 100px;
  }

  .decor.milkyway-angle {
    right: -25px;
    bottom: 20px;
    width: 120px;
  }

  .decor.mars-angle {
    right: -82px;
    top: 12%;
    width: 125px;
    transform: rotate(-64deg);
  }

  .hero {
    padding: 30px 30px 0;
  }

  .title .logo {
    max-width: 220px;
  }


  .day {
    min-height: 74px;
    padding: 5px;
    border-radius: 10px;
  }

  .lock-overlay img {
    width: 24px;
  }

  .day .small {
    font-size: 12px;
  }

  .day .num {
    font-size: 32px;
  }

  .calendar-wrap {
    padding-bottom: 40px;
    margin-top: 0;
  }

  .calendar {
    gap: 20px;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
  }

  .cta {
    min-height: 80px;
  }

  .cta img {
    max-width: 350px;
  }
}

@media screen and (min-width: 768px) {
  .md-block {
    display: block !important;
  }

  .md-hidden {
    display: none !important;
  }
}