
:root {
  --red: #e10600;
  --red-deep: #bd0500;
  --white: #fffdf8;
  --black: #090909;
  --line: rgba(255, 255, 255, .74);
  --max-width: 1480px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--red);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.055), transparent 29%),
    linear-gradient(135deg, var(--red) 0%, #eb0d08 48%, var(--red-deep) 135%);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }

.snow-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
}

.snowflake {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: var(--white);
  animation: snow-fall linear forwards;
}

@keyframes snow-fall {
  from { transform: translate(0, 0); }
  to { transform: translate(var(--drift, 0px), 110vh); }
}

.page-shell {
  width: min(100%, 1800px);
  min-height: 100vh;
  margin: 0 auto;
  padding:
    max(10px, env(safe-area-inset-top))
    clamp(20px, 4vw, 72px)
    clamp(42px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(500px, 1.08fr);
  gap: clamp(42px, 6vw, 104px);
  align-items: start;
}

.book-column {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.book-stage {
  position: relative;
  width: min(100%, 720px);
  line-height: 0;
  margin-top: clamp(30px, 4vw, 48px);
  --book-shift: -8.5%;
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: translateX(var(--book-shift));
  filter: drop-shadow(0 34px 22px rgba(70, 0, 0, .28));
}

.release-date {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(calc(-50% + var(--book-shift)));
  margin: 0;
  padding: 0;
  width: max-content;
  line-height: 1;
  text-align: center;
  color: var(--white);
  background: none;
  border: 0;
  box-shadow: none;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}


.release-date time { display: inline-block; }

.content-column { min-width: 0; }

h1 {
  margin: clamp(8px, 1.2vw, 18px) 0 clamp(24px, 2.6vw, 42px);
  max-width: 13ch;
  font-size: clamp(56px, 5.1vw, 94px);
  line-height: .93;
  letter-spacing: -.045em;
  text-transform: uppercase;
  font-weight: 900;
}

h1 .h1-line,
h1 strong {
  display: block;
  white-space: nowrap;
  font-weight: inherit;
}

.counter-actions {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.counter-button {
  width: 100%;
  min-height: 72px;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  padding: 12px 18px;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.15;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}

.counter-button:hover { transform: translateY(-2px); }
.counter-button:active { transform: translateY(0); }
.counter-button:focus-visible,
.postcode-form button:focus-visible,
.store-link:focus-visible,
.postcode-form input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 253, 248, .55);
}

.postcode-form input:focus-visible { border-color: var(--white); }

.counter-button-primary {
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--red);
  font-size: clamp(21px, 1.65vw, 31px);
}

.counter-button-secondary {
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: clamp(14px, 1.03vw, 18px);
}

.counter-button .symbol {
  grid-column: 1;
  font-size: 1.7em;
  line-height: 1;
  font-weight: 400;
}

.counter-button span:last-child { grid-column: 2; }
.counter-button[hidden] { display: none; }

.bookstore-section {
  max-width: 790px;
  margin-top: clamp(28px, 3vw, 52px);
}

.bookstore-section h2 {
  margin: 0 0 6px;
  font-size: clamp(23px, 1.8vw, 31px);
  line-height: 1.08;
}

.bookstore-section > p {
  max-width: 68ch;
  margin: 0 0 24px;
  font-size: clamp(16px, 1.18vw, 20px);
  line-height: 1.45;
}

.postcode-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  margin-bottom: 12px;
}

.postcode-form input,
.postcode-form button {
  min-height: 62px;
  border-radius: 8px;
  border: 2px solid var(--white);
}

.postcode-form input {
  min-width: 0;
  padding: 0 18px;
  color: var(--white);
  background: rgba(145, 0, 0, .12);
  font-size: clamp(18px, 1.4vw, 24px);
}

.postcode-form input::placeholder { color: rgba(255,255,255,.72); }

.postcode-form button {
  padding: 0 28px;
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}

.finder-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
}

.store-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.store-item { border-top: 1px solid var(--line); }
.store-item:last-child { border-bottom: 1px solid var(--line); }

.store-link {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 16px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(17px, 1.3vw, 23px);
}

.pin {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--white);
  flex-shrink: 0;
}

.pin svg { width: 100%; height: 100%; }
.store-name { font-weight: 800; }
.store-city { font-weight: 400; }

.rating-section {
  width: min(100%, var(--max-width));
  margin: clamp(32px, 4vw, 56px) auto 0;
  padding-top: clamp(18px, 2vw, 28px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.rating-section h2 {
  margin: 0 0 10px;
  font-size: clamp(12px, .9vw, 14px);
  font-weight: 400;
  opacity: .75;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.star {
  background: none;
  border: none;
  color: rgba(255, 253, 248, .35);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1;
  padding: 2px;
  transition: transform .12s ease, color .12s ease;
}

.star:hover,
.star:focus-visible { transform: scale(1.12); }
.star.filled { color: #ffd54a; }


.star-rating {
  position: relative;
}

.star-rating.celebrate .star {
  animation: star-pop .48s ease both;
}

.star-rating.celebrate .star:nth-child(2) { animation-delay: .05s; }
.star-rating.celebrate .star:nth-child(3) { animation-delay: .10s; }
.star-rating.celebrate .star:nth-child(4) { animation-delay: .15s; }
.star-rating.celebrate .star:nth-child(5) { animation-delay: .20s; }

.star-rating.celebrate::before,
.star-rating.celebrate::after {
  content: "✦";
  position: absolute;
  top: 50%;
  color: #ffd54a;
  font-size: 18px;
  pointer-events: none;
  animation: sparkle-pop .65s ease both;
}

.star-rating.celebrate::before { left: calc(50% - 92px); }
.star-rating.celebrate::after { right: calc(50% - 92px); animation-delay: .08s; }

@keyframes star-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.28) rotate(-4deg); }
  100% { transform: scale(1); }
}

@keyframes sparkle-pop {
  0% { transform: translateY(-50%) scale(.25) rotate(0deg); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(-92%) scale(1.2) rotate(35deg); opacity: 0; }
}

.store-cta {
  min-width: 116px;
  padding: 10px 18px;
  border: 2px solid var(--white);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.store-link:hover .store-cta { background: var(--white); color: var(--red); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .page-shell {
    padding-top: max(4px, env(safe-area-inset-top));
    padding-right: clamp(20px, 5vw, 48px);
    padding-left: clamp(20px, 5vw, 48px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .book-stage { width: min(68vw, 520px); margin-top: clamp(46px, 6vw, 58px); }
  .content-column { width: min(100%, 760px); margin: 0 auto; }
  .counter-block { text-align: center; }
  h1 {
    max-width: none;
    margin: 0 auto clamp(24px, 3vw, 34px);
    font-size: clamp(38px, 7.4vw, 64px);
    text-align: center;
  }
  .counter-actions { margin: 0 auto; }
}

@media (max-width: 620px) {
  .page-shell {
    padding:
      max(0px, env(safe-area-inset-top))
      18px
      42px;
  }

  .book-stage {
    width: min(86vw, 390px);
    margin-top: clamp(42px, 11vw, 50px);
  }

  .release-date {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(calc(-50% + var(--book-shift)));
  margin: 0;
  padding: 0;
  width: max-content;
  line-height: 1;
  text-align: center;
  color: var(--white);
  background: none;
  border: 0;
  box-shadow: none;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .page-shell { padding-right: 14px; padding-left: 14px; }
  .book-stage { width: min(88vw, 360px); }
  .counter-button-secondary { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .snowflake { display: none; }
}
