/* Zanjireh web app — batch B styles. */
/* konkuryar */
.kt { display: grid; gap: 18px; justify-items: center; }
.kt .seg { justify-content: center; }
.kt__ring { position: relative; width: 220px; height: 220px; }
.kt__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.kt__ring circle { fill: none; stroke-width: 7; }
.kt__ring .bg { stroke: var(--tint-3); } .kt__ring .v { stroke: url(#none); stroke: var(--z-cyan); stroke-linecap: round; transition: stroke-dashoffset .5s linear; }
.kt__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 900; font-variant-numeric: tabular-nums; direction: ltr; }
.kt__ring small { position: absolute; bottom: 52px; left: 0; right: 0; text-align: center; color: var(--text-3); }
/* karnama */
.kn-in { height: 58px; font-size: 1.05rem; }
.row.kn { grid-template-columns: auto 1fr auto; }
.kn__chk { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--a); background: none; position: relative; }
.kn__chk.on { background: var(--a); }
.kn__chk.on::after { content: ""; position: absolute; inset: 5px 8px 8px; border: solid #02110F; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
/* taqvim */
.cal__nav { display: flex; gap: 8px; justify-content: space-between; margin-bottom: 12px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cal > span { font-size: .75rem; color: var(--text-3); padding: 4px 0; }
.cal__d { position: relative; display: grid; gap: 1px; padding: 8px 2px 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--tint-1); }
.cal__d b { font-size: 1.05rem; } .cal__d small { font-size: .56rem; color: var(--text-3); direction: ltr; }
.cal__d.is-h b { color: #FF7A8A; } .cal__d.is-t { border-color: var(--accent); background: rgba(42, 214, 217, .12); }
.cal__d em { position: absolute; top: 5px; inset-inline-end: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--z-amber); }
/* qr */
.qr-out { width: min(280px, 100%); aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: var(--tint-1); }
.qr-out svg { width: 100%; height: 100%; }
/* word of the day */
.wd { display: grid; justify-items: center; gap: 22px; }
.wd__grid { display: grid; gap: 6px; }
.wd__row { display: flex; gap: 6px; }
.wd__row span { width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.7rem; font-weight: 900; border-radius: 12px; border: 2px solid var(--border-2); }
.wd__row .s-f { border-color: var(--text-3); }
.wd__row .s-g, .wd__row .s-y, .wd__row .s-x { color: #fff; border-color: transparent; animation: flip .5s var(--ease) both; }
.s-g { background: #12A57A !important; } .s-y { background: #D4A23A !important; } .s-x { background: #3A4A4F !important; }
@keyframes flip { from { transform: rotateX(90deg); } }
.wd__kb { display: grid; gap: 6px; width: min(560px, 100%); }
.wd__kr { display: flex; gap: 4px; justify-content: center; }
.wd__kr button { flex: 1; max-width: 42px; height: 50px; border-radius: 9px; border: 0; background: var(--tint-3); font-weight: 800; font-size: 1.05rem; color: var(--text); }
.wd__kr button.wide { max-width: 72px; flex: 1.6; font-size: .85rem; }
.wd__kr button.s-g, .wd__kr button.s-y, .wd__kr button.s-x { color: #fff; }
.wd__end { display: grid; justify-items: center; gap: 8px; text-align: center; } .wd__end b { font-size: 1.3rem; } .wd__end span { color: var(--text-3); font-size: .85rem; }
@media (max-width: 420px) { .wd__row span { width: 50px; height: 50px; font-size: 1.4rem; } .wd__kr button { height: 44px; font-size: .9rem; } }
/* kalamechin */
.kc { display: grid; justify-items: center; gap: 18px; }
.kc__words { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px; }
.kc__w { display: flex; gap: 3px; }
.kc__w span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--tint-3); font-weight: 900; }
.kc__w span:not(:empty) { background: #12A57A; color: #fff; }
.kc__cur { min-height: 44px; font-size: 1.8rem; font-weight: 900; color: var(--accent); }
.kc__wheel { position: relative; width: 290px; height: 290px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 214, 217, .12), transparent 70%), var(--tint-1); border: 1px solid var(--border-2); display: grid; place-items: center; }
.kc__wheel button { position: absolute; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--bg-3); box-shadow: 0 6px 16px rgba(0, 0, 0, .3), inset 0 0 0 1px var(--border-2); font-size: 1.6rem; font-weight: 900; color: var(--text); transition: background .2s; }
.kc__wheel button.on { background: var(--z-grad); color: #02110F; }
.kc__mid { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
/* dorehami */
.mf-card { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 280px; border-radius: 26px; border: 1px solid var(--border-2); background: var(--bg-3); text-align: center; cursor: pointer; transition: background .4s; }
.mf-card b { font-size: 2rem; font-weight: 900; } .mf-card small, .mf-card span { color: var(--text-3); }
.mf-card.is-on { background: radial-gradient(circle, rgba(255, 122, 138, .18), transparent 70%), var(--bg-3); }
.mf-script { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; color: var(--text-2); line-height: 1.9; }
.es-letter { font-size: 6rem; font-weight: 900; line-height: 1; background: var(--z-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.es-time { font-size: 1.6rem; font-weight: 900; color: var(--text-2); font-variant-numeric: tabular-nums; }
/* typing */
.ty__text { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); line-height: 2.1; padding: 18px; border-radius: 16px; background: var(--tint-1); border: 1px solid var(--border); margin-bottom: 14px; user-select: none; }
.ty__text span { border-radius: 4px; white-space: pre-wrap; }
.ty__text span.ok { color: #12A57A; } .ty__text span.bad { color: #fff; background: #C23F52; }
.ty__text span.cur { box-shadow: inset 0 -3px 0 var(--accent); }
.ty__in { height: 56px; font-size: 1.2rem; }
