:root {
  color-scheme: light;
  --bg: #eef7ff;
  --bg-2: #e7f2fc;
  --panel: rgba(255,255,255,.58);
  --panel-strong: rgba(255,255,255,.82);
  --panel-soft: rgba(247,251,255,.56);
  --line: rgba(255,255,255,.84);
  --line-strong: rgba(142,173,207,.28);
  --text: #172943;
  --muted: #718198;
  --muted-2: #93a2b5;
  --primary: #5266e9;
  --primary-2: #6c81ff;
  --cyan: #39bfd8;
  --yellow: #f7c75b;
  --pink: #e58acb;
  --purple: #8f70f4;
  --green: #27b78a;
  --red: #e45f72;
  --shadow: 0 18px 45px rgba(52, 84, 130, .09), inset 0 1px 0 rgba(255,255,255,.72);
  --shadow-soft: 0 8px 25px rgba(46, 72, 113, .07), inset 0 1px 0 rgba(255,255,255,.74);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 15px;
  --content-max: 1500px;
  font-family: "Vazirmatn", Tahoma, sans-serif;
}
html[data-theme="night"] {
  color-scheme: dark;
  --bg: #0c0b19;
  --bg-2: #121027;
  --panel: rgba(27,24,53,.68);
  --panel-strong: rgba(28,25,56,.88);
  --panel-soft: rgba(32,29,63,.54);
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(177,157,255,.18);
  --text: #f4f1ff;
  --muted: #a09bbd;
  --muted-2: #777291;
  --primary: #9c83ff;
  --primary-2: #b09fff;
  --cyan: #4dd9ed;
  --yellow: #ffd36b;
  --pink: #f08ad3;
  --purple: #9d83ff;
  --green: #4dd6aa;
  --red: #ff7187;
  --shadow: 0 20px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.07);
  --shadow-soft: 0 8px 25px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.055);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 72% -12%, rgba(100,184,240,.22), transparent 42%), radial-gradient(ellipse at 7% 35%, rgba(247,199,91,.13), transparent 35%), var(--bg); color: var(--text); font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 14px; line-height: 1.7; overflow-x: hidden; transition: background .3s ease, color .3s ease; }
html[data-theme="night"] body { background: radial-gradient(ellipse at 84% -10%, rgba(104,64,190,.22), transparent 40%), radial-gradient(ellipse at 4% 52%, rgba(39,154,214,.09), transparent 35%), var(--bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(80,108,240,.4); outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; filter: blur(85px); opacity: .30; z-index: -1; }
.ambient-one { top: 18%; right: -250px; background: #8ce2f2; }
.ambient-two { bottom: 2%; left: -270px; background: #bba6ff; }
html[data-theme="night"] .ambient { opacity: .18; }
.glass-surface { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-soft); -webkit-backdrop-filter: blur(24px) saturate(145%); backdrop-filter: blur(24px) saturate(145%); }
.site-header { height: 82px; position: sticky; top: 0; z-index: 80; display: flex; align-items: center; gap: 26px; padding: 0 clamp(16px, 3vw, 48px); border-width: 0 0 1px; border-radius: 0; background: color-mix(in srgb, var(--panel-strong) 86%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 160px; }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 3px; background: linear-gradient(140deg, var(--primary), #8b79f7 55%, var(--cyan)); transform: rotate(-4deg); box-shadow: 0 8px 22px rgba(91,101,225,.25); }
.brand-mark span { display: block; width: 5px; border-radius: 5px; background: white; transform: skew(-13deg); }
.brand-mark span:nth-child(1) { height: 14px; opacity: .72; }
.brand-mark span:nth-child(2) { height: 24px; }
.brand-mark span:nth-child(3) { height: 18px; opacity: .87; }
.brand-word { display: flex; flex-direction: column; font-size: 20px; font-weight: 800; line-height: 1.14; letter-spacing: -.7px; }
.brand-word > span { color: var(--primary); display: inline; }
.brand-word small { color: var(--muted); font-family: Arial,sans-serif; font-weight: 700; font-size: 8px; letter-spacing: 2.1px; margin-top: 5px; }
.global-search { display: flex; align-items: center; gap: 11px; width: min(530px, 42vw); height: 45px; margin-inline: auto; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel-soft); transition: box-shadow .2s ease, border-color .2s ease; }
.global-search:focus-within { border-color: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent); }
.global-search svg { flex: 0 0 auto; color: var(--muted); width: 19px; }
.global-search input { background: transparent; border: 0; outline: 0; flex: 1; min-width: 0; color: var(--text); }
.global-search input::placeholder { color: var(--muted-2); }
.global-search kbd { font-size: 10px; color: var(--muted-2); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 5px; direction: ltr; }
.header-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); position: relative; transition: .2s ease; }
.icon-button:hover { color: var(--primary); transform: translateY(-1px); }
.icon-button svg { width: 19px; }
.notification-dot { position: absolute; right: 9px; top: 8px; width: 6px; height: 6px; border-radius: 10px; background: var(--pink); border: 1px solid var(--panel-strong); }
.header-auth { display: flex; align-items: center; gap: 8px; margin-right: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 13px; padding: 10px 16px; font-weight: 700; font-size: 12px; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 24%, transparent); }
.btn-primary:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 34%, transparent); }
.btn-soft { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-yellow { background: linear-gradient(135deg,#ffdb7d,#f2b944); color: #513d0e; box-shadow: 0 8px 18px rgba(237,181,63,.17); }
.btn-danger-soft { color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); border-color: color-mix(in srgb, var(--red) 18%, transparent); }
.btn-sm { padding: 7px 11px; border-radius: 10px; font-size: 11px; }
.notification-popover { position: absolute; top: 70px; left: clamp(20px, 4vw, 70px); width: 320px; padding: 17px; border-radius: 22px; z-index: 100; }
.popover-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.tiny-count { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); font-size: 11px; }
.notification-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.notice-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; }
.notice-icon.purple { background: color-mix(in srgb, var(--purple) 15%, transparent); color: var(--purple); }
.notice-icon.cyan { background: color-mix(in srgb, var(--cyan) 15%, transparent); color: var(--cyan); }
.notification-item b { display: block; font-size: 12px; }
.notification-item p { margin: 1px 0; font-size: 11px; color: var(--muted); }
.notification-item small { font-size: 10px; color: var(--muted-2); }
.text-button { border: 0; padding: 4px; color: var(--primary); background: transparent; font-weight: 700; font-size: 11px; }

.workspace { display: grid; grid-template-columns: minmax(0,1fr) 248px; gap: 24px; width: min(100%, var(--content-max)); margin: 0 auto; padding: 22px clamp(16px,2.4vw,34px) 34px; align-items: start; }
.sidebar { grid-column: 2; grid-row: 1; height: calc(100vh - 106px); min-height: 650px; max-height: 870px; border-radius: 26px; padding: 18px 13px 12px; position: sticky; top: 100px; display: flex; flex-direction: column; overflow: hidden; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 7px 7px 17px; border-bottom: 1px solid var(--line-strong); }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; color: white; font-weight: 800; background: linear-gradient(145deg,#f6c860,#eea3ab 58%,#9a82f4); box-shadow: 0 7px 15px rgba(118,101,202,.17); }
.sidebar-user strong { display: block; font-size: 12px; }
.sidebar-user small { display: block; color: var(--muted); font-size: 10px; }
.online-indicator { width: 7px; height: 7px; margin-right: auto; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 11%, transparent); }
.side-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.nav-section-label { color: var(--muted-2); padding: 8px 12px 4px; font-size: 10px; font-weight: 700; }
.nav-section-spaced { margin-top: 8px; }
.side-link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; color: var(--muted); border: 1px solid transparent; border-radius: 13px; background: transparent; font-size: 12px; text-align: right; transition: .18s ease; }
.side-link:hover { color: var(--text); background: var(--panel-soft); }
.side-link.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--panel)); border-color: color-mix(in srgb, var(--primary) 11%, transparent); font-weight: 700; }
.nav-icon { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 auto; color: currentColor; font-size: 18px; line-height: 1; }
.nav-count { margin-right: auto; font-size: 10px; color: var(--muted); }
.nav-new { margin-right: auto; font-size: 9px; background: color-mix(in srgb, var(--pink) 17%, transparent); color: var(--pink); padding: 2px 6px; border-radius: 6px; }
.chevron { margin-right: auto; font-size: 18px; transition: transform .2s; }
.side-expand[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.subnav { display: flex; flex-direction: column; gap: 2px; padding-right: 32px; }
.sub-link { padding: 7px 10px; font-size: 11px; }
.sidebar-help { margin-top: auto; display: flex; gap: 9px; padding: 13px 11px; border: 1px solid var(--line); background: linear-gradient(145deg, color-mix(in srgb, var(--cyan) 8%, var(--panel)), var(--panel)); border-radius: 18px; }
.help-orb { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 11px; background: color-mix(in srgb,var(--primary) 14%,transparent); color: var(--primary); font-size: 17px; flex: 0 0 auto; }
.sidebar-help b { font-size: 10px; }
.sidebar-help p { margin: 1px 0 3px; font-size: 10px; color: var(--muted); }
.sidebar-help .text-button { font-size: 10px; padding: 0; }
.sidebar-bottom { display: flex; gap: 6px; align-items: center; padding: 12px 7px 0; color: var(--muted-2); font-size: 9px; }
.status-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.version { margin-right: auto; direction: ltr; }
.main-content { grid-column: 1; grid-row: 1; min-width: 0; min-height: 700px; }
.loading-state { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 55vh; color: var(--muted); }
.loader { width: 24px; height: 24px; border: 2px solid var(--line-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page { animation: page-in .35s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 9px 1px 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 800; font-size: 10px; letter-spacing: .1px; }
.eyebrow .eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px color-mix(in srgb,var(--yellow) 18%,transparent); }
h1,h2,h3,h4,p { margin-top: 0; }
h1,h2,h3 { line-height: 1.4; letter-spacing: -.35px; }
h1 { margin: 6px 0 7px; font-size: clamp(24px,3vw,35px); font-weight: 800; }
h2 { margin: 0; font-size: 19px; font-weight: 800; }
h3 { margin: 0; font-size: 14px; font-weight: 800; }
.page-header p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.section { margin-top: 29px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 2px 14px; }
.section-heading p { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.section-heading .view-all { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 700; font-size: 11px; white-space: nowrap; }
.section-title-wrap { display: flex; align-items: center; gap: 9px; }
.section-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb,var(--primary) 11%,var(--panel)); color: var(--primary); font-size: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.panel-pad { padding: clamp(16px,2vw,23px); }
.muted { color: var(--muted); }
.mini-label { font-size: 10px; color: var(--muted); }
.divider { border: 0; border-top: 1px solid var(--line-strong); margin: 16px 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; background: var(--panel-strong); border: 1px solid var(--line); font-size: 10px; font-weight: 700; white-space: nowrap; }
.pill.primary { color: var(--primary); background: color-mix(in srgb,var(--primary) 10%,var(--panel)); border-color: color-mix(in srgb,var(--primary) 12%,transparent); }
.pill.green { color: var(--green); background: color-mix(in srgb,var(--green) 10%,var(--panel)); border-color: color-mix(in srgb,var(--green) 18%,transparent); }
.pill.yellow { color: #9c6d0c; background: color-mix(in srgb,var(--yellow) 24%,var(--panel)); border-color: color-mix(in srgb,var(--yellow) 25%,transparent); }
html[data-theme="night"] .pill.yellow { color: var(--yellow); }
.pill.red { color: var(--red); background: color-mix(in srgb,var(--red) 10%,var(--panel)); border-color: color-mix(in srgb,var(--red) 15%,transparent); }

/* Homepage hero */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) minmax(210px,.66fr); min-height: 258px; padding: clamp(22px,3vw,38px); border-radius: 31px; background: linear-gradient(115deg, color-mix(in srgb,var(--panel-strong) 80%,transparent), color-mix(in srgb,var(--panel) 78%,transparent)), radial-gradient(circle at 78% 30%, rgba(91,112,242,.24), transparent 30%), radial-gradient(circle at 22% 100%, rgba(255,205,88,.22), transparent 37%); border: 1px solid var(--line); box-shadow: var(--shadow); isolation: isolate; }
.hero:before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background: repeating-linear-gradient(90deg, transparent 0 34px, color-mix(in srgb,var(--primary) 28%,transparent) 35px 36px), repeating-linear-gradient(0deg, transparent 0 34px, color-mix(in srgb,var(--cyan) 22%,transparent) 35px 36px); mask-image: linear-gradient(90deg, transparent, black 30%, black 100%); }
.hero-copy { position: relative; z-index: 2; align-self: center; }
.hero-kicker { display: inline-flex; gap: 7px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; color: var(--primary); font-size: 10px; font-weight: 700; }
.hero h1 { max-width: 520px; margin: 13px 0 9px; font-size: clamp(25px,3.3vw,38px); }
.hero h1 span { color: var(--primary); }
.hero-copy > p { max-width: 450px; color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.hero-search { width: min(100%,450px); display: flex; gap: 7px; padding: 5px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-strong); box-shadow: var(--shadow-soft); }
.hero-search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0 11px; color: var(--text); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 210px; }
.hero-orbit { position: absolute; width: 230px; height: 230px; border: 1px solid color-mix(in srgb,var(--primary) 25%,transparent); border-radius: 50%; transform: rotate(-25deg) scaleY(.78); }
.hero-orbit:before,.hero-orbit:after { content: ""; position: absolute; inset: 19px; border-radius: inherit; border: 1px dashed color-mix(in srgb,var(--cyan) 35%,transparent); }
.hero-orbit:after { inset: -15px 50px; transform: rotate(65deg); }
.hero-controller { z-index: 1; width: 190px; height: 125px; border-radius: 34px 34px 45px 45px; background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(173,202,255,.74)); border: 1px solid rgba(255,255,255,.88); box-shadow: 0 23px 45px rgba(68,75,170,.18), inset 0 3px 7px rgba(255,255,255,.94); transform: rotate(-12deg); position: relative; }
html[data-theme="night"] .hero-controller { background: linear-gradient(145deg,#57518d,#242344); border-color: rgba(255,255,255,.24); }
.hero-controller:before { content: ""; position: absolute; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(145deg,#91e9f2,#65b9ec); border: 7px solid rgba(255,255,255,.38); left: 26px; top: 31px; box-shadow: inset 0 3px 9px rgba(23,91,160,.22); }
.hero-controller:after { content: ""; position: absolute; width: 39px; height: 39px; right: 25px; top: 34px; background: radial-gradient(circle at 50% 20%,#f7c76a 0 18%,transparent 20%), radial-gradient(circle at 20% 50%,#9b85f6 0 18%,transparent 20%), radial-gradient(circle at 80% 50%,#e981b4 0 18%,transparent 20%), radial-gradient(circle at 50% 80%,#6cbade 0 18%,transparent 20%); }
.hero-float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel-strong); box-shadow: var(--shadow-soft); font-size: 10px; font-weight: 700; animation: floaty 5s ease-in-out infinite; }
.hero-float-card span { color: var(--green); font-size: 16px; }
.hero-float-card.one { top: 26px; right: 2%; }
.hero-float-card.two { bottom: 20px; left: 0; animation-delay: -2.1s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
.quick-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.quick-card { min-height: 110px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; overflow: hidden; isolation: isolate; position: relative; border-radius: 21px; padding: 15px; border: 1px solid var(--line); background: linear-gradient(110deg,rgba(18,29,56,.78),rgba(35,43,83,.25)), var(--tile-image) center/cover; color: white; box-shadow: var(--shadow-soft); transition: .22s ease; }
.quick-card:before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(1px); background: linear-gradient(0deg,rgba(6,10,25,.7),transparent 85%); }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-card b { display: block; font-size: 12px; }
.quick-card small { display: block; color: rgba(255,255,255,.78); font-size: 10px; margin-top: 3px; }
.quick-symbol { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 19px; flex: 0 0 auto; }
.content-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.net-card { overflow: hidden; border-radius: 21px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; min-width: 0; }
.net-card:hover,.game-card:hover,.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.net-cover { position: relative; height: 142px; overflow: hidden; background: var(--bg-2); }
.net-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.net-card:hover .net-cover img { transform: scale(1.04); }
.net-cover:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(11,15,31,.36),transparent 58%); pointer-events: none; }
.distance-pill { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 4px 8px; border-radius: 999px; font-size: 10px; color: white; background: rgba(17,22,42,.56); border: 1px solid rgba(255,255,255,.27); backdrop-filter: blur(12px); }
.cover-tag { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.85); color: #3c526f; font-size: 10px; font-weight: 700; }
.net-body { padding: 13px 14px 12px; }
.net-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.net-title-row h3 { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.rating span { color: #efa921; font-size: 14px; }
.net-meta { color: var(--muted); font-size: 10px; margin: 4px 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line-strong); padding-top: 11px; }
.metric { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.metric + .metric { border-right: 1px solid var(--line-strong); padding-right: 10px; }
.metric small { color: var(--muted); font-size: 9px; }
.metric strong { font-size: 12px; white-space: nowrap; }
.metric strong em { font-size: 9px; font-weight: 500; color: var(--muted); font-style: normal; }
.matches-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.match-card { padding: 15px; border-radius: 19px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-soft); }
.match-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.match-meta .game-label { font-size: 10px; color: var(--muted); }
.live-dot { color: var(--red); font-size: 9px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.live-dot:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb,var(--red) 10%,transparent); }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 7px; align-items: center; text-align: center; }
.team-badge { width: 42px; height: 42px; margin: 0 auto 7px; border-radius: 14px; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--primary); background: color-mix(in srgb,var(--primary) 13%,var(--panel)); border: 1px solid var(--line); }
.team-badge.alt { color: var(--pink); background: color-mix(in srgb,var(--pink) 12%,var(--panel)); }
.team-name { font-size: 10px; font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { font-size: 20px; font-weight: 800; letter-spacing: 2px; direction: ltr; }
.match-footer { border-top: 1px solid var(--line-strong); margin-top: 14px; padding-top: 10px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; font-size: 10px; }
.tournament-feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: 13px; padding: 12px; }
.tournament-visual { min-height: 260px; position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(0deg,rgba(6,10,25,.78),rgba(17,20,39,.05)), url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1100&q=82") center/cover; color: white; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.tournament-visual:before { content: "VIRA / OPEN 2026"; position: absolute; top: 17px; left: 17px; color: rgba(255,255,255,.86); font: 800 10px Arial,sans-serif; letter-spacing: 2px; }
.tournament-visual h3 { font-size: 23px; max-width: 390px; }
.tournament-visual p { color: rgba(255,255,255,.76); font-size: 11px; margin: 5px 0 13px; }
.tournament-side { display: flex; flex-direction: column; gap: 10px; padding: 10px 7px; }
.tournament-detail { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line-strong); border-radius: 16px; padding: 13px; background: var(--panel-soft); }
.detail-icon { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: var(--primary); background: color-mix(in srgb,var(--primary) 12%,transparent); font-size: 17px; }
.tournament-detail b { display: block; font-size: 11px; }
.tournament-detail small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.tournament-side .btn { margin-top: auto; }
.games-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.game-card { overflow: hidden; border-radius: 19px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-soft); transition: .2s ease; }
.game-cover { height: 133px; position: relative; background: var(--bg-2); overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-cover:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(9,13,25,.32),transparent 60%); }
.game-body { padding: 11px 12px 12px; }
.game-body h3 { font-size: 12px; margin-bottom: 5px; }
.game-body p { color: var(--muted); margin: 0; font-size: 10px; }
.game-footer { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line-strong); }
.game-footer .rating { font-size: 10px; }
.game-footer .pill { font-size: 9px; padding: 3px 7px; }
.category-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.category-card { padding: 15px 8px; min-height: 96px; text-align: center; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); box-shadow: var(--shadow-soft); transition: .2s ease; }
.category-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 13px; margin: 0 auto 8px; background: color-mix(in srgb,var(--category-color,var(--primary)) 14%,transparent); color: var(--category-color,var(--primary)); font-size: 18px; }
.category-card b { display: block; font-size: 10px; }
.category-card small { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.lfg-strip { display: flex; align-items: center; gap: 15px; padding: 19px; background: linear-gradient(100deg,color-mix(in srgb,var(--primary) 10%,var(--panel)),var(--panel)); }
.lfg-icon { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 16px; background: color-mix(in srgb,var(--primary) 14%,transparent); color: var(--primary); font-size: 21px; }
.lfg-strip p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.lfg-strip .btn { margin-right: auto; }

/* Listing and game details */
.filter-bar { padding: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 17px; }
.filter-search { display: flex; align-items: center; gap: 8px; min-width: 190px; flex: 1; border: 1px solid var(--line-strong); background: var(--panel-soft); padding: 8px 11px; border-radius: 13px; }
.filter-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.filter-select { border: 1px solid var(--line-strong); background: var(--panel-soft); color: var(--text); border-radius: 13px; padding: 9px 11px; font-size: 11px; }
.results-line { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 13px; font-size: 11px; color: var(--muted); }
.nets-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.empty-state { padding: 48px 16px; text-align: center; color: var(--muted); grid-column: 1/-1; }
.empty-state span { display: block; font-size: 30px; margin-bottom: 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; margin: 5px 2px 17px; }
.breadcrumbs a { color: var(--primary); }
.detail-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.gallery-main { height: 280px; overflow: hidden; position: relative; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-tag { position: absolute; top: 13px; right: 13px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; }
.gallery-thumb { height: 76px; cursor: pointer; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); padding: 0; opacity: .76; }
.gallery-thumb.active { opacity: 1; border: 2px solid var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 21px; display: flex; flex-direction: column; }
.detail-info h1 { font-size: 27px; }
.detail-location { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 11px; margin: 7px 0 13px; }
.detail-location span { color: var(--primary); font-size: 18px; }
.detail-stat-row { display: flex; gap: 16px; flex-wrap: wrap; padding: 14px 0; margin: 2px 0 12px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.detail-stat { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.detail-stat span { color: var(--primary); font-size: 17px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.price-card { padding: 15px; border: 1px solid var(--line); background: var(--panel); border-radius: 19px; text-align: right; box-shadow: var(--shadow-soft); }
.price-card .price-icon { width: 37px; height: 37px; border-radius: 12px; background: color-mix(in srgb,var(--primary) 12%,transparent); color: var(--primary); display: grid; place-items: center; font-size: 18px; margin-bottom: 10px; }
.price-card h3 { font-size: 12px; }
.price-card p { color: var(--muted); font-size: 10px; margin: 3px 0 13px; }
.price-card strong { font-size: 13px; display: block; }
.price-card strong small { color: var(--muted); font-weight: 500; font-size: 9px; }
.price-card .btn { width: 100%; margin-top: 12px; padding: 8px 6px; font-size: 10px; }
.detail-columns { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(245px,.7fr); gap: 14px; align-items: start; }
.comment { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line-strong); }
.comment:last-child { border-bottom: 0; }
.comment-avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb,var(--pink) 13%,transparent); color: var(--pink); font-weight: 800; }
.comment:nth-child(even) .comment-avatar { background: color-mix(in srgb,var(--cyan) 14%,transparent); color: var(--cyan); }
.comment-body { flex: 1; min-width: 0; }
.comment-top { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.comment-top b { font-size: 11px; }
.comment-top small { color: var(--muted-2); font-size: 9px; }
.comment-body p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.review-form { margin-top: 15px; display: grid; gap: 8px; }
.form-control { width: 100%; border: 1px solid var(--line-strong); background: var(--panel-soft); border-radius: 13px; padding: 11px 12px; color: var(--text); resize: vertical; min-height: 42px; font-size: 12px; }
.side-stack { display: grid; gap: 13px; }
.wallet-card { padding: 18px; background: linear-gradient(135deg,color-mix(in srgb,var(--primary) 11%,var(--panel)),var(--panel)); }
.wallet-balance { margin: 11px 0 3px; font-size: 25px; font-weight: 800; letter-spacing: -.5px; }
.wallet-balance small { font-size: 10px; color: var(--muted); font-weight: 500; }
.wallet-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.info-list { display: grid; gap: 12px; }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-size: 11px; }
.info-row span { color: var(--muted); }
.info-row strong { text-align: left; }
.map-preview { height: 145px; border-radius: 16px; overflow: hidden; position: relative; background: linear-gradient(135deg,rgba(125,196,218,.2),rgba(135,133,228,.18)), repeating-linear-gradient(45deg, transparent 0 19px, color-mix(in srgb,var(--cyan) 22%,transparent) 20px 22px), repeating-linear-gradient(-35deg,transparent 0 30px,color-mix(in srgb,var(--primary) 13%,transparent) 31px 33px); border: 1px solid var(--line-strong); display: grid; place-items: center; }
.map-pin { width: 43px; height: 43px; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); display: grid; place-items: center; background: var(--primary); box-shadow: 0 8px 20px color-mix(in srgb,var(--primary) 30%,transparent); color: white; }
.map-pin span { transform: rotate(45deg); font-size: 18px; }
.map-label { position: absolute; bottom: 9px; right: 10px; font-size: 9px; padding: 4px 7px; border-radius: 7px; background: var(--panel-strong); }

/* Downloads, online games, LFG and dashboard */
.download-list { display: grid; gap: 11px; }
.download-item { display: grid; grid-template-columns: 78px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 20px; box-shadow: var(--shadow-soft); }
.download-art { height: 78px; width: 78px; overflow: hidden; border-radius: 15px; background: var(--bg-2); }
.download-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.download-copy h3 { font-size: 13px; margin-bottom: 3px; }
.download-copy p { color: var(--muted); font-size: 10px; margin: 0 0 8px; }
.download-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.download-meta span { color: var(--muted); font-size: 9px; }
.download-action { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.download-action small { font-size: 9px; color: var(--muted); }
.kids-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; background: linear-gradient(110deg,color-mix(in srgb,var(--cyan) 11%,var(--panel)), color-mix(in srgb,var(--yellow) 11%,var(--panel))); }
.kids-banner h2 { margin-bottom: 5px; }
.kids-banner p { margin: 0; color: var(--muted); font-size: 11px; max-width: 520px; }
.kids-spark { display: grid; place-items: center; font-size: 38px; width: 70px; height: 70px; border-radius: 24px; background: color-mix(in srgb,var(--yellow) 22%,var(--panel)); color: #d89c20; flex: 0 0 auto; }
.kids-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.kid-game { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow-soft); }
.kid-game-head { display: flex; align-items: center; gap: 12px; padding: 15px; }
.kid-game-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: color-mix(in srgb,var(--kid-color,var(--cyan)) 18%,transparent); color: var(--kid-color,var(--cyan)); font-size: 22px; }
.kid-game-head h3 { font-size: 13px; }
.kid-game-head p { color: var(--muted); font-size: 10px; margin: 2px 0 0; }
.kid-game .btn { margin-right: auto; }
.kid-frame-host { padding: 0 13px 13px; }
.kid-frame-host iframe { display: block; width: 100%; height: 230px; border: 1px solid var(--line-strong); border-radius: 16px; background: #f2f7ff; }
.frame-placeholder { height: 160px; display: grid; place-items: center; padding: 20px; border-radius: 16px; background: linear-gradient(145deg,color-mix(in srgb,var(--kid-color,var(--cyan)) 12%,var(--panel)),var(--panel-soft)); border: 1px dashed var(--line-strong); text-align: center; }
.frame-placeholder span { font-size: 26px; color: var(--kid-color,var(--cyan)); }
.frame-placeholder p { color: var(--muted); font-size: 10px; margin: 7px 0 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.stat-card { padding: 18px; position: relative; overflow: hidden; }
.stat-card:after { content: ""; position: absolute; left: -18px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb,var(--stat-color,var(--primary)) 12%,transparent); }
.stat-card .stat-icon { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: var(--stat-color,var(--primary)); background: color-mix(in srgb,var(--stat-color,var(--primary)) 13%,transparent); font-size: 17px; }
.stat-card small { display: block; color: var(--muted); font-size: 10px; margin-top: 13px; }
.stat-card strong { display: block; font-size: 24px; margin-top: 3px; }
.dashboard-tabs { display: flex; gap: 8px; padding: 7px; width: fit-content; max-width: 100%; overflow-x: auto; margin: 22px 0 14px; border: 1px solid var(--line); background: var(--panel); border-radius: 15px; }
.dashboard-tab { background: transparent; border: 0; padding: 8px 14px; border-radius: 10px; white-space: nowrap; color: var(--muted); font-size: 11px; font-weight: 700; }
.dashboard-tab.active { background: color-mix(in srgb,var(--primary) 13%,var(--panel)); color: var(--primary); }
.reservation-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-strong); }
.reservation-row:last-child { border-bottom: 0; }
.res-date { text-align: center; padding: 6px 0; border-radius: 13px; background: color-mix(in srgb,var(--primary) 11%,transparent); color: var(--primary); }
.res-date b { font-size: 17px; display: block; line-height: 1.25; }
.res-date small { font-size: 9px; }
.reservation-row h3 { font-size: 12px; }
.reservation-row p { margin: 3px 0 0; font-size: 10px; color: var(--muted); }
.lfg-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.lfg-card { padding: 16px; }
.lfg-card-header { display: flex; gap: 10px; align-items: center; }
.lfg-game-icon { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb,var(--primary) 14%,transparent); color: var(--primary); font-size: 18px; }
.lfg-card-header h3 { font-size: 12px; }
.lfg-card-header p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.lfg-card .lfg-description { font-size: 11px; color: var(--muted); margin: 12px 0; }
.lfg-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-strong); padding-top: 11px; }
.lfg-members { display: flex; align-items: center; }
.lfg-member { width: 25px; height: 25px; display: grid; place-items: center; margin-left: -6px; border-radius: 50%; border: 2px solid var(--panel-strong); background: linear-gradient(145deg,var(--cyan),var(--primary)); color: white; font-size: 8px; }
.lfg-members small { color: var(--muted); font-size: 9px; margin-right: 4px; }

/* Footer and floating controls */
.site-footer { border-top: 1px solid var(--line-strong); background: color-mix(in srgb,var(--panel) 70%,transparent); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); padding: 34px clamp(18px,5vw,75px) 0; }
.footer-top { width: min(100%,1420px); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 28px; }
.footer-brand .brand { min-width: auto; }
.footer-brand p { font-size: 11px; color: var(--muted); margin: 12px 0 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links strong,.footer-social > strong { font-size: 12px; margin: 3px 0 5px; }
.footer-links a { font-size: 11px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.social-links { display: flex; gap: 8px; }
.social-links a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; color: var(--primary); font-family: Arial,sans-serif; font-weight: 800; font-size: 10px; }
.enamad-placeholder { display: flex; align-items: center; gap: 8px; border: 1px dashed var(--line-strong); padding: 7px 10px; border-radius: 12px; color: var(--muted); }
.enamad-placeholder > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: color-mix(in srgb,var(--green) 14%,transparent); color: var(--green); }
.enamad-placeholder b { display: block; font-size: 9px; }
.enamad-placeholder small { display: block; font-size: 8px; }
.footer-bottom { border-top: 1px solid var(--line-strong); padding: 13px 0; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom b { color: var(--primary); }
.mobile-bottom-nav { display: none; }
.mobile-menu-sheet { display: none; position: fixed; z-index: 85; bottom: 86px; left: 14px; right: 14px; padding: 13px 17px 17px; border-radius: 25px; box-shadow: var(--shadow); }
.sheet-handle { width: 38px; height: 4px; border-radius: 99px; margin: 0 auto 12px; background: var(--line-strong); }
.sheet-title { font-size: 13px; font-weight: 800; margin-bottom: 9px; }
.sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sheet-links a,.sheet-shortcuts button { font-size: 11px; color: var(--muted); padding: 10px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel-soft); text-align: right; }
.sheet-divider { display: flex; align-items: center; gap: 8px; margin: 15px 0 9px; color: var(--muted-2); font-size: 10px; }
.sheet-divider:after { content: ""; height: 1px; background: var(--line-strong); flex: 1; }
.sheet-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sheet-shortcuts button { font-family: inherit; }
.ai-chat-fab { position: fixed; left: 24px; bottom: 24px; z-index: 60; border: 1px solid rgba(255,255,255,.55); border-radius: 17px; display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 11px; color: white; background: linear-gradient(135deg,#6d5ce8,#9580ff); box-shadow: 0 12px 25px rgba(99,80,220,.29); }
.ai-chat-fab span { display: grid; place-items: center; width: 27px; height: 27px; background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.26); border-radius: 10px; font-size: 18px; }
.ai-chat-fab small { font-size: 10px; font-weight: 700; }
.ai-chat-panel { position: fixed; z-index: 100; left: 22px; bottom: 80px; width: min(360px,calc(100vw - 32px)); border-radius: 23px; overflow: hidden; box-shadow: 0 24px 65px rgba(18,28,61,.22); }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 15px; border-bottom: 1px solid var(--line-strong); background: var(--panel-strong); }
.chat-avatar { display: grid; place-items: center; color: white; width: 37px; height: 37px; border-radius: 13px; background: linear-gradient(135deg,var(--primary),var(--cyan)); font-size: 19px; }
.chat-header b { display: block; font-size: 12px; }
.chat-header small { display: block; font-size: 9px; color: var(--muted); }
.chat-header small i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-left: 3px; }
.chat-header button { margin-right: auto; font-size: 22px; background: transparent; border: 0; color: var(--muted); }
.chat-messages { height: 290px; overflow-y: auto; padding: 15px; background: color-mix(in srgb,var(--panel) 78%,transparent); }
.chat-bubble { max-width: 88%; padding: 11px 12px; border-radius: 15px 15px 4px 15px; background: var(--panel-strong); border: 1px solid var(--line); font-size: 11px; margin-bottom: 10px; }
.chat-bubble.user { margin-right: auto; border-radius: 15px 15px 15px 4px; color: white; background: var(--primary); }
.suggested-replies { display: flex; gap: 6px; flex-wrap: wrap; margin: 11px 0; }
.suggested-replies button { border: 1px solid color-mix(in srgb,var(--primary) 22%,transparent); color: var(--primary); background: color-mix(in srgb,var(--primary) 8%,var(--panel)); border-radius: 999px; padding: 6px 9px; font-size: 9px; }
.chat-input-row { display: flex; gap: 8px; padding: 11px; background: var(--panel-strong); border-top: 1px solid var(--line-strong); }
.chat-input-row input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-soft); padding: 10px; outline: 0; color: var(--text); font-size: 11px; }
.chat-input-row button { border: 0; width: 39px; border-radius: 12px; color: white; background: var(--primary); font-size: 19px; }
.modal-backdrop { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(12,18,37,.42); backdrop-filter: blur(8px); }
.modal { width: min(100%,520px); max-height: min(88vh,850px); overflow-y: auto; padding: 22px; border-radius: 25px; box-shadow: 0 28px 90px rgba(9,14,37,.25); animation: page-in .2s ease both; }
.modal.modal-wide { width: min(100%,650px); }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 18px; }
.modal-heading h2 { font-size: 18px; }
.modal-heading p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.modal-close { flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--line-strong); background: var(--panel-soft); border-radius: 11px; font-size: 19px; color: var(--muted); }
.modal-form { display: grid; gap: 12px; }
.form-label { display: grid; gap: 5px; font-size: 11px; font-weight: 700; }
.form-label small { color: var(--muted); font-weight: 400; }
.slot-legend { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; color: var(--muted); font-size: 10px; margin: 0 0 12px; }
.legend-mark { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-left: 4px; vertical-align: middle; background: var(--green); }
.legend-mark.reserved { background: var(--red); }
.legend-mark.selected { background: var(--primary); }
.slot-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.slot { position: relative; padding: 11px 4px; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--text); background: var(--panel-soft); font-size: 11px; font-weight: 700; text-align: center; }
.slot small { display: block; font-size: 8px; font-weight: 500; margin-top: 3px; color: var(--muted); }
.slot.available:hover { border-color: var(--green); }
.slot.reserved { color: var(--red); background: color-mix(in srgb,var(--red) 10%,var(--panel)); border-color: color-mix(in srgb,var(--red) 26%,transparent); cursor: not-allowed; }
.slot.reserved small { color: var(--red); }
.slot.selected { color: white; background: var(--primary); border-color: var(--primary); box-shadow: 0 5px 14px color-mix(in srgb,var(--primary) 25%,transparent); }
.slot.selected small { color: rgba(255,255,255,.78); }
.booking-summary { display: flex; justify-content: space-between; gap: 10px; padding: 14px; margin-top: 14px; border-radius: 15px; border: 1px solid var(--line-strong); background: var(--panel-soft); font-size: 11px; }
.booking-summary span { color: var(--muted); }
.modal-actions { display: flex; gap: 8px; margin-top: 15px; }
.modal-actions .btn { flex: 1; }
.toast-region { position: fixed; z-index: 150; top: 95px; left: 24px; display: grid; gap: 8px; width: min(330px,calc(100vw - 32px)); }
.toast { padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel-strong); box-shadow: var(--shadow); backdrop-filter: blur(18px); display: flex; align-items: flex-start; gap: 9px; font-size: 11px; animation: page-in .2s ease both; }
.toast > span { color: var(--green); font-size: 17px; }
.toast.error > span { color: var(--red); }
.toast b { display: block; margin-bottom: 2px; }
.toast p { color: var(--muted); margin: 0; }

@media (max-width: 1190px) {
  .workspace { grid-template-columns: minmax(0,1fr) 220px; gap: 17px; }
  .sidebar { padding-inline: 10px; }
  .content-grid,.nets-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .matches-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .games-row { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 880px) {
  .site-header { height: 72px; gap: 12px; padding-inline: 17px; }
  .brand { min-width: auto; gap: 7px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 12px; }
  .brand-word { font-size: 17px; }
  .global-search { width: auto; flex: 1; margin: 0; height: 40px; }
  .global-search kbd { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .icon-button { width: 37px; height: 37px; }
  .header-auth .btn { padding: 8px 10px; font-size: 10px; }
  .workspace { display: block; padding: 16px 18px 35px; }
  .sidebar { display: none; }
  .main-content { min-height: auto; }
  .site-footer { padding-bottom: 85px; }
  .mobile-bottom-nav { display: flex; position: fixed; z-index: 82; left: 12px; right: 12px; bottom: 10px; height: 65px; border-radius: 22px; justify-content: space-around; align-items: center; padding: 5px 7px; background: color-mix(in srgb,var(--panel-strong) 92%,transparent); box-shadow: 0 11px 35px rgba(28,49,91,.15),inset 0 1px 0 var(--line); }
  .mobile-bottom-nav a { min-width: 48px; display: flex; flex-direction: column; gap: 0; align-items: center; color: var(--muted); font-size: 18px; line-height: 1.2; }
  .mobile-bottom-nav a small { font-size: 9px; margin-top: 2px; }
  .mobile-bottom-nav a.active { color: var(--primary); }
  .mobile-menu-main { display: grid; place-items: center; width: 47px; height: 47px; margin-top: -22px; border-radius: 17px; border: 3px solid var(--bg); color: white; background: linear-gradient(145deg,var(--primary),var(--cyan)); box-shadow: 0 8px 20px color-mix(in srgb,var(--primary) 27%,transparent); font-size: 30px; line-height: 1; }
  .mobile-menu-sheet { display: block; }
  .ai-chat-fab { bottom: 91px; left: 15px; padding: 8px; border-radius: 16px; }
  .ai-chat-fab small { display: none; }
  .ai-chat-panel { bottom: 145px; left: 12px; }
  .footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 27px; }
  .notification-popover { top: 63px; left: 12px; width: min(320px,calc(100vw - 24px)); }
  .hero { min-height: 230px; }
}
@media (max-width: 620px) {
  .site-header { padding-inline: 11px; gap: 8px; height: 67px; }
  .brand { gap: 6px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .brand-mark span { width: 4px; }
  .brand-mark span:nth-child(2) { height: 19px; }
  .brand-word { font-size: 14px; }
  .brand-word small { display: none; }
  .global-search { gap: 6px; height: 37px; padding-inline: 8px; }
  .global-search svg { width: 16px; }
  .global-search input { font-size: 10px; }
  .header-actions { gap: 4px; }
  .header-actions .icon-button { width: 33px; height: 33px; border-radius: 11px; }
  .header-actions .notification-button { display: grid; }
  .header-auth .btn { padding: 7px 8px; font-size: 9px; border-radius: 10px; }
  .header-auth .btn-soft { display: none; }
  .workspace { padding: 12px 12px 24px; }
  .page-header { align-items: flex-start; margin: 6px 1px 17px; flex-direction: column; gap: 10px; }
  .page-header .btn { align-self: stretch; }
  h1 { font-size: 25px; }
  h2 { font-size: 17px; }
  .page-header p { font-size: 11px; }
  .hero { display: block; min-height: 0; padding: 21px 18px 17px; border-radius: 24px; }
  .hero h1 { max-width: 100%; font-size: 26px; margin-top: 11px; }
  .hero-copy > p { font-size: 11px; max-width: 100%; margin-bottom: 14px; }
  .hero-search { width: 100%; }
  .hero-art { min-height: 120px; margin-top: 7px; }
  .hero-orbit { width: 150px; height: 150px; }
  .hero-controller { width: 130px; height: 79px; border-radius: 25px 25px 32px 32px; }
  .hero-controller:before { width: 37px; height: 37px; top: 20px; left: 18px; border-width: 5px; }
  .hero-controller:after { width: 28px; height: 28px; top: 25px; right: 17px; }
  .hero-float-card { padding: 6px 8px; font-size: 8px; border-radius: 11px; }
  .hero-float-card span { font-size: 13px; }
  .hero-float-card.one { top: 8px; right: 1%; }
  .hero-float-card.two { bottom: 4px; left: 1%; }
  .section { margin-top: 24px; }
  .section-heading { margin-bottom: 11px; }
  .section-icon { width: 30px; height: 30px; border-radius: 10px; font-size: 16px; }
  .section-heading p { font-size: 10px; }
  .quick-grid { gap: 8px; }
  .quick-card { min-height: 88px; padding: 11px; border-radius: 16px; }
  .quick-card b { font-size: 10px; }
  .quick-card small { font-size: 9px; }
  .quick-symbol { width: 28px; height: 28px; border-radius: 9px; font-size: 15px; }
  .content-grid,.nets-grid,.matches-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .net-cover { height: 105px; }
  .net-body { padding: 10px; }
  .net-title-row { display: block; }
  .net-title-row h3 { font-size: 11px; }
  .net-title-row .rating { font-size: 10px; }
  .net-meta { font-size: 9px; margin: 4px 0 9px; }
  .net-bottom { gap: 5px; padding-top: 8px; }
  .metric + .metric { padding-right: 6px; }
  .metric small { font-size: 8px; }
  .metric strong { font-size: 10px; }
  .metric strong em { font-size: 8px; }
  .distance-pill,.cover-tag { top: 6px; right: 6px; font-size: 8px; padding: 3px 6px; }
  .cover-tag { right: auto; left: 6px; }
  .match-card { padding: 10px; border-radius: 16px; }
  .match-meta { margin-bottom: 11px; }
  .team-badge { width: 33px; height: 33px; border-radius: 11px; font-size: 11px; margin-bottom: 5px; }
  .team-name { font-size: 8px; }
  .score { font-size: 16px; }
  .match-footer { font-size: 8px; margin-top: 10px; padding-top: 8px; }
  .tournament-feature { grid-template-columns: 1fr; gap: 6px; padding: 8px; }
  .tournament-visual { min-height: 205px; padding: 17px; }
  .tournament-visual h3 { font-size: 19px; }
  .tournament-visual p { font-size: 10px; }
  .tournament-side { padding: 8px; }
  .tournament-detail { padding: 10px; }
  .tournament-side .btn { position: absolute; margin: 0; align-self: flex-end; transform: translateY(-125px); }
  .games-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .game-cover { height: 115px; }
  .game-body { padding: 9px; }
  .game-body h3 { font-size: 11px; }
  .game-body p { font-size: 9px; }
  .game-footer { margin-top: 8px; padding-top: 7px; }
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .category-card { min-height: 84px; padding: 10px 4px; }
  .category-icon { width: 31px; height: 31px; border-radius: 10px; margin-bottom: 5px; }
  .category-card b { font-size: 9px; }
  .category-card small { font-size: 8px; }
  .lfg-strip { align-items: flex-start; padding: 14px; gap: 10px; }
  .lfg-icon { width: 38px; height: 38px; border-radius: 12px; }
  .lfg-strip h3 { font-size: 12px; }
  .lfg-strip p { font-size: 10px; }
  .lfg-strip .btn { margin-top: 1px; padding: 8px 9px; font-size: 9px; }
  .filter-bar { padding: 10px; gap: 7px; }
  .filter-search { flex-basis: 100%; }
  .filter-select { flex: 1; min-width: 0; padding: 8px; }
  .results-line { font-size: 9px; }
  .detail-hero { grid-template-columns: 1fr; gap: 10px; }
  .gallery-main { height: 205px; }
  .gallery-thumb { height: 58px; }
  .detail-info { padding: 16px; }
  .detail-info h1 { font-size: 23px; }
  .detail-stat-row { gap: 10px; }
  .detail-columns { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .price-card { padding: 12px; }
  .price-card .price-icon { width: 32px; height: 32px; margin-bottom: 7px; }
  .price-card h3 { font-size: 11px; }
  .price-card strong { font-size: 11px; }
  .download-item { grid-template-columns: 56px minmax(0,1fr); gap: 10px; padding: 9px; border-radius: 16px; }
  .download-art { width: 56px; height: 65px; border-radius: 11px; }
  .download-copy h3 { font-size: 11px; }
  .download-copy p { font-size: 9px; }
  .download-action { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .kids-banner { padding: 15px; align-items: flex-start; }
  .kids-banner h2 { font-size: 15px; }
  .kids-banner p { font-size: 10px; }
  .kids-spark { width: 47px; height: 47px; border-radius: 16px; font-size: 25px; }
  .kids-grid,.lfg-grid { grid-template-columns: 1fr; }
  .kid-frame-host iframe { height: 210px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-card strong { font-size: 20px; }
  .stat-card small { font-size: 9px; }
  .reservation-row { grid-template-columns: 43px minmax(0,1fr); gap: 9px; }
  .reservation-row > .btn { grid-column: 2; justify-self: start; }
  .res-date b { font-size: 14px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; padding-bottom: 12px; }
  .ai-chat-fab { bottom: 87px; left: 12px; }
  .ai-chat-panel { bottom: 140px; }
  .modal { padding: 17px; border-radius: 21px; }
  .slot-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .toast-region { top: 77px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Readability, theme consistency, and mobile navigation refinements. */
:root { font-size: 15px; }
body { font-size: 15px; }
html[data-theme="night"] {
  --bg: #1b1a2b;
  --bg-2: #252438;
  --panel: rgba(54, 51, 76, .76);
  --panel-strong: rgba(48, 46, 68, .94);
  --panel-soft: rgba(63, 60, 84, .70);
  --line: rgba(255, 255, 255, .16);
  --line-strong: rgba(207, 200, 235, .24);
  --text: #faf9ff;
  --muted: #c3c0d4;
  --muted-2: #a6a2bc;
  --primary: #b39bff;
  --primary-2: #c8b7ff;
  --cyan: #71e0ee;
  --yellow: #ffdc83;
  --pink: #f3a4df;
  --purple: #b59eff;
  --green: #66e0b8;
  --red: #ff879a;
  --shadow: 0 20px 48px rgba(7, 7, 18, .24), inset 0 1px 0 rgba(255,255,255,.10);
  --shadow-soft: 0 8px 25px rgba(7, 7, 18, .18), inset 0 1px 0 rgba(255,255,255,.09);
}
html[data-theme="night"] body {
  background: radial-gradient(ellipse at 84% -10%, rgba(142, 111, 224, .26), transparent 42%), radial-gradient(ellipse at 4% 52%, rgba(90, 178, 210, .12), transparent 36%), var(--bg);
}

/* Keep native select menus readable and visually aligned with both themes. */
select,
.filter-select,
.form-control:is(select) {
  color: var(--text);
  background-color: var(--panel-soft);
  border-color: var(--line-strong);
  color-scheme: light;
  border-radius: 13px;
  accent-color: var(--primary);
}
html[data-theme="night"] select,
html[data-theme="night"] .filter-select,
html[data-theme="night"] .form-control:is(select) {
  color-scheme: dark;
  background-color: #343148;
  border-color: rgba(220, 213, 255, .25);
}
select option,
select optgroup {
  color: var(--text);
  background: var(--bg-2);
}
select:focus-visible,
.filter-select:focus-visible,
.form-control:is(select):focus-visible {
  border-color: color-mix(in srgb, var(--primary) 65%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

/* Increase small interface labels without changing the page's overall hierarchy. */
.eyebrow { font-size: 11px; }
.page-header p { font-size: 13px; }
.section-heading p { font-size: 12px; }
.section-heading .view-all { font-size: 12px; }
.mini-label { font-size: 11px; }
.pill { font-size: 11px; }
.btn { font-size: 13px; }
.btn-sm { font-size: 12px; }
.filter-select, .filter-search input, .form-control { font-size: 13px; }
.form-label { font-size: 12px; }
.notification-item b { font-size: 13px; }
.notification-item p { font-size: 12px; }
.notification-item small { font-size: 11px; }
.footer-links a { font-size: 12px; }

/* Give the notification panel a clearer, softer glass layer. */
.notification-popover {
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  -webkit-backdrop-filter: blur(34px) saturate(175%);
  backdrop-filter: blur(34px) saturate(175%);
  box-shadow: 0 22px 58px rgba(17, 24, 48, .19), inset 0 1px 0 rgba(255,255,255,.12);
}
html[data-theme="night"] .notification-popover {
  background: rgba(43, 41, 63, .94);
  border-color: rgba(226, 220, 255, .24);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.10);
}

@media (max-width: 880px) {
  .mobile-bottom-nav {
    position: fixed !important;
    left: 50%;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(580px, calc(100% - 28px));
    transform: translate3d(-50%, 0, 0);
    margin: 0;
    padding: 6px 9px;
    justify-content: space-between;
    gap: 4px;
    isolation: isolate;
    contain: layout paint;
    -webkit-backdrop-filter: blur(30px) saturate(165%);
    backdrop-filter: blur(30px) saturate(165%);
    box-shadow: 0 14px 38px rgba(28, 36, 71, .19), inset 0 1px 0 var(--line);
  }
  .mobile-bottom-nav a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    gap: 3px;
    border-radius: 15px;
    transition: color .18s ease, background .18s ease;
  }
  .mobile-bottom-nav a.active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
  }
  .mobile-nav-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 9px;
  }
  .mobile-nav-icon svg { width: 21px; height: 21px; stroke-width: 1.8; }
  .mobile-bottom-nav a.active .mobile-nav-icon {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
  }
  .mobile-bottom-nav a small { font-size: 10px; line-height: 1.2; }
  .mobile-menu-main {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin: -24px 3px 0;
    border-radius: 17px;
    border: 3px solid var(--bg);
    padding: 0;
    font-size: initial;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .mobile-menu-main svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.2; transition: transform .2s ease; }
  .mobile-menu-main[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mobile-menu-sheet {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 77px);
    width: min(560px, calc(100% - 28px));
    transform: translateX(-50%);
    max-height: min(66dvh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%);
  }
}
@media (max-width: 620px) {
  .global-search input { font-size: 11px; }
  .page-header p { font-size: 12px; }
  .hero-copy > p { font-size: 12px; }
  .section-heading p { font-size: 11px; }
  .quick-card b { font-size: 11px; }
  .quick-card small { font-size: 10px; }
  .net-title-row h3 { font-size: 12px; }
  .net-meta { font-size: 10px; }
  .metric small { font-size: 9px; }
  .metric strong { font-size: 11px; }
  .team-name { font-size: 9px; }
  .match-footer { font-size: 9px; }
  .game-body h3 { font-size: 12px; }
  .game-body p { font-size: 10px; }
  .category-card b { font-size: 10px; }
  .category-card small { font-size: 9px; }
  .filter-select { font-size: 12px; }
  .footer-links a { font-size: 12px; }
  .mobile-bottom-nav {
    width: calc(100% - 24px);
    bottom: max(10px, env(safe-area-inset-bottom));
    padding-inline: 6px;
    border-radius: 21px;
  }
  .mobile-menu-sheet {
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 76px);
    width: calc(100% - 24px);
  }
}

/* Night theme tuned to the supplied black, charcoal, neon-purple reference. */
html[data-theme="night"] {
  color-scheme: dark;
  --bg: #03040d;
  --bg-2: #0a0d17;
  --panel: rgba(16, 17, 25, .86);
  --panel-strong: rgba(14, 15, 23, .96);
  --panel-soft: rgba(18, 20, 31, .82);
  --line: rgba(216, 211, 239, .10);
  --line-strong: rgba(158, 125, 235, .22);
  --text: #f7f6fc;
  --muted: #b0afc0;
  --muted-2: #838294;
  --primary: #8b3fe8;
  --primary-2: #b04bfa;
  --cyan: #3a9eea;
  --yellow: #e7bb67;
  --pink: #d986f7;
  --purple: #a04cf6;
  --green: #59d9b0;
  --red: #ff6c8a;
  --shadow: 0 20px 50px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .045);
  --shadow-soft: 0 9px 28px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .045);
}
html[data-theme="night"] body {
  background: radial-gradient(ellipse at 80% -12%, rgba(111, 39, 200, .19), transparent 39%), radial-gradient(ellipse at 4% 40%, rgba(27, 79, 141, .11), transparent 35%), var(--bg);
}
html[data-theme="night"] .ambient-one { background: #8538ed; opacity: .12; }
html[data-theme="night"] .ambient-two { background: #2755b8; opacity: .10; }
html[data-theme="night"] .site-header {
  background: rgba(5, 6, 14, .91);
  border-bottom-color: rgba(255, 255, 255, .08);
}
html[data-theme="night"] .hero {
  background: radial-gradient(ellipse at 75% 30%, rgba(96, 40, 160, .19), transparent 42%), linear-gradient(105deg, rgba(6, 8, 18, .96), rgba(15, 15, 25, .84));
  border-color: rgba(161, 115, 242, .14);
}
html[data-theme="night"] .quick-card,
html[data-theme="night"] .panel,
html[data-theme="night"] .game-card,
html[data-theme="night"] .net-card,
html[data-theme="night"] .download-item,
html[data-theme="night"] .kid-game {
  border-color: rgba(205, 196, 234, .10);
}
html[data-theme="night"] .btn-primary {
  background: linear-gradient(135deg, #762bd4, #a63ff1 58%, #8736e6);
  box-shadow: 0 8px 22px rgba(137, 48, 228, .25);
}
html[data-theme="night"] .btn-primary:hover { box-shadow: 0 10px 27px rgba(152, 58, 244, .34); }
html[data-theme="night"] .mobile-bottom-nav,
html[data-theme="night"] .mobile-menu-sheet {
  background: rgba(12, 13, 22, .92);
  border-color: rgba(211, 199, 244, .12);
}

/* Styled native selects keep their appearance consistent with the active theme. */
select,
.filter-select,
.form-control:is(select) {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23928bb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  cursor: pointer;
}
select:disabled { opacity: .58; cursor: not-allowed; }
html[data-theme="day"] select,
html[data-theme="day"] .filter-select,
html[data-theme="day"] .form-control:is(select) { background-color: rgba(255, 255, 255, .72); }
html[data-theme="night"] select,
html[data-theme="night"] .filter-select,
html[data-theme="night"] .form-control:is(select) {
  background-color: rgba(21, 21, 32, .96);
  color: var(--text);
  border-color: rgba(178, 145, 241, .22);
}
html[data-theme="night"] select option,
html[data-theme="night"] select optgroup { background: #11121d; color: #f7f6fc; }

/* Footer social links display a recognizable icon beside each platform name. */
.social-links { display: grid; gap: 8px; width: 100%; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  transition: border-color .2s ease, transform .2s ease, color .2s ease;
}
.social-links a:hover { border-color: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary); transform: translateY(-1px); }
.social-links a svg { width: 20px; height: 20px; color: var(--primary); flex: 0 0 auto; }

/* Download library uses a right-hand filter panel and a wider result column. */
.download-page-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; direction: rtl; align-items: start; }
.download-filter-panel { position: sticky; top: 98px; padding: 17px; }
.download-filter-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.download-filter-heading h2 { font-size: 15px; margin: 0; }
.download-filter-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.download-category-list { display: grid; gap: 5px; margin-bottom: 17px; }
.download-category-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: right; width: 100%; border: 1px solid transparent; border-radius: 12px; padding: 10px 11px; color: var(--muted); background: transparent; font-size: 12px; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.download-category-option span { color: var(--muted-2); font-size: 10px; }
.download-category-option:hover { color: var(--text); background: var(--panel-soft); }
.download-category-option.active { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 25%, transparent); background: color-mix(in srgb, var(--primary) 10%, var(--panel-soft)); }
.download-category-option.active span { color: var(--primary); }
.download-filter-label { display: grid; gap: 7px; margin-top: 12px; }
.download-reset { width: 100%; margin-top: 14px; }
.download-results-column { min-width: 0; }
.download-search-panel { display: flex; align-items: center; gap: 10px; padding: 11px; margin-bottom: 12px; }
.download-search-panel .filter-search { min-width: 0; }
.download-search-panel #downloads-result-count { flex: 0 0 auto; }
.download-item .download-art { display: block; }
.download-item .download-copy h3 { transition: color .2s ease; }
.download-item .download-copy a:hover h3 { color: var(--primary); }
.download-item .download-action { min-width: 112px; }
.download-item .download-action .btn { width: 100%; }

/* Dedicated game download details. */
.game-detail-hero { display: grid; grid-template-columns: minmax(210px, .38fr) minmax(0, 1fr); gap: 23px; align-items: center; padding: 20px; overflow: hidden; }
.game-detail-art { height: 340px; position: relative; overflow: hidden; border-radius: 21px; background: var(--bg-2); box-shadow: var(--shadow-soft); }
.game-detail-art:after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(3, 4, 13, .55), transparent); pointer-events: none; }
.game-detail-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.game-detail-art .pill { position: absolute; z-index: 1; top: 13px; right: 13px; }
.game-detail-copy { min-width: 0; padding: 10px 4px; }
.game-detail-copy h1 { font-size: clamp(28px, 3.2vw, 43px); margin: 8px 0 10px; }
.game-detail-copy > p { max-width: 760px; font-size: 14px; color: var(--muted); line-height: 2; }
.game-detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 22px 0; }
.game-detail-stats > div { padding: 12px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--panel-soft); }
.game-detail-stats small, .game-spec-grid small { display: block; color: var(--muted); font-size: 11px; }
.game-detail-stats b { display: block; margin-top: 4px; font-size: 14px; }
.game-detail-stats b span { color: var(--muted); font-size: 10px; font-weight: 500; }
.game-detail-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.game-detail-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: start; gap: 15px; margin-top: 17px; }
.game-long-description { color: var(--muted); font-size: 13px; line-height: 2.1; }
.game-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.game-spec-grid > div { padding: 12px; border: 1px solid var(--line-strong); background: var(--panel-soft); border-radius: 13px; }
.game-spec-grid b { display: block; font-size: 12px; margin-top: 5px; }
.game-requirements .info-row { padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.game-requirements .info-row:last-child { border-bottom: 0; }

/* Full-page online game experience with a sandboxed play stage. */
.online-game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 16px; align-items: start; direction: rtl; }
.online-game-main, .online-game-sidebar { min-width: 0; display: grid; gap: 14px; }
.online-game-panel { padding: 13px; }
.online-game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 12px; }
.online-game-toolbar > div { display: grid; grid-template-columns: 8px auto; align-items: center; gap: 0 8px; }
.online-game-toolbar b { font-size: 13px; }
.online-game-toolbar small { grid-column: 2; color: var(--muted); font-size: 10px; }
.online-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent); }
.online-game-stage { min-height: 350px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--panel-soft); display: grid; place-items: center; }
.online-game-stage iframe { display: block; border: 0; width: 100%; height: 380px; background: #f4f6ff; }
.online-game-stage .frame-placeholder { width: 100%; min-height: 350px; border: 0; border-radius: 0; }
.online-game-stage .frame-placeholder h3 { margin: 5px 0; }
.online-game-bottom { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 3px 1px; }
.online-instructions > p { color: var(--muted); font-size: 13px; line-height: 2; }
.security-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--cyan) 22%, transparent); border-radius: 13px; color: var(--muted); background: color-mix(in srgb, var(--cyan) 6%, var(--panel-soft)); font-size: 11px; line-height: 1.8; }
.security-note b { color: var(--cyan); flex: 0 0 auto; }
.online-game-title { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.online-game-title h2 { margin: 0; font-size: 15px; }
.online-game-title p { color: var(--muted); margin: 3px 0 0; font-size: 11px; }
.related-online-game { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-strong); }
.related-online-game:last-child { border-bottom: 0; }
.related-online-game .kid-game-icon { width: 38px; height: 38px; flex: 0 0 auto; font-size: 17px; }
.related-online-game > span:nth-child(2) { min-width: 0; flex: 1; }
.related-online-game b, .related-online-game small { display: block; }
.related-online-game b { font-size: 12px; }
.related-online-game small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.related-online-game > strong { color: var(--primary); }
.kid-game-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 0 15px 13px; }
.kid-game-actions .pill { margin-left: auto; }
.security-note { display: flex; }

/* Mock messenger: contact list on the right, selected conversation on the left. */
.messenger-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; direction: rtl; align-items: stretch; min-height: 610px; }
.messenger-contacts { display: flex; min-width: 0; flex-direction: column; padding: 15px 12px 12px; }
.messenger-contacts-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 12px; }
.messenger-contacts-head h2 { font-size: 16px; margin: 0; }
.messenger-contacts-head p { font-size: 11px; color: var(--muted); margin: 2px 0 0; }
.message-search { margin-bottom: 10px; min-width: 0; flex: 0 0 auto; }
.message-search input { font-size: 12px; }
.message-thread-list { display: grid; align-content: start; gap: 5px; min-height: 0; }
.message-thread { width: 100%; display: flex; align-items: center; gap: 9px; text-align: right; padding: 10px 8px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--text); }
.message-thread:hover { background: var(--panel-soft); }
.message-thread.active { background: color-mix(in srgb, var(--primary) 10%, var(--panel-soft)); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.message-avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 15px; color: white; background: linear-gradient(145deg, #6632aa, #ab4bf0); font-weight: 800; }
.message-avatar.online:after { content: ""; position: absolute; width: 8px; height: 8px; right: 0; bottom: 0; border-radius: 50%; background: #40d5a2; border: 2px solid var(--panel-strong); }
.message-thread-copy { flex: 1; min-width: 0; }
.message-thread-copy b, .message-thread-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.message-thread-copy b { font-size: 12px; }
.message-thread-copy small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.message-thread-meta { display: grid; justify-items: end; align-self: stretch; align-content: space-between; gap: 5px; }
.message-thread-meta small { font-size: 9px; color: var(--muted-2); }
.message-thread-meta i { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; font-size: 9px; font-style: normal; font-weight: 700; color: #fff; background: var(--primary); }
.messenger-demo-note { margin-top: auto; padding: 11px 7px 0; border-top: 1px solid var(--line-strong); color: var(--muted-2); font-size: 10px; line-height: 1.8; }
.messenger-conversation { display: flex; min-width: 0; min-height: 610px; overflow: hidden; flex-direction: column; }
.conversation-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-strong); background: var(--panel-soft); }
.conversation-header > div { min-width: 0; flex: 1; }
.conversation-header b, .conversation-header small { display: block; }
.conversation-header b { font-size: 13px; }
.conversation-header small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.conversation-header .icon-button { width: 35px; height: 35px; }
.conversation-messages { min-height: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; overflow-y: auto; padding: 17px; background: radial-gradient(ellipse at 80% 5%, color-mix(in srgb, var(--primary) 5%, transparent), transparent 47%); }
.conversation-day-divider { align-self: center; margin-bottom: 6px; }
.conversation-day-divider span { color: var(--muted); font-size: 10px; padding: 5px 10px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 999px; }
.conversation-message { max-width: min(78%, 560px); padding: 11px 13px 7px; border: 1px solid var(--line-strong); border-radius: 16px 16px 4px 16px; background: var(--panel-strong); box-shadow: var(--shadow-soft); }
.conversation-message p { margin: 0; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.conversation-message small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; text-align: left; }
.conversation-message.mine { align-self: flex-start; background: color-mix(in srgb, var(--primary) 15%, var(--panel-strong)); border-color: color-mix(in srgb, var(--primary) 27%, transparent); }
.conversation-message.theirs { align-self: flex-end; border-radius: 16px 16px 16px 4px; }
.conversation-compose { display: flex; align-items: center; gap: 9px; padding: 12px; border-top: 1px solid var(--line-strong); background: var(--panel-strong); }
.conversation-compose input { flex: 1; min-width: 0; min-height: 45px; padding: 10px 13px; color: var(--text); background: var(--panel-soft); border: 1px solid var(--line-strong); border-radius: 14px; outline: none; }
.conversation-compose input:focus { border-color: color-mix(in srgb, var(--primary) 60%, transparent); }
.conversation-compose .btn { min-height: 44px; }
.conversation-compose .btn svg { width: 17px; height: 17px; }
.message-dot { position: absolute; width: 6px; height: 6px; top: 7px; right: 7px; border-radius: 50%; background: var(--pink); }

/* Multiple selection booking and account settings. */
.booking-helper { color: var(--muted); font-size: 11px; margin: -4px 0 12px; }
.booking-total { color: var(--primary); }
.dashboard-head-actions, .dashboard-action-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dashboard-secondary-panel { margin-top: 13px; }
.bank-cards-section { border-top: 1px solid var(--line-strong); margin-top: 19px; padding-top: 16px; }
.bank-cards-section h3 { font-size: 13px; margin-bottom: 8px; }
.bank-card-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.bank-card-row:last-child { border-bottom: 0; }
.bank-card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 20px; }
.bank-card-row > div { min-width: 0; flex: 1; }
.bank-card-row b, .bank-card-row small { display: block; }
.bank-card-row b { font-size: 12px; }
.bank-card-row small { font-size: 10px; color: var(--muted); margin-top: 3px; }
.empty-inline { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--muted); }
.empty-inline > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--panel-soft); color: var(--primary); }
.empty-inline b, .empty-inline small { display: block; }
.empty-inline b { font-size: 12px; }
.empty-inline small { font-size: 10px; margin-top: 3px; }

@media (max-width: 1080px) {
  .download-page-layout { grid-template-columns: 235px minmax(0, 1fr); }
  .messenger-layout { grid-template-columns: 245px minmax(0, 1fr); }
  .online-game-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .game-detail-hero { grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .download-page-layout { grid-template-columns: minmax(0, 1fr); }
  .download-filter-panel { position: static; order: 0; }
  .download-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-results-column { order: 1; }
  .messenger-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .messenger-contacts { order: 0; }
  .message-thread-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .messenger-conversation { min-height: 560px; }
  .online-game-layout { grid-template-columns: minmax(0, 1fr); }
  .game-detail-columns { grid-template-columns: minmax(0, 1fr); }
  .dashboard-head-actions { width: 100%; }
  .dashboard-head-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 620px) {
  .download-filter-panel { padding: 12px; }
  .download-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .download-category-option { padding: 9px 8px; font-size: 11px; }
  .download-search-panel { align-items: stretch; flex-direction: column; }
  .download-search-panel #downloads-result-count { align-self: flex-start; }
  .download-item .download-action { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; gap: 7px; }
  .download-item .download-action .btn { width: auto; flex: 1; }
  .game-detail-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
  .game-detail-art { height: 240px; }
  .game-detail-copy { padding: 7px 4px 5px; }
  .game-detail-copy h1 { font-size: 26px; }
  .game-detail-copy > p { font-size: 12px; }
  .game-detail-stats { margin: 14px 0; gap: 6px; }
  .game-detail-stats > div { padding: 9px; }
  .game-detail-stats small { font-size: 9px; }
  .game-detail-stats b { font-size: 11px; }
  .game-detail-actions { align-items: stretch; }
  .game-detail-actions .btn { flex: 1 1 auto; }
  .game-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .online-game-stage, .online-game-stage .frame-placeholder { min-height: 270px; }
  .online-game-stage iframe { height: 300px; }
  .online-game-panel { padding: 8px; }
  .online-game-toolbar { padding: 4px 3px 10px; }
  .online-game-toolbar b { font-size: 11px; }
  .online-game-toolbar small { font-size: 9px; }
  .messenger-contacts { padding: 12px 9px; }
  .message-thread-list { grid-template-columns: minmax(0, 1fr); }
  .message-thread { padding: 9px 7px; }
  .messenger-conversation { min-height: 500px; }
  .conversation-header { padding: 11px; }
  .conversation-messages { padding: 12px; }
  .conversation-message { max-width: 92%; padding: 9px 11px 6px; }
  .conversation-message p { font-size: 11px; }
  .conversation-compose { padding: 9px; gap: 6px; }
  .conversation-compose .btn { min-width: 43px; padding: 9px 11px; }
  .conversation-compose .btn span { display: none; }
  .dashboard-head-actions .btn { padding: 9px; font-size: 11px; }
  .bank-card-row { flex-wrap: wrap; }
  .bank-card-row .pill { margin-right: 53px; }
  .kid-game-actions .pill { margin-left: 0; }
}
@media (max-width: 620px) {
  .messages-header-link { display: none; }
}

/* Blog, detailed game resources, requirements switch, and role-labelled reviews. */
.mobile-only { display: none; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.blog-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border-radius: 22px; transition: transform .2s ease, border-color .2s ease; }
.blog-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.blog-card-art { height: 170px; position: relative; overflow: hidden; background: var(--bg-2); }
.blog-card-art img, .blog-feature-art img, .blog-article-art img, .blog-related-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-art img { transition: transform .35s ease; }
.blog-card:hover .blog-card-art img { transform: scale(1.035); }
.blog-card-art .pill { position: absolute; top: 12px; right: 12px; }
.blog-card-copy { padding: 15px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.blog-card-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted-2); font-size: 10px; }
.blog-card-copy h3 { font-size: 15px; margin: 10px 0 7px; }
.blog-card-copy p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 0 0 14px; }
.blog-card-link { margin-top: auto; color: var(--primary); font-size: 11px; font-weight: 800; }
.blog-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); min-height: 255px; overflow: hidden; }
.blog-feature-copy { padding: clamp(22px, 4vw, 42px); align-self: center; }
.blog-feature-copy h2 { font-size: clamp(23px, 2.5vw, 32px); margin: 11px 0; }
.blog-feature-copy p { color: var(--muted); max-width: 580px; line-height: 2; font-size: 13px; }
.blog-feature-art { min-height: 230px; position: relative; overflow: hidden; }
.blog-feature-art:after, .blog-article-art:after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, var(--panel), transparent 55%); }
.blog-article-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); min-height: 260px; overflow: hidden; }
.blog-article-art { position: relative; min-height: 260px; overflow: hidden; }
.blog-article-heading { padding: clamp(20px, 3vw, 38px); align-self: center; }
.blog-article-heading h1 { margin: 14px 0 10px; font-size: clamp(24px, 3vw, 36px); }
.blog-article-heading p { color: var(--muted); font-size: 13px; line-height: 2; }
.blog-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-top: 17px; }
.blog-article-body { font-size: 13px; line-height: 2.1; }
.blog-article-body > p { color: var(--muted); }
.blog-article-body > h2 { margin: 20px 0 15px; }
.blog-steps { display: grid; gap: 11px; }
.blog-step { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 17px; background: var(--panel-soft); }
.blog-step-number { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, var(--panel)); font-weight: 800; }
.blog-step h3 { font-size: 13px; margin: 0 0 4px; }
.blog-step p { margin: 0; color: var(--muted); font-size: 12px; }
.blog-callout { margin-top: 18px; padding: 15px 17px; border: 1px solid color-mix(in srgb, var(--yellow) 32%, var(--line-strong)); border-radius: 16px; background: color-mix(in srgb, var(--yellow) 7%, var(--panel-soft)); }
.blog-callout b { font-size: 12px; }
.blog-callout p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.blog-article-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.blog-article-sidebar { display: grid; gap: 14px; }
.blog-article-sidebar h3 { margin-bottom: 12px; }
.blog-related-link { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-strong); }
.blog-related-art { flex: 0 0 auto; width: 65px; height: 58px; border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.blog-related-link > span:last-child { min-width: 0; }
.blog-related-link b, .blog-related-link small { display: block; }
.blog-related-link b { font-size: 11px; line-height: 1.7; }
.blog-related-link small { color: var(--muted); font-size: 10px; margin-top: 4px; }

.requirements-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; padding: 4px; margin: 12px 0 9px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--panel-soft); isolation: isolate; }
.requirements-toggle button { position: relative; z-index: 1; border: 0; min-height: 39px; padding: 8px 12px; background: transparent; color: var(--muted); border-radius: 11px; font-size: 12px; font-weight: 800; transition: color .2s ease; }
.requirements-toggle button.active { color: #fff; }
.requirements-toggle-thumb { position: absolute; z-index: 0; top: 4px; right: 4px; width: calc(50% - 5px); height: calc(100% - 8px); border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 5px 14px color-mix(in srgb, var(--primary) 22%, transparent); transition: transform .22s ease; }
.requirements-toggle:has([data-requirement-mode="recommended"].active) .requirements-toggle-thumb { transform: translateX(-100%); }
.requirements-mode-label { font-size: 10px; color: var(--muted-2); margin: 0 2px 12px; }
.game-requirements .info-row strong { text-align: left; max-width: 62%; overflow-wrap: anywhere; }
.install-guide-button { margin-top: 18px; }
.driver-panel { padding: 14px; background: color-mix(in srgb, var(--panel-strong) 76%, var(--bg-2)); border-color: color-mix(in srgb, var(--muted) 28%, var(--line)); }
.driver-row { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 15px 16px; margin: 0 0 12px; border: 1px solid color-mix(in srgb, var(--line) 65%, var(--line-strong)); border-radius: 24px; background: color-mix(in srgb, var(--panel-strong) 64%, var(--bg-2)); }
.driver-row:last-child { margin-bottom: 0; }
.driver-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 17px; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 16%, var(--panel)); font-size: 22px; font-weight: 800; }
.driver-copy { min-width: 0; flex: 1; }
.driver-copy b, .driver-copy small { display: block; }
.driver-copy b { font-size: 14px; overflow-wrap: anywhere; }
.driver-copy small { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.7; }
.driver-download { min-width: 95px; border-radius: 999px; }
.download-resources-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.download-resource-panel { padding: 16px; min-width: 0; }
.resource-panel-head { display: flex; align-items: center; gap: 11px; padding: 2px 2px 13px; border-bottom: 1px solid var(--line-strong); margin-bottom: 4px; }
.resource-panel-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--panel)); font-size: 22px; }
.resource-panel-icon.addon { color: var(--pink); background: color-mix(in srgb, var(--pink) 14%, var(--panel)); }
.resource-panel-head h3 { font-size: 14px; }
.resource-panel-head p { color: var(--muted); font-size: 11px; margin: 3px 0 0; }
.resource-link-row { display: flex; align-items: center; gap: 10px; padding: 13px 2px; border-bottom: 1px solid var(--line-strong); }
.resource-link-row:last-of-type { border-bottom: 0; }
.resource-number { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 11px; color: var(--primary); background: var(--panel-soft); font-size: 11px; font-weight: 800; }
.resource-link-row > div { min-width: 0; flex: 1; }
.resource-link-row b, .resource-link-row small { display: block; }
.resource-link-row b { font-size: 12px; overflow-wrap: anywhere; }
.resource-link-row small { color: var(--muted); font-size: 10px; margin-top: 4px; overflow-wrap: anywhere; }
.resource-link-row .btn { flex: 0 0 auto; }
.resource-note { margin: 12px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.9; }
.faq-list { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line-strong); border-radius: 15px; background: var(--panel-soft); padding: 0 14px; }
.faq-item summary { padding: 14px 2px; list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 800; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--panel)); font-size: 16px; }
.faq-item[open] summary:after { content: "−"; }
.faq-item p { margin: 0 2px 15px; color: var(--muted); font-size: 12px; line-height: 2; }
.faq-item a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.game-review-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 22px; }
.game-comments-list { min-width: 0; }
.game-comment { display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line-strong); }
.game-comment:first-child { padding-top: 0; }
.game-comment:last-child { border-bottom: 0; }
.game-comment-body { flex: 1; min-width: 0; }
.comment-role-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.comment-role { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font-size: 9px; font-weight: 800; line-height: 1.6; border: 1px solid transparent; }
.role-user { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 11%, var(--panel)); border-color: color-mix(in srgb, var(--cyan) 22%, transparent); }
.role-admin { color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, var(--panel)); border-color: color-mix(in srgb, var(--primary) 22%, transparent); }
.role-cafe { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 12%, var(--panel)); border-color: color-mix(in srgb, var(--yellow) 24%, transparent); }
.comment-role-stack b { font-size: 12px; overflow-wrap: anywhere; }
.game-comment-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; color: var(--muted-2); font-size: 10px; }
.comment-stars { direction: ltr; color: var(--yellow); white-space: nowrap; }
.game-comment-body > p { color: var(--muted); margin: 6px 0 0; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.game-review-form { align-self: start; min-width: 0; padding: 15px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--panel-soft); }
.game-review-form-foot { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: 12px; }
.game-review-form-foot .form-label { min-width: 120px; margin: 0; }
.game-review-form-foot .btn { flex: 0 0 auto; }

/* Make the contact panel's time and unread metadata stay within its card. */
.message-thread { min-width: 0; }
.message-thread-copy { overflow: hidden; }
.message-thread-meta { flex: 0 0 60px; width: 60px; max-width: 60px; min-width: 0; overflow: hidden; justify-items: center; }
.message-thread-meta small { display: block; width: 100%; max-width: 100%; line-height: 1.45; text-align: center; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.messenger-contacts-head-actions { display: flex; align-items: center; gap: 6px; }
.messenger-mobile-top { display: none; }

@media (max-width: 880px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-article-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-article-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-review-panel { grid-template-columns: minmax(0, 1fr); }
  .download-resources-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); flex-direction: initial; }
  .blog-card-art { height: 100%; min-height: 160px; }
  .blog-card-art .pill { right: 6px; top: 6px; font-size: 8px; padding: 3px 6px; }
  .blog-card-copy { padding: 11px; }
  .blog-card-copy h3 { font-size: 12px; margin: 7px 0 5px; }
  .blog-card-copy p { font-size: 10px; margin-bottom: 8px; }
  .blog-card-meta { gap: 6px; font-size: 9px; }
  .blog-feature, .blog-article-hero { grid-template-columns: minmax(0, 1fr); }
  .blog-feature-copy { padding: 20px; }
  .blog-feature-art { grid-row: 1; min-height: 165px; max-height: 190px; }
  .blog-feature-art:after, .blog-article-art:after { background: linear-gradient(0deg, var(--panel), transparent 48%); }
  .blog-article-art { min-height: 190px; max-height: 230px; }
  .blog-article-heading { padding: 18px; }
  .blog-article-heading h1 { font-size: 23px; }
  .blog-article-sidebar { grid-template-columns: minmax(0, 1fr); }
  .blog-article-actions .btn { flex: 1 1 auto; }
  .driver-panel { padding: 8px; border-radius: 20px; }
  .driver-row { gap: 9px; padding: 10px; border-radius: 19px; margin-bottom: 8px; flex-wrap: wrap; }
  .driver-icon { width: 40px; height: 40px; border-radius: 13px; font-size: 19px; }
  .driver-copy b { font-size: 12px; }
  .driver-copy small { font-size: 10px; }
  .driver-download { min-width: 82px; padding: 7px 10px; font-size: 10px; }
  .download-resource-panel { padding: 12px; }
  .resource-link-row { flex-wrap: wrap; gap: 8px; }
  .resource-link-row > div { flex: 1 1 calc(100% - 54px); }
  .resource-link-row .btn { margin-right: 39px; }
  .game-review-panel { gap: 16px; padding: 13px; }
  .game-review-form { padding: 12px; }
  .game-review-form-foot { align-items: stretch; }
  .game-review-form-foot .form-label { flex: 1; }
  .game-review-form-foot .btn { white-space: normal; }

  /* The messenger becomes a standalone, full-viewport mobile experience. */
  body.messenger-active { overflow: hidden; }
  body.messenger-active .site-header,
  body.messenger-active .workspace .sidebar,
  body.messenger-active .site-footer,
  body.messenger-active .mobile-bottom-nav,
  body.messenger-active .ai-chat-fab,
  body.messenger-active .ai-chat-panel { display: none !important; }
  body.messenger-active .workspace { display: block; width: 100%; margin: 0; padding: 0; }
  body.messenger-active .main-content { min-height: 100dvh; padding: 0; }
  .messenger-page { display: flex; flex-direction: column; height: 100dvh; min-height: 100dvh; max-width: none; margin: 0; padding: 0; overflow: hidden; }
  .messenger-mobile-top { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 62px; padding: 8px 12px; background: var(--panel-strong); border-bottom: 1px solid var(--line-strong); }
  .messenger-home-back { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 13px; background: var(--panel-soft); border: 1px solid var(--line-strong); font-size: 24px; }
  .messenger-mobile-top > div { min-width: 0; flex: 1; }
  .messenger-mobile-top b, .messenger-mobile-top small { display: block; }
  .messenger-mobile-top b { font-size: 13px; }
  .messenger-mobile-top small { font-size: 10px; color: var(--muted); }
  .messenger-mobile-top .btn { padding: 8px 10px; }
  .messenger-page > .page-header { display: none; }
  .messenger-layout { display: block; flex: 1; min-height: 0; overflow: hidden; }
  .messenger-contacts, .messenger-conversation { width: 100%; height: 100%; min-height: 0; max-height: none; border-radius: 0; border: 0; box-shadow: none; }
  .messenger-contacts { padding: 12px; overflow: hidden; }
  .message-thread-list { display: grid; grid-template-columns: minmax(0, 1fr); overflow-y: auto; min-height: 0; flex: 1; }
  .messenger-conversation { display: flex; }
  .messenger-page.show-conversation .messenger-contacts { display: none; }
  .messenger-page.show-conversation .messenger-conversation { display: flex; }
  .messenger-page.show-contacts .messenger-contacts { display: flex; }
  .messenger-page.show-contacts .messenger-conversation { display: none; }
  .messenger-page.show-contacts .messenger-mobile-top [data-show-message-contacts] { display: none; }
  .messenger-demo-note { margin-top: 8px; }
  .conversation-header { min-height: 66px; padding: 9px 11px; gap: 8px; }
  .conversation-contact-button { display: inline-flex; flex: 0 0 auto; padding: 7px 9px; }
  .conversation-header .message-avatar { width: 37px; height: 37px; border-radius: 13px; }
  .conversation-header b { font-size: 12px; }
  .conversation-header small { font-size: 9px; }
  .conversation-messages { padding: 14px 11px; }
  .conversation-compose { padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); }
}

.driver-vendor-links { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; flex: 0 0 auto; }
.driver-vendor-link { border-radius: 999px; padding: 8px 11px; font-size: 10px; }
@media (max-width: 620px) { .driver-vendor-links { width: 100%; margin-right: 49px; justify-content: flex-start; } .driver-vendor-link { flex: 1 1 auto; } }

/* ViraGame glass refresh: deeper translucency, a moving night palette and clearer controls. */
:root {
  --glass-blur: 28px;
  --glass-sheen: rgba(255, 255, 255, .46);
  --gold: #ffbc20;
  --gold-light: #ffe08a;
  --blue-electric: #0152be;
}
html[data-theme="night"] {
  --bg: #070b16;
  --bg-2: #101828;
  --panel: rgba(18, 24, 40, .55);
  --panel-strong: rgba(15, 21, 37, .78);
  --panel-soft: rgba(38, 47, 67, .48);
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(184, 173, 255, .27);
  --text: #f9faff;
  --muted: #c0c9d9;
  --muted-2: #8e9cb3;
  --primary: #a36bff;
  --primary-2: #c09aff;
  --cyan: #6fcaff;
  --yellow: #ffcb51;
  --pink: #f4a8ff;
  --purple: #a36bff;
  --green: #6de4be;
  --red: #ff809b;
  --shadow: 0 24px 70px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .12);
  --shadow-soft: 0 13px 38px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .10);
  --glass-sheen: rgba(255, 255, 255, .12);
}
html[data-theme="day"] {
  --gold: #ffbc20;
  --gold-light: #ffe08a;
  --blue-electric: #0152be;
}
html[data-theme="night"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 87% var(--scroll-blue-y, 12%), rgba(1, 82, 190, .28), transparent 43%),
    radial-gradient(ellipse at 17% var(--scroll-purple-y, 58%), rgba(145, 70, 242, .24), transparent 43%),
    radial-gradient(ellipse at var(--scroll-gold-x, 12%) 96%, rgba(255, 188, 32, .055), transparent 35%),
    linear-gradient(155deg, #080d19 0%, #0b1020 48%, #0a0b18 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: color .3s ease, background-color .3s ease;
}
html[data-theme="night"] .ambient-one { background: #0152be; opacity: .17; }
html[data-theme="night"] .ambient-two { background: #a36bff; opacity: .17; }
html[data-theme="night"] .site-header {
  background: rgba(8, 13, 27, .62);
  border-bottom-color: rgba(213, 222, 255, .13);
  -webkit-backdrop-filter: blur(30px) saturate(175%);
  backdrop-filter: blur(30px) saturate(175%);
}
html[data-theme="night"] .hero {
  background: linear-gradient(120deg, rgba(11, 18, 33, .53), rgba(29, 36, 62, .31)), radial-gradient(ellipse at 76% 25%, rgba(1, 82, 190, .27), transparent 49%), radial-gradient(ellipse at 23% 100%, rgba(157, 91, 255, .23), transparent 43%);
  border-color: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  backdrop-filter: blur(32px) saturate(170%);
}

/* Transparent layers keep cards readable while allowing the page gradients to show through. */
.panel,
.net-card,
.game-card,
.download-item,
.kid-game,
.category-card,
.match-card,
.price-card,
.driver-row,
.download-resource-panel,
.messenger-contacts,
.messenger-conversation,
.stat-card,
.blog-card,
.game-reviews-panel,
.game-replies-panel,
.faq-item,
.booking-summary,
.dashboard-tabs,
.lfg-card,
.reservation-row,
.download-filter-panel,
.game-detail-hero,
.online-game-stage,
.map-preview,
.wallet-card,
.filter-bar,
.dashboard-tab {
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(168%);
  backdrop-filter: blur(var(--glass-blur)) saturate(168%);
  border-color: color-mix(in srgb, var(--line-strong) 62%, var(--line));
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-sheen);
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .28s cubic-bezier(.2,.8,.2,1), filter .28s ease;
}
.panel {
  background-image: linear-gradient(135deg, rgba(255,255,255,.075), transparent 44%, rgba(255,255,255,.022));
}
html[data-theme="day"] .panel,
html[data-theme="day"] .download-resource-panel,
html[data-theme="day"] .game-reviews-panel,
html[data-theme="day"] .game-replies-panel {
  background-color: rgba(255, 255, 255, .47);
  border-color: rgba(255, 255, 255, .72);
}
html[data-theme="night"] .panel,
html[data-theme="night"] .net-card,
html[data-theme="night"] .game-card,
html[data-theme="night"] .download-item,
html[data-theme="night"] .kid-game,
html[data-theme="night"] .category-card,
html[data-theme="night"] .match-card,
html[data-theme="night"] .price-card,
html[data-theme="night"] .driver-row,
html[data-theme="night"] .download-resource-panel,
html[data-theme="night"] .messenger-contacts,
html[data-theme="night"] .messenger-conversation,
html[data-theme="night"] .stat-card,
html[data-theme="night"] .blog-card,
html[data-theme="night"] .game-reviews-panel,
html[data-theme="night"] .game-replies-panel,
html[data-theme="night"] .faq-item,
html[data-theme="night"] .booking-summary,
html[data-theme="night"] .dashboard-tabs,
html[data-theme="night"] .lfg-card,
html[data-theme="night"] .download-filter-panel {
  background-color: rgba(26, 35, 55, .48);
  border-color: rgba(205, 218, 255, .15);
}
html[data-theme="night"] .net-card,
html[data-theme="night"] .game-card,
html[data-theme="night"] .download-item,
html[data-theme="night"] .kid-game,
html[data-theme="night"] .category-card,
html[data-theme="night"] .match-card,
html[data-theme="night"] .price-card,
html[data-theme="night"] .blog-card {
  background-image: linear-gradient(140deg, rgba(255,255,255,.08), rgba(1,82,190,.055) 45%, rgba(163,107,255,.06));
}
.panel:hover,
.net-card:hover,
.game-card:hover,
.download-item:hover,
.kid-game:hover,
.category-card:hover,
.match-card:hover,
.price-card:hover,
.blog-card:hover,
.driver-row:hover,
.download-resource-panel:hover,
.game-reviews-panel:hover,
.game-replies-panel:hover {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--line-strong));
  box-shadow: 0 20px 46px rgba(9, 22, 50, .15), inset 0 1px 0 rgba(255,255,255,.18);
}
html[data-theme="night"] .panel:hover,
html[data-theme="night"] .net-card:hover,
html[data-theme="night"] .game-card:hover,
html[data-theme="night"] .download-item:hover,
html[data-theme="night"] .kid-game:hover,
html[data-theme="night"] .category-card:hover,
html[data-theme="night"] .match-card:hover,
html[data-theme="night"] .price-card:hover,
html[data-theme="night"] .blog-card:hover,
html[data-theme="night"] .driver-row:hover,
html[data-theme="night"] .download-resource-panel:hover {
  box-shadow: 0 21px 48px rgba(0, 0, 0, .24), 0 0 26px rgba(1, 82, 190, .075), inset 0 1px 0 rgba(255,255,255,.16);
}
@keyframes glassReveal {
  from { opacity: .55; transform: translateY(7px) scale(.995); filter: saturate(.8); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: saturate(1); }
}
@keyframes glassGradientFlow {
  0% { background-position: 0% 50%; filter: saturate(1); }
  50% { background-position: 100% 45%; filter: saturate(1.09); }
  100% { background-position: 0% 55%; filter: saturate(1); }
}
@keyframes glassButtonGlow {
  0%, 100% { box-shadow: 0 8px 22px rgba(1, 82, 190, .19), inset 0 1px 0 rgba(255,255,255,.48); }
  50% { box-shadow: 0 10px 28px rgba(163, 107, 255, .24), inset 0 1px 0 rgba(255,255,255,.65); }
}
.panel,
.net-card,
.game-card,
.download-item,
.kid-game,
.category-card,
.match-card,
.price-card,
.driver-row,
.blog-card {
  animation: glassReveal .48s cubic-bezier(.18,.8,.25,1) both;
}

/* Accent buttons are reserved for high-value actions. Day mode uses a warm gold gradient. */
html[data-theme="day"] .btn-primary {
  color: #20283a;
  background: linear-gradient(125deg, #f5b51b 0%, #ffe08a 46%, #ffbc20 100%);
  background-size: 220% 220%;
  border-color: rgba(255, 255, 255, .78);
  box-shadow: 0 9px 22px rgba(191, 133, 13, .20), inset 0 1px 0 rgba(255,255,255,.72);
  animation: glassGradientFlow 6s ease-in-out infinite;
}
html[data-theme="day"] .btn-primary:hover {
  background-position: 100% 45%;
  box-shadow: 0 12px 28px rgba(191, 133, 13, .28), inset 0 1px 0 rgba(255,255,255,.85);
  transform: translateY(-2px);
}
.btn-gold {
  color: #171f32 !important;
  border: 1px solid rgba(255, 244, 205, .60) !important;
  background: linear-gradient(125deg, #ffbc20 0%, #ffe089 42%, #f7ad12 100%) !important;
  background-size: 230% 230% !important;
  box-shadow: 0 9px 26px rgba(255, 188, 32, .22), inset 0 1px 0 rgba(255,255,255,.72) !important;
  animation: glassGradientFlow 5.8s ease-in-out infinite, glassButtonGlow 5s ease-in-out infinite;
}
.btn-gold:hover {
  background-position: 100% 45% !important;
  transform: translateY(-2px);
  box-shadow: 0 13px 32px rgba(255, 188, 32, .30), inset 0 1px 0 rgba(255,255,255,.88) !important;
}
html[data-theme="night"] .btn-primary {
  background: linear-gradient(125deg, #7141d9 0%, #a56dff 48%, #315fca 100%);
  background-size: 220% 220%;
  box-shadow: 0 8px 25px rgba(91, 68, 190, .24), inset 0 1px 0 rgba(255,255,255,.25);
  animation: glassGradientFlow 7s ease-in-out infinite;
}
html[data-theme="night"] .btn-primary:hover {
  background-position: 100% 45%;
  box-shadow: 0 12px 31px rgba(1, 82, 190, .24), 0 0 20px rgba(163, 107, 255, .15), inset 0 1px 0 rgba(255,255,255,.32);
  transform: translateY(-2px);
}
.btn,
.icon-button,
.mobile-nav-icon,
.section-icon,
.price-icon,
.driver-icon,
.resource-panel-icon,
.resource-number,
.bank-card-icon,
.kid-game-icon,
.quick-symbol {
  transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease, color .24s ease, border-color .24s ease;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-soft {
  background: linear-gradient(140deg, color-mix(in srgb, var(--panel-strong) 66%, transparent), color-mix(in srgb, var(--panel-soft) 62%, transparent));
  border-color: color-mix(in srgb, var(--line-strong) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.btn-soft:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line-strong)); transform: translateY(-1px); }
.detail-actions .btn { min-height: 43px; gap: 8px; }
.detail-actions .btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* One consistent glass treatment for every select, including selects inside modals. */
select,
select.form-control,
.filter-select,
.form-control:is(select) {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100%;
  min-height: 43px;
  padding: 10px 13px 10px 42px !important;
  border: 1px solid rgba(135, 157, 193, .36) !important;
  border-radius: 14px !important;
  color: var(--text) !important;
  background-color: color-mix(in srgb, var(--panel-strong) 68%, transparent) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a98cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(255,255,255,.07), transparent 60%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: left 13px center, center !important;
  background-size: 18px 18px, 100% 100% !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 5px 17px rgba(16, 35, 65, .055);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  font-size: 13px !important;
  transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}
html[data-theme="day"] select,
html[data-theme="day"] select.form-control,
html[data-theme="day"] .filter-select,
html[data-theme="day"] .form-control:is(select) {
  border-color: rgba(84, 120, 173, .24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 5px 17px rgba(44, 77, 123, .055);
}
html[data-theme="night"] select,
html[data-theme="night"] select.form-control,
html[data-theme="night"] .filter-select,
html[data-theme="night"] .form-control:is(select) {
  border-color: rgba(161, 143, 255, .31) !important;
  background-color: rgba(25, 37, 60, .76) !important;
  color: #fbfaff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 6px 19px rgba(0,0,0,.12);
}
select option,
select optgroup {
  color: #eff4ff;
  background: #152238;
}
html[data-theme="day"] select option,
html[data-theme="day"] select optgroup { color: #1b2d49; background: #f1f7ff; }
select:hover,
.filter-select:hover,
.form-control:is(select):hover { border-color: color-mix(in srgb, var(--primary) 53%, var(--line-strong)) !important; }
select:focus-visible,
.filter-select:focus-visible,
.form-control:is(select):focus-visible {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 19%, transparent), inset 0 1px 0 rgba(255,255,255,.15);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea {
  border-radius: 14px;
}
.form-control:not(select),
input.form-control:not([type="range"]),
textarea.form-control,
.filter-search input,
.conversation-compose input {
  background: linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 72%, transparent), color-mix(in srgb, var(--panel-soft) 76%, transparent));
  border-color: color-mix(in srgb, var(--line-strong) 88%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(17px) saturate(150%);
  backdrop-filter: blur(17px) saturate(150%);
  color: var(--text);
}
.form-control:focus,
.filter-search input:focus,
.conversation-compose input:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--primary) 66%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent), inset 0 1px 0 rgba(255,255,255,.12) !important;
  outline: none;
}
input[type="range"],
.rating-slider {
  width: 100%;
  height: 9px;
  margin: 11px 0 8px;
  border: 0 !important;
  border-radius: 999px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 52%, var(--gold) 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.16), 0 4px 15px color-mix(in srgb, var(--primary) 15%, transparent);
  cursor: grab;
}
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.95);
  background: linear-gradient(145deg, var(--gold-light), var(--primary));
  box-shadow: 0 4px 13px rgba(8, 13, 30, .26), 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}
input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.95);
  background: linear-gradient(145deg, var(--gold-light), var(--primary));
  box-shadow: 0 4px 13px rgba(8, 13, 30, .26), 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

/* Time picking, table selection and booking actions. */
.booking-select-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.booking-select-row .form-label { display: grid; gap: 7px; min-width: 0; margin-bottom: 0; }
.booking-helper { font-size: 12px; margin: 0 0 13px; }
.slot-grid { gap: 9px; }
.slot {
  min-height: 68px;
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel-strong) 75%, transparent), color-mix(in srgb, var(--panel-soft) 63%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 7px 19px rgba(7, 15, 38, .075);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.slot:not(:disabled):hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 55%, var(--line-strong)); box-shadow: 0 9px 22px color-mix(in srgb, var(--primary) 13%, transparent), inset 0 1px 0 rgba(255,255,255,.16); }
.slot span { font-size: 13px; }
.slot small { font-size: 9px; }
.slot.selected { color: white; border-color: rgba(255,255,255,.37); background: linear-gradient(135deg, var(--primary), #0152be 130%); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 22%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.slot.reserved { color: var(--red); background: color-mix(in srgb, var(--red) 9%, var(--panel)); border-color: color-mix(in srgb, var(--red) 29%, var(--line)); opacity: .82; }
.slot.reserved small { color: var(--red); }
.booking-summary { background: linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 62%, transparent), color-mix(in srgb, var(--panel-soft) 70%, transparent)); border-color: color-mix(in srgb, var(--line-strong) 78%, transparent); }
.booking-shortfall { color: var(--red); }
.modal-actions { align-items: stretch; }
.modal-actions .btn { min-height: 44px; }
.contact-phone-link { direction: ltr; display: inline-flex; justify-content: flex-start; color: var(--primary); font-weight: 800; }
.contact-phone-link:hover { color: var(--gold); }
.demo-phone-note { font-size: 10px; line-height: 1.9; margin: 12px 0 0; }

/* Credit top-up dialog: quick presets, separate standard and installment methods. */
.credit-form { display: grid; gap: 13px; }
.credit-form > .form-label { display: grid; gap: 7px; margin: 0; }
.credit-amount-input { direction: ltr; text-align: left; min-height: 50px !important; font-size: 17px !important; font-weight: 800; letter-spacing: .3px; }
.credit-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.credit-preset { min-width: 0; min-height: 42px; padding: 7px 4px; border: 1px solid var(--line-strong); border-radius: 13px; background: color-mix(in srgb, var(--panel-strong) 72%, transparent); color: var(--text); font-size: 10px; font-weight: 800; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.credit-preset:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 55%, var(--line-strong)); }
.credit-preset.active { color: #182238; border-color: rgba(255,240,190,.8); background: linear-gradient(135deg, #ffbc20, #ffe089); box-shadow: 0 6px 18px rgba(255,188,32,.14); }
.credit-gateway-group { display: grid; gap: 8px; }
.credit-gateway-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.credit-gateway-heading b { font-size: 13px; }
.credit-gateway-heading > span { font-size: 10px; color: var(--muted); }
.gateway-option { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px; border: 1px solid var(--line-strong); border-radius: 15px; background: linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 70%, transparent), color-mix(in srgb, var(--panel-soft) 62%, transparent)); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.gateway-option:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 48%, var(--line-strong)); }
.gateway-option:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 60%, var(--line-strong)); background: color-mix(in srgb, var(--primary) 10%, var(--panel-strong)); box-shadow: inset 0 1px 0 rgba(255,255,255,.11); }
.gateway-option input { position: absolute; opacity: 0; pointer-events: none; }
.gateway-option > span:nth-of-type(2) { display: grid; gap: 2px; min-width: 0; flex: 1; }
.gateway-option b { font-size: 12px; }
.gateway-option small { font-size: 10px; color: var(--muted); }
.gateway-option > i { flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; }
.gateway-option:has(input:checked) > i { border: 5px solid var(--primary); background: rgba(255,255,255,.95); }
.gateway-logo { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; color: white; font-weight: 900; font-size: 13px; background: linear-gradient(135deg, #4569ba, #7f9ce8); }
.gateway-mellat { background: linear-gradient(135deg, #e65a4f, #b6263a); }
.gateway-saman { background: linear-gradient(135deg, #279d8d, #176d89); }
.gateway-zarin { background: linear-gradient(135deg, #5f70dc, #8e5fe8); font-size: 9px; }
.gateway-tara { background: linear-gradient(135deg, #127a72, #31b99f); }
.gateway-digipay { background: linear-gradient(135deg, #2357ca, #42a6df); }
.credit-installment-divider { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 11px; font-weight: 800; }
.credit-installment-divider::before,
.credit-installment-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.credit-payment-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--primary) 8%, var(--panel)); border: 1px solid var(--line-strong); }
.credit-payment-summary span { color: var(--muted); font-size: 11px; }
.credit-payment-summary b { font-size: 15px; }
.credit-submit { width: 100%; min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.credit-form .security-note { line-height: 1.9; margin: 0; }

/* A star rating that feels like a control, not a plain select menu. */
.game-review-sections { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 14px; align-items: start; }
.game-reviews-panel, .game-replies-panel { min-width: 0; padding: clamp(14px, 2vw, 22px); }
.inner-section-heading { align-items: center; margin: 0 0 13px; }
.inner-section-heading h3 { font-size: 14px; }
.inner-section-heading p { font-size: 10px; margin-top: 3px; }
.game-replies-list { min-width: 0; }
.game-replies-list .game-comment { padding: 13px 0; }
.game-reviews-panel .game-review-form { margin-top: 13px; }
.game-review-form-foot { align-items: end; }
.rating-slider-wrap { flex: 1; min-width: 0; }
.rating-slider-heading { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; }
.rating-slider-heading output { color: var(--primary); }
.rating-slider { display: block; }
.rating-slider-scale { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 9px; }
.rating-slider-scale b { direction: ltr; color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.comments-pagination { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 7px; padding: 10px 0 3px; }
.comments-pagination > span { color: var(--muted); font-size: 10px; margin-right: 4px; }
.comments-page-button { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--panel-soft); color: var(--text); font-size: 11px; font-weight: 800; }
.comments-page-button.active { background: linear-gradient(135deg, var(--primary), #0152be); color: white; border-color: transparent; box-shadow: 0 5px 14px color-mix(in srgb, var(--primary) 23%, transparent); }

/* The trust-seal placeholder has more visual weight but remains clearly a placeholder. */
.enamad-placeholder { min-width: 190px; min-height: 82px; padding: 13px 15px; gap: 12px; border-style: solid; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 72%, transparent), color-mix(in srgb, var(--panel-soft) 68%, transparent)); box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.18); }
.enamad-placeholder > span { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; font-size: 23px; font-weight: 900; }
.enamad-placeholder b { font-size: 12px; }
.enamad-placeholder small { font-size: 10px; }

/* Stronger visual system for common icon holders; interactive glyphs lift slightly on hover. */
.section-icon,
.price-icon,
.driver-icon,
.resource-panel-icon,
.resource-number,
.bank-card-icon,
.kid-game-icon,
.quick-symbol,
.stat-icon,
.lfg-game-icon,
.map-pin {
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.19), 0 7px 18px rgba(7, 17, 40, .06);
}
.section-icon:hover,
.price-icon:hover,
.driver-icon:hover,
.resource-panel-icon:hover,
.bank-card-icon:hover,
.kid-game-icon:hover,
.quick-symbol:hover { transform: translateY(-2px) rotate(-3deg); }
.icon-button, .mobile-nav-icon { -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.icon-button:hover { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 46%, var(--line-strong)); box-shadow: 0 7px 20px color-mix(in srgb, var(--primary) 13%, transparent); }

/* Accessibility: respect reduced-motion preferences while retaining the glass styling. */
@media (prefers-reduced-motion: reduce) {
  .panel, .net-card, .game-card, .download-item, .kid-game, .category-card, .match-card, .price-card, .driver-row, .blog-card,
  .btn-primary, .btn-gold { animation: none !important; transition-duration: .01ms !important; }
}
@media (max-width: 880px) {
  .game-review-sections { grid-template-columns: minmax(0, 1fr); }
  .game-replies-panel { order: 2; }
}
@media (max-width: 620px) {
  .booking-select-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .slot { min-height: 64px; padding: 10px 3px; }
  .credit-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gateway-option { padding: 9px; }
  .gateway-logo { width: 36px; height: 36px; }
  .enamad-placeholder { min-width: 0; width: 100%; max-width: 300px; min-height: 78px; }
  .game-review-form-foot { flex-direction: column; align-items: stretch; }
  .game-review-form-foot .btn { width: 100%; }
  .detail-actions .btn { flex: 1 1 100%; justify-content: center; }
}


/* Make transient panels feel like floating panes of glass rather than opaque cards. */
.notification-popover,
.mobile-menu-sheet,
.ai-chat-panel,
.modal,
.toast {
  background: linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 68%, transparent), color-mix(in srgb, var(--panel-soft) 62%, transparent)) !important;
  border-color: color-mix(in srgb, var(--line-strong) 76%, rgba(255,255,255,.12));
  -webkit-backdrop-filter: blur(36px) saturate(175%);
  backdrop-filter: blur(36px) saturate(175%);
  box-shadow: 0 24px 64px rgba(5, 12, 31, .19), inset 0 1px 0 rgba(255,255,255,.15);
}
html[data-theme="night"] .notification-popover,
html[data-theme="night"] .mobile-menu-sheet,
html[data-theme="night"] .ai-chat-panel,
html[data-theme="night"] .modal,
html[data-theme="night"] .toast {
  background: linear-gradient(135deg, rgba(26, 38, 60, .79), rgba(20, 24, 43, .63)) !important;
  border-color: rgba(214, 222, 255, .18);
  box-shadow: 0 24px 68px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
}
