
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  text-decoration: none;
  background: none;
  -webkit-font-smoothing: antialiased;
}
menu, ol, ul { list-style-type: none; }
body {
  font-family: 'Montserrat', sans-serif;
  background: #06080e;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

.app-layout {
  display: grid;
  grid-template-columns: 236px 1fr 301px;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  background: #06080e;
  border-right: 1px solid #131a27;
  width: 236px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #131a27; border-radius: 2px; }
.sidebar-inner {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 25px;
}
.logo-live-indicator {
  width: 16px; height: 16px;
  background: rgba(108, 24, 25, 0.51);
  border: 0.5px solid rgba(167, 36, 36, 0.42);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.live-dot {
  width: 6px; height: 6px;
  background: #e22b2b;
  border-radius: 50%;
  box-shadow: 0px 0px 5.2px 0px rgba(167, 36, 36, 1);
  display: block;
}
.logo-live-indicator.live {
  background: rgba(24, 108, 30, 0.51);
  border-color: rgba(36, 167, 44, 0.42);
  cursor: pointer;
}
.logo-live-indicator.live .live-dot {
  background: #cffe1a;
  box-shadow: 0px 0px 5.2px 0px rgba(207, 254, 26, 0.8);
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.logo-img { height: 21px; width: auto; object-fit: contain; }
.sidebar-section { padding: 10px 0; }
.sidebar-section-title {
  color: #8ba4ba;
  font-size: 9px;
  font-weight: 800;
  padding: 8px 27px;
  letter-spacing: 0.5px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 27px 8px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
}
.sidebar-link:hover { opacity: 0.8; }
.sidebar-link.muted { color: #88969c; font-weight: 600; }
.sidebar-icon { width: 19px; height: 19px; flex-shrink: 0; object-fit: contain; }
.sidebar-icon-placeholder { width: 19px; height: 19px; flex-shrink: 0; }
.soon-badge {
  background: #2c3c47;
  border-radius: 2px;
  font-size: 6px;
  font-weight: 800;
  color: #88969c;
  padding: 2px 5px;
  margin-left: 4px;
  transform: rotate(-3.377deg);
}
.sidebar-bottom { margin-top: auto; padding: 20px; }
.sidebar-social-card {
  background: #0e111a;
  border-radius: 5px;
  padding: 12px;
}
.sidebar-social-card .sidebar-section-title {
  padding: 0 0 10px 0;
  font-size: 12px;
}
.social-icons { display: flex; gap: 8px; }
.social-icon-btn {
  width: 25px; height: 25px;
  background: #131a27;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}
.social-icon-btn:hover { opacity: 0.7; }
.social-icon-btn img { width: 14px; height: 14px; object-fit: contain; }

.chat-sidebar {
  width: 301px;
  background: rgba(19, 26, 39, 0.1);
  border: 1px solid #131a27;
  border-radius: 7px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  margin: 24px 0;
  overflow: hidden;
}
.chat-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chat-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
}
.chat-close {
  width: 20px; height: 20px;
  cursor: pointer;
  opacity: 0.6;
}
.chat-close:hover { opacity: 1; }
.chat-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  text-align: center;
}
.chat-header-icons { display: flex; gap: 8px; }
.chat-icon {
  width: 16px; height: 13px;
  cursor: pointer;
  opacity: 0.6;
}
.chat-body {
  flex: 1;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.chat-settings-icon {
  width: 20px; height: 18px;
  opacity: 0.5;
}
.chat-footer {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-input-wrapper { display: flex; gap: 6px; }
.chat-input {
  flex: 1;
  background: rgba(44, 60, 71, 0.24);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}
.chat-input::placeholder { color: #2e4048; }
.chat-send-btn {
  width: 41px; height: 41px;
  background: #9a3fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-login-btn {
  background: #cffe1a;
  border-radius: 6px;
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0e111a;
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.chat-login-btn:hover { opacity: 0.9; }

.main-content {
  min-height: 100vh;
  overflow-y: auto;
  padding: 20px;
}

.game-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 16px;
}
.game-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-header-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.game-header-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.game-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
.free-badge {
  background: rgba(208, 255, 0, 0.08);
  color: #cffe1a;
  border: 1px solid rgba(208, 255, 0, 0.2);
}
.free-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #cffe1a;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(208, 255, 0, 0.6);
  animation: tagPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes tagPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(208, 255, 0, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 2px rgba(208, 255, 0, 0.3); }
}

.game-layout {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #0e111a;
  border: 1px solid #131a27;
  position: relative;
}
.game-layout-inner {
  display: flex;
  flex-direction: row;
  flex: 0 1 auto;
  min-width: 300px;
}

.bet-panel {
  width: 330px;
  min-width: 330px;
  max-width: 330px;
  background: #0e111a;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid #131a27;
}

.bet-tabs {
  display: flex;
  background: #131a27;
  border-radius: 5px;
  padding: 4px;
  gap: 4px;
}
.bet-tab {
  flex: 1;
  padding: 10px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #5a7080;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.bet-tab.active {
  background: linear-gradient(180deg, rgba(139, 44, 255, 0.15) 0%, rgba(139, 44, 255, 0.05) 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 44, 255, 0.15);
  border: 1px solid rgba(139, 44, 255, 0.2);
}
.bet-tab:hover:not(.active) {
  color: #8ba4ba;
  background: rgba(19, 26, 39, 0.5);
}

.bet-tab-content {
  display: none;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.bet-tab-content.active {
  display: flex;
}

.bet-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bet-label {
  font-size: 12px;
  font-weight: 700;
  color: #5a7080;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bet-balance {
  color: #cffe1a;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.bet-input-group {
  display: flex;
  align-items: center;
  background: rgba(19, 26, 39, 0.6);
  border: 1px solid #1c2740;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.25s;
  height: 48px;
}
.bet-input-group:focus-within {
  border-color: rgba(139, 44, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 44, 255, 0.08);
}
.bet-currency {
  padding: 0 0 0 14px;
  color: #cffe1a;
  font-weight: 800;
  font-size: 14px;
}
.bet-input {
  flex: 1;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 10px;
  font-family: inherit;
  min-width: 0;
  -moz-appearance: textfield;
}
.bet-input::-webkit-outer-spin-button,
.bet-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bet-input-btn {
  padding: 10px 14px;
  color: #5a7080;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  border-left: 1px solid #1c2740;
}
.bet-input-btn:hover {
  color: #cffe1a;
  background: rgba(207, 254, 26, 0.05);
}
.bet-suffix {
  padding: 0 14px 0 0;
  color: #5a7080;
  font-weight: 700;
  font-size: 14px;
}

.bet-select-wrapper {
  position: relative;
}
.bet-select {
  width: 100%;
  background: rgba(19, 26, 39, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 5px;
  border: 1px solid #1c2740;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
  transition: all 0.25s;
  height: 48px;
}
.bet-select:focus {
  border-color: rgba(139, 44, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 44, 255, 0.08);
  outline: none;
}
.bet-select option {
  background: #0e111a;
  color: #fff;
}
.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #5a7080;
  pointer-events: none;
  transition: color 0.2s;
}
.bet-select:focus ~ .select-arrow {
  color: #886cff;
}

.diff-buttons {
  display: flex;
  gap: 6px;
  height: 48px;
}
.diff-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #1c2740 0%, #151d30 100%);
  border: 1px solid #253350;
  border-radius: 5px;
  color: #5a7080;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0 8px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.diff-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.diff-btn svg {
  flex-shrink: 0;
  transition: color 0.25s;
}
.diff-btn:hover {
  color: #8ba4ba;
  border-color: #354a6a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(21, 29, 48, 0.4);
}
.diff-btn:active {
  transform: translateY(0);
}
.diff-btn.active {
  color: #fff;
  background: linear-gradient(180deg, #8b2cff 0%, #6a1fd4 100%);
  border-color: #9d4aff;
  box-shadow: 0 4px 24px rgba(139, 44, 255, 0.3);
}
.diff-btn.active::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
}
.diff-btn.active svg {
  color: #fff;
}
.diff-btn.active:hover {
  box-shadow: 0 4px 28px rgba(139, 44, 255, 0.4);
}

.bet-button {
  width: 100%;
  padding: 16px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  background: linear-gradient(180deg, rgba(206, 255, 92, 1) 0%, rgba(208, 255, 0, 1) 100%);
  color: #0e111a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 24px;
  height: 54px;
  min-height: 54px;
  position: relative;
  overflow: hidden;
}
.bet-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.bet-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(208, 255, 0, 0.25);
}
.bet-button:active {
  transform: translateY(0);
}
.bet-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.3);
}

.cta-shuffle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  margin-top: 12px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #6c2bd9 0%, #8b2cff 50%, #a855f7 100%);
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
  letter-spacing: 1px;
  height: 54px;
  min-height: 54px;
  position: relative;
  overflow: hidden;
}
.cta-shuffle-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.cta-shuffle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(139, 44, 255, 0.4);
}
.cta-shuffle-btn:active {
  transform: translateY(0);
}
.cta-shuffle-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(10);
}

.bet-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: rgba(19, 26, 39, 0.4);
  border-radius: 5px;
  border: 1px solid #1c2740;
  margin-top: 24px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.info-label {
  font-size: 12px;
  font-weight: 700;
  color: #5a7080;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.info-value {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.info-green { color: #cffe1a; }

.cashout-button {
  width: 100%;
  padding: 14px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(135deg, #8b2cff 0%, #d387ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.cashout-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.cashout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(139, 44, 255, 0.35);
}
.cashout-amount {
  font-size: 14px;
  font-weight: 800;
}

.game-board-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0e111a;
  border-radius: 0 8px 0 0;
  position: relative;
  overflow: hidden;
}

.game-board {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: auto hidden;
  background-color: rgb(23, 22, 46);
  border-radius: 0 8px 0 0;
  cursor: grab;
  scrollbar-width: none;
  user-select: none;
}
.game-board::-webkit-scrollbar { display: none; }

.board-bg { display: none; }

.road-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

.road-scale {
  transform-origin: 0 0;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  will-change: transform;
}
.road-scale::-webkit-scrollbar { display: none; }
.road-scale:active,
.road-scale.grabbing { cursor: grabbing; }

.road {
  position: relative;
  overflow: visible;
  min-height: 416px;
  height: 640px;
  width: max-content;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-image: url('assets/background.svg');
  background-repeat: repeat-x;
  background-size: auto 100%;
  will-change: transform;
}

.starting-road {
  position: relative;
  min-width: 176px;
  max-width: 176px;
  width: 176px;
  height: 640px;
  flex-shrink: 1;
  pointer-events: none;
}
.starting-road-img {
  display: flex;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.traffic-light {
  position: absolute;
  top: 2%;
  left: 70%;
  transform: translateX(-50%) scale(1);
  height: 240px;
  width: 44px;
  z-index: 3;
  overflow: hidden;
}
.traffic-light-sprite {
  width: 100%;
  height: 100%;
  background: url('assets/traffic-light.png') 0 0 / 7964px 240px no-repeat;
  animation: trafficLightChange 3s steps(180) infinite;
  will-change: background-position;
}
@keyframes trafficLightChange {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

.traffic-light.green .traffic-light-sprite {
  filter: brightness(1.2);
}

.chicken-container {
  position: absolute;
  bottom: 50%;
  left: 0;
  width: auto;
  height: auto;
  pointer-events: none;
  will-change: transform;
  z-index: 4;
  transition: transform 0.45s ease-in-out;
}
.chicken-container.no-transition {
  transition: none;
}
.chicken-container.hidden {
  transition: none;
  opacity: 0;
}

.chicken-sprite {
  background-repeat: no-repeat;
  width: 96px;
  height: 96px;
  background-size: contain;
  will-change: background-position;
}

.chicken-sprite.idle {
  background: url('assets/chicken-idle.png') 0 0 / 11520px 96px no-repeat;
  animation: spriteIdle 4.5s steps(119) infinite;
}
.chicken-sprite.jump {
  background: url('assets/chicken-jump.png') 0 0 / 2976px 96px no-repeat;
  animation: spriteJump 0.45s steps(30) 1 forwards,
             chickenJump 0.45s ease 1;
}
.chicken-sprite.fall {
  background: url('assets/chicken-fall.png') 0 0 / 7680px 96px no-repeat;
  animation: spriteFall 0.6s steps(79) 1 forwards;
}
.chicken-sprite.win {
  background: url('assets/chicken-win.png') 0 0 / 11520px 96px no-repeat;
  animation: spriteWin 5s steps(119) infinite;
}
.chicken-sprite.cooked {
  background: url('assets/chicken-cooked-v1.png') 0 0 / 11520px 96px no-repeat;
  animation: spriteCooked 5s steps(119) infinite,
             cookedIntro 0.2s ease-in 1 forwards;
  transform-origin: center bottom;
}

.chicken-flame {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 96px;
  width: 96px;
  background: url('assets/chicken-flame.png') 0 0 / 3072px 96px no-repeat;
  pointer-events: none;
  transform: scale(1.5);
  display: none;
}
.chicken-flame.active {
  display: block;
  animation: spriteFlame 0.4s steps(31) 1 forwards;
}

@keyframes spriteIdle {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}
@keyframes spriteJump {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}
@keyframes chickenJump {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2.5rem); }
  100% { transform: translateY(0); }
}
@keyframes spriteFall {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}
@keyframes spriteWin {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}
@keyframes spriteCooked {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}
@keyframes cookedIntro {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes spriteFlame {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.lanes {
  min-height: 416px;
  height: 640px;
  width: max-content;
  display: flex;
  flex-direction: row;
}
.lanes::-webkit-scrollbar { display: none; }

.lane {
  position: relative;
  flex: 0 0 144px;
  min-width: 144px;
  width: 144px;
  height: 100%;
  perspective: 800px;
  overflow: visible;
}

.lane-divider {
  flex: 0 0 6px;
  width: 6px;
  height: 640px;
  pointer-events: none;
  display: flex;
  align-items: stretch;
}
.lane-line {
  width: 6px;
  height: 640px;
  pointer-events: none;
  display: block;
  flex-shrink: 0;
  object-fit: fill;
}

.lane-car-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-105%);
  width: auto;
  height: 100%;
  pointer-events: none;
  will-change: transform;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  transform-origin: 50% 100%;
}
.lane-car-container.crash {
  z-index: 6;
}

.lane-car-container.easy.animating {
  animation: driveCar 1s linear 1 forwards;
}
.lane-car-container.medium.animating {
  animation: driveCar 0.8s linear 1 forwards;
}
.lane-car-container.hard.animating {
  animation: driveCar 0.6s linear 1 forwards;
}

.lane-car-container.easy.crash {
  animation: driveCar 1s linear 1 forwards;
}
.lane-car-container.medium.crash {
  animation: driveCar 0.8s linear 1 forwards;
}
.lane-car-container.hard.crash {
  animation: driveCar 0.6s linear 1 forwards;
}
.lane-car {
  display: block;
  width: 160px;
  min-width: 160px;
  height: auto;
}
@keyframes driveCar {
  0% { transform: translateX(-50%) translateY(-105%); }
  100% { transform: translateX(-50%) translateY(50%); }
}

.manhole-wrapper {
  position: absolute;
  top: calc(50% - 0.5rem);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 88px;
  z-index: 5;
}

.manhole-btn {
  width: 96px;
  height: 88px;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  perspective: 800px;
  touch-action: manipulation;
  background: none;
  font-family: inherit;
}
.manhole-btn:disabled {
  cursor: default;
  pointer-events: none;
}

.manhole-base {
  position: absolute;
  inset: 0;
  background: url('assets/manhole-base.svg') 50% center / contain no-repeat;
  z-index: 1;
}

.manhole-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  z-index: 2;
  will-change: transform;
}

.manhole-front {
  position: absolute;
  inset: -16px 0 0 0;
  background: url('assets/manhole.png') 0 0 / 4416px 96px no-repeat;
  backface-visibility: hidden;
}

.manhole-btn:not(:disabled) .manhole-front:hover,
.manhole-btn:not(:disabled) .manhole-front:active,
.manhole-btn.active .manhole-front {
  animation: manholeGlow 2s steps(45) infinite;
}
@keyframes manholeGlow {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

.manhole-back {
  position: absolute;
  inset: 0;
  background: url('assets/manhole-shfl-cover.svg') 50% center / contain no-repeat;
  transform: rotateX(180deg);
  backface-visibility: hidden;
}
.manhole-back.death {
  background: url('assets/manhole-death-cover.svg') 50% center / contain no-repeat;
}

.manhole-btn.flipping .manhole-flip {
  animation: manholePopFlip 0.65s linear 1 forwards;
}
@keyframes manholePopFlip {
  0%  { transform: translateY(0) rotateX(0deg) rotate(0deg); }
  15% { transform: translateY(-1rem) rotateX(60deg) rotate(0deg); }
  35% { transform: translateY(-1.2rem) rotateX(150deg) rotate(0deg); }
  45% { transform: translateY(-0.2rem) rotateX(180deg) rotate(6deg); }
  58% { transform: translateY(0) rotateX(180deg) rotate(-3deg); }
  74% { transform: translateY(0) rotateX(180deg) rotate(1deg); }
  100%{ transform: translateY(0) rotateX(180deg) rotate(0deg); }
}

.manhole-btn.flipped .manhole-flip {
  transform: translateY(0) rotateX(180deg);
}

.manhole-btn.falling .manhole-front {
  animation: manholeFall 0.7s ease-out 1 forwards;
}
@keyframes manholeFall {
  0%  { transform: translateY(0) translateX(0) rotate(0deg); }
  20% { transform: translateY(-128px) translateX(0) rotate(0deg); }
  30% { transform: translateY(-128px) translateX(0) rotate(-8deg); }
  45% { transform: translateY(-128px) translateX(0) rotate(8deg); }
  60% { transform: translateY(-128px) translateX(0) rotate(-5deg); }
  67% { transform: translateY(-120px) translateX(2px) rotate(0deg); }
  86% { transform: translateY(2px) translateX(12px) scaleY(0.92) rotate(4deg); }
  90% { transform: translateY(-3px) translateX(14px) scaleY(1.02) rotate(6deg); }
  95% { transform: translateY(0) translateX(15px) scaleY(0.99) rotate(7deg); }
  100%{ transform: translateY(0) translateX(15px) scaleY(1) rotate(7deg); }
}
.manhole-btn.fallen .manhole-front {
  transform: translateY(0) translateX(15px) scaleY(1) rotate(7deg);
}

.lane-multiplier {
  width: 96px;
  height: 40px;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-style: solid;
  border-color: rgb(87, 94, 132);
  border-width: 1px 1px 4px;
  border-radius: 6px;
  background-color: rgb(39, 40, 62);
  cursor: help;
  font-weight: 600;
  transition: 0.33s ease-in-out;
  position: absolute;
  top: calc(50% + 44px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
  color: #fff;
}
.lane-multiplier:hover {
  transform: translateX(-50%) scale(1.05);
}

.lane-multiplier.active {
  border-color: rgb(31, 135, 68);
  background-color: rgb(52, 224, 113);
  color: rgb(0, 0, 0);
  transition: 0.33s ease-in-out;
}

.lane-multiplier.passed {
  border-color: rgb(31, 135, 68);
  background-color: rgb(52, 224, 113);
  color: rgb(0, 0, 0);
}

.lane-multiplier.dimmed {
  opacity: 0.4;
}

.lane-multiplier.death {
  border-color: rgb(143, 28, 34);
  background-color: rgb(241, 50, 62);
  color: rgb(0, 0, 0);
  transition: 0.33s ease-in-out;
}

.ending-road {
  min-width: 176px;
  max-width: 176px;
  width: 176px;
  height: 640px;
  flex-shrink: 1;
  pointer-events: none;
}
.ending-road-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.result-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(3px);
}
.result-overlay.visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: resultPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes resultPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.result-chicken {
  width: 96px;
  height: 96px;
  background-repeat: no-repeat;
  background-size: contain;
}
.result-chicken.win {
  background: url('assets/chicken-win.png') 0 0 / 11520px 96px no-repeat;
  animation: spriteWin 5s steps(119) infinite;
}
.result-chicken.loss {
  background-image: url('assets/chicken-crashed.svg');
}
.result-img { display: none; }
.result-multiplier {
  width: 96px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-width: 1px 1px 4px;
  border-style: solid;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
}
.result-multiplier.win {
  border-color: rgb(31, 135, 68);
  background-color: rgb(52, 224, 113);
  color: rgb(0, 0, 0);
}
.result-multiplier.loss {
  border-color: rgb(143, 28, 34);
  background-color: rgb(241, 50, 62);
  color: rgb(0, 0, 0);
}
.result-amount {
  font-size: 20px;
  font-weight: 700;
  color: #8ba4ba;
}
.result-amount.win { color: #53fc18; }
.result-amount.loss { color: #ff5050; }

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  min-height: 60px;
  background: #0e111a;
  border-radius: 0 0 8px 0;
}
.game-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8ba4ba;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: inherit;
}
.footer-icon-btn:hover { background: #131a27; color: #fff; }

.volume-control {
  display: flex;
  align-items: center;
  position: relative;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s;
  width: 36px;
  cursor: pointer;
}
.volume-control.open {
  width: 150px;
  background: #131a27;
}
.volume-btn {
  flex-shrink: 0;
  z-index: 2;
}
.volume-control.muted .vol-on { display: none !important; }
.volume-control.muted .vol-off { display: block !important; }
.volume-control:not(.muted) .vol-on { display: block; }
.volume-control:not(.muted) .vol-off { display: none !important; }

.volume-slider-wrap {
  display: flex;
  align-items: center;
  width: 0;
  opacity: 0;
  overflow: visible;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
  padding-right: 0;
  height: 36px;
}
.volume-control.open .volume-slider-wrap {
  width: 100px;
  opacity: 1;
  padding-right: 10px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
.volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: #1c2740;
  border-radius: 2px;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cffe1a;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(208, 255, 0, 0.4);
  margin-top: -5px;
  transition: transform 0.15s;
}
.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.volume-slider::-moz-range-track {
  height: 4px;
  background: #1c2740;
  border-radius: 2px;
  border: none;
}
.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cffe1a;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(208, 255, 0, 0.4);
}
.footer-speed-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  color: #8ba4ba;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}
.footer-speed-btn:hover { background: #131a27; color: #fff; }
.footer-speed-btn.active { color: #cffe1a; }
.speed-label { font-size: 12px; font-weight: 700; }
.speed-gauge {
  overflow: hidden;
  display: block;
}
#speedNeedle {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-brand-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.85;
}

.demo-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid #1c2740;
  cursor: pointer;
  user-select: none;
}
.demo-mode-toggle input { display: none; }
.demo-mode-track {
  width: 34px;
  height: 18px;
  padding: 2px;
  border-radius: 999px;
  background: #1a2334;
  border: 1px solid #27344d;
  transition: background 0.2s, border-color 0.2s;
}
.demo-mode-thumb {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8ba4ba;
  transition: transform 0.2s, background 0.2s;
}
.demo-mode-toggle input:checked + .demo-mode-track {
  background: rgba(208, 255, 0, 0.14);
  border-color: rgba(208, 255, 0, 0.42);
}
.demo-mode-toggle input:checked + .demo-mode-track .demo-mode-thumb {
  transform: translateX(16px);
  background: #cffe1a;
}
.demo-mode-label {
  color: #8ba4ba;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.demo-mode-toggle input:checked ~ .demo-mode-label { color: #cffe1a; }
.demo-cash-control {
  display: none;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 5px 8px;
  border: 1px solid #1c2740;
  border-radius: 7px;
  background: rgba(19, 26, 39, 0.55);
}
.demo-cash-control.visible { display: inline-flex; }
.demo-cash-name {
  color: #8ba4ba;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.demo-cash-control input {
  width: 92px;
  border: 0;
  outline: none;
  background: transparent;
  color: #cffe1a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}
.demo-cash-control input::-webkit-outer-spin-button,
.demo-cash-control input::-webkit-inner-spin-button { margin: 0; }
.demo-cash-note {
  color: #5a7080;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}
.footer-fairness {
  font-size: 12px;
  color: #cffe1a;
  font-weight: 700;
}

.game-history {
  margin-top: 16px;
  background: #0e111a;
  border: 1px solid #131a27;
  border-radius: 8px;
  overflow: hidden;
  padding: 24px;
}

.history-tabs-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}
.history-tabs {
  display: flex;
  background: #131a27;
  border-radius: 5px;
  padding: 4px;
  gap: 4px;
}
.history-tab {
  flex: 1;
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #5a7080;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.history-tab.active {
  background: linear-gradient(180deg, rgba(139, 44, 255, 0.15) 0%, rgba(139, 44, 255, 0.05) 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 44, 255, 0.15);
  border: 1px solid rgba(139, 44, 255, 0.2);
}
.history-tab:hover:not(.active) {
  color: #8ba4ba;
  background: rgba(19, 26, 39, 0.5);
}

.history-count-select {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}
.history-count-select select {
  background: rgba(19, 26, 39, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  padding: 10px 36px 10px 16px;
  border-radius: 5px;
  border: 1px solid #1c2740;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: border-color 0.25s;
}
.history-count-select select:focus {
  border-color: rgba(139, 44, 255, 0.5);
}
.history-count-select select option {
  background: #0e111a;
  color: #fff;
}
.history-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #5a7080;
  pointer-events: none;
}

.history-table-wrap {
  overflow-x: auto;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.history-table thead {
  border-bottom: 1px solid #1c2740;
}
.history-table th {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #5a7080;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.history-table th:last-child {
  text-align: right;
}
.history-table td {
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(28, 39, 64, 0.4);
  vertical-align: middle;
}
.history-table td:last-child {
  text-align: right;
}
.history-table tbody tr {
  height: 54px;
  transition: background 0.15s;
}
.history-table tbody tr:hover {
  background: rgba(139, 44, 255, 0.03);
}

.history-table .td-win {
  color: #cffe1a;
}
.history-table .td-loss {
  color: #5a7080;
}
.history-table .td-multiplier-loss {
  color: #5a7080;
}

.td-game {
  display: flex;
  align-items: center;
  gap: 8px;
}
.td-game-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url('assets/chicken-idle.png') 0 0 / auto 20px no-repeat;
  display: inline-block;
}
.history-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.history-user-name {
  display: block;
  margin-top: 2px;
  color: #5a7080;
  font-size: 11px;
  font-weight: 700;
}

.history-empty {
  color: #5a7080;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 40px 16px;
}
.history-empty-row td {
  border-bottom: none !important;
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: #121418;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: #0e111a;
  border-top: 1px solid #1c2740;
}
.cookie-text { flex: 1; }
.cookie-title {
  font-weight: 700;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}
.cookie-text p {
  font-size: 12px;
  color: #8ba4ba;
  line-height: 1.5;
}
.cookie-text a { color: #886cff; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn-reject {
  background: #131a27;
  color: #8ba4ba;
  border: 1px solid #1c2740;
}
.cookie-btn-reject:hover { background: #1c2740; color: #fff; }
.cookie-btn-accept {
  background: linear-gradient(180deg, rgba(206, 255, 92, 1) 0%, rgba(208, 255, 0, 1) 100%);
  color: #0e111a;
}
.cookie-btn-accept:hover { box-shadow: 0 4px 15px rgba(208, 255, 0, 0.25); }

.game-board.speed-2x .chicken-container {
  transition: transform 0.22s ease-in-out;
}
.game-board.speed-2x .chicken-sprite.jump {
  animation: spriteJump 0.22s steps(30) 1 forwards,
             chickenJump 0.22s ease 1;
}
.game-board.speed-2x .chicken-sprite.fall {
  animation: spriteFall 0.3s steps(79) 1 forwards;
}
.game-board.speed-2x .manhole-btn.flipping .manhole-flip {
  animation: manholePopFlip 0.32s linear 1 forwards;
}
.game-board.speed-2x .manhole-btn.falling .manhole-front {
  animation: manholeFall 0.35s ease-out 1 forwards;
}
.game-board.speed-2x .lane-car-container.easy.animating {
  animation: driveCar 0.5s linear 1 forwards;
}
.game-board.speed-2x .lane-car-container.medium.animating {
  animation: driveCar 0.4s linear 1 forwards;
}
.game-board.speed-2x .lane-car-container.hard.animating {
  animation: driveCar 0.3s linear 1 forwards;
}
.game-board.speed-2x .lane-car-container.easy.crash {
  animation: driveCar 0.5s linear 1 forwards;
}
.game-board.speed-2x .lane-car-container.medium.crash {
  animation: driveCar 0.4s linear 1 forwards;
}
.game-board.speed-2x .lane-car-container.hard.crash {
  animation: driveCar 0.3s linear 1 forwards;
}

.game-board.speed-3x .chicken-container {
  transition: transform 0.15s ease-in-out;
}
.game-board.speed-3x .chicken-sprite.jump {
  animation: spriteJump 0.15s steps(30) 1 forwards,
             chickenJump 0.15s ease 1;
}
.game-board.speed-3x .chicken-sprite.fall {
  animation: spriteFall 0.2s steps(79) 1 forwards;
}
.game-board.speed-3x .manhole-btn.flipping .manhole-flip {
  animation: manholePopFlip 0.2s linear 1 forwards;
}
.game-board.speed-3x .manhole-btn.falling .manhole-front {
  animation: manholeFall 0.23s ease-out 1 forwards;
}
.game-board.speed-3x .lane-car-container.easy.animating {
  animation: driveCar 0.33s linear 1 forwards;
}
.game-board.speed-3x .lane-car-container.medium.animating {
  animation: driveCar 0.27s linear 1 forwards;
}
.game-board.speed-3x .lane-car-container.hard.animating {
  animation: driveCar 0.2s linear 1 forwards;
}
.game-board.speed-3x .lane-car-container.easy.crash {
  animation: driveCar 0.33s linear 1 forwards;
}
.game-board.speed-3x .lane-car-container.medium.crash {
  animation: driveCar 0.27s linear 1 forwards;
}
.game-board.speed-3x .lane-car-container.hard.crash {
  animation: driveCar 0.2s linear 1 forwards;
}

@media (max-width: 1400px) {
  .app-layout {
    grid-template-columns: 236px 1fr;
  }
  .chat-sidebar {
    display: none;
  }
}

@media (max-width: 1100px) {
  .game-layout-inner {
    flex-direction: column;
  }
  .bet-panel {
    width: 100%;
    min-width: unset;
    max-width: unset;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .bet-tabs {
    width: 100%;
  }
  .bet-tab-content {
    width: 100%;
    margin-top: 12px;
  }
  .bet-tab-content.active {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .bet-field {
    flex: 1;
    min-width: 200px;
  }
  .bet-button,
  .bet-info {
    width: 100%;
    margin-top: 12px;
  }
  .game-board {
    height: 450px;
  }
}

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    transition: left 0.3s ease;
    z-index: 150;
  }
  .sidebar.open { left: 0; }
  .mobile-menu-btn { display: flex; }
  .main-content { padding: 70px 20px 12px; }
}

@media (max-width: 900px) {
  .game-board { height: 400px; }
  .bet-panel { padding: 12px; }
}

@media (max-width: 600px) {
  .bet-tab-content.active {
    flex-direction: column;
  }
  .bet-field {
    min-width: unset;
  }
  .game-board {
    height: 350px;
  }
  .manhole-wrapper {
    width: 72px;
    height: 66px;
  }
  .manhole-btn {
    width: 72px;
    height: 66px;
  }
  .lane {
    flex: 0 0 108px;
    min-width: 108px;
    width: 108px;
  }
  .lane-multiplier {
    font-size: 12px;
    width: 72px;
    height: 32px;
  }
  .chicken-sprite {
    width: 60px;
    height: 60px;
  }
  .chicken-flame {
    width: 60px;
    height: 60px;
  }
  .starting-road, .ending-road {
    min-width: 100px;
    max-width: 100px;
    width: 100px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    padding: 16px;
    gap: 14px;
    text-align: center;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
  .cookie-btn { flex: 1; padding: 12px 16px; }
}

.mobile-game-fullscreen .game-board {
  height: 100% !important;
  overflow-x: auto;
  overflow-y: hidden;
}

.mobile-game-fullscreen .bet-panel {
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-right: none !important;
  padding: 0 12px 8px !important;
  z-index: 50;
  pointer-events: none;
}

.mobile-game-fullscreen .bet-panel .bet-tabs,
.mobile-game-fullscreen .bet-panel .bet-tab-content {
  display: none !important;
}

.mobile-game-fullscreen .bet-panel .bet-info {
  pointer-events: auto;
  background: rgba(14, 17, 26, 0.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(28, 39, 64, 0.6) !important;
  border-radius: 12px !important;
  margin-top: 0 !important;
  padding: 10px 14px !important;
  gap: 8px !important;
}

.mobile-game-fullscreen .bet-panel .cashout-button {
  height: 44px;
  border-radius: 10px;
}

.mobile-game-fullscreen .road-container {
  height: 100%;
}

.mobile-game-fullscreen .road-scale {
  height: 100%;
}

.mobile-game-fullscreen .result-overlay {
  z-index: 60;
}
