/* Creaky Joystick Games: alternating cream and charcoal bands, chunky soft-serif headlines,
   tilted screenshots, red "sound mark" flourishes beside buttons. */
:root {
  --cream: #faf5ea;
  --cream-2: #f1e8d4;
  --night: #1c1b1e;
  --night-2: #252327;
  --ink: #161416;
  --red: #e6141c;
  --red-deep: #b80d14;
  --white: #fffdf8;
  --muted: #5b524c;
  --muted-dark: #cfc6ba;
  --line: rgba(22, 20, 22, .14);
  --display: "Fraunces", "Cooper Black", "Georgia", serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Comic Sans MS", cursive;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "opsz" 144; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px dashed var(--red); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; display: inline-block; }
.eyebrow.red { color: var(--red); padding-bottom: 8px; border-bottom: 2px solid var(--red); }

/* buttons with red sound marks */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 800; font-size: 1.15rem; text-decoration: none; border: 0; cursor: pointer;
  background: var(--red); color: var(--white); padding: 14px 28px; border-radius: 999px;
  box-shadow: 0 6px 0 var(--red-deep); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-deep); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-deep); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(4px); }
.marks { position: relative; }
.marks::after {
  content: ""; position: absolute; right: -30px; top: 50%; width: 20px; height: 30px; transform: translateY(-50%);
  background:
    linear-gradient(var(--red) 0 0) 0 0/14px 3px no-repeat,
    linear-gradient(var(--red) 0 0) 2px 50%/18px 3px no-repeat,
    linear-gradient(var(--red) 0 0) 0 100%/14px 3px no-repeat;
}

/* sparkles */
.spark { position: absolute; width: 26px; height: 26px; pointer-events: none; animation: twinkle 2.8s ease-in-out infinite; }
.spark { fill: var(--white); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.on-dark .spark { fill: var(--white); stroke: none; }
.spark.ink { fill: none; stroke: var(--ink); }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.72) rotate(18deg); opacity: .7; } }

/* ---------- nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--cream); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--cream); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 12px; }
.brand img { width: clamp(170px, 24vw, 260px); height: auto; display: block; }
.nav-r { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(10px, 2.2vw, 28px); }
.nav ul a { text-decoration: none; font-weight: 700; font-size: 1rem; padding-block: 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav ul a:hover, .nav ul a[aria-current="page"] { border-color: var(--red); }
.nav .btn { font-size: 1rem; padding: 10px 20px; box-shadow: 0 4px 0 var(--red-deep); }

/* ---------- dark bands ---------- */
.dark {
  background: var(--night); color: var(--white); position: relative; overflow: hidden;
  background-image:
    radial-gradient(60% 50% at 10% 110%, var(--night-2), transparent 70%),
    radial-gradient(40% 40% at 90% -10%, var(--night-2), transparent 70%);
}

/* ---------- hero ---------- */
.hero .wrap { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); position: relative; }
.hero .wrap > * { min-width: 0; }
.hero .eyebrow { color: var(--muted-dark); }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 4.9rem); margin-top: 18px; color: var(--white); }
.hero .lede { margin-top: 18px; font-size: 1.2rem; color: var(--muted-dark); max-width: 34ch; }
.hero .btn { margin-top: 30px; }
.shot { position: relative; transform: rotate(-2.2deg); }
.shot .frame { background: var(--white); padding: 10px; border-radius: 18px; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.shot .tag {
  position: absolute; top: -18px; left: 16px; background: var(--red); color: var(--white); font-weight: 800; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 8px; transform: rotate(-4deg); box-shadow: 0 4px 0 var(--red-deep);
}
.shot .note { position: absolute; right: 4px; bottom: -64px; font-family: var(--hand); font-size: 1.7rem; line-height: 1; color: var(--white); transform: rotate(-8deg); display: flex; align-items: flex-end; gap: 8px; }
.shot .note svg { width: 46px; height: 40px; flex: none; }
.shot .note path { fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Swap Swap Keep ---------- */
.ssk { padding-block: clamp(56px, 8vw, 104px); }
.ssk .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; }
.ssk .wrap > * { min-width: 0; }
.ssk h2 { font-size: clamp(3rem, 7.4vw, 5.2rem); color: var(--red); margin-top: 22px; }
.ssk h3 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-top: 10px; }
.ssk .lede { margin-top: 16px; font-size: 1.15rem; max-width: 44ch; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chips span { border: 2px solid var(--ink); border-radius: 999px; padding: 6px 18px; font-weight: 700; font-size: .95rem; background: var(--white); }
.ssk .btn { margin-top: 30px; }

.album { background: var(--white); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(20px, 3vw, 32px); }
.album-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.album-h h4 { font-size: 1.5rem; }
.album-h span { font-family: var(--hand); font-size: 1.35rem; color: var(--red); }
.fan { position: relative; height: clamp(250px, 29vw, 300px); margin-top: 6px; }
.card {
  position: absolute; left: 50%; bottom: 14%; width: clamp(108px, 12vw, 134px); aspect-ratio: 5 / 7; max-width: 100%;
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); background: var(--white);
  transform-origin: 50% 110%; transition: transform .35s cubic-bezier(.3,1.5,.5,1); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
}
.card .top { font-weight: 800; font-size: .66rem; letter-spacing: .12em; padding: 6px; background: var(--ink); color: var(--white); text-align: center; }
.card .art { margin: 7px; border: 2px solid var(--ink); border-radius: 6px; }
.card .stamp { font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100; text-align: center; padding: 2px 4px 8px; font-size: 1.15rem; }
.card.c1 { transform: translateX(-50%) rotate(-17deg) translateX(-64%); }
.card.c2 { transform: translateX(-50%) rotate(-1deg) translateY(-6%); }
.card.c3 { transform: translateX(-50%) rotate(15deg) translateX(64%); }
.fan:hover .card.c1 { transform: translateX(-50%) rotate(-23deg) translateX(-76%); }
.fan:hover .card.c2 { transform: translateX(-50%) rotate(0) translateY(-12%); }
.fan:hover .card.c3 { transform: translateX(-50%) rotate(21deg) translateX(76%) translateY(-6%); }
.c1 .art { background: linear-gradient(var(--red) 0 0) 50% 34%/36% 28% no-repeat, linear-gradient(var(--ink) 0 0) 50% 70%/52% 22% no-repeat, repeating-linear-gradient(0deg, #ffe7a8 0 6px, #ffd970 6px 12px); }
.c2 .art { background: radial-gradient(circle at 50% 46%, var(--white) 0 16%, var(--ink) 16.5% 19%, transparent 19.5%), linear-gradient(var(--white) 0 0) 50% 0/4px 100% no-repeat, repeating-linear-gradient(90deg, #3c9a5f 0 10px, #33874f 10px 20px); }
.c3 .art { background: radial-gradient(circle at 50% 48%, #ff8fb1 0 22%, var(--ink) 22.5% 26%, transparent 26.5%), conic-gradient(from 0deg at 50% 48%, #ffd166 0 12.5%, #fff3c4 0 25%, #ffd166 0 37.5%, #fff3c4 0 50%, #ffd166 0 62.5%, #fff3c4 0 75%, #ffd166 0 87.5%, #fff3c4 0); }
.c3 .stamp { color: var(--red); }
.collect { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.collect li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.collect .ico { width: 30px; height: 40px; border: 2.5px solid var(--ink); border-radius: 5px; box-shadow: 2px 2px 0 var(--ink); }
.collect b { font-weight: 800; }
.collect span { color: var(--muted); display: block; font-size: .97rem; line-height: 1.45; }
.ico.a { background: repeating-linear-gradient(45deg, var(--red) 0 5px, var(--white) 5px 10px); }
.ico.b { background: linear-gradient(var(--ink) 0 0) center/100% 6px no-repeat, #2f7d4a; }
.ico.c { background: radial-gradient(circle at 50% 40%, #ffd166 0 7px, transparent 8px), #ff8fb1; }

/* game two strip */
.next { padding-bottom: clamp(56px, 8vw, 96px); }
.next .box { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 36px); align-items: center; border: 3px dashed rgba(22,20,22,.35); border-radius: 24px; padding: clamp(20px, 3vw, 30px); }
.next .box > * { min-width: 0; }
.next .q { width: 76px; aspect-ratio: 5 / 7; border: 3px dashed var(--red); border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 2.6rem; color: var(--red); transform: rotate(-5deg); }
.next h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.next p { color: var(--muted); margin-top: 4px; }
.next .hand { font-family: var(--hand); font-size: 1.5rem; color: var(--red); transform: rotate(-4deg); white-space: nowrap; }

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 96px); position: relative; }
.about .wrap > * { min-width: 0; }
.about img { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; transform-origin: 30% 95%; }
.about figure { margin: 0; }
.about figure:hover img { animation: creak .9s ease-in-out; }
@keyframes creak { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-3deg); } 45% { transform: rotate(2deg); } 70% { transform: rotate(-1deg); } }
.about h2 { font-size: clamp(2.6rem, 5.8vw, 4.2rem); color: var(--white); }
.about p { color: var(--muted-dark); margin-top: 18px; font-size: 1.15rem; max-width: 46ch; }
.textlink { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--red); padding-bottom: 3px; }
.textlink .arr { color: var(--red); transition: transform .15s; }
.textlink:hover .arr { transform: translateX(4px); }
.dark .textlink { color: var(--white); }

/* ---------- house rules ---------- */
.rules-s { padding-block: clamp(56px, 8vw, 96px); }
.rules-s h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 18px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.rule { background: var(--white); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 24px; min-width: 0; }
.rule:nth-child(2) { transform: rotate(.7deg); }
.rule:nth-child(3) { transform: rotate(-.6deg); }
.rule .n { font-family: var(--hand); font-size: 1.5rem; color: var(--red); line-height: 1; }
.rule h3 { font-size: 1.5rem; margin-top: 10px; }
.rule p { margin-top: 10px; color: var(--muted); }

/* ---------- devlog cards (homepage + list) ---------- */
.latest { padding-bottom: clamp(56px, 8vw, 96px); }
.latest-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.latest-h h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 18px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; min-width: 0; }
.post-card:hover { transform: translate(-2px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.post-card .cover { aspect-ratio: 16 / 10; background: var(--night) center/cover no-repeat; border-bottom: 3px solid var(--ink); display: grid; place-items: center; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
.post-card .cover.blank img { width: 44%; height: auto; object-fit: contain; }
.post-card .body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.post-card .meta { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.post-card h3 { font-size: 1.5rem; }
.post-card p { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.empty { margin-top: 30px; border: 3px dashed rgba(22,20,22,.3); border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.empty img { width: 120px; height: auto; }
.empty h3 { font-size: 1.6rem; }
.empty p { color: var(--muted); margin-top: 6px; }

/* ---------- devlog list page ---------- */
.page-head .wrap { padding-block: clamp(44px, 7vw, 80px); position: relative; }
.page-head h1 { font-size: clamp(3rem, 8vw, 5.4rem); color: var(--white); margin-top: 18px; }
.page-head p { color: var(--muted-dark); font-size: 1.2rem; margin-top: 14px; max-width: 46ch; }
.page-head .eyebrow { color: var(--muted-dark); }
.list { padding-block: clamp(44px, 7vw, 80px); }
.list .posts { margin-top: 0; }

/* ---------- single post ---------- */
.post-head .wrap { max-width: 860px; padding-block: clamp(44px, 7vw, 80px) clamp(36px, 5vw, 56px); }
.post-head .back { color: var(--muted-dark); text-decoration: none; font-weight: 700; display: inline-flex; gap: 8px; }
.post-head .back:hover { color: var(--white); }
.post-head .meta { margin-top: 26px; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ff6b70; }
.post-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--white); margin-top: 12px; }
.post-head .summary { color: var(--muted-dark); font-size: 1.2rem; margin-top: 16px; }
.post-cover .wrap { max-width: 1000px; margin-top: clamp(-24px, -2vw, -12px); }
.post-cover img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); background: var(--white); }
.prose { max-width: 720px; margin: 0 auto; padding-block: clamp(36px, 6vw, 64px); font-size: 1.14rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.4em; }
.prose a { color: var(--red-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { margin-left: 0; margin-right: 0; border-left: 5px solid var(--red); padding: 4px 0 4px 20px; font-family: var(--hand); font-size: 1.6rem; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose img { display: block; height: auto; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); margin-inline: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { text-align: center; font-family: var(--hand); font-size: 1.35rem; color: var(--muted); margin-top: 12px; }
.prose hr { border: 0; text-align: center; margin-block: 2em; }
.prose hr::before { content: "✦  ✦  ✦"; color: var(--red); letter-spacing: .4em; }
.post-foot { border-top: 1.5px solid var(--line); max-width: 720px; margin: 0 auto; padding-block: 28px clamp(56px, 8vw, 96px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.post-foot .sign { font-family: var(--hand); font-size: 1.5rem; color: var(--red); }

/* ---------- contact strip ---------- */
.follow { padding-bottom: clamp(56px, 8vw, 96px); }
.follow .box { background: var(--red); color: var(--white); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.follow .box > * { min-width: 0; }
.follow h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); }
.follow p { margin-top: 14px; max-width: 46ch; }
.soon { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.soon li > * { display: flex; justify-content: space-between; gap: 12px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-weight: 800; text-decoration: none; }
.soon a:hover { background: var(--cream); }
.soon li > * { flex-wrap: wrap; }
.soon .addr { color: var(--red-deep); font-weight: 700; overflow-wrap: anywhere; }
.soon li span span, .soon .tag { font-family: var(--hand); font-weight: 600; font-size: 1.25rem; color: var(--red); line-height: 1.2; }

/* ---------- footer ---------- */
footer .wrap { border-top: 1.5px solid rgba(22,20,22,.2); display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; padding-block: 28px 36px; }
footer .logo { width: 200px; height: auto; display: block; }
footer .sep { width: 1.5px; align-self: stretch; background: rgba(22,20,22,.25); }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
footer ul a { text-decoration: none; font-weight: 700; font-size: .95rem; }
footer ul a:hover { color: var(--red); }
footer .tagline { margin-left: auto; color: var(--muted); font-size: .9rem; max-width: 26ch; }
footer .copy { width: 100%; color: var(--muted); font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .ssk .wrap, .about .wrap, .follow .box { grid-template-columns: 1fr; }
  .shot { margin-bottom: 56px; }
  .rules, .posts { grid-template-columns: 1fr; }
  .rule:nth-child(n) { transform: none; }
  .about figure { max-width: 320px; margin: 0 auto; }
}
@media (min-width: 620px) and (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .nav .btn, .nav .hide-sm { display: none; }
  .nav ul { gap: 12px; }
  .nav ul a { font-size: .92rem; }
  .brand img { width: 128px; }
  .next .box { grid-template-columns: auto 1fr; }
  .next .hand { grid-column: 1 / -1; justify-self: end; }
  footer .sep { display: none; }
  footer .tagline { margin-left: 0; }
  .empty { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
