/* Enot Avia — брутализм EnotWeb. Без скруглений, градиентов и мягких теней. */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

:root {
  --font-head: "Archivo Black", "Onest", "Arial Black", sans-serif;
  --font-mono: "Space Mono", "IBM Plex Mono", "Courier New", monospace;
  --font-num: "IBM Plex Mono", "Space Mono", "Courier New", monospace;
  --font-text: "Work Sans", "Onest", system-ui, sans-serif;
}

html {
  color-scheme: light;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  background: #F0F0F0;
  color: #0A0A0A;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.4;
}

button,
input {
  font: inherit;
  color: inherit;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

button {
  cursor: pointer;
  background: #0A0A0A;
  color: #FFFFFF;
  border: 3px solid #0A0A0A;
  box-shadow: 5px 5px 0 #000;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--font-text);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

button:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 #000;
}

button.is-off,
.go.is-cancel {
  background: #E0E0E0;
  color: #0A0A0A;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid #0A0A0A;
  outline-offset: 2px;
}

::selection {
  background: #0A0A0A;
  color: #FFFFFF;
}

a {
  color: #0A0A0A;
}

a:visited {
  color: #0A0A0A;
}

[hidden] {
  display: none !important;
}

h1,
.boot-title,
.ban-title,
.ban-flag,
.word-enot,
.word-web,
.go,
.boot-go,
.cta-title,
.cta-btn,
.nick-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-synthesis: none;
}

h2 {
  font-weight: 400;
}

.mono,
.kicker,
.balance,
.hud-value,
.hud-top,
.chip,
.camp,
.camp-head,
.stat b,
.stat span,
.ticker,
.hint,
.note,
.limit,
.refill-kicker,
.sound-hint,
.history-empty,
.meta-tag,
.check,
input,
.player-nick,
.board-head,
.board-row,
.nick-error,
.footer-brand {
  font-family: var(--font-mono);
}

.ticker {
  background: #0A0A0A;
  color: #FFFFFF;
  min-height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  line-height: 1.35;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-run 48s linear infinite;
}

.ticker-copy {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 0;
}

.ticker-static {
  width: 100%;
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes ticker-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sound-hint {
  margin: 0;
  background: #FFFFFF;
  color: #0A0A0A;
  border-bottom: 3px solid #0A0A0A;
  text-align: center;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wordmark {
  display: inline-flex;
  align-items: stretch;
  border: 3px solid #0A0A0A;
}

.word-enot,
.word-web {
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 7px 8px;
}

.word-enot {
  background: #FFFFFF;
  color: #0A0A0A;
}

.word-web {
  background: #0A0A0A;
  color: #FFFFFF;
}

.meta-tag {
  border: 3px solid #0A0A0A;
  padding: 4px 6px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #FFFFFF;
}

.all-games {
  border: 3px solid #0A0A0A;
  background: #FFD400;
  color: #0A0A0A;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 3px 3px 0 #0A0A0A;
}

.all-games:visited {
  color: #0A0A0A;
}

.all-games:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #0A0A0A;
}

.title-block {
  flex: 1 1 220px;
  min-width: 0;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 16px;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.balance {
  background: #0A0A0A;
  color: #FFFFFF;
  border: 3px solid #0A0A0A;
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
}

.player {
  display: inline-flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.player-nick {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 14ch;
  padding: 6px 10px;
  background: #FFFFFF;
  border: 3px solid #0A0A0A;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#btn-nick {
  min-height: 44px;
  padding: 6px 10px;
  font-size: 14px;
  white-space: nowrap;
}

.player-title {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 18ch;
  padding: 4px 8px;
  background: #0A0A0A;
  color: #FFFFFF;
  border: 3px solid #0A0A0A;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#btn-refill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  white-space: normal;
  line-height: 1.2;
  max-width: 100%;
}

.refill-kicker {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stage {
  order: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side {
  order: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  padding: 2px 2px 8px;
  margin: 0;
}

.history-empty {
  margin: 0;
  color: #333333;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chip {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 40px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #0A0A0A;
  font-weight: 700;
  font-size: 14px;
}

.chip-low {
  background: #E0E0E0;
  color: #333333;
}

.chip-mid {
  background: #0A0A0A;
  color: #FFFFFF;
}

.chip-hot {
  background: #FFFFFF;
  color: #0A0A0A;
  border-width: 5px;
  box-shadow: 4px 4px 0 #000;
}

.chip-dead {
  background: #B42318;
  color: #FFFFFF;
}

.field {
  position: relative;
  height: 52vh;
  min-height: 240px;
  background: #FFFFFF;
  border: 4px solid #0A0A0A;
  box-shadow: 8px 8px 0 #000;
  overflow: hidden;
}

.field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.field.is-banned {
  background: #B42318;
}

.field.is-shake {
  animation: cabinet-shake 0.45s linear;
}

@keyframes cabinet-shake {
  0% { transform: translate(0, 0); }
  15% { transform: translate(-7px, 2px); }
  30% { transform: translate(6px, -3px); }
  45% { transform: translate(-5px, 1px); }
  60% { transform: translate(4px, -2px); }
  75% { transform: translate(-2px, 1px); }
  100% { transform: translate(0, 0); }
}

.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-top {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333333;
}

.field.is-banned .hud-top {
  color: #FFFFFF;
}

.hud-value {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 46%;
  margin: 0;
  transform: translateY(-50%);
  text-align: center;
  font-weight: 700;
  line-height: 0.95;
  color: #0A0A0A;
}

.hud-value.is-count {
  font-size: clamp(20px, 4vw, 32px);
  text-transform: uppercase;
}

.hud-figure {
  display: inline-block;
  transform-origin: center center;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.hud-value.is-mult {
  top: 28px;
  transform: none;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(36px, 6vh, 76px);
  line-height: 0.9;
}

.hud-value.is-mult .hud-figure {
  font-family: var(--font-num);
  font-weight: 700;
}

.hud-value.is-tier2 {
  font-size: clamp(44px, 7vh, 88px);
}

.hud-value.is-tier5,
.hud-value.is-tier10 {
  font-size: clamp(52px, 8vh, 104px);
}

.hud-value.is-tier2 .hud-figure {
  animation: mult-shake-soft 0.14s linear infinite;
}

.hud-value.is-tier5 .hud-figure {
  animation: mult-shake-hard 0.09s linear infinite;
}

.hud-value.is-tier10 .hud-figure {
  background: #0A0A0A;
  color: #FFFFFF;
  border: 3px solid #0A0A0A;
  padding: 0 8px;
  animation: mult-shake-hard 0.08s linear infinite;
}

@keyframes mult-shake-soft {
  0% { transform: translate(0, 0); }
  25% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, 0); }
  100% { transform: translate(0, 0); }
}

@keyframes mult-shake-hard {
  0% { transform: translate(0, 0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(-2px, 1px); }
  60% { transform: translate(2px, 1px); }
  80% { transform: translate(-1px, -1px); }
  100% { transform: translate(0, 0); }
}

.hud-count {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: max-content;
  max-width: calc(100% - 28px);
  color: #0A0A0A;
}

.hud-count-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0A0A0A;
}

.hud-seconds {
  margin: 2px 0 0;
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
  text-shadow: none;
  -webkit-text-stroke: 0;
  font-size: clamp(64px, 12vh, 96px);
  line-height: 0.9;
  color: #0A0A0A;
  transform-origin: center center;
}

.hud-seconds.is-hot {
  color: #B42318;
}

.hud-seconds.is-tick {
  animation: count-tick 0.35s ease-out;
}

@keyframes count-tick {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

.progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 16px;
  border: 3px solid #0A0A0A;
  background: #FFFFFF;
}

.hud-count .progress {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: min(240px, 68vw);
  margin: 12px auto 0;
}

.progress > div {
  height: 100%;
  width: 100%;
  background: #0A0A0A;
}

.ban-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 28px 16px 20px;
  pointer-events: none;
  color: #FFFFFF;
}

.ban-flag {
  border: 5px solid #FFFFFF;
  padding: 4px 12px;
  letter-spacing: 0.16em;
  font-size: clamp(18px, 3vw, 28px);
  transform: rotate(-8deg);
}

.ban-title {
  margin: 0;
  max-width: 100%;
  background: #0A0A0A;
  color: #FFFFFF;
  border: 4px solid #FFFFFF;
  padding: 8px 12px;
  font-size: clamp(22px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.ban-mult,
.ban-reason {
  margin: 0;
  max-width: min(42ch, calc(100% - 24px));
  background: #FFFFFF;
  color: #0A0A0A;
  border: 3px solid #0A0A0A;
  padding: 4px 10px;
}

.ban-mult {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
  text-shadow: none;
  -webkit-text-stroke: 0;
  font-size: clamp(18px, 3vw, 28px);
}

.ban-reason {
  font-weight: 600;
  font-size: 16px;
}

.ban-joke {
  margin: 0;
  max-width: min(36ch, calc(100% - 24px));
  color: #FFFFFF;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.cta {
  background: #FFFFFF;
  border: 4px solid #0A0A0A;
  box-shadow: 8px 8px 0 #000;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cta-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.cta-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cta-sub {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  background: #0A0A0A;
  color: #FFFFFF;
  text-decoration: none;
  border: 4px solid #0A0A0A;
  box-shadow: 6px 6px 0 #000;
  font-weight: 700;
  text-transform: uppercase;
}

.cta-btn:visited {
  color: #FFFFFF;
}

.cta-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 #000;
}

.bets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.panel,
.card {
  background: #FFFFFF;
  border: 4px solid #0A0A0A;
  box-shadow: 8px 8px 0 #000;
  padding: 14px;
  min-width: 0;
}

.kicker,
.lbl,
.limit {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333333;
}

.limit {
  margin-top: 8px;
}

.panel-head {
  margin-bottom: 8px;
}

.stepper {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.stepper button {
  flex: 0 0 48px;
  width: 48px;
  font-size: 22px;
  padding: 0;
}

.stepper input,
.auto-mult input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: #FFFFFF;
  border: 3px solid #0A0A0A;
  min-height: 48px;
  padding: 8px 10px;
  font-size: 18px;
  font-weight: 700;
}

.quicks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.quicks button {
  min-height: 44px;
  padding: 8px 4px;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
  background: #FFFFFF;
  color: #0A0A0A;
}

.auto-hint {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #333333;
}

.go {
  width: 100%;
  margin-top: 10px;
  min-height: 56px;
  font-size: 18px;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.go-main {
  display: block;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}

.go-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.go.is-bet {
  background: #0A0A0A;
  color: #FFFFFF;
}

.go.is-accepted,
.go.is-cashed {
  background: #FFFFFF;
  color: #0A0A0A;
  border-color: #0A0A0A;
}

.go.is-cash {
  background: #12D67A;
  color: #0A0A0A;
  border-color: #0A0A0A;
  animation: cash-pulse 0.9s ease-in-out infinite;
}

.go.is-cash .go-main {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
}

.go.is-queue,
.go.is-queued {
  background: #E0E0E0;
  color: #0A0A0A;
  border-color: #0A0A0A;
}

@keyframes cash-pulse {
  0%,
  100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.autos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 12px;
}

.auto-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.xmark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
}

.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 14px;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.check .box {
  width: 22px;
  height: 22px;
  border: 3px solid #0A0A0A;
  background: #FFFFFF;
  flex: 0 0 auto;
}

.check input:checked + .box {
  background: #0A0A0A;
  box-shadow: inset 0 0 0 4px #FFFFFF;
}

.check input:focus-visible + .box {
  outline: 3px solid #0A0A0A;
  outline-offset: 2px;
}

.auto-mult {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auto-mult .lbl {
  margin: 0;
}

.auto-mult input {
  width: 96px;
  flex: 0 0 96px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat {
  border: 3px solid #0A0A0A;
  padding: 10px;
  background: #FFFFFF;
}

.stat span {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #333333;
  margin-bottom: 4px;
  white-space: nowrap;
}

.stat b {
  display: block;
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-title b {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.camp {
  display: grid;
  grid-template-columns: 6px 3.4rem minmax(4.6rem, 0.9fr) minmax(6.2rem, 1.1fr) minmax(4.6rem, 0.85fr);
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 2px solid #0A0A0A;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.camp-bar {
  display: block;
  width: 6px;
  align-self: stretch;
  min-height: 22px;
  background: #12D67A;
}

.camp.is-ban .camp-bar {
  background: #B42318;
}

.camp-tag {
  display: inline-block;
  background: #B42318;
  color: #FFFFFF;
  padding: 1px 6px;
  font-size: 14px;
  line-height: 1.3;
}

.camp-result.is-win {
  color: #0A0A0A;
  font-weight: 700;
}

.camp-result.is-loss {
  color: #B42318;
  font-weight: 700;
}

.camp span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.camps {
  overflow: hidden;
}

.camps.is-open {
  max-height: 240px;
  overflow: auto;
}

.camps,
.board {
  scrollbar-width: thin;
  scrollbar-color: #0A0A0A #F0F0F0;
}

.camps::-webkit-scrollbar,
.board::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.camps::-webkit-scrollbar-track,
.board::-webkit-scrollbar-track {
  background: #F0F0F0;
}

.camps::-webkit-scrollbar-thumb,
.board::-webkit-scrollbar-thumb {
  background: #0A0A0A;
  border-radius: 0;
}

.camps-more {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  background: #FFFFFF;
  color: #0A0A0A;
  font-size: 14px;
}

.empty {
  margin: 8px 0 0;
  color: #333333;
}

.board-head,
.board-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) 5.4rem 4.6rem;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.board-head {
  padding-bottom: 6px;
  border-bottom: 3px solid #0A0A0A;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #333333;
}

.board {
  max-height: 280px;
  overflow: auto;
}

.board-row {
  padding: 5px 0;
  border-bottom: 2px solid #0A0A0A;
}

.board-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-row.is-me {
  background: #0A0A0A;
  color: #FFFFFF;
  padding: 5px 4px;
}

.board-extra {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 3px solid #0A0A0A;
}

.nick-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #F0F0F0;
  overflow: auto;
}

.nick-card {
  width: min(440px, 100%);
  margin: 0;
  background: #FFFFFF;
  border: 5px solid #0A0A0A;
  box-shadow: 8px 8px 0 #000;
  padding: 20px;
}

.nick-title {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.nick-card input {
  display: block;
  width: 100%;
  min-height: 48px;
  font-size: 18px;
}

.nick-error {
  margin: 8px 0 0;
  color: #B42318;
  font-size: 14px;
  font-weight: 700;
}

.nick-card .go {
  margin-top: 14px;
}

.footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 4px solid #0A0A0A;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
}

.footer p {
  margin: 0;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer a {
  font-weight: 700;
}

.disclaimer {
  flex-basis: 100%;
  color: #333333;
  font-size: 14px;
}

.toasts {
  position: fixed;
  z-index: 30;
  top: auto;
  left: auto;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  width: 100%;
  background: #FFFFFF;
  color: #0A0A0A;
  border: 4px solid #0A0A0A;
  box-shadow: 8px 8px 0 #000;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
}

.toast p {
  margin: 0;
}

.toast-joke {
  margin-top: 4px;
  font-weight: 400;
  font-size: 14px;
  color: #333333;
}

.toast-badge {
  background: #0A0A0A;
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

.tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .7fr) minmax(0, 1.05fr);
  gap: 6px;
  margin-bottom: 12px;
}

.tab {
  min-height: 44px;
  padding: 8px 6px;
  background: #FFFFFF;
  color: #0A0A0A;
  box-shadow: 4px 4px 0 #000;
  font-size: 14px;
  text-transform: none;
}

.tab.is-on {
  background: #0A0A0A;
  color: #FFFFFF;
}

.how {
  background: #FFFFFF;
  border: 4px solid #0A0A0A;
  box-shadow: 8px 8px 0 #000;
  padding: 14px;
  min-width: 0;
}

.how p {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.how .kicker {
  margin-bottom: 10px;
}

.how p:last-child {
  margin-bottom: 0;
}

.panel-open {
  width: 100%;
  min-height: 48px;
  background: #FFFFFF;
  color: #0A0A0A;
  font-size: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-fold {
  min-height: 44px;
  padding: 6px 10px;
  background: #FFFFFF;
  color: #0A0A0A;
  box-shadow: 4px 4px 0 #000;
  font-size: 14px;
  text-transform: none;
  white-space: nowrap;
}

.panel-fold:disabled {
  background: #E0E0E0;
  color: #0A0A0A;
  cursor: not-allowed;
}

.bets.is-duo .how,
.bets.is-duo .panel-open {
  display: none;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 20px;
  background: #F0F0F0;
  color: #0A0A0A;
  border: 0;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.boot:active {
  transform: none;
  box-shadow: none;
}

html.is-live #boot {
  display: none;
}

.boot-card {
  display: block;
  width: min(520px, 100%);
  background: #FFFFFF;
  border: 5px solid #0A0A0A;
  box-shadow: 12px 12px 0 #000;
  padding: 24px 22px;
  text-align: left;
  pointer-events: none;
}

.boot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.boot-title {
  display: block;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.boot-sub {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 18px;
}

.boot-go {
  display: inline-block;
  margin-top: 18px;
  background: #0A0A0A;
  color: #FFFFFF;
  padding: 12px 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.noscript {
  padding: 16px;
  background: #FFFFFF;
  border: 4px solid #0A0A0A;
}

@media (min-width: 641px) {
  .bets {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .field {
    height: clamp(240px, 38vh, 400px);
  }
}

@media (min-width: 1024px) {
  .shell {
    padding: 20px 16px 12px;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 8px;
  }

  h1 {
    font-size: clamp(28px, 2.4vw, 38px);
  }

  .subtitle {
    margin-top: 2px;
  }

  .layout {
    position: relative;
    display: grid;
    grid-template-columns: 308px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .stage,
  .side {
    order: 0;
  }

  .side {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 308px;
    margin: 0;
    padding: 0 14px 12px 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .side .camps {
    max-height: 200px;
  }

  .stage {
    grid-column: 2;
    gap: 8px;
  }

  .history {
    gap: 6px;
    padding: 0 0 2px;
    scrollbar-width: thin;
  }

  .history::-webkit-scrollbar {
    height: 6px;
  }

  .chip {
    min-height: 32px;
    min-width: 68px;
    padding: 4px 8px;
  }

  .field {
    height: clamp(240px, 40vh, 440px);
  }

  .stage:has(.cta:not([hidden])) .field {
    height: clamp(200px, 32vh, 380px);
  }

  .bets {
    gap: 10px;
  }

  .panel {
    padding: 8px 10px;
  }

  .panel-head {
    margin-bottom: 0;
  }

  .panel .kicker,
  .panel .lbl,
  .panel .limit {
    margin: 0 0 2px;
    line-height: 1.15;
  }

  .panel .limit {
    margin: 8px 0 0;
  }

  .quicks {
    gap: 6px;
    margin-top: 6px;
  }

  .quicks button {
    min-height: 32px;
    padding: 2px 4px;
  }

  .hint,
  .note {
    margin-top: 4px;
  }

  .go {
    margin-top: 6px;
    min-height: 48px;
    padding: 8px 10px;
    font-size: 15px;
  }

  .autos {
    gap: 4px 10px;
    margin-top: 6px;
  }

  .check {
    min-height: 32px;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .auto-mult .lbl {
    letter-spacing: 0;
  }

  .auto-mult input {
    width: 64px;
    flex-basis: 64px;
    min-height: 32px;
    padding: 2px 6px;
    font-size: 14px;
  }

  .cta {
    padding: 8px 12px;
    gap: 8px;
  }

  .cta-title {
    font-size: 16px;
  }

  .cta-sub {
    margin-top: 2px;
    font-size: 16px;
  }

  .cta-btn {
    min-height: 40px;
  }

  .field .toasts {
    position: absolute;
    top: 120px;
    left: 12px;
    right: auto;
    bottom: auto;
    width: min(340px, 42%);
    max-width: 340px;
    align-items: flex-start;
    z-index: 6;
  }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .ticker {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 12px;
  }

  .shell {
    padding: 8px 12px 6px;
  }

  .topbar {
    gap: 8px;
    margin-bottom: 4px;
  }

  .word-enot,
  .word-web {
    font-size: 16px;
    padding: 4px 6px;
  }

  h1 {
    font-size: 26px;
  }

  .subtitle {
    margin-top: 0;
    font-size: 13px;
  }

  .layout {
    gap: 8px;
  }

  .stage {
    gap: 6px;
  }

  .field {
    height: clamp(180px, 32vh, 320px);
  }

  .stage:has(.cta:not([hidden])) .field {
    height: clamp(156px, 24vh, 240px);
  }

  .panel {
    padding: 6px 8px;
  }

  .go {
    min-height: 44px;
    margin-top: 4px;
  }

  .autos {
    margin-top: 4px;
  }

  .cta {
    padding: 6px 8px;
  }

  .footer {
    margin-top: 8px;
    padding-top: 6px;
  }

  .ban-layer {
    gap: 4px;
    padding: 12px 12px 10px;
  }

  .ban-flag {
    font-size: 16px;
    padding: 2px 8px;
  }

  .ban-title {
    font-size: clamp(20px, 3vw, 36px);
    padding: 4px 8px;
  }

  .ban-mult,
  .ban-reason {
    padding: 2px 8px;
  }

  .ban-mult {
    font-size: 18px;
  }

  .ban-reason {
    font-size: 14px;
  }
}

@media (min-width: 1280px) {
  .topbar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .brand {
    flex: 0 0 auto;
    gap: 8px;
  }

  .title-block {
    flex: 0 1 auto;
    min-width: 0;
  }

  .top-actions {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: auto;
  }

  .balance {
    min-height: 40px;
    padding: 4px 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .player-nick {
    min-height: 40px;
    padding: 4px 8px;
    font-size: 13px;
  }

  #btn-nick,
  #btn-music,
  #btn-sound {
    min-height: 40px;
    padding: 4px 8px;
    font-size: 12px;
  }

  .topbar:has(#btn-refill:not([hidden])) .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: min(560px, 54%);
  }

  .topbar:has(#btn-refill:not([hidden])) #btn-refill {
    flex: 1 1 100%;
    font-size: 13px;
    padding: 6px 8px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 12px 12px 24px;
  }

  h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 14px;
  }

  .word-enot,
  .word-web {
    font-size: 16px;
    padding: 5px 6px;
  }

  .top-actions {
    width: 100%;
  }

  .balance,
  .player {
    flex: 1 1 100%;
  }

  .player-nick {
    flex: 1 1 auto;
    min-width: 0;
  }

  #btn-music,
  #btn-sound {
    flex: 1;
  }

  #btn-refill {
    flex: 1 1 100%;
  }

  .field {
    height: 52vh;
    min-height: 240px;
  }

  .go,
  .quicks button,
  .stepper button,
  .cta-btn,
  #btn-music,
  #btn-sound,
  #btn-refill,
  #btn-nick {
    min-height: 48px;
  }

  .camp-head,
  .camp {
    grid-template-columns: 0.6fr 1fr 0.8fr 1fr;
    font-size: 14px;
  }

  .stat b {
    font-size: 16px;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-title {
    font-size: 18px;
  }

  .cta-sub {
    font-size: 16px;
  }

  .cta-btn {
    width: 100%;
  }

  .camps,
  .side .camps {
    max-height: none;
  }

  .side {
    position: static;
    width: auto;
    padding: 0;
    overflow: visible;
  }

  .toasts {
    left: 12px;
    right: 12px;
    width: auto;
    align-items: center;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 641px) {
  .bets.is-solo {
    grid-template-columns: minmax(0, 560px) minmax(200px, 1fr);
    align-items: start;
  }

  .bets.is-solo .panel[data-id="1"],
  .bets.is-solo .panel-open {
    grid-column: 1;
    max-width: 560px;
  }

  .bets.is-solo .how {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .bets.is-duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .go,
  .go-main {
    min-height: 0;
    font-size: 18px;
  }

  .go {
    min-height: 56px;
  }

  .go.is-cash .go-main {
    font-size: 22px;
  }

  .quicks button {
    min-height: 44px;
    padding: 6px 4px;
    font-size: 16px;
  }

  .check {
    min-height: 44px;
    font-size: 14px;
    letter-spacing: 0.01em;
  }

  .auto-mult input {
    width: 88px;
    flex-basis: 88px;
    min-height: 44px;
    padding: 4px 8px;
    font-size: 16px;
  }

  .stepper input {
    min-height: 48px;
    font-size: 18px;
  }

  .chip {
    min-height: 36px;
    font-size: 14px;
  }

  .history-empty,
  .kicker,
  .lbl,
  .limit {
    font-size: 14px;
  }

  .tab,
  .panel-fold,
  .camps-more {
    min-height: 44px;
    font-size: 14px;
  }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .ticker {
    min-height: 36px;
    font-size: 14px;
  }

  .subtitle {
    font-size: 16px;
  }

  .go {
    min-height: 56px;
    font-size: 18px;
  }

  .hud-seconds {
    font-size: clamp(64px, 10vh, 84px);
  }

  .field {
    height: clamp(180px, 32vh, 320px);
  }
}

@media (min-width: 1280px) {
  .balance {
    min-height: 44px;
    font-size: 16px;
  }

  .player-nick,
  .player-title {
    min-height: 44px;
    font-size: 14px;
  }

  #btn-nick,
  #btn-music,
  #btn-sound,
  #btn-refill {
    min-height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .how {
    display: none !important;
  }

  .bets {
    display: flex;
    flex-direction: column;
  }

  .subtitle {
    font-size: 16px;
  }

  .go {
    min-height: 60px;
    font-size: 20px;
  }

  .go-main {
    font-size: 20px;
  }

  .go.is-cash .go-main {
    font-size: 24px;
  }

  .check,
  .tab,
  .panel-fold,
  .panel-open,
  .camps-more,
  .stepper button,
  .stepper input,
  .auto-mult input,
  .quicks button {
    min-height: 48px;
  }

  .stat b {
    font-size: 22px;
  }

  .stat-title b {
    font-size: 16px;
  }

  .camp {
    grid-template-columns: 6px 2.8rem minmax(3.6rem, 0.9fr) minmax(5.2rem, 1.1fr) minmax(4rem, 0.8fr);
    font-size: 14px;
  }

  .side .camps.is-open,
  .camps.is-open {
    max-height: 240px;
    overflow: auto;
  }

  .toasts {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    align-items: stretch;
  }

  .player-title {
    min-height: 48px;
  }

  .hud-count-label {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field.is-shake,
  .hud-seconds.is-tick,
  .go.is-cash,
  .hud-value.is-tier2 .hud-figure,
  .hud-value.is-tier5 .hud-figure,
  .hud-value.is-tier10 .hud-figure {
    animation: none;
  }
}

/* === v7: правки вёрстки после теста (боковая карточка, таблицы, шапка) === */
.stat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stat { min-width: 0; }
.stat span { white-space: normal; line-height: 1.2; }
.tab { padding: 8px 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp {
  grid-template-columns: 6px 2.4rem minmax(0, 1fr) auto minmax(4.2rem, auto);
  gap: 8px;
}
.camp-result { text-align: right; }
.camps.is-open { padding-right: 4px; }
.board-head,
.board-row { grid-template-columns: 1.8rem minmax(0, 1fr) auto 4.2rem; gap: 8px; }
.board-row.is-me { margin: 0 -6px; padding: 5px 6px; }
.board-head span:nth-child(3),
.board-row span:nth-child(3) { text-align: right; }
.board-head span:nth-child(4),
.board-row span:nth-child(4) { text-align: right; }

@media (min-width: 1024px) {
  .layout { grid-template-columns: 344px minmax(0, 1fr); }
  .side { width: 344px; }
}

@media (min-width: 1280px) {
  .subtitle { white-space: nowrap; }
  #btn-nick,
  #btn-music,
  #btn-sound,
  .player-title,
  .balance { white-space: nowrap; }
}
@media (min-width: 1280px) {
  .title-block { flex: 0 0 auto; }
  .title-block h1 { white-space: nowrap; }
}
/* v7: шутка на бане — на плашке, чтобы не сливалась с осями */
.ban-joke {
  background: #0A0A0A;
  color: #FFFFFF;
  border: 3px solid #FFFFFF;
  padding: 4px 10px;
}
/* v7: бан-экран на desktop помещается целиком вместе со шуткой */
@media (min-width: 1024px) and (min-height: 821px) {
  .ban-layer { gap: 6px; padding: 16px 16px 12px; }
  .ban-title { font-size: clamp(28px, 3.4vw, 50px); }
}

/* v8: проверки Meta, тикер, тосты, мобильная шапка */
.audio-ico { display: none; }

button.player-nick {
  background: #FFFFFF;
  color: #0A0A0A;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  text-align: left;
}

button.player-nick:active {
  transform: none;
  box-shadow: none;
}

.meta-check {
  position: absolute;
  top: 36px;
  left: 12px;
  max-width: min(220px, 30%);
  pointer-events: none;
  z-index: 5;
  border: 4px solid #0A0A0A;
  box-shadow: 6px 6px 0 #000;
  padding: 10px 12px;
}

.meta-check.is-problem,
.meta-check.is-fail {
  background: #B42318;
  color: #FFFFFF;
}

.meta-check.is-action {
  background: #FFFFFF;
  color: #0A0A0A;
}

.meta-check.is-success,
.meta-check.is-fade {
  background: #12D67A;
  color: #0A0A0A;
}

.meta-check-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-synthesis: none;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.meta-check-text {
  margin: 6px 0 0;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.meta-check-bar {
  margin-top: 8px;
  height: 12px;
  border: 3px solid #0A0A0A;
  background: #FFFFFF;
}

.meta-check-bar > div {
  height: 100%;
  width: 0;
  background: #0A0A0A;
}

.hud-status {
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

@media (min-width: 1024px) {
  .panel-head {
    min-height: 32px;
  }

  .panel-fold {
    min-height: 32px;
    padding: 2px 8px;
    font-size: 13px;
    box-shadow: 3px 3px 0 #000;
  }

  .bets.is-duo {
    align-items: start;
  }

  .meta-check-title {
    font-size: clamp(18px, 1.6vw, 22px);
  }
}

@media (max-width: 640px) {
  .ticker {
    min-height: 32px;
  }

  .shell {
    padding: 8px 12px 20px;
  }

  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .title-block {
    grid-column: 2;
    grid-row: 1;
    flex: none;
    min-width: 0;
  }

  .subtitle,
  .meta-tag,
  #btn-nick {
    display: none !important;
  }

  h1 {
    font-size: 22px;
  }

  .top-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .player {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .balance,
  .player {
    flex: 0 1 auto;
  }

  .player {
    flex: 1 1 auto;
  }

  .player-nick {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 12ch;
    min-height: 44px;
  }

  .player-title {
    min-height: 44px;
    max-width: 8ch;
    padding: 4px 6px;
    font-size: 12px;
  }

  .balance {
    min-width: 0;
    min-height: 44px;
    padding: 4px 8px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .audio-full {
    display: none;
  }

  .audio-ico {
    display: inline;
  }

  #btn-music,
  #btn-sound {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    font-size: 18px;
  }

  .layout,
  .stage {
    gap: 8px;
  }

  .field {
    height: clamp(280px, 48vh, 380px);
    min-height: 280px;
  }

  .history {
    flex-wrap: nowrap;
  }

  .quicks {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
  }

  .panel {
    padding: 10px;
  }

  .panel-head {
    margin-bottom: 4px;
  }

  .panel .kicker,
  .panel .lbl {
    margin-bottom: 4px;
  }

  .panel .limit {
    margin-top: 4px;
  }

  .quicks {
    margin-top: 4px;
    gap: 6px;
  }

  .go {
    margin-top: 8px;
  }

  .meta-check {
    top: 88px;
    left: 8px;
    max-width: calc(100% - 16px);
  }

  .meta-check-title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* v8: мобильная шапка — без обрезки бюджета; титул виден во вкладке «Сводка» */
@media (max-width: 640px) {
  .player-title { display: none !important; }
  .player { flex: 0 1 auto; min-width: 0; }
  .player-nick { flex: 0 1 auto; max-width: 9ch; font-size: 14px; }
  .balance { flex: 1 1 auto; font-size: 14px; justify-content: center; }
}

/* Кредит $1000 (онлайн-режим, api/) */
.btn-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
  text-align: left;
  line-height: 1.2;
  white-space: normal;
  background: #E0E0E0;
  color: #0A0A0A;
}

.btn-credit.is-ready {
  background: #0A0A0A;
  color: #FFFFFF;
}

.btn-credit:disabled {
  cursor: default;
  box-shadow: 5px 5px 0 #000;
  transform: none;
}

.credit-main {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.credit-sub {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

/* HUD: номер раунда не переносится, длинная шутка статуса — в одну строку с «…» */
#hud-round {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hud-status {
    max-width: 66%;
    letter-spacing: 0.03em;
  }
}

/* Телефон: нижние плашки бана уже, справа остаётся колонка под модератора в углу */
@media (max-width: 640px) {
  .ban-reason,
  .ban-joke {
    max-width: calc(100% - 128px);
  }
}

/*
 * v12: скроллбары в стиле EnotWeb — тонкий чёрный ползунок #111, квадратный,
 * без стрелок, трек прозрачный (виден фон #F0F0F0).
 * Chrome/Edge/Safari (есть ::-webkit-scrollbar): только ::-webkit-scrollbar —
 * точные 8px и без стрелок. Стандартные scrollbar-width/scrollbar-color
 * в Chrome 121+ перекрывают ::-webkit-* и на Windows возвращают стрелки,
 * поэтому там они сброшены в auto (и у старых правил .side/.camps/.board/.history).
 * Firefox (нет ::-webkit-scrollbar): scrollbar-width: thin + scrollbar-color.
 */
@supports selector(::-webkit-scrollbar) {
  html,
  body,
  .side,
  .camps,
  .board,
  .history,
  .nick-modal {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
  }

  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-track-piece {
    background: transparent;
    border: 0;
  }

  ::-webkit-scrollbar-thumb {
    background: #111111;
    border: 0;
    border-radius: 0;
  }

  ::-webkit-scrollbar-thumb:hover,
  ::-webkit-scrollbar-thumb:active {
    background: #000000;
  }

  ::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }

  ::-webkit-scrollbar-corner {
    background: transparent;
  }

  .history::-webkit-scrollbar {
    height: 6px;
  }
}

@supports not selector(::-webkit-scrollbar) {
  html,
  .side,
  .camps,
  .board,
  .history,
  .nick-modal {
    scrollbar-width: thin;
    scrollbar-color: #111111 transparent;
  }
}

/*
 * v13: вход по паролю и профиль (только онлайн, api/).
 * Вкладки «Новый игрок / Войти», карточка пароля, окно «Профиль».
 * Кнопки не ниже 48px, на 390px без горизонтального скролла.
 */
.nick-card input + .lbl {
  margin-top: 12px;
}

.nick-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: -20px -20px 18px;
  border-bottom: 4px solid #0A0A0A;
}

.nick-tab {
  min-height: 52px;
  margin: 0;
  padding: 8px 10px;
  background: #F0F0F0;
  color: #0A0A0A;
  border: 0;
  box-shadow: none;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.nick-tab + .nick-tab {
  border-left: 4px solid #0A0A0A;
}

.nick-tab.is-on {
  background: #0A0A0A;
  color: #FFFFFF;
}

.nick-tab:focus-visible {
  outline: 3px solid #FFD400;
  outline-offset: -6px;
}

.nick-pane {
  margin: 0;
}

.nick-hint {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333333;
}

.btn-ghost,
.btn-danger {
  min-height: 48px;
  padding: 8px 14px;
  font-size: 15px;
  box-shadow: 4px 4px 0 #000;
}

.btn-ghost {
  background: #FFFFFF;
  color: #0A0A0A;
}

.btn-danger {
  background: #B42318;
  border-color: #0A0A0A;
  color: #FFFFFF;
}

.btn-ghost:active,
.btn-danger:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #000;
}

.btn-ghost:disabled,
.btn-danger:disabled {
  opacity: 0.55;
  cursor: default;
}

.wide {
  display: block;
  width: 100%;
}

.nick-switch {
  margin-top: 10px;
}

.nick-cancel {
  margin-top: 14px;
}

.pass-modal {
  z-index: 70;
}

.profile-modal {
  z-index: 65;
  align-items: flex-start;
  background: rgba(240, 240, 240, 0.97);
}

.pass-lead {
  margin: 0 0 10px;
  font-weight: 700;
}

.pass-box {
  border: 4px solid #0A0A0A;
  background: #FFD400;
  padding: 12px;
  min-width: 0;
}

.pass-value {
  display: block;
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  user-select: all;
}

.pass-value.is-masked {
  letter-spacing: 0.12em;
  user-select: none;
}

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

.pass-actions .go {
  margin: 0;
  min-height: 48px;
}

.pass-custom {
  margin: 0;
  padding: 12px;
  border: 4px solid #0A0A0A;
  background: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 700;
}

.profile-card {
  width: min(560px, 100%);
  margin: 12px auto 24px;
}

.profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-id {
  min-width: 0;
}

.profile-id .nick-title {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.profile-since {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #333333;
}

.profile-close {
  flex: none;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  box-shadow: 4px 4px 0 #000;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.pstat {
  min-width: 0;
  border: 3px solid #0A0A0A;
  padding: 8px 10px;
  background: #F0F0F0;
}

.pstat .lbl {
  margin-bottom: 4px;
  font-size: 12px;
}

.pstat b {
  display: block;
  font-family: var(--font-num);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.pstat b.is-up { color: #067647; }
.pstat b.is-down { color: #B42318; }

.pstat small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #333333;
}

.profile-sec {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 4px solid #0A0A0A;
}

.sec-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-synthesis: none;
  font-size: 20px;
  line-height: 1.05;
  text-transform: uppercase;
}

.profile-sec > .btn-ghost.wide,
.profile-sec > .btn-danger.wide {
  margin-top: 12px;
}

.profile-sec > .btn-ghost.wide:first-child,
.profile-sec > .btn-danger.wide:first-child {
  margin-top: 0;
}

.pf-ok {
  margin: 8px 0 0;
  color: #067647;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.pf-warn {
  margin: 0;
  font-weight: 700;
  color: #0A0A0A;
}

@media (max-width: 640px) {
  .nick-modal {
    padding: 12px;
  }

  .nick-card {
    padding: 16px;
  }

  .nick-tabs {
    margin: -16px -16px 16px;
  }

  .profile-modal {
    padding: 8px;
  }

  .profile-card {
    margin: 4px auto 16px;
    box-shadow: 5px 5px 0 #000;
  }

  .profile-stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pstat:first-child {
    grid-column: 1 / -1;
  }

  .pass-value {
    font-size: 21px;
  }

  .nick-title {
    font-size: 30px;
  }
}

@media (max-width: 360px) {
  .pass-actions {
    grid-template-columns: 1fr;
  }
}

/* лента «Заносы» (вкладка) */
.afeed .board-row .is-win { color: #067647; font-weight: 700; }
.afeed .board-row .is-loss { color: #B42318; font-weight: 700; }
.afeed .board-row .ago { white-space: nowrap; }
.tab-panel[data-panel="feed"] .board-head,
.afeed .board-row { grid-template-columns: 3.9rem minmax(0, 1fr) auto 4.4rem; gap: 8px; }
.tab-panel[data-panel="feed"] .board-head span:nth-child(3),
.afeed .board-row span:nth-child(3),
.tab-panel[data-panel="feed"] .board-head span:nth-child(4),
.afeed .board-row span:nth-child(4) { text-align: right; }
@media (min-width: 900px) {
  .tabs { gap: 5px; }
  .tabs .tab { padding: 8px 2px; font-size: 13px; letter-spacing: -0.01em; }
  .tab-panel[data-panel="feed"] .board-head,
  .afeed .board-row { grid-template-columns: 3.1rem minmax(0, 1fr) auto 3.3rem; gap: 6px; font-size: 12px; }
}
