:root {
  --bg: #2a2238;
  --panel: #fffaf2;
  --ink: #2a2238;
  --muted: #6d6380;
  --accent: #ff8a3d;
  --accent2: #ff5d8f;
  --yellow: #ffd60a;
  --green: #2ec27e;
  --shadow: 0 10px 0 rgba(0, 0, 0, 0.18);
  --soft: 0 8px 24px rgba(20, 10, 40, 0.28);
  --glass: rgba(36, 26, 54, 0.55);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none;
}
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
.hidden { display: none !important; }

/* ---------- всплывающие надписи ---------- */
#fx-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.ftext { position: absolute; left: 0; top: 0; will-change: transform; }
.ftext span {
  display: block; transform: translate(-50%, -50%); white-space: nowrap; text-align: center;
  font-weight: 900; font-size: 20px; color: #fff; line-height: 1;
  text-shadow: 0 2px 0 #000, 0 0 6px rgba(0,0,0,.5);
  animation: fpop 1.3s ease-out forwards;
}
.ftext small { display: block; font-size: 12px; font-weight: 600; opacity: .9; margin-top: 2px; }
.ftext.big span { font-size: 30px; color: var(--yellow); }
.ftext.chain span { color: var(--accent2); font-size: 18px; }
.ftext.meow span { color: var(--yellow); font-size: 26px; transform: translate(-50%, -50%) rotate(-8deg); }
@keyframes fpop {
  0% { opacity: 0; scale: .4; }
  12% { opacity: 1; scale: 1.25; }
  25% { scale: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.hud-score {
  position: absolute; left: calc(12px + var(--sal)); top: calc(10px + var(--sat));
  background: var(--glass); color: #fff; border-radius: 18px; padding: 8px 14px 10px; min-width: 150px;
  box-shadow: var(--soft); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hud-score .lbl, #end-total .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
#score { font-size: 28px; font-weight: 900; color: var(--yellow); line-height: 1.1; }
#score.pop { animation: spop .3s ease-out; }
@keyframes spop { 0% { transform: scale(1.35); color: #fff; } 100% { transform: scale(1); } }
#combo { display: none; margin-top: 4px; }
#combo.on { display: block; }
#combo .x { font-weight: 900; font-size: 18px; color: var(--accent2); }
#combo .bar { height: 5px; background: rgba(255,255,255,.2); border-radius: 3px; margin-top: 3px; overflow: hidden; }
#combo .bar i { display: block; height: 100%; width: 100%; background: var(--accent2); transform-origin: left; }

.hud-timer { position: absolute; left: 50%; top: calc(8px + var(--sat)); transform: translateX(-50%); text-align: center; }
#timer {
  font-size: 44px; font-weight: 900; color: #fff; line-height: 1;
  text-shadow: 0 3px 0 rgba(0,0,0,.4);
  background: var(--glass); border-radius: 20px; padding: 6px 18px; box-shadow: var(--soft); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  min-width: 96px;
}
#timer.warn { color: #ff4d4d; animation: tshake .5s infinite; }
@keyframes tshake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-4deg) scale(1.06); } 75% { transform: rotate(4deg) scale(1.06); } }
.timer-bar { height: 6px; width: 96px; margin: 6px auto 0; background: rgba(0,0,0,.35); border-radius: 3px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; background: var(--yellow); transform-origin: left; }

#quest {
  position: absolute; right: calc(12px + var(--sar)); top: calc(10px + var(--sat)); width: 290px;
  background: rgba(255, 250, 242, .9); border-radius: 18px; padding: 10px 12px; box-shadow: var(--soft); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
}
.q-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.q-tag { background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; }
.q-title { font-weight: 800; }
.q-steps { margin: 0; padding: 0; list-style: none; }
.q-steps li { padding: 3px 0 3px 24px; position: relative; color: var(--muted); line-height: 1.25; }
.q-steps li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 13px; height: 13px; border: 2px solid #c9bfd8; border-radius: 50%; }
.q-steps li.done { text-decoration: line-through; opacity: .55; }
.q-steps li.done::before { background: var(--green); border-color: var(--green); }
.q-steps li.cur { color: var(--ink); font-weight: 700; }
.q-steps li.cur::before { border-color: var(--accent); background: var(--yellow); animation: qpulse 1s infinite; }
@keyframes qpulse { 50% { transform: scale(1.3); } }
#quest.done { background: rgba(46, 194, 126, .95); color: #fff; }
#quest.done .q-steps li { color: #fff; }
#quest.flash { animation: qflash .6s; }
@keyframes qflash { 30% { transform: scale(1.06); } }

#paw {
  position: absolute; left: calc(12px + var(--sal)); top: calc(118px + var(--sat));
  display: flex; align-items: center; gap: 8px; background: rgba(42,34,56,.78); border-radius: 14px; padding: 6px 10px;
  color: #fff; transition: opacity .3s;
}
#paw.off { opacity: 0; }
#paw svg { width: 26px; height: 26px; }
#paw .meter { width: 70px; height: 7px; background: rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; }
#paw .meter i { display: block; height: 100%; width: 0; background: currentColor; }

#context {
  position: absolute; left: 50%; bottom: calc(70px + var(--sab)); transform: translateX(-50%);
  background: rgba(42,34,56,.82); color: #fff; padding: 7px 14px; border-radius: 99px; font-weight: 600; font-size: 15px;
  opacity: 0; transition: opacity .15s; white-space: nowrap;
}
#context.on { opacity: 1; }
#hint {
  position: absolute; left: 50%; bottom: calc(112px + var(--sab)); transform: translateX(-50%);
  color: #fff; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,.7); opacity: 0; transition: opacity .3s; text-align: center; width: 90%;
}
#hint.on { opacity: 1; }
#toast {
  position: absolute; left: 50%; top: calc(100px + var(--sat)); transform: translateX(-50%) translateY(-10px);
  background: var(--yellow); color: var(--ink); font-weight: 800; padding: 9px 16px; border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; transition: all .25s; max-width: min(520px, 80vw); text-align: center;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#banner {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font-size: clamp(32px, 8vw, 84px); font-weight: 900; color: #fff; text-align: center; width: 92%;
  text-shadow: 0 5px 0 rgba(0,0,0,.35), 0 0 30px rgba(0,0,0,.4); opacity: 0;
}
#banner.on { animation: bpop 1.1s ease-out forwards; }
#banner.go { color: var(--yellow); }
#banner.owners { color: #fff; font-size: clamp(26px, 6vw, 60px); }
#banner.owners.on, #banner.intro.on { animation: bstay 2.6s ease-out forwards; }
@keyframes bpop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
@keyframes bstay { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }

#btn-pause {
  position: absolute; right: calc(12px + var(--sar)); bottom: calc(12px + var(--sab)); pointer-events: auto;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(42,34,56,.78); color: #fff; font-size: 14px; cursor: pointer;
}
#keys-legend {
  position: absolute; left: calc(12px + var(--sal)); bottom: calc(12px + var(--sab)); color: #fff; font-size: 12px;
  background: rgba(42,34,56,.6); padding: 6px 10px; border-radius: 10px; opacity: .85;
}
#keys-legend b { color: var(--yellow); }

/* ---------- Сенсорное управление ---------- */
#touch { position: fixed; inset: 0; z-index: 9; touch-action: none; }
#joy-base, #joy-knob { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .15s; }
#joy-base { width: 120px; height: 120px; border: 3px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); }
#joy-knob { width: 52px; height: 52px; background: rgba(255,255,255,.8); box-shadow: 0 3px 0 rgba(0,0,0,.2); }
#joy-base.on, #joy-knob.on { opacity: 1; }
.tbtns { position: absolute; right: calc(14px + var(--sar)); bottom: calc(14px + var(--sab)); width: 210px; height: 190px; }
.tb {
  position: absolute; border: 0; border-radius: 50%; color: #fff; font-family: inherit; font-weight: 800; font-size: 13px;
  background: rgba(42,34,56,.6); border: 3px solid rgba(255,255,255,.55); box-shadow: 0 4px 0 rgba(0,0,0,.25);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.tb.down { transform: scale(.9); background: rgba(255,138,61,.85); }
.tb-jump { width: 92px; height: 92px; right: 0; bottom: 0; background: rgba(255,138,61,.75); font-size: 15px; }
.tb-action { width: 92px; height: 92px; right: 104px; bottom: 22px; background: rgba(255,93,143,.75); font-size: 15px; }
.tb-meow { width: 60px; height: 60px; right: 66px; bottom: 118px; font-size: 13px; }
.tb.glow { border-color: var(--yellow); animation: glow 0.8s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(255,214,10,.45); } }
body.touch #keys-legend { display: none; }
body.touch #btn-pause { right: auto; left: 50%; transform: translateX(-50%); top: calc(96px + var(--sat)); bottom: auto; width: 36px; height: 36px; }
body.touch #context { bottom: calc(210px + var(--sab)); font-size: 13px; }
body.touch #hint { bottom: calc(250px + var(--sab)); }

/* ---------- Экраны ---------- */
.screen {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  padding: calc(14px + var(--sat)) calc(14px + var(--sar)) calc(14px + var(--sab)) calc(14px + var(--sal));
  background: linear-gradient(180deg, rgba(42,34,56,.35), rgba(42,34,56,.75));
  overflow-y: auto; touch-action: pan-y;
}
.panel {
  background: var(--panel); border-radius: 26px; padding: 22px 24px; width: min(640px, 100%);
  box-shadow: 0 14px 0 rgba(0,0,0,.22), 0 30px 80px rgba(0,0,0,.35); max-height: 100%; overflow-y: auto;
  touch-action: pan-y; user-select: text;
}
.panel.small { width: min(380px, 100%); text-align: center; }
.panel h2 { margin: 0 0 10px; font-size: 28px; font-weight: 900; }
.panel h3, .panel h4 { margin: 14px 0 8px; }
.logo { font-size: clamp(48px, 11vw, 78px); margin: 0; font-weight: 900; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.logo span { color: var(--accent); display: inline-block; transform: rotate(-4deg); }
.tagline { margin: 6px 0 4px; font-size: 17px; color: var(--muted); }
#animals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.acard {
  border: 3px solid #eadfce; border-radius: 18px; padding: 10px 8px; text-align: center; cursor: pointer; background: #fff;
  font-family: inherit; color: inherit; transition: transform .12s;
}
.acard:hover { transform: translateY(-2px); }
.acard.on { border-color: var(--accent); background: #fff3e8; box-shadow: 0 5px 0 var(--accent); }
.acard canvas { width: 70px; height: 70px; }
.acard b { display: block; font-size: 17px; }
.acard p { font-size: 12px; color: var(--muted); margin: 4px 0 6px; min-height: 30px; }
.stat { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); justify-content: space-between; }
.stat i { display: inline-flex; gap: 2px; }
.stat i::before { content: attr(data-v); display: none; }
.dots span { width: 8px; height: 8px; border-radius: 2px; background: #eadfce; display: inline-block; margin-left: 2px; }
.dots span.f { background: var(--accent); }
.name-row { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.name-row label { font-size: 14px; color: var(--muted); }
input { font-family: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 2px solid #eadfce; background: #fff; color: var(--ink); flex: 1; min-width: 140px; }
input:focus { outline: none; border-color: var(--accent); }
.menu-buttons { margin-top: 16px; display: grid; gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .btn { flex: 1; }
.btn {
  font-family: inherit; font-weight: 800; font-size: 16px; border: 0; border-radius: 14px; padding: 12px 16px; cursor: pointer;
  background: #efe5d6; color: var(--ink); box-shadow: 0 5px 0 #d6c7b1; transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #d6c7b1; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 5px 0 #c9631f; }
.btn.primary:active { box-shadow: 0 1px 0 #c9631f; }
.btn.big { font-size: 22px; padding: 16px; }
.btn.icon { flex: 0 0 56px; }
.btn.daily { background: #2a2238; color: #fff; box-shadow: 0 5px 0 #120c1c; display: flex; flex-direction: column; align-items: center; }
.btn.daily small { font-weight: 400; font-size: 13px; opacity: .85; margin-top: 2px; }
#challenge-banner { background: var(--yellow); border-radius: 14px; padding: 10px 14px; margin: 10px 0; font-weight: 600; }
#challenge-banner button { margin-top: 8px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help-grid p { margin: 6px 0; font-size: 14px; }
kbd { background: #2a2238; color: #fff; border-radius: 6px; padding: 1px 6px; font-family: inherit; font-size: 12px; }
.tips { padding-left: 18px; margin: 0 0 16px; font-size: 14px; line-height: 1.45; }
.tips li { margin-bottom: 4px; }
.panel.small .btn { width: 100%; margin-top: 10px; }

/* итоги */
.end-panel { text-align: center; }
#owners { width: 100%; max-width: 360px; aspect-ratio: 360 / 170; height: auto; display: block; margin: -6px auto 0; }
.end-title { font-size: clamp(24px, 7.5vw, 40px) !important; line-height: 1.1; color: var(--accent2); overflow-wrap: anywhere; margin-top: 6px !important; }
#owner-quote { font-size: 18px; font-style: italic; margin: 0 0 12px; }
#end-total { background: #2a2238; color: #fff; border-radius: 18px; padding: 12px; }
#end-total .sum { font-size: clamp(36px, 9vw, 56px); font-weight: 900; color: var(--yellow); line-height: 1.1; }
#end-rank { font-weight: 800; color: var(--accent); font-size: 18px; }
#end-stats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
#end-stats span { background: #efe5d6; padding: 4px 10px; border-radius: 99px; }
#end-stats span.best { background: var(--yellow); color: var(--ink); font-weight: 800; }
#end-list { list-style: none; padding: 0; margin: 0; text-align: left; }
#end-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 4px; border-bottom: 1px dashed #e2d6c4; font-size: 15px; opacity: 0; animation: slin .35s forwards; }
#end-list li b { white-space: nowrap; color: var(--accent2); }
@keyframes slin { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
#end-quest { margin: 12px 0; padding: 10px; border-radius: 14px; font-weight: 600; }
#end-quest.ok { background: #d9f7e8; }
#end-quest.fail { background: #f3eadd; color: var(--muted); }
#submit-box { display: flex; gap: 8px; margin-top: 8px; }
#submit-result { min-height: 22px; margin: 8px 0; font-weight: 700; }
.end-buttons { margin-top: 8px; }

/* рейтинг */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs button { font-family: inherit; font-weight: 700; border: 0; padding: 8px 12px; border-radius: 99px; background: #efe5d6; cursor: pointer; color: var(--ink); }
.tabs button.on { background: var(--accent); color: #fff; }
#board-note { font-size: 13px; color: var(--muted); min-height: 18px; margin-bottom: 6px; }
#board-list { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: r; }
#board-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; padding: 8px 6px; border-bottom: 1px dashed #e2d6c4; }
#board-list li::before { counter-increment: r; content: counter(r); font-weight: 900; font-size: 18px; color: var(--muted); text-align: center; }
#board-list li:nth-child(1)::before { content: '🥇'; }
#board-list li:nth-child(2)::before { content: '🥈'; }
#board-list li:nth-child(3)::before { content: '🥉'; }
#board-list li.me { background: #fff3c4; border-radius: 10px; }
#board-list .who small { display: block; color: var(--muted); font-size: 12px; }
#board-list .pts { font-weight: 900; color: var(--accent2); white-space: nowrap; }
#board-list .empty { display: block; text-align: center; color: var(--muted); }
#board-list .empty::before { content: none; }

#rotate-hint {
  display: none; position: fixed; left: 50%; bottom: calc(16px + var(--sab)); transform: translateX(-50%); z-index: 30;
  background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 13px; width: max-content; max-width: 90vw; text-align: center;
}
#loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 22px; z-index: 40; background: var(--bg); }

/* ---------- Адаптив ---------- */
@media (max-width: 720px), (max-height: 520px) {
  #quest { width: 220px; font-size: 12px; padding: 8px 10px; }
  #timer { font-size: 32px; min-width: 72px; padding: 4px 12px; }
  .timer-bar { width: 72px; }
  #score { font-size: 22px; }
  .hud-score { min-width: 120px; padding: 6px 10px 8px; }
  #paw { top: calc(96px + var(--sat)); }
  .ftext span { font-size: 16px; }
  .ftext.big span { font-size: 22px; }
}
@media (max-width: 560px) {
  #animals { gap: 6px; }
  .acard { padding: 8px 4px; }
  .acard canvas { width: 54px; height: 54px; }
  .acard p { display: none; }
  .help-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px 16px; border-radius: 22px; }
  /* портрет: квест уходит под счёт */
  #quest { left: calc(12px + var(--sal)); right: auto; top: calc(150px + var(--sat)); width: min(250px, 62vw); }
  #paw { top: calc(100px + var(--sat)); }
  .hud-timer { left: auto; right: calc(12px + var(--sar)); transform: none; }
  body.touch #btn-pause { left: auto; right: calc(12px + var(--sar)); transform: none; top: calc(80px + var(--sat)); }
  #toast { top: calc(230px + var(--sat)); font-size: 14px; }
}
@media (max-height: 520px) {
  #quest { width: 240px; }
  .tbtns { transform: scale(.85); transform-origin: right bottom; }
  body.touch #context { bottom: calc(14px + var(--sab)); left: 40%; }
  body.touch #hint { bottom: calc(56px + var(--sab)); left: 40%; width: 60%; }
}
@media (orientation: portrait) and (pointer: coarse) {
  body.playing #rotate-hint { display: block; animation: fadeout 5s forwards; }
}
@keyframes fadeout { 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.action-note { background: #fff3e8; border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.45; margin: 12px 0 0; }
#paw, #context, #keys-legend, #btn-pause { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#paw, #context { background: var(--glass); border: 1px solid rgba(255,255,255,.12); }
#joy-base.rest, #joy-knob.rest { opacity: .45; transition: opacity .2s, transform .15s; }
#joy-base.rest::after { content: 'бег'; position: absolute; left: 0; right: 0; top: -22px; text-align: center; color: #fff; font-weight: 800; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
#rate-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
#rate-note:empty { display: none; }

/* ---------- SEO-блоки ---------- */
.logo-sub { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.panel .h3 { font-size: 1.17em; margin: 14px 0 8px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.about { margin-top: 16px; border-top: 2px dashed #eadfce; padding-top: 10px; }
.about summary { cursor: pointer; font-weight: 800; color: var(--muted); list-style: none; padding: 6px 0; }
.about summary::-webkit-details-marker { display: none; }
.about summary::before { content: '＋ '; color: var(--accent); }
.about[open] summary::before { content: '－ '; }
.about article { font-size: 14px; line-height: 1.55; color: var(--ink); }
.about h2 { font-size: 18px; margin: 8px 0; }
.about h3 { font-size: 15px; margin: 12px 0 6px; }
.about ul { padding-left: 18px; margin: 0; }
.about li { margin-bottom: 4px; }
.faq dt { font-weight: 800; margin-top: 10px; }
.faq dd { margin: 2px 0 0; color: var(--muted); }
.noscript { position: fixed; left: 50%; top: 60%; transform: translateX(-50%); z-index: 50; color: #fff; font-weight: 700; text-align: center; }

/* ---------- Полноэкранный режим ---------- */
#btn-fs {
  position: absolute; right: calc(64px + var(--sar)); bottom: calc(12px + var(--sab)); pointer-events: auto;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--glass); color: #fff; font-size: 20px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
body.touch #btn-fs { right: auto; bottom: auto; left: calc(50% - 46px); top: calc(96px + var(--sat)); width: 36px; height: 36px; font-size: 16px; }
body.touch #btn-pause { left: calc(50% + 10px); transform: none; }
@media (max-width: 560px) {
  body.touch #btn-fs { left: auto; right: calc(56px + var(--sar)); top: calc(80px + var(--sat)); }
}
#ios-note { font-size: 13px; background: #fff3c4; border-radius: 12px; padding: 8px 12px; margin-top: 10px; }
