/* ===== Daily puzzles ===== */
.dl-hero { padding-bottom: 18px; }
.dl-main { padding-top: 10px; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; align-items: start; }
.dl-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 14px; }
.dl-bar h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.dl-bar p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.dl-clock { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 1.35rem; color: var(--gold, #d7b779); }
.dl-past-note { margin: 0 0 12px; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: .9rem; }
.dl-board-wrap { position: relative; }
.dl-board { display: grid; grid-template-columns: repeat(9, 1fr); aspect-ratio: 1; border: 2px solid rgba(215,183,121,.55); border-radius: 14px; overflow: hidden; background: var(--panel, #111514); user-select: none; -webkit-user-select: none; }
.dl-cell { appearance: none; border: 0; border-right: 1px solid var(--line, rgba(255,255,255,.08)); border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); background: transparent; color: var(--gold, #d7b779); font: 600 clamp(1.05rem, 4.6vw, 1.6rem)/1 var(--font-body); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; min-width: 0; min-height: 0; transition: background .15s; }
.dl-cell:nth-child(9n) { border-right: 0; }
.dl-cell:nth-child(n+73) { border-bottom: 0; }
.dl-cell.br { border-right: 2px solid rgba(215,183,121,.4); }
.dl-cell.bb { border-bottom: 2px solid rgba(215,183,121,.4); }
.dl-cell.given { color: var(--text); font-weight: 700; }
.dl-cell.peer { background: rgba(255,255,255,.035); }
.dl-cell.same { background: rgba(215,183,121,.14); }
.dl-cell.sel { background: rgba(215,183,121,.3); }
.dl-cell.wrong { color: #ef8a7a; }
.dl-cell:focus-visible { outline: 2px solid var(--gold, #d7b779); outline-offset: -2px; }
.dl-notes { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 100%; padding: 2px; }
.dl-notes i { font-style: normal; font-size: clamp(.5rem, 1.8vw, .66rem); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.dl-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 10px; }
.dl-tools button, .dl-key { appearance: none; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 12px; font: 600 .9rem var(--font-body); padding: .7rem .4rem; cursor: pointer; transition: border-color .2s, background .2s; }
.dl-tools button:hover, .dl-key:hover { border-color: rgba(215,183,121,.5); }
.dl-tools button.on { background: rgba(215,183,121,.18); border-color: rgba(215,183,121,.6); color: var(--gold, #d7b779); }
.dl-pad { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.dl-key { padding: .55rem 0 .4rem; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dl-key b { font-size: 1.35rem; font-weight: 600; color: var(--gold, #d7b779); }
.dl-key small { font-size: .62rem; color: var(--muted); min-height: .8em; }
.dl-key.out { opacity: .32; }
.dl-marks { display: inline-flex; gap: .5rem; align-items: center; margin-top: 12px; color: var(--muted); font-size: .88rem; cursor: pointer; }
.dl-marks input { accent-color: #d7b779; }
.is-done .dl-tools, .is-done .dl-pad { opacity: .45; pointer-events: none; }
/* finished */
.dl-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .35rem; padding: 1.5rem; border-radius: 14px; background: rgba(11,13,13,.9); backdrop-filter: blur(4px); }
.dl-done[hidden] { display: none; }
.dl-done .dl-k { margin: 0; }
.dl-done h3 { margin: .2rem 0 0; font-size: clamp(2.2rem, 7vw, 3rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dl-done p { margin: 0; color: var(--muted); }
.dl-done .btn { margin-top: 1rem; }
.dl-done .dl-link { background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; margin-top: .4rem; }
.dl-share-note { max-width: 320px; white-space: pre-line; font-size: .85rem; }
/* side */
.dl-side { display: grid; gap: 16px; }
.dl-card { border: 1px solid var(--border); border-radius: 18px; padding: 1.2rem 1.3rem; background: radial-gradient(120% 140% at 0% 0%, rgba(215,183,121,.08), var(--surface) 60%); }
.dl-card p { margin: 0 0 .4rem; color: var(--muted); line-height: 1.5; }
.dl-card a { color: var(--text); }
.dl-k { font-family: var(--font-display); font-size: .7rem !important; letter-spacing: .18em; text-transform: uppercase; color: var(--gold, #d7b779) !important; margin-bottom: .6rem !important; }
.dl-big { display: flex; align-items: baseline; gap: .5rem; color: var(--text) !important; }
.dl-big b { font-size: 2.6rem; line-height: 1; font-family: var(--font-display); color: var(--gold, #d7b779); }
.dl-small { font-size: .85rem; }
.dl-more, .dl-past { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dl-more a { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.dl-more li:last-child a { border-bottom: 0; }
.dl-more strong { font-weight: 600; }
.dl-more span { grid-column: 1; color: var(--muted); font-size: .86rem; }
.dl-more em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; color: var(--gold, #d7b779); font-size: .88rem; }
.dl-past a { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; font-size: .88rem; color: var(--muted) !important; }
.dl-past a span:first-child { color: var(--text); }
.dl-past a b { color: var(--gold, #d7b779); font-weight: 600; }
.dl-past li.on a, .dl-past a:hover { background: var(--surface-2); }
.dl-about { padding-top: 50px; }
.dl-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid var(--border); padding-top: 34px; }
.dl-about h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.dl-about p { margin: 0; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) {
  .dl-grid { grid-template-columns: 1fr; gap: 28px; }
  .dl-play { max-width: 560px; width: 100%; margin: 0 auto; }
  .dl-about-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .dl-pad { gap: 4px; } .dl-key b { font-size: 1.15rem; }
  .dl-tools button { font-size: .82rem; padding: .65rem .2rem; }
  .dl-past a { grid-template-columns: 5.2rem 1fr auto; }
}
