:root {
  --c-ink: #010000;
  --c-bg: #100f0e;
  --c-bg-soft: #1b1917;
  --c-bg-tile: #201d1a;
  --c-line: #34302b;
  --c-primary: #d04400;
  --c-primary-hi: #e85510;
  --c-secondary: #ff8f51;
  --c-text: #f3ece6;
  --c-muted: #b7ada3;
  --c-white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --edge: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--c-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

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

a {
  color: var(--c-secondary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--c-primary-hi);
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--edge);
}

.box {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.mt1 {
  margin-top: 8px;
}

.mb1 {
  margin-bottom: 8px;
}

.text-center {
  text-align: center;
}

h1,
h2,
h3,
h4 {
  line-height: 1.28;
  color: var(--c-white);
  text-wrap: balance;
  margin-bottom: 14px;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 24px;
  margin-top: 8px;
}

h3 {
  font-size: 20px;
}

p {
  margin-bottom: 14px;
  text-wrap: pretty;
}

.header {
  background: var(--c-ink);
  border-color: #000;
  position: sticky;
  top: 0;
  z-index: 60;
}

.header nav {
  width: 100%;
}

.k29xlogo img {
  height: 44px;
  width: auto;
}

.n77bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.q14menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.q14menu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--c-text);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
}

.q14menu a:hover {
  background: rgba(255, 143, 81, 0.12);
  color: var(--c-secondary);
}

.q14menu svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.z3actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(208, 68, 0, 0.14);
  border: 1px solid rgba(255, 143, 81, 0.35);
  color: var(--c-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #37d67a;
  box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(55, 214, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(55, 214, 122, 0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.2px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--md {
  padding: 10px 16px;
  font-size: 14px;
}

.btn--lg {
  padding: 15px 26px;
  font-size: 17px;
}

.btn--secondary {
  background: var(--c-secondary);
  color: #2a1400;
}

.btn--secondary:hover {
  background: #ffa16b;
  color: #2a1400;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 8px 20px rgba(208, 68, 0, 0.35);
}

.btn--primary:hover {
  background: var(--c-primary-hi);
  color: var(--c-white);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--c-secondary);
  color: var(--c-secondary);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--c-text);
  transition: 0.25s;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  margin: 18px 0;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(16, 15, 14, 0.94) 8%, rgba(16, 15, 14, 0.55) 60%, rgba(16, 15, 14, 0.2) 100%),
    url("/hero-banner.png") center / cover no-repeat;
}

.hero-inner {
  padding: 40px;
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  background: rgba(208, 68, 0, 0.18);
  border: 1px solid rgba(255, 143, 81, 0.4);
  color: var(--c-secondary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: 38px;
  margin-bottom: 12px;
}

.hero p {
  color: var(--c-muted);
  font-size: 18px;
  margin-bottom: 22px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.crumbs {
  font-size: 13px;
  color: var(--c-muted);
  padding: 12px 0;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.crumbs li::after {
  content: "›";
  margin-left: 6px;
  color: var(--c-line);
}

.crumbs li:last-child::after {
  content: "";
}

.toc {
  background: var(--c-bg-tile);
}

.toc h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
}

.toc-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 15px;
}

.toc-grid a:hover {
  border-color: var(--c-secondary);
  color: var(--c-secondary);
  transform: translateX(3px);
}

.toc-grid svg {
  width: 20px;
  height: 20px;
  color: var(--c-secondary);
  flex: 0 0 auto;
}

.tbl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  text-align: left;
  min-width: 520px;
}

.info-table th,
.info-table td {
  padding: 13px 16px;
  border: 1px solid var(--c-line);
  vertical-align: top;
}

.info-table th {
  width: 42%;
  background: var(--c-bg-tile);
  color: var(--c-white);
  font-weight: 700;
}

.info-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.info-table .param {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-table svg {
  width: 18px;
  height: 18px;
  color: var(--c-secondary);
  flex: 0 0 auto;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.adv-tile {
  background: var(--c-bg-tile);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.adv-tile:hover {
  transform: translateY(-4px);
  border-color: var(--c-secondary);
}

.adv-ico {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(208, 68, 0, 0.15);
  margin-bottom: 14px;
}

.adv-ico svg {
  width: 26px;
  height: 26px;
  color: var(--c-secondary);
}

.adv-tile h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.adv-tile p {
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.game-card {
  background: var(--c-bg-tile);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.game-thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: #000;
}

.game-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.game-body h3 {
  font-size: 16px;
  margin: 0;
}

.game-prov {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: -4px;
}

.game-body .btn {
  margin-top: auto;
}

.wheel-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.wheel-stage {
  position: relative;
  width: 300px;
  height: 300px;
  flex: 0 0 auto;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--c-secondary);
  z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}

#luckywheel {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 8px solid var(--c-ink);
  box-shadow: 0 0 0 4px var(--c-primary), var(--shadow);
  transition: transform 4.2s cubic-bezier(0.12, 0.75, 0.16, 1);
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  border: 4px solid var(--c-ink);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
}

.wheel-side {
  flex: 1;
  min-width: 240px;
  max-width: 360px;
}

.wheel-result {
  min-height: 28px;
  margin: 12px 0;
  font-weight: 800;
  font-size: 18px;
  color: var(--c-secondary);
}

.faq-item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--c-bg-tile);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--c-white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--c-secondary);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 18px;
  color: var(--c-muted);
}

.faq-item.open .faq-a {
  max-height: 420px;
  padding: 0 18px 16px;
}

.author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.author-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-primary);
  flex: 0 0 auto;
}

.author-body {
  flex: 1;
  min-width: 240px;
}

.author-body h3 {
  margin-bottom: 2px;
}

.author-role {
  color: var(--c-secondary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.author-body p {
  color: var(--c-muted);
  font-size: 15px;
}

.author-meta {
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 8px;
}

.author-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.author-links a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}

.author-links svg {
  width: 18px;
  height: 18px;
}

.text > h2,
.text > h3 {
  margin-top: 26px;
}

.text ul,
.text ol {
  margin: 0 0 16px 22px;
}

.text li {
  margin-bottom: 8px;
}

.text a {
  color: var(--c-secondary);
  text-decoration: underline;
}

.text blockquote {
  border-left: 3px solid var(--c-primary);
  background: var(--c-bg-tile);
  padding: 12px 16px;
  margin: 0 0 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-muted);
}

.text table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  display: block;
  overflow-x: auto;
}

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

.text table th {
  background: var(--c-bg-tile);
  color: var(--c-white);
}

.text img {
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
}

.footer {
  background: var(--c-ink);
  border-color: #000;
  margin-top: auto;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #262220;
}

.foot-logo img {
  height: 42px;
  margin-bottom: 12px;
}

.foot-col h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--c-white);
}

.foot-col ul {
  list-style: none;
}

.foot-col li {
  margin-bottom: 8px;
}

.foot-col a {
  color: var(--c-muted);
  font-size: 14px;
}

.foot-col a:hover {
  color: var(--c-secondary);
}

.flagline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.flagline svg {
  width: 26px;
  height: auto;
  border-radius: 3px;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #2b2725;
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 700;
}

.logo-chip svg {
  width: 16px;
  height: 16px;
  color: var(--c-secondary);
}

.foot-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.foot-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2b2725;
  border-radius: 8px;
}

.foot-social svg {
  width: 18px;
  height: 18px;
  color: var(--c-muted);
}

.foot-social a:hover svg {
  color: var(--c-secondary);
}

.copyright {
  padding-top: 18px;
  color: var(--c-muted);
  font-size: 13px;
}

.copyright p {
  margin-bottom: 8px;
}

.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(1, 0, 0, 0.9), #010000);
  border-top: 1px solid #2b2725;
  padding: 10px var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  backdrop-filter: blur(4px);
}

.stickybar p {
  margin: 0;
  font-weight: 800;
  color: var(--c-white);
}

.stickybar b {
  color: var(--c-secondary);
}

.stickybar .btn {
  text-decoration: none;
}

.wp-block-spacer {
  display: block;
  height: 1px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.elementor-hidden {
  display: none !important;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .foot-top {
    grid-template-columns: 1fr 1fr;
  }
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 25px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .hero-inner {
    padding: 26px 20px;
  }
  .toc-grid {
    grid-template-columns: 1fr;
  }
  .q14menu {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-ink);
    padding: 18px var(--edge);
    gap: 6px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .q14menu.active {
    transform: none;
  }
  .q14menu a {
    padding: 14px 12px;
    border-bottom: 1px solid #1c1917;
    font-size: 16px;
  }
  .burger {
    display: flex;
  }
  .online-pill {
    display: none;
  }
  .games-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .game-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 520px) {
  .adv-grid {
    grid-template-columns: 1fr;
  }
  .foot-top {
    grid-template-columns: 1fr;
  }
  .btn--md {
    padding: 9px 12px;
    font-size: 13px;
  }
  .stickybar p {
    font-size: 14px;
    text-align: center;
    width: 100%;
  }
}
