:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #171717;
  background: #f5f5f5;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
.page {
  width: min(100%, 1211px);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 14px #0002;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero { display: block; width: 100%; height: auto; }
.prize-heading {
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffb71b;
  color: #332500;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}
.details { padding: 32px 28px 58px; }
.prizes { padding: 0 0 0 18px; margin: 0; list-style: disc; }
.prizes li { padding-left: 8px; margin: 0 0 27px; color: #12abc5; }
.prizes li strong { display: block; color: #111; font-size: 18.4px; line-height: 1.32; }
.prizes li span { display: block; margin-top: 2px; color: #666; font-size: 14.95px; }
.enter-button {
  display: block;
  width: min(285px, 75%);
  padding: 0;
  margin: 48px auto 12px;
  border: 0;
  background: none;
  cursor: pointer;
}
.enter-button img { display: block; width: 100%; height: auto; }
.enter-button:hover { filter: brightness(1.06); }
.rules-link {
  display: block;
  color: #326c90;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.rules-trigger {
  padding: 0;
  border: 0;
  background: none;
  color: #326c90;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.watch { margin-top: 66px; text-align: center; }
.watch h2 { margin: 0 0 35px; font-size: 27px; }
.watch img { width: 180px; height: auto; }
footer {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 18px clamp(20px, 3.3vw, 40px);
  background: #08a7c3;
  color: #062d36;
  font-size: 13px;
}
footer strong { align-self: center; color: #062d36; font-weight: 600; text-align: center; }

dialog {
  position: relative;
  width: min(92vw, 440px);
  border: 0;
  border-radius: 8px;
  padding: 36px 28px 28px;
  box-shadow: 0 10px 50px #0005;
}
dialog::backdrop { background: #0008; }
dialog h2 { margin: 0 0 12px; padding-right: 30px; color: #087f9c; }
.close-dialog {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.notice { padding: 10px; border-left: 4px solid #ffb71b; background: #fff3d4; font-size: 14px; }
form > label { display: block; margin: 16px 0; font-weight: 700; }
input:not([type=checkbox]) {
  display: block;
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  border: 1px solid #777;
  border-radius: 4px;
  font: inherit;
}
.agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.agree input { margin-top: 3px; }
.agree a, .rules-page a { color: #326c90; }
.bot-field { position: absolute; left: -10000px; }
.form-error { min-height: 1.2em; color: #8b1010; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-actions button {
  padding: 10px 16px;
  border: 1px solid #067c97;
  border-radius: 4px;
  background: white;
  font: inherit;
  cursor: pointer;
}
.form-actions .submit { border-color: #ffb71b; background: #ffb71b; font-weight: 700; }
.form-actions button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #006d89; outline-offset: 3px; }

@media (max-width: 480px) {
  .details { padding: 25px 20px 48px; }
  .prizes li strong { font-size: 17.25px; }
  .watch { margin-top: 56px; }
  .watch h2 { margin-bottom: 30px; font-size: 24px; }
  footer { min-height: 108px; }
  dialog { padding: 36px 20px 22px; }
}

.rules-page {
  box-sizing: border-box;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 32px 28px 56px;
  color: #171717;
  font-weight: 400;
  line-height: 1.65;
}
.rules-page h1 {
  margin: 18px 0 28px;
  color: #087f9c;
  line-height: 1.2;
}
.rules-page h2 {
  margin: 30px 0 12px;
  color: #087f9c;
  font-size: 1.35rem;
  line-height: 1.3;
}
.rules-page h3 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}
.rules-page p {
  margin: 0 0 14px;
}
.rules-dialog {
  width: min(92vw, 860px);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 36px 28px 28px;
}
.rules-content { line-height: 1.65; }
.rules-content h2 { margin: 30px 0 12px; font-size: 1.35rem; line-height: 1.3; }
.rules-content h3 { margin: 22px 0 8px; font-size: 1.08rem; line-height: 1.35; }
.rules-content p { margin: 0 0 14px; }
#rules-status[hidden] { display: none; }
@media (max-width: 480px) {
  .rules-dialog { padding: 36px 20px 22px; }
}

@media (max-width: 480px) {
  .rules-page { padding: 24px 20px 40px; }
}
