/* ==========================================================================
   IGRYMAN.RU — PORTAL STYLESHEET (PIKABU GAMES THEME)
   ========================================================================== */

:root {
  --bg-main: #121316;
  --bg-surface: #1a1c21;
  --bg-card: #20232a;
  --bg-card-hover: #282c35;
  --bg-input: #15161a;
  --border-color: #2b2f38;
  --border-light: #383e4a;
  --primary: #2abb59;
  --primary-hover: #24a14c;
  --primary-glow: rgba(42, 187, 89, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #9ea5b3;
  --text-muted: #6e7583;
  --star-gold: #f5a623;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 8px 28px rgba(0, 0, 0, 0.5);
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Chava', 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(22, 24, 29, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.site-logo:hover {
  opacity: 0.9;
}

.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* SEARCH */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.search-input-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  transition: var(--transition);
}

.search-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  margin-right: 10px;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 1010;
}

.search-dropdown.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color var(--transition);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--bg-card-hover);
}

.search-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  overflow: hidden;
}

.search-result-title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-pill:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
}

/* ==========================================================================
   GENRE NAVIGATION BAR
   ========================================================================== */

.genre-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.genre-bar::-webkit-scrollbar {
  display: none;
}

.genre-bar-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.genre-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 0;
}

.genre-tab:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.genre-tab.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.genre-tab img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   MAIN CONTENT & CONTAINER
   ========================================================================== */

.main-content {
  flex: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span.current {
  color: var(--text-primary);
  font-weight: 600;
}

.breadcrumbs-sep {
  opacity: 0.5;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1b2028 0%, #15181e 100%);
  border: 1px solid var(--border-light);
  margin-bottom: 36px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(42, 187, 89, 0.15);
  color: var(--primary);
  border: 1px solid rgba(42, 187, 89, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.hero-image-wrap {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  max-width: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-light);
}

.hero-image-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   GENRE SECTION & GRID
   ========================================================================== */

.genre-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.section-more-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.section-more-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.game-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.game-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: #0c0d0f;
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.game-card:hover .card-overlay {
  opacity: 1;
}

.card-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: scale(0.85);
  transition: transform var(--transition);
}

.game-card:hover .card-play-btn {
  transform: scale(1);
}

.card-play-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-left: 2px;
}

.card-badge-rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(18, 19, 22, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-badge-rating svg {
  width: 11px;
  height: 11px;
  fill: var(--star-gold);
}

.card-badge-age {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(18, 19, 22, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

.card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.card-genre {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: auto;
}

/* ==========================================================================
   GAME PLAYER PAGE
   ========================================================================== */

.game-page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* PLAYER FRAME WRAPPER */
.player-wrapper {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  background-color: #0b0c0e;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: max-width 0.3s ease;
}

.player-wrapper.theater-mode {
  max-width: 100%;
}

.player-frame-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000000;
}

.player-frame-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background-color: #000;
  z-index: 1;
}

/* GAME LOADER SCREEN */
.game-loader-screen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #1c1f26 0%, #0d0e12 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
}

.game-loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.loader-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(42, 187, 89, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ig-spin 0.9s cubic-bezier(0.6, 0.2, 0.4, 0.9) infinite;
  margin-bottom: 20px;
}

@keyframes ig-spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.loader-subtext {
  font-size: 13px;
  color: var(--text-muted);
}

/* PLAYER TOOLBAR */
.player-toolbar {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  transition: var(--transition);
}

.tool-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.tool-btn.active {
  color: #ff4757;
  border-color: #ff4757;
}

.tool-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* GAME DETAILS SECTION */
.game-details-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.game-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.game-h1 {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.3;
}

.game-badges-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.badge-tag.rating {
  color: var(--star-gold);
}

.badge-tag.rating svg {
  width: 12px;
  height: 12px;
  fill: var(--star-gold);
}

.game-description-block, .game-controls-block {
  margin-top: 20px;
}

.game-subheading {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.game-body-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14.5px;
}

.game-body-text p {
  margin-bottom: 12px;
}

.game-body-text ol, .game-body-text ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.game-body-text li {
  margin-bottom: 6px;
}

.game-features-title {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 16px;
  margin: 18px 0 9px;
}

.game-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
}

.game-highlights li {
  position: relative;
  margin: 0;
  padding: 11px 12px 11px 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  line-height: 1.45;
}

.game-highlights li::before {
  content: '✓';
  position: absolute;
  left: 12px;
  top: 11px;
  color: var(--primary);
  font-weight: 800;
}

/* ==========================================================================
   SIMILAR GAMES
   ========================================================================== */

.similar-games-wrap {
  max-width: 1160px;
  margin: 16px auto 0;
  width: 100%;
}

/* ==========================================================================
   PAGE MAIN HEADING (H1)
   ========================================================================== */

.page-main-heading {
  text-align: center;
  margin-bottom: 28px;
  padding: 32px 20px 28px;
  background: linear-gradient(135deg, rgba(42, 187, 89, 0.08) 0%, rgba(42, 187, 89, 0.02) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(42, 187, 89, 0.15);
}

.main-h1 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.main-h1-sub {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
}

.demo-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 24px auto 0;
  text-align: left;
}

.demo-facts > div {
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.demo-facts dt {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.demo-facts dd {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.demo-scope-note {
  max-width: 900px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background-color: rgba(42, 187, 89, 0.06);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.demo-scope-note strong {
  color: var(--text-primary);
}

/* ==========================================================================
   DEMO STEPS SECTION
   ========================================================================== */

.demo-steps-section {
  margin-bottom: 36px;
}

.demo-steps-title {
  font-family: var(--font-heading);
  font-size: 22px;
  text-align: center;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.demo-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.demo-step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.demo-steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-step-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(42, 187, 89, 0.12);
  transform: translateY(-3px);
}

.demo-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(42, 187, 89, 0.2) 0%, rgba(42, 187, 89, 0.08) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.demo-step-number {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 6px;
}

.demo-step-name {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.demo-step-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================================================== 
   DEMO ACCOUNT RULES & FAQ
   ========================================================================== */

.demo-rules-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  margin: 0 0 42px;
  padding: 28px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.demo-rules-copy h2,
.demo-faq-section h2 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.demo-rules-copy p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.demo-rules-copy p:last-child {
  margin-bottom: 0;
}

.demo-rules-copy dfn {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 700;
}

.demo-table-wrap {
  overflow-x: auto;
}

.demo-compare {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.demo-compare caption {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;
}

.demo-compare th,
.demo-compare td {
  border: 1px solid var(--border-color);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.demo-compare thead th {
  background-color: rgba(42, 187, 89, 0.08);
  color: var(--text-primary);
}

.demo-compare tbody th {
  color: var(--text-primary);
  font-weight: 600;
  width: 34%;
}

.demo-faq-section {
  margin-top: 12px;
  padding: 28px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.demo-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-faq-list details {
  padding: 15px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.demo-faq-list details[open] {
  border-color: rgba(42, 187, 89, 0.45);
}

.demo-faq-list summary {
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.demo-faq-list p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 10px;
}

/* ==========================================================================
   DEMO ADVANTAGES SECTION
   ========================================================================== */

.demo-advantages-section {
  margin-bottom: 40px;
  margin-top: 8px;
}

.demo-advantages-title {
  font-family: var(--font-heading);
  font-size: 22px;
  text-align: center;
  margin-bottom: 22px;
  color: var(--text-primary);
}

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

.demo-adv-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  transition: var(--transition);
}

.demo-adv-card:hover {
  border-color: var(--border-light);
  background-color: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.demo-adv-icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}

.demo-adv-name {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.demo-adv-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   PORTAL SEO / ABOUT SECTION
   ========================================================================== */

.portal-seo-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.portal-seo-box h2 {
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 12px;
}

.portal-seo-box p {
  margin-bottom: 12px;
}

.portal-seo-box h3 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 17px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.genre-editorial {
  margin-top: 48px;
  padding: 30px;
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-card));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.genre-editorial-heading {
  max-width: 920px;
  margin-bottom: 24px;
}

.genre-editorial-kicker {
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.genre-editorial h2 {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.25;
}

.genre-editorial-heading > p:last-child,
.genre-choice-note {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.genre-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.genre-guide-group {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.genre-guide-group h3 {
  margin-bottom: 14px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.35;
}

.genre-game-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.genre-game-list li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.genre-game-list a {
  color: var(--text-primary);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(42, 187, 89, 0.55);
  text-underline-offset: 3px;
}

.genre-game-list a:hover {
  color: var(--primary);
}

.genre-choice-note {
  margin-top: 22px;
  padding: 16px 18px;
  background-color: rgba(255, 255, 255, 0.035);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.genre-choice-note strong {
  color: var(--text-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 36px 0 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.footer-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-genres a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-genres a:hover {
  color: var(--primary);
}

.footer-service-links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
}

.footer-service-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-service-links a:hover,
.footer-service-links a[aria-current="page"] {
  color: var(--primary);
}

.contact-page {
  max-width: 980px;
  margin: 0 auto;
}

.contact-hero {
  max-width: 760px;
  padding: 24px 0 30px;
}

.contact-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
}

.contact-hero > p:last-child,
.contact-primary p,
.contact-sections li,
.contact-note p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-card));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.contact-page h2 {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 20px;
}

.contact-primary address {
  margin-bottom: 10px;
  font-style: normal;
}

.contact-primary address a {
  color: var(--primary);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-mail-button {
  flex: 0 0 auto;
  padding: 12px 18px;
  color: #07120a;
  background-color: var(--primary);
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-mail-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.contact-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.contact-sections section,
.contact-note {
  padding: 24px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.contact-sections ul,
.contact-sections ol {
  display: grid;
  gap: 9px;
  padding-left: 22px;
}

.contact-note {
  margin-top: 18px;
  border-left: 3px solid var(--primary);
}

@media (max-width: 700px) {
  .contact-primary {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }

  .contact-sections {
    grid-template-columns: 1fr;
  }

  .contact-sections section,
  .contact-note {
    padding: 20px 18px;
  }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 900px) {
  .hero-banner {
    flex-direction: column;
    padding: 24px;
  }
  .hero-image-wrap {
    max-width: 100%;
    width: 100%;
  }
  .game-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .demo-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .demo-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-rules-section {
    grid-template-columns: 1fr;
  }
  .demo-faq-list {
    grid-template-columns: 1fr;
  }
  .demo-advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .main-h1 {
    font-size: 24px;
  }
  .genre-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .player-toolbar {
    flex-wrap: wrap;
  }
  .demo-advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-main-heading {
    padding: 24px 16px 20px;
  }
  .demo-facts {
    grid-template-columns: 1fr;
  }
  .demo-rules-section,
  .demo-faq-section {
    padding: 20px 16px;
  }
  .main-h1 {
    font-size: 22px;
  }
  .game-highlights {
    grid-template-columns: 1fr;
  }
  .genre-editorial {
    padding: 22px 16px;
  }
  .genre-guide-group {
    padding: 18px 16px;
  }
}
