/* raddgames.com
   One studio shell (cream paper, ink outlines, things that sit on a lip and squish when pressed)
   and four "worlds", one per game, each in that game's own colours and type.
   Fonts are served from this site: no third-party requests. */

@font-face { font-family: "Bagel Fat One"; src: url("fonts/bagel-fat-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("fonts/lilita-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("fonts/albert-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --cream: #FFF6E3; --cream-2: #FFEBC4; --ink: #1C1A33; --ink-2: #4B4868; --white: #FFFFFF;
  --sun: #FFC93C; --tomato: #FF5B4F; --mint: #2FD6A0; --sky: #45B6FF; --grape: #8F6BFF; --gum: #FF6FA8;
  --font-display: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px; --gutter: clamp(16px, 4vw, 32px);

  /* The world a page (or a card) lives in. The studio's own world is the default. */
  --w-bg: var(--cream); --w-fg: var(--ink); --w-sub: var(--ink-2);
  --w-title: var(--font-display); --w-title-weight: 400; --w-title-style: normal; --w-title-spacing: 0;
  --w-body: var(--font-body);
  --w-card: var(--white); --w-card-fg: var(--ink); --w-card-sub: var(--ink-2);
  --w-line: var(--ink); --w-line-w: 3px; --w-lip: var(--ink); --w-lip-h: 6px; --w-radius: 24px;
  --w-link: #5B3FD9;
  --w-btn: var(--sun); --w-btn-fg: var(--ink); --w-btn-lip: var(--ink); --w-btn-line: var(--ink); --w-btn-radius: 18px;
  --w-chip: var(--ink); --w-chip-fg: var(--cream);
  --w-soft: rgba(28, 26, 51, .07);
  --w-focus: #5B3FD9;
}

/* ---------- worlds ---------- */
[data-world="inkbloom"] {
  --w-bg: #F6F3EC; --w-fg: #26241F; --w-sub: #6E6A60;
  --w-title: "Fraunces", Georgia, "Times New Roman", serif; --w-title-weight: 500; --w-title-style: italic;
  --w-body: "Albert Sans", system-ui, sans-serif;
  --w-card: #FDFBF6; --w-card-fg: #26241F; --w-card-sub: #6E6A60;
  --w-line: #DDD8CC; --w-line-w: 1px; --w-lip: #DDD8CC; --w-lip-h: 3px; --w-radius: 16px;
  --w-link: #597452;
  --w-btn: #26241F; --w-btn-fg: #FDFBF6; --w-btn-lip: #000000; --w-btn-line: #26241F; --w-btn-radius: 12px;
  --w-chip: #E4EADF; --w-chip-fg: #4C6546;
  --w-soft: rgba(124, 152, 115, .14); --w-focus: #5E7A56;
}
[data-world="lumiwire"] {
  --w-bg: #1C1F26; --w-fg: #F6F7F9; --w-sub: #BFC5D1;
  --w-title: "Fredoka", system-ui, sans-serif; --w-title-weight: 600;
  --w-body: "Fredoka", system-ui, sans-serif;
  --w-card: #2A2E38; --w-card-fg: #F6F7F9; --w-card-sub: #BFC5D1;
  --w-line: #2A2E38; --w-line-w: 0px; --w-lip: #12141A; --w-lip-h: 5px; --w-radius: 24px;
  --w-link: #FFD45E;
  --w-btn: #FFC93C; --w-btn-fg: #2B2000; --w-btn-lip: #C99512; --w-btn-line: #FFC93C; --w-btn-radius: 20px;
  --w-chip: rgba(255, 201, 60, .18); --w-chip-fg: #FFD45E;
  --w-soft: rgba(255, 255, 255, .07); --w-focus: #FFD45E;
}
[data-world="shapelings"] {
  --w-bg: #FFF3F6; --w-fg: #2A1B4A; --w-sub: #6A5B86;
  --w-title: "Nunito", system-ui, sans-serif; --w-title-weight: 900;
  --w-body: "Nunito", system-ui, sans-serif;
  --w-card: #FFFFFF; --w-card-fg: #2A1B4A; --w-card-sub: #6A5B86;
  --w-line: #F6D0DD; --w-line-w: 2px; --w-lip: #F3C4D4; --w-lip-h: 6px; --w-radius: 26px;
  --w-link: #C2185B;
  --w-btn: #D81B60; --w-btn-fg: #FFFFFF; --w-btn-lip: #A3124A; --w-btn-line: #D81B60; --w-btn-radius: 18px;
  --w-chip: #C9F5E6; --w-chip-fg: #0B5A43;
  --w-soft: rgba(216, 27, 96, .08); --w-focus: #C2185B;
}
[data-world="loopo"] {
  --w-bg: #2C8EEC; --w-fg: #FFFFFF; --w-sub: #E3F1FF;
  --w-title: "Lilita One", "Fredoka", system-ui, sans-serif; --w-title-weight: 400; --w-title-spacing: .01em;
  --w-body: "Fredoka", system-ui, sans-serif;
  --w-card: #FFFFFF; --w-card-fg: #172268; --w-card-sub: #44508F;
  --w-line: #8FD0FF; --w-line-w: 3px; --w-lip: #172268; --w-lip-h: 6px; --w-radius: 26px;
  --w-link: #1C56C8;
  --w-btn: #FFD43A; --w-btn-fg: #3A2A00; --w-btn-lip: #E69A00; --w-btn-line: #FFE680; --w-btn-radius: 22px;
  --w-chip: #F43D77; --w-chip-fg: #FFFFFF;
  --w-soft: rgba(255, 255, 255, .16); --w-focus: #FFE680;
}
.world { background: var(--w-bg); color: var(--w-fg); font-family: var(--w-body); }
.world[data-world="loopo"] { background: linear-gradient(180deg, #3FC0F8 0, #2C8EEC 70px, #2565D6 210px, #2458CC 520px, #213A98 100%) #2458CC; }
.world[data-world="loopo"] .game-hero, .world-card[data-world="loopo"] .wc-copy { text-shadow: 0 1px 0 rgba(23, 34, 104, .35); }
.world[data-world="loopo"] .game-hero .btn, .world[data-world="loopo"] .game-hero .chip, .world-card[data-world="loopo"] .btn, .world-card[data-world="loopo"] .chip { text-shadow: none; }
.world[data-world="shapelings"] { background:
  radial-gradient(60vw 40vw at 105% -5%, #FFE3EB 0 60%, transparent 61%),
  radial-gradient(50vw 34vw at -10% 60%, #FFE3EB 0 60%, transparent 61%), #FFF3F6; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--ink); font: 500 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--w-link); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-style: wavy; }
:focus-visible { outline: 3px solid var(--w-focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.title { font-family: var(--w-title); font-weight: var(--w-title-weight); font-style: var(--w-title-style); letter-spacing: var(--w-title-spacing); line-height: 1.05; }
h1.title { font-size: clamp(38px, 7vw, 68px); }
h2.title { font-size: clamp(28px, 4.6vw, 44px); }
h3.title { font-size: clamp(21px, 2.6vw, 26px); line-height: 1.15; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--w-sub); max-width: 56ch; }
.eyebrow { font: 800 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- buttons, chips, cards: everything sits on a lip ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px;
  background: var(--w-btn); color: var(--w-btn-fg); border: 3px solid var(--w-btn-line); border-radius: var(--w-btn-radius);
  box-shadow: 0 5px 0 var(--w-btn-lip); font: 700 17px/1.1 var(--w-body); text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--w-btn-lip); text-decoration: none; }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--w-btn-lip); }
.btn.quiet { background: var(--w-card); color: var(--w-card-fg); border-color: var(--w-line); box-shadow: 0 5px 0 var(--w-lip); }
.btn.quiet:hover { box-shadow: 0 3px 0 var(--w-lip); }
.btn.quiet:active { box-shadow: 0 0 0 var(--w-lip); }
.btn.small { min-height: 42px; padding: 8px 16px; font-size: 15px; }
[data-world="lumiwire"] .btn.quiet, [data-world="inkbloom"] .btn.quiet { border-width: 2px; border-color: var(--w-lip); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--w-chip); color: var(--w-chip-fg); font: 800 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 2.4s ease-in-out infinite; }
.card { background: var(--w-card); color: var(--w-card-fg); border: var(--w-line-w) solid var(--w-line); border-radius: var(--w-radius); box-shadow: 0 var(--w-lip-h) 0 var(--w-lip); padding: clamp(18px, 3vw, 28px); }
.card p { color: var(--w-card-sub); }
.card a:not(.btn) { color: var(--w-link); }

/* store buttons: honest "coming soon" until a game is live */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; min-height: 58px; padding: 9px 18px 9px 14px;
  border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; border: 2px solid var(--ink); box-shadow: 0 5px 0 rgba(0, 0, 0, .35); font-family: var(--font-body); }
.store svg { width: 26px; height: 26px; grid-row: span 2; }
.store small { font: 600 11px/1.1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.store b { font: 700 17px/1.1 var(--font-body); }
.store.soon { background: transparent; color: var(--w-fg); border: 2px dashed currentColor; box-shadow: none; opacity: .9; }
a.store:hover { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); text-decoration: none; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; padding: 12px 0 0; pointer-events: none; }
.site-head .bar { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--cream); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); padding: 8px 10px 8px 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 400 24px/1 var(--font-display); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand .raddy { width: 40px; height: 40px; flex: none; }
.brand small { font: 800 11px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); display: block; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { color: var(--ink); text-decoration: none; font: 700 15px/1 var(--font-body); padding: 11px 12px; border-radius: 12px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.site-nav a.cta { background: var(--sun); border: 2px solid var(--ink); margin-left: 6px; }
.site-nav a.cta:hover { background: var(--ink); }
@media (max-width: 560px) { .brand small { display: none; } .site-nav a { padding: 10px 9px; font-size: 14px; } .site-nav a.cta { display: none; } .brand { font-size: 21px; } }

/* ---------- Raddy, the mascot (eyes follow the pointer: site.js) ---------- */
.raddy .pupil { transition: transform .12s ease-out; }
.raddy .lid { transform-origin: center; transform-box: fill-box; transform: scaleY(0); animation: wink 6s infinite; }
@keyframes wink { 0%, 94%, 100% { transform: scaleY(0); } 96%, 98% { transform: scaleY(1); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: clip; padding: clamp(36px, 7vw, 84px) 0 clamp(44px, 7vw, 90px); background-image: radial-gradient(rgba(28, 26, 51, .13) 1.4px, transparent 1.6px); background-size: 22px 22px; }
.hero::before { content: ""; position: absolute; right: -14vw; top: -22vw; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: var(--sun); z-index: 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero h1 { font: 400 clamp(44px, 8.4vw, 92px)/.98 var(--font-display); letter-spacing: -.005em; }
.hero h1 .hl { display: inline-block; background: var(--ink); color: var(--cream); padding: 0 .16em .04em; border-radius: .18em; transform: rotate(-2deg); }
.hero .lede { margin-top: 22px; color: var(--ink); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.pile { position: relative; aspect-ratio: 1 / 1; max-width: 480px; width: 100%; justify-self: center; }
.sticker { position: absolute; display: block; border-radius: 24%; background: #fff; border: 5px solid #fff; outline: 3px solid var(--ink); box-shadow: 0 9px 0 var(--ink); overflow: hidden; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.sticker img { width: 100%; height: 100%; border-radius: 20%; }
.sticker:hover { transform: rotate(0deg) scale(1.07) !important; z-index: 5; }
.sticker.s1 { width: 44%; left: 4%; top: 6%; transform: rotate(-9deg); animation: bob 5.5s ease-in-out infinite; }
.sticker.s2 { width: 40%; right: 2%; top: 14%; transform: rotate(8deg); animation: bob 6.5s ease-in-out -2s infinite; }
.sticker.s3 { width: 42%; left: 12%; bottom: 2%; transform: rotate(6deg); animation: bob 6s ease-in-out -1s infinite; }
.sticker.s4 { width: 38%; right: 8%; bottom: 8%; transform: rotate(-7deg); animation: bob 7s ease-in-out -3s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.pile .raddy { position: absolute; width: 27%; left: 37%; top: 37%; z-index: 4; filter: drop-shadow(0 7px 0 var(--ink)); animation: bob 4.6s ease-in-out -1.5s infinite; }
.doodle { position: absolute; z-index: 0; pointer-events: none; }
.doodle.d1 { left: 3%; top: 10%; width: 54px; transform: rotate(-12deg); }
.doodle.d2 { left: 46%; bottom: 6%; width: 70px; }
.doodle.d3 { right: 4%; bottom: 12%; width: 46px; transform: rotate(18deg); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .pile { max-width: 340px; order: -1; } .hero::before { right: -30vw; top: -30vw; width: 90vw; height: 90vw; } }

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: var(--cream); transform: rotate(-1.2deg) scale(1.03); margin: -8px 0 0; padding: 14px 0; overflow: hidden; border-block: 3px solid var(--ink); position: relative; z-index: 2; }
.ticker .track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ticker span { font: 400 clamp(18px, 2.6vw, 26px)/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; padding: 0 18px; white-space: nowrap; }
.ticker span::after { content: "★"; color: var(--sun); margin-left: 36px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- home: the shelf ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 44px); max-width: 720px; }
.shelf { display: grid; gap: clamp(26px, 4vw, 44px); }
.world-card { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(18px, 3vw, 40px); align-items: center; overflow: hidden;
  background: var(--w-bg); color: var(--w-fg); font-family: var(--w-body); border: 3px solid var(--ink); border-radius: 36px; box-shadow: 0 10px 0 var(--ink);
  padding: clamp(22px, 4vw, 48px); isolation: isolate; }
.world-card[data-world="loopo"] { background: linear-gradient(180deg, #3FC0F8 0%, #2C8EEC 16%, #2563D4 44%, #2458CC 70%, #213A98 100%); }
.world-card[data-world="shapelings"] { background: radial-gradient(420px 300px at 100% 0%, #FFE3EB 0 60%, transparent 61%), radial-gradient(360px 260px at 0% 100%, #FFE3EB 0 60%, transparent 61%), #FFF3F6; }
.world-card:nth-child(even) .wc-art { order: -1; }
.wc-copy { display: grid; gap: 16px; justify-items: start; position: relative; z-index: 2; }
.wc-name { display: flex; align-items: center; gap: 16px; }
.wc-name img { width: 76px; height: 76px; border-radius: 22%; box-shadow: 0 5px 0 rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .08); flex: none; }
.wc-name h3 { font-size: clamp(34px, 5vw, 54px); }
.wc-tag { font: 600 clamp(19px, 2.4vw, 23px)/1.3 var(--w-body); }
.wc-blurb { color: var(--w-sub); max-width: 52ch; }
.wc-goofy { font-style: italic; color: var(--w-sub); }
.wc-goofy::before { content: "\201C"; } .wc-goofy::after { content: "\201D"; }
.wc-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.wc-facts li { background: var(--w-soft); border-radius: 14px; padding: 9px 14px; font-size: 15px; line-height: 1.25; }
.wc-facts b { font: var(--w-title-weight) 22px/1 var(--w-title); font-style: normal; margin-right: 6px; }
.wc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.wc-art { position: relative; display: grid; place-items: center; min-height: 380px; }
@media (max-width: 860px) { .wire { display: none; } .world-card { grid-template-columns: 1fr; } .world-card .wc-art, .world-card:nth-child(even) .wc-art { order: 2; min-height: 0; padding-top: 8px; } }

/* a phone, drawn in CSS, for raw screenshots */
.phone { position: relative; width: min(270px, 62vw); border-radius: 34px; padding: 9px; background: #15141F; box-shadow: 0 10px 0 rgba(0, 0, 0, .28), 0 0 0 3px rgba(255, 255, 255, .14) inset; rotate: 3deg; }
.phone img { border-radius: 26px; width: 100%; height: auto; }
.world-card:nth-child(even) .phone, .world-card:nth-child(even) .shot-card { rotate: -3deg; }
.shot-card { width: min(300px, 68vw); border-radius: 26px; overflow: hidden; box-shadow: 0 10px 0 #0D0F13; rotate: 3deg; }
.shot-card img { width: 100%; height: auto; }

/* little living details behind each phone */
.deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rings { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; translate: -50% -50%; }
.rings i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px solid #7C9873; opacity: .5; animation: bloom 7s ease-in-out infinite; }
.rings i:nth-child(1) { width: 46%; height: 46%; } .rings i:nth-child(2) { width: 68%; height: 68%; animation-delay: -1.2s; opacity: .34; } .rings i:nth-child(3) { width: 90%; height: 90%; animation-delay: -2.4s; opacity: .2; }
@keyframes bloom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.wire { position: absolute; inset: -4% -8%; width: 116%; height: 108%; }
.wire path { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 7s ease-in-out infinite; }
.wire path:nth-of-type(2) { animation-delay: -3.5s; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.jelly { position: absolute; width: 54px; height: 54px; border-radius: 14px; box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .16), inset 0 5px 0 rgba(255, 255, 255, .38); animation: wobble 3.4s ease-in-out infinite; }
.jelly::after { content: ""; position: absolute; left: 9px; top: 8px; width: 15px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .8); rotate: -24deg; }
.jelly.j1 { background: #FF2D78; left: 4%; top: 12%; rotate: -14deg; } .jelly.j2 { background: #1E9BFF; right: 3%; top: 26%; rotate: 12deg; animation-delay: -1s; }
.jelly.j3 { background: #FFC61A; left: 9%; bottom: 10%; rotate: 9deg; animation-delay: -2s; } .jelly.j4 { background: #14C9A0; right: 8%; bottom: 4%; rotate: -8deg; animation-delay: -.5s; width: 44px; height: 44px; }
@keyframes wobble { 0%, 100% { scale: 1 1; } 30% { scale: 1.08 .93; } 60% { scale: .95 1.06; } }
.bub { position: absolute; width: 64px; animation: drift 9s ease-in-out infinite; }
.bub.b1 { left: 2%; top: 8%; } .bub.b2 { right: 4%; top: 18%; width: 52px; animation-delay: -3s; } .bub.b3 { left: 8%; bottom: 8%; width: 46px; animation-delay: -5s; }
.bub.b4 { right: 2%; bottom: 14%; width: 70px; animation-delay: -1.5s; } .bub.b5 { left: 42%; top: 0; width: 40px; animation-delay: -6.5s; }
@keyframes drift { 0%, 100% { translate: 0 0; } 33% { translate: 8px -12px; } 66% { translate: -7px 7px; } }
.lasso { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; translate: -50% -50%; border: 4px dashed rgba(255, 255, 255, .75); border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%; animation: spin 40s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- home: house rules, testers, contact ---------- */
.rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: rule; }
.rule { position: relative; padding-top: 44px; counter-increment: rule; }
.rule::before { content: counter(rule); position: absolute; left: 20px; top: -22px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--sun); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font: 400 26px/1 var(--font-display); rotate: -6deg; }
.rule:nth-child(2)::before { background: var(--mint); rotate: 5deg; } .rule:nth-child(3)::before { background: var(--gum); rotate: -3deg; } .rule:nth-child(4)::before { background: var(--sky); rotate: 7deg; }
.rule h3 { font: 800 19px/1.25 var(--font-body); margin-bottom: 8px; }
@media (max-width: 980px) { .rules-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 520px) { .rules-grid { grid-template-columns: 1fr; } }
.band { border: 3px solid var(--ink); border-radius: 36px; box-shadow: 0 10px 0 var(--ink); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.band.mint { background: var(--mint); } .band.sun { background: var(--sun); }
.band p { max-width: 58ch; margin-top: 10px; }
.band .btn { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: 0 5px 0 rgba(0, 0, 0, .35); }
@media (max-width: 720px) { .band { grid-template-columns: 1fr; } }

/* ---------- game pages ---------- */
main { padding-bottom: clamp(56px, 8vw, 110px); }
main.world { min-height: 60vh; }
.game-hero { padding: clamp(30px, 6vw, 64px) 0 clamp(18px, 3vw, 30px); }
.game-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 36px); align-items: center; }
.game-hero .icon { width: clamp(96px, 16vw, 164px); height: auto; aspect-ratio: 1; border-radius: 23%; box-shadow: 0 8px 0 rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .08); }
.game-hero .meta { display: grid; gap: 14px; justify-items: start; }
.game-hero .lede { color: var(--w-fg); opacity: .92; }
.game-hero .note { font-size: 15px; color: var(--w-sub); }
@media (max-width: 640px) { .game-hero .wrap { grid-template-columns: 1fr; } }
.tabs { position: relative; }
.tabs ul { display: flex; gap: 8px; list-style: none; padding: 6px 0 14px; margin: 0; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a { display: block; white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: var(--w-soft); color: var(--w-fg); text-decoration: none; font: 700 15px/1 var(--w-body); }
.tabs a:hover { background: var(--w-card); color: var(--w-card-fg); }
.tabs a[aria-current="page"] { background: var(--w-btn); color: var(--w-btn-fg); }
.block { padding: clamp(26px, 5vw, 52px) 0; }
.block > .wrap > h2, .block > .narrow > h2 { margin-bottom: 18px; }
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 10px var(--gutter) 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail figure { flex: none; scroll-snap-align: center; width: min(250px, 66vw); display: grid; gap: 12px; }
.rail .phone, .rail .shot-card { width: 100%; rotate: 0deg; }
.rail figcaption { font-size: 14.5px; line-height: 1.35; color: var(--w-sub); text-align: center; }
.rail figure:first-child { margin-left: max(0px, calc((100vw - var(--wrap)) / 2 - var(--gutter))); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid .card h3 { font: 700 19px/1.25 var(--w-body); margin-bottom: 8px; }
[data-world] .grid .card h3.title { font-family: var(--w-title); font-weight: var(--w-title-weight); font-style: var(--w-title-style); font-size: 22px; }
.numbers { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; }
.numbers li { flex: 1 1 180px; background: var(--w-soft); border-radius: 20px; padding: 18px 20px; }
.numbers b { display: block; font: var(--w-title-weight) clamp(34px, 5vw, 46px)/1 var(--w-title); font-style: normal; }
.numbers span { color: var(--w-sub); font-size: 15px; }
.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(step); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--w-btn); color: var(--w-btn-fg); font: 800 19px/1 var(--w-body); box-shadow: 0 4px 0 var(--w-btn-lip); }
.steps li > span { padding-top: 8px; }
.list { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.row img { width: 64px; height: 64px; }
.row b { font-weight: 700; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--w-soft); }
th { font-weight: 800; }
.links { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.links a { display: grid; gap: 4px; text-decoration: none; }
.links a b { font: 700 18px/1.2 var(--w-body); color: var(--w-card-fg); }
.links a span { color: var(--w-card-sub); font-size: 15px; }
.links a:hover { translate: 0 2px; }
.crumbs { font-size: 14.5px; color: var(--w-sub); padding-top: 22px; }
.crumbs a { color: inherit; }

/* long-form text: legal pages, how-to pages, FAQ (carried over from each game's own site) */
.prose { padding: clamp(22px, 4vw, 44px); }
.prose h1 { font: var(--w-title-weight) clamp(30px, 5vw, 44px)/1.1 var(--w-title); font-style: var(--w-title-style); margin-bottom: 8px; }
.prose h2 { font: var(--w-title-weight) clamp(22px, 3vw, 27px)/1.2 var(--w-title); font-style: var(--w-title-style); margin: 34px 0 10px; }
.prose h3 { font: 700 18.5px/1.3 var(--w-body); margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--w-card-fg); }
.prose li { margin-bottom: 6px; }
.prose .updated, .prose .muted { color: var(--w-card-sub); font-size: 15px; }
.prose .lede { font-size: 19px; color: var(--w-card-sub); max-width: none; }
.prose .short, .prose .box, .prose .card, .prose .note, .prose .where, .prose .contact { background: var(--w-soft); border: 0; box-shadow: none; border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
[data-world="loopo"] .prose .short, [data-world="loopo"] .prose .box, [data-world="loopo"] .prose .card, [data-world="loopo"] .prose .note { background: #EAF4FF; }
.prose .short ul, .prose .card ul, .prose .card ol, .prose .box p:last-child { margin-bottom: 0; }
.prose .section { padding: 0; }
.prose .game-head { margin-bottom: 6px; }
.prose table { display: block; overflow-x: auto; margin: 0 0 16px; }
.prose th, .prose td { border: 1px solid var(--w-soft); }
.moved { font-size: 14.5px; color: var(--w-card-sub); border-top: 1px dashed currentColor; margin-top: 30px; padding-top: 14px; }
details.faq { border-top: 1px solid var(--w-soft); padding: 14px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--w-soft); }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { color: var(--w-card-sub); margin: 8px 0 0; }
.contact-card { display: grid; gap: 8px; justify-items: start; }
.contact-card .email { font: 700 clamp(19px, 3vw, 26px)/1.2 var(--w-body); word-break: break-word; }

/* Inkbloom's how-to pages keep the little drawings from its own site */
.game-head .essence { font: 400 22px/1.35 "Fraunces", Georgia, serif; color: var(--w-card-sub); margin-bottom: 12px; }
.vig { display: inline-flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.cell { width: 30px; height: 30px; border: 1px solid #DDD8CC; border-radius: 4px; display: inline-grid; place-items: center; font: 600 15px/1 "Albert Sans", sans-serif; background: #FDFBF6; color: #26241F; }
.cell.wide { width: auto; min-width: 30px; padding: 0 6px; }
.cell.sage { color: #597452; } .cell.clay { color: #A25B51; border-color: #B4655A; } .cell.muted { color: #6E6A60; font-weight: 400; }
.cell.fill-ink { background: #26241F; border-color: #26241F; } .cell.fill-sage { background: #7C9873; border-color: #7C9873; }
.cell.op, .cell.sign { border-color: transparent; background: transparent; color: #6E6A60; width: 18px; }
.cell.flag { color: #A25B51; } .cell.gold { color: #C9A24B; } .cell.moon { color: #6B7A99; }
.cell.sun-clay { color: #A25B51; background: #F3DDD6; border-color: #B4655A; }
.cell svg { width: 20px; height: 20px; }
.rules { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.rules li { display: grid; grid-template-columns: minmax(150px, auto) minmax(0, 1fr); gap: 16px; align-items: center; background: var(--w-soft); border-radius: 12px; padding: 14px 16px; margin: 0; }
.tips { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: tip; display: grid; gap: 16px; }
.tips li { counter-increment: tip; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; margin: 0; }
.tips li::before { content: counter(tip); font: 500 22px/1.3 "Fraunces", Georgia, serif; color: #597452; }
.tips strong { display: block; } .tips span { color: var(--w-card-sub); }
.games { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.game-card { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.game-card:hover { translate: 0 2px; text-decoration: none; }
.game-card h3 { font: 500 22px/1.15 "Fraunces", Georgia, serif; font-style: italic; }
.game-card p { font-size: 15px; }
.tag { justify-self: start; font: 700 11px/1 "Albert Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #597452; }
.tag.rot { color: #6B7A99; }
.next-prev { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; font-weight: 700; }
@media (max-width: 560px) { .rules li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- studio pages ---------- */
.page-hero { padding: clamp(34px, 6vw, 70px) 0 clamp(10px, 2vw, 20px); }
.page-hero .lede { margin-top: 14px; }
.pick { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pick a { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.pick img { width: 60px; height: 60px; border-radius: 22%; }
.pick b { display: block; font: 800 18px/1.2 var(--font-body); }
.pick span { font-size: 14.5px; color: var(--ink-2); }
.pick a:hover { translate: 0 3px; box-shadow: 0 3px 0 var(--ink); }
.lost { text-align: center; padding: clamp(50px, 10vw, 120px) 0; display: grid; gap: 18px; justify-items: center; }
.lost .raddy { width: 150px; filter: drop-shadow(0 8px 0 var(--ink)); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #E9E6FA; font: 500 15.5px/1.55 var(--font-body); padding: clamp(40px, 6vw, 70px) 0 28px; position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 19px; background: radial-gradient(circle at 20px 20px, var(--ink) 19px, transparent 20px) 0 0 / 40px 20px repeat-x; }
.site-foot a { color: #FFFFFF; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--sun); }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px 22px; }
.foot-grid h2 { font: 800 12.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand .brand { color: #fff; font-size: 26px; } .foot-brand .brand small { color: #B9B4DA; }
.foot-brand p { color: #B9B4DA; max-width: 30ch; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 34px; padding-top: 18px; color: #B9B4DA; font-size: 14px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- arriving on the page ---------- */
[data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .55s ease, translate .55s cubic-bezier(.2, .9, .3, 1.2); }
[data-reveal].in { opacity: 1; translate: 0 0; }
.no-js [data-reveal] { opacity: 1; translate: 0 0; }
.rise { animation: rise .7s cubic-bezier(.2, .9, .3, 1.15) both; }
.rise.r2 { animation-delay: .08s; } .rise.r3 { animation-delay: .16s; } .rise.r4 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; translate: 0 0; }
  .wire path { stroke-dashoffset: 0; }
}
@media print { .site-head, .site-foot, .ticker, .tabs { display: none; } body, .world { background: #fff !important; color: #000 !important; } }
