/* ==========================================================================
   BIGGAME club — Премиальная дизайн-система («Chronograph Obsidian & Brushed Gold»)
   Источник правды: DESIGN.md
   ========================================================================== */

@font-face {
  font-family: 'Geologica';
  src: url('./assets/fonts/geologica/Geologica-VariableFont_CRSV,SHRP,slnt,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geologica';
  src: url('./assets/fonts/geologica/static/Geologica-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geologica';
  src: url('./assets/fonts/geologica/static/Geologica-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geologica';
  src: url('./assets/fonts/geologica/static/Geologica-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geologica';
  src: url('./assets/fonts/geologica/static/Geologica-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('./assets/fonts/roboto-condensed/RobotoCondensed-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('./assets/fonts/roboto-condensed/static/RobotoCondensed-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('./assets/fonts/roboto-condensed/static/RobotoCondensed-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('./assets/fonts/roboto-condensed/static/RobotoCondensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --obsidian-void: #0B0A0A;
  --obsidian-surface: #141212;
  --obsidian-raised: #1D1A1A;
  --obsidian-elevated: #262222;
  --brand-charcoal: #343131;
  --hairline-dark: #262323;

  --brushed-gold: #D8A25E;
  --gold-highlight: #ECC586;
  --gold-deep: #B57E3B;
  --gold-tint: rgba(216, 162, 94, 0.12);
  --gold-border: rgba(216, 162, 94, 0.36);

  --deep-burgundy: #A04747;
  --burgundy-bright: #D96B6B;
  --burgundy-tint: rgba(160, 71, 71, 0.18);

  --text-primary: #F4F1EC;
  --text-secondary: #C4BCB0;
  --text-muted: #968D82;
  --text-on-gold: #14110E;

  --font-brand: 'Geologica', system-ui, -apple-system, sans-serif;
  --font-numeric: 'Roboto Condensed', 'Arial Narrow', sans-serif;

  --radius-none: 0px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-card: 12px;

  --gutter: 16px;
  --tabbar-height: 64px;
  --ease-chronograph: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-shimmer: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(216, 162, 94, 0.28);
  color: var(--text-primary);
}

html {
  background-color: #060505;
  color: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}

body {
  min-height: 100dvh;
  background-color: var(--obsidian-void);
  color: var(--text-primary);
  overflow-x: hidden;
  caret-color: var(--brushed-gold);
}

@media (min-width: 480px) {
  body {
    background: radial-gradient(circle at 50% 0%, #191514 0%, #070606 70%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background-color: var(--obsidian-void);
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .app-shell {
    width: 390px;
    border-left: 1px solid var(--hairline-dark);
    border-right: 1px solid var(--hairline-dark);
  }
}

#residentApp[hidden],
.auth-shell[hidden],
.auth-shell [hidden] {
  display: none;
}

.auth-brand {
  --auth-brand-height: clamp(176px, 28dvh, 242px);
  height: var(--auth-brand-height);
  background: var(--obsidian-void);
  overflow: hidden;
}

.auth-brand img {
  display: block;
  width: min(100%, calc(var(--auth-brand-height) * 1.4));
  height: 100%;
  margin-inline: auto;
  object-fit: cover;
  object-position: center 49%;
  mask-image: radial-gradient(ellipse farthest-corner at 50% 45%, #000 65%, transparent);
}

.auth-content {
  padding: 16px 22px max(28px, env(safe-area-inset-bottom));
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.auth-title:focus {
  outline: none;
}

.auth-description {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-description strong {
  color: var(--gold-highlight);
  letter-spacing: 0.07em;
}

.auth-consents {
  min-inline-size: 0;
  margin-top: 18px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--hairline-dark);
}

.auth-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.55;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  cursor: pointer;
  accent-color: var(--brushed-gold);
  color-scheme: dark;
}

.auth-consent label {
  cursor: pointer;
}

.auth-document-link {
  color: var(--gold-highlight);
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
  text-underline-offset: 3px;
}

.auth-document-link:hover {
  text-decoration-color: currentColor;
}

.auth-shell [data-auth-step]:not([hidden]) {
  animation: auth-step-in 200ms var(--ease-chronograph) both;
}

@keyframes auth-step-in {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.auth-entry:not([hidden]) {
  position: fixed;
  z-index: 80;
  inset: 0;
  width: min(100%, 430px);
  margin-inline: auto;
  display: grid;
  place-items: center;
  background-color: var(--obsidian-void);
  animation: auth-entry-reveal 1360ms ease-out both;
}

@media (min-width: 480px) {
  .auth-entry:not([hidden]) {
    width: 390px;
  }
}

.auth-entry-brand {
  width: min(315px, 88vw, 68dvh);
  display: grid;
  justify-items: center;
}

.auth-entry-mark {
  display: block;
  width: 64.7%;
  height: auto;
}

.auth-monogram-part {
  transform-box: fill-box;
  transform-origin: center;
  animation: auth-monogram-assemble 590ms cubic-bezier(0.2, 0.72, 0.25, 1) var(--part-delay) both;
}

.auth-monogram-b {
  --part-offset: translate(-44px, 0) rotateY(-72deg);
  --part-delay: 25ms;
}

.auth-monogram-g-arch {
  --part-offset: translate(32px, -34px) rotateY(62deg) rotate(-13deg);
  --part-delay: 105ms;
}

.auth-monogram-g-base {
  --part-offset: translate(40px, 30px) rotateY(72deg) rotate(10deg);
  --part-delay: 145ms;
}

.auth-monogram-spade {
  --part-offset: translate(0, 28px) scale(0.58);
  --part-delay: 350ms;
  animation-duration: 420ms;
}

.auth-entry-wordmark {
  width: 100%;
  aspect-ratio: 595 / 145;
  margin-top: 4%;
  background: linear-gradient(120deg, #F2CFA0, var(--brushed-gold) 64%, #A67131);
  mask: url('./assets/brand/logo.svg') center 86% / 100% auto no-repeat;
  animation: auth-wordmark-in 430ms var(--ease-chronograph) 560ms both;
}

@keyframes auth-monogram-assemble {
  from {
    opacity: 0;
    transform: perspective(480px) var(--part-offset);
  }
  32% { opacity: 1; }
  to { transform: perspective(480px) translate(0); }
}

@keyframes auth-wordmark-in {
  from {
    opacity: 0;
    clip-path: inset(0 50%);
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translateY(0);
  }
}

@keyframes auth-entry-reveal {
  0%, 77% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell [data-auth-step]:not([hidden]) {
    animation: none;
  }
}

.auth-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.auth-email-button {
  grid-column: 1 / -1;
}

.auth-secondary-button {
  min-height: 46px;
  padding: 8px 6px;
  border: 1px solid var(--brand-charcoal);
  border-radius: var(--radius-sm);
  background-color: var(--obsidian-surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.auth-secondary-button:not(:disabled):hover {
  background-color: var(--obsidian-raised);
  border-color: var(--gold-border);
}

.auth-methods button:disabled {
  cursor: default;
  opacity: 0.55;
  animation: none;
}

.auth-methods button:disabled::after {
  display: none;
}

.auth-demo-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.auth-form label {
  color: var(--text-secondary);
  font-size: 13px;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid var(--brand-charcoal);
  border-radius: var(--radius-sm);
  background: var(--obsidian-surface);
  font-size: 16px;
}

.auth-form input::placeholder {
  color: var(--text-muted);
}

.auth-form input[aria-invalid="true"] {
  border-color: var(--burgundy-bright);
}

.auth-form .btn-gold-cta {
  margin-top: 5px;
}

.auth-error {
  color: #EA8F8F;
  font-size: 13px;
}

.auth-social-confirm {
  margin-top: 22px;
}

.auth-back-button {
  min-height: 44px;
  margin-top: 6px;
  color: var(--gold-highlight);
  font-size: 13px;
}

.auth-document-sheet form {
  flex: none;
}

.auth-document-sheet .sheet-close-btn {
  font-size: 24px;
}

.auth-document-sheet p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-sign-out {
  width: 100%;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: var(--obsidian-void);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-charcoal);
  border-radius: 2px;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 2px;
}

.tnum {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* ==========================================================================
   ЖИВАЯ ХОРЕОГРАФИЯ И МИКРОАНИМАЦИИ (STAGGER, 3D EMBLEM FLOAT, BARS)
   ========================================================================== */
@keyframes stagger-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-in {
  animation: stagger-rise 420ms var(--ease-chronograph) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes bar-grow-x {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes bar-grow-y {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* 3D-эмблема турнира: статичный объёмный разворот в 3/4 + рельефная фаска + контактная тень (без болтающейся анимации) */
.emblem-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 520px;
  pointer-events: none;
  user-select: none;
}

/* Тёплый статичный бордово-золотой подсвет позади 3D-трофея */
.emblem-3d-stage::before {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(216, 162, 94, 0.22) 0%,
    rgba(160, 71, 71, 0.32) 45%,
    rgba(160, 71, 71, 0) 74%
  );
  filter: blur(8px);
}

/* Контактная тень под трофеем для ощущения веса и опоры */
.emblem-3d-stage::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 70%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0) 75%);
}

.emblem-3d-rig {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: perspective(560px) rotateY(-12deg) rotateX(4deg) scale(1.03);
}

/* Задний смещённый бронзовый экструд-слой для боковой 3D-толщины */
.emblem-3d-depth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate3d(4px, 3px, -10px) scale(0.99);
  filter: brightness(0.42) sepia(0.9) hue-rotate(-12deg) saturate(2.2);
  opacity: 0.9;
}

.emblem-3d-main {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(-4px 8px 14px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 10px rgba(216, 162, 94, 0.12))
    contrast(1.05)
    saturate(1.06);
}

/* ==========================================================================
   ВЕРХНИЙ КАРКАС: ШАПКА КЛУБА И «ПУЛЬС ЗАЛА»
   ========================================================================== */
.top-chrome {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--obsidian-void);
}

.club-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--hairline-dark);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-monogram {
  width: 38px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}

.header-divider {
  width: 1px;
  height: 18px;
  background-color: var(--brand-charcoal);
  flex-shrink: 0;
}

.header-screen-name {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.btn-qr-pass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-charcoal);
  background-color: var(--obsidian-surface);
  color: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease, transform 110ms ease;
}

.btn-qr-pass svg {
  color: var(--brushed-gold);
  flex-shrink: 0;
}

.btn-qr-pass:hover {
  border-color: var(--gold-border);
  background-color: var(--obsidian-raised);
}

.btn-qr-pass:active {
  transform: translateY(1px);
}

/* Живой «Пульс зала» (без количества столов — только турнир, уровень и таймер) */
.pulse-strip {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 8px var(--gutter);
  background-color: var(--obsidian-surface);
  border-bottom: 1px solid var(--hairline-dark);
  text-align: left;
  transition: background-color 160ms ease;
}

.pulse-strip:hover {
  background-color: var(--obsidian-raised);
}

.pulse-strip:focus-visible {
  outline-offset: -2px;
}

.pulse-strip-main {
  display: grid;
  gap: 3px;
}

.pulse-strip-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.25;
}

.pulse-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--burgundy-bright);
  flex-shrink: 0;
  animation: pulse-breathe 2.8s ease-in-out infinite;
}

@keyframes pulse-breathe {
  0%, 100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.pulse-strip-title {
  color: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-strip-clock {
  display: grid;
  gap: 3px;
  padding-left: 12px;
  border-left: 1px solid var(--brand-charcoal);
  text-align: right;
}

.pulse-strip-level {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.pulse-strip-timer {
  color: var(--brushed-gold);
  font-family: var(--font-numeric);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.pulse-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   ОСНОВНОЙ КОНТЕНТ ЭКРАНОВ
   ========================================================================== */
.screen-viewport {
  flex: 1;
  padding-bottom: calc(var(--tabbar-height) + 28px);
}

.app-screen {
  display: none;
}

.app-screen.is-active {
  display: block;
}

.section-pad {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.screen-hero-head {
  padding: 20px var(--gutter) 14px;
}

.screen-h1 {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.screen-subtitle {
  margin-top: 6px;
  font-family: var(--font-numeric);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-link-btn {
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  color: var(--brushed-gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 160ms ease, color 160ms ease;
}

.section-link-btn:hover {
  color: var(--gold-highlight);
  transform: translateX(2px);
}

/* ==========================================================================
   КЛУБНЫЕ ПОРТРЕТНЫЕ АВАТАРКИ (БЕЗ ОВАЛОВ — ГРАНЁНАЯ ОПРАВА)
   ========================================================================== */
.avatar-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--brand-charcoal);
  background-color: var(--obsidian-raised);
  flex-shrink: 0;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-frame.is-gold {
  border-color: var(--brushed-gold);
  box-shadow: 0 4px 14px rgba(216, 162, 94, 0.18);
}

.avatar-frame.is-you {
  border-color: var(--gold-highlight);
}

/* ==========================================================================
   ТАКТИЛЬНЫЕ КНОПКИ
   ========================================================================== */
.btn-gold-cta {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(236, 197, 134, 0.44);
  background: linear-gradient(180deg, #E8BF7D 0%, #D8A25E 50%, #B77E3B 100%);
  color: var(--text-on-gold);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 224, 0.5),
    inset 0 -1px 0 rgba(58, 35, 10, 0.52),
    0 8px 20px rgba(0, 0, 0, 0.48),
    0 2px 10px rgba(216, 162, 94, 0.18);
  transition: transform 120ms ease, filter 180ms ease;
}

.btn-gold-cta::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -45%;
  width: 36%;
  height: 140%;
  background: linear-gradient(
    105deg,
    rgba(255, 250, 238, 0) 0%,
    rgba(255, 250, 238, 0.4) 50%,
    rgba(255, 250, 238, 0) 100%
  );
  transform: skewX(-20deg) translateX(0);
  animation: gold-shimmer 5.8s var(--ease-shimmer) infinite;
  pointer-events: none;
}

@keyframes gold-shimmer {
  0%, 72% {
    transform: skewX(-20deg) translateX(-120%);
  }
  100% {
    transform: skewX(-20deg) translateX(460%);
  }
}

.btn-gold-cta:hover {
  filter: brightness(1.05);
}

.btn-gold-cta:active {
  transform: translateY(1px) scale(0.99);
}

.btn-gold-cta.is-enrolled {
  background: rgba(29, 26, 26, 0.92);
  color: var(--brushed-gold);
  border: 1px solid var(--gold-border);
  box-shadow: inset 0 1px 0 rgba(236, 197, 134, 0.14);
}

.btn-gold-cta.is-enrolled::after {
  display: none;
}

.btn-waiter-secondary {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-charcoal);
  background-color: var(--obsidian-raised);
  color: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 160ms ease, background-color 160ms ease, transform 110ms ease;
}

.btn-waiter-secondary svg {
  color: var(--brushed-gold);
}

.btn-waiter-secondary:hover {
  border-color: var(--gold-border);
  background-color: var(--obsidian-elevated);
}

.btn-waiter-secondary:active {
  transform: translateY(1px);
}

/* ==========================================================================
   ЭКРАН 1: КЛУБ (КАРТОЧКА ИГРОКА + БЛИЖАЙШИЙ ТУРНИР + ЛИДЕРЫ)
   ========================================================================== */
.resident-hero {
  position: relative;
  margin: 16px var(--gutter) 0;
  padding: 20px 18px 16px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(216, 162, 94, 0.15) 0%, rgba(216, 162, 94, 0.03) 42%, rgba(20, 18, 18, 0) 72%),
    radial-gradient(90% 90% at 100% 100%, rgba(160, 71, 71, 0.14) 0%, rgba(20, 18, 18, 0) 68%),
    linear-gradient(165deg, #1A1615 0%, #121010 100%);
  border: 1px solid rgba(216, 162, 94, 0.22);
  box-shadow: inset 0 1px 0 rgba(236, 197, 134, 0.18);
  overflow: hidden;
}

.resident-hero-glint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.resident-hero-glint rect {
  width: calc(100% - 1px);
  height: calc(100% - 1px);
  rx: calc(var(--radius-card) - 1px);
  fill: none;
  opacity: 0;
  animation: resident-glint-pass 9s linear 1.55s infinite;
}

.resident-glint-tail {
  --glint-opacity: 0.56;
  stroke: var(--brushed-gold);
  stroke-width: 3px;
  stroke-dasharray: 12 88;
  filter: blur(1.5px);
}

.resident-glint-core {
  --glint-opacity: 0.9;
  stroke: var(--gold-highlight);
  stroke-width: 1px;
  stroke-dasharray: 4 96;
}

@keyframes resident-glint-pass {
  0% { stroke-dashoffset: 0; opacity: 0; }
  3%, 19% { opacity: var(--glint-opacity); }
  22%, 100% { stroke-dashoffset: -100; opacity: 0; }
}

.resident-identity-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.resident-avatar-lg {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
}

.resident-identity-text {
  min-width: 0;
}

.resident-greeting {
  font-family: var(--font-brand);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.25;
}

.resident-name {
  margin-top: 2px;
  font-family: var(--font-brand);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.resident-status-line {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  color: var(--brushed-gold);
}

.resident-status-sep {
  width: 3px;
  height: 3px;
  background-color: var(--brand-charcoal);
}

.resident-card-num {
  font-family: var(--font-numeric);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.resident-progress-block {
  margin-top: 16px;
}

.progress-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-brand);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.progress-labels strong {
  color: var(--text-primary);
  font-weight: 700;
}

.progress-fraction {
  font-family: var(--font-numeric);
  font-size: 15px;
  font-weight: 700;
  color: var(--brushed-gold);
}

.progress-track {
  margin-top: 8px;
  width: 100%;
  height: 6px;
  border-radius: 2px;
  background-color: var(--brand-charcoal);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #B57E3B 0%, #D8A25E 65%, #ECC586 100%);
  transform-origin: left center;
  animation: bar-grow-x 780ms var(--ease-chronograph) both;
}

.resident-standing-strip {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline-dark);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.standing-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.standing-rank-num {
  font-family: var(--font-numeric);
  font-size: 22px;
  font-weight: 700;
  color: var(--brushed-gold);
}

.standing-text {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.standing-pts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-numeric);
  font-size: 18px;
  font-weight: 700;
  color: var(--brushed-gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.club-section {
  margin-top: 24px;
}

/* Карточка «Ближайший турнир» — компактный верх, корона по центру текста, кнопка на всю ширину */
.tournament-showcase-card {
  position: relative;
  padding: 14px 16px 16px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(88% 120% at 86% 40%, rgba(160, 71, 71, 0.46) 0%, rgba(160, 71, 71, 0.16) 48%, rgba(20, 18, 18, 0.98) 82%),
    linear-gradient(180deg, #1B1515 0%, #131111 100%);
  border-left: 2px solid var(--brushed-gold);
  border-top: 1px solid rgba(216, 162, 94, 0.24);
  border-right: 1px solid rgba(160, 71, 71, 0.22);
  border-bottom: 1px solid var(--hairline-dark);
  overflow: hidden;
  cursor: pointer;
}

.showcase-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px;
  align-items: center;
}

.showcase-left-col {
  min-width: 0;
  position: relative;
  z-index: 3;
}

.showcase-date {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brushed-gold);
  white-space: nowrap;
}

.showcase-title {
  margin-top: 4px;
  font-family: var(--font-brand);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.showcase-facts-stack {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-brand);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.showcase-facts-stack div {
  white-space: nowrap;
}

.showcase-facts-stack strong {
  color: var(--text-primary);
  font-weight: 600;
}

.showcase-cta-full {
  margin-top: 14px;
  height: 48px;
  width: 100%;
  font-size: 14px;
}

.spec-pair-label {
  display: block;
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.spec-pair-val {
  display: block;
  margin-top: 2px;
  font-family: var(--font-numeric);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.emblem-hero-slot {
  width: 118px;
  height: 118px;
  margin-right: -4px;
  align-self: center;
}

/* Подиум Топ-3 с портретными аватарками */
.podium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 3px;
  margin-top: 16px;
  border-bottom: 1px solid var(--hairline-dark);
  list-style: none;
  background: radial-gradient(ellipse 45% 70% at 50% 76%, rgba(216, 162, 94, 0.085), transparent);
}

.podium-col {
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.podium-col.is-first {
  --podium-metal: #D8A25E;
  --podium-light: #F2D29B;
  --podium-face: #342518;
  --podium-step-height: 64px;
  grid-column: 2;
}

.podium-col.is-second {
  --podium-metal: #9D9993;
  --podium-light: #D8D4CE;
  --podium-face: #2A2929;
  --podium-step-height: 46px;
  grid-column: 1;
}

.podium-col.is-third {
  --podium-metal: #A87961;
  --podium-light: #D9AB8F;
  --podium-face: #2E211D;
  --podium-step-height: 36px;
  grid-column: 3;
}

.podium-avatar {
  width: 51px;
  height: 51px;
  border-color: var(--podium-metal);
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.42);
}

.podium-col.is-first .podium-avatar {
  width: 64px;
  height: 64px;
  border-color: var(--podium-light);
}

.podium-crown {
  color: var(--podium-light);
  margin-bottom: 4px;
}

.podium-name {
  margin-top: 8px;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.podium-pts {
  font-family: var(--font-numeric);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-secondary);
}

.podium-col.is-first .podium-pts {
  color: var(--podium-light);
}

.podium-step {
  position: relative;
  margin-top: 15px;
  width: 100%;
  height: var(--podium-step-height);
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, var(--podium-face), var(--obsidian-surface) 92%);
  border-top: 1px solid var(--podium-metal);
  border-inline: 1px solid var(--podium-face);
  font-family: var(--font-numeric);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--podium-light);
  transform-origin: bottom center;
  animation: bar-grow-y 520ms var(--ease-chronograph) both;
}

.podium-step::before {
  position: absolute;
  inset: -8px -1px auto;
  height: 8px;
  background: linear-gradient(90deg, var(--podium-face), var(--podium-metal) 48%, var(--podium-face));
  clip-path: polygon(0 100%, 8% 0, 92% 0, 100% 100%);
  content: "";
}

.podium-col.is-second .podium-step {
  animation-delay: 120ms;
}
.podium-col.is-first .podium-step {
  font-size: 38px;
  animation-delay: 60ms;
}
.podium-col.is-third .podium-step {
  animation-delay: 180ms;
}

.podium-gap-note {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-brand);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.podium-gap-note strong {
  color: var(--brushed-gold);
  font-weight: 700;
}

/* ==========================================================================
   ЭКРАН 2: АФИША (БОРДОВОЕ НАПЫЛЕНИЕ ВО ВСЕХ КАРТОЧКАХ + КРУПНЫЕ 3D-ЭМБЛЕМЫ)
   ========================================================================== */
.schedule-meta-strip {
  padding: 14px var(--gutter) 10px;
  font-family: var(--font-numeric);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.schedule-meta-strip strong {
  color: var(--text-primary);
  font-weight: 700;
}

.underline-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--hairline-dark);
  overflow-x: auto;
}

.u-tab {
  position: relative;
  padding: 10px 0 12px;
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 160ms ease;
}

.u-tab:hover {
  color: var(--text-secondary);
}

.u-tab.is-active {
  color: var(--text-primary);
}

.u-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--brushed-gold);
}

/* Часовая шкала дат */
.chrono-strip {
  position: relative;
  background-color: var(--obsidian-void);
  border-bottom: 1px solid var(--hairline-dark);
  padding: 0 var(--gutter) 12px;
}

.chrono-ruler-ticks {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 12px;
  margin-bottom: 4px;
  pointer-events: none;
}

.chrono-ruler-ticks span {
  width: 1px;
  height: 5px;
  background-color: var(--brand-charcoal);
}

.chrono-ruler-ticks span.is-major {
  height: 9px;
  background-color: #4A4544;
}

.chrono-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.chrono-day-btn {
  position: relative;
  padding: 6px 2px 4px;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  transition: color 150ms ease, background-color 150ms ease;
}

.chrono-day-btn:hover {
  color: var(--text-primary);
}

.chrono-day-btn.is-has-event .chrono-day-num {
  color: var(--text-primary);
}

.chrono-day-btn.is-selected {
  background-color: rgba(216, 162, 94, 0.12);
}

.chrono-day-btn.is-selected::before {
  content: '';
  position: absolute;
  top: -16px;
  width: 2px;
  height: 14px;
  background-color: var(--brushed-gold);
}

.chrono-day-btn.is-selected .chrono-day-num,
.chrono-day-btn.is-selected .chrono-day-dow {
  color: var(--brushed-gold);
}

.chrono-day-num {
  font-family: var(--font-numeric);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.05;
}

.chrono-day-dow {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Витрина карточек Афиши: бордовое напыление во ВСЕХ турнирах + крупный 3D-трофей справа */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px var(--gutter) 4px;
}

.schedule-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 118px;
  gap: 10px;
  padding: 18px 14px 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(95% 120% at 90% 44%, rgba(160, 71, 71, 0.38) 0%, rgba(160, 71, 71, 0.14) 48%, rgba(20, 18, 18, 0.98) 84%),
    linear-gradient(180deg, #191515 0%, #131111 100%);
  border-top: 1px solid rgba(196, 91, 91, 0.24);
  border-right: 1px solid rgba(160, 71, 71, 0.2);
  border-bottom: 1px solid var(--hairline-dark);
  border-left: 2px solid var(--deep-burgundy);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms var(--ease-chronograph), border-color 180ms ease;
}

.schedule-card.is-flagship {
  border-left-color: var(--brushed-gold);
  border-top-color: rgba(216, 162, 94, 0.28);
  background:
    radial-gradient(95% 125% at 90% 42%, rgba(178, 76, 76, 0.46) 0%, rgba(160, 71, 71, 0.16) 50%, rgba(20, 18, 18, 0.98) 84%),
    linear-gradient(180deg, #1C1615 0%, #131111 100%);
}

.schedule-card:active {
  transform: scale(0.992);
}

.sched-date-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sched-day-big {
  font-family: var(--font-numeric);
  font-size: 36px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--brushed-gold);
}

.sched-month-dow {
  margin-top: 6px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sched-main-col {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.sched-series-line {
  font-family: var(--font-numeric);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-highlight);
}

.sched-series-line.is-burgundy {
  color: #EA8F8F;
}

.sched-title {
  margin-top: 4px;
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.sched-params {
  margin-top: 6px;
  font-family: var(--font-brand);
  font-size: 13.5px;
  line-height: 1.38;
  color: var(--text-secondary);
}

.sched-params span.nowrap {
  white-space: nowrap;
}

/* Крупный объёмный слот трофея справа в карточке Афиши */
.sched-emblem-col {
  width: 124px;
  height: 124px;
  margin-right: -8px;
  margin-top: -6px;
  align-self: center;
}

.sched-footer-row {
  grid-column: 1 / 4;
  margin-top: 4px;
  padding-block: 3px;
  border-top: 1px solid rgba(244, 241, 236, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 3;
}

.sched-seats {
  font-family: var(--font-numeric);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sched-seats strong {
  color: var(--text-primary);
  font-weight: 700;
}

.sched-seats.is-full strong {
  color: var(--burgundy-bright);
}

.sched-action-btn {
  min-height: 44px;
  padding: 4px 0 4px 10px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brushed-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sched-action-btn.is-registered {
  color: var(--text-primary);
}

.sched-action-btn.is-registered .check-mark {
  color: var(--brushed-gold);
}

.sched-action-btn.is-waitlist {
  color: #EA8F8F;
}

.empty-filter-state {
  padding: 36px var(--gutter);
  text-align: center;
  border-radius: var(--radius-lg);
  background-color: var(--obsidian-surface);
  border: 1px solid var(--hairline-dark);
}

.empty-filter-title {
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.empty-filter-desc {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-secondary);
}

.empty-reset-btn {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
  color: var(--brushed-gold);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   ЭКРАН 3: ЖИВОЙ ТУРНИР («В ЗАЛЕ» + ИНТЕГРАЦИЯ МЕНЮ БАРА И КУХНИ ONETABLE)
   ========================================================================== */
.live-clock-panel {
  position: relative;
  margin: 12px var(--gutter) 0;
  padding: 15px 16px 14px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(88% 112% at 83% 50%, rgba(160, 71, 71, 0.48) 0%, rgba(160, 71, 71, 0.16) 50%, rgba(20, 18, 18, 0.98) 84%),
    linear-gradient(180deg, #1B1515 0%, #131111 100%);
  border-left: 2px solid var(--brushed-gold);
  border-top: 1px solid rgba(216, 162, 94, 0.24);
  border-right: 1px solid rgba(160, 71, 71, 0.22);
  border-bottom: 1px solid var(--hairline-dark);
  overflow: hidden;
}

.live-clock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  align-items: center;
  gap: 8px;
}

.live-clock-info {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.live-emblem-slot {
  width: 156px;
  height: 156px;
  margin-right: -6px;
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-level-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-numeric);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #E88B8B;
  white-space: nowrap;
}

.live-event-title {
  margin-top: 4px;
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.live-countdown {
  margin-top: 7px;
  font-family: var(--font-numeric);
  font-size: 48px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.live-blinds-now {
  margin-top: 7px;
  font-family: var(--font-numeric);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brushed-gold);
  white-space: nowrap;
}

.live-blinds-ante {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.live-next-level {
  margin-top: 5px;
  font-family: var(--font-brand);
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--text-secondary);
  white-space: nowrap;
}

.live-level-bar {
  margin-top: 12px;
  width: 100%;
  height: 3px;
  border-radius: 1px;
  background-color: var(--brand-charcoal);
  overflow: hidden;
}

.live-level-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--deep-burgundy) 0%, var(--brushed-gold) 100%);
  transition: width 1s linear;
}

/* 3 крупные колонки сводки турнира (без количества столов) */
.live-kpi-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  background-color: var(--obsidian-void);
}

.live-kpi-cell {
  padding: 14px var(--gutter);
  border-right: 1px solid var(--hairline-dark);
}

.live-kpi-cell:last-child {
  border-right: none;
}

.live-kpi-label {
  display: block;
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--text-muted);
}

.live-kpi-val {
  display: block;
  margin-top: 4px;
  font-family: var(--font-numeric);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Посадочный талон и блок заказа меню к столу (OneTable) */
.boarding-pass {
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(216, 162, 94, 0.08) 0%, rgba(20, 18, 18, 0) 48%),
    var(--obsidian-surface);
  border-left: 2px solid var(--brushed-gold);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.pass-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.pass-title-inline {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
  color: var(--brushed-gold);
}

.pass-status {
  font-family: var(--font-numeric);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pass-seats-grid {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline-dark);
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1.25fr;
  align-items: center;
  gap: 12px;
}

.pass-v-rule {
  width: 1px;
  height: 40px;
  background-color: var(--hairline-dark);
}

.pass-metric-label {
  display: block;
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--text-muted);
}

.pass-metric-value {
  display: block;
  margin-top: 2px;
  font-family: var(--font-numeric);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.pass-metric-value.is-gold {
  color: var(--brushed-gold);
}

.pass-metric-stack {
  display: block;
  margin-top: 4px;
  font-family: var(--font-numeric);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.pass-actions-stack {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-order-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background-color: rgba(216, 162, 94, 0.11);
  border-left: 2px solid var(--brushed-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  animation: stagger-rise 280ms var(--ease-chronograph);
}

.table-order-banner span.eta {
  font-family: var(--font-numeric);
  font-weight: 700;
  color: var(--brushed-gold);
  white-space: nowrap;
}

/* ==========================================================================
   ЭКРАН 4: РЕЙТИНГ С ПОРТРЕТНЫМИ АВАТАРКАМИ
   ========================================================================== */
.rating-personal-summary {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--hairline-dark);
  background-color: var(--obsidian-void);
}

.rating-my-pos-label {
  display: block;
  font-family: var(--font-numeric);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rating-my-pos-num {
  display: block;
  margin-top: 2px;
  font-family: var(--font-numeric);
  font-size: 46px;
  font-weight: 700;
  line-height: 0.92;
  color: var(--brushed-gold);
}

.rating-v-divider {
  width: 1px;
  height: 50px;
  background-color: var(--brand-charcoal);
}

.rating-my-pts-line {
  font-family: var(--font-numeric);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.rating-my-pts-line span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 4px;
}

.rating-my-gap {
  margin-top: 4px;
  font-family: var(--font-numeric);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.rating-my-gap strong {
  color: var(--text-primary);
  font-weight: 700;
}

.rating-table-head {
  display: grid;
  grid-template-columns: 28px 42px 1fr 56px 28px;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--hairline-dark);
  font-family: var(--font-numeric);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rating-row {
  display: grid;
  grid-template-columns: 28px 42px 1fr 56px 28px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--hairline-dark);
  transition: background-color 160ms ease;
}

.rating-row:hover {
  background-color: #121010;
}

.rating-row.is-you {
  background-color: #1A1614;
  border-left: 2px solid var(--brushed-gold);
  padding-left: calc(var(--gutter) - 2px);
}

.r-rank {
  font-family: var(--font-numeric);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
}

.r-rank.is-top {
  color: var(--brushed-gold);
}

.r-avatar {
  width: 42px;
  height: 42px;
}

.r-player-identity {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

.r-player-link {
  min-height: 44px;
}

.r-player {
  min-width: 0;
}

.r-player-name {
  display: block;
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.r-player-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--text-secondary);
}

.rating-row.is-you .r-player-sub {
  color: var(--brushed-gold);
  font-weight: 700;
}

.r-points {
  text-align: right;
  font-family: var(--font-numeric);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.r-delta {
  text-align: right;
  font-family: var(--font-numeric);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.r-delta.is-up {
  color: var(--brushed-gold);
}

.r-delta.is-down {
  color: var(--burgundy-bright);
}

/* ==========================================================================
   ЭКРАН 5: ПРОФИЛЬ, МЕТАЛЛИЧЕСКАЯ КАРТА И ИГРОВАЯ СТАТИСТИКА
   ========================================================================== */
.member-card-stage {
  padding: 18px var(--gutter) 0;
  perspective: 1200px;
}

.member-card-flipper {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  transform-style: preserve-3d;
  transition: transform 540ms var(--ease-chronograph);
  cursor: pointer;
}

.member-card-flipper.is-flipped {
  transform: rotateY(180deg);
}

.member-card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(216, 162, 94, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(236, 197, 134, 0.36),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 18px 40px rgba(0, 0, 0, 0.7);
}

.member-card-front {
  background:
    radial-gradient(circle at var(--glare-x, 24%) var(--glare-y, 18%), rgba(236, 197, 134, 0.2) 0%, rgba(216, 162, 94, 0.05) 36%, transparent 65%),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px),
    linear-gradient(145deg, #221E1C 0%, #131110 52%, #0B0A0A 100%);
}

.member-card-front::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -50%;
  width: 38%;
  height: 160%;
  background: linear-gradient(
    105deg,
    rgba(236, 197, 134, 0) 0%,
    rgba(236, 197, 134, 0.16) 50%,
    rgba(236, 197, 134, 0) 100%
  );
  transform: skewX(-22deg);
  animation: gold-shimmer 7s var(--ease-shimmer) infinite;
  pointer-events: none;
}

.member-card-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(216, 162, 94, 0.14) 0%, transparent 60%),
    linear-gradient(160deg, #1B1817 0%, #0E0C0C 100%);
}

.mcard-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-numeric);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brushed-gold);
}

.mcard-center-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

.mcard-logo-svg {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
}

.mcard-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.mcard-holder-label {
  display: block;
  font-family: var(--font-numeric);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mcard-holder-name {
  display: block;
  margin-top: 1px;
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.mcard-flip-hint {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-highlight);
}

.mcard-qr-layout {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 16px;
  margin: auto 0;
}

.qr-frame {
  width: 118px;
  height: 118px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background-color: #F4F1EC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-info-title {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.qr-info-desc {
  margin-top: 4px;
  font-family: var(--font-brand);
  font-size: 13px;
  line-height: 1.38;
  color: var(--text-secondary);
}

.qr-token-timer {
  margin-top: 10px;
  font-family: var(--font-numeric);
  font-size: 14px;
  font-weight: 700;
  color: var(--brushed-gold);
}

.card-mode-switch {
  margin: 14px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--brand-charcoal);
  border-radius: var(--radius-sm);
  background-color: var(--obsidian-surface);
  overflow: hidden;
}

.card-mode-btn {
  height: 42px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: background-color 160ms ease, color 160ms ease;
}

.card-mode-btn.is-active {
  background-color: var(--obsidian-elevated);
  color: var(--brushed-gold);
  box-shadow: inset 0 -2px 0 var(--brushed-gold);
}

/* Приборная сетка игровой статистики резидента (6 метрик без коробок-в-коробках) */
.player-stats-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  background-color: var(--obsidian-surface);
}

.pstat-cell {
  padding: 14px 12px;
  border-right: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  text-align: center;
}

.pstat-cell:nth-child(3n) {
  border-right: none;
}

.pstat-cell:nth-child(n+4) {
  border-bottom: none;
}

.pstat-label {
  display: block;
  font-family: var(--font-brand);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.pstat-value {
  display: block;
  margin-top: 5px;
  font-family: var(--font-numeric);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.pstat-value.is-gold {
  color: var(--brushed-gold);
}

.pstat-value.is-burgundy {
  color: #E88B8B;
}

.pstat-sub {
  display: block;
  margin-top: 5px;
  font-family: var(--font-brand);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

/* График игровой формы (Последние 8 турниров) */
.form-chart-panel {
  padding: 16px var(--gutter) 18px;
  background-color: var(--obsidian-surface);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.form-bars-row {
  margin-top: 12px;
  height: 92px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 8px;
}

.form-bar-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.form-bar-pts {
  font-family: var(--font-numeric);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-bar-col.is-win .form-bar-pts {
  color: var(--brushed-gold);
}

.form-bar-fill {
  width: 100%;
  border-radius: 2px 2px 0 0;
  background-color: var(--brand-charcoal);
  transform-origin: bottom center;
  animation: bar-grow-y 640ms var(--ease-chronograph) both;
  animation-delay: calc(var(--b, 0) * 55ms);
}

.form-bar-col.is-itm .form-bar-fill {
  background: linear-gradient(180deg, #A04747 0%, #632828 100%);
}

.form-bar-col.is-win .form-bar-fill {
  background: linear-gradient(180deg, #ECC586 0%, #D8A25E 65%, #9B692D 100%);
}

.form-bar-date {
  font-family: var(--font-numeric);
  font-size: 13px;
  color: var(--text-muted);
}

/* Коллекция достижений в профиле игрока */
.ach-collection {
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-md);
  background-color: var(--obsidian-surface);
}

.ach-summary {
  display: block;
  padding: 12px;
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
}

.ach-summary::-webkit-details-marker {
  display: none;
}

.ach-summary-heading,
.ach-summary-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ach-summary-heading {
  justify-content: space-between;
}

.ach-summary-meta {
  color: var(--brushed-gold);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ach-collection[open] .ach-chevron {
  transform: rotate(180deg);
}

.ach-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ach-collection[open] .ach-preview {
  display: none;
}

.ach-badge {
  display: block;
  object-fit: contain;
  max-width: 100%;
}

.ach-badge.is-locked {
  filter: saturate(0.2) brightness(0.56);
  opacity: 0.75;
}

.ach-empty,
.ach-more {
  color: var(--text-secondary);
  font-size: 12px;
}

.ach-groups {
  display: grid;
  gap: 14px;
  padding: 0 12px 12px;
}

.ach-group-title {
  padding: 8px 0;
  border-top: 1px solid var(--hairline-dark);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.ach-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 6px 3px;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-xs);
  text-align: center;
}

.ach-summary:hover,
.ach-tile:hover {
  background-color: var(--obsidian-raised);
}

.ach-tile-title {
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.2;
}

.ach-tile-status {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 12px;
}

.ach-tile-status.is-earned {
  color: var(--brushed-gold);
}

.ach-sheet-series-tag {
  color: var(--text-secondary);
  font-size: 13px;
}

.ach-detail-hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.ach-detail-description {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.ach-detail-progress {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.ach-detail-progress-label,
.ach-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ach-detail-progress-label {
  color: var(--text-secondary);
  font-size: 13px;
}

.ach-detail-progress-label strong {
  color: var(--gold-highlight);
  white-space: nowrap;
}

.ach-progress-fill {
  height: 100%;
  background-color: var(--brushed-gold);
}

.ach-detail-nav button {
  min-height: 44px;
}

.player-profile-achievements {
  margin-top: 18px;
}

.privileges-list,
.history-list {
  border-top: 1px solid var(--hairline-dark);
}

.priv-row,
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--hairline-dark);
}

.history-results-btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  text-align: left;
}

.history-results-btn .history-title,
.history-results-btn .history-sub {
  display: block;
}

.history-results-btn > svg {
  color: var(--brushed-gold);
}

.history-results-btn:hover,
.history-results-btn:focus-visible {
  background-color: var(--obsidian-raised);
}

.priv-title,
.history-title {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.priv-sub,
.history-sub {
  margin-top: 2px;
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--text-secondary);
}

.priv-status {
  font-family: var(--font-numeric);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brushed-gold);
  white-space: nowrap;
}

.history-right {
  text-align: right;
  flex-shrink: 0;
}

.history-pts {
  display: block;
  font-family: var(--font-numeric);
  font-size: 17px;
  font-weight: 700;
  color: var(--brushed-gold);
}

.history-ko {
  display: block;
  margin-top: 2px;
  font-family: var(--font-brand);
  font-size: 13px;
  color: #E88B8B;
}

/* ==========================================================================
   ПОЛНОШИРИННЫЙ НИЖНИЙ ТАББАР С ПЛАВНОЙ ЗОЛОТОЙ РИСКОЙ
   ========================================================================== */
.bottom-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--tabbar-height);
  padding: 0 10px;
  background-color: #110F0F;
  border-top: 1px solid var(--hairline-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 40;
}

@media (min-width: 480px) {
  .bottom-tabbar {
    width: 390px;
    border-left: 1px solid var(--hairline-dark);
    border-right: 1px solid var(--hairline-dark);
  }
}

.tabbar-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text-muted);
  transition: color 180ms ease, transform 120ms ease;
}

.tabbar-btn:active {
  transform: scale(0.95);
}

.tabbar-btn:hover {
  color: var(--text-secondary);
}

.tabbar-btn.is-active {
  color: var(--text-primary);
}

.tabbar-btn.is-active svg {
  color: var(--brushed-gold);
}

.tabbar-btn.is-active::before {
  content: '';
  position: absolute;
  top: -1px;
  width: 32px;
  height: 2px;
  background-color: var(--brushed-gold);
  animation: bar-grow-x 220ms var(--ease-chronograph);
}

.tabbar-label {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.tab-live-dot {
  position: absolute;
  top: 10px;
  right: calc(50% - 16px);
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background-color: var(--deep-burgundy);
}

/* ==========================================================================
   МОДАЛЬНЫЕ ШТОРКИ: МЕНЮ БАРА И КУХНИ (ONETABLE) И ДЕТАЛИ ТУРНИРА
   ========================================================================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(5, 4, 4, 0.82);
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in 160ms ease;
}

.sheet-backdrop.is-open {
  display: flex;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bottom-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 88dvh;
  overflow-y: auto;
  background-color: #181515;
  border-top: 1px solid var(--gold-border);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: 16px var(--gutter) 26px;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.85);
  animation: sheet-up 260ms var(--ease-chronograph);
}

@media (min-width: 480px) {
  .bottom-sheet {
    width: 390px;
  }
}

@keyframes sheet-up {
  from { transform: translateY(32px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-handle {
  width: 36px;
  height: 3px;
  background-color: var(--brand-charcoal);
  margin: 0 auto 14px;
}

.sheet-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sheet-title {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.sheet-subtitle {
  margin-top: 4px;
  font-family: var(--font-numeric);
  font-size: 15px;
  color: var(--brushed-gold);
  font-weight: 700;
}

.sheet-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--brand-charcoal);
  background-color: var(--obsidian-raised);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-cat-tabs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.m-cat-btn {
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-charcoal);
  background-color: var(--obsidian-surface);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.m-cat-btn.is-active {
  border-color: var(--brushed-gold);
  background-color: rgba(216, 162, 94, 0.14);
  color: var(--text-primary);
}

.menu-items-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item-row {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-dark);
  background-color: var(--obsidian-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-item-row.has-qty {
  border-color: var(--gold-border);
  background-color: #211C19;
}

.m-item-title {
  display: block;
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.m-item-note {
  display: block;
  margin-top: 2px;
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--text-secondary);
}

.m-item-price {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-numeric);
  font-size: 14px;
  font-weight: 700;
  color: var(--brushed-gold);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--brand-charcoal);
  background-color: var(--obsidian-raised);
  color: var(--text-primary);
  font-family: var(--font-numeric);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn.is-plus {
  border-color: var(--gold-border);
  color: var(--brushed-gold);
}

.qty-val {
  min-width: 18px;
  text-align: center;
  font-family: var(--font-numeric);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.sheet-cta-area {
  margin-top: 18px;
}

/* Детальная структура турнира в шторке */
.detail-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline-dark);
}

.detail-tournament-title {
  margin-top: 4px;
  font-size: 22px;
}

.detail-tournament-format {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 15px;
}

.detail-tournament-emblem {
  width: 104px;
  height: 104px;
}

.is-results-sheet {
  overscroll-behavior: contain;
}

.tournament-sheet-top-bar {
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.results-sheet-label {
  display: none;
  margin-right: auto;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.is-results-sheet .results-sheet-label {
  display: block;
}

.is-results-sheet .tournament-sheet-top-bar {
  position: sticky;
  top: -16px;
  z-index: 1;
  padding-block: 4px;
  background-color: #181515;
}

.results-personal {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-dark);
}

.results-personal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  margin-top: 12px;
}

.results-personal-stats > div + div {
  padding-left: 12px;
  border-left: 1px solid var(--hairline-dark);
}

.results-personal-stats dt,
.results-personal-stats dd span {
  color: var(--text-secondary);
  font-size: 13px;
}

.results-personal-stats dd {
  margin: 3px 0 0;
  color: var(--brushed-gold);
  font: 700 25px/1.1 var(--font-numeric);
}

.results-personal-stats dd span {
  font-weight: 500;
}

.results-standings {
  padding-top: 18px;
}

.results-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  text-align: left;
}

.results-table tr {
  border-bottom: 1px solid var(--hairline-dark);
}

.results-table th,
.results-table td {
  padding: 8px 6px;
}

.results-table thead th {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.results-table th:nth-child(n+3),
.results-table td:nth-child(n+3) {
  text-align: right;
}

.results-table td {
  font: 600 16px/1.2 var(--font-numeric);
}

.results-table tbody th {
  font-size: 13px;
  font-weight: 600;
}

.results-table .is-resident {
  background-color: rgba(216, 162, 94, 0.1);
}

.results-table .results-prize-divider td {
  padding-block: 7px;
  border-top: 1px solid var(--gold-border);
  color: var(--text-secondary);
  font: 500 12px/1.3 var(--font-brand);
  text-align: left;
}

.results-table tbody tr:first-child td:first-child,
.results-table .is-resident td:last-child {
  color: var(--brushed-gold);
}

.results-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-player img {
  flex: none;
  border-radius: 50%;
}

.results-player-link {
  width: 100%;
  text-align: left;
}

.r-player-link .r-player-name,
.results-player-link > span:last-child {
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
  text-underline-offset: 3px;
}

.r-player-link:hover .r-player-name,
.r-player-link:focus-visible .r-player-name,
.results-player-link:hover > span:last-child,
.results-player-link:focus-visible > span:last-child {
  color: var(--gold-highlight);
  text-decoration-color: currentColor;
}

.player-initials {
  display: grid;
  place-items: center;
  color: var(--gold-highlight);
  background: var(--obsidian-elevated);
}

.results-player-initials {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  font-size: 10px;
}

.results-player small {
  display: block;
  color: var(--brushed-gold);
  font-size: 11px;
}

.results-empty {
  margin-top: 12px;
  color: var(--text-secondary);
}

.player-profile-sheet,
.player-avatar-dialog {
  position: fixed;
  color: var(--text-primary);
  overscroll-behavior: contain;
}

.player-profile-sheet {
  inset: auto 0 0;
  margin: 0 auto;
  max-height: 88dvh;
  border: 0;
  border-top: 1px solid var(--gold-border);
}

.player-profile-sheet::backdrop,
.player-avatar-dialog::backdrop {
  background: rgba(5, 4, 4, 0.72);
}

.player-profile-top-bar {
  align-items: center;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.player-profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0 18px;
}

.player-profile-avatar {
  width: 88px;
  height: 88px;
  border-color: var(--gold-border);
  font: 700 30px/1 var(--font-numeric);
}

button.player-profile-avatar {
  cursor: zoom-in;
}

.player-profile-name {
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.player-profile-section {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 16px;
}

.player-profile-section + .player-profile-section {
  margin-top: 18px;
}

.player-profile-stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: 10px;
}

.player-profile-stats > div + div {
  border-left: 1px solid var(--hairline-dark);
  padding-left: 8px;
}

.player-profile-stats dt {
  color: var(--text-secondary);
  font-size: 12px;
}

.player-profile-stats dd {
  color: var(--gold-highlight);
  font: 700 23px/1.2 var(--font-numeric);
}

.player-avatar-dialog {
  inset: 0;
  width: min(312px, calc(100% - 32px), calc(100dvh - 32px));
  margin: auto;
  padding: 10px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  background: var(--obsidian-surface);
}

.player-avatar-dialog form {
  position: absolute;
  top: 16px;
  right: 16px;
}

.player-avatar-dialog img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

@media (max-width: 360px) {
  .results-table th,
  .results-table td {
    padding-inline: 4px;
  }

  .results-player {
    gap: 6px;
  }
}

.detail-specs-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-dark);
}

.levels-mini-table {
  margin-top: 12px;
  border-top: 1px solid var(--hairline-dark);
}

.lvl-row {
  display: grid;
  grid-template-columns: 56px 1fr 68px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline-dark);
  font-family: var(--font-numeric);
  font-size: 15px;
  color: var(--text-secondary);
}

.lvl-row strong {
  color: var(--text-primary);
}

.club-toast {
  position: fixed;
  bottom: calc(var(--tabbar-height) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: calc(100% - 32px);
  max-width: 358px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background-color: #1F1B19;
  border: 1px solid var(--brushed-gold);
  color: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms var(--ease-chronograph);
}

.club-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .btn-gold-cta::after,
  .member-card-front::after,
  .resident-hero-glint rect,
  .pulse-beacon,
  .emblem-3d-rig,
  .emblem-3d-stage::before {
    animation: none !important;
  }
  .stagger-in,
  .progress-fill,
  .form-bar-fill,
  .podium-step,
  .bottom-sheet,
  .member-card-flipper {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
