/**
 * СЕДУМ ДЕНА · Игри (section 08, blue).
 *
 *   1. Masthead band of the section          5. Судоку
 *   2. Tiles (hub and front page)            6. Крстозбор
 *   3. Game page frame, tools, result        7. Осумнасочник
 *   4. Зборле and the Cyrillic keyboard      8. Sheet, toast, small parts
 *
 * The tiles of the hub and the front page are flat ruled columns (owner, 2026-11-26); the boards
 * may be more playful (PLATFORM-V3 §4). Mobile first; 740 / 1024 / 1150.
 */

.ed-igri {
  --g-ok: #1d7a46;
  --g-near: #d49a16;
  --g-near-on: #1f1603;
  --g-no: #6b6b6b;
  --g-r: 14px;
  --g-r-sm: 8px;
  --g-hi: color-mix(in srgb, var(--sd-c) 26%, #fff);
  --g-wash: color-mix(in srgb, var(--sd-c) 9%, #fff);
}

/* ------------------------------------------------------------------ 1. Masthead */

.ed-gmast {
  background: var(--sd-c-tint);
  border-bottom: 1px solid var(--ed-line);
}
.ed-gmast__inner { padding-top: var(--ed-s5); }
.ed-gmast__brand { min-width: 0; padding-bottom: var(--ed-s5); }
.ed-gmast__id { display: flex; align-items: flex-start; gap: var(--ed-s3); }
.ed-gmast__num {
  flex: none;
  margin: 0;
  padding-top: 0.45em;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-ui);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--sd-c-text);
}
.ed-gmast__title { min-width: 0; margin: 0; }
.ed-gmast__title a { display: inline-block; }
.ed-gmast__name {
  display: block;
  font-family: var(--ed-serif);
  font-stretch: var(--ed-display-width);
  font-size: clamp(2.75rem, 2.1rem + 2.6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--sd-c);
}
.ed-gmast__logo { display: block; line-height: 0; }
.ed-gmast__logo svg, .ed-gmast__logo img { display: block; width: auto; max-width: 100%; height: 36px; }
.ed-gmast__line {
  max-width: var(--ed-measure);
  margin: var(--ed-s3) 0 0;
  font-family: var(--ed-serif);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ed-ink-2);
  text-wrap: pretty;
}
/* On a game page the band is a slim bar: the board must stay high on a phone. */
.ed-gmast--game .ed-gmast__inner { padding-top: var(--ed-s3); }
.ed-gmast--game .ed-gmast__brand { padding-bottom: var(--ed-s2); }
.ed-gmast--game .ed-gmast__num { padding-top: 0.3em; }
.ed-gmast--game .ed-gmast__name { font-size: 1.75rem; line-height: 1; }
.ed-gmast--game .ed-gmast__logo svg, .ed-gmast--game .ed-gmast__logo img { height: 26px; }
.ed-gmast--game .ed-gmast__title a:hover .ed-gmast__name { color: var(--sd-c-text); }

.ed-gmast__tabs {
  min-width: 0;
  margin-inline: calc(-1 * var(--ed-gutter));
  border-top: 1px solid color-mix(in srgb, var(--sd-c) 18%, transparent);
}
.ed-gmast__tabs ul {
  display: flex;
  gap: var(--ed-s5);
  margin: 0;
  padding: 0 var(--ed-gutter);
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ed-gmast__tabs ul::-webkit-scrollbar { display: none; }
.ed-gmast__tabs li { flex: none; }
.ed-gmast__tab {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-ink-2);
  white-space: nowrap;
  box-shadow: inset 0 -3px 0 transparent;
  transition: color 0.12s var(--ed-ease), box-shadow 0.15s var(--ed-ease);
}
.ed-gmast__tab:hover { color: var(--ed-ink); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--sd-c) 35%, transparent); }
.ed-gmast__tab[aria-current] { font-weight: 700; color: var(--ed-ink); box-shadow: inset 0 -3px 0 var(--sd-c); }
.ed-gmast__tab:focus-visible { outline-offset: -2px; }

@media (min-width: 740px) {
  .ed-gmast__inner { padding-top: var(--ed-s6); }
  .ed-gmast__brand { padding-bottom: var(--ed-s6); }
  .ed-gmast__id { gap: var(--ed-s4); }
  .ed-gmast__line { font-size: 1.0625rem; }
  .ed-gmast__tabs { margin-inline: 0; }
  .ed-gmast__tabs ul { gap: var(--ed-s6); padding: 0; }
  .ed-gmast--game .ed-gmast__inner { padding-top: var(--ed-s4); }
  .ed-gmast--game .ed-gmast__brand { padding-bottom: var(--ed-s3); }
}

/* ------------------------------------------------------------------ 2. Tiles (hub and front page)
   Flat, in the language of the front page's section bands (home.css): no boxes, no fills, no
   shadows. Each game is a column divided from the next by a hairline: a small line pictogram in
   the section colour, the name in the headline face, one line on what it is, today's state in
   small sans. The whole column is one link; the name underlines on hover, as a story's headline. */

.ed-ghub { padding-block: var(--ed-s6) var(--ed-s8); }
.ed-ghub__list,
.ed-ghome__list {
  --g-col: var(--ed-home-col, var(--sd-line, var(--ed-line-2)));
  --g-pad: var(--ed-col-pad, 16px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(2 * var(--g-pad));
  row-gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ed-ghub__item,
.ed-ghome__item { position: relative; min-width: 0; }
/* Vertical hairlines between columns; on two columns a horizontal hairline between the rows. */
.ed-ghub__item::before,
.ed-ghome__item::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(-1 * var(--g-pad));
  border-left: 1px solid var(--g-col);
}
.ed-ghub__item:nth-child(odd)::before,
.ed-ghome__item:nth-child(odd)::before { content: none; }
.ed-ghub__item:nth-child(n + 3),
.ed-ghome__item:nth-child(n + 3) { margin-top: var(--ed-s4); padding-top: var(--ed-s4); border-top: 1px solid var(--g-col); }
.ed-ghub__item:nth-child(n + 3)::before,
.ed-ghome__item:nth-child(n + 3)::before { top: var(--ed-s4); }
@media (min-width: 740px) {
  .ed-ghub__list,
  .ed-ghome__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ed-ghub__item:nth-child(n)::before,
  .ed-ghome__item:nth-child(n)::before { content: ""; top: 0; }
  .ed-ghub__item:first-child::before,
  .ed-ghome__item:first-child::before { content: none; }
  .ed-ghub__item:nth-child(n + 3),
  .ed-ghome__item:nth-child(n + 3) { margin-top: 0; padding-top: 0; border-top: 0; }
}

.ed-gtile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 2px 0;
  color: var(--ed-ink);
  text-decoration: none;
}
.ed-gtile__art { display: block; margin-bottom: var(--ed-s2); color: var(--sd-c, var(--ed-ink)); line-height: 0; }
.ed-gpict { display: block; }
/* A line drawing: strokes in the section colour, the marked cells filled with it. */
.ed-gpict .is-on { fill: currentColor; }
.ed-gpict .is-half { fill: currentColor; fill-opacity: 0.35; }
.ed-gpict .is-line { stroke-width: 2.4; stroke-opacity: 0.4; }
.ed-gpict circle { fill: currentColor; stroke: none; }
.ed-gtile__kind {
  margin: 0 0 4px;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-c-text, var(--ed-ink-3));
}
.ed-gtile__name {
  margin: 0;
  font-family: var(--ed-head);
  font-size: var(--ed-fs-xs);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ed-ink);
}
/* The underline of a story's headline: a 1px line in the section colour draws in from the left. */
.ed-gtile__label {
  background-image: linear-gradient(var(--sd-c-text, currentColor), var(--sd-c-text, currentColor));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
}
.ed-gtile:hover .ed-gtile__label,
.ed-gtile:focus-visible .ed-gtile__label { background-size: 100% 1px; }
.ed-gtile:focus-visible { outline: 2px solid var(--sd-c-text, var(--ed-ink)); outline-offset: 4px; border-radius: 2px; }
.ed-gtile__text { margin: 6px 0 0; font-family: var(--ed-serif); font-size: 0.875rem; line-height: 1.4; color: var(--ed-ink-3); }
.ed-gtile__state {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
  margin: auto 0 0;
  padding-top: var(--ed-s2);
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ed-ink-3);
}
.ed-gtile__state > span + span::before { content: "·"; margin-right: 8px; font-weight: 400; color: var(--ed-ink-4, var(--ed-ink-3)); }
.ed-gtile__state > .ed-gtile__streak:empty { display: none; }
.ed-gtile__badge { color: var(--sd-c-text, var(--ed-ink)); }
.ed-gtile[data-state="won"] .ed-gtile__badge::before { content: "✓" / ""; margin-right: 4px; }
.ed-gtile[data-state="lost"] .ed-gtile__badge { color: var(--ed-ink-3); }
@media (min-width: 740px) {
  .ed-gtile__name { font-size: var(--ed-fs-sm); }
}
@media (prefers-reduced-motion: no-preference) {
  .ed-gtile__label { transition: background-size 180ms var(--ed-motion, ease); }
}
.ed-gtile:active .ed-gtile__label { background-size: 100% 1px; }

/* Front page: the band itself is .ed-home-sec (home.css); this only flattens the slot's wrapper
   (no wash, no glows, no padding of its own) so the band sits between its neighbours like any
   other band. */
.ed-home-slotsec.ed-home-slotsec--igri {
  margin-top: 0;
  padding: 0;
  border-image: none;
  clip-path: none;
  isolation: auto;
}
.ed-home-slotsec.ed-home-slotsec--igri::before,
.ed-home-slotsec.ed-home-slotsec--igri::after { content: none; }
.ed-home-slotsec--igri > .ed-slot { margin: 0; }
/* home.css gives the slot's section a 2px blue top border and no margin (for the old wash): the
   band keeps the ink rule and the spacing of every other band instead. */
.ed-home-slotsec.ed-home-slotsec--igri > .ed-slot > section.ed-ghome { margin-top: var(--ed-s6); border-top: 0; }
@media (min-width: 1024px) {
  .ed-home-slotsec.ed-home-slotsec--igri > .ed-slot > section.ed-ghome { margin-top: var(--ed-s8); }
}
@media (max-width: 1023.98px) {
  .ed-home .ed-home-slotsec--igri + .ed-home-sec { margin-top: var(--ed-s6); }
}
.ed-ghome .ed-ghome__line { margin: calc(-1 * var(--ed-s1)) 0 var(--ed-s4); }

/* The hub: the same columns, a step larger. Phones: one column, the pictogram at the left. */
.ed-ghub .ed-gtile__art { margin-bottom: var(--ed-s3); }
.ed-ghub .ed-gtile__name { font-size: var(--ed-fs-sm); }
.ed-ghub .ed-gtile__text { font-size: 0.9375rem; }
@media (max-width: 739.98px) {
  .ed-ghub__list { grid-template-columns: minmax(0, 1fr); }
  .ed-ghub__item::before { content: none; }
  .ed-ghub__item + .ed-ghub__item { margin-top: var(--ed-s4); padding-top: var(--ed-s4); border-top: 1px solid var(--g-col); }
  .ed-ghub .ed-gtile { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: var(--ed-s3); align-items: start; }
  .ed-ghub .ed-gtile > * { grid-column: 2; }
  .ed-ghub .ed-gtile > .ed-gtile__art { grid-column: 1; grid-row: 1 / span 4; margin: 2px 0 0; }
}
@media (min-width: 1024px) {
  .ed-ghub { padding-top: var(--ed-s8); }
  .ed-ghub .ed-gtile__name { font-size: var(--ed-fs-md, 1.5rem); }
}

/* ------------------------------------------------------------------ 3. Game page */

.ed-game { padding-block: var(--ed-s4) var(--ed-s8); }
.ed-game__head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ed-game__title {
  margin: 0;
  font-family: var(--ed-head);
  font-size: clamp(1.5rem, 0.9rem + 3vw, 2.375rem);
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}
.ed-game__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 6px 0 0;
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  color: var(--ed-ink-3);
}
.ed-game__no { font-weight: 700; color: var(--sd-c-text); }
.ed-game__tools { display: flex; flex: none; gap: 6px; }
.ed-game__heading { min-width: 0; }
.ed-gtool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--ed-line-2);
  border-radius: 999px;
  background: var(--ed-bg);
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ed-ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s var(--ed-ease), background-color 0.15s var(--ed-ease);
}
.ed-gtool:hover { border-color: var(--sd-c); background: var(--g-wash); }
.ed-gtool__ico { flex: none; color: var(--sd-c-text); }
.ed-gtool__label { display: none; }
@media (min-width: 740px) {
  .ed-gtool { padding: 0 16px 0 12px; }
  .ed-gtool__label { display: inline; }
}
.ed-game__archive {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  margin: var(--ed-s4) 0 0;
  padding: 10px 14px;
  border-radius: var(--g-r-sm);
  background: var(--sd-c-tint);
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  color: var(--ed-ink-2);
}
.ed-game__archive a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--sd-c-text); }
.ed-game__archive a:hover { text-decoration: underline; }
.ed-game__board { margin-top: var(--ed-s4); }
.ed-game__loading { margin: 0; padding: 48px 0; font-family: var(--ed-sans); font-size: 0.9375rem; color: var(--ed-ink-3); text-align: center; }
/* Space for the board before the script draws it (no layout shift). */
.ed-game--zborle .ed-game__board:not(.is-ready) { min-height: 600px; }
.ed-game--sudoku .ed-game__board:not(.is-ready) { min-height: 680px; }
.ed-game--krstozbor .ed-game__board:not(.is-ready) { min-height: 900px; }
.ed-game--osumnasochnik .ed-game__board:not(.is-ready) { min-height: 720px; }
.ed-igri__end:has(.ed-slot) { padding-bottom: var(--ed-s8); }

@media (min-width: 740px) {
  .ed-game { padding-top: var(--ed-s6); }
  .ed-game__board { margin-top: var(--ed-s6); }
}

/* HUD, level tabs, action buttons, shared by the games */
.ed-ghud { display: flex; justify-content: center; gap: 28px; margin-bottom: 12px; }
.ed-ghud__cell { display: flex; flex-direction: column; align-items: center; }
.ed-ghud__cell b { font-family: var(--ed-sans); font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ed-ghud__cell i { font-family: var(--ed-sans); font-size: var(--ed-fs-label); font-style: normal; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-ink-3); }

.ed-gtabs { display: flex; gap: 4px; max-width: 460px; margin: 0 auto 14px; padding: 4px; border-radius: 999px; background: var(--ed-bg-2); }
.ed-gtabs__btn {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ed-ink-2);
  cursor: pointer;
  touch-action: manipulation;
}
.ed-gtabs__btn[aria-pressed="true"] { background: var(--sd-c); color: var(--sd-on); }
.ed-gtabs__tick { margin-left: 6px; }

.ed-gacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ed-gacts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-gact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  border: 1px solid var(--ed-line);
  border-radius: var(--g-r-sm);
  background: var(--ed-bg);
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ed-ink-2);
  cursor: pointer;
  touch-action: manipulation;
}
.ed-gact:hover { border-color: var(--sd-c); }
.ed-gact[aria-pressed="true"] { border-color: var(--sd-c); background: var(--sd-c); color: var(--sd-on); }
.ed-gact__ico { font-size: 1.125rem; line-height: 1; }

/* Result */
.ed-game__after:empty { display: none; }
.ed-game__after { max-width: 640px; margin: var(--ed-s6) auto 0; }
.ed-gdone {
  padding: 20px;
  border-top: 3px solid var(--sd-c);
  border-radius: var(--g-r);
  background: var(--sd-c-tint);
}
.ed-gdone__title { margin: 0; font-family: var(--ed-head); font-size: 1.75rem; font-weight: 700; line-height: 1.1; outline: none; }
.ed-gdone.is-won .ed-gdone__title { color: var(--sd-c-text); }
.ed-gdone__line { margin: 6px 0 0; font-family: var(--ed-serif); font-size: 1rem; line-height: 1.45; color: var(--ed-ink-2); }
.ed-gstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.ed-gstats__cell { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; }
.ed-gstats dd { margin: 0; font-family: var(--ed-sans); font-size: 1.5rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ed-gstats dt { margin-top: 2px; font-family: var(--ed-sans); font-size: 0.6875rem; line-height: 1.25; color: var(--ed-ink-3); }
.ed-gdone__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ed-gbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ed-line-2);
  border-radius: 999px;
  background: var(--ed-bg);
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ed-ink);
  cursor: pointer;
  touch-action: manipulation;
}
.ed-gbtn:hover { border-color: var(--sd-c); }
.ed-gbtn--fill { border-color: var(--sd-c); background: var(--sd-c); color: var(--sd-on); }
.ed-gbtn--fill:hover { background: var(--sd-c-text); }
.ed-gdone__next { margin: 16px 0 0; font-family: var(--ed-sans); font-size: 0.9375rem; color: var(--ed-ink-2); }
.ed-gdone__next a { font-weight: 700; color: var(--sd-c-text); text-decoration: underline; text-underline-offset: 3px; }
.ed-gdone__clock { font-variant-numeric: tabular-nums; color: var(--ed-ink); }
.ed-gdone__more { margin: 20px 0 8px; font-family: var(--ed-sans); font-size: var(--ed-fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-ink-3); }
.ed-gdone__others { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ed-gdone__others a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--g-r-sm);
  background: var(--ed-bg);
  font-family: var(--ed-sans);
  font-size: 0.9375rem;
  font-weight: 600;
}
.ed-gdone__others a:hover { color: var(--sd-c-text); }
.ed-gdone__other-state { font-size: 0.75rem; font-weight: 600; color: var(--ed-ink-3); }
.ed-gdone__others a[data-state="won"] .ed-gdone__other-state { color: var(--sd-c-text); }
@media (min-width: 740px) {
  .ed-gdone { padding: 24px 28px; }
  .ed-gdone__others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ 4. Зборле and the keyboard */

.ed-zb { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ed-zb__board { display: grid; gap: 6px; width: min(100%, 320px, max(232px, calc((100svh - 500px) * 0.83))); }
.ed-zb__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ed-zb__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 2px solid var(--ed-line);
  border-radius: var(--g-r-sm);
  background: var(--ed-bg);
  font-family: var(--ed-sans);
  font-size: clamp(1.5rem, 1rem + 2.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ed-ink);
  user-select: none;
}
.ed-zb__tile[data-state="tbd"] { border-color: var(--ed-ink-4); }
.ed-zb__tile[data-state="ok"], .ed-gkeys__key[data-state="ok"] { border-color: var(--g-ok); background: var(--g-ok); color: #fff; }
.ed-zb__tile[data-state="near"], .ed-gkeys__key[data-state="near"] { border-color: var(--g-near); background: var(--g-near); color: var(--g-near-on); }
.ed-zb__tile[data-state="no"], .ed-gkeys__key[data-state="no"] { border-color: var(--g-no); background: var(--g-no); color: #fff; }
.ed-zb__row.is-flip .ed-zb__tile { animation: ed-zb-flip 0.42s var(--ed-ease) both; }
.ed-zb__row.is-flip .ed-zb__tile:nth-child(2) { animation-delay: 0.12s; }
.ed-zb__row.is-flip .ed-zb__tile:nth-child(3) { animation-delay: 0.24s; }
.ed-zb__row.is-flip .ed-zb__tile:nth-child(4) { animation-delay: 0.36s; }
.ed-zb__row.is-flip .ed-zb__tile:nth-child(5) { animation-delay: 0.48s; }
.ed-zb__row.is-shake { animation: ed-zb-shake 0.35s linear; }
@keyframes ed-zb-flip {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}
@keyframes ed-zb-shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.ed-gkeys { display: flex; flex-direction: column; gap: 6px; width: min(100%, 520px); user-select: none; }
.ed-gkeys__row { display: flex; gap: 4px; }
.ed-gkeys__key {
  flex: 1 1 0;
  min-width: 0;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--ed-bg-3);
  font-family: var(--ed-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ed-ink);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ed-gkeys__key:hover { background: color-mix(in srgb, var(--ed-bg-3) 80%, var(--ed-ink-4)); }
.ed-gkeys__key:active { transform: translateY(1px); }
.ed-gkeys__key--wide { flex-grow: 1.6; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.ed-gkeys__key[data-k="back"] { font-size: 1.25rem; }
@media (min-width: 740px) {
  .ed-zb__board { width: min(340px, max(260px, calc((100svh - 420px) * 0.83))); }
  .ed-gkeys__row { gap: 6px; }
  .ed-gkeys__key { min-height: 58px; }
}

/* ------------------------------------------------------------------ 5. Судоку */

.ed-sdk { max-width: 860px; margin: 0 auto; }
.ed-sdk__play { display: grid; gap: 16px; justify-items: center; }
.ed-sdk__grid {
  display: grid;
  width: min(100%, 460px);
  border: 2px solid var(--ed-ink);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ed-bg);
}
.ed-sdk__row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.ed-sdk__cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--ed-line-2);
  border-bottom: 1px solid var(--ed-line-2);
  background: var(--ed-bg);
  font-family: var(--ed-sans);
  font-size: clamp(1.125rem, 0.8rem + 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--sd-c-text);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ed-sdk__cell:nth-child(3n) { border-right: 2px solid var(--ed-ink); }
.ed-sdk__cell:last-child { border-right: 0; }
.ed-sdk__row:nth-child(3n) .ed-sdk__cell { border-bottom: 2px solid var(--ed-ink); }
.ed-sdk__row:last-child .ed-sdk__cell { border-bottom: 0; }
.ed-sdk__cell.is-given { font-weight: 700; color: var(--ed-ink); }
.ed-sdk__cell.is-peer { background: var(--sd-c-tint); }
.ed-sdk__cell.is-same { background: color-mix(in srgb, var(--sd-c) 16%, #fff); }
.ed-sdk__cell.is-sel { background: var(--g-hi); }
.ed-sdk__cell.is-wrong { color: var(--ed-red); background: color-mix(in srgb, var(--ed-red) 9%, #fff); }
.ed-sdk__cell.is-sel.is-wrong { background: color-mix(in srgb, var(--ed-red) 18%, #fff); }
.ed-sdk__cell:focus-visible { outline: 2px solid var(--sd-c); outline-offset: -3px; }
.ed-sdk__notes { position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr); font-size: clamp(0.5rem, 0.35rem + 0.8vw, 0.6875rem); font-weight: 600; color: var(--ed-ink-3); }
.ed-sdk__notes span { display: flex; align-items: center; justify-content: center; }
.ed-sdk__side { display: grid; gap: 12px; width: min(100%, 460px); }
.ed-sdk__pad { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.ed-sdk__num {
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: var(--g-r-sm);
  background: var(--g-wash);
  font-family: var(--ed-sans);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--sd-c-text);
  cursor: pointer;
  touch-action: manipulation;
}
.ed-sdk__num:hover { background: var(--g-hi); }
.ed-sdk__num:disabled { opacity: 0.3; cursor: default; }
.ed-sdk__stage.is-notes .ed-sdk__num { background: var(--ed-bg); box-shadow: inset 0 0 0 1px var(--ed-line-2); font-size: 1rem; color: var(--ed-ink-3); }
@media (min-width: 740px) {
  .ed-sdk__play { grid-template-columns: minmax(0, 460px) 260px; justify-content: center; align-items: start; gap: 28px; }
  .ed-sdk__side { width: 260px; }
  .ed-sdk__pad { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ed-sdk__num { min-height: 72px; font-size: 1.625rem; }
}

/* ------------------------------------------------------------------ 6. Крстозбор */

.ed-kz { display: grid; gap: 24px; max-width: 1100px; margin: 0 auto; }
.ed-kz__main { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.ed-gsr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 400px) { .ed-gkeys__row { gap: 3px; } }
.ed-kz__bar {
  scroll-margin-top: 72px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  width: min(100%, 520px);
  min-height: 60px;
  border-radius: var(--g-r-sm);
  background: var(--g-wash);
}
.ed-kz__bar-nav {
  min-height: 56px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: var(--sd-c-text);
  cursor: pointer;
  touch-action: manipulation;
}
.ed-kz__bar-clue { margin: 0; padding: 6px 4px; font-family: var(--ed-serif); font-size: 0.9375rem; line-height: 1.3; }
.ed-kz__bar-num { display: block; font-family: var(--ed-sans); font-size: var(--ed-fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sd-c-text); }
.ed-kz__grid { display: grid; gap: 3px; width: min(100%, 520px); }
.ed-kz__void { aspect-ratio: 1; }
.ed-kz__cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--ed-bg);
  box-shadow: inset 0 0 0 1.5px var(--ed-ink-4);
  font-family: var(--ed-sans);
  font-size: clamp(0.9375rem, 0.6rem + 1.8vw, 1.375rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ed-ink);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ed-kz__cell.is-word { background: color-mix(in srgb, var(--sd-c) 12%, #fff); }
.ed-kz__cell.is-sel { background: var(--g-hi); box-shadow: inset 0 0 0 2px var(--sd-c); }
.ed-kz__cell.is-wrong .ed-kz__ch { color: var(--ed-red); }
.ed-kz__cell.is-wrong::after { content: ""; position: absolute; inset: auto 20% 12% 20%; height: 2px; background: var(--ed-red); }
.ed-kz__cell.is-revealed .ed-kz__ch { color: var(--sd-c-text); }
.ed-kz__cell.is-revealed::before { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--sd-c); }
.ed-kz__cell:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 1px; }
.ed-kz__num { position: absolute; top: 2px; left: 3px; font-size: clamp(0.5rem, 0.35rem + 0.6vw, 0.625rem); font-weight: 600; line-height: 1; color: var(--ed-ink-3); }
.ed-kz .ed-gacts { width: min(100%, 520px); }
.ed-kz .ed-gkeys { width: min(100%, 520px); }
.ed-kz__lists { display: grid; gap: 20px; min-width: 0; }
.ed-kz__group-title { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--sd-c); font-family: var(--ed-sans); font-size: var(--ed-fs-ui); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ed-kz__list { margin: 0; padding: 0; list-style: none; }
.ed-kz__clue {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  align-items: baseline;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--ed-line);
  background: transparent;
  font-family: var(--ed-serif);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-align: left;
  color: var(--ed-ink);
  cursor: pointer;
}
.ed-kz__clue b { font-family: var(--ed-sans); font-weight: 700; color: var(--sd-c-text); }
.ed-kz__clue:hover { background: var(--sd-c-tint); }
.ed-kz__clue.is-cur { background: var(--g-wash); box-shadow: inset 3px 0 0 var(--sd-c); }
.ed-kz__clue.is-full { color: var(--ed-ink-4); }
@media (min-width: 740px) {
  .ed-kz__lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ed-kz { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); align-items: start; gap: 40px; }
  .ed-kz__main { position: sticky; top: calc(var(--ed-top) + 16px); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .ed-kz .ed-gkeys { display: none; }
}

/* ------------------------------------------------------------------ 7. Осумнасочник */

.ed-os { max-width: 1000px; margin: 0 auto; }
.ed-os__theme { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0 0 12px; font-family: var(--ed-head); font-size: 1.375rem; font-weight: 700; }
.ed-os__theme-label { font-family: var(--ed-sans); font-size: var(--ed-fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sd-c-text); }
.ed-os__play { display: grid; gap: 16px; justify-items: center; }
.ed-os__board {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1;
  padding: 6px;
  border-radius: var(--g-r);
  background: var(--g-wash);
}
.ed-os__lines { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); pointer-events: none; }
.ed-os__lines line { stroke-linecap: round; stroke-width: 0.8; }
.ed-os__found { opacity: 0.32; }
.ed-os__sel { stroke: var(--sd-c); opacity: 0.4; }
.ed-os__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
  outline: none;
}
.ed-os__grid:focus-visible { box-shadow: 0 0 0 2px var(--sd-c); border-radius: 6px; }
.ed-os__lines { z-index: 2; mix-blend-mode: multiply; }
.ed-os__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ed-sans);
  font-size: clamp(0.9375rem, 0.55rem + 1.9vw, 1.375rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ed-ink);
}
.ed-os__cell.is-cursor { border-radius: 50%; box-shadow: inset 0 0 0 2px var(--sd-c); }
.ed-os__words { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; width: min(100%, 540px); margin: 0; padding: 0; list-style: none; }
.ed-os__word {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ed-bg-2);
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ed-ink);
}
.ed-os__word.is-found { background: transparent; color: var(--ed-ink-4); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--sd-c); }
@media (min-width: 1024px) {
  .ed-os__play { grid-template-columns: minmax(0, 540px) 240px; justify-content: center; align-items: start; gap: 32px; }
  .ed-os__words { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; width: auto; gap: 4px; }
  .ed-os__word { padding: 8px 14px; border-radius: var(--g-r-sm); }
}

/* ------------------------------------------------------------------ 8. Sheet, toast, small parts */

.ed-gsheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgb(18 18 18 / 0.42);
  animation: ed-g-fade 0.18s var(--ed-ease);
}
.ed-gsheet__panel {
  --sd-c: #2471D2; --sd-c-text: #1D62BA; --sd-on: #fff; --sd-c-tint: color-mix(in srgb, #2471D2 7%, #fff);
  width: 100%;
  max-height: 86vh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 28px;
  border-radius: 14px 14px 0 0;
  background: var(--ed-bg);
  outline: none;
}
.ed-gsheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ed-gsheet__title { margin: 0; font-family: var(--ed-head); font-size: 1.375rem; font-weight: 700; line-height: 1.15; }
.ed-gsheet__close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ed-bg-2);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ed-ink);
  cursor: pointer;
}
.ed-gsheet__close:hover { background: var(--ed-bg-3); }
.ed-gsheet-open { overflow: hidden; }
@media (min-width: 740px) {
  .ed-gsheet { align-items: center; padding: 24px; }
  .ed-gsheet__panel { max-width: 520px; padding: 22px 26px 28px; border-radius: 14px; }
}
@keyframes ed-g-fade { from { opacity: 0; } to { opacity: 1; } }

.ed-gprose p { margin: 0 0 12px; font-family: var(--ed-serif); font-size: 1rem; line-height: 1.5; color: var(--ed-ink-2); }
.ed-gnote { margin: 12px 0 0; font-family: var(--ed-sans); font-size: 0.8125rem; line-height: 1.45; color: var(--ed-ink-3); }
.ed-gsub { margin: 20px 0 8px; font-family: var(--ed-sans); font-size: var(--ed-fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ed-ink-3); }
.ed-gsheet .ed-gstats { margin-top: 0; }
.ed-gbars { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ed-gbars li { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 8px; }
.ed-gbars__label { font-family: var(--ed-sans); font-size: 0.8125rem; font-weight: 700; }
.ed-gbars__bar { display: block; min-height: 22px; padding: 2px 8px; border-radius: 4px; background: var(--sd-c); font-family: var(--ed-sans); font-size: 0.75rem; font-weight: 700; line-height: 18px; text-align: right; color: var(--sd-on); }
.ed-gchoices { display: grid; gap: 8px; }
.ed-gchoices .ed-btn { min-height: 48px; font-size: 0.8125rem; }

.ed-garch { margin: 12px 0 0; padding: 0; list-style: none; }
.ed-garch__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 4px;
  border-bottom: 1px solid var(--ed-line);
  font-family: var(--ed-sans);
  font-size: 0.9375rem;
}
.ed-garch__link:hover .ed-garch__date { color: var(--sd-c-text); }
.ed-garch__link[aria-current] { font-weight: 700; }
.ed-garch__no { font-size: 0.75rem; color: var(--ed-ink-4); }
.ed-garch__state { min-width: 92px; font-size: 0.75rem; font-weight: 600; color: var(--ed-ink-3); text-align: right; }
.ed-garch__link[data-state="won"] .ed-garch__state { color: var(--sd-c-text); }
.ed-garch__link[data-state="won"] .ed-garch__state::before { content: "✓ "; }

.ed-gtoast {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 1100;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--g-r-sm, 8px);
  background: var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s var(--ed-ease), transform 0.18s var(--ed-ease);
}
.ed-gtoast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ed-gcopy { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; }

@media (prefers-reduced-motion: reduce) {
  .ed-zb__row.is-flip .ed-zb__tile, .ed-zb__row.is-shake, .ed-gsheet { animation: none; }
  .ed-gtoast { transition: none; }
}

@media (max-width: 379px) {
  .ed-game__title { font-size: 1.375rem; }
  .ed-game__tools { gap: 4px; }
}

/* ------------------------------------------------------------------ 9. Washes and motion (platform pass)
   The hub and the game pages sit on the blue wash; the masthead starts a step stronger and carries
   a faint dot grid (a puzzle's paper) that drifts with the scroll on desktops. Tiles lift 2px on
   hover; the result panel rises once with a small check. The board itself never moves. */

.ed-igri {
  --g-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --g-wash-0: var(--sd-c-wash, color-mix(in srgb, var(--sd-c) 4%, #fff));
  --g-wash-2: var(--sd-c-wash-2, color-mix(in srgb, var(--sd-c) 9%, #fff));
  background: var(--g-wash-0);
}

.ed-gmast {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--g-wash-2) 0%, var(--g-wash-0) 100%);
}
.ed-gmast__bg {
  position: absolute;
  z-index: -1;
  inset: -16px 0;
  pointer-events: none;
}
.ed-gmast__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--sd-c) 26%, transparent) 1.1px, transparent 1.6px);
  background-size: 18px 18px;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 92%);
  mask-image: linear-gradient(100deg, transparent 38%, #000 92%);
  opacity: 0.8;
}
@media (max-width: 739px) {
  /* Only the top right corner on a phone, so no dot sits under the line or the tabs. */
  .ed-gmast__grid { -webkit-mask-image: radial-gradient(70% 55% at 100% 0%, #000, transparent 100%); mask-image: radial-gradient(70% 55% at 100% 0%, #000, transparent 100%); opacity: 0.5; }
}

/* The bridges under the games close the wash with a white band. */
.ed-igri__end {
  padding-bottom: var(--ed-s8);
  border-image: linear-gradient(var(--ed-bg), var(--ed-bg)) fill 0 // 0 100vmax;
}

/* The result: a white card on the wash; rises once; a won game gets a small check beside its title. */
.ed-gdone { background: var(--ed-bg); border: 1px solid color-mix(in srgb, var(--sd-c) 18%, var(--ed-line)); border-top: 3px solid var(--sd-c); }
.ed-gdone__others a { background: var(--g-wash-0); transition: background-color 0.15s var(--ed-ease), color 0.15s var(--ed-ease); }
.ed-gdone__others a:hover { background: var(--g-wash-2); }
.ed-gdone { animation: ed-g-rise 0.45s var(--g-ease) both; }
.ed-gdone .ed-gstats__cell { animation: ed-g-rise 0.4s var(--g-ease) both; }
.ed-gdone .ed-gstats__cell:nth-child(1) { animation-delay: 0.12s; }
.ed-gdone .ed-gstats__cell:nth-child(2) { animation-delay: 0.18s; }
.ed-gdone .ed-gstats__cell:nth-child(3) { animation-delay: 0.24s; }
.ed-gdone .ed-gstats__cell:nth-child(4) { animation-delay: 0.3s; }
.ed-gdone.is-won .ed-gdone__title::before {
  content: "✓" / "";
  display: inline-grid;
  place-items: center;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.35em;
  border-radius: 50%;
  background: var(--sd-c);
  color: var(--sd-on);
  font-family: var(--ed-sans);
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.14em;
  animation: ed-g-pop 0.5s var(--g-ease) 0.2s both;
}
@keyframes ed-g-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ed-g-pop { 0% { opacity: 0; transform: scale(0.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .ed-gdone, .ed-gdone .ed-gstats__cell, .ed-gdone.is-won .ed-gdone__title::before { animation: none; }
}
@media print {
  .ed-igri, .ed-gmast { background: none; }
  .ed-gmast__bg { display: none; }
}

/* ------------------------------------------------------------------ 10. Final polish (owner, 2026-11-26)
   One masthead for every section: the name alone in the display face over a rule in the section
   colour, the italic line, then the tabs in the same size and weight as the other fronts (archive.css
   .ed-mast); only the colour differs. The blue page top is derived in oklch, faded in oklab (a faint cyan glow in the
   upper right corner), tiles get real depth, buttons press. The board itself never moves. */

.ed-igri {
  --g-dur: 520ms;
  --g-fast: 180ms;
  --g-rule: color-mix(in srgb, var(--sd-c) 20%, var(--ed-line));
  --g-glow: radial-gradient(55% 120% at 100% 0%, rgb(40 160 220 / 0.10), transparent 70%);
  --g-shadow: 0 1px 2px rgb(16 42 84 / 0.05), 0 2px 6px rgb(16 42 84 / 0.04);
  --g-shadow-up: 0 2px 4px rgb(16 42 84 / 0.06), 0 6px 20px rgb(16 42 84 / 0.10);
  background: linear-gradient(180deg, var(--g-wash-0) 0, var(--g-wash-0) 70%, var(--ed-bg) 100%);
}
@supports (color: oklch(from red l c h)) {
  .ed-igri {
    --g-rule: color-mix(in oklab, var(--sd-c) 20%, var(--ed-line));
    /* The section blue turned 25 degrees towards cyan, as a soft glow in the corner. */
    --g-glow: radial-gradient(55% 120% at 100% 0%, oklch(from var(--sd-c) 0.84 0.09 calc(h - 25) / 0.30), transparent 70%);
    background: linear-gradient(180deg in oklab, var(--g-wash-0) 0, var(--g-wash-0) 70%, var(--ed-bg) 100%);
  }
  .ed-gmast { background: var(--g-glow), linear-gradient(180deg in oklab, var(--g-wash-2) 0%, var(--g-wash-0) 100%); }
}

/* ---- The masthead, as on every other front. */
.ed-gmast { border-bottom: 0; }
.ed-gmast__inner { padding-top: var(--ed-s3); }
.ed-gmast__brand { padding-bottom: var(--ed-s4); }
.ed-gmast__name {
  display: inline-block;
  padding-bottom: 6px;
  font-size: clamp(2.5rem, 2.1rem + 1.4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--sd-c-text);
  border-bottom: 2px solid var(--sd-c);
  transition: color var(--g-fast) var(--g-ease);
}
.ed-gmast__title a:hover .ed-gmast__name { color: var(--ed-ink); }
.ed-gmast__line {
  margin-top: var(--ed-s2);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ed-ink-3);
}
.ed-gmast--game .ed-gmast__name { padding-bottom: 4px; font-size: 1.75rem; }
.ed-gmast__tabs {
  border-top: 1px solid var(--g-rule);
  border-bottom: 1px solid var(--g-rule);
}
.ed-gmast__tab {
  position: relative;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none;
  transition: color var(--g-fast) var(--g-ease);
}
.ed-gmast__tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--sd-c);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--g-fast) var(--g-ease), opacity var(--g-fast) var(--g-ease);
}
.ed-gmast__tab:hover { color: var(--ed-ink); box-shadow: none; }
.ed-gmast__tab:hover::after { opacity: 0.4; transform: scaleX(1); }
.ed-gmast__tab[aria-current] { color: var(--ed-ink); box-shadow: none; }
.ed-gmast__tab[aria-current]::after { opacity: 1; transform: scaleX(1); }
.ed-gmast__tab:active { transform: translateY(1px); }
@media (min-width: 740px) {
  .ed-gmast__inner { padding-top: var(--ed-s4); }
  .ed-gmast__brand { padding-bottom: var(--ed-s4); }
  .ed-gmast__line { font-size: 1rem; }
  .ed-gmast__tabs ul { gap: var(--ed-s5); }
  .ed-gmast--game .ed-gmast__inner { padding-top: var(--ed-s3); }
  .ed-gmast--game .ed-gmast__brand { padding-bottom: var(--ed-s3); }
}

/* ---- "You are here" above the name, as on the other fronts (Насловна / Игри / the game). */
.ed-gmast .ed-breadcrumbs { margin-bottom: var(--ed-s1); }
.ed-gmast .ed-breadcrumbs ol { align-items: center; }
.ed-gmast .ed-breadcrumbs a:hover { color: var(--sd-c-text); }

.ed-ghub__about { padding-top: var(--ed-s4); border-top: 1px solid var(--g-rule); }

/* ---- Game page: calm; the head on a rule of the section colour, the tools press. */
.ed-game__head { padding-bottom: var(--ed-s3); border-bottom: 1px solid var(--g-rule); }
.ed-gtool,
.ed-gbtn { transition: border-color var(--g-fast) var(--g-ease), background-color var(--g-fast) var(--g-ease), transform var(--g-fast) var(--g-ease); }
.ed-gtool:active,
.ed-gbtn:active { transform: scale(0.96); }
.ed-gtool:focus-visible,
.ed-gbtn:focus-visible { outline: 2px solid var(--sd-c-text); outline-offset: 2px; }
.ed-gdone { box-shadow: var(--g-shadow-up); }

/* The bridges under the games: a quiet band that fades in from the wash. */
.ed-igri__end { border-image: linear-gradient(180deg, var(--g-wash-0), var(--ed-bg) 120px) fill 0 // 0 100vmax; }

@media (prefers-reduced-motion: reduce) {
  .ed-gmast__name, .ed-gmast__tab, .ed-gmast__tab::after,
  .ed-gtool, .ed-gbtn { transition: none; }
  .ed-gtool:active, .ed-gbtn:active, .ed-gmast__tab:active { transform: none; }
}
@media print {
  .ed-igri { background: none; }
  .ed-gdone { box-shadow: none; }
}

/* The shared section masthead (chrome.css .ed-smast) on the games surface: from the header's wash-2
   into the page's own wash, so no seam shows under the strip. */
.ed-igri > .ed-smast { background: var(--g-wash-0); background: linear-gradient(180deg, var(--g-wash-2) 0%, var(--g-wash-0) 100%); }

/* ------------------------------------------------------------------ 11. Play first (round 6, 2026-11-26)
   Phones: the shared masthead shrinks to one line on a game page («Игри» and the four games), the
   game's title and number share a line, so the board starts high and the keyboard fits the screen.
   A still outline of the board while the data loads. After the finish the controls step aside and
   the result sits right under the board. */

@media (max-width: 739px) {
  .ed-igri--game > .ed-smast .ed-smast__inner { padding-top: 4px; }
  .ed-igri--game > .ed-smast .ed-smast__row { display: flex; align-items: center; min-width: 0; }
  .ed-igri--game > .ed-smast .ed-smast__title { flex: none; padding-right: 10px; font-size: 1.5rem; line-height: 1; }
  /* The games scroll in their own box that starts after a hairline, so a scrolled word never runs
     into the name. */
  .ed-igri--game > .ed-smast .ed-smast__nav {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 calc(-1 * var(--ed-gutter)) 0 0;
    padding-left: 12px;
    border-left: 1px solid var(--sd-line, var(--ed-line));
  }
  .ed-igri--game > .ed-smast .ed-smast__subs { padding: 0 var(--ed-gutter) 0 0; }
  .ed-igri--game > .ed-smast .ed-smast__sub { font-size: 1rem; }
  .ed-igri--game > .ed-smast .ed-smast__rule { margin-top: 2px; }

  .ed-igri--game .ed-game { padding-top: 10px; }
  .ed-igri--game .ed-game__head { padding-bottom: 8px; }
  .ed-igri--game .ed-game__heading { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .ed-igri--game .ed-game__title { font-size: 1.5rem; }
  .ed-igri--game .ed-game__meta { margin: 0; }
  .ed-igri--game .ed-game__board { margin-top: 10px; }
  .ed-game .ed-ghud { margin-bottom: 8px; }
  .ed-zb { gap: 14px; }
  .ed-zb__board { width: min(100%, 320px, max(232px, calc((100svh - 440px) * 0.83))); }
}
@media (max-width: 379px) {
  .ed-igri--game .ed-game__title { font-size: 1.375rem; }
}

/* The loading outline: the board's own shape in the section's hairline, no text, no motion. */
.ed-game__loading:has(.ed-gskel) { padding: 0; }
.ed-gskel { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ed-gskel i { display: block; }
.ed-gskel.ed-zb .ed-zb__tile { border-color: var(--g-rule, var(--ed-line)); }
.ed-gskel__keys { width: min(100%, 520px); height: 162px; border-radius: 6px; background: var(--ed-bg-2); opacity: 0.6; }
.ed-gskel__bar { width: min(100%, 460px); height: 48px; border-radius: 999px; background: var(--ed-bg-2); }
.ed-gskel__sq {
  --n: 9;
  width: min(100%, 460px);
  aspect-ratio: 1;
  border: 2px solid var(--g-rule, var(--ed-line));
  border-radius: 6px;
  background:
    linear-gradient(to right, var(--g-rule, var(--ed-line)) 1px, transparent 1px) 0 0 / calc(100% / var(--n)) 100%,
    linear-gradient(to bottom, var(--g-rule, var(--ed-line)) 1px, transparent 1px) 0 0 / 100% calc(100% / var(--n)),
    var(--ed-bg);
}
.ed-gskel--krstozbor .ed-gskel__bar { width: min(100%, 520px); height: 52px; border-radius: var(--g-r-sm); background: var(--g-wash); }
.ed-gskel--krstozbor .ed-gskel__sq { --n: 11; width: min(100%, 520px); border: 0; background: var(--g-wash); opacity: 0.7; }
.ed-gskel--osumnasochnik .ed-gskel__bar { width: 220px; height: 28px; border-radius: 4px; }
.ed-gskel--osumnasochnik .ed-gskel__sq { width: min(100%, 540px); border: 0; border-radius: var(--g-r); background: var(--g-wash); }
@media (min-width: 740px) {
  .ed-gskel__keys { height: 186px; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .ed-gskel--krstozbor { align-items: flex-start; }
}

/* Крстозбор: the time sits in the clue bar on phones and tablets; the keyboard follows the grid and
   stays at the bottom edge while the grid is in view. */
.ed-kz__bar { grid-template-columns: 44px minmax(0, 1fr) auto 44px; }
.ed-kz__bar > .ed-kz__bar-nav:last-child { grid-column: 4; }
.ed-kz__bar-time {
  padding: 4px 6px;
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ed-ink-3);
}
.ed-kz__after { align-self: stretch; }
.ed-kz__after:empty { display: none; }
.ed-kz__after .ed-game__after { margin-top: 8px; }
@media (max-width: 1023px) {
  .ed-kz .ed-ghud { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ed-kz__main { gap: 8px; }
  .ed-kz__bar { min-height: 52px; }
  .ed-kz__bar-nav { min-height: 50px; }
  .ed-kz__main > .ed-gkeys {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--g-wash-0, var(--ed-bg));
    box-shadow: 0 -1px 0 var(--g-rule, var(--ed-line));
  }
}
@media (max-width: 739px) {
  .ed-kz__main > .ed-gkeys { width: calc(100% + 2 * var(--ed-gutter)); margin-inline: calc(-1 * var(--ed-gutter)); padding-inline: 4px; }
}
@media (min-width: 1024px) {
  .ed-kz__bar-time { display: none; }
}

/* After the finish: no keyboard, no actions, no number pad; the result under the board. */
.ed-zb.is-done .ed-gkeys,
.ed-kz.is-done .ed-gkeys,
.ed-kz.is-done .ed-gacts,
.ed-sdk__stage.is-done .ed-sdk__side { display: none; }
.ed-kz.is-done .ed-kz__main { position: static; }
@media (min-width: 740px) {
  .ed-sdk__stage.is-done .ed-sdk__play { grid-template-columns: minmax(0, 460px); }
}

/* Small phones: wider keys (3px gutters, the row runs to the screen edges). */
@media (max-width: 379px) {
  .ed-gkeys { gap: 5px; }
  .ed-gkeys__row { gap: 3px; }
  .ed-zb > .ed-gkeys { width: calc(100% + 2 * var(--ed-gutter) - 8px); margin-inline: calc(4px - var(--ed-gutter)); }
}

/* Осумнасочник: the first letter of a tap-tap selection stands out. */
.ed-os__cell { transition: transform var(--g-fast, 180ms) var(--g-ease, ease); }
.ed-os__cell.is-start { position: relative; z-index: 3; border-radius: 50%; background: var(--sd-c); color: var(--sd-on); transform: scale(1.2); }

/* The hub: today's number over the tiles, one quiet note across the full width under them. */
.ed-ghub__kicker {
  margin: 0 0 var(--ed-s3);
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-c-text);
}
.ed-ghub__note { max-width: none; margin-top: var(--ed-s5); }

@media (prefers-reduced-motion: reduce) {
  .ed-os__cell { transition: none; }
}
/* The result inside the crossword's narrow column: the other games one under another. */
.ed-kz__after .ed-gdone__others { grid-template-columns: minmax(0, 1fr); }
