/* Top Casino Safe — resets, design tokens and shared page furniture */

:root {
  --ink: #131a2b;
  --ink-soft: #4d5a75;
  --ink-faint: #7c88a1;

  --accent: #38509f;
  --accent-strong: #2a3d7d;
  --accent-tint: #e9eefa;
  --accent-line: #c6d2ee;
  --detail: #b4d92c;

  --page: #f6f8fc;
  --surface: #ffffff;
  --surface-alt: #f0f4fb;
  --line: #dae1ee;
  --line-soft: #e7ecf6;

  --shadow-inner: inset 0 1px 2px rgba(19, 26, 43, .05);

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;

  --radius: 12px;
  --radius-sm: 8px;
  --notch: 20px;

  --container: 1120px;
  --prose: 68ch;
  --age-h: 40px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.32rem + 1.1vw, 2.25rem); }
h3 { font-size: clamp(1.18rem, 1.08rem + .4vw, 1.38rem); }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p, ul, ol, dl, figure, table { margin: 0 0 var(--s-4); }
li { margin-bottom: var(--s-2); }
strong { font-weight: 700; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--accent-strong); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.prose { max-width: var(--prose); }

.kicker {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-3);
}

.kicker span { color: var(--detail); }

.section { padding-block: clamp(2.75rem, 5vw, 4.5rem); }

/* Short centred accent rule, used to separate major sections */
.rule {
  width: 56px;
  height: 3px;
  margin: 0 auto;
  background: var(--accent);
  border: 0;
}

.notch {
  background: var(--line);
  padding: 1px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.notch > .notch__body {
  background: var(--surface);
  box-shadow: var(--shadow-inner);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  height: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: .68rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn--block { width: 100%; }

.btn--quiet {
  border-color: var(--line);
  color: var(--ink-soft);
  font-weight: 600;
}

.btn--quiet:hover {
  background: var(--surface-alt);
  color: var(--ink);
  border-color: var(--accent-line);
}

.chip {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
}

.chip--plain {
  background: var(--surface-alt);
  color: var(--ink-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}

.chip-row li { margin: 0; }

.fineprint {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.figure {
  margin: var(--s-6) 0;
}

.figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.figure figcaption {
  margin-top: var(--s-2);
  font-size: .85rem;
  color: var(--ink-faint);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Age notice: pinned to the top of every page, never a modal ---------- */

.agebar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #1b2438;
  color: #dfe6f4;
  font-size: .82rem;
  line-height: 1.4;
}

.agebar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  padding-block: .55rem;
}

.agebar__inner p {
  margin: 0;
  flex: 1 1 22rem;
}

.agebar__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: .05rem .35rem;
  border: 1px solid #6f7f9f;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: #fff;
}

.agebar a { color: #fff; }

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header.is-stuck {
  position: fixed;
  top: var(--age-h);
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(19, 26, 43, .08);
  transform: translateY(-6px);
  opacity: 0;
  animation: header-drop .18s ease-out forwards;
}

@keyframes header-drop {
  to { transform: translateY(0); opacity: 1; }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-4);
}

.site-header.is-stuck .site-header__inner { padding-block: .55rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 34px; height: 34px; }

.site-header.is-stuck .brand img { width: 28px; height: 28px; }

.brand__name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.brand__role {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.site-header.is-stuck .brand__role { display: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li { margin: 0; }

.site-nav a {
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  padding-block: .2rem;
}

.site-nav a:hover { color: var(--accent); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (max-width: 860px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
  }

  .site-nav ul { gap: var(--s-2) var(--s-4); }
  .site-nav a { font-size: .9rem; }
}

/* ---------- Page header band (inner routes) ---------- */

.page-head {
  background-color: #eef2fa;
  background-image: url("/assets/aurora-band.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.page-head__inner {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.page-head h1 { max-width: 24ch; }

.page-head p {
  margin-bottom: 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.breadcrumb {
  margin: 0 0 var(--s-4);
  font-size: .85rem;
  color: var(--ink-soft);
}

.breadcrumb a { color: var(--accent); }

/* ---------- Safety & Support (footer section, always expanded) ---------- */

.safety {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}

.safety__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.safety__head h2 { margin: 0; font-size: 1.5rem; }

.safety__head p {
  margin: 0;
  max-width: 46ch;
  font-size: .92rem;
  color: var(--ink-soft);
}

.safety__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-4);
}

.resource {
  --notch: 16px;
  display: block;
}

.resource .notch__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  height: 100%;
  text-decoration: none;
  color: inherit;
}

a.resource:hover .notch__body { background: var(--accent-tint); }

.resource__logo {
  height: 30px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  object-position: left center;
}

.resource__name {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
}

.resource__text {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #131a2b;
  color: #c3cddf;
  padding-block: clamp(2.5rem, 4vw, 3.5rem) var(--s-6);
  font-size: .92rem;
}

.site-footer a {
  color: #eaf0fb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover { color: #fff; }

.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer__brand img { width: 40px; height: 40px; }

.footer__brand-text { max-width: 58ch; }

.footer__brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: var(--s-1);
}

.footer__brand-text p { margin: 0; line-height: 1.55; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s-5);
  padding-block: var(--s-5);
}

.footer__cols h2 {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8fa0be;
  margin-bottom: var(--s-3);
}

.footer__cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__cols li { margin-bottom: var(--s-2); }

.footer__legal {
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
  line-height: 1.6;
  color: #97a5bf;
}

.footer__legal p { margin-bottom: var(--s-3); }
.footer__legal p:last-child { margin-bottom: 0; }

/* ---------- Cookie consent ---------- */

.cookie {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 70;
  max-width: 640px;
  margin-inline: auto;
  box-shadow: 0 12px 30px rgba(19, 26, 43, .18);
}

.cookie[hidden] { display: none; }

.cookie .notch__body { padding: var(--s-4) var(--s-5); }

.cookie h2 {
  font-size: 1.1rem;
  margin-bottom: var(--s-2);
}

.cookie p {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.cookie__actions .btn { font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
