/*
Theme Name: CoinQuest Arcade
Theme URI: https://play-to-earn.games/
Author: Play-to-Earn.Games
Description: Neon arcade theme for independent play-to-earn game guides. HUD panels, quest logs and coin-gold CTAs.
Version: 1.0.2
License: GNU General Public License v2 or later
Text Domain: coinquest
*/

/* ---------- tokens ---------- */
:root {
  --bg: #0b0714;
  --bg2: #0f0a1d;
  --panel: #151024;
  --panel2: #1c1432;
  --ink: #f0eaff;
  --muted: #a89ec9;
  --gold: #ffc93d;
  --gold-dark: #8a6408;
  --magenta: #ff3ec8;
  --cyan: #3fe0ff;
  --lime: #8dff5a;
  --red: #ff5a6a;
  --border: #2c2247;
  --border-lit: #453370;
  --font-body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-head: "Chakra Petch", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    linear-gradient(rgba(140, 110, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 110, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
img { max-width: 100%; height: auto; border-radius: 10px; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #86ecff; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); }
h2 { font-size: clamp(24px, 3.2vw, 32px); margin: 2.2em 0 0.6em; }
h2::before { content: "▶ "; color: var(--magenta); font-size: 0.72em; vertical-align: 2px; }
h3 { font-size: clamp(19px, 2.4vw, 23px); margin: 1.6em 0 0.5em; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.35em; margin: 0 0 1.25em; }
li { margin-bottom: 0.45em; }
strong { color: #fff; }
::selection { background: var(--magenta); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 15px;
  padding: 13px 24px; border-radius: 10px; border: 2px solid #000;
  cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, filter 0.15s;
  white-space: nowrap;
}
.btn .i { flex: none; }
.btn-coin {
  background: linear-gradient(180deg, #ffd95e 0%, #ffc93d 55%, #f0a818 100%);
  color: #241a02 !important; box-shadow: 0 5px 0 var(--gold-dark), 0 8px 24px rgba(255, 201, 61, 0.25);
}
.btn-coin:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 7px 0 var(--gold-dark), 0 12px 28px rgba(255, 201, 61, 0.35); }
.btn-coin:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-dark); }
.btn-neon {
  background: transparent; color: var(--magenta) !important;
  border-color: var(--magenta); box-shadow: 0 0 16px rgba(255, 62, 200, 0.35), inset 0 0 12px rgba(255, 62, 200, 0.12);
}
.btn-neon:hover { background: rgba(255, 62, 200, 0.14); transform: translateY(-2px); color: #ff7ad9 !important; }
.btn-ghost { background: transparent; color: var(--muted) !important; border-color: var(--border-lit); }
.btn-ghost:hover { color: var(--ink) !important; border-color: var(--cyan); }
.btn-lg { font-size: 17px; padding: 16px 30px; }
.btn-sm { font-size: 13px; padding: 9px 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 7, 20, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-text {
  font-family: var(--font-pixel); font-size: 11px; color: var(--ink);
  letter-spacing: 0.02em; text-shadow: 0 0 12px rgba(255, 201, 61, 0.4);
}
.logo-tld { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > .menu-item > a {
  display: block; padding: 10px 13px; color: var(--muted);
  font-family: var(--font-head); font-weight: 600; font-size: 15px; border-radius: 8px;
}
.menu > .menu-item > a:hover, .menu > .current-menu-item > a { color: var(--ink); background: var(--panel2); }
.menu-item-has-children { position: relative; }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--panel2); border: 1px solid var(--border-lit); border-radius: 12px;
  padding: 8px; margin: 4px 0 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: 0.16s; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu li { margin: 0; }
.sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 14.5px; }
.sub-menu a:hover { background: var(--panel); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-family: var(--font-pixel); font-size: 10px; color: var(--cyan);
  border: 1px solid var(--border-lit); padding: 8px 10px; border-radius: 8px;
}
.lang-switch:hover { border-color: var(--cyan); background: rgba(63, 224, 255, 0.08); }
.nav-toggle, .nav-burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 120% at 80% -20%, rgba(255, 62, 200, 0.22), transparent 60%),
    radial-gradient(50% 100% at 10% -10%, rgba(63, 224, 255, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}
.hero-inner { position: relative; z-index: 1; padding: 46px 22px 44px; }
.hero-home .hero-inner { padding: 70px 22px 64px; text-align: center; }
.kicker {
  font-family: var(--font-pixel); font-size: 10.5px; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
  text-shadow: 0 0 14px rgba(255, 201, 61, 0.5);
}
.entry-title { font-size: clamp(30px, 4.6vw, 52px); margin: 0 0 0.4em; text-wrap: balance; }
.hero-home .entry-title { max-width: 880px; margin-left: auto; margin-right: auto; }
.entry-title em { font-style: normal; color: var(--gold); text-shadow: 0 0 22px rgba(255, 201, 61, 0.45); }
.hero-sub { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 760px; margin: 0 auto 1.2em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 6px; }
.hero-home .hero-btns { justify-content: center; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px; list-style: none; padding: 0; margin: 34px 0 0; }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hs-n { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--gold); }
.hs-l { font-size: 13.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 14.5px; margin: 0; }
.home-meta { justify-content: center; margin-top: 14px; }
.badge-ind {
  font-family: var(--font-head); font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--lime); border: 1px solid rgba(141, 255, 90, 0.4);
  background: rgba(141, 255, 90, 0.08); padding: 4px 10px; border-radius: 999px;
}
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--cyan); }

/* mini disclaimer + tooltip */
.mini-disc {
  position: relative; font-size: 12.5px; color: #6f6592; cursor: help;
  border-bottom: 1px dotted #6f6592; outline: none;
}
.mini-disc-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(320px, 82vw); background: var(--panel2); border: 1px solid var(--border-lit);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--muted);
  opacity: 0; visibility: hidden; transition: 0.15s; z-index: 50;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.mini-disc:hover .mini-disc-tip, .mini-disc:focus .mini-disc-tip { opacity: 1; visibility: visible; }

/* ---------- content ---------- */
.content-wrap { padding: 40px 22px 72px; }
.entry-content { max-width: 780px; margin: 0 auto; }
.lead { font-size: 19px; color: #cdc4e8; }
.lead p { margin-bottom: 1em; }
.guide-img { margin: 26px 0; }
.guide-img img { width: 100%; border: 1px solid var(--border-lit); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }

/* verdict box */
.verdict-box {
  position: relative; margin: 30px 0; padding: 20px 22px 12px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 2px solid var(--cyan); border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(63, 224, 255, 0.2), 0 0 34px rgba(63, 224, 255, 0.12);
}
.verdict-box::before, .verdict-box::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 3px solid var(--gold);
}
.verdict-box::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.verdict-box::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.vb-title { font-family: var(--font-pixel); font-size: 11px; color: var(--cyan); margin: 0 0 12px; letter-spacing: 0.06em; }
.vb-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.vb-table th, .vb-table td { text-align: left; padding: 9px 8px; border-top: 1px solid var(--border); vertical-align: top; }
.vb-table tr:first-child th, .vb-table tr:first-child td { border-top: 0; }
.vb-table th { color: var(--muted); font-weight: 500; width: 44%; }
.vb-table td { color: var(--ink); font-weight: 600; }

/* earning meter */
.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i {
  width: 16px; height: 8px; border-radius: 2px; background: var(--border);
  border: 1px solid var(--border-lit);
}
.meter i.on { background: linear-gradient(90deg, var(--gold), #ffe08a); border-color: var(--gold); box-shadow: 0 0 8px rgba(255, 201, 61, 0.5); }
.meter-label { font-size: 13.5px; color: var(--muted); vertical-align: middle; }

/* quest log (TOC) */
.quest-log {
  margin: 30px 0; padding: 18px 22px;
  background: var(--panel); border: 1px solid var(--border-lit); border-radius: var(--radius);
}
.ql-title { font-family: var(--font-pixel); font-size: 10.5px; color: var(--gold); margin: 0 0 12px; }
.quest-log ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.quest-log li { display: flex; gap: 10px; align-items: baseline; break-inside: avoid; margin-bottom: 9px; }
.ql-num { font-family: var(--font-pixel); font-size: 9px; color: var(--magenta); }
.quest-log a { color: var(--muted); font-size: 15px; }
.quest-log a:hover { color: var(--cyan); }

/* sections */
.guide-section { margin-bottom: 8px; }
.xp-bar {
  height: 5px; margin: 34px 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--magenta), var(--gold) 45%, var(--cyan) 90%, var(--border) 90%);
  opacity: 0.35;
}
blockquote {
  margin: 1.4em 0; padding: 16px 20px;
  background: rgba(255, 201, 61, 0.07); border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0; color: #e8dfc0; font-size: 15.8px;
}
blockquote p { margin: 0; }
blockquote p + p { margin-top: 0.7em; }

/* tables in content */
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.3px; }
.entry-content th, .entry-content td { padding: 11px 12px; border: 1px solid var(--border-lit); text-align: left; }
.entry-content thead th, .entry-content tr:first-child th {
  background: var(--panel2); color: var(--cyan); font-family: var(--font-head);
  font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.05em;
}
.entry-content tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

/* CTA banners */
.cta-banner {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  margin: 34px 0; padding: 26px 28px; border-radius: var(--radius); position: relative; overflow: hidden;
}
.cta-box { background: linear-gradient(120deg, #2a0f33, #3d1030 55%, #1c1432); border: 1px solid rgba(255, 62, 200, 0.45); }
.cta-rew { background: linear-gradient(120deg, #241a02 0%, #3d2c05 50%, #1c1432 100%); border: 1px solid rgba(255, 201, 61, 0.45); }
.cta-banner::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0 12px, transparent 12px 24px);
  pointer-events: none;
}
.cta-banner-body { flex: 1 1 320px; position: relative; z-index: 1; }
.cta-banner-btn { position: relative; z-index: 1; }
.cta-kicker { font-family: var(--font-pixel); font-size: 9.5px; color: var(--magenta); margin: 0 0 8px; }
.cta-rew .cta-kicker { color: var(--gold); }
.cta-head { font-family: var(--font-head); font-weight: 700; font-size: 21px; margin: 0 0 6px; color: #fff; }
.cta-sub { color: var(--muted); font-size: 15.3px; margin: 0; }

/* pros & cons */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pc-col { padding: 18px 20px; border-radius: var(--radius); background: var(--panel); }
.pc-pros { border: 1px solid rgba(141, 255, 90, 0.35); }
.pc-cons { border: 1px solid rgba(255, 90, 106, 0.35); }
.pc-h { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 14.5px; margin: 0 0 10px; }
.pc-pros .pc-h { color: var(--lime); }
.pc-cons .pc-h { color: var(--red); }
.pc-col ul { margin: 0; padding-left: 1.2em; font-size: 15.5px; }
.pc-col li { margin-bottom: 0.55em; color: #d6cdee; }

/* FAQ */
.faq-item {
  margin-bottom: 12px; background: var(--panel);
  border: 1px solid var(--border-lit); border-radius: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 46px 16px 20px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-pixel); font-size: 13px; color: var(--gold);
}
.faq-item[open] summary::after { content: "–"; color: var(--magenta); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-a { padding: 14px 20px 6px; color: var(--muted); font-size: 15.6px; }

/* source note */
.source-note {
  margin-top: 34px; padding: 14px 18px; font-size: 13.8px; color: #8d82b0;
  background: var(--panel); border: 1px dashed var(--border-lit); border-radius: 10px;
}

/* ---------- game grid / cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.game-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--border-lit); border-radius: var(--radius);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.game-card:hover {
  transform: translateY(-4px); border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 201, 61, 0.15);
}
.gc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gc-tag {
  font-family: var(--font-head); font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 9px; border-radius: 999px;
}
.gc-tap { color: var(--magenta); background: rgba(255, 62, 200, 0.12); }
.gc-mining { color: var(--gold); background: rgba(255, 201, 61, 0.12); }
.gc-rpg { color: var(--lime); background: rgba(141, 255, 90, 0.1); }
.gc-meta { color: var(--cyan); background: rgba(63, 224, 255, 0.1); }
.gc-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--ink); }
.gc-blurb { color: var(--muted); font-size: 14.6px; flex: 1; }
.gc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.gc-coins { color: #8d82b0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.gc-more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 12px; }
.related { max-width: var(--wrap); margin: 46px auto 0; }
.related-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg2); padding: 52px 0 26px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand .site-logo { margin-bottom: 14px; }
.foot-tagline { color: var(--muted); font-size: 14.6px; }
.foot-mail { font-size: 14.5px; margin-bottom: 16px; }
.foot-h {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 12px;
}
.foot-h-lang { margin-top: 20px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 7px; }
.foot-col a { color: var(--muted); font-size: 14.4px; }
.foot-col a:hover { color: var(--cyan); }
.current-lang { color: var(--gold) !important; }
.foot-disclaimer {
  margin-top: 38px; padding: 18px 20px; border: 1px dashed var(--border-lit); border-radius: 12px;
  color: #7d7299; font-size: 12.8px; line-height: 1.6;
}
.foot-disclaimer p { margin: 0; }
.foot-disclaimer a { color: #9d90c4; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  color: #6f6592; font-size: 12.8px;
}
.foot-bottom p { margin: 0; }

/* trust pages */
.trust-content h2::before { content: "§ "; color: var(--cyan); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .game-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    padding: 10px; cursor: pointer; border: 1px solid var(--border-lit); border-radius: 8px;
  }
  .nav-burger span { width: 20px; height: 2px; background: var(--gold); border-radius: 2px; transition: 0.2s; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; max-height: calc(100vh - 68px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--bg2); border-bottom: 1px solid var(--border-lit);
    padding: 18px 22px 24px; display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu > .menu-item > a { padding: 12px 10px; font-size: 17px; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px; }
  .nav-cta { justify-content: space-between; margin-top: 10px; }
  .hero-inner { padding: 34px 22px 36px; }
  .hero-home .hero-inner { padding: 44px 22px 46px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 22px; }
  .quest-log ol { columns: 1; }
  .pc-grid { grid-template-columns: 1fr; }
  .game-grid, .related-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 22px; }
  .cta-banner-btn .btn { width: 100%; justify-content: center; }
  .vb-table th { width: 50%; }
  .entry-content table { display: block; overflow-x: auto; }
}
@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 9.5px; }
}
