﻿.interaction-progress{position:fixed;top:0;left:0;right:0;height:3px;pointer-events:none;z-index:10000;background:color-mix(in srgb,var(--gold,#d7b77f) 22%,transparent);overflow:hidden}.interaction-progress:after{content:"";position:absolute;inset:0;background:var(--gold,#d7b77f);transform:scaleX(.22);transform-origin:left center}.interaction-progress.is-busy:after{animation:interaction-flow 1.6s ease-in-out infinite}.interaction-progress.is-complete:after{transform:scaleX(1);transition:transform .18s}.interaction-pressed{filter:brightness(1.12);box-shadow:0 0 0 3px color-mix(in srgb,var(--gold,#d7b77f) 30%,transparent)!important}.interaction-spinner{display:inline-block;flex-shrink:0;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:interaction-spin .65s linear infinite;vertical-align:middle;margin-left:5px}[data-feedback-pending]{cursor:wait!important}.sound-controls{display:flex;align-items:center;gap:6px}.sound-toggle{position:relative;width:42px;min-width:42px;height:42px;padding:9px}.sound-toggle svg{width:21px;height:21px}.sound-state{position:absolute;right:6px;bottom:6px;width:5px;height:5px;border-radius:50%;background:var(--muted,#99a5bb)}.sound-toggle.is-on{color:var(--gold);background:color-mix(in srgb,var(--gold) 12%,transparent);border-color:color-mix(in srgb,var(--gold) 45%,transparent)}.sound-toggle.is-on .sound-state{background:var(--gold)}.interaction-top{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));z-index:35;width:46px;height:46px;border:1px solid var(--line);border-radius:50%;background:var(--card,#151b31);color:var(--ink);box-shadow:0 4px 20px #0002;font-size:24px}.interaction-top:focus-visible{outline:3px solid var(--gold);outline-offset:3px}body:has(.privacy-banner:not([hidden])) .interaction-top{bottom:var(--interaction-cookie-offset,calc(55vh + 32px))}@keyframes interaction-flow{0%{transform:translateX(-35%) scaleX(.28)}55%{transform:translateX(35%) scaleX(.5)}100%{transform:translateX(100%) scaleX(.24)}}@keyframes interaction-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.interaction-progress.is-busy:after{animation:none;transform:scaleX(.7)}.interaction-spinner{animation:none;border-right-color:currentColor}.interaction-pressed{filter:none}}
@media(max-width:660px){.topbar{align-items:start;gap:10px;flex-wrap:wrap}.topbar .header-actions{justify-content:flex-end;flex-wrap:wrap;gap:6px;flex:1;min-width:240px}.topbar .brand{min-height:44px}.header-actions #install-button{padding:10px 12px}.header-actions #install-button span{font-size:12px}.header-actions .sound-toggle{min-width:40px;width:40px}}

/* Immediate taps on actions: prevent double-tap zoom while retaining panning
   and pinch zoom. Text, editable fields and the document keep native gestures. */
:is(button,a[href],summary,select,input[type="button"],input[type="submit"],input[type="reset"],input[type="checkbox"],input[type="radio"],label[for],label:has(input[type="checkbox"],input[type="radio"]),[role="button"]){touch-action:manipulation}

