/* ---------------- Фокус на задачу ---------------- */
.tl-focus{display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin:6px 0 0 auto;padding:0;border:0;border-radius:50%;background:var(--color-primary,#D7ED78);color:var(--color-dark,#0D0E0A);cursor:pointer;box-shadow:0 2px 6px rgba(62,68,33,.18)}
.tl-focus:active{transform:scale(.92)}
.tf-overlay{position:fixed;inset:0;z-index:1200}
.tf-dim{position:absolute;inset:0;background:rgba(13,14,10,.55)}
.tf-sheet{position:absolute;left:0;right:0;bottom:0;background:var(--color-background,#FAFBEF);color:var(--color-text,#0D0E0A);border-radius:30px 30px 0 0;padding:12px 18px calc(24px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 40px rgba(0,0,0,.25);max-height:88vh;overflow:auto;font-family:'Inter',sans-serif}
.tf-grab{width:44px;height:5px;border-radius:9px;background:#D5D7C3;margin:0 auto 14px}
.tf-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#85868A}
.tf-title{font-size:22px;font-weight:900;letter-spacing:-.02em;line-height:1.15;margin-top:4px}
.tf-sub{font-size:13px;color:#85868A;font-weight:600;line-height:1.4;margin-top:6px}
.tf-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.tf-chip{border:1.5px solid #E1E3CC;background:#fff;color:inherit;border-radius:99px;padding:10px 16px;font:800 14px 'Inter',sans-serif;cursor:pointer}
.tf-chip.on{background:#0D0E0A;color:#D7ED78;border-color:#0D0E0A}
.tf-custom{margin-top:10px;width:100%;border:1.5px solid #E1E3CC;border-radius:16px;padding:12px 14px;font:700 16px 'Inter',sans-serif;background:#fff}
.tf-ping{display:flex;align-items:center;gap:12px;background:#fff;border-radius:18px;padding:12px 14px;margin-top:16px;font-weight:700;font-size:14px}
.tf-ping span{flex:1}
.tf-ping input{width:22px;height:22px;accent-color:#0D0E0A}
.tf-hint{font-size:12px;color:#85868A;font-weight:600;line-height:1.4;margin-top:14px}
.tf-go{display:block;width:100%;border:0;border-radius:99px;padding:15px;margin-top:16px;font:900 15px 'Inter',sans-serif;background:#D7ED78;color:#0D0E0A;cursor:pointer}
.tf-go[disabled]{opacity:.5}
.tf-ghost{display:block;width:100%;border:0;border-radius:99px;padding:14px;margin-top:8px;font:800 14px 'Inter',sans-serif;background:#F1F3DE;color:#0D0E0A;cursor:pointer}
.tf-focus-chip{margin:-4px 0 12px;padding:10px 14px;border-radius:16px;background:#EEF5C8;color:#3E4421;font-weight:800;font-size:14px}

/* ---------------- Сражение с бабулей ---------------- */
.bt-start{display:block;width:100%;border:0;border-radius:99px;padding:12px;margin-top:2px;font:900 14px 'Inter',sans-serif;background:#0D0E0A;color:#D7ED78;cursor:pointer}
.bt-start:active{transform:scale(.98)}
.bt-box{background:#fff;border-radius:18px;padding:12px;border:1px solid rgba(0,0,0,.06)}
.bt-top{display:flex;align-items:center;gap:10px}
.bt-top img{width:46px;height:46px;object-fit:contain;flex:none}
.bt-top b{display:block;font-size:14px;font-weight:900;letter-spacing:-.01em}
.bt-top small{display:block;font-size:12px;color:#85868A;font-weight:600;margin-top:2px}
.bt-hp{height:12px;border-radius:99px;background:#ECEED9;margin-top:10px;overflow:hidden}
.bt-hp i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#E5F58A,#D7ED78);transition:width .4s}
.bt-meta{display:flex;justify-content:space-between;gap:8px;margin-top:6px;font-size:12px;font-weight:700;color:#3E4421}
.bt-actions{display:flex;gap:8px;margin-top:10px}
.bt-go{flex:1;border:0;border-radius:99px;padding:12px;font:900 14px 'Inter',sans-serif;background:#D7ED78;color:#0D0E0A;cursor:pointer}
.bt-ghost{border:0;border-radius:99px;padding:12px 14px;font:800 13px 'Inter',sans-serif;background:#F1F3DE;color:#0D0E0A;cursor:pointer}
.bt-won{font-size:13px;font-weight:800;color:#3E4421;padding:2px 2px 0}
.bt-actions{flex-direction:column}
.bt-go,.bt-ghost{white-space:nowrap;width:100%}
.bt-ghost{padding:10px 14px}

/* бой: выбор дней, экран боя */
.bt-sheet-head{display:flex;align-items:center;gap:12px}
.bt-sheet-head img{width:64px;height:64px;object-fit:contain;flex:none}
.bt-note{font-size:13px;font-weight:700;color:#3E4421;background:#EEF5C8;border-radius:14px;padding:10px 12px;margin-top:14px;line-height:1.4}
.bt-row{display:flex;gap:6px;margin-top:8px}
.bt-row .bt-ghost{flex:1;padding:9px 6px;font-size:12px;width:auto}
.bt-int-top{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#85868A;text-align:center;margin-bottom:10px}
.bt-int-boss{display:flex;align-items:center;gap:12px;background:#0D0E0A;color:#FAFBEF;border-radius:22px 22px 0 0;padding:14px}
.bt-int-boss img{width:64px;height:64px;object-fit:contain}
.bt-int-boss>div{flex:1}
.bt-int-boss b{font-size:15px}
.bt-int-boss span{float:right;color:#E8765D;font-weight:800;font-size:13px}
.bt-int-quote{background:#0D0E0A;color:#FAFBEF;border-radius:0 0 22px 22px;padding:0 14px 14px;font-weight:700;font-size:14px;line-height:1.4}
.bt-fight{position:fixed;inset:0;height:100vh;height:100dvh;box-sizing:border-box;z-index:1100;background:#0D0E0A;color:#FAFBEF;--bt-x:max(18px,calc((100vw - 560px)/2));padding:calc(16px + env(safe-area-inset-top,0px) + var(--tg-content-safe-area-inset-top,0px)) var(--bt-x) calc(18px + env(safe-area-inset-bottom,0px));overflow:auto;font-family:'Inter',sans-serif;display:flex;flex-direction:column}
.bt-f-label{font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#D7ED78}
.bt-f-title{font-size:28px;font-weight:900;letter-spacing:-.02em;line-height:1.1;margin:4px 0 14px}
.bt-f-boss{display:flex;align-items:center;gap:12px;background:#1A1B13;border-radius:26px;padding:12px 14px}
.bt-f-boss img{width:78px;height:78px;object-fit:contain;flex:none}
.bt-f-boss>div{flex:1;min-width:0}
.bt-f-bosshead{display:flex;justify-content:space-between;align-items:baseline;font-size:16px}
.bt-f-bosshead span{color:#E8765D;font-weight:900}
.bt-f-bar{height:12px;border-radius:99px;background:#2A2C1F;margin-top:6px;overflow:hidden}
.bt-f-bar i{display:block;height:100%;border-radius:99px;background:#E0644B;transition:width .4s}
.bt-f-quote{font-size:13.5px;font-weight:600;color:#D9DCC4;margin-top:8px;line-height:1.35}
.bt-f-ringwrap{flex:1 1 auto;min-height:96px;margin-top:10px;display:flex;align-items:center;justify-content:center}
.bt-f-ring{position:relative;width:min(56vw,30dvh,260px);aspect-ratio:1;cursor:pointer;flex:none}
@supports (width:1cqmin){.bt-f-ringwrap{container-type:size}.bt-f-ring{width:min(100cqw,100cqh,280px)}}
.bt-f-ring svg{width:100%;height:100%}
.bt-f-ring circle{fill:none;stroke-width:16}
.bt-f-ring .bg{stroke:#23251A}
.bt-f-ring .fg{stroke:#D7ED78;stroke-linecap:round;transition:stroke-dashoffset .4s linear}
.bt-f-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.bt-f-big{font-size:clamp(44px,13vw,64px);font-weight:900;letter-spacing:-.03em;line-height:1}
.bt-f-sm{font-size:14px;font-weight:700;color:#C9CDB0;margin-top:6px}
.bt-f-tip{text-align:center;font-size:11px;color:#6E705D;font-weight:600;margin-top:8px}
.bt-f-line{display:flex;justify-content:space-between;font-size:16px;font-weight:700;margin-top:14px}
.bt-f-line b{color:#D7ED78}
.bt-f-seg{display:flex;gap:4px;margin-top:8px}
.bt-f-seg i{flex:1;height:12px;border-radius:99px;background:linear-gradient(90deg,#D7ED78 var(--f,0%),#23251A var(--f,0%))}
.bt-f-segl{display:flex;justify-content:space-between;font-size:12px;font-weight:700;color:#85868A;margin-top:6px}
.bt-f-manul{display:flex;align-items:center;gap:12px;background:#1A1B13;border-radius:22px;padding:10px 14px;margin-top:14px;font-weight:700;font-size:14px;line-height:1.35}
.bt-f-manul img{width:68px;height:60px;object-fit:contain;flex:none}
.bt-f-btns{display:flex;gap:10px;margin-top:auto;padding-top:16px}
.bt-f-pause,.bt-f-quit{flex:1;border-radius:99px;padding:16px;font:900 16px 'Inter',sans-serif;cursor:pointer;color:#FAFBEF}
.bt-f-pause{border:0;background:#26281C}
.bt-f-quit{border:1.5px solid #3A3D2A;background:transparent;color:#D9DCC4}


@media (max-height:760px){
  .bt-fight{padding-top:calc(10px + env(safe-area-inset-top,0px) + var(--tg-content-safe-area-inset-top,0px));padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .bt-f-title{font-size:22px;margin:2px 0 8px}
  .bt-f-boss{padding:8px 12px;border-radius:22px}
  .bt-f-boss img{width:56px;height:56px}
  .bt-f-quote{font-size:12.5px;margin-top:5px}
  .bt-f-big{font-size:clamp(34px,11vw,52px)}
  .bt-f-sm{font-size:12px}
  .bt-f-tip{display:none}
  .bt-f-line{font-size:14px;margin-top:8px}
  .bt-f-manul{padding:6px 12px;margin-top:8px;font-size:13px}
  .bt-f-manul img{width:48px;height:42px}
  .bt-f-btns{padding-top:10px}
  .bt-f-pause,.bt-f-quit{padding:13px;font-size:15px}
}
@media (max-height:620px){
  .bt-f-manul,.bt-f-segl{display:none}
  .bt-f-boss img{width:46px;height:46px}
  .bt-f-title{font-size:19px}
}
@media (max-height:460px){
  .bt-f-quote,.bt-f-label{display:none}
  .bt-f-boss{padding:6px 10px}
  .bt-f-boss img{width:38px;height:38px}
  .bt-f-pause,.bt-f-quit{padding:10px}
}
@media (min-height:900px){
  .bt-f-title{font-size:32px}
  .bt-f-boss img{width:92px;height:92px}
}
.tf-sheet{max-width:560px;margin-left:auto;margin-right:auto}

#timeline-list .tl-row{--timeline-row-gap:18px;margin-bottom:var(--timeline-row-gap)}
#timeline-list .tl-row.divider-row{--timeline-row-gap:10px}
#timeline-list .tl-row:last-child{margin-bottom:0}
#timeline-list .tl-time-col{
  width:35px;padding-top:0;align-self:center;text-align:left;white-space:nowrap;
}
#timeline-list .tl-rail{
  width:28px;position:relative;justify-content:center;margin-inline-start:-6px;
}
#timeline-list .tl-rail .tl-dot,
#timeline-list .tl-rail .tl-focus{position:relative;z-index:1;margin:0}
#timeline-list .tl-rail .tl-focus{
  width:27px;height:27px;flex:none;background:var(--task-color,#D7ED78);
}
#timeline-list .tl-rail .tl-focus svg{width:16px;height:16px}
#timeline-list .tl-rail .tl-line{
  position:absolute;inset-block:50% calc(-1 * var(--timeline-row-gap));left:50%;transform:translateX(-50%);
  min-height:0;margin:0;opacity:.75;
}
#timeline-list .tl-row:not(:first-child) .tl-rail::before{
  content:'';position:absolute;top:0;bottom:50%;left:50%;transform:translateX(-50%);
  width:2px;background:var(--block-color,var(--task-color,#EDE9FB));opacity:.45;
}
#timeline-list .tl-divider-bar{opacity:1}
