@font-face {
  font-family: "Baloo 2";
  src: url("/assets/baloo-2-latin-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #21091e;
  --surface: #2c1028;
  --text: #fff3df;
  --muted: #deb3c5;
  --border: #61304e;
  --accent: #ffde3a;
  --pink: #fc1e4b;
  --heading: "Baloo 2", ui-rounded, system-ui, sans-serif;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 80% 12%, #45082d66, transparent 48%), var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #fc1e4b; color: white; }
h1, h2, h3, .brand { font-family: var(--heading); font-weight: 800; line-height: 1.08; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); }
h3 { font-size: 1.8rem; }
img { max-width: 100%; }
.site-header, main, .site-footer { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: relative; padding-block: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid #61304e66; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 2rem; white-space: nowrap; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav a { color: var(--text); padding: 10px 24px; text-decoration: none; border-radius: 999px; font-size: .95rem; }
.site-nav a:hover { background: #ffffff0a; color: var(--accent); }
.site-nav .account-link { border: 1px solid var(--border); margin-left: 14px; }
.mobile-menu { display: none; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 12px 20px; background: var(--accent); color: var(--bg); border-radius: 12px; }
.skip-link:focus { top: 12px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 560px; padding: 56px 0 48px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .17em; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.spark { color: var(--accent); font-size: 1.1rem; margin-right: 8px; }
.hero h1 { font-size: clamp(3.5rem, 6.1vw, 5.5rem); letter-spacing: -.025em; line-height: 1.02; margin-bottom: 24px; }
.hero h1 span { color: var(--accent); }
.hero-description { color: var(--muted); font-size: 1.15rem; line-height: 1.65; margin-bottom: 28px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; border-radius: 999px; padding: 12px 26px; font-size: 1rem; font-weight: 700; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
.button, button[type="submit"] { background: var(--accent); border-color: var(--accent); color: #300b24; }
.button:hover, button[type="submit"]:hover { background: #ffea7a; transform: translateY(-2px); }
.button span { font-size: 1.3rem; line-height: 1; }
.hero .button { min-width: 220px; }
.hero-note { color: var(--muted); font-size: .8rem; margin: 14px 0 0 4px; }
.hero-art { position: relative; isolation: isolate; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 10% -4% -5%; z-index: -1; background: radial-gradient(ellipse at 50% 70%, #fc811634, #fc1e4b16 40%, transparent 68%); }
.hero-art img { width: 88%; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 12px 30px #fc1e4b22); z-index: 1; }
.mascot-shadow { position: absolute; width: 70%; height: 9%; bottom: 3%; background: #fc8116; opacity: .28; filter: blur(23px); border-radius: 50%; }
.star { position: absolute; color: var(--accent); text-shadow: 0 0 24px #fc8116aa; z-index: 2; }
.star-one { top: 4%; left: 15%; font-size: 3rem; transform: rotate(-15deg); }
.star-two { right: 0; top: 29%; font-size: 2.5rem; transform: rotate(15deg); }
.star-three { left: 6%; bottom: 22%; font-size: 1.7rem; }
.bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ffde3a, #fc8116 35%, #fc1e4b 75%); box-shadow: 0 0 25px #fc1e4b33; }
.bubble-one { width: 18px; height: 18px; right: 17%; top: 7%; }
.bubble-two { width: 11px; height: 11px; left: 5%; top: 35%; }
.games-section { padding-bottom: 70px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-note { color: var(--muted); font-size: .8rem; padding-bottom: 5px; }
.section-note span { margin-left: 12px; color: var(--accent); }
.featured-game { display: grid; grid-template-columns: .85fr 1.15fr; align-items: stretch; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: linear-gradient(115deg, #39102d, #2c1028); }
.featured-copy { padding: 36px; display: flex; flex-direction: column; align-items: start; }
.featured-copy h3 { font-size: 2.7rem; margin: 20px 0 12px; }
.featured-copy > p:not(.eyebrow) { color: var(--muted); max-width: 42ch; margin-bottom: 24px; }
.featured-copy .button { margin-top: auto; }
.featured-art { display: block; min-height: 300px; overflow: hidden; position: relative; }
.featured-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.abstract-art { width: 100%; height: 100%; min-height: 230px; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 70% 110%, #fc8116a6, transparent 65%), radial-gradient(ellipse at 10% 10%, #fc1e4b77, transparent 65%), #45082d; display: grid; place-items: center; }
.abstract-art::before, .abstract-art::after { content: ""; position: absolute; border: 1px solid #fdc1c744; border-radius: 50%; width: 360px; height: 360px; transform: rotate(-30deg) scaleY(.7); }
.abstract-art::after { width: 520px; height: 520px; }
.art-orb { width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle at 32% 22%, #fff3df, #ffde3a 16%, #fc8116 55%, #fc1e4b 85%); box-shadow: 0 20px 60px #fc811688, inset -12px -12px 24px #45082d66; z-index: 1; }
.art-star { position: absolute; top: 15%; right: 15%; color: var(--accent); font-size: 2.5rem; }
.art-dot { position: absolute; bottom: 16%; left: 17%; width: 28px; height: 28px; border-radius: 50%; background: #fc1e4b; box-shadow: inset 4px 4px 8px #fdc1c788; }
.art-caption { position: absolute; bottom: 16px; right: 20px; font-size: .65rem; letter-spacing: .16em; color: var(--text); text-transform: uppercase; }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 28px 0 0; }
.game-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden; transition: transform 160ms ease, border-color 160ms ease; }
.game-card:hover { transform: translateY(-4px); border-color: #ae5d82; }
.game-card > img, .game-card > .abstract-art { width: 100%; aspect-ratio: 16/10; object-fit: cover; min-height: 0; height: auto; }
.game-card-body { padding: 22px; }
.game-card h3 { margin: 0 0 10px; }
.game-card p { color: var(--muted); font-size: .9rem; }
.card-action { color: var(--accent); display: block; margin-top: 16px; font-weight: bold; }
.status { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid #9a4c6e77; background: #4c19374d; border-radius: 999px; font-size: .72rem; color: #f5c8d4; text-transform: capitalize; }
.empty { border: 1px solid var(--border); border-radius: 24px; padding: 40px; background: var(--surface); }
.empty p { color: var(--muted); margin: 0; }
.about-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; margin-bottom: 0; display: grid; grid-template-columns: 72px 1fr 1fr; align-items: center; gap: 28px; }
.about-section h2 { margin-bottom: 0; }
.about-section > div:last-child { color: var(--muted); font-size: .95rem; }
.about-mark { color: var(--accent); font-size: 4rem; }
.text-link { font-weight: bold; text-decoration: none; }
.text-link span { margin-left: 10px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px; color: var(--muted); font-size: .8rem; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 32px; height: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--muted); text-decoration: none; padding-block: 10px; }
.site-footer a:hover { color: var(--accent); }
.game-page { padding-top: 32px; }
.back-link { display: inline-block; color: var(--muted); text-decoration: none; padding: 8px 0; margin-bottom: 20px; }
.game-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.game-heading h1 { margin: 0; }
.game-heading .eyebrow { margin-bottom: 6px; }
.player { border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: #180715; }
.player-stage { width: 100%; aspect-ratio: 16/9; position: relative; }
.launch-screen { width: 100%; height: 100%; position: relative; display: grid; place-items: center; overflow: hidden; }
.launch-screen > .abstract-art, .launch-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.launch-screen::after { content: ""; position: absolute; inset: 0; background: #21091e77; }
.launch-screen .art-orb { transform: translateX(260px); }
.launch-content { position: relative; z-index: 1; text-align: center; padding: 16px; }
.launch-content h2 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 20px; text-shadow: 0 2px 20px #21091e; }
.launch-content > p:last-child { color: var(--text); font-size: .8rem; margin: 14px 0 0; }
.launch-content .eyebrow { color: var(--text); }
iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; font-size: .8rem; }
.player-label { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.player-actions { display: flex; align-items: center; gap: 16px; }
.player-actions a { color: var(--text); text-decoration: none; padding-block: 12px; }
.player-actions button { background: transparent; font-size: .8rem; padding: 8px 16px; min-height: 44px; }
.game-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.detail-panel { padding: 28px; background: #2c102888; border: 1px solid var(--border); border-radius: 20px; }
.detail-panel h2 { font-size: 1.75rem; }
.detail-panel > p:not(.eyebrow), .detail-panel details p { color: var(--muted); font-size: .95rem; }
.detail-panel summary { padding: 14px 0; cursor: pointer; }
.detail-panel details { border-top: 1px solid var(--border); }
.detail-panel details p { margin-top: 4px; }
.related-section { padding-block: 40px; }
.game-page + .site-footer { margin-top: 36px; border-top: 1px solid var(--border); }
.playing-expanded { overflow: hidden; }
.player.is-expanded { position: fixed; inset: 0; z-index: 30; border: 0; border-radius: 0; display: flex; flex-direction: column; height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.is-expanded .player-stage { flex: 1; min-height: 0; aspect-ratio: auto; }
.is-expanded .player-toolbar { flex: none; }
/* Shared account and policy pages. */
.narrow { max-width: 480px; padding: 48px 0 64px; }
.prose { max-width: 720px; }
.narrow h1 { font-size: 2.7rem; }
.narrow h2 { font-size: 1.6rem; margin-top: 28px; }
.narrow section { margin-top: 32px; }
.prose li { margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row input { flex: 1; min-width: 0; }
input { padding: 12px 16px; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
button:disabled { opacity: .6; cursor: progress; }
button.danger { border-color: #ff879e; color: #ffb0bf; }
.divider { text-align: center; color: var(--muted); margin: 18px 0; }
.notice { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.message[data-kind="error"] { color: #ffb0bf; }
@media (max-width: 1023px) {
  .hero { min-height: 480px; padding-block: 48px; }
  .hero h1 { font-size: clamp(3.3rem, 6.8vw, 4.8rem); }
  .hero-description { font-size: 1rem; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-copy { padding: 28px; }
  .section-note { display: none; }
  .about-section { grid-template-columns: 1fr 1fr; }
  .about-mark { display: none; }
}
@media (max-width: 699px) {
  .site-header, main, .site-footer { width: calc(100% - 40px); }
  .site-header { padding-block: 16px; gap: 12px; }
  .brand { font-size: 1.7rem; gap: 7px; }
  .brand img { width: 38px; height: 38px; }
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu > summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--border); border-radius: 50%; }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .menu-icon { width: 18px; height: 12px; border-top: 2px solid var(--muted); border-bottom: 2px solid var(--muted); position: relative; }
  .menu-icon::after { content: ""; position: absolute; top: 4px; left: 0; width: 18px; border-top: 2px solid var(--muted); }
  .mobile-menu[open] .menu-icon { border: 0; height: 18px; transform: rotate(45deg); }
  .mobile-menu[open] .menu-icon::after { top: 8px; }
  .mobile-menu[open] .menu-icon::before { content: ""; position: absolute; top: 0; left: 8px; height: 18px; border-left: 2px solid var(--muted); }
  .mobile-menu nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: #2c1028; box-shadow: 0 30px 80px #10030be6; display: flex; flex-direction: column; gap: 4px; }
  .mobile-menu nav a { color: var(--text); text-decoration: none; font-family: var(--heading); font-size: 2rem; padding: 8px 0; }
  .mobile-menu nav a:first-child { color: var(--accent); }
  .hero { grid-template-columns: 1fr; padding: 32px 0 14px; gap: 0; text-align: center; }
  .hero .eyebrow { font-size: .62rem; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(2.5rem, 12.3vw, 4.5rem); margin-bottom: 16px; }
  .hero-description { max-width: 32ch; margin: 0 auto 20px; font-size: .95rem; }
  .hero .button { min-height: 50px; }
  .hero-note { margin-top: 10px; font-size: .72rem; }
  .hero-art { width: 185px; max-width: 80%; margin: -3px auto 4px; }
  .hero-art img { width: 88%; }
  .star-one { font-size: 1.9rem; }
  .star-two { font-size: 1.6rem; }
  .star-three { font-size: 1.2rem; }
  .desktop-break { display: none; }
  .section-heading { margin-bottom: 18px; }
  .section-heading h2 { font-size: 1.9rem; }
  .eyebrow { font-size: .64rem; }
  .featured-game { grid-template-columns: 1fr; border-radius: 20px; }
  .featured-art { grid-row: 1; min-height: 190px; max-height: 220px; }
  .featured-art .abstract-art { min-height: 190px; }
  .featured-copy { padding: 24px; }
  .featured-copy h3 { margin: 12px 0; font-size: 2rem; }
  .featured-copy > p:not(.eyebrow) { font-size: .9rem; margin-bottom: 20px; }
  .featured-copy .button { width: 100%; }
  .catalog { grid-template-columns: 1fr; gap: 20px; }
  .games-section { padding-bottom: 40px; }
  .about-section { grid-template-columns: 1fr; gap: 20px; padding-block: 32px; }
  .about-section h2 { font-size: 2rem; }
  .site-footer { flex-direction: column; align-items: start; gap: 16px; padding-block: 24px; }
  .site-footer nav { gap: 24px; }
  .game-page { padding-top: 18px; }
  .back-link { margin-bottom: 12px; font-size: .85rem; }
  .game-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .game-heading h1 { font-size: 2.5rem; }
  .player { border-radius: 16px; }
  .player-stage { aspect-ratio: 4/3; }
  .launch-content h2 { font-size: 2rem; margin-bottom: 14px; }
  .launch-content .eyebrow { display: none; }
  .launch-content > p:last-child { margin-top: 10px; font-size: .7rem; }
  .launch-screen .art-orb { transform: translateX(100px); }
  .player-toolbar { padding: 8px 10px; flex-wrap: wrap; gap: 6px 8px; font-size: .7rem; }
  .player-actions { gap: 10px; margin-left: auto; }
  .player-actions button { font-size: .7rem; padding-inline: 10px; }
  .game-details { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .detail-panel { padding: 22px; }
  .detail-panel h2 { font-size: 1.6rem; }
  .narrow { padding-top: 28px; }
  .narrow h1 { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
