﻿/* Dark minimal theme for mimpiplay */
:root {
  color-scheme: dark;
  --bg-primary: #0e0f14;
  --bg-secondary: #171920;
  --bg-elevated: #1f1f26;
  --bg-accent: #252730;
  --text-primary: #f7f2ea;
  --text-secondary: #d3cfc7;
  --accent: #ff9f1a;
  --accent-strong: #ff7b00;
  --border: rgba(255, 215, 170, 0.12);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 38px rgba(3, 14, 30, 0.35);
  --exclusive-cta-bg: linear-gradient(120deg, #ffba52, #ff8b1f 50%, #ffb86c);
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: radial-gradient(circle at 20% 0, rgba(255, 143, 38, 0.18), transparent 55%), radial-gradient(circle at 80% 0, rgba(255, 201, 94, 0.12), transparent 55%), var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:#0f1a24;position:sticky;top:0;z-index:50}
.site-header .brand{font-weight:700;color:#fff;text-decoration:none}
.nav-toggle{background:#132532;border:1px solid #2b4154;color:#e7f2ff;border-radius:10px;padding:8px 10px;font-size:18px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}

.drawer{
  position:fixed; inset:0 0 0 auto; width:280px; background:#0f1a24;
  box-shadow:-10px 0 30px rgba(0,0,0,.4);
  transform:translateX(100%); transition:transform .25s ease;
  z-index:1000; padding:20px;
}
.drawer.open{ transform:translateX(0) }
.drawer-nav{ display:flex; flex-direction:column; gap:14px }
.drawer-nav a{ color:#cfe7ff; text-decoration:none }
.drawer-nav a:hover{ color:#fff }

.backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s;
  z-index:999;
}
.backdrop.show{ opacity:1; visibility:visible }

.menu, #menu { display:none !important; }

.hero {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.hero-copy {
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--text-secondary);
  margin: 0 auto 1.5rem;
  max-width: 540px;
}

.exclusive-hero {
  display: none;
  margin: 0.8rem 0 1.2rem;
}

.exclusive-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,159,26,0.18), rgba(23,23,32,0.92));
  border: 1px solid rgba(255,159,26,0.28);
  box-shadow: 0 18px 42px rgba(0,0,0,0.5);
}

.exclusive-media img {
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 300px;
  object-fit: contain;
  background: #0e0f14;
  display: block;
  margin: 0 auto;
}

.exclusive-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(12, 19, 28, 0.92);
}

.exclusive-body h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.3rem;
}

.exclusive-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.exclusive-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 0.72rem 1.35rem;
  border-radius: 12px;
  color: #0b1a28;
  font-weight: 700;
  font-size: 0.95rem;
  background-image: var(--exclusive-cta-bg);
  background-size: 220% 220%;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  animation: shimmer 2.6s linear infinite;
}

.exclusive-btn::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #1b0f00;
}

.exclusive-btn:hover {
  color: #04101c;
}

.top-picks {
  display: block;
  margin: 0 0 0.5rem;
}
.top-picks {
  display: block;
  margin: 0 0 0.5rem;
}

.top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.eyebrow {
  font-size: 0.83rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.top-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.top-scroll {
  display: block;
  padding: 0.25rem 0 0.65rem;
}

.top-card {
  position: relative;
  display: block;
  background: rgba(30, 39, 53, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.top-card--featured {
  position: relative;
  padding: 8px;
  background: radial-gradient(circle at 20% 20%, rgba(255,159,26,0.32), rgba(255,123,0,0.08)), linear-gradient(145deg, rgba(255,159,26,0.28), rgba(255,123,0,0.12));
  border: 1px solid rgba(255,159,26,0.55);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,159,26,0.18);
  animation: glowPulse 2.8s ease-in-out infinite;
}

.top-card--featured::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(92,195,255,0.15), rgba(255,255,255,0.04));
  opacity: 0.9;
  pointer-events: none;
}

.top-inner {
  background: rgba(15, 20, 27, 0.9);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.top-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(12,20,28,0.35) 60%, rgba(12,20,28,0.75) 100%);
  pointer-events: none;
  opacity: 0.9;
}

.top-media {
  position: relative;
}

.top-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(14, 15, 20, 0.85);
  border: 1px solid rgba(255,159,26,0.55);
  color: var(--text-primary);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.top-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.top-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(12,20,28,0) 0%, rgba(12,20,28,0.92) 50%, rgba(12,20,28,0.95) 100%);
  z-index: 2;
}

.top-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}

.top-desc {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
  font-size: 0.89rem;
}

.top-tag {
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 159, 26, 0.16);
  color: var(--accent);
  border: 1px solid rgba(255, 159, 26, 0.45);
  font-size: 0.78rem;
  white-space: nowrap;
}

.top-cta {
  background: linear-gradient(135deg, #ffba52, #ff8b1f);
  color: #1b0f00;
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(92,195,255,0.2); }
  50% { box-shadow: 0 24px 58px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(255,159,26,0.26); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

#searchInput {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.75rem 1.1rem;
  min-width: min(360px, 80vw);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#searchInput:focus {
  outline: none;
  border-color: rgba(92, 195, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(92, 195, 255, 0.15);
}

.result-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.search-empty {
  background: rgba(37, 39, 48, 0.7);
  border: 1px dashed var(--border);
  color: var(--text-secondary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin: 0 0 1rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin: 2.1rem 0 3.5rem;
}

.game-card {
  background: rgba(30, 39, 53, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
}

.game-card .card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(92, 195, 255, 0.18);
}

.thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 0.9rem 1rem 1.2rem;
}

.card-body h2 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.card-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.callout {
  background: var(--bg-elevated);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.callout h2 {
  margin-top: 0;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(15, 20, 27, 0.85);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.bottom-nav {
  display: none;
}

.bottom-nav__rail {
  position: fixed;
  inset: auto 0 0 0;
  height: 58px;
  background: rgba(11, 19, 28, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  z-index: 1200;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 4px 8px;
  transition: color 0.18s ease;
}

.bottom-nav__item:hover {
  color: var(--accent-strong);
}

.bottom-nav__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 159, 26, 0.18);
  border: 1px solid rgba(255, 159, 26, 0.32);
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 2rem 0 1rem;
}

.breadcrumb span[aria-hidden="true"] {
  opacity: 0.6;
}

.game-page .game-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.game-page .game-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.meta {
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.game-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.action-btn {
  background: var(--bg-accent);
  border: 1px solid transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.action-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 3;
}

.game-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: #0c1620;
}

.game-wrap::before,
.game-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.game-iframe {
  width: 100%;
  height: 60vh;
  border: 0;
  position: relative;
  z-index: 2;
  display: block;
  background: #000;
}

.click-to-play {
  z-index: 4;
}

.ad-slot {
  margin: 1.5rem 0 2rem;
}

.ad-placeholder {
  border: 1px dashed rgba(92, 195, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(36, 52, 74, 0.4);
}

.game-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.game-details article {
  background: rgba(30, 39, 53, 0.7);
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.game-details h2 {
  margin-top: 0;
}

.game-details ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--text-secondary);
}

.similar {
  margin-bottom: 4rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mini-card {
  background: rgba(30, 39, 53, 0.7);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
}

.mini-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  object-fit: cover;
}

.mini-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.legal-page {
  padding: 3rem 0 4rem;
  max-width: 720px;
}

.legal-page h1 {
  margin-top: 0;
}

.legal-page section + section {
  margin-top: 1.5rem;
}

.source-list {
  list-style: disc;
  padding-left: 1.4rem;
  color: var(--text-secondary);
}

.hidden {
  display: none !important;
}

.ad-slot,
#ad-below-game,
.ad-container {
  display: none !important;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(36, 52, 74, 0.95);
  color: var(--text-primary);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(92, 195, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 200;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .container {
    width: calc(100vw - 28px);
  }

  .top-picks {
    display: none;
  }

  .exclusive-hero {
    display: block;
    margin-top: 0.6rem;
  }

  .exclusive-card {
    min-height: 72vh;
  }

  .hero {
    padding: 0.8rem 0 0.6rem;
    text-align: left;
  }

  .hero-copy {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  #searchInput {
    min-width: 100%;
    width: 100%;
  }

  .result-count {
    width: 100%;
    text-align: left;
    font-size: 0.86rem;
  }

  .top-picks {
    display: block;
  }

  .game-card {
    border-radius: 14px;
  }

  .thumb {
    aspect-ratio: 16 / 9;
  }

  .card-body {
    padding: 0.8rem 0.95rem 1.05rem;
  }

  .card-body h2 {
    font-size: 1rem;
  }

  .card-body p {
    font-size: 0.88rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .game-page .game-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-iframe {
    height: 55vh;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  body {
    padding-bottom: 70px;
  }

  .bottom-nav {
    display: block;
  }
}



