/* Warna diambil dari Delivery Dash 2: aspal, garis marka kuning, trotoar krem, rumput, tombol jingga. */
@font-face { font-family: "DD Fredoka"; src: url("/fonts/Fredoka-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DD Fredoka"; src: url("/fonts/Fredoka-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DD Andika"; src: url("/fonts/Andika-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DD Andika"; src: url("/fonts/Andika-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --asphalt: #2b2e31;
  --asphalt-2: #3a3e42;
  --lane: #f2c94c;
  --curb: #ede6d3;
  --grass: #8db85e;
  --grass-deep: #4f7a33;
  --orange: #f0962e;
  --orange-lip: #b9650f;
  --ink: #1e2a30;
  --ink-2: #46555c;
  --paper: #f5f2ea;
  --card: #ffffff;
  --line: #ddd6c4;
  --link: #0b6a93;
  --ok: #2f6b2a;
  --err: #a3321c;
  --focus: #0b6a93;
  --head: "DD Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "DD Andika", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: #ebe5d6; padding: 0.05em 0.35em; border-radius: 4px; }
.small { font-size: 0.9rem; }
.muted { color: var(--ink-2); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap--text { max-width: 720px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: 8px; top: -60px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

/* Tombol ala tombol "Mulai" di game: jingga, teks gelap, bibir bawah padat */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  font: 700 1.125rem/1.2 var(--head);
  color: var(--ink); text-decoration: none;
  border: 0; border-radius: 14px; cursor: pointer;
}
.btn--go { background: var(--orange); box-shadow: 0 4px 0 var(--orange-lip); }
.btn--go:hover { background: #f5a445; }
.btn--go:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-lip); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn__ico { width: 24px; height: 24px; flex: none; }
.btn small { font: 600 0.9rem var(--body); opacity: 0.85; margin-left: 4px; }
.btn--big { min-height: 58px; font-size: 1.2rem; }

/* Hero: aspal dengan garis rumput di atas dan marka putus-putus di bawah */
.hero {
  background: var(--asphalt);
  color: #fff8ec;
  border-top: 10px solid var(--grass);
  box-shadow: inset 0 6px 0 var(--curb);
  padding-top: 36px;
}
.hero__grid { display: grid; gap: 28px; align-items: center; padding-bottom: 32px; }
.hero__icons { display: flex; gap: 10px; margin-bottom: 20px; }
.hero__icons img { width: 52px; height: 52px; border-radius: 13px; }
.hero h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.2rem); max-width: 15ch; color: #fff8ec; }
.hero__lead { font-size: 1.125rem; color: #e9e3d6; max-width: 36rem; }
.hero__lead strong { color: #fff; }
.hero__by { color: #cfc8b9; font-size: 0.98rem; }
.hero a:not(.btn) { color: var(--lane); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.hero__more { font-weight: 700; display: inline-block; padding: 10px 0; }
.hero__shot { margin: 0; }
.hero__shot img {
  width: 100%; border-radius: 12px;
  border: 6px solid var(--curb);
  transform: rotate(1.2deg);
}
@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-bottom: 48px; }
  .hero__shot img { transform: rotate(2deg) translateY(8px); }
}
.road {
  height: 28px;
  background:
    repeating-linear-gradient(90deg, var(--lane) 0 40px, transparent 40px 76px) center / 100% 6px no-repeat,
    var(--asphalt);
  border-bottom: 6px solid var(--curb);
}
.road--thin { height: 22px; }

/* Pengumuman */
.notice-wrap { padding: 28px 0 8px; }
.notice {
  background: #fff6dc;
  border: 2px solid #e8cf86;
  border-left: 8px solid var(--lane);
  border-radius: 12px;
  padding: 18px 18px 6px;
}
.notice h2 { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.45rem); }
.notice__src { font-size: 0.9rem; color: var(--ink-2); }

/* Kartu game, bergaya kartu garasi di game: putih, garis tipis, bibir bawah abu */
.games { padding: 24px 0 8px; }
.games .wrap { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .games .wrap { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}
.game {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--line);
  padding: 20px 16px;
  min-width: 0;
}
@media (min-width: 600px) { .game { padding: 26px 26px; } }
.game__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.game__icon { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.game__head h2 { margin: 0; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.game__ver { margin: 2px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.game__desc { font-size: 1.05rem; }
.game__facts { margin: 18px 0 0; padding: 0; list-style: none; border-top: 2px dashed var(--line); }
.game__facts li { padding: 9px 0 9px 26px; border-bottom: 2px dashed var(--line); position: relative; font-size: 0.98rem; }
.game__facts li::before {
  content: ""; position: absolute; left: 2px; top: 0.95em;
  width: 13px; height: 11px; border-radius: 2px;
  background: var(--orange); box-shadow: inset 0 3px 0 #f7c07e;
}

/* Galeri geser */
.shots {
  list-style: none; margin: 16px -16px 0; padding: 4px 16px 12px;
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px;
}
@media (min-width: 600px) { .shots { margin: 16px -26px 0; padding: 4px 26px 12px; scroll-padding: 0 26px; } }
.shots li { flex: 0 0 82%; scroll-snap-align: start; }
.shots--few li { flex-basis: 82%; }
.shots li.shots__tall { flex-basis: calc(82% * 0.3164); }
.shots a { display: block; border-radius: 10px; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); background: var(--curb); }
.shots li.shots__tall img { aspect-ratio: 9 / 16; }
@media (min-width: 900px) {
  .shots li { flex-basis: 360px; }
  .shots li.shots__tall { flex-basis: calc(360px * 0.3164); }
  .game--side .shots li { flex-basis: 86%; }
}

.dl { margin-top: 20px; }
.dl .btn { width: 100%; }
@media (min-width: 600px) { .dl .btn { width: auto; } }
.dl__meta { margin: 12px 0 0; color: var(--ink-2); font-size: 0.95rem; }

/* Bagian teks */
.section { padding: 48px 0 16px; }
.steps { padding: 0; margin: 0 0 16px; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 50px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--asphalt); color: var(--lane);
  font: 700 1.05rem var(--head);
}

.section--trust .wrap { border-top: 2px dashed var(--line); padding-top: 40px; }
.section--trust { padding-top: 24px; }
.pledge { margin: 8px 0 8px; padding: 0; }
.pledge p { font: 600 clamp(1.3rem, 1.1rem + 1vw, 1.7rem)/1.3 var(--head); margin: 0; }
.pledge__id { color: var(--ink-2); font-style: italic; }
.ledger { display: grid; gap: 14px; margin: 24px 0; }
@media (min-width: 640px) { .ledger { grid-template-columns: 1fr 1fr; } }
.ledger > div { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 16px 16px 4px; }
.ledger ul { margin: 0 0 12px; padding-left: 1.1em; }
.ledger li { margin-bottom: 8px; }
.ledger li::marker { color: var(--grass-deep); }

/* Formulir */
.section--form { padding-bottom: 56px; }
.form { background: var(--card); border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 5px 0 var(--line); padding: 18px 16px; margin: 20px 0 16px; }
@media (min-width: 600px) { .form { padding: 24px; } }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-2); }
input[type="text"], textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fbfaf6; border: 2px solid #cfc7b3; border-radius: 10px;
  padding: 11px 12px;
}
textarea { resize: vertical; min-height: 130px; }
input[type="text"]:focus, textarea:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 0; }
::placeholder { color: #7b8589; opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; font-weight: 400 !important; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  border: 2px solid #cfc7b3; background: #fbfaf6; cursor: pointer;
}
.chip input:checked + span { background: var(--asphalt); border-color: var(--asphalt); color: #fff8ec; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.count { margin: 6px 0 0; font-size: 0.88rem; color: var(--ink-2); text-align: right; }
.count--near { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 14px 0 0; font-weight: 700; min-height: 1.6em; }
.status--ok { color: var(--ok); }
.status--err { color: var(--err); }

/* Footer */
.foot { background: var(--asphalt); color: #d8d2c4; padding-bottom: 28px; }
.foot .road { border-bottom: 0; border-top: 6px solid var(--curb); }
.foot__inner { padding-top: 18px; }
.foot a { color: var(--lane); }
.foot p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__shot img { transform: none !important; }
  .btn--go:active { transform: none; }
}

[hidden] { display: none !important; }
.pledge--step { margin: 14px 0 6px; }
.pledge--step p { font-size: 1.15rem; }
.tr-btn { font: 700 0.95rem var(--body); color: var(--link); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.tr-btn:hover { border-color: var(--link); }
.tr-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tr-btn + .pledge__id { margin-top: 10px; }
