/* game.css — Halaman detail aplikasi (game.html) */

.game-page {
  background: var(--cream);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.game-hero {
  position: relative;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  padding: 1.15rem 1.25rem 2.75rem;
  padding-right: calc(1.25rem + var(--rail-w));
}

.game-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.game-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: blur(6px) saturate(1.15);
}

.game-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(13, 148, 136, 0.28) 0%, transparent 55%),
    linear-gradient(165deg, rgba(26, 26, 46, 0.88) 0%, rgba(26, 26, 46, 0.96) 55%, var(--ink) 100%);
}

.game-hero__wrap {
  position: relative;
  z-index: 2;
  max-width: 1140px;
}

.game-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.35rem;
  color: rgba(255, 255, 255, 0.68);
}

.game-crumb a:hover { color: var(--teal-light); }
.game-crumb span[aria-hidden="true"] { opacity: 0.4; }

.game-hero__top {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
}

.game-hero__identity {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.game-hero__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.12);
}

.game-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.game-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.game-tag--cat {
  background: var(--teal);
  color: var(--white);
}

.game-tag--hub {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

.game-hero__titles h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  max-width: 34rem;
}

.game-hero__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.game-hero__stars {
  color: #fcd34d;
  font-weight: 700;
}

.game-hero__dl-count {
  color: rgba(255, 255, 255, 0.72);
}

.game-hero__dl-count::before {
  content: '·';
  margin-right: 0.75rem;
  opacity: 0.45;
}

.game-hero__card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.15rem 1.1rem;
}

.game-hero__dl {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.game-hero__dl-meta {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.65rem;
}

.game-hero__trust {
  list-style: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
}

.game-hero__trust li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.3rem;
}

.game-hero__trust li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal-light);
  font-weight: 700;
}

.game-hero__lead {
  font-size: 1.0125rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42rem;
  margin-bottom: 1.35rem;
}

.game-hero__chips {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.game-hero__chips li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-hero__chips span {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

.game-hero__chips strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ══════════════════════════════════════
   BANNER (overlap hero)
══════════════════════════════════════ */
.game-main {
  max-width: 1140px;
  padding: 0 1.25rem 6.25rem;
  padding-right: calc(1.25rem + var(--rail-w));
}

.game-banner {
  position: relative;
  margin: -2rem 0 2.25rem;
  z-index: 3;
}

.game-banner__glow {
  position: absolute;
  inset: 8% 5%;
  background: var(--teal);
  filter: blur(48px);
  opacity: 0.22;
  border-radius: 50%;
  z-index: 0;
}

.game-banner__frame {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 46, 0.08);
  box-shadow:
    0 24px 64px rgba(26, 26, 46, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  background: var(--ink);
}

.game-banner__frame img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.game-banner figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ══════════════════════════════════════
   LAYOUT: stream + sticky side
══════════════════════════════════════ */
.game-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.game-side {
  display: block;
  order: 1;
}

.game-stream {
  min-width: 0;
  order: 2;
}

.game-side__dl-wrap {
  display: none;
}

.game-sect {
  margin-bottom: 2.5rem;
  padding-left: 0.25rem;
}

.game-sect__head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.game-sect__idx {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-style: italic;
  line-height: 1;
  color: var(--teal);
  opacity: 0.85;
}

.game-sect__head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.game-sect--lead {
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.04);
}

.game-sect--lead .game-sect__head {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 1.25rem;
}

.game-prose {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--ink-mid);
}

.game-prose p {
  margin-bottom: 1.05rem;
}

.game-prose p:last-child {
  margin-bottom: 0;
}

.game-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.game-timeline {
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}

.game-timeline::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--cream-dark) 100%);
  border-radius: 2px;
}

.game-timeline__item {
  position: relative;
  padding-bottom: 1.35rem;
}

.game-timeline__item:last-child {
  padding-bottom: 0;
}

.game-timeline__dot {
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  margin-left: -0.1rem;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--cream-dark);
}

.game-timeline__item--now .game-timeline__dot {
  background: var(--teal);
  box-shadow: 0 0 0 2px var(--teal-light), 0 0 12px rgba(13, 148, 136, 0.45);
}

.game-timeline__body {
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
}

.game-timeline__item--now .game-timeline__body {
  border-color: rgba(13, 148, 136, 0.28);
  background: linear-gradient(135deg, var(--white) 0%, var(--teal-light) 120%);
}

.game-timeline__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-dark);
  margin-bottom: 0.45rem;
}

.game-timeline__body p:last-child {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 0;
}

.game-split {
  display: grid;
  gap: 1rem;
}

.game-split__box {
  padding: 1.25rem 1.15rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
}

.game-split__box h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.game-split__box--plus {
  border-top: 3px solid var(--teal);
}

.game-split__box--plus h3 {
  color: var(--teal-dark);
}

.game-split__box--minus {
  border-top: 3px solid var(--coral);
}

.game-split__box--minus h3 {
  color: var(--coral-dark);
}

.game-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.game-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9375rem;
  line-height: 1.58;
  color: var(--ink-mid);
}

.game-list--plus li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.game-list--minus li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.game-reviews {
  display: grid;
  gap: 1rem;
}

.game-review {
  position: relative;
  margin: 0;
  padding: 1.25rem 1.15rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 14px;
  overflow: hidden;
}

.game-review__mark {
  position: absolute;
  top: -0.15rem;
  right: 1rem;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--teal-light);
  opacity: 0.65;
  pointer-events: none;
}

.game-review p {
  position: relative;
  z-index: 1;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--ink-mid);
  margin-bottom: 1rem;
}

.game-review footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cream-dark);
}

.game-review cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.game-review footer span {
  color: #d97706;
  font-weight: 700;
  white-space: nowrap;
}

.game-review--feat {
  background: linear-gradient(145deg, var(--white) 0%, var(--teal-light) 100%);
  border-color: rgba(13, 148, 136, 0.22);
}

.game-faq {
  display: grid;
  gap: 0.55rem;
}

.game-faq__item {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.game-faq__item[open] {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.08);
}

.game-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1rem 1.1rem;
  list-style: none;
  line-height: 1.45;
}

.game-faq__item summary::-webkit-details-marker {
  display: none;
}

.game-faq__item summary::after {
  content: '+';
  float: right;
  margin-left: 0.75rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 1.125rem;
}

.game-faq__item[open] summary::after {
  content: '−';
}

.game-faq__answer {
  padding: 0 1.1rem 1.05rem;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--ink-mid);
}

.game-back {
  padding-top: 0.5rem;
}

.game-back a {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  color: var(--ink-mid);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.game-back a:hover {
  color: var(--teal-dark);
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
}

.game-side__sticky {
  padding: 1.15rem 1rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.06);
}

.game-side__dl-wrap {
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--cream-dark);
}

.game-side__dl {
  text-align: center;
  font-size: 0.9375rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.22);
}

.game-side__dl-meta {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 0.55rem;
}

/* ── More apps sidebar ── */
.game-more__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.game-more__list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.game-more__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.5rem;
  border-radius: 10px;
  transition: background 0.12s;
}

.game-more__item:hover {
  background: var(--cream);
}

.game-more__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
}

.game-more__body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.game-more__name {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-more__meta {
  font-size: 0.6875rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-more__cat {
  flex-shrink: 0;
  max-width: 5.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: right;
  line-height: 1.3;
  color: var(--teal-dark);
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  background: var(--teal-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-more__all {
  display: block;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cream-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-align: center;
}

.game-more__all:hover {
  color: var(--teal);
}

.game-dock {
  position: fixed;
  left: 0;
  right: var(--rail-w);
  bottom: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--cream-dark);
  box-shadow: 0 -10px 32px rgba(26, 26, 46, 0.08);
  padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom, 0));
}

.game-dock__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 1140px;
  margin: 0 auto;
}

.game-dock__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.game-dock__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.game-dock__info strong {
  font-size: 0.875rem;
  text-transform: lowercase;
}

.game-dock__info span {
  font-size: 0.6875rem;
  color: var(--ink-soft);
}

.game-dock__btn {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
}

.game-dock__btn:hover {
  background: var(--teal-dark);
}

@media (min-width: 640px) {
  .game-hero__chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .game-split {
    grid-template-columns: 1fr 1fr;
  }

  .game-reviews {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-review--feat {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.12);
  }
}

@media (min-width: 768px) {
  .game-hero {
    padding: 1.75rem 2rem 3.25rem;
    padding-right: calc(2rem + var(--rail-w));
  }

  .game-main {
    padding: 0 2rem 2rem;
    padding-right: calc(2rem + var(--rail-w));
  }

  .game-hero__icon {
    width: 96px;
    height: 96px;
  }

  .game-hero__top {
    grid-template-columns: 1fr minmax(240px, 280px);
    align-items: start;
    gap: 2rem;
  }

  .game-banner {
    margin-top: -3.5rem;
    margin-bottom: 2.75rem;
  }
}

@media (min-width: 900px) {
  .game-hero,
  .game-main,
  .game-page .foot {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 2.5rem;
    align-items: start;
  }

  .game-side {
    display: block;
    order: unset;
  }

  .game-stream {
    order: unset;
  }

  .game-side__dl-wrap {
    display: block;
  }

  .game-side__sticky {
    position: sticky;
    top: 1.5rem;
  }

  .game-hero__card {
    display: none;
  }

  .game-dock {
    display: none;
  }

  .game-main {
    padding-bottom: 3rem;
  }
}

@media (min-width: 1100px) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
  }
}
