/* Yeet a Jar: the game's gold-on-plum HUD, Luckiest Guy + Fredoka */
@font-face { font-family: "Luckiest Guy"; src: url(/fonts/luckiest.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Fredoka; src: url(/fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url(/fonts/lilita.woff2) format("woff2"); font-display: swap; }
@property --s1 { syntax: "<color>"; inherits: true; initial-value: #9fdcff; }
@property --s2 { syntax: "<color>"; inherits: true; initial-value: #e4f6ff; }
:root {
  --gold: #ffd23a; --gold-hi: #fff4b8; --plum: #2a1446; --night: #160f42; --night2: #2b1d78; --paper: #fff8e6; --ink: #2a1446;
  --head: "Luckiest Guy", "Arial Rounded MT Bold", system-ui, sans-serif; --body: Fredoka, system-ui, sans-serif; --focus: #ffd23a;
  --pill-bg: rgba(255, 255, 255, .12); --pill-ink: #fff; --pill-line: 2px solid rgba(255, 255, 255, .34);
  --pill-on-bg: var(--gold); --pill-on-ink: var(--plum); --pill-on-shadow: 0 3px 0 var(--plum);
  --soon-bg: var(--gold); --soon-ink: var(--plum);
}
body { font-weight: 450; }
h2 { font-size: clamp(36px, 5.6vw, 68px); letter-spacing: .01em; }
h3 { font-family: var(--head); }
.lead { font-size: clamp(17px, 1.7vw, 21px); max-width: 680px; margin-top: 14px; }
/* Luckiest Guy draws its lowercase as odd capitals ("In" reads "m"): the game sets it in capitals */
h1, h2, h3, .games a, .lane b, .tags li, .flock span, .frames figcaption, .days b { text-transform: uppercase; }
.gold { color: var(--gold); -webkit-text-stroke: .11em var(--plum); paint-order: stroke fill; text-shadow: 0 .09em 0 var(--plum); }

/* ---------------------------------------------------------------- hero: his Starry night App Store painting, the game in two phones,
   the fox jar flying out of the front one (as In This Town's runner leaves his) */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 84px 0 0; background: #4a35c8; }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky picture, .sky img.paint { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
@media (max-width: 979px) { .hero { padding-bottom: 34px; } }
/* a plum shade behind the words so they read on any part of the painting */
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(22, 12, 70, .52), rgba(22, 12, 70, .12) 46%, rgba(22, 12, 70, 0) 70%); }
.hero-in { display: grid; justify-items: center; text-align: center; }
.copy { display: flex; flex-direction: column; align-items: center; }
.word { font-size: clamp(64px, 19vw, 92px); line-height: .9; color: var(--gold); letter-spacing: .01em;
  -webkit-text-stroke: .13em var(--plum); paint-order: stroke fill; text-shadow: 0 .07em 0 var(--plum), 0 .16em 0 rgba(22, 12, 70, .35); }
.word span { display: block; }
.tag { font: 600 clamp(19px, 5vw, 24px)/1.2 var(--body); margin-top: 16px; color: #fff; text-shadow: 0 2px 0 rgba(22, 12, 70, .45); text-transform: none; }
.sub { display: none; }
.get { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.free { font-size: 14px; font-weight: 600; color: #fff; margin-top: 12px; text-shadow: 0 1px 0 rgba(22, 12, 70, .5); }
/* the stage: two phones and the jar */
.stage { position: relative; width: min(94vw, 420px); aspect-ratio: 420 / 430; margin-top: 18px; }
.stage .phone { position: absolute; }
/* side by side, barely touching, so the back phone's "1 in 1.77T" reads whole */
.stage .back { width: 41%; right: 3%; top: 3%; rotate: 8deg; }
.stage .front { width: 46%; left: 10%; top: 10%; rotate: -6deg; z-index: 2; }
.stage .pop { position: absolute; z-index: 3; width: 31%; left: -3%; top: -1%; filter: drop-shadow(0 16px 16px rgba(22, 12, 70, .4)); }
.stage .pop img { rotate: -14deg; }
@media (min-width: 600px) and (max-width: 979px) { .sub { display: block; max-width: 460px; margin-top: 10px; font-size: 17px; color: #f2eeff; } }
@media (min-width: 980px) {
  .hero { padding: 96px 0 40px; min-height: min(100svh, 920px); display: grid; align-items: center; }
  .sky img.paint { object-position: 50% 70%; }
  .sky::after { background: linear-gradient(90deg, rgba(22, 12, 70, .56), rgba(22, 12, 70, .3) 38%, rgba(22, 12, 70, 0) 62%); }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: center; text-align: left; }
  .copy { align-items: flex-start; }
  .word { font-size: clamp(84px, 8.4vw, 124px); white-space: nowrap; }
  .word span { display: inline; }
  .tag { font-size: 28px; margin-top: 22px; }
  .sub { display: block; max-width: 470px; margin-top: 12px; font-size: 18px; color: #f2eeff; text-shadow: 0 1px 0 rgba(22, 12, 70, .4); }
  .get { justify-content: flex-start; margin-top: 30px; }
  .stage { width: 520px; margin: 0; justify-self: end; }
}
@media (min-width: 640px) and (max-width: 979px) and (max-height: 560px) {
  .hero { padding: 64px 0 18px; }
  .hero-in { grid-template-columns: 1fr minmax(0, 300px); column-gap: 20px; align-items: center; text-align: left; }
  .copy { align-items: flex-start; }
  .word { font-size: clamp(48px, 8.4vw, 72px); white-space: nowrap; }
  .word span { display: inline; }
  .tag { font-size: 19px; margin-top: 10px; }
  .sub { display: none; }
  .get { justify-content: flex-start; margin-top: 16px; }
  .free { margin-top: 8px; }
  .stage { width: 300px; margin: 0; }
  .sky::after { background: linear-gradient(90deg, rgba(22, 12, 70, .5), rgba(22, 12, 70, 0) 65%); }
}
/* arrival: words and phones rise, the jar bursts out of the front phone */
.js .hero .copy > *, .js .hero .phone { animation: rise .8s cubic-bezier(.2, 1.3, .35, 1) both; }
.js .hero .copy > :nth-child(2) { animation-delay: .06s; } .js .hero .copy > :nth-child(3) { animation-delay: .1s; }
.js .hero .copy > :nth-child(4) { animation-delay: .14s; } .js .hero .copy > :nth-child(5) { animation-delay: .18s; }
.js .hero .back { animation-delay: .12s; } .js .hero .front { animation-delay: .22s; }
.js .hero .pop { animation: burst .7s cubic-bezier(.2, 1.5, .4, 1) .4s both; }
@keyframes rise { from { opacity: 0; translate: 0 40px; } }
@keyframes burst { from { opacity: 0; scale: .35; translate: 60% 70%; } }
.stage .pop picture img { animation: bob 2.8s ease-in-out 1.4s infinite; }
@keyframes bob { 50% { translate: 0 -9px; } }

/* ---------------------------------------------------------------- sixteen worlds */
.worlds { padding: 90px 0 70px; background: linear-gradient(#cdeaff, #eef8ff 40%, var(--paper)); }
.worlds h2, .home h2, .daily h2 { color: var(--plum); }
.ribbon { display: flex; height: 26px; margin-top: 34px; border-radius: 999px; overflow: hidden; border: 3px solid var(--plum); box-shadow: 0 4px 0 var(--plum); }
.ribbon i { display: block; min-width: 2px; border-right: 2px solid rgba(42, 20, 70, .35); }
.lane { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; counter-reset: w; }
@media (min-width: 760px) { .lane { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
.lane li { counter-increment: w; display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 10px; padding: 9px 10px; border-radius: 14px;
  background: #fff; border: 2.5px solid var(--plum); }
.lane li::before { content: counter(w); grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--g);
  border: 2.5px solid var(--plum); font: 400 15px/1 var(--head); color: var(--t, var(--plum)); padding-top: 2px; }
.lane b { font: 400 16px/1.1 var(--head); }
.lane span { font-size: 13px; font-weight: 600; opacity: .75; }
.frames { margin-top: 40px; }
.frames figure { margin: 0; width: min(82vw, 380px); }
.frames figcaption { font: 400 19px/1.2 var(--head); margin-top: 14px; text-align: center; }
@media (min-width: 960px) { .frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .frames figure { width: auto; } }

/* ---------------------------------------------------------------- three reels */
.reels { color: #fff; padding: 90px 0 0; background: linear-gradient(var(--plum), #1d1552); }
.reels h2 { color: var(--gold); }
.reels .lead { color: #e9e4ff; }
.reels-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .reels-in { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.reel { margin-top: 22px; }
.reel h3 { font-size: 18px; color: var(--gold-hi); margin-bottom: 8px; letter-spacing: .02em; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tags li { font: 400 calc(15px * var(--s, 1))/1 var(--head); padding: 7px 11px 5px; border-radius: 10px; background: var(--c, #fff); color: var(--t, var(--plum));
  border: 2.5px solid #fff; }
.tags.sizes { align-items: flex-end; }
.tags.sizes li { background: #fff; color: var(--plum); }
/* the line-up: key art of the game's own rarest critters, each on its own soft ground shadow, name and rarity under it.
   Six across on a computer, four on a tablet, a row to swipe on a phone. */
.reels { padding-bottom: 96px; }
.cast { list-style: none; margin: 78px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 18px; }
@media (min-width: 980px) { .cast { grid-template-columns: repeat(6, 1fr); } }
.cast li { position: relative; text-align: center; min-width: 0; }
.cast li::before { content: ""; position: absolute; left: 14%; right: 14%; top: calc(var(--fig) - 16px); height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8, 4, 30, .55), rgba(8, 4, 30, 0)); }
.cast { --fig: 180px; }
.cast picture, .cast img { position: relative; display: block; width: 100%; max-width: var(--fig); aspect-ratio: 1; margin: 0 auto; }
.cast img { height: auto; object-fit: contain; object-position: 50% 100%; }
.cast b { display: block; margin-top: 12px; font: 400 16px/1.1 var(--head); color: var(--gold-hi); text-transform: uppercase; letter-spacing: .02em; }
.cast span { display: block; margin-top: 4px; font-size: 14px; color: #d9d2ff; }
@media (max-width: 979px) { .cast { --fig: 170px; } }
@media (max-width: 599px) {
  .cast { --fig: 150px; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain;
    scrollbar-width: none; margin: 56px -16px 0; padding: 0 16px 6px; }
  .cast::-webkit-scrollbar { display: none; }
  .cast li { flex: none; width: 156px; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .cast li:nth-child(3n + 1) img { animation: bob 3.2s ease-in-out infinite; }
  .cast li:nth-child(3n + 2) img { animation: bob 3.6s ease-in-out -1.1s infinite; }
  .cast li:nth-child(3n) img { animation: bob 3.4s ease-in-out -2.2s infinite; }
}

/* ---------------------------------------------------------------- garden */
.home { padding: 90px 0; background: linear-gradient(#e3f7d6, #c9edb3); }
.home-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .home-in { grid-template-columns: .9fr 1.1fr; gap: 56px; } }

/* ---------------------------------------------------------------- dragons */
.dragons { color: #fff; padding: 90px 0 80px; background: radial-gradient(90% 60% at 50% 0, #3a2394, transparent 70%), #110b36; }
.dragons h2 { color: var(--gold); }
.dragons .lead { color: #e9e4ff; }
.flock { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
/* eight across only where the longest name (CHRONODRAKE) fits its column */
@media (min-width: 1100px) { .flock { grid-template-columns: repeat(8, 1fr); } }
.flock li { text-align: center; min-width: 0; }
.flock img { width: 100%; max-width: 120px; margin: 0 auto; }
.flock span { display: block; font: 400 13px/1.1 var(--head); color: var(--gold-hi); margin-top: 4px; letter-spacing: .02em; overflow-wrap: anywhere; }
/* on a phone the sixteen are a row to swipe, names at a readable size */
@media (max-width: 599px) {
  .flock { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain;
    scrollbar-width: none; margin: 30px -16px 0; padding: 4px 16px 14px; }
  .flock::-webkit-scrollbar { display: none; }
  .flock li { flex: none; width: 104px; scroll-snap-align: start; }
  .flock span { font-size: 13px; letter-spacing: 0; overflow-wrap: normal; }
}
.dragons .frames figcaption { color: var(--gold-hi); }

/* ---------------------------------------------------------------- daily */
.daily { padding: 90px 0; background: var(--gold); }
.days { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0 40px; border-top: 3px dashed rgba(42, 20, 70, .4); }
@media (min-width: 760px) { .days { grid-template-columns: 1fr 1fr; } }
.days li { padding: 16px 0; border-bottom: 3px dashed rgba(42, 20, 70, .4); font-size: 19px; font-weight: 500; }
.days b { font: 400 22px/1 var(--head); display: block; margin-bottom: 4px; }

/* ---------------------------------------------------------------- over to In This Town */
.next { position: relative; isolation: isolate; overflow: hidden; padding: 100px 0; color: #121226; background: linear-gradient(#5fb4ff, #8fd3ff 50%, #c9ecff); }
.sun { position: absolute; inset: 0; z-index: -1; }
.sun .rays { position: absolute; left: 30%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; display: block;
  background: repeating-conic-gradient(rgba(255, 255, 255, .26) 0 6deg, transparent 6deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 16%, transparent 70%); mask: radial-gradient(closest-side, #000 16%, transparent 70%); animation: spin 160s linear infinite; }
.next-in { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .next-in { grid-template-columns: 300px 1fr; gap: 56px; } }
.runner { width: min(40vw, 260px); margin: 0 auto; filter: drop-shadow(0 16px 16px rgba(18, 18, 38, .25)); }
.next h2 { width: min(76vw, 420px); }
.next .tag { font-family: "Lilita One", var(--head); color: #fff; -webkit-text-stroke: .16em #121226; paint-order: stroke fill; font-size: clamp(24px, 3vw, 34px); margin: 14px 0 10px; }
.next p { max-width: 520px; font-weight: 500; }
.go { display: inline-block; margin-top: 22px; background: #e4ff3a; color: #121226; font: 400 21px/1 "Lilita One", var(--head); text-decoration: none; padding: 13px 26px 12px;
  border-radius: 999px; border: 3px solid #121226; box-shadow: 0 5px 0 #121226; transition: translate .15s, box-shadow .15s; }
.go:hover { translate: 0 -2px; box-shadow: 0 7px 0 #121226; }

/* ---------------------------------------------------------------- last word */
.end { padding: 90px 0 100px; text-align: center; background: radial-gradient(80% 70% at 50% 100%, #3a2394, transparent 70%), var(--night); color: #fff; }
.end-in { display: grid; justify-items: center; gap: 18px; }
.end-icon { width: 116px; height: 116px; border-radius: 26px; border: 4px solid #fff; box-shadow: 0 0 0 4px var(--plum), 0 6px 0 4px var(--plum); }
.end h2 { font-size: clamp(48px, 7vw, 84px); }
.end .free { max-width: 340px; }
.foot { --foot-head: var(--head); }
.foot h2 { letter-spacing: .02em; }
