:root {
  color-scheme: dark;
  --bg: #101211;
  --panel: #161a17;
  --line: #303832;
  --text: #f5f7f2;
  --muted: #b0b9b0;
  --mint: #c1f99c;
  font: 16px/1.5 "Rethink Sans", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
::selection { background: var(--mint); color: var(--bg); }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 26px; }
.shell { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 12px; z-index: 5; transform: translateY(-120%); background: var(--mint); color: var(--bg); padding: 8px 14px; }
.skip:focus { transform: none; }

.top { border-bottom: 1px solid #252925; }
.top-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 70px; }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 9px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.065em; text-decoration: none; }
.brand span { color: var(--mint); margin-left: -7px; }
.brand-mark { display: inline-block; position: relative; width: 23px; height: 22px; border-radius: 5px; background: var(--mint); }
.brand-mark::before, .brand-mark::after { position: absolute; left: 5px; content: ""; background: #182518; height: 3px; border-radius: 1px; transform: rotate(-28deg); }
.brand-mark::before { width: 13px; top: 7px; }
.brand-mark::after { width: 10px; top: 12px; left: 8px; }
nav { display: flex; gap: clamp(16px, 3.2vw, 46px); font-size: .92rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--mint); }
.age { justify-self: end; color: #d8ddd7; padding: 4px 9px; border: 1px solid #404840; border-radius: 6px; font: 700 .85rem/1.4 system-ui, sans-serif; }

.hero { display: grid; grid-template-columns: 1.13fr .87fr; position: relative; overflow: hidden; min-height: 350px; isolation: isolate; margin-top: 28px; border: 1px solid #383b30; border-radius: 22px; background: #1a1e17 radial-gradient(ellipse at 18% 104%, #34452c 0%, transparent 55%); }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: clamp(26px, 5vw, 66px); padding-right: 8px; }
h1 { font-size: clamp(2.4rem, 5.4vw, 5.15rem); line-height: .99; font-weight: 800; letter-spacing: -.075em; }
h1 span { color: var(--mint); }
.hero-shot { position: absolute; inset: 0 0 0 38%; z-index: -1; mask-image: linear-gradient(90deg, transparent, #000 43%); }
.hero-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: saturate(.77) brightness(.83); }
.hero-shot::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, #0f1512a0, transparent 46%); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: .91rem; font-weight: 700; white-space: nowrap; }
.button.primary { color: #192618; background: var(--mint); }
.hero-button { margin-top: 22px; }
.button.primary:hover { background: #d7ffbc; }


.catalog { padding-block: 55px 60px; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
h2 { font-size: clamp(1.84rem, 3.3vw, 2.72rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.13; }
.search { display: flex; align-items: center; position: relative; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.search input { border: 0; background: transparent; color: var(--text); padding: 11px 15px 11px 35px; min-height: 43px; width: 200px; border-radius: inherit; font-size: .9rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.magnify { position: absolute; width: 12px; height: 12px; left: 13px; border: 1.5px solid; border-radius: 50%; pointer-events: none; }
.magnify::after { position: absolute; width: 6px; height: 1.5px; left: 7px; top: 9px; transform: rotate(45deg); content: ""; background: currentColor; }
.catalog-status { font-size: .87rem; color: var(--muted); margin: 16px 0 9px; }
.catalog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.brand-art { position: relative; display: grid; place-items: center; aspect-ratio: 2.35; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 15%, var(--brand-glow, #303a31), var(--brand-base, #121813) 87%); }
.brand-art img { position: absolute; display: block; width: min(65%, 236px); height: 70%; object-fit: contain; }
.card[data-brand="joycasino"] { --brand-glow: #3f213f; --brand-base: #18101c; }
.card[data-brand="catcasino"] { --brand-glow: #27152e; --brand-base: #0f0914; }
.card[data-brand="1win"] { --brand-glow: #204266; --brand-base: #111a2a; }
.card[data-brand="dragon-money"] { --brand-glow: #3e2322; --brand-base: #201112; }
.card[data-brand="dragon-money"] .brand-art img { height: 87%; }
.card[data-brand="casino-x"] { --brand-glow: #f4f7fb; --brand-base: #dadeeb; }
.card[data-brand="casino-x"] .brand-art img { width: min(72%, 252px); }
.card[data-brand="stake"] { --brand-glow: #263a42; --brand-base: #13212d; }
.card[data-brand="stake"] .brand-art img { filter: invert(1); }
.card[data-brand="ezcash"] { --brand-glow: #203c53; --brand-base: #101d29; }
.card[data-brand="bitstarz"] { --brand-glow: #302747; --brand-base: #1b1429; }
.card[data-brand="ramenbet"] { --brand-glow: #f3e9fc; --brand-base: #d2c7e7; }
.card[data-brand="roobet"] { --brand-glow: #382951; --brand-base: #1b182c; }
.card-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; }
.card-body h3 { font-size: 1.25rem; letter-spacing: -.04em; }
.card-body .button { min-width: 105px; }
.card-body .button:focus-visible { outline-offset: 2px; }

footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; font-size: .87rem; }
.footer-inner .brand { color: var(--text); }
.footer-inner > a:last-child { text-underline-offset: 4px; white-space: nowrap; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .hero { min-height: 305px; }
  .catalog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { min-height: 59px; }
  .brand { font-size: 1.2rem; gap: 6px; }
  .brand span { margin-left: -5px; }
  nav { font-size: .85rem; }
  .age { font-size: .75rem; padding-inline: 5px; }
  .hero { display: flex; align-items: end; margin-top: 14px; min-height: 255px; border-radius: 15px; }
  .hero-copy { padding: 22px 18px 24px; }
  .hero-shot { inset: 0; mask-image: none; }
  .hero-shot img { object-position: center 55%; }
  .hero-shot::after { background: linear-gradient(0deg,#131a12 7%,#131a12ed 27%,#131a1288 70%,#131a1225 100%); }
  h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .catalog { padding-top: 36px; }
  .section-head { display: grid; gap: 14px; }
  .search input { width: 100%; }
  .catalog-list { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
