/* Kanguinn games (round 11): tokens and shared pieces for /games/, /games/me/, the Sudoku page and the
   «الألعاب» card on /workshop/. Uses garden.css tokens (--bg, --tile, --ink…); new tokens live here.
   Each game sets --g / --g-ink / --g-wash on its card from its own accent. */
:root{
  --g-sudoku:#2E8B57; --g-sudoku-ink:#1F6B43; --g-sudoku-wash:#DDEFE2;
  /* reserved for later games (not shipped until a game exists): geography #2F6FB0/#DCE8F5, flags #B4533A/#F5E0D8, history #8A6A2E/#EFE6D2 */
  --g-tile2:var(--tile-2,#F0F1F2); --g-paper:var(--paper,#FFFFFF); --g-sand:var(--sand,#E9EAEC); --g-line2:var(--line-2,#DADCDF);
  --g-danger:var(--danger,#A4442B); --g-sheet-bg:var(--paper,#FFFFFF);
}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.g-muted{color:var(--ink-3,var(--muted))}
.g-muted.small,.g-note{font-size:13px;line-height:1.7}
.g-note{margin:14px 0 0;color:var(--ink-3,var(--muted))}
.g-link{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0;border:0;background:none;color:var(--ink-2,var(--fg));font:500 14px var(--font,var(--ar));cursor:pointer;text-decoration:none}
.g-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.g-link:hover{color:var(--ink,var(--fg));text-decoration:underline;text-underline-offset:3px}
.g-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid var(--g-line2);border-radius:8px;background:var(--g-paper);color:var(--ink,var(--fg));font:500 15px var(--font,var(--ar));cursor:pointer;text-decoration:none;transition:background-color var(--d1,.16s),border-color var(--d1,.16s)}
.g-btn:hover{border-color:var(--ink,var(--fg))}
.g-btn.small{min-height:36px;padding:0 14px;font-size:14px}
.g-btn.primary{background:var(--ink,var(--fg));border-color:var(--ink,var(--fg));color:var(--bg)}
.g-btn.danger{color:var(--g-danger);border-color:var(--g-danger)}
:is(.g-btn,.g-link,.g-act,.g-tile,.g-day,.g-badge,.g-x,.g-switch,.g-gc-foot,.g-cal-nav):focus-visible{outline:2px solid var(--ink,var(--fg));outline-offset:2px}

/* the E/M/H day square (Round 11c, Aziz): one square split into three rows, fixed top→bottom سهل · متوسط · صعب,
   direction-independent. A finished difficulty fills its whole row in its own green; an empty row stays a neutral
   tile with the dividers visible; in progress = a small dot in that row. Used as an 18px glyph (catalog, level
   picker, day detail) and as the whole calendar day tile. */
:root{--g-sd-easy:#A8D8B9;--g-sd-medium:#2E8B57;--g-sd-hard:#14522F;--g-sd-empty:var(--g-tile2);--g-sd-div:#C3C8CE;--g-sd-dot:#1F6B43}
.g-bars{box-sizing:border-box;display:inline-flex;flex-direction:column;width:18px;height:18px;flex:none;border:1px solid var(--g-sd-div);border-radius:4px;background:var(--g-sd-empty);overflow:hidden}
.g-bars i{position:relative;display:block;flex:1 1 0;min-height:0;background:transparent;transition:background-color var(--d1,.16s)}
.g-bars i + i{border-top:1px solid var(--g-sd-div)}
.g-bars i[data-s="done"][data-d="easy"]{background:var(--g-sd-easy)}
.g-bars i[data-s="done"][data-d="medium"]{background:var(--g-sd-medium)}
.g-bars i[data-s="done"][data-d="hard"]{background:var(--g-sd-hard)}
.g-bars i[data-s="started"]::after{content:'';position:absolute;inset:0;margin:auto;width:3px;height:3px;border-radius:50%;background:var(--g-sd-dot)}
.g-bars.small{width:16px;height:16px}

/* ---------- sheets (bottom sheet on phones, centred dialog on desktop) ---------- */
.g-sheet{width:100%;max-width:100%;max-height:92vh;margin:auto auto 0;padding:0;border:0;border-radius:16px 16px 0 0;background:var(--g-sheet-bg);color:var(--ink,var(--fg));box-shadow:0 -12px 40px -16px rgba(0,0,0,.35);overflow:hidden}
.g-sheet::backdrop{background:rgba(10,12,14,.32)}
.g-sheet-in{max-height:92vh;overflow:auto;overscroll-behavior:contain;padding:8px 20px calc(24px + env(safe-area-inset-bottom,0px))}
.g-grab{display:block;width:36px;height:4px;margin:0 auto 6px;border-radius:2px;background:var(--g-line2)}
.g-sheet-head{position:sticky;top:-8px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -20px 8px;padding:6px 20px 8px;background:var(--g-sheet-bg)}
.g-sheet-head h2{margin:0;font:500 24px/1.3 var(--font,var(--ar))}
.g-x{display:inline-grid;place-items:center;width:40px;height:40px;flex:none;border:0;border-radius:50%;background:var(--g-tile2);color:var(--ink,var(--fg));cursor:pointer}
.g-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.g-sheet h3{margin:22px 0 10px;font:500 15px/1.4 var(--font,var(--ar))}
.g-sheet[open]{animation:gUp .28s var(--ease,ease)}
@keyframes gUp{from{transform:translateY(24px);opacity:0}}
@media (min-width:700px){
  .g-sheet{width:min(520px,calc(100vw - 48px));margin:auto;border-radius:16px;max-height:min(88vh,860px)}
  .g-sheet-in{max-height:min(88vh,860px);padding:18px 24px 24px}
  .g-sheet-head{margin:0 -24px 8px;padding:6px 24px 8px}
  .g-grab{display:none}
}
:root.g-sheet-open{overflow:hidden}
.g-list{margin:0;padding-inline-start:20px;line-height:1.9}
.g-list li{margin-bottom:6px}

/* confirm dialog */
.g-confirm{width:min(320px,calc(100vw - 32px));padding:22px 20px 18px;border:0;border-radius:12px;background:var(--g-paper);color:var(--ink,var(--fg));box-shadow:0 30px 70px -28px rgba(0,0,0,.5)}
.g-confirm::backdrop{background:rgba(10,12,14,.35)}
.g-confirm h2{margin:0 0 8px;font:500 17px/1.4 var(--font,var(--ar))}
.g-confirm p{margin:0 0 18px;font-size:15px;line-height:1.7;color:var(--ink-2,var(--muted))}
.g-confirm-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* settings rows + Kanguinn switch */
.g-set-group{border-top:1px solid var(--line)}
.g-set-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:8px 0;border-bottom:1px solid var(--line);cursor:pointer}
.g-set-row > div{display:flex;flex-direction:column;gap:2px;min-width:0}
.g-set-row span{font-size:15px;line-height:1.4}
.g-set-row small{font-size:13px;line-height:1.5;color:var(--ink-3,var(--muted))}
.g-set-row input[type=radio]{width:22px;height:22px;margin:0;flex:none;accent-color:var(--ink,var(--fg))}
.g-switch{position:relative;flex:none;width:48px;height:30px;padding:0;border:0;border-radius:999px;background:var(--g-sand);cursor:pointer;transition:background-color .2s}
.g-switch{direction:rtl}
.g-switch i{position:absolute;top:3px;right:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s var(--ease,ease)}
.g-switch[aria-checked="true"]{background:var(--g-sudoku)}
.g-switch[aria-checked="true"] i{transform:translateX(-18px)}

/* metrics (Me card / stats headline) */
.g-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:16px 8px 20px;text-align:center}
.g-metrics div{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.g-metrics b{font:300 28px/1.1 var(--font,var(--ar));font-variant-numeric:tabular-nums;color:var(--ink,var(--fg))}
.g-metrics span{font-size:12px;line-height:1.4;color:var(--ink-2,var(--muted))}
.g-stats .g-metrics{padding:6px 0 4px}

/* difficulty breakdown */
.g-diff{display:flex;flex-direction:column;gap:10px}
.g-diff-row{display:grid;grid-template-columns:56px 28px minmax(0,1fr);grid-template-areas:"l n bar" ". . t";align-items:center;gap:4px 10px}
.g-diff-row b{grid-area:l;font-weight:500;font-size:15px}
.g-diff-n{grid-area:n;font:400 15px var(--font,var(--ar));font-variant-numeric:tabular-nums}
.g-diff-bar{grid-area:bar;height:8px;border-radius:4px;background:var(--g-tile2);overflow:hidden}
.g-diff-bar i{display:block;height:100%;min-width:0;border-radius:4px;background:var(--g-sudoku)}
.g-diff-row small{grid-area:t;font-size:13px}

/* badges */
.g-badges{display:flex;flex-direction:column;gap:6px}
.g-badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.g-badge{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:44px;padding:4px 0;border:0;background:none;color:var(--ink,var(--fg));font:inherit;cursor:pointer;text-align:center}
.g-badge-face{position:relative;display:grid;place-items:center;width:60px;height:60px;border-radius:14px;background:var(--g-sudoku-wash)}
.g-badge svg,.g-badge-big svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.g-badge .acc,.g-badge-big .acc{stroke:var(--g-sudoku)}
.g-badge .accf,.g-badge-big .accf{fill:var(--g-sudoku);stroke:var(--g-sudoku)}
.g-badge b{font:500 13px/1.4 var(--font,var(--ar))}
.g-badge small{font-size:11px;color:var(--ink-3,var(--muted))}
.g-badge.locked .g-badge-face{background:var(--g-tile2);outline:1px dashed var(--g-line2);outline-offset:-1px}
.g-badge.locked .g-badge-face > svg{opacity:.55;color:var(--ink-3,var(--muted))}
.g-badge.locked .g-badge-face > svg :is(.acc,.accf){stroke:currentColor;fill:none}
.g-badge.locked b{color:var(--ink-3,var(--muted))}
.g-lock{position:absolute;bottom:2px;inset-inline-end:2px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--g-tile2);color:var(--ink-3,var(--muted))}
.g-badge .g-lock svg,.g-lock svg{width:13px;height:13px;stroke-width:2}
.g-prog{display:flex;align-items:center;gap:6px}
.g-prog i{position:relative;display:block;width:48px;height:4px;border-radius:2px;background:var(--g-sand);overflow:hidden}
.g-prog i::after{content:'';position:absolute;inset-block:0;inset-inline-start:0;width:var(--p);background:var(--g-sudoku);border-radius:2px}
.g-badge-big{display:grid;place-items:center;width:88px;height:88px;margin:6px auto 12px;border-radius:22px;background:var(--g-sudoku-wash)}
.g-badge-big svg{width:60px;height:60px;stroke-width:1.5}
.g-badge-big.locked{background:var(--g-tile2);outline:1px dashed var(--g-line2)}
.g-badge-big.locked svg{opacity:.55}
.g-badge-big.locked :is(.acc,.accf){stroke:currentColor;fill:none}
.g-badge-detail{font-size:15px;line-height:1.7;text-align:center;margin:0 0 6px}
.g-badge-sheet .g-muted{text-align:center}
.g-badges .g-link{align-self:flex-start}

/* badges, Round 11c: number tags, categories, the all-badges sheet */
.g-badge-face,.g-badge-big{color:var(--g-sudoku-ink)}
.g-badge svg .g-bt,.g-badge-big svg .g-bt{fill:#fff;stroke:none;font:700 6.6px/1 Onest,system-ui,sans-serif;letter-spacing:-.1px}
.g-badge.locked .g-badge-face > svg .g-bt,.g-badge-big.locked svg .g-bt{fill:currentColor}
.g-badge.locked .g-badge-face > svg .g-tag,.g-badge-big.locked svg .g-tag{fill:var(--g-tile2)}
.g-badge.earned .g-badge-face{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--g-sudoku) 30%,transparent)}
.g-badge-big{position:relative}
.g-badge-big.locked{color:var(--ink-3,var(--muted))}
.g-badge-big .g-lock{bottom:4px;inset-inline-end:4px;width:24px;height:24px}
.g-badge-big .g-lock svg{width:16px;height:16px;stroke-width:2}
.g-badge-cat{margin:0 0 4px;text-align:center;font-size:12px;color:var(--g-sudoku-ink)}
.g-badge-progress{display:flex;flex-direction:column;align-items:center;gap:6px}
.g-badge-progress .g-prog i{width:120px;height:6px}
.g-badge-sheet .g-muted.small{text-align:center;margin:4px 0 0}
.g-badge-sum{display:flex;flex-direction:column;gap:8px;padding:4px 0 2px}
.g-badge-sum p{margin:0;font-size:15px}
.g-badge-sum b{font-weight:500;font-variant-numeric:tabular-nums}
.g-prog.wide i{width:100%;height:6px}
.g-prog.wide{display:block}
.g-badge-cat-sec h3{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding-top:14px;border-top:1px solid var(--line)}
.g-badge-cat-sec h3 small{font-size:12px;font-weight:400}
.g-badges-sheet .g-badge-grid{row-gap:14px}
@media (min-width:700px){.g-badges-sheet .g-badge-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (hover:hover){.g-badge:hover .g-badge-face{transform:translateY(-2px)}}
.g-badge-face{transition:transform var(--d1,.16s) var(--ease,ease)}
.g-badge:active .g-badge-face{transform:scale(.96)}
@media (prefers-reduced-motion:reduce){.g-badge:hover .g-badge-face,.g-badge:active .g-badge-face{transform:none}}

/* ---------- calendar (P02) ---------- */
.g-cal{--gap:6px}
.g-cal-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.g-cal-month{font:500 17px var(--font,var(--ar))}
.g-cal-nav{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--g-line2);border-radius:50%;background:transparent;color:var(--ink,var(--fg));cursor:pointer}
.g-cal-nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.g-cal-nav:disabled{opacity:.35;cursor:default}
.g-cal-week,.g-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--gap)}
.g-cal-week span{text-align:center;font-size:12px;color:var(--ink-3,var(--muted));padding-bottom:4px}
.g-day{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:44px;padding:0;border:0;background:none;color:var(--ink,var(--fg));font:inherit;cursor:pointer}
.g-day.blank{visibility:hidden}
.g-day-tile{position:relative;display:block;width:100%;aspect-ratio:1;border-radius:6px}
.g-day-tile .g-bars{width:100%;height:100%;border-radius:inherit}
.g-day-tile .g-bars i[data-s="started"]::after{width:5px;height:5px}
/* in progress also gets a dotted ring round the square so it reads at a glance */
.g-day.prog .g-day-tile .g-bars{border-style:dashed;border-color:var(--g-sd-dot)}
.g-day-n{font:400 12px/1 var(--font,var(--ar));font-variant-numeric:tabular-nums;padding:1px 6px;border-radius:9px}
.g-day.unavailable .g-day-tile,.g-day.future .g-day-tile{display:grid;place-items:center;background:none}
.g-day.unavailable .g-day-tile::after{content:'';width:4px;height:4px;border-radius:50%;background:var(--g-line2)}
.g-day.future .g-day-tile{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--g-sd-div) 45%,transparent)}
.g-day.unavailable .g-day-n{color:color-mix(in srgb,var(--ink-3,var(--muted)) 55%,transparent)}
.g-day.future .g-day-n{color:color-mix(in srgb,var(--ink-3,var(--muted)) 35%,transparent)}
.g-day.unavailable,.g-day.future{cursor:default}
.g-day.today .g-day-n{font-weight:700;text-decoration:underline 2px;text-underline-offset:4px}
.g-day.today .g-day-tile .g-bars{border-width:1.5px;border-color:var(--ink-2,var(--fg))}
.g-day.selected .g-day-tile .g-bars{outline:2px solid var(--ink,var(--fg));outline-offset:2px}
.g-day.selected .g-day-n{background:var(--ink,var(--fg));color:var(--bg);text-decoration:none}
@media (hover:hover){.g-day:not(.unavailable):not(.future):hover .g-day-tile .g-bars{border-color:var(--ink-2,var(--fg))}}
.g-cal-detail{margin-top:14px;padding:16px;border-radius:10px;background:var(--g-paper);box-shadow:inset 0 0 0 1px var(--line)}
.g-cal-detail h3{margin:0 0 8px!important;font:500 15px var(--font,var(--ar))}
.g-cal-detail p{margin:0}
.g-cal-row{display:grid;grid-template-columns:18px 52px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:44px;border-top:1px solid var(--line)}
.g-cal-row:first-of-type{border-top:0}
.g-cal-row b{font-weight:500}
.g-cal-row .g-muted{font-size:13.5px}

/* ---------- catalog (G01–G03) ---------- */
.g-page{padding-block:24px 64px}
.g-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}
.g-head h1{margin:0;font:500 28px/1.4 var(--font,var(--ar))}
.g-lede{margin:6px 0 0;font:300 17px/1.7 var(--font,var(--ar));color:var(--ink-3,var(--muted));max-width:34ch}
.g-me-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:999px;background:var(--g-tile2);color:var(--ink,var(--fg));font:500 14px var(--font,var(--ar));text-decoration:none;white-space:nowrap}
.g-me-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.g-list-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;max-width:880px}
@media (min-width:600px){.g-list-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1200px){.g-list-cards{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}}
.g-card{display:flex;flex-direction:column;gap:8px;min-width:0}
.g-tile{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title icon" "desc icon" "date status";align-items:start;gap:4px 12px;min-height:176px;padding:20px;border-radius:10px;background:var(--g-wash);color:var(--ink,var(--fg));text-decoration:none;transition:background-color var(--d1,.16s),transform var(--d1,.16s)}
.g-title{grid-area:title;margin:0;font:700 26px/1.25 var(--font,var(--ar))}
.g-desc{grid-area:desc;margin:0;font-size:15px;line-height:1.6;color:var(--ink-2,var(--muted));max-width:26ch}
.g-ico{grid-area:icon;width:56px;height:56px;color:var(--ink,var(--fg));transition:transform var(--d2,.32s) var(--ease-spring,ease)}
.g-ico svg{width:100%;height:100%}
.g-ico.small{width:28px;height:28px}
.g-date{grid-area:date;align-self:end;font:500 14px var(--font,var(--ar));padding-top:18px}
.g-status{grid-area:status;align-self:end;display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--g-ink);white-space:nowrap}
.g-status:empty{display:none}
.g-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.g-acts[data-n="1"]{grid-template-columns:minmax(0,1fr)}
.g-acts:empty{display:none}
.g-act{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:0 16px;border:0;border-radius:10px;background:color-mix(in srgb,var(--g-wash) 60%,var(--tile,var(--card)));color:var(--ink,var(--fg));font:500 15px var(--font,var(--ar));cursor:pointer;text-align:start}
.g-act svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover){
  .g-tile:hover{background:color-mix(in srgb,var(--g-wash) 96%,var(--ink,#000))}
  .g-tile:hover .g-ico{transform:rotate(-6deg) translateY(-2px)}
  .g-act:hover{background:color-mix(in srgb,var(--g-wash) 80%,var(--tile,var(--card)))}
}
.g-tile:active{transform:scale(.99)}
/* the workshop's games section */
.g-workshop .g-sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.g-all{display:inline-flex;align-items:center;gap:4px;min-height:44px;font:500 14px var(--font,var(--ar));color:var(--ink-2,var(--muted));text-decoration:none}
.g-all:hover{color:var(--ink,var(--fg))}
.g-workshop .g-card{max-width:560px}
.g-workshop .g-title{font-size:24px}

/* ---------- Me (G04) ---------- */
.g-me .g-head{align-items:center}
.g-me .g-head .sd-ico{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;color:var(--ink,var(--fg))}
.g-me .g-head .sd-ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.g-me #meRoot{display:flex;flex-direction:column;gap:12px;max-width:560px}
.g-summary{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px;border-radius:10px;background:var(--g-paper);box-shadow:inset 0 0 0 1px var(--line);text-align:center}
.g-summary > div{display:flex;flex-direction:column;align-items:center;gap:4px}
.g-summary p{margin:0}
.g-hello{font:400 18px/1.6 var(--font,var(--ar))}
.g-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--g-sudoku-wash)}
.g-avatar.pen{display:grid;place-items:center;color:var(--ink,var(--fg))}
.g-avatar.pen svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.g-summary .g-badges{align-items:center;width:100%}
.g-summary .g-badges .g-link{align-self:center}
.g-gamecard{border-radius:10px;background:var(--g-wash);overflow:hidden}
.g-gc-head{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:0 16px;border-bottom:1px solid color-mix(in srgb,var(--g-ink) 15%,transparent)}
.g-gc-head h2{margin:0;font:700 20px var(--font,var(--ar))}
.g-gc-head h2 a{color:inherit;text-decoration:none}
.g-gc-foot{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:0 16px;border:0;border-top:1px solid color-mix(in srgb,var(--g-ink) 15%,transparent);background:none;color:var(--g-ink);font:500 14px var(--font,var(--ar));cursor:pointer}
.g-gc-foot svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

@media (prefers-reduced-motion:reduce){.g-sheet[open]{animation:none}.g-bars i,.g-badge-face,.g-badge-big{transition:none}.g-switch,.g-switch i,.g-tile,.g-ico{transition:none}.g-tile:hover .g-ico{transform:none}.g-tile:active{transform:none}}

/* corners: garden.css zeroes every radius (zero specificity, !important) and gives roles back; these are ours (R11.6/7) */
html[data-look] :is(.g-tile,.g-act,.g-summary,.g-gamecard,.g-cal-detail,.sd-menu,.sd-why,.sd-done-in,.sd-toast){border-radius:10px!important}
html[data-look] .g-confirm{border-radius:12px!important}
html[data-look] .g-sheet{border-radius:16px 16px 0 0!important}
@media (min-width:700px){html[data-look] .g-sheet{border-radius:16px!important}}
html[data-look] :is(.g-btn,.sd-key,.sd-mode,.sd-undo,.sd-level){border-radius:8px!important}
html[data-look] :is(.sd-mode button,.g-day-tile){border-radius:6px!important}
html[data-look] :is(.g-lock,.g-x,.g-cal-nav,.sd-ico,.sd-pause,.sd-hint-x,.g-avatar,.g-switch i,.g-me .g-head .sd-ico){border-radius:50%!important}
html[data-look] :is(.g-switch,.g-me-link,.sd-hint,.sd-why-btn,.sd-modetoast,.g-day-n){border-radius:999px!important}
html[data-look] .g-badge-face{border-radius:14px!important}
html[data-look] .g-badge-big{border-radius:22px!important}
html[data-look] .g-bars{border-radius:4px!important}
html[data-look] .g-day-tile .g-bars{border-radius:6px!important}
html[data-look] .g-bars i[data-s="started"]::after{border-radius:50%!important}
html[data-look] :is(.g-diff-bar,.g-diff-bar i){border-radius:4px!important}
html[data-look] :is(.g-prog i,.g-grab){border-radius:2px!important}
html[data-look] :is(.g-badge-progress .g-prog i,.g-prog.wide i){border-radius:3px!important}
html[data-look] :is(.sd-cell,.sd-board,.sd-r){border-radius:0!important}

/* round 11b (Aziz): games on the way share the shell, each with its own colour; الورشة shows games first */
/* 14q: «قطار» (Train Tracks): purple */
:root{--g-tracks:#7B5EA7;--g-tracks-ink:#5E4785;--g-tracks-wash:#ECE6F5}
:root{--g-cross-word:#DCE8F5;--g-cross-sel:#B4CFEC;--g-cross:#2F6FB0;--g-cross-ink:#24548A;--g-cross-wash:#DCE8F5;--g-flags:#B4533A;--g-flags-ink:#8E3F2B;--g-flags-wash:#F5E0D8}
.g-card.is-soon .g-tile{cursor:default}
.g-card.is-soon .g-date{color:var(--g-ink)}
@media (hover:hover){.g-card.is-soon .g-tile:hover{background:var(--g-wash)}.g-card.is-soon .g-tile:hover .g-ico{transform:none}}
.g-workshop .g-card{max-width:none}
.g-workshop .g-list-cards{max-width:none;margin-top:12px}
html[data-look="garden"] .workshop main > section.tools + section.tools,html[data-look="garden"] .workshop .g-workshop{margin-top:48px}
html[data-look="garden"] .workshop .g-workshop{margin-top:8px}
html[data-look="garden"] .workshop .g-workshop + section.tools{margin-top:56px}
html[data-look="garden"] .workshop section.g-workshop{display:block}
html[data-look="garden"] .workshop .g-workshop .g-list-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
@media (min-width:600px){html[data-look="garden"] .workshop .g-workshop .g-list-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:900px){html[data-look="garden"] .workshop .g-workshop .g-list-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* 13y (Aziz): الورشة's sections use the site's whole column (hub.css capped .tools at 1120px, so the grid started 64px
   inside the logo); the tools sit in the same three columns as the games above them */
html[data-look="garden"] .workshop main > section.tools{max-width:none;width:100%;gap:12px}
@media (min-width:600px){html[data-look="garden"] .workshop main > section.tools:not(.g-workshop){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:900px){html[data-look="garden"] .workshop main > section.tools:not(.g-workshop){grid-template-columns:repeat(3,minmax(0,1fr))}}
/* round 11c (Aziz): no frame or pill — today is simply bold; the chosen day is bold and full ink, its square slightly lifted */
.g-day.today .g-day-n{font-weight:800;text-decoration:none;color:var(--ink,var(--fg))}
.g-day.today .g-day-tile .g-bars{border-width:1px;border-color:var(--g-line2)}
.g-day.selected .g-day-tile .g-bars{outline:0;box-shadow:0 4px 10px -6px rgba(15,20,25,.35)}
.g-day.selected .g-day-n{background:none;color:var(--ink,var(--fg));font-weight:800}
/* 12j: the game icon never moves — the date and today's status share one bottom row across the card */
.g-tile{grid-template-columns:minmax(0,1fr) 56px;grid-template-areas:"title icon" "desc icon" "foot foot"}
.g-tile .g-date{grid-area:foot;justify-self:start}
.g-tile .g-status{grid-area:foot;justify-self:end;align-self:end}

/* 13n: the date with the next puzzle's countdown under it; the crossword's status dot */
.g-date-d{display:block}
.g-next{display:block;margin-top:2px;font:400 12.5px var(--font,var(--ar));color:var(--ink-3,var(--muted))}
.g-dot{width:8px;height:8px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--g-ink)}
.g-dot.is-started{background:linear-gradient(90deg,transparent 50%,var(--g-ink) 50%)}
.g-dot.is-done{background:var(--g-ink)}
a.g-act{text-decoration:none}
html[data-look] .g-dot{border-radius:50%!important}
