/* Шрифты лежат рядом — ничего не грузим с Google */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.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: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/playfair-display-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/playfair-display-latin-wght-normal.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: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(fonts/playfair-display-cyrillic-wght-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(fonts/playfair-display-latin-wght-italic.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; }

/* Палитра и шрифты — как у страницы-барабана ../slot */
:root {
  --bg: #1a110c;
  --bg-2: #24170f;
  --wood: #6b3f24;
  --wood-hi: #8a5532;
  --wood-lo: #3e2414;
  --brass: #e0b45c;
  --brass-lo: #9c7428;
  --cream: #f6ecd9;
  --cream-2: #eadbbf;
  --ink: #2a1a10;
  --ink-soft: #7a6450;
  --red: #d8412f;
  --red-lo: #9e2a1c;
  --text: #f6ecd9;
  --text-soft: #b89f84;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --st: env(safe-area-inset-top, 0px);
  --sr: env(safe-area-inset-right, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --sl: env(safe-area-inset-left, 0px);
  --cam-op: .55;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 700px at 50% 35%, #3a2416 0%, var(--bg) 60%), var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ---------- сцена ---------- */
#bg, #cam, #game { position: fixed; inset: 0; width: 100%; height: 100%; }
#bg { z-index: 0; }
#cam { z-index: 1; object-fit: cover; transform: scaleX(-1); opacity: var(--cam-op); pointer-events: none; }
#game { z-index: 2; touch-action: none; cursor: crosshair; }
/* окошко с камерой в углу: видно, как человек натягивает лук */
body.cam-pip #cam {
  inset: auto; left: calc(14px + var(--sl)); bottom: calc(14px + var(--sb));
  width: min(24vw, 320px); height: auto; aspect-ratio: 4 / 3; opacity: 1;
  border-radius: 16px; box-shadow: 0 0 0 2px var(--brass-lo), 0 18px 40px -12px #000;
}
body.cam-pip.in-menu #cam { opacity: 0; }
@media (max-height: 560px) { body.cam-pip #cam { width: min(22vw, 200px); } }
body.in-menu #game { pointer-events: none; }

/* ---------- кнопки ---------- */
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid #ffffff1f;
  background: #1a110cb8; display: grid; place-items: center; font-size: 18px; flex: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s, transform .08s;
}
.icon-btn:hover { background: #2a1a10d9; }
.icon-btn:active { transform: scale(.94); }
.icon-btn.on { border-color: var(--brass); background: #e0b45c33; }
.btn {
  height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid #ffffff26; background: #ffffff0f;
  font-weight: 600; white-space: nowrap; transition: filter .15s, transform .08s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brass); color: var(--ink); border-color: transparent; box-shadow: 0 4px 0 var(--brass-lo); }
.btn.small { height: 38px; padding: 0 14px; font-size: 14px; }
.play {
  min-width: 220px; height: 58px; padding: 0 30px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, #ef5a45, var(--red) 55%, var(--red-lo));
  color: #fff; font-weight: 700; font-size: 19px; letter-spacing: .02em;
  box-shadow: 0 6px 0 #6d1c12, 0 14px 30px -8px #d8412f99, inset 0 1px 0 #ffffff55;
  transition: transform .08s, box-shadow .08s;
}
.play:active { transform: translateY(4px); box-shadow: 0 2px 0 #6d1c12, 0 8px 20px -8px #d8412f99, inset 0 1px 0 #ffffff55; }
.play:disabled { opacity: .6; cursor: default; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; z-index: 5; top: calc(10px + var(--st)); left: calc(12px + var(--sl)); right: calc(12px + var(--sr));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 10px; pointer-events: none;
}
.hud > * { pointer-events: auto; }
.pill {
  background: #1a110cc4; border: 1px solid #e0b45c3d; border-radius: 16px; padding: 8px 14px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 10px 30px -14px #000;
}
.hud-left { justify-self: start; min-width: 150px; }
.hud-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.hud-name { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.2; }
.ammo { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; max-width: 170px; }
.ammo i { width: 5px; height: 16px; border-radius: 3px; background: var(--brass); box-shadow: 0 0 6px #e0b45c66; transition: background .2s, box-shadow .2s; }
.ammo i.used { background: #ffffff21; box-shadow: none; }
.ammo.small i { width: 4px; height: 11px; }
.hud-center { text-align: center; min-width: 120px; }
.hud-score { font-family: var(--serif); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.hud-score.bump { animation: bump .35s ease-out; }
@keyframes bump { 30% { transform: scale(1.25); color: #ffe39a; } }
.hud-sub { font-size: 12px; color: var(--text-soft); margin-top: 4px; white-space: nowrap; }
.hud-right { justify-self: end; display: flex; gap: 8px; align-items: flex-start; }
.hud-extra { font-weight: 700; font-size: 15px; padding: 10px 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.hint-banner {
  position: fixed; z-index: 4; left: 50%; bottom: calc(16px + var(--sb)); transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 10px 20px; border-radius: 999px;
  background: #1a110cd6; border: 1px solid #e0b45c4d; color: var(--cream);
  font-weight: 600; font-size: 16px; text-align: center; pointer-events: none;
  box-shadow: 0 10px 30px -10px #000; transition: opacity .2s;
}
.hint-banner.hot { border-color: var(--red); color: #ffe39a; }

/* ---------- экраны ---------- */
.screen { position: fixed; inset: 0; z-index: 10; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#start {
  background: radial-gradient(1200px 700px at 50% 35%, #3a2416ee 0%, #1a110cf2 60%), #1a110ce8;
  padding: 0 calc(16px + var(--sr)) calc(24px + var(--sb)) calc(16px + var(--sl));
}
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: calc(16px + var(--st)) 0 0;
}
.brand { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brass); }
.icons { display: flex; gap: 8px; }

.start-grid {
  max-width: 1120px; margin: 0 auto; padding: 20px 0 8px;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; align-items: center;
  min-height: calc(100% - 80px);
}
.kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
h1 {
  font-family: var(--serif); font-weight: 800; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02;
  margin: 10px 0 12px; letter-spacing: -.01em;
}
h1 em { font-style: italic; font-weight: 600; color: var(--brass); }
.sub { color: var(--text-soft); margin: 0 0 22px; font-size: 16px; line-height: 1.5; max-width: 520px; }

.howto { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.howto .step {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 14px;
  background: #ffffff08; border: 1px solid #ffffff14; font-size: 13px; line-height: 1.25; color: var(--cream-2);
  transition: border-color .3s, background .3s;
}
.howto .step.active { border-color: #e0b45c88; background: #e0b45c17; }
.howto .ic { font-size: 22px; line-height: 1; display: inline-block; }
.howto .step.active .ic { animation: hop 1.2s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-4px) scale(1.12); } }
.privacy { margin: 14px 0 0; font-size: 13px; color: var(--text-soft); }

/* деревянная панель — как корпус автомата на ../slot */
.panel {
  position: relative; border-radius: 28px; padding: 18px 18px 20px;
  background:
    repeating-linear-gradient(92deg, #ffffff06 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--wood-hi), var(--wood) 40%, var(--wood-lo));
  box-shadow:
    inset 0 2px 0 #ffffff26, inset 0 -6px 12px #0006,
    0 30px 60px -20px #000c, 0 0 0 3px var(--brass-lo), 0 0 0 5px #0008;
}
.marquee {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #2b1a10, #1b100a);
  border-radius: 14px; padding: 9px 14px; margin-bottom: 12px;
  box-shadow: inset 0 2px 8px #000a, 0 1px 0 #ffffff1a;
}
.marquee span {
  font-family: var(--serif); font-weight: 800; letter-spacing: .08em; color: var(--brass);
  font-size: 17px; text-transform: uppercase; text-shadow: 0 0 12px #e0b45c66;
}
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.tab {
  position: relative; height: 44px; border-radius: 12px; border: 1px solid #0006; font-weight: 700; font-size: 15px;
  background: linear-gradient(180deg, #2b1a10, #1f130b); color: var(--text-soft);
  box-shadow: inset 0 1px 0 #ffffff12;
}
.tab sup { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); margin-left: 3px; font-weight: 600; }
.tab.active { color: var(--ink); background: linear-gradient(180deg, #f3cf7c, var(--brass)); border-color: #0005; }
.tab.active sup { color: var(--red-lo); }

.window {
  border-radius: 16px; padding: 6px; min-height: 220px;
  background: linear-gradient(180deg, var(--cream-2), var(--cream) 20%, var(--cream) 80%, var(--cream-2));
  box-shadow: inset 0 6px 14px #0000003d, inset 0 -6px 14px #0000003d, 0 0 0 4px #1b100a, 0 0 0 6px var(--brass-lo);
  color: var(--ink);
}
.levels { display: flex; flex-direction: column; gap: 2px; }
.lvl {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 7px 10px; border-radius: 12px; color: var(--ink);
  transition: background .15s;
}
.lvl:hover:not(:disabled) { background: #2a1a100d; }
.lvl.sel { background: #d8412f1a; box-shadow: inset 0 0 0 2px var(--red); }
.lvl:disabled { cursor: default; opacity: .5; }
.lvl .num {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 800; font-size: 16px; color: var(--cream);
  background: radial-gradient(circle at 35% 30%, #8a5532, var(--wood-lo));
  box-shadow: inset 0 -2px 4px #0006;
}
.lvl.sel .num { background: radial-gradient(circle at 35% 30%, #ff8a78, var(--red) 45%, var(--red-lo)); }
.lvl .txt { flex: 1; min-width: 0; }
.lvl .n { display: block; font-weight: 700; font-size: 15px; }
.lvl .d { display: block; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvl .best { font-size: 12px; font-weight: 700; color: var(--brass-lo); white-space: nowrap; text-align: right; }
.lvl .best small { display: block; font-weight: 500; color: var(--ink-soft); }
.mode-info { padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.mode-info h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; }
.mode-info p { margin: 0 0 8px; }
.mode-info .best { font-weight: 700; color: var(--red-lo); }
.mode-info .gest { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; }
.mode-info .gest span:first-child { font-size: 22px; line-height: 1; }

.cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.cta .play { height: 62px; font-size: 20px; padding: 0 34px; }
.cta .btn { height: 52px; background: #ffffff0d; border-color: #ffffff30; }

/* ---------- оверлеи ---------- */
.overlay { display: grid; place-items: center; padding: 16px; background: #120b07d4; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 20; }
.card {
  width: min(520px, 100%); padding: 26px 22px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, #2e1d12, #22150d); border: 1px solid #e0b45c44;
  box-shadow: 0 20px 50px -20px #000; margin: auto;
}
.card h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 34px); margin: 6px 0 10px; line-height: 1.1; }
.card p { color: var(--text-soft); line-height: 1.5; margin: 0 auto 6px; max-width: 440px; }
.card .muted { font-size: 13px; margin-top: 12px; }
.lbl { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.big-emoji { font-size: 54px; line-height: 1; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.actions.col { flex-direction: column; align-items: stretch; max-width: 280px; margin-left: auto; margin-right: auto; }
.spinner { font-size: 44px; animation: spin 1.4s cubic-bezier(.5, 0, .5, 1) infinite; display: inline-block; }
@keyframes spin { 50% { transform: rotate(-25deg) translateX(-6px); } }
.load-row { font-size: 15px; margin: 6px 0; color: var(--cream-2); }
.bar { height: 8px; border-radius: 99px; background: #ffffff14; overflow: hidden; margin: 14px auto 0; max-width: 360px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brass-lo), var(--brass)); transition: width .2s; }

.result .res-score { font-family: var(--serif); font-weight: 800; font-size: 72px; line-height: 1; margin: 8px 0 2px; color: #ffe39a; text-shadow: 0 0 30px #e0b45c55; }
.result .res-score small { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text-soft); margin-left: 8px; }
.res-badge { display: inline-block; margin: 6px 0; padding: 4px 12px; border-radius: 99px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; animation: bump .6s ease-out 2; }
.res-note { font-size: 15px; }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.res-stats div { background: #ffffff0a; border-radius: 12px; padding: 10px 6px; }
.res-stats b { display: block; font-family: var(--serif); font-size: 22px; color: var(--cream); }
.res-stats span { font-size: 12px; color: var(--text-soft); }

.hands-lost { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: #120b0799; pointer-events: none; }
.hl-card { text-align: center; padding: 22px 28px; border-radius: 22px; background: #1a110ce0; border: 1px solid #e0b45c55; max-width: 90%; }
.hl-emoji { font-size: 58px; animation: wave 1.2s ease-in-out infinite; display: inline-block; }
.hl-title { font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 4.5vw, 40px); margin-top: 6px; }
.hl-sub { color: var(--text-soft); margin-top: 6px; }

/* ---------- настройки ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%); z-index: 31;
  background: var(--bg-2); border-left: 1px solid #ffffff14; transform: translateX(102%); transition: transform .28s ease;
  display: flex; flex-direction: column; padding-top: var(--st); padding-right: var(--sr);
}
.drawer.open { transform: none; }
.drawer-bg { position: fixed; inset: 0; background: #0009; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30; }
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px; }
.drawer h3 { margin: 0; font-family: var(--serif); font-size: 24px; }
.set-list { overflow: auto; padding: 4px 18px calc(18px + var(--sb)); display: flex; flex-direction: column; gap: 16px; }
.set { display: flex; flex-direction: column; gap: 8px; }
.set.row { flex-direction: row; align-items: center; justify-content: space-between; }
.set-t { font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; }
.set-t b { color: var(--brass); font-variant-numeric: tabular-nums; }
.set-d { font-size: 12px; color: var(--text-soft); margin: 0; }
.set.dim { opacity: .45; }
input[type="range"] { width: 100%; accent-color: var(--brass); height: 28px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg button { height: 40px; border-radius: 10px; border: 1px solid #ffffff22; background: #ffffff0a; font-size: 13px; font-weight: 600; }
.seg button.on { background: var(--brass); color: var(--ink); border-color: transparent; }
.switch { width: 52px; height: 30px; border-radius: 99px; border: 0; background: #ffffff26; position: relative; padding: 0; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--brass); }
.switch[aria-checked="true"] i { transform: translateX(22px); }
.set .btn.small + .btn.small { margin-top: 0; }
.set:has(.btn.small) { flex-direction: row; flex-wrap: wrap; }

/* ---------- прочее ---------- */
.rotate {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center; background: #1a110cf5;
}
.rot-emoji { font-size: 64px; animation: rot 2s ease-in-out infinite; }
@keyframes rot { 0%, 20% { transform: rotate(0); } 50%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
.rot-t { font-family: var(--serif); font-size: 26px; font-weight: 800; }
.rot-d { color: var(--text-soft); max-width: 300px; }
.toast {
  position: fixed; z-index: 50; left: 50%; top: calc(14px + var(--st)); transform: translate(-50%, -140%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--cream); color: var(--ink);
  font-weight: 600; box-shadow: 0 14px 40px -10px #000; pointer-events: none;
  opacity: 0; visibility: hidden; transition: transform .3s cubic-bezier(.2, 1.3, .4, 1), opacity .2s, visibility 0s .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .3s cubic-bezier(.2, 1.3, .4, 1), opacity .2s; }
.fatal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: var(--bg); }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .start-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-height: 560px) and (min-width: 560px) {
  /* телефон горизонтально: две колонки, всё компактнее */
  .top { padding-top: calc(8px + var(--st)); }
  .brand { font-size: 16px; }
  .icon-btn { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
  .start-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding-top: 6px; align-items: start; }
  .kicker { font-size: 10px; }
  h1 { font-size: clamp(26px, 4.6vw, 38px); margin: 6px 0 6px; }
  .sub { display: none; }
  .cta .play { height: 48px; font-size: 16px; padding: 0 20px; min-width: 0; }
  .cta .btn { height: 44px; font-size: 14px; }
  .howto { margin-top: 10px; gap: 6px; }
  .howto .step { padding: 5px 10px 5px 8px; font-size: 11px; }
  .howto .ic { font-size: 17px; }
  .privacy { margin-top: 8px; font-size: 11px; }

  .panel { padding: 10px 10px 12px; border-radius: 20px; }
  .marquee { display: none; }
  .tabs { margin-bottom: 8px; }
  .tab { height: 36px; font-size: 13px; }
  .window { min-height: 0; padding: 3px; }
  .lvl { padding: 3px 8px; gap: 8px; }
  .lvl .num { width: 24px; height: 24px; font-size: 13px; }
  .lvl .n { font-size: 13px; }
  .lvl .d { display: none; }
  .mode-info { padding: 8px 10px; font-size: 12px; }
  .mode-info h4 { font-size: 17px; }

  .hud-name { font-size: 15px; }
  .hud-score { font-size: 26px; }
  .pill { padding: 6px 10px; border-radius: 12px; }
  .hint-banner { font-size: 14px; padding: 8px 14px; bottom: calc(8px + var(--sb)); }
  .result .res-score { font-size: 52px; }
  .card { padding: 16px 18px; }
  .actions { margin-top: 12px; }
}
@media (max-width: 560px) {
  h1 { font-size: 38px; }
  .hud { grid-template-columns: 1fr auto; }
  .hud-center { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .hud-right .icon-btn { width: 36px; height: 36px; }
  .res-stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .howto .ic, .hl-emoji, .spinner, .rot-emoji { animation: none; }
}
