/* Web pública de Droidthink Games: identidad Droidthink (tinta, rojo Droid puntual, tipografías de marca), sin frameworks y sin fuentes externas (la CSP solo permite 'self'). */

@font-face {
    font-family: "Space Grotesk";
    src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
    font-weight: 300 700; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Space Grotesk";
    src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2");
    font-weight: 300 700; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EFF-2070, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Archivo";
    src: url("/fonts/archivo-latin.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Archivo";
    src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EFF-2070, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
    font-weight: 100 800; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
    font-weight: 100 800; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EFF-2070, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: dark;
    --bg: #131112;
    --bg-soft: #1f1e1f;
    --surface: #282729;
    --surface-2: #312f32;
    --well: #181718;
    --border: rgba(255, 255, 255, 0.16);
    --text: #dedad5;
    --muted: #a9a4a0;
    --accent: #fc0c31;
    --accent-hover: #c90a28;
    --warn-bg: #2d1d21;
    --warn-text: #dedad5;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --container: 1180px;
    --header-h: 65px;
    --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Space Grotesk", "Archivo", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.35rem, 1.2vw + 1rem, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 0.9rem; }
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }
.section { padding-block: 3rem; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--accent); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Cabecera: lockup >| + droidthink + > GAMES_ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: calc(var(--header-h) - 1px); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { display: block; width: 32px; height: 28px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1; letter-spacing: -0.025em; }
.brand-kicker { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; }
.main-nav { display: flex; gap: 1.25rem; margin-right: auto; }
.main-nav a { color: var(--muted); font-weight: 600; padding: 0.4rem 0.2rem; }
.main-nav a:hover { color: var(--text); }

/* Botones: rojo Droid solo en la acción principal, con texto blanco */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.65rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: transparent; color: #fff; }
.btn-ghost { background: transparent; }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.account-link { font-size: 0.92rem; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: rgba(19, 17, 18, 0.72); }
.hero-inner { padding-block: clamp(3rem, 8vw, 6.5rem); min-height: clamp(320px, 48vw, 520px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-game .hero-inner { min-height: clamp(360px, 52vw, 560px); }
.hero-title { max-width: 18ch; }
.hero-text { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.hero-logo { max-width: min(420px, 70vw); max-height: 140px; width: auto; height: auto; margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-top: 0.6rem; }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-bottom: 0.8rem; }

.btn-play { min-width: 190px; }
.play-icon { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }

/* Rejilla de juegos */
.section-head { margin-bottom: 1.5rem; }
.section-head p { margin: 0; }
.game-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 520px)); justify-content: start; }
.game-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.game-card:hover, .game-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(255, 255, 255, 0.3); }
.game-card-link { display: flex; align-items: stretch; color: inherit; height: 100%; }
.game-card-link:hover { color: inherit; }
.game-cover { flex: 0 0 150px; width: 150px; aspect-ratio: 2 / 3; align-self: flex-start; background: var(--well); display: grid; place-items: center; overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-cover-empty { font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: #4a474b; }
.game-card-body { padding: 0.85rem 1rem; min-width: 0; flex: 1; display: flex; flex-direction: column; }
.game-card-tags { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.game-card-tag { font-size: 0.72rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--well); color: var(--muted); border: 1px solid var(--border); }
.game-card-price { margin-top: auto; padding-top: 0.7rem; align-self: flex-start; font-size: 0.85rem; font-weight: 700; }
.game-card-title { margin: 0 0 0.3rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.game-card-desc { margin: 0; color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.notice { background: var(--surface); border-radius: var(--radius); padding: 1.25rem 1.5rem; color: var(--muted); }
.notice-warn { background: var(--warn-bg); color: var(--warn-text); }
.notice p { margin: 0.4rem 0 0; }

/* Página de un juego */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.game-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); padding-block: 2.5rem 4rem; }
@media (min-width: 960px) { .game-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.game-section { margin-bottom: 2.5rem; }
/* Visor de tráiler y capturas (estilo Steam) */
.viewer-stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.viewer-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.viewer-video, .viewer-image { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.viewer-video { object-fit: contain; }
.viewer-image { object-fit: contain; }
.viewer.is-enhanced .viewer-image { cursor: zoom-in; }
.viewer-nav, .viewer-full { position: absolute; z-index: 2; display: none; place-items: center; border: 0; color: #fff; background: rgba(19, 17, 18, 0.65); cursor: pointer; font-family: var(--font-display); }
.viewer.is-enhanced .viewer-nav, .viewer.is-enhanced .viewer-full { display: grid; }
.viewer-full[hidden] { display: none; }
.viewer-nav { top: 50%; width: 2.6rem; height: 3.6rem; margin-top: -1.8rem; font-size: 2rem; line-height: 1; }
.viewer-prev { left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.viewer-next { right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.viewer-full { top: 0.6rem; right: 0.6rem; width: 2.4rem; height: 2.4rem; border-radius: var(--radius-sm); font-size: 1.3rem; }
.viewer-nav:hover, .viewer-full:hover { background: var(--accent); }
.viewer-nav:focus-visible, .viewer-full:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.viewer-thumbs { list-style: none; margin: 0.6rem 0 0; padding: 0 0 0.4rem; display: flex; gap: 0.5rem; overflow-x: auto; scroll-behavior: smooth; position: relative; }
.viewer-thumbs li { flex: 0 0 auto; }
.viewer-thumb { position: relative; display: block; width: 160px; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--surface); opacity: 0.75; }
.viewer-thumb:hover, .viewer-thumb.is-active { opacity: 1; }
.viewer-thumb.is-active { border-color: var(--accent); }
.viewer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-play { position: absolute; left: 50%; top: 50%; width: 2.2rem; height: 2.2rem; margin: -1.1rem 0 0 -1.1rem; border-radius: 50%; background: rgba(19, 17, 18, 0.7); }
.thumb-play::after { content: ""; position: absolute; left: 0.85rem; top: 0.6rem; border-left: 0.75rem solid #fff; border-top: 0.5rem solid transparent; border-bottom: 0.5rem solid transparent; }

/* Lightbox a pantalla completa */
.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 3rem 4rem; background: rgba(19, 17, 18, 0.95); }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; color: #fff; background: transparent; cursor: pointer; font-family: var(--font-display); line-height: 1; }
.lightbox-close { top: 0.6rem; right: 1rem; font-size: 2.6rem; }
.lightbox-nav { top: 50%; margin-top: -2rem; font-size: 3.4rem; width: 3.5rem; height: 4rem; }
.lightbox-prev { left: 0.4rem; }
.lightbox-next { right: 0.4rem; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--accent); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lightbox-count { position: absolute; bottom: 0.9rem; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted); }

/* Panel lateral (estilo Steam) */
.game-aside { background: var(--surface); border-radius: var(--radius); padding: 1.4rem; }
.game-aside { align-self: start; }
@media (min-width: 960px) and (min-height: 900px) { .game-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.aside-head { margin-bottom: 1.1rem; }
.aside-banner { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--well); margin-bottom: 0.8rem; }
.aside-hero { width: 100%; height: 100%; object-fit: cover; display: block; }
.aside-logo { position: absolute; left: 0.7rem; bottom: 0.6rem; width: auto; max-width: 55%; height: auto; max-height: 38%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)); }
.aside-name { margin: 0 0 0.3rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.aside-short { margin: 0; color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.buy { display: grid; gap: 0.7rem; background: var(--well); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.2rem; }
.badge-free { justify-self: start; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em; text-transform: uppercase; }
.btn-block { display: flex; width: 100%; justify-content: center; align-items: center; gap: 0.6rem; }
.buy .hint { margin: 0; }
.facts { margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.aside-title { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; margin-top: 1.4rem; text-transform: uppercase; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { background: var(--surface-2); border-radius: 4px; padding: 0.2rem 0.6rem; font-family: var(--font-mono); font-size: 0.8rem; }
.requirements section { margin-bottom: 1rem; }
.requirements h3 { color: var(--text); margin-bottom: 0.3rem; }
.requirements, .requirements * { min-width: 0; overflow-wrap: anywhere; }
.requirements section + section { margin-top: 1rem; }
.req-list { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.93rem; }
.req-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.req-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--muted); }
.req-value { display: block; color: var(--text, inherit); }

@media (max-width: 959.98px) {
    .game-main { display: contents; }
    .game-media { order: 1; margin-bottom: 0; }
    .game-aside { order: 2; }
    .game-about { order: 3; margin-bottom: 0; }
    .lightbox { padding: 3rem 0.5rem; }
    .viewer-thumb { width: 120px; }
}

.prose { color: var(--text); max-width: 75ch; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.6em; }
.prose h1 { font-size: 1.7rem; }
.prose h2 { font-size: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.3rem; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
.prose th { background: var(--surface-2); }
.prose code { font-family: var(--font-mono); background: var(--surface-2); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1rem 0; padding: 0.2rem 1rem; color: var(--muted); }

/* Panel "¿No tienes el launcher?" */
.launcher-panel { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; background: rgba(19, 17, 18, 0.88); }
.launcher-panel-card { background: var(--surface); border-radius: var(--radius); padding: 1.8rem; max-width: 460px; box-shadow: var(--shadow); }
.launcher-panel-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.2rem; }

/* Descargar */
.download-card { background: var(--surface); border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 4vw, 3rem); margin-bottom: 2.5rem; }
.download-meta { display: flex; gap: 1.2rem; color: var(--muted); margin: 1rem 0 0; }
.download-columns { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.7rem; position: relative; margin-bottom: 0.6rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg) translateY(-30%); }
.smartscreen { background: var(--warn-bg); border-radius: var(--radius); padding: 1.2rem 1.4rem; color: var(--warn-text); }

/* Legales y 404 */
.legal-page { max-width: 860px; }
.not-found { text-align: center; padding-block: 6rem; }
.not-found .hero-actions { justify-content: center; }

/* Pie */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: 2rem; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 2rem; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--text); font-weight: 600; }
.footer-contact, .footer-rights { margin: 0; }
.footer-rights { width: 100%; font-size: 0.82rem; }

/* Móvil */
@media (max-width: 640px) {
    .header-inner { gap: 0.8rem; }
    .main-nav { gap: 0.8rem; }
    .brand-kicker { display: none; }
    .account-link { padding-inline: 0.8rem; }
    .hero-shade { background: rgba(19, 17, 18, 0.85); }
    .hero-inner { justify-content: flex-end; }
    .btn-lg { width: 100%; }
    .game-grid { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
    .game-cover { flex-basis: 110px; width: 110px; }
    .game-cover-empty { font-size: 2.5rem; }
    .hero-actions { width: 100%; }
}

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

/* Buscador */
.search { position: relative; display: flex; align-items: center; }
.search-input { font: inherit; color: var(--text); background: var(--well); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.45rem 2.2rem 0.45rem 0.7rem; width: 13rem; }
.search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-button { position: absolute; right: 0.2rem; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0.3rem 0.5rem; font-size: 0.9rem; }
.search-suggest { position: absolute; top: calc(100% + 6px); right: 0; width: 20rem; max-width: 90vw; margin: 0; padding: 0.3rem; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 60; }
.search-suggest a { display: flex; align-items: center; gap: 0.7rem; padding: 0.4rem; border-radius: var(--radius-sm); color: var(--text); }
.search-suggest a:hover, .search-suggest a:focus { background: var(--surface-2); }
.search-suggest img { width: 32px; height: 48px; object-fit: cover; border-radius: 3px; background: var(--well); }
.store-search { display: flex; gap: 0.6rem; margin: 0 0 1.25rem; }
.store-search .search-input { flex: 1; max-width: 32rem; padding: 0.7rem 0.9rem; }

/* Menú de usuario */
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 14rem; display: flex; flex-direction: column; padding: 0.35rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 60; }
.user-menu-panel a, .user-menu-logout { display: block; width: 100%; text-align: left; padding: 0.55rem 0.7rem; color: var(--text); background: none; border: 0; border-radius: var(--radius-sm); font: inherit; cursor: pointer; }
.user-menu-panel a:hover, .user-menu-logout:hover { background: var(--surface-2); color: var(--text); }
.game-card-play { margin: 0 1rem 1rem; }
@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
    .search { order: 5; width: 100%; }
    .search-input { width: 100%; }
}
