/* Layout: board dominates; a study panel sits beside it on desktop, below it on phones.
   Palette: Jerusalem limestone + tekhelet blue (the biblical blue dye). */
:root {
  --bg: #efeadf;          /* limestone */
  --surface: #f8f5ee;
  --line: #d8d0bf;
  --ink: #1d2433;
  --muted: #5d6576;
  --accent: #2c5490;      /* tekhelet */
  --accent-ink: #ffffff;
  --sq-light: #e9e1cd;
  --sq-dark: #7f95b3;
  --good: #2f7a4b;
  --bad: #b23a3a;
  --w0: #c9762c; --w1: #2c8a8a; --w2: #8d4fb0; --w3: #1f9e5a; --w4: #c43c5c; --w5: #b8860b; --w6: #7a4e2d; --w7: #d14fa3;
  --font-ui: 'IBM Plex Sans', 'IBM Plex Sans Hebrew', system-ui, sans-serif;
  --font-he: 'Frank Ruhl Libre', 'IBM Plex Sans Hebrew', 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141a26; --surface: #1c2433; --line: #2d3850; --ink: #e8e4da; --muted: #9aa3b5;
    --accent: #7ea3dc; --accent-ink: #0f1522; --sq-light: #c9c1ad; --sq-dark: #5d7598;
    --good: #6cc48d; --bad: #f08a80; --w0: #f0a35e; --w1: #5cc4c4; --w2: #c08ae0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141a26; --surface: #1c2433; --line: #2d3850; --ink: #e8e4da; --muted: #9aa3b5;
  --accent: #7ea3dc; --accent-ink: #0f1522; --sq-light: #c9c1ad; --sq-dark: #5d7598;
  --good: #6cc48d; --bad: #f08a80; --w0: #f0a35e; --w1: #5cc4c4; --w2: #c08ae0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; overscroll-behavior-y: none; }
body {
  background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font-ui);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 32px;
  -webkit-tap-highlight-color: transparent;
}
button, select, input, textarea { font: inherit; color: inherit; }
button {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 7px 12px; cursor: pointer;
}
button:hover { border-color: var(--accent); }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 8px; width: 100%; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 12px; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-he { font: 700 28px/1 var(--font-he); color: var(--accent); }
.brand-en { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.modes { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.modes button { border: 0; background: transparent; padding: 6px 12px; border-radius: 5px; }
.modes button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; max-width: 1080px; margin: 0 auto; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.board-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.opening-line { font-size: 13px; color: var(--muted); min-height: 1.45em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opening-line b { color: var(--ink); font-weight: 600; }
.board-row { display: flex; gap: 6px; align-items: stretch; }
.board-wrap {
  position: relative; flex: 0 1 auto; min-width: 0;
  width: min(100%, calc(100vh - 180px), 680px); aspect-ratio: 1;
}
@media (max-width: 860px) { .board-wrap { width: 100%; } }
#board { width: 100%; height: 100%; }
/* touches on the board move pieces, never the page (no scroll, zoom, text select or long-press menu) */
.board-wrap, .board-wrap * { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.board-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.board-tools button { font-size: 13px; padding: 5px 10px; }

/* board look */
cg-board {
  background-color: var(--sq-light);
  background-image: conic-gradient(var(--sq-dark) 0deg 90deg, var(--sq-light) 90deg 180deg, var(--sq-dark) 180deg 270deg, var(--sq-light) 270deg 360deg);
  background-size: 25% 25%;
  background-repeat: repeat;
  border-radius: 3px;
}
cg-board square.last-move { background-color: rgba(214, 170, 60, .42); }
cg-board square.selected { background-color: rgba(44, 84, 144, .45); }
cg-board square.move-dest { background: radial-gradient(rgba(29, 36, 51, .35) 19%, transparent 21%); }
cg-board square.oc.move-dest { background: radial-gradient(transparent 0%, transparent 79%, rgba(29, 36, 51, .35) 80%); }
cg-board square.check { background: radial-gradient(ellipse at center, rgba(220, 40, 40, .9) 0%, rgba(220, 40, 40, .5) 30%, transparent 70%); }
cg-wrap coords { font-family: var(--font-mono); font-size: 10px; }
cg-wrap coords.ranks { color: var(--sq-dark); }
.cg-wrap coords coord { color: #1d2433aa; }

/* evaluation bar */
.evalbar { width: 18px; border-radius: 3px; background: #2a2f3a; position: relative; overflow: hidden; flex: none; }
.evalfill { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: #f3f0e8; transition: height .4s ease; }
.evalbar.flipped .evalfill { bottom: auto; top: 0; }
#evaltext { position: absolute; left: 0; right: 0; bottom: 2px; font: 500 8px/1 var(--font-mono); text-align: center; color: #555; writing-mode: horizontal-tb; }

/* word chips on squares */
.chips { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.chip {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
  font: 600 clamp(11px, 2.2vw, 15px)/1.15 var(--font-ui); padding: 4px 8px; border-radius: 12px;
  border: 2px solid #fff; color: #fff; white-space: nowrap; max-width: 34%; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: pointer;
}
.chip.he { font-family: var(--font-he); font-size: clamp(14px, 2.8vw, 19px); }
.chip.c0 { background: var(--w0); }
.chip.c1 { background: var(--w1); }
.chip.c2 { background: var(--w2); }
.chip.c3 { background: var(--w3); }
.chip.c4 { background: var(--w4); }
.chip.c5 { background: var(--w5); }
.chip.c6 { background: var(--w6); }
.chip.c7 { background: var(--w7); }

/* promotion picker */
.promo { position: absolute; inset: 0; background: rgba(20, 26, 38, .55); z-index: 10; display: grid; place-items: center; }
.promo-box { display: flex; gap: 6px; background: var(--surface); padding: 8px; border-radius: 8px; }
.promo-box button { width: 64px; height: 64px; padding: 0; background-size: 80%; background-repeat: no-repeat; background-position: center; }

/* panel */
.panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mode-panel { display: flex; flex-direction: column; gap: 12px; }
h2 { margin: 0; font-size: 18px; text-wrap: balance; }
.sub { margin: -6px 0 0; color: var(--muted); font-size: 13.5px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { flex: 1; border: 0; border-radius: 0; font-size: 13.5px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.row { display: flex; gap: 6px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.card p { margin: 0; }
.card-k { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.note { color: var(--muted); font-size: 13.5px; }
.good { color: var(--good); font-weight: 600; }
.bad { color: var(--bad); font-weight: 600; }
.he { font-family: var(--font-he); font-size: 1.15em; }
.mnemonic { font-size: 13.5px; font-style: italic; color: var(--accent); }
.tally { font: 13px var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }

.prompt { text-align: center; padding: 14px 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.prompt-word { font: 700 44px/1.1 var(--font-he); color: var(--accent); min-height: 1.1em; }
.prompt-word.en { font: 600 30px/1.2 var(--font-ui); }
.prompt-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.import { font-size: 13.5px; }
.import summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.import[open] { display: flex; flex-direction: column; gap: 8px; }
.import p { margin: 6px 0 0; }

.status { font-weight: 600; min-height: 1.4em; }
.moves {
  list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: 2.4em 1fr 1fr; gap: 2px 8px;
  font: 14px/1.5 var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  max-height: 260px; overflow-y: auto; font-variant-numeric: tabular-nums;
}
.moves:empty { display: none; }
.moves li { display: contents; }
.moves .n { color: var(--muted); }
.moves .last { color: var(--accent); font-weight: 500; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 50; font-weight: 500;
  max-width: calc(100vw - 32px);
}
@media (prefers-reduced-motion: reduce) { .evalfill { transition: none; } }

/* prompt glued to the top of the board: the word you're translating */
.board-prompt {
  width: min(100%, calc(100vh - 330px), 680px); min-width: min(100%, 300px);
  text-align: center; padding: 8px 10px 9px; border-radius: 8px 8px 0 0; margin-bottom: -8px;
  background: var(--accent); color: var(--accent-ink);
}
@media (max-width: 860px) { .board-prompt { width: 100%; } }
.board-col:has(#bp:not([hidden])) .board-wrap { width: min(100%, calc(100vh - 330px), 680px); }
@media (max-width: 860px) { .board-col:has(#bp:not([hidden])) .board-wrap { width: 100%; } }
.board-col:has(#bp:not([hidden])) .board-row:has(.evalbar[hidden]) { margin-top: 0; }
.bp-k { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .85; }
.bp-word { font: 700 clamp(38px, 9vw, 58px)/1.15 var(--font-he); }
.bp-word.en { font: 600 clamp(24px, 6vw, 34px)/1.2 var(--font-ui); }
.bp-word.verse { font: 500 clamp(21px, 5vw, 27px)/1.5 var(--font-he); text-wrap: pretty; }
.bp-word.verse.en { font: 500 clamp(15px, 3.6vw, 18px)/1.45 var(--font-ui); }
.bp-word .vw { cursor: pointer; border-radius: 3px; }
.bp-word .vw.known { text-decoration: underline dotted rgba(255,255,255,.55); text-underline-offset: 6px; }
.bp-word .vw:hover, .bp-word .vw.on { background: rgba(255,255,255,.18); }
.bp-sub { font-size: 13.5px; min-height: 0; }
.bp-sub:empty, .bp-last:empty, .bp-k:empty { display: none; }
.bp-sub .he, .bp-last .he { font-size: 1.3em; }
.bp-sub .mn { font-style: italic; }
.bp-last { font-size: 12.5px; opacity: .85; border-top: 1px solid rgba(255,255,255,.25); margin-top: 6px; padding-top: 4px; }

/* answer buttons under the board */
.board-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px;
  width: min(100%, calc(100vh - 330px), 680px); min-width: min(100%, 300px); }
@media (max-width: 860px) { .board-options { width: 100%; } }
.board-options.verses { grid-template-columns: 1fr; }
.opt { text-align: left; font-size: 15px; padding: 10px 12px; border-width: 2px; min-height: 46px; }
.opt.he { font: 600 24px/1.3 var(--font-he); text-align: center; }
.board-options.verses .opt.he { font: 500 19px/1.5 var(--font-he); text-align: right; }
.board-options.quiz .opt:not(.he) { text-align: center; font-weight: 600; }
.opt .tag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font: 700 12px/1 var(--font-ui); margin-inline-end: 8px; vertical-align: 2px; }
.opt.c0 { border-color: var(--w0); } .opt.c0 .tag { background: var(--w0); }
.opt.c1 { border-color: var(--w1); } .opt.c1 .tag { background: var(--w1); }
.opt.c2 { border-color: var(--w2); } .opt.c2 .tag { background: var(--w2); }
.opt.c3 { border-color: var(--w3); } .opt.c3 .tag { background: var(--w3); }
.opt.c4 { border-color: var(--w4); } .opt.c4 .tag { background: var(--w4); }
.opt.c5 { border-color: var(--w5); } .opt.c5 .tag { background: var(--w5); }
.opt.c6 { border-color: var(--w6); } .opt.c6 .tag { background: var(--w6); }
.opt.c7 { border-color: var(--w7); } .opt.c7 .tag { background: var(--w7); }
.opt.right { background: color-mix(in srgb, var(--good) 22%, var(--surface)); border-color: var(--good); }
.opt.wrong { background: color-mix(in srgb, var(--bad) 18%, var(--surface)); border-color: var(--bad); }
.opt.next { grid-column: 1 / -1; background: var(--ink); color: var(--bg); text-align: center; font-weight: 600; }
.chip.tagchip { min-width: 30px; text-align: center; font-size: clamp(13px, 2.6vw, 17px); }

/* bot card */
.botcard { display: grid; grid-template-columns: 44px 1fr; gap: 4px 10px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13.5px; }
.botcard:empty { display: none; }
.bot-av { grid-row: span 3; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 20px/1 var(--font-he); }
.bot-name { font-weight: 600; font-size: 14.5px; }
.bot-name .elo { color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 12.5px; margin-inline-start: 6px; }
.bot-blurb { color: var(--muted); }
.bot-mood { color: var(--accent); font-style: italic; }
.seg-wrap { flex-wrap: wrap; }
.seg-wrap button { flex: 1 1 45%; }
@media (min-width: 861px) { .seg-wrap button { flex: 1 1 auto; } }
.board-options.quiz { grid-template-columns: 1fr 1fr; }
.cg-wrap coords.files { left: 0; width: 100%; }
.cg-wrap coords.files coord { text-align: left; padding-left: 3px; }

/* chips are placed in pixels by drawChips (pushed apart so they never overlap) */
.chip { max-width: 46%; }

/* more choices: two columns of buttons from 5 up */
.board-options.n5, .board-options.n6, .board-options.n7, .board-options.n8 { grid-template-columns: 1fr 1fr; }
.board-options.n5 .opt, .board-options.n6 .opt, .board-options.n7 .opt, .board-options.n8 .opt { min-height: 40px; padding: 7px 10px; }

/* interlinear verse */
.il { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; direction: rtl; padding-top: 4px; }
.ilw { display: inline-flex; flex-direction: column; align-items: center; padding: 2px 5px 3px; border-radius: 6px; cursor: pointer; min-width: 30px; }
.ilw b { font: 500 clamp(19px, 4.6vw, 24px)/1.25 var(--font-he); }
.ilw i { font: 400 11.5px/1.25 var(--font-ui); font-style: normal; opacity: .82; max-width: 110px; text-align: center; direction: ltr; }
.ilw.given i { opacity: .7; }
.ilw.todo b { opacity: .95; } .ilw.todo i { opacity: .5; }
.ilw.right i { color: #b9f0c8; opacity: 1; font-weight: 600; }
.ilw.wrong i { color: #ffc9c2; opacity: 1; font-weight: 600; }
.ilw.cur { background: rgba(255, 255, 255, .95); color: var(--accent); box-shadow: 0 0 0 2px #ffd36b; cursor: default; }
.ilw.cur i { opacity: 1; font-weight: 700; color: var(--ink); }
:root[data-theme="dark"] .ilw.cur { color: #1c2433; }
.ilw:hover:not(.cur) { background: rgba(255, 255, 255, .14); }

/* sliders */
.range { width: 100%; accent-color: var(--accent); margin: 2px 0 0; }
.ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -2px; }
.field .val { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }

/* "is thinking" pill after 5 seconds */
.thinking { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 8; pointer-events: none;
  background: rgba(20, 26, 38, .86); color: #fff; padding: 5px 12px; border-radius: 14px; font: 600 13px/1.3 var(--font-ui); white-space: nowrap; }
.thinking .secs { font: 500 12px var(--font-mono); opacity: .7; margin-inline-start: 4px; }
.thinking .dots::after { content: '…'; display: inline-block; animation: dots 1.2s steps(4, end) infinite; overflow: hidden; vertical-align: bottom; width: 1.1em; }
@keyframes dots { 0% { width: 0; } 100% { width: 1.1em; } }
@media (prefers-reduced-motion: reduce) { .thinking .dots::after { animation: none; } }

/* Earned Time clocks */
.clocks { display: flex; gap: 8px; width: min(100%, calc(100vh - 330px), 680px); min-width: min(100%, 300px); }
@media (max-width: 860px) { .clocks { width: 100%; } }
.clock { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; min-width: 0; }
.clock .who { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.clock .t { margin-inline-start: auto; font: 600 22px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; }
.clock.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.clock.on .t { color: var(--accent); }
.clock.low .t { color: var(--bad); }
.clock .delta { font: 700 14px var(--font-mono); opacity: 0; }
.clock .delta.gain { color: var(--good); animation: delta 1.4s ease-out; }
.clock .delta.loss { color: var(--bad); animation: delta 1.4s ease-out; }
@keyframes delta { 0% { opacity: 0; transform: translateY(4px); } 15% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .clock .delta.gain, .clock .delta.loss { animation: none; opacity: 1; } }
.board-prompt.idle .bp-word { opacity: .45; }

/* Parsing prompt */
.pz { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pz-word { font: 700 40px/1.2 var(--font-he); }
.pz-ctx { font: 400 17px/1.6 var(--font-he); opacity: .8; text-align: center; }
.pz-ctx mark { background: rgba(255,255,255,.22); color: inherit; border-radius: 3px; padding: 0 3px; font-weight: 700; }
.pz-root { font: 13px/1.4 var(--font-ui); opacity: .85; }
.pz-root .he { font-size: 16px; }
/* Earned Time: the strip keeps one height so the board never jumps mid-bullet */
.board-prompt.clockp .bp-k, .board-prompt.clockp .bp-word, .board-prompt.clockp .bp-sub, .board-prompt.clockp .bp-last {
  display: block !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-prompt.clockp .bp-k, .board-prompt.clockp .bp-sub, .board-prompt.clockp .bp-last { height: 1.5em; line-height: 1.5em; }
.board-prompt.clockp .bp-word { height: 1.3em; line-height: 1.3em; }
.board-prompt.clockp .bp-word.en { font-size: clamp(22px, 5.5vw, 30px); }
.board-prompt.clockp .bp-sub br, .board-prompt.clockp .bp-sub br ~ * { display: none; }
/* Earned Time on a computer: board a little smaller so clocks, word and answers fit on one screen */
@media (min-width: 861px) {
  .board-col:has(#clocks:not([hidden])) .board-wrap,
  .board-col:has(#clocks:not([hidden])) .board-prompt,
  .board-col:has(#clocks:not([hidden])) .clocks,
  .board-col:has(#clocks:not([hidden])) .board-options { width: min(100%, calc(100vh - 420px), 680px); min-width: 300px; }
}

/* ── rating chip, resign, bot card ── */
.rating-chip { display: flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 999px; margin-inline-start: auto; }
.rating-chip .rc-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rating-chip b { font: 600 15px/1 var(--font-mono); color: var(--accent); }
.board-tools .resign { margin-inline-start: auto; color: var(--muted); border-style: dashed; }
.board-tools .resign.sure { color: var(--bad); border-color: var(--bad); border-style: solid; }
.bot-av.long { font-size: 14px; }
.bot-name .gloss { color: var(--muted); font-weight: 400; font-style: italic; }
.bot-rec { color: var(--muted); font-size: 13px; }
.bot-rec .good { font-weight: 500; }

/* ── dialogs: after-game result and profile ── */
.dlg { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); padding: 0; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.dlg.wide { width: min(760px, calc(100vw - 16px)); padding: 0 16px 16px; }
.dlg::backdrop { background: rgb(10 14 22 / .55); }
.dlg[open] { animation: dlg-in .28s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .dlg[open] { animation: none; } }
.rs-head { padding: 20px 18px 16px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--line); }
.rs-head.win { background: var(--accent); color: var(--accent-ink); }
.rs-title { font: 700 30px/1.1 var(--font-he); }
.rs-sub { margin-top: 6px; font-size: 14px; opacity: .85; }
.rs-sub .he { font-family: var(--font-he); font-size: 1.15em; }
.rs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; padding: 14px 16px 4px; }
.dlg.wide .rs-stats { padding-inline: 0; }
.rs-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.rs-stat b { display: block; font: 600 22px/1.15 var(--font-mono); }
.rs-stat span { font-size: 12px; color: var(--muted); }
.rs-stat em { font-style: normal; font-weight: 600; }
.rs-stat em.good { color: var(--good); } .rs-stat em.bad { color: var(--bad); }
.rs-new, .rs-ach { display: flex; gap: 12px; align-items: center; margin: 10px 16px 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.rs-ach { border-color: #c9a227; }
.rs-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 16px/1 var(--font-he); }
.medal { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #c9a227; color: #fff; font-size: 18px; }
.mn { color: var(--muted); font-size: 12.5px; }
.rs-btns { display: flex; gap: 8px; padding: 16px; flex-wrap: wrap; }
.rs-btns button { flex: 1; padding: 9px 10px; }

.pf-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; background: var(--bg); padding: 14px 0 6px; }
.pf-top h2 { margin: 0; font: 700 22px/1.2 var(--font-he); }
.pf-x { border: 0; background: transparent; font-size: 18px; padding: 6px 10px; }
.dlg h3 { margin: 22px 0 8px; font-size: 15px; }
.pf-sub { margin: 14px 0 6px; font-weight: 600; font-size: 13.5px; }
.pf-chart { display: block; width: 100%; height: 110px; margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.pf-chart polyline { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pf-axis { display: flex; justify-content: space-between; font: 11px var(--font-mono); color: var(--muted); margin-top: 2px; }
.pf-tier { margin-bottom: 10px; }
.pf-tk { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pf-bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.pf-bot { display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border-radius: 8px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.pf-bot .pf-he { font: 700 19px/1.3 var(--font-he); opacity: .55; }
.pf-bot .pf-bn { font-size: 13px; font-weight: 600; }
.pf-bot .pf-be { font: 11px var(--font-mono); }
.pf-bot .pf-wb { font-size: 11px; font-weight: 600; color: var(--good); min-height: 1.2em; }
.pf-bot.done { border-style: solid; border-color: var(--good); background: var(--surface); color: var(--ink); }
.pf-bot.done .pf-he { opacity: 1; color: var(--accent); }
.pf-tough { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tough span { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 13px; }
.pf-tough .he { font: 600 16px var(--font-he); }
.pf-tough em { color: var(--bad); font-style: normal; font-size: 11.5px; }
.pf-bar { display: grid; grid-template-columns: 82px 1fr 40px 64px; gap: 8px; align-items: center; font-size: 13px; margin: 3px 0; }
.pf-bar div { height: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: var(--accent); }
.pf-bar b { font: 500 12px var(--font-mono); text-align: end; } .pf-bar em { font: 11px var(--font-mono); color: var(--muted); font-style: normal; }
.pf-achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.pf-ach { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.pf-ach .medal { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.pf-ach.got { border-style: solid; border-color: #c9a227; background: var(--surface); color: var(--ink); }
.pf-ach.got .medal { background: #c9a227; color: #fff; border-color: #c9a227; }
.pf-games { width: 100%; border-collapse: collapse; font-size: 13px; }
.pf-games td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.pf-games .num { text-align: end; font-family: var(--font-mono); }
.pf-games .bad { color: var(--bad); }
.pf-save { margin-top: 18px; }
.rs-hint { grid-column: 1 / -1; padding: 6px 10px; }

/* ── premoves (chessground's base stylesheet has none) ── */
cg-board square.current-premove { background-color: rgb(200 60 60 / .5); box-shadow: inset 0 0 0 3px rgb(200 60 60 / .9); }
cg-board square.premove-dest { background: radial-gradient(rgb(200 60 60 / .45) 20%, transparent 22%); }
cg-board square.premove-dest:hover { background: rgb(200 60 60 / .25); }
cg-board square.premove-dest.oc { background: radial-gradient(transparent 0%, transparent 78%, rgb(200 60 60 / .4) 80%); }

/* site footer (website copy only) */
.credits { max-width: 1080px; margin: 40px auto 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 14px; }
.credits a { color: var(--accent); }
.credits p { margin: 0 0 6px; }

/* ── pause, and the answer shown over the board after each word ── */
.flash { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(20, 26, 38, .42); animation: fl-in .14s ease-out; }
.fl-box { position: relative; overflow: hidden; background: var(--surface); color: var(--ink); border-radius: 10px; padding: 16px 26px 20px; text-align: center; max-width: 88%; box-shadow: 0 12px 34px rgba(0, 0, 0, .35); border-top: 6px solid var(--good); }
.flash.bad .fl-box { border-top-color: var(--bad); }
.fl-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--good); }
.flash.bad .fl-k { color: var(--bad); }
.fl-he { font: 700 clamp(38px, 9vw, 64px)/1.3 var(--font-he); margin: 2px 0; }
.fl-en { font-size: clamp(18px, 3.4vw, 24px); font-weight: 600; }
.fl-not, .fl-note { margin-top: 6px; color: var(--muted); font-size: 14px; }
.fl-not .he { font-family: var(--font-he); font-size: 1.15em; }
.fl-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: currentColor; opacity: .25; transform-origin: left; animation: fl-shrink var(--d, 1s) linear forwards; }
.board-wrap.is-paused .fl-bar { animation-play-state: paused; }
@keyframes fl-in { from { opacity: 0; } }
@keyframes fl-shrink { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }
.paused { position: absolute; inset: 0; z-index: 14; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.paused button { font-size: 18px; padding: 12px 22px; }
.board-tools #btn-pause[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ── board size (desktop): drag the board's bottom-right corner; double-click for automatic ── */
.board-resize { display: none; }
@media (min-width: 861px) {
  .board-resize { display: block; position: absolute; right: -9px; bottom: -9px; width: 22px; height: 22px; z-index: 9; padding: 0; border: 0; background: transparent; cursor: nwse-resize; }
  .board-resize::after { content: ''; position: absolute; inset: 4px; border-right: 3px solid var(--muted); border-bottom: 3px solid var(--muted); border-radius: 0 0 5px 0; opacity: .5; }
  .board-resize:hover::after, .board-resize:focus-visible::after, body.resizing .board-resize::after { opacity: 1; border-color: var(--accent); }
  body.sized .top, body.sized .layout, body.sized .credits { max-width: max(1080px, calc(var(--board) + 388px)); }
  body.sized .board-col .board-wrap, body.sized .board-col .board-prompt, body.sized .board-col .clocks,
  body.sized .board-col .board-options { width: min(var(--board), 100%) !important; }
  body.resizing, body.resizing * { cursor: nwse-resize !important; -webkit-user-select: none; user-select: none; }
}

/* ── the word banner keeps one height per game type, so the board never moves; text that doesn't fit is scaled down ── */
.board-prompt { height: var(--bph, 150px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.bp-in { width: 100%; flex: none; transform-origin: center center; }
.board-prompt[data-v="passages"] { --bph: 215px; }
.board-prompt[data-v="parse"] { --bph: 185px; }
.board-prompt.clockp { --bph: 150px; }
@media (max-width: 860px) {
  .board-prompt { --bph: 132px; }
  .board-prompt[data-v="passages"] { --bph: 200px; }
  .board-prompt[data-v="parse"] { --bph: 170px; }
  .board-prompt.clockp { --bph: 136px; }
}
.setup-note { margin: -4px 0 0; }
button.pf-bot { font: inherit; background: transparent; cursor: pointer; min-height: 0; }
button.pf-bot.done { background: var(--surface); }
button.pf-bot:hover, button.pf-bot:focus-visible { border-color: var(--accent); border-style: solid; color: var(--ink); }
button.pf-bot:hover .pf-he { opacity: 1; }

/* the answer popup never blocks the board: clicks reach the pieces (for premoves); touching the board fades it */
.flash, .flash * { pointer-events: none; }
.flash { transition: opacity .15s; }
.flash.peek { opacity: .18; }

/* ── game review ── */
.board-tools .review-btn, .rs-btns .rs-review { background: #81b64c; border-color: #6a9a3c; color: #fff; font-weight: 600; }
.pf-rev { font-size: 12px; padding: 2px 8px; }
.rv { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.rv::backdrop { background: var(--bg); }
.rv[open] { animation: rv-in .3s ease-out; }
@keyframes rv-in { from { opacity: 0; } } /* fade only: a zoom would make the board measure itself at the wrong size */
.rv-grid { display: grid; grid-template-columns: auto minmax(300px, 400px); grid-template-rows: auto 1fr; gap: 10px 22px; padding: 10px max(16px, env(safe-area-inset-left)) 20px; max-width: 1240px; margin: 0 auto; min-height: 100%; }
.rv-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.rv-top h2 { margin: 0; font-size: 19px; }
.rv-res { color: var(--muted); font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-x { font-size: 18px; padding: 4px 12px; }
.rv-boardcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rv-boardrow { display: flex; gap: 6px; }
.rv-boardwrap { position: relative; width: min(calc(100svh - 190px), calc(100vw - 480px), 720px); aspect-ratio: 1; flex: none; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.rv-board { width: 100%; height: 100%; }
.rv-name { display: flex; align-items: center; gap: 8px; font-size: 14px; height: 32px; flex: none; white-space: nowrap; }
.rv-name b { overflow: hidden; text-overflow: ellipsis; }
.rv-dot { width: 13px; height: 13px; border-radius: 3px; border: 1px solid var(--line); }
.rv-dot.w { background: #f4f1ea; } .rv-dot.b { background: #2b2b2b; }
.rv-acc { margin-left: auto; font: 600 16px var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; height: 28px; line-height: 26px; min-width: 132px; text-align: center; flex: none; }
.rv-acc small { font: 400 11px var(--font-ui); color: var(--muted); }
.rv-evalbar { position: relative; width: 22px; border-radius: 4px; overflow: hidden; background: #403d39; flex: none; }
.rv-evalfill { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: #f4f1ea; transition: height .6s cubic-bezier(.3,1.3,.5,1); }
.rv-evalbar.flipped .rv-evalfill { bottom: auto; top: 0; }
.rv-evaltxt { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font: 600 9px var(--font-mono); color: #403d39; writing-mode: vertical-rl; transform: rotate(180deg); }
.rv-evaltxt.dark { bottom: auto; top: 4px; color: #f4f1ea; }
.rv-evalbar.flipped .rv-evaltxt { bottom: auto; top: 4px; } .rv-evalbar.flipped .rv-evaltxt.dark { top: auto; bottom: 4px; }
.rv-nav { display: flex; gap: 6px; justify-content: center; margin-left: 28px; }
.rv-nav button { font-size: 18px; padding: 8px 14px; min-width: 52px; }
.rv-nav .rv-play { font-size: 15px; }
.rv-nav .rv-play.on { background: var(--accent); color: var(--accent-ink); }
.rv-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rv-progress { position: relative; height: 26px; flex: none; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; font-size: 12.5px; }
.rv-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, #81b64c 40%, transparent); transition: width .3s; }
.rv-progress span { position: relative; display: block; padding: 4px 10px; }
.rv-coach { --k: var(--line); display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--k); border-radius: 10px; padding: 0 14px; height: 104px; flex: none; overflow: hidden; }
.rv-say > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 50px; }
.rv-say > div.rv-msg { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-right: 0; height: 2.9em; }
.rv-say > div.rv-line3 { height: 1.45em; }
.rv-coach.pop { animation: rv-coach .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes rv-coach { from { opacity: .45; } }
.rv-say { font-size: 15px; line-height: 1.5; flex: 1; position: relative; }
.rv-kn { color: var(--k); }
.rv-best { color: var(--muted); } .rv-best b { color: #4f9a2f; }
.rv-ev { position: absolute; top: 0; right: 0; font: 600 12px var(--font-mono); background: var(--bg); border-radius: 4px; padding: 1px 6px; }
.rv-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--k, #888); color: #fff; font: 800 12px/1 var(--font-ui); letter-spacing: -.06em; box-shadow: 0 1px 2px rgb(0 0 0 / .35); flex: none; }
.rv-badge svg { width: 62%; height: 62%; }
.rv-badge.big { width: 46px; height: 46px; font-size: 21px; }
.rv-badge.sm { width: 17px; height: 17px; font-size: 9.5px; margin-right: 5px; vertical-align: -3px; }
.rv-badge.blank { background: transparent; box-shadow: none; }
.rv-coach .rv-badge.big { animation: rv-pop .5s cubic-bezier(.2,1.6,.4,1); }
.rv-coach .k-brilliant, .rv-coach .k-great { animation: rv-pop .5s cubic-bezier(.2,1.6,.4,1), rv-glow 1.6s ease-in-out .5s infinite alternate; }
@keyframes rv-glow { to { box-shadow: 0 0 0 6px color-mix(in srgb, var(--k) 25%, transparent), 0 0 18px var(--k); } }
@keyframes rv-pop { from { transform: scale(.2) rotate(-25deg); } }
.rv-graph svg { display: block; width: 100%; height: 76px; border-radius: 6px; cursor: pointer; }
.rv-gb { fill: #403d39; } .rv-gw { fill: #f4f1ea; transition: all .3s; } .rv-gm { stroke: #888; stroke-width: 1; stroke-dasharray: 4 4; } .rv-gc { stroke: #81b64c; stroke-width: 3; }
.rv-summary table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rv-summary th { font-size: 12px; color: var(--muted); font-weight: 600; padding: 2px 4px; }
.rv-summary td { padding: 3px 4px; border-top: 1px solid var(--line); }
.rv-summary td:nth-child(2) { color: var(--k); font-weight: 600; }
.rv-summary .num { text-align: center; font: 600 15px var(--font-mono); width: 25%; color: var(--k); }
.rv-moves { list-style: none; margin: 0; padding: 0; max-height: 34vh; overflow-y: auto; position: relative; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rv-moves li { display: grid; grid-template-columns: 36px 1fr 1fr; align-items: center; padding: 1px 4px; }
.rv-moves li:nth-child(even) { background: color-mix(in srgb, var(--line) 30%, transparent); }
.rv-moves .n { color: var(--muted); font: 12px var(--font-mono); }
.rv-moves button { border: 0; background: none; text-align: left; padding: 3px 6px; font: 13.5px var(--font-mono); border-radius: 5px; }
.rv-moves button.hot { color: var(--k); font-weight: 600; }
.rv-moves button.cur { background: var(--accent); color: var(--accent-ink); }
/* effects over the board */
.rv-fx, .rv-flashfx { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.rv-flashfx { z-index: 4; border-radius: 3px; opacity: 0; }
.rv-flashfx.on { animation: rv-flash .9s ease-out; }
.f-blunder { box-shadow: inset 0 0 60px 18px rgb(202 52 49 / .85); }
.f-mistake { box-shadow: inset 0 0 50px 12px rgb(229 143 42 / .7); }
.f-miss { box-shadow: inset 0 0 50px 12px rgb(238 107 85 / .7); }
.f-brill { box-shadow: inset 0 0 70px 20px rgb(27 172 166 / .8); }
.f-great { box-shadow: inset 0 0 50px 12px rgb(92 139 176 / .7); }
@keyframes rv-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.rv-boardwrap.shake { animation: rv-shake .55s cubic-bezier(.36,.07,.19,.97); }
.rv-boardwrap.shake-sm { animation: rv-shake-sm .4s ease-out; }
@keyframes rv-shake { 10%, 90% { transform: translate(-2px, 1px) rotate(-.4deg); } 20%, 80% { transform: translate(5px, -2px) rotate(.6deg); } 30%, 50%, 70% { transform: translate(-9px, 2px) rotate(-1deg); } 40%, 60% { transform: translate(9px, -1px) rotate(1deg); } }
@keyframes rv-shake-sm { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.rv-sqbadge { position: absolute; width: 0; height: 0; z-index: 6; }
.rv-sqbadge .rv-badge { position: absolute; transform: translate(-62%, -38%); width: clamp(18px, 4.2vmin, 30px); height: clamp(18px, 4.2vmin, 30px); font-size: clamp(10px, 2.2vmin, 15px); border: 2px solid #fff; }
.rv-sqbadge.pop .rv-badge { animation: rv-sqpop .55s cubic-bezier(.2,1.8,.4,1); }
.rv-sqbadge.pop.k-brilliant .rv-badge, .rv-sqbadge.pop.k-blunder .rv-badge { animation: rv-sqpop-big .8s cubic-bezier(.2,1.8,.4,1); }
.rv-sqbadge.pop.k-blunder .rv-badge { animation: rv-sqpop-big .8s cubic-bezier(.2,1.8,.4,1), rv-wobble .5s ease-in-out .8s 2; }
@keyframes rv-sqpop { from { transform: translate(-62%, -38%) scale(0) rotate(-90deg); } }
@keyframes rv-sqpop-big { 0% { transform: translate(-62%, -38%) scale(0); } 50% { transform: translate(-62%, -38%) scale(2.1) rotate(12deg); } }
@keyframes rv-wobble { 25% { transform: translate(-62%, -38%) rotate(-18deg); } 75% { transform: translate(-62%, -38%) rotate(18deg); } }
.rv-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rv-path polyline { fill: none; stroke-width: .13; stroke-linecap: round; stroke-linejoin: round; opacity: .75; stroke-dasharray: calc(var(--len) * 1px) calc(var(--len) * 1px); stroke-dashoffset: calc(var(--len) * 1px); animation: rv-draw .38s ease-out forwards, rv-fade .5s ease-in 1.1s forwards; }
@keyframes rv-draw { to { stroke-dashoffset: 0; } }
@keyframes rv-fade { to { opacity: 0; } }
.rv-step { position: absolute; width: 3.2%; height: 3.2%; border-radius: 50%; transform: translate(-50%, -50%) scale(0); opacity: .85; animation: rv-stepin .25s ease-out forwards, rv-fade .5s ease-in 1.2s forwards; }
@keyframes rv-stepin { to { transform: translate(-50%, -50%) scale(1); } }
.rv-fall { position: absolute; width: 12.5%; height: 12.5%; z-index: 3; pointer-events: none; }
.rv-fall piece { position: static !important; display: block; width: 100% !important; height: 100% !important; background-size: cover; }
.rv-king { z-index: 4; }
.rv-spark { position: absolute; width: 1.6%; height: 1.6%; min-width: 5px; min-height: 5px; border-radius: 50%; }
.rv-ring { position: absolute; width: 12.5%; aspect-ratio: 1; border: 4px solid; border-radius: 50%; transform: translate(-50%, -50%) scale(.5); animation: rv-ring .9s ease-out forwards; }
@keyframes rv-ring { to { transform: translate(-50%, -50%) scale(3.2); opacity: 0; border-width: 1px; } }
@media (max-width: 860px) {
  .rv-grid { grid-template-columns: 1fr; padding-inline: 10px; gap: 8px; }
  .rv-top h2 { font-size: 17px; }
  .rv-boardwrap { width: min(calc(100vw - 48px), calc(100svh - 250px)); min-width: 240px; }
  .rv-boardcol { align-items: center; }
  .rv-boardrow, .rv-name { width: calc(min(calc(100vw - 48px), calc(100svh - 250px)) + 28px); max-width: 100%; }
  .rv-nav { margin-left: 0; }
  .rv-nav button { padding: 10px 12px; min-width: 48px; }
  .rv-coach { height: 104px; padding: 0 10px; }
  .rv-acc { min-width: 118px; }
  .rv-badge.big { width: 38px; height: 38px; font-size: 17px; }
  .rv-moves { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .rv-path polyline, .rv-step, .rv-ring { animation: none; } .rv-boardwrap.shake, .rv-boardwrap.shake-sm { animation: none; } }
