/* Pet Vet Clinic (walk-around edition, Nov 2026). System fonts only, no inline styles. */
[hidden]{display:none!important}
*{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%;width:100%;overflow:hidden;overscroll-behavior:none;touch-action:none;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
body{position:fixed;inset:0;height:100dvh;background:#cfeee2;color:#1f4d48;
  font-family:ui-rounded,"SF Pro Rounded","Nunito","Segoe UI Rounded","Trebuchet MS",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#pvc{position:fixed;inset:0;height:100dvh;width:100vw;overflow:hidden;overscroll-behavior:none;touch-action:none}
#world{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none;cursor:pointer}
#world:focus-visible{box-shadow:inset 0 0 0 4px #ffffffaa}
button,a{touch-action:manipulation;font:inherit;color:inherit}
button{cursor:pointer}
svg{display:block}
.nojs{position:absolute;inset:40% 10% auto;text-align:center;font-weight:800;background:#fff;padding:16px;border-radius:16px}

/* ---------- HUD ---------- */
.hud{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;gap:6px;z-index:7;
  padding:calc(env(safe-area-inset-top,0px) + 6px) calc(env(safe-area-inset-right,0px) + 8px) 6px calc(env(safe-area-inset-left,0px) + 8px);pointer-events:none}
.hud > *{pointer-events:auto}
.hbtn{flex:0 0 auto;width:46px;height:46px;border-radius:16px;border:0;display:grid;place-items:center;padding:0;
  background:linear-gradient(#ffffff,#def5ec);box-shadow:0 3px 0 #8fcdb9,0 6px 14px #1f6e5d33,inset 0 1px 0 #fff}
.hbtn svg{width:28px;height:28px}
.hbtn:active,.chart:active{transform:translateY(2px);box-shadow:0 1px 0 #8fcdb9,0 3px 8px #1f6e5d33}
.hbtn[aria-expanded="true"]{background:linear-gradient(#fff6d6,#ffe08f);box-shadow:0 3px 0 #d6a93c,0 6px 14px #1f6e5d33}
.hbtn.ring{animation:ring 1s ease-in-out infinite;background:linear-gradient(#fff6d6,#ffd36b);box-shadow:0 3px 0 #d6a93c,0 0 0 4px #ffd36b88,0 6px 14px #1f6e5d33}
@keyframes ring{0%,100%{transform:rotate(0)}20%{transform:rotate(-12deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-6deg)}}
.hbtn:focus-visible,.chart:focus-visible,.bubble button:focus-visible,.panel button:focus-visible,.panel a:focus-visible,.go:focus-visible,.ctl:focus-visible,.act:focus-visible{outline:4px solid #5a49d6;outline-offset:2px}
.chart{flex:1 1 auto;min-width:0;height:46px;display:flex;align-items:center;gap:6px;padding:0 10px 0 4px;border:0;border-radius:23px;
  background:linear-gradient(#ffffff,#eefaf5);box-shadow:0 3px 0 #8fcdb9,0 6px 14px #1f6e5d33,inset 0 1px 0 #fff;overflow:hidden;text-align:left}
.chart-face{flex:0 0 auto;width:40px;height:40px;border-radius:50%;background:#d8f1e8;overflow:hidden;display:grid;place-items:center}
.chart-face canvas,.chart-face svg{width:40px;height:40px}
.chart-steps{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:3px;overflow:hidden;font-weight:800;font-size:15px;color:#2b6a60;white-space:nowrap}
.chart-steps .st{flex:0 0 auto;width:30px;height:30px;border-radius:10px;background:#eaf6f1;display:grid;place-items:center;position:relative}
.chart-steps .st svg{width:24px;height:24px}
.chart-steps .st.done{background:#c9f0d9}
.chart-steps .st.done::after{content:"";position:absolute;right:-3px;bottom:-3px;width:14px;height:14px;border-radius:50%;background:#2fae6b;
  box-shadow:0 0 0 2px #fff;background-image:linear-gradient(transparent,transparent)}
.chart-steps .st.done svg{opacity:.55}
.chart-steps .st.next{background:#fff1bf;box-shadow:0 0 0 2px #f4b93a;animation:bob 1.2s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-3px)}}
.chart-steps .txt{overflow:hidden;text-overflow:ellipsis}
.pill{flex:0 0 auto;height:40px;padding:0 10px 0 6px;border-radius:20px;display:flex;align-items:center;gap:4px;background:#ffffffd9;box-shadow:0 2px 8px #1f6e5d22;font-weight:900;color:#c0456b;font-size:18px}
.pill svg{width:26px;height:26px}
.pill.pop{animation:pop .6s}
@keyframes pop{40%{transform:scale(1.3)}}
@media (max-width:440px){.hbtn{width:42px;height:42px}.hbtn svg{width:25px;height:25px}.chart{height:42px}.chart-face,.chart-face canvas{width:36px;height:36px}
  .chart-steps .st{width:26px;height:26px}.chart-steps .st svg{width:21px;height:21px}.pill{height:36px;font-size:16px;padding:0 8px 0 4px}.pill svg{width:22px;height:22px}}
@media (max-width:350px){.pill{display:none}}

/* ---------- caption + toast ---------- */
.say{position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 12px);transform:translateX(-50%);margin:0;max-width:min(92vw,560px);
  padding:10px 18px;border-radius:22px;background:#fffffff2;color:#1f4d48;font-weight:800;font-size:17px;text-align:center;line-height:1.25;
  box-shadow:0 4px 0 #9fd8c4,0 8px 22px #1f6e5d33;pointer-events:none;opacity:0;transition:opacity .35s,transform .35s;z-index:6}
.say.on{opacity:1;transform:translateX(-50%) translateY(-4px)}
body.remote .say{max-width:min(calc(100vw - 300px),560px)}
@media (max-width:600px){body.remote .say{bottom:calc(env(safe-area-inset-bottom,0px) + 150px);max-width:92vw}}
.toast{position:absolute;left:50%;top:38%;pointer-events:none;transform:translate(-50%,-50%);padding:16px 24px;border-radius:28px;z-index:9;
  background:linear-gradient(#fffdf5,#e6fbf1);box-shadow:0 6px 0 #9fd8c4,0 16px 40px #1f6e5d55;text-align:center;font-weight:900;font-size:22px;color:#1f5f55;
  animation:toastIn .45s cubic-bezier(.2,1.6,.4,1);max-width:90vw}
.toast small{display:block;font-size:15px;font-weight:700;color:#4b8a7f;margin-top:4px}
@keyframes toastIn{from{transform:translate(-50%,-50%) scale(.5);opacity:0}}

/* ---------- title card ---------- */
.title-card{position:absolute;z-index:6;left:50%;top:calc(50% + 26px);transform:translate(-50%,-50%);width:min(92vw,460px);max-height:calc(100dvh - 72px);
  overflow:hidden;border-radius:30px;background:linear-gradient(#fffefa,#effaf5);box-shadow:0 8px 0 #9fd8c4,0 22px 60px #1f4d4866;
  display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 16px 16px}
.title-art{width:calc(100% + 32px);height:clamp(90px,26vh,230px);flex:0 1 auto;background:#cfe8d4 url(assets/title.jpg) center 38%/cover no-repeat;
  border-bottom:4px solid #ffffff}
.title-card h1{margin:10px 0 2px;font-size:clamp(26px,5vh,36px);line-height:1.05;color:#1f5f55}
.title-card .lead{margin:2px 0 6px;font-weight:700;color:#3f7a70;font-size:16px;line-height:1.25}
.title-card .found{margin:0 0 6px;font-weight:800;color:#c0456b;font-size:15px;min-height:1em}
.go{border:0;border-radius:22px;padding:12px 34px;font-size:22px;font-weight:900;color:#fff;margin-top:8px;
  background:linear-gradient(#4fd1a5,#23a77f);box-shadow:0 5px 0 #17795b,0 10px 22px #17795b55;text-shadow:0 1px 0 #0003}
.go:active{transform:translateY(3px);box-shadow:0 2px 0 #17795b}
.ctl-pick{display:flex;gap:8px;width:100%;justify-content:center}
.ctl{flex:1 1 0;min-width:0;max-width:200px;border:0;border-radius:18px;padding:8px 6px;display:flex;flex-direction:column;align-items:center;gap:2px;
  background:#eef7f3;box-shadow:inset 0 0 0 2px #cfe7de;color:#2b6a60}
.ctl b{font-size:16px}
.ctl small{font-size:13px;font-weight:600;color:#4b7f76;line-height:1.2}
.ctl-ic svg{width:48px;height:48px}
.ctl[aria-checked="true"]{background:linear-gradient(#fff8dc,#ffe9a6);box-shadow:inset 0 0 0 3px #f0b43a,0 3px 0 #e0a42e}
@media (max-height:520px){.title-art{height:clamp(60px,18vh,110px)}.title-card .lead{display:none}.title-card h1{margin-top:6px;font-size:24px}.ctl-ic svg{width:34px;height:34px}.go{padding:8px 26px;font-size:19px}}
@media (max-height:400px){.title-art{display:none}.title-card{padding-top:8px}}

/* ---------- panels (settings + learning cards) ---------- */
.panel{position:absolute;z-index:8;left:50%;transform:translateX(-50%);width:min(94vw,520px);border-radius:26px;
  background:linear-gradient(#fffefa,#f0faf6);box-shadow:0 6px 0 #9fd8c4,0 18px 50px #1f4d4866;padding:10px 14px 14px;
  top:calc(env(safe-area-inset-top,0px) + 62px);max-height:calc(100dvh - 72px - env(safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;
  animation:panIn .3s cubic-bezier(.2,1.4,.4,1)}
@keyframes panIn{from{opacity:0;transform:translateX(-50%) translateY(14px) scale(.96)}}
.panel-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.panel-head h2{flex:1 1 auto;min-width:0;margin:0;font-size:22px;color:#1f5f55;line-height:1.1}
.card-ic svg{width:40px;height:40px}
.x{flex:0 0 auto;width:44px;height:44px;border:0;border-radius:14px;background:#e3f3ed;display:grid;place-items:center;padding:0}
.x svg{width:24px;height:24px}
.panel h3{margin:10px 2px 6px;font-size:16px;color:#4b7f76;text-transform:uppercase;letter-spacing:.04em}
.set-note{margin:6px 2px 0;font-size:14px;font-weight:600;color:#4b7f76}
.set-row{display:flex;gap:8px}
.tog{flex:1 1 0;border:0;border-radius:16px;padding:10px 8px;font-weight:800;font-size:16px;background:#eef7f3;box-shadow:inset 0 0 0 2px #cfe7de;color:#2b6a60;
  display:flex;align-items:center;justify-content:center;gap:6px}
.tog .kav-ic{width:26px;height:26px}
.tog[aria-pressed="false"],.tog.kav-off{color:#8a9a96;background:#f2f2f0}
.set-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.set-links a{flex:1 1 auto;text-align:center;border-radius:14px;padding:10px 12px;font-weight:800;color:#1f5f55;background:#ffe7a8;text-decoration:none}
.set-links a+a{background:#e3f3ed}

.card{top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 10px);max-height:calc(100dvh - 74px)}
.card-q{margin:0 2px 8px;font-weight:800;font-size:18px;line-height:1.25;color:#1f4d48;text-align:center}
.card-body{display:flex;flex-direction:column;align-items:center;gap:8px}
.choices{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;width:100%}
.choice{flex:1 1 0;min-width:88px;max-width:150px;border:0;border-radius:20px;padding:8px 6px 10px;display:flex;flex-direction:column;align-items:center;gap:4px;
  background:linear-gradient(#ffffff,#e8f6f0);box-shadow:0 4px 0 #9fd8c4,0 8px 16px #1f6e5d22;font-weight:900;font-size:16px;color:#1f5f55}
.choice:active{transform:translateY(3px);box-shadow:0 1px 0 #9fd8c4}
.choice img,.choice canvas,.choice svg{width:72px;height:72px;object-fit:contain}
.choice.ok{background:linear-gradient(#e9fff1,#b9f1cf);box-shadow:0 4px 0 #44b77a}
.choice.no{animation:shake .4s}
@keyframes shake{25%{transform:translateX(-6px)}50%{transform:translateX(6px)}75%{transform:translateX(-3px)}}
.thermo-wrap{display:flex;align-items:center;gap:12px;justify-content:center}
.thermo-wrap canvas{width:min(70vw,300px);height:auto;max-height:28dvh}
.clock-face{position:relative;width:min(70vw,250px,34dvh);aspect-ratio:1/1}
.clock-face canvas{position:absolute;inset:0;width:100%;height:100%}
.clock-face button{position:absolute;width:19%;height:19%;margin:-9.5% 0 0 -9.5%;border:0;border-radius:50%;background:#fff;font-weight:900;
  font-size:clamp(16px,4.6vw,24px);color:#1f5f55;box-shadow:0 3px 0 #9fd8c4;padding:0}
.clock-face button.ok{background:#b9f1cf;box-shadow:0 3px 0 #44b77a}
.clock-face button.no{animation:shake .4s}
.bottles{display:flex;gap:10px;justify-content:center}
@media (max-height:520px){.card{width:min(96vw,760px)}.card-body.row{flex-direction:row;justify-content:center}.choice img,.choice canvas,.choice svg{width:56px;height:56px}
  .clock-face{width:min(60vw,46dvh)}.card-q{font-size:16px;margin-bottom:4px}.panel-head h2{font-size:19px}}

/* ---------- action bubble ---------- */
.bubble{position:absolute;z-index:6;left:0;top:0;padding:8px 10px 10px;border-radius:24px;background:#fffffff7;
  box-shadow:0 5px 0 #9fd8c4,0 12px 30px #1f4d4840;min-width:120px;max-width:calc(100vw - 16px);animation:bubIn .3s cubic-bezier(.2,1.6,.4,1)}
@keyframes bubIn{from{opacity:0;scale:.6}}
.bubble-t{margin:0 4px 6px;font-weight:900;font-size:15px;color:#3f7a70;text-align:center}
.bubble-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.bubble button{border:0;border-radius:18px;min-width:74px;padding:6px 8px 7px;display:flex;flex-direction:column;align-items:center;gap:2px;position:relative;
  background:linear-gradient(#ffffff,#e3f5ee);box-shadow:0 3px 0 #9fd8c4;font-weight:800;font-size:14px;color:#1f5f55}
.bubble button svg{width:44px;height:44px}
.bubble button.done{opacity:.5}
.bubble button.next{background:linear-gradient(#fffbe6,#ffe9a6);box-shadow:0 3px 0 #e0a42e;animation:bob 1.2s ease-in-out infinite}
.bubble-tail{position:absolute;left:50%;bottom:-11px;width:22px;height:22px;margin-left:-11px;background:#fffffff7;transform:rotate(45deg);border-radius:0 0 6px 0;
  box-shadow:4px 4px 0 #9fd8c4}
.bubble.below .bubble-tail{bottom:auto;top:-11px;box-shadow:none}

/* ---------- remote pad (stethoscope-style stick + paw help button) ---------- */
.pad{position:absolute;z-index:5;left:calc(env(safe-area-inset-left,0px) + 14px);bottom:calc(env(safe-area-inset-bottom,0px) + 14px);
  width:150px;height:150px;touch-action:none}
.pad-base{position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 50% 40%,#ffffff 0 30%,#e9f4f1 31% 52%,#c7d6d3 53% 56%,#eef5f3 57% 66%,#a9bdb9 67% 70%,#dfe9e7 71%);
  box-shadow:0 6px 0 #7f9c97,0 14px 26px #1f4d4855,inset 0 2px 3px #fff}
.pad-ring{position:absolute;inset:16%;border-radius:50%;border:3px dashed #9fd8c4;opacity:.9}
.pad-tube{position:absolute;right:-26px;top:-20px;width:60px;height:60px;border-radius:50%;border:8px solid #5a6f8a;border-left-color:transparent;border-bottom-color:transparent;transform:rotate(10deg);opacity:.85}
.pad-knob{position:absolute;left:50%;top:50%;width:66px;height:66px;margin:-33px 0 0 -33px;border-radius:50%;
  background:radial-gradient(circle at 38% 32%,#b4f5dc,#4fd1a5 60%,#2a9c79);box-shadow:0 5px 0 #1d7a5d,0 8px 14px #0005,inset 0 2px 2px #fff8;
  display:grid;place-items:center;transition:transform .05s}
.pad-knob::before{content:"";width:34px;height:34px;background:url(assets/paw.svg) center/contain no-repeat;opacity:.95}
.act{position:absolute;z-index:5;right:calc(env(safe-area-inset-right,0px) + 16px);bottom:calc(env(safe-area-inset-bottom,0px) + 18px);
  width:112px;height:112px;border-radius:50%;border:0;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;
  background:radial-gradient(circle at 40% 30%,#ffd1e0,#ff7fa8 58%,#e0507e);box-shadow:0 6px 0 #b3335d,0 14px 26px #1f4d4855,inset 0 2px 3px #fff9;
  color:#fff;font-weight:900;font-size:16px;text-shadow:0 1px 0 #0004}
.act:active,.act.press{transform:translateY(4px);box-shadow:0 2px 0 #b3335d,0 6px 12px #1f4d4855}
.act-ic svg{width:50px;height:50px}
.act.dim{filter:saturate(.35) brightness(1.08);opacity:.8}
@media (max-height:460px){.pad{width:120px;height:120px}.pad-knob{width:54px;height:54px;margin:-27px 0 0 -27px}.act{width:92px;height:92px}.act-ic svg{width:40px;height:40px}}
