:root {
  --sky-50: #effcff;
  --sky-100: #dff8ff;
  --sky-300: #80dbff;
  --blue-500: #2969e8;
  --blue-700: #1946aa;
  --violet: #7854ed;
  --sun: #ffd43b;
  --coral: #ff6f78;
  --navy: #102a56;
  --ink: #19385e;
  --white: #fff;
  --shadow: 0 22px 60px rgba(30, 74, 151, 0.16);
  --radius-large: 34px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sky-50);
  font-family: "Noto Sans Thai", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input { font: inherit; touch-action: manipulation; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: rgba(255, 212, 59, .28); }
.checker-section, .reward-section, .rules-section { scroll-margin-top: 24px; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 12px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
}
.header-inner {
  width: min(1260px, calc(100% - 40px));
  min-height: 92px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand img {
  display: block;
  width: 148px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(12, 38, 88, 0.3));
  transition: transform 0.2s ease;
}
.brand:hover img { transform: scale(1.04); }
nav { display: flex; gap: 26px; margin-left: auto; }
nav a { text-decoration: none; font-weight: 600; text-shadow: 0 1px 8px rgba(16, 42, 86, 0.28); }
nav a:hover { color: var(--sun); }
.server-pill { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(18,55,142,.28); backdrop-filter: blur(10px); font-size: .84rem; font-weight: 600; }
.server-dot { width: 9px; height: 9px; border-radius: 50%; background: #ffcc4d; box-shadow: 0 0 0 5px rgba(255,204,77,.2); }
.server-pill.online .server-dot { background: #67e58c; box-shadow: 0 0 0 5px rgba(103,229,140,.2); }
.server-pill.offline .server-dot { background: #ff7180; box-shadow: 0 0 0 5px rgba(255,113,128,.2); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 158px 0 114px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.5) 0 2px, transparent 3px),
    radial-gradient(circle at 89% 12%, rgba(255,255,255,.38) 0 3px, transparent 4px),
    linear-gradient(136deg, #7752ef 0%, #2873e9 46%, #4ed2ee 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  right: -40px;
  top: 50px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: 28px;
  width: 120%;
  height: 88px;
  background: repeating-linear-gradient(105deg, rgba(255,255,255,.11) 0 58px, transparent 59px 116px);
  transform: rotate(-2deg);
}
.hero-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 100%, rgba(255,212,59,.22), transparent 34%); }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  align-items: center;
  gap: 32px;
}
.event-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.event-date,
.event-countdown { display: inline-flex; align-items: center; min-height: 34px; margin: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.34); font-size: .86rem; }
.event-date { background: rgba(11,46,122,.32); font-weight: 700; letter-spacing: .01em; }
.event-countdown { gap: 7px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.82); }
.event-countdown span { font-size: .76rem; }
.event-countdown time { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-countdown.is-ended { background: rgba(255,113,128,.2); }
h1, h2, h3 { font-family: "Mitr", sans-serif; margin-top: 0; }
.hero-line { display: inline-block; white-space: nowrap; }
.hero-phrase-nowrap { white-space: nowrap; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(1.95rem, 3.1vw, 3.15rem);
  line-height: 1.28;
  letter-spacing: 0.002em;
  text-shadow: 0 4px 18px rgba(12, 38, 88, 0.32);
}
.hero-lead { max-width: 590px; margin: 0 0 30px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.9); line-height: 1.6; }
.hero-update-note { max-width: 590px; margin: -18px 0 26px; color: rgba(255,255,255,.84); font-size: .88rem; font-style: italic; line-height: 1.5; }
.primary-cta { display: inline-flex; align-items: center; min-height: 54px; padding: 0 24px; border: 3px solid #fff; border-radius: 18px; background: var(--sun); color: var(--navy); box-shadow: 0 7px 0 #e49c16; text-decoration: none; font-family: "Mitr", sans-serif; font-weight: 600; }
.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 9px 0 #e49c16; }
.primary-cta:active { transform: translateY(4px); box-shadow: 0 3px 0 #e49c16; }
.hero-stage {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.sun-disc {
  position: absolute;
  width: 470px;
  height: 470px;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.96) 0%, rgba(222,247,255,0.78) 58%, rgba(130,220,255,0.18) 100%);
  border: 12px solid rgba(255,255,255,0.6);
  box-shadow:
    0 0 0 18px rgba(255,255,255,0.12),
    0 0 0 44px rgba(255,255,255,0.05),
    0 28px 70px rgba(12, 45, 110, 0.26),
    inset 0 0 45px rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  z-index: 1;
}
.hero-mascot-wrap {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 470px;
  height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}
.hero-mascot {
  width: 450px;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 26px 36px rgba(10, 36, 85, 0.4));
  transform: translateY(-24px);
  animation: floatMascot 4.5s ease-in-out infinite alternate;
  will-change: transform;
}
.mascot-shadow {
  width: 250px;
  height: 26px;
  margin-top: -16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(12, 40, 92, 0.45) 0%, transparent 70%);
  filter: blur(5px);
  animation: floatShadow 4.5s ease-in-out infinite alternate;
}
@keyframes floatMascot {
  0% {
    transform: translateY(-20px) rotate(0deg);
  }
  100% {
    transform: translateY(-38px) rotate(1.2deg);
  }
}
@keyframes floatShadow {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(0.82);
    opacity: 0.45;
  }
}
.hero-sticker {
  position: absolute;
  z-index: 4;
  right: -36px;
  top: 16px;
  width: 130px;
  height: 130px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--navy);
  border: 6px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd84d 0%, #f7a31c 100%);
  transform: rotate(8deg);
  box-shadow: 0 14px 30px rgba(12, 48, 114, 0.28), 0 0 0 5px rgba(255,255,255,0.22);
  animation: pulseSticker 3.5s ease-in-out infinite alternate;
  cursor: default;
}
.hero-sticker:hover {
  transform: rotate(14deg) scale(1.08);
}
.hero-sticker strong {
  font-family: "Mitr", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #533504;
}
.hero-sticker span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #724b07;
  margin-top: 2px;
}
@keyframes pulseSticker {
  0% {
    transform: rotate(6deg) scale(1);
  }
  100% {
    transform: rotate(11deg) scale(1.05);
  }
}
.wave { position: absolute; z-index: 6; bottom: -48px; left: -5%; width: 110%; height: 100px; border-radius: 50% 50% 0 0 / 60% 60% 0 0; background: var(--sky-50); }

.live-strip { position: relative; z-index: 7; margin-top: -42px; }
.live-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); align-items: stretch; overflow: hidden; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.live-grid > * { min-height: 108px; padding: 22px 24px; }
.live-intro { display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: #fff; }
.live-kicker { color: var(--sky-300); font-size: .78rem; font-weight: 800; }
.live-intro strong { font-family: "Mitr"; font-size: 1.12rem; }
.live-stat { display: grid; place-content: center; text-align: center; border-left: 1px solid #e3eef8; }
.live-stat span { font-family: "Mitr"; font-size: 1.8rem; font-weight: 700; color: var(--blue-500); }
.live-stat span, .round-badge, .weekly-goal-copy strong { font-variant-numeric: tabular-nums; }
.live-stat small { color: #68809c; }
.live-stat-highlight { background: #fff8d8; }
.live-stat-highlight span { color: #e17227; }
.live-stat-rounds span { color: #e17227; }
.live-stat-rounds small { max-width: 19ch; margin-inline: auto; font-weight: 700; color: #8b5429; }

/* Apple-Style Scroll Reveal Animation (Fade Down & Glide) */
.reveal-item {
  opacity: 0;
  transform: translateY(-26px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* Bento Badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(41, 105, 232, 0.1);
  color: var(--blue-500);
  border: 1px solid rgba(41, 105, 232, 0.2);
  margin-bottom: 12px;
}
.badge-tag-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sky-300);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.checker-section { padding: 120px 0 100px; }
.checker-layout { display: grid; grid-template-columns: 1fr 1.12fr; gap: 40px; align-items: stretch; }
.checker-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 34px;
  border-radius: var(--radius-large);
  background: #fff;
  border: 1px solid rgba(16, 42, 86, 0.08);
  box-shadow: 0 16px 45px rgba(20, 60, 120, 0.07);
}
.checker-header h2, .reward-heading h2, .rules-header h2 { margin-bottom: 12px; color: var(--navy); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.25; letter-spacing: 0; }
.checker-header p { margin: 0; color: #5f7793; font-size: 1rem; line-height: 1.5; }
.uid-form { margin-top: 28px; }
.uid-form label { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 700; font-size: 0.95rem; }
.input-row { display: flex; padding: 6px; border: 2px solid #c9dcf2; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(34,89,148,.09); transition: border-color 0.2s, box-shadow 0.2s; }
.input-row:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 5px rgba(41,105,232,.14); }
.input-row input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 14px; color: var(--navy); background: transparent; font-size: 1.05rem; }
.input-row button { min-width: 128px; border: 0; border-radius: 13px; color: #fff; background: var(--blue-500); font-family: "Mitr"; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.input-row button:hover { background: var(--blue-700); transform: translateY(-1px); }
.input-row button:active { transform: translateY(1px); }
.input-row button:disabled { cursor: wait; opacity: .65; }
.form-message { min-height: 25px; margin: 8px 0 0; color: #c73f58; font-weight: 600; font-size: 0.9rem; }

/* Framed Privacy Shield Card */
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(235, 248, 255, 0.85) 0%, rgba(244, 250, 255, 0.95) 100%);
  border: 1px solid rgba(135, 215, 250, 0.6);
  box-shadow: 0 4px 16px rgba(41, 105, 232, 0.05);
}
.privacy-icon-box {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.privacy-copy strong {
  display: block;
  font-family: "Mitr", sans-serif;
  font-size: 0.92rem;
  color: var(--navy);
}
.privacy-copy p {
  margin: 3px 0 0;
  font-size: 0.84rem;
  color: #557291;
  line-height: 1.45;
}

.race-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 34px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-large);
  background: linear-gradient(150deg, #fff 0%, #f3fbff 72%, #e9efff 100%);
  box-shadow: 0 18px 45px rgba(20, 60, 120, 0.08);
}
.race-card::before { content: ""; position: absolute; width: 190px; height: 190px; right: -88px; top: -80px; border-radius: 50%; background: rgba(120,84,237,.1); }
.race-card-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.race-card-head span { display: block; color: #7186a0; font-size: .85rem; }
.race-card-head strong { display: block; color: var(--navy); font-family: "Mitr"; font-size: 1.24rem; }
.round-badge { display: grid; place-content: center; width: 80px; height: 64px; border-radius: 18px; background: var(--navy); color: #fff; font-family: "Mitr"; font-size: 1.35rem; font-weight: 600; box-shadow: 0 7px 0 #071a38; }
.track-wrap { margin-top: 28px; }
.track-stage-scenery {
  position: relative;
  height: 108px;
  margin-bottom: -12px;
  border-radius: 22px 22px 10px 10px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(28, 70, 135, 0.08);
}
.town-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("./assets/town-panorama.png");
  background-size: cover;
  background-position: center 72%;
  image-rendering: pixelated;
}
.town-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.18) 60%, rgba(210,235,255,0.65) 100%);
}
.start-post {
  position: absolute;
  left: 14px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.traffic-light-asset {
  width: 26px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 6px rgba(10, 30, 60, 0.35));
  animation: trafficGlow 2.5s ease-in-out infinite alternate;
}
@keyframes trafficGlow {
  0% {
    filter: drop-shadow(0 4px 6px rgba(10, 30, 60, 0.35)) drop-shadow(0 0 3px rgba(103, 229, 140, 0.4));
  }
  100% {
    filter: drop-shadow(0 4px 6px rgba(10, 30, 60, 0.35)) drop-shadow(0 0 10px rgba(103, 229, 140, 0.95));
  }
}
.start-chip {
  margin-top: -2px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(16, 146, 255, 0.92);
  color: #fff;
  font-family: "Mitr", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(16, 146, 255, 0.3);
}
.finish-post {
  position: absolute;
  right: 68px;
  bottom: 8px;
  z-index: 2;
}
.goal-chip {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, #ffd747 0%, #f5a623 100%);
  color: #533504;
  font-family: "Mitr", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.35);
  border: 1px solid #fff;
}
.checkpoint-row { display: flex; justify-content: space-between; color: #7790aa; font-size: .72rem; font-weight: 800; }
.race-track { position: relative; height: 80px; margin: 0 0 8px; border: 8px solid #fff; border-radius: 999px; background: #dfe9f5; box-shadow: inset 0 4px 9px rgba(29,70,126,.18), 0 8px 20px rgba(38,75,131,.11); }
.track-fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #5fc6f2 0%, #7854ed 58%, #ff6f78 100%); transition: width 2.2s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.paw-trail-overlay {
  position: absolute;
  inset: 0;
  background-image: url("./assets/paw-trail.png?v=2");
  background-size: 260px auto;
  background-repeat: repeat-x;
  background-position: left center;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}
.track-dashes { position: absolute; left: 14px; right: 14px; top: 50%; border-top: 4px dashed rgba(255,255,255,.7); transform: translateY(-50%); }
.runner-marker {
  --runner-size: 82px;
  position: absolute;
  z-index: 3;
  left: 0%;
  bottom: 20px;
  width: var(--runner-size);
  height: calc(var(--runner-size) * 1.45);
  overflow: hidden;
  transform: translateX(-20%);
  filter: drop-shadow(0 10px 8px rgba(30,64,111,.2));
  transition: left 2.2s cubic-bezier(.2,.8,.2,1);
}
.runner-sprite {
  position: absolute;
  inset: 0;
  display: none;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.jab-idle-sprite {
  background-image: url("./assets/jab-idle-strip.png");
  background-size: calc(var(--runner-size) * 4.977) auto;
  background-position: calc(var(--runner-size) * -.193) calc(var(--runner-size) * -.736);
}
.jab-walk-sprite {
  background-image: url("./assets/jab-walk-strip.png");
  background-size: calc(var(--runner-size) * 8.493) auto;
  background-position: calc(var(--runner-size) * -.25) calc(var(--runner-size) * -1.974);
}
.jab-winning-sprite {
  background-image: url("./assets/jab-winning-simple-strip.png");
  background-size: calc(var(--runner-size) * 6.644) auto;
  background-position: calc(var(--runner-size) * -.142) calc(var(--runner-size) * -1.216);
}
.runner-marker:not(.is-walking):not(.is-winning) .jab-idle-sprite { display: block; animation: jab-idle 1.8s linear infinite; }
.runner-marker.is-walking .jab-walk-sprite { display: block; animation: jab-walk 1.05s linear infinite; }
.runner-marker.is-winning .jab-winning-sprite { display: block; animation: jab-winning 1.2s linear infinite; }
.runner-marker.is-resetting, .track-fill.is-resetting { transition: none; }
@keyframes jab-idle {
  0%, 24.99% { background-position-x: calc(var(--runner-size) * -.193); }
  25%, 49.99% { background-position-x: calc(var(--runner-size) * -1.391); }
  50%, 74.99% { background-position-x: calc(var(--runner-size) * -2.591); }
  75%, 100% { background-position-x: calc(var(--runner-size) * -3.791); }
}
@keyframes jab-walk {
  0%, 12.49% { background-position-x: calc(var(--runner-size) * -.25); }
  12.5%, 24.99% { background-position-x: calc(var(--runner-size) * -1.282); }
  25%, 37.49% { background-position-x: calc(var(--runner-size) * -2.298); }
  37.5%, 49.99% { background-position-x: calc(var(--runner-size) * -3.301); }
  50%, 62.49% { background-position-x: calc(var(--runner-size) * -4.321); }
  62.5%, 74.99% { background-position-x: calc(var(--runner-size) * -5.325); }
  75%, 87.49% { background-position-x: calc(var(--runner-size) * -6.353); }
  87.5%, 100% { background-position-x: calc(var(--runner-size) * -7.356); }
}
@keyframes jab-winning {
  0%, 16.65% { background-position-x: calc(var(--runner-size) * -.142); }
  16.66%, 33.31% { background-position-x: calc(var(--runner-size) * -1.171); }
  33.32%, 49.98% { background-position-x: calc(var(--runner-size) * -2.235); }
  49.99%, 66.64% { background-position-x: calc(var(--runner-size) * -3.347); }
  66.65%, 83.31% { background-position-x: calc(var(--runner-size) * -4.436); }
  83.32%, 100% { background-position-x: calc(var(--runner-size) * -5.486); }
}
.finish-flag {
  --flag-size: 62px;
  position: absolute;
  z-index: 2;
  right: -5px;
  top: -42px;
  width: var(--flag-size);
  height: calc(var(--flag-size) * 1.42);
  background-image: url("./assets/finish-flag.png");
  background-repeat: no-repeat;
  background-size: calc(var(--flag-size) * 3.413) auto;
  background-position: calc(var(--flag-size) * -1.217) calc(var(--flag-size) * -.313);
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 5px rgba(15,40,80,.2));
  pointer-events: none;
}
.checkpoint-row { padding-inline: 8px 2px; }
.ckpt-paw {
  width: 13px;
  height: 13px;
  vertical-align: -1px;
  margin-right: 3px;
  image-rendering: pixelated;
  opacity: 0.85;
}
.result-panel { align-items: center; gap: 14px; margin-top: 34px; padding: 18px; border-radius: 18px; background: #ebf4ff; }
.result-panel:not([hidden]) { display: flex; }
.result-panel.complete { color: #17653a; background: #dbf8e8; }
.result-icon { display: grid; place-content: center; flex: 0 0 44px; height: 44px; border-radius: 14px; background: #fff; font-size: 1.35rem; }
.result-paw-icon {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(41, 105, 232, 0.25));
}
.result-panel strong { font-family: "Mitr"; font-size: 1.05rem; }
.result-panel p { margin: 2px 0 0; color: #61768e; font-size: .9rem; }
.weekly-goal { margin-top: 28px; padding-top: 24px; border-top: 1px solid #d9e8f5; }
.weekly-goal-copy { display: flex; justify-content: space-between; gap: 16px; color: #627993; font-size: .86rem; }
.weekly-goal-copy strong { color: var(--navy); }
.mini-progress { height: 9px; overflow: hidden; margin: 10px 0 8px; border-radius: 99px; background: #dce9f5; }
.mini-progress span { display: block; width: 0%; height: 100%; border-radius: inherit; background: var(--sun); transition: width .8s ease; }
.weekly-goal small { color: #8193a7; }

.reward-section { position: relative; padding: 110px 0 120px; color: #fff; background: var(--navy); }
.reward-section::after { content: ""; position: absolute; right: 3%; top: 0; width: 330px; height: 100%; background: radial-gradient(circle, rgba(128,219,255,.16) 0 2px, transparent 3px); background-size: 34px 34px; opacity: .45; }
.reward-heading { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 40px; }
.reward-heading h2 { margin: 0; color: #fff; }
.reward-heading > p { max-width: 440px; margin: 0; color: #b9cbe0; font-size: 0.98rem; }
.reward-ribbon { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.reward-item {
  position: relative;
  min-width: 0;
  padding: 28px 14px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}
.reward-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
.reward-icon-frame {
  display: grid;
  place-content: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  padding: 7px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(83,151,223,.12));
  box-shadow:
    inset 0 0 0 1px rgba(128,219,255,.28),
    0 12px 22px rgba(0,0,0,.2);
  transition: transform .24s ease, border-color .24s ease;
}
.reward-icon-frame img {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 9px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 6px rgba(3,19,48,.28));
}
.reward-item:hover .reward-icon-frame {
  border-color: rgba(255,255,255,.95);
  transform: translateY(-2px) scale(1.04);
}
.reward-item h3 { min-height: 52px; margin: 0 0 6px; font-size: .95rem; line-height: 1.4; color: #fff; }
.reward-item p { margin: 0; color: var(--sky-300); font-size: .82rem; font-weight: 600; }

.rules-section { padding: 110px 0 120px; background: var(--sky-50); }
.rules-card {
  position: relative;
  overflow: hidden;
  padding: 46px 42px;
  border-radius: var(--radius-large);
  background: #fff;
  border: 1px solid rgba(16, 42, 86, 0.08);
  box-shadow: var(--shadow);
}
.rules-skyline-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 95px;
  background-image: url("./assets/town-skyline.png");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.12;
  pointer-events: none;
  image-rendering: pixelated;
  border-radius: 0 0 var(--radius-large) var(--radius-large);
}
.rules-header p { margin: 0; color: #5f7793; font-size: 1rem; }
.rules-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr;
  gap: 36px;
  align-items: center;
  margin-top: 32px;
}
.rules-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.rule-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 20px;
  background: #f7faff;
  border: 1px solid rgba(210, 228, 250, 0.8);
  transition: transform 0.25s, box-shadow 0.25s;
}
.rule-step:hover {
  transform: translateX(4px);
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 60, 120, 0.06);
}
.step-num {
  display: grid;
  place-content: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: var(--blue-500);
  font-family: "Mitr";
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 0 #183f99;
}
.rule-step strong { color: var(--navy); font-family: "Mitr"; font-size: 1.02rem; }
.rule-step p { margin: 3px 0 0; color: #62778f; font-size: .88rem; line-height: 1.45; }

.fair-play-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 32px 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fffcf0 0%, #fff6d4 100%);
  border: 1px solid rgba(240, 195, 60, 0.45);
  box-shadow: 0 10px 28px rgba(225, 175, 30, 0.08);
}
.fair-play-icon {
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: #e9ad21;
  font-size: 1.5rem;
}
.fair-play-box strong { display: block; color: #664b0f; font-family: "Mitr"; font-size: 1.08rem; }
.fair-play-box p { margin: 6px 0 0; color: #7a5e1e; font-size: 0.88rem; line-height: 1.5; }

.footer {
  width: 100%;
  position: relative;
  z-index: 10;
}
.footer-top {
  background: #1092FF;
  padding: 14px 0;
  text-align: center;
}
.footer-top a {
  display: inline-block;
  margin: 0 10px;
  text-decoration: none;
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.footer-top a img {
  width: 36px;
  height: 36px;
  display: block;
}
.footer-top a:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}
.footer-bottom {
  background-color: #222;
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}
.col-logo-inft {
  display: flex;
  align-items: center;
  gap: 16px;
}
.col-logo-inft .rh {
  height: 25px;
  padding-right: 16px;
  border-right: 1px solid #9A9DA3;
}
.col-logo-inft .hof {
  height: 60px;
}
.col-link-ft {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.footer-bottom .links {
  color: #aaa;
  font-size: 12px;
  line-height: 1.6;
}
.footer-bottom .links a {
  color: #aaa;
  margin: 0 6px;
  text-decoration: none;
  font-size: 12px;
}
.footer-bottom .links a:first-of-type {
  margin-left: 0;
}
.footer-bottom .links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom .links.hof-network {
  color: #888;
  font-size: 11px;
}
.footer-bottom .links.hof-network a {
  color: #888;
}
.footer-bottom .links.hof-network a:hover {
  color: #aaa;
}
.footer-bottom .copyright {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
  margin-top: 2px;
}
@media (max-width: 992px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 28px 16px;
  }
  .col-link-ft {
    align-items: center;
  }
  .footer-bottom .links a {
    margin: 0 4px;
  }
  .footer-bottom .copyright {
    margin-top: 6px;
    text-align: center;
  }
}

:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }

@media (max-width: 960px) {
  .header-inner nav { display: none; }
  .hero-grid, .checker-layout, .rules-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 132px; }
  .hero-copy { text-align: center; }
  .event-meta { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-update-note { margin-inline: auto; }
  .hero-stage { min-height: 480px; justify-content: center; }
  .sun-disc {
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 390px;
    height: 390px;
  }
  .hero-mascot-wrap {
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 390px;
    height: 390px;
    margin: 0;
  }
  .hero-mascot {
    width: 375px;
    max-width: 92vw;
  }
  .mascot-shadow {
    width: 210px;
  }
  .hero-sticker {
    right: calc(50% - 195px);
    top: 10px;
    width: 116px;
    height: 116px;
  }
  .hero-sticker strong { font-size: 1.4rem; }
  .hero-sticker span { font-size: 0.78rem; }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .live-intro { grid-column: 1 / -1; min-height: 82px; text-align: center; }
  .live-stat-highlight { grid-column: 1 / -1; min-height: 82px; }
  .reward-ribbon { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .checker-card, .race-card, .rules-card { padding: 28px 24px; }
}

@media (max-width: 640px) {
  .page-shell, .header-inner { width: min(100% - 26px, 1180px); }
  .header-inner {
    min-height: 72px;
    padding-top: env(safe-area-inset-top);
    gap: 12px;
  }
  .brand img { width: 108px; height: auto; }
  .server-pill {
    min-height: 36px;
    margin-left: auto;
    max-width: 154px;
    padding: 7px 10px;
    font-size: .7rem;
    white-space: nowrap;
  }
  .event-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    width: 100%;
    gap: 6px;
    margin-bottom: 16px;
  }
  .event-date, .event-countdown {
    justify-content: center;
    min-width: 0;
    min-height: 31px;
    padding: 5px 7px;
    font-size: clamp(.64rem, 2.8vw, .72rem);
    line-height: 1.2;
    white-space: nowrap;
  }
  .event-countdown span { display: none; }
  .hero {
    min-height: 0;
    padding-top: calc(94px + env(safe-area-inset-top));
    padding-bottom: 76px;
  }
  .hero-grid { gap: 8px; }
  .hero-copy { text-align: left; }
  .hero-copy h1 {
    max-width: 11.5em;
    margin-bottom: 14px;
    font-size: clamp(2rem, 9.6vw, 2.45rem);
    line-height: 1.18;
    letter-spacing: 0;
    text-wrap: balance;
  }
  .hero-copy h1 br { display: none; }
  .hero-line {
    display: block;
    white-space: normal;
  }
  .hero-lead {
    margin: 0 0 20px;
    font-size: .94rem;
    line-height: 1.55;
    text-wrap: pretty;
  }
  .hero-update-note { margin: -10px 0 22px; font-size: .8rem; line-height: 1.45; }
  .primary-cta {
    display: flex;
    width: 100%;
    min-height: 50px;
    justify-content: center;
    padding-inline: 18px;
    border-radius: 16px;
  }
  .hero-stage { min-height: 292px; }
  .sun-disc {
    width: 238px;
    height: 238px;
    border-width: 8px;
    box-shadow:
      0 0 0 12px rgba(255,255,255,0.11),
      0 0 0 28px rgba(255,255,255,0.05),
      0 18px 42px rgba(12,45,110,.22),
      inset 0 0 32px rgba(255,255,255,.65);
  }
  .hero-mascot-wrap {
    width: 246px;
    height: 292px;
  }
  .hero-mascot {
    width: 220px;
    max-width: none;
    transform: translateY(-8px);
  }
  .mascot-shadow {
    width: 132px;
    height: 15px;
    margin-top: -10px;
  }
  .hero-sticker {
    right: calc(50% - 132px);
    top: 12px;
    width: 82px;
    height: 82px;
    border-width: 3px;
  }
  .hero-sticker strong { font-size: 1.02rem; }
  .hero-sticker span { font-size: 0.62rem; }
  .live-grid { grid-template-columns: 1fr 1fr; }
  .live-grid > * { min-height: 92px; padding: 17px 14px; }
  .live-stat-highlight { min-height: 78px; }
  .live-stat span { font-size: 1.55rem; }
  .checker-section, .reward-section, .rules-section { padding-block: 76px; }
  .checker-card, .race-card, .rules-card { padding: 22px 18px; border-radius: 24px; }
  .track-stage-scenery { height: 86px; margin-bottom: -8px; }
  .traffic-light-asset { width: 22px; }
  .finish-post { right: 56px; bottom: 6px; }
  .start-chip, .goal-chip { font-size: 0.6rem; padding: 1px 6px; }
  .runner-marker { --runner-size: 66px; bottom: 22px; }
  .finish-flag { --flag-size: 52px; right: -3px; top: -34px; }
  .input-row { display: grid; gap: 7px; }
  .input-row button { min-height: 48px; }
  .reward-heading { display: block; }
  .reward-heading > p { margin-top: 12px; }
  .reward-ribbon { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reward-icon-frame {
    width: 74px;
    height: 74px;
    padding: 5px;
    border-radius: 15px;
  }
  .reward-icon-frame img { width: 62px; height: 62px; }
  .rules-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal-item { opacity: 1 !important; transform: none !important; }
}
