@font-face {
  font-family: "Gilroy";
  src: url("./assets/fonts/Gilroy-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Gilroy";
  src: url("./assets/fonts/Gilroy-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Museo";
  src: url("./assets/fonts/MuseoSansCyrl-700.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Museo";
  src: url("./assets/fonts/MuseoSansCyrl-900.ttf") format("truetype");
  font-weight: 900;
}

:root {
  --dark-blue: #151c35;
  --dark: #0e1429;
  --dark-2: #090e21;
  --card-blue: #1e2643;
  --row-blue: #19213d;
  --blue-shadow: #1d2748;
  --blue: #0f9af0;
  --rose: #cc3869;
  --red: #e24458;
  --red-hot: #ec494f;
  --violet: #886df2;
  --text-muted: #979fbe;
  --text-dim: #61677b;
  --white: #ffffff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  background: var(--dark-blue);
  color: var(--white);
  font-family: "Gilroy", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

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

button:focus {
  outline: none;
}

button:focus-visible {
  outline: 2px solid rgba(15, 154, 240, 0.72);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% -10%, rgba(226, 68, 88, 0.14), transparent 28rem),
    linear-gradient(180deg, #151c35 0%, #10172e 46%, #090e21 100%);
}

.status-frame {
  height: max(env(safe-area-inset-top), 14px);
}

.screen {
  position: relative;
  width: min(100%, 430px);
  min-height: calc(100svh - max(env(safe-area-inset-top), 14px));
  margin: 0 auto;
  padding: 0 16px max(24px, env(safe-area-inset-bottom));
}

.nav-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 84px;
  align-items: center;
  height: 60px;
}

.nav-bar h1 {
  margin: 0;
  overflow: hidden;
  font-family: "Gilroy", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon,
.settings-dot {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: transparent;
}

.nav-icon img {
  width: 11px;
}

.settings-dot {
  margin-left: auto;
}

.settings-dot img {
  width: 22px;
}

.is-hidden {
  visibility: hidden;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
}

.lang-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 76px;
  padding: 3px;
  border: 1px solid rgba(151, 159, 190, 0.22);
  border-radius: 16px;
  background: rgba(14, 20, 41, 0.7);
}

.lang-switch button {
  height: 28px;
  border-radius: 13px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.lang-switch .active {
  background: var(--red);
  color: var(--white);
}

.home-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.home-title b {
  display: inline-grid;
  min-width: 46px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 14px;
  color: var(--blue);
  font-size: 11px;
}

.mode-section-list {
  display: grid;
  gap: 10px;
  padding: 8px 0 28px;
}

.mode-section-card {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border-radius: 19px;
  background: var(--card-blue);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.mode-section-card.is-full {
  min-height: 148px;
}

.mode-section-bg,
.mode-section-shade {
  position: absolute;
  inset: 0;
}

.mode-section-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mode-section-shade {
  background:
    linear-gradient(90deg, rgba(9, 14, 33, 0.94) 0%, rgba(16, 23, 46, 0.78) 47%, rgba(16, 23, 46, 0.2) 100%),
    linear-gradient(180deg, rgba(21, 28, 53, 0.04), rgba(9, 14, 33, 0.52));
}

.gradient-blue .mode-section-shade {
  background:
    linear-gradient(90deg, rgba(9, 14, 33, 0.95) 0%, rgba(14, 33, 64, 0.8) 48%, rgba(15, 154, 240, 0.22) 100%),
    linear-gradient(180deg, rgba(15, 154, 240, 0.08), rgba(9, 14, 33, 0.58));
}

.gradient-hot .mode-section-shade {
  background:
    linear-gradient(90deg, rgba(9, 14, 33, 0.95) 0%, rgba(63, 24, 50, 0.76) 50%, rgba(236, 73, 79, 0.16) 100%),
    linear-gradient(180deg, rgba(236, 73, 79, 0.06), rgba(9, 14, 33, 0.58));
}

.gradient-neutral .mode-section-shade {
  background:
    linear-gradient(90deg, rgba(9, 14, 33, 0.96) 0%, rgba(30, 38, 67, 0.9) 52%, rgba(30, 38, 67, 0.34) 100%),
    linear-gradient(180deg, rgba(151, 159, 190, 0.08), rgba(9, 14, 33, 0.58));
}

.mode-section-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: inherit;
  align-content: center;
  gap: 7px;
  width: 64%;
  padding: 18px 0 18px 22px;
}

.mode-section-title {
  color: var(--red);
  font-family: "Museo", sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.08;
}

.gradient-blue .mode-section-title {
  color: var(--blue);
}

.mode-section-online,
.mode-section-subtitle {
  display: -webkit-box;
  overflow: hidden;
  color: var(--white);
  font-family: "Museo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.18;
  -webkit-box-orient: vertical;
}

.mode-section-online {
  color: rgba(255, 255, 255, 0.76);
  -webkit-line-clamp: 1;
}

.mode-section-subtitle {
  -webkit-line-clamp: 2;
}

.mode-section-card.is-full .mode-section-subtitle {
  -webkit-line-clamp: 3;
}

.mode-section-card.is-compact .mode-section-copy {
  width: 74%;
  padding: 14px 0 14px 20px;
}

.mode-section-card.is-compact .mode-section-title {
  font-size: 15px;
}

.mode-counters {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 7px;
}

.mode-counters span {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid rgba(15, 154, 240, 0.84);
  border-radius: 13px;
  background: rgba(9, 14, 33, 0.7);
  color: var(--white);
  font-family: "Museo", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.mode-section-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  height: 30px;
  min-width: 48px;
  place-items: center;
  border: 2px solid var(--red-hot);
  border-radius: 15px;
  background: rgba(9, 14, 33, 0.76);
  color: var(--red-hot);
  font-family: "Museo", sans-serif;
  font-size: 10px;
  font-weight: 900;
}

.regime-list {
  display: grid;
  gap: 8px;
  padding: 4px 0 24px;
}

.regime-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 108px;
  padding: 8px 16px 8px 49px;
  background: transparent;
  text-align: left;
}

.regime-card::before {
  position: absolute;
  inset: 8px 16px 8px 49px;
  z-index: 0;
  border-radius: 16px;
  background: var(--card-blue);
  content: "";
}

.regime-image {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--dark);
}

.regime-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lock-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.54);
}

.lock-layer img {
  width: 22px;
}

.regime-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
}

.regime-title {
  overflow: hidden;
  color: var(--red);
  font-family: "Museo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.regime-description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: var(--white);
  font-family: "Museo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.regime-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 25px;
  display: grid;
  min-width: 52px;
  min-height: 30px;
  place-items: center;
  padding: 5px 10px;
  border: 2px solid var(--red-hot);
  border-radius: 15px;
  background: var(--dark-blue);
  color: var(--red-hot);
  font-size: 10px;
  font-weight: 700;
}

.regime-card.is-locked .regime-title,
.regime-card.is-locked .regime-description {
  opacity: 0.65;
}

.selected-mode {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 8px 0 16px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--card-blue);
}

.selected-mode img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
}

.selected-mode strong {
  display: block;
  overflow: hidden;
  color: var(--red);
  font-family: "Museo", sans-serif;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-mode span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.online-screen {
  display: flex;
  min-height: calc(100svh - max(env(safe-area-inset-top), 14px));
  flex-direction: column;
}

.online-content {
  display: grid;
  flex: 1;
  padding: 8px 0 12px;
}

.online-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 0;
}

.online-status-pill {
  display: inline-grid;
  min-width: 54px;
  min-height: 26px;
  align-items: center;
  justify-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.online-status-pill.ready {
  background: rgba(27, 195, 118, 0.2);
  color: #58eaa2;
}

.online-state-panel {
  justify-items: center;
  padding: 30px 20px;
  text-align: center;
}

.online-state-panel strong {
  font-family: "Museo", sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.online-state-panel span {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-panel {
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 10px 8px 26px;
}

.auth-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 4px 0 2px;
  text-align: center;
}

.auth-hero strong {
  font-family: "Museo", sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.auth-avatar {
  width: 92px;
  height: 92px;
  border-radius: 28px;
}

.auth-avatar img {
  width: 46px;
  height: 46px;
}

.auth-segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  padding: 4px;
  border-radius: 18px;
  background: rgba(9, 14, 33, 0.72);
}

.auth-segments button {
  min-width: 0;
  min-height: 40px;
  border-radius: 15px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 900;
}

.auth-segments .active {
  background: var(--red);
  color: var(--white);
}

.auth-form {
  display: grid;
  width: 100%;
  gap: 10px;
}

.auth-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 15px;
  background: var(--card-blue);
}

.auth-field span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.auth-error {
  min-height: 34px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(226, 68, 88, 0.14);
  color: #ff9aa4;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
}

.auth-submit:disabled,
.auth-provider:disabled,
.auth-session:disabled,
.auth-guest:disabled,
.danger-action:disabled {
  cursor: default;
  opacity: 0.58;
}

.auth-provider {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
  text-align: left;
}

.auth-provider img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.auth-provider span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-guest {
  margin-top: 2px;
}

.auth-session {
  width: 100%;
  min-height: 50px;
  border-radius: 25px;
}

.roulette-panel {
  justify-items: center;
  text-align: center;
}

.roulette-clock {
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border-radius: 50%;
  background: rgba(226, 68, 88, 0.08);
  box-shadow: 0 -2px 50px rgba(226, 68, 88, 0.32);
}

.roulette-clock img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.roulette-clock.is-pulsing {
  animation: pulseGlow 1.35s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 -2px 42px rgba(226, 68, 88, 0.24);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 -2px 58px rgba(226, 68, 88, 0.48);
    transform: scale(1.04);
  }
}

.roulette-copy {
  display: grid;
  gap: 8px;
}

.roulette-copy span,
.gender-select-card > span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.roulette-copy strong {
  color: var(--red);
  font-family: "Museo", sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.online-action {
  min-width: 250px;
}

.online-action-row {
  display: grid;
  width: min(100%, 280px);
  gap: 10px;
}

.gender-select-card {
  display: grid;
  width: 100%;
  gap: 8px;
  padding: 0 10px;
  text-align: left;
}

.gender-select-card button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--card-blue);
}

.gender-choice-grid {
  display: grid;
  gap: 8px;
}

.gender-choice-grid button.active {
  outline: 2px solid var(--red);
  background: rgba(226, 68, 88, 0.16);
}

.gender-select-card img {
  width: 26px;
  height: 30px;
  object-fit: contain;
}

.gender-select-card strong {
  overflow: hidden;
  font-family: "Museo", sans-serif;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-action {
  justify-self: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.search-panel {
  align-content: start;
  padding-top: 6px;
}

.incoming-strip {
  display: grid;
  gap: 8px;
  padding: 0 12px;
}

.incoming-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 44px 44px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(18, 23, 44, 0.96);
}

.incoming-card img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.incoming-card span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incoming-card button {
  min-height: 30px;
  border-radius: 15px;
  background: rgba(15, 154, 240, 0.24);
  font-size: 12px;
  font-weight: 900;
}

.search-stack {
  position: relative;
  min-height: 392px;
  padding: 12px 16px 0;
}

.search-card {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 360px;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 28px 24px;
  border: 2px solid rgba(204, 56, 105, 0.84);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(30, 38, 67, 0.98), rgba(9, 14, 33, 0.98)),
    var(--card-blue);
  text-align: center;
}

.search-card.back {
  position: absolute;
  z-index: 0;
  inset: 0 34px 24px;
  min-height: auto;
  border-color: rgba(69, 84, 172, 0.45);
  opacity: 0.6;
  transform: rotate(-3deg);
}

.search-card.back.second {
  inset: 12px 42px 14px;
  border-color: rgba(15, 154, 240, 0.38);
  opacity: 0.42;
  transform: rotate(3deg);
}

.search-card.is-incoming {
  border-color: rgba(15, 154, 240, 0.86);
}

.avatar-placeholder {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(15, 154, 240, 0.22), rgba(226, 68, 88, 0.16));
}

.avatar-placeholder img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.search-card strong {
  font-family: "Museo", sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.search-card span {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.28;
  white-space: pre-line;
}

.bot-badge {
  min-height: 24px;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(15, 154, 240, 0.18);
  color: #82cfff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-card button {
  min-width: 150px;
  min-height: 48px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--red), var(--rose));
  font-family: "Museo", sans-serif;
  font-weight: 900;
}

.search-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.search-actions .ghost,
.chat-task-actions .ghost {
  background: rgba(255, 255, 255, 0.1);
}

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

.candidate-chip {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 80px;
  padding: 8px 6px;
  border-radius: 14px;
  background: rgba(18, 23, 44, 0.88);
}

.candidate-chip img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.candidate-chip span {
  overflow: hidden;
  max-width: 100%;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-game-menu {
  display: grid;
  overflow: hidden;
  margin: 0 34px;
  border-radius: 14px;
  background: #12172c;
}

.chat-game-menu span {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.chat-game-menu span:last-child {
  border-bottom: 0;
}

.chat-game-menu .selected {
  color: var(--red);
}

.chats-panel,
.profile-panel {
  justify-items: center;
  padding: 12px 18px 24px;
  text-align: center;
}

.chats-panel.live {
  align-content: start;
  justify-items: stretch;
  padding-inline: 4px;
  text-align: left;
}

.chats-panel > img {
  width: min(76%, 260px);
  max-height: 210px;
}

.chats-panel > strong,
.profile-panel > strong {
  font-family: "Museo", sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.chat-preview-list {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: 6px;
}

.chat-preview-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--card-blue);
  text-align: left;
}

.chat-preview-list img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.chat-preview-list span {
  overflow: hidden;
  font-family: "Museo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-list-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(116px, 42%);
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.chat-list-strip::-webkit-scrollbar {
  display: none;
}

.chat-list-strip button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--card-blue);
}

.chat-list-strip button.active {
  outline: 2px solid rgba(15, 154, 240, 0.74);
}

.chat-list-strip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.chat-list-strip span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-live-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(18, 23, 44, 0.96);
}

.chat-live-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.chat-live-head strong {
  overflow: hidden;
  font-family: "Museo", sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-live-head span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-task-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(9, 14, 33, 0.74);
}

.chat-task-head,
.chat-game-segments,
.chat-task-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chat-task-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.chat-task-head button,
.chat-game-segments button,
.chat-task-actions button {
  min-height: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.chat-task-head button.active,
.chat-game-segments button.active {
  background: rgba(226, 68, 88, 0.22);
  color: var(--red);
}

.chat-task-head span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-game-segments {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chat-task-text {
  max-height: 92px;
  overflow-y: auto;
  color: var(--white);
  font-size: 14px;
  line-height: 1.35;
}

.message-list {
  display: grid;
  align-content: end;
  gap: 7px;
  min-height: 134px;
  max-height: 210px;
  overflow-y: auto;
  padding: 4px 0;
}

.message-bubble {
  justify-self: start;
  max-width: 82%;
  padding: 8px 10px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 14px;
  line-height: 1.25;
}

.message-bubble.mine {
  justify-self: end;
  border-radius: 14px 14px 4px;
  background: rgba(15, 154, 240, 0.28);
}

.message-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
}

.message-composer input {
  min-width: 0;
  height: 42px;
  border: 0;
  border-radius: 21px;
  outline: 0;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--white);
}

.message-composer button {
  min-height: 42px;
  border-radius: 21px;
  background: linear-gradient(180deg, var(--blue), #1976d2);
  font-weight: 900;
}

.profile-avatar {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 3px solid rgba(15, 154, 240, 0.7);
  border-radius: 34px;
  background: var(--card-blue);
}

.profile-avatar img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.profile-avatar.error {
  border-color: rgba(226, 68, 88, 0.64);
}

.profile-avatar.error img {
  width: 34px;
  height: 34px;
}

.profile-panel > span {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.3;
}

.profile-action {
  width: min(100%, 260px);
  margin-top: 10px;
}

.danger-action {
  background: rgba(226, 68, 88, 0.12);
  color: #ff8c99;
}

.profile-stats {
  display: grid;
  width: min(100%, 260px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-stats span {
  overflow: hidden;
  min-height: 34px;
  padding: 8px 6px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-tabbar {
  position: sticky;
  bottom: max(0px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: auto -16px calc(-1 * max(24px, env(safe-area-inset-bottom)));
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  background: var(--dark-blue);
  box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.18);
}

.online-tabbar button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 5px 3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 700;
}

.online-tabbar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.58;
}

.online-tabbar span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-tabbar .active {
  color: var(--white);
}

.online-tabbar .active img {
  opacity: 1;
}

.online-tabbar button:focus-visible {
  border-radius: 12px;
}

.players-list {
  display: grid;
  gap: 7px;
}

.player-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 56px;
  align-items: center;
  height: 56px;
  border-radius: 10px;
  background: var(--row-blue);
}

.gender-button {
  position: relative;
  width: 48px;
  height: 48px;
  margin-left: 4px;
  background: transparent;
}

.gender-bg {
  position: absolute;
  inset: 4px;
  width: 40px;
  height: 40px;
}

.gender-sign {
  position: absolute;
  top: 11px;
  left: 14px;
  width: 20px;
  height: 26px;
  object-fit: contain;
}

.player-row input {
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.player-row input::placeholder {
  color: var(--text-dim);
}

.remove-button {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: transparent;
}

.remove-button img {
  width: 13px;
}

.secondary-action,
.random-action,
.done-action {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 3px solid var(--rose);
  border-radius: 29px;
  background: var(--dark);
  color: var(--white);
  font-family: "Museo", sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.secondary-action {
  width: 100%;
  margin-top: 16px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.switch-row input {
  width: 48px;
  height: 28px;
  accent-color: var(--red);
}

.bottom-action {
  position: sticky;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding-top: 18px;
  background: linear-gradient(180deg, rgba(21, 28, 53, 0), var(--dark-blue) 38%);
}

.primary-action {
  display: inline-flex;
  min-width: 208px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 29px;
  background: var(--red);
  box-shadow: 0 5px 20px -5px var(--red);
  color: var(--white);
  font-family: "Museo", sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.play-arrow {
  font-size: 13px;
}

.game-screen {
  display: flex;
  min-height: calc(100svh - max(env(safe-area-inset-top), 14px));
  flex-direction: column;
}

.passion-panel {
  display: grid;
  gap: 8px;
  margin: 2px 0 10px;
}

.passion-panel > span {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.passion-segments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 46px;
  padding: 3px;
  border: 2px solid rgba(96, 101, 118, 0.7);
  border-radius: 24px;
}

.passion-segments button {
  border-radius: 21px;
  background: transparent;
  color: rgba(96, 101, 118, 0.9);
  font-weight: 700;
}

.passion-segments .active {
  background: var(--red);
  color: var(--white);
}

.game-card-stack {
  display: grid;
  flex: 1;
  align-items: center;
  padding: 6px 16px 10px;
}

.game-card {
  position: relative;
  width: 100%;
  min-height: min(540px, calc(100svh - 238px));
  border: 3px solid transparent;
  border-radius: 32px;
  background:
    linear-gradient(var(--dark), var(--dark)) padding-box,
    linear-gradient(180deg, rgba(204, 56, 105, 0.95), rgba(69, 84, 172, 0.24)) border-box;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

.select-card {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding: 0 16px 0;
}

.turn-copy {
  display: grid;
  align-content: end;
  justify-items: center;
  padding-bottom: 28px;
  text-align: center;
}

.turn-copy strong {
  max-width: 100%;
  overflow: hidden;
  font-family: "Museo", sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.turn-copy span {
  margin-top: 4px;
  font-family: "Museo", sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.choice-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 60px;
}

.choice-button {
  border-radius: 25px;
  background: linear-gradient(180deg, var(--red), var(--rose));
  box-shadow: 0 7px 19px rgba(226, 68, 88, 0.3);
  color: var(--white);
  font-family: "Museo", sans-serif;
  font-weight: 900;
}

.choice-button:disabled,
.random-action:disabled {
  opacity: 0.72;
}

.random-line {
  position: relative;
  display: grid;
  min-height: 155px;
  place-items: center;
}

.line-full {
  width: min(100%, 289px);
}

.line-part {
  position: absolute;
  top: calc(50% - 18px);
  left: 50%;
  width: min(50%, 145px);
  transform: translateX(-50%);
}

.line-arrow {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 88px;
  transform: translateX(-50%);
}

.line-arrow.spinning {
  animation: arrow-pick 0.75s ease-in-out infinite alternate;
}

.random-action {
  position: absolute;
  right: 15%;
  bottom: -32px;
  left: 15%;
}

.task-card {
  display: grid;
  grid-template-rows: 1fr auto auto;
  overflow: hidden;
  padding: 34px 20px 18px;
}

.task-accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 80px;
  background: linear-gradient(90deg, var(--red-hot), transparent 76%);
  opacity: 0.92;
}

.task-card p {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 0;
  color: var(--white);
  font-family: "Museo", sans-serif;
  font-size: clamp(18px, 5vw, 21px);
  font-weight: 700;
  line-height: 1.38;
  text-align: center;
  white-space: pre-line;
}

.done-action {
  width: min(72%, 240px);
  margin: 28px auto 12px;
}

.task-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tool-button {
  display: grid;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--card-blue);
}

.tool-button:nth-child(-n + 2) {
  background: var(--dark);
  box-shadow: -4px -4px 10px var(--blue-shadow);
}

.tool-button img {
  width: 24px;
  max-height: 25px;
  object-fit: contain;
}

.premium-strip {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 62px;
  margin: 0 16px 8px;
  padding: 10px 16px;
  border: 2px solid rgba(15, 154, 240, 0.17);
  border-radius: 11px;
  background: var(--card-blue);
}

.premium-strip img {
  width: 40px;
}

.premium-strip span {
  color: var(--blue);
  font-family: "Museo", sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 16px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 16px;
  width: min(398px, calc(100% - 32px));
  margin: 0 auto;
  padding: 13px 15px;
  border: 1px solid rgba(226, 68, 88, 0.38);
  border-radius: 16px;
  background: rgba(14, 20, 41, 0.96);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  color: var(--white);
  font-size: 14px;
  line-height: 1.32;
  text-align: center;
}

@keyframes arrow-pick {
  from {
    transform: translateX(-62%) rotate(-12deg);
  }
  to {
    transform: translateX(-38%) rotate(12deg);
  }
}

@media (max-height: 700px) {
  .game-card {
    min-height: 410px;
  }

  .random-line {
    min-height: 122px;
  }

  .premium-strip {
    min-height: 56px;
  }
}

@media (min-width: 700px) {
  .app-shell {
    display: grid;
    place-items: start center;
  }

  .screen {
    min-height: 860px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
  }
}
