/* SpinJoyRide — site theme. 60 dark petrol / 30 turquoise #1fe2a5 / 10 amber. */
:root {
  --bg: #061a1c;
  --bg-deep: #03100f;
  --surface: #0b2427;
  --surface-2: #113238;
  --line: #1c474c;
  --line-soft: #14373b;
  --text: #e4faf3;
  --muted: #9cc4bd;
  --muted-dim: #6d958f;
  --brand: #1fe2a5;
  --brand-deep: #12b585;
  --brand-ink: #032a1f;
  --hot: #ff9f1c;
  --hot-deep: #e8870a;
  --hot-ink: #2a1600;
  --accent: #1fe2a5;
  --accent-2: #8af5d6;
  --warn: #ffc24b;
  --radius: 16px;
  --radius-sm: 9px;
  --maxw: 1200px;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(1200px 500px at 85% -10%, rgba(31,226,165,.10), transparent 60%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: #fff; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(3,16,15,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hdr { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 1.32rem; color: #fff; letter-spacing: -.02em; }
.logo-word b { color: var(--brand); font-weight: 800; }
.search { position: relative; flex: 1; max-width: 440px; margin-left: auto; display: flex; }
.search input {
  width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 10px 46px 10px 18px; font: inherit; font-size: .95rem;
}
.search input::placeholder { color: var(--muted-dim); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,226,165,.18); }
.search button {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 38px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); cursor: pointer; display: grid; place-items: center;
}
.search button svg { width: 18px; height: 18px; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 24px 50px -20px #000; z-index: 60;
}
.search-results a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a.is-active { background: var(--surface-2); }
.search-results img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.search-results small { display: block; color: var(--muted-dim); font-size: .78rem; }
.search-results .empty { padding: 12px; color: var(--muted); font-size: .9rem; }
.hdr-nav { display: flex; gap: 4px; }
.hdr-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 999px; }
.hdr-nav a:hover, .hdr-nav a[aria-current] { color: #fff; background: var(--surface-2); }

/* turquoise category band (30%) */
.catbar { background: linear-gradient(90deg, var(--brand), #2be8b8 55%, var(--brand-deep)); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 9px; padding-bottom: 9px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px;
  color: var(--brand-ink); text-decoration: none; font-weight: 700; font-size: .9rem; background: rgba(255,255,255,.22);
}
.cat-chip:hover { background: rgba(255,255,255,.4); color: var(--brand-ink); }
.cat-chip.is-active { background: var(--brand-ink); color: var(--brand); }
.cat-chip svg { width: 14px; height: 14px; }

/* ---------- buttons / tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font-family: var(--display); font-weight: 700; font-size: .95rem;
  padding: 11px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s;
  box-shadow: 0 10px 24px -14px rgba(31,226,165,.8);
}
.btn:hover { background: #5cf0c2; color: var(--brand-ink); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-hot, .btn-play { background: var(--hot); color: var(--hot-ink); box-shadow: 0 12px 26px -14px rgba(255,159,28,.9); }
.btn-hot:hover, .btn-play:hover { background: #ffb54d; color: var(--hot-ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand); color: #fff; }
.tag {
  display: inline-block; font-family: var(--display); font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(31,226,165,.14);
  color: var(--brand); text-decoration: none;
}
.lede { font-size: 1.08rem; color: var(--muted); max-width: 64ch; }
.note { font-size: .88rem; color: var(--muted-dim); }

/* ---------- hero: game of the day ---------- */
.hero { padding: 26px 0 8px; }
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-top h1 { margin: 0; }
.hero-top h1 .hl { color: var(--brand); }
.hero-stats { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .85rem; color: var(--muted); }
.hero-stats b { color: #fff; margin-right: 5px; font-family: var(--display); }
.daily {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch;
  border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--brand-ink);
  background: linear-gradient(135deg, #1fe2a5 0%, #19d39a 45%, #0fa978 100%);
  box-shadow: 0 30px 70px -36px rgba(31,226,165,.7);
}
.daily-media { position: relative; min-height: 100%; }
.daily-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.daily-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, rgba(25,211,154,.55)); }
.daily-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(22px, 4vw, 48px); }
.daily-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; background: var(--hot); color: var(--hot-ink);
  font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}
.daily-badge svg { width: 14px; height: 14px; }
.daily-title { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.02em; color: #03231a; }
.daily-cat { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.daily-text { font-size: 1.05rem; max-width: 46ch; margin: 0; color: #053528; }
.daily-meta { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.daily-meta li { background: rgba(3,42,31,.14); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 600; }
.daily .btn { align-self: flex-start; font-size: 1.05rem; padding: 14px 30px; }
.daily:hover .btn-hot { background: #ffb54d; }
.daily:hover .daily-media img { transform: scale(1.03); }
.daily-media img { transition: transform .4s; }

/* ---------- sections / grids ---------- */
.section { padding: 34px 0 6px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.sec-head h2::before { content: ""; width: 6px; height: 1.05em; border-radius: 3px; background: var(--brand); }
.sec-head a { color: var(--brand); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.sec-head a:hover { color: var(--accent-2); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: var(--brand); color: var(--brand-ink); transition: transform .18s, box-shadow .18s;
  box-shadow: 0 16px 34px -24px rgba(0,0,0,.9);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(31,226,165,.55); color: var(--brand-ink); }
.card[hidden] { display: none; }
.card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-play {
  position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hot); color: var(--hot-ink); box-shadow: 0 8px 18px -6px rgba(0,0,0,.6); opacity: 0; transform: translateY(6px); transition: .2s;
}
.card-play svg { width: 18px; height: 18px; margin-left: 2px; }
.card:hover .card-play, .card:focus-visible .card-play { opacity: 1; transform: none; }
.card-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; }
.card-title { font-family: var(--display); font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.card .tag { background: rgba(3,42,31,.14); color: var(--brand-ink); font-size: .66rem; }
.no-results { color: var(--muted); padding: 18px 0; }

/* category promo tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; min-height: 180px; display: flex; align-items: flex-end; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,16,15,.92), rgba(3,16,15,.1) 70%); }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile span { position: relative; z-index: 1; padding: 20px; }
.cat-tile b { display: block; font-family: var(--display); font-size: 1.4rem; }
.cat-tile em { font-style: normal; color: var(--brand); font-weight: 600; font-size: .92rem; }

/* banner strip */
.banner-strip { position: relative; border-radius: 22px; overflow: hidden; margin-top: 38px; }
.banner-strip img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; }
.banner-strip .bs-body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(18px, 4vw, 44px);
  background: linear-gradient(90deg, rgba(3,16,15,.92) 0%, rgba(3,16,15,.6) 45%, transparent 75%);
}
.banner-strip h2 { margin: 0; max-width: 18ch; }
.banner-strip p { margin: 0; color: var(--muted); max-width: 40ch; }
.banner-strip .btn { align-self: flex-start; }

/* feature row */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.feature { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; }
.feature b { display: block; font-family: var(--display); color: #fff; font-size: 1.02rem; margin-bottom: 4px; }
.feature b::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-right: 8px; }
.feature span { color: var(--muted); font-size: .9rem; }

.seo-text { margin-top: 44px; padding: 30px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 22px; }
.seo-text h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- prose / pages ---------- */
.crumbs { font-size: .85rem; color: var(--muted-dim); padding: 20px 0 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted-dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-head { padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); margin-bottom: 30px; }
.page-head h1 { margin-bottom: .3em; }
.page-banner { border-radius: 20px; overflow: hidden; margin-bottom: 26px; }
.page-banner img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; }
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 1.8em; padding-top: .4em; border-top: 1px solid var(--line-soft); }
.prose h3 { margin-top: 1.5em; color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font-family: var(--display); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); }
.prose tbody tr:hover { background: var(--surface); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.faq { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; margin: 10px 0; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-family: var(--display); font-weight: 700; color: #fff; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); }
.kv { width: 100%; }
.kv th { width: 34%; }

/* ---------- game page ---------- */
.game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.game-head h1 { margin: 0; }
.game-head .lede { flex-basis: 100%; max-width: none; margin: 4px 0 18px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; margin-top: 8px; align-items: start; }
.game-side { display: grid; gap: 16px; position: sticky; top: 140px; }
.side-box { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; }
.side-box h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.side-box h2::before { content: ""; width: 5px; height: 1em; background: var(--brand); border-radius: 3px; }
.side-cover { border-radius: 12px; margin-bottom: 12px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted-dim); }
.facts strong, .facts a { color: #fff; text-decoration: none; font-weight: 600; }
.facts a { color: var(--brand); }
.grid-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; background: var(--bg-deep); border-top: 4px solid var(--brand); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; padding-top: 38px; padding-bottom: 26px; }
.foot p { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.foot h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 7px; }
.foot li a { color: var(--muted); text-decoration: none; }
.foot li a:hover { color: #fff; }
.foot-money { border-top: 1px solid var(--line-soft); padding-top: 16px; padding-bottom: 16px; color: var(--muted-dim); font-size: .85rem; }
.foot-money strong { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--line-soft); padding-top: 16px; padding-bottom: 22px; color: var(--muted-dim); font-size: .84rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot-bottom a { color: var(--muted); }
.age-badge { display: inline-block; font-weight: 800; border: 1px solid var(--hot); color: var(--hot); border-radius: 999px; padding: 0 8px; margin-right: 6px; font-size: .75rem; }

.notfound { text-align: center; padding: 60px 0 20px; }
.notfound .big { font-family: var(--display); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--brand); line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid, .grid-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .game-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdr-nav { display: none; }
}
@media (max-width: 760px) {
  .daily { grid-template-columns: minmax(0, 1fr); }
  .daily-media::after { background: linear-gradient(180deg, transparent 70%, rgba(25,211,154,.6)); }
  .grid, .grid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-tiles { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .banner-strip img { aspect-ratio: 16 / 9; }
  .banner-strip .bs-body { background: linear-gradient(90deg, rgba(3,16,15,.94), rgba(3,16,15,.55)); }
  .seo-text { padding: 20px; }
  .card-play { opacity: 1; transform: none; width: 36px; height: 36px; }
}
@media (max-width: 560px) {
  .hdr { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .search { max-width: none; flex-basis: 100%; }
  .game-side { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .card-body { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
  .card-title { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
