/*
Theme Name: Katana Game Lobby
Theme URI: https://katanagame.ru/
Author: Local Team
Description: One-page casino lobby promo theme. All CTAs use partner_url.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: katana-game-landing
*/

:root {
  --bg: #212132;
  --header: rgba(37, 37, 54, 0.95);
  --cta: #fe284a;
  --cta-hover: #e62242;
  --help: #e8ce3a;
  --text: #f2f2f7;
  --muted: #a8a8bd;
  --panel: #2a2a40;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, select, input { font: inherit; }
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fe284a, #ff7a3d);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: .15s ease;
}
.btn-login {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.18);
}
.btn-login:hover { background: rgba(255,255,255,.06); }
.btn-register {
  background: var(--cta);
  color: #fff;
}
.btn-register:hover { filter: brightness(1.05); }
.btn-help {
  background: transparent;
  color: var(--help);
  border: 1px solid rgba(232, 206, 58, .35);
}
.btn-help__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--help);
  color: #212132;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

/* Intro */
.intro {
  position: relative;
  margin-top: 64px;
  min-height: clamp(220px, 36vw, 420px);
  background:
    linear-gradient(90deg, rgba(33,33,50,.55), rgba(33,33,50,.15)),
    radial-gradient(circle at 70% 40%, rgba(254,40,74,.35), transparent 45%),
    linear-gradient(135deg, #2d2d4a, #171726 60%, #3a2030);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.intro__content {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 0 36px;
}
.intro h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.1;
  max-width: 16ch;
}
.intro p {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}

/* Categories */
.categories {
  padding: 22px 0 8px;
}
.categories__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.category {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.category__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #111;
}
.category--slots .category__icon { background: #56d4ff; color: #0b2530; }
.category--live .category__icon { background: #ff5d7a; }
.category--sport .category__icon { background: #57e39c; color: #0c2a1b; }
.category--table .category__icon { background: #c58bff; color: #241236; }
.category--tourney .category__icon { background: #ffd166; color: #2b2208; }
.category__name { font-weight: 700; font-size: 14px; }

/* Toolbar */
.toolbar {
  padding: 12px 0 18px;
}
.toolbar__row {
  display: grid;
  grid-template-columns: 220px auto 1fr;
  gap: 12px;
  align-items: center;
}
.toolbar select,
.toolbar input {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #1a1a2b;
  color: var(--text);
  padding: 0 12px;
}
.toolbar__chips {
  display: flex;
  gap: 8px;
}
.chip {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #1a1a2b;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.chip.is-active,
.chip:hover {
  border-color: rgba(254,40,74,.55);
  color: #fff;
}

/* Games */
.games {
  padding: 8px 0 28px;
}
.games__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.game {
  display: block;
}
.game__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #3a3a58, #1d1d2f);
  border: 1px solid var(--line);
}
.game__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  opacity: 0;
  transition: .18s ease;
}
.game:hover .game__overlay { opacity: 1; }
.game__cta {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}
.game__cta--demo {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.game__cta--play {
  background: var(--cta);
  color: #fff;
}
.game__title {
  margin: 8px 2px 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.games__more {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.btn-more {
  min-width: 180px;
  min-height: 46px;
  border-radius: 10px;
  background: #2f2f48;
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 800;
}
.btn-more:hover { background: #383855; }

/* SEO text */
.seo-text {
  padding: 10px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.seo-text h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 22px;
}
.seo-text p { margin: 0 0 12px; }

.seo-article {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.seo-article .seo-lead {
  color: var(--text);
  font-size: 17px;
  margin: 0 0 14px;
}
.seo-article .seo-note {
  color: #c9b36a;
  margin: 0 0 18px;
}
.seo-article h2 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25;
}
.seo-article h3 {
  margin: 22px 0 8px;
  color: var(--text);
  font-size: 18px;
}
.seo-article p { margin: 0 0 12px; }
.seo-article ol,
.seo-article ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.seo-article li { margin-bottom: 6px; }
.seo-article a { color: #ff6b84; text-decoration: underline; }
.seo-article .btn-register {
  margin: 8px 0 18px;
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #1b1b2b;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 20px;
  margin-bottom: 22px;
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links a:hover { color: #fff; }
.footer-apps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-apps a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #242438;
}
.footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.lang {
  position: relative;
}
.lang__btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #242438;
  color: var(--text);
  cursor: pointer;
}
.lang__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 140px;
  background: #242438;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  display: none;
  z-index: 5;
}
.lang.is-open .lang__menu { display: grid; }
.lang__menu a {
  padding: 8px 10px;
  border-radius: 6px;
}
.lang__menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.payments {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #242438;
}
.payments__toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}
.payments__panel {
  display: none;
  padding: 0 14px 14px;
}
.payments.is-open .payments__panel { display: block; }
.payments__grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
}
.pay {
  min-height: 38px;
  border-radius: 8px;
  background: #1a1a2b;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #d7d7e8;
  font-weight: 700;
}
.disclaimer {
  margin-top: 16px;
  color: #8f8fa8;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .games__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .payments__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .toolbar__row { grid-template-columns: 1fr 1fr; }
  .toolbar__row .toolbar__search { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .games__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .categories__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr; }
  .payments__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .btn-help span:not(.btn-help__icon) { display: none; }
}
@media (max-width: 575px) {
  .categories__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header__inner { min-height: 58px; }
  .intro { margin-top: 58px; }
}
@media (max-width: 467px) {
  .header-actions { gap: 6px; }
  .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .payments__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
