/* ClassicFortune — base.css : reset, variables, typography, age gate */

:root {
  --bg: #101B33;
  --surface: #182645;
  --accent: #C98A6B;
  --bg-light: #F6F4EE;
  --text-on-light: #161A22;
  --text-on-dark: #EDEFF5;
  --goa: #2C6E5B;
  --sikkim: #B5652F;
  --daman: #7A4E9E;
  --warn: #B4531F;
  --font-head: 'Bitter', Georgia, serif;
  --font-body: 'Public Sans', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-on-dark);
}

p { margin: 0 0 1em 0; }

[hidden] { display: none !important; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: var(--text-on-light);
  padding: 0.75em 1.25em;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Age gate overlay */
#age-gate {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
#age-gate .age-box {
  background: var(--surface);
  border: 1px solid rgba(237, 239, 245, 0.15);
  border-radius: 10px;
  max-width: 460px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}
#age-gate h2 { margin-top: 0; }
#age-gate p { color: var(--text-on-dark); }
#age-gate .age-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
#age-gate button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75em 1.75em;
  border-radius: 6px;
  border: 2px solid var(--accent);
  cursor: pointer;
}
#age-gate #age-yes {
  background: var(--accent);
  color: var(--text-on-light);
}
#age-gate #age-no {
  background: transparent;
  color: var(--text-on-dark);
}

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.note-verify {
  font-size: 0.85em;
  color: var(--accent);
  font-style: italic;
}

table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  border: 1px solid rgba(237,239,245,0.2);
  padding: 0.6em 0.8em;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
th { font-family: var(--font-head); }
