/* socialcasinoboard.com — paper_indigo */

:root {
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-alt: #EEF1F8;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #0EA5E9;
  --accent: #F97316;
  --text: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: rgba(17, 24, 39, 0.10);
  --radius: 12px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --max: 720px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(79, 70, 229, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 165, 233, 0.10), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(249, 115, 22, 0.06), transparent 45%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 252, 0.85);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__name {
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary);
}

/* Main */

.site-main {
  flex: 1;
  width: 100%;
}

/* Hero / coming soon */

.hero {
  min-height: calc(100vh - var(--header-h) - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(79, 70, 229, 0.04) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 48px,
      rgba(17, 24, 39, 0.015) 48px,
      rgba(17, 24, 39, 0.015) 49px
    );
  pointer-events: none;
  animation: wash-in 1.2s ease-out both;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  text-align: center;
}

.hero__brand {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  animation: rise 0.8s ease-out both;
}

.hero__brand span {
  display: block;
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: rise 0.8s ease-out 0.12s both;
}

.hero__lead {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  animation: rise 0.8s ease-out 0.24s both;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
  animation: rise 0.8s ease-out 0.36s both;
}

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

.notify__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.notify__input::placeholder {
  color: var(--text-muted);
}

.notify__btn {
  flex: 0 0 auto;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notify__btn:hover {
  background: var(--primary-hover);
}

.notify__btn:active {
  transform: translateY(1px);
}

.notify__note {
  flex-basis: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.3em;
}

.notify__note.is-success {
  color: var(--primary);
}

/* Legal pages */

.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal .meta {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 1.5rem 1.25rem;
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--primary);
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 200;
  max-width: 420px;
  margin-left: auto;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cookie-banner p a {
  color: var(--primary);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__actions button {
  flex: 1 1 auto;
  min-width: 6rem;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-accept {
  background: var(--primary);
  color: #fff;
}

.btn-accept:hover {
  background: var(--primary-hover);
}

.btn-decline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-decline:hover {
  background: var(--surface-alt);
  color: var(--text);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wash-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 480px) {
  .brand__name {
    font-size: 0.85rem;
  }

  .nav {
    gap: 0.85rem;
  }

  .notify {
    flex-direction: column;
  }

  .notify__btn {
    width: 100%;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
