/* Landing pages for the games (/arcade/games/). Copied to public/games/landing.css by scripts/build-landing.py.
   Her drawings are only scaled, turned and moved here: no filters, no recolouring. */
[hidden] { display: none !important; }
:root {
  --paper: #f6f0e4; --paper2: #efe5d2; --ink: #1d1a17; --accent: #c2412d; --soft: #e9dfcc; --card: #fffaf0; --gold: #e8b923;
  --muted: #5b524a; --r: 18px; --shadow: 6px 6px 0 var(--ink);
  --font: ui-rounded, "SF Pro Rounded", "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: clip; }
body {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(29, 26, 23, 0.07) 1px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55;
}
a { color: var(--ink); }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border: 2px solid var(--ink); border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- top crumbs ---------- */
.top { max-width: 1120px; margin: 0 auto; padding: 14px 16px 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; font-size: 14px; font-weight: 700; }
.crumbs li + li::before { content: "›"; margin: 0 8px; opacity: 0.5; }
.crumbs a { text-decoration: none; border-bottom: 2px solid rgba(29, 26, 23, 0.2); }
.crumbs a:hover { border-color: var(--accent); }
.crumbs [aria-current] { opacity: 0.65; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding: 34px 0 30px; }
.eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-size: clamp(42px, 6.4vw, 76px); line-height: 0.98; letter-spacing: -0.01em; }
.hook { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; margin: 14px 0 22px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.play {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 900; font-size: 24px; padding: 14px 30px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s; animation: nudge 2.8s ease-in-out 1.2s infinite;
}
.play:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.play:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.play.small { font-size: 19px; padding: 10px 22px; animation: none; }
@keyframes nudge { 0%, 86%, 100% { transform: none; } 90% { transform: scale(1.06) rotate(-2deg); } 94% { transform: scale(1.03) rotate(1.5deg); } }
.lp-like {
  display: inline-flex; align-items: center; gap: 6px; font: 800 18px/1 var(--font); color: var(--ink); background: var(--card);
  border: 3px solid var(--ink); border-radius: 999px; padding: 11px 18px 11px 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, background 0.2s, color 0.2s; -webkit-tap-highlight-color: transparent;
}
.lp-like:hover { transform: scale(1.05); }
.lp-like:active { transform: scale(0.94); }
.lp-like .h { color: var(--accent); font-size: 22px; display: inline-block; }
.lp-like[aria-pressed="true"] { background: var(--accent); color: #fff; }
.lp-like[aria-pressed="true"] .h { color: #fff; }
.lp-like.pop .h { animation: lpPop 0.55s cubic-bezier(0.2, 1.8, 0.4, 1); }
.lp-like .n { min-width: 1ch; display: inline-block; }
.lp-like .n.bump { animation: lpBump 0.4s; }
.lp-like .w { font-weight: 700; font-size: 15px; opacity: 0.8; }
.lp-like.shake { animation: lpShake 0.35s; }
@keyframes lpPop { 30% { transform: scale(1.9) rotate(-12deg); } }
@keyframes lpBump { from { transform: translateY(-70%); opacity: 0; } }
@keyframes lpShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.lp-burst { position: fixed; pointer-events: none; font-size: 16px; z-index: 50; animation: lpFly 0.8s ease-out forwards; }
@keyframes lpFly { from { transform: translate(-50%, -50%) scale(0.4); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); opacity: 0; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.chips li { font-size: 14px; font-weight: 700; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; }

.hero-art { position: relative; padding: 9% 7%; }
.frame { display: block; position: relative; z-index: 2; border: 4px solid var(--ink); border-radius: var(--r); overflow: hidden;
  box-shadow: 9px 9px 0 var(--ink); transform: rotate(-1.4deg); background: var(--soft); transition: transform 0.25s; }
.frame:hover { transform: rotate(0deg) scale(1.015); }
.frame img { display: block; width: 100%; height: auto; }
.float { position: absolute; z-index: 3; height: var(--h); width: auto; pointer-events: none;
  animation: bob var(--t, 3s) ease-in-out var(--dl, 0s) infinite alternate; transform-origin: 50% 90%; }
@keyframes bob { from { transform: translateY(0) rotate(var(--r, 0deg)); } to { transform: translateY(-14px) rotate(calc(var(--r, 0deg) * -0.6)); } }

/* ---------- sections ---------- */
section, article { margin: 36px 0; }
h2 { font-size: clamp(27px, 3.4vw, 36px); line-height: 1.1; margin: 0 0 16px; }
.shots h2, .art h2, .more h2 { text-align: left; }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shot-grid figure { margin: 0; background: var(--card); border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.shot-grid figure:nth-child(odd) { transform: rotate(-0.6deg); }
.shot-grid figure:nth-child(even) { transform: rotate(0.6deg); }
.shot-grid a { display: block; }
.shot-grid img { display: block; width: 100%; height: auto; border-bottom: 3px solid var(--ink); }
.shot-grid figcaption { padding: 10px 14px 12px; font-size: 15px; line-height: 1.4; }

.write { max-width: 760px; margin-left: auto; margin-right: auto; background: var(--card); border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: var(--shadow); padding: 28px 34px 30px; }
.write h2 { margin-top: 30px; }
.write h2:first-child { margin-top: 0; }
.write p { margin: 0 0 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 10px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 900; border: 2px solid var(--ink); }
.feat, .tips { padding-left: 0; list-style: none; margin: 0; }
.feat li, .tips li { position: relative; padding: 3px 0 8px 30px; }
.feat li::before { content: "✦"; position: absolute; left: 4px; top: 3px; color: var(--accent); }
.tips li::before { content: "♥"; position: absolute; left: 4px; top: 3px; color: var(--accent); }
.modes { margin: 0; }
.modes dt { font-weight: 900; margin-top: 10px; }
.modes dd { margin: 2px 0 6px; }
.faq h3 { font-size: 19px; margin: 18px 0 4px; }
.faq p { margin: 0; }
.again { text-align: center; margin: 26px 0 0 !important; }

/* ---------- her art ---------- */
.note { max-width: 760px; margin: -6px 0 18px; color: var(--muted); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.gallery li { background: var(--card); border: 3px solid var(--ink); border-radius: 16px; padding: 10px 10px 12px; display: flex; flex-direction: column;
  box-shadow: 4px 4px 0 var(--ink); transition: transform 0.15s; }
.gallery li:hover { transform: translateY(-3px) rotate(-1deg); }
.gallery figure { margin: 0; }
.thumb { height: 132px; display: grid; place-items: center; background: var(--paper); border-radius: 10px; overflow: hidden; }
.thumb img { max-height: 120px; max-width: 92%; width: auto; height: auto; object-fit: contain; transition: transform 0.25s; }
.gallery li:hover .thumb img { transform: scale(1.08) rotate(-3deg); }
.gallery figcaption { margin-top: 8px; font-size: 15px; line-height: 1.3; }
.gallery figcaption b { display: block; }
.gallery .role { display: block; font-size: 13px; color: var(--muted); }
.gallery .links { margin: auto 0 0; padding-top: 8px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; font-weight: 800; }
.gallery .links a { color: var(--accent); }
.gallery .links .buy { color: var(--ink); }
.gallery .soon { font-weight: 600; color: var(--muted); }
.shop-all { margin: 18px 0 0; font-weight: 800; }
.shop-all a { color: var(--accent); }

/* ---------- more games ---------- */
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.more-card { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 3px solid var(--ink);
  border-radius: 16px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s; }
.more-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.more-card img { display: block; width: 100%; height: auto; border-bottom: 3px solid var(--ink); }
.more-card b { font-size: 20px; margin: 10px 12px 2px; }
.more-card span { font-size: 14px; line-height: 1.35; margin: 0 12px 12px; }
.more-card .likes { position: absolute; top: 8px; right: 8px; font: 800 14px/1 var(--font); font-style: normal; background: var(--card); border: 2px solid var(--ink);
  border-radius: 999px; padding: 4px 9px; color: var(--accent); }
.more-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; font-weight: 800; }
.more-links a { color: var(--accent); }

/* ---------- footer ---------- */
.foot { max-width: 1120px; margin: 44px auto 0; padding: 22px 16px 40px; border-top: 3px dashed rgba(29, 26, 23, 0.25); font-size: 15px; }
.foot p { margin: 0 0 6px; }
.foot a { font-weight: 800; }
.foot .fine { font-size: 13px; opacity: 0.75; margin-top: 10px; }

/* ---------- hub ---------- */
.hub-hero { position: relative; padding: 30px 0 6px; }
.hub-hero h1 { max-width: 13em; position: relative; z-index: 2; }
.hub-hero .lead { font-size: 19px; max-width: min(40em, 60%); position: relative; z-index: 2; }
.hub-hero .like-hint { font-size: 15px; opacity: 0.85; position: relative; z-index: 2; }
.hub-hero .like-hint b { color: var(--accent); }
.hub-floats { position: absolute; right: 0; top: 0; width: 34%; height: 100%; }
.hub-floats .float { z-index: 1; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 18px; }
.hub-card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 3px solid var(--ink); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.12s, box-shadow 0.12s; }
.hub-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.hub-card img { display: block; width: 100%; height: auto; border-bottom: 3px solid var(--ink); }
.hub-card h2 { font-size: 26px; margin: 12px 16px 0; }
.hub-card .kind { margin: 0 16px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.hub-card p { margin: 4px 16px 12px; line-height: 1.4; }
.hub-card .go { margin: auto 16px 16px; align-self: flex-start; background: var(--accent); color: #fff; font-weight: 800; padding: 8px 18px; border-radius: 999px; }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 22px; }
  .hero-art { order: -1; padding: 12% 9% 10%; }
  .float { height: calc(var(--h) * 0.62); }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-floats { display: none; }
  .hub-hero .lead { max-width: 40em; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .shot-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shot-grid figure:nth-child(n) { transform: none; }
  .write { padding: 20px 18px 22px; border-radius: 18px; }
  .play { font-size: 21px; padding: 12px 24px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .thumb { height: 108px; }
  .thumb img { max-height: 96px; }
  .more-grid { gap: 12px; }
  .more-card b { font-size: 17px; margin: 8px 10px 2px; }
  .more-card span { font-size: 13px; margin: 0 10px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .float, .play, .lp-like.pop .h, .lp-like .n.bump, .lp-like.shake, .lp-burst { animation: none !important; }
  .frame, .gallery li, .thumb img { transition: none; }
}

/* ---------- blog ---------- */
.post { max-width: 760px; margin: 0 auto; padding: 8px 16px 0; }
.post h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; margin: 4px 0 14px; }
.post .lede { font-size: 20px; line-height: 1.5; }
.post-hero { margin: 18px 0 8px; }
.post-hero img { width: 100%; height: auto; display: block; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); background: var(--soft); }
.post-hero figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.post-hero figcaption a { font-weight: 800; }
.inspired { background: var(--card); border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 14px; }
.post .note { font-size: 15px; color: var(--muted); }
.post .note a { font-weight: 800; }
.post-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 26px 0 8px; }
.post-more { font-weight: 800; }
.pillar-card { display: block; margin: 18px 0 6px; padding: 16px 18px; background: var(--card); border: 3px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow); text-decoration: none; }
.pillar-card b { display: block; font-size: 20px; line-height: 1.25; margin-bottom: 6px; }
.pillar-card span { color: var(--muted); }
.story { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; }
.story a { font-weight: 800; }
