/* ==============================================================
   RETROPLAYLAND — styles.css
   Premium retro-arcade with multi-color cycling accent
   ============================================================== */

/* ------ THEME PALETTE (6 full compositions: accent + border + bg) ------ */
:root, html[data-theme="orange"]{
  /* CLASSIC — black borders, cream paper, orange accent */
  --o:   #FE5504;
  --o-s: #FFF0E5;
  --o-d: #B33A00;
  --o-m: #FCA95F;
  --ink: #0E0E14;
  --bg:  #FFF8EA;
  --paper: #FFFFFF;
  --paper-2: #FFFCEF;
  --soft: #F4EFDC;
  --soft-2: #ECE7D4;
  --soft-line: #E6E0CC;
}
html[data-theme="blue"]{
  /* MIDNIGHT — dark navy borders, icy paper, blue accent */
  --o:   #2563EB;
  --o-s: #E7EEFB;
  --o-d: #1E3A8A;
  --o-m: #5181EE;
  --ink: #0E1A3D;
  --bg:  #F2F5FB;
  --paper: #FFFFFF;
  --paper-2: #F8FAFE;
  --soft: #DCE6F5;
  --soft-2: #C8D6EE;
  --soft-line: #C8D6EE;
}
html[data-theme="green"]{
  /* FOREST — dark forest borders, mint paper, leaf-green accent */
  --o:   #16A34A;
  --o-s: #E4F2E7;
  --o-d: #14532D;
  --o-m: #4FB873;
  --ink: #0F2618;
  --bg:  #EFF6EC;
  --paper: #FFFFFF;
  --paper-2: #F8FCF4;
  --soft: #D9E8D2;
  --soft-2: #C5D8BB;
  --soft-line: #C5D8BB;
}
html[data-theme="purple"]{
  /* AUBERGINE — dark plum borders, lilac paper, purple accent */
  --o:   #8B5CF6;
  --o-s: #EFE9FB;
  --o-d: #5B21B6;
  --o-m: #A78BFA;
  --ink: #2A1340;
  --bg:  #F4EEFA;
  --paper: #FFFFFF;
  --paper-2: #FAF6FE;
  --soft: #E5DBF1;
  --soft-2: #D5C7E7;
  --soft-line: #D5C7E7;
}
html[data-theme="magenta"]{
  /* CHERRY — dark wine borders, blush paper, magenta accent */
  --o:   #C026D3;
  --o-s: #FAE5F4;
  --o-d: #701A75;
  --o-m: #D04AE2;
  --ink: #3D0E26;
  --bg:  #FAEFF4;
  --paper: #FFFFFF;
  --paper-2: #FEF7FA;
  --soft: #F1DBE5;
  --soft-2: #E8C3D4;
  --soft-line: #E8C3D4;
}
html[data-theme="teal"]{
  /* OCEAN — dark teal borders, foam paper, teal accent */
  --o:   #0D9488;
  --o-s: #DBF0EE;
  --o-d: #134E4A;
  --o-m: #14B8A6;
  --ink: #0A2A28;
  --bg:  #ECF6F4;
  --paper: #FFFFFF;
  --paper-2: #F6FCFA;
  --soft: #D5E8E4;
  --soft-2: #BFD7D2;
  --soft-line: #BFD7D2;
}

/* ------ ARCADE-POP DECORATIVE COLORS (constant across themes) ------ */
:root{
  --fg:        #1F2129;
  --muted:     #6B6F7A;
  --line:      var(--ink);

  /* Arcade primaries — used decoratively */
  --red:       #E52521;
  --yellow:    #FCD000;
  --blue:      #5C94FC;
  --green:     #00A651;
  --purple:    #7C4DFF;
  --pink:      #FF4D9B;
  --sky:       #A8D8FF;
  --pipe:      #00A651;

  /* shadow + radius scales */
  --pop-shadow: 4px 4px 0 var(--ink);
  --pop-shadow-sm: 2px 2px 0 var(--ink);
  --pop-shadow-lg: 6px 6px 0 var(--ink);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* fonts */
  --font-display: "Press Start 2P", system-ui, monospace;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1140px;
}

/* ------ RESET-ISH ------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body{
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* tile pattern background — subtle pixel grid */
  background-image:
    radial-gradient(rgba(14,14,20,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }

.container{ width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container-narrow{ max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* full-bleed bands */
.band{ width: 100%; }
.band-cream{ background: var(--bg); }
.band-sky{
  background: linear-gradient(180deg, color-mix(in oklch, var(--o-m) 35%, white) 0%, var(--o-s) 100%);
  border-block: 3px solid var(--ink);
}
.band-red{ background: var(--o); color: #fff; border-block: 3px solid var(--ink); }
.band-yellow{
  background: linear-gradient(180deg, color-mix(in oklch, var(--o) 25%, var(--yellow)) 0%, var(--yellow) 100%);
  border-block: 3px solid var(--ink);
}
.band-dark{ background: var(--ink); color: #fff; }

/* ==============================================================
   TYPOGRAPHY
   ============================================================== */
.font-display{ font-family: var(--font-display); letter-spacing: 0; }
.font-mono   { font-family: var(--font-mono); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 44px; line-height: 1.05; }
h2 { font-size: 28px; line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.2; }
h4 { font-size: 16px; line-height: 1.3; }

/* Multi-color logo letters — two separate words, each letter colored with hard drop-shadow */
.rp-logo {
  font-family: var(--font-pixel, "Press Start 2P"), monospace;
  font-size: 16px;
  display: inline-flex;
  gap: 14px;
  letter-spacing: -0.5px;
  line-height: 1;
  padding: 0;
}
.rp-logo .word{
  display: inline-flex;
}
.rp-logo span {
  display: inline-block;
  padding: 0 0.5px;
}

/* RETRO — 5 letters */
.rp-logo .word:first-child span:nth-child(1){ color: var(--red);    text-shadow: 2px 2px 0 var(--yellow); }
.rp-logo .word:first-child span:nth-child(2){ color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.rp-logo .word:first-child span:nth-child(3){ color: var(--blue);   text-shadow: 2px 2px 0 var(--yellow); }
.rp-logo .word:first-child span:nth-child(4){ color: var(--green);  text-shadow: 2px 2px 0 var(--yellow); }
.rp-logo .word:first-child span:nth-child(5){ color: var(--purple); text-shadow: 2px 2px 0 var(--yellow); }
/* PLAYLAND — 8 letters */
.rp-logo .word:last-child  span:nth-child(1){ color: var(--red);    text-shadow: 2px 2px 0 var(--yellow); }
.rp-logo .word:last-child  span:nth-child(2){ color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.rp-logo .word:last-child  span:nth-child(3){ color: var(--blue);   text-shadow: 2px 2px 0 var(--yellow); }
.rp-logo .word:last-child  span:nth-child(4){ color: var(--green);  text-shadow: 2px 2px 0 var(--yellow); }
.rp-logo .word:last-child  span:nth-child(5){ color: var(--purple); text-shadow: 2px 2px 0 var(--yellow); }
.rp-logo .word:last-child  span:nth-child(6){ color: var(--pink);   text-shadow: 2px 2px 0 var(--ink); }
.rp-logo .word:last-child  span:nth-child(7){ color: var(--red);    text-shadow: 2px 2px 0 var(--yellow); }
.rp-logo .word:last-child  span:nth-child(8){ color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }

/* Section title — chunky pixel badge */
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 24px; margin: 36px 0 18px;
}
.section-title{
  display:inline-flex; flex-direction: column; gap: 6px;
}
.section-eyebrow{
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--o);
  letter-spacing: 1px;
}
.section-h{
  font-family: var(--font-display);
  font-size: 22px; color: var(--ink);
  text-shadow: 3px 3px 0 var(--yellow);
}
.section-h .accent{ color: var(--o); text-shadow: 3px 3px 0 var(--ink); }
.section-action{
  display:inline-flex; align-items:center; gap:6px;
  font-weight:800; font-size:13px; color: var(--ink);
  text-decoration: none; padding: 6px 12px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); box-shadow: var(--pop-shadow-sm);
  transition: transform .12s, box-shadow .12s;
}
.section-action:hover{ transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }

/* ==============================================================
   PROMO STRIP (top)
   ============================================================== */
.promo-strip{
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  border-bottom: 3px solid var(--yellow);
}
.promo-strip .inner{
  display: flex; align-items: center; gap: 18px;
  min-height: 38px; padding: 6px 16px;
  flex-wrap: wrap;
}
.promo-strip .promo-marquee{
  flex: 1; overflow: hidden; white-space: nowrap;
  position: relative; min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.promo-strip .promo-marquee .track{
  display:inline-flex; gap: 36px;
  animation: marquee 38s linear infinite;
  padding-right: 36px;
}
.promo-strip .promo-marquee .track span{
  display:inline-flex; align-items:center; gap:6px;
  color: #FFE9C2;
}
.promo-strip .promo-marquee .track span b{ color: var(--yellow); font-weight: 800; }
@keyframes marquee{ from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Theme picker in promo strip */
.theme-pick{ display: inline-flex; align-items: center; gap: 10px; }
.theme-pick .tp-label{
  font-family: var(--font-display); font-size: 8px;
  color: rgba(255,255,255,.7); letter-spacing: 1.5px;
}
.theme-pick .tp-cycle{
  background: transparent; border: 0; padding: 2px; cursor: pointer;
  display: inline-flex; align-items: center;
  transition: all .3s ease;
}
.theme-pick .tp-cycle .dot{
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  margin-left: -5px;
  transition: transform .15s, opacity .3s, width .3s, margin .3s;
  cursor: pointer;
}
.theme-pick .tp-cycle .dot:first-child{ margin-left: 0; }
.theme-pick .tp-cycle:hover .dot{ transform: scale(1.12); }
.theme-pick .tp-cycle .dot:hover{ transform: scale(1.3); z-index: 2; }
.theme-pick .tp-cycle .dot.active{
  transform: scale(1.35); border-color: var(--yellow);
  box-shadow: 0 0 8px rgba(252,208,0,.6);
  z-index: 3;
}
/* COLLAPSED state — only active dot visible */
.theme-pick.collapsed .tp-cycle .dot{
  width: 0; opacity: 0; margin-left: 0; border-width: 0;
  pointer-events: none;
}
.theme-pick.collapsed .tp-cycle .dot.active{
  width: 16px; opacity: 1; border-width: 2px;
  pointer-events: auto;
}
.theme-pick.collapsed:hover .tp-cycle .dot{
  width: 16px; opacity: 1; border-width: 2px;
  pointer-events: auto;
}
.theme-pick.collapsed:hover .tp-cycle .dot:not(:first-child){
  margin-left: -5px;
}
.theme-pick.collapsed .tp-label{
  opacity: 0; width: 0; overflow: hidden;
  transition: opacity .3s, width .3s;
}
.theme-pick.collapsed:hover .tp-label{
  opacity: .7; width: auto;
}

@media (max-width: 720px){
  .theme-pick .tp-label{ display: none; }
}
@media (max-width: 520px){
  .theme-pick .tp-cycle .dot{ width: 13px; height: 13px; margin-left: -4px; }
  #chrome-scanline-toggle{ padding: 3px 5px; font-size: 11px; }
}

/* ============ FLOATING BOTTOM-RIGHT THEME WIDGET ============ */
.theme-float{
  position: fixed; bottom: 22px; right: 22px;
  z-index: 998;
  display: flex; align-items: center; gap: 0;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--pop-shadow);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.theme-float .tf-main{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--o);
  border: 2.5px solid var(--ink);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 0 6px rgba(0,0,0,.2);
  transition: transform .2s;
}
.theme-float .tf-main::after{
  content: "🎨";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 16px;
  filter: drop-shadow(0 1px 0 #fff);
}
.theme-float:hover .tf-main{ transform: scale(1.05) rotate(-8deg); }
.theme-float .tf-dots{
  display: flex; align-items: center; gap: 4px;
  max-width: 0;
  overflow: hidden;
  transition: max-width .3s ease, padding .3s ease, margin .3s ease;
  padding-left: 0;
  margin-left: 0;
}
.theme-float:hover .tf-dots{
  max-width: 280px;
  padding-left: 10px;
  margin-left: 6px;
  border-left: 1.5px dashed var(--soft-line);
}
.theme-float .tf-dot{
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--ink);
  cursor: pointer;
  box-shadow: 1px 1px 0 var(--ink);
  transition: transform .15s;
  flex-shrink: 0;
}
.theme-float .tf-dot:hover{ transform: translate(-1px,-1px) scale(1.1); box-shadow: 2px 2px 0 var(--ink); }
.theme-float .tf-dot.active{ outline: 2px solid var(--o); outline-offset: 2px; transform: scale(1.05); }
.theme-float .tf-dot[data-t="orange"]  { background: #FE5504; }
.theme-float .tf-dot[data-t="blue"]    { background: #2563EB; }
.theme-float .tf-dot[data-t="green"]   { background: #16A34A; }
.theme-float .tf-dot[data-t="purple"]  { background: #8B5CF6; }
.theme-float .tf-dot[data-t="magenta"] { background: #C026D3; }
.theme-float .tf-dot[data-t="teal"]    { background: #0D9488; }

@media (max-width: 520px){
  .theme-float{ bottom: 14px; right: 14px; padding: 5px; }
  .theme-float .tf-main{ width: 34px; height: 34px; }
  .theme-float .tf-main::after{ font-size: 14px; }
  .theme-float .tf-dot{ width: 24px; height: 24px; }
}
@media print{ .theme-float{ display: none; } }

/* lang dropdown / inline icon buttons */
.strip-btn{
  display:inline-flex; align-items:center; gap:5px;
  color: #FFE9C2; background: transparent; border: 0;
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 6px; border-radius: 4px;
  transition: background .12s, color .12s;
}
.strip-btn:hover{ background: rgba(255,255,255,.1); color: #fff; }
.strip-btn .flag{ font-size: 13px; }

/* LANG DROPDOWN */
.lang-switcher{ position: relative; }
.lang-trigger{
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px;
}
.lang-switcher.open .lang-trigger{ background: rgba(255,255,255,.12); color: #fff; }
.lang-switcher.open .lang-trigger i{ transform: rotate(180deg); }
.lang-trigger i{ transition: transform .15s; }
.lang-dropdown{
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  z-index: 200;
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: var(--pop-shadow-lg);
  min-width: 220px; max-height: 70vh;
  overflow-y: auto;
  padding: 6px;
  animation: langPop .18s ease-out;
}
@keyframes langPop{ from{ opacity: 0; transform: translateY(-6px); } to{ opacity: 1; transform: none; } }
.lang-switcher.open .lang-dropdown{ display: block; }
.lang-dropdown-h{
  padding: 8px 12px 6px;
  font-family: var(--font-display); font-size: 8px;
  color: var(--muted); letter-spacing: 1.5px;
}
.lang-dropdown-foot{
  padding: 10px 12px; margin-top: 4px;
  border-top: 1.5px dashed var(--soft-line);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); text-align: center;
}
.lang-opt{
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px;
  background: transparent; border: 0; color: var(--ink);
  font-weight: 700; font-size: 13.5px;
  border-radius: 6px; cursor: pointer; text-align: left;
  transition: background .12s, transform .12s;
}
.lang-opt:hover{ background: var(--o-s); transform: translateX(2px); }
.lang-opt.active{ background: var(--ink); color: #fff; }
.lang-opt .flag{ font-size: 16px; flex-shrink: 0; }
.pro-pill{
  display:inline-flex; align-items:center; gap:5px;
  font-family: var(--font-display); font-size: 9px;
  color: var(--ink); background: var(--yellow);
  padding: 5px 9px 4px; border-radius: 999px;
  border: 2px solid var(--ink);
  letter-spacing: .5px;
  cursor: pointer;
}

/* ==============================================================
   HEADER / NAV
   ============================================================== */
.site-header{
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
  position: sticky; top: 0; z-index: 50;
}
.site-header .inner{
  display: flex; align-items: center; gap: 14px;
  height: 70px;
  min-width: 0;
}
.brand{
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.brand-text{ min-width: 0; }
.brand-mark{
  width: 44px; height: 44px;
  background: var(--red);
  border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: var(--pop-shadow-sm);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 14px; color: #fff;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before{
  content:""; position: absolute; left:5px; top:5px;
  width:6px; height:6px; background:#fff; box-shadow: 6px 0 0 #fff;
}
.brand-tag{
  font-family: var(--font-mono); font-size: 18px;
  color: var(--muted); letter-spacing: 1.5px; margin-top: -2px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}

.main-nav{
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 6px;
  min-width: 0;
}
.main-nav a{
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  font-weight: 800; font-size: 13.5px;
  color: var(--ink); border-radius: 999px;
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.main-nav a:hover{ background: var(--o-s); color: var(--o-d); }
.main-nav a.active{ background: var(--ink); color: #fff; }

.header-right{
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}

/* Search */
.search-pill{
  display: flex; align-items: center; gap: 8px;
  width: 200px; height: 42px;
  background: var(--soft); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 0 14px; box-shadow: var(--pop-shadow-sm);
  flex-shrink: 1; min-width: 0;
  transition: transform .12s, box-shadow .12s;
}
.search-pill:focus-within{ transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.search-pill .ic{ font-size: 16px; color: var(--ink); flex-shrink: 0; }
.search-pill input{
  border:0; background: transparent; outline: 0;
  flex:1; min-width: 0; font-weight: 600; font-size: 13.5px;
  color: var(--ink); font-family: var(--font-body);
}
.search-pill input::placeholder{ color: var(--muted); }
.search-pill kbd{
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  background: var(--paper); border:1.5px solid var(--ink); border-radius: 3px;
  padding: 1px 5px; color: var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
  flex-shrink: 0;
}

/* SEARCH AUTOCOMPLETE — Google/Bing style */
.search-wrap{ position: relative; flex-shrink: 1; min-width: 0; z-index: 9999; }
.search-suggest{
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  min-width: 320px;
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: var(--pop-shadow-lg);
  overflow: hidden;
  z-index: 99999;
  animation: ssPop .15s ease-out;
}
@keyframes ssPop{ from{ opacity:0; transform: translateY(-6px);} to{ opacity:1; transform:none;} }
.ss-row{
  display: grid; grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 14px;
  text-decoration: none; color: inherit;
  border-bottom: 1.5px dashed var(--soft-line);
  cursor: pointer;
  transition: background .1s, padding .1s;
}
.ss-row:hover, .ss-row.active{ background: var(--o-s); padding-left: 18px; }
.ss-row:last-of-type{ border-bottom: 0; }
.ss-icon{
  width: 36px; height: 36px;
  background: var(--soft); border: 2px solid var(--ink); border-radius: 8px;
  display: grid; place-items: center;
  font-size: 18px;
  box-shadow: 1px 1px 0 var(--ink);
}
.ss-body{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-label{
  font-weight: 800; font-size: 13.5px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ss-label mark{
  background: var(--yellow); color: var(--ink);
  padding: 0 2px; border-radius: 2px; font-weight: 800;
}
.ss-sub{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.ss-type{
  font-family: var(--font-display); font-size: 7px;
  background: var(--ink); color: #fff;
  padding: 3px 5px; border-radius: 3px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.ss-empty{
  padding: 24px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.ss-empty b{ color: var(--ink); }
.ss-empty small{ display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2, var(--muted)); }
.ss-foot{
  padding: 8px 14px;
  background: var(--soft);
  border-top: 1.5px dashed var(--ink);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  text-align: center;
}
.ss-foot kbd{
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 3px;
  padding: 1px 5px; color: var(--ink);
  margin: 0 2px;
}

/* SIGN IN */
.signin-btn{
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px;
  background: var(--ink); color: #fff;
  border: 2.5px solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: 12.5px; letter-spacing: .5px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--pop-shadow-sm);
  transition: transform .12s, box-shadow .12s;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}
.signin-btn:hover{ transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--red); }

/* HAMBURGER — always visible */
.hamburger{
  width: 46px; height: 42px;
  background: var(--yellow);
  border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: var(--pop-shadow-sm);
  cursor: pointer; padding: 0;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.hamburger:hover{ transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); background: var(--red); }
.hamburger:hover svg{ color: #fff; }
.hamburger svg{ width: 18px; height: 18px; color: var(--ink); }

/* Hide things to hamburger in predictable order as width shrinks */
@media (max-width: 900px){
  .main-nav{ display: none; }
  .brand-tag{ display: none; }
}
@media (max-width: 720px){
  .search-pill{ width: 44px; padding: 0; justify-content: center; }
  .search-pill input, .search-pill kbd{ display: none; }
}
@media (max-width: 520px){
  .signin-btn{ display: none; }
  .rp-logo{ font-size: 13px; }
}

/* ==============================================================
   FULL-SCREEN MEGA MENU
   ============================================================== */
.mega-menu{
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  background-image: radial-gradient(rgba(14,14,20,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.mega-menu.open{ opacity: 1; visibility: visible; }
.mega-menu.open .mm-content > *{ animation: mmIn .35s ease-out backwards; }
.mega-menu.open .mm-content > *:nth-child(1){ animation-delay: .05s; }
.mega-menu.open .mm-content > *:nth-child(2){ animation-delay: .10s; }
@keyframes mmIn{ from{ opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.mm-topbar{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 3px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 5;
}
.mm-close{
  width: 46px; height: 46px;
  background: var(--red); color: #fff;
  border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: var(--pop-shadow-sm);
  cursor: pointer; display: grid; place-items: center;
  font-size: 20px; font-weight: 900;
  transition: transform .12s;
}
.mm-close:hover{ transform: rotate(90deg); }

.mm-content{
  max-width: 1140px; margin: 0 auto; padding: 30px 24px 60px;
  display: grid; grid-template-columns: 1fr 360px; gap: 40px;
}
.mm-main{ display: flex; flex-direction: column; gap: 32px; }
.mm-side{ display: flex; flex-direction: column; gap: 24px; }

.mm-search{
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 14px 20px;
  box-shadow: var(--pop-shadow);
}
.mm-search input{
  flex: 1; border: 0; background: transparent; outline: 0;
  font-size: 18px; font-weight: 600; color: var(--ink);
  font-family: var(--font-body);
}
.mm-search input::placeholder{ color: var(--muted); }

.mm-section-h{
  font-family: var(--font-display);
  font-size: 11px; color: var(--red);
  letter-spacing: 1.5px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.mm-section-h::after{
  content: ""; flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px);
}

.mm-quick{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mm-quick-chip{
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  padding: 16px 8px;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-shadow-sm); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.mm-quick-chip:hover{ transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); background: var(--yellow); }
.mm-quick-chip .emj{ font-size: 26px; line-height: 1; }
.mm-quick-chip .lbl{ font-family: var(--font-display); font-size: 9px; color: var(--ink); letter-spacing: .5px; }

.mm-pf-grid{ display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.mm-pf{
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.mm-pf:hover{ transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--ink); background: var(--yellow); }
.mm-pf .ic{ font-size: 22px; line-height: 1; }
.mm-pf .nm{ font-family: var(--font-display); font-size: 8px; color: var(--ink); letter-spacing: .5px; }
.mm-pf .ct{ font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

.mm-genre-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.mm-genre-chip{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: 13px; color: var(--ink);
  cursor: pointer;
  transition: transform .12s, background .12s;
}
.mm-genre-chip:hover{ transform: translate(-2px,-2px); background: var(--yellow); }
.mm-genre-chip .emj{ font-size: 14px; }
.mm-genre-chip .ct{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 600; }

.mm-card{
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop-shadow);
  padding: 22px;
}
.mm-card h3{
  font-family: var(--font-display);
  font-size: 11px; color: var(--red);
  letter-spacing: 1.5px; margin-bottom: 14px;
}
.mm-card.account-card{
  background: linear-gradient(135deg, #FFF0E5 0%, var(--paper) 100%);
}

.social-login{ display: flex; flex-direction: column; gap: 8px; }
.btn-social{
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--ink); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  box-shadow: var(--pop-shadow-sm);
  transition: transform .12s, box-shadow .12s;
  width: 100%;
}
.btn-social:hover{ transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.btn-social .ic{ width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; }
.btn-social.google   .ic{ background: #fff; border-radius: 3px; }
.btn-social.facebook { background: #1877F2; color: #fff; }
.btn-social.linkedin { background: #0A66C2; color: #fff; }
.btn-social.apple    { background: var(--ink); color: #fff; }
.btn-social.email    { background: var(--red); color: #fff; }

.mm-divider{
  display: flex; align-items: center; gap: 10px; margin: 10px 0;
  font-family: var(--font-display); font-size: 8px;
  color: var(--muted); letter-spacing: 1px;
}
.mm-divider::before, .mm-divider::after{
  content: ""; flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, var(--soft-line) 0 5px, transparent 5px 8px);
}

.theme-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.theme-sw{
  position: relative;
  height: 84px;
  border: 3px solid var(--swatch-ink, #0E0E14);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--swatch-ink, #0E0E14);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden;
  padding: 0;
  background: var(--swatch-bg, #FFF8EA);
}
.theme-sw:hover{
  transform: translate(-3px,-3px);
  box-shadow: 6px 6px 0 var(--swatch-ink, #0E0E14);
}
.theme-sw .preview{
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--swatch-bg, #FFF8EA);
}
.theme-sw .dot{
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--swatch-o, #FE5504);
  border: 2.5px solid var(--swatch-ink, #0E0E14);
  box-shadow: 2px 2px 0 var(--swatch-ink, #0E0E14);
}
.theme-sw .label{
  display: block;
  background: var(--swatch-ink, #0E0E14);
  color: var(--swatch-bg, #FFF8EA);
  font-family: var(--font-display); font-size: 8px;
  letter-spacing: 1px; text-align: center;
  padding: 5px 0;
}
.theme-sw.active{
  outline: 3px solid var(--swatch-ink, #0E0E14);
  outline-offset: 4px;
}
.theme-sw.active::after{
  content: "✓"; position: absolute; top: -10px; right: -10px;
  width: 26px; height: 26px;
  background: var(--swatch-ink, #0E0E14); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 900;
  border: 2.5px solid var(--paper);
  z-index: 2;
}

/* swatch-* per theme (used both inside swatch button AND outside when no theme matches) */
.theme-sw[data-t="orange"]   { --swatch-bg: #FFF8EA; --swatch-o: #FE5504; --swatch-ink: #0E0E14; }
.theme-sw[data-t="blue"]     { --swatch-bg: #F2F5FB; --swatch-o: #2563EB; --swatch-ink: #0E1A3D; }
.theme-sw[data-t="green"]    { --swatch-bg: #EFF6EC; --swatch-o: #16A34A; --swatch-ink: #0F2618; }
.theme-sw[data-t="purple"]   { --swatch-bg: #F4EEFA; --swatch-o: #8B5CF6; --swatch-ink: #2A1340; }
.theme-sw[data-t="magenta"]  { --swatch-bg: #FAEFF4; --swatch-o: #C026D3; --swatch-ink: #3D0E26; }
.theme-sw[data-t="teal"]     { --swatch-bg: #ECF6F4; --swatch-o: #0D9488; --swatch-ink: #0A2A28; }

.lang-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lang-btn{
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 8px;
  cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink);
  transition: background .12s;
}
.lang-btn:hover{ background: var(--yellow); }
.lang-btn.active{ background: var(--ink); color: #fff; }

.mm-footer{
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed var(--soft-line);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 12px;
  font-family: var(--font-mono);
}
.mm-footer a{ color: var(--muted); }
.mm-footer a:hover{ color: var(--ink); }

@media (max-width: 900px){
  .mm-content{ grid-template-columns: 1fr; }
  .mm-pf-grid{ grid-template-columns: repeat(4, 1fr); }
  .mm-quick{ grid-template-columns: repeat(2, 1fr); }
}

/* ==============================================================
   USER MENU
   ============================================================== */
.user-menu{ position: relative; }
.user-menu-trigger{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px 4px 4px; border-radius: 999px;
  background: var(--paper); border: 2.5px solid var(--ink);
  color: var(--ink); cursor: pointer; font-weight: 800; font-size: 13px;
  height: 42px;
  box-shadow: var(--pop-shadow-sm);
  transition: transform .12s, box-shadow .12s;
}
.user-menu-trigger:hover, .user-menu.open .user-menu-trigger{
  transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink);
}
.user-menu-trigger .ava{
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  background: linear-gradient(135deg, var(--o-m), var(--o));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 12px;
  border: 2px solid var(--ink);
}
.user-menu-trigger .chev{ font-size: 11px; color: var(--muted); transition: transform .15s; }
.user-menu.open .user-menu-trigger .chev{ transform: rotate(180deg); }

.user-menu-dropdown{
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 1060;
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-md);
  min-width: 280px; max-width: 320px;
  box-shadow: var(--pop-shadow-lg);
  overflow: hidden; padding: 8px;
}
.user-menu.open .user-menu-dropdown{ display: block; animation: umPop .18s ease-out; }
@keyframes umPop{ from{ opacity: 0; transform: translateY(-4px); } to{ opacity: 1; transform: none; } }

.user-menu-head{
  padding: 14px; display: flex; gap: 12px; align-items: center;
  background: linear-gradient(135deg, var(--o-s), var(--sky));
  border-radius: var(--r-sm); margin-bottom: 8px;
  border: 2px solid var(--ink);
}
.user-menu-head .ava-big{
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 48px;
  background: linear-gradient(135deg, var(--o-m), var(--o));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  border: 2px solid var(--ink);
}
.user-menu-head .name{ font-weight: 800; color: var(--ink); font-size: 14px; line-height: 1.2; }
.user-menu-head .id{ font-size: 11px; color: var(--ink); margin-top: 2px; font-family: var(--font-mono); opacity: .7; }
.user-menu-head .verified{
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  font-family: var(--font-display); font-size: 7px;
  background: var(--ink); color: #fff; padding: 3px 6px; border-radius: 3px;
}
.user-menu-section{ padding: 4px 0; border-bottom: 1.5px dashed var(--soft-line); }
.user-menu-section:last-of-type{ border-bottom: 0; }
.user-menu-section .label{
  display: block; padding: 6px 12px 4px;
  font-family: var(--font-display); font-size: 8px; color: var(--muted);
  letter-spacing: 1px;
}
.user-menu-dropdown a{
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  color: var(--ink); font-size: 13px; font-weight: 700;
  border-radius: var(--r-sm); margin: 1px 0; transition: background .1s, transform .12s;
}
.user-menu-dropdown a:hover{ background: var(--soft); transform: translateX(2px); }
.user-menu-dropdown a i{ font-size: 16px; flex: 0 0 16px; color: var(--o); width: 16px; }
.user-menu-dropdown a .cnt{
  margin-left: auto; background: var(--o); color: #fff;
  padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700;
  font-family: var(--font-mono);
}
.user-menu-dropdown a .new-pill{
  margin-left: auto; background: var(--yellow); color: var(--ink);
  padding: 1px 6px; border-radius: 3px; font-size: 9px; font-weight: 800;
  border: 1.5px solid var(--ink); font-family: var(--font-display);
}
.user-menu-dropdown a.logout{ color: var(--red); }
.user-menu-dropdown a.logout i{ color: var(--red); }

/* ==============================================================
   BUTTONS
   ============================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font-weight: 800; font-size: 14px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--paper); color: var(--ink);
  cursor: pointer;
  box-shadow: var(--pop-shadow);
  transition: transform .12s, box-shadow .12s;
  text-decoration: none;
}
.btn:hover{ transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active{ transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }
.btn-primary{ background: var(--o); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-green  { background: var(--green); color: #fff; }
.btn-ink    { background: var(--ink); color: #fff; }
.btn-sm{ padding: 7px 14px; font-size: 12px; box-shadow: var(--pop-shadow-sm); }
.btn-sm:hover{ box-shadow: 3px 3px 0 var(--ink); }
.btn-lg{ padding: 16px 32px; font-size: 16px; }
.btn-arrow::after{ content: "→"; font-weight: 900; transition: transform .15s; }
.btn-arrow:hover::after{ transform: translateX(3px); }

/* Big PLAY button — neon pulse */
.btn-play{
  font-family: var(--font-display);
  font-size: 13px;
  padding: 14px 22px 12px;
  background: var(--red); color: #fff;
  border-radius: 8px;
  letter-spacing: 1px;
  position: relative;
}
.btn-play .ic{ font-size: 14px; }
.btn-play::before{
  content:""; position:absolute; inset: -4px;
  border: 2px solid var(--red);
  border-radius: 12px;
  opacity: 0;
  animation: playPulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes playPulse{
  0% { opacity: .6; transform: scale(.95); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* ==============================================================
   HERO
   ============================================================== */
.hero{
  padding: 28px 0 32px;
  background:
    linear-gradient(180deg, transparent 0%, var(--bg) 100%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,.04) 22px 23px),
    linear-gradient(180deg, var(--o-s) 0%, var(--bg) 100%);
  border-bottom: 4px solid var(--ink);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.hero-slider{
  position: relative;
  border: 4px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  aspect-ratio: 1140 / 360;
  min-height: 280px;
}
.hero-slide{
  position: absolute; inset: 0;
  display: flex; align-items: stretch;
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
}
.hero-slide.active{ opacity: 1; pointer-events: auto; }

.hero-slide .copy{
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1; min-width: 0;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 100%);
  position: relative; z-index: 2;
}
.hero-slide .pix{
  width: 320px; flex-shrink: 0;
  position: relative;
  border-left: 4px solid var(--ink);
  overflow: hidden;
}

.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 10px;
  color: var(--ink); margin-bottom: 12px;
}
.hero-eyebrow .dot{ width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 2px solid var(--ink); }
.hero-h{
  font-family: var(--font-display);
  font-size: 28px; line-height: 1.15;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--yellow);
  margin-bottom: 8px;
}
.hero-h .accent{ color: var(--red); text-shadow: 4px 4px 0 var(--ink); }
.hero-h .accent-blue{ color: var(--blue); }
.hero-sub{
  font-size: 14.5px; max-width: 480px;
  color: var(--ink); font-weight: 600;
}
.hero-cta-row{
  display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap;
}
.hero-stats{
  display: flex; gap: 16px; margin-top: 18px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink);
}
.hero-stats b{ display:block; font-family: var(--font-display); font-size: 14px; color: var(--red); }

/* Hero side rail with mini-tiles spilling out */
.hero-rail{
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  align-content: start;
}
.hero-rail .mini{
  aspect-ratio: 4/3; border: 2.5px solid var(--ink); border-radius: var(--r-sm);
  overflow: hidden; box-shadow: var(--pop-shadow-sm);
  background: var(--paper);
  position: relative;
  transition: transform .12s, box-shadow .12s;
  cursor: pointer;
}
.hero-rail .mini:hover{ transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.hero-rail .mini-wide{ grid-column: 1 / -1; aspect-ratio: 16/6; }

/* Slider dots — D-pad style */
.hero-dots{
  position: absolute; bottom: 18px; right: 24px;
  display: flex; gap: 6px; z-index: 3;
}
.hero-dots button{
  width: 14px; height: 14px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  padding: 0;
  transition: transform .12s;
}
.hero-dots button.active{ background: var(--red); transform: scale(1.15); }

/* Arrows */
.hero-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: var(--pop-shadow-sm);
  cursor: pointer; z-index: 3;
  font-size: 18px; color: var(--ink);
  font-weight: 900;
}
.hero-arrow{ display: none; }
.hero-arrow.prev{ left: 6px; }
.hero-arrow.next{ right: 6px; }
.hero-arrow:hover{ background: var(--yellow); }

/* AI banner placeholder (the "pix" area of each slide) */
.ai-banner{
  width: 100%; height: 100%;
  display: grid; place-items: center;
  position: relative;
}
.ai-banner-label{
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--font-mono); font-size: 9px; color: rgba(0,0,0,.55);
  background: rgba(255,255,255,.7); padding: 2px 6px; border-radius: 3px;
  border: 1px solid var(--ink);
  z-index: 2;
}

/* ==============================================================
   QUICK ACCESS CHIPS
   ============================================================== */
.quick-chips{
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin: 20px 0 0;
}
.q-chip{
  display: flex; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  padding: 14px 8px;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-shadow-sm);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  text-align: center;
  position: relative;
}
.q-chip:hover{ transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.q-chip .emoji{ font-size: 22px; }
.q-chip .label{ font-family: var(--font-display); font-size: 8px; color: var(--ink); letter-spacing: .5px; }
.q-chip.featured{ background: var(--yellow); }
.q-chip.featured::after{
  content: "HOT"; position: absolute; top:-6px; right:-6px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-size: 7px;
  padding: 3px 5px; border-radius: 4px;
  border: 2px solid var(--ink);
  transform: rotate(8deg);
}

/* ==============================================================
   PLATFORMS GRID — "CARTRIDGE" CARDS
   ============================================================== */
.platforms-grid{
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;
}
.platform-card{
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  aspect-ratio: 1;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-shadow-sm);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  overflow: hidden;
}
.platform-card:hover{
  transform: translate(-2px,-2px) rotate(-1deg);
  box-shadow: 5px 5px 0 var(--ink);
}
.platform-card .pf-stripe{
  position: absolute; left: 0; right: 0; top: 0; height: 28%;
}
.platform-card .pf-icon{
  font-size: 26px; position: relative; z-index: 2;
  margin-top: 16%;
  filter: drop-shadow(2px 2px 0 var(--ink));
}
.platform-card .pf-short{
  font-family: var(--font-display); font-size: 9px;
  color: var(--ink); position: relative; z-index: 2;
}
.platform-card .pf-count{
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); font-weight: 700;
}

/* ==============================================================
   GAME CARDS
   ============================================================== */

/* Common card chrome */
.game-card{
  display:flex; flex-direction: column;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-shadow-sm);
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s;
  position: relative;
}
.game-card:hover{
  transform: translate(-3px,-3px);
  box-shadow: 7px 7px 0 var(--ink);
  z-index: 2;
}
.game-card:hover .gc-thumb-cover { opacity: 1; }
.game-card:hover .gc-thumb-art { transform: scale(1.06); }

.gc-thumb{
  position: relative;
  width: 100%; aspect-ratio: 200 / 150;
  overflow: hidden;
  background: var(--soft);
  border-bottom: 2.5px solid var(--ink);
}
.gc-thumb-art{ width: 100%; height: 100%; transition: transform .35s; }
.gc-thumb-cover{
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(14,14,20,.78);
  opacity: 0; transition: opacity .15s;
}
.gc-thumb-cover .play-mini{
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-size: 9px;
  padding: 8px 14px 7px; border-radius: 999px;
  border: 2.5px solid #fff;
  box-shadow: 2px 2px 0 var(--ink);
  letter-spacing: 1px;
}

/* Platform badge top-left */
.gc-platform{
  position: absolute; left: 6px; top: 6px;
  font-family: var(--font-display); font-size: 7px;
  color: #fff; background: var(--ink);
  padding: 3px 5px 2px; border-radius: 3px;
  letter-spacing: .5px;
  z-index: 3;
}
.gc-rating{
  position: absolute; right: 6px; top: 6px;
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  color: var(--ink); background: var(--yellow);
  padding: 2px 6px; border-radius: 4px;
  border: 1.5px solid var(--ink);
  z-index: 3;
}

/* Card body */
.gc-body{
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.gc-title{
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.gc-meta{
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); font-weight: 600;
}
.gc-meta .plays{ display:inline-flex; align-items:center; gap:3px; }

/* Size variants */
.game-grid-5{
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.game-grid-6{
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.game-grid-5 .gc-title{ font-size: 13px; min-height: 32px; }
.game-grid-6 .gc-title{ font-size: 12px; min-height: 30px; }
.game-grid-6 .gc-body{ padding: 8px 10px 10px; }

/* HORIZONTAL SCROLL — Featured */
.scroll-row{
  display: flex; gap: 14px; overflow-x: auto;
  padding: 6px 0 18px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.scroll-row::-webkit-scrollbar{ height: 8px; }
.scroll-row::-webkit-scrollbar-track{ background: var(--soft); border-radius: 4px; }
.scroll-row::-webkit-scrollbar-thumb{ background: var(--ink); border-radius: 4px; }
.scroll-row > *{ scroll-snap-align: start; }

/* Featured = L card */
.game-card-l{
  flex: 0 0 320px;
}
.game-card-l .gc-thumb{ aspect-ratio: 320/180; }
.game-card-l .gc-title{ font-size: 16px; min-height: auto; }
.game-card-l .gc-body{ padding: 12px 14px 14px; }

/* ==============================================================
   TOP PLAYED — LEADERBOARD
   ============================================================== */
.leaderboard{
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.lb-row{
  display: flex; align-items: center; gap: 12px;
  padding: 8px;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r-sm);
  box-shadow: var(--pop-shadow-sm);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.lb-row:hover{ transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.lb-rank{
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--soft);
  border: 2px solid var(--ink); border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 14px;
  color: var(--ink);
}
.lb-row:nth-child(1) .lb-rank{ background: #FCD000; }
.lb-row:nth-child(2) .lb-rank{ background: #E0E0E0; }
.lb-row:nth-child(3) .lb-rank{ background: #DEA47E; }
.lb-thumb{
  width: 54px; height: 54px; flex-shrink: 0;
  border: 2px solid var(--ink); border-radius: 4px;
  overflow: hidden;
}
.lb-body{ flex: 1; min-width: 0; }
.lb-title{
  font-weight: 800; font-size: 13.5px; color: var(--ink);
  line-height: 1.2; margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-meta{ font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); font-weight: 600; }
.lb-meta b{ color: var(--ink); }
.lb-action{ flex-shrink: 0; }

/* ==============================================================
   GENRE TILES
   ============================================================== */
.genre-grid{
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.genre-tile{
  position: relative; overflow: hidden;
  aspect-ratio: 1;
  border: 3px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-shadow-sm);
  cursor: pointer;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  transition: transform .15s, box-shadow .15s;
}
.genre-tile:hover{ transform: translate(-3px,-3px) rotate(-1.5deg); box-shadow: 6px 6px 0 var(--ink); }
.genre-tile .emoji{ font-size: 32px; filter: drop-shadow(2px 2px 0 var(--ink)); }
.genre-tile .gname{
  font-family: var(--font-display); font-size: 11px;
  color: var(--ink);
  text-shadow: 1px 1px 0 #fff;
}
.genre-tile .gcount{
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--ink); opacity: .85;
}
.genre-tile::after{
  /* pixel sparkle */
  content: ""; position: absolute; right: 6px; top: 6px;
  width: 6px; height: 6px; background: var(--ink);
  box-shadow: -3px 3px 0 var(--ink), 3px 3px 0 var(--ink);
}

/* ==============================================================
   OWN HTML5 GAMES SECTION
   ============================================================== */
.own-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.own-card{
  position: relative;
  padding: 16px;
  border: 3px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-shadow);
  background: var(--paper);
  overflow: hidden;
  display: flex; gap: 14px; align-items: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.own-card:hover{ transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink); }
.own-thumb{
  width: 88px; height: 88px; flex-shrink: 0;
  border: 2.5px solid var(--ink); border-radius: var(--r-sm);
  overflow: hidden; position: relative;
}
.own-body{ flex: 1; min-width: 0; }
.own-title{ font-family: var(--font-display); font-size: 11px; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.own-tagline{ font-size: 12px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.own-meta{ font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.own-card .own-badge{
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-display); font-size: 7px;
  background: var(--green); color: #fff;
  padding: 3px 5px; border-radius: 3px;
  border: 1.5px solid var(--ink);
}

/* ==============================================================
   CONTINUE PLAYING
   ============================================================== */
.continue-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.continue-card{
  display: flex; gap: 12px; align-items: center;
  padding: 10px;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-shadow-sm);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.continue-card:hover{ transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.continue-card .ct-thumb{ width: 64px; height: 48px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.continue-card .ct-body{ flex: 1; min-width: 0; }
.continue-card .ct-title{ font-weight: 800; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue-card .ct-progress{
  height: 6px; background: var(--soft); border-radius: 999px;
  border: 1.5px solid var(--ink); overflow: hidden;
  margin-top: 6px;
}
.continue-card .ct-progress > div{ height: 100%; background: var(--o); }
.continue-card .ct-meta{ font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 3px; }

/* ==============================================================
   BLOG + FORUM
   ============================================================== */
.blog-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.blog-card{
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.blog-card:hover{ transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.blog-cover{ aspect-ratio: 16/9; border-bottom: 2.5px solid var(--ink); position: relative; }
.blog-card .body{ padding: 14px 16px 16px; }
.blog-card .cat{
  font-family: var(--font-display); font-size: 9px; color: #fff;
  background: var(--ink); padding: 3px 6px; border-radius: 3px;
  display: inline-block; margin-bottom: 8px;
}
.blog-card h3{ font-size: 17px; line-height: 1.25; margin-bottom: 6px; }
.blog-card .excerpt{ font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.blog-card .meta{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.forum-list{
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-shadow-sm);
  overflow: hidden;
}
.forum-row{
  display: grid; grid-template-columns: 88px 1fr 110px 90px;
  gap: 14px; align-items: center;
  padding: 12px 16px;
  border-top: 1.5px dashed var(--soft-line);
  cursor: pointer;
  transition: background .12s;
}
.forum-row:first-child{ border-top: 0; }
.forum-row:hover{ background: var(--soft); }
.forum-cat{ font-family: var(--font-display); font-size: 8px; color: #fff; background: var(--ink); padding: 3px 6px; border-radius: 3px; text-align: center; }
.forum-cat.help{ background: var(--blue); }
.forum-cat.mem{ background: var(--purple); }
.forum-cat.trade{ background: var(--green); }
.forum-cat.gen{ background: var(--o); }
.forum-cat.off{ background: var(--pink); }
.forum-title{ font-weight: 800; color: var(--ink); font-size: 14px; line-height: 1.25; }
.forum-author{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.forum-replies{ font-family: var(--font-mono); font-size: 12px; color: var(--ink); font-weight: 700; text-align: center; }
.forum-replies small{ display: block; font-weight: 400; color: var(--muted); font-size: 10px; }
.forum-last{ font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); text-align: right; }

/* ==============================================================
   AD SLOT
   ============================================================== */
.ad-slot{
  border: 2px dashed var(--ink);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.04) 10px 11px),
    var(--paper);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  position: relative;
}
.ad-slot .ad-label{
  font-family: var(--font-mono); font-size: 9px;
  color: var(--muted); letter-spacing: 1px;
  text-transform: uppercase;
}
.ad-728{ height: 90px; }
.ad-300{ height: 250px; }

/* ==============================================================
   NEWSLETTER
   ============================================================== */
.newsletter{
  background: var(--ink);
  color: #fff;
  border: 4px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--pop-shadow-lg);
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before{
  content:""; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  background:
    repeating-linear-gradient(45deg, var(--yellow) 0 12px, var(--red) 12px 24px);
  border-radius: 50%;
  opacity: .12;
}
.newsletter h2{ color: #fff; font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.newsletter h2 .accent{ color: var(--yellow); }
.newsletter p{ color: rgba(255,255,255,.7); max-width: 560px; margin-bottom: 18px; font-size: 14px; }
.newsletter form{ display: flex; gap: 10px; max-width: 520px; }
.newsletter input{
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.08);
  border: 2.5px solid #fff; border-radius: 999px;
  color: #fff; font-family: var(--font-body); font-size: 14px;
  padding: 12px 18px; outline: 0;
}
.newsletter input::placeholder{ color: rgba(255,255,255,.45); }

/* ==============================================================
   FOOTER
   ============================================================== */
.site-footer{
  background: var(--ink);
  color: #fff;
  padding: 48px 0 16px;
  border-top: 4px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.site-footer::before{
  /* pixel pattern */
  content:""; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.footer-cols{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 36px; position: relative; z-index: 1;
}
.footer-col h4{
  color: var(--yellow); font-family: var(--font-display);
  font-size: 10px; letter-spacing: 1px; margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col a{
  display: block; padding: 5px 0;
  color: rgba(255,255,255,.75);
  font-size: 13px; font-weight: 600;
  transition: color .12s, transform .12s;
}
.footer-col a:hover{ color: var(--yellow); transform: translateX(3px); }

.footer-brand .brand-mark{ box-shadow: 4px 4px 0 var(--yellow); }
.footer-tagline{ color: rgba(255,255,255,.7); font-size: 13px; max-width: 280px; margin: 18px 0 18px; }
.footer-install{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--ink);
  border: 2.5px solid var(--yellow); border-radius: 999px;
  padding: 8px 14px; font-weight: 800; font-size: 12px;
  cursor: pointer;
}

.footer-bottom{
  border-top: 1.5px dashed rgba(255,255,255,.15);
  margin-top: 36px; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.5); position: relative; z-index: 1;
}

/* ==============================================================
   SHARE BAR
   ============================================================== */
.share-bar{ display: flex; gap: 8px; align-items: center; position: relative; flex-wrap: wrap; }
.share-bar .lbl{
  font-family: var(--font-display); font-size: 9px;
  color: rgba(255,255,255,.65); letter-spacing: 1px;
  margin-right: 4px;
}
.share-bar button{
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #fff; color: #fff;
  cursor: pointer; font-size: 14px;
  display: grid; place-items: center;
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.share-bar button:hover{ transform: translateY(-3px) scale(1.08); filter: brightness(1.15); }
.share-bar button[data-net="facebook"]  { background: #1877F2; }
.share-bar button[data-net="twitter"]   { background: #000; }
.share-bar button[data-net="linkedin"]  { background: #0A66C2; }
.share-bar button[data-net="whatsapp"]  { background: #25D366; }
.share-bar button[data-net="telegram"]  { background: #0088CC; }
.share-bar button[data-net="reddit"]    { background: #FF4500; }
.share-bar button[data-net="email"]     { background: var(--o); }
.share-bar button[data-net="copy"]      { background: var(--yellow); color: var(--ink); border-color: var(--ink); }

/* ==============================================================
   MISC: scanlines toggle, modals, toast
   ============================================================== */
html.scanlines body::after{
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(
    0deg, rgba(0,0,0,.06) 0px, rgba(0,0,0,.06) 1px,
    transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
}

.toast{
  position: fixed; bottom: 24px; right: 24px;
  background: var(--ink); color: #fff;
  border: 3px solid var(--yellow); border-radius: var(--r-md);
  padding: 14px 20px;
  font-weight: 700; font-size: 13.5px;
  box-shadow: var(--pop-shadow-lg);
  z-index: 1080;
  transform: translateY(120px); opacity: 0;
  transition: transform .25s, opacity .25s;
}
.toast.show{ transform: translateY(0); opacity: 1; }

/* Random Wheel modal */
.wheel-modal{
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(14,14,20,.7);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.wheel-modal.open{ display: flex; }
.wheel-card{
  background: var(--paper); border: 4px solid var(--ink); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--pop-shadow-lg);
  width: 380px; max-width: 90vw; text-align: center;
}
.wheel-display{
  width: 240px; height: 180px;
  margin: 0 auto 18px; border: 3px solid var(--ink); border-radius: var(--r-sm);
  overflow: hidden; background: var(--soft); position: relative;
}
.wheel-display .roll{ position: absolute; inset: 0; transition: transform .08s; }

/* ==============================================================
   RESPONSIVE — collapse to mobile
   ============================================================== */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-slide .pix{ display: none; }
  .quick-chips{ grid-template-columns: repeat(3, 1fr); }
  .platforms-grid{ grid-template-columns: repeat(4, 1fr); }
  .game-grid-5, .game-grid-6{ grid-template-columns: repeat(3, 1fr); }
  .leaderboard{ grid-template-columns: 1fr; }
  .genre-grid{ grid-template-columns: repeat(3, 1fr); }
  .own-grid, .continue-grid, .blog-grid{ grid-template-columns: 1fr; }
  .forum-row{ grid-template-columns: 70px 1fr; }
  .forum-replies, .forum-last{ display: none; }
  .footer-cols{ grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 520px){
  .quick-chips{ grid-template-columns: repeat(2, 1fr); }
  .platforms-grid{ grid-template-columns: repeat(3, 1fr); }
  .game-grid-5, .game-grid-6{ grid-template-columns: repeat(2, 1fr); }
  .footer-cols{ grid-template-columns: 1fr; }
  .hero-h{ font-size: 20px; }
  h1{ font-size: 30px; }
  h2{ font-size: 22px; }
}
