/* Cozy Tree: the guide worker's styles (CONTRACT.md c): the first-time tour (js/ui/tour.js) and the music volume
   slider (js/ui/sound.js). No boxes: a hairline ring around the control (its wide soft shadow dims the rest lightly),
   the words on the page's own glass like the round buttons, two quiet text buttons. Nothing here catches the pointer
   except the words and the slider. */

/* ---------- the tour ---------- */
#tour-layer{position:fixed;inset:0;z-index:30;pointer-events:none}
#tour-layer[hidden]{display:none}
.tour-ring{
  position:fixed;left:0;top:0;width:0;height:0;box-sizing:border-box;pointer-events:none;
  border:1px solid var(--ink);border-radius:16px;
  box-shadow:0 0 0 200vmax rgba(24,20,14,.16);
  transition:left .35s cubic-bezier(.2,.8,.2,1),top .35s cubic-bezier(.2,.8,.2,1),width .35s cubic-bezier(.2,.8,.2,1),height .35s cubic-bezier(.2,.8,.2,1),border-color .9s ease;
}
:root[data-mode="night"] .tour-ring{box-shadow:0 0 0 200vmax rgba(0,0,0,.22)}
.tour-tip{
  position:fixed;left:16px;top:16px;box-sizing:border-box;max-width:calc(100vw - 32px);pointer-events:auto;
  padding:14px 16px 10px;border-radius:18px;color:var(--ink);background:var(--btn);
  -webkit-backdrop-filter:blur(14px) saturate(1.1);backdrop-filter:blur(14px) saturate(1.1);
  transition:left .35s cubic-bezier(.2,.8,.2,1),top .35s cubic-bezier(.2,.8,.2,1),color .9s ease;
  -webkit-user-select:none;user-select:none;
}
.tour-text{margin:0 0 8px;font-size:15px;line-height:1.45;letter-spacing:.005em}
:root[data-lang="ko"] .tour-text{word-break:keep-all}
.tour-acts{display:flex;justify-content:flex-end;gap:4px}
.tour-acts button{
  border:0;background:none;padding:8px 10px;min-height:36px;cursor:pointer;border-radius:10px;
  font:inherit;font-size:14px;color:var(--ink);transition:background-color .2s ease,opacity .2s ease,color .9s ease;
}
.tour-acts button[hidden]{display:none}
.tour-skip{opacity:.62}
.tour-next{font-weight:600}
.tour-acts button:hover{background:var(--btn-hover)}
.tour-acts button:focus-visible{outline:2px solid currentColor;outline-offset:1px}
@media (prefers-reduced-motion:reduce){.tour-ring,.tour-tip{transition:none}}

/* ---------- the music volume: one thin slider under the speaker button ---------- */
.dt-ui.dt-vol{
  position:fixed;z-index:25;left:0;top:0;box-sizing:border-box;width:168px;padding:10px 14px;pointer-events:auto;
  border-radius:999px;background:var(--dt-btn);color:var(--dt-ink);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.dt-ui.dt-vol[hidden]{display:none !important}
.dt-vol-range{
  display:block;width:100%;height:22px;margin:0;background:none;cursor:pointer;
  -webkit-appearance:none;appearance:none;accent-color:var(--dt-ink);color:inherit;
}
.dt-vol-range::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:color-mix(in srgb,currentColor 45%,transparent)}
.dt-vol-range::-moz-range-track{height:2px;border-radius:2px;background:color-mix(in srgb,currentColor 45%,transparent)}
.dt-vol-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin-top:-7px;border:0;border-radius:50%;background:var(--dt-ink)}
.dt-vol-range::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:var(--dt-ink)}
.dt-vol-range:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:6px}
