/* Oddly Arcade site styles */
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #f4f2fb;
  --surface: #ffffff;
  --ink: #1b1830;
  --ink-2: #47425f;
  --muted: #66617f;
  --line: #e1dcef;
  --accent: #ff5a36;
  --accent-dark: #d63e1d;
  --accent-btn: #d63e1d;
  --lilac: #c3b4ff;
  --peach: #ffbf9b;
  --sky: #9bd7ff;
  --sun: #ffe07a;
  --pink: #ffb0d6;
  --radius: 20px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); display: grid; place-items: center; transition: transform .2s; }
.logo-mark i { display: block; width: 15px; height: 17px; margin-left: 3px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 2px; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1); }
.logo:hover .logo-mark i { transform: scale(1.3, .7); }
.logo:hover .logo-mark { transform: rotate(-6deg); }
.logo-word { font: 800 19px/1 var(--display); letter-spacing: -.02em; text-transform: lowercase; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(244, 242, 251, .9); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 12px; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .logo-word { font-size: 17px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 2px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--accent-btn); color: #fff; }
.btn-primary:hover { background: #c4361a; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 42px; padding: 0 14px; font-size: 14px; border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 36px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font: 800 clamp(38px, 6.2vw, 76px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 22px; }
.hero h1 .odd { display: inline-block; background: var(--sun); border: .05em solid var(--ink); border-radius: .16em; padding: 0 .14em .04em; box-shadow: .06em .06em 0 var(--ink); transform: rotate(-3deg); }
.hero p.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 30em; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 7px 12px 7px 9px; border-radius: 99px; background: var(--surface); border: 2px solid var(--line); }
.facts svg { width: 18px; height: 18px; }

.stage { position: relative; height: 560px; }
.stage .bar { position: absolute; border: 2px solid var(--ink); border-radius: 40px; box-shadow: var(--shadow-lg); }
.stage .bar.a { left: 4%; top: 8%; width: 34%; height: 84%; background: var(--lilac); transform: rotate(-7deg); }
.stage .bar.b { right: 4%; top: 2%; width: 34%; height: 84%; background: var(--peach); transform: rotate(6deg); }
.phone { position: absolute; left: 50%; top: 50%; width: 262px; aspect-ratio: 9 / 16; transform: translate(-50%, -50%) rotate(-2deg); border: 3px solid var(--ink); border-radius: 34px; background: var(--ink); padding: 8px; box-shadow: var(--shadow-lg); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.phone:hover { transform: translate(-50%, -52%) rotate(0deg); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.phone .play-badge { position: absolute; right: -26px; bottom: 54px; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; color: #fff; }
.phone .play-badge svg { width: 30px; height: 30px; margin-left: 4px; }
.sticker { position: absolute; font: 800 13px/1 var(--display); padding: 10px 14px; border-radius: 12px; border: 2px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); white-space: nowrap; }
.sticker.s1 { left: 0; top: 18%; transform: rotate(-8deg); background: var(--sun); }
.sticker.s2 { right: 2%; bottom: 10%; transform: rotate(5deg); }
.stage-caption { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-weight: 700; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 430px; margin-top: 10px; }
  .phone { width: 210px; }
  .hero { padding-top: 18px; }
}
@media (max-width: 480px) { .stage { height: 400px; } .phone { width: 196px; } .sticker { font-size: 11px; } .section { padding: 40px 0; } .hero-cta .btn { flex: 1 1 auto; } }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section h2 { font: 800 clamp(26px, 3.4vw, 38px)/1.1 var(--display); letter-spacing: -.03em; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* category tiles */
.moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.mood { position: relative; text-align: left; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 18px; min-height: 0; display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s; overflow: hidden; }
.mood:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 6px 6px 0 var(--ink); }
.mood b { font: 800 22px/1.1 var(--display); letter-spacing: -.02em; }
.mood span { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.mood em { align-self: flex-start; font-style: normal; font: 800 12px/1 var(--display); background: var(--surface); border: 2px solid var(--ink); border-radius: 99px; padding: 6px 10px; margin-bottom: 22px; }
.mood .soon-tag { background: transparent; border-style: dashed; }
.mood.soon { background: transparent !important; border-style: dashed; box-shadow: none; cursor: default; }
.mood.soon:hover { transform: none; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; border: 2px solid var(--ink); background: var(--surface); font-weight: 800; font-size: 14px; cursor: pointer; }
.chip i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.search { position: relative; flex: 0 1 280px; }
.search input { width: 100%; height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: var(--surface); padding: 0 14px 0 40px; font-weight: 600; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
@media (max-width: 640px) { .search { flex: 1 1 100%; } }

/* game cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .14s, box-shadow .14s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.card .art { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-bottom: 2px solid var(--ink); }
.card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .art img { transform: scale(1.05); }
.card .art .go { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); box-shadow: var(--shadow); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: .18s; }
.card .art .go svg { width: 26px; height: 26px; margin-left: 3px; }
.card:hover .art .go, .card:focus-visible .art .go { opacity: 1; transform: scale(1); }
.card .badge { position: absolute; left: 12px; top: 12px; font: 800 11px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; background: var(--sun); border: 2px solid var(--ink); border-radius: 8px; padding: 6px 8px; }
.card .body { padding: 14px 16px 16px; }
.card h3 { font: 800 18px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 4px; }
.card p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 99px; border: 1.5px solid var(--ink); }
.card.placeholder { border-style: dashed; box-shadow: none; background: transparent; justify-content: center; align-items: center; text-align: center; padding: 28px 22px; min-height: 360px; color: var(--ink-2); }
.card.placeholder:hover { transform: none; }
.card.placeholder .mini-mark { width: 58px; height: 58px; border-radius: 18px; border: 2px dashed var(--ink); display: grid; place-items: center; margin: 0 auto 14px; }
.card.placeholder .mini-mark i { width: 18px; height: 22px; border-left: 6px solid var(--ink); border-right: 6px solid var(--ink); }
.card.placeholder h3 { font-size: 16px; }
.empty { padding: 40px; text-align: center; border: 2px dashed var(--ink); border-radius: var(--radius); font-weight: 700; color: var(--ink-2); }

/* ---------- play page ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; color: var(--muted); margin: 0 0 12px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: start; padding: 18px 0 40px; }
.player-col { display: flex; justify-content: center; align-items: flex-start; gap: 18px; position: sticky; top: 92px; }
.player { position: relative; flex: none; border: 2px solid var(--ink); border-radius: 26px; background: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
/* Portrait games: as tall as the screen allows (minus header and margins), never narrower than 300px. */
.player.portrait { height: calc(100vh - 124px); height: calc(100dvh - 124px); max-height: 1000px; min-height: 534px; aspect-ratio: 9 / 16; width: auto; max-width: 100%; }
.player.landscape { width: 100%; aspect-ratio: 16 / 9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player:fullscreen { border: 0; border-radius: 0; box-shadow: none; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }
.player .cover { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; }
.player .cover img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s, transform .5s; }
.player .cover:hover img { opacity: 1; transform: scale(1.03); }
.player .cover .big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; background: var(--accent-btn); color: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 26px; font: 800 20px/1 var(--display); white-space: nowrap; }
.player .cover .big-play svg { width: 24px; height: 24px; }
.player-actions { display: flex; flex-direction: column; gap: 12px; }
.player-actions .btn { justify-content: flex-start; }
.info h1 { font: 800 clamp(32px, 4vw, 46px)/1.05 var(--display); letter-spacing: -.035em; margin: 0 0 8px; }
.info .tagline { font-size: 19px; font-weight: 700; color: var(--ink-2); margin: 0 0 16px; }
.panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-top: 20px; }
.panel h2 { font: 800 16px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 12px; }
.panel p { margin: 0; color: var(--ink-2); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 12px 40px; color: var(--ink-2); counter-increment: s; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 27px; height: 27px; border-radius: 9px; background: var(--sun); border: 2px solid var(--ink); font: 800 13px/23px var(--display); text-align: center; color: var(--ink); }
.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.facts-list dt { color: var(--muted); font-weight: 700; }
.facts-list dd { margin: 0; font-weight: 700; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; }
.shots img { width: 110px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; border: 2px solid var(--ink); scroll-snap-align: start; flex: none; }
@media (max-width: 1100px) { .play-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 28px; } }
@media (max-width: 900px) {
  .play-layout { grid-template-columns: minmax(0, 1fr); }
  .player-col { flex-direction: column; align-items: center; position: static; }
  .player.portrait { height: auto; min-height: 0; width: min(100%, 400px); }
  .player-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* phone theatre (full-screen game on small screens) */
.theatre { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: none; flex-direction: column; }
.theatre.open { display: flex; }
.theatre-bar { height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 6px; padding-top: env(safe-area-inset-top); box-sizing: content-box; color: #fff; }
.theatre-bar button { background: transparent; border: 0; color: #fff; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; padding: 10px; cursor: pointer; }
.theatre-bar button svg { width: 20px; height: 20px; }
.theatre-bar .t-title { font: 800 14px/1 var(--display); opacity: .85; }
.theatre iframe { flex: 1; width: 100%; border: 0; background: #000; }
body.locked { overflow: hidden; }

/* ---------- text pages ---------- */
.prose { max-width: 720px; padding: 30px 0 70px; }
.prose h1 { font: 800 clamp(34px, 5vw, 54px)/1.05 var(--display); letter-spacing: -.035em; margin: 10px 0 20px; }
.prose h2 { font: 800 20px/1.2 var(--display); letter-spacing: -.02em; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose .note { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d9d4ef; margin-top: 30px; padding: 46px 0 34px; }
.site-footer .logo-word { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-row nav a { text-decoration: none; font-weight: 700; color: #fff; }
.footer-row nav a:hover { text-decoration: underline; }
.footer-note { margin-top: 26px; font-size: 14px; color: #a49fbf; }

.notfound { text-align: center; padding: 80px 0 100px; }
.notfound h1 { font: 800 clamp(40px, 7vw, 84px)/1 var(--display); letter-spacing: -.04em; margin: 0 0 14px; }
.notfound p { color: var(--ink-2); margin: 0 0 28px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
