/* =====================================================================
   GÜNÜN TAHTASI (js/daily.js): the menu card, the screen before the try,
   the score bar and word of the day while playing, the result, the ranking.
   ===================================================================== */

/* ---- Menu card: the top item of the menu ---- */
#daily-card {
  width: min(88vw, 340px); box-sizing: border-box; padding: 11px 12px 11px 11px; border: none; border-radius: 20px;
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--fg); font-family: var(--font-ui);
  box-shadow: inset 0 0 0 2px var(--star), 0 6px 18px rgba(var(--fg-rgb),0.08);
  transition: transform 0.12s;
}
#daily-card[hidden] { display: none; }
#daily-card { position: relative; overflow: visible; } /* the friends badge sits on its corner */
#daily-card:active { transform: scale(0.98); }
#daily-card.done { box-shadow: inset 0 0 0 2px var(--line-soft); }
.dc-date {
  flex: none; width: 48px; height: 52px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--star) 22%, var(--surface));
}
.dc-date small { font-size: 10px; font-weight: 900; letter-spacing: 1px; color: var(--gold); }
.dc-date b { font-family: var(--font-display); font-size: 23px; font-weight: 800; line-height: 1; }
.dc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dc-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.05; }
.dc-tick { margin-left: 6px; color: var(--c-green); }
.dc-main small { font-size: 12.5px; font-weight: 700; line-height: 1.25; color: rgba(var(--fg-rgb),0.7); }
.dc-main small b { color: var(--fg); }
.dc-stars { color: var(--gold); letter-spacing: 1px; }
.dc-main .dc-line { color: var(--primary); font-weight: 800; }
.dc-side { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dc-streak { display: flex; align-items: center; gap: 2px; color: var(--c-orange); }
.dc-streak[hidden] { display: none; }
.dc-streak svg { width: 18px; height: 18px; fill: color-mix(in srgb, var(--c-orange) 55%, #f6c26b); stroke: var(--c-orange); stroke-width: 1.6; stroke-linejoin: round; }
.dc-streak b { font-family: var(--font-display); font-size: 15px; line-height: 1; }
.dc-play {
  height: 36px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center;
  background: var(--c-orange); color: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 800;
}
#daily-card.done .dc-play { background: var(--surface-2); color: var(--fg); }
/* With the card the menu gets one more row: the line under the logo gives up its room. */
#menu-center:has(#daily-card:not([hidden])) #menu-sub { margin-bottom: 6px; }
@media (max-height: 700px) {
  #menu-center:has(#daily-card:not([hidden])) #menu-sub { display: none; }
}

/* ---- Daily screens: one column under the top bar ---- */
.daily-screen { align-items: stretch; }
.daily-num { font-size: 13px; font-weight: 800; color: rgba(var(--fg-rgb),0.7); white-space: nowrap; }
.daily-body {
  flex: 1; min-height: 0; width: min(100%, 480px); margin: 0 auto; box-sizing: border-box; padding: 4px 16px 20px;
  display: flex; flex-direction: column; gap: 12px; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain;
  color: var(--fg);
}
.daily-body > * { flex: none; }
.daily-body .daily-spacer { flex: 1 1 0; min-height: 0; }
.daily-body .menu-btn { width: 100%; }
.daily-start, body.themed .daily-start {
  height: 56px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--c-orange); color: #fff; font-family: var(--font-display); font-size: 21px; letter-spacing: 0;
}
.daily-start svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.daily-note { text-align: center; font-size: 12px; font-weight: 800; color: rgba(var(--fg-rgb),0.65); }

/* Before the try: the board stays hidden */
.daily-hidden-board {
  position: relative; align-self: center; width: min(100%, 34dvh, 300px); aspect-ratio: 1; box-sizing: border-box;
  padding: 8px; border-radius: 20px; background: var(--board-bg);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px;
}
.daily-hidden-board span {
  border-radius: 12px; background: var(--tile-a); box-shadow: 0 3px 0 rgba(var(--fg-rgb),0.18);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; font-weight: 800; color: rgba(var(--fg-rgb),0.25);
}
.daily-hidden-board b {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; background: var(--fg); color: var(--surface);
  font-family: var(--font-display); font-size: 16px; font-weight: 800;
}
.daily-rules { margin: 0; padding: 12px 14px; list-style: none; border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.daily-rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; line-height: 1.35; }
.daily-rules .n {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 800; background: var(--primary);
}
.daily-rules li:nth-child(2) .n { background: var(--c-orange); }
.daily-rules li:nth-child(3) .n { background: var(--c-teal); }
.daily-rules li:nth-child(4) .n { background: var(--c-green); }
.daily-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.daily-goals div { border-radius: 14px; background: var(--surface); padding: 7px 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.daily-goals .st { color: var(--star); font-size: 15px; }
.daily-goals b { font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.daily-goals small { font-size: 11px; font-weight: 800; color: rgba(var(--fg-rgb),0.65); }

/* ---- While playing: score bar with the star goals, the hidden word of the day ---- */
#daily-hud { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
#daily-hud[hidden] { display: none; }
#daily-hud { cursor: pointer; }
/* The KELİME count beside SÜRE and SKOR (Günün Tahtası only): a plain cell that opens the day's panel. */
#mp-words-cell { border: none; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
#mp-words-cell[hidden] { display: none; }
#daily-info .di-stars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#daily-info .di-star { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 12px;
  background: var(--surface-2); text-align: center; line-height: 1.15; }
#daily-info .di-star small { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 900; opacity: 0.75; }
#daily-info .di-star small svg { width: 12px; height: 12px; fill: rgba(var(--fg-rgb),0.3); }
#daily-info .di-star b { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
#daily-info .di-star span { font-size: 11.5px; font-weight: 800; opacity: 0.75; }
#daily-info .di-star.met { background: color-mix(in srgb, var(--c-green) 16%, var(--surface)); }
#daily-info .di-star.met small svg { fill: var(--star); }
#daily-info .di-star.met span { color: var(--c-green); opacity: 1; }
#daily-info .di-word { gap: 8px; }
#daily-info .di-word .gh-badge svg { fill: none; stroke: currentColor; } /* an outline lock / tick, not a filled star */
#daily-info .di-tiles { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 3px; }
#daily-info .di-tiles .gh-t { width: var(--gt); height: var(--gt); font-size: calc(var(--gt) * 0.5); }
.dh-bar { position: relative; height: 20px; margin: 0 8px; }
.dh-track, .dh-fill { position: absolute; left: 0; top: 8px; height: 6px; border-radius: 3px; }
.dh-track { right: 0; background: rgba(var(--fg-rgb),0.12); }
.dh-fill { width: 0; background: var(--c-green); transition: width 0.3s; }
.dh-star { position: absolute; top: 0; transform: translateX(-50%); font-size: 17px; line-height: 1; color: rgba(var(--fg-rgb),0.25); }
.dh-star.on { color: var(--star); }
.dh-star.pop { animation: dh-pop 0.6s ease-out; }
@keyframes dh-pop { 40% { transform: translateX(-50%) scale(1.7); } 100% { transform: translateX(-50%) scale(1); } }
.dh-word { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 14px; background: var(--surface); }
.dh-word small { flex: none; font-size: 10px; font-weight: 900; letter-spacing: 0.4px; line-height: 1.1; color: var(--c-teal); }
.dh-blanks { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 3px; }
.dh-blanks span {
  width: 21px; height: 25px; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(var(--fg-rgb),0.22);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 15px; font-weight: 800;
}
#daily-hud.found .dh-blanks span { background: var(--c-teal); color: #fff; box-shadow: none; animation: dh-letter 0.4s ease-out both; }
@keyframes dh-letter { from { transform: scale(0.4); opacity: 0; } }
.dh-word .dh-bonus { font-size: 12px; }

/* ---- Result ---- */
.dr-head { text-align: center; padding-top: 4px; }
.dr-date { font-size: 13px; font-weight: 800; color: rgba(var(--fg-rgb),0.7); }
.dr-stars { font-size: 38px; letter-spacing: 6px; line-height: 1.1; }
.dr-stars span { color: rgba(var(--fg-rgb),0.16); }
.dr-stars span.on { color: var(--star); }
.dr-score { display: block; font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; }
.dr-sub { font-size: 14px; font-weight: 800; color: rgba(var(--fg-rgb),0.7); }
.dr-card { border-radius: 18px; background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.dr-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dr-card-head b { font-family: var(--font-display); font-size: 17px; font-weight: 800; line-height: 1.15; }
.dr-card-head small { flex: none; font-size: 12px; font-weight: 800; color: rgba(var(--fg-rgb),0.65); }
.dr-card-head small.good { color: var(--c-green); }
.dr-hist { display: flex; align-items: flex-end; gap: 3px; height: 52px; }
.dr-hist span { flex: 1; border-radius: 3px 3px 0 0; background: rgba(var(--fg-rgb),0.16); }
.dr-hist span.me { background: var(--c-orange); }
.dr-hist-legend { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: rgba(var(--fg-rgb),0.65); }
.dr-week { display: flex; gap: 6px; height: 78px; }
.dr-week > span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.dr-week small { font-size: 10px; font-weight: 800; color: rgba(var(--fg-rgb),0.65); }
.dr-week i { display: block; width: 100%; max-height: 52px; border-radius: 4px 4px 0 0; background: rgba(var(--fg-rgb),0.16); }
.dr-week .none i { background: rgba(var(--fg-rgb),0.07); }
.dr-week .me i { background: var(--c-orange); }
.dr-week .me small { color: var(--fg); }
.dr-week em { font-style: normal; font-size: 11px; font-weight: 800; color: rgba(var(--fg-rgb),0.65); }
.dr-found { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.dr-found > span:first-child { flex: 1; font-size: 13px; font-weight: 800; }
.dr-mini { flex: none; width: 72px; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(var(--fg-rgb),0.12); }
.dr-mini span { display: block; height: 100%; background: var(--c-green); }
.dr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dr-stats div { border-radius: 14px; background: var(--surface); padding: 7px; text-align: center; }
.dr-stats small { display: block; font-size: 11px; font-weight: 900; color: rgba(var(--fg-rgb),0.65); }
.dr-stats .streak small { color: var(--c-orange); }
.dr-stats b { font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1.1; }
.dr-stats b small { display: inline; font-size: 14px; color: rgba(var(--fg-rgb),0.6); } /* "29 / 214" */
.dr-team {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: var(--surface);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);
}
.dr-team-ic {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--combo-b); color: var(--combo-text); font-family: var(--font-display); font-size: 20px; font-weight: 800;
}
.dr-team-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dr-team-text small { font-size: 11px; font-weight: 900; letter-spacing: 0.4px; color: var(--primary); }
.dr-team-text span { font-size: 13px; font-weight: 800; color: rgba(var(--fg-rgb),0.75); }
.dr-team > b { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.dr-word { border-radius: 18px; background: var(--surface); padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.dr-word > small { font-size: 11px; font-weight: 900; letter-spacing: 0.4px; color: var(--c-teal); }
.dr-word-tiles { display: flex; flex-wrap: wrap; gap: 3px; }
.dr-word-tiles span {
  width: 30px; height: 34px; border-radius: 7px; background: var(--c-teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; font-weight: 800;
}
.dr-word > small.dr-word-note { font-size: 12px; font-weight: 700; letter-spacing: 0; color: rgba(var(--fg-rgb),0.75); }
.dr-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dr-actions .menu-btn { height: 46px; padding: 0 12px; font-family: var(--font-display); font-size: 16px; letter-spacing: 0; }

/* ---- Ranking ---- */
.dl-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.dl-tabs button {
  height: 38px; border: none; border-radius: 999px; background: transparent; cursor: pointer;
  color: rgba(var(--fg-rgb),0.7); font-family: var(--font-display); font-size: 15px; font-weight: 800;
}
.dl-tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); }
.dl-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dl-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--surface); }
.dl-list li.me { background: color-mix(in srgb, var(--c-green) 16%, var(--surface)); box-shadow: inset 0 0 0 2px var(--c-green); }
.dl-list li.none { opacity: 0.6; }
.dl-list li.gap { justify-content: center; padding: 0; background: none; font-weight: 900; color: rgba(var(--fg-rgb),0.5); }
.dl-list .pos { width: 28px; font-family: var(--font-display); font-size: 17px; color: rgba(var(--fg-rgb),0.7); }
.dl-list .pos.p1 { color: var(--gold); }
.dl-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; }
.dl-list .name small { font-size: 11px; font-weight: 900; color: var(--primary); }
.dl-list .st { font-size: 12px; color: var(--star); }
.dl-list .sc { min-width: 44px; text-align: right; font-family: var(--font-display); font-size: 18px; }
.dl-list .sc small { font-family: var(--font-ui); font-size: 12px; font-weight: 800; color: rgba(var(--fg-rgb),0.6); }

@media (orientation: landscape) and (max-height: 600px), (orientation: landscape) and (hover: hover) and (pointer: fine) and (min-width: 900px) {
  #screen-menu #menu-center > #daily-card { grid-column: 2; width: min(46vw, 320px); padding: 7px 10px; }
  .dc-date { height: 44px; }
}

/* Günün Tahtası result: the words the player missed, with a short meaning (dailyMissedCard). */
.dm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dm-row { padding: 7px 0; border-top: 1px solid rgba(var(--fg-rgb),0.08); }
.dm-row:first-child { border-top: none; padding-top: 0; }
.dm-row.more { display: none; }
.dm-card.all .dm-row.more { display: block; }
.dm-top { display: flex; align-items: center; gap: 6px; }
.dm-top b { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.2; }
.dm-pts { font-size: 12px; font-weight: 900; color: var(--c-green); }
.dm-rare { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: var(--surface-2); color: rgba(var(--fg-rgb),0.65); }
.dm-row p { margin: 2px 0 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: rgba(var(--fg-rgb),0.75); }
.dm-more { align-self: stretch; height: 40px; border: none; border-radius: 12px; background: var(--surface-2); color: var(--fg);
  font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.dm-note { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: rgba(var(--fg-rgb),0.8); }
.dm-locked .dm-more { background: var(--primary); color: #fff; }

/* Günün Tahtası result: the streak and its rewards (dailyStreakCard). */
.ds-banner { padding: 8px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 700; line-height: 1.35; display: flex; flex-direction: column; gap: 8px; }
.ds-banner.given { background: color-mix(in srgb, var(--c-green) 16%, var(--surface)); color: color-mix(in srgb, var(--c-green) 60%, var(--fg)); }
.ds-banner.guest { background: color-mix(in srgb, var(--star) 18%, var(--surface)); }
.ds-banner.guest .dm-more { background: var(--primary); color: #fff; }
.ds-banner.miss { background: var(--surface-2); color: rgba(var(--fg-rgb),0.75); }
.ds-chips { display: flex; gap: 6px; }
.ds-chip { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border-radius: 10px;
  background: var(--surface-2); line-height: 1.15; }
.ds-chip b { font-size: 12px; font-weight: 900; white-space: nowrap; }
.ds-chip small { font-size: 12px; font-weight: 800; color: var(--c-orange); }
.ds-chip.done { background: color-mix(in srgb, var(--c-green) 16%, var(--surface)); }
.ds-chip.done small { color: var(--c-green); }
.ds-chip.done small::before { content: '✓ '; }
.ds-chip.next { box-shadow: inset 0 0 0 2px var(--c-orange); background: color-mix(in srgb, var(--c-orange) 10%, var(--surface)); }
.ds-note { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: rgba(var(--fg-rgb),0.7); }

/* ---- Home screen (Nov 2026, js/daily.js dailyRenderHome): the week's bars and a day's ranking ---- */
.dh-streak { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 800; white-space: nowrap; }
.dh-streak[hidden] { display: none; }
.dh-streak svg { width: 16px; height: 16px; fill: var(--c-orange); }
.dh-card { background: var(--surface); border-radius: 22px; padding: 14px 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.dh-chart-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px;
  font-size: 13px; font-weight: 800; color: rgba(var(--fg-rgb),0.7); }
.dh-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; }
.dh-col { height: 148px; border: none; background: none; padding: 0; cursor: pointer; font-family: inherit; color: inherit;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.dh-val { font-size: 11px; font-weight: 800; color: rgba(var(--fg-rgb),0.7); }
.dh-bar { width: 100%; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--primary) 32%, var(--surface)); }
.dh-bar.none { background: rgba(var(--fg-rgb),0.15); }
.dh-bar.play { height: 84px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; box-sizing: border-box;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c-orange) 22%, var(--surface)) 0 6px, color-mix(in srgb, var(--c-orange) 10%, var(--surface)) 6px 12px);
  box-shadow: inset 0 0 0 2px var(--c-orange); color: var(--c-orange); font-size: 10px; font-weight: 900; }
.dh-col.open .dh-val { color: var(--c-orange); }
.dh-bstars { font-size: 10px; letter-spacing: 0.5px; line-height: 1; }
.dh-bstars.none { font-size: 10px; font-weight: 800; color: rgba(var(--fg-rgb),0.45); }
.dh-bstars i, .dh-st i { font-style: normal; color: rgba(var(--fg-rgb),0.2); }
.dh-bstars i.on, .dh-st i.on { color: var(--star); }
.dh-date { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 999px; color: rgba(var(--fg-rgb),0.6); }
.dh-col.sel .dh-bar:not(.play) { background: var(--primary); }
.dh-col.sel .dh-val { color: var(--primary); }
.dh-col.sel .dh-date { background: var(--primary); color: #fff; }
.dh-board { padding: 12px 12px 10px; }
.dh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 4px; }
.dh-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.15; }
.dh-sub { font-size: 12px; font-weight: 700; color: rgba(var(--fg-rgb),0.7); }
.dh-rank { min-width: 52px; height: 44px; padding: 0 12px; border: none; border-radius: 12px; cursor: pointer;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary);
  font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1; }
.dh-lock { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; font-size: 13px; font-weight: 800;
  background: color-mix(in srgb, var(--c-orange) 14%, var(--surface)); color: var(--c-orange); }
.dh-lock svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.dh-av { width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; }
.dh-list li { background: none; padding: 7px 8px; }
.dh-list li.me { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); box-shadow: inset 0 0 0 2px var(--primary); }
.dh-st { font-size: 12px; letter-spacing: 1px; }
.dh-mask { width: 64px; height: 20px; border-radius: 7px; flex: none;
  background: repeating-linear-gradient(90deg, rgba(var(--fg-rgb),0.12) 0 8px, rgba(var(--fg-rgb),0.06) 8px 16px); }
.dh-mask.small { width: 46px; height: 16px; }
.dh-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; padding: 4px 4px 8px; }
.dh-pod { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.dh-pod .dh-av { width: 42px; height: 42px; font-size: 17px; }
.dh-pod.me .dh-av { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--primary); }
.dh-pname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; }
.dh-pscore { font-family: var(--font-display); font-size: 18px; line-height: 1; }
.dh-step { width: 100%; border-radius: 10px 10px 4px 4px; display: flex; justify-content: center; padding-top: 5px; box-sizing: border-box;
  font-family: var(--font-display); font-size: 18px; font-weight: 800; color: #1f2b3a; }
.dh-step.s0 { background: #c9d2dc; }
.dh-step.s1 { background: #f0b72f; }
.dh-step.s2 { background: #d9a37a; }
.dh-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 0; margin-top: 4px;
  border-top: 1px solid rgba(var(--fg-rgb),0.1); font-size: 12px; font-weight: 700; color: rgba(var(--fg-rgb),0.65); }
.dh-link { border: none; background: none; padding: 6px 0; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 800; color: var(--primary); }
.dh-empty { padding: 16px 4px; text-align: center; font-size: 14px; font-weight: 700; color: rgba(var(--fg-rgb),0.65); }
.dh-invite { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 6px 6px;
  border-top: 1px dashed rgba(var(--fg-rgb),0.2); }
.dh-invite b { font-family: var(--font-display); font-size: 19px; }
.dh-invite p { margin: 0; font-size: 14px; font-weight: 700; color: rgba(var(--fg-rgb),0.7); line-height: 1.4; }
.dh-invite ol { margin: 0; padding: 0; list-style: none; width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.dh-invite li { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.dh-invite li span { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.dh-invite .menu-btn, body.themed .dh-invite .menu-btn { width: 100%; height: 48px; background: var(--c-teal); color: #fff; font-family: var(--font-display); font-size: 18px; }
.daily-start.navy, body.themed .daily-start.navy { background: var(--primary); }
.dh-result-link { align-self: center; }

/* ---- Daily home: the main button stays at the bottom of the screen (Nov 2026, like Tahtalı Yol's "Oyna");
   the list scrolls under it ---- */
#daily-home-body { padding-bottom: 0; }
.dh-dock {
  position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; border-radius: 22px 22px 0 0;
  /* Frosted, see-through panel (Ibur): the list shows through it, blurred, and a soft shadow plus a thin edge on top
     sets it apart from the content behind it in either theme */
  background: color-mix(in srgb, var(--bg2) 55%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 -1.5px 0 rgba(var(--fg-rgb),0.16), 0 -8px 20px rgba(0,0,0,0.18);
}
.dh-dock > * { pointer-events: auto; }
/* See-through dock (Ibur): the list shows behind it, so the chips and the line under the button carry their own
   solid background and an edge that stands off it in either theme */
.dh-dock .daily-note { align-self: center; padding: 3px 10px; border-radius: 999px; background: var(--surface);
  box-shadow: 0 0 0 1.5px rgba(var(--fg-rgb),0.22), 0 2px 6px rgba(0,0,0,0.18); color: var(--fg); }
.dh-dock .daily-note:has(.dh-chips) { padding: 0; background: none; box-shadow: none; }
.dh-dock .dh-chip { box-shadow: inset 0 0 0 1.5px rgba(var(--fg-rgb),0.28), 0 2px 6px rgba(0,0,0,0.18); }
.dh-dock .dh-chip.hot { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.7), 0 2px 6px rgba(0,0,0,0.2); }
.dh-dock .daily-start { box-shadow: 0 0 0 2px rgba(255,255,255,0.55), 0 6px 16px rgba(0,0,0,0.3); }
.dh-dock .dh-result-link { padding: 4px 12px; border-radius: 999px; background: var(--surface);
  box-shadow: 0 0 0 1.5px rgba(var(--fg-rgb),0.22); }
.dh-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.dh-chip {
  height: 28px; padding: 0 11px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-soft);
  font: 800 12.5px var(--font-ui); white-space: nowrap;
}
.dh-chip.hot { background: var(--c-orange); color: #fff; box-shadow: none; }
