/* ═══════════════════════════════════════
   GILTGAMES — Dark Academia Luxury Gold
   ═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #1a0f1a;
  --bg2: #231522;
  --card: #2a1a28;
  --card-hover: #352536;
  --surface: #1f131f;
  --text: #f5ecd7;
  --text2: #b8a88a;
  --text3: #6b5d4a;
  --border: rgba(201,168,76,0.1);
  --accent: #c9a84c;
  --accent2: #e8d5a3;
  --burgundy: #6b2c3a;
  --shadow: 0 6px 28px rgba(0,0,0,0.3);
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(ellipse at 30% 20%, rgba(201,168,76,0.02) 0%, transparent 60%);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
.page { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .page { padding: 0 28px; } }

/* ═══ HEADER ═══ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,15,26,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.h-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 14px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--accent2);
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--bg); font-size: 18px;
}
.logo span { color: var(--accent); }
.nav { display: none; gap: 4px; }
.nav a {
  padding: 6px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 400; color: var(--text2); letter-spacing: 0.5px;
}
.nav a:hover, .nav a.active { background: rgba(201,168,76,0.06); color: var(--accent2); }
@media (min-width: 768px) { .nav { display: flex; } }
.header-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text2); font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent2); }
.srch-d { display: none; position: relative; flex: 1; max-width: 280px; }
.srch-d input {
  width: 100%; height: 36px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 12px 0 34px; font-size: 13px;
  outline: none; color: var(--text); font-weight: 300;
}
.srch-d input:focus { border-color: var(--accent); }
.srch-d input::placeholder { color: var(--text3); }
.srch-d .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text3); }
@media (min-width: 768px) { .srch-d { display: block; } }

/* ═══ HERO ═══ */
.hero {
  position: relative; margin: 28px 0; border-radius: var(--radius);
  overflow: hidden; min-height: 320px;
  background: linear-gradient(135deg, #1f1020 0%, #2a1a28 40%, #1a1518 100%);
  border: 1px solid var(--border);
}
.hero-bg-layer {
  position: absolute; inset: 0; opacity: 0.08;
  background-size: cover; background-position: center; filter: blur(12px);
}
.hero-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 28px;
  padding: 36px 40px; min-height: 320px;
}
.hero-icon {
  width: 100px; height: 100px; border-radius: 16px;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(201,168,76,0.15);
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg); font-size: 9px; font-weight: 600;
  padding: 3px 14px; border-radius: 4px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px;
}
.hero-text h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.15; margin-bottom: 8px; }
.hero-text p { color: var(--text2); font-size: 14px; line-height: 1.6; margin-bottom: 10px; max-width: 500px; }
.hero-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text3); margin-bottom: 18px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 30px; border-radius: 8px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent);
  font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--font-display);
  transition: all .25s;
}
.hero-btn:hover { background: rgba(201,168,76,0.08); color: var(--accent2); border-color: var(--accent2); }
@media (max-width: 640px) {
  .hero { min-height: auto; margin: 20px 0; }
  .hero-content { flex-direction: column; text-align: center; padding: 28px 24px; }
  .hero-icon { width: 72px; height: 72px; }
  .hero-text p { max-width: 100%; }
  .hero-meta { justify-content: center; }
}

/* ═══ Pills ═══ */
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 20px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; padding: 7px 18px; border-radius: 6px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.5px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; white-space: nowrap;
}
.pill:hover { border-color: var(--accent); color: var(--accent2); }
.pill.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* ═══ Sections ═══ */
.sec-hd { display: flex; align-items: center; gap: 12px; margin: 36px 0 20px; }
.sec-hd h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; white-space: nowrap; }
.sec-hd .line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201,168,76,0.12), transparent); }
.sec-hd .tag {
  font-size: 9px; font-weight: 600; padding: 3px 12px;
  border-radius: 4px; border: 1px solid var(--accent);
  color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
}

/* ═══ Strip ═══ */
.sw { position: relative; margin-bottom: 10px; }
.strip {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 0 14px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  cursor: grab;
}
.strip:active { cursor: grabbing; }
.strip::-webkit-scrollbar { height: 4px; }
.strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sb {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text2); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.sw:hover .sb { opacity: 1; pointer-events: auto; }
.sb:hover { border-color: var(--accent); color: var(--accent2); }
.sb-l { left: -10px; } .sb-r { right: -10px; }

.gs { flex-shrink: 0; width: 150px; cursor: pointer; text-decoration: none; color: var(--text); }
.gs:hover { transform: translateY(-4px); }
.gs .thumb {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm);
  overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--border);
}
.gs:hover .thumb { border-color: var(--accent); }
.gs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gs .hot {
  position: absolute; top: 6px; right: 6px;
  background: var(--burgundy); color: var(--accent2); font-size: 8px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
}
.gs .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; }
.gs:hover .overlay { opacity: 1; }
.gs .pb {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg); font-size: 10px; font-weight: 600; padding: 5px 16px;
  border-radius: 6px; letter-spacing: 1px;
}
.gs .name { font-size: 13px; font-weight: 500; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs .stats { display: flex; gap: 12px; margin-top: 3px; font-size: 11px; color: var(--text3); }

.cg { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 36px; }
@media (min-width: 640px) { .cg { grid-template-columns: repeat(4,1fr); } }
.cc {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; cursor: pointer;
  text-decoration: none; color: var(--text);
}
.cc:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.cc .emoji { font-size: 32px; margin-bottom: 8px; }
.cc h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cc .sub { font-size: 11px; color: var(--text3); }

.gg { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 36px; }
@media (min-width: 500px) { .gg { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 768px) { .gg { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 1024px) { .gg { grid-template-columns: repeat(5,1fr); gap: 16px; } }
.gc {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; text-decoration: none; color: var(--text);
}
.gc:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.gc .thumb { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--surface); position: relative; }
.gc .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gc .hot {
  position: absolute; top: 6px; right: 6px;
  background: var(--burgundy); color: var(--accent2); font-size: 7px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
}
.gc .info { padding: 12px 14px; }
.gc .info h3 { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc .info .m { font-size: 10px; color: var(--text3); margin-top: 3px; display: flex; gap: 10px; }
.lm {
  display: block; margin: 0 auto 44px;
  padding: 10px 34px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text2); font-size: 13px; font-weight: 400; cursor: pointer;
}
.lm:hover { border-color: var(--accent); color: var(--accent2); }
.lm:disabled { opacity: 0.3; cursor: not-allowed; }

footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 20px; }
.fg { display: grid; grid-template-columns: 1fr; gap: 28px; font-size: 13px; }
@media (min-width: 640px) { .fg { grid-template-columns: 2fr 1fr 1fr; } }
footer h4 { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; color: var(--accent); }
footer a { display: block; color: var(--text2); font-size: 12px; padding: 3px 0; }
footer a:hover { color: var(--accent2); }
footer p { color: var(--text2); font-size: 12px; }
footer .copy { font-size: 10px; color: var(--text3); margin-top: 16px; }

.ch { padding: 28px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.ch h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.ch p { font-size: 13px; color: var(--text2); margin-top: 4px; }

.bc { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); padding: 16px 0; }
.bc a { color: var(--text3); } .bc a:hover { color: var(--accent2); }
.gd { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .gd { grid-template-columns: 2fr 1fr; } }
.pp { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pa { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.pl {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; text-align: center;
  background: linear-gradient(rgba(26,15,26,0.92), rgba(26,15,26,0.96));
}
.pl img { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 10px; }
.pl h2 { font-family: var(--font-display); color: #fff; font-size: 18px; margin-bottom: 4px; }
.pl p { color: var(--text3); font-size: 12px; margin-bottom: 18px; }
.pnb {
  padding: 11px 32px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent);
  font-family: var(--font-display); font-size: 14px; cursor: pointer;
  border-radius: 8px;
}
.pnb:hover { background: rgba(201,168,76,0.06); }
.gi { position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: none; }
.fb {
  position: absolute; bottom: 12px; right: 12px; z-index: 10;
  background: rgba(0,0,0,0.4); color: #fff; border: 1px solid rgba(255,255,255,0.1);
  font-size: 10px; padding: 5px 14px; border-radius: 6px; cursor: pointer; display: none;
}
.gm { padding: 22px 24px; }
.gm .tr { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.gm h1 { font-family: var(--font-display); font-size: 20px; }
.gm .sr { display: flex; gap: 10px; font-size: 11px; padding: 5px 14px; border: 1px solid var(--border); border-radius: 6px; color: var(--text2); }
.gm .desc { font-size: 14px; line-height: 1.7; color: var(--text2); } .gm .desc strong { color: var(--text); }
.ib { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--card); }
.ib h3 { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; color: var(--accent); }
.sg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.si .l { font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; } .si .v { font-size: 14px; font-weight: 500; margin-top: 2px; }

.so { display: none; position: fixed; inset: 0; z-index: 200; background: var(--bg); flex-direction: column; }
.so.open { display: flex; }
.st { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.st input { flex: 1; font-size: 16px; background: transparent; border: none; color: var(--text); outline: none; }
.sr { flex: 1; overflow-y: auto; padding: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; align-content: start; }
.do { display: none; position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0.4); }
.do.open { display: block; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 270px; background: var(--bg2); border-right: 1px solid var(--border); z-index: 160; transform: translateX(-100%); }
.drawer.open { transform: translateX(0); }
.dh { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.dn { flex: 1; overflow-y: auto; padding: 12px; }
.di { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 6px; font-size: 14px; color: var(--text2); }
.di:hover { background: rgba(201,168,76,0.04); color: var(--accent2); }
.dc { font-size: 10px; background: var(--surface); padding: 2px 10px; border-radius: 8px; color: var(--text3); }
.dl { border-top: 1px solid var(--border); padding: 12px; }
.dl a { display: block; font-size: 12px; color: var(--text2); padding: 6px 14px; }
.dl a:hover { color: var(--accent2); }

@media (max-width:640px) {
  .gg { gap: 10px; } .gc .info { padding: 10px 12px; } .gc .info h3 { font-size: 12px; }
  .gs { width: 130px; }
  .ch h1 { font-size: 22px; }
  .pa { aspect-ratio: 4/3; }
  .gm h1 { font-size: 17px; }
}

/* ── Anchor Ad (bottom sticky) ── */
.gpt-anchor { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; display: flex; justify-content: center; background: rgba(0,0,0,0.6); padding: 4px 0; }
.gpt-anchor-inner { min-width: 320px; min-height: 50px; width: 320px; height: 50px; }

/* ── Interstitial Ad ── */
.gpt-interstitial { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; }
.gpt-interstitial-inner { min-width: 300px; min-height: 250px; width: 300px; height: 250px; }
.gpt-interstitial-close { position: absolute; top: 16px; right: 16px; background: #fff; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 18px; cursor: pointer; z-index: 1001; }
