/* Arcade Pocket — core tokens & reset */

:root {
  --ap-bg: #0d0f14;
  --ap-surface: #1a1d26;
  --ap-surface-2: #222630;
  --ap-border: rgba(255, 255, 255, 0.08);
  --ap-text: #e5e7eb;
  --ap-text-muted: #9ca3af;
  --ap-blue: #3b82f6;
  --ap-blue-dark: #2563eb;
  --ap-teal: #2dd4bf;
  --ap-teal-dark: #14b8a6;
  --ap-orange: #f97316;
  --ap-green: #22c55e;
  --ap-purple: #a855f7;
  --ap-radius-sm: 12px;
  --ap-radius-md: 16px;
  --ap-radius-lg: 20px;
  --ap-radius-xl: 24px;
  --ap-font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ap-topbar-h: 60px;
  --ap-shell-pad: 14px;
  --ap-max-w: 480px;
  --ap-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --ap-glow: 0 0 20px rgba(59, 130, 246, 0.35);
  --ap-overview-collapsed-h: 300px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ap-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ap-text);
  background: var(--ap-bg);
  min-height: 100dvh;
}

body.ap-no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, p {
  margin: 0;
}

.ap-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ap-blue);
  color: #fff;
  border-radius: var(--ap-radius-sm);
}

.ap-skip:focus {
  left: 1rem;
  top: 1rem;
}

.ap-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ap-shell {
  width: min(100% - var(--ap-shell-pad) * 2, var(--ap-max-w));
  margin-inline: auto;
}

.ap-error {
  padding: 2rem;
  text-align: center;
  color: var(--ap-text-muted);
}

@media (min-width: 768px) {
  :root {
    --ap-max-w: 720px;
    --ap-shell-pad: 20px;
  }
}

@media (min-width: 1024px) {
  :root {
    --ap-max-w: 960px;
  }
}
