/* The two families this stylesheet actually asks for: 'DM Sans' for body copy
   and 'Cormorant Garamond' for headings. They were declared everywhere but
   never loaded, so the whole site rendered in the browser's default serif and
   sans-serif. Keep this import in sync with the font-family declarations. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@2.47.0/tabler-icons.min.css');

:root {
    color-scheme: dark;
    --ink: #a170a4;
    --ink-2: #a8a8c2;
    --ink-3: #8a8aa3; /* was #74748e — lightened for WCAG AA contrast on dark bg */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* strong ease-out for UI */
    --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);  /* subtle overshoot */
    --amber: #e6b350; /* secondary accent — rating stars / warm highlights */
    --paper: #0b0b12;
    --paper-2: #12121d;
    --gold: #c63f63;
    --gold-light: #5a2638;
    --accent: #bf3255;
    --white: #f5f3f7;
    --radius: 6px;
    --surface: #1a1826;
    --border: rgba(255,255,255,0.1);
    --muted: rgba(255,255,255,0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── GLOBAL IMAGE SAFETY ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Nunca se sale de su contenedor */
}

/* Lazy loading: hidden until the loader marks it as loaded */
.img-lazy {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.img-loaded {
  opacity: 1;
}
.img-error {
  opacity: 0.25;
  filter: grayscale(1);
}

/* Skeleton shimmer while the image loads */
.img-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 75%
  ) !important;
  background-size: 200% 100% !important;
  animation: imgSkeletonSweep 1.4s ease infinite;
}
@keyframes imgSkeletonSweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Game-thumb: full real image inside the box */
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ── AGE GATE ── */
/* The 18+ gate ships its own styles in js/age-gate.js so it also works
   on pages that do not load this stylesheet (admin.html). */

body, .root {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--paper);
    color: var(--white);
    min-height: 100vh;
}

.page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem 5rem;
}

/* ── NAV ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--gold-light);
    margin-bottom: 3rem;
    animation: fadeDown 0.5s ease both;
    gap: 1rem;
    position: relative;
    z-index: 50;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    white-space: nowrap;
    text-decoration: none;
}

.logo span { color: var(--gold); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink-2);
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--gold); }

.nav-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

/* ── NAV USER DROPDOWN ── */
.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}
.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    border: 1.5px solid var(--gold-light);
    transition: border-color 0.2s;
}
.nav-user:hover .nav-avatar,
.nav-user.open  .nav-avatar { border-color: var(--gold); }
.nav-username {
    font-size: 13px;
    color: var(--ink-2);
    transition: color 0.2s;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-user:hover .nav-username,
.nav-user.open  .nav-username { color: var(--white); }
.nav-chevron {
    font-size: 13px;
    color: var(--ink-3);
    transition: transform 0.2s;
}
.nav-user.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 175px;
    background: #1a1a28;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    z-index: 999;
}
.nav-dropdown.open { display: block; }
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--ink-2);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.nav-admin-item { color: var(--gold); }
.nav-admin-item:hover { background: rgba(198,63,99,0.1) !important; color: var(--gold) !important; }
.nav-dropdown-sep {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 2px;
}
.nav-signout:hover { background: rgba(255,80,80,0.08) !important; color: #ff7070 !important; }

/* ── NOTIFICATIONS BELL ── */
.nav-bell { position: relative; }
.nav-bell-btn {
    position: relative;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-2);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.nav-bell-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }
.nav-bell-dot {
    display: none;
    position: absolute;
    top: 6px; right: 7px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #e05a5a;
    border: 2px solid #11111c;
    /* Lands with a small pop rather than appearing between two frames. */
    animation: bellDotIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* The ring is a separate element drawn by ::after so the pulse can expand
   without the dot itself changing size — a dot that grows and shrinks reads
   as a glitch next to text, a ring that fades outward reads as waiting. */
.nav-bell-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid #e05a5a;
    animation: bellDotPulse 2.4s ease-out infinite;
}
.nav-bell-dot.is-update::after { border-color: var(--gold, #e0b45a); }

/* Slow on purpose. This repeats forever while something is unread, and
   anything quicker turns a notification into a nag. */
@keyframes bellDotPulse {
    0%        { transform: scale(1);   opacity: 0.55; }
    55%, 100% { transform: scale(2.6); opacity: 0; }
}
@keyframes bellDotIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* One swing when the page loads with something waiting. Once — a bell that
   keeps ringing is one people stop looking at. */
.nav-bell-btn.has-unread i { animation: bellSwing 0.9s ease-in-out; transform-origin: 50% 12%; }
@keyframes bellSwing {
    0%, 100%      { transform: rotate(0); }
    12%           { transform: rotate(13deg); }
    28%           { transform: rotate(-11deg); }
    44%           { transform: rotate(7deg); }
    60%           { transform: rotate(-4deg); }
    76%           { transform: rotate(2deg); }
}
.nav-bell-dd {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: 460px;
    overflow-y: auto;
    background: #1a1a28;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    z-index: 999;
}
/* Opens from the bell rather than from its own middle — the panel should look
   like it came out of the button that was pressed. */
.nav-bell-dd.open {
    display: block;
    transform-origin: top right;
    animation: bellPanelIn 0.19s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}
@keyframes bellPanelIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* An unread site update recolours the dot, so a broadcast from the team is
   distinguishable from "somebody liked your comment" before anything is
   opened. That is what earns the split a single bell instead of two icons. */
.nav-bell-dot.is-update {
    background: var(--gold, #e0b45a);
    box-shadow: 0 0 0 3px rgba(224,180,90,0.22);
}

/* ── BELL TABS ──
   Sticky because the list under them scrolls and the tabs are how you get
   back to the other channel — scrolling a long list should not scroll away
   the only control in the panel. */
.nav-bell-tabs {
    display: flex;
    gap: 4px;
    padding: 2px 2px 8px;
    position: sticky;
    top: -6px;
    background: #1a1a28;
    z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
}
.nav-bell-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-3, #8b8b9e);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.nav-bell-tab i { font-size: 15px; transition: transform 0.2s; }
.nav-bell-tab:hover { color: var(--white, #fff); background: rgba(255,255,255,0.05); }
.nav-bell-tab:hover i { transform: scale(1.12); }
.nav-bell-tab:active { transform: scale(0.97); }
.nav-bell-tab.active {
    color: var(--white, #fff);
    background: rgba(255,255,255,0.09);
    animation: bellTabOn 0.22s ease-out;
}
@keyframes bellTabOn {
    from { background: rgba(255,255,255,0); }
    to   { background: rgba(255,255,255,0.09); }
}
.nav-bell-tab-count {
    min-width: 17px;
    padding: 1px 5px;
    border-radius: 999px;
    background: #e05a5a;
    color: #fff;
    font-size: 10px;
    line-height: 15px;
    font-weight: 700;
    /* Overshoots slightly on the way in so the number is the thing your eye
       goes to when the panel opens. */
    animation: bellCountIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) backwards 0.08s;
}
@keyframes bellCountIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
/* The Updates count wears the same colour as the dot it corresponds to. */
.nav-bell-tab[data-bell-tab="updates"] .nav-bell-tab-count {
    background: var(--gold, #e0b45a);
    color: #1a1a28;
}

.nav-bell-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 12px;
    border-radius: 7px;
    font-size: 12.5px;
    color: var(--ink-2);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    /* Each one arrives just after the one above it. The list is replaced
       wholesale on every redraw, so switching tabs re-runs this and the new
       channel visibly deals itself in instead of swapping in place. */
    animation: bellItemIn 0.26s ease-out backwards;
}
@keyframes bellItemIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* nth-of-type, not nth-child: the tab strip is the panel's first child, so
   nth-child counted it and every notification was one step further down the
   stagger than it should have been — the first one never started at zero. */
.nav-bell-item:nth-of-type(2) { animation-delay: 0.03s; }
.nav-bell-item:nth-of-type(3) { animation-delay: 0.06s; }
.nav-bell-item:nth-of-type(4) { animation-delay: 0.09s; }
.nav-bell-item:nth-of-type(5) { animation-delay: 0.12s; }
.nav-bell-item:nth-of-type(6) { animation-delay: 0.15s; }
.nav-bell-item:nth-of-type(7) { animation-delay: 0.18s; }
/* Past that the delay would be longer than anyone waits before scrolling, and
   a list still arriving while you scroll it is worse than one simply there. */
.nav-bell-item:nth-of-type(n+8) { animation-delay: 0.2s; }

/* Clear divider between notifications */
.nav-bell-item:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.06); border-radius: 0; }
.nav-bell-item:hover { background: rgba(255,255,255,0.05); }
.nav-bell-item:active { transform: scale(0.985); }
.nav-bell-item.unread {
    background: rgba(198,63,99,0.07);
    position: relative;
}
/* A bar down the edge of anything unread: the tint alone is easy to miss on
   a dark panel, and this survives being glanced at. */
.nav-bell-item.unread::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: #c63f63;
    animation: bellBarIn 0.3s ease-out backwards 0.1s;
}
@keyframes bellBarIn {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}
.nav-bell-item > i { color: var(--gold); font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.nav-bell-item strong { color: var(--white); font-weight: 600; }
.nav-bell-text { display: block; line-height: 1.5; }
.nav-bell-text em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 3px;
}
/* Inline star row + quoted comment inside rating/comment notifications */
.nav-bell-stars { display: inline-flex; gap: 1px; vertical-align: -1px; margin: 0 2px; }
.nav-bell-stars i { color: var(--amber, #e6b350) !important; font-size: 12px !important; margin: 0 !important; }
.nav-bell-quote {
    display: block;
    margin-top: 4px;
    padding-left: 8px;
    border-left: 2px solid rgba(255,255,255,0.12);
    font-style: italic;
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 1.45;
}
.nav-bell-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    font-size: 12.5px;
    color: var(--ink-3);
    justify-content: center;
    animation: bellItemIn 0.26s ease-out;
}
.nav-bell-stars i { animation: bellStarIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
.nav-bell-stars i:nth-child(2) { animation-delay: 0.04s; }
.nav-bell-stars i:nth-child(3) { animation-delay: 0.08s; }
.nav-bell-stars i:nth-child(4) { animation-delay: 0.12s; }
.nav-bell-stars i:nth-child(5) { animation-delay: 0.16s; }
@keyframes bellStarIn {
    from { transform: scale(0) rotate(-40deg); opacity: 0; }
    to   { transform: scale(1) rotate(0);      opacity: 1; }
}

/* Somebody who has asked their system for less motion has asked for it here
   too. Everything above is decoration on top of a panel that works without
   any of it, so it all goes — not merely gets faster. */
@media (prefers-reduced-motion: reduce) {
    .nav-bell-dd.open,
    .nav-bell-item,
    .nav-bell-item.unread::before,
    .nav-bell-empty,
    .nav-bell-dot,
    .nav-bell-dot::after,
    .nav-bell-btn.has-unread i,
    .nav-bell-tab.active,
    .nav-bell-tab-count,
    .nav-bell-stars i {
        animation: none !important;
    }
    .nav-bell-item:active, .nav-bell-tab:active { transform: none; }
}

/* ── BUTTONS ── */
.btn-ghost {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-ghost:hover { background: var(--gold); color: var(--white); }

.btn-solid {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-solid:hover { background: #b98bbc; border-color: #b98bbc; }

.btn-buy {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 22px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-buy:hover { background: var(--accent); }

.btn-mini {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 12px;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-mini:hover { background: var(--gold); }

/* ── HERO ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    animation: fadeUp 0.6s ease 0.1s both;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.1;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.hero h1 em { font-style: italic; color: var(--gold); }

.hero p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-2);
    margin-bottom: 1.75rem;
    font-weight: 300;
}

.hero-art { position: relative; height: 280px; }

.art-block { position: absolute; border-radius: 2px; }

.art-main {
    width: 200px; height: 240px;
    background: var(--ink-2);
    top: 20px; left: 50px;
    display: flex; align-items: center; justify-content: center;
}

.art-accent {
    width: 120px; height: 150px;
    background: var(--gold-light);
    top: 0; left: 140px;
    z-index: -1;
}

.art-tag {
    width: 80px; height: 36px;
    background: var(--gold);
    bottom: 10px; left: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
}

.art-icon { font-size: 48px; color: var(--gold); opacity: 0.4; }

/* ── SECTION HEADER ── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 500;
}

.section-link {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    cursor: pointer;
    font-weight: 500;
}

.divider {
    width: 40px; height: 1px;
    background: var(--gold);
    margin-bottom: 2rem;
}

/* ── FEATURED SECTION ── */
.featured-section {
  width: 100%;
  margin-bottom: 4rem;
  animation: fadeUp 0.5s ease 0.05s both;
}

/* ── FEATURED HERO CAROUSEL ── */
.featured-hero-carousel {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
}

.fhc-slide {
  position: absolute;
  inset: 0 0 52px 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.fhc-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.fhc-slide[data-bg="dark"]  { background: linear-gradient(135deg, #0e0d1e 0%, #1c0e1a 55%, #0b0b12 100%); }
.fhc-slide[data-bg="warm"]  { background: linear-gradient(135deg, #1a0c0d 0%, #2e1018 55%, #0b0b12 100%); }
.fhc-slide[data-bg="cool"]  { background: linear-gradient(135deg, #0b0e1e 0%, #0d1b2c 55%, #0b0b12 100%); }
.fhc-slide[data-bg="muted"] { background: linear-gradient(135deg, #0f0f1a 0%, #1c1c28 55%, #0b0b12 100%); }

.fhc-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 2.75rem 3.5rem;
  gap: 2rem;
}

.fhc-info { display: flex; flex-direction: column; }

.fhc-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(198,63,99,0.3);
  background: rgba(198,63,99,0.07);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 0.9rem;
}

.fhc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.fhc-dev {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.fhc-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245,243,247,0.72);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 2rem;
}

.fhc-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fhc-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--white);
}

.fhc-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(198,63,99,0.06);
  border: 1px solid rgba(198,63,99,0.12);
  font-size: 72px;
  color: rgba(198,63,99,0.22);
  flex-shrink: 0;
}

.fhc-tabs {
  display: flex;
  height: 52px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(11,11,18,0.85);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.featured-hero-carousel::before {
  content: '';
  display: block;
  height: 400px;
  pointer-events: none;
}

.fhc-tab {
  flex: 1;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  color: var(--ink-3);
  text-align: left;
}

.fhc-tab:last-child { border-right: none; }
.fhc-tab:hover { background: rgba(198,63,99,0.06); color: var(--ink-2); }
.fhc-tab.active { color: var(--white); background: rgba(198,63,99,0.1); border-bottom-color: var(--gold); }

.fhc-tab-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: rgba(198,63,99,0.35);
  line-height: 1;
  flex-shrink: 0;
}

.fhc-tab.active .fhc-tab-num { color: var(--gold); }

.fhc-tab-name {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Featured card (kept for backwards compat) */
.featured-card { width: 100%; }

.featured-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}

.featured-card::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
}

.featured-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 1rem;
}

.featured-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 500;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.featured-genre {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.featured-desc {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(245,243,247,0.6);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.featured-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.price-tag {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
}

.featured-visual {
    height: 180px;
    background: rgba(198,63,99,0.12);
    border: 1px solid rgba(198,63,99,0.18);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    font-size: 64px;
    color: rgba(198,63,99,0.35);
}

.dev-tag {
    font-size: 11px;
    color: rgba(245,243,247,0.4);
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

/* ── GAMES GRID ── */
.games-section {
    animation: fadeUp 0.6s ease 0.3s both;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
    justify-content: center;
    gap: 1.25rem;
}

.game-card {
    background: #111118;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.game-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.game-thumb {
    aspect-ratio: 5 / 4;   /* matches the source thumbnails (630×500) → export at 5:4 (e.g. 630×500 or 1000×800) for a perfect, crop-free fit */
    background: #151521;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
    position: relative;
}

.game-thumb.dark  { background: #1f1f2a; }
.game-thumb.warm  { background: #4c1725; }
.game-thumb.cool  { background: #102136; }
.game-thumb.muted { background: #1e1e24; }

.game-body { padding: 0.875rem; }

.game-dev {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.game-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.game-genre {
    font-size: 11px;
    color: var(--ink-3);
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.game-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
}

.boost-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--gold);
    color: var(--white);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 3px 7px;
    border-radius: 2px;
}

/* ── FOOTER ── */
.footer-strip {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--ink-3);
    animation: fadeUp 0.6s ease 0.4s both;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Legal / contact links. The age gate promises "terms of use", so they have to
   be reachable from every page — this row is what makes that true. */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.9rem;
}

.footer-links a {
    color: var(--ink-3);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

/* ── LEGAL & CONTENT PAGES ── */
.legal-page {
    max-width: 780px;
    margin: 0 auto;
    animation: fadeUp 0.5s ease both;
}

.legal-page h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.legal-updated {
    font-size: 12px;
    color: var(--ink-3);
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    margin: 2.25rem 0 0.75rem;
    color: var(--white);
}

.legal-page p,
.legal-page li {
    font-size: 14px;
    line-height: 1.85;
    color: var(--ink-2);
}

.legal-page p { margin-bottom: 0.9rem; }
.legal-page ul { margin: 0 0 0.9rem 1.2rem; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page a { color: var(--gold); }

.legal-page strong { color: var(--white); font-weight: 600; }

/* Pulled-out warning for the things that carry real consequences. */
.legal-callout {
    border: 1px solid rgba(198,63,99,0.28);
    background: rgba(198,63,99,0.07);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.legal-callout p:last-child { margin-bottom: 0; }

/* ── CONTACT CARDS ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s;
}

.contact-card:hover {
    border-color: rgba(198,63,99,0.4);
    transform: translateY(-2px);
}

.contact-card i { font-size: 22px; color: var(--gold); }
.contact-card-name { font-size: 15px; font-weight: 600; color: var(--white); }
.contact-card-desc { font-size: 12.5px; line-height: 1.65; color: var(--ink-3); }

/* ── 404 ── */
.nf-wrap {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    animation: fadeUp 0.5s ease both;
}

.nf-code {
    font-family: 'Cormorant Garamond', serif;
    font-size: 90px;
    line-height: 1;
    font-weight: 600;
    color: var(--gold);
}

.nf-title { font-size: 22px; font-weight: 500; }
.nf-sub { font-size: 14px; color: var(--ink-3); max-width: 420px; line-height: 1.8; margin-bottom: 1rem; }

/* ── GAME DETAIL ── */
.detail-intro {
    margin-bottom: 2rem;
}

.detail-intro h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.detail-intro p {
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.8;
    max-width: 680px;
}

.game-detail-grid {
    display: block;
    width: 100%;
    align-items: start;
}

.game-detail-card {
    background: var(--paper-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 2rem;
}

/* ── CAROUSEL ── */
.game-carousel {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.75rem;
    aspect-ratio: 16 / 9;
    min-height: 260px;
    background: var(--paper-2);
}

/* Each slide fills the whole carousel space */
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-color: #0b0b12;     /* fills the empty space around the image */
  background-size: contain;      /* full image, no cropping */
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide span {
    position: relative;
    z-index: 1;
    padding: 0.6rem 1rem;
    background: rgba(11,11,18,0.75);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
}

.carousel-control {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(11,11,18,0.65);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background 0.2s;
    z-index: 2;
}

.carousel-control:hover { background: rgba(198,63,99,0.9); }
.carousel-control.prev { left: 12px; }
.carousel-control.next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.5rem;
    z-index: 2;
}

.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: background-color 0.2s, width 0.2s, border-radius 0.2s;
}

.carousel-dot.active { background: var(--gold); width: 20px; border-radius: 4px; }

/* The carousel takes a proportional height (aspect-ratio 16:9) */
.featured-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;     /* Se adapta al ancho disponible */
  overflow: hidden;
}

/* ── GAME META ── */
.game-meta {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--ink-2);
}

.detail-meta strong {
    color: var(--white);
    font-weight: 500;
    text-align: right;
}

/* ── DESCRIPTION ── */
.game-description {
    color: var(--ink-2);
    line-height: 1.75;
    font-size: 14px;
    font-weight: 300;
}

.game-description p + p { margin-top: 1rem; }

/* ── SOCIAL LINKS ── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.social-link i { font-size: 16px; }
.social-link:hover { transform: translateY(-1px); }

.social-link.discord:hover  { background: rgba(88,101,242,0.14); border-color: rgba(88,101,242,0.35); color: #7289DA; }
.social-link.patreon:hover  { background: rgba(255,66,77,0.12);  border-color: rgba(255,66,77,0.3);   color: #FF424D; }
.social-link.twitter:hover  { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); color: var(--white); }
.social-link.itch:hover     { background: rgba(250,92,92,0.12);  border-color: rgba(250,92,92,0.3);   color: #FA5C5C; }

/* ── DOWNLOAD PANEL ── */
.download-panel { margin-top: 2rem; }

.download-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.download-links a {
    text-align: center;
    width: 100%;
}

/* ── SIDEBAR ── */

/* The whole aside is never sticky; only the purchase box was,
   which caused the offset with similar-games. Both now move
   with the page normally. */
.sidebar-purchase {
    background: var(--paper-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    position: static;
}

.sidebar-purchase .price-tag {
    display: block;
    margin-bottom: 1rem;
}

.sidebar-purchase .btn-buy {
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 12px;
}

.sidebar-purchase .btn-ghost {
    width: 100%;
    display: block;
    text-align: center;
    padding: 10px;
}

/* ── PREMIUM DOWNLOAD SIDEBAR ── */
.premium-banner {
  position: relative;
  height: 72px;
  background: linear-gradient(135deg, rgba(198,63,99,0.18) 0%, rgba(90,38,56,0.28) 100%);
  border: 1px solid rgba(198,63,99,0.2);
  border-radius: calc(var(--radius) - 1px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.premium-banner-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(198,63,99,0.22) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.premium-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin: 0.35rem 0 0.15rem;
}

.btn-dl-pc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 13px 1rem;
  background: linear-gradient(135deg, #bf3255 0%, #c63f63 100%);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 20px rgba(198,63,99,0.35);
  transition: box-shadow 0.2s, transform 0.15s;
}

.btn-dl-pc:hover {
  box-shadow: 0 6px 28px rgba(198,63,99,0.55);
  transform: translateY(-1px);
}

.btn-dl-android {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 12px 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  transition: background 0.2s, border-color 0.2s;
}

.btn-dl-android:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
}

.btn-dl-format {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.38);
  font-weight: 400;
  text-transform: uppercase;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tag {
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border: 1px solid var(--gold-light);
    border-radius: 999px;
    color: var(--ink-2);
}

.similar-games-section .games-grid {
    grid-template-columns: 1fr;
}

.similar-games-section .game-thumb {
    height: 100px;
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */

/* Previene scroll horizontal en cualquier pantalla */
html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 1100px) {
    .page { padding: 0 2rem 4rem; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 860px) {
    .page { padding: 0 1.25rem 3rem; }

    .nav-links { display: none; }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-art { display: none; }

    .featured-card {
        grid-template-columns: 1fr;
    }
    .featured-visual { height: 120px; }

    .games-grid { grid-template-columns: repeat(2, 1fr); }

    /* Detail page: single column, sidebar below the main */
    .game-detail-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .game-detail-card {
        padding: 1.25rem;
    }

    .game-carousel {
        min-height: 200px;
    }

    .download-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-strip { flex-direction: column; text-align: center; gap: 0.5rem; }

    /* Featured hero carousel – mobile */
    .fhc-inner { padding: 2rem; gap: 1rem; }
    .fhc-art { width: 120px; height: 120px; font-size: 48px; }
    .featured-hero-carousel::before { height: 340px; }
    .fhc-tab-name { display: none; }
    .fhc-tab { justify-content: center; }
    .fhc-tab-num { font-size: 16px; }
}

@media (max-width: 600px) {
    .page { padding: 0 1rem 2.5rem; }

    /* Both auth actions stay reachable on phones — tightened, not hidden.
       The nav links themselves live in the burger menu (js/nav-mobile.js). */
    .logo { font-size: 18px; }
    .nav-right { gap: 0.4rem; }
    .nav-right .btn-ghost,
    .nav-right .btn-solid { padding: 7px 11px; font-size: 11px; letter-spacing: 0.04em; }

    .games-grid { grid-template-columns: 1fr; }

    .game-detail-card { padding: 1rem; }

    .download-links { grid-template-columns: 1fr; }

    .detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .detail-meta strong { text-align: left; }

    .featured-card { padding: 1.5rem; }

    .featured-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }

    /* Featured hero carousel – small mobile */
    .fhc-inner { grid-template-columns: 1fr; padding: 1.5rem; }
    .fhc-art { display: none; }
    .featured-hero-carousel::before { height: 310px; }
}

    html, body {
      height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
    }

    /* ── NAV ── */
    .pw-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.25rem 3rem;
      border-bottom: 1px solid var(--gold-light);
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(11,11,18,0.95);
      backdrop-filter: blur(10px);
      animation: fadeDown 0.5s ease both;
    }

    .pw-logo {
      font-family: 'Cormorant Garamond', serif;
      font-size: 22px;
      font-weight: 600;
      color: var(--white);
      letter-spacing: 0.02em;
      text-decoration: none;
    }

    .pw-nav-links {
      display: flex;
      gap: 2.5rem;
      list-style: none;
    }

    .pw-nav-links a {
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-weight: 500;
      color: var(--ink-2);
      text-decoration: none;
      transition: color 0.2s;
    }

    .pw-nav-links a:hover { color: var(--gold); }

    .pw-patreon-btn {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      font-family: 'DM Sans', sans-serif;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      padding: 8px 16px;
      border: 1px solid var(--gold);
      background: transparent;
      color: var(--gold);
      border-radius: var(--radius);
      cursor: pointer;
      transition: background-color 0.2s, color 0.2s;
      text-decoration: none;
    }

    .pw-patreon-btn:hover { background: var(--gold); color: var(--white); }

    /* ── PAGE WRAPPER ── */
    .pw-page {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2.5rem 5rem;
    }

    /* ── SECTION LABELS ── */
    .pw-section-eyebrow {
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold);
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 1.5rem;
      padding-top: 3rem;
    }

    .pw-section-eyebrow::before {
      content: '';
      display: inline-block;
      width: 28px;
      height: 1px;
      background: var(--gold);
    }

    /* ── SPLIT GAMES ── */
    .pw-split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5px;
      border: 1px solid var(--gold-light);
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 5rem;
    }

    .pw-panel {
      position: relative;
      overflow: hidden;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 2.5rem;
      min-height: 420px;
      transition: background 0.4s ease;
      background: var(--paper-2);
    }

    .pw-panel::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(11,11,18,0.92) 0%, rgba(11,11,18,0.3) 60%, transparent 100%);
      z-index: 1;
      pointer-events: none;
    }

    .pw-panel:hover { background: #161622; }

    .pw-panel-deco {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .pw-deco-circle {
      position: absolute;
      border-radius: 50%;
      border: 1px solid rgba(198,63,99,0.08);
      transition: transform 0.7s ease, opacity 0.5s ease;
    }

    .pw-panel-a .pw-deco-circle { border-color: rgba(161,112,164,0.1); }

    .pw-panel:hover .pw-deco-circle { transform: scale(1.06); opacity: 1.4; }

    .dc1 { width: 320px; height: 320px; top: -100px; right: -100px; }
    .dc2 { width: 220px; height: 220px; top: -50px; right: -50px; border-style: dashed; }
    .dc3 { width: 420px; height: 420px; bottom: -180px; left: -120px; opacity: 0.4; }

    .pw-panel-icon {
      position: absolute;
      top: 38%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 110px;
      opacity: 0.05;
      color: var(--white);
      z-index: 1;
      pointer-events: none;
      transition: opacity 0.5s ease, transform 0.6s ease;
    }

    .pw-panel:hover .pw-panel-icon {
      opacity: 0.08;
      transform: translate(-50%, -53%) scale(1.06);
    }

    .pw-panel-content {
      position: relative;
      z-index: 2;
    }

    .pw-panel-tag {
      font-size: 9px;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      color: var(--gold);
      font-weight: 500;
      margin-bottom: 0.4rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .pw-panel-tag::before {
      content: '';
      display: inline-block;
      width: 18px; height: 1px;
      background: var(--gold);
    }

    .pw-panel-dev {
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink-3);
      margin-bottom: 0.45rem;
    }

    .pw-panel-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(28px, 2.8vw, 42px);
      font-weight: 500;
      line-height: 1.05;
      color: var(--white);
      margin-bottom: 0.9rem;
    }

    .pw-panel-price {
      font-family: 'Cormorant Garamond', serif;
      font-size: 22px;
      font-weight: 600;
      color: var(--white);
      margin-bottom: 1.25rem;
    }

    .pw-panel-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink-2);
      transition: color 0.2s, gap 0.2s;
    }

    .pw-panel:hover .pw-panel-cta { color: var(--gold); gap: 0.8rem; }

    /* ── DEVELOPERS ── */
    .pw-devs-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem;
      margin-bottom: 5rem;
    }

    .pw-dev-card {
      background: var(--paper-2);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: var(--radius);
      padding: 1.75rem;
      display: flex;
      align-items: center;
      gap: 1.5rem;
      transition: border-color 0.2s;
    }

    .pw-dev-card:hover { border-color: var(--gold-light); }

    .pw-dev-avatar {
      width: 56px; height: 56px;
      border-radius: 50%;
      border: 1px solid var(--gold-light);
      background: var(--paper);
      display: flex; align-items: center; justify-content: center;
      font-size: 22px;
      color: var(--gold);
      flex-shrink: 0;
    }

    .pw-dev-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 20px;
      font-weight: 500;
      color: var(--white);
      margin-bottom: 0.25rem;
    }

    .pw-dev-country {
      font-size: 11px;
      color: var(--ink-3);
      letter-spacing: 0.05em;
      margin-bottom: 0.5rem;
    }

    .pw-dev-games {
      font-size: 11px;
      color: var(--gold);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    /* ── OTHER GAMES ── */
    .pw-other-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.25rem;
      margin-bottom: 5rem;
    }

    .pw-other-card {
      background: var(--paper-2);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: var(--radius);
      overflow: hidden;
      cursor: pointer;
      transition: border-color 0.25s, transform 0.25s;
    }

    .pw-other-card:hover {
      border-color: var(--gold);
      transform: translateY(-3px);
    }

    .pw-other-thumb {
      height: 110px;
      display: flex; align-items: center; justify-content: center;
      font-size: 36px;
      position: relative;
    }

    .pw-other-thumb.warm  { background: #4c1725; }
    .pw-other-thumb.cool  { background: #102136; }
    .pw-other-thumb.muted { background: #1e1e24; }
    .pw-other-thumb.dark  { background: #1f1f2a; }

    .pw-other-body { padding: 0.875rem; }

    .pw-other-dev {
      font-size: 9px;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: var(--gold);
      font-weight: 500;
      margin-bottom: 0.25rem;
    }

    .pw-other-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 16px;
      font-weight: 600;
      color: var(--white);
      margin-bottom: 0.25rem;
      line-height: 1.2;
    }

    .pw-other-genre {
      font-size: 10px;
      color: var(--ink-3);
      margin-bottom: 0.7rem;
    }

    .pw-other-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .pw-other-price {
      font-family: 'Cormorant Garamond', serif;
      font-size: 18px;
      font-weight: 600;
      color: var(--ink);
    }

    /* ── OVERLAY (for other games) ── */
    .pw-overlay {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: flex;
      align-items: stretch;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.35s ease;
    }

    .pw-overlay.open {
      opacity: 1;
      pointer-events: all;
    }

    .pw-overlay-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(11,11,18,0.82);
      backdrop-filter: blur(6px);
    }

    .pw-overlay-panel {
      position: relative;
      z-index: 2;
      width: min(620px, 95vw);
      height: 100vh;
      margin-left: auto;
      background: var(--paper-2);
      border-left: 1px solid var(--gold-light);
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      transform: translateX(50px);
      transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .pw-overlay.open .pw-overlay-panel { transform: translateX(0); }

    .pw-overlay-header {
      padding: 1.75rem 2rem 1.25rem;
      border-bottom: 1px solid rgba(255,255,255,0.07);
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 1rem;
    }

    .pw-overlay-close {
      background: none;
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--ink-2);
      width: 34px; height: 34px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 16px;
      display: flex; align-items: center; justify-content: center;
      transition: border-color 0.2s, color 0.2s;
      flex-shrink: 0;
    }

    .pw-overlay-close:hover { border-color: var(--gold); color: var(--gold); }

    .pw-overlay-body {
      padding: 1.75rem 2rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .pw-overlay-gallery {
      aspect-ratio: 16/9;
      background: var(--paper);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: var(--radius);
      display: flex; align-items: center; justify-content: center;
      font-size: 72px;
      color: rgba(198,63,99,0.2);
    }

    .pw-overlay-meta {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.65rem;
    }

    .pw-overlay-tag {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: var(--radius);
      padding: 0.7rem 0.9rem;
    }

    .pw-overlay-tag span {
      display: block;
      color: var(--ink-3);
      font-size: 9px;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      margin-bottom: 0.25rem;
    }

    .pw-overlay-tag strong {
      color: var(--white);
      font-weight: 400;
      font-size: 13px;
    }

    .pw-overlay-desc {
      font-size: 13px;
      line-height: 1.8;
      color: var(--ink-2);
      font-weight: 300;
    }

    .pw-overlay-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
      margin-top: auto;
      padding-top: 1rem;
      border-top: 1px solid rgba(255,255,255,0.07);
    }

    .pw-overlay-actions a {
      display: flex; align-items: center; justify-content: center;
      gap: 0.45rem;
      padding: 12px;
      font-size: 12px;
      text-decoration: none;
    }

    /* ── FOOTER ── */
    .pw-footer {
      border-top: 1px solid rgba(255,255,255,0.07);
      padding: 1.25rem 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 11px;
      color: var(--ink-3);
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .pw-nav { padding: 1rem 1.5rem; }
      .pw-nav-links { display: none; }
      .pw-page { padding: 0 1.5rem 4rem; }

      .pw-split { grid-template-columns: 1fr; }
      .pw-panel { min-height: 280px; }

      .pw-devs-grid { grid-template-columns: 1fr; }
      .pw-other-grid { grid-template-columns: repeat(2, 1fr); }

      .pw-overlay-panel { width: 100vw; border-left: none; }
      .pw-overlay-meta { grid-template-columns: 1fr; }
      .pw-overlay-actions { grid-template-columns: 1fr; }
    }

    @media (max-width: 520px) {
      .pw-page { padding: 0 1rem 3rem; }
      .pw-other-grid { grid-template-columns: 1fr; }
      .pw-panel { padding: 1.75rem; min-height: 240px; }
    }
/* ════════════════════════════════════════
   HOMEPAGE — FEATURED HERO CAROUSEL
   ════════════════════════════════════════ */

.featured-hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--gold-light);
  margin-bottom: 3rem;
  min-height: 420px;
}

/* Neutralize the legacy ::before that added an empty 400px block */
.featured-hero-carousel::before { content: none; }

.fhc-slide {
  display: none;
  padding: 3rem 3rem 5rem;
  position: relative;
  overflow: hidden;
}

.fhc-slide.active { display: block; animation: fadeUp 0.45s ease both; }

.fhc-slide[data-bg="dark"]  { background: #0e0d1e; }
.fhc-slide[data-bg="warm"]  { background: #1e0e14; }
.fhc-slide[data-bg="cool"]  { background: #0d1520; }
.fhc-slide[data-bg="muted"] { background: #111118; }

/* Gradient overlay on top of the background image */
.fhc-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,18,0.45) 0%, rgba(11,11,18,0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Background image — cover fills the slide, gradient overlay handles readability */
.fhc-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.fhc-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.fhc-badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 0.9rem;
}

.fhc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.fhc-dev {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
}

.fhc-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 1.25rem;
}

.fhc-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fhc-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.fhc-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  color: var(--ink-2);
}

.fhc-stat i { color: var(--gold); font-size: 14px; }

.fhc-art {
  font-size: 90px;
  color: rgba(198,63,99,0.12);
  user-select: none;
  line-height: 1;
}

.fhc-tabs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(11,11,18,0.7);
  backdrop-filter: blur(8px);
}

.fhc-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.06);
  color: var(--ink-3);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-bottom-color 0.2s;
  text-align: center;
}

.fhc-tab:last-child { border-right: none; }
.fhc-tab:hover { color: var(--ink-2); background: rgba(255,255,255,0.03); }
.fhc-tab.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

.fhc-tab-name { display: block; }

/* ════════════════════════════════════════
   HOMEPAGE — DEVELOPER CARDS (expandable)
   ════════════════════════════════════════ */

.dev-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.dev-card-wrap { position: relative; }

.dev-card {
  background: var(--paper-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
  user-select: none;
}

.dev-card:hover { border-color: var(--gold-light); }
.dev-card.open  { border-color: var(--gold); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.dev-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}

.dev-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.dev-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.dev-card-meta {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.dev-card-meta span { color: var(--gold); }

.dev-card-chevron {
  margin-left: auto;
  font-size: 16px;
  color: var(--ink-3);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.dev-card.open .dev-card-chevron { transform: rotate(180deg); color: var(--gold); }

/* Expandable panel */
.dev-expand {
  background: var(--paper-2);
  border: 1px solid var(--gold);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.5rem;
}

.dev-expand.open {
  max-height: 600px;
  padding: 1.5rem;
}

.dev-expand-bio {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 300;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dev-expand-games {
  display: grid;
  gap: 0.65rem;
}

.dev-expand-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s;
  gap: 1rem;
}

.dev-expand-game:hover { border-color: var(--gold-light); }

.dev-expand-game-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dev-expand-game-icon {
  width: 36px; height: 36px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.dev-expand-game-icon.warm  { background: #4c1725; }
.dev-expand-game-icon.cool  { background: #102136; }
.dev-expand-game-icon.dark  { background: #1f1f2a; }
.dev-expand-game-icon.muted { background: #1e1e24; }

.dev-expand-game-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  display: block;
  margin-bottom: 1px;
}

.dev-expand-game-genre {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.dev-expand-game-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   GAME DETAIL — RATING & COMMENTS
   ════════════════════════════════════════ */

.rating-section {
  margin-top: 2rem;
}

.analytic-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.analytics-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.rating-overview {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.rating-score {
  text-align: center;
  flex-shrink: 0;
}

.rating-score-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  display: block;
}

.rating-score-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.25rem;
}

.rating-stars-row {
  display: flex;
  gap: 2px;
  margin-bottom: 0.25rem;
}

.star { color: var(--amber); font-size: 18px; }
.star.empty { color: rgba(255,255,255,0.1); }

.rating-bars { flex: 1; min-width: 160px; }

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 11px;
  color: var(--ink-3);
}

.rating-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.rating-count { color: var(--ink-3); font-size: 11px; min-width: 28px; text-align: right; }

/* Stars input */
.rating-input { margin-bottom: 1.25rem; }

.rating-input-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
  display: block;
}

.star-input {
  display: flex;
  gap: 4px;
  margin-bottom: 0.75rem;
}

.star-input i {
  font-size: 24px;
  color: rgba(255,255,255,0.1);
  cursor: pointer;
  transition: color 0.15s;
}

.star-input i.active,
.star-input i:hover,
.star-input i.hover { color: var(--amber); }

/* Comment form */
.comment-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.comment-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  padding: 0.75rem;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--gold-light);
}

.comment-form textarea::placeholder { color: var(--ink-3); }

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.comment-author-note {
  font-size: 11px;
  color: var(--ink-3);
}

/* Comments list */
.comment-list { display: grid; gap: 0.75rem; }

.comment-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg,#c63f63,#9b6dff);
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Logged-in user header inside the form */
.comment-form-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.comment-form-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
}

.comment-form-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  flex: 1;
}

.comment-form-tag {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* Login required prompt */
.comment-login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 1.25rem;
}

.comment-login-prompt .pli-icon {
  font-size: 28px;
  color: var(--ink-3);
}

.comment-login-prompt p {
  font-size: 13px;
  color: var(--ink-3);
}

/* Shown when a game has no comments at all. */
.comment-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--ink-3);
}

.comment-empty i { font-size: 28px; }
.comment-empty p { font-size: 13px; }

.comment-user {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
}
.comment-user:hover { color: var(--gold); text-decoration: underline; }

.comment-user-stars { display: flex; gap: 2px; }
.comment-user-stars i { font-size: 12px; color: var(--amber); }

.comment-date {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.comment-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 300;
}

/* Comment action buttons */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.comment-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.comment-btn:hover {
  background: rgba(255,255,255,0.07);
  color: var(--ink-2);
}

.comment-btn-delete:hover {
  background: rgba(220,60,60,0.14);
  color: #e05555;
}

.comment-btn-report:hover {
  background: rgba(255,159,67,0.12);
  color: #ff9f43;
}

.comment-btn-reported {
  color: var(--gold) !important;
  pointer-events: none;
}

/* Download counter in sidebar */
.download-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: var(--ink-2);
}

.download-stat:last-child { border-bottom: none; }

.download-stat strong {
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
}

.download-stat i { color: var(--gold); margin-right: 6px; font-size: 14px; }

/* ════════════════════════════════════
   RESPONSIVE ADDITIONS
   ════════════════════════════════════ */

@media (max-width: 900px) {
  .dev-cards-grid { grid-template-columns: 1fr; }
  .featured-hero-carousel { min-height: 0; }

  /* 3.5rem sides keeps text clear of the 40px-wide arrows at left/right: 12px */
  .fhc-slide { padding: 1.25rem 3.5rem 1.5rem; }

  .fhc-inner {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
    gap: 0;
  }

  .fhc-badge  { font-size: 9px; margin-bottom: 0.45rem; }
  .fhc-title  { font-size: 21px; line-height: 1.1; margin-bottom: 0.2rem; }
  .fhc-dev    { margin-bottom: 0.45rem; }

  .fhc-desc {
    font-size: 11.5px;
    line-height: 1.5;
    max-width: none;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fhc-footer { gap: 0.75rem; }

  .fhc-art  { display: none; }
  .fhc-tabs { display: none; }
}

@media (max-width: 600px) {
  .rating-overview { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ════════════════════════════════════════
   AUTH MODAL
   ════════════════════════════════════════ */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,11,18,0.88);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.auth-modal-overlay.open { opacity: 1; pointer-events: all; }

.auth-modal {
  background: var(--paper-2);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  width: min(440px, 94vw);
  padding: 2.5rem 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
.auth-modal-overlay.open .auth-modal { transform: translateY(0); }

.auth-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink-3); width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.auth-modal-close:hover { border-color: var(--gold); color: var(--gold); }

.auth-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 500;
  color: var(--white); margin-bottom: 0.25rem;
}
.auth-modal-sub {
  font-size: 12px; color: var(--ink-3); margin-bottom: 1.75rem;
}

.auth-tabs {
  display: flex; gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden; margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1; padding: 9px;
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.auth-tab.active { background: var(--gold); color: var(--white); }

.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block; font-size: 11px;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 0.4rem;
}
.auth-field input {
  width: 100%; padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  transition: border-color 0.2s;
}
.auth-field input:focus { outline: none; border-color: var(--gold-light); }
.auth-field input::placeholder { color: var(--ink-3); }

.auth-submit {
  width: 100%; padding: 12px;
  background: var(--gold); color: var(--white);
  border: none; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
  margin-bottom: 1.25rem;
}
.auth-submit:hover { background: var(--accent); }

.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 11px; color: var(--ink-3); margin-bottom: 1.25rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.07);
}

.auth-error {
  font-size: 12px; color: #ff6b6b;
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.18);
  border-radius: var(--radius);
  padding: 8px 10px; margin-bottom: 0.75rem;
  display: none;
}

.auth-google {
  width: 100%; padding: 11px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  color: var(--ink-2); font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-google:hover { background: rgba(255,255,255,0.05); color: var(--white); border-color: rgba(255,255,255,0.25); }

/* ════════════════════════════════════════
   RATING MODAL
   ════════════════════════════════════════ */
.rating-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,11,18,0.88);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.rating-modal-overlay.open { opacity: 1; pointer-events: all; }

.rating-modal {
  background: var(--paper-2);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  width: min(420px, 94vw);
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
.rating-modal-overlay.open .rating-modal { transform: translateY(0); }

/* ── REPORT COMMENT MODAL ── */
.report-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 1.1rem 0 0.9rem;
}
.report-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.report-opt i { color: var(--ink-3); font-size: 16px; transition: color 0.15s; }
.report-opt:hover { border-color: rgba(255,255,255,0.2); color: var(--white); }
.report-opt.sel {
  border-color: rgba(198,63,99,0.5);
  background: rgba(198,63,99,0.1);
  color: var(--white);
}
.report-opt.sel i { color: var(--gold); }
.report-error {
  display: none;
  color: #e05a5a;
  font-size: 12px;
  margin: 0.5rem 0;
}

.rating-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink-3); width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.rating-modal-close:hover { border-color: var(--gold); color: var(--gold); }

.rating-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500;
  color: var(--white); margin-bottom: 0.25rem;
}
.rating-modal-sub { font-size: 12px; color: var(--ink-3); margin-bottom: 1.5rem; }

.rating-modal-stars {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 1.5rem;
}
.rating-modal-stars i {
  font-size: 36px; color: rgba(255,255,255,0.12);
  cursor: pointer; transition: color 0.15s, transform 0.15s;
}
.rating-modal-stars i.active,
.rating-modal-stars i.hover { color: var(--amber); transform: scale(1.1); }

.rating-modal-label {
  text-align: center; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.25rem;
  min-height: 1.2em;
}

.rating-modal-textarea {
  width: 100%; padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  resize: vertical; min-height: 90px;
  transition: border-color 0.2s; margin-bottom: 0.5rem;
}
.rating-modal-textarea:focus { outline: none; border-color: var(--gold-light); }
.rating-modal-textarea::placeholder { color: var(--ink-3); }

.rating-modal-note {
  font-size: 11px; color: var(--ink-3);
  margin-bottom: 1.25rem;
}

.rating-modal-submit {
  width: 100%; padding: 12px;
  background: var(--gold); color: var(--white);
  border: none; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.rating-modal-submit:hover { background: var(--accent); }

/* ════════════════════════════════════════
   GAME DETAIL — SOCIAL LINKS ROW
   ════════════════════════════════════════ */
.game-social-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.game-social-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; color: var(--ink-2);
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.game-social-link:hover { border-color: var(--gold); color: var(--gold); }
.game-social-link i { font-size: 14px; }

/* ════════════════════════════════════════
   FAQ SECTION
   ════════════════════════════════════════ */
.faq-section { margin-bottom: 4rem; }

.faq-grid { display: grid; gap: 0.75rem; }

.faq-item {
  background: var(--paper-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--gold-light); }

.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem;
  cursor: pointer; gap: 1rem;
  font-size: 14px; font-weight: 500; color: var(--white);
  user-select: none;
}
.faq-question:hover { color: var(--gold); }

.faq-chevron {
  font-size: 16px; color: var(--ink-3);
  transition: transform 0.3s ease; flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--gold); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  font-size: 13px; line-height: 1.75;
  color: var(--ink-2); font-weight: 300;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.25rem 1.25rem; }

/* ════════════════════════════════════════
   ABOUT / DONATE SECTION
   ════════════════════════════════════════ */
.about-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.about-card, .donate-card {
  background: var(--paper-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 2rem;
}

.about-card-label {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 500; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.about-card-label::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--gold);
}

.about-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 500;
  color: var(--white); line-height: 1.2;
  margin-bottom: 1rem;
}

.about-card-body {
  font-size: 13px; line-height: 1.8;
  color: var(--ink-2); font-weight: 300;
}

.about-team {
  display: flex; gap: 0.75rem;
  margin-top: 1.25rem; flex-wrap: wrap;
}

.about-team-member {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px; padding: 6px 14px 6px 6px;
}
.about-team-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--gold); overflow: hidden; flex-shrink: 0;
}
.about-team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about-team-name { font-size: 12px; font-weight: 500; color: var(--white); }
.about-team-role { font-size: 10px; color: var(--ink-3); }

.donate-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500;
  color: var(--white); margin-bottom: 0.75rem;
}
.donate-body {
  font-size: 13px; line-height: 1.75;
  color: var(--ink-2); font-weight: 300;
  margin-bottom: 1.5rem;
}
.donate-options { display: grid; gap: 0.65rem; }

.donate-btn {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 10px 14px;
  border-radius: var(--radius); font-size: 12px;
  font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  transition: background-color 0.2s, color 0.2s; text-decoration: none;
  border: 1px solid transparent;
}
.donate-btn-patreon {
  background: rgba(249,104,84,0.1);
  border-color: rgba(249,104,84,0.3);
  color: #f96854;
}
.donate-btn-patreon:hover { background: #f96854; color: var(--white); }
.donate-btn-kofi {
  background: rgba(41,171,224,0.1);
  border-color: rgba(41,171,224,0.3);
  color: #29abe0;
}
.donate-btn-kofi:hover { background: #29abe0; color: var(--white); }
.donate-btn-paypal {
  background: rgba(0,112,186,0.1);
  border-color: rgba(0,112,186,0.3);
  color: #0070ba;
}
.donate-btn-paypal:hover { background: #0070ba; color: var(--white); }

.donate-btn-lg {
  justify-content: center;
  padding: 15px 20px;
  font-size: 14px;
  gap: 0.7rem;
}
.donate-btn-lg i { font-size: 18px; }

@media (max-width: 860px) {
  .about-section { grid-template-columns: 1fr; }
}

/* ════════════════════════════════
   WAITING ROOM
   ════════════════════════════════ */
.wq-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wq-box {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  animation: fadeUp 0.45s ease both;
}

.wq-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.wq-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(198,63,99,0.1);
  border: 1px solid rgba(198,63,99,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wq-clock {
  font-size: 36px;
  color: var(--crimson);
  animation: wqPulse 2s ease-in-out infinite;
}

@keyframes wqPulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.6; transform: scale(0.92); }
}

.wq-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.wq-sub {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.wq-sub strong { color: var(--white); }

.wq-position-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  margin-bottom: 1.25rem;
}

.wq-position-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.wq-position-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--crimson);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.wq-queued {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
}

.wq-eta {
  font-size: 12px;
  color: var(--ink-2);
}

.wq-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.wq-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--crimson), #e05585);
  border-radius: 999px;
  transition: width 0.8s ease;
  box-shadow: 0 0 6px rgba(198,63,99,0.5);
}

.wq-status {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.wq-spin { animation: spin 1s linear infinite; }

@keyframes spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

.wq-note {
  font-size: 11px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ════════════════════════════════════════
   DOWNLOAD PLATFORM CARDS
   ════════════════════════════════════════ */
.dl-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .dl-platform-grid { grid-template-columns: 1fr; }
}

.dl-platform-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.dl-platform-card:not(.dl-unavailable):hover {
  background: rgba(198,63,99,0.04);
  border-color: rgba(198,63,99,0.35);
}

.dl-platform-card.dl-unavailable {
  opacity: 0.38;
}

.dl-platform-ico {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

/* PC builds compatible with Windows + Linux show both icons side by side */
.dl-platform-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl-unavailable .dl-platform-ico {
  color: var(--ink-3);
}

.dl-platform-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.dl-platform-meta {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.dl-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: var(--radius);
}

.dl-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

/* ════════════════════════════════════════
   GAME INFO STRIP (reemplaza al sidebar)
   ════════════════════════════════════════ */
.game-info-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.gis-pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 80px;
}

.gis-price-note {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.gis-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.gis-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.gis-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gis-stat-icon {
  font-size: 18px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.gis-stat-label {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gis-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

.gis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.gis-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.gis-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  white-space: nowrap;
}
.gis-follow.following {
  color: var(--gold);
  border-color: rgba(198,63,99,0.45);
  background: rgba(198,63,99,0.08);
}

.gis-rate-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.gis-rate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

#ratingLoginMsg {
  font-size: 11px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

#ratingLoginMsg a {
  color: var(--gold);
  text-decoration: underline;
}

.game-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .game-info-strip { flex-wrap: wrap; }
  .gis-actions { margin-left: 0; }
  .gis-sep { display: none; }
}

/* ── BADGES ── */
.pf-badge {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(198,63,99,0.12); color: var(--gold);
  border: 1px solid rgba(198,63,99,0.2); letter-spacing: 0.04em;
  flex-shrink: 0; display: inline-block;
}
.pf-badge-owner {
  background: linear-gradient(90deg, #ff9500, #ffe033, #ff9500);
  background-size: 200% 100%;
  color: #1a0900; border-color: transparent; font-weight: 700;
  animation: ownerShimmer 2.2s ease-in-out infinite;
}
@keyframes ownerShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── GENERIC CONFIRM MODAL ── */
.pf-confirm-overlay {
  display: none; position: fixed; inset: 0; z-index: 11000;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.pf-confirm-overlay.open { display: flex; }
.pf-confirm-modal {
  background: #1a1826; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 2rem 1.75rem;
  max-width: 400px; width: 90%;
  animation: pfFadeUp 0.2s ease both;
}
@keyframes pfFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pf-confirm-icon  { font-size: 32px; color: #ff6b6b; margin-bottom: 1rem; }
.pf-confirm-title { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.pf-confirm-body  { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 1.5rem; }
.pf-confirm-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }
.pf-confirm-cancel {
  padding: 8px 18px; font-size: 13px; cursor: pointer; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65); transition: background 0.15s;
}
.pf-confirm-cancel:hover { background: rgba(255,255,255,0.1); color: #fff; }
.pf-confirm-delete {
  padding: 8px 18px; font-size: 13px; cursor: pointer; border-radius: 6px;
  border: 1px solid rgba(255,107,107,0.3); background: rgba(255,107,107,0.1);
  color: #ff6b6b; font-weight: 500; transition: background 0.15s;
}
.pf-confirm-delete:hover { background: rgba(255,107,107,0.2); }

/* ── GAME COMMENT REACTIONS & REPLIES ── */
@keyframes heartPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.55); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.comment-reactions {
  display: flex; gap: 0.1rem; margin-top: 0.6rem; margin-left: -8px;
}
.comment-like-btn, .gc-reply-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: none; cursor: pointer;
  color: var(--ink-3); font-size: 12.5px;
  padding: 5px 9px; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.comment-like-btn:hover, .gc-reply-toggle:hover {
  background: rgba(191,50,85,0.1); color: #bf3255;
}
.comment-like-btn.liked { color: #bf3255; }
.comment-like-btn i, .gc-reply-toggle i { font-size: 15px; }
.comment-like-btn.liking i { animation: heartPop 0.35s cubic-bezier(0.36,0.07,0.19,0.97); }

.gc-replies {
  margin-top: 0.6rem; padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.gc-reply-item {
  display: flex; gap: 0.55rem; margin-bottom: 0.6rem; align-items: flex-start;
}
.gc-reply-content { flex: 1; min-width: 0; }
.gc-reply-meta {
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.15rem;
}
.gc-reply-user { font-size: 12px; font-weight: 600; color: var(--white); text-decoration: none; }
.gc-reply-user:hover { color: var(--gold); text-decoration: underline; }
.gc-reply-date { font-size: 10px; color: var(--ink-3); }
.gc-reply-body { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.gc-show-more {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: none; cursor: pointer;
  color: var(--ink-3); font-size: 11px; padding: 3px 6px; border-radius: 999px;
  margin-bottom: 0.5rem;
}
.gc-show-more:hover { color: var(--ink-2); }
.gc-reply-form {
  display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.5rem;
}
.gc-reply-input {
  flex: 1; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  color: var(--white); font-size: 12.5px; padding: 7px 10px;
  resize: none; min-height: 34px; overflow: hidden; font-family: inherit;
  scrollbar-width: none;
}
.gc-reply-input::-webkit-scrollbar { display: none; }
.gc-reply-input:focus { outline: none; border-color: rgba(191,50,85,0.4); }
.gc-reply-input::placeholder { color: var(--ink-3); }

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0e0d18;
}
::-webkit-scrollbar-thumb {
  background: #2e2a3d;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bf3255;
}
::-webkit-scrollbar-corner {
  background: #0e0d18;
}
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #2e2a3d #0e0d18;
}

/* ══════════════════════════════════════════════════════════
   GAME EDITOR  (owner-only inline editor)
══════════════════════════════════════════════════════════ */

/* Edit-game trigger button (near page title) */
.ge-edit-page-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--gold);
  color: #0b0b12;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(198,63,99,0.45);
  transition: transform 0.18s, box-shadow 0.18s;
}
.ge-edit-page-btn i { font-size: 18px; }
.ge-edit-page-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(198,63,99,0.6);
}

/* Slide-in side panel overlay */
/* ── BADGE PICKER ── */
.ge-badge-picker { position: relative; }
.ge-badge-display {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; cursor: pointer; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; transition: border-color 0.15s; user-select: none;
}
.ge-badge-display:hover { border-color: rgba(255,255,255,0.25); }
.ge-badge-dd {
  display: none; flex-wrap: wrap; gap: 6px;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #1a1826; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px; z-index: 200;
  min-width: 280px; box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}
.ge-badge-dd.open { display: flex; }
.ge-badge-opt {
  border: 1px solid; border-radius: 20px; padding: 4px 11px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.ge-badge-opt:hover { opacity: 0.8; }
.ge-badge-opt-sel { box-shadow: 0 0 0 2px currentColor inset; }

/* ── MULTI-SELECT ── */
.ge-multisel { position: relative; }
.ge-ms-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  padding: 5px 8px; min-height: 38px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; transition: border-color 0.15s;
}
.ge-ms-chips:hover { border-color: rgba(255,255,255,0.25); }
.ge-ms-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(198,63,99,0.18); color: var(--white);
  border: 1px solid rgba(198,63,99,0.3); border-radius: 20px;
  padding: 2px 9px; font-size: 12px; pointer-events: none;
}
.ge-ms-chip button {
  pointer-events: all; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.45); padding: 0; line-height: 1;
  display: flex; align-items: center; font-size: 10px;
}
.ge-ms-chip button:hover { color: #ff6b6b; }
.ge-ms-add-btn {
  display: inline-flex; align-items: center; gap: 3px;
  color: rgba(255,255,255,0.35); font-size: 12px;
  border: 1px dashed rgba(255,255,255,0.18); border-radius: 20px;
  padding: 2px 9px; transition: color 0.15s, border-color 0.15s;
  pointer-events: none;
}
.ge-ms-chips:hover .ge-ms-add-btn { color: var(--gold); border-color: var(--gold); }
.ge-ms-dd {
  display: none; flex-wrap: wrap; gap: 6px;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #1a1826; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px; z-index: 200; width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}
.ge-ms-dd.open { display: flex; }
.ge-ms-opt {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 4px 11px; font-size: 12px;
  cursor: pointer; color: var(--white); font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.ge-ms-opt:hover { background: rgba(255,255,255,0.09); }
.ge-ms-opt.selected { background: rgba(198,63,99,0.18); border-color: rgba(198,63,99,0.35); }
.ge-ms-opt.selected i { color: #3ecf8e; }

/* ── PRICE PICKER ── */
.ge-price-picker { display: flex; flex-direction: column; gap: 10px; }
.ge-price-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.ge-price-opt {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid transparent; border-radius: 22px;
  padding: 6px 14px; font-size: 13px; font-family: inherit;
  cursor: pointer; font-weight: 600; transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.ge-price-opt:hover { transform: translateY(-1px); filter: brightness(1.1); }
.ge-price-opt-sel { box-shadow: 0 0 0 2px currentColor; }
.ge-price-opt i { font-size: 14px; }
#ge-price-amount-row { display: flex; flex-direction: column; gap: 4px; }
#ge-price-amount-row label { font-size: 11px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; }
/* ── CHANGELOG ENTRY MODAL ── */
.ge-cl-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85); z-index: 10500;
  align-items: center; justify-content: center; padding: 20px;
}
.ge-cl-modal-overlay.open { display: flex; animation: ageFadeIn 0.22s ease both; }
.ge-cl-modal-overlay.open .ge-cl-modal { animation: ageSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }

.ge-cl-modal {
  background: #1a1826;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  width: 100%; max-width: 680px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}

.ge-cl-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ge-cl-modal-title { font-size: 14px; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 8px; }
.ge-cl-modal-title i { color: var(--gold); }

.ge-cl-modal-meta {
  display: flex; gap: 10px; padding: 14px 20px 0;
  flex-shrink: 0;
}
.ge-cl-modal-meta .ge-input { flex: 1; }
.ge-cl-date-auto {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  align-self: center;
  padding: 0 2px;
  pointer-events: none;
  user-select: none;
}

/* Read-only auto-managed dates in the game editor */
.ge-date-ro {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12.5px;
  cursor: default;
  user-select: none;
}

.ge-cl-modal-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 20px 0;
  flex-shrink: 0;
}
.ge-cl-tb-group { display: flex; gap: 3px; }
.ge-cl-tb-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.ge-cl-align-group .ge-rich-btn.active {
  background: rgba(198,168,75,0.2); border-color: rgba(198,168,75,0.4); color: var(--gold);
}

.ge-cl-modal-editor {
  flex: 1; overflow-y: auto;
  margin: 10px 20px 0;
  padding: 12px 14px;
  min-height: 220px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--white); font-size: 14px; line-height: 1.65;
  outline: none;
}
.ge-cl-modal-editor:focus { border-color: rgba(198,168,75,0.35); }
.ge-cl-modal-editor p,
.ge-cl-modal-editor div { margin: 0 0 8px; }
.ge-cl-modal-editor h2  { font-size: 16px; font-weight: 700; margin: 12px 0 6px; color: var(--white); }
.ge-cl-modal-editor h3  { font-size: 14px; font-weight: 600; margin: 10px 0 4px; color: rgba(255,255,255,0.8); }
.ge-cl-modal-editor ul  { padding-left: 1.4em; margin: 6px 0; }
.ge-cl-modal-editor li  { margin: 3px 0; }

.ge-cl-modal-editor blockquote,
.changelog-content blockquote {
  margin: 10px 0;
  padding: 6px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.04);
  border-radius: 0 6px 6px 0;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}
.ge-cl-modal-editor hr,
.changelog-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin: 14px 0;
}

/* Inline images in changelog editor & published view */
.ge-cl-img        { display: block; height: auto; border-radius: 6px; cursor: pointer; transition: outline 0.1s; max-width: 60%; margin: 10px auto; }
.ge-cl-img-left   { margin: 10px auto 10px 0; }
.ge-cl-img-center { margin: 10px auto; }
.ge-cl-img-right  { margin: 10px 0 10px auto; }
.ge-cl-img-sel    { outline: 2px solid var(--gold); outline-offset: 2px; }

.ge-cl-modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ge-cl-modal-save { padding: 9px 20px; font-size: 13px; }

/* Compact changelog row in the editor sidebar */
.ge-changelog-entry {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; padding: 10px 12px;
  margin-bottom: 8px;
}
.ge-cl-row-header { display: flex; align-items: center; gap: 10px; }
.ge-cl-row-meta   { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.ge-cl-row-ver    { font-size: 13px; font-weight: 700; color: var(--white); white-space: nowrap; }
.ge-cl-row-date   { font-size: 12px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.ge-cl-row-btns   { display: flex; gap: 4px; flex-shrink: 0; }
.ge-cl-row-preview {
  font-size: 11px; color: rgba(255,255,255,0.35);
  margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ge-cl-empty { font-style: italic; opacity: 0.4; }

/* ── EDITOR TOGGLE ROW ── */
.ge-toggle-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); transition: background 0.15s;
}
.ge-toggle-row:hover { background: rgba(255,255,255,0.06); }
.ge-toggle-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; }
.ge-toggle-label { font-size: 13px; font-weight: 600; color: var(--white); pointer-events: none; }

/* ── PREMIUM PLATFORM CHECKBOXES ── */
.ge-pp-checks { display: flex; gap: 14px; flex-wrap: wrap; padding: 4px 0; }
.ge-pp-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.7); cursor: pointer;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
  transition: border-color 0.15s, background 0.15s;
}
.ge-pp-check:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.07); }
.ge-pp-check input[type="checkbox"] { accent-color: var(--gold); cursor: pointer; }

.ge-price-note-display {
  font-size: 12px; color: rgba(255,255,255,0.40); font-style: italic;
  padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07); user-select: none;
}

/* ── DRAFT PREVIEW BANNER ── */
.ge-draft-banner {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9100;
  background: #1a1826;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  transition: bottom 0.35s cubic-bezier(0.34,1.4,0.64,1);
  white-space: nowrap;
  font-size: 13px;
}
.ge-draft-banner.show { bottom: 24px; }
.ge-draft-badge {
  display: flex; align-items: center; gap: 5px;
  background: rgba(198,63,99,0.15);
  color: var(--gold);
  border: 1px solid rgba(198,63,99,0.25);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ge-draft-msg { color: rgba(255,255,255,0.45); font-size: 12px; }
.ge-draft-actions { display: flex; gap: 6px; margin-left: 8px; }
.ge-draft-btn {
  border: none; border-radius: 7px; padding: 6px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: opacity 0.15s;
}
.ge-draft-btn:hover { opacity: 0.8; }
.ge-draft-btn-edit    { background: rgba(255,255,255,0.08); color: var(--white); }
.ge-draft-btn-discard { background: rgba(255,80,80,0.12);  color: #ff6b6b; }
.ge-draft-btn-save    { background: var(--gold);           color: #0b0b12;  }

.ge-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.ge-overlay.open { opacity: 1; pointer-events: all; }

.ge-modal {
  width: min(700px, 100vw);
  background: #16162a;
  border-left: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(50px);
  transition: transform 0.25s cubic-bezier(.22,.68,0,1.2);
  overflow: hidden;
  height: 100%;
}
.ge-overlay.open .ge-modal { transform: translateX(0); }

/* Sticky header */
.ge-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #0d0d1c;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ge-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 7px;
}
.ge-modal-btns { display: flex; gap: 7px; flex-wrap: wrap; }

.ge-btn-cancel {
  padding: 7px 13px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.ge-btn-cancel:hover { border-color: var(--muted); color: var(--white); }

.ge-btn-save {
  padding: 7px 14px;
  background: var(--gold);
  border: none;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.18s;
}
.ge-btn-save:hover { opacity: 0.85; }

.ge-btn-reset {
  padding: 7px 13px;
  background: transparent;
  border: 1px solid rgba(255,80,80,0.3);
  color: rgba(255,80,80,0.65);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.ge-btn-reset:hover { background: rgba(255,80,80,0.1); color: #ff5050; border-color: #ff5050; }

/* Scrollable body */
.ge-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: #13131f;
}

/* Section blocks */
.ge-section { margin-bottom: 2.25rem; }
.ge-section-hint {
  font-size: 11px; color: rgba(255,255,255,0.35); margin-top: -0.5rem; margin-bottom: 0.9rem; line-height: 1.5;
}
.ge-section-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Fields */
.ge-field-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0.8rem;
}
.ge-field-row label {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ge-field-split {
  flex-direction: row !important;
  gap: 0.75rem;
}
.ge-field-split > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ge-input {
  background: #1e1e32;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.18s;
}
.ge-input:focus { border-color: rgba(198,63,99,0.55); }
.ge-input[type="number"] { max-width: 130px; }

.ge-textarea {
  background: #1e1e32;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.55;
  resize: vertical;
  min-height: 80px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.18s;
}
.ge-textarea:focus { border-color: rgba(198,63,99,0.55); }

/* Dynamic rows (description / slides) */
.ge-dyn-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.ge-dyn-row .ge-textarea,
.ge-dyn-row .ge-input { flex: 1; }

/* Tag rows */
.ge-tag-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.ge-tag-row .ge-input { flex: 1; }

/* Remove / Add buttons */
.ge-remove-btn {
  background: #1e1e32;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 5px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 13px;
  transition: background 0.18s, color 0.18s;
}
.ge-remove-btn:hover {
  background: rgba(198,63,99,0.2);
  color: #ff6b6b;
  border-color: rgba(198,63,99,0.35);
}

.ge-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #1a1a2c;
  border: 1px dashed var(--border);
  color: var(--muted);
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.ge-add-btn:hover {
  background: rgba(198,63,99,0.08);
  color: var(--gold);
  border-color: var(--gold);
}

/* Download platform blocks */
/* ── BUILD UPLOADS (game editor) ──
   Two boxes per platform, one per tier. The supporter one is tinted so the
   difference is visible without reading: dropping a supporter build into the
   public bucket is the one mistake here that cannot be taken back. */
.ge-upload {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.02);
}

.ge-upload[data-tier="early"] {
  border-color: rgba(198,168,75,0.3);
  background: rgba(198,168,75,0.05);
}

.ge-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ge-upload-label { font-size: 12.5px; color: var(--white); font-weight: 600; }
.ge-upload-label i { margin-right: 5px; opacity: 0.7; }
.ge-upload-label em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 1px;
}

.ge-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.ge-upload-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); }

.ge-upload-files { margin-top: 0.55rem; display: flex; flex-direction: column; gap: 4px; }

.ge-upload-empty { font-size: 11.5px; color: var(--ink-3); }

.ge-upload-file {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
}

/* The download endpoint serves the newest upload. Saying which one that is
   beats leaving it to be worked out from a list of dates. */
.ge-upload-file.current { color: var(--white); background: rgba(62,207,142,0.08); }

.ge-upload-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ge-upload-size { color: var(--ink-3); flex-shrink: 0; }

.ge-upload-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 20px;
  background: rgba(62,207,142,0.15);
  color: #3ecf8e;
  flex-shrink: 0;
}

.ge-upload-progress { display: flex; align-items: center; gap: 8px; margin-top: 0.55rem; }

.ge-upload-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.ge-upload-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.2s;
}

.ge-upload-pct { font-size: 11px; color: var(--ink-3); white-space: nowrap; }

.ge-dl-platform {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.ge-dl-platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #1a1a2c;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.ge-dl-fields {
  padding: 0.875rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ge-field-inline {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}
.ge-field-inline > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ge-field-inline > div label { font-size: 11.5px; color: var(--muted); }

/* Toggle checkbox */
.ge-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 400;
  user-select: none;
}
.ge-toggle input[type="checkbox"] { accent-color: var(--gold); cursor: pointer; width: 14px; height: 14px; }

/* Download card — link pending / coming soon */
.dl-platform-card.dl-soon { opacity: 0.65; }
.dl-btn-soon { opacity: 0.6; cursor: default !important; font-size: 12px; }

/* ── DOWNLOAD TIERS (premium / free split) ── */
.dl-tier {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

.dl-tier-premium {
  border-color: rgba(198, 168, 75, 0.35);
  background: linear-gradient(135deg, rgba(198,168,75,0.07) 0%, rgba(198,168,75,0.02) 100%);
}

.dl-tier-free {
  background: rgba(255,255,255,0.02);
}

.dl-tier-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dl-tier-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dl-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

.dl-badge-premium {
  background: rgba(198,168,75,0.18);
  border: 1px solid rgba(198,168,75,0.45);
  color: var(--gold);
}

.dl-badge-premium i { font-size: 12px; }

.dl-badge-free {
  background: rgba(62,207,142,0.14);
  border: 1px solid rgba(62,207,142,0.35);
  color: #3ecf8e;
}

.dl-tier-version {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

.dl-tier-content {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
}

.dl-patreon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f96854 0%, #e05a45 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: filter 0.2s, transform 0.15s;
  border: none;
}

.dl-patreon-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #fff;
}

.dl-patreon-btn i { font-size: 18px; }
.dl-patreon-arrow { margin-left: auto; opacity: 0.75; font-size: 16px !important; }

/* SubscribeStar sits beside Patreon as a second way in — same shape, its own
   colour, so neither reads as the "real" button. */
.dl-substar-btn {
  background: linear-gradient(135deg, #009cdd 0%, #007cb0 100%);
}

/* ── PREMIUM TIER ACCESS STATES ──
   Which of these shows is decided by Store.entitlements.canDownload(). */
.dl-tier-locked,
.dl-tier-unlocked {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
}

.dl-tier-locked {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.5);
}

.dl-tier-locked a { color: var(--gold); }

.dl-tier-unlocked {
  background: rgba(62,207,142,0.1);
  border: 1px solid rgba(62,207,142,0.3);
  color: #3ecf8e;
  font-weight: 600;
}

.dl-tier-unlocked-state { border-color: rgba(62,207,142,0.35); }

/* The in-page purchase. Only rendered when the game sets premiumPrice. */
.dl-buy-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: filter 0.2s, transform 0.15s;
}

.dl-buy-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.dl-buy-btn i { font-size: 18px; }
.dl-buy-note {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

/* ── PREMIUM PLATFORM CHIPS (displayed in tier card) ── */
.dl-premium-platforms { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 0.4rem; }
.dl-premium-plat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(198,168,75,0.12); border: 1px solid rgba(198,168,75,0.25);
  color: var(--gold);
}

.dl-changelog-section { margin-top: 0.5rem; }
.dl-changelog-toggle {
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  color: rgba(255,255,255,0.45) !important;
  background: transparent !important;
}
.dl-changelog-toggle:hover { color: rgba(255,255,255,0.7) !important; background: rgba(255,255,255,0.04) !important; }
.dl-changelog-toggle.open  { color: rgba(255,255,255,0.7) !important; }

/* Community — empty state */
.social-empty {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Upload-from-PC button inside slide rows */
.ge-upload-btn {
  background: #1e1e32;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 5px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 13px;
  transition: background 0.18s, color 0.18s;
}
.ge-upload-btn:hover {
  background: rgba(94,150,255,0.15);
  color: #5e96ff;
  border-color: rgba(94,150,255,0.35);
}

/* Slide preview thumbnail */
.ge-slide-preview {
  width: 88px;
  height: 52px;
  border-radius: 5px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #111;
}

/* Store-card thumbnail helper + live card preview */
.ge-thumb-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}
.ge-thumb-hint i { color: #5e96ff; vertical-align: -1px; margin-right: 3px; }
.ge-thumb-hint strong { color: var(--white); }
/* The card thumbnail keeps its true 5:4 shape in the little swatch too */
#ge-thumb-preview { background-size: contain; background-repeat: no-repeat; }

.ge-preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  margin-top: 10px;
  background: #1a1a2c;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.ge-preview-toggle:hover { background: rgba(198,63,99,0.08); color: var(--gold); border-color: var(--gold); }
.ge-preview-chev { margin-left: auto; transition: transform 0.25s var(--ease-out); }
.ge-preview-toggle.open .ge-preview-chev { transform: rotate(180deg); }

.ge-card-preview-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease-out);
}
.ge-card-preview-wrap.open { max-height: 640px; }
.ge-card-preview-inner {
  display: flex;
  justify-content: center;
  padding: 1rem 0 0.4rem;
}
/* Constrain the preview to the real store-card width and disable navigation */
.ge-preview-card {
  width: 240px;
  max-width: 100%;
  pointer-events: none;
}

/* Success toast */
.ge-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #152a1e;
  border: 1px solid rgba(62,207,142,0.35);
  color: #3ecf8e;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.ge-toast.show { opacity: 1; transform: translateY(0); }
.ge-toast-error {
  background: #2a1518;
  border-color: rgba(224,90,90,0.4);
  color: #e05a5a;
  z-index: 11500;
}

/* Extra link rows (downloads + community) */
.ge-extra-row {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
}
.ge-extra-row .ge-input { flex: 1; min-width: 0; }
.ge-extra-row .ge-input.ge-extra-label { max-width: 130px; flex: 0 0 130px; }

/* Auto-detected icon preview */
.ge-icon-preview {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #1e1e32;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s;
}

@media (max-width: 640px) {
  .ge-field-split { flex-direction: column !important; }
  .ge-field-inline { flex-direction: column; }
  .ge-modal-header { gap: 0.5rem; }
  .ge-extra-row .ge-input.ge-extra-label { max-width: 100%; flex: 1; }
}

/* ════════════════════════════════════════
   GAME STATUS BADGE (meta row)
   ════════════════════════════════════════ */
.game-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid;
}

.game-status-active    { background: rgba(62,207,142,0.12);  color: #3ecf8e; border-color: rgba(62,207,142,0.3);  }
.game-status-pause     { background: rgba(255,190,60,0.12);  color: #ffbe3c; border-color: rgba(255,190,60,0.3);  }
.game-status-complete  { background: rgba(94,150,255,0.12);  color: #5e96ff; border-color: rgba(94,150,255,0.3);  }
.game-status-cancelled { background: rgba(255,107,107,0.12); color: #ff6b6b; border-color: rgba(255,107,107,0.3); }
.game-status-default   { background: rgba(255,255,255,0.06); color: var(--ink-2); border-color: rgba(255,255,255,0.1); }

/* ════════════════════════════════════════
   CHANGELOG  (expandable)
   ════════════════════════════════════════ */
.changelog-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  text-align: left;
}
.changelog-toggle-btn:hover {
  background: rgba(198,63,99,0.05);
  border-color: rgba(198,63,99,0.25);
  color: var(--white);
}
.changelog-toggle-btn.open {
  background: rgba(198,63,99,0.06);
  border-color: rgba(198,63,99,0.3);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.changelog-toggle-btn i:last-child {
  margin-left: auto;
  transition: transform 0.22s;
}

.changelog-entries {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-6px);
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              transform 0.3s ease;
}
.changelog-entries.open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
}
.changelog-entries-inner {
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.changelog-entry {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.changelog-entry:last-child { border-bottom: none; }

.changelog-entry-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.changelog-entry-header:hover { background: rgba(255,255,255,0.03); }

.changelog-entry-chev {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 14px;
  transition: transform 0.22s;
}
.changelog-entry-header.open .changelog-entry-chev { transform: rotate(180deg); }

.changelog-content-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease;
}
.changelog-content-wrap.open { grid-template-rows: 1fr; opacity: 1; }
.changelog-content-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 1.25rem;
}
.changelog-content-wrap.open .changelog-content-inner { padding-bottom: 1.1rem; }

.changelog-version {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(198,63,99,0.1);
  border: 1px solid rgba(198,63,99,0.22);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.changelog-date {
  font-size: 11px;
  color: var(--ink-3);
}

.changelog-content {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
.changelog-content h2 { font-size: 15px; font-weight: 600; color: var(--white); margin: 0.75rem 0 0.35rem; }
.changelog-content h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0.5rem 0 0.25rem; }
.changelog-content ul { padding-left: 1.25rem; margin: 0.35rem 0; }
.changelog-content li { margin-bottom: 0.2rem; }
.changelog-content p  { margin: 0.35rem 0; }
.changelog-content b, .changelog-content strong { color: var(--white); }
.changelog-content i, .changelog-content em     { color: var(--ink-2); }
.changelog-content .ge-cl-img { cursor: zoom-in; }

/* ── IMAGE LIGHTBOX ── */
.pw-lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 12000;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 28px;
  cursor: zoom-out;
}
.pw-lightbox.open { display: flex; animation: ageFadeIn 0.2s ease both; }
.pw-lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  animation: ageSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pw-lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}
.pw-lightbox-close:hover { background: rgba(255,255,255,0.18); }

/* ── EDITOR: Changelog rich text sections ── */
.ge-changelog-entry {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ge-changelog-entry-header {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: #1a1a2c;
  border-bottom: 1px solid var(--border);
}

.ge-rich-toolbar {
  display: flex;
  gap: 4px;
  padding: 5px 8px;
  background: #161626;
  border-bottom: 1px solid var(--border);
}

.ge-rich-btn {
  background: #1e1e32;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}
.ge-rich-btn:hover {
  background: rgba(198,63,99,0.15);
  color: var(--gold);
  border-color: rgba(198,63,99,0.4);
}

.ge-rich-editor {
  background: #1e1e32;
  color: var(--white);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.6;
  padding: 10px 12px;
  min-height: 80px;
  outline: none;
}
.ge-rich-editor:focus { background: #21213a; }
.ge-rich-editor:empty::before {
  content: attr(placeholder);
  color: var(--ink-3);
  pointer-events: none;
}
.ge-rich-editor h2 { font-size: 14px; font-weight: 700; color: var(--white); margin: 0.5rem 0 0.2rem; }
.ge-rich-editor h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0.4rem 0 0.15rem; }
.ge-rich-editor ul { padding-left: 1.2rem; margin: 0.3rem 0; }
.ge-rich-editor li { margin-bottom: 0.15rem; }
.ge-rich-editor p  { margin: 0.25rem 0; }

/* ════════════════════════════════════════
   DOWNLOAD MODAL
   ════════════════════════════════════════ */
.dlm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.dlm-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.dlm-box {
  background: #14141f;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  width: min(460px, 100%);
  padding: 2rem 1.75rem;
  position: relative;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 0.68, 0, 1.2);
  text-align: center;
}
.dlm-overlay.open .dlm-box {
  transform: translateY(0) scale(1);
}

/* Close button (top-right, guest only) */
.dlm-close-btn {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink-3);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, color 0.18s;
}
.dlm-close-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Success icon */
.dlm-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.1);
  border: 1px solid rgba(62, 207, 142, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 26px;
  color: #3ecf8e;
}

.dlm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.dlm-sub {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.dlm-sub strong { color: var(--ink-2); }

/* Divider */
.dlm-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 1.1rem 0;
}

/* Incentive section */
.dlm-incentive-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.3rem;
}
.dlm-incentive-title i { color: var(--gold); }

.dlm-incentive-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
}

.dlm-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  text-align: left;
}

.dlm-benefit {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 7px 10px;
}
.dlm-benefit i { color: var(--gold); font-size: 14px; flex-shrink: 0; }

/* Action buttons */
.dlm-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dlm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.18s;
}
.dlm-btn-primary:hover { opacity: 0.85; }

.dlm-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.dlm-btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }

@media (max-width: 400px) {
  .dlm-benefits { grid-template-columns: 1fr; }
  .dlm-actions  { flex-direction: column; }
  .dlm-btn-primary, .dlm-btn-ghost { width: 100%; justify-content: center; }

  /* Narrowest phones: the logo does not wrap (white-space: nowrap), so the
     row has to give elsewhere or it overflows. Tighten everything in the bar. */
  nav { gap: 0.5rem; }
  .logo { font-size: 16px; }
  .nav-right { gap: 0.3rem; }
  .nav-right .btn-ghost,
  .nav-right .btn-solid { padding: 6px 9px; font-size: 10px; }
}

/* Below ~340px (old iPhone SE and similar) tightening is not enough: let the
   logo wrap so the bar can never push the row wider than the screen. */
@media (max-width: 345px) {
  .logo { white-space: normal; line-height: 1.15; font-size: 15px; }
  nav { gap: 0.4rem; }
  .nav-right .btn-ghost,
  .nav-right .btn-solid { padding: 6px 7px; font-size: 9px; letter-spacing: 0.02em; }
}

/* ── Toggle controls converted from <div onclick> to <button> (a11y) ──
   Reset native button chrome so they keep their original look. .dev-card
   already defines its own background/border, so we must NOT reset those here. */
.faq-question,
.dev-card,
.pf-avatar-edit-btn {
  width: 100%;
  text-align: inherit;
  font-family: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
}
.pf-avatar-edit-btn {
  width: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.faq-question:focus-visible,
.dev-card:focus-visible,
.pf-avatar-edit-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ── Group 3: honor reduced-motion preference ──
   Near-instant (not 0ms) so state changes still fire transitionend/animationend. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Group 3: keep modal/overlay scrolling from chaining to the page behind ── */
.auth-modal-overlay,
.rating-modal-overlay,
.dlm-overlay,
.ge-overlay,
.ge-cl-modal-overlay,
.pf-confirm-overlay,
.pf-post-modal-overlay,
.pf-lightbox {
  overscroll-behavior: contain;
}

/* ── Group 4: interaction polish (press feedback, hover depth, touch-safe hover) ── */

/* Unified transition for pressable controls: adds transform + box-shadow, strong ease-out. */
.btn-ghost, .btn-solid, .btn-buy, .btn-mini,
.auth-submit, .auth-google, .donate-btn, .game-social-link,
.pw-patreon-btn, .ge-btn-reset, .game-card, .dev-card,
.faq-question, .pf-avatar-edit-btn {
  transition-property: background-color, border-color, color, transform, box-shadow;
  transition-duration: 0.18s;
  transition-timing-function: var(--ease-out);
}

/* Depth on the primary CTAs (they were flat — only changed color on hover). */
.btn-buy:hover   { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(198,63,99,0.55); }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(0,0,0,0.45); }

/* Touch devices fire :hover on tap — disable the lift so cards/buttons don't jump. */
@media (hover: none) {
  .game-card:hover, .pw-other-card:hover,
  .btn-buy:hover, .btn-solid:hover { transform: none; box-shadow: none; }
}

/* Press feedback — subtle scale. Declared last so it wins over hover while pressed. */
.btn-ghost:active, .btn-solid:active, .btn-buy:active, .btn-mini:active,
.auth-submit:active, .auth-google:active, .donate-btn:active, .game-social-link:active,
.pw-patreon-btn:active, .ge-btn-reset:active, .game-card:active,
.dev-card:active, .faq-question:active, .pf-avatar-edit-btn:active {
  transform: scale(0.97);
}

/* ── Group 5: games grid card rating (introduces the secondary amber accent) ── */
.game-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.game-rating .ti {
  color: var(--amber);
  font-size: 13px;
}

/* Hero stat: only the rating star is amber (the download icon stays crimson). */
.fhc-stat i.ti-star-filled {
  color: var(--amber);
}

/* ── Group 5: surface elevation — dark-UI depth via a top light-edge + soft shadow.
   (Plain drop shadows are invisible on near-black, so we add an inset top highlight.) */
.game-card,
.dev-card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 16px -10px rgba(0,0,0,0.7);
}
.game-card:hover,
.dev-card:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 30px -12px rgba(0,0,0,0.8);
}


/* ── EDITOR: LINKS TO SOMEWHERE ELSE ──
   Grouped and set back from the upload boxes above them, because they are the
   fallback and not the main path: a build in our own bucket always wins over
   its link. Reading them as equal options would invite filling in both and
   wondering which one visitors get. */
.ge-links-block {
    margin-top: 0.6rem;
    padding: 0.75rem 0.85rem;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
}
.ge-links-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--ink-2);
    margin-bottom: 0.2rem;
}
.ge-links-title i { font-size: 14px; color: var(--ink-3); }
.ge-links-help {
    font-size: 11px; color: var(--ink-3);
    line-height: 1.45; margin-bottom: 0.6rem;
}
.ge-links-block .ge-field-row { margin-bottom: 0.4rem; }
.ge-links-block .ge-field-row:last-child { margin-bottom: 0; }
