/* ============================================================
   Ori's Funny Faces / Ori'nin Komik Yüzleri (D-220, build 1)
   The play board. Engine: kf-ori-faces.js. Spec: concepts/ori-mirror/
   14-nova-spec-v2.md (sizes, states, motion) and 21-nova-build-notes.md
   (the states 14 did not draw, the frame in four pieces, the leaf).

   HOW THE SIZES ARE MADE. The board is flat and straight-on (Game Shell).
   The structure is plain flex and grid; every length that depends on the
   board's own box is a custom property the engine sets in layout():
     --kfof-facemax   the widest a face may be (px)
     --kfof-face      what a face is (px), measured from its row
     --kfof-hand      the hand picture (px), measured from its row
     --kfof-rail      the picker column on wide boards (px)
     --kfof-plate     the name plates' type size (px)
     --kfof-tilemaxh  per picker: the tallest a button may be (px)
     --kfof-tw/-tx/-ty  per picker: where the thumbnail sits in a button
   No container query units: an older tablet draws the same board.

   The root is the full-screen surface (data-kf-fs). Its children are the
   bar and the play area, in that order, because the shared layer parks
   the red X against the first child's button row and the top of the next.

   No timer, no score, no mark for a face that differs. Nothing flashes.
   ============================================================ */

.kf-ori-faces {
  --kfof-pad: 8px;
  --kfof-gap: 8px;
  --kfof-tgap: 8px;
  --kfof-facegap: 10px;
  --kfof-tile-min: 75px;
  --kfof-tile-max: 96px;
  --kfof-head: 30px;
  --kfof-lines: 3;
  --kfof-platepad: 6px;
  --kfof-facemax: 160px;
  --kfof-face: 148px;
  --kfof-hand: 300px;
  --kfof-rail: 340px;
  --kfof-plate: 17px;
  --kfof-ground: #e6daf4;
  /* the chosen picture: a two-line frame, also in greyscale (fix round 3; Nova 37: the tick badge is gone and
     the halo's outer line is solid deep purple) */
  --kfof-halo: 0 0 0 2px #fff, 0 0 0 5px var(--kf-gold), 0 0 0 7px var(--kf-purple-deep);

  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--kfof-gap);
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: var(--kfof-pad);
  background: var(--kf-lilac-soft);
  border-radius: var(--radius-lg);
  color: var(--kf-navy-dark);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.kf-ori-faces:not(.kfof-ready) { min-height: 60vh; }
.kf-ori-faces.kfof--phone { border-radius: 0; }
.kf-ori-faces *, .kf-ori-faces *::before, .kf-ori-faces *::after { box-sizing: border-box; }
/* :where keeps this reset below every class rule that follows (a plain selector here outranked them
   and the buttons lost their own type) */
.kf-ori-faces :where(button, a) { font: inherit; color: inherit; }
.kf-ori-faces :where(button) { cursor: pointer; }
.kf-ori-faces :focus-visible { outline: 3px solid var(--color-link); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.kf-ori-faces img { max-width: none; }
.kf-ori-faces [hidden] { display: none !important; }

.kfof-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* in full screen the board fills the screen and keeps its own edge: the
   shared layer's 24 px over the first child would cost a 568 px phone the
   three spare pixels it has (14, 6.3) */
[data-kf-fs].kf-ori-faces.kf-fs-on[data-kf-fs-wide] > .kfof-bar,
[data-kf-fs].kf-ori-faces.kf-fs-fake[data-kf-fs-wide] > .kfof-bar { padding-top: 0 !important; }
.kf-ori-faces.kf-fs-on, .kf-ori-faces.kf-fs-fake { max-width: none; border-radius: 0; }
.kf-ori-faces.kf-fs-on .kfof-fsbtn, .kf-ori-faces.kf-fs-fake .kfof-fsbtn { display: none; }

/* ---------- sizes by board ---------- */
.kf-ori-faces.kfof--short {
  --kfof-head: 0px; --kfof-pad: 7px; --kfof-gap: 5px; --kfof-tgap: 5px;
  /* the halo fits inside the 5 px gap of a short board (Nova 37) */
  --kfof-halo: 0 0 0 1px #fff, 0 0 0 3px var(--kf-gold), 0 0 0 4.5px var(--kf-purple-deep);
}
.kf-ori-faces.kfof--tiny.kfof--older.kfof--build { --kfof-tile-min: 64px; --kfof-lines: 2; }
/* an upright tablet keeps 18 px over the faces: the name plates and the star on the mirror's top edge
   stand clear of the shared red X, which parks on the line where the play area starts */
.kf-ori-faces.kfof--tablet {
  --kfof-pad: 16px; --kfof-gap: 12px; --kfof-tgap: 8px; --kfof-facegap: 16px;
  --kfof-tile-max: 128px; --kfof-lines: 2; --kfof-platepad: 18px;
}
.kf-ori-faces.kfof--wide {
  --kfof-pad: 16px; --kfof-gap: 14px; --kfof-tgap: 10px; --kfof-facegap: 16px;
  --kfof-tile-max: 128px; --kfof-lines: 2; --kfof-platepad: 0px;
}

/* ---------- the top bar ---------- */
.kfof-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  min-width: 0;
}
.kfof-ibtn {
  flex: none;
  height: 64px;
  min-width: 64px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--kf-lilac-deep);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  color: var(--kf-purple-deep);
  text-decoration: none;
}
.kfof-ibtn svg { width: 28px; height: 28px; flex: none; display: block; }
.kfof-ibtn .kfof-w { display: none; }
.kfof--tablet .kfof-ibtn .kfof-w, .kfof--wide .kfof-ibtn .kfof-w { display: inline; }
.kfof-dots {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.kfof-dots i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--kf-lilac-deep);
  background: transparent;
}
.kfof-dots i.is-done { background: var(--kf-gold); border-color: var(--kf-purple-deep); }
.kfof-dots i.is-now { width: 16px; height: 16px; border: 3px solid var(--kf-purple-deep); background: #fff; }
.kfof--tablet .kfof-dots, .kfof--wide .kfof-dots { gap: 10px; }
.kfof--tablet .kfof-dots i, .kfof--wide .kfof-dots i { width: 14px; height: 14px; }
.kfof--tablet .kfof-dots i.is-now, .kfof--wide .kfof-dots i.is-now { width: 22px; height: 22px; }
.kfof--narrow .kfof-bar { gap: 6px; }
.kfof--narrow .kfof-dots { gap: 3px; }
/* a 320 px phone in full screen: the red X takes 102 px of the bar, so the six dots step down once */
.kfof--narrow.kf-fs-on .kfof-dots, .kfof--narrow.kf-fs-fake .kfof-dots { gap: 2px; }
.kfof--narrow.kf-fs-on .kfof-dots i, .kfof--narrow.kf-fs-fake .kfof-dots i { width: 8px; height: 8px; }
.kfof--narrow.kf-fs-on .kfof-dots i.is-now, .kfof--narrow.kf-fs-fake .kfof-dots i.is-now { width: 14px; height: 14px; }

/* ---------- the play area ---------- */
.kfof-main {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  position: relative;
  display: grid;
  gap: var(--kfof-gap);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "faces" "say" "rail" "acts";
  /* the faces grow first (up to the width limit); only what is left goes to the pickers */
  grid-template-rows:
    minmax(calc(128px + var(--kfof-platepad)), calc(var(--kfof-facemax) + var(--kfof-platepad)))
    auto
    minmax(min-content, 1fr)
    auto;
}
.kfof--hand .kfof-main { grid-template-areas: "pic" "say" "next"; grid-template-rows: minmax(0, 1fr) auto auto; }
.kfof--hand .kfof-faces, .kfof--hand .kfof-rail, .kfof--hand .kfof-acts { display: none; }
.kfof--build .kfof-handwrap { display: none; }

/* ---------- Ori and his mirror ---------- */
.kfof-faces {
  grid-area: faces;
  min-height: 0;
  min-width: 0;
  padding-top: var(--kfof-platepad);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--kfof-facegap);
  position: relative;
}
.kfof-face {
  position: relative;
  margin: 0;
  flex: none;
  width: var(--kfof-face);
  height: var(--kfof-face);
}
.kfof-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.kfof-head {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--kfof-ground);
}
.kfof-head img.kfof-l {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}
.kfof-head img:not([src]) { visibility: hidden; }   /* a picture that has not come is not drawn at all */
.kfof-head img.kfof-l.is-in { animation: kfof-fade 0.15s ease-out 1; }
.kfof-head img.kfof-l.is-out { opacity: 0; transition: opacity 0.15s ease; }   /* a release: both faces, one fade */
@keyframes kfof-fade { from { opacity: 0; } to { opacity: 1; } }
/* balloon cheeks: they fill when chosen, and let the air go on "Next face" */
.kfof-head img.kfof-l-mouth { transform-origin: 50% 78%; }
.kfof-head img.kfof-l-mouth.is-fill { animation: kfof-fill 0.35s ease-out 1; }
@keyframes kfof-fill { from { transform: scale(0.93); } to { transform: scale(1); } }
.kfof-head img.kfof-l-mouth.is-swell { transform: scale(1.05); transition: transform 0.12s ease-out; }
.kfof-air {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.kfof-air.is-on { animation: kfof-air 0.4s ease-out 1; }
@keyframes kfof-air { from { opacity: 0.7; } to { opacity: 0; } }

.kfof-plate {
  position: absolute;
  left: 10px;
  top: -8px;
  z-index: 4;
  max-width: calc(100% - 12px);
  padding: 1px 12px 0;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--kf-purple-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--kfof-plate);
  line-height: 1.5;
  color: var(--kf-purple-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.kfof--tablet .kfof-plate, .kfof--wide .kfof-plate { top: -12px; left: 16px; padding: 1px 16px 0; }
.kfof--tablet .kfof-handwrap, .kfof--wide .kfof-handwrap { padding-top: 12px; }

/* Ori's mirror: a drawn frame round a drawn picture. It never shows the child.
   The coded band, star, sprig, shine and leaf below are what stands until the
   drawn files are dropped into /games/ori-faces/ (the engine then lays them on
   top, and they stay underneath as what shows if a file fails). */
.kfof-mirror .kfof-frame {
  background: linear-gradient(145deg, #e7c66a 0%, #d4a843 38%, #9a7a2e 100%);
  box-shadow: 0 0 0 2px var(--kf-purple-deep), var(--shadow-soft);
}
.kfof-mirror .kfof-head { box-shadow: inset 0 0 0 2px rgba(45, 27, 78, 0.55); }
.kfof-mirror .kfof-head::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 12%, rgba(255, 255, 255, 0.34) 12% 17%, transparent 17% 21%, rgba(255, 255, 255, 0.22) 21% 24%, transparent 24%);
}
.kfof-mirror.has-shine .kfof-head::after { content: none; }
.kfof-shine { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.kfof-frameart {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 24px solid transparent;
  border-image: var(--kfof-frameart) 180 / 24px stretch;
}
/* the star: on the bottom right corner of a narrow face (the top edge belongs
   to the name plate), on the top edge of a face 300 px wide or wider (Nova 21, 3.2) */
.kfof-star {
  position: absolute;
  z-index: 3;
  right: -3px;
  bottom: -3px;
  width: 24px;
  height: 24px;
  display: block;
  pointer-events: none;
}
.kfof-sprig {
  position: absolute;
  z-index: 3;
  right: 3%;
  top: -14px;
  width: 30px;
  height: 22px;
  display: none;
  pointer-events: none;
}
.kfof--bigface .kfof-star { right: 16%; bottom: auto; top: -16px; width: 34px; height: 34px; }
.kfof--bigface .kfof-sprig { display: block; }
svg.kfof-sprig { transform: scaleX(-1); }

/* the hiding leaf ("From memory"): the only thing that moves when Ori hides */
.kfof-leaf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: block;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.kfof-ori.is-hidden .kfof-leaf { transform: none; }

/* the pointer ring of the help ladder: steady, two-tone because it lies on a picture */
.kfof-ring {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  border: 3px dashed var(--kf-purple-deep);
  box-shadow: 0 0 0 3px var(--kf-cream);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.kfof-ring--eyes { left: 20%; top: 39%; width: 60%; height: 27%; }
.kfof-ring--mouth { left: 27%; top: 66%; width: 46%; height: 24%; }
.kfof-ring.is-on { opacity: 1; }

/* the match: the same ring on both frames, a badge between them, one nod */
.kfof-same {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--kfof-platepad) / 2);
  z-index: 5;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: var(--kf-gold);
  border: 3px solid var(--kf-purple-deep);
  box-shadow: 0 0 0 3px #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.kfof-same svg { width: 40px; height: 40px; display: block; }
.is-match .kfof-same { opacity: 1; transform: none; }
.is-match .kfof-face .kfof-frame { box-shadow: 0 0 0 4px var(--kf-purple-deep), 0 0 0 8px var(--kf-gold), var(--glow-hint-soft); }
@keyframes kfof-nod {
  0%, 100% { transform: none; }
  30% { transform: translateY(-6px) scale(1.03); }
  60% { transform: translateY(0) scale(1); }
  80% { transform: translateY(-3px) scale(1.015); }
}
.is-nod .kfof-face { animation: kfof-nod 0.7s ease-out 1; }
.kfof-faces.is-in { animation: kfof-fade 0.25s ease-out 1; }
.is-fading .kfof-faces, .is-fading .kfof-turn { opacity: 0; transition: opacity 0.25s ease; }

/* ---------- the hand scene: ONE whole picture, nothing cropped, nothing moves ---------- */
.kfof-handwrap {
  grid-area: pic;
  min-height: 0;
  min-width: 0;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kfof-hand { position: relative; margin: 0; flex: none; width: var(--kfof-hand); height: var(--kfof-hand); }
.kfof-hand .kfof-head img.kfof-handimg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kfof-hand.is-in { animation: kfof-fade 0.35s ease-out 1; }

/* ---------- Ori's line ---------- */
.kfof-say {
  grid-area: say;
  margin: 0;
  position: relative;
  min-width: 0;
  background: #fff;
  border: 2px solid var(--kf-lilac);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  min-height: calc(var(--kfof-lines) * 1.4em + 16px);
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--kf-purple-deep);
}
.kfof-saytext { display: block; position: relative; z-index: 1; min-width: 0; width: 100%; text-wrap: balance; }
.kfof-sayprobe {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  text-wrap: balance;
}
.kfof-say::before {
  content: "";
  position: absolute;
  left: calc(25% - 10px);
  top: -11px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-left: 2px solid var(--kf-lilac);
  border-top: 2px solid var(--kf-lilac);
  transform: rotate(45deg);
}
.kfof--hand .kfof-say::before { left: calc(50% - 10px); }
.kfof--short .kfof-say { font-size: 1rem; padding: 2px 12px; line-height: 1.35; min-height: calc(var(--kfof-lines) * 1.35em + 8px); }
.kfof--short .kfof-sayprobe { left: 12px; right: 12px; }
.kfof--tablet .kfof-say { font-size: 1.4rem; padding: 8px 20px; min-height: calc(var(--kfof-lines) * 1.4em + 20px); }
.kfof--wide .kfof-say { font-size: 1.5rem; padding: 8px 20px; min-height: calc(var(--kfof-lines) * 1.4em + 20px); }
.kfof--tablet .kfof-sayprobe, .kfof--wide .kfof-sayprobe { left: 20px; right: 20px; }

/* ---------- "listen again": the site's speaker on Ori's words (fix round 2; Nova 28, A) ----------
   A disc at the right end of the bubble (36 px under 600 px of board, 44 px from 600 px), 6 px from the bubble's
   right edge, centred on its height. The bubble's right padding grows by 36 px, so the words end before the
   disc; nothing else changes size. The button itself takes no room: its tap area is laid over the WHOLE
   bubble, and on phone boards under 760 px tall it reaches 5 px into the gap above and the gap below.
   The disc is the site's one speaker (the kf-speak mask and colours, speak.css); the class's pill is undone
   here, the glyph is not redrawn. With the sound off the disc is quiet: lilac with the deep purple glyph
   (speak.css has no muted look of its own; its --speak-face and --speak-ink are set, as it asks). */
.kfof--replay .kfof-say { padding-right: 50px; }
.kfof--replay.kfof--short .kfof-say { padding-right: 48px; }
.kfof--replay.kfof--tablet .kfof-say, .kfof--replay.kfof--wide .kfof-say { padding-right: 56px; }
.kfof--replay .kfof-sayprobe { right: 50px; }
.kfof--replay.kfof--short .kfof-sayprobe { right: 48px; }
.kfof--replay.kfof--tablet .kfof-sayprobe, .kfof--replay.kfof--wide .kfof-sayprobe { right: 56px; }
/* fix round 3 (Lyra 35, item 7): the button is the bubble's next sibling, out of the live region. It shares the
   bubble's grid area and stretches over exactly the bubble's box; it has no content of its own, so it adds no
   height to the row. The lengths below are measured from the bubble's OUTER edge now (before, from inside its
   2 px border), so each is 2 px more than it was and every place and tap area comes out as before. */
.kf-ori-faces .kfof-replay {
  grid-area: say;
  align-self: stretch;
  justify-self: stretch;
  position: relative;
  flex: none;
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
  transition: none;
}
.kf-ori-faces .kfof-replay:hover, .kf-ori-faces .kfof-replay:focus-visible, .kf-ori-faces .kfof-replay:active { transform: none; box-shadow: none; outline: none; }
.kf-ori-faces .kfof-replay::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 2;
  border-radius: var(--radius-md);
}
/* 5 px above and below the bubble's outer edge on a short phone board */
.kfof--short .kfof-replay::after { inset: -5px 2px; }
.kf-ori-faces .kfof-replay:focus-visible::after { outline: 3px solid var(--color-link); outline-offset: 2px; }
.kf-ori-faces .kfof-replay-disc {
  position: absolute;
  right: 6px;   /* 6 px from the bubble's outer edge */
  top: calc(50% - 18px);
  z-index: 1;
  width: 36px;
  height: 36px;
  transition: none;
}
.kf-ori-faces .kfof-replay-disc > i { width: 24px; height: 24px; }
.kfof--tablet .kfof-replay-disc, .kfof--wide .kfof-replay-disc { top: calc(50% - 22px); width: 44px; height: 44px; }
.kfof--tablet .kfof-replay-disc > i, .kfof--wide .kfof-replay-disc > i { width: 28px; height: 28px; }
.kf-ori-faces .kfof-replay.is-quiet { --speak-face: var(--kf-lilac); --speak-ink: var(--kf-purple-deep); }
/* a silent "listen again" run: a still gold ring on the bell for as long as the lines are shown */
.kfof-sound.is-ring { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--kf-gold); }

/* ---------- the pickers ---------- */
.kfof-rail {
  grid-area: rail;
  min-height: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(var(--kfof-tgap) + 6px);
}
.kfof-picker {
  --c: 3;
  --r: 1;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  flex: var(--r) 0 calc(var(--kfof-head) + var(--r) * var(--kfof-tile-min) + (var(--r) - 1) * var(--kfof-tgap));
  max-height: calc(var(--kfof-head) + var(--r) * var(--kfof-tile-max) + (var(--r) - 1) * var(--kfof-tgap));
}
.kfof-picker[data-n="4"] { --c: 2; --r: 2; }
.kfof-picker[data-n="2"] { --c: 2; }
.kfof-picker[data-n="1"] { --c: 1; }
.kfof--tablet .kfof-picker[data-n="4"] { --c: 4; --r: 1; }
.kfof-picker h3 {
  margin: 0;
  height: var(--kfof-head);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  color: var(--kf-purple-deep);
}
.kfof--short .kfof-picker h3 { display: none; }   /* the headings stay as the groups' names for a screen reader */
.kfof-picker h3 svg { width: 26px; height: 20px; flex: none; display: block; }
.kfof-picker h3 svg.kfof-twin { display: none; width: 22px; height: 22px; }
.kfof-picker.is-same h3 svg.kfof-twin { display: block; }
.kfof-tiles {
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--c), minmax(0, 1fr));
  grid-auto-rows: minmax(var(--kfof-tile-min), 1fr);
  gap: var(--kfof-tgap);
  align-items: center;
  justify-content: center;
}
.kfof--tablet .kfof-tiles { grid-template-columns: repeat(var(--c), minmax(0, 13rem)); }
.kfof-tile {
  position: relative;
  display: block;
  height: 100%;
  min-height: var(--kfof-tile-min);
  max-height: var(--kfof-tilemaxh, var(--kfof-tile-max));
  padding: 0;
  background: #fff;
  border: 3px solid var(--kf-lilac-deep);
  border-radius: 14px;
  box-shadow: 0 3px 0 rgba(45, 27, 78, 0.22);
}
/* 3 px border + 3 px, or the chosen button's 4 px border + 2 px: the picture box is the same size in both,
   so one fit serves every button of a picker */
.kfof-tile[aria-pressed="true"] .kfof-pic { inset: 2px; }
.kfof-pic {
  position: absolute;
  inset: 3px;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  display: block;
}
.kfof-pic img {
  position: absolute;
  left: var(--kfof-tx, 0px);
  top: var(--kfof-ty, 0px);
  width: var(--kfof-tw, 100%);
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}
.kfof-tile[aria-pressed="true"] { border: 4px solid var(--kf-purple-deep); box-shadow: var(--kfof-halo); z-index: 1; }
.kfof-picker.is-same .kfof-tile[aria-pressed="true"] { box-shadow: var(--kfof-halo), var(--glow-hint-soft); }
.kfof-tile:disabled { cursor: default; }
@media (hover: hover) {
  .kfof-tile:not([aria-pressed="true"]):not(:disabled):hover { transform: translateY(-2px); }
}
/* a part that arrived set: shown, flat, smaller, pinned; not a button */
.kfof-preset {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: center;
  position: relative;
  height: calc(var(--kfof-tile-min) * 0.8);
  width: calc(var(--kfof-tile-min) * 1.6);   /* twice its height, written out: no aspect-ratio needed */
  border: 2px dashed var(--kf-lilac-deep);
  border-radius: 14px;
  background: transparent;
}
.kfof--tablet .kfof-preset, .kfof--wide .kfof-preset { height: var(--kfof-tile-min); width: calc(var(--kfof-tile-min) * 2); }
.kfof-preset .kfof-pic { inset: 5px; }
.kfof-pin { position: absolute; left: 50%; top: -13px; width: 26px; height: 26px; margin-left: -13px; z-index: 2; display: block; pointer-events: none; }

/* ---------- the help buttons ---------- */
.kfof-acts { grid-area: acts; display: flex; justify-content: center; gap: 10px; min-width: 0; }
.kfof-pill {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 75px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--kf-purple-deep);
  box-shadow: 0 4px 0 rgba(45, 27, 78, 0.28);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.1;
  color: var(--kf-purple-deep);
  text-align: center;
}
.kfof-pill svg { width: 26px; height: 26px; flex: none; display: block; }
.kfof-pill--gold { background: linear-gradient(#ffd94d, #f0b929); }
.kfof--tiny.kfof--older .kfof-pill { min-height: 64px; }
.kfof--slim .kfof-pill { padding: 0 8px; gap: 5px; }
.kfof--slim .kfof-acts { gap: 6px; }
.kfof--narrow .kfof-pill { font-size: 1rem; }
.kfof--narrow .kfof-pill svg { width: 22px; height: 22px; }
.kfof--tablet .kfof-pill { font-size: 1.4rem; padding: 0 28px; gap: 10px; }
.kfof--tablet .kfof-pill svg, .kfof--wide .kfof-pill svg { width: 30px; height: 30px; }
.kfof--wide .kfof-pill { font-size: 1.3rem; padding: 0 20px; gap: 10px; }

/* ---------- "Next face": ONE gold button, in the SAME place after a match and in a hand scene ---------- */
.kfof-turn {
  grid-row: rail / acts;
  grid-column: 1;
  z-index: 6;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  min-width: 0;
  padding-bottom: 5px;
  background: var(--kf-lilac-soft);
}
.kfof-duo { width: min(50%, 300px); height: auto; aspect-ratio: 132 / 64; margin: auto 0; min-height: 0; flex: 0 1 auto; display: block; }
.kfof-next {
  flex: none;
  min-height: 88px;
  padding: 0 34px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  background: linear-gradient(#ffd94d, #f0b929);
  border: 3px solid var(--kf-purple-deep);
  box-shadow: 0 5px 0 rgba(45, 27, 78, 0.3);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--kf-purple-deep);
  white-space: nowrap;
}
.kfof-next svg { width: 38px; height: 38px; flex: none; display: block; }
.kfof--short .kfof-next { min-height: 75px; font-size: 1.5rem; }
.kfof--wide .kfof-next { min-height: 96px; font-size: 1.9rem; }
.can-next .kfof-turn { display: flex; }
.can-next .kfof-rail, .can-next .kfof-acts { visibility: hidden; }
.kfof--hand .kfof-turn { display: flex; grid-area: next; }
.kfof--hand .kfof-duo { display: none; }   /* the button is there before Ori has shown anything */

/* ---------- a picture that did not come ---------- */
.kfof-err {
  margin: auto 0;
  max-width: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}
.kfof-err p { margin: 0; font-size: var(--text-lg); line-height: 1.35; color: var(--kf-purple-deep); overflow-wrap: anywhere; }
.kfof-retry {
  min-height: 75px;
  max-width: 100%;
  padding: 8px 28px;
  border-radius: 999px;
  background: linear-gradient(#ffd94d, #f0b929);
  border: 3px solid var(--kf-purple-deep);
  box-shadow: 0 4px 0 rgba(45, 27, 78, 0.28);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--kf-purple-deep);
  overflow-wrap: anywhere;
}
.is-error .kfof-turn { display: flex; }
.is-error .kfof-rail, .is-error .kfof-acts { visibility: hidden; }
/* Ori has no line for a picture that did not come: his bubble keeps its place and is not drawn (an empty
   white bubble with a tail says that somebody is about to speak; Nova 25, ruling 18) */
.is-error .kfof-say { visibility: hidden; }
.is-error .kfof-duo { display: none; }
.is-error.kfof--build .kfof-turn > .kfof-err { display: flex; }
.kfof-hand .kfof-err { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(88%, 26rem); margin: 0; z-index: 3; }
.is-error.kfof--hand .kfof-hand .kfof-err { display: flex; }
.is-error.kfof--hand .kfof-hand .kfof-handimg { visibility: hidden; }

/* loading: the board stands in its final size, the buttons are white tiles and cannot be pressed */
.is-loading .kfof-tile { box-shadow: none; }

/* ---------- wide boards: the pickers go BESIDE the mirror ---------- */
.kfof--wide .kfof-main {
  grid-template-columns: minmax(0, 1fr) var(--kfof-rail);
  grid-template-areas: ". rail" "faces rail" "say rail" "acts acts";
  grid-template-rows: minmax(0, 1fr) minmax(240px, var(--kfof-facemax)) auto minmax(75px, 1fr);
}
.kfof--wide .kfof-picker[data-n="4"] { --c: 2; --r: 2; }
.kfof--wide .kfof-rail { align-self: stretch; height: auto; }
.kfof--wide .kfof-acts { align-items: flex-end; justify-content: flex-end; gap: 12px; }
.kfof--wide .kfof-turn { grid-row: 1 / -1; grid-column: 2; }
.kfof--wide.kfof--hand .kfof-main {
  grid-template-columns: minmax(0, 1fr) var(--kfof-rail);
  grid-template-areas: "pic pic" "say next";
  grid-template-rows: minmax(0, 1fr) auto;
}
.kfof--wide.kfof--hand .kfof-turn { grid-row: auto; grid-column: auto; grid-area: next; }
.kfof--wide.kfof--hand .kfof-say::before { left: calc(50% + (var(--kfof-rail) + var(--kfof-gap)) / 2 - 10px); }

/* ---------- short boards: the height budget, step by step (fix round 3; Lyra 35, item 2) ----------
   The engine adds a step only when the board does not hold everything without it (layout(), holdsAll()), so
   none of these rules touches a board that holds everything. The steps add up: a board on step 3 also has
   the classes of steps 1 and 2 where they apply. */
/* 1 and 2, the wide layout only: picker buttons no taller than 75 px; the faces may go down to their floor */
.kf-ori-faces.kfof--wide.kfof--fit1 { --kfof-tile-max: 75px; }
.kfof--wide.kfof--fit2 .kfof-main { grid-template-rows: minmax(0, 1fr) minmax(128px, var(--kfof-facemax)) auto minmax(75px, 1fr); }
/* 3: Ori's line at 17 px, no words over the pickers (they stay as the groups' names), gaps of 5 px */
.kf-ori-faces.kfof--fit3 {
  --kfof-head: 0px; --kfof-pad: 7px; --kfof-gap: 5px; --kfof-tgap: 5px;
  --kfof-halo: 0 0 0 1px #fff, 0 0 0 3px var(--kf-gold), 0 0 0 4.5px var(--kf-purple-deep);
}
.kf-ori-faces.kfof--tablet.kfof--fit3 { --kfof-platepad: 6px; }
/* on any step, a button no wider than its picture can fill (the engine sets the length), centred in its column */
.kfof--fit1 .kfof-tile, .kfof--fit3 .kfof-tile, .kfof--fit5 .kfof-tile { width: 100%; max-width: var(--kfof-tilemaxw, none); justify-self: center; }
.kfof--fit3 .kfof-picker h3 { display: none; }
.kfof--fit3 .kfof-say { font-size: 1rem; padding-top: 2px; padding-bottom: 2px; padding-left: 12px; line-height: 1.35; min-height: calc(var(--kfof-lines) * 1.35em + 8px); }
.kfof--fit3 .kfof-sayprobe { left: 12px; }
/* 4, the two older ways under 618 px of board: picker and help buttons 64 px (the youngest way keeps 75) */
.kf-ori-faces.kfof--fit4.kfof--older.kfof--build { --kfof-tile-min: 64px; }
.kfof--fit4.kfof--older .kfof-pill { min-height: 64px; }
/* 5, the last resort. Full screen: the board scrolls up and down, never sideways; the bar scrolls with it and
   the shared red X, which the shared layer parks against the bar, moves with the bar. In the page: the board
   takes the height of what it holds and the page scrolls, as every page does. Nothing is clipped. */
.kf-ori-faces.kfof--fit5 { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.kf-ori-faces.kfof--fit5:not(.kf-fs-on):not(.kf-fs-fake) { overflow: visible; }
/* one class more than the shared layer's faked full screen rule (.kf-fs-fake > .kf-fs-grow), which would let the
   play area shrink again */
.kf-ori-faces.kfof--fit5 > .kfof-main { flex: none; }
/* while the end card is open the board stands at its top and does not scroll (the card's dark ground covers it) */
.kf-ori-faces.kfof--fit5.is-ended { overflow: hidden; }

/* ---------- the end of a round: the site's celebration card (fix round 4: Nova 42; Elias EL-OM151 to 160) ----------
   Title; Ori's line (his happy picture, his end line in a bubble with the site's speaker on it); one group of three
   actions: "Play again" (gold, its own line), then "Face before" and "Back" on one line. The engine's ladder
   (fitPanel) places the card: centred, below the red X, beside it, compact (.is-compact). Sizes: Nova 42, 3.1.
   Deviation from 3.1, by Elias EL-OM156 and EL-OM159 (MUST): "Face before" wears the bar control's own look (the
   bar's icon, white, 2 px lilac-deep border, the bar's corner radius), not the card's pill, and is as wide as its
   content from 600 px; "Back" keeps the card's pill with no arrow. The two never look like twins. */
.kfof-panel {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(15, 10, 36, 0.55);
  padding: 16px;
}
/* ladder step 2: the card stands below the red X (the engine sets its top margin) */
.kfof-panel.is-top { align-items: start; }
.kfof-card {
  width: min(34rem, 100%);
  max-height: 100%;
  background: var(--color-surface, #fff);
  border: 3px solid var(--kf-gold);
  border-radius: var(--radius-lg);
  padding: 40px 24px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 10, 36, 0.4);
  animation: kfof-pop 0.35s ease both;
}
@keyframes kfof-pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.kfof-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--kf-purple-deep);
  overflow-wrap: anywhere;
}
/* Ori's line: picture left, bubble right (from 600 px); the row stretches, so the bubble is at least the
   picture's height and the picture stands centred on the bubble's */
.kfof-card-ori { display: flex; align-items: stretch; gap: 16px; margin: 0 0 20px; text-align: left; }
.kfof-card-ori img {
  flex: none;
  align-self: center;
  display: block;
  width: 120px;
  height: 120px;
  margin: 0;
  border-radius: 14px;
  border: 3px solid var(--kf-gold);
  background: var(--kfof-ground);
}
.kfof-card-sayw { position: relative; flex: 1 1 auto; min-width: 0; display: grid; }
.kfof-card-say {
  grid-area: 1 / 1;
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--kf-lilac);
  border-radius: var(--radius-md);
  padding: 8px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--kf-purple-deep);
}
.kfof-card-saytext { display: block; position: relative; z-index: 1; min-width: 0; width: 100%; text-wrap: balance; }
.kfof--wide .kfof-card-say { font-size: 1.5rem; }
.kfof-card.has-spk .kfof-card-say { padding-right: 56px; }
/* the tail: on the left edge, centred on the height, pointing at Ori */
.kfof-card-say::before {
  content: "";
  position: absolute;
  left: -11px;
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  background: #fff;
  border-left: 2px solid var(--kf-lilac);
  border-bottom: 2px solid var(--kf-lilac);
  transform: rotate(45deg);
}
/* the sound is off and the speaker was pressed: a still ring for the clip's own length (Nova 42, 5); its outer
   line is deep purple, which is what is seen on the white card */
.kfof-card-say.is-ring { box-shadow: var(--kfof-halo); }
/* the speaker: the board's rule, on the card. A real button laid exactly over the bubble (its tap area); the
   site's disc 6 px from the bubble's right edge, centred on its height */
.kf-ori-faces .kfof-card-spk {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  position: relative;
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
  transition: none;
}
.kf-ori-faces .kfof-card-spk:hover, .kf-ori-faces .kfof-card-spk:focus-visible, .kf-ori-faces .kfof-card-spk:active { transform: none; box-shadow: none; outline: none; }
.kf-ori-faces .kfof-card-spk::after { content: ""; position: absolute; inset: 2px; z-index: 2; border-radius: var(--radius-md); }
.kf-ori-faces .kfof-card-spk:focus-visible::after { outline: 3px solid var(--color-link); outline-offset: 2px; }
.kf-ori-faces .kfof-card-disc { position: absolute; right: 6px; top: calc(50% - 22px); z-index: 1; width: 44px; height: 44px; transition: none; }
.kf-ori-faces .kfof-card-disc > i { width: 28px; height: 28px; }
.kf-ori-faces .kfof-card-spk.is-quiet { --speak-face: var(--kf-lilac); --speak-ink: var(--kf-purple-deep); }
/* the actions: one group, "Play again" on its own line, then "Face before" and "Back" */
.kfof-card-acts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  width: min(100%, 440px);
  margin: 0 auto;
}
.kfof-card-acts > .kfof-card-btn--gold { grid-column: 1 / -1; }
.kfof-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 75px;
  padding: 0 16px;
  border-radius: var(--radius-pill, 999px);
  border: 3px solid var(--kf-purple-deep);
  background: var(--color-surface, #fff);
  color: var(--kf-purple-deep);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
  text-decoration: none;
}
.kf-ori-faces .kfof-card-btn { color: var(--kf-purple-deep); font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; }
.kfof-card-btn--gold { background: linear-gradient(180deg, #ffd94d 0%, #f0b929 100%); }
/* "Face before": the bar's own control (.kfof-ibtn: white, 2 px lilac-deep border, the bar's radius, the bar's
   icon), at the card's 75 px */
.kfof-card-prev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 75px;
  min-width: 75px;
  margin: 0;
  padding: 0 16px;
  background: #fff;
  border: 2px solid var(--kf-lilac-deep);
  border-radius: var(--radius-md);
  line-height: 1.1;
}
.kf-ori-faces .kfof-card-prev { color: var(--kf-purple-deep); font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; }
.kfof-card-prev svg { width: 30px; height: 30px; flex: none; display: block; }
.kfof-card-w { display: none; white-space: nowrap; }
.kfof--tablet .kfof-card-w, .kfof--wide .kfof-card-w { display: inline; }
/* phones: the card is the panel's width; Ori above his bubble, the tail on the bubble's top edge; "Face before"
   a 75 px square with the arrow only, as in the bar under 600 px */
.kfof--phone .kfof-card { width: 100%; padding: 24px 16px 16px; }
.kfof--phone .kfof-card h2 { font-size: 1.6rem; }
.kfof--phone .kfof-card-ori { flex-direction: column; align-items: center; gap: 14px; margin-bottom: 16px; }
.kfof--phone .kfof-card-ori img { width: 96px; height: 96px; }
.kfof--phone .kfof-card-sayw { align-self: stretch; }
.kfof--phone .kfof-card-say { font-size: 1.35rem; line-height: 1.4; padding: 6px 14px; }
.kfof--phone .kfof-card.has-spk .kfof-card-say { padding-right: 50px; }
.kfof--phone .kfof-card-say::before { left: calc(50% - 9px); top: -11px; border-bottom: 0; border-top: 2px solid var(--kf-lilac); }
.kfof--phone .kfof-card-disc { top: calc(50% - 18px); width: 36px; height: 36px; }
.kfof--phone .kfof-card-disc > i { width: 24px; height: 24px; }
.kfof--phone .kfof-card-acts { grid-template-columns: 75px 1fr; }
.kfof--phone .kfof-card-prev { width: 75px; padding: 0; }
.kfof--phone.kfof--short .kfof-card-ori img { width: 64px; height: 64px; }
.kfof--phone.kfof--short .kfof-card-say { font-size: 1rem; line-height: 1.35; padding: 2px 12px; }
.kfof--phone.kfof--short .kfof-card.has-spk .kfof-card-say { padding-right: 48px; }
.kfof--phone.kfof--tiny .kfof-card { padding: 16px; }
.kfof--phone.kfof--tiny .kfof-card h2 { margin-bottom: 10px; }
.kfof--phone.kfof--tiny .kfof-card-ori { gap: 12px; margin-bottom: 12px; }
/* ladder step 4: compact */
.kfof-card.is-compact { padding: 16px; }
.kfof-card.is-compact h2 { font-size: 1.6rem; margin-bottom: 10px; }
.kfof-card.is-compact .kfof-card-ori { flex-direction: row; align-items: stretch; gap: 14px; margin-bottom: 12px; }
/* compact is the step for short boards: Ori stays beside his bubble also on a phone board (a phone on its side in
   the page), which would otherwise stack him above it and need more height than the window has */
.kfof-card.is-compact .kfof-card-sayw { align-self: stretch; }
.kfof-card.is-compact .kfof-card-say::before { left: -11px; top: calc(50% - 9px); border-top: 0; border-bottom: 2px solid var(--kf-lilac); }
.kfof-card.is-compact .kfof-card-ori img { width: 64px; height: 64px; }
.kfof-card.is-compact .kfof-card-say { font-size: 1rem; line-height: 1.35; padding: 2px 12px; }
.kfof-card.is-compact.has-spk .kfof-card-say { padding-right: 56px; }
.kfof-card.is-compact .kfof-card-acts { gap: 10px; }
/* while the card is open the bar's left button is hidden, not dimmed: the card carries the same arrow, and a dead
   twin under the dark ground looks live (Nova 42, 7). visibility keeps its place, so nothing moves on closing. */
.kf-ori-faces.kfof--card-open .kfof-bar .kfof-back,
.kf-ori-faces.kfof--card-open .kfof-bar .kfof-prev { visibility: hidden; }

.kfof-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 35; }
.kfof-confetti span {
  position: absolute;
  top: -14px;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  animation: kfof-fall 1.9s ease-in forwards;
}
@keyframes kfof-fall { to { transform: translateY(110vh) rotate(540deg); opacity: 0.2; } }

/* ---------- the page without scripts ----------
   The board keeps 60vh while its script has not drawn it. Without scripts nothing will: then the panel below
   is all there is, and the lilac is as tall as the line, the Back link and their padding (Nova 25, ruling 19).
   The noscript block holds real elements only when scripts are off, so :has() sees exactly that case. */
.kf-ori-faces:has(> noscript > .kfof-noscript),
.kf-ori-faces:has(> .kfof-noscript) { min-height: 0; padding: 0; background: none; overflow: visible; }
.kfof-noscript {
  background: var(--kf-lilac-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-text);
  max-width: 42rem;
  margin: 0 auto;
}
.kfof-noscript p { margin: 0 0 var(--space-3); }
.kfof-noscript a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 28px;
  border-radius: 999px;
  border: 3px solid var(--kf-purple-deep);
  background: #fff;
  color: var(--kf-purple-deep);
  font-family: var(--font-heading);
  font-weight: 800;
  text-decoration: none;
}

/* ---------- reduced motion: every swap at once, no nod, nothing grows ----------
   "none", not a very short duration: with a duration, things hidden through a
   parent step out one level per frame (Nova 14, section 9, note 0). */
@media (prefers-reduced-motion: reduce) {
  .kf-ori-faces, .kf-ori-faces *, .kf-ori-faces *::before, .kf-ori-faces *::after {
    animation: none !important;
    transition: none !important;
  }
  .kfof-tile:hover { transform: none !important; }
}

/* the board holds the focus for a moment while the disc is between two beats (kf-ori-faces.js paintReplay;
   Sage 45, item 1): no ring round the whole board (the site ring paints an outline AND a white shadow; both go), the disc gets the focus back as soon as it is drawn */
.kf-ori-faces[tabindex="-1"]:focus { outline: none; box-shadow: none; }
