/*
  Style sheet for Doonutsaur Games website.  
  The design takes inspiration from retro game aesthetics with a modern flair.  
  Light and dark themes are supported via CSS custom properties.  
  Layout uses responsive grid and flexbox to look good on desktop and mobile.  
*/
:root {
  --bg: #0a0c1e;
  --panel: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --highlight: linear-gradient(135deg, #788cff, #50dcc8);
  --radius: 18px;
  --container: 1100px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 72px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f9fafe;
    --panel: rgba(0, 0, 0, 0.05);
    --text: rgba(0, 0, 0, 0.88);
    --muted: rgba(0, 0, 0, 0.60);
    --line: rgba(0, 0, 0, 0.1);
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(120,140,255,0.2), transparent 60%),
              radial-gradient(1000px 500px at 80% 0%, rgba(80,220,200,0.16), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .88; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* skip link for accessibility */
.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 20px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* header */
header.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--highlight);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--panel) 100%, transparent);
}
.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
}
.nav a {
  padding: 8px 10px;
  border-radius: 12px;
}
.nav a:hover {
  background: var(--panel);
  color: var(--text);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 700;
}
.btn-primary {
  border-color: transparent;
  background: var(--highlight);
  color: rgba(0, 0, 0, 0.82);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}

/* hero section */
.hero {
  padding: clamp(40px, 6vw, 84px) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}
.pill {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.12;
  margin: 14px 0 10px;
}
.lead {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--muted);
  margin: 0 0 16px;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}
.meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.meta-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  min-width: 220px;
}
.meta-k {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.meta-v {
  margin-top: 6px;
  font-weight: 800;
}
.preview {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.preview-top {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 60%, transparent);
}
.preview-body {
  padding: 16px;
}
.fake-shot {
  height: 260px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(120, 140, 255, 0.25), rgba(80, 220, 200, 0.18));
  border: 1px dashed color-mix(in srgb, var(--line) 70%, transparent);
  margin-top: 12px;
}

/* general sections */
.section {
  padding: var(--space-6) 0;
}
.section.alt {
  background: color-mix(in srgb, var(--panel) 60%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: clamp(20px, 2.6vw, 30px);
  margin: 0 0 10px;
}
.sub {
  color: var(--muted);
  margin: 0 0 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
  overflow: hidden;
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  color: var(--muted);
  font-weight: 650;
}
.prose {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
}
.prose h3,
.prose h2 {
  margin-top: 18px;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose a {
  text-decoration: underline;
}
.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  list-style: disc inside;
}
.list li {
  margin: 8px 0;
}
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}
.small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}

/* Logo image inserted in place of brand dot */
/* Logo image inserted in place of brand dot */
.logo {
  /* Increase logo size for better visibility, while keeping aspect ratio */
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 10px;
}

/* simplified hero image styling */
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* icons list in join the fun section */
.icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: background 0.2s, transform 0.2s;
}
.icons a:hover {
  background: color-mix(in srgb, var(--panel) 40%, transparent);
  transform: translateY(-2px);
}
/* Scale down SVG icons to a comfortable size */
.icons svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}