/* ============================================================
   GAME LANDING PAGE
   ============================================================ */

/* BREADCRUMB */
.gp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.gp-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.gp-breadcrumb a:hover {
  color: var(--accent);
}
.gp-breadcrumb span {
  color: var(--text-muted);
}

/* TAGS */
.gp-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.gp-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}
.gp-tag-store {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.3);
  color: #ffb800;
}

/* ============================================================
   HERO
   ============================================================ */
.gp-hero {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}

.gp-title {
  font-family: "Pangolin", cursive;
  font-size: 52px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.gp-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

/* CTA buttons */
.gp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gp-btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: "Pangolin", cursive;
  font-size: 17px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
}
.gp-btn-store svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.gp-btn-badge {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.3);
  color: #ffb800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 2px;
}

.gp-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: "Pangolin", cursive;
  font-size: 17px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.gp-btn-play svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.gp-btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

/* Meta row */
.gp-meta-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.gp-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gp-meta-label {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.gp-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Preview card */
.gp-hero-preview {
  display: flex;
  justify-content: center;
}

.gp-preview-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.gp-preview-placeholder {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  line-height: 0;
}
.gp-preview-placeholder svg {
  width: 96px;
  height: 96px;
}
.gp-preview-placeholder span {
  font-family: "Pangolin", cursive;
  font-size: 20px;
  color: var(--text-muted);
}

.gp-preview-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  font-family: "Pangolin", cursive;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    letter-spacing 0.2s;
}
.gp-preview-play svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.gp-preview-play:hover {
  background: #e0005e;
}

/* ============================================================
   DESCRIPTION SECTION
   ============================================================ */
.gp-description {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px 0;
}
.gp-description-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.gp-desc-body h2 {
  font-family: "Pangolin", cursive;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 16px;
}
.gp-desc-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.gp-desc-body p:last-child {
  margin-bottom: 0;
}

/* Sidebar info card */
.gp-info-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 88px;
}
.gp-info-card h3 {
  font-family: "Pangolin", cursive;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gp-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
.gp-info-row:last-child {
  border-bottom: none;
}
.gp-info-key {
  color: var(--text-muted);
}
.gp-info-val {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.gp-features {
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 64px 0;
}
.gp-features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gp-feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.gp-feature-card:hover {
  border-color: rgba(255, 0, 106, 0.25);
  transform: translateY(-3px);
}
.gp-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.gp-feature-icon svg {
  width: 22px;
  height: 22px;
}
.gp-feature-card h3 {
  font-family: "Pangolin", cursive;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
}
.gp-feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   FEATURE LIST SECTION
   ============================================================ */
.gp-feature-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}
.gp-feature-list h2 {
  font-family: "Pangolin", cursive;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 12px;
}
.gp-feature-list-accent {
  width: 52px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent);
  margin-bottom: 32px;
}
.gp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 40px;
}
.gp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: var(--text-muted);
}
.gp-feature-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 6px var(--accent);
}

/* ============================================================
   MODAL - FLEXIBLE FOR ALL GAMES
   ============================================================ */
.gp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gp-modal.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

body.modal-open {
  overflow: hidden;
}

.gp-modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.gp-modal-inner {
  position: relative;
  z-index: 1;
  width: min(95vw, 500px);
  max-height: 90vh;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.3s var(--ease);
}

/* Portrait games (Kakuro) - 414:896 native ratio */
.gp-modal-inner.portrait {
  width: min(95vw, 414px);
  aspect-ratio: 414 / 896;
  height: auto;
}

/* Landscape games (Sliding Puzzle) */
.gp-modal-inner.landscape {
  width: min(95vw, 960px);
  aspect-ratio: 16 / 10;
  height: auto;
}

.gp-modal.open .gp-modal-inner {
  transform: scale(1) translateY(0);
}

.gp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.gp-modal-title {
  font-family: "Pangolin", cursive;
  font-size: 16px;
  color: var(--text);
}

.gp-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition:
    background 0.2s,
    color 0.2s;
  flex-shrink: 0;
}

.gp-modal-close:hover {
  background: rgba(255, 0, 106, 0.15);
  color: var(--accent);
}

.gp-modal-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gp-modal-body {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #000;
  width: 100%;
}

.gp-modal-body iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.gp-modal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--card);
  z-index: 5;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.gp-modal-loader span {
  font-family: "Pangolin", cursive;
  font-size: 14px;
  color: var(--text-muted);
}

.gp-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.gp-modal-footer span {
  font-size: 13px;
  color: var(--text-muted);
}

.fullscreen-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.fullscreen-btn:hover {
  background: var(--accent-dim);
  border-color: rgba(255, 0, 106, 0.35);
  color: var(--accent);
}

.fullscreen-btn svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .gp-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gp-hero-preview {
    display: none;
  }

  .gp-features-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .gp-description-inner {
    grid-template-columns: 1fr;
  }

  .gp-info-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .gp-title {
    font-size: 36px;
  }

  .gp-features-inner {
    grid-template-columns: 1fr;
  }

  .gp-feature-grid {
    grid-template-columns: 1fr;
  }

  .gp-meta-row {
    gap: 20px;
  }

  .gp-modal-inner {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    max-height: 100vh;
  }

  .gp-modal-inner.portrait,
  .gp-modal-inner.landscape {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
  }

  .gp-modal-body {
    height: calc(100vh - 100px);
  }
}
