:root {
  --itx-ink: #121212;
  --itx-text: #333333;
  --itx-muted: #6d6d6d;
  --itx-paper: #ffffff;
  --itx-soft: #f4f1ec;
  --itx-coal: #0b0c0f;
  --itx-line: #ded8cf;
  --itx-gold: #e7b64b;
  --itx-red: #b9322b;
  --itx-green: #167344;
  --itx-max: 1120px;
  --itx-header: 1680px;
  --itx-radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--itx-coal);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--itx-text);
  background: var(--itx-paper);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; }

.itx-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 12, 15, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.itx-topbar__inner {
  max-width: var(--itx-header);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.itx-brand img { width: 158px; }

.itx-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
  color: #f7f7f7;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.itx-nav a,
.itx-footer__links a,
.itx-toc a,
.itx-link-button {
  text-decoration: none;
}

.itx-actions,
.itx-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.itx-button,
.itx-link-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--itx-radius);
  border: 1px solid #9d6a17;
  background: linear-gradient(#ffe7a4, #e4a02c);
  color: #111;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.itx-button--dark,
.itx-link-button {
  background: #202126;
  border-color: #373a42;
  color: #fff;
}

.itx-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
}

.itx-menu-button span {
  display: block;
  height: 3px;
  margin: 7px 6px;
  background: currentColor;
}

.itx-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 12, 15, .92), rgba(11, 12, 15, .65) 46%, rgba(11, 12, 15, .25)),
    linear-gradient(180deg, rgba(11, 12, 15, .08), rgba(11, 12, 15, .92)),
    url("/assets/img/spinsy-hero.webp") center top / cover no-repeat;
}

.itx-hero__content {
  min-height: 610px;
  max-width: var(--itx-max);
  margin: 0 auto;
  padding: 110px 20px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.itx-eyebrow {
  margin: 0 0 12px;
  color: var(--itx-gold);
  font-weight: 900;
  text-transform: uppercase;
}

.itx-hero-title,
.itx-article h1,
.itx-section-head h2,
.itx-article h2,
.itx-side h3 {
  margin: 0 0 18px;
  color: var(--itx-ink);
  line-height: 1.15;
}

.itx-hero-title {
  max-width: 680px;
  color: #fff;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
}

.itx-hero__lead {
  max-width: 590px;
  margin: 0 0 28px;
  color: #ececec;
  font-size: 19px;
}

.itx-strip {
  background: var(--itx-coal);
  color: #fff;
}

.itx-strip__inner {
  max-width: var(--itx-max);
  margin: 0 auto;
  padding: 22px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.itx-strip strong,
.itx-strip span {
  display: block;
}

.itx-strip span {
  color: #c8c8c8;
  font-size: 14px;
}

.itx-shell {
  width: 100%;
  max-width: var(--itx-max);
  margin: 0 auto;
}

.itx-games,
.itx-content,
.itx-faq {
  padding: 66px 20px;
}

.itx-games {
  background: var(--itx-paper);
}

.itx-section-head h2,
.itx-article h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.itx-game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.itx-game-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--itx-radius);
  border: 1px solid var(--itx-line);
  background: #111;
  text-decoration: none;
}

.itx-game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .18s ease, filter .18s ease;
}

.itx-game-tile span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%);
  opacity: 0;
  z-index: 1;
  min-width: 88px;
  padding: 12px 18px;
  border-radius: var(--itx-radius);
  background: linear-gradient(#ffe7a4, #e4a02c);
  color: #111;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  transition: opacity .18s ease, transform .18s ease;
}

.itx-game-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .44);
  opacity: 0;
  transition: opacity .18s ease;
}

.itx-game-tile:hover img,
.itx-game-tile:focus-visible img {
  filter: brightness(.64);
  transform: scale(1.03);
}

.itx-game-tile:hover::after,
.itx-game-tile:focus-visible::after,
.itx-game-tile:hover span,
.itx-game-tile:focus-visible span {
  opacity: 1;
}

.itx-game-tile:hover span,
.itx-game-tile:focus-visible span {
  transform: translate(-50%, -50%);
}

.itx-content {
  background: var(--itx-soft);
}

.itx-content__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.itx-article,
.itx-side {
  min-width: 0;
}

.itx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 28px;
  color: var(--itx-muted);
  font-size: 14px;
}

.itx-article h2 {
  scroll-margin-top: 96px;
}

.itx-article h1 {
  font-size: clamp(34px, 4.6vw, 58px);
}

.itx-article h2:not(:first-of-type) {
  margin-top: 46px;
}

.itx-article h3 {
  margin: 30px 0 14px;
  color: var(--itx-ink);
  font-size: 24px;
  line-height: 1.2;
}

.itx-article p,
.itx-article li {
  font-size: 18px;
}

.itx-article ul,
.itx-article ol {
  padding-left: 24px;
}

.itx-article li + li {
  margin-top: 8px;
}

.itx-article table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  table-layout: fixed;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid var(--itx-line);
  border-radius: var(--itx-radius);
}

.itx-article th {
  background: linear-gradient(90deg, #111, #2b2d34);
  color: var(--itx-gold);
  text-align: left;
}

.itx-article th,
.itx-article td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--itx-line);
  vertical-align: top;
}

.itx-placeholder,
.itx-side {
  border: 1px solid var(--itx-line);
  border-radius: var(--itx-radius);
  background: #fff;
  padding: 22px;
}

.itx-placeholder {
  border-left: 5px solid var(--itx-green);
}

.itx-placeholder p,
.itx-faq-answer p,
.itx-footer p {
  margin: 0;
}

.itx-author {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 42px;
  padding: 22px;
  border: 1px solid var(--itx-line);
  border-radius: var(--itx-radius);
  background: #fff;
}

.itx-author__photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #18191d url("/assets/img/author-daniel-carter.webp") center / cover no-repeat;
}

.itx-author__body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--itx-ink);
  font-size: 18px;
}

.itx-author__body p {
  margin: 0;
  color: var(--itx-text);
  font-size: 15px;
}

.itx-author__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: #9a6a17;
  font-weight: 800;
}

.itx-side {
  position: sticky;
  top: 96px;
}

.itx-toc {
  display: grid;
  gap: 10px;
  margin: 14px 0 22px;
}

.itx-toc a {
  color: var(--itx-ink);
  font-weight: 800;
}

.itx-faq {
  background: #fff;
}

.itx-faq-list {
  border-top: 1px solid var(--itx-line);
}

.itx-faq-item {
  border-bottom: 1px solid var(--itx-line);
}

.itx-faq-question {
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--itx-ink);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.itx-faq-answer {
  display: none;
  padding: 0 0 24px;
}

.itx-faq-item.itx-is-open .itx-faq-answer {
  display: block;
}

.itx-footer {
  background: var(--itx-coal);
  color: #c7c9ce;
  padding: 44px 20px 24px;
}

.itx-footer__inner {
  max-width: var(--itx-max);
  margin: 0 auto;
}

.itx-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  color: #fff;
  font-weight: 800;
}

.itx-footer p + p {
  margin-top: 12px;
}

.itx-footer__copy {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #2c2f36;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .itx-content__layout {
    grid-template-columns: 1fr;
  }

  .itx-side {
    position: static;
    order: -1;
  }
}

@media (max-width: 900px) {
  .itx-topbar__inner {
    min-height: 68px;
  }

  .itx-brand img {
    width: 130px;
  }

  .itx-menu-button {
    display: block;
  }

  .itx-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    padding: 18px 20px;
    background: var(--itx-coal);
    border-top: 1px solid rgba(255, 255, 255, .12);
    flex-direction: column;
    align-items: flex-start;
  }

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

  .itx-actions {
    display: none;
  }

  .itx-hero {
    background:
      linear-gradient(180deg, rgba(11, 12, 15, .28), rgba(11, 12, 15, .94)),
      url("/assets/img/spinsy-hero.webp") center / cover no-repeat;
  }

  .itx-hero__content {
    min-height: 590px;
    justify-content: flex-end;
    padding-top: 80px;
  }

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

@media (max-width: 540px) {
  .itx-games,
  .itx-content,
  .itx-faq {
    padding: 48px 18px;
  }

  .itx-hero-title {
    font-size: 36px;
  }

  .itx-hero__lead,
  .itx-placeholder,
  .itx-faq-answer {
    font-size: 16px;
  }

  .itx-faq-question {
    font-size: 18px;
  }

  .itx-author {
    grid-template-columns: 1fr;
  }
}
