/* =========================================================
   XYRA GAMES — Xyra Live visual language
   Styles are strictly scoped to the plugin wrappers.
========================================================= */
.xyra-games,
.xyra-single-game {
  --xyra-purple:#8b3dff;
  --xyra-purple-2:#a855f7;
  --xyra-purple-3:#c084fc;
  --xyra-pink:#e879f9;
  --xyra-bg:#08020f;
  --xyra-bg-2:#11041f;
  --xyra-panel:rgba(255,255,255,.035);
  --xyra-card:rgba(255,255,255,.035);
  --xyra-text:#fff;
  --xyra-muted:rgba(255,255,255,.58);
  --xyra-border:rgba(255,255,255,.10);
  width:100%; color:var(--xyra-text); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:radial-gradient(circle at 50% 0%,rgba(139,61,255,.16),transparent 34%),linear-gradient(180deg,#08020f 0%,#0d0319 50%,#07020d 100%);
  overflow:hidden; isolation:isolate;
}
.xyra-games *, .xyra-games *::before, .xyra-games *::after,
.xyra-single-game *, .xyra-single-game *::before, .xyra-single-game *::after { box-sizing:border-box; }
.xyra-games a,.xyra-single-game a { color:inherit; text-decoration:none; }
.xyra-games button,.xyra-games input,.xyra-games select,.xyra-single-game button { font:inherit; }
.xyra-games[data-theme="light"],.xyra-single-game[data-theme="light"] { --xyra-bg:#f7f4fc;--xyra-bg-2:#fff;--xyra-panel:#fff;--xyra-card:#fff;--xyra-text:#21152e;--xyra-muted:rgba(33,21,46,.65);--xyra-border:rgba(57,30,85,.13);background:radial-gradient(circle at 50% 0%,rgba(139,61,255,.09),transparent 35%),linear-gradient(180deg,#fff,#f7f4fc 75%,#f4effa); }
.xyra-games[data-theme="light"] .xyra-games-hero { background:radial-gradient(circle at 50% 40%,rgba(139,61,255,.28),transparent 46%),linear-gradient(180deg,#11041f,#08020f); }
.xyra-games[data-theme="light"] .xyra-games-sort select { background:#fff;color:#21152e; }

/* Hero */
.xyra-games-hero { position:relative;min-height:350px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:65px 22px 55px;text-align:center;border:1px solid rgba(255,255,255,.045);border-radius:0 0 28px 28px;background:linear-gradient(180deg,rgba(139,61,255,.055),transparent 90%); }
.xyra-games-glow { position:absolute;width:min(720px,90vw);height:min(480px,65vw);left:50%;top:42%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(139,61,255,.24),rgba(168,85,247,.08) 42%,transparent 70%);filter:blur(20px);pointer-events:none;animation:xyraGamesGlow 9s ease-in-out infinite; }
@keyframes xyraGamesGlow { 0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-48%) scale(1.06)} }
.xyra-games-hero-inner { position:relative;z-index:1;max-width:850px;margin:0 auto; }
.xyra-games-kicker,.xyra-section-kicker { display:inline-flex;align-items:center;gap:9px;color:#c084fc;font-size:10px;font-weight:850;letter-spacing:.16em;text-transform:uppercase; }
.xyra-games-kicker i { width:7px;height:7px;border-radius:50%;background:#e879f9;box-shadow:0 0 0 5px rgba(232,121,249,.10),0 0 18px rgba(232,121,249,.7); }
.xyra-games-hero h1 { margin:22px 0 17px;color:#fff;font-size:clamp(48px,7vw,88px);line-height:.91;letter-spacing:-.075em;font-weight:950; }
.xyra-games-hero h1 span,.xyra-section-heading h2 span,.xyra-library-heading h2 span { background:linear-gradient(90deg,#8b3dff,#c084fc,#e879f9);-webkit-background-clip:text;background-clip:text;color:transparent; }
.xyra-games-hero p { max-width:590px;margin:0 auto;color:rgba(255,255,255,.63);font-size:15px;line-height:1.75; }
.xyra-games-stats { display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:30px; }
.xyra-games-stats div { min-width:112px;padding:11px 16px;border:1px solid rgba(255,255,255,.10);border-radius:13px;background:rgba(255,255,255,.035);backdrop-filter:blur(14px); }
.xyra-games-stats strong { display:block;color:#fff;font-size:15px;font-weight:900; }
.xyra-games-stats span { display:block;margin-top:3px;color:rgba(255,255,255,.43);font-size:8px;letter-spacing:.12em;font-weight:800; }

/* Ad spaces */
.xyra-ad-slot { position:relative;display:block;max-width:100%;min-height:0;margin:22px auto;padding:8px;text-align:center;overflow:hidden; }
.xyra-ad-slot:empty { display:none; }
.xyra-ad-slot img,.xyra-ad-slot iframe { max-width:100%; }

/* Sections and headings */
.xyra-featured-section,.xyra-library-section { position:relative;padding:65px clamp(16px,3.5vw,48px); }
.xyra-library-section { padding-top:32px;padding-bottom:85px; }
.xyra-section-heading,.xyra-library-heading { display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:25px; }
.xyra-section-heading h2,.xyra-library-heading h2 { margin:8px 0 0;color:var(--xyra-text);font-size:clamp(29px,3.5vw,46px);line-height:1;letter-spacing:-.055em;font-weight:900; }
.xyra-library-heading p { margin:11px 0 0;color:var(--xyra-muted);font-size:13px;line-height:1.65; }
.xyra-featured-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px; }
.xyra-featured-card,.xyra-game-card { min-width:0;overflow:hidden;border:1px solid var(--xyra-border);border-radius:19px;background:var(--xyra-card);box-shadow:0 20px 55px rgba(0,0,0,.20);transition:transform .3s cubic-bezier(.22,1,.36,1),border-color .3s ease,box-shadow .3s ease,background .3s ease; }
.xyra-featured-card:hover,.xyra-game-card:hover { transform:translateY(-6px);border-color:rgba(192,132,252,.48);background:linear-gradient(145deg,rgba(139,61,255,.12),rgba(255,255,255,.045));box-shadow:0 28px 70px rgba(92,32,180,.25),0 0 32px rgba(139,61,255,.09); }
.xyra-featured-image,.xyra-game-thumb { position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#130526; }
.xyra-featured-image img,.xyra-game-thumb img { display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .45s ease,filter .45s ease; }
.xyra-featured-card:hover img,.xyra-game-card:hover .xyra-game-thumb img { transform:scale(1.055);filter:brightness(.72); }
.xyra-featured-overlay { position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(7,2,13,.72));pointer-events:none; }
.xyra-featured-play { position:absolute;left:50%;top:50%;display:grid;place-items:center;width:54px;height:54px;transform:translate(-50%,-50%) scale(.82);border:1px solid rgba(255,255,255,.26);border-radius:50%;background:rgba(139,61,255,.82);color:#fff;font-size:17px;opacity:0;transition:.3s ease; }
.xyra-featured-card:hover .xyra-featured-play { opacity:1;transform:translate(-50%,-50%) scale(1); }
.xyra-featured-info { padding:14px 16px 16px; }
.xyra-featured-info>span { color:#c084fc;font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase; }
.xyra-featured-info h3 { margin:6px 0 0;color:var(--xyra-text);font-size:15px;line-height:1.3;font-weight:850;letter-spacing:-.025em; }

/* Search and category filters */
.xyra-game-search-wrap { position:relative;display:block;width:min(100%,310px);flex-shrink:0; }
.xyra-game-search-wrap input { width:100%;height:48px;padding:0 46px 0 16px;border:1px solid var(--xyra-border);border-radius:13px;outline:0;background:rgba(255,255,255,.045);color:var(--xyra-text);font-size:12px;transition:border-color .25s,box-shadow .25s; }
.xyra-game-search-wrap input::placeholder { color:var(--xyra-muted); }
.xyra-game-search-wrap input:focus { border-color:rgba(192,132,252,.62);box-shadow:0 0 0 3px rgba(139,61,255,.12); }
.xyra-game-search-wrap>span[aria-hidden] { position:absolute;right:15px;top:7px;color:#c084fc;font-size:25px; }
.xyra-game-filters { display:flex;align-items:center;gap:9px;margin:0 0 20px;padding:2px 0 12px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:rgba(168,85,247,.4) transparent; }
.xyra-game-filters button { flex:0 0 auto;min-height:37px;padding:0 15px;border:1px solid var(--xyra-border);border-radius:999px;background:rgba(255,255,255,.035);color:var(--xyra-muted);font-size:10px;font-weight:800;cursor:pointer;transition:color .25s,background .25s,border-color .25s,transform .25s; }
.xyra-game-filters button:hover,.xyra-game-filters button.is-active { border-color:rgba(192,132,252,.45);background:linear-gradient(135deg,rgba(116,44,255,.55),rgba(168,85,247,.28));color:#fff;box-shadow:0 6px 24px rgba(92,32,180,.16); }
.xyra-game-filters button:hover { transform:translateY(-2px); }
.xyra-games-sort { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px;color:var(--xyra-muted);font-size:10px; }
.xyra-games-sort label { display:flex;align-items:center;gap:8px; }
.xyra-games-sort select { min-height:34px;padding:0 27px 0 11px;border:1px solid var(--xyra-border);border-radius:9px;background:#160a24;color:var(--xyra-text);font-size:10px; }

/* Game card grid */
.xyra-game-grid { display:grid;grid-template-columns:repeat(var(--xyra-cols,4),minmax(0,1fr));gap:17px; }
.xyra-game-card { border-radius:17px; }
.xyra-game-thumb { aspect-ratio:16/9;background:#130526; }
.xyra-game-placeholder { display:grid;place-items:center;width:100%;height:100%;background:radial-gradient(circle at 50% 40%,rgba(139,61,255,.28),transparent 58%),linear-gradient(135deg,#160827,#09020f);font-size:38px; }
.xyra-play-overlay { position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(180deg,rgba(7,2,13,.05),rgba(7,2,13,.68));color:#fff;font-size:11px;font-weight:850;letter-spacing:.02em;opacity:0;transition:opacity .25s ease; }
.xyra-play-overlay i { display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(139,61,255,.82);font-size:11px;font-style:normal; }
.xyra-game-card:hover .xyra-play-overlay,.xyra-game-thumb:focus-visible .xyra-play-overlay { opacity:1; }
.xyra-game-card-info { position:relative;padding:13px 15px 14px; }
.xyra-game-category { display:inline-block;color:#c084fc;font-size:8px;font-weight:900;letter-spacing:.13em;text-transform:uppercase; }
.xyra-game-card h3 { margin:6px 0 0;color:var(--xyra-text);font-size:14px;line-height:1.32;font-weight:850;letter-spacing:-.025em; }
.xyra-game-card h3 a { color:inherit;transition:color .2s; }
.xyra-game-card h3 a:hover { color:#d8b4fe; }
.xyra-game-plays { display:block;margin-top:7px;color:var(--xyra-muted);font-size:9px; }
.xyra-empty { grid-column:1/-1;display:grid;gap:8px;padding:55px 20px;border:1px solid var(--xyra-border);border-radius:18px;background:rgba(255,255,255,.025);text-align:center;color:var(--xyra-muted);font-size:12px; }
.xyra-empty strong { color:var(--xyra-text);font-size:16px; }
.xyra-game-grid.is-loading { opacity:.48;pointer-events:none;filter:saturate(.7); }
.xyra-games-status { min-height:20px;padding-top:12px;text-align:center;color:var(--xyra-muted);font-size:11px; }
.xyra-load-wrap { display:flex;justify-content:center;margin-top:24px; }
.xyra-load-more { display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 21px;border:1px solid rgba(168,85,247,.3);border-radius:999px;background:linear-gradient(135deg,rgba(109,40,217,.24),rgba(168,85,247,.12));color:#eadcff;font-size:10px;font-weight:850;cursor:pointer;transition:transform .25s,border-color .25s,box-shadow .25s; }
.xyra-load-more:hover { transform:translateY(-2px);border-color:rgba(192,132,252,.65);box-shadow:0 12px 35px rgba(92,32,180,.22); }
.xyra-load-more:disabled { opacity:.6;cursor:wait; }
.xyra-category-links { display:flex;flex-wrap:wrap;gap:9px; }
.xyra-category-links a { padding:9px 14px;border:1px solid var(--xyra-border);border-radius:999px;background:rgba(255,255,255,.04);color:var(--xyra-muted);font-size:11px; }
.xyra-category-links a:hover { border-color:#a855f7;color:#fff; }

/* Single game page – site's own header/footer are output by the theme */
.xyra-single-game { padding:clamp(25px,4vw,55px) clamp(14px,3vw,28px) 80px; }
.xyra-single-inner { max-width:1240px;margin:0 auto; }
.xyra-single-top { display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:24px; }
.xyra-single-game h1 { margin:9px 0 10px;color:var(--xyra-text);font-size:clamp(30px,5vw,54px);line-height:.98;letter-spacing:-.06em;font-weight:950; }
.xyra-single-meta { display:flex;flex-wrap:wrap;gap:8px; }
.xyra-single-meta span { padding:6px 10px;border:1px solid var(--xyra-border);border-radius:999px;background:rgba(255,255,255,.04);color:var(--xyra-muted);font-size:9px;font-weight:800; }
.xyra-back-games { display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border:1px solid var(--xyra-border);border-radius:11px;background:rgba(255,255,255,.045);color:#d8b4fe!important;font-size:10px;font-weight:850;white-space:nowrap; }
.xyra-back-games:hover { border-color:rgba(192,132,252,.48);background:rgba(139,61,255,.12); }
.xyra-player-shell { position:relative;width:100%;aspect-ratio:16/9;min-height:300px;overflow:hidden;border:1px solid rgba(192,132,252,.2);border-radius:20px;background:#050208;box-shadow:0 24px 80px rgba(0,0,0,.35),0 0 45px rgba(139,61,255,.08); }
.xyra-player-shell iframe { position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:#050208; }
.xyra-player-loading { position:absolute;inset:0;z-index:0;display:flex;align-items:center;justify-content:center;gap:10px;color:rgba(255,255,255,.65);font-size:11px;pointer-events:none; }
.xyra-player-spinner { width:17px;height:17px;border:2px solid rgba(255,255,255,.18);border-top-color:#c084fc;border-radius:50%;animation:xyraSpin .8s linear infinite; }
@keyframes xyraSpin { to{transform:rotate(360deg)} }
.xyra-player-actions { display:flex;align-items:center;justify-content:space-between;gap:15px;margin:12px 0 24px;color:var(--xyra-muted);font-size:10px; }
.xyra-fullscreen-button { min-height:36px;padding:0 13px;border:1px solid rgba(192,132,252,.28);border-radius:9px;background:rgba(139,61,255,.12);color:#e9d5ff;font-size:10px;font-weight:800;cursor:pointer; }
.xyra-fullscreen-button:hover { background:rgba(139,61,255,.24); }
.xyra-game-content,.xyra-related { margin-top:24px;padding:23px;border:1px solid var(--xyra-border);border-radius:18px;background:rgba(255,255,255,.03); }
.xyra-game-content h2,.xyra-related h2 { margin:0 0 12px;color:var(--xyra-text);font-size:22px;letter-spacing:-.04em;font-weight:900; }
.xyra-game-content p,.xyra-game-description { color:var(--xyra-muted);font-size:13px;line-height:1.75; }
.xyra-game-not-configured { padding:55px 20px;border:1px solid var(--xyra-border);border-radius:17px;background:var(--xyra-panel);color:var(--xyra-muted);text-align:center; }
.xyra-related .xyra-section-heading { margin-bottom:20px; }
.xyra-related .xyra-section-heading h2 { margin-top:7px; }
.xyra-related .xyra-section-heading>a { color:#d8b4fe;font-size:10px;font-weight:850; }
.xyra-related .xyra-game-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.xyra-related .xyra-game-card { box-shadow:none; }

/* Responsive layout */
@media(max-width:1050px) {
  .xyra-game-grid { grid-template-columns:repeat(var(--xyra-cols-tablet,3),minmax(0,1fr)); }
  .xyra-featured-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .xyra-related .xyra-game-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:800px) {
  .xyra-games-hero { min-height:315px;padding:58px 18px 48px; }
  .xyra-library-heading { align-items:flex-start;flex-direction:column; }
  .xyra-game-search-wrap { width:100%; }
  .xyra-related .xyra-game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .xyra-games-hero { min-height:290px;padding:55px 16px 45px;border-radius:0 0 20px 20px; }
  .xyra-games-hero h1 { font-size:clamp(47px,15vw,68px); }
  .xyra-games-hero p { font-size:13px; }
  .xyra-games-stats { gap:7px;margin-top:23px; }
  .xyra-games-stats div { min-width:95px;padding:9px 11px; }
  .xyra-featured-section { padding:48px 14px; }
  .xyra-library-section { padding:30px 14px 60px; }
  .xyra-featured-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:11px; }
  .xyra-featured-info { padding:11px; }
  .xyra-featured-info h3 { font-size:12px; }
  .xyra-game-grid { grid-template-columns:repeat(var(--xyra-cols-mobile,2),minmax(0,1fr));gap:11px; }
  .xyra-game-card { border-radius:14px; }
  .xyra-game-card-info { padding:10px 10px 12px; }
  .xyra-game-card h3 { font-size:12px; }
  .xyra-play-overlay { opacity:1;align-items:flex-end;padding-bottom:9px;background:linear-gradient(transparent,rgba(7,2,13,.62));font-size:10px; }
  .xyra-play-overlay i { display:none; }
  .xyra-games-sort { font-size:9px; }
  .xyra-single-game { padding:25px 12px 55px; }
  .xyra-single-top { align-items:flex-start;flex-direction:column; }
  .xyra-player-shell { aspect-ratio:4/3;min-height:220px;border-radius:14px; }
  .xyra-player-actions { align-items:flex-start;flex-direction:column; }
  .xyra-game-content,.xyra-related { padding:16px;border-radius:14px; }
  .xyra-related .xyra-game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:390px) {
  .xyra-game-grid,.xyra-related .xyra-game-grid { grid-template-columns:1fr; }
  .xyra-featured-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  .xyra-games *, .xyra-single-game * { scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important; }
}
