/* ==========================================================
   KarmonaZH · negro, blanco y azul del logo · toque urbano sutil
   ========================================================== */
:root {
  --bg: #050505;
  --ink: #ffffff;
  --muted: #a3a8b3;
  --line: rgba(255, 255, 255, 0.16);
  --blue: #0a5cff;
  --blue-text: #5b97ff;
  --live: #ff3b4e;
  --radius: 10px;
  --font-head: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-tag: "Permanent Marker", "Comic Sans MS", cursive;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ============ Fondo: grano, luz azul y tags muy tenues ============ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.grain {
  position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.splat { position: absolute; border-radius: 50%; will-change: transform; }
.s1 { width: 760px; height: 760px; top: -300px; left: -260px; background: radial-gradient(circle, rgba(10, 92, 255, 0.26), rgba(10, 92, 255, 0) 64%); animation: drift1 26s ease-in-out infinite; }
.s2 { width: 640px; height: 640px; bottom: -280px; right: -220px; background: radial-gradient(circle, rgba(10, 92, 255, 0.16), rgba(10, 92, 255, 0) 64%); animation: drift2 30s ease-in-out infinite; }
.tag-bg { position: absolute; font-family: var(--font-tag); font-size: clamp(9rem, 22vw, 19rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.03); user-select: none; }
.g1 { top: 9%; right: -2%; transform: rotate(-11deg); }
.g2 { bottom: 4%; left: -3%; transform: rotate(7deg); -webkit-text-stroke-color: rgba(10, 92, 255, 0.08); }

@keyframes drift1 { 50% { transform: translate(80px, 60px) scale(1.08); } }
@keyframes drift2 { 50% { transform: translate(-70px, -50px) scale(0.94); } }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 8px; border: 1.5px solid #fff;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-sm { padding: 8px 15px; font-size: 0.74rem; }
.btn-main { background: #fff; color: #000; box-shadow: 4px 4px 0 var(--blue); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-white { background: #fff; color: #000; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn:hover { transform: translate(-1px, -2px); }
.btn-main:hover { box-shadow: 6px 6px 0 var(--blue); }
.btn-white:hover { box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55); }
.btn-blue:hover { background: #2a73ff; border-color: #2a73ff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.ico { flex: none; }

/* ============ Banner de directo ============ */
.live-banner { background: var(--blue); font-size: 0.92rem; }
.live-banner a { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px; flex-wrap: wrap; }
.live-banner strong { font-family: var(--font-head); letter-spacing: 0.08em; font-weight: 400; font-size: 1.05rem; }
.live-banner-text { max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-banner-cta { font-weight: 700; }

.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 59, 78, 0.8); animation: ping-red 1.6s infinite; flex: none; }
.nav-live .live-dot, .live-kicker .live-dot { margin-right: 8px; }
@keyframes ping-red { 70% { box-shadow: 0 0 0 9px rgba(255, 59, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0); } }

/* ============ Navegación ============ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 1.45rem; letter-spacing: 0.05em; text-transform: uppercase; }
.brand svg { border-radius: 8px; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu > a:not(.btn) { padding: 8px 14px; font-weight: 600; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.15s; }
.menu > a:not(.btn):hover { color: #fff; }
.menu .btn { margin-left: 10px; }
.nav-live { display: inline-flex; align-items: center; color: #fff !important; }

.burger { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform 0.25s, top 0.25s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 84px 0 76px; }
.hero-copy { position: relative; }

.title { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 11vw, 7.6rem); line-height: 0.95; letter-spacing: 0.015em; margin: 0 0 24px; }
.t-a { color: #fff; }
.t-b { color: var(--blue); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 44ch; }
.cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }

/* Brillo azul que sigue al ratón */
[data-glow] { position: relative; --mx: 50%; --my: 50%; }
[data-glow]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(10, 92, 255, 0.2), transparent 55%); z-index: 0; }
[data-glow]:hover::before { opacity: 1; }

.stat-card { text-align: center; padding: 38px 28px 26px; background: linear-gradient(180deg, #0a0c12, #050505); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 14px; box-shadow: 8px 8px 0 var(--blue); }
.stat-card > * { position: relative; z-index: 1; }
.avatar-wrap { position: relative; width: 116px; height: 116px; margin: 0 auto 20px; }
.avatar-wrap img { position: absolute; inset: 5px; width: 106px; height: 106px; border-radius: 50%; object-fit: cover; background: #000; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; }
.label { font-family: var(--font-tag); font-size: 1rem; color: var(--blue-text); }
.big { font-family: var(--font-head); font-size: clamp(3.2rem, 7.5vw, 5rem); line-height: 1.05; letter-spacing: 0.02em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 0.78rem; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: ping-green 2s infinite; flex: none; }
.pulse.off { background: #fbbf24; animation: none; }
@keyframes ping-green { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.mini { list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mini .ico { margin-bottom: 4px; opacity: 0.9; }
.mini b { font-family: var(--font-head); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.mini span { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============ Secciones ============ */
.section { padding: 70px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.kicker { display: inline-flex; align-items: center; font-family: var(--font-tag); font-size: 1rem; color: var(--blue-text); margin-bottom: 6px; }
.live-kicker { color: #fff; }
.section h2 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: 0.02em; line-height: 1.08; margin-bottom: 8px; }
mark { background: none; color: var(--blue-text); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Directo ============ */
#directo { scroll-margin-top: 80px; }
.live-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tabs { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 8px; }
.tabs button { border: 0; background: transparent; padding: 7px 16px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -35px rgba(10, 92, 255, 0.6); }
.chat-frame { position: relative; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius); overflow: hidden; background: #0b0b0e; min-height: 360px; }
.player-frame iframe, .chat-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ Vídeos ============ */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card { display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; background: #0a0b10; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.video-card.featured { grid-column: span 2; grid-row: span 2; }
.video-card:hover, .video-card:focus-visible { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.7); box-shadow: 5px 5px 0 var(--blue); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0d1020; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-card:hover .thumb img { transform: scale(1.05); }
.play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; display: grid; place-items: center; opacity: 0; transform: scale(0.8); transition: opacity 0.2s, transform 0.2s; }
.play::before { content: ""; width: 18px; height: 20px; margin-left: 4px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.video-card:hover .play, .video-card:focus-visible .play { opacity: 1; transform: scale(1); }
.badge { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 3px 10px; border-radius: 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--blue); color: #fff; }
.video-info { position: relative; z-index: 1; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.video-title { font-weight: 600; font-size: 0.95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured .video-title { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: 0.02em; -webkit-line-clamp: 3; line-clamp: 3; }
.featured .video-info { padding: 18px 22px 24px; }
.video-meta { font-size: 0.78rem; color: var(--muted); }

.skeleton { aspect-ratio: 16 / 11; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(10, 92, 255, 0.12) 50%, rgba(255, 255, 255, 0.03) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton.featured { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 320px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.error-box { grid-column: 1 / -1; padding: 40px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.error-box a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ============ Redes ============ */
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.social { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px 22px; background: #0a0b10; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; overflow: hidden; }
.social > * { position: relative; z-index: 1; }
.social:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.7); background: #0b1226; box-shadow: 5px 5px 0 var(--blue); }
.social .ico { width: 32px; height: 32px; margin-bottom: 16px; }
.social h3 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; letter-spacing: 0.04em; line-height: 1.1; }
.handle { color: var(--muted); font-size: 0.86rem; word-break: break-all; }
.num { margin-top: 16px; color: var(--muted); font-size: 0.86rem; }
.num b { font-family: var(--font-head); font-weight: 400; font-size: 1.7rem; letter-spacing: 0.03em; color: #fff; font-variant-numeric: tabular-nums; margin-right: 4px; }
.go { margin-top: 16px; font-family: var(--font-tag); font-size: 1rem; color: var(--blue-text); transition: transform 0.2s; }
.social:hover .go { transform: translateX(5px); }

/* ============ Comunidad ============ */
.community { padding: 0; text-align: center; }
.community-copy { display: flex; flex-direction: column; align-items: center; }
.community h2 { margin-bottom: 12px; }
.community-text { max-width: 50ch; color: var(--muted); }
.community-stats { display: flex; justify-content: center; gap: 56px; margin: 28px 0 30px; flex-wrap: wrap; }
.community-stats b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 2.8rem; letter-spacing: 0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.community-stats span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; }

/* ============ Footer ============ */
.footer { margin-top: 40px; padding: 28px 0 34px; border-top: 1px solid var(--line); }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.88rem; }
.footer-brand svg { border-radius: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }

/* ============ Modal ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.9); animation: fade 0.2s ease; }
.modal-box { position: relative; width: min(1100px, 100%); animation: pop 0.25s ease; }
.modal-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-close { width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; cursor: pointer; font-size: 1rem; transition: background 0.15s; }
.modal-close:hover { background: var(--blue); border-color: var(--blue); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
body.modal-open { overflow: hidden; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 48px; gap: 44px; }
  .stat-card { max-width: 460px; margin-inline: auto; width: 100%; }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .socials { grid-template-columns: repeat(2, 1fr); }
  .live-layout { grid-template-columns: 1fr; }
  .chat-frame { min-height: 420px; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: #050505; border-bottom: 1px solid var(--line); display: none; }
  .menu.open { display: flex; }
  .menu > a:not(.btn) { padding: 12px 6px; font-size: 0.86rem; }
  .menu .btn { margin: 10px 0 0; }
}

@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .videos { grid-template-columns: 1fr; gap: 22px; }
  .video-card.featured, .skeleton.featured { grid-column: auto; grid-row: auto; }
  .skeleton.featured { min-height: 0; aspect-ratio: 16 / 11; }
  .socials { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .live-banner-text { display: none; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Juegos ============ */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 400px)); gap: 20px; }
.game-card { display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; background: #0a0b10; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.game-card:hover, .game-card:focus-visible { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.7); box-shadow: 5px 5px 0 var(--blue); }
.game-card:hover .thumb img { transform: scale(1.05); }
.game-card:hover .play, .game-card:focus-visible .play { opacity: 1; transform: scale(1); }
.game-title { font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.15; }
.game-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue-text); }

.game-box { width: min(760px, 100%); transition: width 0.2s ease; }
.game-box.playing { width: min(1180px, 100%); }
.game-rules { background: #0a0b10; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 14px; padding: 30px 32px; max-height: calc(100vh - 120px); overflow: auto; box-shadow: 8px 8px 0 var(--blue); }
.game-rules h3 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; letter-spacing: 0.03em; margin-bottom: 18px; }
.steps { list-style: none; counter-reset: step; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 50px; min-height: 34px; color: #d7dae2; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.rules-tip { margin-bottom: 24px; padding: 10px 14px; border-left: 3px solid var(--blue); background: rgba(10, 92, 255, 0.08); color: var(--muted); font-size: 0.86rem; }

.game-frame { position: relative; width: min(100%, calc(80vh * 1.6)); aspect-ratio: 16 / 10; margin-inline: auto; background: #0b1020; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius); overflow: hidden; }
.game-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-frame:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.game-frame.pseudo-fs { position: fixed; inset: 0; z-index: 200; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.fs-exit { display: none; position: absolute; top: 10px; right: 10px; z-index: 2; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.78rem; font-weight: 600; cursor: pointer; opacity: 0.75; transition: opacity 0.15s; }
.fs-exit:hover, .fs-exit:focus-visible { opacity: 1; }
.game-frame:fullscreen .fs-exit, .game-frame.pseudo-fs .fs-exit { display: block; }

@media (max-width: 700px) {
  .games { grid-template-columns: 1fr; }
  .game-rules { padding: 24px 20px; }
  .game-frame { width: 100%; aspect-ratio: 4 / 3; }
}
