/* Santa's Christmas Dash. Everything is sized in rem; the root font size is set from the window's
   shape in src/main.js. Colours: berry red, pine green, gold, snow white, on a night-blue ink. */
:root {
  --ink: #2a1f3d;
  --red: #d8323c;
  --red-dark: #8f1824;
  --green: #22a055;
  --green-dark: #136b37;
  --gold: #ffcf3a;
  --gold-dark: #c08a00;
  --snow: #fffaf0;
  --night: #16244f;
  --gift: url(img/present.webp);
  --heart: url(img/heart.webp);
  --cookie: url(img/cookie.webp);
  --house: url(img/house.webp);
  --star: url(img/star.webp);
  --sled: url(img/sled.webp);
  --moon: url(img/moon.webp);
  --cane: url(img/cane.webp);
  --drag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h18M3 12l4-4M3 12l4 4M21 12l-4-4M21 12l-4 4' fill='none' stroke='%232a1f3d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23d8323c' stroke='%232a1f3d' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* M PLUS Rounded 1c (SIL Open Font License, fonts/MPlusRounded-LICENSE.txt): extra bold 800 for
   text, black 900 for headings. */
/* Latin, plus the extended Latin cut for Turkish letters (İ, Ğ, Ş...): each covers its own range. */
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 800; font-display: swap; src: url(fonts/MPlusRounded-800-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 800; font-display: swap; src: url(fonts/MPlusRounded-800-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 900; font-display: swap; src: url(fonts/MPlusRounded-900-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 900; font-display: swap; src: url(fonts/MPlusRounded-900-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #1b2550;
  font-family: "M PLUS Rounded 1c", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
html { font-size: 16px; }

#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }

h1, h2, button, .logo, .stat b, #banner, #resTitle, #homes, #combo, .float {
  font-family: "M PLUS Rounded 1c", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
}

i.gift, i.heart, i.cookie, i.house, i.star, i.sled, i.moon, i.cane, i.drag { display: inline-block; width: 1.2em; height: 1.2em; background: var(--gift) center / contain no-repeat; vertical-align: -0.22em; flex: none; }
i.heart { background-image: var(--heart); }
i.cookie { background-image: var(--cookie); }
i.house { background-image: var(--house); }
i.star { background-image: var(--star); }
i.sled { background-image: var(--sled); }
i.moon { background-image: var(--moon); }
i.cane { background-image: var(--cane); }
i.drag { background-image: var(--drag); }

.card {
  position: relative;
  background: var(--snow);
  border-radius: 1rem;
  border: 0.16rem solid #fff;
  box-shadow: 0 0.25rem 0 #b9c6dd, 0 0.5rem 1.2rem rgba(10, 10, 40, 0.4);
}
/* A candy-cane stripe along the top of every card. */
.card::before {
  content: "";
  position: absolute;
  left: 0.6rem; right: 0.6rem; top: -0.16rem;
  height: 0.32rem;
  border-radius: 0 0 0.3rem 0.3rem;
  background: repeating-linear-gradient(-45deg, var(--red) 0 0.4rem, #fff 0.4rem 0.8rem);
  pointer-events: none;
}

/* ---- Buttons ---- */
button {
  border: none;
  cursor: pointer;
  color: var(--ink);
  background: linear-gradient(#ffffff, #e6ecf6);
  box-shadow: 0 0.2rem 0 #a9b6cf, 0 0.3rem 0.6rem rgba(10, 10, 40, 0.3);
  border-radius: 999px;
  padding: 0 1.1rem;
  height: 2.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.08s;
}
button:active { transform: translateY(0.12rem); box-shadow: 0 0.08rem 0 #a9b6cf; }
button:disabled { opacity: 0.45; pointer-events: none; }
button.big { height: 3.3rem; font-size: 1.35rem; padding: 0 1.8rem; }
button.hot {
  background: linear-gradient(#ff7a7f, var(--red) 55%, #b31f2b);
  color: #fff;
  text-shadow: 0 0.08rem 0 rgba(80, 0, 10, 0.5);
  box-shadow: 0 0.25rem 0 var(--red-dark), 0 0.4rem 0.8rem rgba(10, 10, 40, 0.35);
}
button.hot:active { box-shadow: 0 0.08rem 0 var(--red-dark); }
button.round { width: 2.5rem; padding: 0; font-size: 1.4rem; line-height: 1; }
button.small.round { width: 2.2rem; height: 2.2rem; flex: none; }
/* Rewarded ads: always marked with "AD". */
button.ad {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  background: linear-gradient(#7ee08f, var(--green));
  color: #fff;
  text-shadow: 0 0.06rem 0 rgba(0, 60, 20, 0.5);
  box-shadow: 0 0.2rem 0 var(--green-dark), 0 0.3rem 0.6rem rgba(10, 10, 40, 0.3);
}
button.ad i { width: 1.1em; height: 1.1em; }
.shopBtn { display: inline-flex; align-items: center; gap: 0.35rem; }
.shopBtn i, .shopIcon i { width: 1.4rem; height: 1.4rem; }
.shopIcon i { display: block; margin: auto; }

/* Sound and pause buttons. */
#btnSound i, #btnMute i, #btnPause i { display: block; width: 1.1rem; height: 1.1rem; margin: auto; position: relative; }
#btnSound i::before, #btnMute i::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  clip-path: polygon(0 32%, 30% 32%, 62% 4%, 62% 96%, 30% 68%, 0 68%);
}
#btnSound i::after, #btnMute i::after {
  content: ""; position: absolute; right: -0.05rem; top: 22%; width: 0.32rem; height: 56%;
  border: 0.14rem solid var(--ink); border-left: none; border-radius: 0 1rem 1rem 0;
}
#btnSound.off i::after, #btnMute.off i::after {
  border: none; width: 0.16rem; height: 120%; top: -10%; right: 0.45rem; background: var(--red); transform: rotate(40deg); border-radius: 0.1rem;
}
#btnPause i::before, #btnPause i::after { content: ""; position: absolute; top: 8%; height: 84%; width: 30%; background: var(--ink); border-radius: 0.1rem; }
#btnPause i::before { left: 12%; }
#btnPause i::after { right: 12%; }
body.hostMute #btnSound, body.hostMute #btnMute { display: none; }

/* ---- Overlays ---- */
.overlay {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 1rem;
  text-align: center;
}
.overlay.solid { background: radial-gradient(circle at 50% 35%, rgba(42, 61, 120, 0.82), rgba(14, 22, 56, 0.92) 70%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; }
#loading.overlay.solid { background: radial-gradient(circle at 50% 35%, #2a3d78, var(--night) 70%); }
.sub { font-size: 0.9rem; opacity: 0.9; }
.panel { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; max-width: 24rem; width: 100%; }
.panel h2 { font-size: 1.7rem; color: var(--red); }

/* ---- Logo ---- */
.logo { display: flex; justify-content: center; }
/* The painted logo (art/logo/logo-c.png): as wide as fits, never taller than its share of the screen. */
.logo img { display: block; width: min(21rem, 88vw); height: auto; max-height: 42vh; object-fit: contain; filter: drop-shadow(0 0.3rem 0.5rem rgba(0, 0, 0, 0.35)); }
body.wide .logo img { width: min(24rem, 46vw); max-height: 62vh; }

#loadBar { width: 12rem; height: 0.8rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
#loadFill { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }

/* ---- Title screen ---- */
#menu { justify-content: space-between; padding: 2rem 1rem 1.6rem; pointer-events: none; }
#menu button, #menu .card { pointer-events: auto; }
#menuTop { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
#menuTop .sub { color: #fff; font-size: 0.95rem; max-width: 22rem; text-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.7); }
#menuBottom { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
#menuStats { display: flex; gap: 1.1rem; padding: 0.5rem 1.1rem; font-size: 1.1rem; }
#menuStats span { display: flex; align-items: center; gap: 0.35rem; }
#menuRow { display: flex; gap: 0.7rem; }
/* Encore, once open: a gold button under Play. */
button.encoreBtn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: linear-gradient(#fff3b0, var(--gold) 60%, #e9a812);
  box-shadow: 0 0.2rem 0 var(--gold-dark), 0 0.3rem 0.6rem rgba(10, 10, 40, 0.3);
}
button.encoreBtn i { width: 1.1em; height: 1.1em; }
#resLines .unlock { color: var(--red); }
body.wide #menu { flex-direction: row; align-items: center; justify-content: space-around; padding: 1rem 2rem; }

/* ---- How to play ---- */
#howList { display: flex; flex-direction: column; gap: 0.7rem; max-width: 24rem; text-align: left; }
#howList > div { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; }
#howList .pic { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 0.8rem; background: var(--snow); display: flex; align-items: center; justify-content: center; font-style: normal; }
#howList .pic i { font-size: 1.8rem; }
#howTitle, #pauseTitle { font-size: 1.8rem; }
#pauseRow { display: flex; gap: 0.7rem; }
#pauseNote { max-width: 18rem; }

/* ---- On the street ---- */
#hud {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.5rem 0.7rem;
  pointer-events: none;
}
#hud button, #hud .card { pointer-events: auto; }
#hudTop { width: 100%; max-width: 30rem; padding: 0.4rem 0.55rem 0.35rem; display: flex; flex-direction: column; gap: 0.3rem; }
body.wide #hud { align-items: flex-start; }
body.wide #hudTop { max-width: 22rem; }
body.wide #hint { align-self: center; }
#hudRow { display: flex; align-items: center; gap: 0.5rem; }
.stat { display: flex; align-items: center; gap: 0.25rem; font-size: 1.3rem; white-space: nowrap; }
.stat b { min-width: 1.4em; }
#sackBox.low b { color: var(--red); animation: blink 0.6s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
#hearts { flex: none; display: flex; gap: 0.1rem; }
#hearts i { width: 1.25rem; height: 1.25rem; }
#hearts i.lost { opacity: 0.22; filter: grayscale(1); }
#homeRow { display: flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; }
#homeRow i.house { width: 1.15rem; height: 1.15rem; }
#homes { white-space: nowrap; }
#trip { flex: 1; height: 0.45rem; border-radius: 1rem; background: #dbe3f0; overflow: hidden; min-width: 2rem; }
#tripFill { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }
#combo { flex: 1; min-width: 0; text-align: left; font-size: 1.3rem; color: var(--red); white-space: nowrap; }
#combo.big { animation: comboPop 0.3s; }
@keyframes comboPop { 50% { transform: scale(1.4); } }
#hint {
  padding: 0.35rem 0.9rem;
  border-radius: 1rem;
  background: rgba(20, 20, 50, 0.6);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  max-width: 100%;
}
#hint:empty { display: none; }
#hudMid { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-top: 0.5rem; min-height: 0; }
#hudMid #hint { align-self: center; }
#hudBottom { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
/* The steering pad (left): only a picture; the canvas underneath takes the touches. */
#steerPad {
  position: relative; flex: none;
  width: 10rem; height: 3.4rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.16);
  border: 0.15rem solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
#steerPad.on { background: rgba(255, 255, 255, 0.3); }
#steerPad .arrow { position: absolute; top: 50%; width: 0.9rem; height: 1.2rem; margin-top: -0.6rem; background: rgba(255, 255, 255, 0.85); }
#steerPad .arrow.l { left: 0.55rem; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
#steerPad .arrow.r { right: 0.55rem; clip-path: polygon(0 0, 100% 50%, 0 100%); }
#steerKnob {
  position: absolute; left: 50%; top: 50%;
  width: 2.7rem; height: 2.7rem; margin: -1.35rem 0 0 -1.35rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #dfe6f3);
  box-shadow: 0 0.2rem 0 #a9b6cf, 0 0.3rem 0.6rem rgba(10, 10, 40, 0.35);
}
/* The throw button (right). */
#btnThrow {
  width: 5.8rem; height: 5.8rem; padding: 0; flex: none;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
  background: radial-gradient(circle at 45% 35%, #ff8a8f, var(--red) 60%, #b31f2b);
  color: #fff;
  font-size: 0.9rem;
  text-shadow: 0 0.08rem 0 rgba(80, 0, 10, 0.5);
  box-shadow: 0 0.3rem 0 var(--red-dark), 0 0.5rem 1rem rgba(10, 10, 40, 0.4);
  border: 0.18rem solid #fff;
  touch-action: none;
}
#btnThrow i { width: 2.3rem; height: 2.3rem; }
#btnThrow:active { transform: translateY(0.15rem) scale(0.96); box-shadow: 0 0.1rem 0 var(--red-dark); }
#btnThrow.empty { filter: grayscale(0.85); opacity: 0.75; }
body.short #btnThrow { width: 4.8rem; height: 4.8rem; }
body.short #btnThrow i { width: 1.9rem; height: 1.9rem; }
body.short #steerPad { height: 3rem; }
#btnMore.pulse { animation: pulse 0.9s infinite; }
@keyframes pulse { 50% { transform: scale(1.07); } }

/* Words that pop up over the street ("PERFECT!", "+5"). */
#floats { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.float {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  font-size: 1.15rem;
  color: #fff;
  -webkit-text-stroke: 0.16em var(--ink);
  paint-order: stroke fill;
  will-change: transform, opacity;
}
.float.good { color: #a8ff9a; }
.float.perfect { color: var(--gold); font-size: 1.5rem; }
.float.bad { color: #b8c8ff; font-size: 1rem; }
.float.cane { color: #ffb0b8; font-size: 0.95rem; }
.float.oops { color: #ffb347; font-size: 1.2rem; }
.float.big { font-size: 1.8rem; color: #ff8a8a; }

#banner {
  position: fixed; left: 50%; top: 38%;
  transform: translate(-50%, -50%) rotate(-3deg);
  max-width: 92vw;
  padding: 0.5rem 1.4rem;
  border-radius: 1rem;
  background: var(--red);
  border: 0.18rem solid #fff;
  color: #fff;
  font-size: 1.8rem;
  text-align: center;
  box-shadow: 0 0.3rem 0 var(--red-dark), 0 0.6rem 1.2rem rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: pop 0.35s;
}
@keyframes pop { from { transform: translate(-50%, -50%) rotate(-3deg) scale(0.4); } }

/* ---- Out of hearts, results ---- */
#out, #results { background: rgba(10, 16, 40, 0.45); }
#out .sub { color: var(--ink); }
#resNight { color: var(--green-dark); margin-top: -0.4rem; }
#resLines { display: flex; flex-direction: column; gap: 0.25rem; width: 100%; font-size: 0.95rem; }
#resLines div { display: flex; justify-content: space-between; gap: 1rem; }
#resLines b { display: flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
#resLines .total { border-top: 0.1rem dashed #c9d3e6; padding-top: 0.3rem; font-size: 1.1rem; }
#resRow { display: flex; gap: 0.6rem; align-items: center; }
.stars { display: flex; gap: 0.3rem; justify-content: center; }
.stars s { display: block; width: 1.4rem; height: 1.4rem; background: var(--star) center / contain no-repeat; filter: grayscale(1) brightness(0.9); opacity: 0.4; }
.stars s.on { filter: none; opacity: 1; }
.stars.big s { width: 3rem; height: 3rem; }
.stars.big s:nth-child(2) { transform: translateY(-0.4rem) scale(1.15); }
.stars.big s.on { animation: starPop 0.4s backwards; }
.stars.big s.on:nth-child(2) { animation-delay: 0.15s; }
.stars.big s.on:nth-child(3) { animation-delay: 0.3s; }
@keyframes starPop { from { opacity: 0; scale: 2; } }

/* ---- Christmas is saved ---- */
#finale { background: rgba(10, 16, 40, 0.3); gap: 0.6rem; }
#finale .logo img { width: min(17rem, 70vw); max-height: 32vh; }
#finCard .sub { color: var(--ink); }
#finStats { display: flex; gap: 1.4rem; font-size: 1.4rem; }
#finStats span { display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
#finStats i { width: 1.5em; height: 1.5em; }
#finRow { display: flex; gap: 0.6rem; align-items: center; }
body.wide #finale { flex-direction: row; justify-content: center; gap: 2rem; }
body.wide #finale .logo img { width: min(20rem, 40vw); max-height: 60vh; }

/* ---- Upgrades ---- */
#shop { background: rgba(10, 16, 40, 0.55); z-index: 5; }
#shopCookies { display: flex; align-items: center; gap: 0.3rem; font-size: 1.3rem; margin-top: -0.3rem; }
#shopList { display: flex; flex-direction: column; gap: 0.45rem; width: 100%; }
.up { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.2rem 0.6rem; text-align: left; padding: 0.35rem 0.5rem; border-radius: 0.8rem; background: #eef2f9; }
.up .name { font-size: 0.95rem; }
.up > i { grid-column: 1; grid-row: 1 / 4; width: 2.3rem; height: 2.3rem; }
.up .name { grid-column: 2; }
.up .what { grid-column: 2; font-size: 0.72rem; opacity: 0.75; }
.up .pips { display: flex; gap: 0.15rem; grid-column: 2; }
.up .pips s { width: 0.75rem; height: 0.35rem; border-radius: 0.2rem; background: #c9d3e6; }
.up .pips s.on { background: var(--green); }
.up button { grid-column: 3; grid-row: 1 / 4; height: 2.3rem; padding: 0 0.8rem; display: flex; align-items: center; gap: 0.25rem; }
.up button.can { background: linear-gradient(#fff3b0, var(--gold) 60%, #e9a812); box-shadow: 0 0.2rem 0 var(--gold-dark), 0 0.3rem 0.6rem rgba(10, 10, 40, 0.3); }
.up button.shake { animation: shake 0.3s; }
@keyframes shake { 25% { transform: translateX(-0.2rem); } 75% { transform: translateX(0.2rem); } }

/* The pretend ad used only while developing. */
#adStandIn { z-index: 50; }
#adStandInBar { width: 14rem; height: 0.8rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
#adStandInFill { display: block; height: 100%; background: var(--gold); transform-origin: left; }

/* Short screens (a phone on its side, or very wide windows). */
body.short #menu { gap: 0.4rem; }
body.short #howList { gap: 0.35rem; }
body.short .overlay { gap: 0.55rem; }
body.short .panel { gap: 0.4rem; padding: 0.7rem 1rem; }
body.short .panel h2 { font-size: 1.35rem; }
body.short .stars.big s { width: 2rem; height: 2rem; }
body.short #shopList { gap: 0.25rem; }
body.short .up { padding: 0.2rem 0.5rem; }
body.short .up .what { display: none; }

/* First-night prompts: the hint grows, and the control it names pulses. */
#hint.big { font-size: 1.25rem; padding: 0.5rem 1.2rem; background: rgba(20, 20, 60, 0.78); animation: hintPop 0.35s; }
body.short #hint.big { font-size: 1.05rem; padding: 0.35rem 0.9rem; }
#hint.go { font-size: 1.8rem; padding: 0.6rem 1.6rem; }
body.short #hint.go { font-size: 1.4rem; }
@keyframes hintPop { 0% { transform: scale(0.7); opacity: 0; } 70% { transform: scale(1.08); } }
#btnThrow.pulse { animation: throwPulse 0.7s infinite; }
@keyframes throwPulse { 50% { transform: scale(1.12); filter: brightness(1.2) drop-shadow(0 0 0.7rem #ffd23a); } }
#steerPad.pulse { animation: padPulse 0.8s infinite; }
@keyframes padPulse { 50% { background: rgba(255, 210, 58, 0.35); border-color: #ffd23a; box-shadow: 0 0 1rem rgba(255, 210, 58, 0.7); } }
#steerPad.pulse #steerKnob { animation: knobNudge 1.2s ease-in-out infinite; }
@keyframes knobNudge { 25% { transform: translateX(-2.2rem); } 75% { transform: translateX(2.2rem); } }

/* On a computer (no touch screen) the game starts with keyboard help in place of the
   on-screen pad and throw button; the first touch brings those back (body.keys goes). */
#keysBar { display: none; align-self: flex-end; margin: 0 auto 0.4rem 0; padding: 0.4rem 1rem; border-radius: 1rem; background: rgba(20, 20, 60, 0.6); color: #fff; font-size: 1rem; white-space: nowrap; text-align: center; }
body.keys.keysHelp #keysBar { display: block; }
body.keys #steerPad { display: none; }
body.keys #btnThrow { visibility: hidden; }
/* The rewarded +10 presents button: small and quiet, so nobody taps it by mistake; it only
   lights up (green, pulsing) when the sack is empty and it is what the player needs. */
#btnMore:not(.pulse) { background: rgba(255, 255, 255, 0.2); box-shadow: none; text-shadow: none; border: 0.1rem solid rgba(255, 255, 255, 0.45); font-size: 0.75rem; padding: 0.25rem 0.6rem; height: auto; opacity: 0.85; }
