/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---------- PALETTE – Abyss Blue & Crimson ---------- */
  --a-abyss:     #050d1f;          /* page background */
  --a-deep:      #0a1730;          /* darker section */
  --a-slab:      #0f2144;          /* card slab */
  --a-blue:      #4596f7;          /* electric blue – main accent */
  --a-blue-dk:   #1d4ed8;          /* deep blue */
  --a-red:       #e11d48;          /* crimson – CTA (logo) */
  --a-red-hot:   #f43f5e;          /* bright red */
  --a-gold:      #fbbf24;          /* gold for bonus text */
  --a-body:      #c9d8ef;          /* body text */
  --a-faint:     #7d95ba;          /* muted */
  --a-white:     #f4f8ff;          /* near-white */

  /* ---------- TYPOGRAPHY ---------- */
  --type-body:  'Inter', 'Segoe UI', Arial, sans-serif;
  --type-head:  'Space Grotesk', var(--type-body);

  /* ---------- LAYOUT ---------- */
  --bend:    10px;
  --span-w:  1150px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--type-body);
  background: var(--a-abyss);
  color: var(--a-body);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--a-blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--a-red-hot); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.frame { width: 93%; max-width: var(--span-w); margin: 0 auto; }

/* ===== MASTHEAD ===== */
.masthead {
  background: rgba(5, 13, 31, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--a-red);
  padding: .95rem 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 6px 26px rgba(225, 29, 72, 0.10);
}
.masthead .frame {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.mast-brand {
  font-family: var(--type-head);
  font-size: 1.22rem; font-weight: 700;
  color: var(--a-white);
  display: flex; align-items: center; gap: .6rem;
}
.mast-brand:hover { text-decoration: none; color: var(--a-blue); }
.mast-logo {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(69, 150, 247, 0.45);
}

.top-menu { display: flex; gap: 1.9rem; }
.top-menu a {
  color: var(--a-body); font-weight: 600; font-size: .88rem;
  transition: color .2s;
  padding: .3rem .1rem;
  position: relative;
}
.top-menu a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--a-red), var(--a-blue)); transition: width .3s;
}
.top-menu a:hover::after, .top-menu a.here::after { width: 100%; }
.top-menu a:hover, .top-menu a.here { color: var(--a-white); text-decoration: none; }

.burger { display: none; background: none; border: none; color: var(--a-body); font-size: 1.5rem; cursor: pointer; }

/* ===== TRAIL ===== */
.trail {
  padding: .7rem 0; font-size: .8rem; color: #6d84a8;
  border-bottom: 1px solid rgba(69, 150, 247, 0.10);
}
.trail a { color: #6d84a8; }
.trail span { color: var(--a-blue); }

/* ===== SPLASH ===== */
.splash {
  padding: 3.75rem 0 2.75rem;
  text-align: center;
  background: linear-gradient(180deg, var(--a-deep) 0%, var(--a-abyss) 100%);
  border-bottom: 1px solid rgba(69, 150, 247, 0.14);
  position: relative;
  overflow: hidden;
}
.splash::before, .splash::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
}
.splash::before {
  background: rgba(69, 150, 247, 0.14);
  top: -240px; left: 5%;
  animation: tide-a 18s ease-in-out infinite alternate;
}
.splash::after {
  background: rgba(225, 29, 72, 0.10);
  top: -180px; right: 3%;
  animation: tide-b 22s ease-in-out infinite alternate;
}
@keyframes tide-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(100px, 45px) scale(1.14); }
}
@keyframes tide-b {
  from { transform: translate(0, 0) scale(1.08); }
  to   { transform: translate(-90px, 50px) scale(0.92); }
}
.splash .frame { position: relative; z-index: 1; }
.splash-tag {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--a-blue);
  background: rgba(69, 150, 247, 0.09);
  border: 1px solid rgba(69, 150, 247, 0.30);
  border-radius: 6px;
  padding: .32rem 1.05rem;
  margin-bottom: 1.1rem;
}
.splash h1 {
  font-family: var(--type-head);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--a-white);
  margin-bottom: 1rem;
  line-height: 1.22;
}
.splash h1 em { color: var(--a-red-hot); font-style: normal; }
.splash-lead {
  max-width: 720px; margin: 0 auto;
  font-size: 1rem; color: #8ba3c7;
}

/* ===== STAT ROW ===== */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 1.4rem 0;
  margin: 1.3rem auto;
}
.stat-pill {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  font-size: .86rem; font-weight: 600; color: #8ba3c7;
  background: var(--a-slab); border-radius: 40px; padding: .85rem .5rem;
  border: 1px solid rgba(69, 150, 247, 0.14);
  transition: border-color .3s, color .3s;
}
.stat-pill:hover { border-color: var(--a-blue); color: var(--a-body); }
.stat-pill .p-ico { font-size: 1.22rem; }
.stat-pill .p-ico.fin { color: var(--a-blue); }
.stat-pill .p-ico.red { color: var(--a-red-hot); }

/* ===== CASINO ROWS ===== */
.list-zone { display: flex; flex-direction: column; gap: 1.6rem; padding: 2.25rem 0; }

.casino-row {
  background: linear-gradient(155deg, var(--a-slab) 0%, #0a1a38 100%);
  border-radius: var(--bend);
  padding: 1.6rem 1.9rem;
  display: grid;
  grid-template-columns: 150px 1fr 200px;
  gap: 2rem;
  align-items: center;
  border: 1px solid rgba(69, 150, 247, 0.14);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
}
.casino-row:hover {
  border-color: var(--a-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(69, 150, 247, 0.16);
}

/* animated border sweep on hover */
.casino-row::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 18%, rgba(244, 63, 94, 0.85) 42%, rgba(69, 150, 247, 0.85) 58%, transparent 82%);
  background-size: 260% 260%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.casino-row:hover::after {
  opacity: 1;
  animation: edge-flow 2.6s linear infinite;
}
@keyframes edge-flow {
  from { background-position: 0% 50%; }
  to   { background-position: 260% 50%; }
}

.casino-row .crown-tag {
  position: absolute; top: -13px; right: 1.4rem;
  background: linear-gradient(135deg, var(--a-red-hot) 0%, var(--a-red) 100%);
  color: #fff; font-size: .72rem; font-weight: 800;
  padding: 4px 14px; border-radius: 4px;
  letter-spacing: .4px;
  animation: crown-glow 3s ease-in-out infinite;
}
@keyframes crown-glow {
  0%, 100% { box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35); }
  50%      { box-shadow: 0 4px 22px rgba(225, 29, 72, 0.60); }
}

.ident-col {
  display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center;
}
.ident-col .logo-box {
  width: 104px; height: 104px; border-radius: var(--bend);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(69, 150, 247, 0.35);
  overflow: hidden;
  background: #061024;
  box-shadow: 0 0 22px rgba(69, 150, 247, 0.15);
}
.ident-col h3 { font-family: var(--type-head); font-size: 1.05rem; color: var(--a-white); }
.ident-col .rank-stars { color: var(--a-gold); font-size: .88rem; display: flex; align-items: center; gap: .4rem; }
.ident-col .rank-val {
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--a-white);
  font-weight: 800; font-size: .78rem;
  padding: 1px 8px; border-radius: 4px;
}

.data-col { display: flex; flex-direction: column; gap: .65rem; }
.data-col .bonus-strip {
  font-size: 1.05rem; font-weight: 800; color: var(--a-gold);
  padding: .45rem .85rem; background: rgba(251, 191, 36, 0.07);
  border-radius: 6px;
  border-left: 3px solid var(--a-gold);
  display: inline-block;
}
.data-col .detail-line { font-size: .82rem; color: #7d95ba; }
.data-col .detail-line b { color: var(--a-body); }
.data-col .genre-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.data-col .genre-pill {
  background: rgba(69, 150, 247, 0.08); padding: 3px 11px; border-radius: 4px;
  font-size: .72rem; font-weight: 600; color: var(--a-blue);
  border: 1px solid rgba(69, 150, 247, 0.20);
}
.data-col .pay-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.data-col .paytag {
  background: var(--a-deep); padding: 3px 9px; border-radius: 12px;
  font-size: .67rem; color: var(--a-body);
  border: 1px solid rgba(125, 149, 186, 0.18);
}

.cta-col {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.grab-btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 8px;
  font-weight: 800; font-size: .94rem; text-align: center; cursor: pointer;
  transition: filter .2s, transform .15s, box-shadow .2s; border: none; width: 100%;
}
.grab-btn:hover { filter: brightness(1.1); transform: translateY(-2px); text-decoration: none; }
.grab-btn--red {
  background: linear-gradient(135deg, var(--a-red-hot) 0%, var(--a-red) 100%);
  color: #fff;
  animation: grab-pulse 2.8s ease-in-out infinite;
}
.grab-btn--red:hover { color: #fff; box-shadow: 0 8px 28px rgba(225, 29, 72, 0.50); }
@keyframes grab-pulse {
  0%, 100% { box-shadow: 0 5px 18px rgba(225, 29, 72, 0.32); }
  50%      { box-shadow: 0 5px 30px rgba(225, 29, 72, 0.58); }
}
.cta-col .cta-note { font-size: .76rem; color: #6d84a8; }

/* ===== COPY ZONES ===== */
.copy-zone { padding: 3rem 0; }
.copy-zone h2 {
  font-family: var(--type-head);
  font-size: 1.45rem; color: var(--a-white);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(225, 29, 72, 0.35);
  display: inline-block;
}
.copy-zone h2:not(:first-child) { margin-top: 2.25rem; }
.copy-zone p { margin-bottom: 1rem; color: #8ba3c7; }
.copy-zone ul { margin-bottom: 1.5rem; }
.copy-zone ul li {
  padding: .35rem 0 .35rem 1.35rem; position: relative; color: #8ba3c7;
}
.copy-zone ul li::before {
  content: '\2192'; position: absolute; left: 0; top: .35rem;
  color: var(--a-red-hot); font-size: .85rem;
}
.copy-zone ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.copy-zone ol li { padding: .3rem 0; color: #8ba3c7; list-style: decimal; }
.copy-zone blockquote {
  background: rgba(225, 29, 72, 0.07); border-left: 4px solid var(--a-red);
  padding: 1rem 1.25rem; border-radius: 0 var(--bend) var(--bend) 0;
  margin: 1.25rem 0; font-size: .92rem;
}
.copy-zone h3 { color: var(--a-white); font-size: 1.02rem; margin: 1rem 0 .4rem; }
.copy-zone hr { border: none; border-top: 1px solid rgba(69, 150, 247, 0.16); margin: 2rem 0 1rem; }

.info-mesh {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; margin-top: 1.5rem;
}
.mesh-card {
  background: var(--a-slab); border-radius: var(--bend); padding: 1.6rem;
  border: 1px solid rgba(69, 150, 247, 0.10);
  border-left: 4px solid rgba(225, 29, 72, 0.45);
  transition: border-color .3s, transform .3s;
}
.mesh-card:hover { border-color: var(--a-blue); transform: translateY(-3px); }
.mesh-card h3 { color: var(--a-blue); margin: 0 0 .5rem; font-size: 1rem; font-family: var(--type-head); }
.mesh-card p { font-size: .87rem; margin: 0; }

/* ===== PAGE END ===== */
.page-end {
  background: linear-gradient(180deg, var(--a-deep) 0%, #030918 100%);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem; border-top: 2px solid var(--a-red);
}
.end-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.page-end h4 { color: var(--a-blue); margin-bottom: .8rem; font-family: var(--type-head); }
.page-end ul li { margin-bottom: .45rem; }
.page-end ul a { color: #8ba3c7; font-size: .87rem; }
.page-end ul a:hover { color: var(--a-blue); }
.end-line {
  text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(69, 150, 247, 0.14);
  font-size: .78rem; color: #6d84a8;
}
.end-fine {
  max-width: 820px; margin: 0 auto .75rem; font-size: .72rem;
}

/* ===== ERROR PAGE ===== */
.lost-page {
  min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1rem;
}
.lost-page .lost-code {
  font-family: var(--type-head);
  font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 700;
  color: var(--a-red-hot); line-height: 1;
  text-shadow: 0 0 45px rgba(225, 29, 72, 0.40);
  animation: lost-float 4s ease-in-out infinite;
}
@keyframes lost-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.lost-page h1 { font-family: var(--type-head); color: var(--a-white); font-size: 1.6rem; margin: 1rem 0 .5rem; }
.lost-page p { color: #8ba3c7; max-width: 480px; margin-bottom: 1.75rem; }
.lost-page .grab-btn { width: auto; padding: .85rem 2.4rem; }

/* ===== SCROLL REVEAL ===== */
.fx:not(.lit) {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}
.fx {
  transition: opacity .6s cubic-bezier(.22,.75,.35,1), transform .6s cubic-bezier(.22,.75,.35,1),
              border-color .3s, box-shadow .3s;
}
.casino-row.lit .rank-val {
  animation: val-pop .5s cubic-bezier(.3,1.6,.5,1) .35s backwards;
}
@keyframes val-pop {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fx:not(.lit) { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .casino-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }
  .ident-col { flex-direction: row; justify-content: center; }
  .data-col .genre-row, .data-col .pay-row { justify-content: center; }
  .data-col .bonus-strip { display: block; }
  .cta-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .grab-btn { width: auto; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .info-mesh { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top-menu { display: none; }
  .top-menu.open { display: flex; flex-direction: column; width: 100%; }
  .burger { display: block; }
  .splash h1 { font-size: 1.4rem; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .casino-row { padding: 1.4rem 1.1rem; }
}
