@charset "UTF-8";
/* นาฬิกาจับเวลาติดตั้ง 10 นาที (หน้าแรก v2 ส่วนติดตั้ง · เจ้าของเลือกแบบ 5 จาก /lab/install2 30 ต.ค.) — ห้ามขอบสีด้านเดียว */
.scrub { height: 240vh; padding: 0; }
.scrub__sticky { position: sticky; top: 70px; padding: clamp(30px, 4vw, 56px) 0; }
.timer { display: grid; justify-items: center; }
.timer__dial { position: relative; width: min(420px, 78vw); aspect-ratio: 1; }
.timer__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer__bg { fill: #fff; stroke: var(--line); stroke-width: 18; }
.timer__arc { fill: none; stroke: var(--indigo); stroke-width: 18; stroke-linecap: round; stroke-dasharray: 816.8; stroke-dashoffset: 816.8; }
.timer__face { position: absolute; inset: 14%; display: grid; place-items: center; text-align: center; }
.timer__count, .timer__done { grid-area: 1 / 1; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.timer__count b { display: block; font: 600 clamp(48px, 8vw, 84px)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.timer__count small { color: var(--ink-2); }
.timer__done { display: grid; justify-items: center; gap: 8px; opacity: 0; transform: scale(.85); }
.timer__done img { width: 92px; height: auto; border-radius: 14px; border: 5px solid var(--ink); box-shadow: var(--shadow-sm); }
.timer__done b { font: 600 20px var(--f-display); color: var(--ok); }
.timer.is-done .timer__count { opacity: 0; transform: scale(.85); }
.timer.is-done .timer__done { opacity: 1; transform: none; }
.timer__pin { --r: calc(min(420px, 78vw) / 2 + 26px); position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; color: var(--ink-2); opacity: .4; transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))); transition: opacity .3s, color .3s; }
.timer__pin i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--line); }
.timer__pin.is-on { opacity: 1; color: var(--ink); font-weight: 600; }
.timer__pin.is-on i { background: var(--ok); box-shadow: 0 0 0 3px rgba(31, 122, 77, .25); }
.timer__pin[style*="126deg"], .timer__pin[style*="216deg"] { flex-direction: row-reverse; translate: -100% 0; }
.timer__legend { display: none; }
.timer__alt { margin-top: 34px; color: var(--ink-2); }
.timer__alt a { color: var(--indigo); font-weight: 600; }


@media (max-width: 860px) {
  /* มือถือแบบเดียวกับจอคอม (เจ้าของสั่ง 30 ต.ค.): ค้างกลางจอ วงเดินตามการเลื่อน · หมุดเป็นเลข 1–4 บนวง · ชื่อขั้นอยู่ในรายการใต้วง */
  .scrub { height: 200vh; }
  .scrub__sticky { top: 64px; padding: 16px 0; }
  .timer__dial { width: min(250px, 66vw); counter-reset: pin; }
  .timer__pin { --r: calc(min(250px, 66vw) * .433); counter-increment: pin; width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 0; gap: 0; justify-content: center; translate: none !important; flex-direction: row !important; opacity: 1; }
  .timer__pin i { display: grid; place-items: center; width: 26px; height: 26px; font: 600 13px/1 var(--f-display); color: var(--ink-2); }
  .timer__pin i::after { content: counter(pin); }
  .timer__pin.is-on i { color: #fff; }
  .timer__count b { font-size: 46px; }
  .timer__done img { width: 52px; border-width: 3px; }
  .timer__done { gap: 4px; }
  .timer__done b { font-size: 16px; }
  .timer__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; list-style: none; margin: 22px 0 0; padding: 0; counter-reset: leg; max-width: 340px; }
  .timer__legend li { counter-increment: leg; display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); opacity: .45; transition: opacity .3s; }
  .timer__legend li::before { content: counter(leg); flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); font: 600 12px/1 var(--f-display); color: var(--ink-2); }
  .timer__legend li.is-on { opacity: 1; color: var(--ink); }
  .timer__legend li.is-on::before { background: var(--ok); color: #fff; }
  .timer__alt { margin-top: 18px; font-size: 14px; text-align: center; }
}

.timer__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
