/* tinytoyworks.com: the shared look of every page (header, footer, glass cards, buttons, the legal and
   sign-in pages). The game's "Aurora glass" UI: a dark night sky with a purple-blue-teal aurora,
   frosted glass panels, glowing gradient pills, soft white text, Fredoka. The landing page adds home.css. */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --night: #0c0a2b;
  --night-2: #151244;
  --ink: #f6f4ff;
  --dim: #c3bfee;
  --faint: #8f8ac7;
  --glass: rgba(37, 33, 96, 0.58);
  --glass-strong: rgba(28, 25, 78, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-hi: rgba(255, 255, 255, 0.22);
  --purple: #8b5cff;
  --indigo: #5b4dff;
  --blue: #3d8bff;
  --teal: #22d6c0;
  --pink: #ff6fb7;
  --gold: #ffc93a;
  --gold-deep: #f59e0b;
  --bad: #ff8d8d;
  --radius: 26px;
  --shadow: 0 18px 50px rgba(5, 3, 30, 0.55);
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--ink);
  font: 500 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; }
a { color: #9fe9ff; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 22px; margin-top: 28px; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
strong { font-weight: 600; color: #fff; }
.muted { color: var(--dim); }
.small { font-size: 14px; }
.center { text-align: center; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: #2a1a00; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- the sky: a night gradient, two slow aurora ribbons and a few stars (fixed behind everything) ---- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, #2a1d78 0%, rgba(42, 29, 120, 0) 60%),
    linear-gradient(180deg, #120d3d 0%, var(--night) 55%, #08061f 100%); }
.sky::before, .sky::after { content: ""; position: absolute; left: -20%; right: -20%; height: 70vh; filter: blur(60px); opacity: 0.55; }
.sky::before { top: -18vh; background: radial-gradient(40% 50% at 30% 60%, rgba(139, 92, 255, 0.9), transparent 70%), radial-gradient(35% 45% at 62% 40%, rgba(61, 139, 255, 0.75), transparent 70%), radial-gradient(30% 40% at 85% 65%, rgba(34, 214, 192, 0.6), transparent 70%); animation: drift 26s ease-in-out infinite alternate; }
.sky::after { bottom: -40vh; opacity: 0.32; background: radial-gradient(40% 50% at 70% 40%, rgba(255, 111, 183, 0.55), transparent 70%), radial-gradient(40% 50% at 25% 50%, rgba(34, 214, 192, 0.5), transparent 70%); animation: drift 34s ease-in-out infinite alternate-reverse; }
.stars { position: absolute; inset: 0; background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 46% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 78% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 44%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 94% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 38%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 42%, #fff 50%, transparent 51%);
  opacity: 0.55; }
@keyframes drift { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(4%, 3vh, 0) scale(1.08); } }

/* ---- the floating navbar (owner's pick, 2026-10-30): three glass islands that hover over the page, the logo,
   the links and the "Get the game" button, each a bit stronger once you scroll. On phones they fold into one pill
   with a menu. ---- */
body { padding-top: 96px; }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding: 16px 16px 0; pointer-events: none; }
.top-in { position: relative; display: flex; align-items: center; gap: 10px; max-width: 1120px; margin: 0 auto; }
.top-in > * { pointer-events: auto; }
.brand, .links {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%), rgba(22, 18, 66, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 34px rgba(5, 3, 30, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.top.scrolled .brand, .top.scrolled .links { background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%), rgba(16, 13, 52, 0.86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 44px rgba(3, 2, 22, 0.6); }
.brand { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 6px 14px 6px 6px; text-decoration: none; }
.brand-icon { display: block; width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.brand-word { display: block; height: 34px; width: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35)); }
.links { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 5px; }
.links a { position: relative; color: var(--dim); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.links a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.nav-cta { flex: none; min-height: 50px; padding: 10px 24px; font-size: 16px; }
.menu-btn { display: none; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.menu-btn svg { display: block; width: 22px; height: 22px; margin: auto; }
.menu-btn:hover { background: rgba(255, 255, 255, 0.16); }

/* ---- help: a round button bottom right that opens a small panel ---- */
.help { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; }
.help-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 700 16px/1 var(--font); color: #fff; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #a77bff 0%, #6b4dff 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(40, 10, 120, 0.3), 0 10px 30px rgba(91, 77, 255, 0.55);
  text-shadow: 0 1px 2px rgba(40, 10, 120, 0.5);
  transition: transform 0.15s ease, filter 0.2s;
}
.help-btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); }
.help-btn svg { width: 26px; height: 26px; color: #fff; }
.help.open .help-btn { filter: brightness(0.95); }
.help .help-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(340px, calc(100vw - 36px)); padding: 18px 14px 12px; border-radius: 24px; transform-origin: 90% 100%; animation: pop 0.18s ease-out; }
.help-title { margin: 0 6px 4px; font: 700 21px/1.2 var(--font); color: #fff; }
.help-text { margin: 0 6px 12px; font-size: 15px; color: var(--dim); }
.help-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin-top: 4px; border-radius: 16px; text-decoration: none; color: #fff; transition: background 0.2s; }
.help-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.help-link svg { flex: none; width: 38px; height: 38px; padding: 8px; box-sizing: border-box; border-radius: 12px; color: #fff; background: linear-gradient(135deg, rgba(139, 92, 255, 0.8), rgba(61, 139, 255, 0.7)); }
.help-link span { display: flex; flex-direction: column; min-width: 0; }
.help-link b { font: 700 16.5px/1.2 var(--font); }
.help-link small { font-size: 13.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---- glass ---- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 40%), var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.glass.strong { background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 40%), var(--glass-strong); }

/* ---- page frame for the simple pages ---- */
.wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 28px 16px 40px; flex: 1; }
.wrap.wide { max-width: 800px; }
.card { padding: 30px 26px; margin-bottom: 18px; }
.card-art { display: block; width: 96px; height: 96px; margin: -4px auto 16px; border-radius: 24px; box-shadow: 0 10px 30px rgba(139, 92, 255, 0.45); }

/* legal and help pages: comfortable reading */
.legal { padding: clamp(24px, 4vw, 44px); }
.legal h1 { margin-bottom: 6px; }
.legal p, .legal li { font: 400 16.5px/1.65 var(--text); color: #e7e4ff; }
.legal strong { color: #fff; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--teal); }
.legal h2 { font-size: 21px; color: #fff; }
.legal .updated { font: 500 14px/1.4 var(--font); color: var(--faint); margin-bottom: 22px; }
.legal .lead { font-size: 18px; }
.qa { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 16px 0 4px; }
.qa h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(34, 214, 192, 0.1); border: 1px solid rgba(34, 214, 192, 0.35); margin: 0 0 18px; }
.callout p { margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; min-height: 32px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--font); color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue)); box-shadow: 0 4px 14px rgba(91, 77, 255, 0.5); }

/* ---- buttons: glowing gradient pills like the game's ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 700 18px/1.1 var(--font); color: #fff; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #34ecd0 0%, #18b8c9 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(0, 60, 80, 0.25), 0 8px 26px rgba(34, 214, 192, 0.45);
  text-shadow: 0 1px 2px rgba(0, 50, 70, 0.45);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s;
}
.btn:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.block { display: flex; width: 100%; }
.btn.purple { background: linear-gradient(180deg, #a77bff 0%, #6b4dff 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(40, 10, 120, 0.3), 0 8px 26px rgba(139, 92, 255, 0.5); text-shadow: 0 1px 2px rgba(40, 10, 120, 0.5); }
.btn.white { background: #fff; color: #111; text-shadow: none; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
.btn.white:hover { color: #000; }
.btn.ghost { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); text-shadow: none; }
.btn.small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---- store badges ---- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 22px 9px 18px; border-radius: 18px; text-decoration: none; color: #fff;
  background: rgba(8, 6, 30, 0.72); border: 1px solid rgba(255, 255, 255, 0.24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, border-color 0.2s, background 0.2s; }
a.store:hover { color: #fff; transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); background: rgba(8, 6, 30, 0.9); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; font: 700 20px/1.05 var(--font); }
.store small { font: 500 12px/1.2 var(--font); color: var(--dim); letter-spacing: 0.02em; }
.soon { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; border-radius: 999px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); }
.soon .soon-icons { display: inline-flex; gap: 6px; }
.soon .soon-icons svg { width: 22px; height: 22px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }

/* ---- forms and the sign-in page ---- */
.signin { text-align: center; }
.signin .ways { display: grid; gap: 12px; margin: 22px 0 6px; }
.btn.apple { background: #fff; color: #000; text-shadow: none; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); font: 600 18px/1 -apple-system, system-ui, sans-serif; }
.btn.apple:hover { color: #000; }
.btn.apple svg { width: 20px; height: 20px; margin-top: -3px; }
.google-slot { display: flex; justify-content: center; min-height: 52px; align-items: center; }
.google-slot iframe { margin: 0 auto !important; }
.error { color: var(--bad); font-weight: 600; font-size: 15px; margin: 12px 0 0; }
.note { text-align: left; background: rgba(255, 201, 58, 0.09); border: 1px solid rgba(255, 201, 58, 0.35); border-radius: 18px; padding: 14px 16px; font-size: 15px; color: #fff3d0; margin: 18px 0 0; }
.note p:last-child { margin: 0; }
.dev { margin-top: 14px; }
.dev .btn { width: 100%; }
.fine { font-size: 13.5px; color: var(--faint); margin: 18px 0 0; }
.fine a { color: var(--dim); }
.code { display: inline-block; font: 700 28px/1 var(--font); letter-spacing: 0.16em; padding: 12px 18px; margin-top: 6px; color: #fff; background: rgba(255, 255, 255, 0.08); border: 2px dashed rgba(255, 255, 255, 0.3); border-radius: 14px; }
.spinner { width: 46px; height: 46px; margin: 8px auto 14px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.15); border-top-color: var(--teal); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- footer ---- */
.foot { position: relative; margin-top: auto; padding: 34px 20px 40px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(6, 5, 24, 0.55); }
.foot-in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 700 18px/1.1 var(--font); }
.foot-brand img { width: 40px; height: 40px; border-radius: 11px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot nav a { color: var(--dim); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.foot nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.made { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--faint); }
.made a { display: inline-flex; border-radius: 6px; }
.made img { height: 15px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.copy { width: 100%; font-size: 13px; color: var(--faint); margin: 0; }

/* phones and small tablets: the islands fold into one pill (logo, button, menu) and the links drop down from it */
@media (max-width: 860px) {
  .top-in { gap: 8px; padding: 7px 7px 7px 8px; border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%), rgba(22, 18, 66, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 34px rgba(5, 3, 30, 0.45);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); transition: background 0.3s ease; }
  .top.scrolled .top-in { background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%), rgba(16, 13, 52, 0.86); }
  .brand, .top.scrolled .brand { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 2px 6px 2px 2px; }
  .menu-btn { display: block; }
  .links, .top.scrolled .links { position: absolute; left: 0; right: 0; top: calc(100% + 10px); display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px; border-radius: 24px;
    background: linear-gradient(180deg, #221c66, #15114a); -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 20px 50px rgba(3, 2, 22, 0.7); }
  .top.open .links { display: flex; animation: pop 0.18s ease-out; }
  .links a { font-size: 17px; padding: 13px 16px; }
  .nav-cta { margin-left: auto; min-height: 44px; padding: 8px 18px; font-size: 15.5px; }
}
@media (max-width: 720px) {
  body { padding-top: 84px; }
  .top { padding: 10px 12px 0; }
  .brand-word { height: 30px; }
  .made { margin-left: 0; }
  .card { padding: 26px 20px; }
  .help-btn { width: 56px; padding: 0; justify-content: center; }
  .help-btn span { display: none; }
}
@media (max-width: 380px) {
  .brand-word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(30, 27, 84, 0.94); }
}
