/*
Theme Name: GameMY
Theme URI: https://yjytv.com/
Author: GameMY
Author URI: https://yjytv.com/
Description: GameMY - Malaysia's mobile esports hub. A dark, fast, bilingual (English / Bahasa Melayu) vertical theme built for Mobile Legends: Bang Bang, PUBG Mobile and Free Fire coverage. Polylang-aware, Yoast-aware, schema-rich.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: gamemy
Tags: gaming, esports, custom-colors, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* surfaces */
  --bg:            #070A12;
  --bg-2:          #0C1120;
  --surface:       #101728;
  --surface-2:     #151E33;
  --surface-3:     #1C2742;
  --line:          rgba(148, 163, 184, .14);
  --line-strong:   rgba(148, 163, 184, .26);

  /* text */
  --ink:           #E9EEF9;
  --ink-2:         #B9C4DA;
  --ink-3:         #8794AF;
  --ink-4:         #64708A;

  /* brand */
  --brand:         #FF2E63;
  --brand-600:     #E01B4E;
  --brand-soft:    rgba(255, 46, 99, .13);
  --cyan:          #25E0C8;
  --cyan-soft:     rgba(37, 224, 200, .13);

  /* per-game accents */
  --mlbb:          #4C8DFF;
  --mlbb-soft:     rgba(76, 141, 255, .14);
  --pubg:          #F5A623;
  --pubg-soft:     rgba(245, 166, 35, .14);
  --ff:            #FF4733;
  --ff-soft:       rgba(255, 71, 51, .14);

  /* semantic */
  --ok:            #2ED47A;
  --warn:          #F5A623;
  --err:           #FF4D4D;

  /* shape */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Inter", "Noto Sans", "Noto Sans Malayalam", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* layout */
  --wrap: 1200px;
  --gap: 24px;
  --header-h: 66px;

  /* effects */
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.75);
  --glow: 0 0 0 1px rgba(255,46,99,.35), 0 12px 40px -14px rgba(255,46,99,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  /* subtle top glow so the page does not read as flat black */
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 520px; z-index: -1;
  background:
    radial-gradient(1100px 460px at 18% -12%, rgba(255,46,99,.16), transparent 62%),
    radial-gradient(900px 420px at 88% -18%, rgba(37,224,200,.13), transparent 60%);
  pointer-events: none;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .16s var(--ease); }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding-left: 1.15em; }
li { margin: .4em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  line-height: 1.2;
  letter-spacing: -.018em;
  font-weight: 800;
  color: #fff;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.06rem; }
p  { margin: 0 0 1.1em; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1340px; }
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; padding: 34px 0 64px; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.cols { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 40px; align-items: start; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ==========================================================================
   4. Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7,10,18,.88);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--brand), #7A1BFF 62%, var(--cyan));
  display: grid; place-items: center;
  font-weight: 900; font-size: 15px; color: #fff; letter-spacing: -.04em;
  box-shadow: 0 6px 20px -8px rgba(255,46,99,.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 900; font-size: 1.16rem; letter-spacing: -.03em; color: #fff; }
.brand-name em { font-style: normal; color: var(--brand); }
.brand-tag { font-size: .625rem; color: var(--ink-4); letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }

.nav { margin-left: 6px; flex: 1 1 auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav li { margin: 0; position: relative; }
.nav a {
  display: block; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .905rem; font-weight: 650; color: var(--ink-2); white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible { background: var(--surface-2); color: #fff; }
.nav .current-menu-item > a,
.nav .current-menu-parent > a,
.nav .current_page_item > a { color: #fff; background: var(--surface-2); }
.nav .current-menu-item > a::after {
  content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px;
  background: var(--brand);
}
/* game-coloured nav items */
.nav .menu-item-mlbb > a:hover { color: var(--mlbb); }
.nav .menu-item-pubg > a:hover { color: var(--pubg); }
.nav .menu-item-ff   > a:hover { color: var(--ff); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm);
  cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--line-strong); color: #fff; }

/* language switcher */
.lang-switch { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.lang-switch a, .lang-switch span {
  display: block; padding: 5px 11px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 750; letter-spacing: .04em; color: var(--ink-3);
}
.lang-switch a:hover { color: #fff; }
.lang-switch .is-active { background: var(--brand); color: #fff; }
.lang-switch .is-active a { color: #fff; }

/* mobile drawer */
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none; box-shadow: var(--shadow-lg);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle { display: grid; }
  .brand-tag { display: none; }
}
@media (max-width: 560px) {
  .brand-text { display: none; }
  :root { --header-h: 60px; }
}

/* search overlay */
.search-panel { display: none; border-top: 1px solid var(--line); background: var(--bg-2); }
.search-panel.is-open { display: block; }
.search-panel .wrap { padding: 16px 20px; }
.search-form { display: flex; gap: 10px; }
.search-form input[type=search] {
  flex: 1 1 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 16px; color: var(--ink);
}
.search-form input[type=search]::placeholder { color: var(--ink-4); }
.search-form input[type=search]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ==========================================================================
   5. Buttons / pills / breadcrumbs
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 750; font-size: .93rem; cursor: pointer; white-space: nowrap;
  transition: transform .14s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -12px rgba(255,46,99,.8); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .84rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand);
}
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker.is-mlbb { color: var(--mlbb); }
.kicker.is-pubg { color: var(--pubg); }
.kicker.is-ff   { color: var(--ff); }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .695rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line);
}
.pill-mlbb { background: var(--mlbb-soft); color: var(--mlbb); border-color: transparent; }
.pill-pubg { background: var(--pubg-soft); color: var(--pubg); border-color: transparent; }
.pill-ff   { background: var(--ff-soft);   color: var(--ff);   border-color: transparent; }
.pill-brand{ background: var(--brand-soft);color: var(--brand);border-color: transparent; }
.pill-t1 { background: rgba(255,71,51,.16);  color: #FF7B6B; }
.pill-t2 { background: rgba(245,166,35,.16); color: #FFC264; }
.pill-t3 { background: rgba(37,224,200,.16); color: #62F0DC; }

.crumbs { font-size: .8rem; color: var(--ink-4); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }
.crumbs .sep { margin: 0 7px; opacity: .5; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ==========================================================================
   6. Section headers
   ========================================================================== */
.section { margin: 52px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 22px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-3); font-size: .94rem; max-width: 66ch; }
.section-head .more { font-size: .86rem; font-weight: 750; color: var(--brand); white-space: nowrap; }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(21,30,51,.92), rgba(10,14,26,.96)),
    radial-gradient(700px 320px at 82% 8%, rgba(37,224,200,.18), transparent 60%),
    radial-gradient(700px 340px at 8% 96%, rgba(255,46,99,.2), transparent 60%);
  padding: clamp(30px, 5vw, 58px);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin: 14px 0 16px; }
.hero h1 .hl { background: linear-gradient(100deg, var(--brand), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--ink-2); margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.hero-stat span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; }

/* ==========================================================================
   8. Game hub cards
   ========================================================================== */
.game-tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.game-tile {
  position: relative; overflow: hidden; display: block;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 22px; min-height: 200px;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .22s var(--ease);
}
.game-tile::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 240px; height: 240px;
  border-radius: 50%; filter: blur(46px); opacity: .5; transition: opacity .25s var(--ease);
}
.game-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-tile:hover::after { opacity: .85; }
.game-tile > * { position: relative; z-index: 1; }
.game-tile h3 { margin: 12px 0 6px; font-size: 1.22rem; }
.game-tile p { color: var(--ink-3); font-size: .9rem; margin: 0 0 14px; }
.game-tile .tile-go { font-size: .84rem; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.game-tile .tile-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.game-tile.t-mlbb::after { background: var(--mlbb); }
.game-tile.t-pubg::after { background: var(--pubg); }
.game-tile.t-ff::after   { background: var(--ff); }
.game-tile.t-mlbb { border-color: rgba(76,141,255,.28); }
.game-tile.t-pubg { border-color: rgba(245,166,35,.28); }
.game-tile.t-ff   { border-color: rgba(255,71,51,.28); }
.game-tile.t-mlbb .tile-go { color: var(--mlbb); }
.game-tile.t-pubg .tile-go { color: var(--pubg); }
.game-tile.t-ff   .tile-go { color: var(--ff); }
.game-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; font-size: .82rem; color: #fff; letter-spacing: -.02em;
}
.t-mlbb .game-badge { background: linear-gradient(140deg, #4C8DFF, #1F4FD8); }
.t-pubg .game-badge { background: linear-gradient(140deg, #F5A623, #C06A00); }
.t-ff   .game-badge { background: linear-gradient(140deg, #FF4733, #B21500); }

/* ==========================================================================
   9. Article cards
   ========================================================================== */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-thumb img { transform: scale(1.045); }
.card-thumb .pill { position: absolute; left: 12px; top: 12px; backdrop-filter: blur(8px); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1 0 auto; }
.card-body h3 { font-size: 1.06rem; margin: 9px 0 8px; line-height: 1.34; }
.card-body h3 a { color: #fff; }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { font-size: .9rem; color: var(--ink-3); margin: 0 0 16px; flex: 1 0 auto; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: .755rem; color: var(--ink-4); margin-top: auto; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* compact list card */
.mini { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.mini-thumb { width: 84px; height: 60px; flex: 0 0 auto; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini h4 { font-size: .93rem; margin: 0 0 5px; line-height: 1.4; font-weight: 700; }
.mini h4 a { color: var(--ink); }
.mini h4 a:hover { color: var(--brand); }
.mini time { font-size: .73rem; color: var(--ink-4); }

/* numbered ranking list */
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank-list li { counter-increment: r; display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before {
  content: counter(r); flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 900; font-size: .85rem;
  background: var(--surface-3); color: var(--ink-2);
}
.rank-list li:nth-child(1)::before { background: var(--brand); color: #fff; }
.rank-list li:nth-child(2)::before { background: var(--surface-3); color: var(--ink); }
.rank-list a { font-weight: 700; color: var(--ink); }
.rank-list a:hover { color: var(--brand); }

/* ==========================================================================
   10. Article / entry content
   ========================================================================== */
.entry-head { margin-bottom: 26px; }
.entry-head h1 { margin: 12px 0 14px; }
.entry-lead { font-size: 1.09rem; color: var(--ink-2); margin: 0 0 18px; }
.entry-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-4); }
.byline { display: flex; align-items: center; gap: 9px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(140deg, var(--brand), var(--cyan)); display: grid; place-items: center; font-weight: 800; font-size: .78rem; color: #fff; flex: 0 0 auto; }
.avatar img { border-radius: 50%; }

.entry-hero { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin: 0 0 28px; }
.entry-hero img { width: 100%; }
.entry-hero figcaption { padding: 10px 14px; font-size: .76rem; color: var(--ink-4); background: var(--surface); }

.entry { font-size: 1.045rem; color: var(--ink-2); }
.entry > p:first-of-type { font-size: 1.11rem; color: var(--ink-2); }
.entry h2 {
  margin: 2.1em 0 .7em; padding-top: .34em; font-size: clamp(1.35rem, 2.4vw, 1.62rem);
  border-top: 1px solid var(--line);
}
.entry h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.entry h3 { margin: 1.7em 0 .6em; font-size: 1.18rem; }
.entry h4 { margin: 1.4em 0 .5em; color: var(--ink); }
.entry a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(37,224,200,.35); text-underline-offset: 3px; }
.entry a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }
.entry ul, .entry ol { margin: 0 0 1.3em; }
.entry li { margin: .5em 0; }
.entry strong { color: #fff; }
.entry img { border-radius: var(--r); border: 1px solid var(--line); margin: 1.4em 0; }
.entry blockquote {
  margin: 1.6em 0; padding: 16px 22px; border-left: 3px solid var(--brand);
  background: var(--surface); border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2);
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry code { font-family: var(--mono); font-size: .88em; background: var(--surface-3); padding: 2px 6px; border-radius: 5px; color: var(--cyan); }
.entry pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; overflow-x: auto; }
.entry pre code { background: none; padding: 0; color: var(--ink-2); }

/* tables */
.entry table, .table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .93rem;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.entry th, .entry td, .table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.entry thead th, .table thead th { background: var(--surface-2); color: var(--ink); font-weight: 800; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
.entry tbody tr:nth-child(even), .table tbody tr:nth-child(even) { background: rgba(255,255,255,.014); }
.entry tbody tr:last-child td, .table tbody tr:last-child td { border-bottom: 0; }
.entry tbody tr:hover, .table tbody tr:hover { background: var(--surface-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   11. Key facts / callouts
   ========================================================================== */
.box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 22px; margin: 1.6em 0;
}
.box-title { font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 850; color: var(--ink-4); margin-bottom: 12px; }
.box-brand { border-color: rgba(255,46,99,.3); background: linear-gradient(180deg, var(--brand-soft), transparent 70%), var(--surface); }
.box-info  { border-color: rgba(37,224,200,.28); background: linear-gradient(180deg, var(--cyan-soft), transparent 70%), var(--surface); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fact { background: var(--surface); padding: 16px 18px; }
.fact dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); font-weight: 750; margin-bottom: 5px; }
.fact dd { margin: 0; font-weight: 750; color: #fff; font-size: .98rem; }

/* FAQ */
.faq { margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); background: var(--surface); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 750; font-size: 1rem; color: #fff;
  list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; color: var(--brand); font-size: 1.35rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { background: var(--surface-2); }
.faq .faq-a { padding: 4px 20px 20px; color: var(--ink-2); font-size: .95rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   12. Tier list
   ========================================================================== */
.tier { display: grid; gap: 10px; margin: 1.6em 0; }
.tier-row { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.tier-key { display: grid; place-items: center; font-weight: 900; font-size: 1.5rem; color: #0B0F1A; letter-spacing: -.02em; min-height: 82px; }
.tier-s .tier-key { background: linear-gradient(140deg,#FF6B6B,#E01B4E); }
.tier-a .tier-key { background: linear-gradient(140deg,#FFB44C,#E07A00); }
.tier-b .tier-key { background: linear-gradient(140deg,#59E0B0,#0FA36B); }
.tier-c .tier-key { background: linear-gradient(140deg,#7FA8FF,#3B62D8); color: #fff; }
.tier-d .tier-key { background: linear-gradient(140deg,#8896B4,#5A6782); color: #fff; }
.tier-items { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; align-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
}
.chip:hover { border-color: var(--line-strong); }
.chip .role { font-size: .68rem; color: var(--ink-4); font-weight: 700; letter-spacing: .05em; }

/* role filter buttons */
.roles { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.role-btn {
  padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); font-size: .82rem; font-weight: 700; cursor: pointer;
}
.role-btn:hover { color: #fff; border-color: var(--line-strong); }
.role-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ==========================================================================
   13. Codes
   ========================================================================== */
.code-list { display: grid; gap: 12px; margin: 1.4em 0; }
.code-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 18px;
}
.code-row.is-dead { opacity: .58; }
.code-val {
  font-family: var(--mono); font-size: 1.02rem; font-weight: 700; color: var(--cyan);
  background: var(--bg-2); border: 1px dashed rgba(37,224,200,.4);
  padding: 7px 13px; border-radius: var(--r-sm); letter-spacing: .06em;
}
.code-info { flex: 1 1 200px; min-width: 160px; }
.code-info b { display: block; font-size: .9rem; color: #fff; }
.code-info span { font-size: .78rem; color: var(--ink-4); }
.copy-btn {
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-2);
  border-radius: var(--r-sm); padding: 8px 14px; font-size: .82rem; font-weight: 750; cursor: pointer;
}
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.copy-btn.is-done { border-color: var(--ok); color: var(--ok); }

/* ==========================================================================
   14. Sidebar / widgets
   ========================================================================== */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 22px; }
.widget-title { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 850; color: var(--ink-4); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sticky-side { position: sticky; top: calc(var(--header-h) + 20px); }

.toc { list-style: none; margin: 0; padding: 0; counter-reset: t; font-size: .89rem; }
.toc li { counter-increment: t; margin: 0; }
.toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.toc li:last-child a { border-bottom: 0; }
.toc a::before { content: counter(t); color: var(--ink-4); font-weight: 800; font-size: .74rem; flex: 0 0 auto; padding-top: 2px; }
.toc a:hover, .toc a.is-active { color: #fff; }

/* ==========================================================================
   15. CTA band
   ========================================================================== */
.cta {
  border: 1px solid rgba(255,46,99,.3); border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(120deg, rgba(255,46,99,.18), rgba(37,224,200,.12)), var(--surface);
  padding: clamp(26px, 4vw, 44px); text-align: center;
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--ink-2); max-width: 62ch; margin: 0 auto 22px; }
.cta .hero-cta { justify-content: center; }

/* ==========================================================================
   16. Pagination / archive
   ========================================================================== */
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin: 34px 0 0; align-items: center; }
.pager .page-numbers {
  min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  color: var(--ink-2); font-weight: 700; font-size: .88rem;
}
.pager .page-numbers:hover { border-color: var(--line-strong); color: #fff; }
.pager .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-hero { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 34px; }
.page-hero h1 { margin: 10px 0 12px; }
.page-hero p { color: var(--ink-3); max-width: 76ch; margin: 0; }
.archive-desc { color: var(--ink-3); }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }

/* ==========================================================================
   17. Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: 52px 0 34px; }
.footer-brand p { color: var(--ink-3); font-size: .9rem; max-width: 40ch; margin: 14px 0 0; }
.footer-col h3 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 9px; }
.footer-col a { color: var(--ink-2); font-size: .9rem; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: var(--ink-4);
}
.footer-disclaimer { font-size: .76rem; color: var(--ink-4); max-width: 90ch; padding-bottom: 22px; line-height: 1.65; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   18. Game hub specifics
   ========================================================================== */
.hub-hero {
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  position: relative; margin-bottom: 34px;
}
.hub-hero-bg { position: relative; aspect-ratio: 21/8; min-height: 230px; background: var(--surface-2); }
@media (max-width: 760px) { .hub-hero-bg { aspect-ratio: 16/10; } }
.hub-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hub-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,10,18,.94) 6%, rgba(7,10,18,.55) 55%, rgba(7,10,18,.25));
}
.hub-hero-in { position: absolute; inset: auto 0 0 0; padding: clamp(22px, 4vw, 40px); z-index: 1; }
.hub-hero-in h1 { margin: 10px 0 12px; max-width: 22ch; }
.hub-hero-in p { color: var(--ink-2); max-width: 62ch; margin: 0 0 18px; }
.hub-mlbb .hub-hero { border-color: rgba(76,141,255,.3); }
.hub-pubg .hub-hero { border-color: rgba(245,166,35,.3); }
.hub-ff   .hub-hero { border-color: rgba(255,71,51,.3); }

.quick-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 30px; }
.quick-nav a {
  padding: 8px 15px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); font-size: .84rem; font-weight: 700; color: var(--ink-2);
}
.quick-nav a:hover { border-color: var(--brand); color: #fff; }

/* ==========================================================================
   19. Utilities / responsive
   ========================================================================== */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide-sm { display: block; }
@media (max-width: 1080px) { .hide-sm { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cols { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .sticky-side { position: static; }
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .game-tiles { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0,1fr); }
  .section { margin: 38px 0; }
  .tier-row { grid-template-columns: 58px minmax(0,1fr); }
  .tier-key { font-size: 1.15rem; min-height: 66px; }
  .code-row { gap: 10px; }
  .code-val { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta, .widget { display: none; }
  body { background: #fff; color: #000; }
}
