/* «تحدي اليوم» + «الترتيب» (the «المنافسة» tab), from the lab10 sample Bo approved. Big calm cards, one main action per page.
   Colours only through the game's tokens (light / dark follow the game). Logical properties for RTL + LTR. */
.dly{display:flex;flex-direction:column;gap:14px;min-width:0;max-width:1040px;margin:0 auto}
.dly svg{flex:none}
.dly-cd{font-variant-numeric:tabular-nums;unicode-bidi:isolate;letter-spacing:.02em}
.dly-eye{display:flex;align-items:center;gap:6px;margin:0;color:var(--yellow);font-weight:700;font-size:14px;line-height:1.4;min-width:0}
.dly-eye svg{width:18px;height:18px}
.dly-eye span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dly-h1{margin:0;font-family:var(--f-display);font-weight:400;font-size:clamp(30px,4vw,48px);line-height:1.1;color:var(--on-stage);padding-top:4px}
.dly-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.dly-acts .btn{flex:none}
.dly-acts .btn svg{width:20px;height:20px}
.dly-go{min-width:210px}
/* «شلون؟»: a quiet link with a 44px tap area */
.dly-how{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 6px;border:0;background:none;color:var(--on-stage);opacity:.9;font:inherit;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap;flex:none}
.dly-how svg{width:18px;height:18px}
.dly-how-ink{color:var(--blue-text);opacity:1}
.dly-hero-top .dly-how{margin-block:-10px}
/* the language pill (the core's .lgp) inside the hero's first line and the rules button beside it */
.dly-hero-top .lgp{margin-block:-10px}
.dly-hero-tools{display:flex;align-items:center;gap:6px;flex:none}
.dly-box{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);min-width:0}
.dly-dim{color:var(--muted);font-weight:700;font-size:15px}

/* ---------- notes: signed out, offline, loading, error ---------- */
.dly-note{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;color:var(--ink)}
.dly-note>svg{width:30px;height:30px;color:var(--blue-text);margin-top:2px}
.dly-note b{display:block;font-size:18px;line-height:1.35}
.dly-note p{margin:4px 0 0;color:var(--muted);font-weight:600;line-height:1.55}
.dly-note .btn{margin-top:12px}
.dly-loading{display:flex;align-items:center;justify-content:center;gap:8px;min-height:120px;margin:0;color:var(--muted);font-weight:700}
.dly-loading svg{width:22px;height:22px;animation:dly-spin 1.6s linear infinite}
@keyframes dly-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.dly-loading svg{animation:none}}
.dly-err{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:0;padding:8px 14px;border-radius:14px;background:color-mix(in srgb,var(--red) 12%,var(--surface));color:var(--ink);font-weight:700;font-size:14px}
.dly-err svg{width:20px;height:20px;color:var(--red-text)}
.dly-err .link-btn{color:var(--blue-text);font-weight:800;min-height:40px}

/* ---------- intro ---------- */
.dly-intro{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch}
.dly-hero{--mw:130px;display:flex;padding:20px 22px;padding-inline-end:calc(16px + var(--mw));min-height:250px}
.dly-hero::after,.dly-res::after{content:"";position:absolute;inset-inline-end:-40px;bottom:-60px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--yellow) 30%,transparent),transparent 68%);pointer-events:none}
.dly-hero>.dly-hero-m,.dly-res>.dly-res-m{position:absolute;inset-inline-end:10px;bottom:-14px;height:calc(100% - 4px);max-height:300px;width:var(--mw);object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 10px 14px rgba(0,0,0,.35));z-index:1;pointer-events:none}
.dly-hero-in,.dly-res-in{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0;z-index:2}
.dly-hero-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.dly-meta{margin:0;color:var(--on-stage-muted);font-size:16px;font-weight:700;line-height:1.5}
.dly-meta b{color:var(--on-stage);white-space:nowrap}
.dly-meta.dly-sm{font-size:14px;font-weight:600;max-width:420px}
.dly-warn{display:flex;align-items:center;gap:8px;color:var(--yellow)}
.dly-warn svg{width:20px;height:20px}
.dly-hero .dly-acts,.dly-res .dly-acts{margin-top:auto;padding-top:6px}

.dly-sum{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px}
.dly-sum>.dly-xp{flex-basis:100%}
.dly-big{display:flex;align-items:baseline;gap:8px;line-height:1}
.dly-big b{font-family:var(--f-display);font-weight:400;font-size:clamp(44px,5.6vw,68px);color:var(--yellow);padding-top:.1em;font-variant-numeric:tabular-nums}
.dly-big span{color:var(--on-stage-muted);font-weight:700;font-size:15px}
.dly-sum-r{display:flex;flex-direction:column;gap:6px;min-width:0}
.dly-sum-r strong{color:var(--on-stage);font-size:17px;line-height:1.3}
.dly-sq{--sq:18px;display:inline-grid;grid-template-columns:repeat(10,minmax(0,var(--sq)));gap:4px;max-width:100%}
.dly-sq i{display:block;aspect-ratio:1;border-radius:5px;background:color-mix(in srgb,var(--on-stage) 18%,transparent)}
.dly-sq i.ok{background:var(--green);box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
.dly-sq i.no{background:var(--red);box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}

/* the stats card: next challenge, streak, month rank (one row each) */
.dly-stats{list-style:none;margin:0;padding:6px 16px;display:flex;flex-direction:column;justify-content:center}
.dly-stats>li{display:flex;align-items:center;gap:12px;padding:10px 0;min-width:0}
.dly-stats>li+li{border-top:1px solid var(--line)}
.dly-si{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:none}
.dly-si svg{width:24px;height:24px}
.dly-si-y{background:color-mix(in srgb,var(--yellow) 26%,var(--surface));color:var(--ink)}
.dly-si-b{background:color-mix(in srgb,var(--blue) 14%,var(--surface));color:var(--blue-text)}
.dly-si-g{background:var(--green-soft);color:var(--green)}
.dly-st{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.dly-st small{color:var(--muted);font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dly-st b{font-size:20px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* a stat that opens a page (the month rank → «الترتيب»): the whole row is the button */
.dly-stats>li:has(>.dly-st-btn){padding:0}
.dly-st-btn{display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:62px;padding:10px 0;border:0;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer;border-radius:12px}
.dly-st-btn .dly-st{flex:1}
.dly-st-ch{display:grid;place-items:center;flex:none;color:var(--muted)}
.dly-st-ch svg{width:20px;height:20px}
.dly-st-btn:focus-visible{outline:3px solid var(--yellow);outline-offset:-3px}
/* the door to the ranking under the stats */
.dly-rank-go{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 16px;color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.dly-rank-go>svg{width:26px;height:26px;color:var(--blue-text)}
.dly-rg-t{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.3}
.dly-rg-t b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dly-rg-t small{color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dly-rank-go>svg:last-child{width:20px;height:20px;color:var(--muted)}
@media (hover:hover){.dly-rank-go:hover,.dly-st-btn:hover{background:var(--surface-2)}}
.dly-rank-go:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
/* the one prize line under the intro */
.dly-przl{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:0;padding-block:6px;padding-inline:16px 8px;border-radius:16px;background:var(--surface-2);color:var(--ink);font-weight:700;font-size:14px;line-height:1.5}
.dly-przl svg{width:20px;height:20px;color:var(--blue-text)}
.dly-przl>span{flex:1 1 200px;min-width:0}
.dly-przl .link-btn{color:var(--blue-text);font-weight:800;font-size:14px;min-height:44px;padding-inline:8px}

/* ---------- play (immersive: no bars) ---------- */
body.imm main:has(.dly-play){padding-bottom:12px}
.dly-play{--ph:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:12px;min-height:var(--ph);max-width:1100px;margin:0 auto}
.dly-play-empty{display:grid;place-items:center}
.dly-pq{padding:16px 18px;display:flex;flex-direction:column;gap:10px;min-width:0}
.dly-ptop{display:flex;align-items:center;gap:10px;min-width:0}
.dly-x{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex:none;border:1px solid color-mix(in srgb,var(--on-stage) 28%,transparent);background:color-mix(in srgb,var(--on-stage) 10%,transparent);color:var(--on-stage);cursor:pointer}
.dly-x svg{width:22px;height:22px}
.dly-x:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.dly-n{font-weight:800;font-size:16px;color:var(--on-stage);white-space:nowrap}
.dly-sec{margin-inline-start:auto;display:inline-flex;align-items:center;gap:6px;color:var(--on-stage)}
.dly-sec svg{width:22px;height:22px}
.dly-sec b{font-size:30px;line-height:1;min-width:1.4em;text-align:center;font-variant-numeric:tabular-nums}
.dly-dots{list-style:none;margin:0;padding:0;display:flex;gap:5px}
.dly-dots li{flex:1;height:6px;border-radius:999px;background:color-mix(in srgb,var(--on-stage) 20%,transparent)}
.dly-dots li.ok{background:var(--green)}
.dly-dots li.no{background:var(--red)}
.dly-dots li.cur{background:var(--yellow)}
.dly-bar{height:10px;border-radius:999px;background:color-mix(in srgb,var(--on-stage) 16%,transparent);overflow:hidden}
.dly-bar i{display:block;height:100%;border-radius:inherit;background:var(--yellow);transition:width .1s linear,background-color .3s}
.dly-low .dly-bar i{background:var(--red)}
.dly-low .dly-sec{color:var(--yellow)}
.dly-topic{align-self:flex-start;display:inline-flex;align-items:center;gap:5px;max-width:100%;border-radius:999px;padding-block:3px;padding-inline:8px 12px;font-size:13px;font-weight:700;color:var(--on-stage);background:color-mix(in srgb,var(--on-stage) 14%,transparent);margin-top:4px}
.dly-topic svg{width:16px;height:16px}
.dly-topic>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dly-qt{margin:auto 0;font-size:clamp(23px,3vw,38px);font-weight:800;line-height:1.4;color:var(--on-stage);overflow-wrap:anywhere}
.dly-pfoot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;min-height:34px}
.dly-fb{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 12px;font-weight:800;font-size:15px}
.dly-fb svg{width:18px;height:18px}
.dly-fb.is-ok{background:var(--green);color:var(--green-ink)}
.dly-fb.is-no{background:var(--red);color:#fff}
.dly-run{margin-inline-start:auto;color:var(--on-stage-muted);font-size:14px;font-weight:700}
.dly-run b{color:var(--yellow);font-size:18px;font-variant-numeric:tabular-nums}
.dly-ch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dly-opt{position:relative;display:flex;align-items:center;gap:12px;min-height:68px;min-width:0;padding:12px 14px;border-radius:18px;border:2px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-weight:800;font-size:clamp(17px,1.9vw,22px);line-height:1.35;text-align:start;box-shadow:var(--shadow);cursor:pointer;transition:background-color .15s,border-color .15s,opacity .2s,transform .12s}
.dly-opt>b{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--ink);font-size:15px;line-height:1}
.dly-opt>span{flex:1;min-width:0;overflow-wrap:anywhere}
@media (hover:hover){.dly-opt:hover:not(:disabled){border-color:var(--blue)}}
.dly-opt:active:not(:disabled){transform:translateY(1px)}
.dly-opt:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.dly-opt:disabled{cursor:default}
.dly-opt.dly-pend{border-color:var(--yellow);background:color-mix(in srgb,var(--yellow) 18%,var(--surface))}
.dly-opt.dly-ok{background:var(--green);border-color:var(--green);color:var(--green-ink)}
.dly-opt.dly-bad{background:var(--red);border-color:var(--red);color:#fff}
.dly-opt.dly-ok>b,.dly-opt.dly-bad>b{background:rgba(255,255,255,.24);color:inherit}
.dly-opt.dly-dim{opacity:.45}
.dly-mk{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;flex:none;background:rgba(255,255,255,.24)}
.dly-mk svg{width:18px;height:18px;stroke-width:3}

/* ---------- result ---------- */
.dly-res{--mw:150px;display:flex;padding:20px 22px;padding-inline-end:calc(16px + var(--mw))}
.dly-xp{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.dly-xp:empty{display:none}
.dly-xpp{display:inline-flex;align-items:center;border-radius:999px;padding:2px 12px;background:var(--yellow);color:var(--yellow-ink);font-weight:800;font-size:15px;line-height:1.6;white-space:nowrap}
.dly-stats4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;padding:6px 16px}
.dly-stats4>li+li{border-top:0}
.dly-stats4>li:nth-child(n+3){border-top:1px solid var(--line)}
.dly-stats4 .dly-st b{font-size:17px}

/* ---------- ranking ---------- */
.dly-bd{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.dly-bd-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;min-width:0}
/* one quiet line under the tabs says what each board counts (in place of a modal) */
.dly-bd-cap{flex-basis:100%;display:flex;align-items:flex-start;gap:6px;margin:0;padding-inline:4px;color:var(--muted);font-size:13px;font-weight:600;line-height:1.45}
.dly-bd-cap svg{width:16px;height:16px;flex:none;margin-top:2px;color:var(--blue-text)}
.dly-bd-cap span{min-width:0}
.dly-seg{display:inline-flex;padding:4px;gap:4px;border-radius:14px;background:var(--surface);border:1px solid var(--line);min-width:0}
.dly-seg button{min-height:40px;min-width:72px;padding:6px 14px;border:0;border-radius:10px;background:none;font:inherit;font-weight:800;font-size:15px;color:var(--muted);cursor:pointer;white-space:nowrap}
.dly-seg button.on{background:var(--blue);color:#fff}
.dly-seg button:focus-visible{outline:3px solid var(--yellow);outline-offset:1px}
.dly-podc{padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px}
.dly-podt{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;color:var(--on-stage)}
.dly-podt b{font-size:15px}
.dly-podt span{color:var(--on-stage-muted);font-size:13px;font-weight:700}
.dly-pod{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:8px;direction:ltr}
[dir="rtl"] .dly-pc{direction:rtl}
.dly-pc{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;min-width:0}
.dly-pav{position:relative;display:block;margin-bottom:4px;--pav:54px}
.dly-pc1 .dly-pav{--pav:66px}
.dly-pav>img,.dly-pav>.av-wrap,.dly-pav-e{display:block;width:var(--pav);height:var(--pav);border-radius:50%;border:3px solid var(--c);box-shadow:0 6px 14px rgba(0,0,0,.3);object-fit:cover;background:var(--surface)}
.dly-pav>.av-wrap img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.dly-pav-e{background:color-mix(in srgb,var(--on-stage) 12%,transparent);border-style:dashed;box-shadow:none}
.dly-pc1{--c:var(--yellow)}.dly-pc2{--c:var(--blue)}.dly-pc3{--c:var(--green)}
.dly-pn{color:var(--on-stage);font-size:14px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dly-pp{color:var(--on-stage-muted);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.dly-blk{position:relative;width:100%;margin-top:4px;border-radius:10px 10px 4px 4px;display:grid;place-items:center;background:var(--c);box-shadow:inset 0 -6px 0 rgba(0,0,0,.18)}
.dly-blk::before{content:"";position:absolute;inset-inline:0;top:0;height:8px;border-radius:10px 10px 0 0;background:rgba(255,255,255,.28)}
.dly-blk b{font-family:var(--f-display);font-weight:400;font-size:32px;line-height:1;padding-top:.15em;text-shadow:0 3px 0 rgba(0,0,0,.2)}
.dly-pc1 .dly-blk{height:78px;color:var(--yellow-ink)}
.dly-pc2 .dly-blk{height:58px;color:#fff}
.dly-pc3 .dly-blk{height:44px;color:var(--green-ink)}
.dly-pc3 .dly-blk b{font-size:26px}
.dly-pc.is-empty .dly-blk{opacity:.55}
.dly-pzc{margin-top:6px;max-width:100%;border-radius:10px;padding:3px 6px;font-size:12px;font-weight:700;line-height:1.35;color:var(--on-stage);background:color-mix(in srgb,var(--on-stage) 12%,transparent);overflow-wrap:anywhere}
.dly-pc .dly-you{position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);z-index:2}
.dly-pc.is-me .dly-pn{color:var(--yellow)}
.dly-podf{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin:0;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--on-stage) 18%,transparent);color:var(--on-stage-muted);font-size:13px;font-weight:700}
.dly-podf svg{width:18px;height:18px;color:var(--on-stage)}
.dly-podf .dly-cd{color:var(--on-stage);font-size:15px}
.dly-podf-pz{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dly-podf-pz>span{display:flex;flex-direction:column;min-width:0;border-radius:12px;padding:5px 10px;background:color-mix(in srgb,var(--on-stage) 10%,transparent);color:var(--on-stage);line-height:1.35}
.dly-podf-pz small{color:var(--on-stage-muted);font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dly-podf-pz b{font-size:13px;overflow-wrap:anywhere}

.dly-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.dly-list:empty{display:none}
.dly-empty{padding:16px;border-radius:16px;border:1px dashed var(--line);color:var(--muted);font-weight:700;text-align:center;line-height:1.5}
.dly-row{display:grid;grid-template-columns:28px 40px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:62px;padding:8px 14px;border-radius:16px;background:var(--surface);border:1px solid var(--line);min-width:0}
.dly-pos{font-weight:800;font-size:16px;text-align:center;font-variant-numeric:tabular-nums;color:var(--ink)}
.dly-row>img.dly-av,.dly-row>.av-wrap{width:40px;height:40px;border-radius:50%;object-fit:cover}
.dly-row>.av-wrap img{width:100%;height:100%;border-radius:50%}
.dly-who{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;line-height:1.3}
.dly-who>b{display:flex;align-items:center;gap:6px;max-width:100%;font-size:15px;min-width:0}
.dly-who>b>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.dly-who>small{max-width:100%;color:var(--muted);font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dly-who .lv-chip{max-width:100%;overflow:hidden}
.dly-pts{display:flex;flex-direction:column;align-items:flex-end;line-height:1.15;font-variant-numeric:tabular-nums;white-space:nowrap}
.dly-pts b{font-size:17px}
.dly-pts small{font-size:11.5px;font-weight:700;color:var(--muted)}
.dly-you{display:inline-block;flex:none;font-style:normal;font-weight:800;font-size:11px;line-height:1.6;border-radius:999px;padding:0 8px;background:var(--yellow);color:var(--yellow-ink);white-space:nowrap}
/* my row stays in sight, above the floating bottom bar */
.dly-me{position:sticky;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:3;border:2px solid var(--yellow);background:color-mix(in srgb,var(--yellow) 18%,var(--surface));box-shadow:0 -6px 18px -8px rgba(0,0,0,.35)}
:root[data-theme="dark"] .dly-me{background:color-mix(in srgb,var(--yellow) 12%,var(--surface-2))}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .dly-me{background:color-mix(in srgb,var(--yellow) 12%,var(--surface-2))}}
:root[data-theme="dark"] .dly-si-y{background:var(--surface-2);color:var(--yellow)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .dly-si-y{background:var(--surface-2);color:var(--yellow)}}
.dly-none{grid-template-columns:28px 40px minmax(0,1fr) auto}
.dly-none .dly-pos{color:var(--muted)}
.dly-none .btn{min-height:40px}
.dly-none .btn svg{width:16px;height:16px}
.dly-gap{display:flex;justify-content:center;gap:5px;padding:2px 0}
.dly-gap i{width:6px;height:6px;border-radius:50%;background:var(--muted);opacity:.6}

/* the home card (the core's .hm-card) */
.dly-hm .hm-meta svg{width:16px;height:16px}
.dly-hm .dly-cd{color:var(--ink);font-weight:800}
.dly-hm .dly-l-short{display:none}
.dly-hm .hm-main{white-space:normal;overflow-wrap:anywhere}
.dly-hm-mi{display:inline-flex;align-items:center;gap:4px;min-width:0;white-space:nowrap}
.dly-hm-mi b{color:var(--ink)}
/* two actions in the card's button column: start / result FIRST, then the ranking (icon only on a narrow card) */
.dly-hm-acts{grid-area:b;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dly-hm-acts .btn{min-height:44px;padding-inline:16px}
.dly-hm-rk svg{width:20px;height:20px}
@container (max-width:340px){.dly-hm .dly-l-long{display:none}.dly-hm .dly-l-short{display:inline}.dly-hm-acts .btn{padding-inline:12px}.dly-hm-rk span{display:none}}

/* ---------- modals ---------- */
.mbox.dly-m{max-width:520px}
.dly-rules{list-style:none;margin:0;padding:0}
.dly-rules li{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.55;color:var(--ink)}
.dly-rules li+li{margin-top:9px}
.dly-rules svg{width:20px;height:20px;flex:none;margin-top:2px;color:var(--blue-text)}
.dly-pzl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.dly-pzl li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:var(--surface-2);font-size:14.5px;font-weight:700;line-height:1.45;color:var(--ink)}
.dly-pzb{display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border-radius:999px;flex:none;font-weight:800;font-size:15px;white-space:nowrap}
.dly-pzb1{background:var(--yellow);color:var(--yellow-ink)}
.dly-pzb2{background:var(--blue);color:#fff}
.dly-pzb3{background:var(--green);color:var(--green-ink)}
.dly-pzbx{background:var(--surface);color:var(--ink);border:1px solid var(--line);font-size:12px}
.dly-mydays,.dly-mnote{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:13.5px;font-weight:600;line-height:1.5;color:var(--muted)}
.dly-mydays{color:var(--ink);font-weight:800}
.dly-mydays svg,.dly-mnote svg{width:18px;height:18px;flex:none;margin-top:1px;color:var(--blue-text)}
/* landscape phones: the lists in two columns so the modal fits without scrolling */
@media (max-height:520px) and (orientation:landscape){
  .mbox.dly-m{max-width:min(780px,100%);padding:16px 18px;gap:10px}
  .mbox.dly-m h3{font-size:24px}
  .dly-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
  .dly-rules li{font-size:13.5px;line-height:1.45}
  .dly-rules li+li{margin-top:0}
  .dly-rules svg{width:18px;height:18px}
  .dly-pzl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .dly-pzl li{padding:6px 10px;font-size:13px;gap:8px}
  .dly-pzl li:first-child{grid-column:1/-1}
  .dly-pzb{min-width:30px;height:30px;font-size:14px}
  .dly-pzbx{font-size:11px}
  .dly-mnote{font-size:12.5px}
}

/* ---------- layouts ---------- */
/* wide or sideways: the card beside the stats; the ranking: podium beside the list; play: question beside the choices */
@media (min-width:640px) and (orientation:landscape),(min-width:900px){
  .dly-intro{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
  .dly-intro>.dly-rank-go{grid-column:1/-1}
  .dly-bd{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);grid-template-areas:"pod head" "pod list" "pod me" "pod ." "more more";grid-template-rows:auto auto auto 1fr auto}
  .dly-bdm{grid-area:more}
  .dly-bd-head{grid-area:head}
  .dly-podc{grid-area:pod}
  .dly-list{grid-area:list}
  .dly-bd>.dly-me{grid-area:me}
  .dly-stats4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .dly-stats4>li:nth-child(n+3){border-top:0}
}
@media (min-width:600px) and (min-aspect-ratio:4/3){
  .dly-play{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-rows:minmax(0,1fr);--ph:min(calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)),520px);margin-block:max(0px,calc((100dvh - 24px - var(--ph)) / 2))}
  .dly-ch{grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr}
  .dly-ch.is-short{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dly-opt{min-height:0}
}
@media (min-width:640px) and (orientation:landscape) and (min-height:600px),(min-width:900px) and (min-height:600px){
  .dly-podc{position:sticky;top:calc(var(--toph,60px) + 12px)}
}
/* tablets upright: stats in one row under the card, bigger choices */
@media (min-width:600px) and (orientation:portrait){
  .dly-stats:not(.dly-stats4){flex-direction:row;padding:6px 8px}
  .dly-stats:not(.dly-stats4)>li{flex:1;padding:10px 8px;min-width:0}
  .dly-stats:not(.dly-stats4)>li+li{border-top:0;border-inline-start:1px solid var(--line);padding-inline-start:14px}
  .dly-stats4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .dly-stats4>li:nth-child(n+3){border-top:0}
  .dly-hero,.dly-res{--mw:170px;min-height:280px}
  .dly-play{grid-template-rows:minmax(0,1.1fr) minmax(0,1fr)}
  .dly-ch{grid-auto-rows:1fr}
  .dly-opt{font-size:23px}
  .dly-qt{font-size:34px}
}
@media (min-width:1000px){
  .dly-hero,.dly-res{--mw:180px;min-height:300px;padding:26px 28px;padding-inline-end:calc(20px + var(--mw))}
  .dly-pq{padding:24px 26px}
}
/* upright phones */
@media (max-width:599px){
  .dly-hero,.dly-res{--mw:104px;padding:16px;padding-inline-end:calc(8px + var(--mw));min-height:0}
  .dly-hero{min-height:240px}
  .dly-go{min-width:0}
  .dly-acts .btn{flex:1 1 auto}
  .dly-res .dly-acts .btn,.dly-hero.is-done .dly-acts .btn{flex:1 1 100%}
  .dly-stats4 .dly-si{display:none}
  .dly-xp{gap:6px}
  .dly-sq{--sq:16px;gap:3px}
  .dly-ch:not(.is-short){grid-template-columns:minmax(0,1fr)}
  .dly-opt{min-height:60px}
  .dly-pq{padding:14px}
  .dly-qt{font-size:24px}
  .dly-seg button{min-width:0;padding-inline:12px}
  .dly-bd-head .dly-seg{flex:1}
  .dly-bd-head .dly-seg button{flex:1}
}
@media (max-width:380px){
  .dly-hero,.dly-res{--mw:0px;padding-inline-end:16px}
  .dly-hero>.dly-hero-m,.dly-res>.dly-res-m,.dly-hero::after,.dly-res::after{display:none}
  .dly-stats4{grid-template-columns:minmax(0,1fr)}
  .dly-stats4>li+li{border-top:1px solid var(--line)}
  .dly-row{grid-template-columns:24px 36px minmax(0,1fr) auto;gap:8px;padding-inline:10px}
  .dly-none{grid-template-columns:24px minmax(0,1fr) auto}
  .dly-none>img{display:none}
  .dly-row>img.dly-av,.dly-row>.av-wrap{width:36px;height:36px}
  .dly-how span{display:none}
  .dly-seg button{padding-inline:8px;font-size:14px}
  .dly-rg-t small{display:none}
  .dly-n{font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis}
  .dly-ptop{gap:6px}.dly-ptop .lgp{height:36px;padding:0 8px}.dly-sec{flex:none}
  .dly-sq{--sq:14px}
  .dly-big b{font-size:40px}
}
/* landscape phones (844×390, 667×375): the intro fills the first screen (the prize line waits below);
   the result card and its share button stay above the bottom bar */
@media (max-height:520px) and (orientation:landscape){
  .dly{gap:10px}
  .dly-intro{gap:10px}
  .dly-hero{--mw:100px;min-height:0;padding:14px 16px;padding-inline-end:calc(10px + var(--mw))}
  .dly-hero-in,.dly-res-in{gap:6px}
  .dly-h1{font-size:30px}
  .dly-meta{font-size:15px}
  .dly-meta.dly-sm{font-size:13px}
  .dly .btn.lg{min-height:48px;padding:8px 18px;font-size:16px}
  .dly-go{min-width:190px}
  .dly-stats{padding:4px 14px}
  .dly-stats>li{padding:7px 0;gap:10px}
  .dly-si{width:38px;height:38px}
  .dly-si svg{width:21px;height:21px}
  .dly-st b{font-size:18px}
  .dly-st small{font-size:12.5px}
  .dly-big b{font-size:42px}
  .dly-sq{--sq:16px;gap:3px}
  .dly-hero.is-done{--mw:84px}
  .dly-res{--mw:110px;min-height:0;padding:12px 16px;padding-inline-end:calc(10px + var(--mw))}
  .dly-res .dly-h1{font-size:28px}
  .dly-res .dly-sum>.dly-xp{flex-basis:auto}
  .dly-stats4{padding:4px 14px}
  .dly-stats4 .dly-st b{font-size:16px}
  .dly-play{gap:10px}
  .dly-pq{padding:12px 14px;gap:7px}
  .dly-qt{font-size:25px}
  .dly-x{width:42px;height:42px}
  .dly-ptop .lgp{height:42px}
  .dly-sec b{font-size:26px}
  .dly-stats>li:has(>.dly-st-btn){padding:0}
  .dly-st-btn{min-height:52px;padding:7px 0;gap:10px}
  .dly-rank-go{min-height:50px;padding:7px 14px}
  .dly-topic{margin-top:0}
  .dly-opt{padding:8px 12px;font-size:18px;gap:10px}
  .dly-opt>b{width:32px;height:32px}
  .dly-ch{gap:8px}
  .dly-bd{row-gap:8px}
  .dly-bd-head .dly-seg button{min-height:36px;padding:4px 12px}
  .dly-pp{font-size:11.5px}
  .dly-pzc{margin-top:4px;font-size:11.5px;padding:2px 5px}
  .dly-podt{display:none}
  .dly-podf-pz>span{padding:4px 8px}
  .dly-podf-pz b{font-size:12.5px}
  .dly-podc{padding:10px 12px 12px;gap:8px}
  .dly-pav{--pav:42px}
  .dly-pc1 .dly-pav{--pav:50px}
  .dly-pc1 .dly-blk{height:52px}
  .dly-pc2 .dly-blk{height:40px}
  .dly-pc3 .dly-blk{height:32px}
  .dly-blk b{font-size:24px}
  .dly-pc3 .dly-blk b{font-size:20px}
  .dly-podf{padding-top:8px}
  .dly-row{min-height:54px;padding:6px 12px}
  .dly-me{bottom:calc(66px + env(safe-area-inset-bottom,0px))}
}
@media (max-height:520px) and (orientation:landscape) and (max-width:720px){
  .dly-hero{--mw:84px}
  .dly-h1{font-size:28px}
  .dly-go{min-width:0}
  .dly-hero.is-done{--mw:0px;padding-inline-end:16px}
  .dly-hero.is-done>.dly-hero-m,.dly-hero.is-done::after{display:none}
  .dly-sq{--sq:13px}
  .dly-big b{font-size:36px}
  .dly-res{--mw:84px}
  .dly-pav{--pav:36px}
  .dly-pc1 .dly-pav{--pav:42px}
  .dly-pc1 .dly-blk{height:44px}
  .dly-pc2 .dly-blk{height:34px}
  .dly-pc3 .dly-blk{height:28px}
  .dly-blk b{font-size:21px}
  .dly-pc3 .dly-blk b{font-size:18px}
  .dly-pn{font-size:13px}
  .dly-stats4 .dly-si{display:none}
  .dly-res .dly-h1{font-size:24px}
  .dly-qt{font-size:22px}
  .dly-opt{font-size:16px}
}

/* the sections under the page (Oct 27 2026) */
.dly-bdm{min-width:0}.dly-bdm>.hm-sec:first-child{margin-top:18px}

/* the global rating (Bo, Nov 1 2026): my number, big, above the podium */
.dly-allme{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;padding:18px 16px;margin-bottom:14px}
.dly-allme>span{font-size:14px;font-weight:700;opacity:.85}
.dly-allme>b{font-size:clamp(40px,10vw,64px);line-height:1.1;font-weight:900;color:var(--yellow);font-variant-numeric:tabular-nums}
.dly-allme>small{font-size:14px;opacity:.85}
.dly-rkchip{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:6px 12px;font:inherit;font-weight:700;font-size:13px;cursor:pointer;background:var(--yellow);color:#14213d}
.dly-rkchip svg{width:16px;height:16px}
.dly-rkchip b{font-variant-numeric:tabular-nums}
/* the rating tab shows «#4,564»: the position column fits the number */
.dly-t-all .dly-row{grid-template-columns:minmax(40px,auto) 40px minmax(0,1fr) auto}
.dly-t-all .dly-pos{font-size:15px;white-space:nowrap;text-align:start}
@media (max-width:480px){.dly-t-all .dly-row{grid-template-columns:minmax(36px,auto) 36px minmax(0,1fr) auto}}
