* , *::before, *::after { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; align-content: center; margin: 0; background: var(--tg-theme-bg-color, #EFF6FF); color: var(--tg-theme-text-color, black); }
.container { padding: 12px 12px 12px; margin-top: 80px ;}
h1 { font-size: 20px; margin: 0 0 12px; }
label { display: block; font-size: 14px; }
input { width: 100%; padding: 8px 8px; border-radius: 10px; border: 1px solid #2a2a2c; background: #141416; color: black; outline: none; }
button { margin-top: 0px; width: 100%; padding: 8px; border: none; border-radius: 10px; background: #28a745; color: #fff; font-weight: 600; cursor: pointer; }
#status { margin-top: 10px; font-size: 14px; min-height: 20px; }

/*Основной шрифт*/
.inter-lavel {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}


/*Стили заголовков*/
.h1-label {font-family: "Inter", sans-serif; font-weight: 700; font-size: 18px; text-align: center; color: #EFF6FF; margin-bottom: 8px;}
.h1-label-black {font-family: "Inter", sans-serif; font-weight: 700; font-size: 18px; text-align: center; color: black; margin-bottom: 8px;}
.h2-label {font-family: "Inter", sans-serif; font-weight: 700; font-size: 12px; color: black; margin-bottom: 0px;}
.low-contrast-text {font-family: "Inter", sans-serif; font-weight: 500; font-size: 12px; color: #7E7E7E;}
.low-text {font-family: "Inter", sans-serif; font-weight: 700; font-size: 12px; color: #ffffff;}
.low-text-blue {font-family: "Inter", sans-serif; font-weight: 700; font-size: 12px; color: #0064D6;}

/*Стили верхних кнопок*/
.app-header { background: var(--tg-theme-secondary-bg-color, #EFF6FF); padding: 12px 12px; position: fixed; top: 0; height: 70px; width: 100%; box-shadow: 0px 0px 30px 0px #7e9cbe7a;}
.newwindowbtn {height: 42px; width: 42px; border-radius: 10px; background: #7E7E7E;}
.newwindowbtn.active {background: #0064D6;}
.topbar { display: flex; align-items: center; justify-content: space-between; background: transparent; border: none; border-radius: 0; height: 46px;}
.topbar .right { display: flex; gap: 12px; flex-shrink: 1; min-width: 0; height: auto;}

/*Стили кнопок навигации*/
.menu-btn {display: inline-block; height: 70px; width: 90px; color: #000000; background: #EFF6FF; border-radius: 0px; padding: 0px; align-items: center;}
.menu-btn-container {display: inline-block; padding: 0 px; }
.menubar { display: inline-block; position: fixed; bottom: 0; width: 100%; background: #EFF6FF; height: 70px; align-items: center; text-align: center;}

/*Иконки*/
.tab-btn-icon { width: 26x; height: 26px; }
.big-btn-icon {width: 22px; height: 22px;} 

/*Блок профиля*/
.profile-block {background: linear-gradient(#0064D6, #BFD8F5); padding: 8px; border-radius: 40px; align-items: center; margin-bottom: 14px;}
.profile-info {margin-bottom: 5px; margin-top: 0px;}
.avatar-img {border-radius: 35px; width: 70px; height: 70px; border: 2px solid #EFF6FF;}
.profile-name {display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 56px; width: auto; padding: 12px 20px 12px 47px; background: #EFF6FF; border-radius: 0px 29px 29px 0px; margin-left: 35px;}
.profile-description {display: flex; gap: 10px;}
.low-btn {font-family: "Inter"; font-size: 10px; font-weight: 400; background-color: #0064D6; padding: 0px; height: 20px; width: 90px;}
.id-button {
  margin-left: 38px; 
  margin-top: -20px; 
  display: flex; align-items: center; 
  background: transparent; gap: 5px; 
  width: auto;
  padding: 5px 60px 3px 45px;
  border-radius: 0 0 30px 0;
  position: absolute;
  z-index: 0;
  background:#007aff;
}

.profile-id-text {font-size: 10px;}
.icon-id {width: 12px;}

/*Блок статистики*/
.stat-container {display: grid; grid-template-columns: 49% 49%; gap: 6px; }
.block-stat {display: flex; height: 70px; background-color: #EFF6FF; border-radius: 35px; align-items: center; vertical-align: middle; padding: 3px;}
.stat-icon {height: 64px; width: 64px; margin-right: 10px; }

/*Круги для аватарки*/
.white-circle { height: 76px; width: 76px; 
  background: #EFF6FF; border-radius: 37px; 
  align-items: center; padding: 2px; 
  margin-top: -56px; position: relative; z-index: 1;}
.blue-circle { height: 72px; width: 72px; background: #007aff; border-radius: 35px; padding: 1px;}

/*Блок контактов*/
.big-button { height: 60px; background: #0064D6; justify-content: center; display: flex; }
.big-button-inverse { height: 60px; background: #BFD8F5; justify-content: center; display: flex; border: #0064D6;}
.big-button-inverse2 { height: 60px; background: #BFD8F5; justify-content: center; display: flex; border: #0064D6;}
.big-button-container {display: flex; gap: 12px; gap: 8px; margin: 10px; height: 22px; align-content: center;}
.container-for-big-button {display: flex; gap: 12px;}
.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0px;
}

.button-container-sec {
    display: flex;
    gap: 10px;
}

.social-button { display: flex; align-items: center; justify-content: center; gap: 5px; height: 60px; padding: 0px 0px;    background-color: #0064D6;    text-decoration: none; color: #fff; border-radius: 10px; font-size: 16px; font-weight: 500;}
.social-button-inverse { display: flex; align-items: center; justify-content: center; height: 60px; gap: 5px; width: 400px; padding: 0px 0px; background-color: #BFD8F5; border-radius: 12px; text-decoration: none; font-size: 16px; font-weight: 500; border: 1px solid #0064D6;}
.button-icon-blue { width: 24px; height: 24px; color: #0064D6;}
.button-icon-white { width: 24px; height: 24px; color: #fff;}






.hidden { display: none !important; }
.brand-left { font-weight: 700; letter-spacing: 0.2px; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.topbar-btn { background: transparent; border: 1px solid transparent; color: inherit; padding: 8px 8px; border-radius: 8%; font-size: 13px; white-space: nowrap; }
.app-header .topbar-btn { width: auto; margin-top: 0; }
.app-header .topbar .tab-btn { width: auto; }
.topbar-btn.active { background: var(--tg-theme-button-color, #2563eb); color: var(--tg-theme-button-text-color, #fff); border-color: #1d4ed8; }
.app-header .tabs { margin-top: 8px; }
.main-tabs { margin: 4px 0 8px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tab-btn { width: 42px; height: 42px; background: #7E7E7E; padding: 8px 8px; border-radius: 10px; align-items: center; justify-content: center; gap: 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-btn.active { background: transparent; }
.main-tabs .tab-btn { border: 1px solid #2a2a2c; background: #141416; }
.main-tabs .tab-btn.active { background: var(--tg-theme-button-color, #2563eb); border-color: var(--tg-theme-button-color, #2563eb); color: var(--tg-theme-button-text-color, #fff); box-shadow: none; border-bottom: 1px solid var(--tg-theme-button-color, #2563eb); }
.subtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; background: rgba(37, 99, 235, 0.1); padding: 8px; border-radius: 12px; border: 1px solid rgba(37, 99, 235, 0.2); }
.sub-btn { background: #1f1f22; border: 1px solid #2a2a2c; padding: 10px 12px; border-radius: 10px; color: #e5e7eb; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; }
.sub-btn.active { background: var(--tg-theme-button-color, #2563eb); color: var(--tg-theme-button-text-color, #fff); border-color: var(--tg-theme-button-color, #2563eb); }
.subtabs .seg-btn { border: 1px solid #2a2a2c; background: transparent; }
.subtabs .seg-btn.active { background: var(--tg-theme-button-color, #2563eb); color: var(--tg-theme-button-text-color, #fff); border-color: var(--tg-theme-button-color, #2563eb); }
.tabs .seg-btn { border: none; }
.seg-btn { min-width: 92px; white-space: nowrap; overflow: hidden; }
.seg { display: grid; gap: 8px; background: transparent; border: none; border-radius: 0; padding: 0; }
.seg-btn { flex: 1; background: transparent; border: none; padding: 8px 10px; border-radius: 8px; color: #e5e7eb; }
.seg-btn.active { background: #1f1f22; }
.card { border: 1px solid #2a2a2c; border-radius: 12px; padding: 12px; background: #141416; width: 100%; box-sizing: border-box; overflow: hidden; }
.container [data-tab-panel="profile"] .card { margin-bottom: 10px; }
.card .divider { height: 1px; background: #2a2a2c; margin: 8px 0; border-radius: 1px; }
.card-item.clickable { cursor: pointer; }
.row { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 0; }
.list { border: 1px solid #2a2a2c; border-radius: 12px; overflow: hidden; }
.list .row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid #2a2a2c; }
.list .row:last-child { border-bottom: none; }
.list .row.head { font-weight: 600; color: #cbd5e1; background: #1b1b1e; }

.list.cards { border: none; border-radius: 0; overflow: visible; display: grid; gap: 10px; }
.card-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: #141416; border: 1px solid #2a2a2c; border-radius: 12px; padding: 12px; }
.card-main { min-width: 0; }
.card-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { color: #9ca3af; font-size: 13px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.card-meta .item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.card-meta .meta-strong { font-weight: 600; color: #e5e7eb; }
.card-meta .item + .item::before { content: '\2022'; margin: 0 4px 0 0; color: #4b5563; }
.card-actions .btn { white-space: nowrap; }
.badge { display: inline-block; padding: 2px 8px; border: 1px solid #2a2a2c; border-radius: 999px; font-size: 12px; color: #cbd5e1; }
.badge-blue { background: #1e3a8a; border-color: #1e40af; color: #e5e7eb; }
.badge-red  { background: #7f1d1d; border-color: #991b1b; color: #f3f4f6; }
.btn-ready-off { background: #16a34a; border-color: #15803d; color: #fff; }
.btn-ready-on { background: #374151; border-color: #4b5563; color: #fff; }

.match-panel { margin-top: 10px; }
.match-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.coin-anim { max-width: 260px; width: 100%; height: auto; border-radius: 8px; border: 1px solid #2a2a2c; display: block; }
.muted { color: #9ca3af; }
.primary { background: #2563eb; }
.secondary { background: #374151; }
.btn { display: inline-block; width: auto; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; margin-top: 0; }
.btn-primary { background: var(--tg-theme-button-color, #2563eb); color: var(--tg-theme-button-text-color, #fff); border-color: #1d4ed8; }
.btn-secondary { background: #374151; color: #fff; border-color: #4b5563; }
.btn-danger { background: #b91c1c; color: #fff; border-color: #991b1b; }
.tab-btn, .sub-btn, .seg-btn { width: auto; margin-top: 0; }
.brand-row { display: flex; align-items: center; justify-content: center; padding: 6px 8px; }
.brand { font-weight: 700; font-size: 14px; }
.small { font-size: 12px; }
.actions { display: flex; gap: 8px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.contact-rows { display: flex; flex-direction: column; gap: 8px; }
.contact-row { display: block; width: 100%; padding: 12px; text-align: left; border-radius: 10px; border: 1px solid #2a2a2c; background: #141416; color: #e5e7eb; text-decoration: none; }
.contact-row:hover { background: #1b1b1e; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { width: min(92vw, 420px); background: #141416; border: 1px solid #2a2a2c; border-radius: 12px; padding: 16px; }
.status { margin-top: 8px; min-height: 18px; font-size: 14px; }

button[disabled] { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 560px) {
  .list .row { grid-template-columns: 1.4fr 1fr; grid-auto-rows: auto; }
  .card-item { grid-template-columns: 1fr; }
  .card-actions { margin-top: 8px; }
}

@media (max-width: 420px) {
  .tab-btn, .sub-btn { font-size: 12px; padding: 8px 6px; height: 36px; gap: 2px; }
  .topbar-btn { padding: 8px 8px; }
  .topbar .right { gap: 12px; }
}
@media (max-width: 360px) {
  .tab-btn, .sub-btn { font-size: 11px; padding: 6px 4px; }
  .topbar-btn { padding: 4px 5px; font-size: 11px; }
  .brand-left { font-size: 13px; }
}
@media (max-width: 320px) {
  .tab-btn, .sub-btn { font-size: 10px; padding: 6px 2px; }
  .tabs { gap: 4px; }
  .topbar-btn { padding: 3px 4px; font-size: 10px; }
  .topbar .right { gap: 3px; }
  .brand-left { font-size: 12px; }
}

.topbar .topbar-btn.active { background: var(--tg-theme-button-color, #2563eb); color: var(--tg-theme-button-text-color, #fff); border-color: #1d4ed8; }

.detail-card { width: min(96vw, 720px); max-height: 88vh; overflow: auto; background: #0f0f11; border: 1px solid #2a2a2c; border-radius: 12px; padding: 14px; }
.detail-head { display: flex; align-items: center; gap: 10px; }
.detail-title { font-weight: 700; font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-tabs { margin-left: auto; display: inline-flex; gap: 6px; }
.head-tabs { flex-shrink: 0; }
.head-tab { padding: 6px 10px; border: 1px solid #2a2a2c; border-radius: 8px; background: #141416; color: #cbd5e1; }
.head-tab.active { background: #1f2937; color: #fff; border-color: #374151; }
.detail-meta { margin: 8px 0 10px; color: #9ca3af; display: flex; flex-wrap: wrap; gap: 8px; font-variant-numeric: tabular-nums; }
.detail-meta .item { display: inline-flex; gap: 4px; }
.detail-actions { margin: 8px 0 12px; }
.participants { margin: 6px 0 12px 18px; }
.participants-table { margin-left: 0; border: 1px solid #2a2a2c; border-radius: 10px; overflow: hidden; }
.pt-row { display: flex; }
.pt-head { background: #141416; font-weight: 600; color: #e5e7eb; }
.pt-col { flex: 1; padding: 8px 10px; border-bottom: 1px solid #2a2a2c; }
.pt-col.name { flex: 2; }
.pt-col.stage { text-align: right; color: #9ca3af; }
.participants-table .pt-row:last-child .pt-col { border-bottom: 0; }
.section-subtitle { font-weight: 600; margin: 6px 0; }
.clickable { cursor: pointer; }

.bracket { margin-top: 10px; overflow-x: auto; width: 100%; }
.br-wrap { display: flex; gap: 24px; padding-bottom: 4px; min-width: max-content; }
.br-col { display: flex; flex-direction: column; gap: 12px; position: relative; }
.br-match { background: #141416; border: 1px solid #2a2a2c; border-radius: 10px; padding: 8px; min-width: 160px; max-width: 200px; position: relative; }
.br-match.me { border-color: #2563eb; }
.br-slot { padding: 4px 8px; height: 24px; line-height: 16px; border-radius: 8px; background: #0d0d0f; border: 1px solid #232325; color: #e5e7eb; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.br-slot:last-child { margin-bottom: 0; }
.br-pair { display: flex; flex-direction: column; gap: 8px; position: relative; }
.br-join { position: relative; height: 18px; display: flex; align-items: center; justify-content: center; }
.br-join::before { content: ''; display: block; width: 2px; height: 100%; background: #2f3338; }
.side-left .br-join::after { content: ''; position: absolute; right: -12px; width: 12px; height: 2px; background: #2f3338; }
.side-right .br-join::after { content: ''; position: absolute; left: -12px; width: 12px; height: 2px; background: #2f3338; }
.side-center .br-match::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 12px; height: 2px; background: #2f3338; }
.side-center .br-match::after { content: ''; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: 12px; height: 2px; background: #2f3338; }

.match-panel { margin-top: 12px; border-top: 1px solid #2a2a2c; padding-top: 10px; }
.match-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }

.draft-picks { margin: 8px 0; width: 100%; }
.dp-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: 100%; }
.dp-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dp-slot { position: relative; width: 100%; aspect-ratio: 1 / 1; border: 1px solid #2a2a2c; background: #141416; border-radius: 8px; overflow: hidden; }
.dp-slot.filled { border-color: #3a3a3c; }
.dp-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-divider { width: 10px; height: 100%; min-height: 36px; background: #2a2a2c; border-radius: 6px; }

@media (max-width: 380px) {
  .dp-row { gap: 8px; }
  .dp-side { gap: 4px; }
  .dp-divider { width: 8px; }
}

#report-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
#report-buttons .btn { 
  width: auto; 
  min-width: 64px; 
  margin-top: 0; 
  padding: 8px 12px; 
  flex: 0 0 auto; 
  border-radius: 999px; 
  border: 1px solid #4b5563;
}

#input-room:disabled { 
  background-color: #2a2a2c; 
  color: #666; 
  cursor: not-allowed; 
  opacity: 0.6; 
}

.toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: #1a1a1c;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  cursor: default;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.toast-body {
  font-size: 13px;
  color: #ccc;
  line-height: 1.3;
}

.notif-item {
  cursor: default !important;
  pointer-events: none !important;
}

.notif-item.read {
  opacity: 0.6;
}

.notif-item .badge {
  background: #007aff;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
}

.sets-list { margin: 8px 0; }
.set-line { 
  font-size: 13px; 
  color: #9ca3af; 
  margin-bottom: 3px; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

#my-active-detail.detail-card { width: 100%; max-width: 100vw; max-height: none; overflow-x: hidden; overflow-y: visible; }
#my-active-detail .detail-head,
#my-active-detail .detail-meta,
#my-active-detail .participants,
#my-active-detail .match-panel { max-width: 100%; overflow-x: hidden; }
#my-active-detail .participants { margin-left: 0; }

#my-active-composite #my-active-detail.detail-card { border: 0; background: transparent; box-shadow: none; padding: 10px 0 0; width: 100%; box-sizing: border-box; }
#my-active-composite #my-active-detail .detail-head { padding: 0 0 6px; }
#my-active-composite #my-active-detail .detail-title { font-size: 16px; }
#my-active-composite #my-active-detail .bracket { margin-top: 8px; overflow-x: auto; }
#my-active-composite #my-active-detail .br-wrap { min-width: max-content; }
#my-active-composite #my-active-detail .participants-table { width: 100%; table-layout: fixed; }
#my-active-composite #my-active-detail .pt-col { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#my-active-composite #my-active-detail .match-panel { width: 100%; box-sizing: border-box; }
#my-active-composite #my-active-detail .match-row { flex-wrap: wrap; }
#my-active-composite #my-active-detail .head-tabs { flex-wrap: wrap; gap: 4px; }

[data-theme="light"] body { background: var(--tg-theme-bg-color, #ffffff); color: var(--tg-theme-text-color, #111827); }
[data-theme="light"] .app-header { background: var(--tg-theme-secondary-bg-color, #f3f4f6); border-bottom-color: #e5e7eb; }
[data-theme="light"] .topbar { color: var(--tg-theme-text-color, #111827); }
[data-theme="light"] .tab-btn { color: var(--tg-theme-text-color, #111827); }
[data-theme="light"] .tab-btn.active { color: var(--tg-theme-button-color, #2563eb); border-bottom-color: var(--tg-theme-button-color, #2563eb); }
[data-theme="light"] .main-tabs .tab-btn { border: 1px solid #e5e7eb; background: #ffffff; color: #111827; }
[data-theme="light"] .main-tabs .tab-btn.active { background: var(--tg-theme-button-color, #2563eb); color: var(--tg-theme-button-text-color, #ffffff); border-color: var(--tg-theme-button-color, #2563eb); }
[data-theme="light"] .subtabs { background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.2); }
[data-theme="light"] .sub-btn { background: #ffffff; border: 1px solid #e5e7eb; color: #111827; }
[data-theme="light"] .sub-btn.active { background: var(--tg-theme-button-color, #2563eb); color: var(--tg-theme-button-text-color, #ffffff); border-color: var(--tg-theme-button-color, #2563eb); }
[data-theme="light"] .seg-btn.active { background: #e5e7eb; }
[data-theme="light"] .card { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .card-item { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .card .divider { background: #e5e7eb; }
[data-theme="light"] .card-meta { color: #6b7280; }
[data-theme="light"] .badge { color: #111827; border-color: #e5e7eb; }
[data-theme="light"] .badge-blue { background: #1e3a8a; border-color: #1e40af; color: #ffffff; }
[data-theme="light"] .badge-red  { background: #7f1d1d; border-color: #991b1b; color: #ffffff; }
[data-theme="light"] .btn-primary { background: var(--tg-theme-button-color, #2563eb); color: var(--tg-theme-button-text-color, #ffffff); border-color: #1d4ed8; }
[data-theme="light"] .btn-secondary { background: #e5e7eb; color: #111827; border-color: #d1d5db; }
[data-theme="light"] .btn-danger { background: #ef4444; color: #ffffff; border-color: #dc2626; }
[data-theme="light"] .list { border-color: #e5e7eb; }
[data-theme="light"] .list .row { border-bottom-color: #e5e7eb; }
[data-theme="light"] .list .row.head { background: #f3f4f6; color: #111827; }
[data-theme="light"] input { background: #ffffff; color: #111827; border-color: #e5e7eb; }
[data-theme="light"] textarea { background: #ffffff; color: #111827; border-color: #e5e7eb; }
[data-theme="light"] .modal { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .overlay { background: rgba(0,0,0,0.35); }
[data-theme="light"] .br-match { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .br-slot { background: #f9fafb; border-color: #e5e7eb; color: #111827; }
[data-theme="light"] .detail-card { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .head-tab { background: #ffffff; color: #111827; border-color: #e5e7eb; }
[data-theme="light"] .head-tab.active { background: #e5e7eb; color: #111827; border-color: #d1d5db; }
[data-theme="light"] .dp-divider { background: #e5e7eb; }
[data-theme="light"] #report-buttons .btn { border-color: #d1d5db; }
[data-theme="light"] .toast { background: #111827; border-color: #1f2937; color: #ffffff; }

[data-theme="light"] label { color: #374151; }
[data-theme="light"] .muted { color: #4b5563; }
[data-theme="light"] .set-line { color: #4b5563; }
[data-theme="light"] .detail-meta { color: #6b7280; }
[data-theme="light"] .card-meta .meta-strong { color: #111827; }
[data-theme="light"] .pt-head { background: #f3f4f6; color: #111827; }
[data-theme="light"] .pt-col.stage { color: #6b7280; }

[data-theme="light"] .topbar .topbar-btn.active {
  background: var(--tg-theme-button-color, #2563eb);
  color: var(--tg-theme-button-text-color, #ffffff);
  border-color: #1d4ed8;
}

/* Friends page */
.friends-page { padding-bottom: 92px; }
.friends-page-title { margin: 8px 0 24px; font-family: "Inter", sans-serif; font-size: 22px; font-weight: 700; line-height: 1; text-align: center; color: #000; }
.friends-hero-card,
.friends-summary-card,
.friends-detail-panel { border: 1px solid #b7b7b7; background: #fff; border-radius: 24px; box-shadow: none; }
.friends-hero-card { padding: 18px 16px 16px; margin-bottom: 20px; }
.friends-hero-title,
.friends-detail-title,
.friends-summary-title { font-family: "Inter", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.15; color: #111; }
.friends-hero-input-wrap { margin-top: 18px; }
.friends-hero-input-wrap input,
.friend-search input,
.friends-referral-row input { width: 100%; min-height: 52px; padding: 10px 18px; border-radius: 18px; border: 1px solid #a9a9a9; background: #fff; color: #111; font-family: "Inter", sans-serif; font-size: 16px; }
.friends-hero-input-wrap input::placeholder,
.friend-search input::placeholder,
.friends-referral-row input::placeholder { color: #8c8c8c; }
.friends-primary-btn { margin-top: 14px; min-height: 52px; border-radius: 18px; border: none; background: #0064d6; color: #eff6ff; font-family: "Inter", sans-serif; font-size: 16px; font-weight: 500; }
.friends-primary-btn:hover { background: #0055b7; }
.friends-summary-list { display: grid; gap: 18px; }
.friends-summary-card { width: 100%; padding: 18px 16px; text-align: left; color: #111; cursor: pointer; }
.friends-summary-card.active { border-color: #0064d6; box-shadow: 0 0 0 2px rgba(0, 100, 214, 0.08); }
.friends-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.friends-summary-count { font-family: "Inter", sans-serif; font-size: 20px; font-weight: 700; line-height: 1; color: #111; }
.friends-summary-subtitle { margin-top: 10px; font-family: "Inter", sans-serif; font-size: 16px; line-height: 1.25; color: #8c8c8c; }
.friends-detail-stack { display: grid; gap: 16px; margin-top: 18px; }
.friends-detail-panel { padding: 16px; }
.friends-detail-title { margin-bottom: 12px; }
.friend-search { margin-bottom: 10px; }
.friends-referral-row { display: grid; gap: 8px; }
.friend-list { display: flex; flex-direction: column; gap: 8px; }
.friend-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid #d7d7d7; border-radius: 10px; }
.friend-row:hover { background: #f7fbff; border-color: #bdd7f4; }
.friend-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.friend-avatar { width: 36px; height: 36px; border-radius: 999px; background: #0064d6; border: 1px solid #0064d6; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.friend-text { min-width: 0; }
.friend-name { font-weight: 600; line-height: 1.2; color: #111; }
.friend-username { font-size: 12px; color: #7e7e7e; }
.friend-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.empty-block { display:flex; align-items:center; justify-content:center; gap:8px; padding: 12px; border: 1px dashed #c8c8c8; border-radius: 10px; color: #7e7e7e; background: #fafcff; }
.empty-block .emoji { font-size: 16px; }
.empty-block .text { font-size: 13px; }

@media (min-width: 700px) {
  .friends-page { max-width: 720px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .friends-page-title { font-size: 20px; margin-bottom: 18px; }
  .friends-hero-title,
  .friends-detail-title,
  .friends-summary-title,
  .friends-summary-count { font-size: 18px; }
  .friends-summary-subtitle { font-size: 15px; }
}

[data-theme="light"] .friend-row { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .friend-avatar { background: #e5e7eb; border-color: #d1d5db; color: #111827; }
[data-theme="light"] .friend-username { color: #6b7280; }
[data-theme="light"] .empty-block { border-color: #e5e7eb; color: #6b7280; }
[data-theme="light"] .friend-row:hover { background: #f9fafb; border-color: #d1d5db; }

/* About page */
.about-page {
  padding-bottom: 96px;
}

.about-page-title {
  margin: 8px 0 18px;
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #111;
}

.about-cards,
.about-links {
  display: grid;
  gap: 14px;
}

.about-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px;
  min-height: 174px;
  padding: 18px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
}

.about-card::before,
.about-card::after {
  content: "";
  position: absolute;
  inset: auto auto -38% -10%;
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  opacity: 0.12;
  background: radial-gradient(circle, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 68%);
  pointer-events: none;
}

.about-card::after {
  inset: -42% -12% auto auto;
  width: 68%;
  opacity: 0.1;
}

.about-card--blue {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #0a6be0 0%, #0054ba 100%);
}

.about-card--orange {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #f15d00 0%, #d33500 100%);
}

.about-card--green {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #10a850 0%, #0a8640 100%);
}

.about-card--magenta {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #cc1677 0%, #9d0f6c 100%);
}

.about-card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.about-card-title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.about-card-text {
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.24;
  color: rgba(255,255,255,0.94);
  white-space: pre-wrap;
}

.about-card-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-card-media img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.18);
}

.about-card-media--poster img {
  width: 128px;
  height: 156px;
  border-radius: 22px;
}

.about-card--links {
  grid-template-columns: minmax(0, 1fr) 96px;
}

.about-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.about-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.26);
  color: #fff;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.about-link-pill:hover {
  background: rgba(255,255,255,0.22);
}

@media (min-width: 700px) {
  .about-page {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .about-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    min-height: 154px;
    padding: 16px;
  }

  .about-card-media img {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .about-card-media--poster img {
    width: 96px;
    height: 124px;
  }

  .about-card-title {
    font-size: 17px;
  }

  .about-card-text {
    font-size: 14px;
  }
}

/* Notifications page */
.notif-page {
  padding-bottom: 96px;
}

.notif-page-title {
  margin: 8px 0 18px;
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #111;
}

.notif-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.notif-feed {
  display: grid;
  gap: 12px;
}

.notif-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border: 1px solid #d6d6d6;
  background: #fff;
  border-radius: 24px;
}

.notif-card.is-read {
  opacity: 0.72;
}

.notif-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notif-card-title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: #111;
}

.notif-card-time {
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #7e7e7e;
}

.notif-card-body {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.28;
  color: #4b4b4b;
}

.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #0064d6;
  color: #eff6ff;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.notif-empty {
  padding: 18px 16px;
  border: 1px dashed #cfcfcf;
  border-radius: 24px;
  background: #fff;
  color: #7e7e7e;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.menu-btn-container {
  position: relative;
}

.menu-btn.has-unread .menu-btn-container::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ee4444;
  border: 2px solid #eff6ff;
}

@media (min-width: 700px) {
  .notif-page {
    max-width: 720px;
    margin: 0 auto;
  }
}

/* --- Payout currency select (profile) --- */
.payout-row { gap: 8px; flex-wrap: wrap; align-items: center; }
.select-wrap { position: relative; display: inline-block; }
.nice-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #141416;
  border: 1px solid #2a2a2c;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 36px 10px 12px;
  min-width: 180px;
  font-size: 14px;
  cursor: pointer;
  background-image: none;
  height: 40px;
  line-height: 20px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nice-select:hover { border-color: #3a3a3c; }
.nice-select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.25); }
.select-wrap::after {
  content: '\25BE'; /* ▼ */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  font-size: 12px;
}
.nice-select option { background: #141416; color: #e5e7eb; }
.rate-hint { margin-top: 6px; }

/* Hide default arrow in legacy Edge/IE */
.nice-select::-ms-expand { display: none; }
.nice-select:disabled { opacity: 0.6; cursor: not-allowed; background: #1b1b1e; }

@media (max-width: 420px){
  .nice-select { width: 100%; min-width: 0; }
}

[data-theme="light"] .nice-select { background: #ffffff; color: #111827; border-color: #e5e7eb; }
[data-theme="light"] .nice-select:hover { border-color: #d1d5db; }
[data-theme="light"] .nice-select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
[data-theme="light"] .select-wrap::after { color: #6b7280; }
[data-theme="light"] .nice-select option { background: #ffffff; color: #111827; }

/* Force style for payout select if WebView ignores appearance */
#payout-currency-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: #141416 !important;
  border: 1px solid #2a2a2c !important;
  color: #e5e7eb !important;
  border-radius: 10px !important;
  padding: 10px 36px 10px 12px !important;
  min-width: 180px;
  font-size: 14px;
  background-image: none !important;
  height: 40px;
}
#payout-currency-select:hover { border-color: #3a3a3c !important; }
#payout-currency-select:focus { outline: none; border-color: #2563eb !important; box-shadow: 0 0 0 3px rgba(37,99,235,0.25) !important; }
[data-theme="light"] #payout-currency-select { background: #ffffff !important; color: #111827 !important; border-color: #e5e7eb !important; }
[data-theme="light"] #payout-currency-select:hover { border-color: #d1d5db !important; }
[data-theme="light"] #payout-currency-select:focus { border-color: #2563eb !important; box-shadow: 0 0 0 3px rgba(37,99,235,0.2) !important; }

/* === FIGMA 1:1 SHELL OVERRIDES === */
:root {
  --figma-blue: #0064D6;
  --figma-blue-soft: #BFD8F5;
  --figma-bg: #EFF6FF;
  --figma-gray: #7E7E7E;
  --figma-text: #111111;
  --figma-border: #D5E4F4;
  --figma-card: #FFFFFF;
  --figma-green: #17A34A;
  --figma-red: #EE4444;
  --figma-shadow: 0 10px 26px rgba(27, 82, 147, 0.12);
  --figma-app-width: 420px;
}

html, body {
  overflow-x: hidden;
  background: var(--figma-bg);
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--figma-text);
}

label,
span,
div,
button,
input,
a {
  font-family: inherit;
}

.app-main.container {
  width: min(100%, var(--figma-app-width));
  max-width: var(--figma-app-width);
  margin: 0 auto;
  padding: 82px 12px 100px;
}

.app-header,
.menubar {
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--figma-app-width));
  max-width: var(--figma-app-width);
  box-sizing: border-box;
}

.app-header {
  height: auto;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 74%, rgba(239, 246, 255, 0));
  box-shadow: none;
}

.topbar {
  min-height: 44px;
  display: grid;
  grid-template-columns: 96px 140px 96px;
  justify-content: space-between;
  gap: 4px;
  align-items: center;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 96px;
}

.topbar-side--right {
  justify-content: flex-end;
}

.topbar-logo {
  width: 140px;
  height: 39px;
  border-radius: 12px;
  background: var(--figma-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(0, 100, 214, 0.18);
}

.top-icon-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  background: var(--figma-gray);
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  box-shadow: 0 6px 14px rgba(33, 53, 81, 0.12);
}

.top-icon-btn.active {
  background: var(--figma-blue);
}

.top-icon-btn[aria-pressed="false"] {
  opacity: 0.72;
}

.top-icon-btn .tab-btn-icon {
  width: 25px;
  height: 25px;
}

.menubar {
  position: fixed;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 8px 14px 10px;
  height: auto;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0), rgba(239, 246, 255, 0.98) 24%, rgba(239, 246, 255, 0.98));
  text-align: initial;
}

.menu-btn {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 0 0 3px;
  background: transparent;
  border: none;
  border-radius: 18px;
  color: var(--figma-text);
  font-size: 11px;
  font-weight: 700;
}

.menu-btn .tab-btn-icon {
  width: 24px;
  height: 24px;
}

.menu-btn span {
  display: block;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  color: inherit;
}

.menu-btn.active {
  color: var(--figma-blue);
}

.menu-btn.active .tab-btn-icon {
  filter: invert(24%) sepia(92%) saturate(2412%) hue-rotate(200deg) brightness(96%) contrast(101%);
}

.menu-btn-container {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

/* Match-detail parity snapshots: exact Figma shell assets with live hit areas above them. */
body[data-current-tab="my"] .menubar {
  padding: 0;
  height: 77.78px;
  background:
    url('/webapp/static/figma-assets/matches/21-5616-bottom-menu.png') center top / 100% 100% no-repeat;
}

body[data-current-tab="my"] .menubar .menu-btn {
  min-height: 77.78px;
  padding: 0;
  gap: 0;
  opacity: 0;
}

body[data-current-tab="my"] .app-header {
  padding: 0;
  height: 80px;
}

body[data-current-tab="my"] .topbar {
  min-height: 48px;
  width: 390px;
  margin: 15px auto 17px;
  grid-template-columns: 119px 106px 119px;
  gap: 23px;
}

body[data-current-tab="my"] .topbar-side {
  min-width: 119px;
  gap: 23px;
}

body[data-current-tab="my"] .top-icon-btn {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
}

body[data-current-tab="my"] .top-icon-btn .tab-btn-icon {
  opacity: 0;
}

body[data-current-tab="my"] #btn-sound-toggle {
  background-image: url('/webapp/static/figma-assets/matches/top-shell/sound-btn.png');
}

body[data-current-tab="my"] .top-icon-btn[data-tab="about"] {
  background-image: url('/webapp/static/figma-assets/matches/top-shell/info-btn.png');
}

body[data-current-tab="my"] .top-icon-btn[data-tab="friends"] {
  background-image: url('/webapp/static/figma-assets/matches/top-shell/friends-btn.png');
}

body[data-current-tab="my"] .top-icon-btn[data-tab="profile"] {
  background-image: url('/webapp/static/figma-assets/matches/top-shell/profile-btn.png');
}

body[data-current-tab="my"] .topbar-logo {
  width: 106px;
  height: 48px;
  border-radius: 0;
  background: url('/webapp/static/figma-assets/matches/top-shell/logo.png') center / 100% 100% no-repeat;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
  box-shadow: none;
}

body[data-current-tab="my"][data-my-sub="active"] .matches-screen {
  position: relative;
  padding-top: 110px;
}

body[data-current-tab="my"][data-my-sub="active"] .matches-screen > .screen-title {
  position: absolute;
  top: 23px;
  left: 183px;
  width: 54px;
  height: 14px;
  margin: 0;
  background: url('/webapp/static/figma-assets/matches/title-tabs/title.png') center / 100% 100% no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

body[data-current-tab="my"][data-my-sub="active"] .matches-screen .subtabs.seg {
  position: absolute;
  top: 46px;
  left: 14px;
  width: 389px;
  min-height: 47px;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 23px;
  background:
    url('/webapp/static/figma-assets/matches/21-5613-match-categories.png') center top / 100% 100% no-repeat;
}

body[data-current-tab="my"][data-my-sub="active"] .matches-screen .subtabs.seg .sub-btn {
  min-height: 47px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
}

.screen {
  min-height: calc(100vh - 182px);
}

.screen-title {
  margin: 2px 0 12px;
  text-align: center;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--figma-text);
}

.screen-card {
  background: var(--figma-card);
  border: 1px solid var(--figma-border);
  border-radius: 26px;
  box-shadow: var(--figma-shadow);
}

.screen-card--gradient {
  padding: 12px;
  border: none;
  background: linear-gradient(180deg, var(--figma-blue) 0%, var(--figma-blue-soft) 100%);
}

.screen-card-title {
  text-align: center;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
}

.screen-card-title--light {
  color: #ffffff;
}

.profile-screen {
  display: grid;
  gap: 12px;
  align-content: start;
}

.profile-card.screen-card--gradient {
  margin-bottom: 0;
  padding: 9px 13px 14px;
  border-radius: 34px;
  box-shadow: none;
  background:
    linear-gradient(180deg, #0064D6 0%, rgba(0, 100, 214, 0) 81.829%),
    linear-gradient(90deg, #BFD8F5 0%, #BFD8F5 100%);
}

.profile-card > .screen-card-title,
.profile-stats-title,
.profile-links-title {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
}

.profile-card > .screen-card-title {
  margin: 2px 0 8px;
}

.profile-hero {
  position: relative;
  padding-top: 10px;
}

.profile-avatar-wrap {
  position: absolute;
  top: 4px;
  left: 0;
  width: 68px;
  height: 68px;
  z-index: 2;
}

.profile-avatar-ring {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: none;
}

.profile-hero-sheet {
  position: relative;
  z-index: 1;
  margin-left: 45px;
  min-height: 54px;
  display: grid;
  gap: 6px;
  padding: 13px 19px 13px 43px;
  border-radius: 0 31px 31px 0;
  background: #EFF6FF;
  color: var(--figma-text);
}

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

.profile-copy,
.profile-level-wrap {
  display: grid;
  gap: 5px;
}

.profile-level-wrap {
  margin-left: auto;
  min-width: 60px;
  justify-items: start;
}

.profile-label {
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  color: var(--figma-gray);
}

.profile-name-value,
.profile-level-value {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  color: var(--figma-text);
}

.profile-mini-btn {
  width: auto;
  min-height: 16px;
  justify-self: end;
  padding: 0 10px;
  border-radius: 18px;
  background: var(--figma-blue);
  color: #EFF6FF;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}

.profile-id-chip {
  width: 187px;
  min-height: 22px;
  margin: -21px 0 0 45px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px 0 14px;
  border-radius: 0 0 31px 31px;
  background: var(--figma-blue);
  color: #EFF6FF;
  position: relative;
  z-index: 0;
}

.profile-id-chip-label {
  font-size: 9px;
  line-height: 1;
  font-weight: 400;
  color: #99C8FF;
}

.profile-id-chip-value {
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  color: #EFF6FF;
}

.profile-id-chip .icon-id {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-left: 2px;
}

.profile-id-chip .icon-id::before,
.profile-id-chip .icon-id::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid #EFF6FF;
  border-radius: 3px;
}

.profile-id-chip .icon-id::before {
  top: 3px;
  right: 2px;
}

.profile-id-chip .icon-id::after {
  top: 8px;
  left: 2px;
  background: var(--figma-blue);
}

.profile-stats-title {
  margin: 11px 0 8px;
}

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

.profile-stat-card {
  position: relative;
  min-height: 61px;
  display: flex;
  align-items: center;
  padding: 13px 14px 13px 78px;
  border-radius: 31px;
  background: #EFF6FF;
  color: var(--figma-text);
  box-shadow: none;
  overflow: visible;
}

.profile-stat-card .stat-icon {
  position: absolute;
  left: -2px;
  top: 50%;
  width: auto;
  height: 64px;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.profile-stat-copy {
  display: grid;
  gap: 4px;
}

.profile-stat-label,
.profile-stat-value {
  font-size: 12px;
  line-height: 1;
}

.profile-stat-label {
  font-weight: 400;
  color: var(--figma-gray);
}

.profile-stat-value {
  font-weight: 700;
  color: var(--figma-text);
}

.profile-links-title {
  margin: 0;
  color: var(--figma-text);
}

.profile-links,
.button-container {
  gap: 10px;
}

.profile-links {
  display: grid;
}

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

.social-button,
.social-button-inverse {
  min-height: 53px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  gap: 8px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: none;
}

.social-button {
  background: var(--figma-blue);
}

.social-button-inverse {
  background: #BFD8F5;
  border: 2px solid #0064D6;
  color: var(--figma-blue);
}

.big-btn-icon {
  flex: 0 0 auto;
  width: 20px;
  height: auto;
}

.profile-links .low-text,
.profile-links .low-text-blue {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.friends-page,
.tournaments-screen,
.matches-screen,
.notif-page,
.about-page {
  display: grid;
  gap: 14px;
  align-content: start;
}

.friends-page-title,
.notif-page-title,
.about-page-title {
  margin: 0;
}

.friends-hero-card,
.friends-summary-card,
.friends-detail-panel,
.notif-card,
.notif-empty {
  border: 1px solid var(--figma-border);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: var(--figma-shadow);
}

.friends-hero-card {
  padding: 16px;
  margin-bottom: 0;
}

.friends-summary-list,
.friends-detail-stack,
.notif-feed,
.about-cards,
.about-links {
  gap: 12px;
}

.friends-summary-card {
  padding: 14px 16px;
}

.friends-summary-card.active {
  border-color: #8DBBF0;
  box-shadow: 0 0 0 2px rgba(0, 100, 214, 0.08);
}

.friends-hero-title,
.friends-detail-title,
.friends-summary-title,
.friends-summary-count {
  font-size: 18px;
}

.friends-summary-subtitle {
  margin-top: 6px;
  font-size: 13px;
}

.friends-primary-btn,
.notif-toolbar .btn {
  min-height: 38px;
  border-radius: 10px;
  background: var(--figma-blue);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
}

.friends-referral-row .btn,
.notif-toolbar .btn {
  width: 100%;
}

.friends-hero-input-wrap input,
.friend-search input,
.friends-referral-row input,
.match-row input,
.modal input,
.modal textarea,
#input-room {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #B9CFE7;
  background: #fff;
  color: var(--figma-text);
  font-size: 14px;
}

.friend-row {
  border: 1px solid #E3EDF8;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: none;
}

.friend-avatar {
  background: var(--figma-blue-soft);
  border-color: #96C0F0;
  color: var(--figma-blue);
}

.referral-hint {
  margin-top: 6px;
}

.subtabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.sub-btn,
.seg-btn {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(191, 216, 245, 0.55);
  color: var(--figma-blue);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sub-btn.active,
.seg-btn.active {
  background: var(--figma-blue);
  color: #fff;
}

.figma-list,
.list.cards {
  display: grid;
  gap: 12px;
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.card,
.card-item,
.detail-card,
.match-panel {
  background: #FFFFFF;
  border-color: var(--figma-border);
  color: var(--figma-text);
}

.card {
  border: 1px solid var(--figma-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--figma-shadow);
}

.card .divider {
  height: 1px;
  margin: 0;
  background: #E7EEF6;
}

.card-item {
  display: block;
  padding: 12px 14px;
  border: none;
  border-radius: 18px;
  box-shadow: var(--figma-shadow);
}

.card-main {
  min-width: 0;
}

.card-title {
  font-size: 16px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--figma-text);
  white-space: normal;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 13px;
  color: #424242;
}

.card-meta .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: normal;
}

.card-meta .item + .item::before {
  content: none;
}

.card-meta .meta-strong {
  font-weight: 700;
  color: var(--figma-text);
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.card-actions--full .btn {
  width: 100%;
}

.tour-card {
  padding: 14px 14px 12px;
}

.tour-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tour-card__status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #DCEBFF;
  color: var(--figma-blue);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

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

.tour-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #212121;
}

.tour-card__stat svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--figma-gray);
}

.tour-card__hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--figma-gray);
}

.tour-card__result {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #E7EEF6;
}

.tour-card__result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tour-card__result-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--figma-text);
}

.tour-card__result-value {
  min-width: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--figma-text);
}

.tour-card__cta {
  min-height: 38px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: none;
}

.tour-card__cta--blue {
  background: var(--figma-blue);
  color: #fff;
}

.tour-card__cta--green {
  background: var(--figma-green);
  color: #fff;
}

.tour-card__cta--ghost {
  background: rgba(191, 216, 245, 0.55);
  color: var(--figma-blue);
  border: 1px solid #96C0F0;
}

.empty-block {
  justify-content: center;
  padding: 16px;
  border: 1px dashed #BFD0E4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  color: var(--figma-gray);
}

.detail-card {
  width: 100%;
  max-height: none;
  padding: 14px;
  border: 1px solid var(--figma-border);
  border-radius: 18px;
  box-shadow: var(--figma-shadow);
}

.match-active-card .match-composite-top,
.match-history-card .match-composite-top,
.match-active-card .match-composite-bottom,
.match-history-card .match-composite-bottom {
  box-shadow: none;
  border-radius: 0;
}

.match-composite-bottom .tour-card__result {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.match-record-card {
  overflow: hidden;
  border: 1px solid #E7E7E7;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: none;
}

.match-record-card .card-item {
  background: transparent;
  border: none;
  box-shadow: none;
}

.match-record-card .divider,
.match-record__divider {
  height: 1px;
  margin: 0 12px;
  background: #B7B7B7;
}

.match-record-preview {
  padding: 11px 12px 8px;
}

.match-record-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.match-record-preview__col {
  min-width: 0;
}

.match-record-preview__title {
  margin: 0;
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
  color: #1A1A1A;
}

.match-record-preview__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-top: 1px;
  font-size: 12px;
  line-height: 1.1;
}

.match-record-preview__meta-label {
  color: #8F8F8F;
  font-weight: 500;
}

.match-record-preview__meta-value {
  color: #202020;
  font-weight: 700;
}

.match-record-detail {
  background: transparent;
}

.match-record-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#my-active-composite #my-active-detail.detail-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.match-record__section {
  padding: 8px 12px;
}

.match-record__summary-title {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
  color: #1A1A1A;
}

.match-record__stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}

.match-record__stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.match-record__stat-copy {
  min-width: 0;
}

.match-record__stat-label {
  display: none;
}

.match-record__stat-value {
  display: inline-block;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  color: #1E1E1E;
}

.match-record__stat-icon,
.match-record__line-icon,
.match-record__set-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #9A9A9A;
  flex: 0 0 18px;
}

.match-record__stat-icon svg,
.match-record__line-icon svg,
.match-record__set-icon svg {
  width: 18px;
  height: 18px;
}

.match-record__prizes {
  display: grid;
  gap: 8px;
}

.match-record__line {
  display: grid;
  grid-template-columns: 18px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.match-record__line-label {
  color: #8F8F8F;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 500;
}

.match-record__line-value {
  color: #1F1F1F;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
}

.match-record__sets {
  display: grid;
  gap: 8px;
}

.match-record__set-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.1;
}

.match-record__set-prefix {
  color: #8F8F8F;
  font-weight: 500;
  flex: 0 0 auto;
}

.match-record__set-detail {
  color: #1C1C1C;
  font-weight: 700;
  min-width: 0;
}

.match-record__set-fights {
  margin-left: auto;
  color: #1C1C1C;
  font-weight: 700;
  white-space: nowrap;
}

.match-record__footer {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 12px;
  padding-left: 8px;
  padding-right: 8px;
}

.match-record__footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 174px;
  align-items: center;
  gap: 12px;
}

.match-record__footer-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 12px;
  align-items: center;
}

.match-record__footer-labels,
.match-record__footer-values {
  display: grid;
  gap: 4px;
}

.match-record__footer-labels {
  color: #8F8F8F;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 500;
}

.match-record__footer-values {
  color: #1A1A1A;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
}

.match-record__bracket-btn {
  width: 100%;
  min-height: 38px;
  padding: 7px 16px;
  border-radius: 15px;
  background: #176BDA;
  color: #FFFFFF;
  border: none;
  font-size: 13px;
  font-weight: 700;
}

.match-record__hint {
  text-align: center;
  font-size: 11px;
  line-height: 1.1;
  color: #8F8F8F;
}

.match-record__action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-top: 4px;
}

.match-record__action-row .btn,
.match-record__action-row #complaint-row,
.match-record__action-row #complaint-row .btn {
  width: 100%;
}

.match-record__action-row #complaint-row {
  margin: 0;
}

.match-record__action-row .btn {
  min-height: 38px;
  border-radius: 15px;
  font-size: 16px;
  line-height: 1;
}

.match-record__action-row #btn-ready {
  background: #1FA847;
  border: none;
  color: #FFFFFF;
}

.match-record__action-row #btn-complaint {
  background: #F84444;
  border: none;
  color: #FFFFFF;
}

#my-active-detail .match-info.hidden,
#my-active-detail .match-row.hidden {
  display: none !important;
}

@media (max-width: 390px) {
  .match-record-preview__grid,
  .match-record__stats-grid,
  .match-record__footer-main {
    grid-template-columns: 1fr;
  }

  .match-record__set-line {
    flex-wrap: wrap;
  }

  .match-record__set-fights {
    margin-left: 25px;
  }
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-title {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--figma-text);
}

.head-tabs {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.head-tab {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
}

.detail-meta {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: #4F4F4F;
}

.detail-note {
  margin-top: 8px;
}

.match-panel {
  margin-top: 14px;
  border: 1px solid var(--figma-border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: none;
}

.match-info {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.match-status {
  margin-top: 2px;
}

.match-row {
  margin: 10px 0 0;
  flex-wrap: wrap;
}

.match-row .btn {
  min-height: 38px;
  flex: 1 1 0;
}

.btn {
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.btn-primary {
  background: var(--figma-blue);
  color: #fff;
  border-color: transparent;
}

.btn-secondary {
  background: rgba(191, 216, 245, 0.55);
  color: var(--figma-blue);
  border: 1px solid #96C0F0;
}

.btn-danger {
  background: var(--figma-red);
  color: #fff;
  border-color: transparent;
}

#btn-ready {
  background: var(--figma-green);
  color: #fff;
  border: none;
}

.room-ready-copy {
  margin-bottom: 12px;
}

.room-ready-message {
  margin-bottom: 6px;
  font-size: 14px;
  color: #666666;
}

.room-ready-link {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--figma-blue);
}

.matches-screen .subtabs.seg {
  padding: 4px;
  gap: 4px;
  border: none;
  border-radius: 16px;
  background: #BFDAFF;
}

.matches-screen .subtabs.seg .sub-btn {
  min-height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 13px;
  background: transparent;
  color: #156BDB;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.matches-screen .subtabs.seg .sub-btn.active {
  background: #156BDB;
  color: #FFFFFF;
}

.matches-screen .screen-title {
  margin-bottom: 10px;
}

.seg-tab-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.seg-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  color: currentColor;
  flex: 0 0 13px;
}

.seg-tab-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

#my-active-detail.match-record-detail {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#my-active-detail .match-record-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#my-active-detail .match-record__action-row #complaint-row {
  display: block;
}

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

.notif-card {
  padding: 14px 16px;
}

.notif-card.is-read .notif-card-title,
.notif-card.is-read .notif-card-body,
.notif-card.is-read .notif-card-time {
  color: #9A9A9A;
}

.notif-card-title {
  font-size: 16px;
}

.notif-card-body {
  font-size: 14px;
  line-height: 1.3;
}

.notif-empty {
  padding: 16px;
  font-size: 14px;
}

.about-page {
  gap: 12px;
}

.about-card {
  position: relative;
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  align-items: stretch;
  gap: 0;
  padding: 0 14px 0 16px;
  border: none;
  border-radius: 29px;
  overflow: hidden;
  box-shadow: none;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: -28px auto -22px;
  width: 240px;
  height: 220px;
  background: rgba(0, 0, 0, 0.12);
  clip-path: polygon(50% 0%, 60% 33%, 100% 33%, 68% 56%, 82% 100%, 50% 73%, 18% 100%, 32% 56%, 0% 33%, 40% 33%);
  opacity: 0.24;
  pointer-events: none;
}

.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.about-card--media-right::before {
  right: -44px;
  transform: rotate(10deg);
}

.about-card--media-left {
  grid-template-columns: 104px minmax(0, 1fr);
}

.about-card--media-left::before {
  left: -48px;
  transform: rotate(-10deg) scaleX(-1);
}

.about-card--blue {
  background: linear-gradient(135deg, #0C6AE0 0%, #005CCF 100%);
}

.about-card--orange {
  background: linear-gradient(135deg, #E54A00 0%, #D73A00 100%);
}

.about-card--green {
  background: linear-gradient(135deg, #05A24A 0%, #00963E 100%);
}

.about-card--magenta {
  background: linear-gradient(135deg, #D10F76 0%, #C30869 100%);
}

.about-card-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 15px 0 16px;
}

.about-card--media-left .about-card-copy {
  order: 2;
  padding-left: 0;
}

.about-card-copy--rich {
  gap: 4px;
}

.about-card-copy--links {
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 18px;
}

.about-card-rich {
  display: grid;
  gap: 4px;
  max-width: 226px;
}

.about-card-rich > * {
  margin: 0;
}

.about-card-title,
.about-card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-card-title {
  -webkit-line-clamp: 3;
  font-size: 18px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.about-card-text {
  -webkit-line-clamp: 4;
  margin: 0;
  max-width: 216px;
  font-size: 12px;
  line-height: 1.04;
  font-weight: 500;
  color: rgba(239, 246, 255, 0.92);
  white-space: pre-line;
}

.about-card--media-left .about-card-text {
  max-width: 198px;
}

.about-card-kicker,
.about-card-heading,
.about-card-body,
.about-card-note {
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.about-card-kicker {
  font-size: 21px;
  line-height: 0.94;
  font-weight: 700;
}

.about-card-heading {
  font-size: 19px;
  line-height: 0.95;
  font-weight: 700;
}

.about-card-body {
  font-size: 13px;
  line-height: 0.93;
  font-weight: 700;
}

.about-card-note {
  font-size: 10px;
  line-height: 1.02;
  font-weight: 400;
  color: rgba(231, 241, 255, 0.92);
}

.about-card-note--accent {
  color: #C7DEFF;
}

.about-underline {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.about-card--welcome .about-card-rich {
  max-width: 242px;
}

.about-card--welcome .about-card-heading {
  font-size: 20px;
}

.about-card--welcome .about-card-note {
  max-width: 236px;
}

.about-card--friends .about-card-rich {
  max-width: 248px;
}

.about-card--friends .about-card-heading {
  font-size: 15px;
  line-height: 0.92;
}

.about-card--friends .about-card-body {
  max-width: 242px;
  font-size: 12.5px;
  line-height: 0.92;
}

.about-card--community .about-card-rich {
  max-width: 234px;
}

.about-card--community .about-card-heading {
  font-size: 16px;
  line-height: 0.95;
}

.about-card--community .about-card-note {
  max-width: 228px;
  font-size: 10.2px;
}

.about-card-media {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  pointer-events: none;
}

.about-card--media-right .about-card-media {
  justify-content: flex-end;
}

.about-card--media-left .about-card-media {
  order: 1;
  justify-content: flex-start;
}

.about-card-media img {
  width: auto;
  height: 144px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
}

.about-card-media--poster img {
  width: auto;
  height: 148px;
}

.about-card--media-right .about-card-media img {
  margin-right: -18px;
}

.about-card--media-left .about-card-media img {
  margin-left: -14px;
}

.about-card--welcome .about-card-media img {
  height: 150px;
  margin-right: -22px;
}

.about-card--friends .about-card-media img {
  height: 136px;
  margin-left: -20px;
}

.about-card--community .about-card-media img {
  height: 142px;
  margin-right: -20px;
}

.about-card--links,
.about-card--fairplay {
  grid-template-columns: 92px minmax(0, 1fr);
  margin-top: 56px;
}

.about-card--links .about-card-title {
  font-size: 17px;
}

.about-card--links .about-card-text {
  -webkit-line-clamp: 3;
  max-width: none;
  font-size: 11.5px;
  line-height: 1.08;
}

.about-card--links .about-card-media img {
  height: 150px;
  margin-left: -20px;
}

.about-card-copy--fairplay {
  gap: 0;
  padding-top: 14px;
  padding-bottom: 18px;
}

.about-card-rich--fairplay {
  max-width: 246px;
  gap: 8px;
}

.about-card-heading--fairplay {
  font-size: 16.5px;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.about-card-note--fairplay {
  max-width: 244px;
  font-size: 12.8px;
  line-height: 0.98;
  color: #F5BFC0;
}

.about-card--fairplay .about-card-media img {
  height: 164px;
  margin-left: -18px;
}

.about-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.about-link-pill {
  min-height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.16);
  border: 1px solid rgba(239, 246, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}

.about-card--snapshot {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 29px;
}

.about-card--snapshot::before,
.about-card--snapshot::after {
  display: none;
}

.about-card-snapshot-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.overlay {
  background: rgba(11, 30, 55, 0.48);
}

.modal {
  background: #FFFFFF;
  border: 1px solid var(--figma-border);
  border-radius: 18px;
  color: var(--figma-text);
}

.status,
.muted,
.set-line,
.friend-username,
.notif-card-time {
  color: var(--figma-gray);
}

.badge {
  border: 1px solid #B9CFE7;
  background: rgba(191, 216, 245, 0.35);
  color: var(--figma-blue);
}

.toast {
  background: #0f2340;
  border-color: #284871;
}

@media (max-width: 380px) {
  .app-main.container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .topbar {
    gap: 8px;
  }

  .topbar-logo {
    font-size: 14px;
  }

  .profile-hero-sheet {
    padding-right: 12px;
  }

  .profile-stats-grid,
  .tour-card__stats,
  .card-meta {
    grid-template-columns: 1fr 1fr;
  }

  .button-container-sec {
    grid-template-columns: 1fr;
  }
}
