/* Lộ trình 7 ngày: thẻ "Trò chơi hôm nay" mỗi ngày, ô "Nhắc tôi mỗi ngày" (lo-trinh-tiep.js) và thẻ "Học tiếp ngày N" ở trang chủ */

/* Trò chơi hôm nay (thu_ngay trong scripts/tao_bai_viet.py) */
.day-game { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 8px; padding: 10px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 2px solid #A78BFA; box-shadow: 4px 4px 0 #A78BFA; transition: transform .15s; position: relative; }
.day-game:hover { transform: translate(-1px, -1px); }
.day-game .ct-hinh { min-height: 120px; }
.day-game-t { display: grid; gap: 2px; padding-inline: 4px; }
.day-game-t b { font: 800 18px/1.25 var(--f-display); }
.day-game-t span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.day-game-nut { justify-self: start; margin: 2px 4px 2px; padding: 10px 18px; border-radius: 999px; background: #FACC15; color: #0F172A; border: 2px solid #0F172A; font: 800 15px/1.2 var(--f-body); }
.day-game-xong { position: absolute; top: 16px; right: 16px; padding: 5px 10px; border-radius: 999px; background: #10B981; color: #fff; font: 700 12.5px/1 var(--f-body); }
.day-game.is-choi { border-color: #10B981; box-shadow: 4px 4px 0 #10B981; }
.day-game-xong[hidden] { display: none; }
.day-thu-them { margin-top: 12px; }
.day-thu-them > summary { cursor: pointer; font: 600 14px/1.3 var(--f-body); color: var(--blue); width: fit-content; }
.day-thu-them[open] > summary { margin-bottom: 4px; }

/* Ô "Nhắc tôi mỗi ngày": file lịch .ics, không cần email */
.lt-nhac { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0; padding: 12px 16px; border-radius: 18px;
  background: var(--panel); border: 1.5px dashed color-mix(in srgb, var(--blue) 45%, var(--edge)); }
.lt-nhac[hidden] { display: none; }
.lt-nhac-lich { flex: none; display: grid; grid-template-rows: 12px 1fr; width: 42px; height: 44px; border-radius: 10px; overflow: hidden; background: #fff; border: 2px solid #0F172A; }
.lt-nhac-lich i { background: #EF4444; }
.lt-nhac-lich b { display: grid; place-items: center; color: #0F172A; font: 800 18px/1 var(--f-display); }
.lt-nhac label { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.2 var(--f-body); }
.lt-nhac select { padding: 9px 10px; border-radius: 12px; border: 1.5px solid var(--edge); background: var(--bg2); color: var(--ink); font: 600 15px/1.2 var(--f-body); }
.lt-nhac-nut { cursor: pointer; }
.lt-nhac-bao { flex-basis: 100%; margin: 0; font-size: 13.5px; color: var(--muted); }
.lt-nhac-bao:empty { display: none; }

/* Thẻ "Học tiếp ngày N" ở trang chủ (#hoc-tiep, chỉ hiện với người đã mở lộ trình mà chưa xong) */
.ltt { margin: 0 0 28px; padding: 18px 20px 16px; border-radius: 22px; background: var(--panel); border: 2px solid #0F172A; box-shadow: 5px 5px 0 #0F172A; }
.ltt[hidden] { display: none; }
.ltt-dau { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.ltt-so { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
.ltt-so b { font: 800 28px/1 var(--f-display); letter-spacing: 0; margin-top: -10px; }
.ltt-chu .eyebrow { margin-bottom: 4px; }
.ltt h2 { margin: 0; font: 800 clamp(19px, 2.2vw, 24px)/1.25 var(--f-display); text-wrap: balance; }
.ltt-cham { list-style: none; display: flex; gap: 6px; margin: 14px 0 0; padding: 0; }
.ltt-cham li { flex: 1; max-width: 64px; }
.ltt-cham span { display: grid; place-items: center; height: 26px; border-radius: 999px; background: var(--bg2); border: 1.5px solid var(--edge); color: var(--muted); font: 700 12px/1 var(--f-body); }
.ltt-cham .is-xong span { background: #10B981; border-color: #10B981; color: #fff; }
.ltt-cham .is-nay span { background: #FACC15; border-color: #0F172A; color: #0F172A; }
.ltt-gom { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ltt-gom span { padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 10%, var(--panel)); border: 1.5px solid color-mix(in srgb, var(--blue) 35%, var(--edge)); font: 600 14px/1.2 var(--f-body); }
.ltt-nut { margin-top: 14px; }
.ltt .lt-nhac { margin-top: 12px; }
@media (min-width: 1000px) {
  /* Hai cột cân nhau: trái là ngày + chấm + nhãn, phải là nút học tiếp + ô nhắc gọn một hàng */
  .ltt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); column-gap: 28px; row-gap: 12px; align-items: center; }
  .ltt-dau { grid-column: 1; grid-row: 1; }
  .ltt-cham, .ltt-gom { grid-column: 1; margin-top: 0; }
  .ltt-nut { grid-column: 2; grid-row: 1; margin-top: 0; }
  .ltt-nut .btn { width: 100%; justify-content: center; }
  .ltt .lt-nhac { grid-column: 2; grid-row: 2 / span 2; align-self: stretch; margin-top: 0; flex-wrap: nowrap; padding: 10px 14px; gap: 6px 12px; display: grid;
    grid-template-columns: auto auto minmax(0, 1fr); align-content: center; }
  .ltt .lt-nhac[hidden] { display: none; }
  .ltt .lt-nhac-lich { width: 38px; height: 40px; }
  .ltt .lt-nhac-nut { justify-content: center; padding-inline: 14px; white-space: nowrap; }
  .ltt .lt-nhac-bao { grid-column: 1 / -1; font-size: 13px; }
  /* Chấm ngày và nhãn giãn hết cột trái, không chừa khoảng trống giữa hai cột */
  .ltt-cham li { max-width: none; }
  .ltt-cham span { height: 30px; font-size: 13px; }
  .ltt-gom span { flex: 1 1 0; text-align: center; padding-block: 9px; white-space: nowrap; }
}
@media (max-width: 760px) {
  .ltt { padding: 16px 14px 14px; box-shadow: 3px 3px 0 #0F172A; }
  .ltt-so { width: 54px; height: 54px; }
  .ltt-nut .btn { width: 100%; justify-content: center; }
  .lt-nhac { padding: 12px; }
  .lt-nhac .lt-nhac-nut { flex: 1 1 auto; justify-content: center; }
  .day-game-nut { justify-self: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .day-game { transition: none; } .day-game:hover { transform: none; } }
:root[data-theme="dark"] .ltt { border-color: var(--edge); box-shadow: 5px 5px 0 color-mix(in srgb, var(--blue) 45%, transparent); }
