/* Tipsy Isle game page. The look follows the game: a soft daytime sky, paper "stickers" with a thick
   ink outline and a hard drop shadow, coral and grass-green lettering that leans like the island.
   Nunito is declared in /assets/css/studio.css; the studio header and footer come from studio.css. */

:root {
  --t-ink: #2a2350;
  --t-ink-soft: #5d5689;
  --t-paper: #fffaf0;
  --t-sky: #6cc1f2;
  --t-coral: #ff5d73;
  --t-grass: #7bd65a;
  --t-gold: #ffc23d;
  --t-font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-wrap: 1120px;
  --t-gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.ti { margin: 0; background: #fff6e8; color: var(--t-ink); font: 700 17px/1.55 var(--t-font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.ti img { max-width: 100%; display: block; }
.ti main a { color: var(--t-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ti main :focus-visible { outline: 3px solid var(--t-coral); outline-offset: 3px; border-radius: 8px; }
.t-wrap { width: min(var(--t-wrap), 100%); margin: 0 auto; padding: 0 var(--t-gutter); }
.t-card { background: var(--t-paper); border: 3px solid var(--t-ink); border-radius: 22px; box-shadow: 0 5px 0 var(--t-ink); }

/* ---------- hero: the game's sky ---------- */
.t-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(#6cc1f2 0%, #aadcfb 46%, #ffe6c9 84%, #fff6e8 100%); }
.t-hero::before, .t-hero::after { /* two clouds drifting by */
  content: ""; position: absolute; z-index: -1; background: #fff; border-radius: 999px; opacity: .92;
  box-shadow: 40px -18px 0 6px #fff, 86px 2px 0 -4px #fff; }
.t-hero::before { width: 120px; height: 38px; top: 96px; right: -50px; }
.t-hero::after { width: 90px; height: 30px; bottom: 170px; left: -40px; opacity: .8; }
.t-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.ti .t-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--t-ink); text-decoration: none; font-weight: 900; font-size: 19px; }
.t-brand img { width: 40px; height: 40px; border-radius: 11px; border: 2.5px solid var(--t-ink); }
.t-top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ti .t-top nav a { color: var(--t-ink); text-decoration: none; font-weight: 900; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.ti .t-top nav a:hover { background: rgba(255, 255, 255, .5); }

.t-hero-grid { display: grid; gap: 18px; align-items: center; padding-top: 10px; }
.t-hero-copy { text-align: center; }
.t-logo { margin: 6px 0 0; display: flex; flex-direction: column; align-items: center; font-weight: 900; line-height: .86; font-size: clamp(76px, 19vw, 132px);
  -webkit-text-stroke: 4px var(--t-ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--t-ink); }
.t-logo span { display: block; }
.t-logo .a { color: var(--t-coral); transform: rotate(-7deg); }
.t-logo .b { color: var(--t-grass); transform: rotate(5deg) translateX(18%); }
.t-tagline { margin: 22px 0 0; font-weight: 900; font-size: clamp(20px, 2.6vw, 24px); color: #fff; -webkit-text-stroke: 5px var(--t-ink); paint-order: stroke fill; }
.t-intro { margin: 14px auto 0; max-width: 34ch; font-size: 18px; font-weight: 800; }
.t-cta { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.t-note { margin: 0; font-size: 14px; font-weight: 800; color: var(--t-ink-soft); }

.t-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; height: clamp(300px, 64vw, 540px); }
.t-phones img { width: clamp(150px, 40vw, 252px); height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; border: 4px solid var(--t-ink); box-shadow: 0 7px 0 var(--t-ink); }
.t-phones img:first-child { transform: rotate(-6deg) translate(16px, 30px); }
.t-phones img:last-child { transform: rotate(5deg) translate(-16px, 64px); }

/* ---------- the store button ---------- */
.ti .t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 10px 26px; border-radius: 999px;
  text-decoration: none; color: #fff; font-weight: 900; font-size: 21px; background: var(--t-coral); border: 3px solid var(--t-ink); box-shadow: 0 5px 0 var(--t-ink);
  -webkit-text-stroke: 1.2px var(--t-ink); paint-order: stroke fill; transition: transform .06s ease, box-shadow .06s ease; }
.ti .t-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--t-ink); }
.t-btn svg { width: 22px; height: 22px; flex: none; }
.t-btn .bt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.t-btn small { font-size: 12px; font-weight: 900; }
.ti .t-btn.is-soon { background: var(--t-paper); color: var(--t-ink); -webkit-text-stroke: 0; cursor: default; }
.ti .t-btn.is-soon:active { transform: none; box-shadow: 0 5px 0 var(--t-ink); }

/* ---------- sections ---------- */
.ti main section { padding: 64px 0; }
.t-h2 { margin: 0 0 8px; font-weight: 900; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; letter-spacing: -0.01em; }
.t-lead { margin: 0 0 28px; color: var(--t-ink-soft); font-size: 18px; max-width: 58ch; }

.t-moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.t-moves li { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.t-moves svg { width: 48px; height: 48px; flex: none; }
.t-moves b { display: block; font-size: 20px; font-weight: 900; }
.t-moves span { color: var(--t-ink-soft); }

/* the grow chain: one row of critters, wrapping on small screens */
.t-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; counter-reset: tier; }
.t-chain li { display: grid; justify-items: center; gap: 6px; text-align: center; counter-increment: tier; position: relative; }
.t-chain img { width: 72px; height: 72px; }
.t-chain li:nth-child(n + 8) img { width: 84px; height: 84px; }
.t-chain span { font-weight: 900; font-size: 14px; line-height: 1.2; }
.t-chain li::before { content: counter(tier); position: absolute; top: -4px; left: calc(50% - 46px); width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--t-gold); border: 2px solid var(--t-ink); font-size: 12px; font-weight: 900; }
.t-heart { margin: 26px 0 0; max-width: 60ch; }
.t-heart strong { color: #d63b55; }

.t-isles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.t-isles li { padding: 8px 8px 12px; display: grid; gap: 2px; }
.t-isles img { width: 100%; height: auto; aspect-ratio: 600 / 420; border-radius: 14px; border: 2.5px solid var(--t-ink); margin-bottom: 8px; }
.t-isles b { font-size: 18px; font-weight: 900; padding: 0 4px; }
.t-isles span { color: var(--t-ink-soft); font-size: 15px; padding: 0 4px; }

.t-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--t-gutter) 22px; margin: 0 calc(var(--t-gutter) * -1); scrollbar-width: thin; }
.t-strip figure { flex: 0 0 auto; width: min(230px, 62vw); margin: 0; scroll-snap-align: center; }
.t-strip img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; border: 3px solid var(--t-ink); box-shadow: 0 5px 0 var(--t-ink); }
.t-strip figcaption { margin-top: 12px; text-align: center; font-weight: 900; }
.t-hint { margin: 0; font-size: 14px; color: var(--t-ink-soft); }

.t-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.t-facts li { background: var(--t-paper); border: 3px solid var(--t-ink); border-radius: 20px; padding: 16px 18px; }
.t-facts p { margin: 0; }
.t-facts b { display: block; font-size: 18px; font-weight: 900; }
.t-facts span { color: var(--t-ink-soft); }

.ti main .t-get { text-align: center; background: linear-gradient(#fff6e8, #ffe6c9); padding-bottom: 80px; }
.t-get .t-lead { margin-left: auto; margin-right: auto; }
.t-privacy { margin: 18px 0 0; font-size: 15px; }

@media (min-width: 900px) {
  .t-hero-grid { grid-template-columns: 1.05fr 1fr; padding-bottom: 0; }
  .t-hero-copy { text-align: left; padding-bottom: 40px; }
  .t-logo { align-items: flex-start; }
  .t-intro { margin-left: 0; }
  .t-cta { align-items: flex-start; }
  .t-chain { grid-template-columns: repeat(11, minmax(0, 1fr)); }
  .t-chain img { width: 100%; height: auto; }
  .t-chain li:nth-child(n + 8) img { width: 100%; height: auto; }
  .t-chain li::before { left: -2px; }
}
@media (max-width: 430px) {
  .t-top nav a[href="#chain"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
