:root {
  --dusk: #1d1733;      /* night market sky */
  --dusk-2: #2a2147;    /* raised surface */
  --lantern: #ffb938;   /* warm stall light */
  --awning: #e5483a;    /* striped canopy red */
  --paper: #f6eedc;     /* canopy white / text */
  --muted: #b3a9cc;
  --line: #3b3160;
  --display: "Black Han Sans", "Pretendard Variable", sans-serif;
  --body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(255, 185, 56, .10), transparent 60%) no-repeat,
    var(--dusk);
  color: var(--paper);
  font: 400 1.0625rem/1.7 var(--body);
  word-break: keep-all;
}
img { display: block; max-width: 100%; height: auto; }
.pixel { image-rendering: pixelated; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; border-radius: 6px; }

/* The canopy: the one loud element on the page */
.awning {
  height: 64px;
  background: repeating-linear-gradient(90deg, var(--awning) 0 48px, var(--paper) 48px 96px);
  position: relative;
}
.awning::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 100%;
  height: 22px;
  background:
    radial-gradient(circle at 24px 0, var(--awning) 23px, transparent 24px) 0 0 / 96px 22px repeat-x,
    radial-gradient(circle at 72px 0, var(--paper) 23px, transparent 24px) 0 0 / 96px 22px repeat-x;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  font: 400 1.5rem/1 var(--display);
  color: var(--lantern);
  text-decoration: none;
  letter-spacing: .01em;
}
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.topbar ul a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-weight: 600;
}
.topbar ul a:hover { color: var(--paper); background: var(--dusk-2); }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.intro { padding: 72px 0 96px; max-width: 46rem; }
.intro h1 {
  margin: 0 0 28px;
  font: 400 clamp(2.75rem, 7vw, 5.25rem)/1.08 var(--display);
  letter-spacing: -.01em;
  color: var(--paper);
  text-shadow: 0 0 40px rgba(255, 185, 56, .25);
}
.intro p { margin: 0; color: var(--muted); font-size: 1.1875rem; max-width: 36rem; }

.shelf { padding-bottom: 96px; }
.shelf-title {
  margin: 0 0 40px;
  font: 400 2rem/1.2 var(--display);
  color: var(--lantern);
  display: flex; align-items: center; gap: 20px;
}
.shelf-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }

/* Game stalls */
.game {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 96px;
}
.game.flip .game-art { order: 2; }
.game-art {
  width: 100%;
  border-radius: 14px;
  border: 6px solid var(--paper);
  box-shadow: 0 0 0 2px var(--dusk), 0 24px 60px -20px rgba(255, 185, 56, .35);
}
.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.game h3 { margin: 0; font: 400 2.25rem/1.15 var(--display); }
.en { margin: 2px 0 0; color: var(--muted); font-size: .9375rem; }
.tagline { margin: 0 0 12px; color: var(--lantern); font-weight: 700; font-size: 1.1875rem; }
.game-body > p { margin: 0 0 16px; max-width: 34rem; }
.note { color: var(--muted); font-size: .875rem; }

.stores { list-style: none; margin: 24px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: flex; align-items: center; gap: 10px;
  min-width: 150px;
  padding: 9px 16px 9px 12px;
  background: #0d0a18;
  color: #fff;
  border: 1px solid #5a5078;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700; font-size: 1rem; line-height: 1.15;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; }
.store small { font-weight: 500; font-size: .6875rem; color: #c9c2dc; }
.store:hover { border-color: var(--lantern); }
.store:active { transform: translateY(1px); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.service {
  display: flex; flex-direction: column;
  background: var(--dusk-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
}
.service img { width: 100%; aspect-ratio: 1200 / 600; object-fit: cover; }
.service-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.service h3 { margin: 0 0 10px; font: 400 1.75rem/1.2 var(--display); }
.service p { margin: 0 0 20px; color: var(--muted); }
.go {
  margin-top: auto; align-self: flex-start;
  padding: 8px 16px; border-radius: 999px;
  background: var(--lantern); color: var(--dusk); font-weight: 800;
}
.service:hover { border-color: var(--lantern); }
.service:hover .go { background: var(--paper); }

.footer {
  border-top: 2px solid var(--line);
  max-width: 1180px; margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  color: var(--muted); font-size: .9375rem;
}
.footer p { margin: 0; }
.footer .copy { margin-left: auto; }

@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; gap: 24px; margin-bottom: 72px; }
  .game.flip .game-art { order: 0; }
  .services { grid-template-columns: 1fr; }
  .intro { padding: 48px 0 64px; }
}
@media (max-width: 520px) {
  .awning { height: 40px; }
  .topbar { padding-top: 32px; }
  .topbar ul a { padding: 8px 10px; }
  .game-art { border-width: 4px; }
  .store { min-width: calc(50% - 5px); }
  .footer .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
