:root {
  --bg-outer: #090d16;
  --bg-surface: #111827;
  --border-subtle: #334155;
  --ink-muted: #64748b;
  --ink-primary: #f8fafc;
  --ink-secondary: #cbd5e1;
  --link-accent: #22d3ee;
  color-scheme: light dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-outer: #eef2f8;
    --bg-surface: #ffffff;
    --border-subtle: #cbd5e1;
    --ink-muted: #64748b;
    --ink-primary: #0f172a;
    --ink-secondary: #334155;
    --link-accent: #0284c7;
  }
}

:root[data-theme="light"] {
  --bg-outer: #eef2f8;
  --bg-surface: #ffffff;
  --border-subtle: #cbd5e1;
  --ink-muted: #64748b;
  --ink-primary: #0f172a;
  --ink-secondary: #334155;
  --link-accent: #0284c7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  src: url("assets/assets/fonts/poppins/Poppins-ExtraBold.ttf") format("truetype");
}

html,
body {
  background-color: var(--bg-outer);
  color: var(--ink-primary);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  padding: 0;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#app-shell {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

:root[data-ads="true"] #app-shell {
  max-width: 1680px;
}

#flutter-host {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}

.seo-crawlable {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.ad-rail {
  align-items: center;
  display: none;
  justify-content: center;
  padding: 16px 8px;
}

.ad-slot-card {
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: 14px;
  color: var(--ink-muted);
  display: flex;
  font-size: 11px;
  height: 600px;
  justify-content: center;
  letter-spacing: 0.06em;
  padding: 12px;
  text-align: center;
  text-transform: uppercase;
  width: 160px;
}

@media (min-width: 1280px) {
  :root[data-ads="true"] #app-shell {
    grid-template-columns: 180px minmax(0, 1fr) 180px;
  }

  :root[data-ads="true"] .ad-rail {
    display: flex;
  }
}
