:root {
  --st-bg: #07140f;
  --st-bg-soft: #0d2118;
  --st-panel: rgba(18, 43, 32, 0.82);
  --st-panel-solid: #112b20;
  --st-paper: #f7f3e8;
  --st-ink: #122119;
  --st-muted: #aabbb2;
  --st-gold: #dfbc72;
  --st-gold-soft: #f2dfb5;
  --st-green: #2b7b58;
  --st-mint: #8fd8b6;
  --st-red: #dd6b66;
  --st-line: rgba(236, 217, 171, 0.18);
  --st-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

.stolbcy-page,
.stolbcy-page * {
  box-sizing: border-box;
}

.stolbcy-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--st-paper);
  background:
    radial-gradient(circle at 9% 91%, rgba(43, 123, 88, 0.42), transparent 32rem),
    radial-gradient(circle at 94% 5%, rgba(223, 188, 114, 0.13), transparent 30rem),
    linear-gradient(135deg, #06130e 0%, #081710 55%, #0d1d15 100%) !important;
  font-family: Inter, Avenir, "Helvetica Neue", Arial, sans-serif !important;
}

.stolbcy-page::before,
.stolbcy-page::after {
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(223, 188, 114, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.stolbcy-page::before {
  top: -270px;
  right: -110px;
}

.stolbcy-page::after {
  bottom: -320px;
  left: -120px;
}

.stolbcy-page button,
.stolbcy-page input {
  font: inherit;
}

.stolbcy-page button,
.stolbcy-page summary,
.stolbcy-page a {
  -webkit-tap-highlight-color: transparent;
}

.stolbcy-page a {
  color: inherit;
  text-decoration: none;
}

.exercise-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 54px;
}

.exercise-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 3vw, 40px);
  border-bottom: 1px solid var(--st-line);
}

.exercise-header > .language-switcher {
  margin-left: auto;
}

.brand-mark,
.exercise-nav,
.exercise-nav a {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 12px;
}

.brand-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(223, 188, 114, 0.32);
  border-radius: 14px;
  color: var(--st-gold-soft);
  background: rgba(255, 255, 255, 0.055);
}

.brand-mark > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark small {
  color: var(--st-gold);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.brand-mark strong {
  font-size: 14px;
  font-weight: 720;
}

.exercise-nav {
  gap: 9px;
}

.exercise-nav a {
  min-height: 42px;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  color: #dce6e0;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.exercise-nav a:first-child {
  width: 42px;
  padding: 0;
}

.exercise-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 188, 114, 0.46);
  background: rgba(255, 255, 255, 0.09);
}

.exercise-main {
  padding-top: clamp(34px, 5vw, 68px);
}

.exercise-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 38px;
}

.intro-copy {
  max-width: 690px;
}

.eyebrow,
.board-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--st-gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-copy h1 {
  max-width: 760px;
  margin: 13px 0 10px;
  color: var(--st-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.intro-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--st-muted);
  font-size: 16px;
  line-height: 1.7;
}

.intro-actions {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.settings-menu {
  position: relative;
}

.settings-menu > summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  color: #dfe8e3;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.settings-menu > summary::-webkit-details-marker {
  display: none;
}

.settings-menu[open] > summary,
.settings-menu > summary:hover {
  border-color: rgba(223, 188, 114, 0.5);
  color: var(--st-gold-soft);
  background: rgba(255, 255, 255, 0.09);
}

.settings-card {
  position: absolute;
  z-index: 50;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: min(330px, calc(100vw - 40px));
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(223, 188, 114, 0.24);
  border-radius: 20px;
  background: #10281e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.settings-card__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 7px;
}

.settings-card__heading span {
  color: var(--st-paper);
  font-weight: 800;
}

.settings-card__heading small {
  color: var(--st-muted);
  font-size: 11px;
}

.settings-card label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #d9e3dd;
  font-size: 13px;
  font-weight: 650;
}

.settings-card input[type="number"] {
  width: 76px;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid var(--st-line);
  border-radius: 11px;
  outline: none;
  color: var(--st-paper);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.settings-card input[type="number"]:focus {
  border-color: var(--st-gold);
  box-shadow: 0 0 0 3px rgba(223, 188, 114, 0.12);
}

.settings-save {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--st-ink);
  background: linear-gradient(135deg, var(--st-gold-soft), var(--st-gold));
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.start-button,
.finish-button {
  display: flex;
  min-width: 224px;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  color: #132117 !important;
  background: linear-gradient(135deg, var(--st-gold-soft), var(--st-gold)) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-button:hover,
.finish-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 21px 44px rgba(0, 0, 0, 0.32);
}

.start-button__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--st-paper);
  background: #1e5e43;
  font-size: 12px;
}

.start-button > span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.start-button small {
  opacity: 0.68;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start-button strong {
  font-size: 15px;
  font-weight: 850;
}

.stolbcy-page .konec {
  position: static;
  z-index: auto;
  display: none;
  width: auto;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.mental-focus-control,
.mental-focus-exit {
  display: none;
}

.mental-focus-active {
  overflow: hidden !important;
}

.mental-focus-active .mental-focus-control:not([data-focus-kind="columns"]) {
  position: fixed;
  z-index: 1250;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  display: inline-flex;
  min-width: min(240px, 78vw);
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #132117;
  background: linear-gradient(135deg, var(--st-gold-soft), var(--st-gold));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transform: translateX(-50%);
}

.mental-focus-active .mental-focus-exit {
  position: fixed;
  z-index: 1250;
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  display: inline-flex;
  min-width: 96px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(243, 225, 185, 0.3);
  border-radius: 999px;
  color: var(--st-paper);
  background: rgba(7, 20, 15, 0.82);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.mental-focus-active .mental-focus-exit:hover,
.mental-focus-active .mental-focus-exit:focus-visible {
  border-color: var(--st-gold);
  background: rgba(26, 55, 41, 0.95);
}

@media (max-width: 590px) {
  .mental-focus-active .mental-focus-exit {
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    min-width: 82px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }
}

.stolbcy-page.mental-focus-active:not(.forsaj-page):not(.operation-play-page) #board-card {
  position: fixed;
  z-index: 1000;
  inset: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: safe center;
  padding: clamp(18px, 3vw, 42px) clamp(14px, 3vw, 42px) 108px;
  overflow: auto;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(223, 188, 114, 0.1), transparent 36rem),
    #07140f;
}

.stolbcy-page.mental-focus-active:not(.forsaj-page):not(.operation-play-page) #board-card > .board-heading,
.stolbcy-page.mental-focus-active:not(.forsaj-page):not(.operation-play-page) #board-card > .board-empty {
  display: none;
}

.stolbcy-page.mental-focus-active:not(.forsaj-page):not(.operation-play-page) .tablica {
  display: block;
  padding-top: 0;
}

.stolbcy-page.mental-focus-active:not(.forsaj-page):not(.operation-play-page) .table-scroll {
  max-height: calc(100dvh - 190px);
  overflow: auto;
}

.stolbcy-page.mental-focus-active:not(.forsaj-page):not(.operation-play-page) .divTableCell {
  min-width: clamp(132px, 12vw, 190px);
  font-size: clamp(24px, 2.8vw, 42px);
}

.stolbcy-page.mental-focus-stopped:not(.forsaj-page):not(.operation-play-page) .tablica {
  pointer-events: none;
  opacity: 0.22;
}

.finish-button {
  min-width: 220px;
  color: var(--st-paper) !important;
  background: linear-gradient(135deg, #347e5e, #1d5d43) !important;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 38px 0 18px;
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background: var(--st-line);
}

.status-item {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  background: rgba(13, 32, 24, 0.94);
}

.status-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border-radius: 12px;
  color: var(--st-gold-soft);
  background: rgba(223, 188, 114, 0.1);
}

.status-item > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.status-item small {
  color: var(--st-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-item strong {
  color: var(--st-paper);
  font-size: 15px;
  font-weight: 780;
}

.status-item--timer strong {
  color: var(--st-gold-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.board-card {
  min-height: 430px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 95% 0, rgba(223, 188, 114, 0.1), transparent 22rem),
    linear-gradient(145deg, rgba(20, 49, 37, 0.92), rgba(10, 29, 21, 0.94));
  box-shadow: var(--st-shadow);
}

.board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--st-line);
}

.board-heading h2 {
  margin: 7px 0 0;
  color: var(--st-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
}

.board-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  color: var(--st-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  line-height: 1.4;
}

.board-empty {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  text-align: left;
}

.board-empty h3 {
  margin: 0 0 8px;
  color: var(--st-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
}

.board-empty p {
  max-width: 390px;
  margin: 0;
  color: var(--st-muted);
  line-height: 1.65;
}

.number-orbit {
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  flex: 0 0 190px;
  place-items: center;
  border: 1px solid rgba(223, 188, 114, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
}

.number-orbit::before,
.number-orbit::after {
  position: absolute;
  border: 1px solid rgba(223, 188, 114, 0.09);
  border-radius: 50%;
  content: "";
}

.number-orbit::before {
  inset: 18px;
}

.number-orbit::after {
  inset: 42px;
}

.number-orbit strong {
  display: grid;
  z-index: 2;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 18px;
  color: #14221a;
  background: var(--st-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.number-orbit span {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--st-line);
  border-radius: 10px;
  color: var(--st-gold-soft);
  background: #173a2b;
  font-size: 13px;
  font-weight: 800;
}

.number-orbit span:nth-child(1) { top: 5px; left: 78px; }
.number-orbit span:nth-child(2) { top: 78px; right: 5px; }
.number-orbit span:nth-child(3) { bottom: 5px; left: 78px; }
.number-orbit span:nth-child(4) { top: 78px; left: 5px; }

.stolbcy-page .tablica {
  display: none;
  width: 100%;
  padding: 28px 0 0;
  overflow: visible;
}

.game-started .board-empty {
  display: none;
}

.game-started .tablica {
  display: block;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  border-radius: 18px;
  scrollbar-color: rgba(223, 188, 114, 0.42) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

.stolbcy-page .table_stolbcy {
  display: table;
  width: max(100%, calc(var(--column-count) * 132px));
  margin: 0;
  overflow: hidden;
  border: 0;
  border-collapse: separate;
  border-spacing: 1px;
  border-radius: 18px;
  background: rgba(9, 25, 18, 0.65);
  box-shadow: none;
  table-layout: fixed;
}

.stolbcy-page .divTableHead {
  display: table-header-group;
  color: var(--st-gold-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.stolbcy-page .divTableBody {
  display: table-row-group;
  color: var(--st-ink);
  background: transparent;
}

.stolbcy-page .divTableFoot {
  display: table-footer-group;
  color: var(--st-ink);
  background: transparent;
}

.stolbcy-page .divTableRow {
  display: table-row;
}

.stolbcy-page .divTableCell {
  display: table-cell;
  min-width: 132px;
  height: clamp(43px, calc(72px - var(--row-count) * 2.5px), 64px);
  padding: 9px 12px;
  border: 0;
  border-right: 1px solid #ddd8ca;
  color: #1c2b23;
  background: #faf8f2;
  vertical-align: middle;
  text-align: center;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.stolbcy-page .divTableHead .divTableCell {
  height: 44px;
  padding: 8px;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--st-gold-soft);
  background: #1b523c;
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.stolbcy-page .divTableHead .divTableCell::before {
  content: "№ ";
  opacity: 0.5;
}

.stolbcy-page .divTableBody .divTableRow:nth-child(even) .divTableCell {
  background: #f2efe6;
}

.stolbcy-page .divTableFoot .divTableCell {
  height: auto;
  padding: 10px;
  border-top: 2px solid #d8cfb8;
  background: #e9e2d0;
}

.stolbcy-page .numbipn {
  width: 100%;
  height: 48px;
  padding: 0 10px;
  border: 1px solid #c9c0aa;
  border-radius: 10px;
  outline: none;
  color: var(--st-ink);
  background: #fffefa;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stolbcy-page .numbipn:focus {
  border-color: #2c7b59;
  box-shadow: 0 0 0 4px rgba(43, 123, 88, 0.14);
}

.stolbcy-page .pa {
  margin-top: 8px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.stolbcy-page .tablica_stugman {
  display: flex;
  justify-content: flex-end;
  padding: 18px 0 0;
}

.stolbcy-page .tablica_stugman .myButton {
  min-width: 190px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  color: #132218;
  background: linear-gradient(135deg, var(--st-gold-soft), var(--st-gold));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 850;
  text-shadow: none;
}

.stolbcy-page .tablica_stugman .myButton::before {
  margin-right: 8px;
  content: "✓";
}

.stolbcy-page .pokazano {
  position: fixed;
  z-index: 2000;
  inset: 0;
  top: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 28px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  color: var(--st-paper);
  background: rgba(3, 12, 8, 0.82);
  backdrop-filter: blur(18px);
  transform: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.stolbcy-page .pokazano.is-visible {
  visibility: visible;
  opacity: 1;
}

.result-card {
  position: relative;
  width: min(720px, 100%);
  padding: clamp(26px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(223, 188, 114, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(223, 188, 114, 0.15), transparent 25rem),
    linear-gradient(145deg, #173c2d, #0d251b);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.2, 0.85, 0.3, 1.15);
}

.pokazano.is-visible .result-card {
  transform: translateY(0) scale(1);
}

.result-confetti span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--st-gold);
  transform: rotate(35deg);
}

.result-confetti span:nth-child(1) { top: 28px; right: 52px; }
.result-confetti span:nth-child(2) { top: 72px; right: 28px; background: var(--st-mint); }
.result-confetti span:nth-child(3) { top: 35px; right: 100px; background: #d98773; }
.result-confetti span:nth-child(4) { top: 100px; right: 82px; width: 5px; height: 5px; }

.result-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.result-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 18px;
  color: #173225;
  background: var(--st-gold);
  font-size: 21px;
}

.result-heading h2 {
  margin: 5px 0 0;
  color: var(--st-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 5vw, 42px);
  font-weight: 500;
}

.result-summary {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin: 36px 0 28px;
}

.stolbcy-page .score-ring {
  position: relative;
  display: flex;
  width: 156px;
  height: 156px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 50%;
  color: var(--st-paper);
  background: conic-gradient(var(--st-gold) calc(var(--score) * 1%), rgba(255, 255, 255, 0.08) 0);
  line-height: 1;
}

.score-ring::before {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #123024;
  content: "";
}

.score-ring strong,
.score-ring span {
  position: relative;
  z-index: 1;
}

.score-ring strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
}

.score-ring span {
  margin-top: 7px;
  color: var(--st-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-copy h3 {
  margin: 0 0 8px;
  color: var(--st-paper);
  font-size: clamp(22px, 4vw, 31px);
}

.result-copy p {
  margin: 0;
  color: var(--st-muted);
  line-height: 1.6;
}

.result-progress {
  height: 8px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.result-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--st-green), var(--st-gold));
  transition: width 0.7s ease 0.15s;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.result-metrics > div,
.stolbcy-page .result-metrics .point {
  display: flex;
  min-width: 0;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--st-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.result-metrics span {
  color: var(--st-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-metrics span i {
  margin-right: 4px;
  color: var(--st-gold);
}

.result-metrics strong {
  overflow: hidden;
  color: var(--st-paper);
  font-size: 18px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-save-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--st-muted);
  font-size: 12px;
  line-height: 1.5;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.result-actions a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 820;
  transition: transform 0.2s ease;
}

.result-actions a:hover {
  transform: translateY(-2px);
}

.result-primary {
  color: #132117 !important;
  background: linear-gradient(135deg, var(--st-gold-soft), var(--st-gold));
}

.result-secondary {
  border: 1px solid var(--st-line);
  color: var(--st-paper) !important;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
  .exercise-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .intro-actions {
    justify-content: flex-start;
  }

  .settings-card {
    right: auto;
    left: 0;
  }
}

@media (max-width: 680px) {
  .exercise-shell {
    width: min(100% - 24px, 1240px);
    padding-bottom: 28px;
  }

  .exercise-header {
    min-height: 72px;
  }

  .brand-symbol {
    width: 40px;
    height: 40px;
  }

  .brand-mark strong,
  .exercise-nav span {
    display: none;
  }

  .exercise-nav a,
  .exercise-nav a:first-child {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }

  .exercise-main {
    padding-top: 30px;
  }

  .exercise-intro {
    gap: 24px;
  }

  .intro-actions {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .settings-menu > summary {
    min-height: 60px;
    padding: 0;
  }

  .settings-menu > summary span {
    display: none;
  }

  .start-button,
  .finish-button {
    width: 100%;
    min-width: 0;
    min-height: 60px;
  }

  .stolbcy-page .konec {
    grid-column: 2;
  }

  .status-strip {
    grid-template-columns: 1fr 1fr;
    margin-top: 26px;
  }

  .status-item {
    min-height: 72px;
    padding: 13px;
  }

  .status-item--timer {
    grid-column: 1 / -1;
  }

  .board-card {
    min-height: 390px;
    padding: 18px;
    border-radius: 20px;
  }

  .board-heading {
    flex-direction: column;
    gap: 14px;
  }

  .board-empty {
    min-height: 330px;
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .number-orbit {
    width: 145px;
    height: 145px;
    flex-basis: 145px;
  }

  .number-orbit span:nth-child(1) { top: 2px; left: 56px; }
  .number-orbit span:nth-child(2) { top: 56px; right: 2px; }
  .number-orbit span:nth-child(3) { bottom: 2px; left: 56px; }
  .number-orbit span:nth-child(4) { top: 56px; left: 2px; }

  .stolbcy-page .table_stolbcy {
    width: max(100%, calc(var(--column-count) * 104px));
  }

  .stolbcy-page .divTableCell {
    min-width: 104px;
    font-size: 20px;
  }

  .stolbcy-page .pokazano {
    padding: 12px;
  }

  .result-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .result-summary {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    margin: 28px 0 22px;
  }

  .stolbcy-page .score-ring {
    width: 112px;
    height: 112px;
  }

  .score-ring strong {
    font-size: 29px;
  }

  .result-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stolbcy-page *,
  .stolbcy-page *::before,
  .stolbcy-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
