/* ========================================
   OMG Gaming - Game detail pages (games/*.html)
   Loaded after style.css. Each page sets --game-accent
   and --game-accent-rgb on <body> to match its artwork.
   ======================================== */

.gd {
  --game-accent: #00AEEF;
  --game-accent-rgb: 0, 174, 239;
}

[data-lang][hidden] { display: none !important; }

/* ---------- Hero ---------- */
.gd-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 72px;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.gd-hero__art {
  position: absolute;
  inset: -40px;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(1.2);
  opacity: 0.45;
  transform: scale(1.1);
}

.gd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(var(--game-accent-rgb), 0.28), transparent 70%),
    linear-gradient(90deg, rgba(26, 28, 33, 0.97) 0%, rgba(26, 28, 33, 0.82) 55%, rgba(26, 28, 33, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.gd-crumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.gd-crumb a { color: var(--color-text-muted); }
.gd-crumb a:hover { color: var(--game-accent); }
.gd-crumb span[aria-current] { color: var(--text-secondary); }

.gd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: center;
}

.gd-title {
  font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 0 40px rgba(var(--game-accent-rgb), 0.35);
}

.gd-tagline {
  font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', sans-serif;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--game-accent);
  margin-bottom: 20px;
  max-width: 34ch;
}

.gd-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 32px;
}

/* Spec sheet */
.gd-specs {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(var(--game-accent-rgb), 0.45);
  margin-bottom: 36px;
  max-width: 640px;
}

.gd-spec {
  flex: 1 1 116px;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--border);
}

.gd-spec dt {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.gd-spec dd {
  font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.gd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gd-actions .btn { padding: 15px 34px; font-size: 15px; }

.gd .btn-play {
  background: var(--game-accent);
  color: #111318;
  font-weight: 700;
}

.gd .btn-play:hover {
  background: var(--color-accent-magenta);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(230, 0, 126, 0.6);
}

.gd .btn:focus-visible,
.gd a:focus-visible {
  outline: 2px solid var(--game-accent);
  outline-offset: 3px;
}

/* Phone frame for portrait screenshots */
.gd-phone {
  margin: 0;
}

.gd-phone__screen {
  border-radius: 28px;
  padding: 8px;
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(var(--game-accent-rgb), 0.25),
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(var(--game-accent-rgb), 0.18);
}

.gd-phone__screen img {
  width: 100%;
  border-radius: 21px;
}

.gd-phone figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-top: 14px;
  text-align: center;
}

/* ---------- Article ---------- */
.gd-article {
  padding: 72px 0 40px;
}

.gd-body {
  max-width: 1000px;
  margin: 0 auto;
}

.gd-body::after { content: ''; display: table; clear: both; }

.gd-body > h2,
.gd-body > h3,
.gd-body > p,
.gd-body > ul {
  max-width: 660px;
}

.gd-body h2 {
  font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin: 56px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--game-accent);
}

.gd-body > h2:first-child { margin-top: 0; }

.gd-body h3 {
  font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--game-accent);
  margin: 32px 0 10px;
}

.gd-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.gd-body strong { color: var(--white); font-weight: 600; }

.gd-body ul {
  margin: 4px 0 20px;
  border-top: 1px solid var(--border);
}

.gd-body li {
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.gd-body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--game-accent);
}

.gd-body .gd-phone {
  float: right;
  width: 270px;
  margin: 6px 0 32px 56px;
}

/* ---------- More games ---------- */
.gd-more {
  padding: 56px 0 88px;
  border-top: 1px solid var(--border);
}

.gd-more__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.gd-more__head h2 {
  font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

.gd-more__head a { color: var(--accent); font-weight: 600; }
.gd-more__head a:hover { color: var(--color-accent-magenta); }

.gd-more__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gd-mini {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.gd-mini:hover { border-color: var(--accent); }

.gd-mini img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gd-mini span {
  display: block;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
}

@media (min-width: 481px) {
  .gd-spec dd { white-space: nowrap; }
  .gd-spec { flex: 1 0 auto; padding-right: 28px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gd-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .gd-hero__visual { max-width: 280px; margin: 0 auto; }
  .gd-body .gd-phone { float: none; width: min(280px, 100%); margin: 28px auto 36px; }
  .gd-more__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gd-hero { padding: 24px 0 56px; }
  .gd-crumb { margin-bottom: 24px; }
  .gd-spec { flex-basis: 40%; }
  .gd-spec dd { font-size: 17px; }
  .gd-actions .btn { flex: 1 1 100%; }
  .gd-article { padding-top: 48px; }
  .gd-body p { font-size: 16px; }
  .gd-more__grid { gap: 12px; }
}

/* ---------- Play modal (shared with games.html look) ---------- */
.game-modal { display:none; position:fixed; inset:0; z-index:9999; align-items:center; justify-content:center; }
.game-modal.is-open { display:flex; }
.game-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.82); backdrop-filter:blur(6px); }
.game-modal__panel {
  position:relative; background:#1A1C21; border:1px solid rgba(0,174,239,0.25);
  border-radius:20px; padding:32px 28px 28px; width:min(560px,96vw);
  max-height:90vh; overflow-y:auto; box-shadow:0 40px 80px rgba(0,0,0,0.7); text-align:center;
}
.game-modal__close {
  position:absolute; top:14px; right:14px; background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12); border-radius:50%; width:36px; height:36px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.game-modal__close:hover { background:rgba(255,255,255,0.15); }
.game-modal__top-text { font-size:11px; font-weight:700; color:#8A94A6; letter-spacing:1px; text-transform:uppercase; line-height:1.6; margin:8px 0 20px; }
.game-modal__now-playing { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; }
.game-modal__now-label { font-size:10px; font-weight:700; color:#FFD700; letter-spacing:2px; text-transform:uppercase; }
.game-modal__now-name { font-size:22px; font-weight:800; color:#fff; line-height:1.2; }
.game-modal__provider {
  display:inline-flex; align-items:center; gap:6px; background:rgba(255,215,0,0.08);
  border:1px solid rgba(255,215,0,0.2); border-radius:20px; padding:5px 14px; font-size:12px;
  font-weight:700; color:#FFD700; letter-spacing:1px; text-transform:uppercase; margin-bottom:24px;
}
.game-modal__sites { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:8px; }
.modal-site-logo {
  display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:12px 8px;
  transition:background 0.2s,border-color 0.2s,transform 0.2s;
}
.modal-site-logo:hover { background:rgba(0,174,239,0.12); border-color:rgba(0,174,239,0.4); transform:translateY(-2px); }
.modal-site-logo img { width:56px; height:56px; object-fit:contain; border-radius:10px; }
@media (max-width:480px) {
  .game-modal__panel { padding:24px 16px 20px; }
  .game-modal__sites { gap:10px; }
  .modal-site-logo img { width:44px; height:44px; }
}

@media (prefers-reduced-motion: reduce) {
  .gd *, .gd *::before, .gd *::after { transition: none !important; }
}

/* Two consecutive screenshots sit side by side in the text flow */
.gd-body .gd-figpair {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 250px));
  gap: 28px;
  margin: 12px 0 32px;
}
.gd-body .gd-figpair .gd-phone { float: none; width: auto; margin: 0; }
@media (max-width: 480px) {
  .gd-body .gd-figpair { gap: 12px; }
  .gd-body .gd-figpair .gd-phone figcaption { font-size: 12px; }
}
