@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-size: clamp(75%, .833333vw, 100%);
  font-family: Arial, Helvetica, sans-serif;
  color: #121212;
  --brand-blue: #00aeef;
  --heading: var(--brand-blue);
  --label: var(--brand-blue);
  --notice-text: #263c50;
  --notice-border: #d9f7ff;
  --notice-backdrop: rgba(15, 36, 58, .42);
  --notice-clear: transparent;
  --notice-font: Arial, Helvetica, sans-serif;
  --notice-focus: #0077a5;
  --notice-shadow: rgba(14, 49, 84, .22);
  --notice-blue: #00aeef;
  --notice-blue-hover: #0093ca;
  --notice-blue-soft: #e9faff;
  --notice-green: #16825c;
  --notice-green-soft: #e5f7ee;
  --notice-red: #b72e3b;
  --notice-red-soft: #fff0f2;
  --notice-amber: #9a640c;
  --notice-amber-soft: #fff4dc;
  --notice-muted: #4a6e7e;
  --notice-neutral-soft: #f0f6fc;
  --blue: #00aeef;
  --input-border: #79d7f8;
  --card: #fff;
  --wide: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
p, h1, h2, h3, ul { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #0077a5; outline-offset: 3px; }

.pu88-page {
  min-height: 100vh;
  padding: 3.375rem clamp(12px, 3vw, 48px) 4.375rem;
  background:
    linear-gradient(163deg, transparent 52%, #b9f3ff66 54%, #b9f3ff66 58%, transparent 59%) bottom / 100% max(30rem, 39vw) no-repeat,
    linear-gradient(161deg, transparent 70%, #d9f8ff 72%) bottom / 100% 33rem no-repeat,
    linear-gradient(180deg, #f2fdff 28%, #f5fdff 68%, #fbfeff 100%);
}

.page-content { width: min(100%, var(--wide)); margin-inline: auto; }
.brand-header { display: grid; justify-items: center; margin-bottom: 1.7rem; }
.pu88-logo { width: 17.625rem; }

.verification {
  margin-inline: .5rem;
  padding: 1.375rem 3.25rem 1.25rem;
  border-radius: 1.625rem;
  background: var(--card);
}

.verification h1,
.reminder h2,
.event h2,
.event h3 {
  color: var(--heading);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 780;
  text-transform: uppercase;
}

.verification h1, .event h2 {
  font-size: 2.375rem;
  line-height: 1.22;
  text-align: center;
}

.verification h1 span { display: block; }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 21.375rem) minmax(0, 1fr);
  align-items: center;
  gap: 2.0625rem 1.75rem;
  margin-top: 1.875rem;
}

.form-grid label {
  color: var(--label);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.form-control {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 3.5rem;
  padding: .375rem .5rem .375rem 1.0625rem;
  border: 1px solid var(--input-border);
  border-radius: .5rem;
  background: #fff;
}

.form-control:focus-within {
  border-color: #0096cf;
  box-shadow: 0 0 0 2px #00aeef40;
}

.form-control input {
  min-width: 0;
  flex: 1;
  min-height: 2.5rem;
  border: 0;
  padding: .25rem 0;
  outline: none;
  background: transparent;
  color: #17242e;
  font-size: 1.125rem;
}

.form-control input::placeholder { color: #626d72; opacity: 1; }

.small-button, .action-button {
  border: 0;
  color: #fff;
  background: var(--blue);
}

.small-button:hover, .action-button:hover { background: #0093ca; }

.small-button {
  min-width: 5.625rem;
  min-height: 1.875rem;
  padding: .3rem .5rem;
  border-radius: .25rem;
  font-size: max(12px, .875rem);
}

.reminder { margin: 1.625rem .375rem 0; }
.reminder h2 { margin-bottom: .9rem; color: var(--label); font-family: inherit; font-weight: 650; font-size: 1.5rem; line-height: 1.2; text-align: center; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .875rem 1.5rem; margin-top: 1.125rem; }

.action-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .7rem;
  min-height: 2.875rem;
  padding: .375rem 1.425rem;
  border-radius: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.envelope { font-size: 1.8em; line-height: .9; }
.gift-icon { font-size: 1.55em; line-height: .9; }

.form-status {
  margin-top: .8rem;
  color: var(--label);
  font-size: max(14px, 1.0625rem);
  line-height: 1.45;
  text-align: center;
}

.form-status:empty { margin: 0; }
.form-status[data-kind="error"] { color: #a12925; }
.form-status[data-kind="warning"] { color: var(--notice-amber); }

/* Popup v3: native top-layer shell; animate the inner panel only. */
html { scrollbar-gutter: stable; }
html.notice-active { overflow-y: hidden; scrollbar-gutter: auto; }
html.notice-active .pu88-page { padding-right: calc(clamp(12px, 3vw, 48px) + var(--notice-scrollbar-gap, 0px)); }
.notice-dialog {
  --notice-accent: var(--brand-blue);
  --notice-icon-ink: var(--notice-blue);
  --notice-icon-bg: var(--notice-blue-soft);
  --notice-heading: var(--heading);
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(400px, calc(100% - 32px));
  height: fit-content;
  max-width: none;
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: var(--notice-clear);
  color: var(--notice-text);
  overflow: visible;
  font-family: var(--notice-font);
  font-synthesis: none;
  font-size: 16px;
  text-align: center;
}
.notice-dialog[data-kind="success"] {
  --notice-accent: var(--notice-green);
  --notice-icon-ink: var(--notice-green);
  --notice-icon-bg: var(--notice-green-soft);
  --notice-heading: var(--notice-green);
}
.notice-dialog[data-kind="error"] {
  --notice-accent: var(--notice-red);
  --notice-icon-ink: var(--notice-red);
  --notice-icon-bg: var(--notice-red-soft);
  --notice-heading: var(--notice-red);
}
.notice-dialog[data-kind="warning"] {
  --notice-accent: var(--notice-amber);
  --notice-icon-ink: var(--notice-amber);
  --notice-icon-bg: var(--notice-amber-soft);
  --notice-heading: var(--notice-amber);
}
.notice-dialog:not([open]) { display: none; }
.notice-dialog::backdrop { background: var(--notice-backdrop); opacity: 0; transition: opacity 180ms ease; }
.notice-panel {
  position: relative;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 28px 24px 22px;
  border: 1px solid var(--notice-border);
  border-top: 4px solid var(--notice-accent);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 16px 48px var(--notice-shadow);
  overflow-y: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.2,.75,.25,1);
}
.notice-panel:focus { outline: none; }
.notice-dialog.is-visible .notice-panel { opacity: 1; transform: none; }
.notice-dialog.is-visible::backdrop { opacity: 1; }
.notice-dialog.is-closing .notice-panel { transform: translateY(6px); transition-duration: 160ms; }
.notice-dialog.is-closing::backdrop { transition-duration: 160ms; }
.notice-dialog.is-closing { pointer-events: none; }
.notice-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--notice-clear);
  color: var(--notice-muted);
  transition: background-color 140ms ease, color 140ms ease;
}
.notice-dismiss:hover { background: var(--notice-neutral-soft); color: var(--notice-text); }
.notice-dismiss svg { width: 20px; height: 20px; pointer-events: none; }
.notice-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--notice-icon-ink);
  background: var(--notice-icon-bg);
}
.notice-symbol { display: none; width: 40px; height: 40px; }
.notice-dialog[data-kind="info"] .notice-symbol-info,
.notice-dialog[data-kind="success"] .notice-symbol-success,
.notice-dialog[data-kind="error"] .notice-symbol-error,
.notice-dialog[data-kind="warning"] .notice-symbol-warning { display: block; }
.notice-dialog h2 {
  color: var(--notice-heading);
  font-family: var(--notice-font);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
  text-shadow: none;
}
.notice-dialog p { margin-top: 9px; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.notice-actions { margin-top: 22px; }
.notice-close {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--notice-blue);
  font-family: var(--notice-font);
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  transition: background-color 140ms ease;
}
.notice-close:hover, .notice-close:active { background: var(--notice-blue-hover); }
.notice-close:focus-visible, .notice-dismiss:focus-visible { outline: 2px solid var(--notice-focus); outline-offset: 2px; }
@media (max-width: 480px) {
  .notice-dialog { width: min(360px, calc(100% - 32px)); }
  .notice-panel { padding: 25px 18px 20px; border-radius: 16px; }
  .notice-dialog h2 { font-size: 19px; }
  .notice-icon { width: 62px; height: 62px; margin-bottom: 16px; }
  .notice-symbol { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .notice-dialog .notice-panel, .notice-dialog::backdrop,
  .notice-dialog.is-closing .notice-panel, .notice-dialog.is-closing::backdrop { transition: none; transform: none; }
  .notice-close, .notice-dismiss { transition: none; }
}

.event {
  position: relative;
  margin-top: 2.375rem;
  padding: 4.5rem 3.85rem 1.65rem;
  border: 2px solid #47d3f8;
  border-radius: 4.25rem;
  background: var(--card);
  box-shadow: inset 0 0 0 .16rem #c6f4ff, inset 0 0 0 .33rem #86e7fb, inset 0 0 1rem #72dff78a;
  font-size: 1.5rem;
  line-height: 1.23;
}

.event-label {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  place-items: center;
  width: 20rem;
  max-width: 80%;
  min-height: 4.125rem;
  border: .16rem solid #00a6e3;
  border-radius: 1.3rem 1.3rem 1.65rem 1.65rem;
  transform: translate(-50%, -49%) perspective(240px) rotateX(-13deg);
  box-shadow: 0 2px 5px #0086bb80, inset 0 0 0 2px #d6f8ff, inset 0 0 .85rem .2rem #54d8fb;
  background: linear-gradient(#74e1ff 0%, #00aeef 29%, #0079b0 62%, #0099d9 100%);
}

.event-label span {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 3px #005f8a;
  text-transform: uppercase;
}

.event h2 { margin-bottom: 1.5rem; font-size: 1.65rem; line-height: 1.18; font-weight: 760; }
.prizes {
  width: 100%;
  margin: .75rem 0 3.25rem;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 1px 0;
  color: var(--label);
  text-align: center;
  font-size: 1.625rem;
  line-height: 1.2;
}

.prizes th, .prizes td { padding: .65rem .35rem; border: 1px solid #7ddaf7; border-radius: .65rem; }
.prizes th { color: #fff; background: #00aeef; font-weight: 400; }
.event-warning { margin-bottom: 1.125rem; }
.event h3 { margin-bottom: 1rem; font-size: 1.4rem; line-height: 1.15; font-weight: 740; }
.terms { padding: 0; list-style: none; }
.terms li::before { content: "- "; }
.terms li + li { margin-top: 1.75rem; }

.site-footer {
  display: grid;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  color: #0b1115;
}

.pu88-footer {
  width: min(100%, 72rem);
  margin: 4.625rem auto 0;
  grid-template-columns: minmax(0, 17.625rem) minmax(0, 20rem) minmax(0, 10.375rem) minmax(0, 10.375rem);
}

.site-footer h2 { margin-bottom: .5rem; font-size: max(11px, .875rem); font-weight: 500; text-transform: uppercase; }
.responsibility { display: grid; justify-items: center; }
.responsibility h2 { margin-bottom: 2.1rem; font-size: 1.375rem; font-weight: 700; }
.responsibility img { width: 20rem; }
.footer-column { display: grid; align-self: start; gap: .9rem; }
.footer-column h2 { white-space: nowrap; }
.footer-column img { width: 6.25rem; }
.footer-column img[src$="licences.png"] { width: 10.375rem; }
.footer-column img[src$="social.png"] { width: 6.6875rem; }
.footer-column img[src$="responsible-play.png"] { width: 7.1875rem; }

@media (max-width: 680px) {
  .pu88-page { padding-top: 1.7rem; padding-bottom: 2.5rem; }
  .brand-header { margin-bottom: 1.15rem; }
  .pu88-logo { width: 13rem; }
  .verification { margin-inline: 0; padding: 1.25rem; border-radius: 1.15rem; }
  .verification h1, .event h2 { font-size: clamp(18px, 4.5vw, 22px); }
  .verification h1 { text-wrap: balance; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: 1.4rem; }
  .form-grid label { margin-top: .45rem; font-size: 14px; }
  .form-control { min-height: 44px; }
  .form-control input { font-size: 16px; }
  .small-button { padding: .5rem .65rem; }
  .reminder { margin: 1.4rem 0 0; }
  .reminder h2 { margin-bottom: .45rem; font-size: 14px; font-weight: 650; }
  .form-actions { gap: .65rem; }
  .action-button { min-height: 42px; padding-inline: 1rem; font-size: 13px; }
  .event { margin-top: 2.8rem; padding: 2.85rem 1.25rem 1.4rem; border-radius: 2.3rem; font-size: 15px; line-height: 1.45; }
  .event-label { width: 13rem; min-height: 3rem; }
  .event-label span { font-size: 1.4rem; }
  .event h2 { margin-bottom: 1rem; font-size: clamp(16px, 4vw, 18px); }
  .event h3 { margin-bottom: .5rem; font-size: 15px; font-weight: 740; }
  .prizes { margin: .75rem 0 1.4rem; font-size: clamp(11px, 3.1vw, 15px); }
  .prizes th, .prizes td { padding: .55rem .18rem; }
  .terms li + li { margin-top: .85rem; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; row-gap: 1.75rem; }
  .pu88-footer { margin-top: 2.7rem; }
  .responsibility { width: 100%; }
  .responsibility h2 { margin-bottom: .8rem; }
}

.reminder-steps {
  margin: 0;
  padding-inline-start: 1.4em;
  font-size: max(13px, 1.0625rem);
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.reminder-steps li + li { margin-top: .3em; }
.reminder-steps li::marker { color: var(--label); }

@media (max-width: 680px) {
  .form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    width: min(100%, 280px);
    margin-inline: auto;
  }
  .form-actions > .action-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    text-align: center;
    line-height: 1.25;
  }
}
