/* =========================
   Base
========================= */

body {
  margin: 0;
  background-color: #000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 0, 68, 0.34) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 255, 204, 0.28) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(135deg, rgba(35, 92, 255, 0.34) 0 1px, transparent 1px 5px),
    url("../img/rodina-logo.png");
  background-repeat: no-repeat, repeat, repeat, repeat, repeat;
  background-position:
    center,
    var(--rgb-noise-a, 0 0),
    var(--rgb-noise-b, 0 0),
    var(--rgb-noise-c, 0 0),
    var(--rodina-logo-position, 0 0);
  background-size: cover, 3px 3px, 4px 4px, 5px 5px, calc(100vw / 4) auto;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  animation: rodina-rgb-static 0.18s steps(2, end) infinite;
  color: #fff;
  font-family: "Inter", "DotGothic16", sans-serif;
  word-spacing: 0.12em;
}

:where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    button,
    .button,
    label,
    legend,
    .site-header__menu a,
    .rodina-ranking,
    .rodina-game-upgrade,
    .rodina-rich-board,
    .rodina-464-game,
    .rodina-race-game,
    .rodina-block-game,
    .rodina-flopper-game
  ) {
  word-spacing: 0.28em;
}

.rodina-visible-word-space {
  width: 0.46em;
  min-width: 0.46em;
  height: 1px;
  display: inline-block;
  flex: 0 0 0.46em;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}

@keyframes rodina-rgb-static {
  0% {
    --rgb-noise-a: 0 0;
    --rgb-noise-b: 0 0;
    --rgb-noise-c: 0 0;
    --rodina-logo-position: 0 0;
  }

  33% {
    --rgb-noise-a: 7px -3px;
    --rgb-noise-b: -5px 8px;
    --rgb-noise-c: 11px 4px;
    --rodina-logo-position: 2px -1px;
  }

  66% {
    --rgb-noise-a: -4px 6px;
    --rgb-noise-b: 9px -5px;
    --rgb-noise-c: -7px 10px;
    --rodina-logo-position: -2px 2px;
  }

  100% {
    --rgb-noise-a: 3px 9px;
    --rgb-noise-b: -8px -4px;
    --rgb-noise-c: 6px -9px;
    --rodina-logo-position: 1px -2px;
  }
}

.rodina-character-rain {
  position: fixed;
  z-index: 900;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.rodina-character-rain__character {
  position: absolute;
  top: -12vh;
  display: block;
  font-family: "DotGothic16", monospace;
  line-height: 1;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  will-change: transform;
  animation-name: rodina-character-rain-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.rodina-random-color-character {
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

@keyframes rodina-character-rain-fall {
  from {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
  }

  to {
    transform:
      translate3d(
        var(--rain-character-drift, 0),
        124vh,
        0
      )
      rotate(var(--rain-character-rotation, 180deg));
  }
}

body.is-vibration-stopped,
body.is-vibration-stopped main,
body.is-vibration-stopped .rodina-shop,
body.is-vibration-stopped .single-product main,
body.is-vibration-stopped .single-product .site-main {
  animation: none !important;
}

body.is-vibration-stopped.is-idle-shaking
  :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    a,
    button,
    label,
    span,
    strong,
    em,
    small,
    li,
    dt,
    dd,
    th,
    td,
    legend,
    caption,
    blockquote,
    code,
    input,
    select,
    textarea,
    .site-header__icon,
    .site-header__search-icon,
    .site-header__menu-toggle
  ) {
  animation: none !important;
}

body.is-vibration-stopped.is-idle-shaking .site-header__logo,
body.is-vibration-stopped.is-idle-shaking .site-header__logo a,
body.is-vibration-stopped .sample-page-shaking-character,
body.is-vibration-stopped .trap-centered-logo,
body.is-vibration-stopped .woocommerce-message::before,
body.is-vibration-stopped .woocommerce-message::after {
  animation: none !important;
}

body.is-vibration-stopped.is-idle-shaking .site-header__logo {
  transform: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

body.page-id-2,
body.page-id-2 * {
  font-family: "Coral Pixels", sans-serif !important;
}

body.page-id-24 .rodina-page__content,
body.page-id-24 .rodina-page__content * {
  font-family: "Coral Pixels", sans-serif !important;
}

body.page-id-3 .rodina-page__title {
  font-family: "DotGothic16", sans-serif !important;
}

body.page-id-24 .rodina-page__content {
  width: min(1320px, calc(100% - 80px));
  min-height: 60vh;
  margin: 0 auto;
  padding: 72px 0 112px;
  text-align: center;
}

body.page-id-24 .rodina-page__title {
  margin: 0 auto 18px;
  font-size: clamp(56px, 8vw, 112px);
}

body.page-id-24 .rodina-page__subtitle {
  width: fit-content;
  margin: 0 auto 48px;
  font-family: "DotGothic16", sans-serif !important;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

body.page-id-24 .rodina-page__body {
  max-width: 1200px;
  margin: 0 auto;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

body.page-id-24 .rodina-page__body p {
  width: auto;
  margin: 0;
}

body.page-id-25 .rodina-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

body.page-id-25 .rodina-page__content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 112px;
}

body.page-id-26 .rodina-page__content {
  width: min(1040px, calc(100% - 80px));
  min-height: 60vh;
  margin: 0 auto;
  padding: 72px 0 120px;
  text-align: center;
}

body.page-id-26 .rodina-page__title,
body.page-id-26 .rodina-page__body > p {
  margin-inline: auto;
}

body.page-id-29 .rodina-page__content {
  width: min(1200px, calc(100% - 80px));
  min-height: 60vh;
  margin: 0 auto;
  padding: 72px 0 120px;
  text-align: center;
}

body.page-id-29 .rodina-page__title {
  margin-inline: auto;
}

body.page-id-29 .rodina-page__body {
  margin-top: 56px;
  font-family: "Coral Pixels", "DotGothic16", sans-serif !important;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.15;
  text-wrap: balance;
}

body.page-id-29 .rodina-page__body p {
  width: auto;
  margin: 0;
  font-family: inherit !important;
}

body.page-id-41 .rodina-page__content,
body.page-id-44 .rodina-page__content,
body.page-id-45 .rodina-page__content,
body.page-id-46 .rodina-page__content,
body.page-id-47 .rodina-page__content {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

body.page-id-41 .rodina-page__title,
body.page-id-44 .rodina-page__title,
body.page-id-45 .rodina-page__title,
body.page-id-46 .rodina-page__title,
body.page-id-47 .rodina-page__title {
  margin: 0 auto 28px;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(52px, 8vw, 104px);
}

.rodina-464-game {
  width: min(760px, 100%);
  margin: 0 auto;
  color: #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-464-game__hud {
  display: flex;
  justify-content: space-between;
  gap: clamp(6px, 2vw, 20px);
  margin-bottom: 12px;
  padding: 12px 16px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #ff4fdf;
  font-size: clamp(16px, 2vw, 22px);
}

.rodina-credit-rate {
  min-width: max-content;
  padding: 7px 10px;
  color: #fff;
  background: #000;
  border: 2px solid #ffe66d;
  box-shadow: 3px 3px 0 #ff4fdf;
  font-family: "DotGothic16", monospace;
  font-size: clamp(10px, 1.6vw, 13px);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.rodina-credit-rate > strong {
  color: #53ffd8 !important;
  font-family: "DotGothic16", monospace;
  font-size: 1.08em !important;
  font-weight: 700;
}

.rodina-credit-rate > small {
  color: #fff;
  font-family: "DotGothic16", monospace;
  font-size: 0.72em;
  opacity: 1;
}

@media (max-width: 600px) {
  .rodina-credit-rate {
    min-width: 0;
    padding: 6px 7px;
    font-size: 10px;
    white-space: normal;
  }
}

.rodina-464-game__arena {
  position: relative;
  width: 100%;
  height: min(62vh, 620px);
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 79, 223, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 223, 0.08) 1px, transparent 1px),
    #000;
  background-size: 24px 24px;
  border: 4px solid #fff;
  box-shadow:
    8px 8px 0 #ff4fdf,
    14px 14px 0 #111;
  outline: none;
  touch-action: none;
}

.rodina-464-game__arena:focus-visible {
  border-color: #ff4fdf;
}

.rodina-464-game__player,
.rodina-464-game__hazard {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Coral Pixels", "DotGothic16", monospace;
  line-height: 1;
  user-select: none;
  will-change: transform;
}

.rodina-464-game__player {
  z-index: 3;
  bottom: 22px;
  left: 0;
  width: 92px;
  height: 54px;
  color: #000;
  background: #fff;
  border: 4px solid #ff4fdf;
  font-size: 34px;
}

.rodina-464-game__hazard {
  z-index: 2;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  color: #ff4fdf;
  text-shadow: 2px 2px 0 #fff;
  font-size: 46px;
}

.rodina-464-game__hazard.is-dollar {
  color: #fff;
  text-shadow: 2px 2px 0 #ff4fdf;
}

.rodina-464-game__overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: rgba(0, 0, 0, 0.78);
}

.rodina-464-game__overlay.is-hidden {
  display: none;
}

.rodina-464-game__message {
  margin: 0;
  font-family: "Coral Pixels", "DotGothic16", monospace;
  font-size: clamp(32px, 6vw, 64px);
  text-align: center;
}

.rodina-464-game__start,
.rodina-464-game__controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #080808;
  border: 3px solid #fff;
  border-radius: 0;
  font-family: "DotGothic16", monospace;
  cursor: pointer;
}

.rodina-464-game__start {
  min-width: 180px;
  min-height: 54px;
  padding: 10px 24px;
  box-shadow: 5px 5px 0 #ff4fdf;
  font-size: 22px;
}

.rodina-464-game__start:hover,
.rodina-464-game__start:focus-visible,
.rodina-464-game__controls button:active {
  color: #000;
  background: #fff;
  outline: none;
}

.rodina-464-game__controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.rodina-464-game__controls button {
  min-height: 64px;
  font-size: 32px;
  touch-action: none;
}

.rodina-464-game__help {
  width: fit-content;
  margin: 18px auto 0;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.rodina-race-game {
  width: min(900px, 100%);
  margin: 0 auto;
  color: #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-race-game__hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 14px 18px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #ff4fdf;
  font-size: clamp(15px, 2vw, 22px);
}

.rodina-race-game__status {
  grid-column: 1 / 4;
  grid-row: 2;
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4fdf;
  background: #000;
  border: 2px solid #ff4fdf;
  font-size: clamp(12px, 1.8vw, 18px);
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.rodina-race-game__hud > .rodina-credit-rate {
  grid-column: 4;
  grid-row: 2;
  align-self: stretch;
}

.rodina-race-game__track {
  position: relative;
  overflow: hidden;
  background: #111;
  border: 4px solid #fff;
  box-shadow:
    8px 8px 0 #ff4fdf,
    14px 14px 0 #000;
}

.rodina-race-game__course {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #090909;
  image-rendering: pixelated;
  pointer-events: none;
}

.rodina-race-game__lane {
  position: relative;
  z-index: 1;
  height: 128px;
  overflow: hidden;
  background: transparent;
}

.rodina-race-game__lane + .rodina-race-game__lane {
  border-top: 4px solid #fff;
}

.rodina-race-game__lane-label {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.rodina-race-game__finish {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 8%;
  bottom: 0;
  width: 30px;
  background:
    conic-gradient(#fff 25%, #000 0 50%, #fff 0 75%, #000 0) 0 0 / 16px
      16px;
  border-inline: 2px solid #ff4fdf;
  opacity: 0;
  transition: opacity 0.2s steps(2, end);
  pointer-events: none;
}

.rodina-race-game__finish.is-visible {
  opacity: 1;
}

.rodina-race-game__car {
  position: absolute;
  z-index: 3;
  top: 43px;
  left: 12px;
  width: 78px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: #000;
  border: 4px solid #000;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: 38px;
  line-height: 1;
  will-change: transform;
}

.rodina-race-game__car::before,
.rodina-race-game__car::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 18px;
  height: 7px;
  background: #fff;
  box-shadow: 40px 0 0 #fff;
}

.rodina-race-game__car::before {
  top: -10px;
}

.rodina-race-game__car::after {
  bottom: -10px;
}

.rodina-race-game__car.is-car-4 {
  background: #ff4fdf;
  box-shadow: 5px 5px 0 #fff;
}

.rodina-race-game__car.is-car-6 {
  background: #53ffd8;
  box-shadow: 5px 5px 0 #8b9dff;
}

.rodina-race-game__controls {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(150px, 0.75fr) minmax(220px, 1.3fr);
  gap: 16px;
  margin-top: 28px;
}

.rodina-race-game__controls button {
  min-height: 62px;
  padding: 10px 18px;
  color: #fff;
  background: #080808;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 5px 5px 0 #ff4fdf;
  font-family: "DotGothic16", monospace;
  font-size: clamp(16px, 2.4vw, 24px);
  cursor: pointer;
  touch-action: none;
}

.rodina-race-game__controls button:hover,
.rodina-race-game__controls button:focus-visible,
.rodina-race-game__controls button.is-pressed {
  color: #000;
  background: #fff;
  outline: none;
}

.rodina-race-game__controls button:active,
.rodina-race-game__controls button.is-pressed {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #ff4fdf;
}

.rodina-race-game__controls button:disabled {
  color: #53ffd8;
  background: #080808;
  border-color: #53ffd8;
  opacity: 1;
  cursor: wait;
}

.rodina-race-game__help {
  width: fit-content;
  margin: 20px auto 0;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.rodina-block-game {
  width: min(620px, 100%);
  margin: 120px auto 0;
  padding-top: 72px;
  border-top: 4px solid #fff;
  color: #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-block-game__header {
  margin-bottom: 22px;
  text-align: center;
}

.rodina-block-game__header h2 {
  margin: 0 auto 20px;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
}

.rodina-block-game__scoreboard {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #53ffd8;
  font-size: clamp(14px, 2vw, 20px);
}

.rodina-block-game__stage {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  background: #000;
  border: 4px solid #fff;
  box-shadow:
    8px 8px 0 #ff4fdf,
    14px 14px 0 #111;
}

.rodina-block-game__canvas {
  display: block;
  width: min(280px, calc(100vw - 64px));
  height: auto;
  image-rendering: pixelated;
}

.rodina-block-game__next {
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(100% + 18px);
  width: 116px;
  box-sizing: border-box;
  padding: 7px;
  background: #050505;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #53ffd8;
}

.rodina-block-game__next canvas { width: 96px; max-width: 100%; height: auto; display: block; image-rendering: pixelated; }

@media (max-width: 600px) {
  .rodina-block-game__next {
    top: 7px;
    right: 7px;
    left: auto;
    width: 76px;
    padding: 5px;
    border-width: 2px;
    box-shadow: 3px 3px 0 #53ffd8;
    font-size: 10px;
  }
}

.rodina-block-game__overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  text-align: center;
}

.rodina-block-game__overlay.is-hidden {
  display: none;
}

.rodina-block-game__message {
  margin: 0;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(28px, 5vw, 48px);
}

.rodina-block-game__start,
.rodina-block-game__controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #080808;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 4px 4px 0 #ff4fdf;
  font-family: "DotGothic16", monospace;
  cursor: pointer;
  touch-action: manipulation;
}

.rodina-block-game__start {
  min-width: 160px;
  min-height: 52px;
  padding: 8px 20px;
  font-size: 20px;
}

.rodina-block-game__controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.rodina-block-game__controls button {
  min-height: 56px;
  padding: 8px;
  font-size: 24px;
}

.rodina-block-game__start:hover,
.rodina-block-game__start:focus-visible,
.rodina-block-game__controls button:hover,
.rodina-block-game__controls button:focus-visible,
.rodina-block-game__controls button:active {
  color: #000;
  background: #fff;
  outline: none;
}

.rodina-block-game__controls button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #ff4fdf;
}

.rodina-block-game__help {
  width: fit-content;
  margin: 20px auto 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

.rodina-flopper-game {
  width: min(900px, 100%);
  margin: 0 auto;
  color: #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-flopper-game__hud {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #53ffd8;
  font-size: clamp(17px, 2.5vw, 25px);
}

.rodina-flopper-game__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background: #000;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #ff4fdf, 14px 14px 0 #111;
  outline: none;
  cursor: pointer;
  touch-action: manipulation;
}

.rodina-flopper-game__stage:focus-visible {
  outline: 4px solid #53ffd8;
  outline-offset: 5px;
}

.rodina-flopper-game__canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  image-rendering: pixelated;
}

.rodina-flopper-game__overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  text-align: center;
}

.rodina-flopper-game__overlay.is-hidden {
  display: none;
}

.rodina-flopper-game__message {
  margin: 0;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.08;
}

.rodina-flopper-game__start,
.rodina-flopper-game__flap {
  min-height: 54px;
  padding: 10px 28px;
  color: #fff;
  background: #000;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 5px 5px 0 #53ffd8;
  font-family: "DotGothic16", monospace;
  font-size: 20px;
  cursor: pointer;
}

.rodina-flopper-game__start:hover,
.rodina-flopper-game__start:focus-visible,
.rodina-flopper-game__flap:hover,
.rodina-flopper-game__flap:focus-visible,
.rodina-flopper-game__flap:active {
  color: #000;
  background: #53ffd8;
  outline: none;
}

.rodina-flopper-game__flap {
  width: min(320px, 100%);
  margin: 30px auto 0;
  display: block;
  box-shadow: 5px 5px 0 #ff4fdf;
}

.rodina-flopper-game__flap:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #ff4fdf;
}

.rodina-flopper-game__help {
  margin: 18px auto 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: center;
}

.rodina-rich-board {
  width: min(900px, 100%);
  margin: 0 auto;
  color: #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-rich-board__balance {
  padding: clamp(28px, 6vw, 58px) 22px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: end;
  background: #080808;
  border: 4px solid #fff;
  box-shadow: 9px 9px 0 #53ffd8, 16px 16px 0 #ff4fdf;
}

.rodina-rich-board__balance > span {
  align-self: center;
  color: #53ffd8;
  font-size: clamp(16px, 3vw, 28px);
  letter-spacing: 0.08em;
  font-family: "DotGothic16", monospace;
}

.rodina-rich-board__balance strong {
  color: #fff;
  font-family: "DotGothic16", monospace;
  font-size: clamp(52px, 11vw, 128px);
  font-weight: 400;
  line-height: 0.72;
  overflow-wrap: anywhere;
}

.rodina-rich-board__balance small {
  color: #ff4fdf;
  font-size: clamp(18px, 3vw, 30px);
  font-family: "DotGothic16", monospace;
}

.rodina-rich-board__games {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rodina-rich-board__games article {
  min-width: 0;
  padding: 20px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #ff4fdf;
}

.rodina-rich-board__games h2 {
  margin: 0 0 18px;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1;
}

.rodina-rich-board__games p {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  background: transparent;
  border-radius: 0;
}

.rodina-rich-board__games p strong {
  min-width: 0;
  font-size: clamp(28px, 5vw, 54px);
  overflow-wrap: anywhere;
}

.rodina-rich-board__games p span {
  color: #53ffd8;
}

.rodina-rich-board__note {
  margin: 46px auto 0;
  font-size: clamp(13px, 2vw, 18px);
  letter-spacing: 0.08em;
  text-align: center;
}

.rodina-rich-name {
  margin-top: 48px;
  padding: 22px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 6px 6px 0 #ff4fdf;
}

.rodina-rich-name > label {
  margin-bottom: 12px;
  display: block;
  color: #53ffd8;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1;
}

.rodina-rich-name > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.rodina-rich-name input,
.rodina-rich-name button {
  min-width: 0;
  min-height: 50px;
  box-sizing: border-box;
  padding: 9px 14px;
  color: #fff;
  background: #000;
  border: 3px solid #fff;
  border-radius: 0;
  font-family: "DotGothic16", monospace;
  font-size: 16px;
}

.rodina-rich-name input:focus {
  border-color: #53ffd8;
  outline: none;
  box-shadow: 4px 4px 0 #ff4fdf;
}

.rodina-rich-name button {
  min-width: 150px;
  box-shadow: 4px 4px 0 #53ffd8;
  cursor: pointer;
}

.rodina-rich-name button:hover,
.rodina-rich-name button:focus-visible {
  color: #000;
  background: #53ffd8;
  outline: none;
}

.rodina-rich-name > p {
  margin: 16px 0 0;
  color: #ff8a3d;
  font-size: 14px;
}

.rodina-rich-ranking {
  margin-top: 58px;
  padding: 24px;
  background: #080808;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #53ffd8, 14px 14px 0 #ff4fdf;
}

.rodina-rich-ranking > h2 {
  margin: 0 auto 24px;
  font-family: "DotGothic16", monospace;
  font-size: clamp(30px, 6vw, 62px);
  line-height: 1;
  text-align: center;
}

.rodina-rich-ranking ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rodina-rich-ranking li {
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: center;
  border-top: 2px solid rgba(255, 255, 255, 0.36);
}

.rodina-rich-ranking li:first-child {
  border-top: 3px solid #fff;
}

.rodina-rich-ranking li.is-current-user {
  color: #000;
  background: #53ffd8;
  border-color: #fff;
  box-shadow: inset 5px 0 0 #ff4fdf;
}

.rodina-rich-ranking li > strong {
  color: #ff8a3d;
}

.rodina-rich-ranking li.is-current-user > strong {
  color: #000;
}

.rodina-rich-ranking li > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rodina-rich-ranking li > b {
  color: #53ffd8;
  font-weight: 400;
  white-space: nowrap;
}

.rodina-rich-ranking li.is-current-user > b {
  color: #000;
}

.rodina-rich-ranking__empty {
  margin: 0 auto;
  text-align: center;
}

.rodina-blackjack,
.rodina-blackjack-login {
  width: min(900px, 100%);
  margin: 0 auto;
  color: #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-blackjack__hud {
  margin-bottom: 18px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #ffe66d;
  font-size: clamp(15px, 2.5vw, 23px);
}

.rodina-blackjack__hud strong {
  color: #53ffd8;
}

.rodina-blackjack__table {
  padding: clamp(20px, 4vw, 36px);
  background:
    linear-gradient(rgba(0, 0, 0, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16) 1px, transparent 1px),
    #153b31;
  background-size: 18px 18px;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #ff4fdf, 14px 14px 0 #000;
}

.rodina-blackjack__hand header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.rodina-blackjack__hand h2 {
  margin: 0;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(28px, 5vw, 48px);
}

.rodina-blackjack__hand header > span {
  min-width: 48px;
  padding: 5px 10px;
  color: #000;
  background: #ffe66d;
  border: 2px solid #fff;
  font-size: 20px;
  text-align: center;
}

.rodina-blackjack__cards {
  min-height: 126px;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.rodina-blackjack__card {
  width: 78px;
  height: 112px;
  box-sizing: border-box;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #070707;
  background: #fffdf7;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #ff4fdf;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: 25px;
  line-height: 1;
}

.rodina-blackjack__card.is-red {
  color: #a60024;
}

.rodina-blackjack__card:not(.is-card-back):not(.is-hidden),
.rodina-blackjack__card:not(.is-card-back):not(.is-hidden) strong,
.rodina-blackjack__card:not(.is-card-back):not(.is-hidden) span {
  color: #070707 !important;
  -webkit-text-fill-color: #070707 !important;
  text-shadow: none !important;
}

.rodina-blackjack__card.is-red:not(.is-card-back),
.rodina-blackjack__card.is-red:not(.is-card-back) strong,
.rodina-blackjack__card.is-red:not(.is-card-back) span {
  color: #a60024 !important;
  -webkit-text-fill-color: #a60024 !important;
}

.rodina-blackjack__card.is-hidden {
  align-items: center;
  justify-content: center;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: repeating-linear-gradient(45deg, #000 0 6px, #ff4fdf 6px 12px);
  border-color: #fff;
}

.rodina-blackjack__card.is-card-back,
.rodina-poker__card.is-card-back {
  align-items: center;
  justify-content: center;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background:
    linear-gradient(45deg, transparent 42%, #ff4fdf 43% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #53ffd8 43% 57%, transparent 58%),
    #090909;
  background-size: 18px 18px;
  border-color: #fff;
  box-shadow: 4px 4px 0 #ffe66d;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
}

.rodina-blackjack__table.is-dealing .is-card-back,
.rodina-baccarat__table.is-dealing .is-card-back,
.rodina-poker__table.is-dealing .is-card-back {
  animation: rodina-card-waiting 1.15s ease-in-out infinite alternate;
}

@keyframes rodina-card-waiting {
  from { transform: perspective(220px) rotateY(-5deg) translateY(0); }
  to { transform: perspective(220px) rotateY(5deg) translateY(-4px); }
}

.rodina-blackjack__message {
  width: 100%;
  margin: 24px auto;
  padding: 12px;
  color: #ffe66d;
  background: #000;
  border: 3px solid #fff;
  border-radius: 0;
  font-size: clamp(16px, 3vw, 25px);
  text-align: center;
}

.rodina-blackjack__betting {
  margin-top: 32px;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) minmax(130px, auto);
  gap: 12px;
  align-items: center;
}

.rodina-blackjack__betting input,
.rodina-blackjack__betting button,
.rodina-blackjack__controls button,
.rodina-blackjack-login a {
  min-height: 52px;
  box-sizing: border-box;
  padding: 9px 16px;
  color: #fff;
  background: #000;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 4px 4px 0 #53ffd8;
  font-family: "DotGothic16", monospace;
  font-size: 17px;
}

.rodina-baccarat {
  width: min(900px, 100%);
  margin: 120px auto 0;
  padding-top: 72px;
  color: #fff;
  border-top: 4px solid #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-baccarat__header {
  margin-bottom: 18px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #8b9dff;
}

.rodina-baccarat__header h2 {
  margin: 0;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
}

.rodina-baccarat__header strong {
  color: #ffe66d;
}

.rodina-baccarat__table {
  padding: clamp(20px, 4vw, 36px);
  background:
    linear-gradient(rgba(139, 157, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 157, 255, 0.11) 1px, transparent 1px),
    #10152f;
  background-size: 20px 20px;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #8b9dff, 14px 14px 0 #000;
}

.rodina-baccarat__hands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 28px);
}

.rodina-baccarat__hand header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rodina-baccarat__hand {
  min-width: 0;
  padding: clamp(13px, 2.5vw, 20px);
  border: 3px solid #fff;
}

.rodina-baccarat__hand.is-banker {
  background: rgba(255, 79, 223, 0.18);
  box-shadow: 5px 5px 0 #ff4fdf;
}

.rodina-baccarat__hand.is-player {
  background: rgba(83, 255, 216, 0.16);
  box-shadow: 5px 5px 0 #53ffd8;
}

.rodina-baccarat__hand h3 {
  margin: 0;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: 0.04em;
}

.rodina-baccarat__hand header > span {
  min-width: 46px;
  padding: 5px 9px;
  color: #000;
  background: #ffe66d;
  border: 2px solid #fff;
  font-size: 20px;
  text-align: center;
}

.rodina-baccarat__hand.is-banker header > span {
  background: #ff4fdf;
}

.rodina-baccarat__hand.is-player header > span {
  background: #53ffd8;
}

.rodina-baccarat__cards {
  min-height: 126px;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.rodina-baccarat__message {
  width: 100%;
  margin: 28px auto 0;
  padding: 12px;
  color: #ffe66d;
  background: #000;
  border: 3px solid #fff;
  border-radius: 0;
  font-size: clamp(16px, 3vw, 25px);
  text-align: center;
}

.rodina-baccarat__sides {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rodina-baccarat__sides label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.rodina-baccarat__sides input {
  position: absolute;
  opacity: 0;
}

.rodina-baccarat__sides label > span {
  min-height: 62px;
  box-sizing: border-box;
  padding: 9px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #000;
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 #8b9dff;
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-align: center;
}

.rodina-baccarat__sides label > span > strong {
  color: inherit;
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0.03em;
  word-spacing: 0;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.rodina-baccarat__sides label > span > b {
  margin: 0 0 0 7px;
  color: inherit;
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: 0;
  word-spacing: 0;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.rodina-baccarat__sides .is-tie-choice {
  grid-column: auto;
  width: auto;
}

.rodina-baccarat__sides .is-player-choice > span {
  color: #53ffd8;
  border-color: #53ffd8;
  box-shadow: 4px 4px 0 #53ffd8;
}

.rodina-baccarat__sides .is-banker-choice > span {
  color: #ff4fdf;
  border-color: #ff4fdf;
  box-shadow: 4px 4px 0 #ff4fdf;
}

.rodina-baccarat__sides .is-tie-choice > span {
  color: #ffe66d;
  border-color: #ffe66d;
  box-shadow: 4px 4px 0 #ffe66d;
}

.rodina-baccarat__sides input:checked + span,
.rodina-baccarat__sides .is-player-choice input:checked + span,
.rodina-baccarat__sides .is-banker-choice input:checked + span,
.rodina-baccarat__sides .is-tie-choice input:checked + span {
  color: #000;
  background: #fff;
  border-color: #fff;
  box-shadow: 4px 4px 0 #ff4fdf;
  transform: translate(-3px, -3px);
}

.rodina-baccarat__sides .is-player-choice input:checked + span {
  background: #53ffd8;
  box-shadow: 7px 7px 0 #fff;
}

.rodina-baccarat__sides .is-banker-choice input:checked + span {
  background: #ff4fdf;
  box-shadow: 7px 7px 0 #fff;
}

.rodina-baccarat__sides .is-tie-choice input:checked + span {
  background: #ffe66d;
  box-shadow: 7px 7px 0 #fff;
}

.rodina-baccarat__sides input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.rodina-baccarat__betting {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) minmax(170px, auto);
  gap: 12px;
  align-items: center;
}

.rodina-baccarat__betting input,
.rodina-baccarat__betting button {
  min-height: 52px;
  box-sizing: border-box;
  padding: 9px 16px;
  color: #fff;
  background: #000;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 4px 4px 0 #8b9dff;
  font-family: "DotGothic16", monospace;
  font-size: 16px;
}

.rodina-baccarat__betting button {
  cursor: pointer;
}

.rodina-baccarat__betting button:hover:not(:disabled),
.rodina-baccarat__betting button:focus-visible:not(:disabled) {
  color: #000;
  background: #ffe66d;
  outline: none;
}

.rodina-baccarat__betting button:disabled {
  color: #777;
  border-color: #777;
  box-shadow: none;
  cursor: wait;
}

.rodina-baccarat__rules {
  margin: 25px auto 0;
  font-size: 12px;
  text-align: center;
}

.rodina-blackjack__betting button,
.rodina-blackjack__controls button {
  cursor: pointer;
}

.rodina-blackjack__controls {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.rodina-blackjack__controls button {
  box-shadow: 4px 4px 0 #ff4fdf;
}

.rodina-blackjack button:hover:not(:disabled),
.rodina-blackjack button:focus-visible:not(:disabled) {
  color: #000;
  background: #ffe66d;
  outline: none;
}

.rodina-blackjack button:disabled {
  color: #777;
  border-color: #777;
  box-shadow: none;
  cursor: not-allowed;
}

.rodina-blackjack__rules {
  margin: 26px auto 0;
  font-size: 12px;
  text-align: center;
}

.rodina-blackjack-login {
  padding: 50px 20px;
  box-sizing: border-box;
  background: #080808;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #ff4fdf;
  text-align: center;
}

.rodina-blackjack-login p {
  margin: 0 auto 24px;
}

.rodina-blackjack-login a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .rodina-rich-board__balance {
    padding: 28px 14px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    box-shadow: 6px 6px 0 #53ffd8, 11px 11px 0 #ff4fdf;
  }

  .rodina-rich-board__balance > span {
    grid-column: 1 / -1;
  }

  .rodina-rich-board__balance strong {
    font-size: clamp(46px, 18vw, 78px);
  }

  .rodina-rich-board__games {
    margin-top: 38px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rodina-rich-board__games article {
    padding: 17px;
  }

  .rodina-rich-ranking {
    margin-top: 44px;
    padding: 18px 10px;
    border-width: 3px;
    box-shadow: 5px 5px 0 #53ffd8, 9px 9px 0 #ff4fdf;
  }

  .rodina-rich-name {
    margin-top: 40px;
    padding: 17px 12px;
  }

  .rodina-rich-name > div {
    grid-template-columns: 1fr;
  }

  .rodina-rich-name button {
    width: 100%;
  }

  .rodina-rich-ranking li {
    grid-template-columns: 28px minmax(0, 1fr) max-content;
    gap: 7px;
    padding-inline: 4px;
    font-size: clamp(11px, 3.5vw, 14px);
  }

  .rodina-blackjack__hud {
    padding: 11px 12px;
    gap: 8px;
    font-size: 13px;
  }

  .rodina-blackjack__table {
    padding: 16px 12px;
    border-width: 3px;
    box-shadow: 5px 5px 0 #ff4fdf, 9px 9px 0 #000;
  }

  .rodina-blackjack__cards {
    min-height: 100px;
    gap: 7px;
  }

  .rodina-blackjack__card {
    width: 62px;
    height: 90px;
    padding: 6px;
    font-size: 20px;
  }

  .rodina-blackjack__betting {
    grid-template-columns: 1fr;
  }

  .rodina-blackjack__betting input,
  .rodina-blackjack__betting button {
    width: 100%;
  }

  .rodina-blackjack__controls {
    gap: 10px;
  }

  .rodina-baccarat {
    margin-top: 88px;
    padding-top: 52px;
  }

  .rodina-baccarat__header {
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .rodina-baccarat__table {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 7px;
    border-width: 3px;
    box-shadow: 5px 5px 0 #8b9dff, 9px 9px 0 #000;
  }

  .rodina-baccarat__hands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rodina-baccarat__cards {
    min-height: 78px;
    margin-top: 9px;
    gap: 3px;
  }

  .rodina-baccarat__cards .rodina-blackjack__card {
    width: clamp(34px, 11vw, 43px);
    height: clamp(54px, 17vw, 66px);
    padding: 4px;
    border-width: 2px;
    box-shadow: 2px 2px 0 currentColor;
    font-size: clamp(14px, 4.6vw, 18px);
  }

  .rodina-baccarat__hand {
    min-width: 0;
    padding: 8px 5px;
    box-shadow: 3px 3px 0 currentColor;
  }

  .rodina-baccarat__hand header {
    min-width: 0;
    gap: 3px;
  }

  .rodina-baccarat__hand h3 {
    min-width: 0;
    font-size: clamp(15px, 5vw, 20px);
    letter-spacing: 0;
  }

  .rodina-baccarat__hand header > span {
    min-width: 28px;
    padding: 3px 5px;
    font-size: 15px;
  }

  .rodina-baccarat__sides {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .rodina-baccarat__sides label > span {
    min-height: 54px;
    padding: 7px 3px;
    flex-direction: column;
    font-size: clamp(11px, 3.4vw, 15px);
  }

  .rodina-baccarat__sides label > span > b {
    margin: 5px 0 0;
    font-size: 0.66em;
  }

  .rodina-baccarat__betting {
    grid-template-columns: 1fr;
  }

  .rodina-baccarat__betting input,
  .rodina-baccarat__betting button {
    width: 100%;
  }
}

.rodina-slot {
  width: min(900px, 100%);
  margin: 120px auto 100px;
  padding-top: 72px;
  color: #fff;
  border-top: 4px solid #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-slot__header { margin-bottom: 18px; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #080808; border: 3px solid #fff; box-shadow: 5px 5px 0 #ff4fdf; }
.rodina-slot__header h2 { margin: 0; font-family: "Coral Pixels", "DotGothic16", sans-serif; font-size: clamp(34px, 7vw, 66px); line-height: 1; }
.rodina-slot__header strong { color: #ffe66d; }

.rodina-slot__machine {
  position: relative;
  padding: clamp(32px, 7vw, 68px) clamp(18px, 6vw, 60px) 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #59124c, #171047 55%, #081c25);
  border: 6px double #ffe66d;
  box-shadow: 9px 9px 0 #ff4fdf, 17px 17px 0 #000;
}

.rodina-slot__lights { position: absolute; inset: 8px; pointer-events: none; border: 5px dotted #53ffd8; opacity: 0.58; animation: rodina-slot-lights 2.4s ease-in-out infinite; }
@keyframes rodina-slot-lights {
  50% { border-color: #ff9bea; opacity: 0.86; }
}

.rodina-slot__reels { position: relative; z-index: 1; padding: clamp(9px, 2vw, 18px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 12px); background: #050505; border: 5px solid #fff; box-shadow: inset 0 0 0 5px #222; }
.rodina-slot__reels > span { position: relative; min-width: 0; aspect-ratio: 1.45; display: grid; place-items: center; overflow: hidden; color: #050505; background: repeating-linear-gradient(0deg, #eee 0 9px, #fff 9px 18px); border: 4px solid #ffe66d; font-family: "Coral Pixels", "DotGothic16", sans-serif; font-size: clamp(25px, 6vw, 58px); line-height: 1; text-align: center; text-shadow: 2px 2px 0 #53ffd8; }
.rodina-slot__reels.is-spinning > span { color: #16121b; background: linear-gradient(#ded8e1, #fff 48%, #ded8e1); filter: saturate(0.72); text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.65); }
.rodina-slot__symbol-strip { position: absolute; top: 0; left: 0; width: 100%; display: flex; flex-direction: column; will-change: transform; animation: rodina-slot-strip var(--slot-spin-speed) linear infinite; }
.rodina-slot__symbol-strip > i { width: 100%; height: var(--slot-cell-height); flex: 0 0 var(--slot-cell-height); display: grid; place-items: center; color: #16121b; font-style: normal; }
@keyframes rodina-slot-strip { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, var(--slot-strip-distance), 0); } }

.rodina-slot__reels > span.is-winning {
  position: relative;
  z-index: 2;
  color: #000;
  background: #ffe66d;
  outline: 5px solid #53ffd8;
  outline-offset: -5px;
  box-shadow: 0 0 12px rgba(83, 255, 216, 0.72);
  animation: rodina-slot-win 1.8s ease-in-out infinite;
}

@keyframes rodina-slot-win {
  50% { box-shadow: 0 0 22px rgba(83, 255, 216, 0.9); transform: scale(0.975); }
}

.rodina-slot__payline { position: absolute; z-index: 2; top: 45%; left: 5%; right: 5%; height: 3px; background: #ff3158; box-shadow: 0 0 8px #ff3158; pointer-events: none; }
.rodina-slot__message { position: relative; z-index: 2; margin: 26px 0 0; padding: 12px; color: #ffe66d; background: #000; border: 3px solid #fff; font-size: clamp(16px, 3vw, 24px); text-align: center; }
.rodina-slot__betting { margin-top: 24px; display: grid; grid-template-columns: auto minmax(100px, 1fr) minmax(180px, auto); gap: 12px; align-items: center; }
.rodina-slot__betting input,
.rodina-slot__betting button { min-height: 56px; box-sizing: border-box; padding: 10px 18px; color: #fff; background: #000; border: 3px solid #fff; box-shadow: 5px 5px 0 #ff4fdf; font-family: "DotGothic16", monospace; font-size: 17px; }
.rodina-slot__betting button { color: #000; background: #ffe66d; cursor: pointer; }
.rodina-slot__betting button:hover:not(:disabled) { background: #53ffd8; transform: translate(-2px, -2px); }
.rodina-slot__betting button:disabled { opacity: 0.5; cursor: wait; }
.rodina-slot__paytable { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid #fff; }
.rodina-slot__paytable span { padding: 9px 5px; color: #ffe66d; background: #080808; border: 1px solid #fff; font-size: 11px; text-align: center; }

@media (max-width: 600px) {
  .rodina-slot { margin-top: 88px; padding-top: 52px; }
  .rodina-slot__header { padding: 12px; align-items: flex-start; flex-direction: column; }
  .rodina-slot__machine { padding: 34px 10px 18px; border-width: 4px; }
  .rodina-slot__reels { padding: 7px; gap: 5px; border-width: 3px; }
  .rodina-slot__reels > span { aspect-ratio: 1.25; border-width: 2px; font-size: clamp(18px, 8vw, 34px); }
  .rodina-slot__betting { grid-template-columns: 1fr; }
  .rodina-slot__betting input,
  .rodina-slot__betting button { width: 100%; }
  .rodina-slot__paytable { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rodina-poker {
  width: min(900px, 100%);
  margin: 120px auto 90px;
  padding-top: 72px;
  color: #fff;
  border-top: 4px solid #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-poker__header {
  margin-bottom: 18px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #ffe66d;
}

.rodina-poker__header h2 { margin: 0; font-family: "Coral Pixels", "DotGothic16", sans-serif; font-size: clamp(30px, 6vw, 58px); line-height: 1; }
.rodina-poker__header strong { color: #53ffd8; }

.rodina-poker__table {
  padding: clamp(22px, 5vw, 46px);
  background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0 10px, transparent 10px 20px), #174637;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #ffe66d, 14px 14px 0 #000;
}

.rodina-poker__table.is-dealing { animation: rodina-casino-dealing 0.28s steps(2, end) infinite; }
.rodina-poker__opponents { margin-bottom: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rodina-poker__opponents section { min-width: 0; padding: 10px; background: rgba(0, 0, 0, 0.58); border: 2px solid #fff; }
.rodina-poker__opponents header { margin-bottom: 9px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; }
.rodina-poker__opponents header span { color: #ffe66d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rodina-poker__opponents section > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.rodina-poker__cpu-card { min-width: 0; aspect-ratio: 0.7; display: grid; place-items: center; color: #070707 !important; -webkit-text-fill-color: #070707 !important; background: #fffdf7; border: 2px solid #000; font-family: "DotGothic16", monospace; font-size: clamp(8px, 1.5vw, 14px); font-weight: 700; line-height: 1; text-shadow: none !important; }
.rodina-poker__cpu-card.is-red { color: #a60024 !important; -webkit-text-fill-color: #a60024 !important; }
.rodina-poker__cpu-card.is-card-back { color: #fff !important; -webkit-text-fill-color: #fff !important; background: linear-gradient(45deg, #ff4fdf 25%, #080808 25% 50%, #53ffd8 50% 75%, #080808 75%); background-size: 8px 8px; border-color: #fff; text-shadow: 1px 1px 0 #000 !important; }
.rodina-poker__you { margin: 0 0 13px; color: #53ffd8; font-family: "Coral Pixels", "DotGothic16", sans-serif; font-size: clamp(24px, 5vw, 42px); text-align: center; }
.rodina-poker__cards { min-height: 150px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(7px, 2vw, 15px); align-items: center; }
.rodina-poker__cards label { position: relative; min-width: 0; cursor: pointer; }
.rodina-poker__cards input { position: absolute; opacity: 0; }

.rodina-poker__card {
  width: 100%;
  max-width: 125px;
  aspect-ratio: 0.7;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #070707;
  background: #fffdf7;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #ff4fdf;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(20px, 4vw, 35px);
}

.rodina-poker__card:not(.is-card-back),
.rodina-poker__card:not(.is-card-back) strong,
.rodina-poker__card:not(.is-card-back) i { color: #070707 !important; -webkit-text-fill-color: #070707 !important; text-shadow: none !important; }
.rodina-poker__card.is-red:not(.is-card-back),
.rodina-poker__card.is-red:not(.is-card-back) strong,
.rodina-poker__card.is-red:not(.is-card-back) i { color: #a60024 !important; -webkit-text-fill-color: #a60024 !important; }
.rodina-poker__card i { font-style: normal; text-align: right; }
.rodina-poker__cards input:checked + .rodina-poker__card { transform: translateY(-13px); outline: 5px solid #53ffd8; box-shadow: 5px 18px 0 #000; }
.rodina-poker__cards input:checked + .rodina-poker__card::after { content: "HOLD"; align-self: center; padding: 3px 5px; color: #000; background: #ffe66d; font-family: "DotGothic16", monospace; font-size: clamp(9px, 1.8vw, 14px); }

.rodina-poker__message { margin: 30px 0 0; padding: 12px; color: #ffe66d; background: #000; border: 3px solid #fff; font-size: clamp(16px, 3vw, 24px); text-align: center; }
.rodina-poker__betting { margin-top: 24px; display: grid; grid-template-columns: auto minmax(90px, 1fr) repeat(2, minmax(120px, auto)); gap: 12px; align-items: center; }
.rodina-poker__betting input,
.rodina-poker__betting button { min-height: 52px; box-sizing: border-box; padding: 9px 16px; color: #fff; background: #000; border: 3px solid #fff; box-shadow: 4px 4px 0 #ffe66d; font-family: "DotGothic16", monospace; font-size: 16px; }
.rodina-poker__betting button { cursor: pointer; }
.rodina-poker__betting button:hover:not(:disabled) { color: #000; background: #53ffd8; }
.rodina-poker__betting button:disabled { opacity: 0.45; cursor: not-allowed; }
.rodina-poker__paytable { margin-top: 25px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid #fff; }
.rodina-poker__paytable span { padding: 8px; color: #ffe66d; background: #080808; border: 1px solid #fff; font-size: 11px; text-align: center; }

@media (max-width: 600px) {
  .rodina-poker { margin-top: 88px; padding-top: 52px; }
  .rodina-poker__header { align-items: flex-start; flex-direction: column; padding: 12px; }
  .rodina-poker__table { padding: 24px 9px 16px; }
  .rodina-poker__opponents { margin-bottom: 24px; grid-template-columns: 1fr; gap: 7px; }
  .rodina-poker__opponents section { padding: 7px; }
  .rodina-poker__cpu-card { aspect-ratio: 1.25; font-size: 10px; }
  .rodina-poker__cards { min-height: 105px; gap: 4px; }
  .rodina-poker__card { padding: 4px; border-width: 2px; box-shadow: 3px 3px 0 #ff4fdf; font-size: clamp(15px, 5.5vw, 23px); }
  .rodina-poker__cards input:checked + .rodina-poker__card { transform: translateY(-8px); outline-width: 3px; }
  .rodina-poker__betting { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rodina-poker__betting > label { grid-column: 1 / -1; }
  .rodina-poker__betting input { width: 100%; grid-column: 1 / -1; }
  .rodina-poker__betting button { width: 100%; padding-inline: 5px; }
  .rodina-poker__paytable { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .rodina-flopper-game__hud {
    padding: 11px 12px;
    font-size: 15px;
  }

  .rodina-flopper-game__stage {
    border-width: 3px;
    box-shadow: 5px 5px 0 #ff4fdf, 9px 9px 0 #111;
  }

  .rodina-flopper-game__message {
    font-size: clamp(24px, 8vw, 38px);
  }

  .rodina-flopper-game__start,
  .rodina-flopper-game__flap {
    min-height: 50px;
    font-size: 17px;
  }

  .rodina-flopper-game__flap {
    width: 100%;
    margin-top: 24px;
  }
}

.rodina-ranking {
  width: min(620px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  margin: 54px auto 0;
  padding: 24px;
  color: #fff;
  background: #080808;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #53ffd8, 14px 14px 0 #ff4fdf;
  font-family: "DotGothic16", monospace;
}

.rodina-game-upgrade {
  width: min(620px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  margin: 54px auto 0;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  color: #fff;
  background: #080808;
  border: 4px solid #fff;
  box-shadow: 7px 7px 0 #ff4fdf, 12px 12px 0 #53ffd8;
  font-family: "DotGothic16", monospace;
}

.rodina-game-upgrade h2 {
  margin: 0 0 8px;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1;
}

.rodina-game-upgrade > div > p {
  margin: 0;
  color: #53ffd8;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.rodina-game-upgrade__status {
  display: grid;
  gap: 7px;
  justify-items: end;
  white-space: nowrap;
}

.rodina-game-upgrade__status strong {
  color: #ff8a3d;
  font-size: 1.3em;
}

.rodina-game-upgrade > button,
.rodina-game-upgrade__login {
  min-height: 48px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #000;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 4px 4px 0 #53ffd8;
  font-family: "DotGothic16", monospace;
  cursor: pointer;
}

.rodina-game-upgrade > button {
  grid-column: 1 / -1;
}

.rodina-game-upgrade > button:hover:not(:disabled),
.rodina-game-upgrade > button:focus-visible:not(:disabled),
.rodina-game-upgrade__login:hover,
.rodina-game-upgrade__login:focus-visible {
  color: #000;
  background: #53ffd8;
  outline: none;
}

.rodina-game-upgrade > button:disabled {
  color: #000;
  background: #ff8a3d;
  cursor: default;
}

.rodina-game-upgrade__login {
  grid-column: 2;
  grid-row: 1;
}

.rodina-game-upgrade__message {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 1.4em;
  margin: 0;
  padding: 0;
  color: #ff8a3d;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  text-align: center;
}

.rodina-ranking h2 {
  margin: 0 0 20px;
  color: #fff;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  text-align: center;
}

.rodina-ranking__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 14px;
}

.rodina-ranking__form[hidden] {
  display: none;
}

.rodina-ranking__form label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.rodina-ranking__name,
.rodina-ranking__form button {
  min-height: 48px;
  padding: 8px 12px;
  color: #fff;
  background: #000;
  border: 3px solid #fff;
  border-radius: 0;
  font-family: "DotGothic16", monospace;
  font-size: 16px;
}

.rodina-ranking__form button {
  box-shadow: 4px 4px 0 #ff4fdf;
  cursor: pointer;
}

.rodina-ranking__form button:disabled {
  opacity: 0.55;
}

.rodina-ranking__notice {
  min-height: 1.5em;
  margin: 10px 0;
  color: #53ffd8;
  text-align: center;
}

.rodina-ranking__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.rodina-ranking__list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.rodina-ranking__list li:first-child {
  border-top: 3px solid #fff;
}

.rodina-ranking__list strong {
  color: #ff8a3d;
}

.rodina-ranking__list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rodina-ranking__list b {
  color: #53ffd8;
  font-weight: 400;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .rodina-ranking {
    width: calc(100% - 12px);
    margin-right: auto;
    margin-left: auto;
    padding: 18px 10px;
    border-width: 3px;
    box-shadow: 5px 5px 0 #53ffd8, 9px 9px 0 #ff4fdf;
  }

  .rodina-ranking__form,
  .rodina-ranking__form label {
    grid-template-columns: 1fr;
  }

  .rodina-ranking__list li {
    grid-template-columns: 26px minmax(0, 1fr) max-content;
    gap: 6px;
    min-width: 0;
    padding-inline: 2px;
    font-size: clamp(11px, 3.4vw, 14px);
  }

  .rodina-ranking__name,
  .rodina-ranking__form button {
    width: 100%;
    box-sizing: border-box;
  }

  .rodina-ranking__list b {
    font-size: 0.92em;
  }

  .rodina-game-upgrade {
    width: calc(100% - 12px);
    padding: 18px 12px;
    grid-template-columns: 1fr;
    box-shadow: 5px 5px 0 #ff4fdf, 9px 9px 0 #53ffd8;
  }

  .rodina-game-upgrade__status {
    grid-template-columns: repeat(2, auto);
    justify-content: space-between;
    justify-items: start;
  }

  .rodina-game-upgrade > button,
  .rodina-game-upgrade__login {
    width: 100%;
    box-sizing: border-box;
    grid-column: auto;
    grid-row: auto;
  }
}

.rodina-contact-layer {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 48px);
  margin: 64px auto 0;
  padding: clamp(22px, 4vw, 42px) clamp(24px, 6vw, 72px);
  background: #080808;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow:
    8px 8px 0 #ff4fdf,
    16px 16px 0 #111,
    19px 19px 0 #fff;
}

.rodina-contact-layer::before,
.rodina-contact-layer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.rodina-contact-layer::before {
  inset: 7px;
  border: 1px solid rgba(255, 79, 223, 0.85);
}

.rodina-contact-layer::after {
  inset: 13px;
  border: 1px dashed rgba(255, 255, 255, 0.48);
}

.rodina-contact-layer a {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #fff;
  font-family: "DotGothic16", monospace;
  font-size: clamp(24px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.rodina-contact-layer a:hover,
.rodina-contact-layer a:focus-visible {
  color: #ff4fdf;
  outline: none;
}

.trap-symbol-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  overflow: hidden;
  color: #ff4fdf;
  background: #000;
  pointer-events: none;
  user-select: none;
}

.trap-symbol-background__row {
  width: max-content;
  min-width: 200%;
  font-family: "Coral Pixels", "DotGothic16", monospace;
  font-size: var(--trap-row-size, 28px);
  line-height: 1;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0.72;
  will-change: transform;
}

.trap-symbol-background__row.is-right-to-left {
  animation: trap-symbols-right-to-left var(--trap-row-speed, 18s) linear
    infinite;
}

.trap-symbol-background__row.is-left-to-right {
  animation: trap-symbols-left-to-right var(--trap-row-speed, 18s) linear
    infinite;
}

.trap-centered-logo {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(920px, 76vw);
  aspect-ratio: 2048 / 946;
  background: #000 url("../img/rodina-logo.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none;
  will-change: transform;
  animation: trap-centered-logo-shake 0.075s steps(1, end) infinite;
}

@keyframes trap-centered-logo-shake {
  0%,
  100% {
    transform: translate(calc(-50% - 2px), calc(-50% + 1px)) rotate(-0.15deg);
  }

  25% {
    transform: translate(calc(-50% + 2px), calc(-50% - 2px)) rotate(0.18deg);
  }

  50% {
    transform: translate(calc(-50% - 1px), calc(-50% - 1px)) rotate(-0.12deg);
  }

  75% {
    transform: translate(calc(-50% + 1px), calc(-50% + 2px)) rotate(0.14deg);
  }
}

@keyframes trap-symbols-right-to-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes trap-symbols-left-to-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

body.page-id-2 .rodina-page__content {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
  font-size: 300%;
}

body.page-id-2 .rodina-page__body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sample-page-shaking-character {
  display: inline-block;
  animation: sample-page-character-shake var(--character-shake-speed, 0.08s)
    steps(1, end) var(--character-shake-delay, 0s) infinite;
  will-change: transform;
}

@keyframes sample-page-character-shake {
  0% {
    transform: translate(
      var(--character-shake-x, 1px),
      var(--character-shake-y, -1px)
    );
  }

  25% {
    transform: translate(
      var(--character-shake-y, -1px),
      var(--character-shake-x, 1px)
    );
  }

  50% {
    transform: translate(0, 0);
  }

  75% {
    transform: translate(
      var(--character-shake-x, 1px),
      var(--character-shake-y, -1px)
    );
  }

  100% {
    transform: translate(
      var(--character-shake-x, 1px),
      var(--character-shake-y, -1px)
    );
  }
}

.is-clickable {
  cursor: pointer;
}

.price,
.front-product-card__price,
.rodina-product__price,
.woocommerce-Price-amount,
.wc-block-formatted-money-amount {
  color: #fff !important;
  opacity: 1 !important;
}

@keyframes rodina-idle-text-shake {
  0%,
  100% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }
}

@keyframes rodina-idle-logo-grow {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform:
      translate(
        calc(50vw - 50% - var(--rodina-header-edge, 40px)),
        clamp(40px, 14vh, 140px)
      )
      scale(8);
  }
}

@keyframes rodina-idle-logo-twitch {
  0% {
    transform: translate(0, 1px) rotate(-0.5deg);
  }

  25% {
    transform: translate(2px, 0) rotate(0.6deg);
  }

  50% {
    transform: translate(0, 2px) rotate(-0.4deg);
  }

  75% {
    transform: translate(2px, 2px) rotate(0.5deg);
  }

  100% {
    transform: translate(0, 1px) rotate(-0.5deg);
  }
}

body.is-idle-shaking
  :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    a,
    button,
    label,
    span,
    strong,
    em,
    small,
    li,
    dt,
    dd,
    th,
    td,
    legend,
    caption,
    blockquote,
    code,
    input,
    select,
    textarea
  ):not(:has(h1, h2, h3, h4, h5, h6, p, a, button, label, span, strong, em, small, li, dt, dd, th, td)) {
  animation: rodina-idle-text-shake 0.22s ease-in-out infinite;
}

body.is-idle-shaking
  :where(
    .site-header__icon,
    .site-header__search-icon,
    .site-header__menu-toggle,
    .wc-block-components-quantity-selector button svg
  ) {
  animation: rodina-idle-text-shake 0.22s ease-in-out infinite;
}

body.is-idle-shaking .site-header__logo {
  position: relative;
  z-index: 2;
  transform-origin: center top;
  will-change: transform;
  animation: rodina-idle-logo-grow 6s linear forwards !important;
}

.site-header__logo.is-idle-returning {
  position: relative;
  z-index: 2;
  transform-origin: center top;
  will-change: transform;
  transition: transform 3s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-idle-shaking .site-header__logo a {
  display: inline-block;
  will-change: transform;
  animation: rodina-idle-logo-twitch 0.07s steps(1, end) infinite !important;
}

@media (prefers-reduced-motion: reduce) {
  body.is-idle-shaking
    :where(
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      p,
      a,
      button,
      label,
      span,
      strong,
      em,
      small,
      li,
      dt,
      dd,
      th,
      td,
      legend,
      caption,
      blockquote,
      code,
      input,
      select,
      textarea
    ):not(:has(h1, h2, h3, h4, h5, h6, p, a, button, label, span, strong, em, small, li, dt, dd, th, td)) {
    animation: none;
  }

  body.is-idle-shaking
    :where(
      .site-header__icon,
      .site-header__search-icon,
      .site-header__menu-toggle,
      .wc-block-components-quantity-selector button svg
    ) {
    animation: none;
  }

  body.is-idle-shaking .site-header__logo {
    animation: none;
  }

  body.is-idle-shaking .site-header__logo a {
    animation: none !important;
  }
}

body main {
  background-color: #000 !important;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 0, 68, 0.34) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 255, 204, 0.28) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(135deg, rgba(35, 92, 255, 0.34) 0 1px, transparent 1px 5px),
    url("../img/rodina-logo.png") !important;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat !important;
  background-position:
    center,
    var(--rgb-noise-a, 0 0),
    var(--rgb-noise-b, 0 0),
    var(--rgb-noise-c, 0 0),
    var(--rodina-logo-position, 0 0) !important;
  background-size: cover, 3px 3px, 4px 4px, 5px 5px, calc(100vw / 4) auto !important;
  background-attachment: fixed, fixed, fixed, fixed, fixed !important;
  animation: rodina-rgb-static 0.18s steps(2, end) infinite;
}

body main :where(h1, h2, h3, h4, h5, h6, p, dt, dd) {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.16em 0.34em;
  background-color: rgba(0, 0, 0, 0.78);
  border-radius: 0.42em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body main :where(h1, h2, h3, h4, h5, h6) {
  font-family: "Creepster", "DotGothic16", cursive;
}

/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: calc(100% - 80px);
  margin: 0 auto;
  height: 96px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.site-header__logo a {
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header__nav {
  justify-self: center;
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__menu a {
  position: relative;
  display: inline-block;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.site-header__menu #menu-item-6 > a,
.site-header__menu #menu-item-7 > a {
  font-family: "Creepster", cursive;
}

.site-header__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.site-header__menu a:hover {
  opacity: 0.75;
}

.site-header__menu a:hover::after {
  width: 100%;
}

.site-header__menu .current-menu-item > a::after {
  width: 100%;
}

.site-header__menu .current-menu-item > a {
  opacity: 0.75;
}

/* Header icons */

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.site-header__action-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__menu .site-header__rich-link {
  min-width: 112px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: #53ffd8;
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 #ff4fdf;
  font-family: "DotGothic16", monospace;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.site-header__menu .site-header__rich-link:hover,
.site-header__menu .site-header__rich-link:focus-visible {
  color: #fff;
  background: #000;
  outline: none;
}

.site-header__menu .site-header__rich-link::after {
  display: none;
}

.site-header__menu .site-header__money-link {
  padding: 8px 12px;
  color: #000;
  background: #ffe66d;
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 #ff4fdf;
  font-family: "DotGothic16", monospace;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.site-header__menu .site-header__money-link:hover,
.site-header__menu .site-header__money-link:focus-visible {
  color: #fff;
  background: #000;
  opacity: 1;
  outline: none;
  transform: rotate(2deg) translateY(-2px);
}

.site-header__menu .site-header__money-link::after {
  display: none;
}

.site-header__menu-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #0b0b0b;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 0;
  cursor: pointer;
}

.site-header__menu-toggle span {
  width: 17px;
  height: 1px;
  display: block;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.site-header__menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-header__menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header__product-search {
  position: relative;
  z-index: 1;
  width: clamp(180px, 18vw, 280px);
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b0b0b;
  border: 2px solid #fff;
  border-radius: 0;
  box-shadow: 3px 3px 0 #ff4fdf;
  transform: scale(1);
  transform-origin: center;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header__product-search:focus-within {
  z-index: 20;
  background: #151515;
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(12px) scale(2);
}

.site-header__search-input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 4px 0 18px;
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: "DotGothic16", sans-serif;
  font-size: 14px;
  outline: none;
  appearance: none;
}

.site-header__search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-family: "DotGothic16", sans-serif;
}

.site-header__search-input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.65;
}

.site-header__search-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: #0b0b0b;
  color: #fff;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.site-header__search-button:hover,
.site-header__search-button:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

.site-header__search-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header__icon-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0b;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 0;
  box-shadow: 3px 3px 0 #53ffd8;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.site-header__icon-link:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}

.site-header__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header__cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.site-header__cart:hover .site-header__cart-count {
  background: #000;
  color: #fff;
}

/* =========================
   Button
========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 48px;
  padding: 0 24px;
  border-radius: 0;
  font-family: "DotGothic16", monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: #fff;
  color: #000;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #ff4fdf;
}

.button--primary:hover {
  background: #151515;
  color: #fff;
}

.button--secondary {
  background: #0b0b0b;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #53ffd8;
}

.rodina-index-page {
  width: min(1180px, calc(100% - 80px));
  min-height: 60vh;
  box-sizing: border-box;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 100px) 0;
  color: #fff;
}

.rodina-index-page > * {
  margin-inline: auto;
  text-align: center;
}

.button--secondary:hover {
  border-color: #fff;
}

/* WooCommerce notices */
.woocommerce-notices-wrapper {
  width: min(1280px, calc(100% - 80px));
  max-width: 100%;
  box-sizing: border-box;
  margin: 28px auto 34px;
  font-family: "DotGothic16", monospace;
}

.woocommerce-notices-wrapper:empty {
  display: none;
}

:where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) {
  position: relative;
  min-height: 64px;
  box-sizing: border-box;
  margin: 0 0 18px !important;
  padding: 17px 190px 17px 62px !important;
  display: flex;
  align-items: center;
  color: #fff !important;
  background: #080808 !important;
  border: 3px solid #fff !important;
  border-radius: 0 !important;
  box-shadow: 6px 6px 0 #ff4fdf, 10px 10px 0 #000;
  font-family: "DotGothic16", monospace !important;
  font-size: 15px;
  line-height: 1.65;
  list-style: none outside !important;
}

:where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner)::before {
  position: absolute !important;
  top: 50% !important;
  left: 18px !important;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #000 !important;
  background: #53ffd8;
  border: 2px solid #fff;
  border-radius: 0;
  font-family: "DotGothic16", monospace !important;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-50%);
}

.woocommerce-error::before {
  background: #ff8a3d;
}

.woocommerce-message {
  padding-right: 84px !important;
  padding-left: 84px !important;
  text-align: center;
  justify-content: center;
}

.woocommerce-message::before,
.woocommerce-message::after {
  content: "☠" !important;
  color: #fff !important;
  background: #000;
  border-color: #53ffd8;
  animation: rodina-notice-skull-left 0.11s steps(2, end) infinite;
  width: 46px;
  height: 46px;
  font-size: 32px;
}

.woocommerce-message::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid #ff4fdf;
  font-family: "DotGothic16", monospace;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
  animation-name: rodina-notice-skull-right;
}

.woocommerce-message :where(.button, .wc-forward) {
  display: none !important;
}

@keyframes rodina-notice-skull-left {
  0% { transform: translate(-1px, calc(-50% - 1px)) rotate(-2deg); }
  25% { transform: translate(1px, calc(-50% + 1px)) rotate(2deg); }
  50% { transform: translate(-1px, calc(-50% + 1px)) rotate(1deg); }
  75% { transform: translate(1px, calc(-50% - 1px)) rotate(-1deg); }
  100% { transform: translate(0, -50%) rotate(0); }
}

@keyframes rodina-notice-skull-right {
  0% { transform: translate(1px, calc(-50% + 1px)) rotate(2deg); }
  25% { transform: translate(-1px, calc(-50% - 1px)) rotate(-2deg); }
  50% { transform: translate(1px, calc(-50% - 1px)) rotate(-1deg); }
  75% { transform: translate(-1px, calc(-50% + 1px)) rotate(1deg); }
  100% { transform: translate(0, -50%) rotate(0); }
}

:where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) :where(.button, .wc-forward) {
  position: absolute;
  top: 50%;
  right: 16px;
  min-width: 150px;
  min-height: 42px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 9px 15px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none !important;
  color: #fff !important;
  background: #000 !important;
  border: 2px solid #fff !important;
  border-radius: 0 !important;
  box-shadow: 3px 3px 0 #53ffd8;
  font-family: "DotGothic16", monospace !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-align: center;
  transform: translateY(-50%);
}

:where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) :where(.button, .wc-forward):hover {
  color: #000 !important;
  background: #fff !important;
}

@media (max-width: 720px) {
  .woocommerce-notices-wrapper {
    width: calc(100% - 32px);
    margin-top: 20px;
    margin-bottom: 26px;
  }

  :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) {
    min-height: 0;
    padding: 54px 14px 14px !important;
    display: block;
    font-size: 14px;
  }

  :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner)::before {
    top: 14px !important;
    left: 14px !important;
    transform: none;
  }

  .woocommerce-message {
    min-height: 76px;
    padding: 18px 58px !important;
    display: flex;
  }

  .woocommerce-message::before {
    top: 50% !important;
    left: 10px !important;
    width: 38px;
    height: 38px;
    font-size: 27px;
  }

  .woocommerce-message::after {
    top: 50%;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 27px;
  }

  body.is-vibration-stopped .woocommerce-message::before,
  body.is-vibration-stopped .woocommerce-message::after {
    transform: translateY(-50%);
  }

  :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) :where(.button, .wc-forward) {
    position: static;
    width: 100%;
    margin-top: 14px !important;
    transform: none;
  }
}

@media (max-width: 768px) {
  .rodina-index-page {
    width: calc(100% - 32px);
  }
}

/* =========================
   Footer
========================= */

.site-footer {
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Inter", "Noto Serif JP", sans-serif;
}

.site-footer__inner {
  width: calc(100% - 80px);
  margin: 0 auto;
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
}

.site-footer__logo {
  display: inline-block;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__description {
  max-width: 360px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.9;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.site-footer__heading {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li + li {
  margin-top: 12px;
}

.site-footer__list a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease;
}

.site-footer__list a:hover {
  color: #fff;
}

.site-footer__bottom {
  width: calc(100% - 80px);
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* =========================
   Responsive Common
========================= */

@media (max-width: 768px) {
  .site-footer__logo {
    font-size: 56px;
  }

  body.page-id-24 .rodina-page__content {
    width: calc(100% - 32px);
    padding: 48px 0 72px;
  }

  body.page-id-24 .rodina-page__title {
    margin-bottom: 14px;
    font-size: clamp(44px, 14vw, 72px);
  }

  body.page-id-24 .rodina-page__subtitle {
    margin-bottom: 32px;
    font-size: clamp(16px, 4.6vw, 22px);
  }

  body.page-id-24 .rodina-page__body {
    font-size: clamp(25px, 7.2vw, 42px);
    line-height: 1.24;
  }

  body.page-id-2 .rodina-page__content {
    width: calc(100% - 24px);
    padding: 40px 0 64px;
    font-size: 100%;
  }

  body.page-id-2 .rodina-page__title {
    font-size: clamp(30px, 9vw, 42px);
  }

  body.is-idle-shaking .site-header__logo {
    --rodina-header-edge: 16px;
  }

  body.is-mobile-menu-open {
    overflow: hidden;
  }

  body,
  body main {
    background-size: cover, 3px 3px, 4px 4px, 5px 5px, calc(100vw / 3) auto !important;
    background-attachment: fixed, fixed, fixed, fixed, fixed !important;
  }

  .site-header__inner {
    position: relative;
    width: calc(100% - 32px);
    height: auto;
    min-height: 88px;
    padding: 22px 0;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo actions";
    gap: 18px;
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: calc(100vh - 88px);
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease,
      transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header.is-menu-open::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header__logo {
    grid-area: logo;
  }

  .site-header__logo a {
    font-size: 56px;
  }

  .site-header__nav {
    position: absolute;
    z-index: 2;
    top: calc(100% + 92px);
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition:
      opacity 0.24s ease 0.04s,
      visibility 0.24s ease,
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
  }

  .site-header.is-menu-open .site-header__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header__menu {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .site-header__menu a {
    font-size: 16px;
  }

  .site-header__actions {
    grid-area: actions;
    display: contents;
  }

  .site-header__product-search {
    position: absolute;
    z-index: 2;
    top: calc(100% + 24px);
    left: 0;
    width: 100%;
    height: 46px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition:
      opacity 0.24s ease,
      visibility 0.24s ease,
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header.is-menu-open .site-header__product-search {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header.is-menu-open .site-header__product-search:focus-within {
    z-index: 20;
    transform: translateY(14px) scale(1.04);
    transform-origin: top center;
  }

  .site-header__action-links {
    grid-area: actions;
    justify-self: end;
  }

  .site-header__menu-toggle {
    display: inline-flex;
    order: 3;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .site-header__icon-link {
    width: 40px;
    height: 40px;
  }

  .site-header__icon {
    width: 20px;
    height: 20px;
  }

  .site-footer__inner {
    width: calc(100% - 32px);
    padding: 56px 0 40px;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__bottom {
    width: calc(100% - 32px);
  }
}

@media (max-width: 480px) {
  body.page-id-41 .rodina-page__content,
  body.page-id-44 .rodina-page__content,
  body.page-id-45 .rodina-page__content,
  body.page-id-46 .rodina-page__content,
  body.page-id-47 .rodina-page__content {
    width: calc(100% - 24px);
    padding: 30px 0 64px;
  }

  body.page-id-41 .rodina-page__title,
  body.page-id-44 .rodina-page__title,
  body.page-id-45 .rodina-page__title,
  body.page-id-46 .rodina-page__title,
  body.page-id-47 .rodina-page__title {
    margin-bottom: 20px;
    font-size: clamp(46px, 17vw, 72px);
  }

  .rodina-464-game__arena {
    height: 56vh;
    min-height: 380px;
  }

  .rodina-464-game__hud {
    padding: 10px 8px;
    font-size: clamp(11px, 3.4vw, 15px);
  }

  .rodina-464-game__player {
    width: 76px;
    height: 48px;
    font-size: 28px;
  }

  .rodina-464-game__controls button {
    min-height: 58px;
  }

  .rodina-race-game__lane {
    height: 104px;
  }

  .rodina-race-game__hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 12px;
    font-size: clamp(11px, 3.2vw, 14px);
  }

  .rodina-race-game__status {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 40px;
    font-size: clamp(10px, 3.5vw, 14px);
    text-align: center;
  }

  .rodina-race-game__hud > .rodina-credit-rate {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .rodina-race-game__car {
    top: 35px;
    width: 62px;
    height: 42px;
    font-size: 30px;
  }

  .rodina-race-game__car::before,
  .rodina-race-game__car::after {
    left: 6px;
    width: 15px;
    height: 6px;
    box-shadow: 31px 0 0 #fff;
  }

  .rodina-race-game__car::before {
    top: -9px;
  }

  .rodina-race-game__car::after {
    bottom: -9px;
  }

  .rodina-race-game__finish {
    right: 7%;
    width: 24px;
    background-size: 12px 12px;
  }

  .rodina-race-game__controls {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }

  .rodina-race-game__controls button {
    min-height: 54px;
  }

  .rodina-block-game {
    margin-top: 88px;
    padding-top: 54px;
  }

  .rodina-block-game__controls {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .rodina-block-game__controls button[data-block-action="drop"] {
    grid-column: span 2;
  }

  .rodina-block-game__controls button {
    min-height: 52px;
  }

  .site-footer__logo {
    font-size: clamp(36px, 11.5vw, 48px);
    white-space: nowrap;
  }

  body.page-id-29 .rodina-page__content {
    width: calc(100% - 24px);
    padding: 40px 0 72px;
  }

  body.page-id-29 .rodina-page__body {
    margin-top: 34px;
    font-size: clamp(25px, 8vw, 38px);
    line-height: 1.22;
  }

  body.page-id-26 .rodina-page__content {
    width: calc(100% - 32px);
    padding: 40px 0 72px;
  }

  .rodina-contact-layer {
    max-width: calc(100% - 24px);
    margin-top: 42px;
    padding: 26px 18px;
    box-shadow:
      5px 5px 0 #ff4fdf,
      10px 10px 0 #111,
      12px 12px 0 #fff;
  }

  .rodina-contact-layer a {
    font-size: clamp(18px, 6vw, 28px);
  }

  .trap-centered-logo {
    width: 92vw;
  }

  body.page-id-24 .rodina-page__content {
    width: calc(100% - 24px);
    padding: 36px 0 56px;
  }

  body.page-id-24 .rodina-page__title {
    margin-bottom: 12px;
    font-size: clamp(38px, 13vw, 56px);
  }

  body.page-id-24 .rodina-page__subtitle {
    margin-bottom: 26px;
    font-size: clamp(15px, 4.5vw, 19px);
  }

  body.page-id-24 .rodina-page__body {
    font-size: clamp(22px, 6.8vw, 31px);
    line-height: 1.28;
  }

  body.page-id-2 .rodina-page__content {
    width: calc(100% - 8px);
    padding: 28px 0 48px;
  }

  body.page-id-2 .rodina-page__title {
    font-size: clamp(28px, 9vw, 38px);
    white-space: nowrap;
  }

  body.page-id-2 .rodina-page__body pre {
    margin-inline: 0;
    font-size: clamp(12px, 3.8vw, 16px);
    line-height: 1.2;
    letter-spacing: -0.04em;
  }

  body.is-idle-shaking .site-header__logo {
    --rodina-header-edge: 12px;
  }

  .site-header__inner {
    width: calc(100% - 24px);
    min-height: 72px;
    padding: 16px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .site-header__logo {
    min-width: 0;
  }

  .site-header__logo a {
    font-size: clamp(36px, 11.5vw, 48px);
    white-space: nowrap;
  }

  .site-header__action-links {
    gap: 6px;
  }

  .site-header__icon-link,
  .site-header__menu-toggle {
    width: 34px;
    height: 34px;
  }

  .site-header__icon,
  .site-header__search-icon {
    width: 18px;
    height: 18px;
  }

  .site-header__cart-count {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
  }

  .site-header::after {
    height: calc(100vh - 72px);
  }

  .site-header__product-search {
    top: calc(100% + 18px);
  }

  .site-header__nav {
    top: calc(100% + 78px);
  }
}

@media (max-width: 360px) {
  .site-header__logo a {
    font-size: 32px;
  }
}

.rodina-roulette {
  width: min(900px, 100%);
  margin: 120px auto 80px;
  padding-top: 72px;
  color: #fff;
  border-top: 4px solid #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-roulette__header {
  margin-bottom: 18px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #ff3158;
}

.rodina-roulette__header h2 {
  margin: 0;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
}

.rodina-roulette__header strong {
  color: #53ffd8;
}

.rodina-roulette__machine {
  padding: clamp(24px, 5vw, 46px);
  background: #101010;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #ff3158, 14px 14px 0 #000;
}

.rodina-roulette__wheel {
  position: relative;
  width: clamp(170px, 34vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: #131313;
  border: 10px double #ffe66d;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff, 0 0 0 10px #53ffd8, 12px 12px 0 10px #000;
}

.rodina-roulette__wheel::before {
  content: "";
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  border: 14px solid transparent;
  border-top: 0;
  border-bottom-color: #ffe66d;
}

.rodina-roulette__rotor {
  position: absolute;
  inset: 5%;
  overflow: hidden;
  background: radial-gradient(circle, #ffe66d 0 5%, #171717 5.5% 23%, #444 23.5% 25%, #111 25.5% 48%, #777 48.5% 50%, #111 50.5%);
  border: 3px solid #fff;
  border-radius: 50%;
}

.rodina-roulette__rotor i {
  position: absolute;
  top: 0;
  left: calc(50% - clamp(7px, 1.35vw, 12px));
  width: clamp(14px, 2.7vw, 24px);
  height: 50%;
  box-sizing: border-box;
  padding-top: 3px;
  transform: rotate(calc(var(--pocket-index) * 9.72973deg));
  transform-origin: 50% 100%;
  color: #fff;
  background: #070707;
  border-inline: 1px solid rgba(255, 255, 255, 0.72);
  clip-path: polygon(17% 0, 83% 0, 66% 32%, 34% 32%);
  font-style: normal;
  text-align: center;
}

.rodina-roulette__rotor i.is-red { background: #c9163b; }
.rodina-roulette__rotor i.is-green { background: #078252; }

.rodina-roulette__rotor i b {
  display: block;
  font-family: "DotGothic16", monospace;
  font-size: clamp(5px, 1.12vw, 10px);
  font-weight: 400;
  line-height: 1;
  transform: rotate(calc(var(--pocket-index) * -9.72973deg));
}

.rodina-roulette__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 31%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: #fff;
  background: #111;
  border: 4px double #ffe66d;
  border-radius: 50%;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(20px, 5vw, 42px);
}

.rodina-roulette__result {
  position: absolute;
  z-index: 3;
  right: -13%;
  bottom: -6%;
  width: 29%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: #087f4f;
  border: 4px solid #fff;
  box-shadow: 4px 4px 0 #000;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(28px, 6vw, 55px);
}

.rodina-roulette__wheel[data-color="red"] > .rodina-roulette__result { background: #d7193f; }
.rodina-roulette__wheel[data-color="black"] > .rodina-roulette__result { background: #080808; }
.rodina-roulette__wheel.is-spinning .rodina-roulette__rotor { animation: rodina-roulette-spin 0.18s linear infinite; }

@keyframes rodina-roulette-spin { to { transform: rotate(360deg); } }

.rodina-blackjack__table.is-dealing,
.rodina-baccarat__table.is-dealing {
  animation: rodina-casino-dealing 0.32s steps(2, end) infinite;
}

.rodina-blackjack__table.is-dealing .rodina-blackjack__cards,
.rodina-baccarat__table.is-dealing .rodina-baccarat__cards {
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(83, 255, 216, 0.16) 12px 14px);
}

@keyframes rodina-casino-dealing {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -2px); }
}

[data-blackjack-balance],
[data-baccarat-balance],
[data-roulette-balance],
[data-horse-race-balance],
[data-poker-balance],
[data-slot-balance] {
  display: inline-block;
  min-width: 3ch;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.rodina-horse-race {
  width: min(900px, 100%);
  margin: 120px auto 80px;
  padding-top: 72px;
  color: #fff;
  border-top: 4px solid #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-horse-race__header {
  margin-bottom: 18px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #080808;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #53ffd8;
}

.rodina-horse-race__header h2 {
  margin: 0;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
}

.rodina-horse-race__header strong { color: #ffe66d; }

.rodina-horse-race__track {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  background: #151515;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #ff3158, 14px 14px 0 #000;
}

.rodina-horse-race__camera {
  position: absolute;
  inset: 0;
  background: #151515;
  transform: scale(1);
  transform-origin: var(--camera-origin-x, 50%) var(--camera-origin-y, 50%);
  transition: transform 1.35s cubic-bezier(.22,.72,.28,1);
  will-change: transform;
}

.rodina-horse-race__camera::before {
  content: "";
  position: absolute;
  inset: 28% 22%;
  z-index: 0;
  pointer-events: none;
  background: #050505;
  border: 2px solid #666;
  border-radius: 999px;
}

.rodina-horse-race__finish {
  position: absolute;
  top: var(--finish-top, 8%);
  left: var(--finish-left, 28%);
  z-index: 1;
  width: clamp(52px, 11%, 100px);
  height: 18px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  color: #ffe66d;
  background: repeating-conic-gradient(#fff 0 25%, #050505 0 50%) 0 0 / 14px 14px;
  border: 3px solid #ffe66d;
  box-shadow: 0 0 0 2px #000, 0 0 13px #ffe66d;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  transform: translate(-50%, -50%) rotate(var(--finish-angle, 90deg));
}

.rodina-horse-race__lane {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: var(--horse-lane-width);
  height: var(--horse-lane-height);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.rodina-horse-race__horse {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: clamp(18px, 2.3vw, 23px);
  height: clamp(21px, 2.8vw, 27px);
  display: grid;
  place-items: center;
  color: #050505;
  background: #fff;
  border: 3px solid #050505;
  border-radius: 2px;
  outline: 2px solid hsl(var(--horse-hue) 95% 58%);
  font-family: "DotGothic16", monospace;
  line-height: 1;
  filter: drop-shadow(3px 3px 0 #000);
  offset-path: inset(0 round 999px);
  offset-distance: 0%;
  offset-rotate: auto 90deg;
  transform: translate(-50%, -50%);
  transition: transform 0.7s ease, filter 0.7s ease;
  will-change: offset-distance;
}

.rodina-horse-race__horse i { color: #050505; font-family: serif; font-size: clamp(15px, 2vw, 20px); font-weight: 700; font-style: normal; }
.rodina-horse-race__horse b { position: absolute; inset: auto -5px -5px auto; min-width: 16px; padding: 2px 1px; color: #050505; background: hsl(var(--horse-hue) 95% 65%); border: 1px solid #050505; font-size: 8px; font-weight: 700; text-align: center; }

.rodina-horse-race__track.is-racing .rodina-horse-race__horse {
  animation: none;
}

.rodina-horse-race__track.is-racing .rodina-horse-race__horse i {
  animation: rodina-horse-gallop 0.28s ease-in-out infinite alternate;
}

.rodina-horse-race__track.is-finished .rodina-horse-race__horse.is-winner {
  color: #ffe66d;
  filter: drop-shadow(3px 3px 0 #ff3158);
}

.rodina-horse-race__track.is-final-stretch .rodina-horse-race__camera {
  transform: scale(2.15);
}

.rodina-horse-race__track.is-finished .rodina-horse-race__horse i {
  animation: none;
}

@keyframes rodina-horse-gallop {
  from { transform: translateY(-1px) rotate(-2deg); }
  to { transform: translateY(2px) rotate(2deg); }
}

.rodina-horse-race__message {
  margin: 28px 0 0;
  padding: 12px;
  color: #ffe66d;
  background: #000;
  border: 3px solid #fff;
  font-size: clamp(16px, 3vw, 24px);
  text-align: center;
}

.rodina-horse-race__choices {
  margin: 24px 0 0;
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: #080808;
  border: 3px solid #fff;
}

.rodina-horse-race__choices legend { padding: 0 10px; color: #53ffd8; }
.rodina-horse-race__choices > label { position: relative; min-width: 0; display: block; cursor: pointer; }
.rodina-horse-race__choices > label > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rodina-horse-race__choices > label > span {
  width: 100%;
  height: 100px;
  padding: 9px 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #fff;
  background: #181818;
  border: 2px solid #fff;
  text-align: center;
}
.rodina-horse-race__choices > label > span > b { color: #ffe66d; font-size: 20px; }
.rodina-horse-race__choices > label > span > strong { min-width: 0; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.rodina-horse-race__choices > label > span > em { color: #53ffd8; font-style: normal; }
.rodina-horse-race__choices > label > input:checked + span { color: #000; background: #ffe66d; box-shadow: 4px 4px 0 #53ffd8; transform: translate(-2px, -2px); }
.rodina-horse-race__choices > label > input:focus-visible + span { outline: 3px solid #ff3158; outline-offset: 2px; }
.rodina-horse-race__choices > label > input:checked + span > b,
.rodina-horse-race__choices > label > input:checked + span > em { color: #000; }

.rodina-horse-race__betting {
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
}
.rodina-horse-race__betting input,
.rodina-horse-race__betting button { min-height: 52px; box-sizing: border-box; padding: 9px 16px; color: #fff; background: #000; border: 3px solid #fff; box-shadow: 4px 4px 0 #ff3158; font-family: "DotGothic16", monospace; font-size: 16px; }
.rodina-horse-race__betting button { cursor: pointer; }
.rodina-horse-race__betting button:hover:not(:disabled) { color: #000; background: #53ffd8; }
.rodina-horse-race__betting button:disabled { opacity: 0.5; cursor: wait; }
.rodina-horse-race__rules { margin: 18px 0 0; color: #ffe66d; font-size: 11px; text-align: center; }

@media (max-width: 600px) {
  .rodina-horse-race { margin-top: 86px; padding-top: 50px; }
  .rodina-horse-race__header { align-items: flex-start; flex-direction: column; padding: 12px; }
  .rodina-horse-race__track { aspect-ratio: 16 / 10; }
  .rodina-horse-race__finish { width: clamp(44px, 13%, 62px); height: 14px; border-width: 2px; }
  .rodina-horse-race__horse { width: clamp(14px, 4.5vw, 18px); height: clamp(17px, 5.2vw, 21px); border-width: 1px; outline-width: 1px; }
  .rodina-horse-race__horse i { font-size: clamp(12px, 4vw, 16px); }
  .rodina-horse-race__horse b { right: -4px; bottom: -4px; min-width: 12px; padding: 1px; border-width: 1px; font-size: 6px; }
  .rodina-horse-race__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .rodina-horse-race__choices > label > span { height: 82px; min-height: 82px; }
  .rodina-horse-race__betting { grid-template-columns: 1fr; }
  .rodina-horse-race__betting input,
  .rodina-horse-race__betting button { width: 100%; }
}

.is-credit-counting {
  will-change: contents;
}

.rodina-bet-limits {
  width: min(900px, 100%);
  margin: 120px auto 110px;
  padding-top: 70px;
  color: #fff;
  border-top: 4px solid #fff;
  font-family: "DotGothic16", monospace;
}

.rodina-bet-limits > header {
  padding: clamp(22px, 5vw, 42px);
  background: #080808;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #53ffd8, 14px 14px 0 #ff4fdf;
}

.rodina-bet-limits > header > p {
  margin: 0 0 10px;
  color: #ffe66d;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.rodina-bet-limits h2 {
  margin: 0;
  font-family: "DotGothic16", monospace;
  font-size: clamp(29px, 6vw, 58px);
  font-weight: 400;
  line-height: 1.05;
}

.rodina-bet-limits__current {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rodina-bet-limits__current span {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #aaa;
  background: #161616;
  border: 2px solid #fff;
  font-size: 12px;
}

.rodina-bet-limits__current strong {
  color: #53ffd8;
  font-size: clamp(19px, 4vw, 30px);
  overflow-wrap: anywhere;
}

.rodina-bet-limits__table {
  margin-top: 34px;
  border: 4px solid #fff;
  box-shadow: 7px 7px 0 #ffe66d;
}

.rodina-bet-limits__table > div {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: #101010;
  border-bottom: 2px solid #fff;
}

.rodina-bet-limits__table > div:last-child { border-bottom: 0; }
.rodina-bet-limits__table > div:nth-child(even) { background: #19122b; }

.rodina-bet-limits__table span,
.rodina-bet-limits__table strong {
  min-width: 0;
  padding: 15px 18px;
  font-family: "DotGothic16", monospace;
  font-size: clamp(13px, 2.2vw, 18px);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.rodina-bet-limits__table strong {
  color: #53ffd8;
  border-left: 2px solid #fff;
  text-align: right;
}

.rodina-bet-limits__table .is-heading {
  color: #000;
  background: #ffe66d;
}

.rodina-bet-limits__table .is-heading span:last-child {
  border-left: 2px solid #000;
  text-align: right;
}

.rodina-bet-limits__note {
  margin: 22px auto 0;
  padding: 10px;
  color: #ffe66d;
  background: #000;
  border: 2px solid #fff;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 600px) {
  .rodina-bet-limits { margin-top: 86px; padding-top: 50px; }
  .rodina-bet-limits > header { padding: 20px 12px; }
  .rodina-bet-limits__current { grid-template-columns: 1fr; }
  .rodina-bet-limits__table span,
  .rodina-bet-limits__table strong { padding: 12px 8px; font-size: 12px; }
  .rodina-bet-limits__note { font-size: 10px; line-height: 1.6; }
}

.rodina-roulette__message {
  margin: 34px 0 0;
  padding: 12px;
  color: #ffe66d;
  background: #000;
  border: 3px solid #fff;
  font-size: clamp(16px, 3vw, 24px);
  text-align: center;
}

.rodina-roulette__choices {
  margin: 30px 0 0;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: #080808;
  border: 3px solid #fff;
}

.rodina-roulette__choices legend { padding: 0 10px; color: #ffe66d; }
.rodina-roulette__choices label { position: relative; min-width: 0; cursor: pointer; }
.rodina-roulette__choices input { position: absolute; opacity: 0; }
.rodina-roulette__choices > label > span {
  min-height: 52px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: #181818;
  border: 2px solid #fff;
  font-family: "DotGothic16", monospace;
  font-size: clamp(12px, 1.7vw, 16px);
  white-space: nowrap;
}

.rodina-roulette__choices > label > span b { font-size: 0.7em; }
.rodina-roulette__choices > .is-red > span { background: #a70f31; }
.rodina-roulette__choices > .is-black > span { background: #000; }
.rodina-roulette__choices > label > input:checked + span { color: #000; background: #53ffd8; box-shadow: 4px 4px 0 #fff; transform: translate(-2px, -2px); }

.rodina-roulette__numbers {
  grid-column: 1 / -1;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  background: #222;
  border: 2px solid #ffe66d;
}

.rodina-roulette__numbers label:first-child { grid-row: span 3; }

.rodina-roulette__numbers label > span {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #050505;
  border: 1px solid #fff;
  font-size: 12px;
  line-height: 1;
}

.rodina-roulette__numbers label.is-red > span { background: #a70f31; }
.rodina-roulette__numbers label.is-green > span { background: #087f4f; }
.rodina-roulette__numbers input:checked + span { color: #000; background: #ffe66d; outline: 3px solid #53ffd8; outline-offset: -3px; }
.rodina-roulette__numbers input:disabled + span { color: #fff; filter: grayscale(0.65); opacity: 0.68; cursor: not-allowed; }

/* High-contrast casino text and card faces */
.rodina-blackjack__card.is-red:not(.is-card-back),
.rodina-blackjack__card.is-red:not(.is-card-back) strong,
.rodina-blackjack__card.is-red:not(.is-card-back) span,
.rodina-poker__card.is-red:not(.is-card-back),
.rodina-poker__card.is-red:not(.is-card-back) strong,
.rodina-poker__card.is-red:not(.is-card-back) i,
.rodina-poker__cpu-card.is-red {
  color: #82001d !important;
  -webkit-text-fill-color: #82001d !important;
}

.rodina-blackjack__card:not(.is-card-back):not(.is-hidden) > span,
.rodina-poker__card:not(.is-card-back) > i {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  -webkit-text-stroke: 0.55px #000;
  font-family: "Arial Black", "DotGothic16", sans-serif;
  font-size: 1.15em;
  font-weight: 900;
  line-height: 0.9;
  opacity: 1 !important;
}

.rodina-blackjack__card.is-red:not(.is-card-back) > span,
.rodina-poker__card.is-red:not(.is-card-back) > i {
  color: #82001d !important;
  -webkit-text-fill-color: #82001d !important;
  -webkit-text-stroke: 0.55px #82001d;
}

.rodina-poker__cpu-card:not(.is-card-back) {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  -webkit-text-stroke: 0.25px #000;
  font-weight: 900;
}

.rodina-poker__cpu-card.is-red:not(.is-card-back) {
  color: #82001d !important;
  -webkit-text-fill-color: #82001d !important;
  -webkit-text-stroke: 0.25px #82001d;
}

.rodina-blackjack__card:not(.is-card-back),
.rodina-poker__card:not(.is-card-back),
.rodina-poker__cpu-card:not(.is-card-back) {
  background-color: #fff !important;
  opacity: 1 !important;
  filter: none !important;
}

:where(
    .rodina-blackjack,
    .rodina-baccarat,
    .rodina-poker,
    .rodina-roulette,
    .rodina-slot
  ) :where(.rodina-blackjack__rules, .rodina-baccarat__rules, .rodina-roulette__rules, dt, small) {
  color: #fff !important;
  opacity: 1 !important;
}

.rodina-poker__opponents header span,
.rodina-poker__paytable span,
.rodina-slot__paytable span,
.rodina-blackjack__message,
.rodina-baccarat__message,
.rodina-poker__message,
.rodina-roulette__message,
.rodina-slot__message {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}

.rodina-poker__opponents header span,
.rodina-poker__paytable span,
.rodina-slot__paytable span {
  font-family: "DotGothic16", monospace;
  font-weight: 700;
}

@media (max-width: 600px) {
  .rodina-poker__cpu-card {
    min-height: 34px;
    font-size: 12px;
  }
}

.rodina-roulette__betting {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) minmax(170px, auto);
  gap: 12px;
  align-items: center;
}

.rodina-roulette__betting input,
.rodina-roulette__betting button {
  min-height: 52px;
  box-sizing: border-box;
  padding: 9px 16px;
  color: #fff;
  background: #000;
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 #ff3158;
  font-family: "DotGothic16", monospace;
  font-size: 16px;
}

.rodina-roulette__betting button { cursor: pointer; }
.rodina-roulette__betting button:hover:not(:disabled) { color: #000; background: #53ffd8; }
.rodina-roulette__betting button:disabled { opacity: 0.55; cursor: wait; }
.rodina-roulette__rules { margin: 22px 0 0; font-size: 12px; text-align: center; }

@media (max-width: 600px) {
  .rodina-roulette { margin-top: 88px; padding-top: 52px; }
  .rodina-roulette__header { padding: 12px; align-items: flex-start; flex-direction: column; }
  .rodina-roulette__machine { padding: 26px 12px 18px; }
  .rodina-roulette__choices { padding: 12px 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .rodina-roulette__choices > label > span { min-height: 48px; font-size: 12px; }
  .rodina-roulette__numbers { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 6px; }
  .rodina-roulette__numbers label:first-child { grid-row: auto; }
  .rodina-roulette__numbers label > span { min-height: 38px; }
  .rodina-roulette__betting { grid-template-columns: 1fr; }
  .rodina-roulette__betting input,
  .rodina-roulette__betting button { width: 100%; }
}
