/* ============ Playora – CrazyGames-style dark portal ============ */
:root {
  --bg: #14151d;
  --bg-soft: #191b25;
  --panel: #1e2029;
  --panel-2: #232533;
  --card: #262836;
  --card-hover: #2c2f40;
  --text: #f2f4fa;
  --muted: #9aa3b8;
  --line: #2a2d3a;
  --brand: #8b6cff;
  --brand-dark: #6a4ae0;
  --brand-soft: #2a2440;
  --yellow: #ffd93d;
  --green: #3ddc84;
  --hot: #ff5a3c;
  --radius: 12px;
  --sidebar-w: 220px;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-2: 0 12px 28px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: #31344a #14151d; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #14151d; }
::-webkit-scrollbar-thumb { background: #31344a; border-radius: 8px; border: 2px solid #14151d; }
::-webkit-scrollbar-thumb:hover { background: #414662; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
img { display: block; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 22px; }

/* ---------- Sidebar (desktop) ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
  width: var(--sidebar-w);
  background: #101118;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 18px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform .25s ease;
}
.sidebar .logo { margin: 2px 6px 20px; }
.side-sec { margin: 14px 0 6px; padding: 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  color: #cfd4e4; font-size: 14px; font-weight: 600;
  width: 100%; border: none; background: none; text-align: left;
}
.side-link:hover { background: var(--panel); color: #fff; }
.side-link.active { background: var(--brand-soft); color: #fff; }
.side-link.active .ico { color: var(--brand); }
.side-link .ico { width: 20px; text-align: center; font-size: 15px; color: var(--muted); }
.side-foot { margin-top: auto; padding: 14px 8px 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.side-foot a { font-size: 12.5px; color: var(--muted); }
.side-foot a:hover { color: #fff; }
.side-overlay { position: fixed; inset: 0; z-index: 75; background: rgba(0, 0, 0, .55); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 21, 29, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; gap: 16px;
}
.burger {
  display: none; width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 17px; align-items: center; justify-content: center;
}
.logo { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.logo-mark { font-size: 24px; }
.logo-text { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.search-wrap { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
#search {
  width: 100%; height: 40px; padding: 0 14px 0 36px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); font: inherit; color: var(--text); outline: none;
  transition: border-color .15s, background .15s;
}
#search:focus { border-color: var(--brand); background: var(--panel-2); }
#search::placeholder { color: var(--muted); }
#search::-webkit-search-cancel-button { -webkit-appearance: none; }
.random-btn { flex: 0 0 auto; }
.random-btn span { display: inline; }

/* ---------- Search dropdown ---------- */
.search-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-2); overflow: hidden; max-height: 420px; overflow-y: auto;
}
.search-drop-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--text); }
.search-drop-item:hover, .search-drop-item:focus-visible { background: var(--panel-2); }
.search-drop-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.search-drop-item .sd-name { font-size: 13.5px; font-weight: 700; }
.search-drop-item .sd-cat { font-size: 11.5px; color: var(--muted); }
.search-drop-empty { padding: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Chips (mobile filter bar) ---------- */
.chips-bar {
  position: sticky; top: var(--header-h, 60px); z-index: 40;
  background: rgba(20, 21, 29, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.chips { max-width: 1400px; margin: 0 auto; padding: 10px 22px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 13px; font-weight: 600; color: #cfd4e4;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: #fff; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Rows (horizontal card strips) ---------- */
.section-title { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -.2px; }
.section-title .count { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.row-head .section-title { margin: 0; }
.row-wrap { position: relative; }
.row-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 36px; height: 60px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(30, 32, 41, .92); color: var(--text);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, border-color .15s, color .15s;
}
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { border-color: var(--brand); color: var(--brand); }
.row-arrow.left { left: -8px; }
.row-arrow.right { right: -8px; }
@media (hover: none) { .row-arrow { display: none; } }
.clear-recent { border: none; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.clear-recent:hover { color: #fff; }

/* ---------- Hero banner ---------- */
.hero {
  position: relative; height: 300px;
  border-radius: 14px; overflow: hidden;
  margin: 20px 0 4px;
  background-size: cover; background-position: center 20%;
  box-shadow: var(--shadow-1);
}
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 11, 18, .93) 0%, rgba(10, 11, 18, .6) 48%, rgba(10, 11, 18, .12) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 44px; }
.hero-kicker { color: var(--yellow); font-weight: 800; letter-spacing: 1.2px; font-size: 12px; text-transform: uppercase; }
.hero-name { font-size: 42px; font-weight: 800; margin: 0; color: #fff; letter-spacing: -.5px; }
.hero-tag { color: #c3c9d8; font-size: 15px; max-width: 560px; margin: 0; }
.hero-play {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: var(--brand); color: #fff; font-weight: 800;
  padding: 12px 28px; border-radius: 10px; font-size: 15px; margin-top: 8px;
}
.hero-play:hover { background: var(--brand-dark); }

/* ---------- Card hover play overlay ---------- */
.thumb-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Ccircle cx='26' cy='26' r='24' fill='rgba(124,92,255,.92)'/%3E%3Cpath d='M21 16l16 10-16 10z' fill='%23fff'/%3E%3C/svg%3E") center / 52px 52px no-repeat,
    rgba(8, 10, 16, .38);
  opacity: 0; transition: opacity .2s ease;
}
.card:hover .thumb-wrap::after { opacity: 1; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100;
  background: var(--panel-2, #232533); border: 1px solid var(--line); color: var(--text);
  padding: 10px 18px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow-2);
}
.row-tools { display: flex; align-items: center; gap: 8px; }
.row-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.row-arrow:hover { border-color: var(--brand); color: var(--brand); }
.view-all { font-size: 13px; font-weight: 700; color: var(--muted); }
.view-all:hover { color: #fff; }
.hrow {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-behavior: smooth;
  padding: 2px 2px 10px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hrow::-webkit-scrollbar { display: none; }
.hrow .card { flex: 0 0 188px; }

/* ---------- All games head ---------- */
.all-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.sort-wrap { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
#sort {
  height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
}
#sort:focus-visible { border-color: var(--brand); outline: none; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 16px; }
.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-3px) scale(1.015); background: var(--card-hover); box-shadow: var(--shadow-2); }
.card-link { display: block; color: inherit; }
.thumb-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--brand-soft); overflow: hidden; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .thumb-wrap img { transform: scale(1.06); }
.badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .6px; color: #101118; }
.badge-new { background: var(--green); color: #08351c; }
.badge-hot { background: var(--hot); top: 32px; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(16, 17, 24, .75);
  color: #cfd4e4; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, color .15s, transform .15s;
}
.card:hover .fav-btn, .fav-btn.active, .fav-btn:focus-visible { opacity: 1; }
.fav-btn.active { color: #ff3b6b; }
.fav-btn:hover { transform: scale(1.12); }
@media (hover: none) { .fav-btn { opacity: 1; } }
.card-body { padding: 9px 12px 12px; }
.card-title { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.no-results { text-align: center; color: var(--muted); padding: 40px 0; font-size: 15px; }
.load-more { display: inline-block; padding: 11px 30px; font-size: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 10px; font-weight: 700; }
.load-more:hover { background: var(--brand); border-color: var(--brand); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--brand); color: #fff; font-size: 20px; font-weight: 800;
  box-shadow: var(--shadow-2);
}
.to-top:hover { background: var(--brand-dark); }

/* ---------- Language dropdown ---------- */
.lang-dd { position: relative; flex: 0 0 auto; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.lang-btn:hover { border-color: var(--brand); }
.lang-btn .flag { display: block; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 90;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-2); min-width: 200px; overflow: hidden; display: none;
}
.lang-dd.open .lang-menu { display: block; }
.lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; color: var(--text); font-size: 13.5px;
}
.lang-item:hover { background: var(--panel-2, #2a2d3a); }
.lang-item.active { color: var(--brand); font-weight: 700; }
.lang-item .flag { display: block; width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 26px; }
.footer-inner { padding: 26px 22px 30px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.footer-brand { font-weight: 700; font-size: 14px; }
.footer-links { display: flex; gap: 18px; font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; font-size: 12px; color: var(--muted); }

/* ---------- Static pages ---------- */
.page-main { max-width: 760px; margin: 0 auto; padding: 34px 22px 60px; }
.page-main h1 { font-size: 28px; margin: 0 0 14px; letter-spacing: -.4px; }
.page-main h2 { font-size: 18px; margin: 26px 0 8px; }
.page-main p, .page-main li { color: #c3c9d8; font-size: 14.5px; }
.page-main .back-home { display: inline-block; margin-bottom: 18px; font-weight: 700; }

/* ---------- Play page ---------- */
.play-body { background: #101118; }
.play-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 9px 16px;
  background: #16171f; border-bottom: 1px solid var(--line);
}
.back-btn {
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 13px; font-weight: 700; color: var(--text);
  flex: 0 0 auto; text-decoration: none !important;
  transition: border-color .15s, color .15s;
}
.back-btn:hover { border-color: var(--brand); color: #fff; }
.play-heading { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 10px; }
.play-title { margin: 0; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.fav-btn { position: static; opacity: 1; width: 38px; height: 38px; font-size: 17px; }
.fav-btn.active { color: #ff3b6b; border-color: rgba(255, 59, 107, .5); }
.like-btn svg { fill: none; }
.like-btn.active { color: #ff9d2e; border-color: rgba(255, 157, 46, .5); }
.like-btn.active svg { fill: #ff9d2e; }

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: 14px;
  align-items: start;
  max-width: 1560px;
  margin: 0 auto;
  padding: 14px 16px 8px;
}
.play-layout .stage { padding: 0; }
.stage {
  position: relative;
  display: flex; justify-content: center;
}
.stage-inner {
  position: relative; width: 100%;
  max-width: min(100%, calc((100vh - 96px) * 1.7778));
  aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.stage[data-orientation="portrait"] .stage-inner { max-width: min(100%, calc((100vh - 96px) * 0.5625)); aspect-ratio: 9 / 16; }
.stage[data-orientation="any"] .stage-inner { max-width: min(100%, calc((100vh - 96px) * 1.3333)); aspect-ratio: 4 / 3; }
/* Desktop: the stage takes the whole viewport height below the header, so the
   game's full picture stays visible without the page (or "More games") covering it. */
@media (min-width: 1100px) {
  .stage-inner,
  .stage[data-orientation="any"] .stage-inner {
    height: calc(100vh - 84px);
    height: calc(100dvh - 84px);
    max-width: none;
    aspect-ratio: auto;
  }
  .stage[data-orientation="landscape"] .stage-inner {
    max-width: calc((100vh - 84px) * 1.7778);
    max-width: calc((100dvh - 84px) * 1.7778);
    aspect-ratio: 16 / 9; height: auto;
  }
  .stage[data-orientation="portrait"] .stage-inner {
    max-width: calc((100vh - 84px) * 0.5625);
    max-width: calc((100dvh - 84px) * 0.5625);
    aspect-ratio: 9 / 16; height: auto;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
  }
  .related-rail { max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); }
}
.stage-inner:fullscreen {
  width: 100vw !important; height: 100vh !important;
  max-width: none !important; aspect-ratio: auto !important;
  border-radius: 0;
}
#game-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loading-overlay {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #101118; color: #aab1bf; font-size: 14px;
  transition: opacity .3s;
}
.loading-overlay.done { opacity: 0; pointer-events: none; }
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid rgba(139, 108, 255, .25); border-top-color: var(--brand);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-error {
  position: absolute; inset: 0; z-index: 7;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; color: #dfe3ec; padding: 20px;
}
.rotate-hint {
  display: none;
  position: absolute; inset: 0; z-index: 20;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(10, 11, 16, .88); color: #fff; text-align: center;
  font-size: 19px; font-weight: 700;
}
.rotate-hint small { font-weight: 400; font-size: 13px; color: #aab1bf; }
.rotate-icon { font-size: 44px; animation: tilt 1.6s ease-in-out infinite; }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(90deg); } }
@media (orientation: portrait) {
  .stage[data-orientation="landscape"] .rotate-hint { display: flex; }
}

/* Related rail (desktop: vertical beside stage / mobile: horizontal strip) */
.related-rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.related-rail::-webkit-scrollbar { width: 0; height: 0; }
.rail-title { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.rail-cards .card { margin-bottom: 12px; }
.rail-cards .card:last-child { margin-bottom: 0; }
.rail-cards .card-tagline { display: none; }
.like-btn svg { fill: none; }
.like-btn.active { color: #ff9d2e; border-color: rgba(255, 157, 46, .5); }
.like-btn.active svg { fill: #ff9d2e; }

/* Game info panel */
.game-info { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; color: #dfe3ec; margin-top: 18px; }
.game-info h2 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.info-desc { margin: 0 0 14px; font-size: 14px; color: #aab1bf; }
.howto { margin: 0 0 16px; }
.howto h3 { margin: 0 0 8px; font-size: 15px; color: #fff; }
.howto ul { margin: 0; padding-left: 20px; }
.howto li { font-size: 13.5px; color: #aab1bf; margin-bottom: 4px; }
.info-grid { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.info-grid > div { min-width: 120px; }
.info-grid dt { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 2px; }
.info-grid dd { margin: 0; font-size: 13.5px; font-weight: 600; }
.info-grid .license { color: var(--muted); font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .side-overlay { display: block; }
  .burger { display: flex; }
  .play-layout { grid-template-columns: minmax(0, 1fr); }
  .stage { min-width: 0; }
  .related-rail { background: transparent; border: none; padding: 4px 0 0; max-height: none; overflow: visible; }
  .rail-cards { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
  .rail-cards .card { flex: 0 0 160px; margin-bottom: 0; }
}
@media (min-width: 1100px) {
  body { padding-left: var(--sidebar-w); }
  /* Play pages have no sidebar - the stage centers in the full window. */
  body.play-body { padding-left: 0; }
  .site-header, .chips-bar { margin-left: var(--sidebar-w); }
  .site-header .logo { display: none; } /* sidebar carries the brand */
  .side-overlay { display: none !important; }
  .burger { display: none !important; }
}
@media (max-width: 640px) {
  .header-inner { padding: 8px 14px; gap: 10px; }
  .logo-text { display: none; }
  .logo-mark { font-size: 27px; }
  .search-wrap { max-width: none; }
  .random-btn span { display: none; }
  .chips { padding: 9px 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  main.container { padding-top: 16px; }
  .play-meta { display: none; }
  .back-btn span { display: none; }
  .back-btn { width: 38px; padding: 0; justify-content: center; }
  .stage { padding: 0; }
  .footer-inner { padding: 22px 14px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Game of the Day hero kicker + collections ---------- */
.hero-kicker { letter-spacing: 1.2px; text-transform: uppercase; font-size: 12px; font-weight: 800; color: #ffd93d; }
.row-sub { margin: -4px 0 10px; color: var(--muted); font-size: 13px; }

/* ---------- Loading tip ---------- */
.load-tip { margin-top: 4px; font-size: 12.5px; color: #8f96a8; max-width: 420px; }

/* ---------- Controls / generic modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(8, 9, 14, .7); backdrop-filter: blur(3px); }
.modal.hidden { display: none; }
.modal-box { width: min(420px, calc(100vw - 40px)); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h2 { margin: 0; font-size: 17px; color: #fff; }
.controls-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.controls-list li { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #dfe3ec; }
.ctl-ico { font-size: 17px; }

/* ---------- Report button ---------- */
.report-btn { color: #ffb4a1; }
.report-btn:active { transform: scale(.94); }

/* ---------- Search results page ---------- */
.search-body .sidebar { display: none; }
.search-all-row { text-align: center; margin-top: 26px; }
#search-heading { margin-bottom: 14px; }
@media (min-width: 1100px) {
  .search-body { padding-left: 0; }
}
