@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

:root {
  --bg: #0c0614;
  --bg-2: #14081f;
  --surface: #1c0f2c;
  --surface-2: #27143c;
  --line: rgba(196, 138, 212, 0.18);
  --plum: #2d0a3d;
  --violet: #9b3fd4;
  --violet-2: #c45ae0;
  --lavender: #d8b4e8;
  --gold: #f0d48a;
  --gold-2: #e8c36a;
  --green: #6a9a58;
  --text: #f7f0ff;
  --muted: #c4aad8;
  --radius: 16px;
  --header-h: 70px;
  --font: "Poppins", "Segoe UI", sans-serif;
  --shadow: 0 16px 36px rgba(8, 2, 16, 0.45);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 50% -8%, #3a1458 0%, var(--bg) 58%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--gold);
  color: #1a0528;
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 6, 20, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  min-height: var(--header-h);
  height: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  grid-column: 1;
}

.logo img {
  width: 150px;
  height: auto;
  max-width: 100%;
}

.nav-main {
  display: none;
  align-items: center;
  gap: 2px;
  grid-column: 2;
  justify-self: center;
}

.nav-main a {
  padding: 8px 10px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #dcc8ee;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-main a:hover,
.nav-main a.is-active {
  color: #fff;
}

.nav-main a.is-active {
  color: var(--gold);
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 3;
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-login {
  background: linear-gradient(180deg, #b44ae8, #7a2db8);
  color: #fff;
  min-height: 38px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 16px rgba(155, 63, 212, 0.35);
}

.btn-login:hover {
  background: linear-gradient(180deg, #c45ae0, #6b24a8);
  color: #fff;
}

.btn-reg,
.btn-gold {
  background: linear-gradient(180deg, #f4de9c, #d4ad4e);
  color: #1a0528;
  min-height: 38px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 16px rgba(232, 195, 106, 0.28);
}

.btn-reg:hover,
.btn-gold:hover {
  background: linear-gradient(180deg, #ead07a, #c49a3a);
  color: #1a0528;
}

.btn-ghost {
  background: transparent;
  color: #f7f0ff;
  border: 1px solid rgba(240, 212, 138, 0.55);
  min-height: 38px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
}

.btn-ghost:hover {
  background: rgba(240, 212, 138, 0.1);
  color: #fff;
  border-color: var(--gold);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--gold);
  color: #1a0528;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  grid-column: 4;
  justify-self: end;
}

.lbl-short {
  display: inline;
}

.lbl-long {
  display: none;
}

.search-row {
  padding: 16px 0 4px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  min-height: 46px;
}

.search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
  font-size: 14px;
}

.search-empty {
  display: none;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 4px 0;
}
.search-empty.is-on {
  display: block;
}

.hero {
  padding: 12px 0 6px;
}

.slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
  background: var(--plum);
}

.slide {
  display: none;
  min-height: 280px;
  background-color: var(--plum);
  background-size: cover;
  background-position: center right;
  padding: 36px 40px;
  position: relative;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 6, 20, 0.82) 0%, rgba(12, 6, 20, 0.35) 55%, rgba(12, 6, 20, 0.08) 100%);
}

.slide.is-on {
  display: flex;
  align-items: center;
}

.slide-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.slide-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  text-transform: none;
}

.slide-copy p {
  margin: 0 0 18px;
  color: #eadcf6;
  font-size: 15px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 0;
}

.dots button {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  border-radius: 99px;
  background: radial-gradient(circle, #4a335c 5px, transparent 6px);
  cursor: pointer;
}

.dots button.is-on {
  background: radial-gradient(circle, var(--green) 5px, transparent 6px);
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  padding: 16px 0 8px;
}

.quick-card {
  background: linear-gradient(180deg, #2a1542, #1b0e2c);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #efe6ff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 4px 8px;
  text-align: center;
}

.quick-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.quick-card:hover {
  border-color: rgba(196, 90, 224, 0.55);
  transform: translateY(-2px);
  transition: 0.15s ease;
}

.section {
  padding: 22px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.more-link {
  color: var(--lavender);
  font-size: 14px;
  white-space: nowrap;
}
.more-link:hover {
  color: #fff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.game-card:hover .thumb img {
  transform: scale(1.03);
}

.thumb-actions {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(12, 6, 28, 0.58);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-card:hover .thumb-actions,
.game-card:focus-within .thumb-actions {
  opacity: 1;
}

.play-btn,
.demo-btn {
  min-width: 104px;
  min-height: 38px;
  border-radius: 999px;
  font-size: 13px;
}

.play-btn {
  background: linear-gradient(180deg, #b44ae8, #7a2db8);
  color: #fff;
  font-weight: 700;
}

.play-btn:hover {
  color: #fff;
  background: linear-gradient(180deg, #c45ae0, #6b24a8);
}

.demo-btn {
  background: #fff;
  color: #2a1050;
  font-weight: 700;
}

.demo-btn:hover {
  color: #2a1050;
  background: #f3e8ff;
}

.game-name {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  color: #d7c8ef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hidden-by-search {
  display: none !important;
}

.bonus-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bonus-card {
  min-height: 150px;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.bonus-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.bonus-card p {
  margin: 0;
  color: #f3e8ff;
}

.bonus-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 0;
}

.crumbs a:hover {
  color: var(--gold);
}

.crumbs span {
  opacity: 0.5;
}

.page-hero {
  padding: 10px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.lede {
  font-size: 17px;
  color: #eadcf6;
  margin: 0 0 16px;
  max-width: none;
  width: 100%;
}

.prose {
  max-width: none;
  width: auto;
  text-align: left;
}

article.wrap.prose,
.wrap.prose {
  width: min(1180px, calc(100% - 28px));
  max-width: none;
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.prose p,
.prose li {
  color: #e8daf6;
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a.btn {
  text-decoration: none;
}

.prose a.btn-gold,
.prose a.btn-reg,
a.btn-gold,
a.btn-reg,
button.btn-gold,
button.btn-reg {
  color: #1a0528;
}

.prose a.btn-gold:hover,
.prose a.btn-reg:hover,
a.btn-gold:hover,
a.btn-reg:hover,
button.btn-gold:hover,
button.btn-reg:hover {
  color: #1a0528;
}

.prose a.btn-login,
.prose a.play-btn,
a.btn-login {
  color: #fff;
}

.prose a.btn-login:hover,
.prose a.play-btn:hover,
a.btn-login:hover {
  color: #fff;
}

.prose a.btn-ghost,
a.btn-ghost {
  color: #f7f0ff;
}

.prose a.btn-ghost:hover,
a.btn-ghost:hover {
  color: #fff;
}

.prose a.demo-btn {
  color: #2a1050;
}

.prose ul,
.prose ol {
  padding-left: 18px;
  margin: 0 0 16px;
}

.prose li + li {
  margin-top: 6px;
}

.figure {
  margin: 18px 0 16px;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  line-height: 0;
  max-height: none;
  aspect-ratio: auto;
  background: #14081e;
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  max-height: none;
}

.figure figcaption,
.caption,
.image-credit {
  display: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.pay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0 20px;
}

.pay-table th,
.pay-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.pay-table th {
  color: var(--gold);
  font-size: 13px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 8px;
  padding: 4px 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}

.faq details p {
  margin: 0 0 12px;
  color: #e8daf6;
}

.author-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 18px 0;
}

.author-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
}

.author-card h2,
.author-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.author-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  margin-top: 36px;
  padding: 28px 0 18px;
  background: #0a0412;
  border-top: 1px solid var(--line);
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 18px;
}

.footer-logo img {
  height: 38px;
  width: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.footer-grid h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--gold);
}

.footer-grid a {
  display: block;
  color: #d7c8ef;
  font-size: 14px;
  padding: 4px 0;
}

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

.legal-note {
  color: var(--muted);
  font-size: 13px;
  margin: 22px 0 12px;
  max-width: none;
}

.legal-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-card p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-line {
  color: #8d749e;
  font-size: 12px;
  margin: 8px 0 0;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #7a2db8;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-3px);
}

.err {
  text-align: center;
  padding: 60px 0 80px;
}

.err h1 {
  margin: 0 0 10px;
}

@media (min-width: 1025px) {
  .nav-toggle {
    display: none;
  }

  .nav-main {
    display: flex;
  }

  .lbl-short {
    display: none;
  }

  .lbl-long {
    display: inline;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding-right: 160px;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .logo img {
    width: 118px;
  }

  .header-actions,
  .nav-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
  }

  .header-actions {
    right: 56px;
    grid-column: auto;
    grid-row: auto;
  }

  .nav-toggle {
    right: 8px;
    grid-column: auto;
    grid-row: auto;
    display: inline-flex !important;
  }


  .nav-main {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #14081f;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 14px 14px;
    margin: 0;
    z-index: 40;
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main a {
    min-height: 44px;
  }

  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .bonus-row,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(1180px, calc(100% - 16px));
  }

  .logo img {
    width: 100px !important;
    height: auto !important;
    max-width: 100px !important;
  }

  .btn-login,
  .btn-reg {
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .header-inner {
    gap: 6px;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .slide {
    min-height: 240px;
    padding: 24px 18px;
    background-position: 70% center;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .bonus-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .author-card {
    grid-template-columns: 72px 1fr;
  }

  .thumb-actions {
    opacity: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(12, 6, 28, 0.72));
    justify-content: flex-end;
    padding-bottom: 10px;
  }

  .play-btn,
  .demo-btn {
    min-width: 72px;
    min-height: 44px;
    font-size: 12px;
  }
}

.contact-form {
  width: 100%;
  max-width: none;
  margin: 8px 0 20px;
  display: grid;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.form-row input,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1a0c28;
  color: var(--text);
  font: inherit;
  box-sizing: border-box;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--violet-2);
  outline-offset: 1px;
  border-color: var(--violet-2);
}

.contact-form .btn {
  min-height: 48px;
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.form-status.is-ok {
  background: rgba(106, 154, 88, 0.18);
  color: #cfe8c4;
}

.form-status.is-error {
  background: rgba(180, 60, 90, 0.2);
  color: #f3c4d0;
}

@media (hover: none) {
  .thumb-actions {
    opacity: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(12, 6, 28, 0.7));
    justify-content: flex-end;
    padding-bottom: 10px;
  }
}
