@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/caveat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/lexend-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/lexend-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #1F1B4D;
  --sun: #FFCF33;
  --sky: #EEF4FF;
  --card: #FFFFFF;
  --go: #19C37D;
  --pop: #FF5C7A;
  --muted: #5B5880;
  --line: 2px solid var(--ink);
  --r: 16px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Lexend", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sky);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.no-scroll { overflow: hidden; }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px 22px;
  font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1;
  color: var(--ink); background: var(--card);
  border: var(--line); border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--go { background: var(--go); }
.btn--xl { min-height: 60px; padding: 12px 36px; font-size: 22px; }
.btn--xl svg { width: 22px; height: 22px; }

/* ---------- yellow band: header + hero ---------- */
.band {
  background: var(--sun);
  border-bottom: var(--line);
  border-radius: 0 0 28px 28px;
  padding-bottom: 24px;
}
.band--slim { padding-bottom: 0; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 0; }

.logo {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1;
  letter-spacing: -.02em;
}
.logo .oto { display: inline-flex; align-items: center; margin-left: 2px; }
.logo .eye {
  position: relative; display: block;
  width: .74em; height: .74em;
  background: #fff; border: 3px solid var(--ink); border-radius: 50%;
}
.logo .eye::after {
  content: ""; position: absolute; right: 12%; bottom: 14%;
  width: 42%; height: 42%; border-radius: 50%; background: var(--ink);
}
.logo .t { margin: 0 1px; }
.tagline { display: none; font-weight: 600; }

.search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 16px;
  background: #fff; border: var(--line); border-radius: 999px;
  flex: 1 1 100%;
}
.search svg { width: 20px; height: 20px; flex: none; }
.search input {
  width: 100%; min-width: 0; border: 0; outline: 0; background: none;
  font: 400 16px var(--body); color: var(--ink);
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search:focus-within { outline: 3px solid var(--pop); outline-offset: 3px; }

.hero { display: grid; gap: 20px; align-items: center; padding-top: 8px; }
.hero-thumb, .thumb, .stage {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .5), transparent 52%),
    linear-gradient(to top, rgba(31, 27, 77, .14), transparent 45%),
    var(--c);
}
.hero-thumb img, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb {
  display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 2 / 1;
  font-size: clamp(72px, 16vw, 120px); line-height: 1;
  border: var(--line); border-radius: var(--r);
  box-shadow: 0 5px 0 var(--ink);
}
.hero-text { display: grid; gap: 12px; justify-items: start; }
.badge {
  padding: 5px 12px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  background: var(--pop); color: var(--ink);
  border: var(--line); border-radius: 999px;
}
.hero-name { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6vw, 56px); line-height: 1; letter-spacing: -.02em; }
.hero p { font-size: 17px; max-width: 32ch; }

/* ---------- ad slots (rendered only when ads are enabled in site.config.json) ---------- */
.ad { display: grid; justify-items: center; gap: 6px; margin: 32px auto; }
.ad-label { font: 12px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-box { width: 320px; height: 100px; max-width: 100%; overflow: hidden; }
.ad--mrec .ad-box { width: 300px; height: 250px; }
.ad--rail { display: none; }

/* ---------- categories ---------- */
.chips {
  display: flex; gap: 10px;
  margin: 0 -16px; padding: 4px 56px 12px 16px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px 0 14px;
  font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1;
  background: var(--card); border: var(--line); border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.chip .ico { font-size: 22px; line-height: 1; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- game grid ---------- */
.section-title { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -.01em; margin: 20px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid .ad { grid-column: 1 / -1; margin: 12px auto; }
.tile {
  display: grid; gap: 8px; padding: 8px 8px 10px;
  background: var(--card); border: var(--line); border-radius: var(--r);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.thumb {
  display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden;
  font-size: clamp(48px, 13vw, 64px); line-height: 1;
  border-radius: 10px;
}
.name { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.15; text-align: center; }
.kind { display: block; margin-top: 3px; font: 400 13px/1.2 var(--body); color: var(--muted); }
.more { display: grid; justify-items: center; margin: 32px 0 8px; }
.note {
  display: flex; align-items: center; gap: 16px;
  margin: 32px 0; padding: 18px;
  background: var(--card); border: var(--line); border-radius: var(--r);
  font-weight: 600;
}
.note .logo { font-size: 26px; }

/* ---------- game page ---------- */
.game-layout { display: grid; gap: 32px; padding-top: 24px; }
.game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.game-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 40px); line-height: 1; letter-spacing: -.02em; }
.game-main { width: 100%; max-width: 1000px; margin-inline: auto; }
.game-layout--rail .game-main { max-width: none; }
.stage {
  position: relative; display: grid; place-items: center; align-content: center; gap: 18px; overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--line); border-radius: var(--r);
  box-shadow: 0 5px 0 var(--ink);
}
.stage .emoji { font-size: clamp(72px, 16vw, 130px); line-height: 1; }
.stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .btn { position: relative; }
.stage.is-playing { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; background: #000; }
.stage iframe { flex: 1; width: 100%; min-height: 0; border: 0; display: block; }
.stage-top { display: none; }
/* phones: the game takes the whole screen, with a bar to get back to the page */
.stage.is-full {
  position: fixed; inset: 0; z-index: 100; height: 100vh; height: 100dvh;
  aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none;
}
.stage.is-full .stage-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 16px;
}
.stage-close { min-height: 36px; padding: 4px 14px; font-size: 15px; box-shadow: none; }
.stage-close:hover, .stage-close:active { transform: none; box-shadow: none; }
.stage:fullscreen { aspect-ratio: auto; border: 0; border-radius: 0; }
.stage-bar { display: flex; justify-content: flex-end; margin: 18px 0 14px; min-height: 4px; }
.how { display: grid; gap: 12px; margin-top: 8px; }
.how-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--card); border: var(--line); border-radius: var(--r);
}
.how-card .ico { font-size: 30px; line-height: 1; }
.how-card h3 { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; }

/* ---------- text pages ---------- */
.prose { max-width: 68ch; padding-top: 32px; }
.prose h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 20px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
footer { margin-top: 48px; padding: 28px 0 40px; border-top: var(--line); background: #fff; }
.foot { display: grid; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; }
.foot nav a { padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.copy {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-top: 16px; border-top: 1px solid #D9DEEF;
  font-size: 14px; color: var(--muted);
}
.credit { display: inline-flex; align-items: center; gap: 8px; }
/* webitro.com wordmark: Caveat 700 + orange dot, same as webitro.com's own logo */
.wlogo {
  display: inline-flex; align-items: baseline; padding: 8px 0;
  font-family: "Caveat", cursive; font-weight: 700; font-size: 22px; line-height: 1;
  color: var(--ink);
}
.wdot { display: inline-block; width: .16em; height: .16em; margin-left: .04em; border-radius: 50%; background: #FF6A13; }

@media (min-width: 600px) {
  .search { flex: 0 1 320px; }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
  .hero-thumb { aspect-ratio: 16 / 9; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .how-card { flex-direction: column; text-align: center; }
}
@media (min-width: 800px) {
  .logo { font-size: 38px; }
  .tagline { display: block; }
  .band { padding-bottom: 32px; }
  .band--slim { padding-bottom: 0; }
  .hero { gap: 40px; }
  .ad-box, .ad--mrec .ad-box { width: 728px; height: 90px; }
  .chips { margin: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .thumb { font-size: 60px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .game-layout--rail { grid-template-columns: minmax(0, 1fr) 300px; }
  .ad--rail { display: grid; margin: 0; align-content: start; }
  .ad--rail .ad-box { width: 300px; height: 600px; }
  .game-main .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .tile { transition: none; }
  .btn:hover, .tile:hover { transform: none; }
}
