:root {
  --bg: #07110e;
  --bg-deep: #020504;
  --panel: rgba(7, 22, 17, 0.8);
  --panel-border: rgba(129, 255, 184, 0.22);
  --text: #f5fff7;
  --muted: #91b19d;
  --accent: #67f5a4;
  --accent-strong: #21cf7a;
  --danger: #ff7e7e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(69, 255, 154, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(27, 167, 95, 0.18), transparent 35%),
    linear-gradient(145deg, #0a1612 0%, var(--bg-deep) 65%, #040806 100%);
}

body.admin-mode {
  background:
    radial-gradient(circle at top, rgba(87, 124, 255, 0.16), transparent 26%),
    radial-gradient(circle at left, rgba(45, 75, 155, 0.2), transparent 34%),
    linear-gradient(180deg, #081120 0%, #060d1a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(103, 245, 164, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 245, 164, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
  pointer-events: none;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.view-panel {
  animation: panel-enter 320ms ease;
}

.login-card,
.menu-shell {
  position: relative;
  width: min(100%, 460px);
  padding: 32px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9, 28, 21, 0.94), rgba(5, 15, 12, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.menu-shell {
  width: min(100%, 1080px);
}

.admin-auth-shell,
.admin-panel-shell {
  position: relative;
  width: min(100%, 1540px);
  padding: 0;
  border: 1px solid rgba(132, 156, 197, 0.16);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(18, 29, 53, 0.98), rgba(8, 17, 34, 0.99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.admin-auth-shell {
  width: min(100%, 560px);
}

.aviator-shell {
  position: relative;
  width: min(100%, 1240px);
  padding: 32px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9, 28, 21, 0.94), rgba(5, 15, 12, 0.97));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-card__glow {
  position: absolute;
  inset: -120px auto auto 55%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(103, 245, 164, 0.25);
  filter: blur(60px);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-form {
  position: relative;
  z-index: 1;
}

.field-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #dfffee;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.admin-field-gap {
  margin-top: 18px;
}

.input-shell {
  position: relative;
  border-radius: 18px;
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.id-input {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(103, 245, 164, 0.24);
  border-radius: 18px;
  background: rgba(1, 8, 6, 0.72);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.id-input::placeholder {
  color: rgba(145, 177, 157, 0.5);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.id-input:focus {
  border-color: rgba(103, 245, 164, 0.9);
  box-shadow: 0 0 0 4px rgba(103, 245, 164, 0.12);
  transform: translateY(-1px);
}

.input-shell.is-invalid .id-input {
  border-color: rgba(255, 126, 126, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 126, 126, 0.1);
}

.input-shell.is-valid .id-input {
  border-color: rgba(103, 245, 164, 0.95);
  box-shadow: 0 0 0 4px rgba(103, 245, 164, 0.12);
}

.input-error {
  margin: 10px 0 0;
  min-height: 1.35em;
  font-size: 0.92rem;
}

.input-error {
  color: var(--danger);
}

.submit-button {
  width: 100%;
  margin-top: 22px;
  border: 0;
  border-radius: 18px;
  padding: 17px 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #042012;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(33, 207, 122, 0.24);
}

.submit-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.pwa-install-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(103, 245, 164, 0.18);
  border-radius: 16px;
  background: rgba(1, 8, 6, 0.48);
}

.pwa-install-panel__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(103, 245, 164, 0.12);
  overflow: hidden;
}

.pwa-install-panel__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-install-panel__copy {
  min-width: 0;
}

.pwa-install-panel__title {
  display: block;
  color: #f5fff7;
  font-size: 0.96rem;
  line-height: 1.25;
}

.pwa-install-panel__text {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.pwa-install-button {
  grid-column: 1 / -1;
  width: 100%;
  border: 1px solid rgba(103, 245, 164, 0.32);
  border-radius: 8px;
  padding: 11px 14px;
  background: rgba(103, 245, 164, 0.1);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.pwa-install-button:hover {
  border-color: rgba(103, 245, 164, 0.7);
  background: rgba(103, 245, 164, 0.16);
  transform: translateY(-1px);
}

.pwa-install-panel.is-ios .pwa-install-button {
  display: none;
}

.status-panel {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(103, 245, 164, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.95rem;
}

.status-panel:empty {
  display: none;
}

.admin-title {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.admin-subtitle {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: #93a2c0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.admin-login-form,
.admin-content-form {
  position: relative;
  z-index: 1;
}

.admin-auth-shell {
  padding: 36px;
  background:
    radial-gradient(circle at top right, rgba(78, 124, 255, 0.24), transparent 30%),
    radial-gradient(circle at bottom left, rgba(56, 86, 169, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(18, 29, 53, 0.98), rgba(8, 17, 34, 0.99));
}

.admin-auth-shell__noise,
.admin-panel-shell__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.admin-auth-shell__orb {
  position: absolute;
  right: -60px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(93, 140, 255, 0.28);
  filter: blur(50px);
}

.admin-auth-kicker,
.admin-section-kicker {
  margin: 0 0 12px;
  color: #7ca0ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-auth-input,
.admin-panel-input {
  border-color: rgba(125, 158, 223, 0.16);
  background: rgba(12, 21, 40, 0.88);
  color: #f3f7ff;
}

.admin-auth-input::placeholder,
.admin-panel-input::placeholder {
  color: rgba(146, 163, 195, 0.58);
}

.admin-panel-shell {
  padding: 28px;
}

.admin-panel__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 24px;
  margin-bottom: 0;
}

.admin-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-header-button {
  min-width: 112px;
  margin-bottom: 0;
}

.admin-header-button.is-active {
  border-color: rgba(103, 245, 164, 0.62);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(103, 245, 164, 0.08);
}

.admin-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 340px;
  gap: 18px;
}

.admin-sidebar,
.admin-main,
.admin-inspector {
  min-width: 0;
}

.admin-sidebar,
.admin-inspector {
  display: grid;
  gap: 18px;
  align-content: start;
}

.admin-main {
  display: grid;
  gap: 18px;
}

.admin-sidebar__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-section-kicker--sidebar {
  margin: 0;
}

.admin-card {
  padding: 22px;
  border: 1px solid rgba(120, 146, 195, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 35, 62, 0.94), rgba(11, 22, 42, 0.98));
  backdrop-filter: blur(14px);
}

.admin-main-card,
.admin-inspector-card,
.admin-sidebar {
  border: 1px solid rgba(120, 146, 195, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 35, 62, 0.94), rgba(11, 22, 42, 0.98));
}

.admin-sidebar {
  padding: 22px;
}

.admin-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-card__head--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.admin-card__eyebrow {
  margin-bottom: 10px;
}

.admin-section-title {
  margin: 0;
  color: #f4f7ff;
  font-family: "Poppins", sans-serif;
  font-size: 1.28rem;
}

.admin-card__text {
  margin: 0;
  color: #8ea0c2;
  line-height: 1.6;
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(126, 156, 214, 0.18);
  border-radius: 16px;
  background: rgba(18, 30, 55, 0.9);
  color: #e4ebff;
  font-size: 0.92rem;
}

.admin-switch input {
  width: 18px;
  height: 18px;
  accent-color: #5d8cff;
}

.admin-text-input {
  letter-spacing: 0.04em;
}

.admin-search-shell {
  margin-bottom: 12px;
}

.admin-search-input {
  padding: 12px 14px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.admin-player-list {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 0;
  max-height: 760px;
  overflow: auto;
  padding-right: 2px;
}

.admin-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(120, 146, 195, 0.08);
  border-radius: 10px;
  background: rgba(13, 23, 43, 0.78);
  color: #f4f7ff;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
  text-align: left;
}

.admin-player-row:hover,
.admin-player-row.is-selected {
  border-color: rgba(103, 140, 255, 0.26);
  background: rgba(22, 34, 58, 0.92);
}

.admin-player-row__main {
  min-width: 0;
}

.admin-player-row__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
}

.admin-player-row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: #8ea0c2;
  font-size: 0.74rem;
  flex-wrap: wrap;
}

.admin-player-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
}

.admin-player-status-dot.is-active {
  background: #45c983;
  box-shadow: 0 0 0 4px rgba(69, 201, 131, 0.16);
}

.admin-player-status-dot.is-inactive {
  background: #ff7e7e;
  box-shadow: 0 0 0 4px rgba(255, 126, 126, 0.12);
}

.admin-player-row__gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(120, 146, 195, 0.1);
  background: rgba(18, 29, 51, 0.75);
  color: #aebee0;
  font-size: 0.82rem;
}

.admin-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(125, 164, 255, 0.15);
  color: #cfe0ff;
  font-weight: 800;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.admin-pill.is-active {
  background: rgba(69, 201, 131, 0.12);
  border-color: rgba(69, 201, 131, 0.2);
  color: #9cf0c0;
}

.admin-pill.is-inactive {
  background: rgba(255, 126, 126, 0.12);
  border-color: rgba(255, 126, 126, 0.18);
  color: #ffd1d1;
}

.admin-pill.is-game-on {
  background: rgba(93, 140, 255, 0.16);
  border-color: rgba(93, 140, 255, 0.24);
  color: #cddcff;
}

.admin-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-action-button {
  border: 1px solid rgba(120, 146, 195, 0.2);
  border-radius: 12px;
  background: rgba(20, 32, 58, 0.92);
  color: #f2f6ff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 92px;
}

.admin-action-button:disabled,
.admin-primary-button:disabled,
.admin-secondary-button:disabled,
.admin-danger-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-action-button--danger {
  border-color: rgba(255, 126, 126, 0.2);
  color: #ffd1d1;
}

.admin-save-note {
  margin: 14px 0 0;
  min-height: 1.4em;
  color: #8ea0c2;
}

.admin-main__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stat-box {
  padding: 16px;
  border: 1px solid rgba(120, 146, 195, 0.12);
  border-radius: 18px;
  background: rgba(16, 27, 49, 0.82);
}

.admin-stat-box__label {
  display: block;
  margin-bottom: 10px;
  color: #8ea0c2;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-stat-box__value {
  color: #f4f7ff;
  font-size: 1.08rem;
}

.admin-action-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-primary-button,
.admin-secondary-button,
.admin-danger-button {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 800;
  cursor: pointer;
}

.admin-primary-button {
  background: linear-gradient(135deg, #7da4ff 0%, #4d72e5 100%);
  color: #081327;
}

.admin-secondary-button {
  background: rgba(24, 39, 70, 0.98);
  color: #d9e5ff;
  border: 1px solid rgba(120, 146, 195, 0.16);
}

.admin-danger-button {
  background: rgba(137, 37, 57, 0.26);
  color: #ffd0d7;
  border: 1px solid rgba(255, 126, 126, 0.18);
}

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

.admin-game-card {
  padding: 16px;
  border: 1px solid rgba(120, 146, 195, 0.12);
  border-radius: 18px;
  background: rgba(16, 27, 49, 0.84);
}

.admin-game-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-game-card__title {
  margin: 0 0 6px;
  color: #f4f7ff;
  font-size: 1rem;
  font-weight: 800;
}

.admin-game-card__text {
  margin: 0;
  color: #8ea0c2;
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-game-card__button {
  width: 100%;
  margin-top: 14px;
}

.admin-inspector__list,
.admin-opened-games {
  display: grid;
  gap: 12px;
}

.admin-info-item,
.admin-opened-game {
  padding: 14px 16px;
  border: 1px solid rgba(120, 146, 195, 0.12);
  border-radius: 18px;
  background: rgba(16, 27, 49, 0.82);
}

.admin-info-item__label {
  display: block;
  margin-bottom: 8px;
  color: #8ea0c2;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-info-item__value,
.admin-opened-game__name {
  color: #f4f7ff;
  font-weight: 700;
}

.admin-opened-game__meta {
  margin-top: 8px;
  color: #8ea0c2;
  font-size: 0.9rem;
}

.admin-empty-state {
  padding: 18px;
  border: 1px dashed rgba(120, 146, 195, 0.18);
  border-radius: 18px;
  color: #8ea0c2;
  text-align: center;
}

.admin-save-button,
.admin-logout-button {
  margin-top: 0;
}

.admin-webhook-shell {
  position: relative;
  z-index: 1;
}

.admin-webhook-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 12px;
  margin-bottom: 18px;
}

.admin-webhook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 18px;
  margin-bottom: 20px;
}

.admin-webhook-card {
  padding: 18px;
  border: 1px solid rgba(120, 146, 195, 0.12);
  border-radius: 18px;
  background: rgba(16, 27, 49, 0.84);
}

.admin-webhook-url-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-webhook-url {
  display: block;
  flex: 1 1 360px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(11, 21, 39, 0.88);
  border: 1px solid rgba(120, 146, 195, 0.12);
  color: #dfe9ff;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.admin-webhook-code {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(11, 21, 39, 0.88);
  border: 1px solid rgba(120, 146, 195, 0.12);
  color: #dfe9ff;
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-webhook-table {
  display: grid;
  gap: 12px;
}

.admin-webhook-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(120, 146, 195, 0.12);
  background: rgba(16, 27, 49, 0.84);
}

.admin-webhook-cell {
  min-width: 0;
}

.admin-webhook-cell__label {
  display: block;
  margin-bottom: 8px;
  color: #8ea0c2;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-webhook-cell__value {
  color: #f4f7ff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-push-form {
  margin: 6px 0 24px;
  padding: 18px;
  border: 1px solid rgba(120, 146, 195, 0.12);
  border-radius: 18px;
  background: rgba(11, 21, 39, 0.48);
}

.admin-push-textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.45;
  letter-spacing: 0;
  font-family: "Manrope", sans-serif;
}

.admin-push-submit {
  width: 100%;
  margin-top: 12px;
}

.admin-push-clicks-head {
  margin-top: 24px;
}

body.admin-mode {
  background: #0b0f14;
}

body.admin-mode::before {
  opacity: 0;
}

body.admin-mode .page-shell {
  align-items: start;
  place-items: start center;
  padding: 20px;
}

body.admin-mode .admin-auth-shell,
body.admin-mode .admin-panel-shell {
  border: 1px solid #26313d;
  border-radius: 8px;
  background: #0f151c;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

body.admin-mode .admin-auth-shell {
  padding: 32px;
}

body.admin-mode .admin-auth-shell__noise,
body.admin-mode .admin-panel-shell__grid,
body.admin-mode .admin-auth-shell__orb {
  display: none;
}

body.admin-mode .admin-panel-shell {
  width: min(100%, 1680px);
  min-height: calc(100vh - 40px);
  padding: 0;
}

body.admin-mode .admin-panel__header {
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #25313d;
  background: #111923;
}

body.admin-mode .admin-auth-kicker,
body.admin-mode .admin-section-kicker {
  margin-bottom: 8px;
  color: #8391a3;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.admin-mode .admin-title {
  margin: 0;
  color: #f4f7fb;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 800;
}

body.admin-mode .admin-subtitle,
body.admin-mode .admin-card__text {
  color: #93a0af;
}

body.admin-mode .admin-panel__actions {
  padding: 4px;
  gap: 4px;
  border: 1px solid #2a3643;
  border-radius: 8px;
  background: #0c1219;
}

body.admin-mode .admin-header-button,
body.admin-mode .admin-logout-button {
  min-width: auto;
  margin: 0;
  padding: 9px 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9daaba;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 800;
}

body.admin-mode .admin-header-button:hover,
body.admin-mode .admin-logout-button:hover,
body.admin-mode .admin-header-button.is-active {
  background: #1c2733;
  color: #f4f7fb;
}

body.admin-mode .admin-logout-button {
  color: #f29b9b;
}

body.admin-mode .admin-workspace {
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 0;
}

body.admin-mode .admin-sidebar,
body.admin-mode .admin-main,
body.admin-mode .admin-inspector,
body.admin-mode .admin-webhook-shell {
  padding: 20px;
}

body.admin-mode .admin-sidebar {
  border: 0;
  border-right: 1px solid #25313d;
  border-radius: 0;
  background: #0c1219;
}

body.admin-mode .admin-main {
  background: #0f151c;
}

body.admin-mode .admin-inspector {
  border-left: 1px solid #25313d;
  background: #0c1219;
}

body.admin-mode .admin-card,
body.admin-mode .admin-main-card,
body.admin-mode .admin-inspector-card,
body.admin-mode .admin-webhook-card,
body.admin-mode .admin-game-card,
body.admin-mode .admin-stat-box,
body.admin-mode .admin-info-item,
body.admin-mode .admin-opened-game,
body.admin-mode .admin-push-form,
body.admin-mode .admin-webhook-row {
  border: 1px solid #273340;
  border-radius: 8px;
  background: #141c25;
  box-shadow: none;
  backdrop-filter: none;
}

body.admin-mode .admin-card,
body.admin-mode .admin-main-card,
body.admin-mode .admin-inspector-card {
  padding: 18px;
}

body.admin-mode .admin-card__head {
  padding-bottom: 12px;
  border-bottom: 1px solid #26313d;
}

body.admin-mode .admin-card__head--stacked {
  gap: 4px;
}

body.admin-mode .admin-section-title {
  color: #f4f7fb;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

body.admin-mode .admin-counter {
  height: 32px;
  min-width: 36px;
  border-radius: 6px;
  background: #1f2b38;
  color: #d7dee8;
}

body.admin-mode .admin-auth-input,
body.admin-mode .admin-panel-input,
body.admin-mode .admin-webhook-url,
body.admin-mode .admin-webhook-code {
  border-color: #2c3947;
  border-radius: 6px;
  background: #0c1219;
  color: #e5eaf1;
  box-shadow: none;
}

body.admin-mode .admin-panel-input:focus,
body.admin-mode .admin-auth-input:focus {
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18);
  transform: none;
}

body.admin-mode .admin-player-list {
  gap: 4px;
}

body.admin-mode .admin-player-row {
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  color: #e5eaf1;
}

body.admin-mode .admin-player-row:hover,
body.admin-mode .admin-player-row.is-selected {
  border-color: #2d3a48;
  background: #151e28;
}

body.admin-mode .admin-player-row__gear {
  border: 0;
  background: transparent;
  color: #64748b;
}

body.admin-mode .admin-main__stats,
body.admin-mode .admin-games-grid,
body.admin-mode .admin-webhook-grid,
body.admin-mode .admin-webhook-layout,
body.admin-mode .admin-webhook-table,
body.admin-mode .admin-inspector__list,
body.admin-mode .admin-opened-games {
  gap: 10px;
}

body.admin-mode .admin-stat-box,
body.admin-mode .admin-info-item,
body.admin-mode .admin-opened-game,
body.admin-mode .admin-webhook-card,
body.admin-mode .admin-game-card {
  padding: 14px;
}

body.admin-mode .admin-stat-box__label,
body.admin-mode .admin-info-item__label,
body.admin-mode .admin-webhook-cell__label {
  color: #7f8b99;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

body.admin-mode .admin-stat-box__value,
body.admin-mode .admin-info-item__value,
body.admin-mode .admin-opened-game__name,
body.admin-mode .admin-webhook-cell__value {
  color: #e7edf5;
}

body.admin-mode .admin-action-button,
body.admin-mode .admin-primary-button,
body.admin-mode .admin-secondary-button,
body.admin-mode .admin-danger-button {
  border-radius: 6px;
  box-shadow: none;
}

body.admin-mode .admin-primary-button {
  background: #e5eaf1;
  color: #0f151c;
}

body.admin-mode .admin-secondary-button,
body.admin-mode .admin-action-button {
  border: 1px solid #344252;
  background: #18222e;
  color: #dbe3ed;
}

body.admin-mode .admin-danger-button {
  border: 1px solid #5d2e34;
  background: #25161a;
  color: #f3b4b4;
}

body.admin-mode .admin-pill {
  min-width: 76px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
}

body.admin-mode .admin-pill.is-game-on,
body.admin-mode .admin-pill.is-active {
  border-color: #2f6f4d;
  background: #10241a;
  color: #8bd7ad;
}

body.admin-mode .admin-pill.is-inactive {
  border-color: #5d2e34;
  background: #25161a;
  color: #f3b4b4;
}

body.admin-mode .admin-empty-state {
  border-color: #2d3947;
  border-radius: 8px;
  color: #7f8b99;
}

body.admin-mode .admin-webhook-row {
  padding: 14px;
}

body.admin-mode .admin-push-clicks-head {
  margin-top: 22px;
}

.status-panel.is-success {
  border-color: rgba(103, 245, 164, 0.4);
  color: #dffff0;
}

.status-panel.is-error {
  border-color: rgba(255, 126, 126, 0.35);
  color: #ffd1d1;
}

.menu-shell__glow {
  inset: -160px auto auto 65%;
  width: 320px;
  height: 320px;
}

.aviator-shell__glow {
  inset: -140px auto auto 56%;
  width: 300px;
  height: 300px;
}

.menu-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.menu-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.online-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(103, 245, 164, 0.16);
  border-radius: 999px;
  background: rgba(1, 8, 6, 0.42);
  color: #d8fbe7;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.online-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    0 0 0 5px rgba(103, 245, 164, 0.12),
    0 0 18px rgba(103, 245, 164, 0.5);
  animation: online-pulse 1.8s ease-in-out infinite;
}

.online-status__label {
  color: var(--muted);
}

.online-status__value {
  color: #effff4;
  font-weight: 700;
}

.profile-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 18px;
  border: 1px solid rgba(103, 245, 164, 0.22);
  border-radius: 999px;
  background: rgba(1, 8, 6, 0.6);
  color: #dffff0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.back-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(103, 245, 164, 0.18);
  border-radius: 999px;
  background: rgba(1, 8, 6, 0.54);
  color: #e2fff0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.back-button:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 245, 164, 0.36);
  background: rgba(5, 14, 11, 0.74);
}

.aviator-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.aviator-subtitle {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.aviator-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.92fr);
  gap: 18px;
}

.aviator-stage-card,
.aviator-feed-card {
  position: relative;
  border: 1px solid rgba(103, 245, 164, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(6, 19, 15, 0.9), rgba(2, 8, 6, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.aviator-stage {
  padding: 22px;
}

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

.aviator-stage__pill,
.live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(103, 245, 164, 0.12);
  color: #dcffe9;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aviator-stage__status {
  color: var(--muted);
  font-size: 0.95rem;
}

.aviator-radar {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(103, 245, 164, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(1, 8, 6, 0.72), rgba(1, 8, 6, 0.78)),
    url("./assets/aviator-phon.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.aviator-radar__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(103, 245, 164, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 245, 164, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 66% 32%, rgba(255, 38, 93, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
  background-size:
    48px 48px,
    48px 48px,
    auto,
    auto;
  mask-image: radial-gradient(circle at center, black 62%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.aviator-radar__trail {
  position: absolute;
  left: 104px;
  bottom: 96px;
  width: var(--trail-length, 24px);
  height: var(--trail-height, 18px);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  background:
    linear-gradient(90deg, rgba(103, 245, 164, 0.02) 0%, rgba(103, 245, 164, 0.2) 52%, rgba(103, 245, 164, 0.46) 100%),
    linear-gradient(180deg, rgba(103, 245, 164, 0.42), rgba(12, 116, 72, 0.28));
  opacity: var(--trail-opacity, 0);
  filter: drop-shadow(0 0 18px rgba(103, 245, 164, 0.26));
  transition: opacity 220ms ease;
}

.aviator-radar__trail::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 98%, 100% 0, 100% 6%, 0 100%);
  background: linear-gradient(90deg, rgba(103, 245, 164, 0), rgba(133, 255, 190, 0.82));
}

.aviator-plane {
  position: absolute;
  left: var(--plane-x, 104px);
  bottom: var(--plane-y, 82px);
  width: 156px;
  height: 86px;
  transform: rotate(-14deg);
  transform-origin: 54% 58%;
  opacity: 1;
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.aviator-plane.is-crashed {
  opacity: 0;
  transform: translateY(42px) rotate(18deg);
}

.aviator-plane__body {
  position: absolute;
  inset: 0;
  background-image: url("./assets/aviator-plane-model.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: polygon(0 83%, 5% 73%, 14% 72%, 20% 78%, 30% 66%, 28% 52%, 45% 50%, 51% 40%, 62% 33%, 72% 16%, 82% 22%, 88% 0, 93% 7%, 96% 31%, 100% 35%, 96% 45%, 99% 72%, 93% 78%, 86% 51%, 76% 54%, 66% 73%, 52% 67%, 39% 76%, 18% 85%, 13% 98%, 4% 98%);
  filter:
    brightness(1.32)
    contrast(1.22)
    saturate(1.22);
  mix-blend-mode: screen;
}

.aviator-plane__body.is-transparent-model {
  clip-path: none;
  filter:
    brightness(1.18)
    contrast(1.15)
    saturate(1.18)
    drop-shadow(0 0 10px rgba(255, 35, 91, 0.42));
  mix-blend-mode: normal;
}

.aviator-signal {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aviator-signal__label,
.aviator-signal__hint {
  position: relative;
  z-index: 1;
}

.aviator-signal__label {
  color: rgba(220, 255, 233, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aviator-signal__value {
  display: inline-block;
  width: fit-content;
  padding: 6px 14px 8px;
  border-radius: 18px;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(3rem, 10vw, 5.1rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 1px;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.48);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    text-shadow 220ms ease;
}

.aviator-signal__value.is-low-signal,
.signal-meta__value.is-low-signal {
  background: linear-gradient(135deg, rgba(103, 245, 164, 0.12), rgba(103, 245, 164, 0.02));
  box-shadow: 0 0 28px rgba(103, 245, 164, 0.2);
  text-shadow:
    0 6px 18px rgba(0, 0, 0, 0.42),
    0 0 16px rgba(103, 245, 164, 0.46);
}

.aviator-signal__value.is-mid-signal,
.signal-meta__value.is-mid-signal {
  background: linear-gradient(135deg, rgba(255, 216, 95, 0.14), rgba(255, 216, 95, 0.03));
  box-shadow: 0 0 30px rgba(255, 216, 95, 0.22);
  text-shadow:
    0 6px 18px rgba(0, 0, 0, 0.44),
    0 0 18px rgba(255, 216, 95, 0.48);
}

.aviator-signal__value.is-high-signal,
.signal-meta__value.is-high-signal {
  background: linear-gradient(135deg, rgba(255, 68, 96, 0.14), rgba(255, 68, 96, 0.03));
  box-shadow: 0 0 32px rgba(255, 68, 96, 0.24);
  text-shadow:
    0 6px 18px rgba(0, 0, 0, 0.46),
    0 0 20px rgba(255, 68, 96, 0.5);
}

.aviator-signal__hint {
  max-width: 460px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.aviator-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.signal-button {
  border: 0;
  border-radius: 18px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ff5f86 0%, #ff245f 100%);
  color: #fffdfd;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
  box-shadow: 0 14px 28px rgba(255, 36, 95, 0.22);
}

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

.signal-button:disabled {
  opacity: 0.56;
  cursor: wait;
  box-shadow: none;
}

.signal-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  padding: 14px 16px;
  border: 1px solid rgba(103, 245, 164, 0.12);
  border-radius: 18px;
  background: rgba(2, 8, 6, 0.62);
}

.signal-meta__label {
  color: rgba(220, 255, 233, 0.62);
  font-size: 0.84rem;
}

.signal-meta__value {
  display: inline-block;
  width: fit-content;
  padding: 3px 8px 4px;
  border-radius: 10px;
  color: #f2fff7;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    text-shadow 220ms ease;
}

.aviator-feed-card {
  padding: 22px;
}

.aviator-feed-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.aviator-feed-card__head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aviator-feed-card__eyebrow {
  display: none;
}

.aviator-feed-card__title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.live-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-feed__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(103, 245, 164, 0.1);
  border-radius: 16px;
  background: rgba(2, 8, 6, 0.54);
}

.live-feed__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(103, 245, 164, 0.08);
}

.live-feed__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-feed__name {
  color: #effff5;
  font-weight: 700;
}

.live-feed__status {
  color: var(--muted);
  font-size: 0.9rem;
}

.live-feed__signal {
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.35);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.live-feed__signal.is-waiting {
  color: #c8dfd1;
}

.game-card--action {
  cursor: pointer;
}

.game-card--action:focus-visible {
  outline: 2px solid rgba(103, 245, 164, 0.8);
  outline-offset: 4px;
}

.games-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  min-height: 250px;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid rgba(103, 245, 164, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(7, 22, 17, 0.78), rgba(2, 7, 5, 0.92)),
    radial-gradient(circle at top right, rgba(103, 245, 164, 0.12), transparent 38%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 245, 164, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.game-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 10px 8px 0;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.5px;
  white-space: nowrap;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.6);
  paint-order: stroke fill;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.game-card__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.game-card--aviator {
  isolation: isolate;
  background:
    radial-gradient(circle at 66% 34%, rgba(255, 42, 82, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(7, 22, 17, 0.78), rgba(2, 7, 5, 0.92)),
    radial-gradient(circle at top right, rgba(103, 245, 164, 0.12), transparent 38%);
}

.game-card--aviator::after,
.game-card--lucky-mines::after,
.game-card--balloonix::after,
.game-card--penalty::after,
.game-card--rabbit-road::after,
.game-card--chicken-road::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 7, 5, 0.44) 0%, rgba(2, 7, 5, 0.12) 18%, rgba(2, 7, 5, 0.02) 36%, rgba(2, 7, 5, 0.08) 58%, rgba(2, 7, 5, 0.54) 78%, rgba(2, 7, 5, 0.9) 100%),
    linear-gradient(90deg, rgba(2, 7, 5, 0.14) 0%, rgba(2, 7, 5, 0.02) 30%, rgba(2, 7, 5, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.game-card__bg--aviator {
  inset: 0;
  opacity: 0.98;
  background-image: url("./assets/aviator-banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: brightness(0.88) saturate(1.04) contrast(1.05);
}

.game-card--lucky-mines {
  isolation: isolate;
  background:
    radial-gradient(circle at 52% 26%, rgba(163, 73, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(7, 22, 17, 0.78), rgba(2, 7, 5, 0.92)),
    radial-gradient(circle at top right, rgba(103, 245, 164, 0.12), transparent 38%);
}

.game-card__bg--lucky-mines {
  inset: 0;
  opacity: 0.98;
  background-image: url("./assets/lucky-mines-banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: brightness(0.96) saturate(1.03) contrast(1.02);
}

.game-card--balloonix {
  isolation: isolate;
  background:
    radial-gradient(circle at 52% 24%, rgba(76, 126, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(7, 22, 17, 0.78), rgba(2, 7, 5, 0.92)),
    radial-gradient(circle at top right, rgba(103, 245, 164, 0.12), transparent 38%);
}

.game-card__bg--balloonix {
  inset: 0;
  opacity: 0.98;
  background-image: url("./assets/balloonix-banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: brightness(0.88) saturate(1.05) contrast(1.03);
}

.game-card--penalty {
  isolation: isolate;
  background:
    radial-gradient(circle at 54% 24%, rgba(106, 197, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(7, 22, 17, 0.78), rgba(2, 7, 5, 0.92)),
    radial-gradient(circle at top right, rgba(103, 245, 164, 0.12), transparent 38%);
}

.game-card__bg--penalty {
  inset: 0;
  opacity: 0.98;
  background-image: url("./assets/penalty-banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: brightness(0.89) saturate(1.04) contrast(1.02);
}

.game-card--rabbit-road {
  isolation: isolate;
  background:
    radial-gradient(circle at 54% 24%, rgba(255, 191, 74, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(7, 22, 17, 0.78), rgba(2, 7, 5, 0.92)),
    radial-gradient(circle at top right, rgba(103, 245, 164, 0.12), transparent 38%);
}

.game-card__bg--rabbit-road {
  inset: 0;
  opacity: 0.98;
  background-image: url("./assets/rabbit-road-banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: brightness(0.9) saturate(1.03) contrast(1.02);
}

.game-card--chicken-road {
  isolation: isolate;
  background:
    radial-gradient(circle at 54% 24%, rgba(255, 153, 90, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(7, 22, 17, 0.78), rgba(2, 7, 5, 0.92)),
    radial-gradient(circle at top right, rgba(103, 245, 164, 0.12), transparent 38%);
}

.game-card__bg--chicken-road {
  inset: 0;
  opacity: 0.98;
  background-image: url("./assets/chicken-road-banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: brightness(0.9) saturate(1.03) contrast(1.02);
}

.game-card__text {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  color: #c4d8cb;
  font-size: 0.98rem;
  line-height: 1.55;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.34);
}

.lucky-shell {
  --lucky-bg: #081322;
  --lucky-panel: rgba(8, 22, 38, 0.9);
  --lucky-border: rgba(100, 154, 225, 0.28);
  --lucky-accent: #70b7ff;
  --lucky-accent-strong: #2f8dff;
  --lucky-yellow: #ffd338;
  --lucky-yellow-strong: #ff9e18;
  --lucky-danger: #ff3d7a;
  border-color: var(--lucky-border);
  background:
    radial-gradient(circle at 64% 12%, rgba(54, 126, 235, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(9, 24, 41, 0.96), rgba(4, 11, 21, 0.98));
}

.lucky-shell__glow {
  inset: -150px auto auto 58%;
  width: 320px;
  height: 320px;
  background: rgba(78, 151, 255, 0.28);
}

.lucky-eyebrow,
.lucky-stage__pill {
  color: #bde1ff;
}

.lucky-profile-chip,
.lucky-back-button,
.lucky-stage-card,
.lucky-feed-card,
.lucky-signal-meta {
  border-color: var(--lucky-border);
}

.lucky-profile-chip,
.lucky-back-button,
.lucky-signal-meta {
  background: rgba(5, 16, 30, 0.72);
}

.lucky-back-button:hover {
  border-color: rgba(112, 183, 255, 0.5);
  background: rgba(8, 22, 38, 0.84);
}

.lucky-stage-card,
.lucky-feed-card {
  background:
    linear-gradient(180deg, rgba(8, 22, 38, 0.92), rgba(3, 11, 22, 0.96)),
    radial-gradient(circle at top right, rgba(112, 183, 255, 0.12), transparent 36%);
}

.lucky-stage__pill,
.lucky-live-badge {
  background: rgba(112, 183, 255, 0.14);
}

.lucky-setup {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lucky-setup__panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--lucky-border);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(16, 42, 72, 0.92), rgba(6, 18, 34, 0.92)),
    radial-gradient(circle at 82% 18%, rgba(255, 211, 56, 0.16), transparent 26%);
}

.lucky-setup__label,
.lucky-stat__label {
  color: rgba(209, 230, 255, 0.7);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lucky-setup__value {
  grid-row: span 2;
  color: #f8fbff;
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  line-height: 1;
  text-shadow: 0 0 22px rgba(112, 183, 255, 0.34);
}

.lucky-setup__hint {
  margin: 0;
  color: rgba(209, 230, 255, 0.72);
  line-height: 1.45;
}

.mine-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--lucky-border);
  border-radius: 20px;
  background: rgba(5, 16, 30, 0.72);
}

.mine-option {
  min-height: 58px;
  border: 1px solid rgba(112, 183, 255, 0.22);
  border-radius: 14px;
  background: rgba(64, 102, 156, 0.45);
  color: #f7fbff;
  font-family: "Poppins", sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.mine-option:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 183, 255, 0.52);
}

.mine-option.is-selected {
  border-color: rgba(106, 255, 139, 0.72);
  background: linear-gradient(135deg, #5ace36, #34b922);
  box-shadow: 0 12px 26px rgba(72, 200, 53, 0.24);
  color: #fafff5;
}

.lucky-start-button,
.lucky-signal-button {
  background: linear-gradient(135deg, var(--lucky-yellow) 0%, var(--lucky-yellow-strong) 100%);
  color: #1f1500;
  box-shadow: 0 14px 28px rgba(255, 180, 24, 0.24);
}

.lucky-game {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lucky-game__topline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
}

.lucky-stat {
  padding: 14px 16px;
  border: 1px solid var(--lucky-border);
  border-radius: 16px;
  background: rgba(5, 16, 30, 0.72);
}

.lucky-stat__value {
  display: block;
  margin-top: 6px;
  color: #f8fbff;
  font-family: "Poppins", sans-serif;
  font-size: 1.45rem;
}

.lucky-change-button {
  min-width: 150px;
  padding: 12px 16px;
  border: 1px solid rgba(112, 183, 255, 0.28);
  border-radius: 14px;
  background: rgba(64, 102, 156, 0.32);
  color: #eaf5ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.lucky-change-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(112, 183, 255, 0.52);
  background: rgba(64, 102, 156, 0.46);
}

.lucky-change-button:disabled {
  opacity: 0.52;
  cursor: wait;
}

.mines-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.7vw, 14px);
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid var(--lucky-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(112, 183, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(6, 18, 34, 0.9), rgba(3, 10, 20, 0.96));
}

.mine-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 3px solid rgba(70, 113, 170, 0.86);
  border-radius: 14px;
  background: rgba(12, 27, 48, 0.92);
  color: rgba(122, 166, 224, 0.72);
  font-size: clamp(1.35rem, 4vw, 2.65rem);
  transform: scale(1);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.mine-cell::before {
  content: "";
  width: 30%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(80, 121, 176, 0.62);
  transition: opacity 160ms ease;
}

.mine-cell.is-star,
.mine-cell.is-mine {
  transform: scale(1.02);
}

.mine-cell.is-star {
  border-color: rgba(255, 153, 24, 0.88);
  background: linear-gradient(135deg, var(--lucky-yellow), #ffb71d);
  color: #fff8f0;
  box-shadow: 0 12px 28px rgba(255, 188, 28, 0.24);
}

.mine-cell.is-mine {
  border-color: rgba(255, 61, 122, 0.88);
  background: linear-gradient(135deg, #ff3d7a, #df1f65);
  color: #241019;
  box-shadow: 0 12px 28px rgba(255, 61, 122, 0.22);
}

.mine-cell.is-star::before,
.mine-cell.is-mine::before {
  display: none;
}

.mine-cell__icon {
  line-height: 1;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.lucky-feed .live-feed__item {
  border-color: rgba(112, 183, 255, 0.12);
  background: rgba(5, 16, 30, 0.62);
}

.lucky-feed .live-feed__dot {
  background: var(--lucky-accent);
  box-shadow: 0 0 0 4px rgba(112, 183, 255, 0.1);
}

.lucky-feed__details {
  display: flex;
  gap: 8px;
  color: rgba(209, 230, 255, 0.66);
  font-size: 0.86rem;
}

.lucky-feed .live-feed__signal {
  color: #ffd952;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.4);
}

.lucky-actions {
  margin-top: 0;
}

.lucky-signal-meta .signal-meta__value {
  color: #ffd952;
}

.balloonix-shell {
  --balloonix-border: rgba(255, 195, 77, 0.28);
  --balloonix-accent: #ffd35c;
  --balloonix-accent-strong: #ff9e24;
  --balloonix-hot: #ff5f86;
  border-color: var(--balloonix-border);
  background:
    radial-gradient(circle at 70% 10%, rgba(255, 196, 65, 0.22), transparent 30%),
    radial-gradient(circle at 12% 84%, rgba(255, 121, 47, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(42, 28, 9, 0.97), rgba(17, 11, 5, 0.98));
}

.balloonix-shell__glow {
  inset: -150px auto auto 58%;
  width: 330px;
  height: 330px;
  background: rgba(255, 190, 73, 0.26);
}

.balloonix-eyebrow,
.balloonix-stage__pill {
  color: #ffe7a6;
}

.balloonix-profile-chip,
.balloonix-back-button,
.balloonix-stage-card,
.balloonix-feed-card,
.balloonix-signal-meta {
  border-color: var(--balloonix-border);
}

.balloonix-profile-chip,
.balloonix-back-button,
.balloonix-signal-meta {
  background: rgba(35, 20, 6, 0.74);
}

.balloonix-back-button:hover {
  border-color: rgba(255, 195, 77, 0.5);
  background: rgba(52, 30, 8, 0.86);
}

.balloonix-stage-card,
.balloonix-feed-card {
  background:
    linear-gradient(180deg, rgba(42, 28, 9, 0.92), rgba(18, 11, 4, 0.96)),
    radial-gradient(circle at top right, rgba(255, 195, 77, 0.14), transparent 36%);
}

.balloonix-stage__pill,
.balloonix-live-badge {
  background: rgba(255, 195, 77, 0.15);
}

.balloonix-sky {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--balloonix-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 219, 94, 0.18), transparent 22%),
    radial-gradient(ellipse at 78% 72%, rgba(151, 204, 255, 0.22), transparent 16%),
    radial-gradient(ellipse at 24% 86%, rgba(151, 204, 255, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(255, 193, 85, 0.82) 0%, rgba(239, 129, 39, 0.52) 47%, rgba(38, 21, 7, 0.9) 100%);
  overflow: hidden;
}

.balloonix-sky__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 245, 189, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 245, 189, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 56%, rgba(0, 0, 0, 0.5) 100%);
}

.balloonix-height-line {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: var(--balloon-height, 16%);
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 211, 92, 0), rgba(255, 245, 177, 0.82), rgba(255, 211, 92, 0));
  opacity: var(--balloon-line-opacity, 0);
  box-shadow: 0 0 18px rgba(255, 211, 92, 0.38);
  transition: opacity 220ms ease;
}

.balloonix-balloon {
  position: absolute;
  left: 50%;
  bottom: var(--balloon-y, 12%);
  width: min(42vw, 270px);
  height: min(58vw, 378px);
  transform: translateX(-50%) translateY(0) scale(var(--balloon-scale, 1));
  transition:
    bottom 120ms linear,
    transform 120ms linear;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
}

.balloonix-balloon__envelope {
  position: absolute;
  left: 50%;
  top: 0;
  width: 92%;
  height: 54%;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(ellipse at 42% 18%, rgba(255, 232, 120, 0.86), transparent 18%),
    linear-gradient(90deg, rgba(178, 48, 20, 0.32) 0 18%, transparent 18% 36%, rgba(255, 234, 91, 0.26) 36% 54%, transparent 54% 72%, rgba(174, 42, 18, 0.28) 72% 100%),
    linear-gradient(135deg, #ff3f18 0%, #ff8d24 46%, #ffd13d 100%);
  transform: translateX(-50%);
  box-shadow:
    inset -24px -26px 38px rgba(132, 37, 10, 0.22),
    inset 20px 0 36px rgba(255, 225, 95, 0.16),
    0 0 38px rgba(255, 125, 36, 0.28);
  overflow: hidden;
}

.balloonix-balloon__envelope::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 0;
  height: 20%;
  border-radius: 50% 50% 0 0;
  background: rgba(128, 43, 12, 0.24);
}

.balloonix-balloon__rope {
  position: absolute;
  top: 11%;
  width: 4px;
  height: 62%;
  border-radius: 999px;
  background: linear-gradient(180deg, #6a3b1c, #9f5b25 48%, #5b3019);
  transform-origin: top center;
  z-index: 2;
}

.balloonix-balloon__rope--left {
  left: 24%;
  transform: rotate(-15deg);
}

.balloonix-balloon__rope--right {
  right: 24%;
  transform: rotate(15deg);
}

.balloonix-balloon__burner {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 20%;
  height: 10%;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, #cfd9c8, #425350);
  transform: translateX(-50%);
  z-index: 3;
}

.balloonix-balloon__flame {
  position: absolute;
  left: 50%;
  top: 51%;
  width: 13%;
  height: 15%;
  border-radius: 58% 58% 48% 48%;
  background:
    radial-gradient(circle at 45% 66%, #fff5a3 0 18%, transparent 19%),
    linear-gradient(180deg, #fff56f 0%, #ff9c22 45%, #ff4a17 100%);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 14px rgba(255, 165, 36, 0.7));
  z-index: 4;
}

.balloonix-balloon__basket {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46%;
  height: 23%;
  border-radius: 12px 12px 20px 20px;
  background:
    linear-gradient(180deg, rgba(146, 78, 35, 0.16), transparent 18%),
    linear-gradient(180deg, #8b4c2c, #4b2730 82%);
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: inset 0 10px 0 rgba(178, 93, 38, 0.46);
}

.balloonix-balloon__basket::before,
.balloonix-balloon__basket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(180deg, #b9652e, #7a3f20);
  box-shadow: 0 7px 10px rgba(0, 0, 0, 0.22);
}

.balloonix-balloon__basket::before {
  top: -2%;
}

.balloonix-balloon__basket::after {
  bottom: 24%;
}

.balloonix-balloon__chicken {
  position: absolute;
  left: 50%;
  top: 16%;
  width: 32%;
  height: 42%;
  border-radius: 50% 50% 44% 44%;
  background: #fff8e7;
  transform: translateX(-50%);
  z-index: 3;
}

.balloonix-balloon__chicken::before {
  content: "";
  position: absolute;
  left: 22%;
  top: -18%;
  width: 55%;
  height: 26%;
  border-radius: 999px 999px 0 0;
  background: #ef271c;
}

.balloonix-balloon__chicken::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 34%;
  width: 78%;
  height: 28%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 42%, #2f271b 0 10%, transparent 11%),
    radial-gradient(circle at 70% 42%, #2f271b 0 10%, transparent 11%),
    linear-gradient(90deg, #ffcf37 0 44%, #f44924 45% 58%, #ffcf37 59% 100%);
}

.balloonix-balloon__bag {
  position: absolute;
  bottom: 20%;
  width: 22%;
  height: 26%;
  border-radius: 55% 55% 48% 48%;
  background: linear-gradient(180deg, #f53928, #b92020);
  z-index: 4;
}

.balloonix-balloon__bag::after {
  content: "$";
  position: absolute;
  left: 50%;
  top: 50%;
  color: #fff4df;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.balloonix-balloon__bag--left {
  left: -10%;
}

.balloonix-balloon__bag--right {
  right: -10%;
}

.balloonix-signal {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 18px 16px;
  border: 1px solid rgba(255, 227, 145, 0.28);
  border-radius: 18px;
  background: rgba(36, 21, 7, 0.72);
  backdrop-filter: blur(6px);
  text-align: center;
  pointer-events: none;
  z-index: 6;
}

.balloonix-signal__label {
  display: none;
  color: rgba(255, 235, 178, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.balloonix-signal__value {
  color: #fffdf4;
  font-family: "Poppins", sans-serif;
  font-size: clamp(3.1rem, 9vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.48);
  text-shadow:
    0 8px 24px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(255, 211, 92, 0.4);
  transition:
    color 240ms ease,
    text-shadow 240ms ease;
}

.balloonix-signal__value.is-balloonix-start {
  color: #ffd6d0;
  text-shadow:
    0 8px 24px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(255, 105, 91, 0.28);
}

.balloonix-signal__value.is-balloonix-flying {
  color: #fff0a8;
  text-shadow:
    0 8px 24px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(255, 211, 92, 0.32);
}

.balloonix-signal__value.is-balloonix-ready {
  color: #d9ffd5;
  text-shadow:
    0 8px 24px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(117, 232, 109, 0.3);
}

.balloonix-signal__hint {
  max-width: 520px;
  margin-top: 8px;
  color: rgba(255, 244, 216, 0.9);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
}

.balloonix-signal-button {
  background: linear-gradient(135deg, var(--balloonix-accent) 0%, var(--balloonix-accent-strong) 100%);
  color: #241100;
  box-shadow: 0 14px 28px rgba(255, 158, 36, 0.24);
}

.balloonix-feed .live-feed__item {
  border-color: rgba(255, 195, 77, 0.12);
  background: rgba(35, 20, 6, 0.62);
}

.balloonix-feed .live-feed__dot {
  background: var(--balloonix-accent);
  box-shadow: 0 0 0 4px rgba(255, 195, 77, 0.1);
}

.balloonix-feed__details {
  color: rgba(255, 236, 190, 0.68);
  font-size: 0.86rem;
}

.balloonix-feed .live-feed__signal,
.balloonix-signal-meta .signal-meta__value {
  color: #ffd35c;
}

.penalty-shell {
  --penalty-border: rgba(126, 232, 104, 0.24);
  --penalty-green: #73f052;
  --penalty-green-strong: #27c766;
  --penalty-orange: #ffb22e;
  --penalty-orange-strong: #ff7222;
  border-color: var(--penalty-border);
  background:
    radial-gradient(circle at 64% 8%, rgba(255, 158, 40, 0.16), transparent 28%),
    radial-gradient(circle at 18% 88%, rgba(84, 226, 104, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(18, 34, 16, 0.96), rgba(8, 14, 9, 0.98));
}

.penalty-shell__glow {
  inset: -150px auto auto 58%;
  width: 320px;
  height: 320px;
  background: rgba(255, 169, 46, 0.24);
}

.penalty-eyebrow,
.penalty-stage__pill {
  color: #d5ffc9;
}

.penalty-profile-chip,
.penalty-back-button,
.penalty-stage-card,
.penalty-feed-card,
.penalty-signal-meta {
  border-color: var(--penalty-border);
}

.penalty-profile-chip,
.penalty-back-button,
.penalty-signal-meta {
  background: rgba(10, 25, 10, 0.72);
}

.penalty-stage-card,
.penalty-feed-card {
  background:
    linear-gradient(180deg, rgba(15, 34, 15, 0.92), rgba(5, 13, 6, 0.96)),
    radial-gradient(circle at top right, rgba(255, 178, 46, 0.12), transparent 34%);
}

.penalty-stage__pill,
.penalty-live-badge {
  background: rgba(115, 240, 82, 0.13);
}

.penalty-field {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--penalty-border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(7, 20, 8, 0.04), rgba(7, 20, 8, 0.16)),
    url("./assets/penalty_phon.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.penalty-field::before {
  content: none;
}

.penalty-goal {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 7%;
  height: 56%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.penalty-net {
  display: none;
}

.penalty-keeper {
  display: none;
}

.penalty-keeper__head {
  position: absolute;
  left: 46px;
  top: 0;
  width: 38px;
  height: 44px;
  border-radius: 45% 45% 48% 48%;
  background: linear-gradient(180deg, #f3a271, #c96a45);
}

.penalty-keeper__head::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: -6px;
  height: 14px;
  border-radius: 999px 999px 4px 4px;
  background: #2f1b14;
}

.penalty-keeper__body {
  position: absolute;
  left: 36px;
  top: 42px;
  width: 58px;
  height: 92px;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, #101c25, #050b10);
}

.penalty-keeper__body::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -44px;
  height: 52px;
  border-radius: 0 0 14px 14px;
  background:
    linear-gradient(90deg, #131d26 0 42%, transparent 42% 58%, #131d26 58% 100%);
}

.penalty-keeper__arm {
  position: absolute;
  top: 58px;
  width: 58px;
  height: 16px;
  border-radius: 999px;
  background: #111c26;
}

.penalty-keeper__arm--left {
  left: 0;
  transform: rotate(-22deg);
}

.penalty-keeper__arm--right {
  right: 0;
  transform: rotate(22deg);
}

.penalty-target {
  position: absolute;
  left: var(--penalty-target-x, 50%);
  top: var(--penalty-target-y, 42%);
  width: 58px;
  height: 58px;
  border: 3px solid rgba(115, 240, 82, 0.92);
  border-radius: 999px;
  background: rgba(115, 240, 82, 0.18);
  box-shadow:
    0 0 0 10px rgba(115, 240, 82, 0.1),
    0 0 28px rgba(115, 240, 82, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    left 420ms ease,
    top 420ms ease;
  z-index: 6;
}

.penalty-target::before,
.penalty-target::after {
  content: "";
  position: absolute;
  background: rgba(218, 255, 210, 0.9);
}

.penalty-target::before {
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  transform: translateX(-50%);
}

.penalty-target::after {
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.penalty-target.is-active {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  animation: none;
}

.penalty-ball {
  position: absolute;
  left: var(--penalty-ball-x, 50%);
  bottom: var(--penalty-ball-bottom, 7%);
  width: clamp(96px, 12vw, 150px);
  aspect-ratio: 454 / 370;
  background: url("./assets/ball_penalty.png") center center / contain no-repeat;
  transform: translateX(-50%) scale(var(--penalty-ball-scale, 1));
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.28));
  pointer-events: none;
  transition:
    left 720ms cubic-bezier(0.18, 0.82, 0.2, 1),
    bottom 720ms cubic-bezier(0.18, 0.82, 0.2, 1),
    transform 720ms cubic-bezier(0.18, 0.82, 0.2, 1);
  will-change: left, bottom, transform;
  z-index: 4;
}

.penalty-ball.is-flying {
  --penalty-ball-scale: 0.52;
}

.penalty-ball.is-signal {
  filter:
    drop-shadow(0 16px 18px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 18px rgba(115, 240, 82, 0.42));
  animation: penalty-ball-pulse 980ms ease-in-out infinite;
}

.penalty-round-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.penalty-stat {
  padding: 14px 16px;
  border: 1px solid var(--penalty-border);
  border-radius: 16px;
  background: rgba(10, 25, 10, 0.66);
}

.penalty-stat__label {
  color: rgba(235, 255, 230, 0.68);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.penalty-stat__value {
  display: block;
  margin-top: 6px;
  color: #fbfff5;
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
}

.penalty-actions {
  flex-wrap: wrap;
}

.penalty-signal-button,
.penalty-choice-button--cashout {
  background: linear-gradient(135deg, var(--penalty-orange) 0%, var(--penalty-orange-strong) 100%);
  color: #241100;
  box-shadow: 0 14px 28px rgba(255, 128, 34, 0.22);
}

.penalty-choice-button {
  border: 0;
  border-radius: 18px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--penalty-green) 0%, var(--penalty-green-strong) 100%);
  color: #041b08;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.penalty-choice-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.penalty-choice-button:disabled {
  opacity: 0.56;
  cursor: wait;
}

.penalty-feed .live-feed__item {
  border-color: rgba(126, 232, 104, 0.12);
  background: rgba(10, 25, 10, 0.58);
}

.penalty-feed .live-feed__dot {
  background: var(--penalty-green);
  box-shadow: 0 0 0 4px rgba(115, 240, 82, 0.1);
}

.penalty-feed__details {
  color: rgba(235, 255, 230, 0.66);
  font-size: 0.86rem;
}

.penalty-feed .live-feed__signal,
.penalty-signal-meta .signal-meta__value {
  color: #ffbf43;
}

.rabbit-shell {
  --rabbit-border: rgba(135, 218, 92, 0.25);
  --rabbit-green: #85df56;
  --rabbit-green-strong: #32bd5a;
  --rabbit-orange: #ff9f2e;
  --rabbit-brown: #6b3b1e;
  border-color: var(--rabbit-border);
  background:
    radial-gradient(circle at 68% 12%, rgba(255, 159, 46, 0.16), transparent 28%),
    radial-gradient(circle at 16% 82%, rgba(102, 210, 83, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(18, 37, 13, 0.96), rgba(8, 16, 7, 0.98));
}

.rabbit-shell__glow {
  inset: -150px auto auto 58%;
  width: 320px;
  height: 320px;
  background: rgba(133, 223, 86, 0.22);
}

.rabbit-eyebrow,
.rabbit-stage__pill {
  color: #d8ffc9;
}

.rabbit-profile-chip,
.rabbit-back-button,
.rabbit-stage-card,
.rabbit-feed-card,
.rabbit-signal-meta {
  border-color: var(--rabbit-border);
}

.rabbit-profile-chip,
.rabbit-back-button,
.rabbit-signal-meta {
  background: rgba(10, 25, 8, 0.72);
}

.rabbit-stage-card,
.rabbit-feed-card {
  background:
    linear-gradient(180deg, rgba(17, 39, 12, 0.92), rgba(6, 16, 5, 0.96)),
    radial-gradient(circle at top right, rgba(255, 159, 46, 0.12), transparent 34%);
}

.rabbit-feed-card,
.chicken-feed-card {
  display: flex;
  flex-direction: column;
}

.rabbit-stage__pill,
.rabbit-live-badge {
  background: rgba(133, 223, 86, 0.14);
}

.rabbit-warning {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 159, 46, 0.26);
  border-radius: 14px;
  background: rgba(74, 39, 12, 0.58);
  color: #ffe0ab;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rabbit-garden {
  position: relative;
  min-height: 430px;
  aspect-ratio: 1250 / 1134;
  border: 1px solid var(--rabbit-border);
  border-radius: 24px;
  background: #16240a;
  overflow: hidden;
}

.rabbit-garden::before,
.rabbit-garden::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/rabbit_phon_2.jpg") center center / cover no-repeat;
}

.rabbit-garden::before {
  opacity: 0.62;
  filter: saturate(0.95) brightness(0.8);
}

.rabbit-garden::after {
  clip-path: polygon(22% 54%, 53% 54%, 53% 91%, 22% 91%);
  opacity: 0.22;
  animation: rabbit-background-breathe 2.8s ease-in-out infinite;
  transform-origin: 38% 72%;
}

.rabbit-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rabbit-hole {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: var(--rabbit-hole-left, 50%);
  width: var(--rabbit-hole-width, 8%);
  min-height: 0;
  border-radius: 22px;
  background: transparent;
  border: 0;
  opacity: 0;
  transform: translateX(-50%);
  transition:
    opacity 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    left 220ms ease,
    width 220ms ease;
}

.rabbit-hole.is-active {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255, 239, 165, 0.1), rgba(255, 159, 46, 0.24));
  box-shadow:
    inset 0 0 0 2px rgba(255, 220, 120, 0.3),
    0 0 28px rgba(255, 159, 46, 0.24);
}

.rabbit-indicator {
  position: absolute;
  left: var(--rabbit-indicator-x, 36%);
  top: 18%;
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255, 237, 116, 0.88);
  border-radius: 999px;
  background: rgba(255, 159, 46, 0.14);
  box-shadow:
    0 0 0 10px rgba(255, 159, 46, 0.1),
    0 0 26px rgba(255, 159, 46, 0.42);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition:
    left 360ms ease,
    opacity 220ms ease,
    transform 220ms ease;
  z-index: 4;
}

.rabbit-indicator.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: rabbit-indicator-pulse 980ms ease-in-out infinite;
}

.rabbit-signal {
  position: absolute;
  left: 50%;
  right: auto;
  top: 50%;
  width: min(78%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 22px 20px;
  border: 1px solid rgba(255, 159, 46, 0.22);
  border-radius: 18px;
  background: rgba(27, 18, 8, 0.82);
  backdrop-filter: blur(6px);
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 5;
}

@keyframes rabbit-background-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.012);
  }
}

@keyframes rabbit-indicator-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.rabbit-signal__value {
  color: #fff6de;
  font-family: "Poppins", sans-serif;
  font-size: clamp(3.5rem, 11vw, 6.2rem);
  font-weight: 700;
  line-height: 0.95;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.44);
  text-shadow:
    0 8px 24px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(255, 159, 46, 0.32);
}

.rabbit-signal__value.is-rabbit-low {
  color: #e4ffd7;
}

.rabbit-signal__value.is-rabbit-mid {
  color: #ffe6a6;
}

.rabbit-signal__value.is-rabbit-high {
  color: #ffd1a3;
}

.rabbit-signal__hint {
  color: rgba(255, 244, 216, 0.88);
  font-size: 1.12rem;
  font-weight: 700;
}

.rabbit-multipliers {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.rabbit-multipliers span {
  display: inline-flex;
  justify-content: center;
  padding: 9px 8px;
  border: 1px solid rgba(135, 218, 92, 0.14);
  border-radius: 12px;
  background: rgba(10, 25, 8, 0.56);
  color: #dfffd6;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.rabbit-multipliers span.is-rabbit-passed {
  border-color: rgba(255, 185, 74, 0.32);
  background: linear-gradient(180deg, rgba(137, 80, 24, 0.82), rgba(80, 47, 14, 0.88));
  color: #ffe5b0;
  box-shadow: 0 0 18px rgba(255, 159, 46, 0.18);
}

.rabbit-multipliers span.is-rabbit-current {
  border-color: rgba(135, 218, 92, 0.46);
  background: linear-gradient(180deg, rgba(59, 145, 54, 0.9), rgba(28, 93, 45, 0.92));
  color: #efffe2;
  box-shadow: 0 0 22px rgba(133, 223, 86, 0.24);
  transform: translateY(-1px);
}

.rabbit-multipliers span.is-rabbit-future {
  border-color: rgba(255, 112, 112, 0.24);
  background: linear-gradient(180deg, rgba(108, 33, 33, 0.76), rgba(63, 20, 20, 0.86));
  color: #ffd1d1;
  box-shadow: 0 0 16px rgba(255, 112, 112, 0.14);
}

.rabbit-signal-button {
  background: linear-gradient(135deg, var(--rabbit-orange) 0%, #ff7a24 100%);
  color: #241100;
  box-shadow: 0 14px 28px rgba(255, 124, 36, 0.22);
}

.rabbit-feed .live-feed__item {
  border-color: rgba(135, 218, 92, 0.12);
  background: rgba(10, 25, 8, 0.58);
}

.rabbit-feed,
.chicken-feed {
  flex: 1;
  justify-content: space-between;
}

.rabbit-feed .live-feed__dot {
  background: var(--rabbit-green);
  box-shadow: 0 0 0 4px rgba(133, 223, 86, 0.1);
}

.rabbit-feed__details {
  color: rgba(224, 255, 214, 0.66);
  font-size: 0.86rem;
}

.rabbit-feed .live-feed__signal,
.rabbit-signal-meta .signal-meta__value {
  color: #ffb655;
}

.chicken-shell {
  --chicken-border: rgba(171, 180, 201, 0.24);
  --chicken-accent: #d7dde8;
  --chicken-accent-strong: #9ea7ba;
  --chicken-orange: #ff9a31;
  border-color: var(--chicken-border);
  background:
    radial-gradient(circle at 72% 10%, rgba(255, 154, 49, 0.14), transparent 26%),
    radial-gradient(circle at 16% 84%, rgba(165, 172, 191, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(24, 25, 34, 0.96), rgba(10, 11, 16, 0.98));
}

.chicken-shell__glow {
  inset: -150px auto auto 58%;
  width: 320px;
  height: 320px;
  background: rgba(181, 189, 210, 0.18);
}

.chicken-eyebrow,
.chicken-stage__pill {
  color: #edf1f7;
}

.chicken-profile-chip,
.chicken-back-button,
.chicken-stage-card,
.chicken-feed-card,
.chicken-signal-meta {
  border-color: var(--chicken-border);
}

.chicken-profile-chip,
.chicken-back-button,
.chicken-signal-meta {
  background: rgba(23, 24, 32, 0.76);
}

.chicken-stage-card,
.chicken-feed-card {
  background:
    linear-gradient(180deg, rgba(26, 27, 38, 0.92), rgba(13, 14, 20, 0.96)),
    radial-gradient(circle at top right, rgba(255, 154, 49, 0.08), transparent 34%);
}

.chicken-stage__pill,
.chicken-live-badge {
  background: rgba(215, 221, 232, 0.12);
}

.chicken-warning {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 154, 49, 0.2);
  border-radius: 14px;
  background: rgba(52, 36, 20, 0.48);
  color: #ffd8b4;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chicken-garden {
  position: relative;
  min-height: 430px;
  aspect-ratio: 562 / 540;
  border: 1px solid var(--chicken-border);
  border-radius: 24px;
  background: #181a25;
  overflow: hidden;
}

.chicken-garden::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 18, 27, 0.18), rgba(17, 18, 27, 0.4)),
    url("./assets/chicken_phon.jpg") center center / cover no-repeat;
  opacity: 0.72;
}

.chicken-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chicken-lane {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: var(--chicken-lane-left, 50%);
  width: var(--chicken-lane-width, 8%);
  border-radius: 22px;
  opacity: 0;
  transform: translateX(-50%);
  transition:
    opacity 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    left 220ms ease,
    width 220ms ease;
}

.chicken-lane.is-active {
  opacity: 1;
  background: linear-gradient(180deg, rgba(237, 241, 247, 0.08), rgba(255, 154, 49, 0.2));
  box-shadow:
    inset 0 0 0 2px rgba(223, 227, 237, 0.2),
    0 0 24px rgba(255, 154, 49, 0.18);
}

.chicken-indicator {
  position: absolute;
  left: var(--chicken-indicator-x, 50%);
  top: 18%;
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 214, 128, 0.86);
  border-radius: 999px;
  background: rgba(255, 154, 49, 0.12);
  box-shadow:
    0 0 0 10px rgba(255, 154, 49, 0.08),
    0 0 24px rgba(255, 154, 49, 0.34);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition:
    left 360ms ease,
    opacity 220ms ease,
    transform 220ms ease;
  z-index: 4;
}

.chicken-indicator.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: chicken-indicator-pulse 980ms ease-in-out infinite;
}

.chicken-signal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 22px 20px;
  border: 1px solid rgba(158, 167, 186, 0.22);
  border-radius: 18px;
  background: rgba(24, 20, 18, 0.82);
  backdrop-filter: blur(6px);
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.chicken-signal__value {
  color: #f6f7fb;
  font-family: "Poppins", sans-serif;
  font-size: clamp(3.3rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.44);
  text-shadow:
    0 8px 24px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(215, 221, 232, 0.22);
}

.chicken-signal__value.is-chicken-low {
  color: #ecf0f6;
}

.chicken-signal__value.is-chicken-mid {
  color: #ffe1bc;
}

.chicken-signal__value.is-chicken-high {
  color: #ffd2bc;
}

.chicken-signal__hint {
  color: rgba(245, 247, 251, 0.88);
  font-size: 1.08rem;
  font-weight: 700;
}

.chicken-multipliers {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.chicken-multipliers span {
  display: inline-flex;
  justify-content: center;
  padding: 9px 8px;
  border: 1px solid rgba(171, 180, 201, 0.14);
  border-radius: 12px;
  background: rgba(23, 24, 32, 0.56);
  color: #edf1f7;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.chicken-multipliers span.is-chicken-passed {
  border-color: rgba(255, 154, 49, 0.28);
  background: linear-gradient(180deg, rgba(112, 69, 31, 0.82), rgba(62, 37, 19, 0.88));
  color: #ffe3c2;
  box-shadow: 0 0 18px rgba(255, 154, 49, 0.14);
}

.chicken-multipliers span.is-chicken-current {
  border-color: rgba(115, 240, 82, 0.34);
  background: linear-gradient(180deg, rgba(68, 146, 53, 0.9), rgba(35, 89, 30, 0.92));
  color: #ffffff;
  box-shadow: 0 0 22px rgba(115, 240, 82, 0.22);
  transform: translateY(-1px);
}

.chicken-multipliers span.is-chicken-future {
  border-color: rgba(255, 112, 112, 0.2);
  background: linear-gradient(180deg, rgba(84, 40, 40, 0.72), rgba(49, 22, 22, 0.84));
  color: #ffd6d6;
  box-shadow: 0 0 14px rgba(255, 112, 112, 0.1);
}

.chicken-signal-button {
  background: linear-gradient(135deg, var(--chicken-orange) 0%, #ff7224 100%);
  color: #241100;
  box-shadow: 0 14px 28px rgba(255, 114, 36, 0.2);
}

.chicken-feed .live-feed__item {
  border-color: rgba(171, 180, 201, 0.12);
  background: rgba(23, 24, 32, 0.58);
}

.chicken-feed .live-feed__dot {
  background: var(--chicken-accent-strong);
  box-shadow: 0 0 0 4px rgba(171, 180, 201, 0.08);
}

.chicken-feed__details {
  color: rgba(237, 241, 247, 0.66);
  font-size: 0.86rem;
}

.chicken-feed .live-feed__signal,
.chicken-signal-meta .signal-meta__value {
  color: #ffb06c;
}

@keyframes chicken-indicator-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes penalty-target-wobble {
  0%,
  100% {
    margin-left: -3px;
    margin-top: 2px;
  }

  50% {
    margin-left: 4px;
    margin-top: -3px;
  }
}

@keyframes penalty-ball-pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(var(--penalty-ball-scale, 1));
  }

  50% {
    transform: translateX(-50%) scale(calc(var(--penalty-ball-scale, 1) + 0.05));
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes online-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 5px rgba(103, 245, 164, 0.12),
      0 0 18px rgba(103, 245, 164, 0.5);
  }

  50% {
    transform: scale(1.15);
    box-shadow:
      0 0 0 8px rgba(103, 245, 164, 0.08),
      0 0 24px rgba(103, 245, 164, 0.68);
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .page-shell {
    display: block;
    padding: 12px;
  }

  .login-card,
  .menu-shell,
  .aviator-shell,
  .lucky-shell,
  .admin-auth-shell,
  .admin-panel-shell {
    width: 100%;
    padding: 18px;
    border-radius: 22px;
  }

  .eyebrow,
  .admin-auth-kicker,
  .admin-section-kicker {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .field-label {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .input-error,
  .status-panel,
  .admin-subtitle,
  .aviator-subtitle,
  .game-card__text,
  .live-feed__status,
  .balloonix-signal__hint,
  .rabbit-signal__hint,
  .chicken-signal__hint {
    font-size: 0.92rem;
  }

  .submit-button,
  .signal-button,
  .penalty-choice-button,
  .admin-primary-button,
  .admin-secondary-button,
  .admin-danger-button {
    min-height: 52px;
    padding: 14px 16px;
  }

  .status-panel,
  .signal-meta,
  .admin-card,
  .admin-sidebar {
    padding: 14px;
  }

  .menu-title,
  .admin-title {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .id-input {
    padding: 16px;
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .menu-hero,
  .aviator-header,
  .aviator-stage__hud,
  .aviator-actions,
  .lucky-actions,
  .admin-panel__header {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-chip {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 0.84rem;
    letter-spacing: 0.05em;
  }

  .online-status {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .game-card {
    min-height: 210px;
    padding: 18px;
    border-radius: 20px;
  }

  .game-card__title {
    max-width: 75%;
    font-size: 1.65rem;
    white-space: normal;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
  }

  .aviator-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .aviator-stage,
  .aviator-feed-card {
    padding: 16px;
  }

  .aviator-feed-card__title {
    font-size: 1.2rem;
  }

  .aviator-feed-card__head > div {
    flex-wrap: wrap;
  }

  .aviator-actions,
  .lucky-actions,
  .penalty-actions {
    align-items: stretch;
  }

  .signal-meta,
  .signal-button,
  .penalty-choice-button {
    width: 100%;
  }

  .aviator-radar,
  .balloonix-sky,
  .penalty-field,
  .rabbit-garden,
  .chicken-garden {
    border-radius: 20px;
  }

  .aviator-radar {
    min-height: 300px;
  }

  .aviator-radar__trail {
    left: 72px;
    bottom: 68px;
  }

  .aviator-plane {
    left: var(--plane-x, 72px);
    bottom: var(--plane-y, 60px);
    width: 108px;
    height: 60px;
  }

  .aviator-signal {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .aviator-signal__value {
    font-size: 2.35rem;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.44);
  }

  .aviator-signal__hint {
    max-width: none;
  }

  .balloonix-sky {
    min-height: 340px;
  }

  .penalty-field {
    min-height: 320px;
  }

  .penalty-goal {
    left: 6%;
    right: 6%;
    top: 7%;
    height: 56%;
  }

  .penalty-keeper {
    width: 96px;
    height: 134px;
  }

  .penalty-keeper__head {
    left: 34px;
    width: 28px;
    height: 34px;
  }

  .penalty-keeper__body {
    left: 27px;
    top: 32px;
    width: 42px;
    height: 70px;
  }

  .penalty-keeper__arm {
    top: 44px;
    width: 44px;
  }

  .penalty-ball {
    width: 72px;
  }

  .penalty-target {
    width: 42px;
    height: 42px;
  }

  .rabbit-garden {
    min-height: 320px;
  }

  .rabbit-track {
    inset: 0;
  }

  .rabbit-hole {
    top: 5%;
    bottom: 5%;
  }

  .rabbit-signal {
    left: 50%;
    right: auto;
    top: 50%;
    width: calc(100% - 24px);
    padding: 14px 16px 16px;
  }

  .rabbit-indicator {
    width: 44px;
    height: 44px;
  }

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

  .rabbit-signal__value {
    font-size: 2.6rem;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.42);
  }

  .chicken-garden {
    min-height: 320px;
  }

  .chicken-indicator {
    width: 44px;
    height: 44px;
  }

  .chicken-signal {
    left: 50%;
    right: auto;
    top: 50%;
    width: calc(100% - 24px);
    padding: 14px 16px 16px;
  }

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

  .chicken-signal__value {
    font-size: 2.45rem;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.42);
  }

  .balloonix-balloon {
    width: min(58vw, 180px);
    height: min(78vw, 250px);
  }

  .balloonix-signal {
    left: 14px;
    right: 14px;
    top: 14px;
    padding: 12px 14px 14px;
    border-radius: 16px;
  }

  .balloonix-signal__value {
    font-size: 2.5rem;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.44);
  }

  .aviator-feed-card__head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .live-feed__item {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px;
  }

  .live-feed__signal {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
    font-size: 0.96rem;
  }

  .mine-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
  }

  .mine-option {
    min-height: 50px;
    font-size: 1.08rem;
  }

  .lucky-setup__panel,
  .lucky-game__topline,
  .penalty-round-panel,
  .admin-main__stats,
  .admin-games-grid,
  .admin-webhook-grid,
  .admin-webhook-layout,
  .admin-webhook-row {
    grid-template-columns: 1fr;
  }

  .lucky-game__topline {
    gap: 10px;
  }

  .lucky-setup__value,
  .lucky-stat__value,
  .penalty-stat__value,
  .admin-stat-box__value {
    font-size: 1.2rem;
  }

  .lucky-change-button {
    min-width: 0;
    width: 100%;
    min-height: 48px;
  }

  .mines-board {
    width: 100%;
    gap: 7px;
    padding: 10px;
    border-radius: 18px;
  }

  .mine-cell {
    border-width: 2px;
    border-radius: 10px;
  }

  .admin-panel-shell {
    padding: 16px;
  }

  body.admin-mode .admin-panel-shell {
    padding: 0;
  }

  body.admin-mode .admin-workspace {
    gap: 0;
  }

  body.admin-mode .admin-sidebar,
  body.admin-mode .admin-inspector {
    border: 0;
    border-top: 1px solid #25313d;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-panel__actions,
  .admin-action-strip {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-panel__header {
    gap: 14px;
    padding-bottom: 18px;
  }

  .admin-panel__actions > * {
    width: 100%;
  }

  .admin-sidebar,
  .admin-main-card,
  .admin-inspector-card {
    border-radius: 20px;
  }

  .admin-player-list {
    max-height: none;
    padding-right: 0;
  }

  .admin-action-strip {
    gap: 8px;
  }

  .admin-search-input,
  .admin-player-form__input .id-input,
  .admin-game-card__text,
  .admin-card__text,
  .admin-info-item__value,
  .admin-opened-game__meta,
  .admin-webhook-url,
  .admin-webhook-code,
  .admin-webhook-cell__value {
    font-size: 0.92rem;
  }
}

@media (min-width: 641px) and (max-width: 920px) {
  .aviator-layout {
    grid-template-columns: 1fr;
  }

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

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-games-grid,
  .admin-main__stats,
  .admin-webhook-grid,
  .admin-webhook-layout,
  .admin-webhook-row {
    grid-template-columns: 1fr;
  }
}
