:root {
  --ink: #1c2638;
  --body: #161616;
  --line: #d5d7db;
  --blue: #0876c9;
  --cyan: #18cedd;
  --magenta: #ec0796;
  --powder: #5dbad5;
  --white: #ffffff;
  --content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--body); background: var(--white); font-family: "Roboto", Arial, sans-serif; line-height: 1.58; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 1000; padding: .65rem 1rem; color: #fff; background: #111; border-radius: 4px; }
.skip-link:focus { top: 1rem; }

.site-header { position: relative; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { width: min(var(--content), calc(100% - 32px)); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; font-size: 1.7rem; font-weight: 700; white-space: nowrap; }
.brand img { width: 48px; height: 48px; border-radius: 11px; object-fit: cover; }
.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav a { color: #263047; text-decoration: none; font-size: 1rem; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--blue); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 32px; height: 4px; margin: 5px auto; border-radius: 3px; background: #0678b4; transition: transform .2s ease, opacity .2s ease; }

.hero { width: min(var(--content), calc(100% - 32px)); margin: 0 auto; text-align: center; padding: 12px 0 0; }
.hero h1 { margin: 0 auto 6px; color: #071112; font-family: "Purple Purse", Georgia, serif; font-size: clamp(2rem, 3.3vw, 2.75rem); font-weight: 400; line-height: 1.15; }
.hero-logo { width: min(300px, 48vw); aspect-ratio: 1; margin: 0 auto 6px; border-radius: 25%; object-fit: cover; }
.game-links { display: grid; gap: 14px; }
.game-button { display: flex; min-height: 40px; align-items: center; justify-content: center; padding: .55rem 1rem; border-radius: 18px; color: #fff; text-decoration: none; font-weight: 700; transition: filter .16s ease, transform .16s ease; }
.game-button:hover, .game-button:focus-visible { filter: brightness(.94); transform: translateY(-1px); }
.game-button.bonu7 { background: var(--cyan); }
.game-button.mmy { background: var(--magenta); }
.game-button.bonu1 { background: var(--powder); }
.affiliate-note { margin: 8px auto 12px; color: #5b6471; font-size: .82rem; }

.app-details { width: min(var(--content), calc(100% - 28px)); margin: 0 auto; padding: 0; }
.details-table-wrap { overflow: hidden; border: 3px solid #777; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; color: var(--ink); }
th, td { padding: 24px 16px; border: 1px solid var(--line); text-align: left; font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 700; }
thead th { padding-top: 16px; padding-bottom: 16px; }
thead th:first-child, tbody th { width: 33%; font-size: clamp(1rem, 2.1vw, 1.65rem); }

.gallery { width: min(var(--content), calc(100% - 20px)); margin: 2px auto 0; background: #050505; overflow: hidden; }
.carousel { position: relative; }
.carousel-track { display: flex; transition: transform .45s ease; }
.slide { flex: 0 0 33.333%; margin: 0; position: relative; overflow: hidden; border-right: 1px solid #2f2a2d; aspect-ratio: 582 / 1280; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.carousel-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 48px; height: 70px; border: 0; color: #fff; background: transparent; font-size: 4rem; line-height: 1; cursor: pointer; text-shadow: 0 1px 5px #000; }
.carousel-arrow.previous { left: 0; }
.carousel-arrow.next { right: 0; }
.carousel-dots { display: none; }

.article-content { padding: 2rem 0; }
.content-shell { width: min(var(--content), calc(100% - 32px)); margin: 0 auto; }
.content-shell section { margin: 0 0 2rem; }
.content-shell h2 { margin: 0 0 .25rem; color: #061011; font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.2; }
.content-shell p, .content-shell li { font-size: 1.05rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 1rem 4rem; text-align: center; color: #354052; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; margin-bottom: .8rem; }
.site-footer a { text-decoration: none; }
.legal-page { padding: 2rem 0 0; }
.legal-shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.legal-shell h1 { margin: 0 0 1rem; color: #061011; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.18; }
.legal-shell h2 { margin: 2rem 0 .35rem; color: #061011; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.25; }
.legal-shell p, .legal-shell li { font-size: 1.05rem; line-height: 1.7; }
.legal-shell ul { padding-left: 1.5rem; }
.legal-logo { width: min(300px, 60vw); margin: 0 auto 1rem; border-radius: 24%; }
.download-cta { display: flex; width: min(420px, 100%); min-height: 58px; align-items: center; justify-content: center; margin: 0 auto 2rem; border-radius: 22px; color: #fff; background: var(--cyan); font-weight: 700; text-decoration: none; }
.back-to-top { position: fixed; right: 22px; bottom: 24px; z-index: 50; width: 50px; height: 50px; border: 0; border-radius: 4px; color: #fff; background: #0878ca; font-size: 1.8rem; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 767px) {
  html { scroll-padding-top: 78px; }
  .header-inner { width: 100%; min-height: 78px; padding: 0 20px; }
  .brand { font-size: 1.35rem; gap: 12px; }
  .brand img { width: 48px; height: 48px; border-radius: 11px; transform: none; margin: 0; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.5rem 1rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .8rem .5rem; border-bottom: 1px solid #eef0f2; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .hero { width: calc(100% - 28px); padding-top: 18px; }
  .hero h1 { font-size: clamp(1.7rem, 7.4vw, 2rem); line-height: 1.16; }
  .hero-logo { width: 84%; max-width: 310px; margin-top: 10px; }
  .game-links { gap: 14px; }
  .game-button { min-height: 52px; border-radius: 24px; font-size: 1.08rem; }
  .affiliate-note { margin: 6px auto 8px; font-size: .7rem; line-height: 1.4; }
  .app-details { width: calc(100% - 24px); margin-top: 8px; }
  .details-table-wrap { border-width: 4px; border-radius: 24px; }
  th, td { height: 118px; padding: 12px 16px; font-size: clamp(1.45rem, 6.6vw, 1.8rem); }
  thead th { height: 82px; }
  thead th:first-child, tbody th { width: 38%; font-size: clamp(1.2rem, 5.7vw, 1.55rem); }
  .gallery { width: calc(100% - 24px); margin-top: 8px; }
  .carousel { padding-top: 28px; background: #fff; }
  .slide { flex-basis: 100%; border: 0; }
  .carousel-dots { display: flex; position: absolute; top: 8px; left: 0; right: 0; z-index: 3; justify-content: center; gap: 14px; }
  .carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #d3d3d3; }
  .carousel-dots button.active { background: #000; }
  .carousel-arrow { width: 44px; height: 72px; font-size: 3rem; }
  .article-content { padding-top: 2rem; }
  .content-shell { width: calc(100% - 28px); }
  .content-shell section { margin-bottom: 2.25rem; }
  .content-shell h2 { font-size: clamp(1.55rem, 6.4vw, 1.9rem); }
  .content-shell p, .content-shell li { margin: 0 0 1.4rem; font-size: 1rem; line-height: 1.62; }
  .content-shell ul { padding-left: 1.6rem; }
  .legal-page { padding-top: 1.75rem; }
  .legal-shell { width: calc(100% - 28px); }
  .legal-shell h1 { font-size: 1.85rem; }
  .legal-shell h2 { margin-top: 2.25rem; font-size: 1.6rem; }
  .legal-shell p, .legal-shell li { font-size: 1rem; line-height: 1.62; }
  .download-cta { min-height: 52px; border-radius: 22px; font-size: .95rem; }
  .back-to-top { right: 28px; bottom: 58px; width: 42px; height: 42px; font-size: 1.35rem; }
}

@media (max-width: 380px) {
  .brand { font-size: 1.25rem; }
  .hero h1 { font-size: 1.62rem; }
  th, td { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
