:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #96a8c0;
  --panel: rgba(12, 34, 61, 0.82);
  --panel-2: rgba(167, 242, 255, 0.075);
  --line: rgba(109, 237, 255, 0.34);
  --hot: #ff3df2;
  --cyan: #00f5ff;
  --lime: #a6ff4d;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 245, 255, 0.28), transparent 34%),
    radial-gradient(circle at 90% 6%, rgba(255, 61, 242, 0.22), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(166, 255, 77, 0.15), transparent 40%),
    linear-gradient(145deg, #0a3153, #071a34 48%, #10264b);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 5px 5px, rgba(196, 248, 255, .19) 1px, transparent 1.6px),
    radial-gradient(circle at 19px 19px, rgba(166, 255, 77, .12) 1.2px, transparent 1.9px),
    linear-gradient(45deg, transparent 47%, rgba(0, 245, 255, .07) 48%, rgba(0, 245, 255, .07) 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(255, 61, 242, .055) 48%, rgba(255, 61, 242, .055) 52%, transparent 53%);
  background-size: 28px 28px, 28px 28px, 56px 56px, 56px 56px;
  opacity: .8;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,.36));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,.36));
}

a { -webkit-tap-highlight-color: transparent; }

.site-shell {
  width: 100%;
  margin: 0;
  padding: 22px 22px 22px 6px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(0, 245, 255, 0.4));
}

.brand-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, var(--cyan) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(0, 245, 255, 0.25);
}

.brand-sub {
  margin: 5px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.brand-sub b { color: var(--ink); }
.brand-dot { color: var(--hot); margin: 0 3px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.back-to-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(166, 244, 77, 0.45);
  border-radius: 14px;
  color: #cfff88;
  background: rgba(166, 244, 77, 0.1);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(166, 244, 77, 0.16);
}
.back-to-main-btn:hover {
  color: #fff;
  background: rgba(166, 244, 77, 0.2);
}
.whatsapp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(37, 211, 102, .58);
  border-radius: 14px;
  color: #a9ffc6;
  background: rgba(37, 211, 102, .12);
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(37, 211, 102, .14);
}
.whatsapp-share-btn:hover { color:#fff; background:rgba(37,211,102,.23); }
.language-toggle {
  padding: 8px 13px;
  border: 1px solid rgba(255, 61, 242, 0.42);
  border-radius: 14px;
  color: #ff9bf7;
  background: rgba(255, 61, 242, 0.08);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 61, 242, 0.12);
}
.language-toggle:hover { color: #fff; background: rgba(255, 61, 242, 0.18); }
html[dir="rtl"] .brand { flex-direction: row-reverse; }

/* ── Layout: games + chat ───────────────────────────────────────────────── */
.layout {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(480px, 520px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
/* Chat sits on the LEFT, games on the right (DOM order is games-then-chat,
   so reorder visually; mobile resets this to games-first below). */
#loony-chat-slot { order: 1; }
.games-panel { order: 2; }
html[dir="rtl"] #loony-chat-slot,
html[dir="rtl"] .games-panel { direction: rtl; }

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: inset 0 0 30px rgba(0, 245, 255, 0.04), 0 18px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.games-panel { padding-bottom: 6px; }

.latest-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px 14px 0;
}
.latest-shortcuts-title {
  grid-column: 1 / -1;
  color: var(--lime);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.latest-shortcut {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(166, 255, 77, .42);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(166,255,77,.14), rgba(0,245,255,.06));
  box-shadow: inset 0 0 22px rgba(166,255,77,.04), 0 0 18px rgba(166,255,77,.08);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.latest-shortcut.notes {
  border-color: rgba(255, 61, 242, .45);
  background: linear-gradient(135deg, rgba(255,61,242,.13), rgba(0,245,255,.06));
}
.latest-shortcut:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
  box-shadow: 0 0 25px rgba(166,255,77,.19);
}
.latest-shortcut.notes:hover { border-color: var(--pink); box-shadow: 0 0 25px rgba(255,61,242,.2); }
.latest-shortcut img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 9px; object-fit: cover; }
.latest-shortcut > span:not(.latest-badge) { display: grid; gap: 2px; min-width: 0; }
.latest-shortcut strong { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-shortcut small { color: var(--muted); font-size: .61rem; line-height: 1.2; }
.latest-badge {
  position: absolute;
  right: 7px;
  top: -7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--lime);
  color: #061018;
  font-size: .54rem;
  font-weight: 950;
  letter-spacing: .08em;
  box-shadow: 0 0 13px rgba(166,255,77,.42);
}
.latest-shortcut.notes .latest-badge { background: var(--pink); color: #fff; box-shadow: 0 0 13px rgba(255,61,242,.45); }
html[dir="rtl"] .latest-badge { right: auto; left: 7px; }
@media(max-width:520px){.latest-shortcuts{grid-template-columns:1fr}}

/* ── Compact game cards ─────────────────────────────────────────────────── */
.apk-games {
  margin: 0 14px 4px;
  padding: 12px;
  border: 1px solid rgba(0, 245, 255, .28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,245,255,.07), rgba(255,61,242,.04)), rgba(4,10,22,.28);
}
.apk-games-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 2px 9px; }
.apk-games-head h3 { margin:0; color:var(--ink); font-size:.94rem; }
.apk-games-head p { margin:3px 0 0; color:var(--muted); font-size:.7rem; }
.apk-games-icon { display:grid; place-items:center; width:30px; height:30px; border:1px solid rgba(0,245,255,.42); border-radius:9px; background:rgba(0,245,255,.09); font-size:1rem; }
.apk-game-list { display:flex; flex-wrap:wrap; align-items:stretch; justify-content:flex-start; gap:8px; }
.apk-game-card { display:flex; flex:0 1 330px; align-items:center; gap:10px; min-width:0; max-width:100%; padding:8px 10px; border:1px solid rgba(0,245,255,.28); border-radius:10px; color:var(--ink); text-decoration:none; background:rgba(255,255,255,.035); transition:transform 140ms ease,border-color 140ms ease,background 140ms ease; }
.apk-game-card:hover { transform:translateY(-1px); border-color:var(--cyan); background:rgba(0,245,255,.08); }
.apk-game-card img { width:42px; height:42px; flex:0 0 42px; border-radius:9px; object-fit:cover; background:#0a1122; }
.apk-game-card > span:nth-child(2) { display:grid; gap:2px; min-width:0; }
.apk-game-card strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.86rem; }
.apk-game-card small { color:var(--muted); font-size:.68rem; text-transform:uppercase; letter-spacing:.04em; }
.apk-download-badge { margin-left:auto; flex:0 0 auto; padding:5px 8px; border:1px solid rgba(166,255,77,.52); border-radius:999px; color:var(--lime); background:rgba(166,255,77,.09); font-size:.62rem; font-weight:900; letter-spacing:.05em; }
html[dir="rtl"] .apk-download-badge { margin-left:0; margin-right:auto; }

.pc-downloads {
  margin: 0 14px 4px;
  padding: 12px;
  border: 1px solid rgba(141, 106, 255, .4);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(104,84,255,.13), rgba(0,245,255,.04)), rgba(4,10,22,.28);
}
.pc-downloads-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 2px 9px; }
.pc-downloads-head h3 { margin:0; color:var(--ink); font-size:.94rem; }
.pc-downloads-head p { margin:3px 0 0; color:var(--muted); font-size:.7rem; }
.pc-downloads-icon { display:grid; place-items:center; width:30px; height:30px; border:1px solid rgba(141,106,255,.56); border-radius:9px; background:rgba(141,106,255,.13); font-size:1rem; }
.pc-download-list { display:flex; flex-wrap:wrap; align-items:stretch; justify-content:flex-start; gap:8px; }
.pc-download-card { display:flex; flex:0 1 330px; align-items:center; gap:10px; min-width:0; max-width:100%; padding:8px 10px; border:1px solid rgba(141,106,255,.4); border-radius:10px; color:var(--ink); text-decoration:none; background:rgba(255,255,255,.035); transition:transform 140ms ease,border-color 140ms ease,background 140ms ease; }
.pc-download-card:hover { transform:translateY(-1px); border-color:#a58cff; background:rgba(141,106,255,.12); }
.pc-download-card img { width:42px; height:42px; flex:0 0 42px; border-radius:9px; object-fit:cover; background:#0a1122; }
.pc-download-card > span:nth-child(2) { display:grid; gap:2px; min-width:0; }
.pc-download-card strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.86rem; }
.pc-download-card small { color:var(--muted); font-size:.68rem; text-transform:uppercase; letter-spacing:.04em; }
.pc-download-badge { margin-left:auto; flex:0 0 auto; padding:5px 8px; border:1px solid rgba(0,245,255,.52); border-radius:999px; color:var(--cyan); background:rgba(0,245,255,.09); font-size:.62rem; font-weight:900; letter-spacing:.05em; }
html[dir="rtl"] .pc-download-badge { margin-left:0; margin-right:auto; }

.phone-games {
  margin: 0 14px 4px;
  padding: 12px;
  border: 1px solid rgba(166, 255, 77, .3);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(166,255,77,.08), rgba(0,245,255,.04)), rgba(4,10,22,.28);
}
.phone-games-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 9px;
}
.phone-games-head h3 { margin: 0; color: var(--ink); font-size: .94rem; }
.phone-games-head p { margin: 3px 0 0; color: var(--muted); font-size: .7rem; }
.phone-games-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(166,255,77,.48);
  border-radius: 9px;
  background: rgba(166,255,77,.1);
  font-size: 1rem;
}
.phone-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.phone-game-card {
  position: relative;
  min-width: 0;
  padding: 8px 30px 8px 9px;
  border-color: rgba(166,255,77,.32);
}
.phone-game-card .game-thumb { width: 40px; height: 40px; }
.phone-game-card .game-info strong { font-size: .82rem; }
.phone-game-card .game-info small { font-size: .62rem; }
.phone-ready-badge {
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: .82rem;
  line-height: 1;
  filter: saturate(.9);
}
html[dir="rtl"] .phone-game-card { padding-right: 9px; padding-left: 30px; }
html[dir="rtl"] .phone-ready-badge { right: auto; left: 8px; }
@media (max-width: 760px) {
  .phone-game-grid { grid-template-columns: 1fr; }
  .phone-game-card { padding-top: 7px; padding-bottom: 7px; }
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
  padding: 14px;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel-2);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

/* Games can opt into a key gate with data-access-key="...".  Public games
   remain untouched until an owner decides which key should unlock one. */
.game-card.loony-key-game,
.quiz-menu-item.loony-key-game { position:relative; }
.game-card.is-key-locked,
.quiz-menu-item.is-key-locked { filter:saturate(.55) brightness(.73); }
.game-card.is-key-locked { cursor:not-allowed; }
.loony-key-lock {
  position:absolute; z-index:4; right:10px; top:10px;
  max-width:calc(100% - 20px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  border:1px solid rgba(255,221,133,.68); border-radius:999px;
  padding:4px 8px; background:rgba(23,12,43,.88); color:#ffe29b;
  font-size:11px; font-weight:800; letter-spacing:.02em;
  box-shadow:0 3px 12px rgba(0,0,0,.35);
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 255, 0.7);
  background: rgba(0, 245, 255, 0.07);
  box-shadow: 0 0 26px rgba(0, 245, 255, 0.18);
}

.game-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: #0a1122;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-info { min-width: 0; display: grid; gap: 2px; }
.game-info strong {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-info small {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-card.featured {
  border-color: rgba(166, 255, 77, 0.45);
  background: linear-gradient(120deg, rgba(166, 255, 77, 0.1), transparent 60%), var(--panel-2);
}
.game-card.featured:hover { border-color: var(--lime); box-shadow: 0 0 26px rgba(166, 255, 77, 0.22); }
.game-card.featured .game-thumb { border-color: rgba(166, 255, 77, 0.5); }

.draw-live-card {
  position: relative;
  grid-column: span 2;
  min-height: 82px;
  padding: 10px 13px;
  overflow: hidden;
  border-color: rgba(34, 211, 238, .65)!important;
  background:
    radial-gradient(circle at 92% 15%, rgba(255,61,242,.16), transparent 38%),
    linear-gradient(120deg, rgba(0,245,255,.14), rgba(99,102,241,.09) 58%, rgba(166,255,77,.08)),
    var(--panel-2)!important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.draw-live-card::after { content:"";position:absolute;inset:auto -18px -28px auto;width:86px;height:86px;border:1px solid rgba(34,211,238,.16);border-radius:50%;pointer-events:none; }
.draw-live-card .game-thumb { width:58px;height:58px;border:2px solid rgba(34,211,238,.62)!important;border-radius:14px; }
.draw-live-card .game-info { padding-right:62px;gap:4px; }
.draw-live-card .game-info strong { color:#eaffff;font-size:1rem;white-space:normal;text-overflow:clip; }
.draw-live-card .game-info small { color:#b7c8dc;text-transform:none;letter-spacing:0;line-height:1.25;white-space:normal; }
.draw-card-badge { position:absolute;right:10px;top:10px;padding:3px 6px;border:1px solid rgba(166,255,77,.58);border-radius:999px;color:#caff96;background:rgba(45,94,28,.3);font-size:.48rem;font-weight:950;letter-spacing:.08em; }
.draw-live-card:hover { border-color:#22d3ee!important;box-shadow:0 0 30px rgba(34,211,238,.24)!important; }
html[dir="rtl"] .draw-live-card .game-info{padding-right:0;padding-left:62px}html[dir="rtl"] .draw-card-badge{right:auto;left:10px}
@media(max-width:760px){.draw-live-card{grid-column:span 1}}

.flag-simulation-card {
  position: relative;
  overflow: hidden;
  gap: 8px;
  padding-inline: 9px;
  border-color: rgba(76, 238, 255, 0.58);
  background:
    linear-gradient(120deg, rgba(0, 245, 255, 0.14), transparent 48%),
    linear-gradient(300deg, rgba(255, 61, 242, 0.1), transparent 52%),
    var(--panel-2);
}
.flag-simulation-card:hover {
  border-color: #4ceeff;
  box-shadow: 0 0 28px rgba(0, 245, 255, 0.24), inset 0 0 18px rgba(255, 61, 242, 0.06);
}
.flag-simulation-card .game-thumb {
  border-color: rgba(76, 238, 255, 0.72);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.2);
}
.flag-simulation-card .game-info strong { color: #eaffff; font-size: 0.85rem; }
.flag-simulation-card .game-info small { color: #a9d9e4; font-size: 0.68rem; letter-spacing: 0; }
.flag-simulation-launch {
  width: 26px;
  height: 26px;
  margin-left: auto;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 238, 255, 0.62);
  border-radius: 50%;
  color: #071018;
  background: #4ceeff;
  box-shadow: 0 0 15px rgba(76, 238, 255, 0.3);
  font-size: 11px;
  line-height: 1;
  padding-left: 2px;
}
html[dir="rtl"] .flag-simulation-launch {
  margin-left: 0;
  margin-right: auto;
}

.quiz-menu { grid-column: 1 / -1; }
.quiz-menu summary { list-style: none; cursor: pointer; }
.quiz-menu summary::-webkit-details-marker { display: none; }
.quiz-menu-summary {
  border-color: rgba(255, 61, 242, 0.45);
  background: linear-gradient(120deg, rgba(255, 61, 242, 0.11), transparent 62%), var(--panel-2);
}
.quiz-menu-summary:hover { border-color: var(--pink); box-shadow: 0 0 26px rgba(255, 61, 242, 0.2); }
.quiz-menu-chevron {
  margin-left: auto;
  color: var(--pink);
  font-size: 0.82rem;
  transition: transform 160ms ease;
}
.quiz-menu[open] .quiz-menu-chevron { transform: rotate(180deg); }
.quiz-menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 61, 242, 0.22);
  border-radius: 12px;
  background: rgba(5, 9, 22, 0.82);
}
.quiz-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.quiz-menu-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 61, 242, 0.65);
  background: rgba(255, 61, 242, 0.08);
}
.quiz-menu-item img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.quiz-menu-item span { display: grid; gap: 2px; min-width: 0; }
.quiz-menu-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; }
.quiz-menu-item small { color: var(--muted); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Chat panel ─────────────────────────────────────────────────────────── */
.chat-panel {
  display: flex;
  flex-direction: column;
  height: min(70vh, 620px);
  position: sticky;
  top: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(0,245,255,.18), transparent 37%),
    radial-gradient(circle at 100% 100%, rgba(255,61,242,.13), transparent 42%),
    linear-gradient(160deg, rgba(17,59,93,.94), rgba(7,22,46,.96));
  border-color: rgba(105, 242, 255, .44);
  box-shadow: inset 0 0 40px rgba(0,245,255,.08), 0 20px 65px rgba(0,0,0,.34);
}

.chat-panel.chat-window-enabled {
  will-change: transform;
  z-index: 20;
  resize: both;
  overflow: hidden;
  min-width: 360px;
  min-height: 300px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
}
.chat-panel.chat-window-enabled::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border-right: 3px solid rgba(0,245,255,.72);
  border-bottom: 3px solid rgba(0,245,255,.72);
  border-radius: 0 0 4px 0;
}
.chat-panel.chat-window-enabled.is-folded {
  z-index: 20;
  resize: none;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.chat-panel.chat-window-enabled.is-folded::after { display: none; }
.chat-panel.chat-window-enabled.is-moving {
  z-index: 100;
  box-shadow: inset 0 0 30px rgba(0, 245, 255, 0.06), 0 24px 80px rgba(0, 0, 0, 0.62);
}
.chat-window-head { gap: 12px; direction: ltr; }
.chat-window-head h2 { direction: rtl; }
.chat-panel.chat-window-enabled .chat-window-head {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.chat-panel.chat-window-enabled.is-moving .chat-window-head { cursor: grabbing; }
.chat-window-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; order: 99; }
.chat-window-fold {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(0, 245, 255, 0.32);
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.08);
  color: var(--cyan);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.chat-window-fold:hover { background: rgba(0, 245, 255, 0.18); color: #fff; }
.chat-panel.is-folded {
  overflow: visible;
}
.chat-panel.is-folded > :not(.chat-window-head) { display: none !important; }
.chat-panel.is-folded .chat-window-head { position:absolute; left:0; bottom:0; width:54px; height:54px; padding:0; border:0; border-radius:50%; display:block; pointer-events:auto; background:rgba(5,16,31,.96); box-shadow:0 8px 30px rgba(0,0,0,.42),0 0 18px rgba(0,245,255,.16); }
.chat-panel.is-folded .chat-window-head h2 { display:none; }
.chat-panel.is-folded .chat-window-actions { width:54px; height:54px; margin:0; }
.chat-panel.is-folded .chat-window-fold {
  width:54px;
  height:54px;
  border:0;
  border-radius:50%;
  background:rgba(0,245,255,.12);
  font-size:1.35rem;
}
.chat-panel.is-folded .chat-window-fold:hover { background:rgba(0,245,255,.24); }

.chat-body {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(190px, 36%) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 10px 10px, rgba(193,247,255,.12) 1px, transparent 1.6px),
    radial-gradient(circle at 28px 28px, rgba(166,255,77,.08) 1px, transparent 1.7px),
    linear-gradient(135deg, rgba(0,245,255,.045) 25%, transparent 25%) 0 0/42px 42px,
    linear-gradient(160deg, rgba(6,34,61,.82), rgba(7,17,38,.88));
}
.chat-main {
  direction: ltr;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: rgba(3, 16, 35, .26);
}
html[dir="rtl"] .chat-users-panel,
html[dir="rtl"] .chat-main { direction: rtl; }

.chat-users-panel {
  direction: ltr;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(166, 255, 77, 0.18);
  background: linear-gradient(90deg, rgba(166, 255, 77, 0.055), rgba(4, 9, 20, 0.28));
}
.chat-users-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 10px 10px 6px;
  color: #b9c9d8;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}
.chat-users-title strong { white-space: nowrap; }
.chat-online-badge { font-size: 0.72rem; font-weight: 800; color: var(--lime); letter-spacing: 0; }
.chat-online-names {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 8px 9px;
  font-size: 0.72rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-online-user {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.chat-online-dot { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:#73f594; box-shadow:0 0 8px rgba(115,245,148,.75); }
.chat-online-user-name { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.chat-user-tag { flex:0 0 auto; padding:2px 5px; border-radius:5px; background:rgba(0,220,232,.11); color:#83f6ff; font-size:.52rem; font-weight:900; letter-spacing:.08em; }
.chat-user-tag.is-bot { background:rgba(255,179,71,.13); color:#ffd18a; }
.chat-online-avatar { width:22px; height:22px; flex:0 0 22px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid rgba(0,220,232,.38); background:rgba(0,220,232,.12); color:var(--cyan); font-size:.62rem; font-weight:900; background-size:cover; background-position:center; }
.chat-online-avatar.has-image { color:transparent; }
.chat-online-empty { padding:8px 6px; color:var(--muted); text-align:center; font-size:.7rem; }
.chat-duel-btn { flex:0 0 auto; border:1px solid #ffb347; border-radius:5px; padding:2px 6px; background:rgba(255,179,71,.12); color:#ffd18a; font-size:.62rem; font-weight:800; cursor:pointer; }
.chat-duel-btn:hover { background:rgba(255,179,71,.25); }
.chat-duel-btn:disabled { opacity:.6; cursor:default; }
.chat-duel-invites { padding:8px 10px; border-bottom:1px solid rgba(255,179,71,.28); background:rgba(255,179,71,.08); }
.chat-duel-invite { color:#f8fbff; font-size:.76rem; line-height:1.35; }
.chat-duel-actions { display:flex; gap:7px; margin-top:7px; }
.chat-duel-actions button { border-radius:6px; padding:5px 10px; font-weight:800; cursor:pointer; }
.chat-duel-accept { border:1px solid #64e887; background:rgba(100,232,135,.14); color:#79f29a; }
.chat-duel-decline { border:1px solid #ff6478; background:rgba(255,100,120,.12); color:#ff8b9a; }

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 245, 255, 0.3) transparent;
  background:
    radial-gradient(circle at 8px 8px, rgba(189,244,255,.13) 1px, transparent 1.55px),
    linear-gradient(135deg, rgba(255,255,255,.022) 25%, transparent 25%) 0 0/32px 32px;
}
.chat-messages::-webkit-scrollbar { width: 8px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0, 245, 255, 0.25); border-radius: 8px; }

.chat-presence {
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}
.chat-presence.is-entered { color: #55e879; }
.chat-presence.is-left { color: #ff5c6c; }

.chat-msg {
  position: relative;
  font-size: 0.86rem;
  line-height: 1.4;
  word-break: break-word;
  padding: 8px 10px;
  border: 1px solid rgba(166, 239, 255, .12);
  border-radius: 13px 13px 13px 4px;
  background: linear-gradient(135deg, rgba(25, 78, 109, .54), rgba(9, 36, 66, .58));
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
}
.chat-name { font-weight: 800; margin-right: 6px; }
.chat-text { color: #dfe8f2; }

/* Per-message delete button — only shown when admin mode is on. */
.chat-del {
  display: none;
  position: absolute;
  top: -2px;
  inset-inline-end: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: rgba(255, 61, 90, 0.18);
  color: #ff8a9a;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}
.chat-del:hover { background: rgba(255, 61, 90, 0.4); color: #fff; }
.chat-panel.chat-admin .chat-msg { padding-inline-end: 22px; }
.chat-panel.chat-admin .chat-del { display: block; }

/* ── Admin bar ──────────────────────────────────────────────────────────── */
.chat-admin-bar {
  margin: 8px;
  border: 2px solid rgba(255, 61, 242, 0.52);
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(255, 61, 242, 0.08), 0 12px 30px rgba(0,0,0,.28);
  background: linear-gradient(145deg, rgba(29, 10, 43, .97), rgba(4, 12, 27, .98));
  padding: 12px;
  max-height: 390px;
  overflow-y: auto;
}
.chat-admin-section { padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); margin-bottom: 9px; }
.chat-admin-section .chat-admin-sec { margin-top: 0; }
.chat-admin-danger { border-color: rgba(255, 61, 90, .3); }
.chat-admin-help { margin-top: 5px; color: var(--muted); font-size: .66rem; }
.chat-admin-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--hot);
  margin-bottom: 8px;
}
.chat-admin-title .chat-admin-title-text { font-size: 0.8rem; font-weight: 800; color: var(--hot); text-transform: none; letter-spacing: 0; }
.chat-admin-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 61, 242, 0.38);
  border-radius: 7px;
  color: #ff9bf7;
  background: rgba(255, 61, 242, 0.09);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.chat-admin-close:hover { color: #fff; background: rgba(255, 61, 242, 0.22); }
.chat-admin-clear {
  width: 100%;
  padding: 8px 0;
  border: 1px solid rgba(255, 61, 90, 0.4);
  border-radius: 8px;
  background: rgba(255, 61, 90, 0.12);
  color: #ff9aa8;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.chat-admin-clear:hover { background: rgba(255, 61, 90, 0.25); color: #fff; }
.chat-admin-sec {
  margin: 10px 0 5px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.chat-admin-empty { font-size: 0.76rem; color: var(--muted); }
.chat-admin-list { display: flex; flex-direction: column; gap: 4px; }
.chat-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}
.chat-admin-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-admin-mute, .chat-admin-unmute {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.chat-admin-mute:hover { border-color: #ff8a9a; color: #ff8a9a; }
.chat-admin-unmute:hover { border-color: var(--lime); color: var(--lime); }
.chat-admin-deepseek {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid rgba(0, 220, 232, 0.24);
  border-radius: 9px;
  background: rgba(0, 220, 232, 0.055);
}
.chat-admin-deepseek .chat-admin-sec { margin-top: 0; color: var(--cyan); }
.chat-admin-key-exists {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(160, 255, 80, .58);
  border-radius: 7px;
  background: rgba(94, 220, 72, .12);
  color: var(--lime);
  box-shadow: inset 0 0 14px rgba(94, 220, 72, .06);
  font-size: .75rem;
  font-weight: 900;
  text-align: center;
}
.chat-admin-key-exists[hidden] { display: none; }
.chat-admin-deepseek-key {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(3, 9, 22, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  outline: none;
}
.chat-admin-deepseek-key:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0, 220, 232, 0.12); }
.chat-admin-deepseek-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.chat-admin-deepseek-actions button {
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}
.chat-admin-deepseek-save { border-color: rgba(0, 220, 232, 0.45) !important; }
.chat-admin-deepseek-test { border-color: rgba(160, 255, 80, 0.4) !important; }
.chat-admin-deepseek-status { min-height: 16px; margin-top: 7px; font-size: 0.72rem; color: var(--muted); overflow-wrap: anywhere; }
.chat-admin-deepseek-status.ok { color: var(--lime); }
.chat-admin-deepseek-status.warn { color: #ffd56a; }
.chat-admin-deepseek-status.error { color: #ff8a9a; }
.chat-admin-deepseek-status.working { color: var(--cyan); }
.chat-admin-deepseek-note { margin-top: 4px; font-size: 0.64rem; line-height: 1.35; color: var(--muted); }
.chat-admin-bot-avatar { border-color:rgba(0,220,232,.28); background:rgba(0,220,232,.045); }
.chat-admin-bot-avatar-row { display:flex; align-items:center; gap:10px; margin-top:7px; }
.chat-admin-bot-preview { width:58px; height:58px; flex:0 0 58px; border:2px solid rgba(141,233,255,.62); border-radius:50%; background-position:center; background-size:cover; box-shadow:0 0 18px rgba(0,220,232,.18); }
.chat-admin-bot-avatar-actions { display:flex; flex:1; flex-direction:column; gap:6px; }
.chat-admin-bot-upload,.chat-admin-bot-default { display:flex; align-items:center; justify-content:center; min-height:31px; box-sizing:border-box; padding:6px 8px; border:1px solid var(--line); border-radius:7px; color:#dffcff; background:rgba(0,220,232,.09); font:inherit; font-size:.7rem; font-weight:850; text-align:center; cursor:pointer; }
.chat-admin-bot-upload:hover,.chat-admin-bot-default:hover { border-color:var(--cyan); background:rgba(0,220,232,.18); color:#fff; }
.chat-admin-bot-upload input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.chat-admin-bot-status { min-height:15px; margin-top:6px; color:var(--muted); font-size:.68rem; line-height:1.35; overflow-wrap:anywhere; }
.chat-admin-bot-status.ok { color:var(--lime); }
.chat-admin-bot-status.error { color:#ff8a9a; }
.chat-admin-bot-status.working { color:var(--cyan); }
.chat-admin-rewards { border-color: rgba(255, 212, 94, .32); background: rgba(255, 202, 72, .055); }
.chat-admin-rewards .chat-admin-sec { color: #ffe49a; }
.chat-admin-rewards input { width:100%; box-sizing:border-box; margin-top:7px; padding:8px 9px; border:1px solid var(--line); border-radius:7px; background:rgba(1,8,20,.75); color:#eef8ff; font:inherit; font-size:.74rem; outline:none; }
.chat-admin-rewards input:focus { border-color:#ffd56a; box-shadow:0 0 0 2px rgba(255,213,106,.13); }
.chat-admin-reward-row { display:grid; grid-template-columns:.58fr 1.42fr; gap:6px; }
.chat-admin-reward-grant { width:100%; margin-top:7px; padding:8px 6px; border:1px solid rgba(255,213,106,.55); border-radius:7px; background:rgba(121,75,12,.38); color:#ffe7a7; font:inherit; font-size:.75rem; font-weight:900; cursor:pointer; }
.chat-admin-reward-grant:hover { background:rgba(185,111,16,.52); color:#fff7d8; }
.chat-admin-reward-status { min-height:16px; margin-top:7px; color:var(--muted); font-size:.7rem; line-height:1.35; overflow-wrap:anywhere; }
.chat-admin-reward-status.ok { color:var(--lime); }
.chat-admin-reward-status.error { color:#ff8a9a; }
.chat-admin-reward-status.working { color:var(--cyan); }
.chat-msg { display: flex; align-items: flex-start; gap: 8px; }
.chat-avatar { width: 29px; height: 29px; flex: 0 0 29px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(0,220,232,.38); background: rgba(0,220,232,.12); color: var(--cyan); font-size: .72rem; font-weight: 900; background-size: cover; background-position: center; }
.chat-avatar.has-image { color: transparent; }
.chat-content { min-width: 0; flex: 1; }
.chat-content .chat-name { display: block; margin-bottom: 1px; }
.chat-muted-note { color: #ff8a9a; }

.chat-composer {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-note { margin: 0; text-align: center; color: var(--muted); font-size: 0.82rem; }

.chat-form { display: flex; gap: 8px; }
.chat-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.86rem;
}
.chat-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.15); }

.chat-send {
  padding: 0 16px;
  border: none;
  border-radius: 9px;
  color: #050914;
  background: var(--cyan);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.3);
}
.chat-send:hover { opacity: 0.88; }

.chat-signin {
  width: 100%;
  padding: 11px 0;
  border: none;
  border-radius: 9px;
  color: #050914;
  background: var(--lime);
  font: inherit;
  font-weight: 850;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(166, 255, 77, 0.3);
}
.chat-signin:hover { opacity: 0.88; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .chat-panel { position: static; height: 440px; }
  /* Stacked: games first (primary content), chat below. */
  .games-panel { order: 1; }
  #loony-chat-slot { order: 2; }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .layout { grid-template-columns: minmax(430px, 46%) minmax(0, 1fr); }
  .chat-body { grid-template-columns: minmax(170px, 38%) minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .site-shell { padding: 14px 14px 14px 4px; }
  .game-grid { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; }
  .header-actions { align-items: flex-end; flex-direction: column; }
}

/* 2026-08-24: higher-contrast Games page */
body.games-page {
  --ink: #ffffff;
  --muted: #d7e4f2;
  --panel: rgba(5, 18, 34, 0.97);
  --panel-2: #102d4a;
  --line: rgba(64, 228, 255, 0.88);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 245, 255, 0.22), transparent 30%),
    radial-gradient(circle at 90% 7%, rgba(255, 61, 242, 0.18), transparent 29%),
    linear-gradient(145deg, #020814, #06162b 50%, #0a1e3b);
}
.games-page .brand-sub,
.games-page .game-info small,
.games-page .latest-shortcut small,
.games-page .phone-games-head p,
.games-page .apk-games-head p,
.games-page .pc-downloads-head p,
.games-page .apk-game-card small,
.games-page .pc-download-card small,
.games-page .quiz-menu-item small {
  color: #d7e4f2;
}
.games-page .panel {
  border: 2px solid rgba(64, 228, 255, 0.78);
  background: rgba(4, 16, 31, 0.97);
  box-shadow: inset 0 0 34px rgba(0, 245, 255, 0.055), 0 20px 65px rgba(0, 0, 0, 0.58);
}
.games-page .panel-head {
  border-bottom: 2px solid rgba(64, 228, 255, 0.48);
  background: #071d35;
}
.games-page .panel-head h2 {
  color: #ffffff;
  font-size: 1.12rem;
}
.games-page .back-to-main-btn {
  border: 2px solid #c4ff80;
  color: #07120b;
  background: #a6ff4d;
  box-shadow: 0 0 18px rgba(166, 255, 77, 0.3);
}
.games-page .back-to-main-btn:hover { color: #020704; background: #ceff9d; }
.games-page .whatsapp-share-btn {
  border: 2px solid #69f59d;
  color: #04150b;
  background: #4ee283;
}
.games-page .whatsapp-share-btn:hover { color: #020b06; background: #80f3aa; }
.games-page .language-toggle {
  border: 2px solid #ff9bf7;
  color: #180418;
  background: #ff72f3;
}
.games-page .language-toggle:hover { color: #120312; background: #ffaff8; }
.games-page .latest-shortcuts-title { color: #c7ff8f; }
.games-page .latest-shortcut {
  border: 2px solid #8ee84b;
  background: linear-gradient(135deg, #173b27, #102f43);
}
.games-page .latest-shortcut.notes {
  border-color: #ff72f3;
  background: linear-gradient(135deg, #3b173c, #102f43);
}
.games-page .phone-games {
  border: 2px solid #83dd43;
  background: linear-gradient(135deg, #102f20, #092536);
}
.games-page .phone-games-head h3 { color: #cfff9c; }
.games-page .phone-game-card {
  border: 2px solid #579d35;
  background: #133522;
}
.games-page .phone-game-card:hover {
  border-color: #b7ff7f;
  background: #1c4b2f;
  box-shadow: 0 0 22px rgba(166, 255, 77, 0.24);
}
.games-page .apk-games {
  border: 2px solid #29dbef;
  background: linear-gradient(135deg, #092d40, #121b35);
}
.games-page .apk-games-head h3 { color: #8df7ff; }
.games-page .apk-game-card {
  border: 2px solid #267f99;
  color: #ffffff;
  background: #0d3043;
}
.games-page .apk-game-card:hover { border-color: #76f5ff; background: #15465b; }
.games-page .pc-downloads {
  border: 2px solid #a58cff;
  background: linear-gradient(135deg, #241b49, #101d39);
}
.games-page .pc-downloads-head h3 { color: #cabdff; }
.games-page .pc-download-card {
  border: 2px solid #735fc7;
  color: #ffffff;
  background: #241d49;
}
.games-page .pc-download-card:hover { border-color: #c4b8ff; background: #342866; }
.games-page .game-card {
  border: 2px solid #315d83;
  color: #ffffff;
  background: #102d4a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.games-page .game-card:hover {
  border-color: #62eeff;
  background: #174064;
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.24);
}
.games-page .game-info strong,
.games-page .latest-shortcut strong,
.games-page .apk-game-card strong,
.games-page .pc-download-card strong,
.games-page .quiz-menu-item strong {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}
.games-page .game-thumb,
.games-page .quiz-menu-item img {
  border: 2px solid rgba(195, 239, 255, 0.52);
  background: #030b18;
}
.games-page .game-card.featured {
  border-color: #8ee84b;
  background: linear-gradient(120deg, #244225, #102d4a 70%);
}
.games-page .draw-live-card {
  border-color: #51eaff !important;
  background: linear-gradient(120deg, #113a54, #35204f 62%, #1f4228) !important;
}
.games-page .quiz-menu-summary {
  border-color: #ff72f3;
  background: linear-gradient(120deg, #421944, #102d4a 70%);
}
.games-page .quiz-menu-list {
  border: 2px solid #d45ccb;
  background: #080f20;
}
.games-page .quiz-menu-item {
  border: 2px solid #64416e;
  color: #ffffff;
  background: #24162c;
}
.games-page .quiz-menu-item:hover { border-color: #ff83f5; background: #442047; }
.games-page a:focus-visible,
.games-page button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
/* Exact green PC browser games panel shown separately from PC downloads */
.pc-browser-games {
  margin: 0 14px 14px;
  padding: 16px;
  border: 3px solid #75d83d;
  border-radius: 24px;
  background: #0b2a1f;
  box-shadow: inset 0 0 24px rgba(117, 216, 61, .06);
}
.pc-browser-games-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 2px 14px; }
.pc-browser-games-head h3 { margin:0; color:#caff91; font-size:1.2rem; }
.pc-browser-games-head p { margin:5px 0 0; color:#d9e4ee; font-size:.78rem; line-height:1.35; }
.pc-browser-games-icon { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; border:2px solid #75d83d; border-radius:11px; background:#173b28; font-size:1.1rem; }
.pc-browser-game-list { display:grid; grid-template-columns:1fr; gap:10px; }
.pc-browser-game-card { display:flex; align-items:center; gap:14px; min-width:0; padding:13px 15px; border:3px solid #35658b; border-radius:20px; color:#fff; text-decoration:none; background:#133653; box-shadow:inset 0 1px 0 rgba(255,255,255,.07); transition:transform 140ms ease,border-color 140ms ease,background 140ms ease,box-shadow 140ms ease; }
.pc-browser-game-card:hover { transform:translateY(-2px); border-color:#67dff2; background:#19486e; box-shadow:0 0 24px rgba(0,245,255,.2); }
.pc-browser-game-card .game-thumb { width:58px; height:58px; flex:0 0 58px; border:3px solid #688399; border-radius:16px; }
.pc-browser-game-card .game-info { flex:1; }
.pc-browser-game-card .game-info strong { color:#fff; font-size:1rem; white-space:normal; }
.pc-browser-game-card .game-info small { color:#e0e9f2; font-size:.72rem; line-height:1.35; white-space:normal; }
.pc-browser-play { flex:0 0 auto; padding:6px 9px; border:2px solid #c9ff91; border-radius:999px; color:#061018; background:#a6ff4d; font-size:.62rem; font-weight:950; letter-spacing:.04em; }
@media (max-width:560px) {
.pc-browser-games { padding:12px; border-radius:20px; }
.pc-browser-game-card { padding:10px; gap:10px; }
.pc-browser-game-card .game-thumb { width:50px; height:50px; flex-basis:50px; }
.pc-browser-play { padding:5px 7px; font-size:.56rem; }
}

/* Falling Notes Learn Music panel */
.games-page .music-learning-games { border:2px solid #e7b85c; background:linear-gradient(135deg,#3b2b16,#142f43); }
.games-page .music-learning-games .phone-games-head h3 { color:#ffe2a1; }
.games-page .music-learning-games .midi-games-icon { border-color:#e7b85c; color:#ffe2a1; background:#46351d; }
.games-page .music-learning-card { border:2px solid #b98737; background:linear-gradient(135deg,#4a351b,#163d56); }
.games-page .music-learning-card:hover { border-color:#ffe2a1; background:linear-gradient(135deg,#5b411f,#1b4a68); box-shadow:0 0 22px rgba(231,184,92,.25); }
.games-page .music-learning-card .midi-ready-badge { width:auto; min-width:42px; padding:0 7px; border-color:#e7b85c; color:#ffe2a1; background:#46351d; font-size:.58rem; font-weight:900; letter-spacing:.08em; }