/* Axton HQ theme: space + candy colors, matches the original axtonvass.com (Fredoka headings, Space Grotesk body). */
:root {
  --bg: #0b1033;
  --bg2: #151c4f;
  --card: #1c2563;
  --card2: #24307a;
  --text: #f4f6ff;
  --muted: #aeb6e8;
  --blue: #2fb3ff;
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --green: #3ee08f;
  --orange: #ff8a3d;
  --purple: #9b6bff;
  --red: #ff5a5f;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --head: "Fredoka", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55;
  background: radial-gradient(1200px 600px at 10% -10%, #3a1d7a 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 10%, #0f5a8a 0%, transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, #070a24 100%) fixed;
  overflow-x: hidden;
}
body::before { /* starfield */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .55;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.5px 1.5px at 140px 80px, #ffd23f, transparent),
    radial-gradient(1.5px 1.5px at 260px 160px, #fff, transparent), radial-gradient(2px 2px at 320px 40px, #9fdcff, transparent),
    radial-gradient(1px 1px at 90px 200px, #fff, transparent);
  background-size: 360px 240px;
}
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
.page { width: min(1180px, 100%); margin: 0 auto; padding: 18px 16px 64px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card {
  background: linear-gradient(160deg, var(--card2), var(--card)); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .08); color: var(--text); text-decoration: none;
  display: block; transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover, a.card:focus-visible, button.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 16px 36px rgba(0, 0, 0, .45); }
.card .emoji { font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 8px; }
.panel { background: rgba(255, 255, 255, .06); border-radius: var(--radius); padding: 16px; border: 1px solid rgba(255, 255, 255, .08); }
.btn, .btn-alt {
  font-family: var(--head); font-weight: 600; font-size: 1.05rem; border: 0; border-radius: 999px; padding: 12px 22px;
  min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: transform .1s ease, filter .1s ease;
}
.btn { background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; box-shadow: 0 6px 0 #b8306f; }
.btn-alt { background: rgba(255, 255, 255, .12); color: var(--text); box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.btn:active, .btn-alt:active { transform: translateY(4px); box-shadow: none; }
.btn:hover, .btn-alt:hover { filter: brightness(1.1); }
.btn[disabled], .btn-alt[disabled] { opacity: .5; cursor: not-allowed; }
.chip, .pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(255, 255, 255, .12); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 8px; font-size: .78rem; font-weight: 700; background: var(--yellow); color: #2a1d00; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
input, select, textarea { font: inherit; color: var(--text); background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 10px 14px; min-height: 44px; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); outline: none; }
/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top)); background: rgba(11, 16, 51, .82); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar .title { font-family: var(--head); font-weight: 700; font-size: 1.15rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a, .topbar button { min-height: 40px; padding: 8px 14px; font-size: .95rem; }
@media (max-width: 480px) { body { font-size: 16px; } .topbar .hide-sm { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
