@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900;1000&family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Patrick+Hand&display=swap");
:root {
  --paper: #faf8fc;
  --ink: #1e3a8a;
  --blue: #243fe2;
  --black: #171820;
  --purple: #a855f7;
  --muted: #6d6c80;
  --line: #dbd8e5;
  --olive: #a3a83b;
  font-family: "DM Sans", "IBM Plex Sans Thai", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background-image: radial-gradient(#e2dfeb 0.8px, transparent 0.8px);
  background-size: 19px 19px;
  font-size: 16px;
}
button,
input,
a,
summary {
  -webkit-tap-highlight-color: transparent;
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
.bounding:focus-visible {
  outline: 3px solid var(--purple);
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  color: inherit;
}
svg {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-weight: 700;
  font-size: clamp(28px, 3vw, 37px);
  line-height: 1.45;
  letter-spacing: -1.1px;
  color: var(--black);
}
h3 {
  font-size: 21px;
  font-weight: 700;
}
p {
  line-height: 1.8;
}
.shell {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}
.section-pad {
  padding-block: 78px;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
  margin-top: 9px;
}
.purple {
  color: var(--purple);
}
.handwritten {
  font-family: "Patrick Hand", "IBM Plex Sans Thai", cursive;
  font-weight: 400;
  letter-spacing: 0.3px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 49px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.button:hover,
.button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.button.primary {
  background: var(--blue);
  color: white;
}
.button span {
  font-size: 20px;
}
.button.small {
  min-height: 41px;
  padding: 7px 15px;
  font-size: 13px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 252, 0.96);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header > .shell {
  height: 90px;
}
.brand {
  font-size: 10px;
  letter-spacing: 1.2px;
  line-height: 1.55;
  color: var(--black);
  flex-shrink: 0;
}
.brand b {
  font-size: 9px;
}
.brand-icon {
  font-size: 23px;
  line-height: 0.8;
  font-weight: 1000;
  letter-spacing: -2px;
  position: relative;
  padding-right: 7px;
}
.brand-icon > span {
  color: var(--blue);
}
.brand-icon i {
  position: absolute;
  right: -3px;
  top: 10px;
  font-size: 12px;
  color: var(--purple);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links > a:not(.button):hover {
  color: var(--purple);
}
.menu-toggle {
  display: none;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--paper);
  padding: 4px 10px;
  font-size: 23px;
  line-height: 1.1;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.menu-toggle:hover,
.menu-toggle:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding-top: 58px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}
.little-star {
  color: var(--purple);
  font-size: 21px;
}
.year-label {
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  letter-spacing: 1px;
  margin-left: 3px;
}
.thai-game {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--black);
  margin-top: 26px;
  margin-bottom: 5px;
}
.thai-game span {
  color: #9e51c6;
}
.hero h1 {
  font-size: clamp(55px, 5.8vw, 84px);
  font-weight: 1000;
  color: #111217;
  letter-spacing: -5.3px;
  line-height: 1.02;
}
.developer-word {
  white-space: nowrap;
}
.bounding {
  display: inline-block;
  position: relative;
  color: var(--paper);
  -webkit-text-stroke: 2.2px var(--blue);
  paint-order: stroke fill;
  border: 1px solid var(--blue);
  line-height: 0.93;
  letter-spacing: -0.04em;
  margin-right: 2px;
  padding: 0 3px 3px 0;
}
.bounding > i {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1.3px solid var(--blue);
  background: var(--paper);
}
.bounding > i:nth-child(1) {
  top: -3px;
  left: -3px;
}
.bounding > i:nth-child(2) {
  top: -3px;
  right: -3px;
}
.bounding > i:nth-child(3) {
  bottom: -3px;
  left: -3px;
}
.bounding > i:nth-child(4) {
  bottom: -3px;
  right: -3px;
}
.dimension {
  position: absolute;
  right: -10px;
  bottom: -26px;
  padding: 4px 6px;
  background: var(--blue);
  color: #fff;
  -webkit-text-stroke: 0;
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 1px;
  font-weight: 500;
  transform: rotate(-3deg);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  pointer-events: none;
}
.bounding:hover .dimension,
.bounding:focus .dimension {
  opacity: 1;
}
.heading-star {
  color: var(--purple);
  font-size: 51px;
  display: inline-block;
  transform: translate(17px, -8px) rotate(15deg);
  font-weight: 400;
}
.challenge-title {
  font-size: clamp(27px, 3vw, 43px);
  font-weight: 1000;
  line-height: 1.08;
  letter-spacing: -1.3px;
  color: var(--blue);
  margin-top: 25px;
}
.outline-year {
  -webkit-text-stroke: 1px var(--blue);
  color: transparent;
}
.hero-tagline {
  font-size: 19px;
  font-weight: 600;
  color: var(--black);
  margin-top: 23px;
}
.pencil-underline {
  position: relative;
  white-space: nowrap;
}
.pencil-underline:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: #d9dc88;
  bottom: 0;
  z-index: -1;
  transform: rotate(-2deg);
}
.hero-description {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 10px;
}
.hero-actions {
  margin-top: 25px;
}
.hero-note {
  font-size: 18px;
  margin-top: 18px;
  color: #797188;
  transform: rotate(-2deg);
}
.hero-art {
  position: relative;
  height: 560px;
  margin-top: 5px;
  min-width: 0;
  color: var(--blue);
}
.platform-scene {
  position: absolute;
  width: 112%;
  height: auto;
  left: -10%;
  top: 40px;
}
.art-note {
  position: absolute;
  left: 22%;
  top: 21px;
  transform: rotate(-9deg);
  font-size: 22px;
  line-height: 1.1;
  color: #80768d;
  pointer-events: none;
}
.actor {
  position: absolute;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  z-index: 3;
}
.actor svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: bob 3.4s ease-in-out infinite;
}
.actor:hover svg,
.actor:focus-visible svg,
.actor.jumping svg {
  animation: jump 0.65s ease-in-out;
}
.actor-dino {
  width: 26%;
  left: 9%;
  top: 44%;
}
.actor-robot {
  width: 28%;
  left: 32%;
  top: 23%;
}
.actor-cat {
  width: 25%;
  left: 56%;
  top: 8%;
}
.actor-whale {
  width: 29%;
  left: 73%;
  top: -3%;
}
.actor-cat svg {
  animation-delay: -1.3s;
}
.actor-whale svg {
  animation-delay: -2.2s;
}
.hero-controller {
  position: absolute;
  width: 21%;
  left: 10%;
  top: 71%;
  transform: rotate(-4deg);
}
.hover-note {
  position: absolute;
  top: 69%;
  left: 67%;
  font-size: 19px;
  transform: rotate(8deg);
}
.art-sticker {
  position: absolute;
  top: 78%;
  left: 55%;
  background: #e9eaa5;
  color: var(--ink);
  padding: 16px 23px 14px;
  transform: rotate(-7deg);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.4px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 #d8d8bd;
  pointer-events: none;
}
.art-sticker:before {
  content: "";
  position: absolute;
  left: 40%;
  top: -10px;
  width: 43px;
  height: 20px;
  background: #e8dff2bb;
  transform: rotate(14deg);
}
.art-sticker span {
  font-style: italic;
}
.art-sticker i {
  position: absolute;
  right: -23px;
  top: 21px;
  font-size: 42px;
  color: var(--purple);
  font-style: normal;
}
.draw-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.8s ease forwards;
}
.hero-bottom {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 22px 0;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.hero-bottom > a {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink);
}
.hero-bottom > a span {
  padding-left: 8px;
}
.ticker {
  border-block: 2px solid var(--ink);
  background: #eeebf7;
  overflow: hidden;
  color: var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  padding: 13px 0;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  word-spacing: 7px;
  animation: ticker-scroll 28s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-segment {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker-segment span {
  display: inline-block;
  color: var(--purple);
  margin: 0 24px;
  font-size: 18px;
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.journey {
  background: #f1eef680;
  border-bottom: 1px solid var(--line);
}
.section-heading .eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
}
.journey-note {
  font-size: 21px;
  transform: rotate(-5deg);
  line-height: 1.1;
  margin-right: 20px;
}
.journey-note span {
  font-size: 40px;
  display: inline-block;
  vertical-align: top;
  margin-left: 20px;
}
.connection-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 25px;
  min-height: 22px;
}
.connection-note button {
  text-decoration: underline;
  border: none;
  padding: 0 6px;
  font-size: 13px;
}
.stage-map {
  height: 90px;
  position: relative;
  margin-top: 4px;
}
.stage-map > svg {
  width: 100%;
  height: 100%;
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
  overflow: visible;
}
.map-runner {
  position: absolute;
  left: 10%;
  top: 4px;
  transition:
    left 1.2s ease,
    top 1.2s ease;
}
.map-runner svg {
  width: 57px;
  height: 62px;
  animation: run 0.4s ease-in-out infinite alternate;
  color: var(--blue);
}
.map-runner span {
  position: absolute;
  left: 55px;
  top: 17px;
  font-size: 8px;
  white-space: nowrap;
  letter-spacing: 1px;
  background: #e5e7a0;
  padding: 4px 6px;
}
.map-flag {
  position: absolute;
  right: 0;
  top: -16px;
  font-size: 37px;
}
.stage-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 #dedbe9;
  padding: 23px 24px 0;
  position: relative;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 7px 0 #dedbe9;
}
.stage-card.current {
  box-shadow: 4px 4px 0 var(--ink);
}
.stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.stage-number {
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}
.phase-badge {
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 3px;
  color: var(--muted);
}
.phase-badge.open {
  background: #e7e9a6;
  border-color: #b9bd64;
  color: #4a501e;
}
.phase-badge.soon {
  background: #eee3f8;
  color: #7b3e9a;
  border-color: #d3b8e9;
}
.stage-card .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.stage-card h3 {
  font-size: 20px;
  color: var(--black);
  margin-bottom: 10px;
}
.stage-card > p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.phase-date {
  font-size: 13px;
  margin-top: 23px;
  min-height: 50px;
  line-height: 1.8;
}
.stage-link {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 0;
  margin-top: 9px;
}
.stage-link span {
  font-size: 21px;
}
.stage-link:hover {
  color: var(--purple);
}
.countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 35px;
  padding: 25px 30px;
  border: 1px dashed #b5accb;
}
.countdown-row .eyebrow {
  font-size: 10px;
}
.countdown-row h3 {
  font-size: 17px;
  margin-top: 6px;
}
.countdown-row p {
  font-size: 12px;
  color: var(--muted);
  max-width: 330px;
}
.handheld {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #e7e2f1;
  padding: 13px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px 12px 25px 12px;
  box-shadow: 4px 4px 0 #c5bed8;
  transform: rotate(-1deg);
}
.power-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a9250;
}
.lcd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e8ebd0;
  border: 2px solid #62674b;
  box-shadow: inset 2px 2px 0 #b6bea1;
  padding: 7px 17px;
  color: #4f5a34;
}
.lcd div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lcd strong {
  font-family: monospace;
  font-weight: 500;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.lcd span {
  font-size: 8px;
  letter-spacing: 1px;
}
.lcd > b {
  font-size: 20px;
  margin-top: -12px;
}
.console-buttons {
  font-size: 14px;
  writing-mode: vertical-rl;
  letter-spacing: 5px;
  color: #9f7bc4;
  transform: rotate(25deg);
}
.countdown-note {
  font-size: 20px;
  line-height: 1.2;
  transform: rotate(4deg);
  color: #777086;
}
.text-link {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.text-link span {
  margin-left: 10px;
}
.gallery-toolbar {
  margin-top: 30px;
  border-block: 1px solid var(--line);
  padding: 15px 0;
}
.filter-tabs {
  display: flex;
  gap: 8px;
}
.filter {
  font-size: 14px;
  border: 1px solid transparent;
  padding: 8px 13px;
}
.filter.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.filter span {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #a5a2b8;
  padding: 5px 0;
}
.search-box > span {
  font-size: 25px;
  line-height: 1;
}
.search-box input {
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 14px;
  width: 230px;
  padding: 4px 0;
}
.gallery-note {
  font-size: 13px;
  color: var(--muted);
  margin: 17px 0;
}
.character-card {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 #dedbe9;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  min-width: 0;
}
.character-card:hover {
  transform: translateY(-5px) rotate(-0.6deg);
  border-color: var(--ink);
  box-shadow: 4px 7px 0 var(--ink);
}
.character-card:nth-child(even):hover {
  transform: translateY(-5px) rotate(0.6deg);
}
.character-art {
  height: 218px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(#ddd8e533 1px, transparent 1px),
    linear-gradient(90deg, #ddd8e533 1px, transparent 1px);
  background-size: 16px 16px;
  position: relative;
}
.character-card:nth-child(2n) .character-art {
  background-color: #f1ecf7;
}
.character-card:nth-child(3n) .character-art {
  background-color: #f2f2df;
}
.character-art svg {
  height: 160px;
  width: 170px;
  color: var(--blue);
  transition: transform 0.3s;
}
.character-art:hover svg {
  transform: translateY(-6px) rotate(3deg);
}
.character-art img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.card-code {
  position: absolute;
  left: 12px;
  top: 12px;
  font-family: monospace;
  font-size: 11px;
  color: #716680;
}
.favorite {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 33px;
  height: 33px;
  background: var(--paper);
  border: 1px solid #c5bed6;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}
.favorite[aria-pressed="true"] {
  color: var(--purple);
  background: #efe2fc;
}
.character-info {
  padding: 17px;
}
.character-info h3 {
  font-size: 18px;
  color: var(--black);
}
.character-info p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #777086;
}
.card-bottom button {
  font-size: 13px;
  border: 0;
  color: var(--ink);
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}
.gallery-footer > .handwritten {
  font-size: 22px;
  color: #7a718d;
  transform: rotate(-2deg);
}
.empty-state {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed var(--line);
  font-size: 14px;
}
.guidelines {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 55px;
}
.brief-title .eyebrow {
  font-size: 10px;
}
.brief-title h2 {
  font-size: 31px;
  margin-top: 16px;
}
.brief-title .handwritten {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  color: var(--purple);
  transform: rotate(-4deg);
}
.brief-details details {
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}
.brief-details details:first-child {
  padding-top: 0;
}
.brief-details details:last-child {
  border-bottom: 0;
}
.brief-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 16px;
  font-weight: 600;
}
.brief-details summary::-webkit-details-marker {
  display: none;
}
.brief-details summary span {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.brief-details details[open] summary span {
  transform: rotate(45deg);
}
.brief-details details p {
  font-size: 14px;
  color: var(--muted);
  padding-top: 14px;
  line-height: 1.9;
}
.closing {
  text-align: center;
  position: relative;
  padding-block: 70px;
  overflow: hidden;
}
.closing > .handwritten {
  font-size: 25px;
  color: var(--purple);
}
.closing h2 {
  font-size: 37px;
  line-height: 1.5;
  margin: 15px 0 25px;
}
.closing h2 span {
  color: var(--blue);
}
.closing > svg {
  position: absolute;
  width: 145px;
  left: 7%;
  top: 110px;
  transform: rotate(-18deg);
  color: var(--blue);
}
.closing-star {
  position: absolute;
  right: 12%;
  top: 100px;
  color: var(--olive);
  font-size: 85px;
  transform: rotate(15deg);
}
.site-footer {
  padding-block: 25px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.footer-brand {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -1px;
}
.footer-brand > span {
  color: var(--purple);
  margin-left: 5px;
}
.footer-brand small {
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-left: 13px;
}
.site-footer p {
  color: var(--muted);
  font-size: 11px;
}
.site-footer > a:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}
dialog {
  padding: 0;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  max-width: 700px;
  width: calc(100% - 40px);
  background: var(--paper);
  color: var(--ink);
  max-height: 90vh;
  overflow: auto;
  margin: auto;
}
dialog[open] {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
dialog::backdrop {
  background: #17172d88;
  backdrop-filter: blur(4px);
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  font-size: 30px;
  z-index: 2;
}
.dialog-art {
  padding: 35px;
  background: #eee8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.dialog-art svg,
.dialog-art img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
  color: var(--blue);
}
.dialog-copy {
  padding: 48px 25px 30px;
}
.dialog-copy h2 {
  font-size: 28px;
  margin: 10px 0;
}
.dialog-copy p:not(.eyebrow) {
  font-size: 14px;
  margin-top: 10px;
}
.dialog-copy .button {
  margin-top: 24px;
  font-size: 13px;
  padding-inline: 12px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  font-size: 14px;
  box-shadow: 3px 3px 0 #ab8ac9;
  z-index: 60;
  max-width: 90%;
  text-align: center;
}
.noscript {
  padding: 15px;
  background: #efe2fc;
  text-align: center;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}
@keyframes jump {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  20% {
    transform: translateY(4px) scale(1.07, 0.92);
  }
  50% {
    transform: translateY(-29px) rotate(-6deg);
  }
  80% {
    transform: translateY(0) scale(1.07, 0.94);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes run {
  from {
    transform: rotate(-4deg) translateY(0);
  }
  to {
    transform: rotate(4deg) translateY(-3px);
  }
}
@media (min-width: 1500px) {
  .hero h1 {
    font-size: 84px;
  }
  .hero-art {
    margin-top: 15px;
  }
  .hero {
    padding-top: 65px;
  }
}
@media (max-width: 1100px) {
  .shell {
    width: calc(100% - 56px);
  }
  .nav-links {
    gap: 18px;
    font-size: 13px;
  }
  .hero h1 {
    font-size: 64px;
  }
  .hero {
    grid-template-columns: 1.15fr 1fr;
  }
  .hero-art {
    height: 510px;
    margin-top: 40px;
  }
  .hero-tagline {
    font-size: 16px;
  }
  .hero-actions .button {
    font-size: 13px;
    padding: 10px 13px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .art-sticker {
    top: 76%;
    font-size: 16px;
  }
  .countdown-note {
    display: none;
  }
  .stage-card {
    padding: 20px 17px 0;
  }
  .stage-card h3 {
    font-size: 17px;
  }
  .character-art {
    height: 190px;
    padding: 22px;
  }
  .page-mark {
    display: none;
  }
}
@media (max-width: 800px) {
  .site-header > .shell {
    height: 75px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    padding: 25px 28px;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 8px 0 #e5dfee77;
  }
  .nav-links.open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
  }
  .hero-copy {
    max-width: 580px;
  }
  .hero h1 {
    font-size: 78px;
  }
  .hero-art {
    width: min(560px, 100%);
    height: 500px;
    justify-self: center;
    margin-top: 40px;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
  .hero-tagline {
    font-size: 19px;
  }
  .hero-description {
    font-size: 16px;
  }
  .hero-actions .button {
    font-size: 14px;
  }
  .hero-art .platform-scene {
    left: -3%;
    width: 103%;
  }
  .actor-dino {
    top: 47%;
    left: 14%;
  }
  .actor-robot {
    left: 36%;
    top: 28%;
  }
  .actor-cat {
    left: 59%;
    top: 12%;
  }
  .actor-whale {
    left: 75%;
    top: 0;
    width: 25%;
  }
  .hero-controller {
    top: 77%;
    left: 16%;
  }
  .art-sticker {
    top: 80%;
    left: 60%;
  }
  .hover-note {
    top: 72%;
  }
  .hero-bottom {
    margin-top: 18px;
  }
  .hero-bottom > span {
    font-size: 8px;
  }
  .section-pad {
    padding-block: 50px;
  }
  .stage-map {
    display: none;
  }
  .stage-grid {
    margin-top: 22px;
    grid-template-columns: 1fr;
  }
  .stage-card {
    padding: 22px 24px 0;
  }
  .stage-card h3 {
    font-size: 22px;
  }
  .stage-card > p:not(.eyebrow) {
    font-size: 16px;
  }
  .stage-top {
    margin-bottom: 16px;
  }
  .phase-date {
    margin-top: 16px;
    min-height: 0;
  }
  .stage-card.current:before {
    content: "YOU ARE HERE";
    position: absolute;
    top: -11px;
    left: 20px;
    background: #e5e7a0;
    padding: 3px 8px;
    letter-spacing: 1px;
    font-size: 9px;
  }
  .countdown-row {
    padding: 22px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .countdown-row > div:first-child {
    width: 100%;
  }
  .countdown-row p {
    max-width: 100%;
  }
  .journey-note {
    font-size: 18px;
  }
  .guidelines {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 40px;
  }
  .closing > svg {
    width: 95px;
    left: 0;
    top: 150px;
  }
  .closing-star {
    font-size: 55px;
    right: 0;
    top: 70px;
  }
  .site-footer {
    flex-wrap: wrap;
  }
  .character-art {
    height: 225px;
  }
  .gallery-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .brief-title h2 br {
    display: none;
  }
}
@media (max-width: 480px) {
  .shell {
    width: calc(100% - 40px);
  }
  .hero h1 {
    font-size: clamp(45px, 14.6vw, 65px);
    letter-spacing: -3.8px;
  }
  .bounding {
    letter-spacing: -0.04em;
  }
  .thai-game {
    font-size: 17px;
    letter-spacing: 4px;
  }
  .heading-star {
    font-size: 35px;
    transform: translate(12px, -4px);
  }
  .challenge-title {
    font-size: 31px;
  }
  .hero-tagline {
    font-size: 16px;
  }
  .hero-description {
    font-size: 14px;
  }
  .desktop-break {
    display: none;
  }
  .hero-actions {
    gap: 13px;
  }
  .hero-actions .button {
    font-size: 13px;
    padding: 11px 13px;
    gap: 8px;
  }
  .hero-note {
    font-size: 16px;
  }
  .hero-art {
    height: 355px;
    margin-top: 35px;
  }
  .art-note {
    font-size: 17px;
    top: 12px;
  }
  .actor-dino {
    top: 48%;
  }
  .actor-robot {
    top: 30%;
  }
  .actor-cat {
    top: 16%;
  }
  .actor-whale {
    top: 4%;
  }
  .hero-controller {
    top: 78%;
  }
  .art-sticker {
    font-size: 12px;
    padding: 10px 14px;
    top: 80%;
    left: 62%;
  }
  .art-sticker i {
    font-size: 28px;
    right: -15px;
  }
  .hover-note {
    font-size: 14px;
    top: 74%;
    left: 57%;
  }
  .hero-bottom > span {
    display: none;
  }
  .hero-bottom {
    justify-content: center;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .journey-note {
    display: none;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .section-heading .muted {
    font-size: 14px;
  }
  .section-heading .eyebrow {
    font-size: 10px;
  }
  .gallery-toolbar {
    gap: 15px;
  }
  .search-box {
    width: 100%;
  }
  .search-box input {
    width: 100%;
  }
  .filter {
    font-size: 13px;
  }
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .character-art {
    height: 170px;
    padding: 22px 12px;
  }
  .character-art svg {
    height: 126px;
  }
  .character-info {
    padding: 12px;
  }
  .character-info h3 {
    font-size: 16px;
  }
  .character-info p {
    font-size: 12px;
  }
  .card-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
  }
  .card-code {
    font-size: 9px;
  }
  .favorite {
    width: 29px;
    height: 29px;
    font-size: 18px;
  }
  .gallery-footer > .handwritten {
    font-size: 19px;
  }
  .gallery-footer .button {
    font-size: 13px;
    width: 100%;
  }
  .handheld {
    padding: 10px;
    gap: 8px;
  }
  .lcd {
    padding: 7px 10px;
    gap: 8px;
  }
  .lcd strong {
    font-size: 24px;
  }
  .countdown-row {
    padding: 20px 10px;
  }
  .closing h2 {
    font-size: 30px;
  }
  .closing > svg {
    display: none;
  }
  .closing-star {
    font-size: 34px;
    top: 46px;
  }
  .closing {
    padding-block: 50px;
  }
  .site-footer {
    gap: 13px;
  }
  .site-footer p {
    order: 3;
    width: 100%;
  }
  .footer-brand small {
    font-size: 7px;
    margin-left: 7px;
  }
  dialog[open] {
    grid-template-columns: 1fr;
  }
  .dialog-art {
    min-height: 180px;
    padding: 25px;
  }
  .dialog-art svg,
  .dialog-art img {
    height: 180px;
  }
  .dialog-copy {
    padding: 25px;
  }
  .dialog-copy h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .draw-line {
    stroke-dashoffset: 0;
  }
}

/* The hero uses the supplied artwork, with a display crop that preserves the original pixels. */
.hero-reference .reference-art {
  position: absolute;
  width: 132%;
  max-width: none;
  height: auto;
  left: -30%;
  top: 90px;
  mix-blend-mode: multiply;
  animation: reference-reveal 0.8s ease-out both;
}
.hero-reference .art-note {
  top: 25px;
  left: 25%;
}
@keyframes reference-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .hero-reference .reference-art {
    top: 100px;
  }
}
@media (max-width: 800px) {
  .hero-art.hero-reference {
    width: 100%;
    height: auto;
    aspect-ratio: 1460 / 750;
    margin-top: 35px;
  }
  .hero-reference .reference-art {
    position: relative;
    width: 100%;
    left: auto;
    top: auto;
  }
  .hero-reference .art-note {
    top: 7%;
    left: 3%;
    font-size: 20px;
  }
  .hero-reference .art-sticker {
    top: 65%;
    left: 68%;
    font-size: 15px;
    padding: 12px 17px;
  }
}
@media (max-width: 480px) {
  .hero-reference .art-note {
    font-size: 15px;
  }
  .hero-reference .art-sticker {
    top: 66%;
    left: 67%;
    font-size: 10px;
    padding: 9px 12px;
  }
  .hero-reference .art-sticker i {
    font-size: 23px;
    right: -13px;
  }
}

/* Every character and device has a stationary hit target and two independent motion layers. */
.hero-reference .reference-layered {
  overflow: visible;
  position: relative;
  z-index: 3;
  animation: none;
  pointer-events: none;
}
.reference-track {
  stroke: #263ccf;
  stroke-width: 2.8;
  fill: none;
}
.reference-scribble,
.cat-jump-strokes {
  animation: scribble-reveal 0.55s ease-out 1.4s both;
}
.reference-scribble {
  stroke: #263ccf;
  stroke-width: 2.8;
}
.reference-character,
.reference-device {
  cursor: pointer;
  outline: none;
}
.character-hitbox {
  fill: transparent;
  stroke: transparent;
  stroke-width: 3;
  pointer-events: all;
}
.reference-character:focus-within .character-hitbox,
.reference-device:focus-within .character-hitbox {
  stroke: #a855f7;
  stroke-dasharray: 8 7;
}
.character-float {
  pointer-events: none;
  animation: reference-float var(--float-duration, 3.5s) ease-in-out
    var(--float-delay, 0s) infinite;
}
.character-jump {
  transform-box: fill-box;
  transform-origin: center bottom;
}
.reference-character.jumping .character-jump {
  animation: reference-hop 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reference-device.jumping .character-jump {
  animation: device-hop 0.66s cubic-bezier(0.22, 1, 0.36, 1);
}
.reference-hint {
  position: absolute;
  top: 70%;
  left: 52%;
  font-size: 18px;
  transform: rotate(5deg);
  color: var(--muted);
  pointer-events: none;
}
@keyframes scribble-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes reference-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes reference-hop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  18% {
    transform: translateY(4px) scale(1.035, 0.95);
  }
  48% {
    transform: translateY(-48px) rotate(-4deg);
  }
  78% {
    transform: translateY(0) scale(1.04, 0.96);
  }
}
@keyframes device-hop {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  16% {
    transform: translateY(5px) scale(1.07, 0.91) rotate(2deg);
  }
  46% {
    transform: translateY(-42px) scale(0.96, 1.06) rotate(-5deg);
  }
  72% {
    transform: translateY(3px) scale(1.05, 0.94) rotate(2.5deg);
  }
  88% {
    transform: translateY(-7px) scale(0.99, 1.02) rotate(-1deg);
  }
}
@media (max-width: 800px) {
  .reference-hint {
    top: 73%;
    left: 37%;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .reference-hint {
    top: 72%;
    left: 36%;
    font-size: 12px;
  }
}

/* A small idea handoff retains the original dinosaur/robot pose. */
.relay-parcel { transform: translate(1200px, 408px); animation: pass-the-idea 4s ease-in-out infinite; }
@keyframes pass-the-idea {
  0%, 20%, 100% { transform: translate(1200px, 408px) rotate(-6deg); }
  50%, 70% { transform: translate(1225px, 390px) rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) { .relay-parcel { transform: translate(1200px, 408px); } }

/* Reserve a separate caption/control area below the scene on narrow screens. */
@media (max-width: 800px) {
  .hero-art.hero-reference { aspect-ratio: auto; padding-bottom: 104px; }
  .hero-reference .reference-art { display: block; }
  .hero-reference .art-sticker { top: auto; bottom: 1px; left: auto; right: 4%; }
  .reference-hint { top: auto; bottom: 57px; left: 3%; max-width: calc(100% - 155px); }
}
@media (max-width: 480px) {
  .reference-hint { font-size: 12px; max-width: calc(100% - 120px); }
}

/* Keep the buffalo’s hooves grounded; user-triggered jumps still work. */
.reference-character[data-character="rider"] .character-float { animation: none; }

/* A larger robot marks the active stage, with clearance above the tallest step. */
.stage-map { margin-top: 104px; }
.map-runner img { width: 108px; height: 110px; object-fit: contain; animation: run .6s ease-in-out infinite alternate; }
.map-runner span { left: 104px; top: 43px; font-size: 9px; padding: 6px 8px; }
.map-runner[data-stage="2"] span { left: auto; right: 106px; }

.preview-ribbon {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  padding: 7px 12px;
  border: 2px solid #1e3a8a;
  background: #f0e8fb;
  color: #1e3a8a;
  box-shadow: 3px 3px 0 #1e3a8a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 600px) {
  .preview-ribbon {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .shell {
    width: calc(100% - 28px);
  }
  .handheld {
    padding: 8px 10px;
    gap: 6px;
  }
  .lcd {
    padding: 6px 8px;
    gap: 6px;
  }
  .lcd strong {
    font-size: 20px;
  }
  .lcd > b {
    font-size: 16px;
    margin-top: -10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
    transform: none !important;
  }
  .reference-scribble,
  .cat-jump-strokes {
    animation: none !important;
    opacity: 1;
  }
}

.map-runner .map-runner-compat { display: none; }

/* Facebook OAuth Navbar Widget (Landing Theme) */
.nav-auth {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.fb-login-btn-landing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.fb-login-btn-landing:hover {
  background: var(--ink);
  transform: translate(1.5px, 1.5px);
  box-shadow: 1.5px 1.5px 0 var(--ink);
}
.fb-user-chip-landing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 5px;
  background: #fffdfd;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  max-width: 100%;
}
.fb-user-chip-landing .fb-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}
.fb-user-chip-landing .fb-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0e8fb;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.fb-user-chip-landing .fb-user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-user-chip-landing .fb-logout-btn {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #a33151;
  background: #fff0f3;
  border: 1.5px solid #a33151;
  white-space: nowrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
