:root {
  --bg-page: #0b0a09;
  --bg-sidebar: #110f0d;
  --bg-card: #161311;
  --bg-card-hover: #1d1815;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-orange: rgba(249, 115, 22, 0.35);
  --text-main: #fafaf9;
  --text-secondary: #a8a29e;
  --text-dim: #78716c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-400: #fb923c;
  --danger: #ef4444;
  --success: #22c55e;
}

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

html {
  color-scheme: dark;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* PORTAL SHELL (TEK SÜTUN + ÜST LOGO BARI) */
.launcher-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ÜST LOGO BARI */
.portal-header {
  padding: 16px 28px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: "Rubik", "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-sub {
  font-family: "Rubik", "Plus Jakarta Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.171em;
  color: var(--text-dim);
  margin-top: 2px;
}

.brand-play {
  font-family: "Bungee", "Chakra Petch", sans-serif;
  font-size: 1.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-left: 6px;
  color: var(--bg-sidebar);
  -webkit-text-fill-color: var(--bg-sidebar);
  -webkit-text-stroke: 1.5px #f59e0b;
  paint-order: stroke fill;
  transition: -webkit-text-fill-color 0.22s ease, color 0.22s ease, filter 0.22s ease;
}

.brand-mark:hover .brand-play,
.brand-play:hover {
  color: #f59e0b;
  -webkit-text-fill-color: #f59e0b;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.38));
}

/* MAIN AREA */
.launcher-main {
  flex: 1;
  padding: 24px 28px 34px;
  background:
    radial-gradient(ellipse 65% 40% at 25% 0%, rgba(249, 115, 22, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 5%, rgba(16, 185, 129, 0.08), transparent 65%);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* FEATURED CINEMATIC BANNER */
.featured-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.85fr);
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.18), transparent 55%),
    linear-gradient(125deg, #1b1512 0%, #12171b 55%, #0e1318 100%);
  border: 1px solid rgba(249, 115, 22, 0.28);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  margin-bottom: 24px;
}

.featured-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.featured-copy h1 {
  margin: 0 0 8px;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.featured-copy p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 520px;
}

.featured-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hero-play-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hero-meta-chip {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.featured-artwork {
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-logo-badge {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  overflow: hidden;
  filter: drop-shadow(0 16px 34px rgba(16, 185, 129, 0.28));
}

.featured-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.38);
  display: block;
}

/* COMPACT GAME CARDS */
.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.section-bar h2 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.15rem;
}

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

.loading-state {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 12px;
  border: 1px dashed var(--border-subtle);
  color: var(--text-secondary);
  text-align: center;
}

.game-card {
  --card-accent: var(--orange-500);
  --spot-x: 50%;
  --spot-y: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px circle at var(--spot-x) var(--spot-y), color-mix(in srgb, var(--card-accent) 18%, transparent), transparent 72%);
  transition: opacity 0.22s ease;
}

.game-card.is-active:hover::before {
  opacity: 1;
}

.game-card.is-active:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.game-card.is-soon {
  opacity: 0.78;
}

.card-visual {
  position: relative;
  height: 76px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--card-accent) 26%, transparent), transparent 62%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 12%, #191614) 0%, #12100e 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--card-accent) 24%, rgba(255, 255, 255, 0.05));
  overflow: hidden;
}

.card-visual-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.72;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.card-visual.has-banner-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.45) 0%, rgba(12, 10, 9, 0.1) 50%, rgba(12, 10, 9, 0.65) 100%);
  pointer-events: none;
}

.game-card.is-active:hover .card-visual-banner-img {
  transform: scale(1.06);
  opacity: 0.88;
}

.card-visual-pattern {
  position: absolute;
  right: -10px;
  bottom: -14px;
  width: 92px;
  height: 92px;
  color: var(--card-accent);
  opacity: 0.22;
  pointer-events: none;
}

.card-code {
  position: relative;
  z-index: 1;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(12, 10, 9, 0.7);
  padding: 2px 7px;
  border-radius: 5px;
}

.card-status {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 16%, rgba(12, 10, 9, 0.78));
  border: 1px solid color-mix(in srgb, var(--card-accent) 42%, transparent);
}

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

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

.card-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent) 32%, transparent);
}

.card-icon-box.has-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: none;
  background: transparent;
}

.card-icon-box.has-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.38);
  display: block;
}

.game-title {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.02rem;
  line-height: 1.2;
}

.game-subtitle {
  margin: 1px 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--card-accent);
}

.game-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.game-tag {
  font-size: 0.68rem;
  color: var(--text-dim);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.card-footer {
  margin-top: auto;
  padding-top: 4px;
}

.game-play-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.game-card.is-active .game-play-btn {
  background: var(--card-accent);
  color: #09130f;
}

.game-card.is-soon .game-play-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  cursor: not-allowed;
}

.legal-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.doc-btn {
  padding: 6px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.doc-btn:hover {
  border-color: var(--orange-400);
}

/* FOOTER (ORTA ALT) */
.portal-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* PRIVACY BANNER (FLOATING KVKK CARD) */
.privacy-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  width: min(440px, calc(100vw - 32px));
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(22, 19, 17, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-orange);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.68);
  animation: privacySlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes privacySlideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.privacy-banner-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.privacy-banner-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.privacy-banner-brand-text strong {
  font-family: "Rubik", "Plus Jakarta Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.privacy-banner-brand-text span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.privacy-banner-text {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.privacy-banner-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

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

.privacy-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.32);
  color: #fed7aa;
}

.privacy-btn-secondary:hover {
  border-color: var(--orange-400);
  background: rgba(249, 115, 22, 0.12);
}

.privacy-btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  border: none;
  color: #fff;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

.privacy-btn-primary:hover {
  filter: brightness(1.08);
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 7, 6, 0.78);
  backdrop-filter: blur(6px);
}

.modal-panel {
  width: min(580px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: #1b1815;
  border: 1px solid var(--border-orange);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.05rem;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  cursor: pointer;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.modal-body p {
  margin: 0 0 10px;
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.modal-footer-actions {
  gap: 8px;
}

.primary-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .portal-header {
    padding: 12px 16px;
  }

  .launcher-main {
    padding: 16px 14px 28px;
  }

  .featured-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .featured-artwork {
    display: none;
  }
}
