* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f3eefb;
  background: radial-gradient(1000px 600px at 15% -10%, #4a2a7a, transparent 60%), radial-gradient(800px 600px at 110% 100%, #7a2a5c, transparent 60%), #140f24;
  background-attachment: fixed;
  min-height: 100vh;
}
.hub-top { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); backdrop-filter: blur(10px); position: sticky; top: 0; }
.brand { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.4rem; display: flex; align-items: center; gap: 0.5rem; }
.right { display: flex; align-items: center; gap: 0.6rem; }
.who { color: rgba(243,238,251,0.7); }
button { font: inherit; cursor: pointer; border-radius: 12px; padding: 0.55em 1em; border: 1px solid rgba(255,255,255,0.18); color: inherit; background: rgba(255,255,255,0.06); transition: transform 0.12s, background 0.2s; }
button:hover { transform: translateY(-1px); background: rgba(255,255,255,0.12); }
button.primary { background: linear-gradient(180deg, #ff7ac3, #ff4fa3); border-color: transparent; font-weight: 800; color: #fff; box-shadow: 0 6px 20px rgba(255,79,163,0.35); }
.hub { max-width: 1100px; margin: 0 auto; padding: 2rem 1.4rem 4rem; }
.hero { text-align: center; margin: 1.5rem 0 2.5rem; }
.hero h1 { font-family: "Fredoka", sans-serif; font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 0.3rem; background: linear-gradient(180deg, #fff, #d9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: rgba(243,238,251,0.7); font-size: 1.1rem; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.tile { display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; text-decoration: none; color: inherit; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 22px; padding: 1.4rem; min-height: 260px; position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.tile::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tile-accent) 45%, transparent), transparent 70%); pointer-events: none; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px color-mix(in srgb, var(--tile-accent) 60%, transparent); border-color: color-mix(in srgb, var(--tile-accent) 60%, transparent); }
.tile.soon { opacity: 0.55; cursor: default; }
.tile.soon:hover { transform: none; box-shadow: none; }
.tile-emoji { font-size: 3rem; line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4)); }
.tile-body h2 { font-family: "Fredoka", sans-serif; margin: 0 0 0.3rem; font-size: 1.7rem; }
.tile-body p { margin: 0; color: rgba(243,238,251,0.72); }
.tile-foot { display: flex; justify-content: space-between; align-items: center; }
.badge { font-size: 0.85rem; padding: 0.25em 0.7em; border-radius: 999px; background: rgba(255,255,255,0.1); }
.play { font-weight: 800; color: var(--tile-accent); }
.dlg { border: 1px solid rgba(255,255,255,0.15); border-radius: 18px; background: #1d1631; color: inherit; padding: 1.4rem; width: min(420px, 92vw); }
.dlg::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.dlg h2 { margin: 0 0 0.8rem; font-family: "Fredoka", sans-serif; }
.dlg form { display: grid; gap: 0.7rem; }
.dlg label { display: grid; gap: 0.3rem; font-size: 0.9rem; color: rgba(243,238,251,0.7); }
.dlg input { font: inherit; padding: 0.6em 0.8em; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.25); color: inherit; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.4rem; }
.msg { min-height: 1.2em; font-size: 0.9rem; }
.msg.error { color: #ff8a8a; }
.msg.ok { color: #8ef0d2; }

/* ---------- login page ---------- */
.login-body { display: grid; place-items: center; }
.login { width: min(420px, 92vw); text-align: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 22px; padding: 1.6rem; backdrop-filter: blur(10px); }
.login h1 { font-family: "Fredoka", sans-serif; font-size: 2.6rem; margin: 0.2rem 0; background: linear-gradient(180deg, #fff, #d9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login .tagline { color: rgba(243,238,251,0.7); margin: 0 0 0.6rem; }
.login-emoji { font-size: 2rem; }
.login form { display: grid; gap: 0.8rem; text-align: left; margin-top: 1rem; }
.login label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; color: rgba(243,238,251,0.7); }
.login input { font: inherit; padding: 0.7em 0.9em; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.25); color: inherit; }
.login .error { background: rgba(255,60,60,0.15); border: 1px solid rgba(255,60,60,0.5); padding: 0.5rem 0.8rem; border-radius: 8px; color: #ffb3b3; }
.login .hint { color: rgba(243,238,251,0.7); font-size: 0.95rem; }
.login a { color: #ff8ac4; }
.login button.primary { width: 100%; font-size: 1.05rem; padding: 0.8em; }
.hidden { display: none !important; }
