@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap");

:root {
  --rodeo-bg: #FBFAFF;
  --rodeo-surface: #FFFFFF;
  --rodeo-soft: #FFF7ED;
  --rodeo-ink: #090A2A;
  --rodeo-muted: #667085;
  --rodeo-line: #E9EAF2;
  --rodeo-purple: #7C3AED;
  --rodeo-purple-dark: #5B21B6;
  --rodeo-purple-soft: #F1E8FF;
  --rodeo-orange: #FF8A00;
  --rodeo-orange-dark: #F97316;
  --rodeo-gold: #FDBA22;
  --rodeo-blue: #1E90FF;
  --rodeo-green: #22C55E;
  --rodeo-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  --rodeo-soft-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  --rodeo-font: "Inter", "SF Pro Display", "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rodeo-game-shell {
  min-height: 100vh;
  font-family: var(--rodeo-font);
}

body.rodeo-game-skinned {
  font-family: var(--rodeo-font) !important;
}

.rodeo-shell-only {
  display: none;
}

body > .app > .topbar,
body > .app > .bottom-nav,
body > .app > .side-rail,
.rodeo-stage-slot > .app > .topbar,
.rodeo-stage-slot > .app > .bottom-nav,
.rodeo-stage-slot > .app > .side-rail,
body.rodeo-game-skinned .side-rail {
  display: none !important;
}

body > .app #lobbyView,
.rodeo-stage-slot #lobbyView {
  display: none !important;
}

body > .app #gameView,
.rodeo-stage-slot #gameView {
  display: block !important;
}

.rodeo-stage-slot .start,
.rodeo-stage-slot .again,
.rodeo-stage-slot .primary-action,
.rodeo-stage-slot .result-button,
.rodeo-stage-slot #heroStartBtn {
  min-height: 50px !important;
  border: 0 !important;
  border-radius: 16px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9) !important;
  box-shadow: 0 12px 24px rgba(124, 58, 237, .20), inset 0 0 0 1px rgba(255, 255, 255, .18) !important;
  font-family: var(--rodeo-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}

.rodeo-stage-slot .primary-action.cash {
  color: #fff !important;
  background: linear-gradient(135deg, #FFB020, #FF8A00) !important;
  box-shadow: 0 12px 24px rgba(255, 138, 0, .20) !important;
}

.rodeo-stage-slot .start:disabled,
.rodeo-stage-slot .primary-action:disabled {
  opacity: .45 !important;
  filter: grayscale(.22) !important;
  cursor: not-allowed !important;
}

@media (min-width: 980px) {
  html.rodeo-game-skinned-root {
    height: 100%;
    overflow: hidden;
  }

  body.rodeo-game-skinned {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background:
      radial-gradient(circle at 18% -12%, rgba(255, 138, 0, .10), transparent 30%),
      radial-gradient(circle at 92% -10%, rgba(124, 58, 237, .12), transparent 32%),
      var(--rodeo-bg) !important;
    color: var(--rodeo-ink);
    touch-action: auto;
  }

  .rodeo-game-shell {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    background: transparent;
    font-family: var(--rodeo-font);
    color: var(--rodeo-ink);
  }

  .rodeo-game-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 248px;
    height: auto;
    max-height: 100dvh;
    z-index: 30;
    overflow: hidden;
    border-right: 1px solid var(--rodeo-line);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    padding: 34px 20px 24px;
    gap: 28px;
  }

  .rodeo-game-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
  }

  .rodeo-game-logo img {
    width: 172px;
    height: auto;
    display: block;
    object-fit: contain;
  }

  .rodeo-side-nav {
    display: grid;
    gap: 10px;
  }

  .rodeo-nav-link {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    border-radius: 14px;
    color: #667085;
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, color 180ms ease;
  }

  .rodeo-nav-link svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .rodeo-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 10px 22px rgba(124, 58, 237, .18);
  }

  .rodeo-side-bonus {
    margin-top: auto;
    border-radius: 20px;
    background: var(--rodeo-surface);
    border: 1px solid var(--rodeo-line);
    box-shadow: var(--rodeo-shadow);
    padding: 16px;
    overflow: hidden;
  }

  .rodeo-side-bonus h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 800;
  }

  .rodeo-side-bonus p {
    margin: 0;
    color: var(--rodeo-muted);
    line-height: 1.35;
    font-size: 13px;
    font-weight: 500;
  }

  .rodeo-bonus-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
  }

  .rodeo-claim {
    min-height: 40px;
    border-radius: 999px;
    padding: 0 12px;
    color: #fff;
    background: linear-gradient(135deg, #FFB020, #FF8A00);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    border: 0;
  }

  .rodeo-bonus-bottom img {
    width: 72px;
    max-width: 46%;
    object-fit: contain;
  }

  .rodeo-game-main {
    grid-column: 2;
    min-width: 0;
    width: min(100%, 1380px);
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    justify-self: center;
    padding: 24px 24px 28px;
  }

  .rodeo-game-top {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 500px) auto;
    gap: 22px;
    align-items: center;
    margin-bottom: 24px;
  }

  .rodeo-title-block {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
  }

  .rodeo-back {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    border: 1px solid var(--rodeo-line);
    background: #fff;
    color: var(--rodeo-ink);
    box-shadow: var(--rodeo-shadow);
    display: grid;
    place-items: center;
    text-decoration: none;
  }

  .rodeo-back svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
  }

  .rodeo-game-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--rodeo-purple-soft);
    color: var(--rodeo-purple);
    font-size: 26px;
    box-shadow: inset 0 0 0 1px rgba(255, 122, 5, .10);
  }

  .rodeo-game-icon svg {
    width: 27px;
    height: 27px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .rodeo-title-copy {
    min-width: 0;
  }

  .rodeo-title-copy h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.06;
    font-weight: 800;
    color: var(--rodeo-ink);
  }

  .rodeo-title-copy p {
    margin: 6px 0 0;
    color: var(--rodeo-muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rodeo-summary-card {
    min-height: 78px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--rodeo-line);
    box-shadow: var(--rodeo-shadow);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    overflow: hidden;
  }

  .rodeo-summary-item {
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid var(--rodeo-line);
    text-align: center;
  }

  .rodeo-summary-item:last-child {
    border-right: 0;
  }

  .rodeo-summary-item span {
    display: block;
    color: #82889a;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 7px;
    white-space: normal;
  }

  .rodeo-summary-item strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 20px;
    color: var(--rodeo-ink);
    font-weight: 700;
  }

  .rodeo-summary-item.best strong {
    color: var(--rodeo-purple);
    font-size: 25px;
  }

  .rodeo-mini-coin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at 35% 25%, #fff8cf, #ffbd24 58%, #ff8b00);
    font-size: 12px;
    line-height: 1;
  }

  .rodeo-mini-coin svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
  }

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

  .rodeo-wallet {
    height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 7px 5px 9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--rodeo-line);
    box-shadow: var(--rodeo-shadow);
    font-weight: 1000;
    cursor: pointer;
  }

  .rodeo-avatar-entry {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--rodeo-line);
    background: #fff;
    color: var(--rodeo-purple);
    box-shadow: var(--rodeo-shadow);
    font-size: 13px;
    font-weight: 1000;
    text-decoration: none;
    white-space: nowrap;
  }

  .rodeo-avatar-entry svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .rodeo-wallet:focus-visible {
    outline: 3px solid rgba(139, 92, 246, .28);
    outline-offset: 3px;
  }

  .rodeo-wallet-plus,
  .rodeo-round-icon,
  .rodeo-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: #fff;
    color: #6e758a;
    box-shadow: var(--rodeo-shadow);
  }

  .rodeo-wallet-plus {
    width: 31px;
    height: 31px;
    background: #f2f4fa;
    color: var(--rodeo-ink);
    font-size: 22px;
    font-weight: 700;
  }

  .rodeo-wallet-plus svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
  }

  .rodeo-round-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
  }

  .rodeo-notification-button {
    position: relative;
    text-decoration: none;
  }

  .rodeo-notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 1000;
    box-shadow: 0 8px 18px rgba(239, 68, 68, .24);
  }

  .rodeo-avatar {
    position: relative;
    overflow: hidden;
    background: transparent;
  }

  .rodeo-avatar:before {
    content: none;
    position: absolute;
    width: 24px;
    height: 24px;
    top: 7px;
    border-radius: 50%;
    background: #5a2c1f;
  }

  .rodeo-avatar:after {
    content: none;
    position: absolute;
    width: 24px;
    height: 22px;
    top: 17px;
    border-radius: 50%;
    background: #ffd5a7;
  }

  .rodeo-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .rodeo-game-content {
    display: grid;
    grid-template-columns: minmax(720px, 1fr) 292px;
    gap: 22px;
    align-items: stretch;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .rodeo-stage-slot {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .rodeo-stage-slot > .app {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: 100%;
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .rodeo-stage-slot > .app > .topbar,
  .rodeo-stage-slot > .app > .bottom-nav,
  .rodeo-stage-slot > .app > .side-rail,
  body.rodeo-game-skinned .side-rail {
    display: none !important;
  }

  .rodeo-stage-slot .main {
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    min-height: 0;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    display: flex;
  }

  .rodeo-stage-slot .view {
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  .rodeo-stage-slot #lobbyView {
    display: none !important;
  }

  .rodeo-stage-slot #gameView {
    display: block !important;
  }

  .rodeo-stage-slot .stage,
  .rodeo-stage-slot .game-shell,
  .rodeo-stage-slot .bridge-shell,
  .rodeo-stage-slot .striker-stage {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(31, 38, 82, .16) !important;
  }

  .rodeo-stage-slot .game-shell {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .rodeo-stage-slot .stage-card {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    flex: 1 1 auto !important;
  }

  .rodeo-stage-slot .stage-overlay,
  .rodeo-stage-slot #gameCanvas {
    width: 100% !important;
    height: 100% !important;
  }

  .rodeo-stage-slot .game-footer {
    display: none !important;
  }

  .rodeo-stage-slot .bridge-shell {
    padding: 0 !important;
    background: transparent !important;
  }

  .rodeo-stage-slot .game-card {
    height: 100%;
    border-radius: 24px !important;
  }

  .rodeo-stage-slot .bridge-layout {
    min-height: 0 !important;
    height: 100% !important;
  }

  .rodeo-stage-slot .game-title-row {
    display: none !important;
  }

  .rodeo-stage-slot .game-head .rating,
  .rodeo-stage-slot .game-head .game-tools,
  .rodeo-stage-slot .game-head .tools,
  .rodeo-stage-slot .game-head .menu,
  .rodeo-stage-slot .bridge-head .rating,
  .rodeo-stage-slot .bridge-head .tools {
    display: none !important;
  }

  .rodeo-stage-slot .game-head,
  .rodeo-stage-slot .bridge-head {
    justify-content: center !important;
    pointer-events: none !important;
  }

  .rodeo-stage-slot .game-head .turn-timer,
  .rodeo-stage-slot .game-head .scoreboard {
    pointer-events: auto !important;
  }

  .rodeo-stage-slot canvas {
    border-radius: inherit;
  }

  .rodeo-right-rail {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 16px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .rodeo-side-card {
    min-height: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--rodeo-line);
    box-shadow: var(--rodeo-shadow);
    padding: 18px;
  }

  .rodeo-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .rodeo-card-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 1000;
    color: var(--rodeo-ink);
  }

  .rodeo-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff465d;
    font-size: 12px;
    font-weight: 900;
  }

  .rodeo-live:before,
  .rodeo-online:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
  }

  .rodeo-leader-list {
    display: grid;
  }

  .rodeo-leader-row {
    min-height: 47px;
    display: grid;
    grid-template-columns: 22px 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: var(--rodeo-ink);
    font-weight: 950;
    font-size: 13px;
    transition: transform 420ms ease, background-color 260ms ease, box-shadow 260ms ease;
  }

  .rodeo-leader-row.you {
    margin-top: 8px;
    border-radius: 14px;
    background: #f2eaff;
    padding: 0 8px;
    color: var(--rodeo-purple);
  }

  .rodeo-rank {
    color: #e75033;
    text-align: center;
    font-weight: 1000;
  }

  .rodeo-face {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ff986d, #ff5f7e);
    color: #fff;
    font-weight: 1000;
  }

  .rodeo-leader-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .rodeo-score {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }

  .rodeo-full-board {
    width: 100%;
    min-height: 42px;
    margin-top: 14px;
    border-radius: 14px;
    border: 1px solid var(--rodeo-line);
    background: #fff;
    color: var(--rodeo-purple);
    font-weight: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .rodeo-full-board svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  a.rodeo-full-board,
  a.rodeo-claim {
    text-decoration: none;
  }

  .rodeo-data-state {
    min-height: 88px;
    padding: 16px 12px;
    border: 1px dashed rgba(124, 58, 237, .24);
    border-radius: 16px;
    background: rgba(124, 58, 237, .05);
    color: var(--rodeo-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
  }

  .rodeo-data-state strong {
    color: var(--rodeo-ink);
    font-size: 13px;
  }

  .rodeo-chat-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .rodeo-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1fd94b;
    font-size: 12px;
    font-weight: 850;
  }

  .rodeo-chat-list {
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow: hidden auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, .35) transparent;
  }

  .rodeo-chat-line {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 9px;
    align-items: start;
    font-size: 12px;
  }

  .rodeo-chat-line.is-you {
    grid-template-columns: 32px 1fr auto;
    padding: 8px;
    margin: -2px 0;
    border: 1px solid rgba(124, 58, 237, .2);
    border-left: 4px solid var(--rodeo-purple);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(255, 138, 0, .08));
    box-shadow: 0 10px 22px rgba(124, 58, 237, .12);
  }

  .rodeo-chat-line.is-you .rodeo-face {
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #ff8a00);
  }

  .rodeo-chat-line.is-you strong,
  .rodeo-chat-line.is-you p {
    color: var(--rodeo-ink);
  }

  .rodeo-leader-row.is-new,
  .rodeo-chat-line.is-new {
    animation: rodeoLiveSlideIn 520ms ease both;
  }

  .rodeo-leader-row.score-pop {
    background: #fff8e8;
    border-radius: 14px;
    box-shadow: inset 4px 0 0 rgba(255, 176, 32, .75);
  }

  .rodeo-leader-row.score-pop .rodeo-score {
    animation: rodeoScorePulse 700ms ease both;
  }

  @keyframes rodeoLiveSlideIn {
    from {
      opacity: 0;
      transform: translateY(10px) scale(.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes rodeoScorePulse {
    0% { transform: scale(1); }
    42% { transform: scale(1.08); color: #7c3aed; }
    100% { transform: scale(1); }
  }

  .rodeo-chat-line strong {
    display: block;
    color: var(--rodeo-purple);
    font-size: 12px;
    line-height: 1.1;
    margin-bottom: 3px;
  }

  .rodeo-chat-line p {
    margin: 0;
    color: #596174;
    line-height: 1.25;
    font-weight: 750;
  }

  .rodeo-chat-time {
    color: #9aa0af;
    font-size: 10px;
    white-space: nowrap;
  }

  .rodeo-stage-slot .rating-title,
  .rodeo-stage-slot .game-title,
  .rodeo-stage-slot .game-watermark,
  .rodeo-stage-slot .watermark-title,
  .rodeo-stage-slot .scene-title,
  .rodeo-stage-slot [data-watermark]::before,
  .rodeo-stage-slot [data-watermark]::after {
    display: none !important;
    content: none !important;
  }

  .rodeo-chat-input {
    margin-top: auto;
    padding-top: 14px;
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 10px;
  }

  .rodeo-chat-input input {
    min-width: 0;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--rodeo-line);
    padding: 0 14px;
    background: #fff;
    color: var(--rodeo-ink);
    font: inherit;
  }

  .rodeo-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    color: #fff;
    color: #10142f;
    background: linear-gradient(135deg, #ff7a05, #ffb800);
    font-weight: 1000;
  }

  .rodeo-send svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (min-width: 980px) and (max-width: 1380px) {
  .rodeo-game-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .rodeo-game-main {
    padding: 20px;
  }

  .rodeo-game-top {
    grid-template-columns: minmax(230px, 1fr) minmax(330px, 430px) max-content;
    gap: 14px;
  }

  .rodeo-top-actions {
    grid-column: auto;
    justify-content: end;
    gap: 8px;
  }

  .rodeo-title-block {
    gap: 12px;
  }

  .rodeo-back {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .rodeo-title-copy h1 {
    font-size: 21px;
  }

  .rodeo-title-copy p {
    font-size: 12px;
  }

  .rodeo-summary-card {
    min-height: 66px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rodeo-summary-item {
    padding: 0 12px;
  }

  .rodeo-summary-item.best strong {
    font-size: 22px;
  }

  .rodeo-wallet {
    gap: 6px;
    padding-left: 7px;
  }

  .rodeo-wallet-plus,
  .rodeo-round-icon,
  .rodeo-avatar {
    width: 38px;
    height: 38px;
  }

  .rodeo-avatar-entry {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .rodeo-avatar-entry span {
    display: none;
  }

  .rodeo-game-content {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}

@media (min-width: 980px) and (max-width: 1099px) {
  .rodeo-game-shell {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .rodeo-game-sidebar {
    width: 96px;
    padding: 24px 10px 18px;
    gap: 20px;
    align-items: center;
  }

  .rodeo-game-logo img {
    width: 76px;
  }

  .rodeo-side-nav {
    width: 100%;
  }

  .rodeo-nav-link {
    justify-content: center;
    min-height: 46px;
    padding: 0;
  }

  .rodeo-nav-link span,
  .rodeo-side-bonus {
    display: none !important;
  }

  .rodeo-nav-link svg {
    width: 23px;
    height: 23px;
  }

  .rodeo-game-main {
    padding: 18px 16px;
  }

  .rodeo-game-top {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 18px;
  }

  .rodeo-summary-card,
  .rodeo-right-rail,
  .rodeo-title-copy p,
  .rodeo-round-icon {
    display: none !important;
  }

  .rodeo-top-actions {
    justify-content: end;
  }

  .rodeo-game-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 979px) {
  html.rodeo-game-skinned-root {
    min-height: 100%;
    background: var(--rodeo-bg);
  }

  body.rodeo-game-skinned {
    min-height: 100dvh;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 18% -12%, rgba(255, 138, 0, .10), transparent 32%),
      radial-gradient(circle at 96% -8%, rgba(124, 58, 237, .14), transparent 34%),
      var(--rodeo-bg) !important;
    color: var(--rodeo-ink);
  }

  .rodeo-game-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    padding: 14px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .rodeo-game-sidebar,
  .rodeo-right-rail {
    display: none !important;
  }

  .rodeo-game-main {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .rodeo-game-top.rodeo-shell-only {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px 0 2px;
  }

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

  .rodeo-back {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--rodeo-line);
    color: var(--rodeo-ink);
    box-shadow: var(--rodeo-soft-shadow);
    display: grid;
    place-items: center;
  }

  .rodeo-back svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
  }

  .rodeo-game-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: var(--rodeo-purple);
    background: var(--rodeo-purple-soft);
    display: grid;
    place-items: center;
  }

  .rodeo-game-icon svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.35;
  }

  .rodeo-title-copy {
    min-width: 0;
  }

  .rodeo-title-copy h1 {
    margin: 0;
    color: var(--rodeo-ink);
    font-size: 17px;
    line-height: 1.05;
    font-weight: 850;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .rodeo-title-copy p,
  .rodeo-summary-card,
  .rodeo-round-icon {
    display: none !important;
  }

  .rodeo-avatar-entry {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--rodeo-line);
    background: #fff;
    color: var(--rodeo-purple);
    box-shadow: var(--rodeo-soft-shadow);
    text-decoration: none;
  }

  .rodeo-avatar-entry span {
    display: none;
  }

  .rodeo-avatar-entry svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

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

  .rodeo-wallet {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 6px 5px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--rodeo-line);
    box-shadow: var(--rodeo-soft-shadow);
    color: var(--rodeo-ink);
    font-size: 14px;
    font-weight: 850;
  }

  .rodeo-mini-coin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at 35% 25%, #fff8cf, #ffbd24 58%, #ff8b00);
  }

  .rodeo-mini-coin svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }

  .rodeo-wallet-plus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    color: var(--rodeo-ink);
    background: #f2f4fa;
  }

  .rodeo-wallet-plus svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.8;
  }

  .rodeo-avatar {
    width: 40px;
    height: 40px;
    display: block;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: var(--rodeo-soft-shadow);
  }

  .rodeo-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .rodeo-game-content,
  .rodeo-stage-slot {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .rodeo-stage-slot {
    height: calc(100dvh - 86px);
    min-height: calc(100dvh - 86px);
    max-height: calc(100dvh - 86px);
    overflow: hidden;
  }

  .rodeo-stage-slot > .app {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .rodeo-stage-slot > .app > .topbar,
  .rodeo-stage-slot > .app > .bottom-nav,
  .rodeo-stage-slot > .app > .side-rail,
  body.rodeo-game-skinned .side-rail {
    display: none !important;
  }

  .rodeo-stage-slot .main {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  .rodeo-stage-slot .view {
    min-height: 0 !important;
    height: 100% !important;
  }

  .rodeo-stage-slot #lobbyView {
    display: none !important;
  }

  .rodeo-stage-slot #gameView {
    display: block !important;
    height: 100% !important;
  }

  .rodeo-stage-slot .stage,
  .rodeo-stage-slot .game-shell,
  .rodeo-stage-slot .bridge-shell,
  .rodeo-stage-slot .game-card,
  .rodeo-stage-slot .striker-stage,
  .rodeo-stage-slot .badminton-stage,
  .rodeo-stage-slot .candy-stage,
  .rodeo-stage-slot .fishing-shell,
  .rodeo-stage-slot .battle-stage {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 44px rgba(31, 38, 82, .14) !important;
  }

  .rodeo-stage-slot .game-shell {
    display: flex !important;
    flex-direction: column !important;
  }

  .rodeo-stage-slot .stage-card {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto !important;
  }

  .rodeo-stage-slot .stage-overlay,
  .rodeo-stage-slot #gameCanvas {
    width: 100% !important;
  }

  .rodeo-stage-slot .game-title-row,
  .rodeo-stage-slot .game-head .rating,
  .rodeo-stage-slot .game-head .game-tools,
  .rodeo-stage-slot .game-head .tools,
  .rodeo-stage-slot .game-head .menu,
  .rodeo-stage-slot .bridge-head .rating,
  .rodeo-stage-slot .bridge-head .tools,
  .rodeo-stage-slot .small-tool,
  .rodeo-stage-slot .tool-btn,
  .rodeo-stage-slot #soundBtn,
  .rodeo-stage-slot #quickSound,
  .rodeo-stage-slot #menuBtn {
    display: none !important;
  }

  .rodeo-stage-slot canvas {
    border-radius: inherit;
  }
}

@media (max-width: 430px) {
  .rodeo-game-top.rodeo-shell-only {
    gap: 8px;
  }

  .rodeo-title-block {
    gap: 8px;
  }

  .rodeo-game-icon {
    display: none !important;
  }

  .rodeo-title-copy h1 {
    font-size: 16px;
    line-height: 1.08;
  }

  .rodeo-wallet {
    gap: 5px;
    padding-left: 6px;
    font-size: 13px;
  }
}

@media (max-width: 340px) {
  .rodeo-game-shell {
    padding: 10px;
  }

  .rodeo-back {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .rodeo-title-copy h1 {
    font-size: 15px;
  }

  .rodeo-wallet .rodeo-mini-coin {
    display: none;
  }
}

.rodeo-auth-entry {
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(124, 58, 237, .22);
}

.rodeo-game-shell.rodeo-guest-session .rodeo-wallet,
.rodeo-game-shell.rodeo-guest-session .rodeo-avatar,
.rodeo-game-shell.rodeo-guest-session .rodeo-avatar-entry,
.rodeo-game-shell.rodeo-guest-session .rodeo-round-icon {
  display: none !important;
}

.rodeo-game-shell.rodeo-guest-session .rodeo-auth-entry {
  display: inline-flex;
}

body.rodeo-guest-demo .rodeo-demo-panel {
  position: relative !important;
  min-height: 46px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin-inline: auto;
  width: 100%;
  max-width: 260px;
}

body.rodeo-guest-demo .rodeo-demo-panel > * {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.rodeo-guest-demo .quick-stake-row {
  display: none !important;
}

body.rodeo-guest-demo .rodeo-demo-panel::after {
  content: "DEMO PLAY";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, .22);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 184, 0, .22), transparent 34%),
    linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(255, 255, 255, .9));
  color: var(--rodeo-ink);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

body.rodeo-game-skinned .rodeo-stage-slot .result-overlay .result-card,
body.rodeo-game-skinned .rodeo-stage-slot .result .result-card,
body.rodeo-game-skinned .rodeo-stage-slot .result-modal .result-card,
body.rodeo-game-skinned .rodeo-stage-slot .round-summary {
  max-width: min(92vw, 620px) !important;
  border-radius: 30px !important;
  border: 2px solid rgba(253, 186, 34, .52) !important;
  background:
    radial-gradient(circle at 50% -16%, rgba(253, 186, 34, .38), transparent 34%),
    radial-gradient(circle at 12% 20%, rgba(255, 138, 0, .18), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(124, 58, 237, .24), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 242, .98), rgba(246, 241, 255, .96)) !important;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, .30),
    inset 0 0 0 1px rgba(255, 255, 255, .76) !important;
  color: var(--rodeo-ink) !important;
  isolation: isolate;
}

body.rodeo-game-skinned .rodeo-stage-slot .result-overlay .result-card::before,
body.rodeo-game-skinned .rodeo-stage-slot .result .result-card::before,
body.rodeo-game-skinned .rodeo-stage-slot .result-modal .result-card::before,
body.rodeo-game-skinned .rodeo-stage-slot .round-summary::before {
  border-color: rgba(253, 186, 34, .18) !important;
}

body.rodeo-game-skinned .rodeo-stage-slot .result-card h2,
body.rodeo-game-skinned .rodeo-stage-slot .result-title {
  color: var(--rodeo-ink) !important;
  text-shadow: none !important;
}

body.rodeo-game-skinned .rodeo-stage-slot .result-card p,
body.rodeo-game-skinned .rodeo-stage-slot .round-summary span {
  color: #667085 !important;
  text-shadow: none !important;
}

body.rodeo-game-skinned .rodeo-stage-slot .result-button,
body.rodeo-game-skinned .rodeo-stage-slot .result-card .primary-action,
body.rodeo-game-skinned .rodeo-stage-slot .round-ok-button {
  min-width: min(260px, 100%) !important;
  align-self: center !important;
  justify-self: center !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(124, 58, 237, .28) !important;
}

body.rodeo-game-skinned .rodeo-stage-slot .result.loss .result-card,
body.rodeo-game-skinned .rodeo-stage-slot .result-overlay.loss .result-card,
body.rodeo-game-skinned .rodeo-stage-slot .round-summary.loss {
  border-color: rgba(248, 113, 113, .62) !important;
  background:
    radial-gradient(circle at 50% -16%, rgba(248, 113, 113, .26), transparent 34%),
    radial-gradient(circle at 12% 20%, rgba(255, 138, 0, .13), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(124, 58, 237, .18), transparent 28%),
    linear-gradient(180deg, rgba(255, 247, 237, .98), rgba(255, 241, 242, .96)) !important;
}

@media (max-width: 760px) {
  body.rodeo-game-skinned .rodeo-stage-slot .result-overlay .result-card,
  body.rodeo-game-skinned .rodeo-stage-slot .result .result-card,
  body.rodeo-game-skinned .rodeo-stage-slot .result-modal .result-card,
  body.rodeo-game-skinned .rodeo-stage-slot .round-summary {
    max-width: min(92vw, 380px) !important;
    padding: 20px 18px !important;
    border-radius: 24px !important;
  }
}
