/* Tunakat's site. System fonts and our own files only: no page loads anything from anyone else
   (the privacy policies promise that), so there are no web fonts, analytics or embeds. */
:root {
  --bg: #f7f4ee;
  --ink: #1b1d22;
  --muted: #62605a;
  --accent: #23648a;
  --rule: #e2dcd0;
  --card: #fffdf9;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121418; --ink: #ebe7df; --muted: #a29e95; --accent: #82bad8; --rule: #2a2e36; --card: #1a1d23; }
}
/* A game's own pages wear the game's colours. Rising Lamp: its night sky and lantern amber. */
.rising-lamp { --bg: #f6f1e7; --ink: #1d1a15; --muted: #6a6153; --accent: #a5501b; --rule: #ddd3c2; --card: #fffaf1; }
@media (prefers-color-scheme: dark) {
  .rising-lamp { --bg: #11161f; --ink: #e8e1d3; --muted: #a39c8e; --accent: #e0915a; --rule: #2a3140; --card: #171d28; }
}
/* Fluffy Claw: the arcade's plum night and its candy-red cabinets. */
.fluffy-claw { --bg: #f8f1f3; --ink: #251a24; --muted: #6b5a66; --accent: #c23a52; --rule: #e6d6dc; --card: #fffafb; }
@media (prefers-color-scheme: dark) {
  .fluffy-claw { --bg: #1a1220; --ink: #efe4ea; --muted: #a8969f; --accent: #f2788c; --rule: #33263a; --card: #221829; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, .bar, footer { max-width: 46rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main { padding-top: 24px; padding-bottom: 48px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
.bar a { color: var(--ink); text-decoration: none; }
/* The logo: the compact lockup, its cream-lettered twin in dark mode, the round mark alone on
   narrow phones (the <picture> in each page's header picks one). */
.mark { display: block; flex: none; }
.mark img { display: block; height: 32px; width: auto; }
.bar nav { display: flex; gap: 16px; font-size: 0.95rem; }
.bar nav a { color: var(--muted); }
.bar nav a:hover { color: var(--ink); }

footer { border-top: 1px solid var(--rule); padding-top: 16px; padding-bottom: 40px; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }

h1 { font-size: 2.2rem; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin: 24px 0 4px; color: var(--accent); }
p, ul { margin: 0 0 12px; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
.kicker { margin: 0 0 4px; font-size: 0.95rem; }
.kicker a { text-decoration: none; }
.meta { color: var(--muted); font-size: 0.95rem; }
.lede { font-size: 1.2rem; }
.short { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 24px 0; }
.short h2 { border: 0; margin-top: 0; padding-top: 0; }

/* Game cards on the home page */
.games { display: grid; gap: 20px; margin: 24px 0 8px; padding: 0; list-style: none; }
.game { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.game > a { display: block; color: inherit; text-decoration: none; }
.game .body { padding: 14px 18px 18px; }
.game h2 { border: 0; margin: 0 0 2px; padding: 0; font-size: 1.3rem; }
.game p { margin: 0; color: var(--muted); }
.game .status { margin-top: 8px; font-size: 0.9rem; color: var(--accent); }

/* A stage banner: the game's art in layers, the characters breathing on their idle strips. */
.banner { position: relative; aspect-ratio: 1152 / 760; overflow: hidden; background: #0c0f15; }
.banner img, .banner .sprite { position: absolute; image-rendering: pixelated; }
.banner > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sprite { aspect-ratio: 1; background-repeat: no-repeat; background-size: 1600% 100%;
  animation: idle 2s steps(16, jump-none) infinite; }
@keyframes idle { from { background-position: 0 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .sprite { animation: none; } }
.rl-mage { left: 13%; top: 24.5%; width: 33.3%; background-image: url(/games/rising-lamp/mage.webp); }
.rl-crab { left: 48.6%; top: 2.6%; width: 48.6%; background-image: url(/games/rising-lamp/crab.webp);
  animation-duration: 2.3s; }
/* A banner that is one picture (a 3D game's screenshot), drawn smooth rather than as pixel art. */
.banner.shot > img { image-rendering: auto; }
.hero { border-radius: 14px; margin: 8px 0 24px; }

/* A game's trailer: the phone-shaped video beside the how-to-play text, above it on phones.
   Nothing plays until someone presses play (preload="none"), so the page stays light. */
.watch { display: grid; gap: 16px 28px; margin: 32px 0 8px; padding-top: 24px; border-top: 1px solid var(--rule); }
.watch video { display: block; width: min(100%, 300px); height: auto; aspect-ratio: 9 / 16; margin: 0 auto;
  border-radius: 14px; background: #0c0f15; box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); }
.watch h2 { border: 0; margin: 0 0 2px; padding: 0; }
@media (min-width: 640px) {
  .watch { grid-template-columns: 260px 1fr; align-items: center; }
  .watch video { width: 100%; }
}

/* Store buttons: Apple's and Google's own badges (public/badges), kept at their artwork's shape and at
   least 40 px tall (Apple's onscreen minimum; Google's is 28 px). Black in both themes: each badge has its own grey rim. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 8px; }
.stores a { display: block; line-height: 0; border-radius: 9px; }
.stores a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stores img { display: block; height: 48px; width: auto; }
.game .stores { margin: 0; padding: 0 18px 18px; gap: 10px; }
.game .stores img { height: 40px; }
footer .legal { font-size: 0.8rem; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.pill { display: inline-block; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px;
  font-size: 0.95rem; color: var(--muted); background: var(--card); }

/* A game's screenshots: three phone screens side by side, small enough to sit in a row on phones. */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 8px; padding: 0;
  list-style: none; }
.shots li, .shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 12px;
  background: #0c0f15; box-shadow: 0 6px 20px rgb(0 0 0 / 0.2); }
.shots figcaption { margin-top: 6px; font-size: 0.85rem; color: var(--muted); text-align: center; line-height: 1.35; }
@media (min-width: 640px) { .shots { gap: 20px; } }

/* Fluffy Claw's page. Its screenshots are iPhone-shaped (540x1174) and six of them, so on phones they
   become a row you swipe, the next one peeking in at the edge; from 640 px they sit in two rows of three. */
.fluffy-claw .shots img { aspect-ratio: 540 / 1174; }
.fluffy-claw .shots.reel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-left: -16px; margin-right: -16px; padding: 10px 16px 20px; scroll-padding: 0 16px; }
.fluffy-claw .shots.reel li { scroll-snap-align: start; }
.fluffy-claw .shots.reel:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (min-width: 640px) {
  .fluffy-claw .shots.reel { grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; grid-auto-columns: auto;
    overflow: visible; margin-left: 0; margin-right: 0; padding: 0; gap: 24px 20px; }
}
/* The six cabinets in a row (the hub captured wide), then a card for each in its cabinet's colour. */
.fluffy-claw .row { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 441; margin: 16px 0 4px;
  border-radius: 14px; background: #e9bcc3; }
.fluffy-claw .machines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 8px; padding: 0;
  list-style: none; }
.fluffy-claw .machines li { margin: 0; padding: 12px 14px 14px; background: var(--card); border: 1px solid var(--rule);
  border-top: 5px solid var(--cab); border-radius: 12px; }
.fluffy-claw .machines h3 { margin: 0 0 2px; color: var(--ink); font-size: 1.02rem; }
.fluffy-claw .machines p { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.fluffy-claw .machines .meta { margin-top: 6px; font-size: 0.85rem; }
.fluffy-claw .m-tuna { --cab: #d93a4c; } .fluffy-claw .m-ocean { --cab: #2e8fdc; } .fluffy-claw .m-bakery { --cab: #f29bbb; }
.fluffy-claw .m-forest { --cab: #4ba84c; } .fluffy-claw .m-space { --cab: #7244d0; } .fluffy-claw .m-dino { --cab: #f28c1d; }
@media (min-width: 640px) { .fluffy-claw .machines { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
/* What the game is and isn't: short facts in a grid. */
.fluffy-claw .facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0 8px; padding: 0; list-style: none; }
.fluffy-claw .facts li { margin: 0; padding: 10px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
  font-size: 0.95rem; line-height: 1.45; color: var(--muted); }
.fluffy-claw .facts b { display: block; color: var(--ink); }
@media (min-width: 640px) { .fluffy-claw .facts { grid-template-columns: repeat(2, 1fr); } }
/* The closing call: the store buttons again, on a card. */
.fluffy-claw .get { margin: 40px 0 8px; padding: 22px 10px 20px; text-align: center; background: var(--card);
  border: 1px solid var(--rule); border-radius: 14px; }
.fluffy-claw .get h2 { border: 0; margin: 0 0 2px; padding: 0; font-size: 1.4rem; }
.fluffy-claw .get p { margin: 0; color: var(--muted); }
.fluffy-claw .get .stores { justify-content: center; margin: 16px 0 0; }
