/* BubbleBlip one-page lander. Keeps the app's own look (warm paper, purple, bubbles) under the shared Sliverin Studios bar. */
:root {
  --bg: #f0eee8;
  --surface: #ffffff;
  --ink: #2a2750;
  --muted: #6b6985;
  --line: #ded9d0;
  --purple: #534ab7;
  --purple-dark: #4540a0;
  --purple-light: #eeedfe;
  --blue: #5b8def;
  --display: Fredoka, "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; text-wrap: balance; color: var(--ink); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
section[id] { scroll-margin-top: 76px; }
[hidden] { display: none !important; }

.eyebrow, .kicker { display: inline-block; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); }
.kicker { color: rgba(255, 255, 255, 0.8); }
.kicker.light { color: #cfcaf7; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; border: 2px solid transparent; border-radius: 999px; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(83, 74, 183, 0.3); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--purple); border-color: var(--purple); }
.btn-secondary:hover { background: var(--purple-light); }
.btn-light { background: #fff; color: var(--purple-dark); }
.btn-light:hover { background: var(--purple-light); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ----- hero: logo, menu strip under it, centred copy, then the join-a-game scene ----- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #e9e6fb 0%, var(--bg) 70%); border-bottom: 1px solid var(--line); }
.hero-grid { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 20px; padding-block: clamp(28px, 5vw, 52px) clamp(40px, 7vw, 84px); }
.brandline { display: block; line-height: 0; }
.brandline img { width: min(78vw, 400px); height: auto; }
.pagemenu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 14px rgba(42, 39, 80, 0.07); }
.pagemenu a { padding: 9px 18px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--muted); border-radius: 999px; }
.pagemenu a:hover { color: var(--purple); background: var(--purple-light); }
.pagemenu a.cta { background: var(--purple); color: #fff; }
.pagemenu a.cta:hover { background: var(--purple-dark); }
.hero-copy { display: grid; justify-items: center; max-width: 780px; margin-top: clamp(8px, 3vw, 26px); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--purple); }
.hero-lead { max-width: 54ch; font-size: 1.15rem; color: var(--muted); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--purple-dark); background: #fff; border: 1px solid var(--line); border-radius: 999px; }

.bub { position: absolute; z-index: 0; border-radius: 50%; background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 9%, rgba(91, 141, 239, 0.18) 10% 60%, rgba(83, 74, 183, 0.22)); border: 2px solid rgba(255, 255, 255, 0.7); animation: bob 7s ease-in-out infinite; }
.b1 { width: 90px; height: 90px; left: 6%; top: 18%; }
.b2 { width: 44px; height: 44px; left: 16%; top: 56%; animation-delay: -2s; }
.b3 { width: 70px; height: 70px; right: 8%; top: 14%; animation-delay: -4s; }
.b4 { width: 34px; height: 34px; right: 18%; top: 62%; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* decorative scene: a join card, the app icon and a few tiles */
.scene { position: relative; width: 100%; max-width: 900px; min-height: clamp(340px, 46vw, 440px); margin-top: clamp(6px, 2vw, 20px); }
.join-card { position: absolute; left: 4%; top: 6%; width: min(46%, 380px); padding: 22px; text-align: left; background: #fff; border: 2px solid var(--purple); border-radius: 22px; box-shadow: 0 24px 50px rgba(83, 74, 183, 0.25); transform: rotate(-3deg); }
.join-badge { display: inline-block; padding: 4px 12px; font-size: 12px; font-weight: 800; color: var(--purple); background: var(--purple-light); border-radius: 999px; margin-bottom: 12px; }
.join-title { font-family: var(--display); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; line-height: 1.2; margin-bottom: 14px; }
.join-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.join-cells span { display: grid; place-items: center; aspect-ratio: 1 / 1.15; font-family: var(--display); font-size: clamp(1rem, 2.4vw, 1.6rem); color: var(--purple-dark); background: var(--bg); border: 2px solid var(--line); border-radius: 10px; }
.join-btn { display: inline-flex; gap: 8px; padding: 10px 22px; font-weight: 700; color: #fff; background: var(--purple); border-radius: 999px; }
.scene-icon { position: absolute; right: 12%; top: 4%; width: clamp(130px, 22vw, 210px); aspect-ratio: 1; border-radius: 22%; overflow: hidden; box-shadow: 0 24px 50px rgba(83, 74, 183, 0.4); transform: rotate(5deg); }
.scene-icon img { width: 100%; height: 100%; }
.scene-tile { position: absolute; padding: 10px 16px; background: #fff; border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 12px 28px rgba(42, 39, 80, 0.14); text-align: left; line-height: 1.25; }
.scene-tile b { display: block; font-family: var(--display); font-size: 1rem; }
.scene-tile span { font-size: 12px; color: var(--muted); }
.t1 { right: 4%; bottom: 14%; border-color: #7c3aed; transform: rotate(-4deg); }
.t2 { left: 26%; bottom: 2%; border-color: #0d9488; transform: rotate(3deg); }
.t3 { right: 34%; bottom: 30%; border-color: #d97706; transform: rotate(2deg); }
@media (max-width: 700px) {
  .join-card { width: 62%; left: 2%; }
  .scene-icon { right: 2%; width: 34%; }
  .t3 { display: none; }
  .t1 { right: 2%; }
  .t2 { left: 6%; }
}

/* ----- three banners ----- */
.banners { padding: clamp(40px, 7vw, 84px) 0 clamp(24px, 4vw, 40px); }
.banner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.banner { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 32px); color: #fff; background: var(--hb); border-radius: 22px; box-shadow: 0 18px 40px rgba(42, 39, 80, 0.16); min-width: 0; }
.banner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.banner p { margin: 0; color: rgba(255, 255, 255, 0.9); }
.banner .kicker { margin: 0; }
.banner-link { margin-top: auto; padding-top: 12px; font-weight: 800; text-decoration: none; color: #fff; border-bottom: 2px solid rgba(255, 255, 255, 0.5); width: max-content; max-width: 100%; }
.banner-link:hover { border-color: #fff; }
@media (max-width: 900px) { .banner-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----- games ----- */
.games { padding: clamp(40px, 7vw, 84px) 0; }
.section-heading { max-width: 640px; margin: 0 auto clamp(26px, 4vw, 40px); text-align: center; }
.section-heading h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 12px; }
.section-heading p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.chips button { padding: 8px 18px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); background: #fff; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; }
.chips button:hover { border-color: var(--purple); color: var(--purple); }
.chips button[aria-pressed="true"] { color: #fff; background: var(--purple); border-color: var(--purple); }
.game-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.game { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; background: var(--bg-card, var(--bg)); background: var(--bg); background: color-mix(in srgb, var(--bg) 30%, #fff); border: 2px solid var(--bg); border-radius: 18px; min-width: 0; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.game { background: var(--bg); background: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(42, 39, 80, 0.07); }
.game::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: 0.5; pointer-events: none; z-index: 0; }
.game > * { position: relative; z-index: 1; }
.game:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 12px 26px rgba(42, 39, 80, 0.14); }
.game__bubble { display: grid; place-items: center; width: 52px; height: 52px; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: #fff; border-radius: 50%; background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.55) 0 10%, transparent 11%), var(--c); box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.15); }
.game__text { display: grid; gap: 2px; min-width: 0; }
.game__text b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.15; }
.game__text span { font-size: 14px; color: var(--muted); }
.game em { grid-column: 2; margin-top: -4px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); }

/* ----- more than games ----- */
.more { padding: 0 0 clamp(40px, 7vw, 84px); }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.more-card { padding: clamp(22px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 28px rgba(42, 39, 80, 0.08); }
.more-card .kicker { color: var(--purple); margin-bottom: 8px; }
.more-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.more-card p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .more-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----- teachers ----- */
.teachers { padding: 0 0 clamp(40px, 7vw, 84px); }
.teach-card { padding: clamp(24px, 4vw, 48px); color: #fff; background: linear-gradient(120deg, var(--purple-dark), var(--purple)); border-radius: 26px; box-shadow: 0 24px 50px rgba(83, 74, 183, 0.3); }
.teach-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px 40px; margin-bottom: 30px; }
.teach-head h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-bottom: 10px; }
.teach-head p { margin: 0; color: #dcd9fa; max-width: 52ch; }
.teach-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.steps-title { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps li { padding: 20px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 18px; min-width: 0; }
.steps li > span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; font-family: var(--display); font-weight: 600; color: var(--purple-dark); background: #fff; border-radius: 50%; }
.steps h4 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.steps p { margin: 0; color: #dcd9fa; font-size: 0.95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ----- app ----- */
.app { padding: 0 0 clamp(40px, 7vw, 84px); }
.app-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(22px, 5vw, 60px); align-items: center; }
.app-icon { width: clamp(110px, 16vw, 170px); aspect-ratio: 1; border-radius: 22%; overflow: hidden; box-shadow: 0 20px 44px rgba(83, 74, 183, 0.35); }
.app-icon img { width: 100%; height: 100%; }
.app h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; }
.app p { color: var(--muted); font-size: 1.1rem; margin-bottom: 20px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px; color: #fff; background: #000; border: 1px solid #555; border-radius: 12px; text-decoration: none; transition: transform 0.15s; }
.store:hover { transform: translateY(-2px); }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: 11px; }
.store strong { font-size: 20px; font-weight: 600; }
@media (max-width: 520px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----- notes ----- */
.notes { padding: 0 0 clamp(48px, 8vw, 90px); }
.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.notes-grid p { margin: 0; }
.notes-grid a { color: var(--purple); font-weight: 700; }
@media (max-width: 700px) { .notes-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
