:root {
  --cs-ink: #172b3a;
  --cs-ink-deep: #0f202c;
  --cs-paper: #f5efe5;
  --cs-surface: #fffdf8;
  --cs-line: #dcd8cf;
  --cs-muted: #6e777b;
  --cs-sky: #cbe9ec;
  --cs-mint: #cde7cb;
  --cs-yellow: #f2cf6a;
  --cs-orange: #e96f55;
  --cs-blue: #397f91;
  --cs-max: 1460px;
}

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

.cs-page [hidden] { display: none !important; }

.cs-page {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 16%, rgba(203, 233, 236, 0.65), transparent 28rem),
    radial-gradient(circle at 92% 38%, rgba(242, 207, 106, 0.22), transparent 27rem),
    var(--cs-paper);
  color: var(--cs-ink);
  font-family: var(--puszek-font);
  -webkit-font-smoothing: antialiased;
}

.cs-main {
  width: min(calc(100% - 32px), var(--cs-max));
  margin: 0 auto;
  padding: 24px 0 84px;
}

.cs-main button { font: inherit; }

.cs-main :focus-visible {
  outline: 3px solid rgba(57, 127, 145, 0.38);
  outline-offset: 3px;
}

.cs-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.62fr);
  align-items: end;
  gap: clamp(36px, 8vw, 130px);
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 88px);
  border-radius: 36px;
  background: var(--cs-ink);
  color: #fff;
  box-shadow: 0 26px 70px rgba(15, 32, 44, 0.18);
}

.cs-hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -110px;
  top: -230px;
  border: 64px solid rgba(203, 233, 236, 0.09);
  border-radius: 50%;
}

.cs-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: 52%;
  bottom: -118px;
  border-radius: 50%;
  background: var(--cs-orange);
  opacity: 0.32;
}

.cs-hero > * { position: relative; z-index: 1; }

.cs-eyebrow,
.cs-label {
  margin: 0 0 14px;
  color: var(--cs-orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.cs-hero .cs-eyebrow { color: var(--cs-yellow); }

.cs-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(50px, 7vw, 104px);
  font-weight: 880;
  letter-spacing: -0.068em;
  line-height: 0.91;
}

.cs-hero h1 em {
  color: var(--cs-sky);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.cs-hero__aside { padding-bottom: 5px; }

.cs-hero__aside p {
  max-width: 430px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.65;
}

.cs-hero-dice { display: flex; align-items: center; gap: 9px; }

.cs-hero-dice span {
  display: grid;
  width: clamp(46px, 4vw, 62px);
  height: clamp(46px, 4vw, 62px);
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cs-yellow);
  font-size: 33px;
  line-height: 1;
  transform: rotate(var(--tilt, -5deg));
}

.cs-hero-dice span:nth-child(2) { --tilt: 7deg; color: var(--cs-sky); }
.cs-hero-dice span:nth-child(3) { --tilt: -2deg; color: #fff; }
.cs-hero-dice span:nth-child(4) { --tilt: 5deg; color: var(--cs-orange); }

.cs-setup {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1.25fr);
  gap: 36px clamp(38px, 6vw, 90px);
  margin-top: 28px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(23, 43, 58, 0.09);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 55px rgba(23, 43, 58, 0.09);
}

.cs-setup__copy h2,
.cs-rules h2 {
  margin: 0;
  color: var(--cs-ink);
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.cs-setup__copy > p:last-child,
.cs-rules__intro > p:last-child {
  margin: 22px 0 0;
  color: var(--cs-muted);
  font-size: 15px;
  line-height: 1.65;
}

.cs-mode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cs-mode {
  min-height: 126px;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 15px;
  padding: 20px;
  border: 1px solid var(--cs-line);
  border-radius: 19px;
  background: #fff;
  color: var(--cs-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cs-mode:hover { transform: translateY(-2px); border-color: #99bfc4; }

.cs-mode.is-selected {
  border-color: var(--cs-blue);
  background: #edf7f7;
  box-shadow: 0 0 0 2px rgba(57, 127, 145, 0.13);
}

.cs-mode__icon {
  width: 52px;
  height: 52px;
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 16px;
  background: var(--cs-ink);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

.cs-mode__icon span { color: var(--cs-yellow); font-size: 12px; }
.cs-mode strong { align-self: end; font-size: 15px; }
.cs-mode small { align-self: start; margin-top: 4px; color: var(--cs-muted); font-size: 11px; line-height: 1.35; }

.cs-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border: 0;
  border-radius: 15px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.17s ease, background 0.17s ease, box-shadow 0.17s ease;
}

.cs-button:hover:not(:disabled) { transform: translateY(-2px); }
.cs-button:active:not(:disabled) { transform: translateY(0); }
.cs-button:disabled { cursor: wait; opacity: 0.55; }
.cs-button--primary { background: var(--cs-orange); color: #fff; box-shadow: 0 10px 22px rgba(233, 111, 85, 0.24); }
.cs-button--primary:hover:not(:disabled) { background: #d85f47; }
.cs-setup__start { grid-column: 2; justify-self: start; min-width: 210px; }

.cs-game { margin-top: 28px; scroll-margin-top: 20px; }

.cs-scorebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid rgba(23, 43, 58, 0.09);
  border-radius: 21px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 34px rgba(23, 43, 58, 0.07);
}

.cs-scorebar__players {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
}

.cs-player {
  min-width: 188px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.cs-player.is-active { border-color: color-mix(in srgb, var(--player-color) 38%, white); background: color-mix(in srgb, var(--player-color) 9%, white); }
.cs-player__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--player-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--player-color) 16%, transparent); }
.cs-player > span:nth-child(2) { display: grid; }
.cs-player strong { color: var(--cs-ink); font-size: 13px; }
.cs-player small { margin-top: 1px; color: var(--cs-muted); font-size: 9px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }

.cs-player__peaks { display: flex; gap: 4px; }
.cs-player__peaks i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px dashed #c9ceca;
  border-radius: 8px 8px 5px 5px;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}
.cs-player__peaks i.is-won { border-color: var(--player-color); background: var(--player-color); }

.cs-icon-button {
  min-width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--cs-line);
  border-radius: 13px;
  background: #fff;
  color: var(--cs-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cs-icon-button:hover { color: var(--cs-ink); border-color: #aeb8b7; }

.cs-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 14px;
}

.cs-board-card,
.cs-turn-card {
  border: 1px solid rgba(23, 43, 58, 0.09);
  background: var(--cs-surface);
  box-shadow: 0 18px 55px rgba(23, 43, 58, 0.08);
}

.cs-board-card { min-width: 0; overflow: hidden; border-radius: 28px; }

.cs-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 30px 20px;
}

.cs-board-head h2,
.cs-turn-card h2 { margin: 0; color: var(--cs-ink); font-size: 25px; letter-spacing: -0.035em; }
.cs-board-head .cs-label { margin-bottom: 5px; }

.cs-board-legend { display: flex; gap: 17px; color: var(--cs-muted); font-size: 10px; font-weight: 750; }
.cs-board-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cs-legend-runner,
.cs-legend-camp { width: 13px; height: 13px; display: inline-block; border-radius: 50%; }
.cs-legend-runner { border: 3px solid var(--cs-ink); background: #fff; }
.cs-legend-camp { background: var(--cs-orange); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75); }

.cs-board-scroll {
  min-height: 650px;
  overflow-x: auto;
  padding: 24px 22px 30px;
  background:
    linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(23, 43, 58, 0.018) 0 1px, transparent 1px 9px),
    #e9eee8;
  scrollbar-color: #aabbb6 transparent;
  scrollbar-width: thin;
}

.cs-board {
  width: max(100%, 680px);
  min-height: 586px;
  display: grid;
  grid-template-columns: repeat(11, minmax(48px, 1fr));
  align-items: end;
  gap: clamp(4px, 0.65vw, 10px);
  position: relative;
  isolation: isolate;
}

.cs-board::before {
  content: "";
  position: absolute;
  inset: 14% 7% 44px;
  z-index: -1;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(155deg, rgba(57, 127, 145, 0.1), rgba(23, 43, 58, 0.04));
}

.cs-column {
  display: grid;
  grid-template-rows: 26px auto 42px;
  justify-items: center;
  align-items: end;
  gap: 5px;
}

.cs-claim {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--owner-color);
  color: #fff;
  font-size: 12px;
  filter: drop-shadow(0 4px 5px rgba(23, 43, 58, 0.14));
}

.cs-column:not(.is-claimed) .cs-claim { visibility: hidden; }

.cs-track {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 7px;
  position: relative;
}

.cs-track::before {
  content: "";
  width: 4px;
  position: absolute;
  top: 17px;
  bottom: 17px;
  z-index: -1;
  border-radius: 99px;
  background: #c3cec8;
}

.cs-column.is-claimed .cs-track { opacity: 0.28; }
.cs-column.is-claimed .cs-track::after {
  content: "";
  position: absolute;
  inset: -2px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--owner-color) 13%, transparent);
}

.cs-node {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  border: 2px solid #bcc8c2;
  border-radius: 50%;
  background: #fbfcf8;
  box-shadow: 0 2px 0 rgba(23, 43, 58, 0.06);
}

.cs-node.is-peak { border-color: #84aeb3; background: #e2f1f2; }
.cs-node.is-peak::before { content: "◆"; position: absolute; color: rgba(57, 127, 145, 0.16); font-size: 14px; }
.cs-node__markers { width: 25px; height: 25px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1px; position: relative; }

.cs-camp {
  width: 10px;
  height: 10px;
  display: block;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--marker-color);
  box-shadow: 0 1px 3px rgba(23, 43, 58, 0.25);
}

.cs-runner {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 50%;
  top: 50%;
  border: 4px solid var(--runner-color);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 7px rgba(23, 43, 58, 0.28);
  transform: translate(-50%, -50%);
}

.cs-runner::after { content: ""; width: 5px; height: 5px; position: absolute; left: 50%; top: 50%; border-radius: 50%; background: var(--runner-color); transform: translate(-50%, -50%); }

.cs-column__number { width: 100%; display: grid; place-items: center; padding-top: 5px; border-top: 2px solid #c9d1cc; }
.cs-column__number strong { font-size: 17px; letter-spacing: -0.04em; }
.cs-column__number small { margin-top: 1px; color: var(--cs-muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.cs-column.is-claimed .cs-column__number { border-color: var(--owner-color); }

.cs-scroll-hint { display: none; margin: 9px 0 12px; color: var(--cs-muted); font-size: 9px; font-weight: 750; letter-spacing: 0.12em; text-align: center; text-transform: uppercase; }

.cs-turn-card {
  position: sticky;
  top: 14px;
  overflow: hidden;
  border-radius: 28px;
}

.cs-turn-player {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 19px;
  border-bottom: 1px solid #e5e4de;
}

.cs-turn-player .cs-label { margin-bottom: 2px; }
.cs-player-pawn { width: 38px; height: 38px; border: 6px solid #fff; border-radius: 50%; background: var(--player-color); box-shadow: 0 0 0 2px var(--player-color), 0 6px 13px rgba(23, 43, 58, 0.16); }
.cs-turn-number { padding: 6px 9px; border-radius: 9px; background: #eef0ed; color: var(--cs-muted); font-size: 9px; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }

.cs-message {
  min-height: 62px;
  display: flex;
  align-items: center;
  margin: 18px 20px 0;
  padding: 12px 15px;
  border-left: 3px solid var(--cs-blue);
  border-radius: 0 12px 12px 0;
  background: #edf5f4;
  color: #3d545a;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
}

.cs-message.is-bust { border-color: var(--cs-orange); background: #fff0eb; color: #984735; }

.cs-dice { display: flex; justify-content: center; gap: 10px; padding: 22px 20px 18px; }

.cs-die {
  width: 62px;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 9px;
  border: 1px solid #d9d7d0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 0 #dfe2de, 0 9px 15px rgba(23, 43, 58, 0.11);
}

.cs-die i { width: 7px; height: 7px; align-self: center; justify-self: center; border-radius: 50%; background: transparent; }
.cs-die i.is-on { background: var(--cs-ink); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16); }
.cs-die.is-empty { border-style: dashed; background: #f5f5f1; box-shadow: none; opacity: 0.62; }

.cs-dice.is-tossing .cs-die { animation: cs-toss 0.42s ease-out; }
.cs-dice.is-tossing .cs-die:nth-child(2) { animation-delay: 0.04s; }
.cs-dice.is-tossing .cs-die:nth-child(3) { animation-delay: 0.08s; }
.cs-dice.is-tossing .cs-die:nth-child(4) { animation-delay: 0.12s; }

@keyframes cs-toss {
  0% { transform: translateY(-13px) rotate(-8deg) scale(0.9); opacity: 0.4; }
  65% { transform: translateY(3px) rotate(3deg) scale(1.03); }
  100% { transform: none; opacity: 1; }
}

.cs-actions { padding: 0 20px 22px; }
.cs-button--roll { width: 100%; min-height: 58px; background: var(--cs-ink); color: #fff; font-size: 15px; box-shadow: 0 10px 24px rgba(23, 43, 58, 0.2); }
.cs-button--roll:hover:not(:disabled) { background: #234359; }
.cs-button--roll span,
.cs-button--continue span { color: var(--cs-yellow); }

.cs-pair-panel { padding: 0 20px 22px; }
.cs-pair-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.cs-pair-head > span { color: var(--cs-ink); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.cs-pair-head small { color: var(--cs-muted); font-size: 9px; }
.cs-pair-options { display: grid; gap: 8px; }

.cs-pair-option {
  width: 100%;
  min-height: 69px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  background: #fff;
  color: var(--cs-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.cs-pair-option:hover:not(:disabled) { border-color: var(--cs-blue); background: #f0f8f8; transform: translateX(2px); }
.cs-pair-option:disabled { cursor: wait; opacity: 0.55; }
.cs-pair-option__math { display: flex; align-items: center; gap: 8px; }
.cs-pair-option__math > span { min-width: 47px; display: grid; place-items: center; }
.cs-pair-option__math small { color: var(--cs-muted); font-size: 9px; }
.cs-pair-option__math strong { font-size: 23px; line-height: 1; }
.cs-pair-option__math b { color: #bbc1be; font-size: 12px; }
.cs-pair-option__move { max-width: 105px; color: var(--cs-blue); font-size: 9px; font-weight: 800; line-height: 1.35; text-align: right; }

.cs-decision { padding: 0 20px 22px; }
.cs-risk { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; margin-bottom: 15px; }
.cs-risk > span { color: var(--cs-muted); font-size: 10px; font-weight: 720; }
.cs-risk > strong { font-size: 15px; }
.cs-risk__track { height: 5px; grid-column: 1 / 3; overflow: hidden; border-radius: 99px; background: #e3e6e1; }
.cs-risk__track i { width: 0; height: 100%; display: block; border-radius: inherit; background: #69a67d; transition: width 0.3s ease; }
.cs-risk__track i.is-medium { background: var(--cs-yellow); }
.cs-risk__track i.is-high { background: var(--cs-orange); }
.cs-decision__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-button--continue { min-height: 56px; background: var(--cs-ink); color: #fff; }
.cs-button--continue:hover:not(:disabled) { background: #234359; }
.cs-button--stop { min-height: 56px; border: 1px solid #bad4c3; background: #e6f2e7; color: #28643d; }
.cs-button--stop:hover:not(:disabled) { background: #d8ebdb; }

.cs-turn-progress { padding: 18px 20px; border-top: 1px solid #e5e4de; }
.cs-turn-progress__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; color: var(--cs-muted); font-size: 10px; }
.cs-turn-progress__head strong { color: var(--cs-ink); }
.cs-active-tracks { min-height: 31px; display: flex; flex-wrap: wrap; gap: 6px; }
.cs-empty-state { color: #9aa09d; font-size: 10px; font-style: italic; }
.cs-track-chip { min-width: 104px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; background: #f0f2ee; }
.cs-track-chip b { font-size: 13px; }
.cs-track-chip > i { height: 4px; overflow: hidden; border-radius: 99px; background: #d2d8d3; }
.cs-track-chip > i em { height: 100%; display: block; border-radius: inherit; background: var(--cs-blue); }
.cs-track-chip small { color: var(--cs-muted); font-size: 8px; }
.cs-track-chip.is-top { background: #fff2cc; }
.cs-track-chip.is-top > i em { background: #d6a61a; }

.cs-log-wrap { border-top: 1px solid #e5e4de; }
.cs-log-toggle { width: 100%; min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border: 0; background: transparent; color: var(--cs-muted); font-size: 10px; font-weight: 800; cursor: pointer; }
.cs-log-toggle span { transition: transform 0.2s ease; }
.cs-log-toggle.is-open span { transform: rotate(180deg); }
.cs-log { max-height: 140px; overflow-y: auto; margin: 0; padding: 0 20px 15px 38px; color: var(--cs-muted); font-size: 9px; line-height: 1.5; }
.cs-log li + li { margin-top: 4px; }

.cs-win { margin: 0 20px 22px; padding: 25px; position: relative; overflow: hidden; border-radius: 19px; background: var(--cs-ink); color: #fff; text-align: center; }
.cs-win::before { content: ""; width: 130px; height: 130px; position: absolute; left: -55px; top: -60px; border: 28px solid color-mix(in srgb, var(--winner-color) 64%, transparent); border-radius: 50%; }
.cs-win > * { position: relative; }
.cs-win__burst { display: block; margin-bottom: 8px; color: var(--cs-yellow); font-size: 35px; }
.cs-win .cs-label { margin-bottom: 5px; color: var(--cs-sky); }
.cs-win h2 { color: #fff; font-size: 31px; }
.cs-win p:not(.cs-label) { margin: 8px 0 18px; color: rgba(255, 255, 255, 0.68); font-size: 11px; }

.cs-rules {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 8vw, 120px);
  margin-top: 88px;
  padding: 0 clamp(10px, 5vw, 65px);
}

.cs-rules__steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cs-rules__steps li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid #d5d5cd; }
.cs-rules__steps li:last-child { border-bottom: 1px solid #d5d5cd; }
.cs-rules__steps li > span { color: var(--cs-orange); font-size: 11px; font-weight: 850; letter-spacing: 0.1em; }
.cs-rules__steps strong { font-size: 16px; }
.cs-rules__steps p { margin: 7px 0 0; color: var(--cs-muted); font-size: 13px; line-height: 1.55; }

@media (max-width: 1160px) {
  .cs-game-layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .cs-board-scroll { min-height: 610px; padding-inline: 15px; }
  .cs-board { min-height: 545px; }
  .cs-track { gap: 5px; }
  .cs-node { width: 31px; height: 31px; }
  .cs-die { width: 56px; height: 56px; }
}

@media (max-width: 930px) {
  .cs-hero { min-height: 390px; grid-template-columns: 1fr; align-items: end; gap: 35px; }
  .cs-hero__aside { max-width: 600px; }
  .cs-setup { grid-template-columns: 1fr; }
  .cs-setup__start { grid-column: auto; }
  .cs-game-layout { grid-template-columns: 1fr; }
  .cs-turn-card { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .cs-turn-player,
  .cs-message,
  .cs-dice,
  .cs-actions,
  .cs-pair-panel,
  .cs-decision,
  .cs-win { grid-column: 1 / 3; }
  .cs-turn-progress { border-top: 1px solid #e5e4de; }
  .cs-log-wrap { border-left: 1px solid #e5e4de; }
  .cs-rules { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 680px) {
  .cs-main { width: min(calc(100% - 20px), var(--cs-max)); padding-top: 10px; }
  .cs-hero { min-height: 500px; padding: 35px 24px; border-radius: 25px; }
  .cs-hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .cs-hero-dice span { width: 45px; height: 45px; border-radius: 12px; font-size: 27px; }
  .cs-hero__aside p { font-size: 14px; }
  .cs-setup { margin-top: 12px; padding: 30px 20px; border-radius: 23px; }
  .cs-mode-list { grid-template-columns: 1fr; }
  .cs-mode { min-height: 102px; }
  .cs-setup__start { width: 100%; }
  .cs-scorebar { align-items: stretch; border-radius: 17px; }
  .cs-player { min-width: 176px; }
  .cs-icon-button { width: 46px; min-width: 46px; justify-content: center; }
  .cs-icon-button span:last-child { display: none; }
  .cs-board-card,
  .cs-turn-card { border-radius: 21px; }
  .cs-board-head { align-items: flex-start; flex-direction: column; padding: 22px 20px 15px; }
  .cs-board-legend { flex-wrap: wrap; }
  .cs-board-scroll { min-height: 560px; padding: 16px 10px 23px; }
  .cs-board { min-height: 520px; }
  .cs-scroll-hint { display: block; }
  .cs-turn-card { display: block; }
  .cs-turn-player { padding-inline: 19px; }
  .cs-message { margin-inline: 16px; }
  .cs-dice { gap: 7px; padding-inline: 14px; }
  .cs-die { width: min(59px, 20vw); height: min(59px, 20vw); padding: 8px; border-radius: 14px; }
  .cs-actions,
  .cs-pair-panel,
  .cs-decision { padding-inline: 16px; }
  .cs-decision__buttons { grid-template-columns: 1fr; }
  .cs-button--continue,
  .cs-button--stop { min-height: 52px; }
  .cs-log-wrap { border-left: 0; }
  .cs-rules { margin-top: 66px; padding-inline: 10px; }
  .cs-rules__steps li { grid-template-columns: 37px 1fr; gap: 12px; }
}

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