/* Forge Daily (/daily.html): today's game, the mini-lesson, the streak and a friend's challenge.
   Built on forge-hall.css tokens so it sits with the browse pages. Phone first; every box keeps its size
   while daily.js fills it, so nothing jumps. */
.fh-daily .fh-wrap{padding-bottom:28px}
.dl-intro{padding-top:20px}
.dl-intro h1{font-size:clamp(30px,8.4vw,56px)}
.dl-kicker{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;margin:0 0 10px!important;max-width:none!important;
  font:800 13px/1.3 var(--body);letter-spacing:.04em;color:var(--hot)!important}
.dl-next{color:var(--muted);font-weight:700;letter-spacing:0}
.dl-next b{display:inline-block;min-width:8ch;color:var(--bone);font-variant-numeric:tabular-nums}
/* Phones: the countdown always takes its own line, so filling in the long date never moves the title. */
@media(max-width:559px){.dl-kicker .dl-next{flex-basis:100%}}

/* A friend's challenge */
.dl-challenge{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center;margin:18px 0 0;padding:14px;border-radius:20px;
  background:linear-gradient(135deg,#3a1a08,#1a0f0b 70%);box-shadow:0 0 0 2px var(--molten),0 0 34px rgba(255,100,10,.22)}
.dl-challenge[hidden]{display:none}
/* A challenge link: the head script marks <html> with dl-ch, so the banner's space is held (empty) until daily.js
   fills it, and the page below does not jump. The heights cover the banner's usual size at each width. */
.dl-ch .dl-challenge[hidden]{display:grid;visibility:hidden}
.dl-challenge{min-height:252px}
@media(min-width:380px){.dl-challenge{min-height:218px}}
@media(min-width:430px){.dl-challenge{min-height:179px}}
@media(min-width:800px){.dl-challenge{min-height:133px}}
.dl-challenge img{width:96px;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:12px}
.dl-ch-copy small{display:block;font:800 12px/1 var(--body);letter-spacing:.06em;color:var(--hot);text-transform:uppercase}
.dl-ch-line{margin:6px 0 0;font:800 17px/1.3 var(--body);color:var(--bone)}
.dl-ch-copy .dl-ch-free{display:block;color:var(--muted);font:600 13px/1.3 var(--body);letter-spacing:0;text-transform:none}
@media(min-width:620px){.dl-challenge{grid-template-columns:140px 1fr}.dl-challenge img{width:140px}}

/* Cards: the game, the mini-lesson, the streak. Phones stack them; wider screens lay the game card on its side. */
.dl-grid{display:grid;gap:16px;margin-top:20px}
.dl-card{position:relative;border-radius:22px;background:linear-gradient(160deg,#26150e,#170d0a 70%);box-shadow:0 0 0 1px var(--rim),0 18px 40px rgba(0,0,0,.45);overflow:hidden}
.dl-art{display:block;width:100%;min-width:0;aspect-ratio:4/3;overflow:hidden;background:var(--iron)}
.dl-art img{width:100%;height:100%;object-fit:cover;object-position:50% 70%}
@media(min-width:620px){
  .dl-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
  .dl-game{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
  .dl-copy{align-self:center}
}
@media(min-width:900px){.dl-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.dl-game{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}.dl-copy{padding:22px 26px}}
.dl-copy{padding:16px 18px 18px}
.dl-label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;margin:0;font:800 12px/1.4 var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--hot)}
.dl-cat{color:var(--muted);letter-spacing:.02em;text-transform:none;min-height:1.4em}
.dl-card h2{margin:6px 0 6px;font:400 clamp(24px,6.6vw,34px)/1.05 var(--display);color:var(--bone);min-height:1.05em;overflow-wrap:anywhere}
.dl-blurb{margin:0;color:var(--muted);font-size:15px;line-height:1.45;min-height:2.9em;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dl-free{margin:10px 0 0;padding:9px 12px;border-radius:12px;background:rgba(255,170,90,.08);color:#ecd9c6;font-size:13.5px;line-height:1.4}
.dl-cta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:14px}
.fh .dl-cta a{text-decoration:none}
.fh .dl-play{gap:8px;min-height:52px;text-decoration:none}
.dl-play svg{width:20px;height:20px;fill:#1d0c00}
.fh .dl-more{color:var(--hot);font-weight:800;font-size:14.5px;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.fh .dl-more:hover{text-decoration:underline}

/* Mini-lesson */
.dl-lesson{display:flex;flex-direction:column;padding:16px 18px 10px}
.dl-lbody{min-height:118px}
.dl-native{margin:6px 0 2px;font:800 clamp(24px,6.6vw,32px)/1.25 var(--body);color:#fff;overflow-wrap:anywhere}
.dl-roman{margin:0;color:var(--hot);font-size:16px;font-style:italic}
.dl-en{margin:6px 0 0;color:var(--bone);font-size:17px;font-weight:600}
.dl-def{margin:4px 0 0;color:var(--bone);font-size:16.5px;line-height:1.5}
.dl-unit{margin:10px 0 0;color:var(--muted);font-size:13.5px}
.fh .dl-lmore{align-self:flex-start;margin-top:auto;padding-top:4px}

/* Streak, tomorrow and yesterday */
.dl-side{padding:16px 18px 18px}
.dl-count{display:flex;align-items:baseline;gap:10px;margin:8px 0 0}
.dl-count b{font:400 54px/1 var(--display);color:var(--hot);font-variant-numeric:tabular-nums}
.dl-count span{font:800 16px/1.2 var(--body);color:var(--bone)}
.dl-streak{margin:8px 0 0;color:var(--muted);font:600 14px/1.45 var(--body);min-height:2.9em}
.dl-tomorrow{margin:10px 0 14px;color:var(--muted);font:700 14px/1.3 var(--body)}
.dl-tomorrow b{display:inline-block;min-width:8ch;color:var(--bone);font-variant-numeric:tabular-nums}
.fh .dl-yday{display:flex;align-items:center;gap:12px;padding:10px;border-radius:16px;text-decoration:none;background:rgba(255,170,90,.06);box-shadow:0 0 0 1px var(--rim) inset}
.dl-yday img{width:72px;height:54px;object-fit:cover;border-radius:10px;background:var(--iron);flex:none}
.dl-yday small{display:block;font:800 11.5px/1.2 var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.dl-yday b{display:block;font:800 16px/1.3 var(--body);color:var(--bone)}
.dl-yday:hover b{color:var(--hot)}

/* Daily Lesson Check */
.dl-lfoot{display:flex;flex-wrap:wrap;gap:0 18px;margin-top:auto;padding-top:4px}
.fh .dl-lfoot .dl-lmore{margin-top:0;padding-top:0}
.dl-check{grid-column:1/-1;padding:16px 18px 18px;scroll-margin-top:76px} /* clear of the sticky header when scrolled to */
.dl-cbody{min-height:250px}
.dl-dots{display:flex;gap:6px;margin:6px 0 4px}
.dl-dots span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:rgba(255,170,90,.08);color:var(--muted);font:800 14px/1 var(--body)}
.dl-dots .is-now{box-shadow:0 0 0 2px var(--molten) inset;color:var(--hot)}
.dl-qkind{margin:10px 0 0;font:800 12px/1.3 var(--body);letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.dl-q{margin:4px 0 8px;font:800 18px/1.35 var(--body);color:var(--bone)}
.dl-qbody .dl-native{margin-top:2px}
.dl-msg{margin:6px 0 8px;padding:12px 14px;border-radius:14px;background:#f6efe6;color:#2a1d16;box-shadow:0 8px 20px rgba(0,0,0,.35);max-width:620px}
.dl-msg p{margin:0 0 6px;font-size:15px;line-height:1.45}
.dl-msg .dl-msg-from{font-weight:800;font-size:13.5px;color:#5c4a3c;overflow-wrap:anywhere}
.dl-msg .dl-msg-subj{font-weight:800}
.dl-msg .dl-msg-meta{margin:8px 0 0;font:600 13px/1.4 ui-monospace,Menlo,Consolas,monospace;color:#7a3a10;overflow-wrap:anywhere}
.dl-msg-ctx{margin:0 0 8px;color:var(--hot);font-size:14px;font-style:italic}
.dl-link{display:inline-block;margin:6px 0 10px;padding:10px 12px;border-radius:12px;background:#0d0706;box-shadow:0 0 0 1px var(--rim) inset;color:#ffe9cf;font:700 15px/1.4 ui-monospace,Menlo,Consolas,monospace;overflow-wrap:anywhere;word-break:break-all}
.dl-opts{display:grid;gap:8px;margin-top:6px}
@media(min-width:620px){.dl-opts{grid-template-columns:1fr 1fr}}
.dl-opt{min-height:48px;padding:10px 14px;border:0;border-radius:14px;text-align:left;cursor:pointer;background:rgba(255,170,90,.08);box-shadow:0 0 0 1px var(--rim) inset;color:var(--bone);font:600 15px/1.35 var(--body)}
.dl-opt:hover:not(:disabled){box-shadow:0 0 0 2px var(--molten) inset}
.dl-opt:disabled{cursor:default;opacity:.75}
.dl-opt.is-right{opacity:1;background:rgba(80,190,110,.18);box-shadow:0 0 0 2px #5fc27a inset}
.dl-opt.is-wrong{opacity:1;background:rgba(230,80,60,.16);box-shadow:0 0 0 2px #e0584a inset}
.dl-fb{margin-top:10px}
.dl-fb-head{margin:0;font:800 16px/1.4 var(--body);color:var(--bone)}
.dl-fb-why{margin:4px 0 0;color:var(--muted);font-size:15px;line-height:1.5;max-width:70ch}
.fh button.fh-btn{border:0;cursor:pointer;font-family:var(--body)}
.dl-next-q{margin-top:12px}
.dl-score{margin:8px 0 0;font:400 clamp(30px,8vw,40px)/1.1 var(--display);color:var(--hot)}
.dl-score-sub{margin:6px 0 0;color:var(--bone);font-weight:700}
.dl-share{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:14px}
.fh button.dl-more{background:none;border:0;padding:0;cursor:pointer;font-family:var(--body)}
.dl-review{margin:16px 0 0;padding-left:20px;color:var(--muted);font-size:14.5px;line-height:1.5;display:grid;gap:8px}
.dl-review b{color:var(--bone)}
.fh .dl-review .dl-more{min-height:0;display:inline;font-size:14px}
.fd-copy{display:block;width:100%;margin:10px 0 0;min-height:96px;padding:8px;border-radius:10px;font:13px/1.4 ui-monospace,Menlo,Consolas,monospace}
.dl-ch-emoji{display:flex;align-items:center;justify-content:center;width:96px;aspect-ratio:4/3;border-radius:12px;background:rgba(255,170,90,.1);font-size:46px}
@media(min-width:620px){.dl-ch-emoji{width:140px}}

/* How it works (the static explainer crawlers and no-JS visitors read) */
.dl-how{padding:34px 0 8px}
.dl-how ul{margin:10px 0 18px;padding:0;list-style:none;display:grid;gap:10px;max-width:72ch}
.dl-how li{padding:12px 14px;border-radius:14px;background:rgba(255,170,90,.05);color:var(--muted);line-height:1.5}
.dl-how li b{color:var(--bone)}
.fh .dl-hubs a{color:var(--bone)}

/* No JavaScript: the explainer stays; the live parts step aside. With JavaScript the placeholders keep their space. */
.no-js .dl-play,.no-js .dl-next,.no-js .dl-free,.no-js .dl-game .dl-cat,.no-js .dl-lesson .dl-cat,.no-js .dl-tomorrow,.no-js .dl-count{display:none}
.js .dl-nojs{visibility:hidden}
.fh .dl-nojs a{color:var(--hot)}

@media(prefers-reduced-motion:no-preference){.dl-card{transition:box-shadow .2s}.dl-game:hover{box-shadow:0 0 0 1px var(--molten),0 18px 40px rgba(255,90,10,.2)}}
