/* ألعاب مرداد (GAMES-PLAN.md). Phone first: everything below is for 360px and up, computers add at the end.
   The night of the lanterns (--gn-*) is dark in both themes; the rest follows the site's tokens. */
.gx, .gx-play { --g-ink: var(--mx-text, #12241C); --g-dim: var(--mx-text-2, #5C6F66); --g-line: var(--mx-line, rgba(17,52,40,.12)); --g-card: var(--mx-surface, #fff); --g-bg: var(--mx-bg, #EDF2EF);
  --gn-1: #0B2219; --gn-2: #123A2C; --gn-ink: #EAF7EF; --gn-dim: #A9C8B9; --amber: #FFB547; --ok: #1E9B4B; --okbg: #E2F5E8; --no: #C9452F; --nobg: #FBE9E5; --tone: #2bb65a; --tonebg: rgba(43,182,90,.13);
  font-family: var(--mx-font-ui, Tajawal), sans-serif; color: var(--g-ink); -webkit-tap-highlight-color: transparent; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) body.mx-on :is(.gx, .gx-play) { --okbg: #123322; --nobg: #3A1B16; --ok: #4CD07D; --no: #FF8A73; } }
html[data-theme="dark"] body.mx-on :is(.gx, .gx-play) { --okbg: #123322; --nobg: #3A1B16; --ok: #4CD07D; --no: #FF8A73; }
.gx-t-flame { --tone: #E8722F; --tonebg: rgba(240,120,47,.14); } .gx-t-emerald { --tone: #23A552; --tonebg: rgba(43,182,90,.14); } .gx-t-sky { --tone: #2F86C6; --tonebg: rgba(47,134,198,.14); }
.gx-t-violet { --tone: #7A63D8; --tonebg: rgba(122,99,216,.14); } .gx-t-gold { --tone: #C18A12; --tonebg: rgba(214,160,40,.17); } .gx-t-wood { --tone: #A0632F; --tonebg: rgba(160,99,47,.16); }

body:is(.mx-on, .mx-games) :is(.gx, .gx-play) :is(h1, h2, h3, h4) { font-family: var(--mx-font-ui, Tajawal), sans-serif; line-height: 1.4; }
body:is(.mx-on, .mx-games) .gx-play .gx-q { line-height: 1.6; }
body:is(.mx-on, .mx-games) .gx-play .gx-q--read { font-family: var(--mx-font-read, "Markazi Text"), serif; line-height: 1.75; }

/* ---------- the hub ---------- */
.gx { max-width: 720px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) calc(110px + env(safe-area-inset-bottom)); }
.gx h2 { margin: 30px 0 12px; font-size: 18px; font-weight: 700; color: var(--g-ink); }
.gx-bar0 { display: flex; align-items: center; gap: 4px; height: calc(56px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); margin-inline: -10px; font-weight: 700; font-size: 17px; }
.gx-hero { position: relative; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left))); padding: 18px 18px 20px; background: radial-gradient(120% 90% at 50% 0, var(--gn-2), var(--gn-1) 72%); color: var(--gn-ink); overflow: hidden; }
.gx-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 20px 30px, #fff8, transparent), radial-gradient(1px 1px at 90px 70px, #fff6, transparent), radial-gradient(1.5px 1.5px at 160px 20px, #fff7, transparent), radial-gradient(1px 1px at 220px 110px, #fff5, transparent), radial-gradient(1px 1px at 50px 130px, #fff5, transparent); background-size: 250px 150px; opacity: .55; pointer-events: none; }
.gx-hero > * { position: relative; }
.gx-hero__top { display: flex; align-items: center; gap: 14px; }
.gx-hero__flame { flex: none; }
.gx-hero h1 { margin: 0 0 2px; font-size: 24px; font-weight: 800; color: #fff; }
.gx-hero p { margin: 0; color: var(--gn-dim); font-size: 15px; line-height: 1.6; }
.gx-hero__streak { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 6px !important; }
.gx-hero__streak b { font-size: 26px; line-height: 1; color: var(--amber); }
.gx-hero__streak span { font-size: 14px; color: var(--gn-ink); }
.gx-hero__lan { margin: 6px -6px 0; min-height: 128px; }
.gx-hero .gx-btn { margin-top: 12px; }
.gx-hero--one { text-align: center; padding-block: 22px 26px; } .gx-hero--one .gx-hero__flame { display: flex; justify-content: center; } .gx-hero--one h1 { font-size: 30px; } .gx-hero--one small { display: block; margin-top: 10px; color: var(--gn-dim); font-size: 13.5px; }
.gx-week { display: flex; justify-content: space-between; gap: 6px; margin-top: 16px; direction: rtl; }
.gx-week i { flex: 1; font-style: normal; text-align: center; font-size: 12.5px; color: var(--gn-dim); }
.gx-week i::before { content: ''; display: block; width: 24px; height: 24px; margin: 0 auto 4px; border-radius: 50% 50% 50% 4px; rotate: 45deg; background: #1C4434; transition: background .3s; }
.gx-week i.is-on::before { background: radial-gradient(circle at 60% 60%, #FFE3A0, #FF9A3D 70%); box-shadow: 0 0 12px #ff9a3d88; }
.gx-lan { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding-top: 4px; }
.gx-lan__s { position: absolute; inset: 0 0 auto; width: 100%; height: 34px; } .gx-lan__s path { fill: none; stroke: #5B7F6E; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.gx-lamp { display: flex; flex-direction: column; align-items: center; min-width: 0; padding-top: calc(4px + var(--d) * 15px); text-decoration: none !important; color: var(--gn-dim) !important; transform-origin: 50% 0; }
.gx-lamp__w { width: 1px; height: 14px; background: #5B7F6E; }
.gx-lamp__b { width: 46px; height: 60px; transform-origin: 50% 0; animation: gxSway 4.2s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.7s); }
.gx-lamp svg { width: 100%; height: 100%; overflow: visible; }
.gx-lamp__cap { fill: #3C6252; stroke: #3C6252; stroke-width: 2; stroke-linejoin: round; } .gx-lamp__gl { fill: #17392C; stroke: #4A7362; stroke-width: 1.5; stroke-linejoin: round; transition: fill .5s, filter .5s; } .gx-lamp__fl { fill: #FFF0C2; opacity: 0; transform: scale(.2); transform-origin: 22px 42px; transition: transform .5s cubic-bezier(.3,1.8,.5,1), opacity .3s; }
.gx-lamp__t { margin-top: 5px; font-size: 12.5px; line-height: 1.35; text-align: center; padding-inline: 2px; }
.gx-lamp.is-lit { color: #FFE2A8 !important; } .gx-lamp.is-lit .gx-lamp__gl { fill: #F79A34; stroke: #FFD38A; filter: drop-shadow(0 0 12px #FFB547); } .gx-lamp.is-lit .gx-lamp__cap { fill: #B7843B; stroke: #B7843B; } .gx-lamp.is-lit .gx-lamp__fl { opacity: 1; transform: none; }
.gx-lamp.is-new .gx-lamp__b { animation: gxRing 1s ease-out; }
@keyframes gxSway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes gxRing { 0% { transform: rotate(0); } 15% { transform: rotate(16deg); } 35% { transform: rotate(-13deg); } 55% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } 100% { transform: none; } }
.gx-me { margin-top: 18px; }
.gx-me h2 { margin: 20px 0 8px; }
.gx-level > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .gx-level b { font-size: 17px; } .gx-level span { font-size: 13.5px; color: var(--g-dim); }
.gx-bar { display: block; height: 9px; border-radius: 9px; background: var(--g-line); overflow: hidden; margin-top: 8px; } .gx-bar::before { content: ''; display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 9px; background: linear-gradient(90deg, #FFC861, #F0782F); transition: width .7s var(--mx-ease, ease); }
.gx-tasks, .gx-bars, .gx-badges ul { list-style: none; margin: 0; padding: 0; }
.gx-tasks li { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--g-line); font-size: 15px; }
.gx-tasks .gx-bar { grid-column: 1 / -1; order: 4; margin-top: 4px; height: 7px; } .gx-tasks b { font-size: 14px; } .gx .gx-tasks em { font-style: normal; font-size: 13.5px; color: #C96A1F; font-weight: 700; } .gx-tasks li.is-done span { color: var(--g-dim); } .gx-tasks li.is-done b { color: var(--ok); }
.gx-due { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 13px 16px; border: 0; border-radius: 18px; background: var(--g-card); color: var(--g-ink); text-align: start; font: inherit; cursor: pointer; } .gx-due[hidden] { display: none; } .gx-due span { flex: 1; } .gx-due b { display: block; font-size: 15.5px; } .gx-due small { color: var(--g-dim); font-size: 13px; } .gx-due svg { width: 22px; height: 22px; }
.gx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .gx-tiles--one { grid-template-columns: 1fr; }
.gx-tile2 { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 132px; padding: 14px; border-radius: 22px; background: var(--g-card); color: var(--g-ink) !important; text-decoration: none !important; overflow: hidden; transition: transform .16s var(--mx-ease, ease); touch-action: manipulation; }
.gx-tile2:active { transform: scale(.965); }
.gx-tile2__m { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-width: 46px; height: 46px; padding-inline: 8px; border-radius: 15px; background: var(--tonebg); color: var(--tone); font-family: var(--mx-font-read, Markazi), serif; font-size: 24px; font-weight: 700; white-space: nowrap; }
.gx-tile2__t b { display: block; font-size: 16px; line-height: 1.4; } .gx-tile2__t small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--g-dim); }
.gx-tile2__s { position: absolute; top: 14px; inset-inline-end: 14px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--tone); } .gx-tile2.is-done .gx-tile2__m { background: var(--tone); color: #fff; }
.gx-tiles--one .gx-tile2 { flex-direction: row; align-items: center; min-height: 92px; background: linear-gradient(100deg, #7A4520, #A0632F 60%, #8A5227); color: #FFF3E2 !important; } .gx-tiles--one .gx-tile2 small { color: #F2D9BD; } .gx-tiles--one .gx-tile2__m { background: rgba(0,0,0,.22); color: #FFE2B5; height: 58px; min-width: 58px; font-size: 36px; } .gx-tiles--one .gx-tile2__s { color: #FFE2B5; }
.gx-bars li { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; padding: 7px 0; font-size: 14.5px; } .gx-bars .gx-bar { margin: 0; } .gx-bars b { text-align: end; }
.gx-badges ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .gx-badges li { text-align: center; padding: 14px 6px; border-radius: 18px; background: var(--g-card); } .gx-badges i, .gx-newb i { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 50% 50% 50% 8px; rotate: 0deg; background: radial-gradient(circle at 35% 30%, #FFE3A0, #F0902F 75%); color: #5A2A08; font-style: normal; font-family: var(--mx-font-read, Markazi), serif; font-size: 26px; font-weight: 700; } .gx-badges b { display: block; font-size: 13.5px; } .gx-badges span { font-size: 12px; color: var(--g-dim); line-height: 1.45; display: block; }
.gx-set label { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--g-line); font-size: 15.5px; } .gx-set label[hidden] { display: none; }
.gx-set input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; margin: 0; border-radius: 28px; background: var(--g-line); position: relative; cursor: pointer; transition: background .2s; } .gx-set input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: inset-inline-start .2s; } .gx-set input:checked { background: #23A552; } .gx-set input:checked::after { inset-inline-start: 23px; }
.gx-howto { margin: 0; padding: 0; list-style: none; counter-reset: h; } .gx-howto li { counter-increment: h; position: relative; padding: 9px 44px 9px 0; font-size: 16px; line-height: 1.7; } .gx-howto li::before { content: counter(h, arabic-indic); position: absolute; right: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%; background: var(--tonebg); color: var(--tone); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.gx-all { text-align: center; margin-top: 28px; } .gx-all a, .gx-link { color: var(--mx-accent-text, #13753A) !important; font-weight: 700; }
.gx-dim { color: var(--g-dim); font-size: 14px; line-height: 1.7; } .gx-legal { margin-top: 26px; font-size: 13px; }

/* ---------- the play screen ---------- */
html.gx-lock, html.gx-lock body { overflow: hidden !important; overscroll-behavior: none; }
.gx-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 100002; pointer-events: none; }
.gx-play { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; height: 100dvh; background: var(--g-bg); transform: translateY(24px); opacity: 0; transition: transform .24s var(--mx-ease, ease), opacity .2s; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.gx-play.is-on { transform: none; opacity: 1; }
.gx-play [hidden] { display: none !important; }
.gx-head { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left)); flex: none; width: 100%; max-width: 720px; margin: 0 auto; }
.gx-head__r { margin-inline-start: auto; }
.gx-prog { flex: 1; height: 13px; border-radius: 13px; background: var(--g-line); overflow: hidden; } .gx-prog i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: 13px; background: linear-gradient(270deg, #FFC861, #F0782F); box-shadow: inset 0 3px 0 #ffffff55; transition: width .5s cubic-bezier(.3,1.4,.5,1); }
.gx-icon, .gx-mini { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: transparent; color: var(--g-dim); cursor: pointer; padding: 0; }
.gx-ic { display: inline-flex; } .gx-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gx-stage { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); }
.gx-in { max-width: 620px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.gx-in--mid { justify-content: center; align-items: center; text-align: center; } .gx-in--mid > * { max-width: 100%; }
.gx-in--night { color: var(--gn-ink); } .gx-play:has(.gx-in--night) { background: radial-gradient(120% 80% at 50% 0, var(--gn-2), var(--gn-1) 75%); } .gx-play:has(.gx-in--night) .gx-icon { color: var(--gn-dim); } .gx-in--night .gx-dim, .gx-in--night .gx-kick { color: var(--gn-dim); } .gx-in--night .gx-h { color: #fff; }
.gx-in > * { animation: gxIn .34s var(--mx-ease, ease) both; } .gx-in > :nth-child(2) { animation-delay: .04s; } .gx-in > :nth-child(3) { animation-delay: .08s; } .gx-in > :nth-child(4) { animation-delay: .12s; }
@keyframes gxIn { from { opacity: 0; transform: translateY(14px); } }
.gx-foot { flex: none; width: 100%; max-width: 652px; margin: 0 auto; padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; } .gx-foot:empty { display: none; }
.gx-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 8px 20px; border: 0; border-radius: 99px; background: var(--mx-btn, #1C7A45); color: var(--mx-btn-ink, #EFFAF2) !important; font: 700 17px/1.3 var(--mx-font-ui, Tajawal), sans-serif; text-decoration: none !important; cursor: pointer; box-shadow: 0 4px 0 color-mix(in srgb, var(--mx-btn, #1C7A45) 70%, #000); transition: transform .09s, box-shadow .09s; touch-action: manipulation; }
.gx-btn:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; } .gx-btn:disabled { opacity: .45; }
.gx-btn--soft { background: var(--g-card); color: var(--g-ink) !important; box-shadow: 0 3px 0 var(--g-line); } .gx-btn--bad { background: #C9452F; box-shadow: 0 4px 0 #8F2E1E; color: #fff !important; }
.gx-btn--ok { background: #1E8E49; color: #fff !important; box-shadow: 0 4px 0 #12602F; } .gx-btn--no { background: #C9452F; color: #fff !important; box-shadow: 0 4px 0 #8F2E1E; }
.gx-btn--glow { background: linear-gradient(#FFC861, #F59A3C); color: #40200A !important; box-shadow: 0 4px 0 #B5651A, 0 0 26px #ffb54755; }
.gx-in--night ~ *, .gx-play:has(.gx-in--night) .gx-btn--soft { --g-card: #1B4434; --g-ink: #EAF7EF; --g-line: #0A1E16; }
.gx-two { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; } .gx-two:empty { display: none; }
.gx-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 4px 8px; border: 0; background: none; font: 700 14.5px var(--mx-font-ui, Tajawal), sans-serif; cursor: pointer; } .gx-link .gx-ic svg { width: 18px; height: 18px; }
.gx-kick { margin: 4px 0 6px; font-size: 14px; font-weight: 700; color: var(--tone); }
.gx-h { margin: 8px 0; font-size: 26px; font-weight: 800; line-height: 1.4; color: var(--g-ink); } .gx-lead { font-size: 18px; line-height: 1.7; }
.gx-q { margin: 0 0 16px; font-size: 21px; font-weight: 700; line-height: 1.6; color: var(--g-ink); text-wrap: balance; }
.gx-q--read, .gx-full { font-family: var(--mx-font-read, "Markazi Text"), serif; font-size: 27px; font-weight: 600; line-height: 1.75; }
.gx-verse { display: block; text-align: center; } .gx-verse > span { display: block; } .gx-verse > span + span { margin-top: 2px; }
.gx-gap { display: inline-block; min-width: 70px; padding-inline: 6px; border-bottom: 3px dashed var(--tone); color: var(--tone); line-height: 1.2; } .gx-gap.is-in { border-bottom-style: solid; border-color: transparent; animation: gxPop .4s cubic-bezier(.3,1.8,.5,1); }
.gx-how { list-style: none; margin: 6px 0 0; padding: 0; } .gx-how li { padding: 6px 0; font-size: 17px; line-height: 1.7; color: var(--g-dim); }
.gx-read { font-size: 18px; line-height: 1.9; margin: 0 0 18px; }
.gx-ops { display: flex; flex-direction: column; gap: 10px; margin-top: auto; } .gx-ops--2 { display: grid; grid-template-columns: 1fr 1fr; }
.gx-op { position: relative; display: flex; align-items: center; min-height: 58px; padding: 10px 18px; border: 2px solid var(--g-line); border-bottom-width: 4px; border-radius: 18px; background: var(--g-card); color: var(--g-ink); font: 500 17px/1.5 var(--mx-font-ui, Tajawal), sans-serif; text-align: start; cursor: pointer; transition: transform .1s, border-color .15s, background .15s; touch-action: manipulation; }
.gx-op:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; } .gx-op.is-on { border-color: var(--tone); background: var(--tonebg); }
.gx-op.is-right { border-color: var(--ok); background: var(--okbg); animation: gxPop .38s cubic-bezier(.3,1.7,.5,1); } .gx-op.is-wrong { border-color: var(--no); background: var(--nobg); } .gx-op.is-out { opacity: .35; text-decoration: line-through; }
.gx-op:disabled { cursor: default; color: var(--g-ink); } .gx-ops--2 .gx-op { justify-content: center; text-align: center; padding-inline: 10px; } .gx-ops--num .gx-op { font-size: 24px; font-weight: 700; }
.gx-ops--drawn { display: grid; grid-template-columns: repeat(3, 1fr); } .gx-ops--4.gx-ops--drawn { grid-template-columns: 1fr 1fr; } .gx-ops--drawn .gx-op { justify-content: center; padding: 8px; } .gx-draw { display: block; width: 100%; max-width: 88px; } .gx-draw svg { display: block; width: 100%; }
.gx-mat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: min(100%, 290px); margin: 0 auto 18px; direction: rtl; } .gx-mat span { aspect-ratio: 1; border-radius: 12px; background: var(--g-card); display: flex; align-items: center; justify-content: center; } .gx-mat svg { width: 78%; } .gx-mat .is-q, .gx-seq .is-q { background: var(--tonebg); color: var(--tone); font-size: 30px; font-weight: 800; }
.gx-f0, .gx-f1, .gx-f2 { stroke: var(--g-ink); stroke-width: 3; stroke-linejoin: round; } .gx-f0 { fill: none; } .gx-f1 { fill: var(--tone); fill-opacity: .38; } .gx-f2 { fill: var(--g-ink); }
.gx-seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 24px; } .gx-seq b { min-width: 52px; height: 58px; padding-inline: 8px; border-radius: 14px; background: var(--g-card); display: flex; align-items: center; justify-content: center; font-size: 23px; }
.gx-poly { width: 150px; margin: 4px auto 20px; } .gx-cell { fill: var(--tone); }
.gx-card { position: relative; width: 100%; padding: 34px 22px; border-radius: 26px; background: var(--g-card); box-shadow: 0 10px 34px rgba(8,30,20,.12); transition: transform .35s cubic-bezier(.3,1.5,.5,1); touch-action: pan-y; cursor: grab; } .gx-card .gx-q { margin: 6px 0 0; font-size: 23px; } .gx-card.is-right { box-shadow: 0 0 0 3px var(--ok); } .gx-card.is-wrong { box-shadow: 0 0 0 3px var(--no); }
.gx-tag { position: absolute; top: 14px; padding: 4px 14px; border-radius: 10px; font-style: normal; font-weight: 800; border: 2.5px solid; opacity: 0; } .gx-tag--t { left: 16px; color: var(--ok); opacity: var(--t, 0); rotate: -10deg; } .gx-tag--f { right: 16px; color: var(--no); opacity: var(--f, 0); rotate: 10deg; }
.gx-clues { list-style: none; margin: 0 0 14px; padding: 0; } .gx-clues li { padding: 12px 16px; margin-bottom: 8px; border-radius: 16px; background: var(--g-card); font-size: 16.5px; line-height: 1.7; animation: gxIn .35s both; }
.gx-order { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; touch-action: none; } .gx-ord { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px 8px 4px; border-radius: 18px; background: var(--g-card); border: 2px solid var(--g-line); cursor: grab; } .gx-ord__t { flex: 1; font-size: 16px; line-height: 1.5; } .gx-ord__g { color: var(--g-dim); opacity: .6; } .gx-ord__a { display: flex; } .gx-mini { width: 40px; height: 44px; } .gx-ord.is-drag { z-index: 3; box-shadow: 0 12px 30px rgba(8,30,20,.22); border-color: var(--tone); cursor: grabbing; } .gx-ord.is-right { border-color: var(--ok); background: var(--okbg); } .gx-ord.is-wrong { border-color: var(--no); background: var(--nobg); } .gx-order[data-done] .gx-ord__a { visibility: hidden; }
.gx-years { list-style: none; margin: 0 0 8px; padding: 0; font-size: 14.5px; line-height: 1.8; } .gx-years b { display: inline-block; min-width: 74px; color: var(--tone); }
.gx-keys { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; } .gx-keys p { margin: 0; padding: 8px 14px; border-radius: 12px; background: var(--tonebg); font-size: 16px; animation: gxIn .35s both; } .gx-keys b { color: var(--tone); margin-inline-end: 6px; }
.gx-lets { margin-top: auto; width: 100%; } .gx-slots { display: flex; justify-content: center; gap: 7px; margin: 8px 0 18px; } .gx-slot { width: 48px; height: 56px; padding: 0; border: 2px dashed var(--g-dim); border-radius: 14px; background: transparent; color: var(--g-ink); font: 700 28px var(--mx-font-ui, Tajawal), sans-serif; cursor: pointer; } .gx-slot.is-in { border-style: solid; border-color: var(--tone); background: var(--tonebg); animation: gxPop .25s cubic-bezier(.3,1.7,.5,1); } .gx-slot.is-fix, .gx-slot.is-right { border-color: var(--ok); background: var(--okbg); }
.gx-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 340px; margin: 0 auto; } .gx-tile { width: 54px; height: 56px; padding: 0; border: 0; border-radius: 15px; background: var(--g-card); color: var(--g-ink); font: 700 27px var(--mx-font-ui, Tajawal), sans-serif; box-shadow: 0 4px 0 var(--g-line); cursor: pointer; transition: transform .1s, opacity .15s; touch-action: manipulation; } .gx-tile:active { transform: translateY(3px); box-shadow: none; } .gx-tile:disabled { opacity: .16; transform: scale(.86); }
.gx-got { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; } .gx-grp { padding: 10px 16px; border-radius: 16px; text-align: center; animation: gxPop .4s cubic-bezier(.3,1.6,.5,1); } .gx-grp b { display: block; font-size: 16px; } .gx-grp span { font-size: 15px; } .gx-grp--0 { background: rgba(47,134,198,.2); } .gx-grp--1 { background: rgba(240,120,47,.2); } .gx-grp--2 { background: rgba(43,182,90,.2); }
.gx-thr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .gx-word { min-height: 66px; padding: 6px; border: 2px solid var(--g-line); border-bottom-width: 4px; border-radius: 16px; background: var(--g-card); color: var(--g-ink); font: 700 16.5px/1.35 var(--mx-font-ui, Tajawal), sans-serif; cursor: pointer; transition: transform .12s, background .15s; touch-action: manipulation; } .gx-word.is-on { background: var(--tone); border-color: var(--tone); color: #fff; transform: translateY(-3px); } .gx-word.is-gone { transform: scale(.2) rotate(12deg); opacity: 0; transition: .35s; } .gx-dots { text-align: center; color: var(--g-dim); font-size: 14.5px; } .gx-dots span { letter-spacing: 4px; color: var(--tone); } .gx-dots b { color: var(--tone); }
.gx-arg { padding: 14px 16px; border-radius: 18px; background: var(--g-card); border: 2px solid transparent; } .gx-arg.is-mine { border-color: var(--tone); } .gx-arg b small { color: var(--tone); font-size: 13px; margin-inline-start: 6px; } .gx-arg p { margin: 6px 0 0; font-size: 16px; line-height: 1.8; } .gx-think { margin-top: 18px; font-family: var(--mx-font-read, Markazi), serif; font-size: 21px; line-height: 1.7; }
.gx-sheet { position: absolute; inset: auto 0 0; z-index: 5; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; max-height: 74dvh; overflow-y: auto; padding: 18px max(18px, calc(50% - 310px)) calc(16px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--g-card); box-shadow: 0 -14px 44px rgba(6,24,16,.2); transform: translateY(105%); visibility: hidden; transition: transform .34s cubic-bezier(.25,1.25,.4,1), visibility 0s .34s; user-select: text; -webkit-user-select: text; } .gx-sheet.is-on { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.25,1.25,.4,1); }
.gx-sheet--good { background: var(--okbg); } .gx-sheet--bad { background: var(--nobg); } .gx-sheet__t { display: flex; align-items: center; gap: 10px; } .gx-sheet__t b { font-size: 20px; font-weight: 800; } .gx-sheet--good .gx-sheet__t b { color: var(--ok); } .gx-sheet--bad .gx-sheet__t b { color: var(--no); } .gx-xp { padding: 2px 10px; border-radius: 99px; background: #FFE2A8; color: #7A3E08; font-weight: 800; font-size: 14.5px; }
.gx-sheet__b { grid-column: 1 / -1; font-size: 16px; line-height: 1.75; } .gx-sheet__b p { margin: 4px 0; } .gx-sheet__b small { display: block; color: var(--g-dim); font-size: 13px; } .gx-sheet__b .gx-full { font-size: 23px; line-height: 1.6; } .gx-by { font-weight: 700; } .gx-sheet .gx-link { min-height: 36px; padding: 0; font-size: 13.5px; color: var(--g-dim) !important; font-weight: 500; } .gx-sheet .gx-btn { grid-column: 1 / -1; margin-top: 10px; }
.gx-report { display: grid; gap: 8px; margin-top: 6px; } .gx-report textarea { width: 100%; border: 2px solid var(--g-line); border-radius: 14px; padding: 10px 12px; font: 16px var(--mx-font-ui, Tajawal), sans-serif; background: var(--g-card); color: var(--g-ink); }
.gx-combo { position: absolute; top: calc(60px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; padding: 6px 18px; border-radius: 99px; background: linear-gradient(#FFC861, #F0782F); color: #40200A; font-weight: 800; pointer-events: none; opacity: 0; z-index: 4; } .gx-combo b { font-size: 20px; } .gx-combo.is-on { animation: gxCombo 1.3s both; }
@keyframes gxCombo { 0% { opacity: 0; transform: scale(.4) translateY(20px); } 18% { opacity: 1; transform: scale(1.16); } 28% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes gxPop { 0% { transform: scale(.82); } 60% { transform: scale(1.06); } 100% { transform: none; } }
.gx-shake { animation: gxShake .4s !important; } @keyframes gxShake { 20% { transform: translateX(-9px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* on the night screens the main button is the lit one */
.gx-play:has(.gx-in--night) .gx-foot > .gx-btn:not(.gx-btn--soft) { background: linear-gradient(#FFC861, #F59A3C); color: #40200A !important; box-shadow: 0 4px 0 #B5651A, 0 0 26px #ffb54755; }
body.mx-games header.header, body.mx-games .header-mobile:not(#gx) { display: none !important; }
.gx-lets ~ .gx-dim, .gx-lets .gx-dim { text-align: center; }

/* the end */
.gx-in--end { padding-block: 10px; } .gx-score { margin: 0; font-size: 19px; color: var(--g-dim); } .gx-score b { font-size: 44px; color: var(--g-ink); line-height: 1.1; }
.gx-embers { display: flex; gap: 12px; margin: 12px 0; } .gx-embers i { width: 46px; height: 46px; border-radius: 50% 50% 50% 12px; rotate: 135deg; background: var(--g-line); transition: background .2s; } .gx-embers i:nth-child(2) { translate: 0 -8px; } .gx-embers i.is-on { background: radial-gradient(circle at 60% 60%, #FFF0C2, #FFB547 45%, #F0782F); box-shadow: 0 0 22px #ffb54799; animation: gxEmber .6s cubic-bezier(.3,1.8,.5,1); } @keyframes gxEmber { 0% { scale: .2; } 60% { scale: 1.25; } 100% { scale: 1; } }
.gx-rows { list-style: none; width: min(100%, 320px); margin: 8px auto 0; padding: 0; } .gx-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--g-line); font-size: 15.5px; animation: gxIn .3s both; } .gx-rows b { color: #C96A1F; } .gx-gain { margin: 10px 0; font-size: 18px; color: var(--g-dim); } .gx-gain b { font-size: 34px; color: #E8722F; } .gx-up { font-size: 18px; animation: gxPop .5s both; } .gx-up b { color: #E8722F; }
.gx-skills { width: min(100%, 360px); } .gx-skills ul { list-style: none; margin: 10px 0; padding: 0; } .gx-skills li { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; padding: 6px 0; text-align: start; } .gx-skills i { height: 10px; border-radius: 10px; background: linear-gradient(var(--tone), var(--tone)) right / calc(var(--w) * 100%) 100% no-repeat, var(--g-line); }
.gx-bign { margin: 6px 0 0; font-size: 84px; font-weight: 800; line-height: 1; color: var(--amber); text-shadow: 0 0 40px #ff9a3d66; } .gx-bign.is-pop { animation: gxEmber .7s cubic-bezier(.3,1.8,.5,1); }
.gx-in--end .gx-lan { width: 100%; margin-top: 18px; } .gx-newb { display: flex; align-items: center; gap: 14px; width: min(100%, 360px); margin-top: 16px; padding: 12px 16px; border-radius: 20px; background: #1B4434; text-align: start; animation: gxPop .5s both; animation-delay: calc(.9s + var(--k) * .3s); } .gx-newb i { margin: 0; flex: none; } .gx-newb b { display: block; color: #fff; } .gx-newb span { font-size: 14px; color: var(--gn-dim); } .gx-guest { margin-top: 18px; } .gx-guest p { color: var(--gn-dim); }

/* ---------- شعلة ---------- */
.gx-flame { --ex: 0px; --ey: 0px; width: calc(var(--fs) * .86); height: var(--fs); cursor: pointer; transform-origin: 50% 100%; touch-action: manipulation; } .gx-flame svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 calc(var(--fs) * .12) #ff9a3d66); }
.gx-flame__b { transform-origin: 60px 136px; animation: gxBreath 1.9s ease-in-out infinite alternate; } .gx-flame__o { transform-origin: 60px 136px; animation: gxFlick 1.1s ease-in-out infinite alternate; } .gx-flame__i { transform-origin: 60px 133px; animation: gxFlick .8s ease-in-out infinite alternate-reverse; }
@keyframes gxBreath { from { transform: scale(1, .985); } to { transform: scale(.99, 1.03); } } @keyframes gxFlick { 0% { transform: skewX(-2.5deg) scaleY(.985); } 100% { transform: skewX(2.5deg) scaleY(1.02); } }
.gx-flame__face { transform: translate(var(--ex), var(--ey)); transition: transform .12s; } .gx-flame__eyes { transform-origin: 60px 98px; animation: gxBlink 4.6s infinite; } @keyframes gxBlink { 0%, 94%, 100% { transform: none; } 97% { transform: scaleY(.1); } }
.gx-flame__m { fill: none; stroke: #3A1A0B; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; } .gx-m-happy, .gx-m-wow { fill: #7A2A12; } .gx-flame__c { fill: #FF7A4D; opacity: .5; }
.gx-flame[data-mood=idle] .gx-m-idle, .gx-flame[data-mood=happy] .gx-m-happy, .gx-flame[data-mood=cheer] .gx-m-happy, .gx-flame[data-mood=sad] .gx-m-sad, .gx-flame[data-mood=wow] .gx-m-wow, .gx-flame[data-mood=think] .gx-m-think, .gx-flame[data-mood=sleep] .gx-m-think { opacity: 1; }
.gx-flame[data-mood=sleep] .gx-flame__eyes { transform: scaleY(.1); animation: none; } .gx-flame[data-mood=sleep] svg { filter: saturate(.45) brightness(.8); } .gx-flame[data-mood=sad] .gx-flame__eyes { transform: translateY(2px) scaleY(.75); animation: none; } .gx-flame[data-mood=sad] .gx-flame__b { animation: none; transform: scale(1.02, .92); } .gx-flame[data-mood=wow] .gx-flame__eyes { transform: scale(1.2); animation: none; } .gx-flame[data-mood=cheer] .gx-flame__b { animation: gxCheer .55s ease-in-out infinite alternate; } .gx-flame[data-mood=think] .gx-flame__b { animation: gxThink 1.6s ease-in-out infinite alternate; }
@keyframes gxCheer { from { transform: scale(1.08, .9); } to { transform: translateY(-10px) scale(.94, 1.1); } } @keyframes gxThink { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.gx-flame.is-hop { animation: gxHop .6s cubic-bezier(.3,.7,.3,1); } .gx-flame.is-squash { animation: gxSquash .5s cubic-bezier(.3,.7,.3,1); } .gx-flame.is-shake { animation: gxShake .45s; }
@keyframes gxHop { 0% { transform: none; } 18% { transform: scale(1.18, .78); } 48% { transform: translateY(-34%) scale(.88, 1.18); } 76% { transform: scale(1.14, .86); } 100% { transform: none; } } @keyframes gxSquash { 0% { transform: none; } 25% { transform: scale(1.28, .66); } 55% { transform: scale(.86, 1.2); } 78% { transform: scale(1.06, .95); } 100% { transform: none; } }

/* ---------- crossword ---------- */
.gx-play--cross .gx-in { align-items: center; justify-content: center; } .gx-play--cross .gx-stage { padding: 2px 8px; } .gx-play--cross .gx-foot { padding-inline: 6px; gap: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.gx-cw { display: grid; grid-template-columns: repeat(var(--w), 1fr); gap: 2px; width: min(100%, 460px, calc((100dvh - 330px) * var(--w) / var(--h))); } .gx-cw__no { aspect-ratio: 1; }
.gx-cw__c { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; background: var(--g-card); color: var(--g-ink); font: 700 clamp(17px, 5.4vw, 25px)/1 var(--mx-font-ui, Tajawal), sans-serif; cursor: pointer; touch-action: manipulation; } .gx-cw__c small { position: absolute; top: 2px; right: 4px; font-size: 10px; font-weight: 500; color: var(--g-dim); } .gx-cw__c.is-w { background: #CFE8F8; color: #12303F; } .gx-cw__c.is-at { background: #FFC861; color: #40200A; } .gx-cw__c.is-bad span { color: #D23B22; text-decoration: underline wavy; } .gx-cw__c.is-given span { color: #2F86C6; } .gx-cw__c.is-pop span { display: inline-block; animation: gxPop .22s; } .gx-cw__c.is-wave { animation: gxPop .35s; } .gx-cw__c.is-won { background: #BFEACB; color: #0F3B22; animation: gxPop .4s; }
.gx-cw__msg { min-height: 22px; margin: 4px 0 0; font-size: 14px; color: var(--g-dim); text-align: center; }
.gx-cw__clue { display: flex; align-items: center; background: var(--tonebg); border-radius: 14px; min-height: 48px; } .gx-cw__ct { flex: 1; border: 0; background: none; color: var(--g-ink); font: 500 16px/1.45 var(--mx-font-ui, Tajawal), sans-serif; padding: 6px 2px; cursor: pointer; } .gx-cw__ct b { color: var(--tone); } .gx-cw__ct small { color: var(--g-dim); } .gx-r90 { rotate: 90deg; }
.gx-kb { display: flex; flex-direction: column; gap: 5px; direction: ltr; } .gx-kb__r { display: flex; justify-content: center; gap: 4px; direction: ltr; } .gx-k { flex: 1 1 0; max-width: 46px; height: 46px; padding: 0; border: 0; border-radius: 9px; background: var(--g-card); color: var(--g-ink); font: 600 20px var(--mx-font-ui, Tajawal), sans-serif; box-shadow: 0 2px 0 var(--g-line); cursor: pointer; touch-action: manipulation; } .gx-k:active { transform: translateY(2px); background: var(--tonebg); } .gx-k--w { max-width: 64px; flex-grow: 1.5; }
.gx-cw__tools { display: flex; justify-content: space-around; } .gx-cw__tools .gx-link { min-height: 40px; }
.gx-cw__list { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: var(--g-bg); animation: gxIn .25s; padding-top: env(safe-area-inset-top); } .gx-cw__lh { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; font-size: 18px; } .gx-cw__lb { flex: 1; overflow-y: auto; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); width: 100%; max-width: 620px; margin: 0 auto; } .gx-cw__lb h3 { margin: 14px 0 4px; font-size: 16px; color: var(--tone); } .gx-cw__li { display: flex; gap: 12px; width: 100%; align-items: baseline; padding: 11px 4px; border: 0; border-bottom: 1px solid var(--g-line); background: none; color: var(--g-ink); font: 500 16px/1.5 var(--mx-font-ui, Tajawal), sans-serif; text-align: start; cursor: pointer; } .gx-cw__li span { flex: 1; } .gx-cw__li small { color: var(--g-dim); } .gx-cw__li.is-full { opacity: .5; }

/* ---------- memory and attention ---------- */
.gx-mem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; perspective: 900px; margin: auto; } .gx-mem--8 { grid-template-columns: repeat(4, 1fr); } .gx-mc { aspect-ratio: 3 / 3.7; padding: 0; border: 0; background: none; cursor: pointer; } .gx-mc__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .34s cubic-bezier(.3,1.2,.4,1); } .gx-mc.is-up .gx-mc__in { transform: rotateY(180deg); } .gx-mc i, .gx-mc b { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; align-items: center; justify-content: center; } .gx-mc i { background: linear-gradient(150deg, #123A2C, #0B2219); } .gx-mc i::after { content: ''; width: 38%; aspect-ratio: .84; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 140'%3E%3Cpath fill='%23F0902F' d='M62 4C66 30 100 46 103 86c2 30-19 50-43 50S15 116 17 86c1-19 14-28 19-45 8 8 12 13 14 20C59 46 63 26 62 4Z'/%3E%3C/svg%3E"); opacity: .75; } .gx-mc b { background: var(--g-card); color: var(--g-ink); transform: rotateY(180deg); font-size: clamp(15px, 4.6vw, 21px); } .gx-mc.is-hit b { background: var(--okbg); color: var(--ok); }
.gx-chain { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; width: min(100%, 330px); margin: 16px 0; } .gx-chl { aspect-ratio: .86; border: 0; border-radius: 26px 26px 34px 34px; background: color-mix(in srgb, var(--c) 24%, #0E2A1F); cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s; touch-action: manipulation; } .gx-chl.is-on { background: var(--c); box-shadow: 0 0 44px var(--c); transform: scale(1.07); }
.gx-ink { font-size: 64px; font-weight: 800; margin: 20px 0; } .gx-ink.is-in, .gx-sum.is-in { animation: gxPop .2s; } .gx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .gx-col { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border: 2px solid var(--g-line); border-bottom-width: 4px; border-radius: 18px; background: var(--g-card); color: var(--g-ink); font: 700 18px var(--mx-font-ui, Tajawal), sans-serif; cursor: pointer; touch-action: manipulation; } .gx-col i { width: 20px; height: 20px; border-radius: 50%; }
.gx-spot { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 5px; width: min(100%, 430px); margin: auto; } .gx-sp { aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; background: var(--g-card); color: var(--g-ink); font: 700 clamp(18px, 6.5vw, 30px)/1 var(--mx-font-ui, Tajawal), sans-serif; cursor: pointer; touch-action: manipulation; } .gx-sp.is-right { background: #BFEACB; color: #0F3B22; } .gx-sp.is-wrong { background: #F6C3B8; color: #5A1608; }
.gx-sum { font-size: 52px; font-weight: 800; margin: 16px 0 28px; } .gx-in--mid .gx-ops { width: 100%; margin-top: 0; } .gx-pad { width: min(78vw, 300px); aspect-ratio: 1; border: 0; border-radius: 50%; background: #143A2C; display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: none; margin: 10px; } .gx-pad.is-hot { background: radial-gradient(#FFC86188, #7A3E08); box-shadow: 0 0 70px #ff9a3d99; }

/* ---------- backgammon ---------- */
.gx-play--nard .gx-stage { padding-inline: 8px; } .gx-in--nard { align-items: center; justify-content: center; } .gx-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; width: min(100%, 400px); margin-bottom: 8px; } .gx-seg button { padding: 12px 6px; border: 2px solid var(--g-line); border-radius: 16px; background: var(--g-card); color: var(--g-ink); font: inherit; cursor: pointer; } .gx-seg b { display: block; font-size: 16.5px; } .gx-seg small { color: var(--g-dim); font-size: 13px; } .gx-seg button[aria-pressed=true] { border-color: var(--tone); background: var(--tonebg); }
.gx-nrow { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; min-height: 48px; padding-inline: 6px; } .gx-noff { margin-inline-start: auto; padding: 6px 14px; border: 2px solid transparent; border-radius: 99px; background: var(--g-card); color: var(--g-dim); font: 500 14px var(--mx-font-ui, Tajawal), sans-serif; } .gx-noff b { color: var(--g-ink); } .gx-noff.is-to { border-color: #23A552; background: var(--okbg); animation: gxPulse 1s infinite alternate; cursor: pointer; }
.gx-ninfo { min-height: 28px; margin: 2px 0; font-size: 17px; font-weight: 700; text-align: center; color: var(--tone); }
.gx-nb { position: relative; flex: none; border-radius: 14px; background: #D9B27C; box-shadow: 0 0 0 7px #6B3B1B, 0 0 0 9px #8E5428, 0 16px 34px rgba(40,18,4,.35); margin: 8px; } .gx-nb__bg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; } .gx-tri--0 { fill: #8A3E22; } .gx-tri--1 { fill: #F3DDB6; } .gx-nbar { fill: #6B3B1B; }
.gx-nb__pts button { position: absolute; z-index: 30; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; border-radius: 8px; } .gx-npt.is-to { background: linear-gradient(rgba(30,155,75,.5), rgba(30,155,75,.2)); box-shadow: inset 0 0 0 2px #1E9B4B; animation: gxPulse 1s infinite alternate; } .gx-npt.is-from { box-shadow: inset 0 0 0 2px rgba(255,200,97,.85); } .gx-npt.is-sel { box-shadow: inset 0 0 0 3px #FFC861; background: rgba(255,200,97,.28); } .gx-npt--bar { z-index: 29 !important; } @keyframes gxPulse { to { opacity: .62; } }
.gx-nb__st { position: absolute; inset: 0; z-index: 3; pointer-events: none; } .gx-stone { position: absolute; top: 0; left: 0; width: var(--d); height: var(--d); border-radius: 50%; transition: transform .38s cubic-bezier(.3,1.1,.4,1), opacity .3s; box-shadow: 0 2px 3px rgba(0,0,0,.45); } .gx-stone::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; border: 1.5px solid; opacity: .45; } .gx-stone--0 { background: radial-gradient(circle at 35% 30%, #FFFDF6, #E9DCC2 70%, #C9B78F); color: #8A7650; } .gx-stone--1 { background: radial-gradient(circle at 35% 30%, #5B4038, #2A1712 70%, #160A07); color: #C08A6A; } .gx-stone.is-pinned { filter: saturate(.4); outline: 2px solid #D23B22; outline-offset: -1px; }
.gx-dice { position: absolute; z-index: 20; top: 50%; translate: 0 -50%; left: 54%; width: 42%; display: flex; justify-content: center; gap: 10px; pointer-events: none; } .gx-dice--1 { left: 4%; } .gx-die { display: grid; grid-template-columns: repeat(3, 1fr); width: 38px; height: 38px; padding: 6px; border-radius: 10px; background: linear-gradient(#FFFEF9, #EFE6D2); box-shadow: 0 3px 6px rgba(0,0,0,.4), inset 0 -2px 0 #D8CBAE; } .is-4 .gx-die { width: 31px; height: 31px; padding: 5px; } .gx-die i { width: 5.5px; height: 5.5px; border-radius: 50%; place-self: center; } .gx-die i.is-on { background: #2A1712; } .gx-die--1 { background: linear-gradient(#4A332B, #251510); box-shadow: 0 3px 6px rgba(0,0,0,.5); } .gx-die--1 i.is-on { background: #FFE7C4; } .gx-die.is-used { opacity: .3; } .gx-dice.is-roll .gx-die { animation: gxDice .7s cubic-bezier(.2,.8,.3,1); } .gx-dice.is-roll .gx-die + .gx-die { animation-duration: .85s; } @keyframes gxDice { 0% { transform: translate(90px, 60px) rotate(-520deg) scale(.6); } 60% { transform: translate(-6px, -6px) rotate(20deg) scale(1.1); } 100% { transform: none; } }

/* the foot keeps its height, so the board never jumps when the buttons come */
.gx-play--nard .gx-foot, .gx-play--nard .gx-foot:empty { display: flex; min-height: calc(76px + env(safe-area-inset-bottom)); }
.gx-play--nard .gx-in--nard { padding-inline: 4px; }
/* six to eight letters sit in two even rows */
.gx-pool:has(> :nth-child(6):last-child) { max-width: 200px; } .gx-pool:has(> :nth-child(7):last-child), .gx-pool:has(> :nth-child(8):last-child) { max-width: 260px; }

/* ---------- computers ---------- */
@media (min-width: 960px) { body.mx-games .cx-topnav { margin-bottom: 0; color: var(--mx-text); background: var(--mx-glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 var(--mx-line); } }
@media (hover: hover) { .gx-op:hover:not(:disabled), .gx-word:hover:not(.is-on), .gx-col:hover { border-color: var(--tone); } .gx-tile2:hover { transform: translateY(-2px); } }
.gx :focus-visible, .gx-play :focus-visible { outline: 3px solid #FFB547; outline-offset: 2px; }
@media (min-width: 720px) { .gx-hero { margin-inline: 0; border-radius: 26px; padding: 26px 30px; } .gx-tiles { grid-template-columns: repeat(3, 1fr); } .gx-tiles--one { grid-template-columns: 1fr; } .gx-hero__lan { max-width: 560px; margin-inline: auto; } .gx-hero > .gx-btn { max-width: 360px; margin-inline: auto; } .gx-week { max-width: 420px; margin-inline: auto; } .gx-badges ul { grid-template-columns: repeat(4, 1fr); } .gx-in--mid .gx-card { max-width: 480px; } }
@media (min-width: 960px) { .gx { max-width: 860px; padding-top: 24px; padding-bottom: 60px; } .gx-bar0 { display: none; } }
@media (max-height: 640px) { .gx-q:not(.gx-q--read) { font-size: 19px; margin-bottom: 10px; } .gx-op { min-height: 50px; } .gx-k { height: 40px; } .gx-mat { width: min(100%, 220px); } }
@media (prefers-reduced-motion: reduce) { .gx *, .gx-play, .gx-play * { animation: none !important; transition: none !important; } }
