:root {
  color-scheme: dark;
  --bg: #050609;
  --panel: #11131a;
  --panel-2: #1b1d26;
  --line: #b9924c;
  --gold: #f2c66d;
  --gold-2: #9f7b3a;
  --text: #f5f2ea;
  --muted: #9ca0a8;
  --blue: #4b6cff;
  --green: #52d29d;
  --danger: #ee6a6a;
}

* {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 22% 18%, rgba(242, 198, 109, .16), transparent 28%),
    linear-gradient(135deg, #050609, #151925 48%, #07080b);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

i {
  font-style: normal;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  height: min(900px, calc(100vh - 36px));
  min-height: 720px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(242, 198, 109, .28);
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42);
}

.screen {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 18px 18px 72px;
  scrollbar-width: thin;
}

.screen.active {
  display: block;
}

.screen[data-screen="room"].active {
  display: grid;
  grid-template-rows: 50px auto auto auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
  padding: 10px 12px 72px;
}

.screen[data-screen="support"].active {
  display: grid;
  grid-template-rows: 48px auto auto minmax(0, 1fr) 52px;
  gap: 8px;
  overflow: hidden;
  padding: 12px 12px 70px;
}

.screen[data-screen="support"] .topbar {
  height: 44px;
  margin-bottom: 0;
}

.home-hero {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(242, 198, 109, .24);
}

.home-hero img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .1));
}

.hero-copy span,
.muted,
.wallet-balance span,
.wallet-large span,
.draw-status span,
.room-card span,
.admin-stats span {
  color: var(--muted);
  font-size: 12px;
}

.hero-copy strong {
  font-size: 21px;
  line-height: 1.1;
}

.hero-copy p,
.wallet-card p,
.wallet-large p,
.profile-head p {
  margin: 3px 0 0;
  color: #d4c6a8;
  font-size: 13px;
}

.notice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 7px 9px;
  text-align: left;
  background: rgba(17, 19, 26, .9);
  border: 1px solid rgba(242, 198, 109, .45);
  border-radius: 8px;
}

.hall-notice {
  margin: 0 0 8px;
}

.top-notice {
  margin: 0 0 8px;
  overflow: hidden;
  white-space: nowrap;
}

.sound-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 198, 109, .2);
  color: var(--gold);
  font-weight: 700;
}

.notice-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

#frontNotice {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  white-space: nowrap;
  animation: notice-marquee 13s linear infinite;
  will-change: transform;
}

@keyframes notice-marquee {
  from {
    transform: translateX(0);
  }

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

.wallet-card,
.panel,
.wallet-large {
  background: linear-gradient(145deg, rgba(23, 25, 33, .96), rgba(8, 9, 13, .96));
  border: 1px solid rgba(242, 198, 109, .5);
  border-radius: 8px;
  padding: 14px;
}

.wallet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
}

[data-screen="home"] .wallet-card {
  padding: 10px 12px;
}

[data-screen="home"] .quick-actions button {
  min-height: 31px;
}

.wallet-card.plain {
  display: block;
}

.wallet-card h1,
.profile-head h1 {
  margin: 2px 0 0;
  font-size: 19px;
}

.wallet-balance {
  text-align: right;
}

.wallet-balance strong,
.wallet-large strong,
.draw-status strong {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 18px;
}

.quick-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.quick-actions button,
.section-head button,
.tabs button,
.room-tabs button,
.segmented button,
.amount-grid button,
.admin-modules button,
.profile-grid button {
  min-height: 32px;
  border-radius: 8px;
  background: rgba(242, 198, 109, .14);
  color: #f7dfae;
}

[data-recharge].selected {
  background: var(--gold);
  color: #15100a;
  font-weight: 800;
}

.wallet-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 7px;
}

.section-head.inline {
  margin: 0 0 12px;
}

.section-head h2,
.panel h2 {
  margin: 0;
  font-size: 16px;
}

.section-head button {
  min-height: 32px;
  padding: 0 14px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
  text-align: left;
  border-radius: 8px;
  background: linear-gradient(150deg, #222633, #0d0f14);
  border: 1px solid rgba(242, 198, 109, .26);
}

.game-art {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #734d2b);
  color: #111;
  font-weight: 800;
  font-size: 20px;
}

.game-card strong {
  margin-top: 8px;
}

.game-card small {
  color: var(--muted);
}

.compact {
  margin-top: 14px;
}

.live-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.live-row strong {
  color: var(--gold);
  font-size: 22px;
}

.live-row em {
  color: var(--green);
  font-style: normal;
  font-size: 12px;
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.dashboard-strip article,
.wallet-tools button,
.member-card > div {
  padding: 10px;
  border-radius: 8px;
  background: #11131a;
  border: 1px solid rgba(242, 198, 109, .2);
}

.dashboard-strip span,
.dashboard-strip small,
.service-grid span,
.wallet-tools span,
.ledger-list small,
.member-card span,
.profile-list span,
.task-list i,
.rule-list span,
.info-stack p,
.news-list span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-strip strong,
.wallet-tools strong,
.member-card strong {
  display: block;
  margin: 5px 0 2px;
  color: var(--gold);
  font-size: 18px;
}

.dashboard-strip small {
  display: block;
}

.service-grid,
.wallet-tools,
.member-card {
  display: grid;
  gap: 8px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.service-grid button {
  min-height: 66px;
  padding: 12px;
  text-align: left;
  border-radius: 8px;
  background: linear-gradient(145deg, #181b24, #0d0f14);
  border: 1px solid rgba(242, 198, 109, .18);
}

.compact-service {
  margin: 12px 0 0;
  gap: 7px;
}

.compact-service button {
  min-height: 54px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .055);
}

.service-grid strong,
.news-list strong {
  display: block;
  margin-bottom: 5px;
  color: #f1d7a1;
  font-size: 14px;
}

.news-list,
.rule-list,
.info-stack,
.profile-list,
.task-list,
.ledger-list {
  display: grid;
  gap: 8px;
}

.news-list article,
.ledger-list article,
.task-list article,
.profile-list p,
.rule-list span,
.info-stack p {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.rule-list span {
  display: block;
  line-height: 1.55;
}

.topbar {
  height: 48px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 14px;
}

.topbar.floating {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  height: 50px;
  background: rgba(5, 6, 9, .88);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  font-size: 24px;
}

.tabs,
.room-tabs,
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.room-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.room-tabs button {
  min-height: 34px;
  font-size: 12px;
}

.tabs button,
.room-tabs button,
.segmented button {
  background: #1b1d26;
}

.tabs .active,
.room-tabs .active,
.segmented .active {
  background: var(--gold);
  color: #16110a;
}

.room-list {
  display: grid;
  gap: 12px;
}

[data-screen="canadaRooms"] .room-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 10px;
  text-align: left;
  border-radius: 8px;
  background: #11131a;
  border: 1px solid rgba(242, 198, 109, .28);
}

[data-screen="canadaRooms"] .room-card {
  position: relative;
  grid-template-columns: 1fr;
  align-content: end;
  min-height: 190px;
  overflow: hidden;
  padding: 14px;
  background: #11131a;
}

[data-screen="canadaRooms"] .room-card .room-visual {
  position: absolute;
  inset: 10px;
  height: auto;
  opacity: 1;
}

[data-screen="canadaRooms"] .room-card > div:last-child {
  position: relative;
  z-index: 1;
  padding-top: 112px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .78);
}

[data-screen="canadaRooms"] .room-card strong {
  display: block;
  color: var(--gold);
  font-size: 22px;
}

[data-screen="canadaRooms"] .room-card em {
  display: block;
  margin-top: 5px;
  color: #f1d7a1;
  font-size: 11px;
  font-style: normal;
}

[data-screen="canadaRooms"] .wide-room {
  grid-column: 1 / -1;
  min-height: 150px;
}

[data-screen="canadaRooms"] .wide-room > div:last-child {
  padding-top: 72px;
}

.room-visual {
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4b2b30, #15151d);
  position: relative;
  overflow: hidden;
}

.room-visual::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  right: 16px;
  bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #6b5bf0);
  box-shadow: -34px -14px 0 rgba(255, 255, 255, .13);
}

.room-visual.balls {
  background: linear-gradient(135deg, #1e3940, #14161e);
}

.room-visual.clock {
  background: linear-gradient(135deg, #3e311f, #101016);
}

[data-screen="canadaRooms"] .room-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .76));
  z-index: 2;
}

[data-screen="canadaRooms"] .room-visual.cards {
  background:
    radial-gradient(circle at 66% 38%, rgba(242, 198, 109, .4), transparent 18%),
    linear-gradient(135deg, #3b251f, #11131a);
}

[data-screen="canadaRooms"] .room-visual.cards::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 98px;
  right: 20px;
  top: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f5d98c, #795226);
  transform: rotate(-18deg);
  box-shadow: -42px 12px 0 rgba(255, 255, 255, .16), -74px 30px 0 rgba(242, 198, 109, .18);
}

[data-screen="canadaRooms"] .room-visual.balls {
  background:
    radial-gradient(circle at 72% 34%, rgba(105, 92, 255, .45), transparent 20%),
    linear-gradient(135deg, #173238, #11131a);
}

[data-screen="canadaRooms"] .room-visual.balls::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  right: 28px;
  top: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ffe8a9, #6b5bf0 62%, #1d2260);
  box-shadow: -58px 16px 0 rgba(242, 198, 109, .28), -98px -10px 0 rgba(255, 255, 255, .13);
}

[data-screen="canadaRooms"] .room-visual.clock {
  background:
    radial-gradient(circle at 70% 45%, rgba(242, 198, 109, .32), transparent 24%),
    linear-gradient(135deg, #342716, #101016);
}

[data-screen="canadaRooms"] .room-visual.clock::after {
  content: "";
  position: absolute;
  width: 122px;
  height: 122px;
  right: 28px;
  top: 4px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #f2c66d 0 8deg, #6a4722 8deg 16deg),
    radial-gradient(circle, #1a1510 0 42%, transparent 43%);
  box-shadow: inset 0 0 0 14px rgba(0, 0, 0, .28), 0 20px 36px rgba(0, 0, 0, .32);
}

.draw-status {
  min-height: 108px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #262334, #131218);
  border: 1px solid rgba(242, 198, 109, .32);
}

.room-overview {
  min-height: 64px;
  padding: 10px 12px;
  align-items: center;
}

.room-overview .wallet-balance strong,
.room-overview strong {
  font-size: 18px;
}

.draw-status em {
  display: inline-block;
  margin-left: 8px;
  color: var(--green);
  font-style: normal;
}

.result-card {
  margin-top: -10px;
  padding: 16px 14px;
  border-radius: 8px;
  background: #050609;
  border: 1px solid rgba(255, 255, 255, .06);
}

.compact-result {
  margin-top: 0;
  padding: 8px 10px;
}

.compact-result .balls-line {
  padding: 6px 0 0;
}

.compact-result .balls-line b {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.screen[data-screen="room"] .result-meta {
  font-size: 12px;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold);
  font-size: 13px;
}

.balls-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 4px;
}

.balls-line b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7e0d2, #5b5b61);
  color: #151515;
}

.balls-line.mark-six {
  flex-wrap: wrap;
  gap: 6px;
}

.balls-line.mark-six b {
  width: 34px;
  height: 34px;
  color: white;
  font-size: 13px;
}

.balls-line b.red {
  background: linear-gradient(135deg, #ff7777, #b51e35);
}

.balls-line b.blue {
  background: linear-gradient(135deg, #79a9ff, #264dba);
}

.balls-line b.green {
  background: linear-gradient(135deg, #76daa7, #16794b);
}

.balls-line b.special {
  box-shadow: 0 0 0 2px rgba(242, 198, 109, .8), 0 0 18px rgba(242, 198, 109, .28);
}

.room-panel {
  display: none;
}

.room-panel.active {
  display: block;
}

.screen[data-screen="room"] .room-panel.active {
  min-height: 0;
  overflow: hidden;
}

.screen[data-screen="room"] [data-room-panel="chat"].active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 8px;
}

.bet-grid,
.amount-grid,
.admin-modules,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bet-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(242, 198, 109, .08);
  border: 1px solid rgba(242, 198, 109, .18);
}

.bet-toolbar strong,
.bet-toolbar span {
  display: block;
}

.bet-toolbar strong {
  color: #f1d7a1;
  font-size: 14px;
}

.bet-toolbar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.bet-toolbar button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #f7dfae;
  font-size: 12px;
}

.bet-workspace {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  align-content: start;
  padding-right: 2px;
}

.bet-group {
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(31, 34, 43, .92), rgba(12, 13, 18, .94));
  border: 1px solid rgba(242, 198, 109, .18);
  overflow: hidden;
}

.bet-group summary {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
  color: var(--gold);
  cursor: pointer;
  list-style: none;
}

.bet-group summary::-webkit-details-marker {
  display: none;
}

.bet-group summary::after {
  content: "+";
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 198, 109, .14);
  color: #f7dfae;
  font-weight: 800;
}

.bet-group[open] summary::after {
  content: "-";
}

.bet-group summary span {
  color: #f1d7a1;
  font-size: 13px;
}

.bet-group summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.bet-grid button {
  min-height: 38px;
  border-radius: 8px;
  background: #1c1f29;
  border: 1px solid rgba(255, 255, 255, .06);
}

.bet-grid button,
.playbook button {
  display: grid;
  place-items: center;
  gap: 2px;
}

.bet-grid button small,
.playbook button small {
  color: #d9c08a;
  font-size: 9px;
  line-height: 1;
}

.bet-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 0 8px 8px;
}

.quick-group .bet-grid button {
  min-height: 34px;
  padding: 0 4px;
  font-size: 12px;
}

[data-bet].selected {
  background: var(--gold) !important;
  color: #15100a !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 1px rgba(242, 198, 109, .35);
}

.playbook {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.playbook div {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  padding: 0 8px 8px;
}

.playbook .value-panel div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
}

.playbook .value-panel button {
  min-height: 34px;
  width: 100%;
}

.playbook .number-grid div {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  overflow: visible;
}

.playbook .number-grid button {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  padding: 3px;
  border-radius: 50%;
  background: #050609;
  border: 1px solid rgba(242, 198, 109, .5);
}

.playbook .number-grid button span {
  font-size: 13px;
  font-weight: 800;
}

.playbook .zodiac-grid div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
}

.playbook .zodiac-grid button {
  width: 100%;
  min-height: 46px;
  border-radius: 18px;
  background: #050609;
  border: 1px solid rgba(242, 198, 109, .42);
}

.playbook .compact-grid div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
}

.playbook .compact-grid button {
  width: 100%;
  min-height: 42px;
  border-radius: 18px;
  background: #050609;
  border: 1px solid rgba(242, 198, 109, .42);
}

.playbook button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #e9dfca;
  font-size: 12px;
}

.mark6-playbook {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 5px;
  height: min(300px, calc(100vh - 392px));
  min-height: 168px;
  overflow: hidden;
}

.mark6-menu {
  display: grid;
  align-content: start;
  gap: 2px;
  height: 100%;
  overflow-y: auto;
  padding-right: 2px;
}

.mark6-menu button {
  width: 100%;
  min-height: 29px;
  padding: 2px 4px;
  justify-items: start;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .06);
  color: #d8cfbd;
  font-size: 11px;
  text-align: left;
}

.mark6-menu button small {
  color: rgba(216, 207, 189, .6);
  font-size: 8px;
}

.mark6-menu button.active {
  background: var(--gold);
  color: #15100a;
  border-color: var(--gold);
}

.mark6-menu button.active small {
  color: rgba(21, 16, 10, .72);
}

.mark6-content {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
}

.mark6-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mark6-content-head strong {
  color: #f2d695;
  font-size: 13px;
}

.mark6-content-head span {
  color: var(--muted);
  font-size: 11px;
}

.mark6-content > div:last-child {
  display: grid;
  gap: 4px;
  padding: 0;
  overflow: visible;
}

.mark6-content.number-grid > div:last-child {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mark6-content.zodiac-grid > div:last-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mark6-content.compact-grid > div:last-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mark6-content button {
  width: 100%;
  flex: 1 1 auto;
  background: #050609;
  border: 1px solid rgba(242, 198, 109, .42);
}

.mark6-content.number-grid button {
  aspect-ratio: 1;
  min-height: 0;
  padding: 2px;
  border-radius: 50%;
}

.mark6-content.number-grid button span {
  font-size: 11px;
  font-weight: 800;
}

.mark6-content.zodiac-grid button,
.mark6-content.compact-grid button {
  min-height: 34px;
  border-radius: 14px;
}

.screen[data-screen="room"][data-play-layout="side"] {
  gap: 6px;
  padding-bottom: 10px;
}

.screen[data-screen="room"][data-play-layout="side"] .topbar {
  min-height: 34px;
  padding-bottom: 2px;
}

.screen[data-screen="room"][data-play-layout="side"] .room-overview {
  min-height: 48px;
  padding: 7px 10px;
}

.screen[data-screen="room"][data-play-layout="side"] .room-overview span,
.screen[data-screen="room"][data-play-layout="side"] .room-overview em {
  font-size: 11px;
}

.screen[data-screen="room"][data-play-layout="side"] .room-overview strong {
  font-size: 16px;
}

.screen[data-screen="room"][data-play-layout="side"] .compact-result {
  display: grid;
  grid-template-columns: minmax(0, 110px) 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
}

.screen[data-screen="room"][data-play-layout="side"] .compact-result .result-meta {
  display: grid;
  gap: 2px;
  font-size: 11px;
}

.screen[data-screen="room"][data-play-layout="side"] .compact-result .balls-line {
  justify-content: flex-end;
  padding: 0;
  gap: 4px;
}

.screen[data-screen="room"][data-play-layout="side"] .balls-line.mark-six b {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.screen[data-screen="room"][data-play-layout="side"] .room-tabs {
  gap: 6px;
  margin: 0;
}

.screen[data-screen="room"][data-play-layout="side"] .room-tabs button {
  min-height: 34px;
  font-size: 12px;
}

.screen[data-screen="room"][data-play-layout="side"] .bet-workspace {
  gap: 6px;
  overflow: visible;
}

.screen[data-screen="room"][data-play-layout="side"] .quick-group {
  display: none;
}

.screen[data-screen="room"][data-play-layout="side"] .bet-toolbar {
  padding: 6px 8px;
}

.screen[data-screen="room"][data-play-layout="side"] .bet-toolbar span {
  display: none;
}

.screen[data-screen="room"][data-play-layout="side"] .bet-toolbar button {
  min-height: 28px;
}

.screen[data-screen="room"][data-play-layout="side"] .bet-summary {
  padding: 6px 8px;
}

.screen[data-screen="room"][data-play-layout="side"] .bet-input {
  grid-template-columns: 48px 1fr 66px;
  gap: 6px;
}

.screen[data-screen="room"][data-play-layout="side"] .bet-input input,
.screen[data-screen="room"][data-play-layout="side"] .bet-input button {
  height: 38px;
}

.playbook .special-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  overflow: visible;
  padding: 0 8px 8px;
}

.playbook .special-grid button {
  flex: 1 1 auto;
  aspect-ratio: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 50%;
  background: #050609;
  border: 1px solid rgba(242, 198, 109, .5);
}

.playbook .special-grid span {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1;
}

.playbook .special-grid small {
  display: block;
  color: #d9c08a;
  font-size: 8px;
  line-height: 1;
}

[data-bet].selected small,
[data-bet].selected span {
  color: #15100a;
}

.bet-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(242, 198, 109, .1);
  border: 1px solid rgba(242, 198, 109, .24);
}

.bet-summary span {
  color: #e8dcc3;
  font-size: 13px;
}

.bet-summary strong {
  color: var(--gold);
  font-size: 13px;
}

.chat-feed {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.market-feed {
  margin-top: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
}

.market-feed summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #f1d7a1;
  font-size: 13px;
  cursor: pointer;
}

.market-feed .chat-feed {
  padding: 0 10px 10px;
}

.chat-room-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(242, 198, 109, .08);
  border: 1px solid rgba(242, 198, 109, .18);
}

.chat-room-head strong,
.chat-room-head span {
  display: block;
}

.chat-room-head strong {
  color: #f1d7a1;
}

.chat-room-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.chat-room-head button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #f7dfae;
}

.room-chat-feed {
  max-height: calc(100vh - 330px);
  min-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
  padding-bottom: 12px;
}

.screen[data-screen="room"] [data-room-panel="lobbyChat"].active,
.screen[data-screen="room"] [data-room-panel="trend"].active,
.screen[data-screen="room"] [data-room-panel="history"].active {
  overflow-y: auto;
  padding-bottom: 4px;
}

.screen[data-screen="room"] [data-room-panel="lobbyChat"].active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 42px;
  gap: 8px;
}

.screen[data-screen="room"] .room-chat-feed {
  min-height: 0;
  max-height: none;
}

.room-chat-input {
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 8px;
}

.room-chat-input input {
  height: 40px;
  border: 1px solid rgba(242, 198, 109, .32);
  border-radius: 8px;
  background: #191b21;
  color: var(--text);
  padding: 0 12px;
  outline: 0;
}

.room-chat-input button {
  border-radius: 8px;
  background: var(--gold);
  color: #15100a;
  font-weight: 800;
}

.chat-feed article {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
}

.chat-feed span {
  color: #d5c196;
  font-size: 13px;
}

.chat-feed p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #0d0e12;
  line-height: 1.55;
  font-size: 12px;
}

.chat-feed .self p {
  border: 1px solid rgba(82, 210, 157, .35);
}

.chat-feed .talk p {
  background: rgba(75, 108, 255, .12);
  border: 1px solid rgba(75, 108, 255, .22);
  color: #dfe5ff;
}

.bet-input {
  position: relative;
  bottom: auto;
  z-index: 4;
  display: grid;
  grid-template-columns: 54px 1fr 72px;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: rgba(5, 6, 9, .96);
  border-top: 0;
  backdrop-filter: none;
}

.bet-input input,
.field input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(242, 198, 109, .32);
  border-radius: 8px;
  background: #191b21;
  color: var(--text);
  padding: 0 12px;
  outline: 0;
}

.bet-input button,
.primary,
.ghost {
  border-radius: 8px;
  background: var(--gold);
  color: #15100a;
  font-weight: 700;
}

.bet-input button:first-child {
  background: rgba(255, 255, 255, .08);
  color: #e8dcc3;
  font-size: 12px;
}

.segmented {
  grid-template-columns: repeat(2, 1fr);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #ded5c4;
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
}

.tag {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: rgba(242, 198, 109, .18);
  color: var(--gold);
}

.wide-tag {
  min-width: 64px;
  padding: 0 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.trend-table th,
.trend-table td {
  vertical-align: top;
}

.trend-table th:nth-child(3),
.trend-table td:nth-child(3) {
  width: 42%;
}

.trend-hint,
.trend-focus {
  line-height: 1.55;
}

.trend-hint {
  color: #f1d7a1;
}

.trend-focus {
  color: var(--muted);
}

.trend-view {
  display: none;
}

.trend-view.active {
  display: block;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.stat-grid article,
.stat-section {
  border: 1px solid rgba(242, 198, 109, .18);
  border-radius: 8px;
  background: #11131a;
}

.stat-grid article {
  padding: 10px;
}

.stat-grid span,
.stat-grid small,
.stat-bar span,
.stat-bar em {
  color: var(--muted);
  font-size: 12px;
}

.stat-grid strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--gold);
  font-size: 20px;
}

.stat-section {
  padding: 10px;
  margin-bottom: 8px;
}

.stat-section h3 {
  margin: 0 0 8px;
  color: #f1d7a1;
  font-size: 14px;
}

.stat-bar {
  display: grid;
  grid-template-columns: 84px 1fr 42px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
}

.stat-bar + .stat-bar {
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.stat-bar div {
  display: grid;
  gap: 2px;
}

.stat-bar strong {
  color: #f1d7a1;
  font-size: 12px;
}

.stat-bar i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.stat-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #6b5bf0);
}

.history-list {
  display: grid;
  gap: 6px;
}

.history-filter {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  overflow: hidden;
  margin-bottom: 8px;
  padding-bottom: 0;
  scrollbar-width: none;
}

.history-filter::-webkit-scrollbar {
  display: none;
}

.history-filter button {
  min-width: 0;
  min-height: 30px;
  padding: 0 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #e8dcc3;
  font-size: 11px;
}

.history-filter button.active {
  background: var(--gold);
  color: #15100a;
  font-weight: 800;
}

.history-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 58px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #11131a;
  border: 1px solid rgba(255, 255, 255, .06);
}

.history-meta {
  min-width: 0;
}

.history-meta strong,
.history-meta span {
  display: block;
}

.history-meta strong {
  color: var(--gold);
  font-size: 12px;
  line-height: 1.2;
}

.history-meta span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.history-balls {
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
  overflow: hidden;
}

.history-balls b,
.history-balls.mark-six b {
  width: 22px;
  height: 22px;
  font-size: 10px;
}

.history-balls span {
  color: var(--muted);
  font-size: 11px;
}

.history-item p {
  margin: 0;
  color: #f1d7a1;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.wallet-large {
  margin-bottom: 14px;
}

.wallet-large strong {
  font-size: 36px;
}

.wallet-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.wallet-tools button {
  min-height: 62px;
  text-align: left;
}

.wallet-tools strong {
  font-size: 15px;
}

.field {
  display: block;
  margin-top: 12px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.primary,
.ghost {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
}

.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(242, 198, 109, .45);
}

.profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 12px 0 22px;
}

.avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2c66d, #eae3d6);
  color: #15100a;
  font-size: 28px;
  font-weight: 800;
}

.profile-grid {
  margin-top: 14px;
}

.profile-grid button {
  min-height: 76px;
  background: #11131a;
  border: 1px solid rgba(242, 198, 109, .24);
}

.member-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.member-card > div {
  min-height: 66px;
}

.member-card strong {
  font-size: 15px;
}

.member-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.mini-progress {
  height: 5px;
  margin-top: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.mini-progress i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #9f7b3a);
}

.profile-progress {
  margin-top: 12px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.progress-track span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #9f7b3a);
}

.profile-progress p,
.security-list article,
.profile-activity article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-progress strong,
.security-list strong,
.profile-activity strong {
  color: #f1d7a1;
  font-size: 12px;
  white-space: nowrap;
}

.profile-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.profile-list strong {
  color: #f1d7a1;
  font-size: 13px;
  text-align: right;
}

[data-screen="profile"].active {
  padding: 10px 12px 58px;
}

[data-screen="profile"] .wallet-card,
[data-screen="profile"] .panel {
  padding: 9px 10px;
}

[data-screen="profile"] .profile-account-card {
  gap: 4px 8px;
}

[data-screen="profile"] .wallet-card h1 {
  margin-top: 0;
  font-size: 17px;
}

[data-screen="profile"] .wallet-card p {
  margin-top: 1px;
  font-size: 11px;
}

[data-screen="profile"] .wallet-balance strong {
  margin-top: 1px;
  font-size: 16px;
}

[data-screen="profile"] .quick-actions {
  gap: 5px;
  margin-top: 2px;
}

[data-screen="profile"] .quick-actions button {
  min-height: 28px;
  font-size: 12px;
}

[data-screen="profile"] .member-card {
  gap: 6px;
  margin-top: 8px;
}

[data-screen="profile"] .member-card > div {
  min-height: 46px;
  padding: 7px;
}

[data-screen="profile"] .member-card span,
[data-screen="profile"] .member-card small {
  font-size: 9px;
}

[data-screen="profile"] .member-card strong {
  font-size: 13px;
}

[data-screen="profile"] .profile-progress {
  margin-top: 8px;
}

[data-screen="profile"] .progress-track {
  height: 6px;
}

[data-screen="profile"] .profile-progress p,
[data-screen="profile"] .security-list article {
  margin-top: 6px;
  font-size: 11px;
}

[data-screen="profile"] .profile-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

[data-screen="profile"] .profile-grid button {
  min-height: 36px;
  padding: 4px;
  font-size: 11px;
}

[data-screen="profile"] .compact {
  margin-top: 8px;
}

[data-screen="profile"] .section-head.inline {
  margin-bottom: 7px;
}

[data-screen="profile"] .profile-list p {
  margin: 0;
  padding: 6px;
  font-size: 11px;
}

[data-screen="profile"] .profile-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

[data-screen="profile"] .profile-list p {
  display: block;
}

[data-screen="profile"] .profile-list span,
[data-screen="profile"] .profile-list strong {
  display: block;
  text-align: left;
}

[data-screen="profile"] .profile-list strong,
[data-screen="profile"] .security-list strong {
  font-size: 11px;
}

.event-hero {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 22%, rgba(242, 198, 109, .36), transparent 25%),
    linear-gradient(135deg, #3a1515, #11131a 68%);
  border: 1px solid rgba(242, 198, 109, .36);
}

.event-hero span,
.reward-status span,
.event-card span {
  color: var(--muted);
  font-size: 12px;
}

.event-hero strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.event-hero p {
  margin: 5px 0 0;
  color: #dfd0b2;
  font-size: 13px;
}

.event-hero b {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f45d47, #8d171c);
  color: #ffe19b;
  font-size: 30px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}

.sign-panel {
  margin-bottom: 14px;
}

.reward-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(242, 198, 109, .1);
}

.reward-status strong {
  color: var(--gold);
  font-size: 20px;
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.sign-grid button {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 5px;
  border-radius: 8px;
  background: linear-gradient(145deg, #4d3922, #1a1714);
  border: 1px solid rgba(242, 198, 109, .24);
}

.sign-grid span {
  color: #d9c08a;
  font-size: 12px;
}

.sign-grid strong {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 198, 109, .18);
  color: var(--gold);
}

.sign-grid .selected-day {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(242, 198, 109, .45);
}

.sign-grid .claimed {
  opacity: .58;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-card {
  min-height: 96px;
  padding: 14px;
  text-align: left;
  border-radius: 8px;
  background: linear-gradient(145deg, #1f222d, #101116);
  border: 1px solid rgba(242, 198, 109, .2);
}

.event-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f1d7a1;
  font-size: 16px;
}

.task-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.task-list span {
  color: #e8dcc3;
  font-size: 13px;
}

.task-list i {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(242, 198, 109, .12);
  color: #f1d7a1;
}

.support-card {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 6px;
  align-items: center;
  margin-bottom: 0;
  padding: 8px;
  border-radius: 8px;
  background: #11131a;
  border: 1px solid rgba(242, 198, 109, .24);
}

.support-card strong,
.support-card span {
  display: block;
}

.support-card span {
  color: var(--muted);
  font-size: 12px;
}

.support-card button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(242, 198, 109, .14);
  color: #f7dfae;
  font-size: 12px;
}

.support-faq {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.support-faq button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #e8dcc3;
  font-size: 12px;
}

.support-chat {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 4px 2px 10px;
  overscroll-behavior: contain;
}

.support-chat article {
  display: grid;
  gap: 4px;
  max-width: 82%;
}

.support-chat .user {
  justify-self: end;
}

.support-chat span {
  color: var(--muted);
  font-size: 12px;
}

.support-chat p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #151821;
  line-height: 1.55;
}

.support-chat .user p {
  background: rgba(242, 198, 109, .9);
  color: #15100a;
}

.support-chat small {
  display: block;
  margin-top: 6px;
  opacity: .72;
  font-size: 11px;
}

.support-chat img {
  display: block;
  max-width: 160px;
  max-height: 160px;
  margin-top: 6px;
  border-radius: 8px;
}

.support-input {
  position: relative;
  bottom: auto;
  display: grid;
  grid-template-columns: 40px 1fr 58px;
  gap: 8px;
  padding-top: 0;
  background: var(--bg);
}

.support-input input[type="text"],
.support-input #supportText {
  height: 40px;
  border: 1px solid rgba(242, 198, 109, .32);
  border-radius: 8px;
  background: #191b21;
  color: var(--text);
  padding: 0 12px;
  outline: 0;
}

.support-image-btn,
.support-input button {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #15100a;
  font-weight: 800;
}

.support-image-btn input {
  display: none;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.admin-stats article {
  padding: 14px 10px;
  border-radius: 8px;
  background: #11131a;
  border: 1px solid rgba(242, 198, 109, .22);
}

.admin-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 18px;
}

.admin-modules button {
  background: #222530;
}

.bottom-nav {
  position: absolute;
  inset: auto 0 0;
  z-index: 12;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 5px 8px 7px;
  background: rgba(5, 6, 9, .94);
  border-top: 1px solid rgba(242, 198, 109, .14);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.bottom-nav button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 1px;
  background: transparent;
  color: #737780;
  font-size: 11px;
  touch-action: manipulation;
}

.bottom-nav span {
  font-size: 17px;
}

.bottom-nav .active {
  color: var(--gold);
}

.support-nav i {
  position: absolute;
  top: 7px;
  right: 24px;
  width: 8px;
  height: 8px;
  display: none;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 2px #050609;
}

.support-nav i.show {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, .62);
}

.modal.active {
  display: grid;
}

.dialog {
  width: min(360px, 100%);
  position: relative;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1d1a15, #08090d);
  border: 1px solid rgba(242, 198, 109, .45);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .5);
}

.dialog strong {
  display: block;
  color: var(--gold);
  font-size: 20px;
}

.dialog p {
  color: #e8dcc3;
  line-height: 1.7;
  white-space: pre-line;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 30;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #f2c66d;
  color: #15100a;
  font-weight: 700;
  transition: .22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.amount-modal {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: none;
  align-items: end;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .58);
}

.amount-modal.active {
  display: flex;
}

.amount-sheet {
  width: min(430px, 100%);
  padding: 16px;
  border-radius: 8px;
  background: #11131a;
  border: 1px solid rgba(242, 198, 109, .4);
  box-shadow: 0 -20px 70px rgba(0, 0, 0, .45);
}

.amount-sheet header,
.amount-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.amount-sheet header strong {
  color: var(--gold);
  font-size: 18px;
}

.amount-sheet header button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.selected-preview {
  margin: 12px 0;
  padding: 10px;
  min-height: 42px;
  border-radius: 8px;
  background: #0b0c10;
  color: #e8dcc3;
  line-height: 1.5;
  font-size: 13px;
}

.stake-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stake-grid button {
  min-height: 40px;
  border-radius: 8px;
  background: #252832;
}

.stake-grid button.active {
  background: var(--gold);
  color: #15100a;
  font-weight: 800;
}

.stake-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.stake-field span,
.amount-total span {
  color: var(--muted);
  font-size: 12px;
}

.stake-field input {
  height: 44px;
  border: 1px solid rgba(242, 198, 109, .32);
  border-radius: 8px;
  background: #191b21;
  color: var(--text);
  padding: 0 12px;
  outline: 0;
}

.amount-total {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(242, 198, 109, .1);
}

.amount-total strong {
  color: var(--gold);
}

.ledger-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  align-items: center;
}

.ledger-list strong {
  color: var(--gold);
  font-size: 13px;
  text-align: right;
}

.ledger-list small {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
    min-height: 100dvh;
  }

  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    padding: 14px 14px calc(70px + env(safe-area-inset-bottom));
  }

  .screen[data-screen="room"].active {
    padding: 8px 10px calc(70px + env(safe-area-inset-bottom));
  }

  .screen[data-screen="support"].active,
  [data-screen="profile"].active {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    height: calc(58px + env(safe-area-inset-bottom));
    padding: 4px 6px calc(6px + env(safe-area-inset-bottom));
  }

  .bottom-nav span {
    font-size: 16px;
  }

  .bottom-nav button {
    font-size: 10px;
  }
}
