@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg-deep: #03070D;
  --bg: #050A12;
  --surface-1: #09131F;
  --surface-2: #0D1A2A;
  --surface-3: #112238;
  --surface-active: #152B43;

  --bg-gradient-app: linear-gradient(180deg, var(--surface-1) 0%, var(--bg) 40%, var(--bg-deep) 100%);

  --text: #F8FAFC;
  --text-dim: #9AA7B5;
  --text-faint: #687482;

  --brand-lime: #95FF19;
  --brand-lime-deep: #66B30F;
  --accent-cyan: #199FFF;

  --team-a: var(--brand-lime);
  --team-a-deep: var(--brand-lime-deep);
  --team-b: var(--accent-cyan);
  --team-b-deep: #0D6FCC;

  --gold: #FFC93D;
  --star: #FFA93D;
  --danger: #FF5B61;
  --success: var(--brand-lime);
  --confirm-green: #2ECC71;

  --line: rgba(183,211,235,0.14);
  --line-strong: rgba(183,211,235,0.24);
  --scrim: rgba(1,5,10,0.78);

  --ink: var(--bg);
  --ink-soft: var(--surface-1);
  --ink-softer: var(--surface-2);
  --paper: var(--text);
  --paper-dim: var(--text-dim);
  --paper-faint: var(--text-faint);

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-card: 16px;
  --radius-hero: 18px;
  --radius-control: 12px;
  --radius-pill: 999px;

  --motion-fast: 160ms;
  --motion-base: 220ms;
  --motion-ease: cubic-bezier(0.32, 0.72, 0, 1);

  --home-anim-level: 750ms;
  --home-anim-activity: 750ms;
  --home-anim-ease: ease-out;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --bottomnav-h: 0px;
}
@media (prefers-reduced-motion: reduce){
  :root{
    --motion-fast: 1ms; --motion-base: 1ms;
    --home-anim-level: 1ms; --home-anim-activity: 1ms;
  }
}

*{ box-sizing: border-box; }
[hidden]{ display: none !important; }

#app-splash{
  position: fixed; inset: 0; z-index: 9999;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:
    radial-gradient(
      circle at 50% 38%,
      var(--surface-2) 0%,
      var(--surface-1) 38%,
      var(--bg) 72%,
      var(--bg-deep) 100%
    );
  pointer-events: none;
  animation: app-splash-out 1.5s ease forwards;
}
.app-splash__logo{ width: 260px; height: auto; opacity: 1; }
@keyframes app-splash-out{
  0%, 58% { opacity: 1; }
  92% { opacity: 0; }
  100% { opacity: 0; visibility: hidden; }
}

.brand-logo{ display:block; height: auto; }
.brand-logo--header{ height: 24px; width: auto; }
.brand-logo--footer{ height: 18px; width: auto; margin: 18px auto 0; opacity: 0.55; }
.brand-logo--access{ height: 30px; width: auto; margin: 4px auto 22px; }
.brand-logo--match-header{ height: 15px; width: auto; flex: none; cursor:pointer; }
.brand-logo--match-header:active{ opacity: 0.7; }

html,body{
  margin:0; padding:0; height:100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button{ font-family: inherit; color: inherit; }
h1,h2,h3,h4{ margin:0; }
input, select{ font-family: inherit; }

.view{ min-height: 100vh; min-height: 100dvh; width: 100%; }
#view-player-home{ background: linear-gradient(180deg, #08121E 0%, var(--bg) 45%, var(--bg-deep) 100%); }

.btn-mini{
  background: var(--brand-lime); color:#1A1400; border:none; border-radius: 999px;
  padding: 8px 14px; font-weight:800; font-size: 12px; letter-spacing:0.06em; cursor:pointer; white-space:nowrap;
  text-transform: uppercase;
}

.link-btn{ background:none; border:none; color: var(--paper-dim); font-size: 13px; font-weight:700; text-decoration: underline; cursor:pointer; }

.team-block{
  background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 14px 16px 16px; border-left: 4px solid var(--team-a);
}
.team-block--b{ border-left-color: var(--team-b); }
.team-block__label{
  display:flex; align-items:center; gap:8px; font-size: 12px; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--paper-dim); margin-bottom: 10px; font-weight: 700;
}
.team-dot{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.team-dot--a{ background: var(--team-a); box-shadow: 0 0 10px var(--team-a); }
.team-dot--b{ background: var(--team-b); box-shadow: 0 0 10px var(--team-b); }
.field + .field{ margin-top: 8px; }
.field__input{
  width:100%; background: transparent; border: none; border-bottom: 2px solid var(--line);
  color: var(--paper); font-size: 16px; font-weight: 700; padding: 7px 2px; outline: none;
  transition: border-color .15s ease;
}
.field__input::placeholder{ color: var(--paper-dim); font-weight: 500; }
.field__input:focus{ border-bottom-color: var(--team-a); }
.team-block--b .field__input:focus{ border-bottom-color: var(--team-b); }

.vs-divider{ display:flex; align-items:center; gap: 10px; margin: -2px 0; }
.vs-divider__line{ flex:1; height:1px; background: linear-gradient(90deg, var(--team-a), var(--line) 40%, var(--line) 60%, var(--team-b)); opacity:0.4; }
.vs-divider__text{ font-family: var(--font-display); font-size: 15px; font-weight:700; letter-spacing: 0.18em; color: var(--paper); background: var(--ink-softer); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); }

.setup-section__title{ font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-dim); font-weight: 700; margin-bottom: 8px; }

.option-row{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.option-col{
  display:flex; align-items:center; justify-content:center; min-height: 48px;
  background: var(--ink-soft); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 4px; font-weight: 800; font-size: 12px; letter-spacing: 0.03em; text-align:center;
  cursor:pointer; transition: border-color .15s ease, background .15s ease;
}
.option-col.is-selected{ border-color: var(--brand-lime); background: rgba(149,255,25,0.10); color: var(--brand-lime); }
.option-col.is-disabled{ opacity: 0.35; cursor: not-allowed; }
.option-col.is-disabled.is-selected{ border-color: var(--line); background: var(--ink-soft); color: inherit; }

.option-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option-pill{
  display:flex; flex-direction:column; align-items:flex-start; gap: 2px; text-align:left;
  background: var(--ink-soft); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 14px; cursor:pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.option-pill:active{ transform: scale(0.98); }
.option-pill__title{ font-weight: 800; font-size: 14px; }
.option-pill__hint{ font-size: 11px; color: var(--paper-dim); }
.option-pill.is-selected{ border-color: var(--brand-lime); background: rgba(149,255,25,0.09); }
.option-pill.is-selected .option-pill__title{ color: var(--brand-lime); }

#etb-preset-options.option-grid{ gap: 10px; }
#etb-preset-options .option-pill{ align-items:center; justify-content:center; text-align:center; min-height: 52px; }
#etb-custom-section{ margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
#etb-custom-section .edit-row{ margin-bottom: 12px; }

.btn-start{
  margin-top: 10px; min-height: 48px; padding: 0 18px; border: none; border-radius: 14px; background: var(--brand-lime);
  color: #1A1400; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.05em; cursor:pointer; box-shadow: 0 10px 24px rgba(149,255,25,0.22);
  transition: transform .1s ease, box-shadow .1s ease, opacity .15s ease; text-transform: uppercase;
  display:flex; align-items:center; justify-content:center;
}
.btn-start:active{ transform: scale(0.98); }
.btn-start:disabled{ opacity:0.4; cursor:not-allowed; box-shadow:none; }
.btn-start--overlay{ width: 100%; margin-top: 4px; }
.btn-secondary{
  background: var(--ink-softer); color: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; min-height: 48px; padding: 0 18px; font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  flex: 1;
}
.btn-secondary--accent{ background: rgba(25,159,255,0.10); border-color: rgba(25,159,255,0.45); color: var(--accent-cyan); }
.btn-ghost{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  width:100%; min-height: 48px; background: transparent; color: var(--brand-lime);
  border: 1.5px solid rgba(149,255,25,0.35); border-radius: 14px; padding: 8px 16px; cursor:pointer;
}
.btn-ghost__label{ font-weight: 800; font-size: 13px; letter-spacing: 0.02em; }
.manual-field-label{ display:flex; align-items:center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 4px; }
.manual-field-icon{ flex:none; color: var(--paper-dim); }
.manual-datetime-row{ display:flex; flex-wrap: nowrap; gap: 0; }
.manual-datetime-row .field{ flex: 1; min-width: 0; }
.manual-datetime-row .field + .field{ margin-top: 0; }
.manual-datetime-row .field__input{ box-sizing: border-box; height: 38px; }
.manual-datetime-row{ border: 1px solid var(--court-line); border-radius: 12px; background: var(--court-surface-2); padding: 8px 12px 6px; }
.manual-datetime-row .field + .field{ border-left: 1px solid var(--court-line); padding-left: 12px; margin-left: 12px; }
.manual-datetime-row .manual-field-label{ margin-bottom: 2px; }
.manual-datetime-row .field__input{
  -webkit-appearance: none; appearance: none; border: none; background: transparent; padding: 0; margin: 0;
  width: 100%; min-width: 0; text-align: left; line-height: 38px; color: var(--paper); font-variant-numeric: tabular-nums;
}
.manual-datetime-row .field__input::-webkit-date-and-time-value{ text-align: left; min-height: 38px; margin: 0; }
.manual-datetime-row .field__input:focus{ outline: none; box-shadow: none; }
.manual-datetime-row:focus-within{ border-color: var(--brand-lime); }
.manual-place-row{ display:flex; align-items:center; gap: 8px; }
.manual-place-row .field__input{ flex:1; min-width:0; }
.manual-place-row .manual-location-btn{ margin-top: 0; flex:none; white-space:nowrap; }
.manual-field--time{ position: relative; }
.manual-time-clear-icon{
  position:absolute; right: -4px; bottom: 6px; background:none; border:none; color: var(--paper-dim);
  font-size: 16px; line-height:1; padding: 4px 6px; cursor:pointer;
}
.manual-time-clear-icon:active{ color: var(--paper); }
.manual-location-btn{
  display:inline-flex; align-items:center; gap: 6px; margin-top: 10px; padding: 8px 12px;
  background: var(--court-surface-2); color: var(--court-text-dim); border: 1px solid var(--court-line);
  border-radius: 999px; font-weight:700; font-size: 12px; cursor:pointer;
}
.manual-location-btn:active{ border-color: var(--paper-dim); }
#manual-meta-sheet{ padding-top: 20px; padding-bottom: calc(28px + var(--safe-bottom)); }
#manual-meta-sheet .manual-field-label{ font-size: 10px; margin-bottom: 6px; }
#manual-meta-sheet .field__input{ font-size: 14px; }
#manual-meta-sheet .manual-datetime-row{ margin-bottom: 16px; }


.toast{
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translate(-50%, 12px);
  background: var(--paper); color: var(--ink); font-weight: 800; font-size: 13px; padding: 10px 18px;
  border-radius: 18px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 40;
  width: max-content; max-width: calc(100vw - 32px); white-space: normal; text-align: center; line-height: 1.35;
  display:flex; align-items:center; gap: 12px;
}
.toast.is-visible{ opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.is-danger{ background: var(--danger); color: var(--paper); }

.overlay{ position: fixed; inset: 0; background: var(--scrim); display:flex; align-items:center; justify-content:center; z-index: 36; padding: 20px; }
#confirm-overlay{ z-index: 50; }
.overlay__card{ background: var(--ink-soft); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; text-align:center; max-width: 380px; width: 100%; }
.overlay__card--wide{ max-width: 460px; text-align:left; }
.overlay__card--scroll{ max-height: 85vh; overflow-y: auto; }
.overlay__title{ font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.03em; color: var(--brand-lime); margin-bottom: 10px; text-align:center; }
.overlay__text{ color: var(--paper-dim); font-size: 13px; margin: 0 0 16px; }
.overlay__actions{ display:flex; gap: 10px; margin-top: 6px; }
.overlay__actions--stacked{ flex-direction: column; }
.overlay__actions:not(.overlay__actions--stacked) > button{ font-size: 12px; }
.overlay__title-row{ display:flex; align-items:center; justify-content:center; position:relative; margin-bottom: 10px; }
.overlay__title-row .overlay__title{ margin-bottom: 0; }
.overlay__close-x{ position:absolute; right:0; top:50%; transform:translateY(-50%); background: var(--ink-softer); border:none; color: var(--paper-dim); width:30px; height:30px; border-radius:50%; font-size:14px; cursor:pointer; }
.overlay__close-x:active{ color: var(--paper); }

.overlay--menu{ align-items:flex-start; justify-content:flex-end; padding: calc(50px + var(--safe-top)) 14px 0 0; background: rgba(0,0,0,0.4); }
.menu-sheet{ background: var(--ink-soft); border: 1px solid var(--line); border-radius: 14px; overflow:hidden; min-width: 210px; }
.menu-item{ display:block; width:100%; text-align:left; background:none; border:none; color: var(--paper); padding: 14px 16px; font-size: 14px; font-weight: 700; cursor:pointer; border-bottom: 1px solid var(--line); }
.menu-item:last-child{ border-bottom:none; }
.menu-item--danger{ color: var(--danger); }
.menu-item--cancel{ color: var(--paper-dim); }
.menu-sheet__title{ padding: 12px 16px 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--paper-faint); text-transform: uppercase; }
.menu-sep{ height: 1px; background: var(--line); }

.edit-field{ margin-bottom: 16px; }
.edit-field__label{ font-size: 12px; font-weight: 800; color: var(--paper-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.edit-row{ display:flex; align-items:center; gap: 10px; flex-wrap: wrap; }
.edit-row__sep{ color: var(--paper-dim); font-weight: 700; }
.edit-row__label{ font-size: 12px; color: var(--paper-dim); flex: none; }
.edit-select{ background: var(--ink-softer); border: 1px solid var(--line); border-radius: 8px; color: var(--paper); font-size: 14px; font-weight: 700; padding: 8px; flex: 1; min-width: 100px; }
.edit-chip-list{ display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 10px; }
.edit-chip{ display:flex; align-items:center; gap: 8px; background: var(--ink-softer); border-radius: 999px; padding: 6px 8px 6px 14px; font-family: var(--font-display); font-size: 14px; font-weight:700; }
.edit-chip__remove{ background: rgba(255,91,84,0.2); color: var(--danger); border:none; border-radius:50%; width:20px; height:20px; font-size:12px; cursor:pointer; line-height:1; }
.edit-add-set-row{ display:flex; gap: 8px; }
.stepper-btn{ background: var(--ink-softer); border: 1px solid var(--line); color: var(--paper); width: 34px; height: 34px; border-radius: 8px; font-size: 18px; font-weight: 700; cursor:pointer; }
.stepper-btn:disabled{ opacity: 0.3; cursor:not-allowed; }
.stepper-value{ min-width: 30px; text-align:center; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.edit-error{ color: var(--danger); font-size: 12px; font-weight: 700; margin: -6px 0 12px; }

.field--invalid .field-label{ color: var(--danger); }
.field--invalid .field__input{ border-bottom-color: var(--danger); }
.field__hint--error{ color: var(--danger); font-size: 12px; font-weight: 700; margin: 6px 0 0; }
.overlay__text--note{ color: var(--brand-lime); background: rgba(149,255,25,0.08); border: 1px solid rgba(149,255,25,0.25); border-radius: 10px; padding: 8px 10px; margin-top: -8px; }

.point-track-label{ font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-dim); margin: 10px 0 6px; }
.point-track-label--a{ color: var(--team-a); }
.point-track-label--b{ color: var(--team-b); }
.point-track{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.point-track__stop{
  background: var(--ink-softer); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 4px; font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--paper-dim); cursor:pointer; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.point-track__stop.is-selected{ border-color: var(--brand-lime); background: rgba(149,255,25,0.12); color: var(--brand-lime); }
#edit-points-special{ margin-top: 4px; }

#adjust-body .point-track__stop.is-selected[data-team="A"]{ border-color: var(--team-a); background: rgba(149,255,25,0.14); color: var(--team-a); }
#adjust-body .point-track__stop.is-selected[data-team="B"]{ border-color: var(--team-b); background: rgba(25,159,255,0.14); color: var(--team-b); }

.point-track--games{ grid-template-columns: repeat(7, 1fr); }
#games-editor-cur-track-a .point-track__stop.is-selected{ border-color: var(--team-a); background: rgba(149,255,25,0.14); color: var(--team-a); }
#games-editor-cur-track-b .point-track__stop.is-selected{ border-color: var(--team-b); background: rgba(25,159,255,0.14); color: var(--team-b); }
#adjust-body .option-pill.is-selected[data-lead="A"]{ border-color: var(--team-a); background: rgba(149,255,25,0.10); }
#adjust-body .option-pill.is-selected[data-lead="A"] .option-pill__title{ color: var(--team-a); }
#adjust-body .option-pill.is-selected[data-lead="B"]{ border-color: var(--team-b); background: rgba(25,159,255,0.10); }
#adjust-body .option-pill.is-selected[data-lead="B"] .option-pill__title{ color: var(--team-b); }
#adjust-body .option-pill.is-selected[data-lead="none"]{ border-color: var(--paper); background: rgba(244,247,242,0.10); }
#adjust-body .option-pill.is-selected[data-lead="none"] .option-pill__title{ color: var(--paper); }
#edit-points-special-back{ display:block; margin-top: 10px; }

.quick-correction-team{ margin-bottom: 16px; }
.quick-correction-team__name{ font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.quick-correction-team--a .quick-correction-team__name{ color: var(--team-a); }
.quick-correction-team--b .quick-correction-team__name{ color: var(--team-b); }
.quick-correction-full-link{ display:block; text-align:center; margin-top: 14px; }

.server-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.server-radio{ background: var(--ink-softer); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; font-weight:700; text-align:center; cursor:pointer; }
.server-radio.is-selected{ border-color: var(--brand-lime); color: var(--brand-lime); background: rgba(149,255,25,0.08); }
.server-radio__hint{ font-size: 10px; opacity: 0.6; display:block; }

.summary-undo-btn{
  display:block; margin: 0 auto 14px; background:none; border:none; color: var(--paper-dim);
  font-size: 12px; text-decoration: underline; cursor:pointer;
}
.analysis-meta{ font-size: 11px; color: var(--paper-faint); letter-spacing:0.02em; margin: 0 0 14px; padding: 0 2px; text-align: center; }
.analysis-meta__line{ line-height:1.5; }
.analysis-meta__line:first-child{ color: var(--paper-dim); }

.winners-banner{ text-align:center; margin-bottom: 14px; }
.result-card__winners{ font-size: 11px; letter-spacing:0.03em; text-transform:uppercase; color: var(--paper-dim); font-weight:700; margin-bottom: 2px; }
.result-card__winners-names{ font-size: 22px; font-weight: 800; }
.result-card__winners-names--a{ color: var(--team-a); }
.result-card__winners-names--b{ color: var(--team-b); }

.result-card{ background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 18px; text-align:left; }
.result-card__rows{ display:grid; grid-template-columns: minmax(0,1fr) auto; align-items:stretch; column-gap: 12px; }
.result-card__row{ display:contents; }
.result-card__name{ display:flex; align-items:center; font-weight: 800; font-size: 14px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding: 8px 0; }
.result-card__row[data-team="A"] .result-card__name{ color: var(--team-a); }
.result-card__row[data-team="B"] .result-card__name{ color: var(--team-b); }
.result-card__divider-row{ grid-column: 1 / -1; height: 1px; background: var(--line); }
.result-card__sets{ display:grid; grid-auto-flow:column; grid-auto-columns: 28px; gap: 6px; justify-content:end; align-items:center; padding: 8px 0; }
.result-card__set{ width: 28px; text-align:center; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size:18px; background: rgba(244,247,242,0.08); border-radius:6px; padding: 2px 4px; position:relative; color: var(--paper); opacity: 0.6; }
.result-card__set--win{ opacity: 1; background: rgba(244,247,242,0.14); }
.result-card__set--lose{ opacity: 0.6; }
.result-card__set.is-incomplete::after{ content:'*'; position:absolute; top:-2px; right:2px; font-size:10px; color: var(--brand-lime); }
.result-card__set--tb{ display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1.1; gap:1px; }
.result-card__set-tb-label{ font-size:8px; font-weight:800; letter-spacing:0.05em; color: var(--paper-dim); }
.result-card__set--tb.result-card__set--win .result-card__set-tb-label{ color: var(--gold); }
.result-card__durations{ display:flex; justify-content:flex-end; gap: 6px; font-size: 10px; color: var(--paper-faint); margin-bottom: 6px; }
.result-card__duration-cell{ min-width: 28px; text-align:center; }
.result-card__footer{ display:flex; justify-content: space-between; align-items:center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--paper-dim); }
.result-card__incomplete-note{ font-size: 11px; color: var(--brand-lime); margin-top: 8px; }
.result-card__duration-total{ margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); text-align:center; font-size: 12px; color: var(--paper-dim); font-weight: 700; }

.result-card__divider{ height: 1px; background: var(--line); margin: 14px 0; }
.result-card__stats{ display:flex; flex-direction:column; gap: 6px; }
.result-card__stats .bar-stat-row{ background: rgba(244,247,242,0.05); }

.summary-stat-row{ display:grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items:center; gap: 10px; min-height: 44px; background: var(--ink-soft); border-radius: 10px; padding: 11px 14px; }
.summary-stat-row__a{ text-align:left; color: var(--team-a); font-weight: 800; font-family: var(--font-display); font-size: 17px; line-height:1; }
.summary-stat-row__b{ text-align:right; color: var(--team-b); font-weight: 800; font-family: var(--font-display); font-size: 17px; line-height:1; }
.summary-stat-row__label{ text-align:center; font-size: 10px; color: var(--paper-dim); text-transform:uppercase; letter-spacing: 0.03em; line-height:1.3; }

.view--analysis, .view--history{ display:flex; flex-direction:column; height: 100vh; height:100dvh; background: var(--bg-gradient-app); }
.analysis-header, .player-home-header, .court-header{
  position: relative; z-index: 2;
  background: linear-gradient(180deg, var(--court-surface) 0%, var(--court-bg) 100%);
}
.analysis-header{ display:flex; align-items:center; gap: 12px; padding: calc(14px + var(--safe-top)) 18px 12px; border-bottom: 1px solid var(--line); }
.analysis-header__title{ font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.03em; color: var(--paper-dim); flex: 1 1 auto; }
.analysis-header__summary-btn{ flex: none; font-size: 11px; }
.analysis-scroll{ flex:1; overflow-y:auto; padding: 16px 18px calc(30px + var(--safe-bottom) + var(--bottomnav-h, 0px)); }
.analysis-section{ margin-bottom: 12px; }
#analysis-keymoments, #analysis-note-section{ margin-bottom: 16px; }
.analysis-delete-btn{
  display:block; width:100%; margin-top: 10px; background:none; border:none; padding: 10px 16px;
  color: var(--danger); font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.05em; text-transform: uppercase; text-align:center; cursor:pointer;
}
.analysis-section__title{ font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.03em; color: var(--paper-dim); margin-bottom: 10px; }
.intelligence-card{
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 14px 16px;
}
.intelligence-title{ display:flex; align-items:center; gap: 8px; color: var(--brand-lime); margin-bottom: 4px; }
.intelligence-title svg{ flex:none; }
.intelligence-frame{ font-size: 12px; color: var(--paper-faint); font-style: italic; margin: 0 0 12px; }
#analysis-intelligence-text p:last-child{ margin-bottom: 0; }
#summary-manual-intelligence{
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 14px 16px; text-align:left;
}
#summary-manual-intelligence::before{
  content: 'BRAMU INTELLIGENCE'; display:block; font-family: var(--font-display); font-weight:700;
  font-size: 10px; letter-spacing: 0.1em; color: var(--brand-lime); margin-bottom: 8px;
}
.analysis-subsection__title{ font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.03em; color: var(--paper-dim); margin: 14px 0 8px; }
.intelligence-text p{ font-size: 14px; line-height: 1.6; color: var(--paper); margin: 0 0 10px; }
.intelligence-insight + .intelligence-insight{ margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.intelligence-insight__title{ font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.01em; color: var(--paper); margin: 0 0 4px; }
.intelligence-insight__body{ margin-bottom: 6px; }
.intelligence-insight:last-child .intelligence-insight__body{ margin-bottom: 0; }
.intelligence-why{ margin-top: 2px; }
.intelligence-why summary{ font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--paper-faint); cursor: pointer; list-style: none; }
.intelligence-why summary::-webkit-details-marker{ display:none; }
.intelligence-why summary::before{ content: '+ '; }
.intelligence-why[open] summary::before{ content: '– '; }
.intelligence-why p{ font-size: 12px; line-height: 1.5; color: var(--paper-faint); margin: 6px 0 0; font-style: italic; }
.intelligence-why--grouped{ margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.intelligence-why__list{ list-style:none; margin: 6px 0 0; padding: 0; display:flex; flex-direction:column; gap: 10px; }
.intelligence-why__list li{ font-size: 12px; line-height: 1.5; color: var(--paper-faint); font-style: italic; }
.intelligence-why__list strong{ display:block; font-style: normal; font-weight: 700; color: var(--paper-dim); margin-bottom: 2px; }
.intelligence-state{ text-align:center; font-style: italic; color: var(--paper-faint); margin: 0; }
.intelligence-state--loading{ opacity: 0.7; }
.coverage-note{ font-size: 11px; color: var(--paper-faint); margin-top: 8px; font-style: italic; }
.coverage-note--center{ text-align:center; }

.score-line__dot{ font-size: 0.6em; font-weight: 500; color: var(--paper-dim); vertical-align: middle; }

.momentum-legend{ display:flex; flex-wrap:wrap; align-items:center; row-gap:6px; column-gap: 14px; margin-bottom: 6px; font-size: 11px; font-weight: 700; color: var(--paper-dim); }
.momentum-legend__item{ display:flex; align-items:center; gap: 6px; }
.momentum-legend__dot{ width:8px; height:8px; border-radius:50%; display:inline-block; }
.momentum-legend__dot--a{ background: var(--team-a); }
.momentum-legend__dot--b{ background: var(--team-b); }
.momentum-legend__symbols{ display:flex; flex-wrap:wrap; align-items:center; gap: 10px; margin-left:auto; font-weight:600; font-size: 10px; color: var(--paper-faint); }
.momentum-legend__symbol{ display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.momentum-legend__symbol svg{ display:block; overflow:visible; }
.momentum-untracked-sets{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom: 10px; }
.momentum-untracked-pill{
  font-size: 9px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--paper-dim); background: rgba(244,247,242,0.06);
  border: 1px dashed rgba(244,247,242,0.2); border-radius: 999px; padding: 4px 10px;
}
.momentum-untracked-arrow{ color: var(--paper-faint); font-size: 11px; }

#analysis-momentum-chart{ width:100%; max-width:none; }
#analysis-momentum-chart svg{ display:block; width:100%; height:184px; }
@media (min-width:720px) {
  #analysis-momentum-chart{ margin-left:-18px; margin-right:-18px; width:calc(100% + 36px); }
  #analysis-momentum-chart svg{ height:220px; }
}


.set-filter-tabs{ display:flex; gap: 6px; margin-bottom: 12px; overflow-x:auto; }
.set-filter-tabs__btn{
  flex: none; background: var(--ink-soft); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--paper-dim); cursor:pointer;
}
.set-filter-tabs__btn.is-selected{ border-color: var(--brand-lime); color: var(--brand-lime); background: rgba(149,255,25,0.1); }

.bar-stat-row{ background: var(--ink-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; }
.bar-stat-row__values{ display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap: 10px; margin-bottom: 6px; }
.bar-stat-row__a{ text-align:left; color: var(--team-a); font-weight: 800; font-family: var(--font-display); font-size: 15px; }
.bar-stat-row__b{ text-align:right; color: var(--team-b); font-weight: 800; font-family: var(--font-display); font-size: 15px; }
.bar-stat-row__label{ text-align:center; font-size: 11px; color: var(--paper-dim); text-transform:uppercase; letter-spacing: 0.04em; }
.bar-stat-row__bar{ display:flex; height: 6px; border-radius: 999px; overflow:hidden; background: rgba(244,247,242,0.08); }
.bar-stat-row__fill{ height:100%; }
.bar-stat-row__fill--a{ background: var(--team-a); }
.bar-stat-row__fill--b{ background: var(--team-b); }
.bar-stat-row--dash{ opacity: 0.45; }
.bar-stat-row--dash .bar-stat-row__values,
.bar-stat-row--nobar .bar-stat-row__values{ margin-bottom: 0; }
.bar-stat-row__pcts{ display:flex; justify-content:space-between; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--paper-dim); }
.bar-stat-row__pcts-a{ color: var(--team-a); }
.bar-stat-row__pcts-b{ color: var(--team-b); }
.bar-stat-row__mirror{ display:flex; align-items:center; height: 6px; }
.bar-stat-row__mirror-half{ flex:1; height:100%; display:flex; overflow:hidden; border-radius:999px; background: rgba(244,247,242,0.08); }
.bar-stat-row__mirror-half--a{ justify-content:flex-end; margin-right:1.5px; }
.bar-stat-row__mirror-half--b{ justify-content:flex-start; margin-left:1.5px; }
.bar-stat-row__mirror-fill{ height:100%; }
.bar-stat-row__mirror-fill--a{ background: var(--team-a); }
.bar-stat-row__mirror-fill--b{ background: var(--team-b); }
.bar-stat-row__mirror-center{ width:2px; height:14px; background: var(--paper-faint); flex:none; border-radius:1px; }
.bar-stat-row__fullscale{ display:flex; flex-direction:column; gap: 4px; }
.bar-stat-row__fullscale-track{ height:6px; border-radius:999px; overflow:hidden; background: rgba(244,247,242,0.08); }
.bar-stat-row__fullscale-fill{ display:block; height:100%; border-radius:999px; }
.bar-stat-row__fullscale-fill--a{ background: var(--team-a); }
.bar-stat-row__fullscale-fill--b{ background: var(--team-b); }

.stats-grid{ display:grid; grid-template-columns: 1fr; gap: 6px; }
.stat-row{ display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap: 10px; background: var(--ink-soft); border-radius: 10px; padding: 10px 12px; }
.stat-row__a{ text-align:left; color: var(--team-a); font-weight: 800; }
.stat-row__b{ text-align:right; color: var(--team-b); font-weight: 800; }
.stat-row__label{ text-align:center; font-size: 11px; color: var(--paper-dim); text-transform:uppercase; letter-spacing: 0.04em; }
.stat-row--faint{ opacity: 0.5; }

.player-serve-row{ display:flex; justify-content:space-between; align-items:center; background: var(--ink-soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; font-size: 12px; }
.player-serve-row__name{ font-weight: 800; }
.player-serve-row__stat{ display:flex; flex-direction:column; align-items:flex-end; text-align:right; }
.player-serve-row__pct{ font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--paper); }
.player-serve-row__detail{ color: var(--paper-dim); font-size: 13px; margin-top: 2px; }

.highlight-row{ display:flex; flex-direction:column; gap:2px; background: var(--ink-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 13px; }
.highlight-row__time{ color: var(--brand-lime); font-weight: 800; font-size: 12px; }
.highlight-row__meta{ color: var(--paper-dim); font-size: 12px; }

.keymoments-list{ position:relative; padding-left: 18px; }
.keymoments-list::before{ content:''; position:absolute; left:5px; top:4px; bottom:4px; width:2px; background: var(--line); }
.keymoment-row{ position:relative; padding: 0 0 16px 14px; }
.keymoment-row::before{ content:''; position:absolute; left:-13px; top:4px; width:8px; height:8px; border-radius:50%; background: var(--brand-lime); }
.keymoment-row__time{ font-family: var(--font-display); font-size: 11px; color: var(--paper-dim); }
.keymoment-row__label{ font-size: 13px; font-weight: 700; margin-top: 2px; }

.timeline-set{ margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; overflow:hidden; }
.timeline-set__header{
  background: var(--ink-softer); padding: 12px 14px; cursor:pointer; display:flex; justify-content:space-between;
  align-items:center; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.03em;
}
.timeline-set__toggle{ color: var(--paper-dim); transition: transform .15s ease; }
.timeline-set.is-expanded .timeline-set__toggle{ transform: rotate(180deg); }
.timeline-set__body{ display:none; padding: 10px; }
.timeline-set.is-expanded .timeline-set__body{ display:block; }

.timeline-game{ margin-bottom: 6px; }
.timeline-game__header{
  background: var(--ink-soft); border-radius: 10px; padding: 9px 12px; cursor:pointer;
  display:flex; align-items:center; gap: 8px; font-size: 13px; font-weight: 700;
}
.timeline-game__label{ flex: none; }
.timeline-game__tags{ flex: 1; display:flex; gap: 4px; flex-wrap:wrap; }
.timeline-game__count{ flex: none; font-size: 11px; color: var(--paper-dim); font-weight: 600; }
.timeline-tag{
  font-size: 9px; font-weight: 800; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 999px;
  background: rgba(244,247,242,0.1); color: var(--paper-dim);
}
.timeline-tag--BREAK{ background: rgba(255,91,84,0.15); color: #FF8A84; }
.timeline-tag--ORO{ background: rgba(255,201,61,0.16); color: var(--gold); }
.timeline-tag--STAR{ background: rgba(255,169,61,0.16); color: var(--star); }
.timeline-tag--TB{ background: rgba(255,201,61,0.1); color: var(--gold); }
.timeline-tag--SET-POINT{ background: rgba(244,247,242,0.12); color: var(--paper); }
.timeline-tag--MATCH-POINT{ background: rgba(244,247,242,0.18); color: var(--paper); font-weight: 800; }
.timeline-tag--PARCIAL{ background: rgba(255,201,61,0.16); color: var(--gold); }
.timeline-tag--HOLD{ background: rgba(149,255,25,0.14); color: var(--brand-lime); }
.timeline-game--compact .timeline-point-row__score{ flex: 1 1 auto; text-align: right; }

.timeline-set--manual{ opacity: 0.85; }
.timeline-set__header--static{ background: var(--ink-softer); padding: 12px 14px; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.03em; cursor:default; }

.timeline-adjustment-marker{ text-align:center; font-size: 11px; font-weight: 700; color: var(--brand-lime); background: rgba(149,255,25,0.08); border: 1px dashed rgba(149,255,25,0.35); border-radius: 10px; padding: 8px 10px; margin: 4px 0 10px; }
.timeline-game__points{ display:none; padding: 6px 4px 4px; }
.timeline-game.is-expanded .timeline-game__points{ display:block; }
.timeline-point-row{ display:flex; align-items:center; justify-content:space-between; gap: 8px; font-size: 11px; color: var(--paper-dim); padding: 5px 8px; border-bottom: 1px solid var(--line); flex-wrap:wrap; }
.timeline-point-row__time{ flex: none; color: var(--paper-faint); }
.timeline-point-row__team{ flex: none; font-weight: 800; }
.timeline-point-row__team[data-team="A"]{ color: var(--team-a); }
.timeline-point-row__team[data-team="B"]{ color: var(--team-b); }
.timeline-point-row__score{ flex: none; font-family: var(--font-display); color: var(--paper); }

.history-list{ display:flex; flex-direction:column; gap: 10px; }
.history-item{ background: var(--ink-soft); border-radius: 12px; padding: 14px 16px; cursor:pointer; }
.history-item--unseen{ box-shadow: inset 3px 0 0 var(--accent-cyan); }

.person-list{ display:flex; flex-direction:column; gap: 10px; }
.person-list__item{ display:flex; align-items:center; gap: 12px; background: var(--ink-soft); border-radius: 12px; padding: 12px 16px; cursor:pointer; transition: background .12s ease; }
.person-list__item:active{ background: rgba(149,255,25,0.08); }
.person-list__avatar{
  flex:none; width:40px; height:40px; border-radius:50%; background: var(--ink-softer); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700; font-size: 14px; color: var(--brand-lime);
}
.person-list__info{ flex:1; min-width:0; }
.person-list__caption{ font-size: 12px; color: var(--paper-dim); margin-top: 2px; }
.person-list__pct-wrap{ flex:none; text-align:right; }
.person-list__pct{ display:block; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--paper); font-variant-numeric: tabular-nums; }
.person-list__pct-label{ display:block; font-size: 9px; font-weight: 700; letter-spacing: 0.05em; color: var(--paper-faint); text-transform: uppercase; margin-top: 1px; }
.history-item__top-row{ display:flex; align-items:flex-start; justify-content:space-between; gap: 8px; margin-bottom: 8px; }
.history-item__result-col{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.history-item__result-col .history-item__badge{ margin-top:0; }
.history-item__result-badge{ flex:none; font-size: 10px; font-weight:800; letter-spacing:0.05em; padding: 2px 7px; border-radius: 999px; text-transform:uppercase; }
.history-item__result-badge--win{ background: rgba(46,204,113,0.14); color: var(--confirm-green); }
.history-item__result-badge--loss{ background: rgba(255,91,84,0.14); color: var(--danger); }
.history-item__won-tag{ font-size: 9px; font-weight:800; letter-spacing:0.05em; color: var(--brand-lime); margin: 0 6px 0 4px; vertical-align: middle; }
.history-item__date{ font-size: 11px; color: var(--paper-dim); text-transform:uppercase; letter-spacing:0.06em; }
.history-item__teams{ font-size: 13px; font-weight: 500; color: var(--paper-dim); }
.history-item__teams .vs-sep{ color: var(--paper-faint); font-weight: 500; margin: 0 4px; }
.history-item__score{ font-size: 30px; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.history-item__bottom-row{ display:flex; align-items:center; justify-content:space-between; gap: 8px; }
.history-item__meta{ flex:none; text-align:right; }
.history-item__meta-line{ font-size: 9px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color: var(--paper-faint); line-height:1.4; }
.history-item__badge{ display:inline-block; font-size: 10px; text-transform:uppercase; letter-spacing:0.06em; color: var(--brand-lime); background: rgba(149,255,25,0.1); padding: 2px 8px; border-radius: 999px; margin-top: 8px; }
.history-item__badge--pending{ color: var(--text-dim); background: rgba(154,167,181,0.12); }
.history-item__badge--waiting{ color: var(--gold); background: rgba(255,201,61,0.12); }
.history-item__badge--correction{ color: var(--gold); background: rgba(255,201,61,0.18); font-size: 11px; font-weight: 800; }

.history-filters{ padding: 8px 18px 0; border-bottom: 1px solid var(--line); }
.history-tabs, .history-mode-chips{
  display:flex; gap: 4px; overflow-x:auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.history-tabs::-webkit-scrollbar, .history-mode-chips::-webkit-scrollbar{ display:none; }
.history-tabs{ margin-bottom: 0; }
.history-tab{
  flex:none; position:relative; background:none; border: none; border-radius: 12px 12px 0 0;
  color: var(--paper-dim); font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em; padding: 9px 14px 10px; cursor:pointer; white-space:nowrap;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
}
#groups-view-tabs{ display:flex; }
#groups-view-tabs .history-tab{ flex:1 1 0; min-width:0; padding: 9px 4px 10px; text-align:center; font-size: 12.5px; letter-spacing: 0; }
.history-tab__count{ font-size: 11px; color: var(--paper-faint); font-weight: 600; }
.history-tab.is-active{
  color: var(--brand-lime); font-weight: 700; background: var(--ink-soft);
  box-shadow: 0 -3px 10px rgba(0,0,0,0.16);
}
.history-tab.is-active .history-tab__count{ color: var(--brand-lime); }

@keyframes historyContentIn{ from{ opacity:0; transform: translateY(4px); } to{ opacity:1; transform: translateY(0); } }
.history-anim{ animation: historyContentIn 200ms var(--motion-ease); }
@media (prefers-reduced-motion: reduce){ .history-anim{ animation: none; } }
.history-mode-chip{
  flex:none; background: var(--ink-soft); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: var(--paper-dim);
  cursor:pointer; white-space:nowrap;
}
.history-mode-chip.is-active{ border-color: var(--brand-lime); background: rgba(149,255,25,0.10); color: var(--brand-lime); }
.ranking-help-icon-btn__circle{
  display:flex; align-items:center; justify-content:center; width:20px; height:20px;
  border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 800; line-height:1;
}
#ranking-search-toggle-btn.is-active{ color: var(--brand-lime); }

.ranking-search-field{ margin-bottom: 10px; position: relative; }
.ranking-search-bar__close{ flex:none; background:none; border:none; color: var(--paper-faint); padding: 4px; cursor:pointer; }
.ranking-search-bar__close:active{ color: var(--paper); }

.ranking-filters-row{ display:flex; gap: 8px; margin-bottom: 14px; flex-wrap:wrap; }
.ranking-dropdown-trigger{
  flex:none; background: var(--ink-soft); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.02em; color: var(--paper); cursor:pointer;
}
.ranking-dropdown-trigger:active{ border-color: var(--brand-lime); }

.ranking-my-position{
  display:block; width:100%; text-align:left; cursor:pointer; font: inherit; color: inherit;
  background: var(--surface-3); border: 1px solid var(--brand-lime); border-radius: var(--radius-hero);
  padding: 16px 18px; margin-bottom: 14px;
  box-shadow: 0 0 14px rgba(149,255,25,.10);
}
.ranking-my-position:active{ transform: scale(0.99); }
.ranking-my-position--pending{ border-color: var(--line-strong); box-shadow:none; cursor:default; }
.ranking-my-position--pending:active{ transform:none; }
.ranking-my-position__pending-text{ margin: 0; }
.ranking-my-position__label{
  display:block; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--paper-dim); text-transform: uppercase; margin-bottom: 10px;
}
.ranking-my-position__main{ display:flex; align-items:flex-end; justify-content:space-between; gap: 10px; margin-bottom: 8px; }
.ranking-my-position__rank{ display:flex; align-items:baseline; gap: 6px; flex-wrap:wrap; }
.ranking-my-position__pos{ font-family: var(--font-display); font-weight: 900; font-size: 32px; color: var(--paper); font-variant-numeric: tabular-nums; line-height:1; }
.ranking-my-position__of{ font-size: 13px; color: var(--paper-dim); font-weight: 700; }
.ranking-my-position__level{ flex:none; text-align:right; }
.ranking-my-position__level-value{ display:block; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--paper); font-variant-numeric: tabular-nums; line-height:1; }
.ranking-my-position__level-label{ display:block; font-size: 9px; font-weight:800; letter-spacing:0.05em; color: var(--paper-faint); text-transform:uppercase; margin-top: 3px; }
.ranking-my-position__level strong{ font-weight: 800; color: var(--paper); } /* comparación simple (1-2): sin jerarquía derecha propia */
.ranking-my-position__meta{ font-size: 12px; color: var(--paper-dim); }

.ranking-row__movement{ flex:none; width: 30px; text-align:right; font-size: 11px; font-weight: 800; color: var(--paper-faint); font-variant-numeric: tabular-nums; }
.ranking-row__movement.is-up{ color: var(--brand-lime); }
.ranking-row__movement.is-down{ color: var(--danger); }
.ranking-row__movement.is-flat{ color: var(--paper-faint); }
.ranking-my-position__movement.is-up{ color: var(--brand-lime); }
.ranking-my-position__movement.is-down{ color: var(--danger); }
.ranking-row__handle{ display:block; margin-top: 1px; }
.ranking-row.is-me{ background: rgba(149,255,25,0.07); }
.ranking-row.is-me .group-table__position{ color: var(--brand-lime); }
.ranking-row.is-me .group-table__name{ color: var(--brand-lime); }
.ranking-row__hide-btn{ flex:none; display:flex; align-items:center; justify-content:center; width:26px; height:26px; margin-left:2px; color: var(--paper-faint); cursor:pointer; }
.ranking-row__hide-btn:active{ color: var(--danger); }
.ranking-row--static{ cursor:default; }
.ranking-row--static:active{ background:none; }

.ranking-universe-count{ font-size: 12px; color: var(--paper-dim); margin: 2px 0 2px; }
.ranking-period-label{ font-size: 12px; color: var(--paper-faint); margin: 0 0 10px; }
.ranking-load-more{ display:block; margin: 4px auto 0; }

.ranking-hidden-btn{ display:block; margin: 10px auto 0; }

.ranking-state-cta{ margin-top: 10px; }
.ranking-forming-badge{
  display:inline-block; vertical-align: middle; margin-left: 6px; font-size: 9px; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper-faint);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 7px;
}
.ranking-row__position--dash{ color: var(--paper-faint); }
.ranking-row__status-badge{ font-weight: 700; letter-spacing: 0.02em; }

.help-sheet{ display:flex; flex-direction:column; height: min(85dvh, 720px); max-height: calc(100dvh - 24px); padding-bottom: 0; }
.help-sheet .bottom-sheet__header{ flex:none; margin-bottom: 12px; }
.help-sheet__scroll{ flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; touch-action: pan-y;
  display:flex; flex-direction:column; gap: 22px; --rh-ease: cubic-bezier(.22,.8,.24,1); padding-bottom: calc(26px + var(--safe-bottom)); }
.rh-scene, .rh-more{ flex:none; }
.profile-help-link-row{ margin-top: 14px; border-top: 1px solid var(--line); text-align:center; }
.profile-help-link{ background:none; border:0; padding: 6px 12px; font: inherit; font-size: 12px; font-weight:600; letter-spacing:.02em; color: var(--accent-cyan); cursor:pointer; -webkit-tap-highlight-color: transparent; }
.profile-help-link:active{ color: var(--text); }
.rh-scene{ display:flex; flex-direction:column; gap: 12px; padding: 18px 16px; border-radius: 18px; border:1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); position:relative; overflow:hidden; }
.rh-intro{ background: radial-gradient(120% 90% at 0% 0%, rgba(25,159,255,.18), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface-1)); }
.rh-kicker{ margin:0; font-size: 11px; font-weight:800; letter-spacing:.12em; color: var(--accent-cyan); }
.rh-hero{ margin:0; font-size: 34px; line-height:1.05; font-weight:800; letter-spacing:-.02em; color: var(--text); }
.rh-hero span{ color: var(--brand-lime); }
.rh-lead{ margin:0; font-size: 14px; line-height:1.5; color: var(--text-dim); }
.rh-lead--sm{ font-size: 13px; } .rh-lead b{ color: var(--text); }
.rh-note{ margin:0; font-size: 12px; color: var(--text-faint); } .rh-note b{ color: var(--text-dim); }
.rh-vs{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.rh-card{ display:flex; flex-direction:column; gap: 4px; padding: 12px; border-radius: 14px; background: var(--surface-3); border:1px solid var(--line); font-size: 12px; color: var(--text-dim); }
.rh-card strong{ font-size: 13px; line-height:1.25; color: var(--text); }
.rh-card__tag{ font-size: 10px; font-weight:800; letter-spacing:.12em; color: var(--accent-cyan); }
.rh-card--rank{ border-color: rgba(149,255,25,.35); } .rh-card--rank .rh-card__tag{ color: var(--brand-lime); }
.rh-pts{ display:grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.rh-pt{ display:flex; flex-direction:column; align-items:center; gap: 6px; padding: 14px 4px 12px; border-radius: 16px; background: var(--surface-3); border:1px solid var(--line); text-align:center; }
.rh-pt b{ font-size: 46px; line-height:1; font-weight:800; color: var(--brand-lime); text-shadow: 0 0 22px rgba(149,255,25,.35); font-variant-numeric: tabular-nums; }
.rh-pt span{ font-size: 11px; line-height:1.25; color: var(--text-dim); }
.rh-pt--loss b{ color: var(--accent-cyan); text-shadow: 0 0 22px rgba(25,159,255,.35); }
.rh-sub{ margin: 4px 0 0; font-size: 13px; color: var(--text-dim); } .rh-sub b{ color: var(--brand-lime); }
.rh-bonus{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 8px; }
.rh-bonus li{ display:flex; gap: 12px; align-items:flex-start; padding: 10px 12px; border-radius: 14px; border:1px dashed rgba(149,255,25,.35); background: rgba(149,255,25,.04); }
.rh-bonus strong{ display:block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.rh-bonus div span{ font-size: 12px; line-height:1.4; color: var(--text-dim); }
.rh-plus{ flex:none; min-width: 36px; text-align:center; padding: 3px 0; border-radius: 999px; background: var(--brand-lime); color:#0C1400; font-size: 13px; font-weight:800; }
.rh-step{ display:flex; gap: 12px; align-items:flex-start; padding: 12px; border-radius: 14px; background: var(--surface-3); border:1px solid var(--line); }
.rh-step strong{ display:block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.rh-step div span{ font-size: 12px; line-height:1.45; color: var(--text-dim); }
.rh-step__n{ flex:none; width: 26px; height:26px; border-radius:50%; display:grid; place-items:center; font-size: 13px; font-weight:800; color: var(--accent-cyan); border:1px solid var(--accent-cyan); }
.rh-weeks{ display:grid; grid-template-columns: repeat(52, 1fr); gap: 2px; align-items:end; height: 52px; margin-top: 4px; }
.rh-weeks i{ display:block; height: 100%; border-radius: 2px; background: rgba(25,159,255,.45); transform-origin: bottom; }
.rh-weeks i.is-now{ background: var(--brand-lime); }
.rh-weeks__legend{ display:flex; justify-content:space-between; font-size: 10px; letter-spacing:.04em; color: var(--text-faint); }
.rh-week{ display:flex; gap: 5px; }
.rh-week span{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; height: 40px; border-radius: 10px; background: var(--surface-3); border:1px solid var(--line); font-size: 12px; font-weight:700; color: var(--text-faint); }
.rh-week .rh-week__pub{ flex: 2.6; white-space:nowrap; border-color: var(--brand-lime); color: var(--brand-lime); box-shadow: 0 0 18px rgba(149,255,25,.22); }
.rh-week em{ font-style:normal; font-size: 8px; letter-spacing:.04em; font-weight:700; }
.rh-more{ border-radius: 14px; border:1px solid var(--line); background: var(--surface-1); }
.rh-more summary{ cursor:pointer; list-style:none; padding: 14px 16px; font-size: 13px; font-weight:700; color: var(--text); display:flex; justify-content:space-between; }
.rh-more summary::-webkit-details-marker{ display:none; }
.rh-more summary::after{ content:'+'; color: var(--brand-lime); font-size: 16px; line-height:1; }
.rh-more[open] summary::after{ content:'–'; }
.rh-more__body{ padding: 0 16px 14px; display:flex; flex-direction:column; gap: 10px; }
.rh-more__body p{ margin:0; font-size: 12px; line-height:1.5; color: var(--text-dim); }
.rh-more__body strong{ color: var(--text); }
@media (prefers-reduced-motion: no-preference){
  .rh-anim .rh-scene:not(.is-in) .rh-card, .rh-anim .rh-scene:not(.is-in) .rh-pt, .rh-anim .rh-scene:not(.is-in) .rh-bonus li,
  .rh-anim .rh-scene:not(.is-in) .rh-step, .rh-anim .rh-scene:not(.is-in) .rh-week span{ opacity:0; transform: translateY(14px); }
  .rh-anim .rh-card, .rh-anim .rh-pt, .rh-anim .rh-bonus li, .rh-anim .rh-step, .rh-anim .rh-week span{
    transition: opacity .5s var(--rh-ease) calc(var(--i,0) * 110ms), transform .7s var(--rh-ease) calc(var(--i,0) * 110ms); }
  .rh-anim .rh-scene:not(.is-in) .rh-pt b{ transform: scale(.6); opacity:0; }
  .rh-anim .rh-pt b{ transition: transform .8s var(--rh-ease) calc(var(--i,0) * 110ms + 120ms), opacity .5s calc(var(--i,0) * 110ms + 120ms); }
  .rh-anim .rh-scene:not(.is-in) .rh-bonus li{ transform: translateX(-12px) scale(.97); }
  .rh-anim .rh-scene:not(.is-in) .rh-plus{ transform: scale(.3); }
  .rh-anim .rh-plus{ transition: transform .6s var(--rh-ease) calc(var(--i,0) * 110ms + 250ms); }
  .rh-anim .rh-scene:not(.is-in) .rh-weeks i{ transform: scaleY(.08); opacity:.2; }
  .rh-anim .rh-weeks i{ transition: transform .6s var(--rh-ease) calc(var(--w) * 14ms), opacity .4s calc(var(--w) * 14ms); }
  .rh-anim .rh-week .rh-week__pub{ transition: opacity .5s var(--rh-ease) calc(var(--i,0) * 110ms), transform .7s var(--rh-ease) calc(var(--i,0) * 110ms), box-shadow .8s 1.2s; }
  .rh-anim .rh-scene:not(.is-in) .rh-week__pub{ box-shadow:none; }
}

.ranking-scrolltop-btn{
  position: fixed; left: 50%; bottom: calc(14px + var(--bottomnav-h, 0px) + var(--safe-bottom)); transform: translateX(-50%);
  background: var(--ink-softer); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 16px; font-family: var(--font-display); font-weight: 700; font-size: 12px;
  color: var(--paper); box-shadow: 0 4px 14px rgba(0,0,0,0.3); cursor:pointer; z-index: 30;
}
.ranking-scrolltop-btn:active{ border-color: var(--brand-lime); color: var(--brand-lime); }
@media (min-width: 720px){ .history-filters{ width: 100%; max-width: 768px; margin: 0 auto; padding-left: 18px; padding-right: 18px; } }

.history-context-filter{
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  padding: 10px 18px; background: rgba(149,255,25,0.08); border-bottom: 1px solid var(--line-strong);
  font-size: 12px; font-weight: 700; color: var(--brand-lime);
}
.history-context-filter .link-btn{ font-size: 12px; font-weight: 700; color: var(--paper-dim); flex:none; }
@media (min-width: 720px){ .history-context-filter{ max-width: 768px; margin: 0 auto; } }

.history-empty{ padding: 8px 4px; }
.history-empty .btn-mini{ margin-top: 10px; }

@media (min-width: 720px){
  .view--match{ max-width: 480px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,0.5); }
  .view--analysis, .view--history{ max-width: 768px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,0.5); }
  .view--court{ max-width: 768px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,0.5); }
  .load-keypad, .court-continue-wrap, .mw-panel{ max-width: 768px; margin: 0 auto; }

  .view--analysis,
  .view--history,
  .view--access{
    max-width:none;
    width:100%;
    margin:0;
    box-shadow:none;
  }

  .view--analysis > .analysis-scroll,
  .view--history > .analysis-scroll{
    width:100%;
    max-width:768px;
    margin-left:auto;
    margin-right:auto;
  }
  .view--analysis > .analysis-header,
  .view--history > .analysis-header,
  #view-player-home > .player-home-header{
    width:100%;
    max-width:none;
    margin:0;
    padding-left:max(18px, calc((100% - 768px) / 2 + 18px));
    padding-right:max(18px, calc((100% - 768px) / 2 + 18px));
  }

  .view--access > .access-scroll{
    width:100%;
    max-width:460px;
    margin-left:auto;
    margin-right:auto;
  }
  .view--access > .analysis-header{
    width:100%;
    max-width:none;
    margin:0;
    padding-left:max(18px, calc((100% - 460px) / 2 + 18px));
    padding-right:max(18px, calc((100% - 460px) / 2 + 18px));
  }
  .view--access > .legal-doc-frame{
    width:100%;
    max-width:768px;
    margin-left:auto;
    margin-right:auto;
  }

  .bottom-nav{
    max-width:none;
    margin:0;
    padding-left:max(4px, calc((100% - 768px) / 2 + 4px));
    padding-right:max(4px, calc((100% - 768px) / 2 + 4px));
  }
}


@media (orientation: landscape) and (min-width: 700px){
  .view--setup{ max-width: 768px; }
  .setup-form{
    display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 10px; row-gap: 16px; align-items: stretch;
  }
  .team-block--a{ grid-column: 1; }
  .vs-divider{ grid-column: 2; flex-direction: column; align-self: stretch; }
  .vs-divider__line{
    width: 1px; height: auto;
    background: linear-gradient(180deg, var(--team-a), var(--line) 40%, var(--line) 60%, var(--team-b));
  }
  .vs-divider__text{ padding: 0; border: none; background: none; }
  .team-block--b{ grid-column: 3; }
  .setup-section, #start-match-btn{ grid-column: 1 / -1; }
}

@media (orientation: landscape) and (min-width: 560px){
  .view--match{
    max-width: 1100px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto 1fr auto auto;
    grid-template-areas:
      "header      header"
      "scoreboard  scoreboard"
      "banner      banner"
      "zone-a      zone-b"
      "progression progression"
      "controlbar  controlbar";
    height: 100vh; height: 100dvh;
  }
  .match-header{ grid-area: header; }
  .scoreboard{ grid-area: scoreboard; }
  #status-banner{ grid-area: banner; }
  #server-prompt{ grid-area: banner; }
  #game-progression{ grid-area: progression; }
  .control-bar{ grid-area: controlbar; }
  .team-zone--a{
    grid-area: zone-a; border-bottom: none; border-right: 1px solid var(--line);
  }
  .team-zone--b{
    grid-area: zone-b; border-top: none; border-bottom: none; padding-bottom: 10px;
  }
}

.share-capture{ padding: 32px 28px 26px; font-family: var(--font-body); }
.share-capture__header{ display:flex; flex-direction:column; align-items:center; gap: 4px; margin-bottom: 22px; text-align:center; }
.share-capture__brand{ font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 0.08em; color: var(--brand-lime); }
.share-capture__brand-accent{ font-weight: 900; color: var(--brand-lime); text-transform: uppercase; }
.share-capture__brand-sub{ font-weight: 400; text-transform: lowercase; color: var(--brand-lime); }
.share-capture__kind{ font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--paper-dim); text-transform: uppercase; }
.share-capture__section{ margin-bottom: 22px; }
.share-capture__section:last-of-type{ margin-bottom: 0; }
.share-capture__footer{ display:flex; flex-direction:column; align-items:center; gap: 4px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); text-align:center; }
.share-capture__footer span:first-child{ font-size: 12px; color: var(--paper-dim); }
.share-capture__brand-mini{ font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: rgba(149,255,25,0.6); text-transform: lowercase; }
.share-capture__brand-mini-accent{ font-weight: 900; color: var(--brand-lime); text-transform: uppercase; }


.player-home-header{
  display:flex; align-items:center; justify-content:space-between;
  padding: calc(14px + var(--safe-top)) 18px 12px; border-bottom: 1px solid var(--line);
}
.player-home-header__actions{ display:flex; align-items:center; gap: 10px; }
.icon-btn{ background:none; border:none; color: var(--paper-dim); font-size: 20px; padding: 4px 8px; cursor:pointer; line-height:1; }
.player-home-lab-preview__icon{ width:20px; height:20px; fill: currentColor; }
.player-home-lab-preview.is-active{ color: var(--brand-lime); }
.player-home-ranking__icon{ width:21px; height:21px; fill: currentColor; } /* V04.70: copa maciza (cuenco, pie y base rellenos; asas de trazo grueso), en línea con los demás íconos rellenos del encabezado */
.player-home-bell__icon{ width:20px; height:20px; fill: currentColor; }
.player-home-bell{ position:relative; }
.notif-badge{
  position:absolute; top:2px; right:2px; min-width:16px; height:16px; padding:0 3px;
  border-radius:999px; background: var(--danger); color:#1A1400; font-size:10px; font-weight:800;
  display:flex; align-items:center; justify-content:center; line-height:1; border: 1.5px solid var(--ink);
}

.notifications-mark-all{ margin-left:auto; font-size:11px; white-space:nowrap; }
.notif-group{ margin-bottom: 18px; }
.notif-group__title{ font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-dim); font-weight: 700; margin: 0 0 8px 2px; }
.notif-item{
  display:flex; align-items:flex-start; gap: 10px; width:100%; text-align:left;
  background: var(--ink-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; cursor:pointer; margin-bottom: 8px;
}
.notif-item__dot{ width:8px; height:8px; border-radius:50%; margin-top:5px; flex:none; background: var(--paper-faint); }
.notif-item--positive .notif-item__dot{ background: var(--brand-lime); box-shadow: 0 0 8px rgba(149,255,25,0.5); }
.notif-item--info .notif-item__dot{ background: var(--accent-cyan); box-shadow: 0 0 8px rgba(25,159,255,0.45); }
.notif-item--pending .notif-item__dot{ background: var(--gold); box-shadow: 0 0 8px rgba(255,201,61,0.45); }
.notif-item--error .notif-item__dot{ background: var(--danger); box-shadow: 0 0 8px rgba(255,91,97,0.45); }
.notif-item__body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.notif-item__title{ font-size:13px; font-weight:700; color: var(--paper); }
.notif-item__text{ font-size:12px; color: var(--paper-dim); }
.notif-item__time{ font-size:10px; color: var(--paper-faint); margin-top:2px; }
.notif-item.is-unread{ border-color: var(--line-strong); background: var(--ink-softer); }
.notif-item.is-unread .notif-item__title{ color: var(--paper); }
.notif-item:not(.is-unread){ opacity: 0.72; }
.notifications-empty{ padding: 24px 4px; text-align:center; }
.player-home-scroll{ padding-bottom: calc(96px + var(--safe-bottom)); }

#view-history .analysis-scroll,
#view-manual-load .analysis-scroll,
#view-ranking .analysis-scroll,
#view-profile .analysis-scroll,
#view-analysis .analysis-scroll,
#view-companions .analysis-scroll{
  padding-bottom: calc(96px + var(--safe-bottom));
}

.pastilla{
  background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 16px; margin-bottom: 12px;
}
.pastilla__title{ font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.03em; color: var(--paper); text-transform: uppercase; }
.pastilla__microlabel{ font-size: 10px; letter-spacing: 0.03em; color: var(--paper-faint); text-transform: uppercase; font-weight: 700; }
.pastilla__title-row{ display:flex; align-items:center; gap: 10px; margin-bottom: 8px; }
.pastilla__icon{ font-size: 20px; line-height:1; }
.pastilla__icon-svg{ width:18px; height:18px; fill: var(--brand-lime); display:block; }
.pastilla__icon-svg--momento{ width:20px; height:20px; fill:none; stroke: var(--brand-lime); stroke-width: 1.8; stroke-linecap: round; }
.pastilla__icon-svg--search{ width:18px; height:18px; fill:none; stroke: var(--brand-lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pastilla-icon-label{ display:flex; align-items:center; gap: 10px; }
.pastilla--search-players{ margin-top: 10px; }
.pastilla--search-players .pastilla__title{ color: var(--paper-dim); }

.player-home-hitos{
  display:flex; gap: 10px; overflow-x:auto; padding-bottom: 4px; margin-bottom: 12px;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: none;
}
.player-home-hitos::-webkit-scrollbar{ display:none; }
.player-home-hitos__chip{
  flex: 0 0 60%; scroll-snap-align: start; background: var(--surface-2);
  border: 1px solid #199FFF; border-radius: 14px;
  box-shadow: 0 0 5px rgba(25, 159, 255, 0.5);
  padding: 16px 18px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); white-space:normal;
  min-height: 2.8em; display:flex; align-items:center;
}
@media (min-width: 480px){ .player-home-hitos__chip{ flex-basis: 40%; } }

.player-card{ display:flex; align-items:center; flex-wrap: wrap; gap: 14px; cursor: pointer; }
.player-card__avatar{
  width: 64px; height:64px; border-radius:50%; background: var(--ink-softer); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; flex: none; overflow: hidden;
}
.player-card__avatar-icon{ width:30px; height:30px; fill:none; stroke: var(--brand-lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player-card__avatar-img{ display:none; width:100%; height:100%; object-fit: cover; }
.player-card__avatar[data-has-photo="true"] .player-card__avatar-icon{ display:none; }
.player-card__avatar[data-has-photo="true"] .player-card__avatar-img{ display:block; }
.player-card__info{ flex: 1 1 0; min-width: 110px; } /* V04.80-h1: 120→110 para dar lugar a la etiqueta de respaldo en una línea */
.player-card__name{ font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--paper); margin-bottom: 2px;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.player-card__handle{ font-size: 12px; color: var(--paper-faint); }
.player-card__count{ flex-basis: 100%; font-size: 12px; color: var(--paper-dim); }
.player-card__level{ flex: none; text-align:right; max-width: 46%; }
.player-card__level-label{ font-size: 9px; letter-spacing:0.03em; color: var(--paper-faint); font-weight:800; text-transform:uppercase; margin-bottom: 4px; }
.player-card__level-row{ display:flex; align-items:baseline; gap: 6px; justify-content:flex-end; flex-wrap:wrap; }
.player-card__level-value{
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  line-height: 1.15; color: var(--paper); font-variant-numeric: tabular-nums;
  white-space: normal; overflow-wrap: break-word;
}




@keyframes playerLevelBarGrow{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }







.pastilla--identity{ display:flex; align-items:center; gap: 14px; flex-wrap: wrap; }
.pastilla--identity-compact{ align-items:flex-start; }
.pastilla-identity__info{ flex:1; min-width: 110px; } /* V04.80-h1: 140→110 (mismo motivo); los nombres largos pasan a dos líneas */
.pastilla-identity__name{ font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--paper); margin-bottom: 2px;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* V04.83 — máx. dos líneas, con «…» */
.pastilla-identity__info .coverage-note{ margin-top: 2px; font-style: normal; font-weight: 600; }
.pastilla-identity__handle--strong{ font-size: 13px; color: var(--paper-dim); font-weight: 600; }
.pastilla-identity__meta{ flex-basis: 100%; padding-top: 14px; border-top: 1px solid var(--line); } /* V04.82: sin margin-top propio — el gap de 14px del contenedor flex-wrap ya separa la fila (se sumaba y dejaba la línea muy lejos del Nivel) */

.pastilla-momento__text{ font-size: 13px; font-weight: 500; color: rgba(248,250,252,.78); line-height:1.5; margin:0; }

.player-home-lastmatch{
  position: relative; overflow: hidden;
  cursor:pointer; text-align:left; border-radius: var(--radius-hero);
  background: var(--surface-3);
  --lastmatch-accent: var(--brand-lime);
  --lastmatch-accent-rgb: 149,255,25;
  border-color: var(--lastmatch-accent);
  box-shadow: 0 0 18px rgba(var(--lastmatch-accent-rgb),.12);
  animation: lastMatchGlowPulse 3.6s ease-in-out infinite;
  padding: 16px;
}
@keyframes lastMatchGlowPulse{
  0%, 100%{ box-shadow: 0 0 18px rgba(var(--lastmatch-accent-rgb),.12); }
  50%{ box-shadow: 0 0 25px rgba(var(--lastmatch-accent-rgb),.24); }
}
@media (prefers-reduced-motion: reduce){ .player-home-lastmatch{ animation: none; } }
.player-home-lastmatch--win{ --lastmatch-accent: var(--confirm-green); --lastmatch-accent-rgb: 46,204,113; }
.player-home-lastmatch--loss{
  --lastmatch-accent: var(--danger); --lastmatch-accent-rgb: 255,91,97;
  animation: none; box-shadow: 0 0 12px rgba(255,91,97,.08);
}
.player-home-lastmatch--action,
.player-home-lastmatch--waiting{ --lastmatch-accent: var(--gold); --lastmatch-accent-rgb: 255,201,61; }
.player-home-lastmatch--win::before,
.player-home-lastmatch--loss::before,
.player-home-lastmatch--action::before,
.player-home-lastmatch--waiting::before,
.player-home-lastmatch--win::after,
.player-home-lastmatch--loss::after,
.player-home-lastmatch--action::after,
.player-home-lastmatch--waiting::after{ content:""; position:absolute; inset:0; pointer-events:none; }
.player-home-lastmatch--win::before,
.player-home-lastmatch--loss::before,
.player-home-lastmatch--action::before,
.player-home-lastmatch--waiting::before{
  background: var(--lastmatch-photo) var(--lastmatch-photo-pos, 75% 40%) / cover no-repeat;
  filter: var(--lastmatch-photo-filter, none);
  opacity: .92; transform-origin: 78% 40%;
  animation: lastMatchPhotoDrift 16s ease-in-out infinite alternate;
}
.player-home-lastmatch--win::after,
.player-home-lastmatch--loss::after,
.player-home-lastmatch--action::after,
.player-home-lastmatch--waiting::after{
  background:
    linear-gradient(90deg, rgba(9,19,31,.96) 0%, rgba(9,19,31,.90) 28%, rgba(9,19,31,.62) 46%, rgba(9,19,31,.16) 64%, rgba(9,19,31,0) 78%),
    linear-gradient(180deg, rgba(9,19,31,0) 55%, rgba(9,19,31,.40) 100%),
    linear-gradient(rgba(var(--lastmatch-accent-rgb),.04), rgba(var(--lastmatch-accent-rgb),.04));
}
:is(.player-home-lastmatch--win, .player-home-lastmatch--loss, .player-home-lastmatch--action, .player-home-lastmatch--waiting)
  :is(.player-home-lastmatch__date, .player-home-lastmatch__place, .player-home-lastmatch__status-text, .player-home-lastmatch__meta-line, .player-home-lastmatch__chevron){ text-shadow: 0 1px 7px rgba(5,12,22,.95), 0 0 3px rgba(5,12,22,.75); }
:is(.player-home-lastmatch--win, .player-home-lastmatch--loss, .player-home-lastmatch--action, .player-home-lastmatch--waiting)
  :is(.player-home-lastmatch__date, .player-home-lastmatch__place, .player-home-lastmatch__meta-line, .player-home-lastmatch__chevron){ color: rgba(240,246,252,.9); }
.player-home-lastmatch--win > *,
.player-home-lastmatch--loss > *,
.player-home-lastmatch--action > *,
.player-home-lastmatch--waiting > *{ position: relative; z-index: 1; }
.player-home-lastmatch--win{ --lastmatch-photo: url('assets/home-estados/victoria.jpg?v=04.122'); --lastmatch-photo-filter: brightness(.78) saturate(.92); }
.player-home-lastmatch--loss{ --lastmatch-photo: url('assets/home-estados/derrota.jpg?v=04.122'); --lastmatch-photo-filter: brightness(.62) saturate(.55); }
.player-home-lastmatch--action,
.player-home-lastmatch--waiting{ --lastmatch-photo: url('assets/home-estados/pendiente.jpg?v=04.122'); }
.player-home-lastmatch--win.player-home-lastmatch--photo-2{ --lastmatch-photo: url('assets/home-estados/victoria-2.webp?v=04.122'); --lastmatch-photo-filter: brightness(.95) saturate(1); }
.player-home-lastmatch--win.player-home-lastmatch--photo-3{ --lastmatch-photo: url('assets/home-estados/victoria-3.webp?v=04.122'); --lastmatch-photo-filter: brightness(.72) saturate(.95); }
.player-home-lastmatch--loss.player-home-lastmatch--photo-2{ --lastmatch-photo: url('assets/home-estados/derrota-2.webp?v=04.122'); --lastmatch-photo-filter: brightness(.72) saturate(.55); }
.player-home-lastmatch--loss.player-home-lastmatch--photo-3{ --lastmatch-photo: url('assets/home-estados/derrota-3.webp?v=04.122'); --lastmatch-photo-filter: brightness(.85) saturate(.6); }
.player-home-lastmatch--action.player-home-lastmatch--photo-2,
.player-home-lastmatch--waiting.player-home-lastmatch--photo-2{ --lastmatch-photo: url('assets/home-estados/pendiente-2.webp?v=04.122'); --lastmatch-photo-filter: brightness(.95) saturate(1); }
.player-home-lastmatch--action.player-home-lastmatch--photo-3,
.player-home-lastmatch--waiting.player-home-lastmatch--photo-3{ --lastmatch-photo: url('assets/home-estados/pendiente-3.webp?v=04.122'); --lastmatch-photo-filter: brightness(.9) saturate(1); }
@keyframes lastMatchPhotoDrift{
  0%{ transform: scale(1); opacity: .92; }
  100%{ transform: scale(1.07); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .player-home-lastmatch--win::before,
  .player-home-lastmatch--loss::before,
  .player-home-lastmatch--action::before,
  .player-home-lastmatch--waiting::before{ animation: none; }
}
.lm-qa{ position: fixed; inset: 0; z-index: 9000; overflow-y: auto; padding: 0 12px 40px; background: var(--surface-1); }
.lm-qa[hidden]{ display: none; }
.lm-qa__bar{ position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 0; background: var(--surface-1); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text-dim); }
.lm-qa__close{ border: 1px solid var(--line-strong); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 700; }
.lm-qa__label{ margin: 14px 2px 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.player-home-lastmatch__top{ margin-bottom: 16px; }
.player-home-lastmatch__row1{ display:flex; align-items:flex-start; justify-content:space-between; gap: 10px; margin-bottom: 3px; }
.player-home-lastmatch__row2{ display:flex; align-items:center; justify-content:space-between; gap: 8px; flex-wrap:nowrap; }
.player-home-lastmatch__row2-left{ display:flex; align-items:center; gap: 8px; flex-wrap:wrap; min-width:0; }
.player-home-lastmatch__form{ display:flex; gap: 5px; flex:none; flex-wrap:wrap; }
.lastmatch-form-dot{ width: 7px; height:7px; border-radius:50%; flex:none; }
.lastmatch-form-dot--win{ background: var(--brand-lime); }
.lastmatch-form-dot--loss{ background: var(--danger); }
.lastmatch-form-dot--neutral{ background: var(--court-surface-2); border: 1px solid var(--court-line); }
.lastmatch-form-dot--current{ animation: lastMatchDotPulse 2.2s ease-in-out infinite; }
.lastmatch-form-dot--current.lastmatch-form-dot--win{ box-shadow: 0 0 6px rgba(149,255,25,0.8); }
.lastmatch-form-dot--current.lastmatch-form-dot--loss{ box-shadow: 0 0 6px rgba(255,91,84,0.7); }
@keyframes lastMatchDotPulse{ 0%,100%{ filter:brightness(1); } 50%{ filter:brightness(1.4); } }
@media (prefers-reduced-motion: reduce){ .lastmatch-form-dot--current{ animation:none; } }
.player-home-lastmatch__datetime{ text-align:right; flex:none; }
.player-home-lastmatch__date{ font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing:0.03em; color: var(--court-text-dim); font-variant-numeric: tabular-nums; }
.player-home-lastmatch__place{ font-size: 11px; font-weight: 500; color: var(--court-text-faint); margin-top: 2px; }
.player-home-lastmatch__status-slot{ flex:none; display:flex; align-items:center; }
.player-home-lastmatch__status-text{ font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.player-home-lastmatch__status-text--correction,
.player-home-lastmatch__status-text--waiting,
.player-home-lastmatch__status-text--action{ color: var(--gold); }
.player-home-lastmatch__status-text--identity{ color: var(--danger); }
.player-home-lastmatch__status-text--status,
.player-home-lastmatch__status-text--pending{ color: var(--court-text-dim); }
.player-home-lastmatch__title{ font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: var(--court-text-dim); text-transform: uppercase; }
.player-home-lastmatch__badge{ font-size: 10px; font-weight:800; letter-spacing:0.05em; padding: 2px 8px; border-radius: 999px; text-transform:uppercase; white-space:nowrap; }
.player-home-lastmatch__badge--win{ background: rgba(46,204,113,0.14); color: var(--confirm-green); }
.player-home-lastmatch__badge--loss{ background: rgba(255,91,84,0.14); color: var(--danger); }
.player-home-lastmatch__badge--neutral{ background: rgba(223,231,245,0.08); color: var(--court-text-dim); }
.player-home-lastmatch__badge--status{ background: rgba(154,167,181,0.12); color: var(--court-text-dim); }
.player-home-lastmatch__badge--action{ background: var(--brand-lime); color: var(--ink-soft); font-weight: 800; }
.player-home-lastmatch__badge--waiting{ background: rgba(255,201,61,0.14); color: var(--gold); }
.player-home-lastmatch__badge--correction{ background: rgba(255,201,61,0.2); color: var(--gold); font-size: 11px; }
.player-home-lastmatch__badge--identity{ background: rgba(255,91,97,0.12); color: var(--danger); }
.player-home-lastmatch__score{ margin-bottom: 12px; }
.lastmatch-score{ display:inline-flex; flex-wrap:wrap; align-items:center; row-gap:4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 11.3vw, 44px); line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.lastmatch-score__set{ display:inline-flex; align-items:center; letter-spacing: 0.02em; }
.lastmatch-score__num{ display:inline-block; }
.lastmatch-score__dash{ display:block; width:.34em; height:.07em; border-radius:999px; background:currentColor; margin:0 .12em; flex:none; }
.lastmatch-score__dot{ display:block; width:.11em; height:.11em; border-radius:50%; background:currentColor; margin:0 .22em; flex:none; }
.lastmatch-score__tb{ font-size: 13px; font-weight: 600; color: var(--court-text-dim); }
.player-home-lastmatch__teamsrow{ display:flex; align-items:center; gap: 8px; }
.player-home-lastmatch__teams{ flex: 1 1 auto; min-width:0; }
.player-home-lastmatch__teams-line{ font-size: 13px; font-weight: 500; color: var(--court-text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.player-home-lastmatch__teams-line + .player-home-lastmatch__teams-line{ margin-top: 3px; }
.player-home-lastmatch__teams .vs-sep{ margin-right: 6px; opacity: 0.6; }
.player-home-lastmatch__meta{ flex:none; text-align:right; }
.player-home-lastmatch__meta-line{ font-size: 10px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color: var(--court-text-faint); line-height:1.4; }
.player-home-lastmatch__chevron{ flex:none; color: var(--court-text-faint); font-size: 18px; }
.player-home-lastmatch.is-empty{
  background:
    linear-gradient(180deg, rgba(5,12,22,.05) 0%, rgba(5,12,22,.42) 42%, rgba(5,12,22,.84) 100%),
    linear-gradient(90deg, rgba(5,12,22,.58) 0%, rgba(5,12,22,.22) 62%, rgba(5,12,22,.05) 100%),
    linear-gradient(rgba(9,19,31,.12), rgba(9,19,31,.12)),
    url('assets/home-primer-partido.jpg?v=04.122') 100% 30% / cover no-repeat,
    var(--surface-3);
  background-blend-mode: normal, normal, normal, normal, normal;
}
.player-home-lastmatch__empty-title{ font-family: var(--font-display); font-weight:800; font-size: 22px; line-height:1.12; color: var(--paper); margin-top: 12px; text-shadow: 0 1px 10px rgba(5,12,22,.7); }
.player-home-lastmatch__pill{ display:inline-flex; align-items:center; gap:6px; padding:4px 10px 4px 8px; border-radius: 999px; border:1px solid rgba(149,255,25,.40); background: rgba(5,12,22,.55); color: var(--brand-lime); font-size: 11px; font-weight:800; letter-spacing:0.06em; text-transform:uppercase; }
.player-home-lastmatch__pill-icon{ width:14px; height:14px; fill:none; stroke: var(--brand-lime); stroke-width:1.8; stroke-linecap:round; flex:none; }
.player-home-lastmatch__empty-accent{ display:block; color: var(--brand-lime); }
.player-home-lastmatch__empty-desc{ font-size: 14px; line-height:1.45; color: var(--paper); text-shadow: 0 1px 8px rgba(5,12,22,.7); margin: 8px 0 16px; }
.player-home-lastmatch__empty-cta{ width:100%; }
.player-home-lastmatch__cta{ display:inline-block; margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--brand-lime); }

.player-home-metrics-row{ display:flex; gap: 10px; }
.player-home-metrics-row .pastilla{ flex: 1 1 0; min-width: 0; margin-bottom: 12px; }

.pastilla--link{ cursor:pointer; }
.pastilla--link:active{ transform: scale(0.98); }
.pastilla--link .pastilla__title-row{ justify-content: space-between; margin-bottom: 0; }
.pastilla__chevron{ color: var(--paper-faint); font-size: 16px; flex:none; }

.activity-bars{ display:flex; align-items:flex-end; gap: 8px; height: 60px; margin: 12px 0 8px; }
.activity-bar{ flex:1; display:flex; flex-direction:column-reverse; background: rgba(244,247,242,0.08); border-radius: 5px; min-height: 5px; overflow:hidden; transform-origin: bottom; }
.activity-bar.is-animating{ animation: activityBarGrow var(--home-anim-activity) var(--home-anim-ease) both; }
@keyframes activityBarGrow{ from{ transform: scaleY(0); } to{ transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce){ .activity-bar.is-animating{ animation: none; } }
.activity-bar__win{ display:block; width:100%; background: var(--brand-lime); box-shadow: 0 0 8px rgba(149,255,25,.16); }
.activity-bar__loss{ display:block; width:100%; background: var(--line-strong); }
.activity-legend{ display:flex; gap: 12px; margin: 0 0 6px; }
.activity-legend__item{ display:flex; align-items:center; gap: 5px; font-size: 10px; font-weight:600; color: var(--paper-faint); }
.activity-legend__dot{ width:7px; height:7px; border-radius:50%; flex:none; }
.activity-legend__dot--win{ background: var(--brand-lime); }
.activity-legend__dot--loss{ background: var(--line-strong); }
.activity-total{ font-size: 11px; color: var(--paper-dim); margin: 0; }

.effectiveness-donut{ position:relative; width: 84px; height:84px; margin: 8px auto 8px; }
.effectiveness-donut__svg{ width:100%; height:100%; transform: rotate(-90deg); }
.effectiveness-donut__track{ fill:none; stroke: rgba(244,247,242,0.1); stroke-width: 3; }
.effectiveness-donut__fill{ fill:none; stroke: var(--brand-lime); stroke-width: 3; stroke-linecap: round; }
.effectiveness-donut__glow{ fill:none; stroke: var(--brand-lime); stroke-width: 3.7; stroke-linecap: round; opacity: 0.16; }
.effectiveness-donut__value{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--paper); font-variant-numeric: tabular-nums; }
.effectiveness-caption{ text-align:center; font-size: 11px; color: var(--paper-dim); margin: 0; }

.profile-performance{ display:flex; flex-direction:column; gap: 12px; }
.profile-performance .pastilla{ margin-bottom: 0; }
.profile-performance-card--merged{ display:flex; flex-direction:column; }
.profile-performance-card--merged__body{ display:flex; align-items:center; gap: 16px; }
.effectiveness-donut--lg{ width: 112px; height:112px; margin: 0; }
.effectiveness-donut--lg .effectiveness-donut__value{ font-size: 25px; font-weight: 800; }
.profile-performance-matches{ flex:1; display:flex; flex-direction:column; justify-content:center; gap: 14px; }
.profile-performance-matches__item{ display:flex; flex-direction:column; gap: 2px; }
.profile-performance-matches__value{ font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--paper); font-variant-numeric: tabular-nums; }
.profile-performance-row{ display:flex; gap: 10px; align-items:stretch; }
.profile-performance-card--mini{ display:flex; flex-direction:column; justify-content:center; gap: 2px; flex:1; }
.profile-performance-card--half{ flex:1; }

.profile-ranking-card .pastilla__title-row{ justify-content: space-between; margin-bottom: 10px; }
.profile-ranking-card .pastilla__title{ white-space: nowrap; }
.profile-ranking-card__period{ font-size: 11px; color: var(--paper-faint); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-ranking-card__cols{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.profile-ranking-card__col{ display:flex; flex-direction:column; gap: 1px; min-width: 0; }
.profile-ranking-card__scope{ font-size: 10px; letter-spacing: 0.03em; color: var(--paper-dim); text-transform: uppercase; font-weight: 700; margin-bottom: 1px; }
.profile-ranking-card__pos{ font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--paper); font-variant-numeric: tabular-nums; }
.profile-ranking-card__denom{ font-size: 10px; color: var(--paper-faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.profile-ranking-card__territory{ font-size: 10px; color: var(--paper-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-ranking-card__status{ font-size: 12px; color: var(--paper-dim); margin: 0; }
.profile-ranking-card__section{ margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.profile-ranking-card__total{ display:flex; align-items: baseline; gap: 8px; }
.profile-ranking-card__total-value{ font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.profile-ranking-card__total-unit{ font-size: 11px; letter-spacing: 0.04em; font-weight: 700; color: var(--brand-lime); }
.profile-ranking-card__week-title{ display:block; font-size: 10px; letter-spacing: 0.06em; font-weight: 700; color: var(--paper-dim); margin-bottom: 8px; }
.profile-ranking-card__week-row{ display:flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0; }
.profile-ranking-card__week-label{ font-size: 13px; color: var(--paper-dim); }
.profile-ranking-card__week-value{ font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--paper); font-variant-numeric: tabular-nums; flex: none; }
.profile-ranking-card__week-note{ margin: 6px 0 0; font-size: 11px; color: var(--paper-faint); }
.mini-stat__value--wrap{ white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.mini-stat--location{ min-width: 0; }
.player-public-whatsapp-btn{ display:flex; align-items:center; justify-content:center; gap: 8px; }
.player-public-whatsapp-btn__icon{ flex: none; width: 20px; height: 20px; }
.profile-ranking-card__history,
.profile-ranking-card__defense{ font-size: 12px; color: var(--paper-dim); margin: 6px 0 0; }

.player-public-add-btn{ width:100%; }
.player-public-whatsapp-btn{ width:100%; flex:none; margin-top: 12px; margin-bottom: 10px; }

.player-home-widgets-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.player-home-widgets-grid .pastilla__title-row{ min-height: 18px; margin-bottom: 0; }
.pastilla--widget{ margin-bottom:0; }
.pastilla-widget__value{ font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--paper); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.pastilla-widget__value--text{ font-size: 15px; font-weight: 500; }
.pastilla-widget__caption{ font-size: 11px; color: var(--paper-dim); }

.player-home-firststeps{ margin: 18px 2px 0; border-top: 1px solid var(--line); display:flex; justify-content:center; }
.player-home-firststeps__btn{ min-height: 44px; padding: 0 16px; display:inline-flex; align-items:center; justify-content:center; gap:7px; background:none; border:0; border-radius:10px; color: var(--accent-cyan);
  font-family: var(--font-display); font-size:11px; font-weight:700; letter-spacing:.12em; cursor:pointer; -webkit-tap-highlight-color: transparent; opacity:.9; transition: opacity .15s ease; }
.player-home-firststeps__btn svg{ flex:none; }
.player-home-firststeps__btn:active{ opacity:.55; }
.player-home-firststeps__btn:focus-visible{ outline:2px solid var(--accent-cyan); outline-offset:2px; }
.player-home-firststeps + .player-home-footer{ margin-top: 2px; }
.player-home-footer{ margin: 22px 2px 4px; text-align:center; font-size: 9px; color: var(--paper-dim); opacity: 0.55; letter-spacing: 0.03em; }

.pastilla--placeholder{ text-align:center; padding: 32px 20px; }
.pastilla--placeholder .pastilla__icon{ font-size: 32px; margin-bottom: 10px; }
.pastilla--placeholder .pastilla__title{ margin-bottom: 8px; }

.bottom-nav{
  position: fixed; left:0; right:0; bottom:0; z-index: 35;
  display:flex; align-items:flex-end; justify-content:space-between;
  background: var(--ink-soft); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + var(--safe-bottom));
}
.bottom-nav__item{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  background:none; border:none; color: var(--paper-faint); font-family: var(--font-body);
  font-size: 10px; font-weight:700; padding:6px 2px; cursor:pointer;
}
.bottom-nav__icon{ width:21px; height:21px; fill: currentColor; }
.bottom-nav__icon-wrap{ position:relative; display:inline-flex; }
.bottom-nav__unseen-dot{
  position:absolute; top:-2px; right:-3px; width:8px; height:8px; border-radius:50%;
  background: var(--danger);
}
.bottom-nav__icon--history{ fill:none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav__item.is-active{ color: var(--brand-lime); }
.bottom-nav__item--fab{
  flex: 0 0 auto; width:58px; height:58px; border-radius:50%; background: var(--brand-lime);
  color:#1A1400; margin: 0 4px;
  margin-top:-24px; box-shadow: 0 6px 16px rgba(149,255,25,0.4); border: 4px solid var(--ink);
  display:flex; align-items:center; justify-content:center;
}
.bottom-nav__fab-icon{ width:26px; height:26px; }
.bottom-nav__item--fab:active{ transform: scale(0.95); }
.bottom-nav__item--fab.is-active{ color: #1A1400; }

@media (min-width: 720px){
  .player-home-widgets-grid{ grid-template-columns: repeat(4, 1fr); }
  .bottom-nav{
    max-width:none; left:0; right:0; margin:0;
    padding-left:max(4px, calc((100% - 768px) / 2 + 4px));
    padding-right:max(4px, calc((100% - 768px) / 2 + 4px));
  }
}


:root{
  --sheet-duration-enter: var(--motion-base);
  --sheet-duration-level: var(--motion-fast);
  --sheet-ease: var(--motion-ease);

  --court-bg: var(--bg);
  --court-surface: var(--surface-1);
  --court-surface-2: var(--surface-2);
  --court-line: var(--line);
  --court-text-dim: var(--text-dim);
  --court-text-faint: var(--text-faint);
  --court-glow: rgba(149,255,25,0.28);
}
@media (prefers-reduced-motion: reduce){
  :root{ --sheet-duration-enter: 1ms; --sheet-duration-level: 1ms; }
}

.sheet-scrim{
  position: fixed; inset: 0; z-index: 36; background: rgba(3,6,12,0.78);
  opacity: 0; transition: opacity var(--sheet-duration-enter) var(--sheet-ease);
  display:flex; align-items:flex-end; justify-content:center;
}
.sheet-scrim.is-open{ opacity: 1; }
.bottom-sheet{
  width:100%; max-width: 480px; background: var(--court-surface); border: 1px solid var(--court-line);
  border-radius: 20px 20px 0 0; padding: 16px 18px calc(26px + var(--safe-bottom));
  transform: translateY(100%); transition: transform var(--sheet-duration-enter) var(--sheet-ease);
  touch-action: none;
}
@media (min-width: 720px){
  .bottom-sheet{ max-width: 768px; }
}
@media (min-width: 720px){
  .sheet-scrim{ align-items: center; }
  .bottom-sheet{ border-radius: 20px; }
  .bottom-sheet--compact{ min-height: 0; }
}
#profile-picker-sheet{ min-height: clamp(220px, 32dvh, 260px); display:flex; flex-direction:column; }
#profile-picker-sheet .picker-sheet-list{ flex:1; justify-content:center; }
@media (min-width: 720px){
  #profile-picker-sheet{ max-width: 420px; min-height: 0; }
  #profile-picker-sheet .picker-sheet-list{ flex: none; justify-content: flex-start; }
}
.sheet-scrim.is-open .bottom-sheet{ transform: translateY(0); }
.bottom-sheet--compact{ min-height: clamp(280px, 35dvh, 340px); display:flex; flex-direction:column; }
.bottom-sheet--compact .bottom-sheet__level{ flex:1; justify-content:center; }
.bottom-sheet__grabber{ width:36px; height:4px; border-radius:999px; background: var(--court-line); margin: 0 auto 16px; }
.bottom-sheet__header{ position:relative; display:flex; align-items:center; justify-content:space-between; min-height: 30px; margin-bottom: 18px; gap: 10px; }
.bottom-sheet__title{ position:absolute; left:36px; right:36px; text-align:center; pointer-events:none; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.03em; color: var(--paper); text-transform: uppercase; }
.bottom-sheet__back{ background:none; border:none; color: var(--court-text-dim); font-size:18px; cursor:pointer; padding:4px 8px; flex:none; z-index:1; }
.bottom-sheet__close{ background: var(--court-surface-2); border:none; color: var(--court-text-dim); width:28px; height:28px; border-radius:50%; font-size:13px; cursor:pointer; flex:none; z-index:1; margin-left:auto; }
.bottom-sheet__level{ display:flex; flex-direction:column; gap: 12px; padding-bottom: 4px; }

#load-format-sheet .setup-section + .setup-section{ margin-top: 22px; }
#load-format-sheet #load-format-sheet-done{ margin-top: 24px; }

.bottom-sheet__level.is-entering{ animation: sheetLevelIn var(--sheet-duration-level) var(--sheet-ease); }
@keyframes sheetLevelIn{ from{ opacity:0; transform: translateX(10px); } to{ opacity:1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce){
  .bottom-sheet__level.is-entering{ animation: sheetLevelFadeIn var(--sheet-duration-level) ease; }
}
@keyframes sheetLevelFadeIn{ from{ opacity:0; } to{ opacity:1; } }

.btn-secondary--danger{ background: rgba(255,91,84,0.10); border-color: rgba(255,91,84,0.45); color: var(--danger); }

.view--court{
  background: var(--bg-gradient-app); display:flex; flex-direction:column; height:100vh; height:100dvh;
  --court-surface: var(--surface-2);
  --court-surface-2: var(--surface-3);
}
.court-scroll{ flex:1; overflow-y:auto; padding: 16px 18px calc(30px + var(--safe-bottom) + var(--bottomnav-h)); }
.load-match-scroll{ padding-bottom: 24px; transition: padding-bottom var(--sheet-duration-enter, 260ms) var(--sheet-ease, ease); }

.court-header{
  display:flex; align-items:center; gap: 12px;
  padding: calc(12px + var(--safe-top)) 18px 12px; border-bottom: 1px solid var(--court-line);
}
.court-header__back{ color: var(--court-text-dim); flex:none; }
.court-header__state{ min-width:0; }
.court-header__status{ font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.03em; color: var(--paper); text-transform: uppercase; }
.court-header__format{ font-size: 11px; color: var(--court-text-dim); margin-top: 1px; }

.vs-divider--compact{ margin: -4px 0; }

.court-accumulated{ display:flex; justify-content:center; gap: 8px; margin-bottom: 14px; flex-wrap:wrap; }
.court-accumulated__set{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; background: var(--court-surface);
  border: 1px solid var(--court-line); border-radius: 10px; padding: 7px 14px; cursor:pointer;
  min-width: 60px; min-height: 48px;
}
.court-accumulated__set-label{ font-size: 10px; font-weight:800; letter-spacing:0.06em; color: var(--court-text-faint); }
.court-accumulated__set-score{ font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--paper); font-variant-numeric: tabular-nums; }
.court-accumulated__set:active{ border-color: var(--brand-lime); }
.court-accumulated__set-num{ color: var(--court-text-faint); }
.court-accumulated__set-num.is-win{ color: var(--paper); }
.court-accumulated__set-sep{ color: var(--court-text-faint); margin: 0 1px; }

.court-current-set{
  background: var(--court-surface); border: 1px solid var(--court-line); border-radius: var(--radius-hero);
  padding: 22px 16px 20px; margin-bottom: 16px; text-align:center;
}
.court-current-set__label{ font-size: 11px; font-weight:800; letter-spacing:0.08em; color: var(--court-text-dim); text-transform:uppercase; margin-bottom: 12px; }
.court-current-set__row{ display:flex; align-items:center; justify-content:center; gap: 14px; }
.court-score{
  flex: 1; max-width: 156px; background: var(--court-surface-2); border: 2px solid transparent; border-radius: 16px;
  padding: 18px 6px 13px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap: 5px;
}
.court-score__value{ font-family: var(--font-display); font-weight: 800; font-size: 60px; line-height:1; color: var(--paper); font-variant-numeric: tabular-nums; }
.court-score.is-empty .court-score__value{ color: var(--court-text-faint); }
.court-score__name{ font-size: 11px; font-weight:700; color: var(--court-text-dim); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.court-score.is-active{ border-color: var(--brand-lime); background: rgba(149,255,25,0.10); }
.court-score.is-active .court-score__value{ color: var(--brand-lime); }
.court-score__sep{ font-family: var(--font-display); font-size: 28px; color: var(--court-text-faint); flex:none; }
.court-current-set__hint{ margin: -6px 0 14px; font-size: 13px; font-weight:700; color: var(--brand-lime); text-align:center; }

.load-match-error{
  color: var(--danger); margin: 12px 0 14px; padding: 9px 14px; box-sizing: border-box; width: 100%;
  text-align: center; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1.4;
  background: rgba(255,91,97,0.08); border: 1px solid rgba(255,91,97,0.28); border-radius: 12px;
}

.court-meta-line{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  background: var(--court-surface); border: 1px solid var(--court-line); border-radius: 12px;
  padding: 12px 14px; margin: 4px 0 8px; font-family: var(--font-body); font-weight:700;
  font-size: 13px; color: var(--paper); cursor:pointer;
}
.court-meta-line__text{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.court-meta-line__action{ flex:none; margin-left: 10px; font-size: 12px; font-weight:600; letter-spacing:0.02em; color: var(--court-text-dim); text-decoration: underline; text-underline-offset: 2px; }
#match-saved-meta-line .court-meta-line__text{ color: var(--text); font-weight: 600; }
#match-saved-meta-line{ margin-bottom: 14px; }

.load-format-line{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  background: var(--court-surface); border: 1px solid var(--court-line); border-radius: 12px;
  padding: 12px 14px; margin: 4px 0 10px; font-family: var(--font-body); font-weight:700;
  font-size: 13px; color: var(--paper); cursor:pointer;
}
.load-format-line__chevron{ color: var(--court-text-dim); font-size: 16px; }

.court-meta-compact{
  display:flex; flex-wrap:wrap; gap:8px; margin: 4px 0 10px;
}
.court-meta-compact .load-format-line,
.court-meta-compact .court-meta-line{
  flex: 1 1 140px; width:auto; margin: 0;
}

.court-continue-wrap{
  position: fixed; left:0; right:0; bottom: var(--bottomnav-h); z-index: 33;
  background: var(--court-bg); padding: 10px 18px calc(10px + var(--safe-bottom));
  transition: bottom var(--sheet-duration-enter) var(--sheet-ease);
}
.court-continue-btn{
  width:100%; padding: 16px; border:none; border-radius: 14px; background: var(--brand-lime);
  color: #0C1400; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.06em; cursor:pointer; box-shadow: 0 8px 20px rgba(149,255,25,0.22);
  transition: transform .1s ease;
}
.court-continue-btn:active{ transform: scale(0.98); }
.court-continue-btn:disabled{ opacity:0.35; cursor:not-allowed; box-shadow:none; background: var(--court-surface-2); color: var(--court-text-dim); }

.load-keypad{
  position: fixed; left:0; right:0; bottom: var(--bottomnav-h); z-index: 32;
  background: var(--court-surface); border-top: 1px solid var(--court-line);
  padding: 10px 14px calc(12px + var(--safe-bottom));
  transform: translateY(0); transition: transform var(--sheet-duration-enter) var(--sheet-ease);
}
.load-keypad__grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 7px; max-width: 360px; margin: 0 auto; }
.load-keypad__key{
  padding: 13px 0; border-radius: 10px; border: 1px solid var(--court-line); background: var(--court-surface-2);
  color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 19px; cursor:pointer;
}
.load-keypad__key:active{ transform: scale(0.96); }
.load-keypad__key:disabled{ opacity: 0.3; cursor:not-allowed; }
.load-keypad__key--ghost{ padding: 13px 0; border: none; background: none; font-family: var(--font-body); font-size: 11px; font-weight:800; letter-spacing:0.03em; color: var(--court-text-dim); }
.load-keypad__key--ghost:active{ color: var(--paper); }
.load-keypad__key:focus-visible{ outline: none; box-shadow: 0 0 0 2px var(--brand-lime); }
@media (prefers-reduced-motion: reduce){ .load-keypad, .court-continue-wrap{ transition: none; } }

.bottom-sheet--tall{ height: clamp(480px, 72dvh, 640px); display:flex; flex-direction:column; }
.bottom-sheet--tall .bottom-sheet__header{ flex:none; }
.bottom-sheet--tall-xl{ height: clamp(520px, 82dvh, 760px); }
.group-sheet-profile-link{
  flex:none; align-self:center; margin: 8px 0 4px; padding: 8px 12px; background:none; border:none; cursor:pointer;
  font-size: 13px; font-weight:600; color: var(--brand-lime);
}
#group-breakdown-sheet .load-player-sheet__scroll,
#group-race-summary-sheet .load-player-sheet__scroll{ padding-right: 12px; }
.load-player-sheet__scroll{ flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }

.player-search-field{
  display:flex; align-items:center; gap: 10px; background: var(--court-surface); border: 1px solid var(--court-line);
  border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; flex:none; transition: border-color .15s ease;
}
.player-search-field:focus-within{ border-color: var(--team-a); }
.load-player-sheet.is-context-rival .player-search-field:focus-within{ border-color: var(--team-b); }
.player-search-field__icon{ flex:none; color: var(--court-text-dim); }
.player-search-field__input{ flex:1; min-width:0; background:none; border:none; outline:none; color: var(--paper); font-family: var(--font-body); font-weight:600; font-size:15px; }
.player-search-field__input::placeholder{ color: var(--court-text-faint); font-weight:500; }

.load-player-sheet__section-label{ font-size: 10px; font-weight:700; letter-spacing:0.03em; text-transform:uppercase; color: var(--court-text-faint); margin: 2px 0 6px; }
.player-recents-section{ margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--court-line); }
.load-player-sheet__list{ margin-top: 2px; }
.player-row{
  display:flex; align-items:center; gap: 12px; width:100%; text-align:left;
  background:none; border:none; border-radius: 0; padding: 9px 6px; cursor:pointer;
  transition: background .12s ease;
}
.player-row:active{ background: rgba(149,255,25,0.08); }
.load-player-sheet.is-context-rival .player-row:active{ background: rgba(25,159,255,0.08); }
.player-row + .player-row{ border-top: 1px solid var(--line); }
.player-row__avatar{
  flex:none; width:48px; height:48px; border-radius:50%; background: var(--court-surface-2); border: 1px solid var(--court-line);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700; font-size:17px; color: var(--court-text-dim);
  overflow:hidden;
}
.player-row__avatar-img{ display:none; width:100%; height:100%; object-fit:cover; }
.player-row__avatar[data-has-photo="true"] .player-row__avatar-initials{ display:none; }
.player-row__avatar[data-has-photo="true"] .player-row__avatar-img{ display:block; }
.player-row__info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.player-row__name{ font-weight:700; font-size:15px; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.player-row__handle{ font-size:12px; color: var(--court-text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.player-row__level{ flex:none; text-align:right; }
.player-row__level-value{ display:block; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--paper); font-variant-numeric: tabular-nums; }
.player-row__level-label{ display:block; font-size: 8px; letter-spacing: 0.04em; color: var(--paper-faint); font-weight: 800; text-transform: uppercase; margin-bottom: 1px; }




.level-calibrating-inline{ color: var(--gold); font-weight: 700; }
.load-player-sheet__empty{ padding: 14px 6px; font-size: 12px; color: var(--court-text-dim); }
.identity-resolve-unidentified-btn{ display:block; width:100%; text-align:center; margin-top: 12px; padding: 12px 6px; border-top: 1px solid var(--line); }
.profile-location-manual-trigger{ display:block; width:100%; text-align:center; margin-top: 10px; }
.profile-location-manual{ display:flex; flex-direction:column; gap: 8px; margin-top: 10px; }
.profile-location-manual .field + .field{ margin-top:0; }
.player-row-list{ margin-top: 2px; }
#jugadores-global-section{ margin-top: 14px; }
.group-picker-row__check{
  flex:none; width:20px; height:20px; border-radius:50%; border: 1.5px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center; color: var(--ink);
}
.group-picker-row.is-selected{ background: rgba(149,255,25,0.06); }
.group-picker-row.is-selected .group-picker-row__check{ background: var(--brand-lime); border-color: var(--brand-lime); }
.group-picker-row.is-selected .group-picker-row__check svg{ display:block; }
.group-picker-row__check svg{ display:none; }
.player-row__avatar--add{ color: var(--team-a); }
.load-player-sheet.is-context-rival .player-row__avatar--add{ color: var(--team-b); }

.court-note{
  margin: 4px 0 18px; background: var(--court-surface); border: 1px solid var(--court-line);
  border-radius: 14px; padding: 14px 14px 12px; transition: border-color .15s ease;
}
.court-note:focus-within{ border-color: var(--brand-lime); }
.court-note__label{ display:flex; align-items:center; gap: 6px; font-size: 11px; font-weight:800; letter-spacing:0.05em; color: var(--court-text-dim); text-transform:uppercase; margin-bottom: 10px; }
.court-note__lock{ width:13px; height:13px; fill: var(--court-text-dim); flex:none; }
.court-note__textarea{
  width:100%; min-height: 72px; background: transparent; border: none; border-radius: 0;
  padding: 0; font-family: var(--font-body); font-size: 13px; color: var(--paper); resize: vertical;
  outline:none;
}
.court-note__textarea::placeholder{ color: var(--court-text-faint); }
.court-note__display{
  display:block; width:100%; min-height: 72px; background:none; border:none; margin:0; padding:0;
  text-align:left; font-family: var(--font-body); font-size: 13px; color: var(--paper); cursor:pointer;
}
.court-note__display.is-empty{ color: var(--court-text-faint); }

.manual-meta-sheet-done{ margin-top: 16px; }


















.view--access{
  display:flex; flex-direction:column;
  background: var(--bg-gradient-app);
  max-width: 460px; margin: 0 auto;
}
.access-scroll{ display:flex; flex-direction:column; flex:1; min-height:0; padding: calc(20px + var(--safe-top)) 22px calc(28px + var(--safe-bottom)); }
.access-scroll--under-header{ padding-top: 20px; }
.access-scroll--with-bottom-nav{ padding-bottom: calc(90px + var(--safe-bottom)); }
#view-group-settings .access-scroll{ overflow-y:auto; }
#view-group-settings .group-settings-leave-btn{ width:100%; flex:none; margin-top: 32px; }
#view-group-settings .group-settings-delete-btn{ margin-top: 28px; }
#view-group-settings{ height:100vh; height:100dvh; min-height:0; max-height:100dvh; overflow:hidden; }
#view-group-settings .access-scroll{
  flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  padding-bottom: calc(28px + var(--safe-bottom) + var(--bottomnav-h, 0px));
}
#view-edit-data, #view-complete-access, #view-change-password{ height:100vh; height:100dvh; min-height:0; max-height:100dvh; overflow:hidden; }
#view-edit-data .access-scroll, #view-complete-access .access-scroll, #view-change-password .access-scroll{
  flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  padding-bottom: calc(28px + var(--safe-bottom) + var(--bottomnav-h, 0px));
}

.access-logo{ width: 240px; height:auto; margin: 0 auto 22px; display:block; }
#view-access .access-scroll{ justify-content: center; }

.view--access .analysis-header{ display:grid; grid-template-columns: 1fr auto 1fr; column-gap: 12px; }
.view--access .analysis-header .icon-btn{ grid-column: 1; justify-self:start; }
.view--access .analysis-header__title{ grid-column: 2; text-align:center; }
.access-subtitle{ color: var(--paper-dim); font-size: 13px; text-align:center; margin: 0 0 24px; }
.access-actions{ display:flex; flex-direction:column; gap: 12px; margin-top: 8px; }
.access-lab-action{ display:block; width:100%; text-align:center; margin-top: 18px; }
.access-form{ display:flex; flex-direction:column; gap: 4px; }
.access-form .field{ margin-top: 0; }
.access-form .field + .field{ margin-top: 8px; }
.access-form .edit-error{ margin-top: 10px; }

.signup-step{ display:flex; flex-direction:column; gap: 8px; }
.signup-step + .signup-step{ margin-top: 0; }

.login-forgot-link{ align-self:center; margin-top: 10px; }
.forgot-password-step{ display:flex; flex-direction:column; gap: 8px; }

.password-rules{ list-style:none; margin: 2px 0 4px; padding:0; display:flex; flex-direction:column; gap: 3px; }
.password-rules li{ font-size: 11.5px; color: var(--paper-faint); padding-left: 16px; position:relative; }
.password-rules li::before{ content:'○'; position:absolute; left:0; top:0; font-size: 10px; }
.password-rules li.is-met{ color: var(--brand-lime); }
.password-rules li.is-met::before{ content:'●'; }

#signup-password-rules li.is-missing{ color:var(--danger); font-weight:700; }
#signup-password-rules li.is-missing::before{ content:'!'; font-weight:800; }
#signup-password.is-invalid{ border-bottom-color:var(--danger); }
.signup-password-repeat-field.is-locked .field-with-toggle{ opacity:.42; }
#signup-password-rules.has-missing{ animation:signup-pw-nudge .22s ease-out 1; }
@keyframes signup-pw-nudge{ 0%,100%{ transform:translateX(0); } 25%{ transform:translateX(-3px); } 75%{ transform:translateX(3px); } }
@media (prefers-reduced-motion:reduce){ #signup-password-rules.has-missing{ animation:none; } }

.signup-username-feedback{ font-size: 11.5px; color: var(--paper-dim); margin: 6px 0 4px; min-height: 14px; }
.signup-username-feedback.is-taken{ color: var(--danger); }

.signup-avatar-upload{ position:relative; width: 84px; margin: 4px auto 14px; }
.signup-avatar{
  width: 84px; height:84px; border-radius:50%; background: var(--ink-softer); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--brand-lime);
}
.signup-avatar img{ width:100%; height:100%; object-fit:cover; }
.signup-avatar-edit{
  position:absolute; right:-2px; bottom:-2px; width: 30px; height:30px; border-radius:50%;
  background: var(--brand-lime); color:#1A1400; border: 2px solid var(--bg);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.pencil-icon{ width:14px; height:14px; }
.profile-avatar-row{ display:flex; justify-content:center; margin: 0 0 14px; }

.signup-row-2col{ display:flex; gap: 8px; }
.signup-row-2col .field{ flex:1 1 0; min-width:0; }
.signup-row-2col .field + .field{ margin-top:0; }
#signup-hand-options .option-col, #signup-side-options .option-col{
  min-height: 40px; padding: 9px 4px; font-size: 11px; font-weight: 700;
}
#signup-location-row{ border-top:none; border-bottom: 2px solid var(--line); min-height:auto; padding: 8px 2px 10px; }
#signup-location-row .profile-select-row__value{ font-size:16px; }

.profile-avatar{
  width: 64px; height:64px; border-radius:50%; background: var(--ink-softer); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; overflow:hidden; flex:none;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--brand-lime);
}
.profile-avatar img{ width:100%; height:100%; object-fit:cover; }
.pastilla-identity__handle{ font-size: 12px; color: var(--paper-faint); margin-bottom: 4px; }

.profile-avatar-edit-wrap{ position:relative; flex:none; }
.avatar-edit-badge{
  position:absolute; right:-2px; bottom:-2px; width: 26px; height:26px; border-radius:50%;
  background: var(--brand-lime); color:#1A1400; border: 2px solid var(--bg);
  cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0;
}
.avatar-edit-badge svg{ width:13px; height:13px; }
.profile-identity-compact{ display:flex; align-items:center; gap: 14px; }
.profile-identity-compact__info{ flex:1; min-width:0; padding-right: 40px; }
.profile-identity-compact__name{ font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--paper); }
.profile-identity-compact__handle{ font-size: 12px; color: var(--paper-dim); margin-top: 2px; }
.profile-identity-compact__display{ font-size: 11px; color: var(--paper-faint); margin-top: 4px; }
.profile-identity-compact__display .profile-field__label{ font-size: 11px; }
.profile-personal-row{ margin-top: 14px; }

.mini-stat-card{ padding: 14px 16px; }
.mini-stat-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.mini-stat-grid--3col{ grid-template-columns: 1fr 1fr 1fr; }
.mini-stat-grid--3col .mini-stat__label{ min-height: 26px; }
.mini-stat{ display:flex; flex-direction:column; gap:2px; }
.mini-stat__label{ font-size: 11px; color: var(--paper-dim); }
.mini-stat__value{ font-size: 15px; font-weight:700; color: var(--paper); font-variant-numeric: tabular-nums; }
.mini-stat__sub{ font-size: 10px; color: var(--paper-faint); font-weight: 600; }

.profile-access-pending{ border: 1px solid rgba(255,201,61,0.35); background: rgba(255,201,61,0.08); }
.profile-access-pending .pastilla__title{ color: var(--gold); }

.profile-fields{ display:flex; flex-direction:column; gap: 10px; }
.profile-field{ display:flex; align-items:baseline; justify-content:space-between; gap: 12px; }
.profile-field__label{ font-size: 12px; color: var(--paper-dim); }
.profile-field__value{ font-size: 13px; color: var(--paper); font-weight: 700; text-align:right; }

.profile-edit-icon-btn{
  background: var(--ink-softer); border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height:34px; display:flex; align-items:center; justify-content:center;
  color: var(--paper); cursor:pointer;
}
.profile-identity-card{ position:relative; }
.profile-identity-card__edit{ position:absolute; top: 14px; right: 14px; }

.profile-tabs{ display:flex; gap: 4px; padding: 8px 18px 0; border-bottom: 1px solid var(--line); }
.profile-tab{
  flex:1; position:relative; background:none; border: none; border-bottom: 2px solid transparent;
  color: var(--paper-faint); font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em; padding: 9px 14px 10px; cursor:pointer;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.profile-tab.is-active{ color: var(--brand-lime); font-weight: 700; border-bottom-color: var(--brand-lime); }
.profile-panel{ display:flex; flex-direction:column; gap: 12px; }
.profile-panel > .pastilla{ margin-bottom: 0; }
@media (min-width: 720px){ .profile-tabs{ width: 100%; max-width: 768px; margin: 0 auto; padding-left: 18px; padding-right: 18px; } }

.profile-group__title{ font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-dim); font-weight: 700; margin-bottom: 10px; }
.profile-group .profile-field + .profile-field{ margin-top: 10px; }
.profile-group .profile-field{ flex-direction:column; align-items:flex-start; gap: 2px; }
.profile-group .profile-field__value{ text-align:left; font-size:14px; }

.profile-group{ position:relative; }
.profile-group__edit{ position:absolute; top: 14px; right: 14px; }
.profile-group--editable{ cursor:pointer; transition: transform .1s ease; }
.profile-group--editable:active{ transform: scale(0.99); }
.profile-group--editable > .profile-group__title{ padding-right: 40px; }
.profile-incomplete-banner{ border: 1px solid rgba(255,201,61,0.35); background: rgba(255,201,61,0.08); }
.profile-incomplete-banner .pastilla__title{ color: var(--gold); }
.profile-access-pending{ margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.profile-access-pending .btn-secondary{ width:100%; margin-top: 8px; }
.profile-row-action{
  display:flex; align-items:center; justify-content:space-between; width:100%; min-height: 48px;
  background:none; border:none; border-top: 1px solid var(--line); margin-top: 12px; padding: 14px 0;
  color: var(--paper); font-size: 13px; font-weight: 700; cursor:pointer; text-align:left;
}
.profile-row-action__chevron{ color: var(--paper-faint); font-size: 16px; }
.profile-security-btn{ width:100%; }

.profile-select-rows{ margin-top: 4px; }
.profile-select-row{
  display:flex; align-items:center; justify-content:space-between; width:100%; min-height: 52px;
  background:none; border:none; border-top: 1px solid var(--line); padding: 12px 0; cursor:pointer; text-align:left;
}
.profile-select-row:first-child{ border-top:none; }
.profile-select-row__text{ display:flex; flex-direction:column; gap: 3px; min-width:0; }
.profile-select-row__label{ font-size: 12px; color: var(--paper-dim); font-weight: 600; }
.profile-select-row__value{ font-size: 14px; color: var(--paper); font-weight: 700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-select-row__chevron{ flex:none; margin-left: 10px; color: var(--paper-faint); font-size: 16px; }
.profile-select-row:disabled{ opacity:0.4; cursor:not-allowed; }
.field__input:disabled{ opacity:0.5; cursor:not-allowed; }

.picker-sheet-list{ display:flex; flex-direction:column; max-height: 50vh; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.picker-sheet-option{
  display:flex; align-items:center; justify-content:space-between; width:100%; text-align:left;
  background:none; border:none; border-top: 1px solid var(--court-line); padding: 14px 4px; min-height: 48px;
  color: var(--paper); font-size: 14px; font-weight: 600; cursor:pointer;
}
.picker-sheet-option:first-child{ border-top:none; }
.picker-sheet-option:active{ background: rgba(149,255,25,0.06); }
.picker-sheet-option.is-selected{ color: var(--brand-lime); font-weight: 800; }
.picker-sheet-option__check{ color: var(--brand-lime); flex:none; }
.picker-sheet-option__text{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.picker-sheet-option__avatar{ margin-right: 10px; }
.picker-sheet-option__avatar + .picker-sheet-option__text{ flex:1; }
.picker-sheet-option__meta{ color: var(--paper-dim); font-weight: 600; }

.field-label{ display:block; font-size: 12px; color: var(--paper-dim); font-weight: 700; margin-bottom: 4px; }
.field--labeled{ display:flex; flex-direction:column; }
.field-hint{ font-size: 11px; color: var(--paper-faint); margin: 4px 2px 0; }

.field--checkbox{ padding: 6px 2px; }
.field-checkbox-label{ display:flex; align-items:flex-start; gap:10px; font-size:13px; color: var(--paper-dim); cursor:pointer; }
.field-checkbox-label input[type="checkbox"]{ accent-color: var(--brand-lime); width:18px; height:18px; flex-shrink:0; margin-top:1px; }
.field-checkbox-label a{ color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.option-row--2col{ grid-template-columns: 1fr 1fr; }

.profile-toggle-row{ display:flex; align-items:center; justify-content:space-between; gap: 14px; padding: 8px 2px; }
.profile-toggle-row__text{ display:flex; flex-direction:column; gap: 3px; }
.profile-toggle-row__label{ font-size: 13px; color: var(--paper); font-weight: 600; }
.profile-toggle-row__hint{ font-size: 11px; color: var(--paper-faint); }
.toggle-switch{
  flex: none; position:relative; width: 44px; height: 26px; padding:0; cursor:pointer;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface-2);
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.toggle-switch__thumb{
  position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%;
  background: var(--paper-dim); transition: transform var(--motion-fast) ease, background var(--motion-fast) ease;
}
.toggle-switch.is-on{ background: rgba(149,255,25,0.18); border-color: var(--brand-lime); }
.toggle-switch.is-on .toggle-switch__thumb{ transform: translateX(18px); background: var(--brand-lime); }

.forgot-password-no-account{ margin-top: 4px; }
.forgot-password-no-account .coverage-note{ margin-bottom: 8px; }
.forgot-password-no-account .btn-secondary{ width:100%; flex:none; }

.player-card-complete-hint{ margin-top: 14px; margin-bottom: 8px; text-align:center; }
#player-card-complete-profile-btn{ width:100%; flex:none; }

.field-with-toggle{ position:relative; }
.field-with-toggle .field__input{ padding-right: 30px; }
.password-toggle-btn{
  position:absolute; right:0; bottom: 5px; background:none; border:none; color: var(--paper-dim);
  line-height:1; cursor:pointer; padding: 4px;
}
.password-toggle-btn.is-active{ color: var(--brand-lime); }
.eye-icon{ width:20px; height:20px; display:block; }

.btn-save{ width:100%; flex:none; margin-top: 16px; text-align:center; }







.ficha-deportiva{
  background: var(--ink-soft); border: 1px solid rgba(149,255,25,0.35); border-radius: var(--radius-hero);
  padding: 20px; box-shadow: 0 0 32px rgba(149,255,25,0.12); margin-bottom: 18px;
}
.ficha-deportiva.player-card{ cursor:default; }

.groups-current-selector{
  display:flex; align-items:center; justify-content:space-between; width:100%; text-align:left;
  background: var(--ink-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px; cursor:pointer;
}
.groups-current-selector:active{ background: rgba(149,255,25,0.06); }
.groups-current-selector__avatar{
  flex:none; width:28px; height:28px; border-radius:50%; overflow:hidden; margin-right: 10px; background: var(--ink-softer); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700; font-size: 11px; color: var(--brand-lime);
}
.groups-current-selector__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.groups-current-selector__name{ flex:1; min-width:0; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.groups-current-selector__chevron{ flex:none; margin-left: 10px; color: var(--paper-dim); }
.groups-panel{ display:flex; flex-direction:column; margin-top: 12px; }
.groups-intel-list{ display:flex; flex-direction:column; gap: 6px; margin-top: 2px; }
.groups-intel-item{ margin: 0; font-size: 13px; font-weight:500; color: rgba(248,250,252,.82); line-height:1.5; padding-left: 14px; position:relative; }
.groups-intel-item::before{ content:''; position:absolute; left:0; top: 7px; width:5px; height:5px; border-radius:50%; background: var(--brand-lime); }
.groups-race-title{ margin-bottom: 10px; }
.group-points-info-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 10px; }
.group-points-info-list li{ font-size: 13px; color: var(--paper-dim); line-height:1.5; padding-left: 14px; position:relative; }
.group-points-info-list li::before{ content:''; position:absolute; left:0; top: 7px; width:5px; height:5px; border-radius:50%; background: var(--brand-lime); }
.group-points-info-list strong{ color: var(--paper); }
.group-help-hero{ margin: 2px 0 14px; }
.group-help-hero__title{ margin:0; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height:1.25; color: var(--brand-lime); }
.group-help-hero__sub{ margin: 6px 0 0; font-size: 13px; line-height:1.5; color: var(--paper-dim); }
.group-help-blocks{ display:flex; flex-direction:column; gap: 8px; margin-bottom: 16px; }
.group-help-block{ display:block; background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 10px 12px; }
.group-help-block__title{ display:block; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--paper); }
.group-help-block__sub{ display:block; font-size: 12px; line-height:1.45; color: var(--paper-dim); margin-top: 2px; }
.group-help-block__sub strong{ color: var(--paper); }
.group-help-footnote{ margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--paper-dim); }
.group-breakdown-note{ margin: 0 0 10px; font-size: 12px; color: var(--paper-dim); }
.group-help-sub-title{ margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); }

.btn-secondary--lime{ background: rgba(149,255,25,0.10); border-color: rgba(149,255,25,0.45); color: var(--brand-lime); }
.groups-switch-create-btn{ width:100%; flex:none; margin-top: 14px; }

.group-name-edit{ margin-bottom: 4px; }
.group-name-edit__row{ display:flex; align-items:center; gap: 10px; margin-top: 6px; }
.group-name-edit__value{ flex:1; min-width:0; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.group-name-edit__input{ flex:1; min-width:0; }
.group-name-edit__pencil{ flex:none; }

.group-table{ display:flex; flex-direction:column; gap: 8px; }
.group-table__row{
  display:flex; align-items:center; gap: 10px; width:100%; text-align:left;
  background: var(--ink-soft); border: none; border-radius: 12px; padding: 12px 14px; cursor:pointer;
  transition: background .12s ease;
}
.group-table__row:active{ background: rgba(149,255,25,0.08); }
.group-table__position{ flex:none; width:20px; text-align:center; font-family: var(--font-display); font-weight:800; font-size: 14px; color: var(--paper-faint); }
.group-table__row--top1 .group-table__position{ color: var(--brand-lime); }
.group-table__info{ flex:1; min-width:0; }
.group-table__toprow{ display:flex; flex-wrap:wrap; align-items:baseline; column-gap: 5px; row-gap: 0; }
.group-table__name{ display:block; font-size: 14px; font-weight:700; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.group-table__handle{ font-size: 12px; font-weight:600; color: var(--paper-dim); white-space:nowrap; }
.group-table__admin-tag{
  font-size: 8px; font-weight:800; letter-spacing:0.05em; text-transform:uppercase; color: var(--paper-faint);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 6px; margin-left: 6px; vertical-align: middle;
}
.group-table__caption{ display:block; font-size: 12px; color: var(--paper-dim); margin-top: 2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.person-list__avatar--photo{ overflow:hidden; padding:0; }
.person-list__avatar--photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.group-table__points{ flex:none; text-align:right; }
.group-table__points-value{ display:block; font-family: var(--font-display); font-weight:800; font-size: 18px; color: var(--paper); font-variant-numeric: tabular-nums; }
.group-table__points-label{ display:block; font-size: 8px; font-weight:800; letter-spacing:0.05em; color: var(--paper-faint); text-transform:uppercase; margin-top: 1px; }

.groups-lobby-claim{ font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--paper); margin: 4px 0 6px; line-height: 1.3; }
.groups-lobby-pitch{ display:flex; flex-direction:column; gap: 10px; margin: 16px 0; }
.groups-lobby-pitch__item{ display:block; background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px 14px; }
.groups-lobby-pitch__title{ display:block; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--brand-lime); }
.groups-lobby-pitch__sub{ display:block; font-size: 12px; color: var(--paper-dim); margin-top: 2px; }
.groups-lobby-example-label{ font-size: 10px; font-weight:800; letter-spacing:0.08em; color: var(--paper-faint); text-transform:uppercase; margin: 4px 0 8px; text-align:center; }
.groups-lobby-list{ display:flex; flex-direction:column; gap: 12px; }
.groups-lobby-create-other-btn{ margin-top: 16px; width:100%; }

.lobby-card{
  display:block; width:100%; text-align:left; background: var(--ink-soft); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 14px 16px; cursor:pointer; transition: background .12s ease;
}
.lobby-card:active{ background: rgba(149,255,25,0.06); }
.lobby-card--example{ cursor:default; opacity: .92; border-color: rgba(149,255,25,0.45); }
.groups-lobby-intro{ margin: 2px 0 14px; }
.groups-lobby-intro__title{ font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--paper); margin: 0 0 2px; }
.groups-lobby-intro__sub{ font-size: 12px; color: var(--paper-dim); margin: 0; line-height: 1.4; }
.lobby-card__head{ display:flex; align-items:center; gap: 12px; margin-bottom: 15px; }
.lobby-card__avatar{
  flex:none; width:50px; height:50px; border-radius:50%; background: var(--ink-softer); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700; font-size: 14px; color: var(--brand-lime);
}
.lobby-card__identity{ flex:1; min-width:0; display:flex; flex-direction:column; }
.lobby-card__name{ font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lobby-card__members{ font-size: 12px; color: var(--paper-dim); margin-top: 1px; }
.lobby-card__body{ display:flex; flex-direction:column; gap: 6px; }
.lobby-card__state-title{ font-size: 14px; font-weight:700; color: var(--paper); margin:0; }
.lobby-card__state-sub{ font-size: 12px; color: var(--paper-dim); margin: 2px 0 0; }
.lobby-card__row{ display:flex; align-items:center; gap: 10px; min-height: 45px; }
.lobby-card__row-avatar{
  flex:none; width:45px; height:45px; border-radius:50%; overflow:hidden; background: var(--ink-softer); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700; font-size: 16px; color: var(--brand-lime);
}
.lobby-card__row-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.lobby-card__avatar--photo{ overflow:hidden; padding:0; }
.lobby-card__avatar--photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.lobby-card__row-id{ flex:1; min-width:0; display:flex; flex-direction:column; }
.lobby-card__row-handle{ font-size: 11px; font-weight:600; color: var(--paper-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lobby-card__row-pos{ flex:none; width:18px; text-align:center; font-family: var(--font-display); font-weight:800; font-size: 12px; color: var(--paper-faint); }
.lobby-card__row-pos{ width:26px; font-size: 20px; line-height:1; }
.lobby-card__row-name{ flex:1; min-width:0; font-size: 13px; font-weight:600; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lobby-card__row-pts{ flex:none; font-family: var(--font-display); font-weight:800; font-size: 13px; color: var(--paper); font-variant-numeric: tabular-nums; }
.lobby-card__row--tie .lobby-card__row-name{ color: var(--gold); }
.lobby-card__row--self{ border-top: 1px dashed var(--line); margin-top: 2px; padding-top: 6px; }
.lobby-card__row--self .lobby-card__row-name{ color: var(--brand-lime); font-weight:700; }

.group-created{ text-align:center; padding-bottom: 4px; }
.group-created__title{ font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--paper); margin: 4px 0 10px; }
.group-created__name{ font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-lime); margin: 0; }
.group-created__members{ font-size: 12px; color: var(--paper-dim); margin: 2px 0 12px; }
.group-created .btn-start{ width:100%; }

.group-breakdown-head{ display:flex; align-items:center; gap: 12px; margin-bottom: 12px; }
.group-breakdown-head__info{ flex:1; min-width:0; display:flex; flex-direction:column; }
.group-breakdown-head__name{ font-family: var(--font-display); font-weight:700; font-size: 15px; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.group-breakdown-head__handle{ font-size: 12px; color: var(--paper-dim); }
.group-breakdown-head__activity{ font-size: 12px; color: var(--paper-dim); margin-top: 2px; }
.group-breakdown-head__points{ flex:none; font-family: var(--font-display); font-weight:800; font-size: 20px; color: var(--paper); font-variant-numeric: tabular-nums; }
.group-breakdown-list{ display:flex; flex-direction:column; gap: 4px; }
.group-breakdown-row{
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  padding: 8px 2px; border-bottom: 1px solid var(--line);
}
.group-breakdown-row:last-child{ border-bottom:none; }
.group-breakdown-row__main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.group-breakdown-row__date{ font-size: 11px; font-weight:700; color: var(--paper-faint); text-transform:uppercase; letter-spacing:0.02em; }
.group-breakdown-row__detail{ font-size: 13px; color: var(--paper); overflow:hidden; white-space:nowrap; }
.group-breakdown-row__detail-text{ display:inline-block; white-space:nowrap; }
.group-breakdown-row__detail.is-overflowing .group-breakdown-row__detail-text{
  animation: group-breakdown-marquee var(--marquee-duration, 9s) ease-in-out var(--marquee-delay, 1s) 3;
  will-change: transform;
}
@keyframes group-breakdown-marquee{
  0%, 22%{ transform: translateX(0); }
  52%, 72%{ transform: translateX(var(--marquee-shift, 0)); }
  100%{ transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce){
  .group-breakdown-row__detail{ overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .group-breakdown-row__detail-text{ white-space: normal; display:inline; }
  .group-breakdown-row__detail.is-overflowing .group-breakdown-row__detail-text{ animation: none; }
}
.group-breakdown-row__result{ font-size: 12px; color: var(--paper-dim); }
.group-breakdown-row__pts{ flex:none; font-family: var(--font-display); font-weight:800; font-size: 13px; color: var(--paper-faint); font-variant-numeric: tabular-nums; text-align:right; max-width: 40%; }
.group-breakdown-row--counted .group-breakdown-row__pts{ color: var(--brand-lime); }
.group-breakdown-row__pts-col{ flex:none; display:flex; flex-direction:column; align-items:flex-end; max-width: 40%; white-space: nowrap; }
.group-breakdown-row__pts-col .group-breakdown-row__pts{ max-width: none; white-space: nowrap; }
.group-breakdown-row__note{ font-size: 10px; color: var(--paper-faint); font-weight:600; margin-top: 1px; white-space:nowrap; }

.lobby-card__members-list{ display:flex; flex-direction:column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.groups-state-members{ display:flex; flex-direction:column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.groups-state-member{ display:flex; align-items:center; gap: 12px; }
.groups-state-member__info{ flex:1; min-width:0; display:flex; flex-direction:column; }
.groups-state-member__name{ font-size: 14px; font-weight:700; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.groups-state-member__handle{ font-size: 12px; font-weight:600; color: var(--paper-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.groups-panel-state{
  background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; margin-bottom: 12px;
}
.groups-panel.is-below-three .groups-intel-card,
.groups-panel.is-below-three .group-table,
.groups-panel.is-below-three .groups-table-empty,
.groups-panel.is-below-three .groups-race-title{ display:none !important; }
.group-photo-edit{ display:flex; flex-direction:column; align-items:center; gap: 8px; margin: 4px 0 18px; }
.group-photo-edit__wrap{ position:relative; flex:none; }
.group-photo-edit__avatar{
  width:84px; height:84px; border-radius:50%; overflow:hidden; cursor:pointer; background: var(--ink-softer); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700; font-size: 26px; color: var(--brand-lime);
}
.group-photo-edit__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.group-photo-edit__remove{ font-size: 12px; color: var(--paper-dim); }

.group-settings-members{ display:flex; flex-direction:column; margin-top: 6px; }
.group-settings-member{ display:flex; align-items:center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.group-settings-member:first-child{ border-top:none; }
.group-settings-member__info{ flex:1; min-width:0; }
.group-settings-member__name{ font-size: 14px; font-weight:700; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.group-settings-member__handle{ display:block; font-size: 12px; font-weight:600; color: var(--paper-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.group-settings-member__actions{ display:flex; flex-direction:column; align-items:flex-end; gap: 4px; flex:none; }
.group-settings-member__actions .link-btn{ font-size: 11px; }
.group-settings-member__actions .link-btn:disabled{ opacity: .35; cursor:not-allowed; }





























.player-card__calibration{ flex-basis: 100%; margin-top: 10px; }
.player-card__calibration-label{
  font-size: 11px; font-weight: 800; letter-spacing:0.02em; color: var(--gold);
  text-transform:uppercase; margin-bottom: 6px;
}
.player-card__calibration-bar{ height: 4px; border-radius: 999px; overflow:hidden; background: rgba(244,247,242,0.08); }
.player-card__calibration-bar-fill{ display:block; height:100%; background: var(--gold); border-radius: 999px; transition: width var(--motion-base) var(--motion-ease); }
.link-btn--danger{ color: var(--danger); }


.player-home-carousel{
  display:flex; gap: 10px; overflow-x:auto; scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch; margin-bottom: 12px; padding-bottom: 2px;
  scrollbar-width: none;
}
.player-home-carousel::-webkit-scrollbar{ display:none; }
.player-home-carousel-card{
  flex: 0 0 60%; scroll-snap-align:start; min-width:0; display:block; text-align:left;
  cursor:pointer; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--ink-soft); padding: 12px 14px; min-height: 2.8em;
}
.player-home-carousel:not(.player-home-carousel--single) .player-home-carousel-card--accionable, .player-home-carousel:not(.player-home-carousel--single) .player-home-carousel-card--correccion{ height: 84px; box-sizing: border-box; overflow: hidden; }
.player-home-carousel--single .player-home-carousel-card--accionable, .player-home-carousel--single .player-home-carousel-card--correccion{ height: auto; overflow: hidden; }
.player-home-carousel-card--accionable .player-home-carousel-card__label, .player-home-carousel-card--correccion .player-home-carousel-card__label{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-home-carousel-card--accionable .player-home-carousel-card__text, .player-home-carousel-card--correccion .player-home-carousel-card__text{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 480px){ .player-home-carousel-card{ flex-basis: 40%; } }
.player-home-carousel.player-home-carousel--single .player-home-carousel-card{ flex-basis: 100%; }
.player-home-carousel-card--accionable,
.player-home-carousel-card--espera,
.player-home-carousel-card--correccion{
  border-color: rgba(255,201,61,0.4);
  background: linear-gradient(180deg, rgba(255,201,61,0.10) 0%, var(--ink-soft) 70%);
}
.player-home-carousel-card--insight{
  background: var(--surface-2); border-color:#199FFF; box-shadow:0 0 5px rgba(25,159,255,0.5);
  display:flex; align-items:center;
}
.player-home-carousel-card__label{
  display:block; font-family: var(--font-display); font-weight: 800; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px;
  color: var(--gold);
  animation: b6PendingPulse 2.4s ease-in-out infinite;
}
.player-home-carousel-card__text{ font-size: 13px; color: var(--paper); margin:0; line-height:1.4; }
@keyframes b6PendingPulse{ 0%,100%{ opacity:1; } 50%{ opacity:.55; } }
@media (prefers-reduced-motion: reduce){ .player-home-carousel-card__label{ animation:none; } }

.history-item__badge--action{
  color: var(--gold); background: rgba(255,201,61,0.12); font-weight: 800;
}
.history-item__badge--identity{ color: var(--danger); background: rgba(255,91,97,0.12); }

.b6-actions{ display:flex; flex-direction:column; gap: 12px; }
.b6-banner{
  border: 1px solid rgba(149,255,25,0.35); background: rgba(149,255,25,0.08);
  border-radius: var(--radius-control); padding: 10px 12px;
}
.b6-banner--waiting{ border-color: var(--line); background: rgba(244,247,242,0.04); }
.b6-banner__text{ font-size: 13px; color: var(--paper); line-height:1.4; margin:0; }
.b6-action-block{ display:flex; flex-direction:column; gap: 8px; }
.b6-annul-block{ display:flex; flex-direction:column; gap:8px; margin-top: 8px; }
.b6-annul-block[hidden]{ display:none; }
.b6-annul-btn{ width:100%; }
.b6-correction-card{
  position: relative; border: 1px solid rgba(255,201,61,0.45); border-radius: var(--radius-card);
  background: var(--ink-soft); padding: 16px;
  box-shadow: 0 0 18px rgba(255,201,61,.12); animation: b6CorrectionGlowPulse 3.6s ease-in-out infinite;
}
@keyframes b6CorrectionGlowPulse{
  0%, 100%{ box-shadow: 0 0 18px rgba(255,201,61,.12); }
  50%{ box-shadow: 0 0 25px rgba(255,201,61,.24); }
}
@media (prefers-reduced-motion: reduce){ .b6-correction-card{ animation: none; } }
.b6-correction-choices{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b6-correction-choice{
  display:flex; align-items:center; justify-content:center; text-align:center;
  min-height: 48px; padding: 0 10px; border-radius: 14px; cursor:pointer;
  background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 13px;
  line-height: 1.15; white-space: normal; overflow-wrap: anywhere; min-width: 0; box-sizing: border-box; transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.b6-correction-choice:active{ transform: scale(0.98); }
.b6-correction-choice--accept{ border: 1.5px solid var(--brand-lime); color: var(--brand-lime); background: rgba(149,255,25,0.09); }
.b6-correction-choice--reject{ border: 1.5px solid var(--line); color: var(--paper); }
.b6-correction-choice--report{ border: 1px solid rgba(255,91,97,0.25); color: var(--danger); min-height: 40px; font-size: 12px; font-weight: 600; opacity: .85; }
#b6-confirm-block .b6-correction-choice{ width: 100%; min-height: 48px; font-size: 13px; font-weight: 700; opacity: 1; }
#b6-confirm-block .b6-correction-choice--report{ border: 1.5px solid var(--danger); color: var(--danger); background: rgba(255,91,97,0.10); }
.b6-correction-wait{ font-size: 13px; color: var(--text-dim); text-align: center; margin: 0 0 8px; line-height: 1.4; }
#b6-pre-compare{ margin-bottom: 12px; }
#b6-pre-actions{ margin-bottom: 8px; }
.b6-action-block--identity{
  border: 1px solid rgba(255,201,61,0.40); background: rgba(255,201,61,0.07);
  border-radius: var(--radius-control); padding: 12px 14px;
}
.b6-identity__title{ margin: 0 0 4px; font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: 0.04em; color: var(--gold); text-align: center; }
.b6-identity__text{ margin: 0 0 12px; font-size: 13px; line-height: 1.4; color: var(--paper); text-align: center; }
.b6-identity-cta{ width: 100%; flex-direction: column; gap: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.b6-identity-cta + .b6-identity-cta{ margin-top: 8px; }
.b6-identity-cta small{ font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .85; }
.b6-identity-row{ display:flex; align-items:center; justify-content:space-between; gap: 10px; padding: 6px 0; cursor: pointer; }
.b6-identity-row + .b6-identity-row{ border-top: 1px solid rgba(255,91,97,0.18); }
.b6-identity-row__label{ font-size: 13px; color: var(--paper); }
.b6-identity-row__label small{ display:block; font-size: 11px; color: var(--text-dim); margin-top:2px; }

.b6-slot-list{ display:flex; flex-direction:column; gap: 6px; margin: 12px 0; text-align:left; }
.b6-slot-option{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-control);
  padding: 10px 12px; color: var(--paper); font-size: 13px; cursor:pointer;
}
.b6-slot-option:active{ background: rgba(149,255,25,0.08); }
.b6-slot-option__team{ font-size: 11px; color: var(--text-dim); }

.b6-correction-keypad{ padding: 10px 16px 4px; }
.b6-correction-keypad[hidden]{ display:none; }
.b6-correction-teams{ display:flex; flex-direction:column; gap: 6px; padding: 2px 16px 14px; }
.b6-correction-teams__row{ display:flex; align-items:center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--paper); }

.b6-correction-diff{ list-style:none; margin: 6px 0 0; padding: 0; display:flex; flex-direction:column; gap: 2px; }
.b6-correction-diff li{ font-size: 12px; color: var(--text-dim); }

.b6-correction-compare__label{
  font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 6px; text-align: center;
}
.b6-correction-compare__label--proposed{ color: var(--gold); }
.b6-correction-compare .result-card,
.result-card--compact{ padding: 12px 14px; }
.b6-correction-card .result-card{ border: none; background: transparent; }
.b6-correction-summary{ font-size: 13px; color: var(--paper); line-height: 1.4; margin: 10px 0 0; text-align: center; }

.report-error-option{
  display:block; width:100%; text-align:left; background:none; border:none;
  padding: 14px 2px;
}
.report-error-option + .report-error-option{ border-top: 1px solid var(--line); }
.report-error-option__title{ display:block; font-size: 14px; font-weight:700; color: var(--text); }
.report-error-option__sub{ display:block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.result-card.result-card--pending{ border-color: var(--gold); box-shadow: 0 0 18px rgba(255,201,61,.12); }
.pv-title{ margin: 0 0 10px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: 0.04em; color: var(--gold); }
.pv-foot{ margin-top: 12px; }
.pv-foot .b6-correction-choice{ width: 100%; min-height: 48px; font-size: 13px; font-weight: 700; opacity: 1; }
.pv-foot .b6-correction-choice--report{ border: 1.5px solid var(--danger); color: var(--danger); background: rgba(255,91,97,0.10); }
.pv-foot--wait{ font-size: 13px; color: var(--paper); text-align: center; line-height: 1.4; margin-bottom: 0; }

.profile-row-action--danger span:first-child{ color: var(--danger, #ff6b6b); }
a.profile-row-action{ text-decoration:none; color: inherit; display:flex; }
.account-flow-list{ margin: 10px 0 6px 18px; padding: 0; color: var(--paper-dim); font-size: 14px; line-height: 1.5; }
.account-flow-list li{ margin: 4px 0; }

#view-settings, #view-settings-email, #view-settings-delete, #view-settings-copy, #view-settings-contact, #view-help, #view-legal-doc{
  height:100vh; height:100dvh; min-height:0; max-height:100dvh; overflow:hidden;
}
#view-settings .access-scroll, #view-settings-email .access-scroll, #view-settings-delete .access-scroll,
#view-settings-copy .access-scroll, #view-settings-contact .access-scroll, #view-help .access-scroll{
  flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  padding: 16px 18px calc(28px + var(--safe-bottom));
}
.settings-group{ margin-bottom: 20px; }
.settings-group__title{ font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--paper-faint); margin: 0 4px 8px; text-transform: uppercase; }
.settings-list{ background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); overflow:hidden; }
.settings-row{
  display:flex; align-items:center; gap: 12px; width:100%; min-height: 46px; padding: 0 16px; box-sizing: border-box;
  background:none; border:none; border-top: 0; color: var(--paper); font: inherit; font-size: 14px; font-weight: 600;
  text-align:left; cursor:pointer;
}
.settings-row:not([hidden]) ~ .settings-row:not([hidden]){ border-top: 1px solid var(--line); }
.settings-row__label{ flex: 1 1 auto; line-height: 1.2; }
.settings-row__value{ flex: 0 1 55%; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:right; color: var(--paper-dim); font-weight: 500; font-size: 13px; }
.settings-row__chevron{ flex:none; width: 12px; text-align:center; color: var(--paper-faint); font-size: 18px; line-height: 1; }
.settings-row--danger .settings-row__label{ color: var(--danger, #ff5b61); }
.settings-note{ padding: 12px 16px; font-size: 13px; color: var(--paper-dim); line-height: 1.4; }
.settings-info{ gap: 0; }
.settings-info__text{ margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--paper); }
.settings-info__text--dim{ color: var(--paper-dim); font-size: 13px; }
.settings-info .account-flow-list{ margin: 0 0 16px 18px; }
.settings-info__cta{ margin-top: auto; padding-top: 24px; }
.settings-info__cta .btn-start, .settings-info__cta .btn-secondary{ width:100%; }
.settings-kv{ display:flex; flex-direction:column; gap: 4px; background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 16px; margin-bottom: 18px; }
.settings-kv__label{ font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper-faint); font-weight: 700; }
.settings-kv__value{ font-size: 15px; font-weight: 700; color: var(--paper); word-break: break-all; }
.legal-doc-frame{ flex:1 1 auto; min-height:0; width:100%; border:0; background: var(--bg, #050A12); padding-bottom: var(--safe-bottom); }
.profile-access-pending-card{ border-color: rgba(255,201,61,0.35); background: rgba(255,201,61,0.08); }
#view-legal-gate .access-scroll{ justify-content:center; gap: 26px; width:100%; max-width: 420px; margin: 0 auto; }
#view-legal-gate .access-logo{ margin: 0 auto; }
#view-legal-gate .access-subtitle{ margin: 0; font-size: 15px; line-height: 1.5; color: var(--paper); }
#view-legal-gate .access-form{ gap: 22px; }
#view-legal-gate .field--checkbox{ padding: 14px 16px; background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); }
#view-legal-gate .field--checkbox a{ text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
#view-legal-gate #legal-gate-accept-btn{ margin-top: 6px; }
#view-legal-gate #legal-gate-logout-btn{ align-self:center; margin-top: 4px; }

.settings-logout{ margin-top: 28px; }
.settings-logout .btn-secondary{ width:100%; min-height: 52px; font-weight: 800; }

#profile-settings-btn, #groups-settings-btn{ display:inline-flex; align-items:center; justify-content:center; padding:4px 8px; }
#profile-settings-btn svg, #groups-settings-btn svg{ display:block; }


.load-match-scroll.has-wheel{ padding-bottom: calc(352px + var(--bottomnav-h)); }

.mp-teams{ display:flex; flex-direction:column; gap: 10px; margin-bottom: 14px; }
.mp-team{ background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 4px 14px; }
.mp-team-wrap{ display:flex; flex-direction:column; gap: 6px; }
.mp-team--a{ border-color: rgba(149,255,25,0.5); }
.mp-team--b{ border-color: rgba(25,159,255,0.55); }
.mp-team__label{ display:flex; align-items:center; gap:7px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); padding-left: 4px; }
.mp-slot + .mp-slot{ border-top: 1px solid var(--line); }
.mp-slot .player-row{ padding: 10px 2px; min-height: 66px; }
.mp-slot--fixed .player-row{ cursor: default; pointer-events: none; }
.mp-team--b .player-row__avatar--add{ color: var(--team-b); }
.player-row--slot .player-row__name{ color: var(--paper-dim); }
.mp-teams .vs-divider{ margin: 0; }
.mp-teams .vs-divider__text{ background: none; border: none; padding: 0 4px; }
.mp-cta{ width: 100%; margin-top: 4px; }

.mp-change-players{
  display:block; margin: 0 0 12px; padding: 8px 2px; background:none; border:none; cursor:pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--paper-dim);
}
.mp-change-players:active{ color: var(--paper); }
#manual-result-card{ margin-bottom: 14px; }
.result-card--editable{ --rc-col: 52px; padding: 14px 14px 12px; }
.result-card--editable .result-card__sets{ grid-auto-columns: var(--rc-col); gap: 6px; padding: 10px 0; }
.result-card--editable .result-card__name{ flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; white-space: normal; padding: 10px 0; font-size: 16px; line-height: 1.2; }
.result-card--editable .result-card__name-line{ display:block; max-width: 100%; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-card__row--head .result-card__sets{ padding: 0 0 6px; }
.result-card__row--head .result-card__name{ padding: 0; }
.result-card__setlabel{
  width: var(--rc-col); padding: 6px 0; background:none; border:none; cursor:pointer; text-align:center;
  font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--paper-faint);
}
.result-card__setlabel.is-active{ color: var(--brand-lime); }
.result-card__set--edit{
  width: var(--rc-col); height: 60px; padding: 0; border: 1px solid transparent; cursor: pointer; opacity: 1;
  font-size: 34px; line-height: 1; border-radius: 10px; background: rgba(244,247,242,0.08); color: var(--paper);
  display:flex; align-items:center; justify-content:center;
}
.result-card__set--edit.result-card__set--win{ background: rgba(244,247,242,0.14); }
.result-card__set--edit.result-card__set--lose{ color: var(--paper-dim); }
.result-card__set--edit.is-empty{ color: var(--paper-faint); }
.result-card__row[data-team="A"] .result-card__set--edit.is-active{ border-color: var(--team-a); color: var(--team-a); background: rgba(149,255,25,0.10); box-shadow: 0 0 14px rgba(149,255,25,0.2); }
.result-card__row[data-team="B"] .result-card__set--edit.is-active{ border-color: var(--team-b); color: var(--team-b); background: rgba(25,159,255,0.12); box-shadow: 0 0 14px rgba(25,159,255,0.22); }
.result-card--editable .winners-banner{ margin-bottom: 10px; }

.mw-panel{
  --mw-item-h: 40px;
  position: fixed; left:0; right:0; bottom: var(--bottomnav-h); z-index: 32;
  background: var(--court-surface); border-top: 1px solid var(--court-line);
  padding: 10px 18px calc(12px + var(--safe-bottom));
}
.mw-panel__head{ display:flex; align-items:center; justify-content:center; margin-bottom: 6px; }
.mw-panel__title{ font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--paper); }
.mw-panel__next{ width: 100%; margin: 12px 0 0; }
.mw-panel__wheels{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 360px; margin: 0 auto; }
.mw-col__label{ display:flex; align-items:center; justify-content:center; gap:6px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--paper-dim); margin-bottom: 2px; }
.mw-wheel-wrap{ position: relative; height: calc(var(--mw-item-h) * 5); }
.mw-wheel{
  height: 100%; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; touch-action: pan-y; outline: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%);
}
.mw-wheel::-webkit-scrollbar{ display:none; }
.mw-wheel__pad{ display:block; height: calc(var(--mw-item-h) * 2); }
.mw-wheel__item{
  display:flex; align-items:center; justify-content:center; width:100%; height: var(--mw-item-h); padding:0; border:none; background:none;
  scroll-snap-align: center; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--paper-faint); cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.mw-wheel__item.is-selected{ color: var(--paper); font-size: 30px; font-weight: 800; }
.mw-col--a .mw-wheel__item.is-selected{ color: var(--team-a); }
.mw-col--b .mw-wheel__item.is-selected{ color: var(--team-b); }
.mw-wheel:focus-visible{ box-shadow: 0 0 0 2px var(--brand-lime); border-radius: 10px; }
.mw-wheel-bar{ position:absolute; left:0; right:0; top: calc(var(--mw-item-h) * 2); height: var(--mw-item-h); pointer-events:none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 8px; }
.mw-col--a .mw-wheel-bar{ border-color: rgba(149,255,25,0.45); background: rgba(149,255,25,0.06); }
.mw-col--b .mw-wheel-bar{ border-color: rgba(25,159,255,0.5); background: rgba(25,159,255,0.07); }
@media (prefers-reduced-motion: reduce){ .mw-wheel{ scroll-behavior: auto; } }

#confirm-overlay.overlay--stacked-actions .overlay__actions{ flex-direction: column-reverse; gap: 12px; }
#confirm-overlay.overlay--stacked-actions .overlay__actions .btn-start,
#confirm-overlay.overlay--stacked-actions .overlay__actions .btn-secondary{ flex: none; width: 100%; margin: 0; white-space: nowrap; }

.guests-list{ display:flex; flex-direction:column; }
.guests-row{ display:flex; flex-direction:column; align-items:stretch; gap:10px; padding: 12px 14px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-card); }
.guests-row + .guests-row{ margin-top: 8px; }
.guests-row__head{ display:flex; align-items:center; gap:8px; min-width:0; }
.guests-row__icon{ flex:none; color: var(--gold); }
.guests-row__name{ min-width:0; font-size:14px; font-weight:700; color: var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.guests-row__tag{ flex:none; font-size:11px; font-weight:700; color: var(--gold); background: rgba(255,201,61,0.12); border-radius: var(--radius-pill); padding: 2px 8px; }
.guests-row__btn{ width:100%; min-height:40px; padding: 0 16px; font-size:12px; }

.invite-sheet__body{ padding: 4px 16px 16px; gap: 14px; }
.invite-sheet__text{ margin:0; font-size:14px; line-height:1.5; color: var(--paper); }
.invite-sheet__link{
  width:100%; box-sizing:border-box; min-height:44px; padding: 0 12px; border-radius: 12px;
  background: var(--ink-softer); color: var(--paper); border: 1px solid var(--line); font-size: 12px;
}
.invite-sheet__feedback{ margin:0; font-size:13px; line-height:1.4; color: var(--brand-lime); text-align:center; }
.invite-sheet__feedback--error{ color: var(--danger); }
.invite-sheet__body .btn-start{ width:100%; }

#invite-sheet{ max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.invite-sheet__body{ align-items: stretch; text-align: center; gap: 12px; }
.invite-sheet__text{ text-align:center; font-size:15px; font-weight:500; line-height:1.4; padding: 0 6px; }
.invite-sheet__wa-open{ display:flex; align-items:center; justify-content:center; width:100%; text-decoration:none; text-align:center; }
.invite-sheet__wa-open{ width:100%; }

.invite-anim{ width:100%; }
.ia2{ --ia-ease: cubic-bezier(.22,.8,.24,1); position:relative; height:152px; border-radius:18px; overflow:hidden;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%); border:1px solid var(--line); }
.ia2.team-mine-b{ --team-a: var(--accent-cyan); --team-a-deep: #0D6FCC; --team-b: var(--brand-lime); --team-b-deep: var(--brand-lime-deep); }
.ia2-hist{ position:absolute; inset:0; padding:12px 12px 0; }
.ia2-hbar{ display:block; width:34%; height:6px; border-radius:3px; background: var(--surface-active); }
.ia2-hrow{ position:absolute; left:12px; right:12px; display:flex; flex-direction:column; gap:6px; justify-content:center; padding:0 12px; height:30px; border-radius:12px; background: rgba(13,26,42,0.7); border:1px solid var(--line); }
.ia2-hrow--1{ top:124px; } .ia2-hrow--2{ top:162px; }
.ia2-hrow i{ display:block; height:5px; border-radius:3px; background: var(--surface-active); }
.ia2-hrow i:first-child{ width:46%; } .ia2-hrow i:last-child{ width:30%; opacity:.6; }
.ia2-card{ position:absolute; left:12px; right:12px; top:30px; transform-origin:50% 50%; border-radius:16px;
  box-shadow: 0 0 0 1.5px rgba(149,255,25,0.55), 0 0 22px -4px rgba(149,255,25,0.38); }
.ia2-card .result-card{ padding:8px 12px; border-radius:16px; background: var(--surface-1); }
.ia2-card .result-card__rows{ column-gap:10px; }
.ia2-card .result-card__name{ font-size:13px; padding:5px 0; }
.ia2-card .result-card__sets{ grid-auto-columns:26px; gap:5px; padding:5px 0; }
.ia2-card .result-card__set{ width:26px; font-size:16px; padding:1px 2px; }
.ia2-card .result-card__name .player-name--pending{ color: var(--gold); }
.ia2-skel{ display:flex; flex-direction:column; gap:6px; justify-content:center; }
.ia2-skel i{ display:block; height:6px; width:62%; border-radius:3px; background: currentColor; opacity:.55; }
.ia2-skel i + i{ width:44%; opacity:.35; }
.ia2-sheen{ position:absolute; inset:0; border-radius:16px; overflow:hidden; pointer-events:none; opacity:0; }
.ia2-sheen::before{ content:''; position:absolute; top:-20%; bottom:-20%; width:42%; left:-50%; transform:skewX(-18deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.16), rgba(255,255,255,0)); }
.ia2-badge{ position:absolute; right:-6px; top:-8px; width:22px; height:22px; border-radius:50%; display:grid; place-items:center;
  background: var(--brand-lime); color: var(--bg); box-shadow: 0 0 0 3px var(--surface-2), 0 6px 14px -4px rgba(149,255,25,0.6); }
.ia2-wa{ position:absolute; inset:0; z-index:2; border-radius:16px; overflow:hidden; pointer-events:none; opacity:0; display:grid; place-items:center;
  background: linear-gradient(160deg, rgba(9,66,40,0.88), rgba(6,44,28,0.92)); box-shadow: inset 0 0 0 1.5px rgba(37,211,102,0.75); }
.ia2-wa::before{ content:''; position:absolute; top:-20%; bottom:-20%; width:46%; left:-60%; transform:skewX(-18deg);
  background: linear-gradient(90deg, rgba(37,211,102,0), rgba(37,211,102,0.55), rgba(37,211,102,0)); }
.ia2-wabig{ position:relative; width:46px; height:46px; border-radius:50%; display:grid; place-items:center; background:#25D366; color:#fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.14), 0 8px 22px -4px rgba(37,211,102,0.75); }

@keyframes ia2-card { 0%{opacity:0;transform:translateY(16px) scale(.94)} 11%{opacity:1;transform:translateY(0) scale(1)} 30%{opacity:1;transform:scale(1)}
  42%{opacity:1;transform:scale(.985)} 62%{opacity:1;transform:scale(.985)} 80%{opacity:1;transform:scale(1.03)} 92%{opacity:1;transform:scale(1)} 100%{opacity:1;transform:scale(1)} }
@keyframes ia2-ring { 0%,29%{box-shadow:0 0 0 1.5px rgba(183,211,235,0.14),0 0 0 rgba(149,255,25,0)} 42%{box-shadow:0 0 0 2px rgba(37,211,102,0.95),0 0 26px rgba(37,211,102,0.5)}
  62%{box-shadow:0 0 0 2px rgba(37,211,102,0.95),0 0 26px rgba(37,211,102,0.5)} 82%{box-shadow:0 0 0 2px rgba(149,255,25,0.95),0 0 30px rgba(149,255,25,0.55)}
  100%{box-shadow:0 0 0 1.5px rgba(149,255,25,0.55),0 0 22px -4px rgba(149,255,25,0.38)} }
@keyframes ia2-hist { 0%,56%{opacity:0;transform:translateY(6px)} 82%,100%{opacity:1;transform:none} }
@keyframes ia2-wa { 0%,30%{opacity:0} 40%{opacity:1} 62%{opacity:1} 84%,100%{opacity:0} }
@keyframes ia2-wasweep { 0%,29%{left:-60%} 42%,100%{left:115%} }
@keyframes ia2-wabig { 0%,36%{opacity:0;transform:scale(.4)} 44%{opacity:1;transform:scale(1.14)} 48%{opacity:1;transform:scale(1)} 62%{opacity:1;transform:scale(1)} 78%,100%{opacity:0;transform:scale(.85)} }
@keyframes ia2-sheen { 0%,12%{opacity:0} 14%{opacity:1} 27%{opacity:1} 29%,100%{opacity:0} }
@keyframes ia2-sweep { 0%,12%{left:-50%} 27%,100%{left:120%} }
@keyframes ia2-pop { 0%{opacity:0;transform:scale(.55)} 100%{opacity:1;transform:none} }
@keyframes ia2-slide { 0%{opacity:0;transform:translateX(-10px)} 100%{opacity:1;transform:none} }
@keyframes ia2-badge { 0%,88%{opacity:0;transform:scale(0)} 95%{opacity:1;transform:scale(1.25)} 100%{opacity:1;transform:scale(1)} }

.invite-anim.is-playing .ia2-hist{ animation: ia2-hist 4.4s var(--ia-ease, cubic-bezier(.22,.8,.24,1)) both; }
.invite-anim.is-playing .ia2-card{ animation: ia2-card 4.4s cubic-bezier(.22,.8,.24,1) both, ia2-ring 4.4s linear both; }
.invite-anim.is-playing .ia2-wa{ animation: ia2-wa 4.4s ease-in-out both; }
.invite-anim.is-playing .ia2-wa::before{ animation: ia2-wasweep 4.4s cubic-bezier(.22,.8,.24,1) both; }
.invite-anim.is-playing .ia2-wabig{ animation: ia2-wabig 4.4s ease-in-out both; }
.invite-anim.is-playing .ia2-sheen{ animation: ia2-sheen 4.4s linear both; }
.invite-anim.is-playing .ia2-sheen::before{ animation: ia2-sweep 4.4s cubic-bezier(.22,.8,.24,1) both; }
.invite-anim.is-playing .ia2-badge{ animation: ia2-badge 4.4s cubic-bezier(.22,.8,.24,1) both; }
.invite-anim.is-playing .ia2-card .result-card__name{ animation: ia2-slide .5s cubic-bezier(.22,.8,.24,1) .25s both; }
.invite-anim.is-playing .ia2-card .result-card__row[data-team="B"] .result-card__name, .invite-anim.is-playing .ia2-card .result-card__row[data-team="B"] .result-card__set{ animation-delay: .4s; }
.invite-anim.is-playing .ia2-card .result-card__set{ animation: ia2-pop .42s cubic-bezier(.22,.8,.24,1) .45s both; }
.invite-anim.is-playing .ia2-card .result-card__set:nth-child(2){ animation-delay: .53s; } .invite-anim.is-playing .ia2-card .result-card__set:nth-child(3){ animation-delay: .61s; }
.invite-anim.is-playing .ia2-card .result-card__set:nth-child(4){ animation-delay: .69s; } .invite-anim.is-playing .ia2-card .result-card__set:nth-child(5){ animation-delay: .77s; }
@media (prefers-reduced-motion: reduce){
  .invite-anim.is-playing *, .invite-anim.is-playing *::before{ animation: none !important; }
}


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

.duplicate-match-list{ display:flex; flex-direction:column; gap:12px; margin: 8px 0 14px; }
.duplicate-match-card{ border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--ink-softer); }
.duplicate-match-card__players{ margin:0 0 4px; font-size:14px; font-weight:700; color: var(--text); }
.duplicate-match-card__score{ margin:0 0 4px; font-family: var(--font-display); font-size:20px; font-weight:800; color: var(--paper); letter-spacing: 0.02em; }
.duplicate-match-card__meta{ margin:0; font-size:12px; color: var(--text-dim); line-height:1.4; }

.player-name--pending{ color: var(--gold); }
.result-card__name .player-name--pending{ color: var(--gold); }
.result-card__legend{ margin: 8px 2px 0; font-size: 12px; line-height: 1.4; color: var(--text-dim); display:flex; align-items:center; gap:6px; }
.result-card__legend::before{ content:''; flex:none; width:8px; height:8px; border-radius:50%; background: var(--gold); }

.invitation-card{ margin: 0 0 16px; padding: 14px 16px; background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--radius-card); text-align:left; }
.invitation-card__title{ font-size: 14px; font-weight: 800; color: var(--brand-lime); margin-bottom: 6px; }
.invitation-card__text{ margin:0; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.invitation-source{ margin: 4px 0 12px; text-align:left; }
.invitation-source__label{ margin: 0 0 6px; font-size: 12px; color: var(--text-dim); }
.invitation-source__more{ margin: 6px 0 0; font-size: 12px; color: var(--text-dim); }
.password-match{ margin: 2px 0 6px; font-size: 12px; font-weight: 700; }
.password-match.is-match{ color: var(--brand-lime); }
.password-match.is-mismatch{ color: var(--danger); }

.recovered-scroll{ padding-top: calc(28px + var(--safe-top, 0px)); }
.recovered-hero{ display:flex; flex-direction:column; align-items:center; text-align:center; padding: 8px 24px 20px; }
.recovered-hero__badge{ width: 56px; height: 56px; border-radius: 50%; display:flex; align-items:center; justify-content:center; color: var(--brand-lime); background: rgba(149,255,25,0.12); border: 1.5px solid rgba(149,255,25,0.45); margin-bottom: 14px; }
.recovered-hero__title{ margin: 0 0 6px; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: 0.02em; color: var(--paper); line-height: 1.15; }
.recovered-hero__text{ margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.recovered-needs{ padding: 4px 0 0; }
.recovered-needs__title{ margin: 0 16px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--brand-lime); text-transform: uppercase; }
.recovered-list{ display:flex; flex-direction:column; padding: 0 16px; }
.recovered-tab-note{ margin: 2px 2px 4px; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.recovered-footer{ display:flex; flex-direction:column; align-items:center; gap: 10px; padding: 18px 16px calc(24px + var(--safe-bottom)); }
.recovered-footer .btn-start, .recovered-footer .btn-secondary{ width:100%; min-height: 48px; margin: 0; }

.qv-card{ margin-bottom: 12px; overflow: hidden; transition: max-height .34s ease, opacity .3s ease, margin-bottom .34s ease; }
.qv-card .history-item{ margin: 0; }
.qv-card.is-leaving{ opacity: 0; max-height: 0 !important; margin-bottom: 0; pointer-events: none; }
.qv-card__state{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 6px 8px; margin-top: 10px; min-height: 22px; }
.qv-card__state .history-item__badge{ white-space: nowrap; }
.qv-card__hint{ margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--text-dim); }
.qv-card__actions{ margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.qv-card__actions.b6-correction-choices{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qv-card__actions--single{ display:grid; grid-template-columns: 1fr; }
.qv-card__actions .b6-correction-choice{ width: 100%; min-height: 48px; font-size: 13px; font-weight: 700; opacity: 1; margin: 0; }
.qv-card__actions .b6-correction-choice--report{ border: 1.5px solid var(--danger); color: var(--danger); background: rgba(255,91,97,0.10); }
.b6-correction-choice--review{ border: 1.5px solid var(--accent-cyan); color: var(--accent-cyan); background: rgba(25,159,255,0.10); }
.qv-card__done{ width:100%; min-height: 48px; display:flex; align-items:center; justify-content:center; gap: 8px; border-radius: 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.05em; color: var(--ink-soft, #050A12); background: var(--brand-lime); animation: qv-done-in .22s ease; }
.pv-foot > .qv-card__done{ margin-top: 0; }
@keyframes qv-done-in{ from{ opacity:0; transform: scale(0.97); } to{ opacity:1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .qv-card, .qv-card__done{ transition:none; animation:none; } }

.pending-section{ margin: 0 0 2px; }
.pending-section__head{ display:flex; align-items:baseline; gap: 8px; margin: 8px 2px 8px; }
.pending-section:first-child .pending-section__head{ margin-top: 4px; }
.pending-section__title{ margin:0; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); }
.pending-section__title--validar{ color: var(--brand-lime); }
.pending-section__title--resolver, .pending-section__title--esperando{ color: var(--gold); }
.pending-section__count{ font: inherit; color: inherit; letter-spacing: inherit; font-variant-numeric: tabular-nums; } /* V04.35: `TÍTULO · N` se lee como una unidad */
.pending-section__list{ display:flex; flex-direction:column; }

.pending-matches-card{ margin-top: 10px; border-color: rgba(255,201,61,0.35); }
.pending-matches-card .pastilla__title{ color: var(--gold); }
.pending-matches-card__icon{ width: 20px; height: 20px; flex:none; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pending-matches-card__cols{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.pending-matches-card__col{ display:flex; flex-direction:column; gap: 2px; min-width: 0; }
.pending-matches-card__label{ font-size: 11px; letter-spacing: 0.04em; color: var(--paper-dim); text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.pending-matches-card__num{ font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--paper); font-variant-numeric: tabular-nums; }

#invitation-confirm-overlay .overlay__card{ max-height: calc(100dvh - 32px); overflow-y: auto; }
.invite-ctx{ background: var(--ink-soft); border-radius: 12px; padding: 12px; }
.invite-ctx__meta{ margin: 0 0 10px; font-size: 12px; color: var(--text-dim); text-align: left; }
.invite-ctx__more{ margin: 10px 0 0; font-size: 12px; color: var(--text-dim); text-align: center; }
.mini-match{ display:flex; flex-direction:column; text-align:left; }
.mini-match__team{ display:grid; grid-template-columns: minmax(0,1fr) auto; align-items:center; column-gap: 10px; padding: 9px 0; }
.mini-match__team--first{ --mm-color: var(--brand-lime); }
.mini-match__team--second{ --mm-color: var(--accent-cyan); }
.mini-match__players{ display:flex; flex-direction:column; gap: 9px; min-width: 0; padding-left: 10px; border-left: 3px solid var(--mm-color); }
.mini-match__player{ display:flex; align-items:center; gap: 8px; min-width: 0; }
.mini-match__avatar{ width: 28px; height: 28px; flex:none; border-radius: 50%; background: var(--surface-1); border: 1px solid var(--line-strong); object-fit: cover; display:flex; align-items:center; justify-content:center; font-size: 10px; font-weight: 800; color: var(--paper-dim); overflow:hidden; }
.mini-match__who{ display:flex; flex-direction:column; min-width: 0; line-height: 1.15; }
.mini-match__name{ font-size: 14px; font-weight: 700; color: var(--paper); white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.mini-match__who .mini-match__name--invitee{ color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.mini-match__handle{ font-size: 11px; color: var(--paper-faint); white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.mini-match__who .mini-match__handle--pending{ color: var(--gold); }
.mini-match__sets{ display:flex; gap: 6px; align-items:center; }
.mini-match__set{ min-width: 20px; text-align:center; font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--paper-dim); font-variant-numeric: tabular-nums; }
.mini-match__set--win{ color: var(--paper); }
.mini-match__divider{ height: 1px; background: var(--line); margin: 2px 0; }
.dup-card .invite-ctx{ margin: 12px 0 14px; }
.dup-meta{ margin: 0 0 8px; font-size: 12px; color: var(--text-dim); text-align:left; }
#ambiguous-match-overlay .overlay__card{ max-height: calc(100dvh - 32px); overflow-y: auto; }

.field__input.is-valid, .field__input.is-invalid{ padding-right: 40px; background-repeat: no-repeat; background-position: right 12px center; background-size: 20px 20px; }
.field__input.is-valid{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2395FF19' fill-opacity='0.18'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.8' stroke='%2395FF19' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.field__input.is-invalid{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23FF5B61' fill-opacity='0.18'/%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7' stroke='%23FF5B61' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

.intelligence-text p.intelligence-frame--pending, .intelligence-frame--pending{ font-size: 12px; line-height: 1.5; color: var(--paper-faint); font-style: italic; font-weight: 400; margin: 5px 0 0; }

#view-analysis.team-mine-b{ --team-a: var(--accent-cyan); --team-a-deep: #0D6FCC; --team-b: var(--brand-lime); --team-b-deep: var(--brand-lime-deep); }

.activity-week-list{ display:flex; flex-direction:column; gap: 10px; padding: 4px 0 24px; }
.activity-week{ display:flex; align-items:center; gap: 14px; background: var(--ink-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.activity-week__main{ flex:1; min-width:0; display:flex; flex-direction:column; gap: 6px; }
.activity-week__range{ font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.02em; color: var(--paper); }
.activity-week__counts{ font-size: 12px; font-weight: 600; color: var(--paper-dim); font-variant-numeric: tabular-nums; }
.activity-week__bar{ display:flex; height: 4px; border-radius: 2px; overflow:hidden; background: transparent; }
.activity-week__bar-win{ display:block; height:100%; background: var(--brand-lime); }
.activity-week__bar-loss{ display:block; height:100%; background: var(--line-strong); }
.activity-week__eff{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap: 2px; }
.activity-week__eff-value{ font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.activity-week__eff-label{ font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: var(--paper-faint); }






.group-table__movement{ margin-left: 10px; }


.analysis-header,
.player-home-header,
.court-header{
  box-sizing:border-box;
  height:calc(55px + var(--safe-top));
  min-height:calc(55px + var(--safe-top));
  max-height:calc(55px + var(--safe-top));
}


@media (min-width:720px){
  .view--access{
    max-width:none;
    width:100%;
    margin:0;
    box-shadow:none;
  }
  .view--access > .access-scroll{
    width:100%;
    max-width:460px;
    margin-left:auto;
    margin-right:auto;
  }
  .view--access > .analysis-header{
    width:100%;
    max-width:none;
    margin:0;
    padding-left:max(18px, calc((100% - 460px) / 2 + 18px));
    padding-right:max(18px, calc((100% - 460px) / 2 + 18px));
  }
  .view--access > .legal-doc-frame{
    width:100%;
    max-width:768px;
    margin-left:auto;
    margin-right:auto;
  }
}


.install-prompt-scrim{ z-index: 80; }
.install-prompt-sheet{
  max-width:420px;
  touch-action:auto;
  padding:16px 20px calc(24px + var(--safe-bottom));
}
@media (min-width:720px){
  .install-prompt-sheet{ max-width:420px; }
}
.install-prompt__panel{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.install-prompt__icon{
  width:72px;
  height:72px;
  display:block;
  border-radius:18px;
  margin:4px auto 14px;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}
.install-prompt__eyebrow{
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--brand-lime);
  text-transform:uppercase;
  margin-bottom:8px;
}
.install-prompt__title{
  margin:0;
  max-width:320px;
  font-family:var(--font-display);
  font-size:20px;
  line-height:1.12;
  letter-spacing:.01em;
  color:var(--paper);
}
.install-prompt__text{
  margin:10px auto 4px;
  max-width:340px;
  font-size:14px;
  line-height:1.45;
  color:var(--paper-dim);
}
.install-prompt__primary{
  width:100%;
  margin-top:18px;
  flex:none;
}
.install-prompt__later{
  margin-top:14px;
  color:var(--paper-dim);
}
.install-prompt__steps{
  width:100%;
  list-style:none;
  margin:18px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  text-align:left;
}
.install-prompt__step{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  background:var(--ink-soft);
  color:var(--paper);
}
.install-prompt__step-num{
  flex:none;
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(149,255,25,.12);
  border:1px solid rgba(149,255,25,.34);
  color:var(--brand-lime);
  font-family:var(--font-display);
  font-size:12px;
  font-weight:800;
}
.install-prompt__step strong{
  display:block;
  font-size:13px;
  line-height:1.25;
}
.install-prompt__step small{
  display:block;
  margin-top:3px;
  font-size:11px;
  line-height:1.35;
  color:var(--paper-dim);
}


#install-prompt-intro{
  align-items:stretch;
  text-align:left;
  padding-top:10px;
}
.install-prompt__app{
  display:flex;
  align-items:center;
  gap:14px;
}
.install-prompt__app-icon{
  flex:none;
  width:64px;
  height:64px;
  border-radius:14.3px;
  display:block;
  box-shadow:0 0 0 .5px rgba(255,255,255,.14);
}
.install-prompt__app-meta{
  flex:1 1 auto;
  min-width:0;
}
.install-prompt__app-name{
  margin:0;
  font-family:-apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--font-body);
  font-size:17px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:-.022em;
  color:var(--paper);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.install-prompt__app-sub{
  margin:2px 0 0;
  font-family:-apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--font-body);
  font-size:14px;
  font-weight:400;
  line-height:1.25;
  letter-spacing:-.01em;
  color:var(--paper-dim);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.install-prompt__get{
  flex:none;
  min-width:74px;
  height:30px;
  padding:0 18px;
  border:0;
  border-radius:var(--radius-pill);
  background:rgba(120,130,150,.30);
  color:var(--accent-cyan);
  font-family:-apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--font-body);
  font-size:15px;
  font-weight:700;
  line-height:30px;
  letter-spacing:-.01em;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .15s ease, transform .15s ease;
}
.install-prompt__get:active{
  background:rgba(120,130,150,.46);
  transform:scale(.97);
}
.install-prompt__get:focus-visible{
  outline:2px solid var(--accent-cyan);
  outline-offset:2px;
}
#install-prompt-intro .install-prompt__text{
  max-width:none;
  margin:18px 0 0;
  font-size:15px;
  line-height:1.4;
}
.install-prompt__later{
  align-self:flex-start;
  margin:10px 0 0;
  padding:6px 0;
  border:0;
  background:none;
  font-family:inherit;
  font-size:14px;
  line-height:1.2;
  color:var(--paper-faint);
  text-decoration:none;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.install-prompt__later:active{ color:var(--paper-dim); }


#install-prompt-sheet{
  max-width:430px;
  padding:16px 22px calc(22px + var(--safe-bottom));
}
#install-prompt-intro{
  display:block;
  width:100%;
  padding-top:8px;
  text-align:left;
}
#install-prompt-intro .install-prompt__app{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
  column-gap:14px;
  width:100%;
}
#install-prompt-intro .install-prompt__app-icon{
  grid-column:1;
  justify-self:start;
  width:100%;
  max-width:112px;
  aspect-ratio:1;
  height:auto;
  margin:0;
  border-radius:24px;
  display:block;
  object-fit:cover;
  box-shadow:0 0 0 .5px rgba(255,255,255,.16);
}
#install-prompt-intro .install-prompt__app-meta{
  grid-column:2 / 4;
  min-width:0;
  min-height:112px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding-top:3px;
}
#install-prompt-intro .install-prompt__app-name{
  margin:0;
  max-width:100%;
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','SF Pro Text',Arial,sans-serif;
  font-size:21px;
  font-weight:650;
  line-height:1.16;
  letter-spacing:-.025em;
  color:#fff;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
#install-prompt-intro .install-prompt__app-sub{
  margin:5px 0 0;
  max-width:100%;
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',Arial,sans-serif;
  font-size:15px;
  font-weight:400;
  line-height:1.25;
  letter-spacing:-.012em;
  color:rgba(235,240,248,.55);
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
#install-prompt-intro .install-prompt__get{
  -webkit-appearance:none !important;
  appearance:none !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:auto !important;
  min-width:80px !important;
  height:32px !important;
  min-height:32px !important;
  margin:auto 0 0 !important;
  padding:0 18px !important;
  border:0 !important;
  border-radius:999px !important;
  background:#0A84FF !important;
  box-shadow:none !important;
  color:#fff !important;
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',Arial,sans-serif !important;
  font-size:15px !important;
  font-weight:700 !important;
  line-height:32px !important;
  letter-spacing:-.01em !important;
  text-transform:none !important;
  cursor:pointer;
}
#install-prompt-intro .install-prompt__get:active{
  background:#0077e6 !important;
  transform:scale(.97);
}
#install-prompt-intro .install-prompt__divider{
  width:100%;
  height:1px;
  margin:20px 0 0;
  background:rgba(255,255,255,.10);
}
#install-prompt-intro .install-prompt__text{
  width:100%;
  max-width:none;
  margin:15px 0 0;
  color:rgba(235,240,248,.68);
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',Arial,sans-serif;
  font-size:14px;
  font-weight:400;
  line-height:1.35;
  text-align:left;
}
#install-prompt-intro .install-prompt__later{
  -webkit-appearance:none !important;
  appearance:none !important;
  display:inline-block !important;
  width:auto !important;
  min-height:0 !important;
  margin:10px 0 0 !important;
  padding:2px 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#0A84FF !important;
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',Arial,sans-serif !important;
  font-size:14px !important;
  font-weight:500 !important;
  line-height:1.25 !important;
  text-decoration:none !important;
  text-transform:none !important;
}


#install-prompt-scrim{ background:#000; }
#install-prompt-sheet{
  max-width:430px;
  background:#000;
  border:0;
  border-radius:0;
  padding:18px 22px calc(22px + var(--safe-bottom));
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
#install-prompt-sheet > .bottom-sheet__grabber{ display:none; }
#install-prompt-intro{ display:block; width:100%; padding-top:2px; text-align:left; }
#install-prompt-intro .install-prompt__app{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  align-items:start;
  column-gap:18px;
  width:100%;
}
#install-prompt-intro .install-prompt__app-icon{
  grid-column:1;
  width:112px;
  height:112px;
  max-width:none;
  margin:0;
  border-radius:24px;
  object-fit:cover;
  box-shadow:0 0 0 .5px rgba(255,255,255,.14);
}
#install-prompt-intro .install-prompt__app-meta{
  grid-column:2;
  min-width:0;
  min-height:112px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding-top:5px;
}
#install-prompt-intro .install-prompt__app-name{
  margin:0;
  font-family:inherit;
  font-size:21px;
  font-weight:650;
  line-height:1.15;
  letter-spacing:-.025em;
  color:#fff;
}
#install-prompt-intro .install-prompt__app-sub{
  margin:5px 0 0;
  font-family:inherit;
  font-size:15px;
  font-weight:400;
  line-height:1.25;
  letter-spacing:-.012em;
  color:rgba(235,235,245,.52);
}
#install-prompt-intro .install-prompt__get{
  -webkit-appearance:none !important;
  appearance:none !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:auto !important;
  min-width:80px !important;
  height:32px !important;
  min-height:32px !important;
  margin:auto 0 0 !important;
  padding:0 18px !important;
  border:0 !important;
  border-radius:999px !important;
  background:#0A84FF !important;
  box-shadow:none !important;
  color:#fff !important;
  font-family:inherit !important;
  font-size:15px !important;
  font-weight:700 !important;
  line-height:32px !important;
  letter-spacing:-.01em !important;
  text-transform:none !important;
}
#install-prompt-intro .install-prompt__divider{
  width:100%;
  height:1px;
  margin:20px 0 0;
  background:rgba(84,84,88,.46);
}
#install-prompt-intro .install-prompt__features{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:100%;
  margin:0;
  padding:17px 0 0;
}
#install-prompt-intro .install-prompt__feature{
  min-width:0;
  min-height:103px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:0 10px;
  text-align:center;
}
#install-prompt-intro .install-prompt__feature + .install-prompt__feature{
  border-left:1px solid rgba(84,84,88,.46);
}
#install-prompt-intro .install-prompt__feature-icon{
  width:27px;
  height:27px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 0 8px;
  color:rgba(235,235,245,.62);
}
#install-prompt-intro .install-prompt__feature-icon svg{ width:24px; height:24px; display:block; }
#install-prompt-intro .install-prompt__feature-icon svg:not([fill="none"]){ fill:currentColor; }
#install-prompt-intro .install-prompt__feature-name{
  display:block;
  min-height:24px;
  font-family:inherit;
  font-size:10px;
  font-weight:650;
  line-height:1.16;
  letter-spacing:.025em;
  color:rgba(235,235,245,.48);
}
#install-prompt-intro .install-prompt__feature-copy{
  display:block;
  margin-top:6px;
  font-family:inherit;
  font-size:12px;
  font-weight:400;
  line-height:1.24;
  color:rgba(235,235,245,.72);
}
#install-prompt-intro .install-prompt__later,
#install-prompt-ios-guide .install-prompt__later--guide{
  -webkit-appearance:none !important;
  appearance:none !important;
  display:block !important;
  width:auto !important;
  min-height:0 !important;
  margin:20px auto 0 !important;
  padding:5px 8px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:rgba(235,235,245,.46) !important;
  font-family:inherit !important;
  font-size:12px !important;
  font-weight:400 !important;
  line-height:1.2 !important;
  letter-spacing:0 !important;
  text-align:center !important;
  text-decoration:none !important;
  text-transform:none !important;
}
#install-prompt-ios-guide{
  width:100%;
  align-items:stretch;
  text-align:left;
  font-family:inherit;
}
#install-prompt-ios-guide .install-prompt__ios-head{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:14px;
  align-items:start;
  width:100%;
  padding:2px 0 16px;
  border-bottom:1px solid rgba(84,84,88,.46);
}
#install-prompt-ios-guide .install-prompt__ios-icon{
  width:58px;
  height:58px;
  border-radius:13px;
  display:block;
  box-shadow:0 0 0 .5px rgba(255,255,255,.14);
}
#install-prompt-ios-guide .install-prompt__eyebrow{
  margin:1px 0 4px;
  font-family:inherit;
  font-size:10px;
  font-weight:650;
  line-height:1.2;
  letter-spacing:.055em;
  color:rgba(235,235,245,.48);
}
#install-prompt-ios-guide .install-prompt__title{
  max-width:none;
  margin:0;
  font-family:inherit;
  font-size:20px;
  font-weight:650;
  line-height:1.15;
  letter-spacing:-.022em;
  color:#fff;
  text-transform:none;
}
#install-prompt-ios-guide .install-prompt__text{
  max-width:none;
  margin:5px 0 0;
  font-family:inherit;
  font-size:13px;
  font-weight:400;
  line-height:1.3;
  color:rgba(235,235,245,.52);
  text-align:left;
}
#install-prompt-ios-guide .install-prompt__steps{
  width:100%;
  margin:0;
  padding:0;
  gap:0;
}
#install-prompt-ios-guide .install-prompt__step{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:12px;
  align-items:center;
  min-height:66px;
  padding:12px 0;
  border:0;
  border-bottom:1px solid rgba(84,84,88,.46);
  border-radius:0;
  background:transparent;
  color:#fff;
}
#install-prompt-ios-guide .install-prompt__step-num{
  width:26px;
  height:26px;
  border:0;
  background:rgba(118,118,128,.24);
  color:#fff;
  font-family:inherit;
  font-size:12px;
  font-weight:650;
}
#install-prompt-ios-guide .install-prompt__step strong{
  display:block;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  line-height:1.25;
  color:#fff;
}
#install-prompt-ios-guide .install-prompt__step small{
  display:block;
  margin-top:3px;
  font-family:inherit;
  font-size:12px;
  font-weight:400;
  line-height:1.3;
  color:rgba(235,235,245,.52);
}
@media (max-width:360px){
  #install-prompt-sheet{ padding-left:18px; padding-right:18px; }
  #install-prompt-intro .install-prompt__app{ grid-template-columns:102px minmax(0,1fr); column-gap:15px; }
  #install-prompt-intro .install-prompt__app-icon{ width:102px; height:102px; border-radius:22px; }
  #install-prompt-intro .install-prompt__app-meta{ min-height:102px; }
  #install-prompt-intro .install-prompt__feature{ padding-left:6px; padding-right:6px; }
  #install-prompt-intro .install-prompt__feature-name{ font-size:9px; }
  #install-prompt-intro .install-prompt__feature-copy{ font-size:11px; }
}


#install-prompt-scrim{
  background:rgba(3,6,12,.78);
}
#install-prompt-sheet{
  background:#000;
  border:1px solid rgba(84,84,88,.42);
  border-bottom:0;
  border-radius:26px 26px 0 0;
  padding:14px 22px calc(22px + var(--safe-bottom));
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,Helvetica,Arial,sans-serif;
  box-shadow:0 -12px 40px rgba(0,0,0,.38);
}
#install-prompt-sheet > .bottom-sheet__grabber{
  display:block;
  width:38px;
  height:5px;
  margin:0 auto 14px;
  border-radius:999px;
  background:rgba(235,235,245,.22);
}
#install-prompt-intro .install-prompt__features{
  padding-top:16px;
}
#install-prompt-intro .install-prompt__feature{
  min-height:122px;
  padding:0 10px;
}
#install-prompt-intro .install-prompt__feature-name{
  min-height:25px;
  margin:0 0 10px;
  color:rgba(235,235,245,.58);
  font-size:10px;
  font-weight:650;
  line-height:1.18;
  letter-spacing:.035em;
}
#install-prompt-intro .install-prompt__feature-icon{
  margin:0 0 10px;
  color:rgba(235,235,245,.58);
}
#install-prompt-intro .install-prompt__feature-copy{
  margin-top:0;
  color:rgba(235,235,245,.58);
  font-size:12px;
  font-weight:400;
  line-height:1.28;
}
#install-prompt-ios-guide .install-prompt__share-title{
  display:flex;
  align-items:center;
  gap:7px;
}
#install-prompt-ios-guide .install-prompt__share-icon{
  width:18px;
  height:18px;
  flex:none;
}
@media (min-width:720px){
  #install-prompt-sheet{
    border-radius:26px;
    border-bottom:1px solid rgba(84,84,88,.42);
  }
}


#install-prompt-sheet{
  background:#000;
  transition-duration:380ms;
}
#install-prompt-scrim{
  transition-duration:380ms;
}
#install-prompt-intro .install-prompt__features{
  padding-top:13px;
}
#install-prompt-intro .install-prompt__feature{
  min-height:101px;
  padding:0 9px;
}
#install-prompt-intro .install-prompt__feature-name{
  min-height:22px;
  margin:0 0 6px;
  font-size:9.5px;
  line-height:1.08;
}
#install-prompt-intro .install-prompt__feature-icon{
  width:23px;
  height:23px;
  margin:0 0 6px;
}
#install-prompt-intro .install-prompt__feature-icon svg{
  width:21px;
  height:21px;
}
#install-prompt-intro .install-prompt__feature-copy{
  font-size:11.5px;
  line-height:1.22;
}
#install-prompt-intro .install-prompt__feature + .install-prompt__feature{
  position:relative;
  border-left:0;
}
#install-prompt-intro .install-prompt__feature + .install-prompt__feature::before{
  content:"";
  position:absolute;
  left:0;
  top:22px;
  bottom:10px;
  width:1px;
  background:rgba(84,84,88,.46);
}
#install-prompt-ios-guide .install-prompt__step-num{
  background:rgba(118,118,128,.20);
  color:#0A84FF;
}
#install-prompt-ios-guide .install-prompt__add-home-title{
  display:flex;
  align-items:center;
  gap:7px;
}
#install-prompt-ios-guide .install-prompt__add-home-icon{
  width:18px;
  height:18px;
  flex:none;
}


#install-prompt-intro .install-prompt__features{
  width:auto;
  margin-left:-12px;
  margin-right:-12px;
  padding-top:11px;
}
#install-prompt-intro .install-prompt__feature{
  min-height:88px;
  padding:0 5px;
}
#install-prompt-intro .install-prompt__feature-name{
  min-height:0;
  margin:0 0 3px;
  font-size:9.5px;
  line-height:1.08;
  white-space:nowrap;
}
#install-prompt-intro .install-prompt__feature-icon{
  margin:0 0 4px;
}
#install-prompt-intro .install-prompt__feature + .install-prompt__feature::before{
  top:15px;
  bottom:15px;
}
@media (max-width:360px){
  #install-prompt-intro .install-prompt__features{
    margin-left:-8px;
    margin-right:-8px;
  }
  #install-prompt-intro .install-prompt__feature{
    padding-left:4px;
    padding-right:4px;
  }
  #install-prompt-intro .install-prompt__feature-name{
    font-size:9px;
  }
}


#install-prompt-intro .install-prompt__feature-name{
  margin-bottom:5px;
  white-space:normal;
}
#install-prompt-intro .install-prompt__feature-icon{
  margin-bottom:5px;
}
#install-prompt-intro .install-prompt__later{
  margin-top:10px !important;
}


#install-prompt-intro .install-prompt__feature-name{
  font-weight:700;
}
#install-prompt-intro .install-prompt__feature-copy{
  font-weight:300;
}
#install-prompt-ios-guide .install-prompt__ios-head{
  grid-template-columns:80px minmax(0,1fr);
  gap:16px;
}
#install-prompt-ios-guide .install-prompt__ios-icon{
  width:80px;
  height:80px;
  border-radius:18px;
}
#install-prompt-ios-guide .install-prompt__step-num{
  background:#0A84FF;
  color:#fff;
}
#install-prompt-ios-guide .install-prompt__share-title,
#install-prompt-ios-guide .install-prompt__add-home-title{
  display:inline-flex;
  align-items:center;
  gap:7px;
  line-height:1.2;
}
#install-prompt-ios-guide .install-prompt__share-icon,
#install-prompt-ios-guide .install-prompt__add-home-icon{
  width:19px;
  height:19px;
  display:block;
  flex:none;
  align-self:center;
  transform:translateY(-1px);
}



#install-prompt-ios-guide .install-prompt__step-num{
  background:rgba(118,118,128,.24);
  color:#fff;
}
#install-prompt-ios-guide .install-prompt__step strong.install-prompt__share-title,
#install-prompt-ios-guide .install-prompt__step strong.install-prompt__add-home-title{
  display:inline-flex;
  align-items:center;
  gap:7px;
  line-height:1.25;
}
#install-prompt-ios-guide .install-prompt__step strong.install-prompt__share-title .install-prompt__share-icon,
#install-prompt-ios-guide .install-prompt__step strong.install-prompt__add-home-title .install-prompt__add-home-icon{
  width:19px;
  height:19px;
  display:block;
  flex:0 0 19px;
  align-self:center;
  transform:none;
  vertical-align:middle;
}



#install-prompt-sheet{
  position:relative;
  overflow:hidden;
}
#install-prompt-sheet::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:92px;
  pointer-events:none;
  background:linear-gradient(
    to bottom,
    rgba(5,10,18,0) 0%,
    rgba(5,10,18,.22) 38%,
    rgba(5,10,18,.62) 72%,
    #050A12 100%
  );
  z-index:0;
}
#install-prompt-sheet > *{
  position:relative;
  z-index:1;
}



#install-prompt-intro .install-prompt__app-icon,
#install-prompt-ios-guide .install-prompt__ios-icon{
  position:relative;
  overflow:hidden;
  box-shadow:
    0 9px 22px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.11),
    inset 0 -1px 0 rgba(255,255,255,.085);
}

#install-prompt-intro .install-prompt__app-icon,
#install-prompt-ios-guide .install-prompt__ios-icon{
  outline:1px solid rgba(255,255,255,.055);
  outline-offset:-1px;
  filter:
    drop-shadow(0 -1px 0 rgba(255,255,255,.055))
    drop-shadow(0 1px 0 rgba(255,255,255,.045));
}



#install-prompt-intro .install-prompt__app-icon-frame{
  grid-column:1;
  justify-self:start;
  position:relative;
  display:block;
  width:112px;
  height:112px;
  border-radius:24px;
  overflow:hidden;
  isolation:isolate;
  box-shadow:
    0 9px 22px rgba(0,0,0,.34),
    0 0 0 .5px rgba(255,255,255,.08);
}
#install-prompt-ios-guide .install-prompt__ios-icon-frame{
  position:relative;
  display:block;
  width:80px;
  height:80px;
  border-radius:18px;
  overflow:hidden;
  isolation:isolate;
  box-shadow:
    0 8px 18px rgba(0,0,0,.32),
    0 0 0 .5px rgba(255,255,255,.08);
}
#install-prompt-intro .install-prompt__app-icon,
#install-prompt-ios-guide .install-prompt__ios-icon{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  margin:0;
  border-radius:inherit;
  object-fit:cover;
  box-shadow:none !important;
  outline:0 !important;
  filter:none !important;
}
#install-prompt-intro .install-prompt__app-icon-frame::before,
#install-prompt-ios-guide .install-prompt__ios-icon-frame::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,.17),
    inset 0 -1.5px 1px rgba(255,255,255,.12),
    inset 1px 0 1px rgba(255,255,255,.035),
    inset -1px 0 1px rgba(255,255,255,.035);
}
#install-prompt-intro .install-prompt__app-icon-frame::after,
#install-prompt-ios-guide .install-prompt__ios-icon-frame::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  border-radius:inherit;
  pointer-events:none;
  background:
    radial-gradient(92% 25% at 50% 0%,
      rgba(255,255,255,.14) 0%,
      rgba(255,255,255,.055) 46%,
      rgba(255,255,255,0) 80%),
    radial-gradient(92% 25% at 50% 100%,
      rgba(255,255,255,.10) 0%,
      rgba(255,255,255,.04) 48%,
      rgba(255,255,255,0) 82%);
}
@media (max-width:360px){
  #install-prompt-intro .install-prompt__app-icon-frame{
    width:102px;
    height:102px;
    border-radius:22px;
  }
}


#view-signup .field-checkbox-label,
#view-legal-gate .field-checkbox-label{
  font-size:11.5px;
  line-height:1.38;
}
.profile-meta-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; align-items: start; }
.profile-meta-grid .mini-stat{ min-width: 0; }
.profile-meta-grid .mini-stat__value{ overflow-wrap: break-word; word-break: normal; }


#view-signup .field-checkbox-label a,
#view-legal-gate .field-checkbox-label a{
  color:inherit;
}


#view-nivel-onboarding{
  height:100vh;
  height:100dvh;
  min-height:0;
  max-height:100dvh;
  overflow:hidden;
}
#view-nivel-onboarding .access-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding-bottom:calc(28px + var(--safe-bottom));
}


#view-access, #view-legal-gate, #view-login, #view-forgot-password, #view-signup,
#view-player-card, #view-account-flow, #view-account-deleted, #view-activity-consent, #view-group-invite{
  height:100vh; height:100dvh; min-height:0; max-height:100dvh; overflow:hidden;
}
#view-access .access-scroll, #view-legal-gate .access-scroll, #view-login .access-scroll,
#view-forgot-password .access-scroll, #view-signup .access-scroll, #view-player-card .access-scroll,
#view-account-flow .access-scroll, #view-account-deleted .access-scroll, #view-activity-consent .access-scroll, #view-group-invite .access-scroll{
  flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
}
#view-access .access-scroll, #view-legal-gate .access-scroll{ justify-content:flex-start; }
#view-access .access-scroll::before, #view-access .access-scroll::after{ content:""; flex:1 1 0; min-height:0; }
#view-legal-gate .access-logo{ margin-top:auto; }
#view-legal-gate #legal-gate-form{ margin-bottom:auto; }

:where(.bottom-sheet){ max-height: calc(100dvh - 12px - var(--safe-top, 0px)); overflow-y:auto; overscroll-behavior:contain; }
.bottom-sheet{ touch-action:pan-y; }
:where(.overlay__card){ max-height: calc(100dvh - 40px); overflow-y:auto; overscroll-behavior:contain; }
#install-prompt-sheet{ overflow-x:hidden; overflow-y:auto; }

.activity-consent__title{ font-size: 22px; line-height: 1.2; text-align:center; margin: 6px 0 10px; color: var(--paper); }
.activity-consent__lead{ margin-bottom: 14px; font-size: 15px; }
.activity-consent__points{ margin: 0 0 14px 18px; }
.activity-consent__current{ text-align:center; margin: 0 0 10px; }
.activity-consent__actions{ display:flex; flex-direction:column; gap: 10px; margin-top: 10px; }
.activity-consent__actions .btn-start, .activity-consent__actions .btn-secondary{ width:100%; }
#view-activity-consent .link-btn{ align-self:center; margin-top: 14px; }
#view-activity-consent .access-scroll--under-header{ padding-top: 12px; }
#settings-activity-row .settings-row__label{ white-space:nowrap; }
#settings-activity-row .settings-row__value{ flex:0 0 auto; max-width:45%; }

#view-access{
  --welcome-hero-image: url('assets/bienvenida-hero.jpg?v=04.122');
  --welcome-hero-pos: 50% 100%;
  --welcome-hero-image-desktop: url('assets/bienvenida-hero-desktop.jpg?v=04.122');
  position: relative; isolation: isolate;
}
.welcome-hero{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; background: var(--bg); }
.welcome-hero__photo{
  position:absolute; inset:0;
  background: var(--welcome-hero-image) var(--welcome-hero-pos) / cover no-repeat, var(--surface-3);
}
.welcome-hero::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(3,7,13,.45) 0%, rgba(3,7,13,0) 16%, rgba(3,7,13,0) 36%, rgba(4,9,16,.40) 54%, rgba(5,10,18,.68) 74%, rgba(5,10,18,.92) 100%);
}
#view-access .access-scroll{ position:relative; z-index:1; }
#view-access .access-scroll::before, #view-access .access-scroll::after{ flex:0 0 0; }
.welcome-spacer{ flex: 1 1 0; min-height: 8px; }
.welcome-spacer--mid{ flex-grow: 1.15; min-height: 18px; }
.welcome-brand{ display:flex; flex-direction:column; align-items:center; gap: 8px; margin-bottom: 32px; }
#view-access .access-logo{ margin: 0 auto; width: min(240px, 66vw); filter: drop-shadow(0 2px 14px rgba(3,7,13,.65)); }
.welcome-claim{
  margin: 0; font-family: var(--font-display); font-weight:600; font-size: 14.5px; line-height:1.25; letter-spacing: 0.05em;
  color: rgba(248,250,252,.88); text-align:center; text-shadow: 0 1px 12px rgba(3,7,13,.9);
}
.welcome-benefits{ list-style:none; margin: 0 0 16px; padding:0; display:flex; flex-direction:column; gap:6px; }
.welcome-benefit{
  --wb: 149,255,25; /* acento del ÍCONO por tarjeta (r,g,b): lima BRAMU · azul BRAMU · ámbar del Nivel */
  display:flex; align-items:center; gap:14px; padding: 13px 14px 13px 12px;
  background: rgba(4,9,16,.58); border:1px solid rgba(183,211,235,.16); border-radius: 12px;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.welcome-benefit--blue{ --wb: 25,159,255; }
.welcome-benefit--gold{ --wb: 255,201,61; }
.welcome-benefit__icon{
  flex:none; width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:11px; color: rgb(var(--wb)); background: rgba(var(--wb), .12); border:1px solid rgba(var(--wb), .34);
}
.welcome-benefit__body{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.welcome-benefit__title{ font-size:14px; font-weight:800; color: var(--paper); line-height:1.25; }
.welcome-benefit__sub{ font-size:12.5px; font-weight:500; color: rgba(248,250,252,.8); line-height:1.4; text-shadow: 0 1px 8px rgba(3,7,13,.7); }
#view-access .access-actions{ margin-top: 0; gap: 10px; }
#view-access .access-actions .btn-secondary{ background: rgba(5,10,18,.62); border-color: var(--line-strong); color: rgba(248,250,252,.9); font-weight:700; }
#view-access .invitation-card, #view-access #access-backend-unavailable{ background: rgba(9,19,31,.86); }
@media (max-height: 640px){
  #view-access .access-logo{ width: min(210px, 62vw); }
  .welcome-brand{ margin-bottom: 20px; gap:6px; }
  .welcome-claim{ font-size: 13.5px; }
  .welcome-benefits{ gap:6px; margin-bottom:12px; }
  .welcome-benefit{ padding-top:9px; padding-bottom:9px; }
  .welcome-benefit__icon{ width:32px; height:32px; }
}
@media (max-width: 340px){
  .welcome-benefit__title{ font-size:13px; }
  .welcome-benefit__sub{ font-size:11.5px; }
}

@media (min-aspect-ratio: 1/1){
  #view-access{ --welcome-hero-image: var(--welcome-hero-image-desktop); --welcome-hero-pos: 50% 62%; }
  .welcome-hero::after{
    background:
      radial-gradient(ellipse 46% 78% at 50% 56%, rgba(3,7,13,.72) 0%, rgba(3,7,13,.46) 55%, rgba(3,7,13,0) 100%),
      linear-gradient(180deg, rgba(3,7,13,.50) 0%, rgba(3,7,13,0) 22%, rgba(3,7,13,0) 62%, rgba(5,10,18,.78) 100%);
  }
}

@media (min-aspect-ratio: 1/1) and (min-width: 900px) and (min-height: 700px){
  #view-access .access-logo{ width: 300px; }
  .welcome-claim{ font-size: 17px; }
  .welcome-brand{ margin-bottom: 40px; gap: 10px; }
  .welcome-benefit__title{ font-size: 15px; }
  .welcome-benefit__sub{ font-size: 13px; }
}

.player-search-invite{
  margin: 18px 0 0; padding: 20px 18px 16px; border-radius: 18px; display:flex; flex-direction:column; align-items:stretch; gap: 16px; text-align:left;
  background: var(--surface-2); border: 1px solid rgba(25,159,255,.38);
}
.player-search-invite__head{ display:flex; align-items:center; gap: 12px; }
.player-search-invite__icon{
  flex:none; width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; border-radius: 12px;
  color: var(--accent-cyan); background: rgba(25,159,255,.12); border: 1px solid rgba(25,159,255,.34);
}
.player-search-invite__eyebrow{ font-size: 15px; font-weight: 800; letter-spacing: 0.04em; color: var(--paper); }
.player-search-invite__text-intro{ margin: 0; font-size: 14px; line-height: 1.55; color: rgba(248,250,252,.76); }
.player-search-invite__btn{ flex:none; width:100%; margin-top: 2px; }
.player-search-invite__copy{ align-self:center; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--paper-dim); }
.player-search-invite__text{
  width:100%; box-sizing:border-box; padding: 10px 12px; border-radius: 12px; resize:none;
  background: var(--ink-softer); color: var(--paper); border: 1px solid var(--line); font: inherit; font-size: 13px; line-height:1.45; text-align:left;
}
.player-search-invite .invite-sheet__feedback{ margin:0; text-align:center; }

.help-faq__item + .help-faq__item{ border-top: 1px solid var(--line); }
.help-faq__q{
  display:flex; align-items:center; gap: 12px; min-height: 52px; padding: 10px 16px; box-sizing:border-box;
  font-size: 14px; font-weight: 700; color: var(--paper); cursor:pointer; list-style:none; line-height:1.3;
}
.help-faq__q::-webkit-details-marker{ display:none; }
.help-faq__q > span:first-child{ flex:1 1 auto; }
.help-faq__chev{ flex:none; width:12px; text-align:center; color: var(--paper-faint); font-size:18px; line-height:1; transition: transform .15s ease; }
.help-faq__item[open] > .help-faq__q .help-faq__chev{ transform: rotate(90deg); color: var(--brand-lime); }
.help-faq__a{ padding: 0 16px 16px; }
.help-faq__a p{ margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--paper-dim); }
.help-faq__a p:last-child{ margin-bottom: 0; }
.help-faq__a strong{ color: var(--paper); font-weight: 700; }


.player-discovery{ margin-top: 4px; }
.player-discovery__section{ margin-bottom: 18px; }
.player-discovery__label{ font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--paper-dim); margin: 2px 2px 8px; }
.player-discovery__note{ margin: 14px 4px; font-size: 13px; line-height: 1.5; color: var(--paper-dim); }
.help-cat{ margin-bottom: 18px; }


.app-menu-btn{ position:relative; display:inline-flex; align-items:center; justify-content:center; min-width:40px; min-height:40px; padding:0; color: var(--paper-dim); -webkit-tap-highlight-color: transparent; transition: color .2s ease, transform .15s ease; }
.app-menu-btn:active{ transform: scale(.92); }
.app-menu-btn.is-open{ color: var(--paper); }
.app-menu-btn__bars{ position:relative; display:block; width:20px; height:14px; flex:none; }
.app-menu-btn__bars i{ position:absolute; left:0; width:100%; height:2px; border-radius:2px; background: currentColor; transform-origin:50% 50%;
  transition: transform .32s cubic-bezier(.22,.8,.24,1), opacity .18s ease; }
.app-menu-btn__bars i:nth-child(1){ top:0; }
.app-menu-btn__bars i:nth-child(2){ top:6px; }
.app-menu-btn__bars i:nth-child(3){ top:12px; }
.app-menu-btn.is-open .app-menu-btn__bars i:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.app-menu-btn.is-open .app-menu-btn__bars i:nth-child(2){ opacity:0; transform: scaleX(.2); }
.app-menu-btn.is-open .app-menu-btn__bars i:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.app-menu-scrim{ position:fixed; left:0; right:0; bottom:0; top: var(--app-menu-top, 64px); z-index: 37; background: rgba(3,6,12,0.62);
  opacity:0; transition: opacity .26s ease; -webkit-tap-highlight-color: transparent; }
.app-menu-scrim.is-open{ opacity:1; }
.app-menu{ position:fixed; top: var(--app-menu-top, 64px); right:0; bottom:0; z-index: 38; width: min(86vw, 340px); box-sizing:border-box;
  display:flex; flex-direction:column; padding: 16px 14px calc(14px + var(--safe-bottom));
  background:
    radial-gradient(120% 46% at 100% 0%, rgba(25,159,255,0.13) 0%, rgba(25,159,255,0) 62%),
    linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 34%, var(--bg) 100%);
  border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong);
  border-top-left-radius: 22px; box-shadow: -22px 0 44px -16px rgba(0,0,0,0.65), inset 1px 1px 0 rgba(183,211,235,0.08);
  transform: translateX(104%); transition: transform .32s cubic-bezier(.22,.8,.24,1); will-change: transform; touch-action: pan-y; overscroll-behavior: contain; overflow-y:auto; }
.app-menu.is-open{ transform: translateX(0); }
.app-menu.is-dragging{ transition:none; }
.app-menu__list{ display:flex; flex-direction:column; gap:10px; }
.app-menu__group{ background: linear-gradient(180deg, rgba(17,34,56,0.78) 0%, rgba(9,19,31,0.86) 100%); border: 1px solid var(--line); border-radius: 18px; overflow:hidden;
  box-shadow: 0 10px 24px -16px rgba(0,0,0,0.7), inset 0 1px 0 rgba(183,211,235,0.06); }
.app-menu__item{ display:flex; align-items:center; gap:14px; width:100%; min-height:58px; padding:0 14px 0 12px; border:0; border-radius:0; background:none;
  color: var(--paper); font: inherit; font-size:15px; font-weight:700; text-align:left; cursor:pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, box-shadow .15s ease, transform .12s ease; }
.app-menu__item + .app-menu__item{ border-top: 1px solid var(--line); }
.app-menu__item:active{ background: var(--surface-active); transform: scale(.992); }
.app-menu__item:focus-visible, .app-menu-btn:focus-visible{ outline: 2px solid var(--accent-cyan); outline-offset: -2px; }
.app-menu__icon{ flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:12px; color: var(--paper-dim); background: var(--surface-3);
  border: 1px solid rgba(183,211,235,0.10); transition: color .2s ease, background .2s ease; }
.app-menu__icon svg{ width:20px; height:20px; fill:none; stroke: currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.app-menu__icon.is-blue{ color: var(--accent-cyan); background: rgba(25,159,255,0.13); border-color: rgba(25,159,255,0.30); }
.app-menu__icon.is-lime{ color: var(--brand-lime); background: rgba(149,255,25,0.12); border-color: rgba(149,255,25,0.34); }
.app-menu__icon.is-dim{ color: #C9D3DE; }
.app-menu__label{ flex:1 1 auto; min-width:0; }
.app-menu__chev{ flex:none; color: var(--paper-faint); font-size:18px; line-height:1; }
.app-menu__item.is-highlight{ background: rgba(149,255,25,0.08); box-shadow: inset 0 0 0 1px rgba(149,255,25,0.45); }
.app-menu__item.is-on .app-menu__label::after{ content:""; display:inline-block; width:7px; height:7px; margin-left:8px; border-radius:50%; background: var(--brand-lime); box-shadow: 0 0 8px rgba(149,255,25,0.7); vertical-align:middle; }
.app-menu__footer{ margin-top:auto; padding-top:14px; }
.app-menu__item--secondary{ min-height:50px; border-radius: 14px; font-size:14px; font-weight:600; color: var(--paper-dim); border: 1px solid var(--line); background: rgba(5,10,18,0.55); }
.app-menu__item--secondary .app-menu__icon{ width:32px; height:32px; background: transparent; border-color: transparent; }
.app-menu--real .app-menu__item{ opacity:0; transform: translateX(14px); transition: opacity .28s ease, transform .32s cubic-bezier(.22,.8,.24,1), background .15s ease, box-shadow .15s ease; }
.app-menu--real.is-open .app-menu__item{ opacity:1; transform:none; transition-delay: calc(var(--i, 0) * 38ms + 90ms), calc(var(--i, 0) * 38ms + 90ms), 0s, 0s; }
.app-menu--real.is-open .app-menu__item:active{ transform: scale(.992); }
@media (prefers-reduced-motion: reduce){
  .app-menu, .app-menu-scrim, .app-menu--real .app-menu__item, .app-menu-btn__bars i{ transition-duration: .01s !important; transition-delay: 0s !important; }
  .app-menu{ transform: none; opacity:0; transition: opacity .01s; }
  .app-menu.is-open{ opacity:1; }
}

.autosave-status{ grid-column: 3; justify-self:end; display:inline-flex; align-items:center; gap:6px; min-height:24px; font-size:12px; font-weight:700; color: var(--paper-dim);
  opacity:0; transform: translateY(2px); transition: opacity .2s ease, transform .2s ease; pointer-events:none; white-space:nowrap; }
.autosave-status[data-state="saving"], .autosave-status[data-state="saved"], .autosave-status[data-state="error"]{ opacity:1; transform:none; }
.autosave-status[data-state="error"]{ pointer-events:auto; color: var(--danger); }
.autosave-status__icon{ display:inline-grid; place-items:center; width:16px; height:16px; border-radius:50%; font-size:10px; line-height:1; }
.autosave-status[data-state="saving"] .autosave-status__icon{ border:2px solid var(--line-strong); border-top-color: var(--paper-dim); animation: autosave-spin .8s linear infinite; }
.autosave-status[data-state="saved"] .autosave-status__icon{ background: var(--brand-lime); color: var(--bg); animation: autosave-pop .32s cubic-bezier(.22,.8,.24,1); }
.autosave-status[data-state="saved"] .autosave-status__icon::after{ content:"✓"; font-weight:900; }
.autosave-status[data-state="saved"]{ color: var(--brand-lime); }
.autosave-status[data-state="error"] .autosave-status__icon{ background: var(--danger); color: var(--bg); }
.autosave-status[data-state="error"] .autosave-status__icon::after{ content:"!"; font-weight:900; }
.autosave-status__retry{ background:none; border:0; padding:4px 2px; font: inherit; font-weight:800; color: var(--paper); text-decoration: underline; text-underline-offset:3px; cursor:pointer; }
@keyframes autosave-spin{ to{ transform: rotate(360deg); } }
@keyframes autosave-pop{ 0%{ transform: scale(.3); } 70%{ transform: scale(1.18); } 100%{ transform: scale(1); } }
@media (prefers-reduced-motion: reduce){ .autosave-status__icon{ animation:none !important; } }

#invite-installed-sheet, #invite-paste-sheet{ max-height: 92dvh; overflow-y:auto; overscroll-behavior: contain; touch-action: pan-y; }
.invite-steps{ margin:0; padding:0; list-style:none; counter-reset: istep; text-align:left; display:flex; flex-direction:column; gap:8px; }
.invite-steps li{ counter-increment: istep; display:flex; align-items:flex-start; gap:10px; font-size:13.5px; line-height:1.35; color: var(--paper); }
.invite-steps li::before{ content: counter(istep); flex:none; display:grid; place-items:center; width:20px; height:20px; margin-top:-1px; border-radius:50%; background: var(--surface-3); color: var(--brand-lime); font-size:11px; font-weight:800; }
.invite-paste__manual{ display:flex; flex-direction:column; gap:8px; text-align:left; }
.invite-paste__manual .btn-secondary{ width:100%; }

.invite-copy-btn{ display:flex; align-items:center; justify-content:center; gap:10px; position:relative; overflow:hidden;
  transition: background .28s ease, color .28s ease, box-shadow .28s ease; }
.invite-copy-btn__icon{ position:relative; display:inline-block; width:22px; height:22px; flex:none; }
.invite-copy-btn__icon svg{ position:absolute; inset:1px; transition: transform .34s cubic-bezier(.22,.8,.24,1), opacity .22s ease; }
.invite-copy-btn__ico-ok{ opacity:0; transform: scale(.2) rotate(-35deg); }
.invite-copy-btn.is-copied{ background: var(--surface-2); color: var(--brand-lime); box-shadow: inset 0 0 0 1.5px var(--brand-lime), 0 0 20px -6px rgba(149,255,25,0.55); }
.invite-copy-btn.is-copied .invite-copy-btn__ico-msg{ opacity:0; transform: translate(7px,-9px) scale(.5); }
.invite-copy-btn.is-copied .invite-copy-btn__ico-ok{ opacity:1; transform: scale(1) rotate(0); }

.mdemo{ --md: 8.5s; position:relative; height:206px; border-radius:18px; overflow:hidden; background: var(--bg-gradient-app); border:1px solid var(--line); text-align:left; }
.mdemo__header{ position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; box-sizing:border-box; height:44px; padding:0 14px; border-bottom:1px solid var(--line); }
.mdemo__logo{ height:15px; width:auto; display:block; }
.mdemo__bars{ color: var(--paper-dim); }
.mdemo__bars i{ transition:none; }
.mdemo__scrim{ position:absolute; left:0; right:0; bottom:0; top:44px; background: rgba(3,6,12,0.62); opacity:0; }
.mdemo__menu.app-menu{ position:absolute; top:44px; right:0; bottom:0; width:68%; z-index:2; padding:8px; overflow:hidden; border-radius:14px 0 0 0; transform: translateX(104%); transition:none; box-shadow:none; }
.mdemo .app-menu__list{ gap:5px; }
.mdemo .app-menu__group{ border-radius:10px; }
.mdemo .app-menu__item{ min-height:27px; padding:0 6px; gap:8px; font-size:10.5px; border-radius:0; }
.mdemo .app-menu__icon{ width:20px; height:20px; border-radius:7px; }
.mdemo .app-menu__icon svg{ width:12px; height:12px; }
.mdemo .app-menu__chev{ display:none; }
.mdemo .app-menu__footer{ padding-top:5px; }
.mdemo .app-menu__item--secondary{ min-height:26px; font-size:10px; border-radius:9px; }
.mdemo__paste{ position:absolute; left:10px; right:10px; bottom:10px; z-index:3; height:40px; display:flex; align-items:center; gap:10px; padding:0 12px; border-radius:14px;
  background: var(--surface-2); border:1px solid var(--line-strong); opacity:0; transform: translateY(14px); }
.mdemo__paste-line{ flex:1; height:8px; border-radius:4px; background: var(--surface-active); overflow:hidden; }
.mdemo__paste-line i{ display:block; height:100%; width:0; border-radius:4px; background: var(--brand-lime); opacity:.85; }
.mdemo__paste-check{ display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background: var(--brand-lime); color: var(--bg); transform: scale(0); }
.mdemo__tap{ position:absolute; z-index:4; width:24px; height:24px; margin:-12px 0 0 -12px; border-radius:50%; border:2px solid var(--brand-lime); background: rgba(149,255,25,0.28); opacity:0; pointer-events:none; }
.mdemo__tap--menu{ right:24px; top:22px; left:auto; margin:-12px -12px 0 0; }
.mdemo__tap--item{ left:60%; top:126px; }
.mdemo .app-menu__item[data-menu-action="invitation"]{ animation: md-item var(--md) infinite; }
.mdemo__bars i:nth-child(1){ animation: md-bar1 var(--md) infinite; }
.mdemo__bars i:nth-child(2){ animation: md-bar2 var(--md) infinite; }
.mdemo__bars i:nth-child(3){ animation: md-bar3 var(--md) infinite; }
.mdemo__scrim{ animation: md-scrim var(--md) infinite; }
.mdemo__menu.app-menu{ animation: md-menu var(--md) infinite; }
.mdemo__tap--menu{ animation: md-tap1 var(--md) infinite; }
.mdemo__tap--item{ animation: md-tap2 var(--md) infinite; }
.mdemo__paste{ animation: md-paste var(--md) infinite; }
.mdemo__paste-line i{ animation: md-type var(--md) infinite; }
.mdemo__paste-check{ animation: md-check var(--md) infinite; }
@keyframes md-bar1{ 0%,12%{ transform:none; } 18%,56%{ transform: translateY(6px) rotate(45deg); } 62%,100%{ transform:none; } }
@keyframes md-bar2{ 0%,12%{ opacity:1; transform:none; } 18%,56%{ opacity:0; transform: scaleX(.2); } 62%,100%{ opacity:1; transform:none; } }
@keyframes md-bar3{ 0%,12%{ transform:none; } 18%,56%{ transform: translateY(-6px) rotate(-45deg); } 62%,100%{ transform:none; } }
@keyframes md-scrim{ 0%,14%{ opacity:0; } 24%,54%{ opacity:1; } 62%,100%{ opacity:0; } }
@keyframes md-menu{ 0%,14%{ transform: translateX(104%); } 26%,56%{ transform: translateX(0); } 66%,100%{ transform: translateX(104%); } }
@keyframes md-tap1{ 0%,6%{ opacity:0; transform: scale(1.5); } 10%{ opacity:1; transform: scale(1); } 16%{ opacity:1; transform: scale(.85); } 21%,100%{ opacity:0; transform: scale(1.4); } }
@keyframes md-tap2{ 0%,32%{ opacity:0; transform: scale(1.5); } 37%{ opacity:1; transform: scale(1); } 43%{ opacity:1; transform: scale(.85); } 48%,100%{ opacity:0; transform: scale(1.4); } }
@keyframes md-item{ 0%,36%{ background:none; box-shadow:none; } 42%,56%{ background: rgba(149,255,25,0.1); box-shadow: inset 0 0 0 1px rgba(149,255,25,0.5); } 62%,100%{ background:none; box-shadow:none; } }
@keyframes md-paste{ 0%,60%{ opacity:0; transform: translateY(14px); } 68%,90%{ opacity:1; transform:none; } 97%,100%{ opacity:0; transform: translateY(6px); } }
@keyframes md-type{ 0%,68%{ width:0; } 82%,100%{ width:88%; } }
@keyframes md-check{ 0%,83%{ transform: scale(0); } 87%{ transform: scale(1.25); } 90%,100%{ transform: scale(1); } }
@media (prefers-reduced-motion: reduce){
  .mdemo *{ animation:none !important; }
  .mdemo__scrim{ opacity:1; }
  .mdemo__menu.app-menu{ transform:none; opacity:1; }
  .mdemo__bars i:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .mdemo__bars i:nth-child(2){ opacity:0; }
  .mdemo__bars i:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
  .mdemo .app-menu__item[data-menu-action="invitation"]{ background: rgba(149,255,25,0.1); box-shadow: inset 0 0 0 1px rgba(149,255,25,0.5); }
}


.help-search{ position: sticky; top: 0; z-index: 3; display:flex; align-items:center; gap:10px; margin: 0 0 14px; padding: 0 12px; min-height:48px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 8px 20px -14px rgba(0,0,0,0.8); transition: border-color .15s ease; }
.help-search:focus-within{ border-color: var(--accent-cyan); }
.help-search__icon{ flex:none; color: var(--paper-dim); }
.help-search__input{ flex:1 1 auto; min-width:0; height:46px; background:none; border:0; outline:none; color: var(--paper); font: inherit; font-size:16px; -webkit-appearance:none; appearance:none; }
.help-search__input::placeholder{ color: var(--paper-faint); }
.help-search__input::-webkit-search-cancel-button, .help-search__input::-webkit-search-decoration{ -webkit-appearance:none; display:none; }
.help-search__clear{ flex:none; display:grid; place-items:center; width:28px; height:28px; border:0; border-radius:50%; background: var(--surface-3); color: var(--paper-dim); cursor:pointer; }
.help-search__empty{ margin: 4px 4px 18px; font-size:13.5px; line-height:1.5; color: var(--paper-dim); text-align:center; }
.help-faq__item[hidden], .help-cat[hidden]{ display:none !important; }

#view-access .invitation-card{ margin: 0 0 16px; padding: 13px 14px 6px 12px; text-align:left; background: rgba(4,9,16,.58); border:1px solid rgba(149,255,25,.42); border-radius: 12px;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); box-shadow: 0 0 22px -12px rgba(149,255,25,.35); }
.invitation-card__head{ display:flex; align-items:center; gap:14px; margin-bottom: 8px; }
.invitation-card__icon{ flex:none; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:11px; color: var(--brand-lime); background: rgba(149,255,25,.12); border:1px solid rgba(149,255,25,.34); }
.invitation-card__head .invitation-card__title{ margin:0; font-size:15px; font-weight:800; line-height:1.25; color: var(--brand-lime); }
#view-access .invitation-card__text{ margin:0; font-size:13px; font-weight:500; line-height:1.45; color: rgba(248,250,252,.84); text-shadow: 0 1px 8px rgba(3,7,13,.7); }
.invitation-card__link{ display:inline-flex; align-items:center; min-height:40px; margin: 2px 0 0; padding:0; background:none; border:0; font: inherit; font-size:13px; font-weight:700;
  color: var(--accent-cyan); text-decoration: underline; text-underline-offset:3px; cursor:pointer; -webkit-tap-highlight-color: transparent; }
.invitation-card__link[hidden]{ display:none; }
.invitation-card.is-unavailable .invitation-card__title{ color: var(--paper); }
.invitation-card.is-unavailable .invitation-card__icon{ color: var(--paper-dim); background: var(--surface-3); border-color: var(--line); }
#view-access .invitation-card.is-unavailable{ border-color: var(--line-strong); box-shadow: none; }

#view-access .access-actions--methods{ gap: 10px; }
#view-access .access-actions--methods .btn-start{ margin-top: 0; }
.btn-google, .btn-method{ width:100%; gap: 10px; }
.btn-google{
  display:flex; align-items:center; justify-content:center; min-height: 50px; padding: 0 18px; border-radius: 14px; cursor:pointer;
  background:#FFFFFF; color:#1F1F1F; border: 1px solid #DADCE0; font-family: var(--font-display); font-weight:700; font-size:14.5px; letter-spacing: 0.01em;
  box-shadow: 0 8px 22px rgba(3,7,13,.38); transition: transform .1s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn-google:active{ transform: scale(0.98); }
.btn-google:disabled{ opacity:.55; cursor:not-allowed; box-shadow:none; }
.btn-google__logo{ width:20px; height:20px; flex:none; }
.btn-google.is-loading span::after{
  content:""; display:inline-block; width:12px; height:12px; margin-left:10px; vertical-align:-1px; border-radius:50%;
  border:2px solid rgba(31,31,31,.25); border-top-color:#1F1F1F; animation: accessSpin .7s linear infinite;
}
.btn-method{ letter-spacing: 0.03em; }
.btn-method__icon{ flex:none; }
.access-legal-note{
  margin: 6px 6px 0; text-align:center; font-size: 12px; line-height: 1.55; color: rgba(248,250,252,.74); text-shadow: 0 1px 8px rgba(3,7,13,.7);
}
.access-legal-note a{ color: var(--paper); text-decoration: underline; text-underline-offset: 2px; font-weight:600; }
.access-existing{ margin: 2px 0 0; text-align:center; font-size: 13px; color: rgba(248,250,252,.78); text-shadow: 0 1px 8px rgba(3,7,13,.7); }
.access-existing .link-btn{ font-size:13px; color: var(--paper); margin-left: 2px; }
.access-notice{
  margin: 0; padding: 10px 12px; text-align:center; font-size: 12.5px; line-height: 1.45; font-weight:600; color: #FFD3D5;
  background: rgba(255,91,97,.12); border: 1px solid rgba(255,91,97,.38); border-radius: 12px;
}

.access-heading{ margin: 0 0 6px; font-family: var(--font-display); font-weight:800; font-size: 23px; line-height:1.2; letter-spacing: 0.01em; color: var(--paper); }
.access-lead{ margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--paper-dim); }
.access-lead strong{ color: var(--paper); font-weight:700; overflow-wrap:anywhere; }
.access-progress{ display:flex; gap:6px; margin: 0 0 20px; }
.access-progress i{ flex:1; height:4px; border-radius:4px; background: rgba(255,255,255,.12); transition: background .25s ease; }
.access-progress i.is-done{ background: rgba(149,255,25,.55); }
.access-progress i.is-current{ background: var(--brand-lime); }
.field__input--code{ font-size: 26px; font-weight:700; letter-spacing: 0.5em; text-align:center; font-variant-numeric: tabular-nums; padding-left: 0.5em; }
.access-inline-actions{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top: 6px; }
.access-inline-actions .link-btn:disabled{ opacity:.55; cursor:default; text-decoration:none; }
#signup-legal-note{ margin: 14px 4px 0; text-align:center; color: var(--paper-dim); text-shadow:none; }
#signup-legal-note a{ color: var(--paper); }
.signup-step:not([hidden]){ animation: accessStepIn .26s ease both; }
@keyframes accessStepIn{ from{ opacity:0; transform: translateY(6px); } to{ opacity:1; transform:none; } }
@keyframes accessSpin{ to{ transform: rotate(360deg); } }
.access-form .edit-error[role="alert"]{
  margin-top: 10px; padding: 9px 12px; font-size:12.5px; line-height:1.45; color:#FFD3D5; background: rgba(255,91,97,.10); border: 1px solid rgba(255,91,97,.34); border-radius: 12px;
}
@media (prefers-reduced-motion: reduce){
  .signup-step:not([hidden]){ animation:none; }
  .btn-google.is-loading span::after{ animation-duration: 2s; }
  .access-progress i{ transition:none; }
}

.settings-row--switch{ cursor:default; align-items:center; padding-top: 10px; padding-bottom: 10px; }
.settings-row__text{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap: 3px; }
.settings-row__hint{ font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--paper-dim); }
.settings-row__hint a{ color: var(--paper); text-decoration: underline; text-underline-offset: 2px; font-weight:600; }
#settings-activity-row .settings-row__label{ white-space:normal; }
.switch{
  flex:none; position:relative; width: 44px; height: 26px; padding: 0; border-radius: 999px; cursor:pointer;
  background: rgba(255,255,255,.14); border: 1px solid var(--line-strong); transition: background .2s ease, border-color .2s ease;
}
.switch__thumb{ position:absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background:#E9EEF5; transition: transform .2s ease, background .2s ease; }
.switch[aria-checked="true"]{ background: rgba(149,255,25,.28); border-color: rgba(149,255,25,.7); }
.switch[aria-checked="true"] .switch__thumb{ transform: translateX(18px); background: var(--brand-lime); }
.switch:disabled{ opacity:.55; cursor:default; }
.switch:focus-visible{ outline: 2px solid var(--accent-cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){ .switch, .switch__thumb{ transition:none; } }

.sr-only{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#view-access .welcome-brand{ margin-bottom: 20px; gap: 14px; }
#view-access .welcome-claim{
  font-size: 27px; line-height: 1.16; font-weight: 800; letter-spacing: -0.01em; color: var(--paper); text-align:center; max-width: 21ch; text-wrap: balance;
}
#view-access .welcome-claim__accent{ font-style: normal; color: var(--brand-lime); }
.welcome-sub{ margin: 0; max-width: 30ch; text-align:center; font-size: 14.5px; line-height: 1.45; font-weight: 500; color: rgba(248,250,252,.84); text-shadow: 0 1px 10px rgba(3,7,13,.85); text-wrap: balance; }
.access-or{ display:flex; align-items:center; gap: 12px; margin: 4px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: rgba(248,250,252,.62); }
.access-or::before, .access-or::after{ content:""; flex:1 1 0; height:1px; background: rgba(183,211,235,.2); }
.field--welcome-email .field__input{ border: 1px solid rgba(149,255,25,.55); background: rgba(5,10,18,.66); border-radius: 14px; min-height: 50px; padding: 0 16px; }
.field--welcome-email .field__input:focus{ border-color: var(--brand-lime); outline: none; box-shadow: 0 0 0 2px rgba(149,255,25,.2); }
.btn-continue-neutral{
  width:100%; min-height: 50px; padding: 0 18px; border-radius: 14px; cursor:pointer; font-family: var(--font-display); font-weight:700; font-size:15px;
  background: #3A4656; color: #F1F5F9; border: 1px solid rgba(183,211,235,.28); transition: background .15s ease, opacity .15s ease, transform .1s ease;
}
.btn-continue-neutral:disabled{ background: rgba(58,70,86,.45); color: rgba(241,245,249,.5); border-color: rgba(183,211,235,.14); cursor:not-allowed; }
.btn-continue-neutral:not(:disabled):active{ transform: scale(0.98); }
.btn-continue-neutral[aria-busy="true"]{ cursor: progress; }
#view-access .access-legal-note{ margin-top: 2px; }
#view-access .access-legal-note a{ font-weight: 600; text-decoration-thickness: 1px; text-decoration-color: rgba(248,250,252,.55); }
.access-nomeasure{ display:block; margin: 0 auto; padding: 4px 8px; font-size: 12.5px; color: rgba(248,250,252,.72); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(248,250,252,.4); }
.access-nomeasure.is-armed{ color: var(--paper); text-decoration-color: var(--brand-lime); }
.access-nomeasure:disabled{ opacity:.5; }
#view-access .access-existing{ font-size: 14.5px; color: #FFFFFF; font-weight: 500; margin-top: 4px; }
#view-access .access-existing .link-btn.access-login-link{ font-size: 14.5px; color: #FFFFFF; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.signup-verify-status{ margin: 6px 0 0; min-height: 20px; font-size: 13px; font-weight: 600; color: var(--accent-cyan); }
#signup-form[data-step-now="verify"] #signup-continue-btn{ display:none; }
@media (max-height: 700px){
  #view-access .welcome-claim{ font-size: 23px; }
  .welcome-sub{ font-size: 13.5px; }
}

.otp{ position:relative; width:100%; max-width:360px; margin: 6px auto 0; }
.otp__boxes{ display:grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 2.4vw, 10px); pointer-events:none; }
.otp__box{
  display:flex; align-items:center; justify-content:center; min-width:0; aspect-ratio: 5 / 6.2; max-height: 64px;
  border-radius: 12px; background: rgba(5,10,18,.66); border: 1px solid rgba(183,211,235,.2);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 7vw, 30px); line-height:1; color: var(--paper); font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.otp__box.is-filled{ border-color: rgba(183,211,235,.42); background: rgba(9,19,31,.8); }
.otp__input{
  position:absolute; inset:0; z-index:1; width:100%; height:100%; margin:0; padding:0; border:0; outline:0; background: transparent;
  color: transparent; caret-color: transparent; -webkit-text-fill-color: transparent; text-align:center; letter-spacing: .5em; font-size: 16px; /* >=16px: iOS no hace zoom */
  -webkit-appearance:none; appearance:none; border-radius: 12px; cursor:text;
}
.otp__input::selection{ background: transparent; }
.otp__input:focus ~ .otp__boxes .otp__box.is-active{ border-color: var(--brand-lime); box-shadow: 0 0 0 2px rgba(149,255,25,.22); background: rgba(9,19,31,.9); }
.otp__input:read-only ~ .otp__boxes{ opacity:.6; }
@media (prefers-reduced-motion: reduce){ .otp__box{ transition:none; } }

.gh-rule{ display:flex; align-items:center; justify-content:space-between; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-3); border:1px solid var(--line); }
.gh-players{ display:flex; gap: 8px; }
.gh-players i{ width: 26px; height: 26px; border-radius:50%; border:1.5px dashed var(--text-faint); box-sizing:border-box; }
.gh-players i.on{ border:0; background: var(--brand-lime); box-shadow: 0 0 12px rgba(149,255,25,.35); }
.gh-verdict{ font-size: 12px; color: var(--text-dim); text-align:right; } .gh-verdict b{ color: var(--text); }
.gh-rule--yes{ border-color: rgba(149,255,25,.4); } .gh-rule--yes .gh-verdict b{ color: var(--brand-lime); }
.gh-rule--no .gh-verdict b{ color: var(--accent-cyan); }
.gh-dot{ display:inline-block; width:9px; height:9px; border-radius:50%; border:1.5px dashed var(--text-faint); vertical-align:-1px; box-sizing:border-box; }
.gh-dot--on{ border:0; background: var(--brand-lime); }
.gh-matches{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 7px; }
.gh-m{ display:flex; align-items:center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); border:1px solid var(--line); font-size: 12px; color: var(--text-dim); transition: border-color .5s var(--rh-ease), background-color .5s, opacity .5s, box-shadow .6s; }
.gh-m span{ flex:1; min-width:0; } .gh-m b{ font-size: 18px; font-weight:800; font-variant-numeric: tabular-nums; color: var(--text); }
.gh-m em{ font-style:normal; font-size: 10px; font-weight:800; letter-spacing:.06em; min-width: 48px; text-align:right; text-transform:uppercase; color: var(--text-faint); }
.gh-m--top{ border-color: rgba(149,255,25,.55); background: rgba(149,255,25,.07); box-shadow: 0 0 16px rgba(149,255,25,.14); } .gh-m--top b, .gh-m--top em{ color: var(--brand-lime); }
.gh-m--out{ opacity:.55; }
.gh-cmp{ display:flex; flex-direction:column; gap: 10px; }
.gh-cmp__col{ display:flex; flex-direction:column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-3); border:1px solid var(--line); font-size: 12px; color: var(--text-dim); }
.gh-cmp__col strong{ font-size: 13px; color: var(--text); }
.gh-reset{ height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow:hidden; } .gh-reset i{ display:block; height:100%; width: 62%; border-radius:999px; background: var(--accent-cyan); transform-origin:left; }
.gh-race{ display:flex; align-items:flex-end; gap: 4px; height: 46px; } .gh-race i{ flex:1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--brand-lime), var(--brand-lime-deep)); height: calc(var(--w) * 16%); transform-origin: bottom; }




 




 
  

 
  


 
   
@media (prefers-reduced-motion: no-preference){
  .rh-anim .rh-scene:not(.is-in) .gh-rule, .rh-anim .rh-scene:not(.is-in) .gh-m, .rh-anim .rh-scene:not(.is-in) .gh-cmp__col,
  .rh-anim .rh-scene:not(.is-in) .lh-tr, .rh-anim .rh-scene:not(.is-in) .lh-read li{ opacity:0; transform: translateY(14px); }
  .rh-anim .gh-rule, .rh-anim .gh-cmp__col, .rh-anim .lh-tr, .rh-anim .lh-read li{ transition: opacity .5s var(--rh-ease) calc(var(--i,0) * 110ms), transform .7s var(--rh-ease) calc(var(--i,0) * 110ms); }
  .rh-anim .gh-m{ transition: opacity .5s var(--rh-ease) calc(var(--i,0) * 130ms), transform .7s var(--rh-ease) calc(var(--i,0) * 130ms), border-color .6s, background-color .6s, box-shadow .6s; }
  .rh-anim .gh-players i, .rh-anim .gh-verdict{ transition: transform .5s var(--rh-ease) calc(var(--i,0) * 120ms), opacity .5s calc(var(--i,0) * 120ms); }
  .rh-anim .rh-scene:not(.is-in) .gh-players i{ transform: scale(.3); opacity:0; } .rh-anim .rh-scene:not(.is-in) .gh-verdict{ opacity:0; transform: translateX(8px); }
  .rh-anim .rh-scene:not(.is-in) .gh-m--top{ border-color: var(--line); background: var(--surface-3); box-shadow:none; }
  .rh-anim .rh-scene:not(.is-in) .gh-m--top b, .rh-anim .rh-scene:not(.is-in) .gh-m--top em{ color: var(--text-faint); }
  .rh-anim .rh-scene:not(.is-in) .gh-m--out{ opacity:0; }
  .rh-anim .gh-m--top{ transition-delay: calc(var(--i,0) * 130ms), calc(var(--i,0) * 130ms), 1.1s, 1.1s, 1.1s; }
  .rh-anim .gh-m--top b, .rh-anim .gh-m--top em{ transition: color .5s 1.1s; }
  .rh-anim .gh-m--out{ transition-delay: calc(var(--i,0) * 130ms), calc(var(--i,0) * 130ms), 0s, 0s, 0s; }
  .rh-anim .rh-scene:not(.is-in) .gh-reset i{ transform: scaleX(0); } .rh-anim .gh-reset i{ transition: transform 1s var(--rh-ease) .4s; }
  .rh-anim .rh-scene:not(.is-in) .gh-race i{ transform: scaleY(0); } .rh-anim .gh-race i{ transition: transform .6s var(--rh-ease) calc(var(--w) * 170ms + 300ms); }
   
   
   
  
  
  
  
   
}

.manual-help-row{ margin-top: 18px; }
.ch-court{ display:flex; flex-direction:column; align-items:stretch; gap: 6px; }
.ch-team{ display:grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ch-vs{ align-self:center; font-size: 10px; font-weight:800; letter-spacing:.14em; color: var(--text-faint); }
.ch-slot{ display:flex; align-items:center; gap: 8px; min-width:0; padding: 10px; border-radius: 14px; border: 1.5px dashed var(--text-faint); background: transparent; font-size: 12px; color: var(--text-faint); }
.ch-slot b{ flex:none; width: 26px; height:26px; border-radius:50%; border: 1.5px dashed var(--text-faint); box-sizing:border-box; position:relative; }
.ch-slot b::after{ content:'✓'; position:absolute; inset:0; display:grid; place-items:center; font-size: 13px; font-weight:800; color:#0C1400; }
.ch-slot span{ min-width:0; line-height:1.2; } .ch-slot em{ display:block; font-style:normal; font-size: 10px; color: var(--text-faint); }
.ch-team--a .ch-slot{ border-style:solid; border-color: rgba(149,255,25,.5); background: rgba(149,255,25,.07); color: var(--text); }
.ch-team--a .ch-slot b{ border:0; background: var(--brand-lime); }
.ch-team--b .ch-slot{ border-style:solid; border-color: rgba(25,159,255,.55); background: rgba(25,159,255,.08); color: var(--text); }
.ch-team--b .ch-slot b{ border:0; background: var(--accent-cyan); } .ch-team--b .ch-slot b::after{ color:#001526; }
.ch-slot--guest{ border-style:dashed !important; } .ch-slot--guest em{ color: var(--accent-cyan); }
.ch-facts{ display:flex; flex-wrap:wrap; gap: 8px; }
.ch-fact{ flex: 1 1 100%; display:flex; flex-direction:column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-3); border:1px solid var(--line); min-width:0; }
.ch-fact--half{ flex: 1 1 calc(50% - 4px); }
.ch-fact__k{ font-size: 10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color: var(--accent-cyan); }
.ch-fact__v{ font-size: 13px; color: var(--text-dim); }
.ch-seg{ position:relative; display:grid; grid-template-columns:1fr 1fr; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 12px; font-weight:700; text-align:center; }
.ch-seg span{ position:relative; z-index:1; padding: 6px 0; color: var(--text); } .ch-seg span:nth-of-type(2){ color: var(--text-dim); }
.ch-seg__pill{ position:absolute; top:3px; bottom:3px; left:3px; width: calc(50% - 3px); border-radius:999px; background: rgba(149,255,25,.2); border:1px solid rgba(149,255,25,.55); box-sizing:border-box; }
.ch-chips{ display:flex; flex-wrap:wrap; gap: 6px; } .ch-chips span{ padding: 5px 10px; border-radius:999px; border:1px solid var(--line); font-size: 11px; color: var(--text-dim); }
.ch-chips .is-on{ border-color: rgba(149,255,25,.55); background: rgba(149,255,25,.12); color: var(--brand-lime); font-weight:700; }
.ch-wheels{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 300px; margin: 0 auto; width:100%; }
.ch-wcol{ display:flex; flex-direction:column; align-items:center; gap: 2px; }
.ch-wcol__l{ display:flex; align-items:center; gap:6px; font-size: 10px; font-weight:800; letter-spacing:.06em; color: var(--text-dim); }
.ch-wheel{ --h: 36px; position:relative; width:100%; height: calc(var(--h) * 5); overflow:hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%); }
.ch-wheel__reel{ padding: calc(var(--h) * 2) 0; transform: translateY(calc(var(--to) * var(--h) * -1)); }
.ch-wheel__reel i{ display:flex; align-items:center; justify-content:center; height: var(--h); font-style:normal; font-family: var(--font-display); font-weight:700; font-size: 22px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.ch-wheel__reel i.is-target{ font-size: 28px; font-weight:800; }
.ch-wheel--a .is-target{ color: var(--team-a); } .ch-wheel--b .is-target{ color: var(--team-b); }
.ch-wheel__bar{ position:absolute; left:0; right:0; top: calc(var(--h) * 2); height: var(--h); pointer-events:none; border-top:1px solid; border-bottom:1px solid; }
.ch-wheel--a .ch-wheel__bar{ border-color: rgba(149,255,25,.45); background: rgba(149,255,25,.06); } .ch-wheel--b .ch-wheel__bar{ border-color: rgba(25,159,255,.5); background: rgba(25,159,255,.07); }
.ch-sets{ display:flex; justify-content:center; gap: 8px; }
.ch-set{ padding: 6px 12px; border-radius: 999px; background: var(--surface-3); border:1px solid var(--line); font-size: 11px; font-weight:800; letter-spacing:.06em; color: var(--text-dim); } .ch-set b{ color: var(--text); margin-left: 4px; }
.ch-confirm{ text-align:center; padding: 12px; border-radius: 999px; font-size: 13px; font-weight:800; letter-spacing:.06em; background: var(--brand-lime); color:#0C1400; }
.ch-flow{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 8px; position:relative; }
.ch-flow li{ display:flex; align-items:center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--surface-3); border:1px solid var(--line); font-size: 13px; color: var(--text); }
.ch-flow b{ flex:none; width: 24px; height:24px; border-radius:50%; display:grid; place-items:center; font-size: 12px; color: var(--accent-cyan); border:1px solid var(--accent-cyan); }
.ch-flow .is-final{ border-color: rgba(149,255,25,.55); } .ch-flow .is-final b{ background: var(--brand-lime); border-color: var(--brand-lime); color:#0C1400; }
.ch-card{ padding: 12px; border-radius: 14px; background: var(--surface-1); border:1px solid var(--line); }
.ch-card__top{ display:flex; justify-content:space-between; align-items:center; font-size: 10px; letter-spacing:.06em; color: var(--text-faint); margin-bottom: 8px; }
.ch-card__row{ display:flex; align-items:center; gap: 14px; padding: 6px 0; font-size: 13px; color: var(--text-dim); } .ch-card__row span{ flex:1; } .ch-card__row b{ width: 18px; text-align:center; font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.ch-badge{ position:relative; display:inline-grid; } .ch-badge em{ grid-area:1/1; font-style:normal; padding: 3px 10px; border-radius:999px; font-size: 10px; font-weight:800; letter-spacing:.08em; text-align:center; }
.ch-badge__p{ background: rgba(25,159,255,.15); color: var(--accent-cyan); border:1px solid rgba(25,159,255,.5); }
.ch-badge__v{ background: var(--brand-lime); color:#0C1400; border:1px solid var(--brand-lime); opacity:0; }
@media (prefers-reduced-motion: reduce){ .ch-badge__p{ opacity:0; } .ch-badge__v{ opacity:1; } }
@media (prefers-reduced-motion: no-preference){
  .ch-badge__p{ opacity:1; } .ch-badge__v{ opacity:0; }
  .rh-anim .rh-scene.is-in .ch-badge__p{ opacity:0; transition: opacity .4s 2.6s; } .rh-anim .rh-scene.is-in .ch-badge__v{ opacity:1; transform:none; transition: opacity .5s 2.7s, transform .6s var(--rh-ease) 2.7s; }
  .rh-anim .rh-scene:not(.is-in) .ch-badge__v{ transform: scale(.6); }
  .rh-anim .rh-scene:not(.is-in) .ch-fact, .rh-anim .rh-scene:not(.is-in) .ch-flow li, .rh-anim .rh-scene:not(.is-in) .ch-set{ opacity:0; transform: translateY(14px); }
  .rh-anim .ch-fact, .rh-anim .ch-flow li, .rh-anim .ch-set{ transition: opacity .5s var(--rh-ease) calc(var(--i,0) * 110ms), transform .7s var(--rh-ease) calc(var(--i,0) * 110ms); }
  .rh-anim .ch-flow li{ transition-delay: calc(var(--i,0) * 450ms); }
  .rh-anim .ch-flow .is-final{ transition-delay: 2.5s; }
  .rh-anim .ch-set{ transition-delay: calc(var(--i,0) * 300ms + 1.7s); }
  .rh-anim .rh-scene:not(.is-in) .ch-slot:not(.ch-slot--me){ border-style:dashed; border-color: var(--text-faint); background: transparent; color: var(--text-faint); }
  .rh-anim .rh-scene:not(.is-in) .ch-slot:not(.ch-slot--me) b{ background: transparent; border:1.5px dashed var(--text-faint); }
  .rh-anim .rh-scene:not(.is-in) .ch-slot b::after{ transform: scale(0); } .rh-anim .ch-slot b::after{ transition: transform .4s var(--rh-ease) calc(var(--i,0) * 450ms + 250ms); }
  .rh-anim .ch-slot{ transition: border-color .5s calc(var(--i,0) * 450ms), background-color .5s calc(var(--i,0) * 450ms), color .5s calc(var(--i,0) * 450ms); } .rh-anim .ch-slot b{ transition: background-color .4s calc(var(--i,0) * 450ms), border-color .4s calc(var(--i,0) * 450ms); }
  .rh-anim .ch-slot--guest{ border-style:dashed; }
  .rh-anim .rh-scene:not(.is-in) .ch-seg__pill{ transform: translateX(100%); } .rh-anim .ch-seg__pill{ transition: transform .7s var(--rh-ease) .9s; }
  .rh-anim .ch-wheel__reel{ transition: transform 1.1s var(--rh-ease) .3s; } .rh-anim .rh-scene:not(.is-in) .ch-wheel__reel{ transform: translateY(0); }
  .rh-anim .ch-wheel--b .ch-wheel__reel{ transition-delay: .6s; }
  .rh-anim .ch-wheel__reel i{ transition: color .4s, font-size .4s; } .rh-anim .rh-scene:not(.is-in) .ch-wheel__reel i.is-target{ color: var(--text-faint); font-size: 22px; font-weight:700; }
  .rh-anim .rh-scene:not(.is-in) .ch-confirm{ background: rgba(255,255,255,.08); color: var(--text-faint); transform: scale(.97); }
  .rh-anim .ch-confirm{ transition: background-color .5s 2.4s, color .5s 2.4s, transform .6s var(--rh-ease) 2.4s; }
}

.help-faq__anim{ margin-top: 12px; padding-top: 0; text-align:left; }
.help-faq__anim .profile-help-link{ padding-left: 0; }

#ranking-help-btn, #groups-help-btn, #groups-lobby-help-btn{ color: var(--accent-cyan); }

#groups-view-tabs{ display:flex; }
#groups-view-tabs .history-tab{ flex:none; min-width:auto; padding: 9px 14px 10px; font-size: 13px; }
.groups-week-caption{ margin: 10px 2px 0; font-size: 12px; line-height: 1.45; color: var(--paper-dim); }
.groups-week-caption strong{ color: var(--paper); font-weight: 700; }

.groups-invite-shortcut{ margin-top: 16px; width: 100%; min-height: 44px; }
.groups-panel.is-below-three .groups-invite-shortcut,
.groups-panel.is-ready-state .groups-invite-shortcut{ display:none; }
.groups-state-cta{ margin-top: 14px; width: 100%; min-height: 48px; }
.groups-state-title{ margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--brand-lime); }
.groups-state-text{ margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--paper-dim); }
.groups-panel.is-ready-state .groups-intel-card,
.groups-panel.is-ready-state .group-table,
.groups-panel.is-ready-state .groups-table-empty,
.groups-panel.is-ready-state .groups-race-title{ display:none !important; }

.groups-invite-panel{ align-items: stretch; }
.gi-hero{ display:flex; flex-direction:column; align-items:center; text-align:center; gap: 8px; padding: 8px 0 4px; }
.gi-hero__avatar{
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display:flex; align-items:center; justify-content:center;
  background: var(--ink-softer); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--brand-lime);
}
.gi-hero__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.gi-hero__name{ margin: 4px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--paper); overflow-wrap:anywhere; }
.gi-hero__meta, .gl-meta{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap: 8px 10px; font-size: 13px; color: var(--paper-dim); font-weight: 600; }
.gi-badge, .gl-badge{
  display:inline-flex; align-items:center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(25,159,255,0.12); border: 1px solid rgba(25,159,255,0.45); color: var(--accent-cyan);
}
.gi-badge.is-open, .gl-badge.is-open{ background: rgba(149,255,25,0.10); border-color: rgba(149,255,25,0.45); color: var(--brand-lime); }
.gi-lead{ margin: 14px 4px 18px; text-align:center; font-size: 13.5px; line-height: 1.55; color: var(--paper-dim); }
.gi-btn{ width: 100%; min-height: 50px; margin-top: 10px; }
.gi-admin{ align-self:center; margin-top: 14px; font-size: 12.5px; padding: 8px 12px; min-height: 40px; }

.gs-policy{ display:flex; flex-direction:column; gap: 8px; margin-top: 8px; }
.gs-policy__opt{
  text-align:left; display:flex; flex-direction:column; gap: 3px; padding: 12px 14px; min-height: 52px; cursor:pointer;
  background: var(--ink-soft); border: 1.5px solid var(--line); border-radius: 12px; color: var(--paper);
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}
.gs-policy__opt strong{ font-size: 14px; font-weight: 800; }
.gs-policy__opt span{ font-size: 12px; line-height: 1.4; color: var(--paper-dim); font-weight: 500; }
.gs-policy__opt.is-selected, .gs-policy__opt[aria-checked="true"]{ border-color: rgba(149,255,25,0.55); background: rgba(149,255,25,0.07); }
.gs-policy__opt.is-selected strong, .gs-policy__opt[aria-checked="true"] strong{ color: var(--brand-lime); }
.gs-policy__opt:disabled{ opacity: .5; cursor: not-allowed; }
.gs-note{ margin: 10px 2px 0; }
.gs-reset-btn{ width: 100%; margin-top: 14px; min-height: 46px; }
.gs-count{
  display:inline-flex; align-items:center; justify-content:center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px;
  background: var(--brand-lime); color: var(--bg-deep); font-size: 11px; font-weight: 800; vertical-align: middle;
}
.gs-count:empty{ display:none; }
.group-settings-requests{ display:flex; flex-direction:column; margin-top: 6px; }
.gs-request{ display:flex; align-items:center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.gs-request:first-child{ border-top:none; }
.gs-request__info{ flex:1; min-width:0; display:flex; flex-direction:column; }
.gs-request__name{ font-size: 14px; font-weight: 700; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gs-request__tag{ font-size: 11px; font-weight: 700; color: var(--accent-cyan); }
.gs-request__actions{ display:flex; flex-direction:column; gap: 6px; flex:none; }
.gs-request__btn{ min-height: 36px; padding: 6px 14px; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .03em; cursor:pointer; border: 1px solid var(--line-strong); background: var(--ink-soft); color: var(--paper); }
.gs-request__btn--accept{ background: rgba(149,255,25,0.12); border-color: rgba(149,255,25,0.5); color: var(--brand-lime); }
.gs-request__btn:disabled{ opacity: .45; cursor: not-allowed; }
.gs-empty{ margin: 8px 2px 0; font-size: 13px; color: var(--paper-dim); }
#groups-settings-btn{ position: relative; }
#groups-settings-btn.has-pending::after{
  content:""; position:absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-lime); box-shadow: 0 0 0 2px var(--bg);
}
#groups-help-btn.is-hint{ animation: groupsHelpHint 1.1s ease-in-out 3; border-radius: 50%; }
@keyframes groupsHelpHint{ 0%,100%{ box-shadow: 0 0 0 0 rgba(25,159,255,0); } 50%{ box-shadow: 0 0 0 7px rgba(25,159,255,0.35); } }
@media (prefers-reduced-motion: reduce){ #groups-help-btn.is-hint{ animation: none; box-shadow: 0 0 0 4px rgba(25,159,255,0.45); } }

.group-qr-sheet .gq-body{ display:flex; flex-direction:column; align-items:center; gap: 12px; padding: 4px 4px calc(18px + var(--safe-bottom)); }
.gq-name{ margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--paper); text-align:center; overflow-wrap:anywhere; }
.gq-canvas{ display:flex; justify-content:center; width:100%; }
.gq-piece{ display:block; width:auto; max-width:100%; max-height:min(62vh, 600px); aspect-ratio: 1080 / 1920; border-radius: 18px; box-shadow: 0 10px 32px rgba(0,0,0,0.45); }
.gq-hint{ margin: 0; font-size: 13px; color: var(--paper-dim); text-align:center; }
.gq-actions{ display:flex; gap: 10px; width:100%; }
.gq-actions .btn-secondary{ flex:1; min-height: 46px; }

.gl-scroll{ align-items:center; justify-content:flex-start; gap: 16px; text-align:center; }
.gl-logo{ margin-top: auto; }
.gl-actions{ margin-bottom: auto; }
.gl-logo{ width: 150px; height: auto; margin-bottom: 4px; }
.gl-card{ width:100%; max-width: 420px; padding: 24px 20px; background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--radius-card); display:flex; flex-direction:column; align-items:center; gap: 10px; }
.gl-avatar{
  width: 96px; height: 96px; border-radius: 50%; overflow:hidden; display:flex; align-items:center; justify-content:center;
  background: var(--ink-softer); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--brand-lime);
}
.gl-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.gl-kicker{ margin: 4px 0 0; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--brand-lime); }
.gl-name{ margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.15; font-weight: 800; color: var(--paper); overflow-wrap:anywhere; }
.gl-text{ margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--paper-dim); }
.gl-actions{ display:flex; flex-direction:column; align-items:center; gap: 10px; width:100%; max-width: 420px; }
.gl-btn{ width:100%; min-height: 52px; }
.gl-link{ min-height: 44px; padding: 10px 14px; }
@media (max-height: 640px){ .gl-logo{ width: 120px; } .gl-avatar{ width: 72px; height: 72px; font-size: 24px; } }

.gi-share{
  display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:54px; margin-top:6px; padding:0 18px; cursor:pointer;
  border:0; border-radius:14px; background: var(--brand-lime); color: var(--bg-deep); font-family: var(--font-display); font-size:16px; font-weight:800; letter-spacing:.01em;
  box-shadow: 0 6px 22px rgba(149,255,25,.22);
}
.gi-share:active{ transform: scale(.985); }
.gi-row{ display:flex; gap:10px; margin-top:10px; }
.gi-sec{
  flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:0 10px; cursor:pointer;
  background: var(--surface-2); border:1px solid var(--line-strong); border-radius:12px; color: var(--paper); font-size:14px; font-weight:700;
}
.gi-sec:active{ transform: scale(.985); }
.gi-ico{ flex:none; }
.gi-sec span, .gi-share span{ white-space:nowrap; }

.gs-switch-row{ display:flex; align-items:center; gap:14px; padding:12px 0 2px; }
.gs-switch-row__text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.gs-switch-row__text strong{ font-size:15px; font-weight:800; color: var(--paper); }
.gs-switch-row__text span{ font-size:12.5px; line-height:1.4; color: var(--paper-dim); }
.gs-switch{
  position:relative; flex:none; width:54px; height:32px; border-radius:999px; border:1px solid var(--line-strong); background: var(--surface-3); cursor:pointer; padding:0;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.gs-switch__knob{ position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background: var(--paper-dim); transition: transform var(--motion-fast) ease, background var(--motion-fast) ease; }
.gs-switch[aria-checked="true"]{ background: rgba(149,255,25,.18); border-color: rgba(149,255,25,.6); }
.gs-switch[aria-checked="true"] .gs-switch__knob{ transform: translateX(22px); background: var(--brand-lime); }
.gs-switch:disabled{ opacity:.55; cursor:wait; }
.gs-switch::after{ content:""; position:absolute; inset:-8px -4px; } /* área táctil ≥ 44 px */
.gs-link-row{ display:flex; align-items:center; gap:14px; padding:8px 0 0; }
.gs-link-row__text{ flex:1; font-size:12.5px; line-height:1.4; color: var(--paper-dim); }
.gs-reset-link{ flex:none; min-height:44px; padding:0 4px; background:none; border:0; color: var(--paper-dim); font-size:13px; font-weight:700; text-decoration:underline; cursor:pointer; }

.gs-add-btn{
  display:flex; align-items:center; gap:8px; min-height:44px; margin-top:10px; padding:0 12px; cursor:pointer;
  background:none; border:1px dashed var(--line-strong); border-radius:12px; color: var(--paper-dim); font-size:13.5px; font-weight:700;
}
.gs-add-btn:active{ background: var(--surface-2); }

.gs-danger-zone{ margin-top:28px; padding-top:6px; border-top:1px solid var(--line); text-align:left; }
.gs-danger-zone:empty, .gs-danger-zone[hidden]{ display:none; }
.gs-danger-link{ min-height:44px; padding:0; background:none; border:0; color: var(--danger); font-size:14px; font-weight:700; cursor:pointer; text-align:left; }
.gs-danger-link[hidden]{ display:none; }

.gs-request__actions{ flex-direction:row; gap:14px; align-items:center; }
.gs-request__sq{
  display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border-radius:10px; cursor:pointer; border:1.5px solid; background: transparent;
}
.gs-request__sq--accept{ color: var(--brand-lime); border-color: rgba(149,255,25,.55); background: rgba(149,255,25,.10); }
.gs-request__sq--reject{ color: var(--danger); border-color: rgba(255,91,97,.5); background: rgba(255,91,97,.08); }
.gs-request__sq:disabled{ opacity:.45; cursor:not-allowed; }

.groups-leave-row{ margin: 28px 0 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.groups-leave-link{ min-height:44px; padding:0; background:none; border:0; color: var(--danger); font-size:14px; font-weight:700; cursor:pointer; }
#view-groups .analysis-scroll{ padding-bottom: calc(96px + var(--safe-bottom, 0px)); }

.gl-requests{ margin: 6px 0 14px; padding: 12px 14px; background: var(--surface-1); border:1px solid var(--line-strong); border-radius: var(--radius-card); }
.gl-requests__title{ margin:0 0 6px; font-size:11.5px; font-weight:800; letter-spacing:.08em; color: var(--accent-cyan); }
.gl-req{ display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.gl-req:first-of-type{ border-top:0; }
.gl-req__avatar{ flex:none; width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; background: var(--surface-3); color: var(--brand-lime); font-weight:800; font-size:13px; }
.gl-req__info{ flex:1; min-width:0; display:flex; flex-direction:column; }
.gl-req__name{ font-size:14px; font-weight:700; color: var(--paper); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gl-req__state{ font-size:12px; color: var(--paper-dim); }
.gl-req__cancel{ flex:none; min-height:44px; padding:0 4px; background:none; border:0; color: var(--paper-dim); font-size:12.5px; font-weight:700; text-decoration:underline; cursor:pointer; }
.lobby-card__pending{ margin-left:auto; align-self:flex-start; padding:3px 9px; border-radius:999px; font-size:11px; font-weight:800; color: var(--bg-deep); background: var(--brand-lime); white-space:nowrap; }

.gl-note{ max-width:420px; margin:0; font-size:12.5px; line-height:1.5; color: var(--paper-dim); text-align:center; }
.gl-view-with-nav .gl-scroll, #view-group-invite .access-scroll{ padding-bottom: calc(96px + var(--safe-bottom, 0px)); }

.group-created--v2{ position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; text-align:center; padding-top:6px; }
.group-created__court{ position:absolute; top:0; left:0; width:100%; height:120px; color: var(--accent-cyan); opacity:.5; pointer-events:none; }
.group-created__ball{ fill: var(--brand-lime); }
.group-created--v2 > *:not(.group-created__court){ position:relative; }
.group-created__avatar{ margin-top:26px; width:76px; height:76px; border-radius:50%; display:flex; align-items:center; justify-content:center; overflow:hidden; background: var(--surface-3); border:2px solid rgba(149,255,25,.55); color: var(--brand-lime); font-family: var(--font-display); font-size:26px; font-weight:800; box-shadow: 0 0 0 6px rgba(149,255,25,.08), 0 10px 30px rgba(0,0,0,.4); }
.group-created--v2 .group-created__title{ margin-top:14px; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color: var(--brand-lime); }
.group-created--v2 .group-created__name{ margin:4px 0 0; font-family: var(--font-display); font-size:26px; line-height:1.15; font-weight:800; color: var(--paper); overflow-wrap:anywhere; }
.group-created--v2 .group-created__members{ margin:8px 0 0; padding:4px 12px; border-radius:999px; background: rgba(25,159,255,.12); border:1px solid rgba(25,159,255,.4); color: var(--accent-cyan); font-size:12px; font-weight:800; }
.group-created--v2 .btn-start{ width:100%; margin-top:16px; }
.group-created__invite{ min-height:44px; margin-top:4px; }

.gx-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; font-family: var(--font-body); font-weight:600; text-transform:none; letter-spacing:0; white-space:nowrap; }
.gx-btn .gx-ico{ flex:none; }
.groups-invite-shortcut.gx-btn, .groups-state-cta.gx-btn{ width:100%; }
.groups-state-cta.gx-btn{ font-size:15px; }
.groups-invite-shortcut.gx-btn{ font-size:14.5px; }

.groups-leave-row{ margin: 36px 0 8px; padding-top: 10px; border-top: 1px solid var(--line); text-align:center; }
.groups-leave-link{ min-height:44px; padding:0 16px; font-family: var(--font-body); font-weight:600; font-size:14px; color: var(--danger); }

.gi-hero{ flex-direction:row; align-items:center; text-align:left; gap:14px; padding:4px 0 0; }
.gi-hero__avatar{ flex:none; }
.gi-hero__text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.gi-hero__name{ margin:0; font-size:19px; font-weight:700; line-height:1.2; }
.gi-hero__meta{ justify-content:flex-start; }
.gi-lead{ margin: 14px 0 18px; text-align:left; }
.gi-share{ font-family: var(--font-body); font-weight:600; }
.gi-sec{ font-family: var(--font-body); font-weight:600; }
.gq-actions .btn-secondary{ padding-left:8px; padding-right:8px; font-size:14px; }

.gs-head{ display:flex; align-items:center; gap:16px; margin: 2px 0 6px; }
.gs-head .group-photo-edit{ flex:none; margin:0; }
.gs-head .group-photo-edit__avatar{ width:68px; height:68px; font-size:22px; }
.gs-head .avatar-edit-badge{ transform: scale(.82); transform-origin: bottom right; }
.gs-head .group-name-edit{ flex:1; min-width:0; margin:0; display:flex; flex-direction:column; align-items:flex-start; }
.gs-head .group-name-edit__row{ width:100%; margin-top:2px; min-height:44px; cursor:text; }
.gs-head .group-name-edit__value{ font-size:18px; font-weight:700; }
.gs-head .group-name-edit__pencil{ pointer-events:none; width:28px; height:28px; min-width:0; padding:0; border:0; background:none; opacity:.55; }
.gs-head .group-name-edit__pencil .pencil-icon{ width:16px; height:16px; }
.gs-head .group-photo-edit__remove{ min-height:32px; padding:0; font-weight:600; }

.gs-switch-row{ padding:8px 0 2px; }
.gs-switch-row__text strong{ font-weight:600; font-size:15px; }
.gs-link-row{ align-items:center; padding:10px 0 0; border-top:1px solid var(--line); margin-top:12px; }
.gs-link-row__text{ display:flex; flex-direction:column; gap:3px; }
.gs-link-row__text strong{ font-size:15px; font-weight:600; color: var(--paper); }
.gs-link-row__text span{ font-size:12.5px; line-height:1.4; color: var(--paper-dim); }
.gs-reset-link{ color: var(--danger); opacity:.85; font-family: var(--font-body); font-weight:600; font-size:13px; text-decoration:none; padding:0 8px; }
.gs-danger-link{ font-family: var(--font-body); font-weight:600; }

.group-settings-member__actions{ gap:0; }
.group-settings-member{ padding:8px 0; }
.group-settings-member__actions .link-btn{ min-height:36px; padding:0 4px; display:inline-flex; align-items:center; font-size:12px; font-weight:600; }
.gs-add-btn{ font-family: var(--font-body); font-weight:600; border:1px dashed rgba(149,255,25,.6); color: var(--paper); }
.gs-add-btn svg{ color: var(--brand-lime); }

#create-group-sheet.is-add-members{ height: min(85dvh, 720px); max-height: calc(100dvh - 24px - var(--safe-top, 0px)); padding-bottom: calc(14px + var(--safe-bottom, 0px)); }
#create-group-sheet.is-add-members .bottom-sheet__header{ margin-bottom:12px; }
#create-group-sheet.is-add-members .player-search-field{ margin-top:0; }
#create-group-sheet.is-add-members .field-hint{ margin-top:8px; }
#create-group-submit-btn.gx-btn--add{ width:100%; flex:none; }
.group-settings-member__actions .link-btn{ position:relative; }
.group-settings-member__actions .link-btn::after{ content:""; position:absolute; inset:-4px -8px; } /* área táctil efectiva ≥ 44 px */

.gs-members-title{ margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.gs-link-row{ margin-top:8px; }
.gs-switch-row{ padding:4px 0 0; }
.gs-head{ margin:0 0 2px; }
.group-settings-members{ margin-top:0; }
.groups-leave-row{ margin-top:14px; margin-bottom:8px; padding-top:12px; border-top:1px solid var(--line); text-align:center; }
.groups-leave-link{ min-height:0; padding:6px 12px; font-size:13px; }

.gl-card{ align-items:stretch; gap:12px; text-align:left; }
.gl-card .gl-kicker{ margin:0; font-family: var(--font-body); font-size:16px; font-weight:700; letter-spacing:0; color: var(--brand-lime); text-align:left; }
.gl-hero{ display:flex; align-items:center; gap:14px; }
.gl-hero .gl-avatar{ flex:none; width:72px; height:72px; font-size:24px; }
.gl-hero__text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.gl-hero__text .gl-name{ margin:0; font-family: var(--font-display); font-size:20px; line-height:1.2; font-weight:700; color: var(--paper); overflow-wrap:anywhere; }
.gl-meta{ justify-content:flex-start; }
.gl-card .gl-text{ margin:0; text-align:left; }

.gs-head{ margin-bottom:16px; }
#group-settings-access-block .gs-switch-row{ padding-top:0; }
.invitation-card.has-group .invitation-card__icon{ display:none; }
.invitation-card.has-group .invitation-card__head{ margin-bottom:10px; }
.access-invitation-group{ margin:0 0 10px; }
.access-invitation-group .gl-avatar{ width:56px; height:56px; font-size:19px; }
.access-invitation-group .gl-name{ font-size:17px; margin:0; }
.signup-verify-status{ text-align:center; }

.btn-start, .btn-secondary, .btn-mini, .btn-ghost, .btn-ghost__label, .b6-identity-cta, .btn-google, .btn-method, .btn-continue-neutral{
  font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0;
}
.btn-start, .btn-secondary{ font-size: 15px; }
.btn-mini{ font-size: 13px; padding: 9px 16px; }
.btn-start .gx-ico, .btn-secondary .gx-ico{ flex: none; }
#settings-logout-btn, #logout-confirm-btn, #logout-all-confirm-btn, #logout-warning-confirm-btn{ color: var(--paper); }

.analysis-header__title{ font-weight: 700; font-size: 16px; letter-spacing: 0; text-transform: none; }
.bottom-sheet__title{ font-size: 16px; letter-spacing: 0; text-transform: none; }
.overlay__title{ font-size: 19px; letter-spacing: 0; text-transform: none; }

.link-btn{ font-family: var(--font-body); font-weight: 600; }
.notifications-mark-all{ color: var(--accent-cyan); text-decoration: none; font-size: 12.5px; min-height: 44px; padding: 0 4px; display: inline-flex; align-items: center; }
.court-meta-line__action{ color: var(--accent-cyan); text-decoration: none; font-weight: 600; }

.icon-btn, .bottom-sheet__close, .bottom-sheet__back, .profile-help-link{ position: relative; }
.icon-btn::after, .bottom-sheet__close::after, .bottom-sheet__back::after{ content: ""; position: absolute; inset: -8px -6px; }
.bottom-sheet__close::after{ inset: -8px; }
.profile-help-link{ min-height: 44px; }
#manual-load-status{ text-transform: none; letter-spacing: 0; font-size: 16px; }

.setup-section__title, .profile-group__title, .settings-group__title, .edit-field__label, .notif-group__title,
.menu-sheet__title, .settings-kv__label, .point-track-label, .pending-section__title, .mp-team__label{ letter-spacing: 0.03em; }

#confirm-overlay.overlay--stacked-actions .overlay__actions > button{ font-size: 15px; }

.manual-meta-sheet-done{ font-family: var(--font-body); font-weight: 600; letter-spacing: 0; font-size: 15px; }

.analysis-scroll > #b6-report-error-block, .analysis-scroll > #b6-annul-block{ gap: 0; margin-top: 0; align-items: center; }
.analysis-scroll > #b6-report-error-block:not([hidden]){ margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.analysis-scroll > #b6-report-error-block[hidden] + #b6-annul-block:not([hidden]){ margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.analysis-scroll > #b6-report-error-block .b6-correction-choice--report,
.analysis-scroll > #b6-annul-block .b6-correction-choice--report{
  width: auto !important; min-height: 44px; padding: 0 14px; background: none; border: none; opacity: 1; box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0;
}
.analysis-scroll > #b6-report-error-block .b6-correction-choice--report{ color: var(--accent-cyan); }
.analysis-scroll > #b6-annul-block .b6-correction-choice--report{ color: var(--danger); }
.analysis-scroll > #b6-report-error-block .b6-correction-choice--report::before,
.analysis-scroll > #b6-annul-block .b6-correction-choice--report::before{
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--b6-ico) center / contain no-repeat; mask: var(--b6-ico) center / contain no-repeat;
}
.analysis-scroll > #b6-report-error-block .b6-correction-choice--report{ --b6-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4'/%3E%3Cpath d='M5 4h11l-2 4 2 4H5'/%3E%3C/svg%3E"); }
.analysis-scroll > #b6-annul-block .b6-correction-choice--report{ --b6-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M6 7l1 13h10l1-13'/%3E%3Cpath d='M9 7V4h6v3'/%3E%3C/svg%3E"); }
.analysis-scroll > #b6-report-error-block .b6-correction-choice--report:focus-visible,
.analysis-scroll > #b6-annul-block .b6-correction-choice--report:focus-visible{ outline: 2px solid currentColor; outline-offset: 2px; border-radius: 10px; }

.wn-card{
  width: 100%; max-width: 380px; padding: 26px 20px 20px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(130% 70% at 50% -12%, rgba(149,255,25,.10), transparent 60%), var(--surface-1);
  box-shadow: 0 30px 70px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center;
  max-height: calc(100dvh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.wn-badge{
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-lime);
  border: 1.5px solid rgba(149,255,25,.55); background: rgba(149,255,25,.08); box-shadow: 0 0 26px rgba(149,255,25,.22);
}
.wn-ico{ width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wn-title{ margin: 16px 0 6px; font-family: var(--font-display); font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; color: var(--text); text-align: center; text-wrap: balance; }
.wn-sub{ margin: 0 0 18px; font-size: 13.5px; line-height: 1.45; color: var(--text-dim); text-align: center; }
.wn-list{ list-style: none; margin: 0 0 20px; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.wn-item{ display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--line); }
.wn-item__ic{ width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; border: 1px solid; }
.wn-item__ic .wn-ico{ stroke-width: 1.8; }
.wn-item__ic--lime{ color: var(--brand-lime); background: rgba(149,255,25,.09); border-color: rgba(149,255,25,.35); }
.wn-item__ic--blue{ color: var(--accent-cyan); background: rgba(25,159,255,.10); border-color: rgba(25,159,255,.4); }
.wn-item__ic--white{ color: var(--text); background: rgba(248,250,252,.07); border-color: var(--line-strong); }
.wn-item__body{ min-width: 0; }
.wn-item__title{ display: block; font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.wn-item__text{ display: block; font-size: 12.5px; line-height: 1.4; color: var(--text-dim); }
#whats-new-continue{ flex: none; margin-top: 0; }
#whats-new-continue:focus-visible{ outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
@media (max-height: 640px){ .wn-card{ padding: 18px 16px 16px; } .wn-sub{ margin-bottom: 12px; } .wn-badge{ width: 44px; height: 44px; } .wn-title{ margin-top: 12px; font-size: 20px; } .wn-item{ padding: 9px 10px; } }
@media (prefers-reduced-motion: no-preference){
  .wn-overlay.is-in{ animation: wn-fade .28s ease both; }
  .wn-overlay.is-in .wn-card{ animation: wn-card .5s cubic-bezier(.22,.8,.24,1) both; }
  .wn-overlay.is-in .wn-item{ animation: wn-item .55s cubic-bezier(.22,.8,.24,1) both; animation-delay: calc(.18s + var(--i, 0) * 70ms); }
  .wn-overlay.is-in .wn-badge .wn-ico path{ stroke-dasharray: 24; animation: wn-check .6s ease .25s both; }
  .wn-overlay.is-out{ animation: wn-fade-out .22s ease both; }
}
@keyframes wn-fade{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes wn-fade-out{ from{ opacity: 1; } to{ opacity: 0; } }
@keyframes wn-card{ from{ opacity: 0; transform: translateY(14px) scale(.98); } to{ opacity: 1; transform: none; } }
@keyframes wn-item{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: none; } }
@keyframes wn-check{ from{ stroke-dashoffset: 24; } to{ stroke-dashoffset: 0; } }

#view-push{ height:100vh; height:100dvh; min-height:0; max-height:100dvh; overflow:hidden; }
#view-push .access-scroll{
  flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  padding: 16px 18px calc(36px + var(--safe-bottom));
}
.pn-status{
  display:flex; flex-direction:column; gap: 10px; margin: 4px 0 18px; padding: 16px; border-radius: var(--radius-card);
  background: var(--ink-soft); border: 1px solid var(--line);
}
.pn-status__row{ display:flex; align-items:center; gap: 12px; }
.pn-status__dot{ flex:none; width: 10px; height: 10px; border-radius: 50%; background: var(--paper-faint); }
.pn-status.is-active .pn-status__dot{ background: var(--brand-lime); box-shadow: 0 0 0 4px rgba(149,255,25,.16); }
.pn-status.is-pending .pn-status__dot{ background: var(--accent-cyan); }
.pn-status.is-blocked .pn-status__dot{ background: var(--danger); }
.pn-status__title{ font-size: 15px; font-weight: 700; color: var(--paper); line-height: 1.25; }
.pn-status__text{ margin: 0; font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--paper-dim); }
.pn-status__actions{ display:flex; flex-direction:column; gap: 8px; margin-top: 2px; }
.pn-status__actions .btn-start, .pn-status__actions .btn-secondary{ width: 100%; }
.pn-group-off .settings-row{ opacity: .6; }
.pn-time-row{ display:flex; }
.pn-quiet-times{ display:flex; gap: 12px; padding: 4px 16px 14px; border-top: 1px solid var(--line); }
.pn-time{ flex:1 1 0; display:flex; flex-direction:column; gap: 6px; padding-top: 12px; }
.pn-time__k{ font-size: 12px; font-weight: 600; color: var(--paper-dim); }
.pn-time__sel{ display:flex; align-items:center; gap: 4px; }
.pn-time__sel i{ font-style: normal; color: var(--paper-dim); font-weight: 700; }
.pn-time select{
  appearance:none; -webkit-appearance:none; min-height: 44px; min-width: 56px; padding: 0 10px; border-radius: 12px; text-align:center;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); color: var(--paper); font: inherit; font-size: 16px; font-weight: 600;
}
.pn-time select:focus-visible{ outline: 2px solid var(--accent-cyan); outline-offset: 2px; }
.pn-tz-note{ margin-top: 8px; }
.pn-diag{ margin: 0 0 12px; max-height: 38vh; overflow:auto; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); color: var(--paper-dim); font: 10.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; text-align:left; }
.pn-saved{ min-height: 18px; margin: 10px 4px 0; font-size: 12px; font-weight: 600; color: var(--brand-lime); opacity: 0; transition: opacity .2s ease; }
.pn-saved.is-on{ opacity: 1; }
.pn-saved.is-error{ color: var(--danger); }

.in-app-banner{
  position: fixed; left: 0; right: 0; top: 0; z-index: 70; display:flex; justify-content:center;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 0; pointer-events: none;
  transform: translateY(-130%); opacity: 0; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .24s ease;
}
.in-app-banner.is-visible{ transform: translateY(0); opacity: 1; }
.in-app-banner.is-dragging{ transition: none; }
.in-app-banner__btn{
  pointer-events: auto; width: 100%; max-width: 460px; display:flex; align-items:center; gap: 12px; text-align:left; cursor:pointer;
  padding: 12px 14px; border-radius: 18px; color: var(--paper); font: inherit;
  background: rgba(14,24,38,.96); border: 1px solid rgba(149,255,25,.38); box-shadow: 0 10px 30px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); touch-action: pan-x;
}
.in-app-banner__icon{ flex:none; display:flex; align-items:center; justify-content:center; width: 36px; height: 36px; border-radius: 12px; background: rgba(149,255,25,.14); color: var(--brand-lime); }
.in-app-banner__text{ min-width:0; display:flex; flex-direction:column; gap: 2px; }
.in-app-banner__text b{ font-size: 14px; font-weight: 700; line-height: 1.25; overflow:hidden; text-overflow: ellipsis; display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.in-app-banner__text span{ font-size: 12.5px; font-weight: 500; color: var(--paper-dim); line-height: 1.35; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-app-banner__text span:empty{ display:none; }
@media (prefers-reduced-motion: reduce){ .in-app-banner{ transition: opacity .15s ease; transform: none; } }

.pn-invite{ text-align:center; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); }
.pn-invite__icon{ margin: 6px auto 12px; width: 60px; height: 60px; border-radius: 20px; display:flex; align-items:center; justify-content:center; background: rgba(149,255,25,.12); color: var(--brand-lime); }
.pn-invite__title{ margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--paper); }
.pn-invite__text{ margin: 0 auto 18px; max-width: 32ch; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--paper-dim); }
.pn-invite__actions{ display:flex; flex-direction:column; gap: 10px; }
.pn-invite__actions .btn-start, .pn-invite__actions .btn-secondary{ width: 100%; }

.pn-steps{ list-style:none; margin: 14px 0 0; padding: 0; display:flex; flex-direction:column; gap: 10px; counter-reset: pn; }
.pn-steps li{ display:flex; align-items:center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink-soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--paper); }
.pn-steps li b{ flex:none; width: 30px; height: 30px; border-radius: 10px; display:flex; align-items:center; justify-content:center; background: rgba(149,255,25,.12); color: var(--brand-lime); }
.pn-steps li b svg{ width: 18px; height: 18px; fill:none; stroke: currentColor; stroke-width: 1.9; stroke-linecap:round; stroke-linejoin:round; }
.pn-steps li em{ font-style: normal; color: var(--brand-lime); }
.pn-hero-ico{ display:flex; align-items:center; justify-content:center; margin: 8px auto 4px; width: 84px; height: 84px; border-radius: 26px; background: rgba(149,255,25,.1); color: var(--brand-lime); }
.pn-hero-ico svg{ width: 40px; height: 40px; fill:none; stroke: currentColor; stroke-width: 1.7; stroke-linecap:round; stroke-linejoin:round; }
.rh-anim .pn-steps li{ opacity: 0; transform: translateY(10px); }
.rh-anim .rh-scene.is-in .pn-steps li{ opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; transition-delay: calc(var(--i, 0) * .22s + .1s); }
.rh-anim .rh-scene.is-in .pn-hero-ico svg{ animation: pn-ring 2.4s ease-in-out .5s 2; transform-origin: 50% 12%; }
@keyframes pn-ring{ 0%,100%{ transform: rotate(0); } 15%{ transform: rotate(14deg); } 30%{ transform: rotate(-12deg); } 45%{ transform: rotate(8deg); } 60%{ transform: rotate(-5deg); } 75%{ transform: rotate(0); } }
@media (prefers-reduced-motion: reduce){ .rh-anim .pn-steps li{ opacity:1; transform:none; } .rh-anim .rh-scene.is-in .pn-hero-ico svg{ animation:none; } }


.brand-logo--onboarding{ height: 18px; width: auto; margin: 2px auto 20px; }
#view-signup:not([data-step-now="2"]) .brand-logo--onboarding{ height: 30px; margin: 4px auto 22px; } /* pasos previos (correo/código/contraseña): sin cambios */

#view-signup[data-step-now="2"] .access-heading{ font-size: 28px; line-height:1.15; margin: 4px 0 10px; text-wrap: balance; }
#view-signup[data-step-now="2"] .access-lead{ font-size: 15px; margin: 0 0 24px; }
#view-signup[data-step-now="2"] .field{ margin-bottom: 18px; }
























































.dsc-scrim{ --dsc-ease: cubic-bezier(.16,1,.3,1); }
.dsc-sheet{
  --dsc-h: min(85dvh, 760px);
  padding: 0; height: var(--dsc-h); display:flex; flex-direction:column; overflow:hidden; position:relative;
  background: var(--bg); border-color: var(--line-strong); touch-action: auto;
  transition: transform .66s var(--dsc-ease);
}
.dsc-top{ position:absolute; z-index:5; left:0; right:0; top:0; padding: 14px 14px 26px; display:flex; align-items:center; gap: 12px;
  background: linear-gradient(180deg, rgba(3,7,13,.78), rgba(3,7,13,0)); pointer-events:none; }
.dsc-progress{ flex:1; display:flex; gap:5px; }
.dsc-progress i{ flex:1; height:3px; border-radius:3px; background: rgba(248,250,252,.26); position:relative; overflow:hidden; }
.dsc-progress i::after{ content:""; position:absolute; inset:0; background: var(--brand-lime); transform: scaleX(0); transform-origin:left; transition: transform .45s var(--dsc-ease); }
.dsc-progress i.is-done::after{ transform: scaleX(1); }
.dsc-close{ pointer-events:auto; width:36px; height:36px; border-radius:50%; border:1px solid rgba(248,250,252,.22); background: rgba(3,7,13,.55); color: var(--text);
  display:flex; align-items:center; justify-content:center; cursor:pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .15s ease; }
.dsc-close:active{ transform: scale(.92); background: rgba(3,7,13,.85); }
.dsc-scroll{ position:relative; flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; touch-action: pan-y; scroll-snap-type: y mandatory; scrollbar-width:none; }
.dsc-scroll::-webkit-scrollbar{ display:none; }
.dsc-sec{ position:relative; height: var(--dsc-h); display:flex; flex-direction:column; overflow:hidden; scroll-snap-align:start; scroll-snap-stop:always; }

.dsc-sec{ --dsc-gap: 12px; }
.dsc-hero{ position:relative; flex: 1 1 0; min-height: 128px; overflow:hidden; }
.dsc-hero__img{ position:absolute; inset:0; background: var(--img) var(--pos, 50% 40%) / cover no-repeat, var(--lqip, none) var(--pos, 50% 40%) / cover no-repeat; background-color: var(--surface-2); transform: scale(1.03); }
.dsc-hero::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(180deg, rgba(3,7,13,.22) 0%, rgba(3,7,13,0) 14%, rgba(5,10,18,0) 50%, rgba(5,10,18,.62) 76%, rgba(5,10,18,.94) 93%, var(--bg) 100%); }
.dsc-hero__text{ position:absolute; z-index:2; left:18px; right:18px; bottom: 8px; }
.dsc-num{ margin:0; font-size:11px; font-weight:800; letter-spacing:.16em; color: var(--brand-lime); }
.dsc-title{ margin: 6px 0 0; font-size: clamp(31px, 9vw, 40px); line-height:1.02; font-weight:900; letter-spacing:-.028em; color: var(--text); text-wrap: balance; text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 2px 18px rgba(0,0,0,.55); }
.dsc-title em{ font-style:normal; color: var(--brand-lime); }
.dsc-body{ flex:none; padding: 4px 18px calc(16px + var(--safe-bottom)); display:flex; flex-direction:column; gap: var(--dsc-gap); }
.dsc-lead{ margin:0; font-size:15px; line-height:1.32; color: #C9D4E0; font-weight:500; }
.dsc-demo{ margin: 0; border-radius:18px; border:1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); padding: 11px; position:relative; overflow:hidden; }

.dsc-optout{ align-self:center; margin: -4px 0 -6px; min-height: 34px; padding: 0 12px; background:none; border:0; border-radius:8px; color: var(--text-dim); font-family: var(--font-display); font-size:12.5px; font-weight:500;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(154,167,181,.45); cursor:pointer; -webkit-tap-highlight-color: transparent; }
.dsc-optout:active{ color: var(--text); }
.dsc-optout:disabled{ text-decoration:none; cursor:default; opacity:.7; }
.dsc-optout:focus-visible{ outline:2px solid var(--accent-cyan); outline-offset:2px; }
.dsc-act{ flex:none; width:100%; min-height:44px; padding: 0 14px 0 16px; border-radius:12px; border:1px solid var(--line-strong); background: rgba(248,250,252,.04); color: var(--text);
  font-family: var(--font-display); font-weight:600; font-size:14px; letter-spacing:.005em; text-align:left; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:10px;
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .15s ease, border-color .15s ease; }
.dsc-act svg{ flex:none; color: var(--brand-lime); transition: transform .2s ease; }
.dsc-act:active{ transform: scale(.985); background: rgba(248,250,252,.12); border-color: rgba(149,255,25,.4); }
.dsc-act:active svg{ transform: translateX(3px); }
.dsc-act:disabled{ cursor:default; color: var(--text-dim); border-style:dashed; background: transparent; }
.dsc-act:disabled svg{ display:none; }
.dsc-act:disabled:active{ transform:none; border-color: var(--line-strong); background: transparent; }

.dsc-hist{ display:flex; flex-direction:column; gap:8px; }
.dsc-hist__new, .dsc-hist__loss{ height: 42px; border-radius:12px; display:flex; align-items:center; gap:10px; padding: 0 12px; background: rgba(255,255,255,.04); border:1px solid var(--line); }
.dsc-hist__new{ border-color: rgba(149,255,25,.5); background: rgba(149,255,25,.08); box-shadow: 0 0 0 0 rgba(149,255,25,.0); }
.dsc-hist__new b{ margin-left:auto; font-size:16px; font-weight:800; letter-spacing:.01em; }
.dsc-hist__loss{ border-color: rgba(255,100,112,.2); } .dsc-hist__loss b, .dsc-hist__new b{ margin-left:auto; font-size:15px; font-weight:800; }
.dsc-chip{ font-size:10px; font-weight:800; letter-spacing:.08em; padding: 4px 7px; border-radius:7px; }
.dsc-chip--win{ color:#1A1400; background: var(--brand-lime); } .dsc-chip--loss{ color:#FFD4D6; background: rgba(255,100,112,.17); }

.dsc-court{ display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap:8px; padding: 16px 12px; }
.dsc-court__team{ display:flex; flex-direction:column; gap:8px; }
.dsc-court__vs{ font-size:12px; font-weight:900; letter-spacing:.12em; color: var(--text-faint); }
.dsc-slot{ display:flex; flex-direction:column; align-items:center; gap:3px; text-align:center; }
.dsc-slot b{ width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:800; border:2px solid var(--line-strong); color: var(--text-dim); }
.dsc-slot span{ font-size:12.5px; font-weight:700; }
.dsc-slot em{ font-style:normal; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--accent-cyan); }
.dsc-slot--me b{ background: var(--brand-lime); border-color: var(--brand-lime); color:#1A1400; box-shadow: 0 0 0 4px rgba(149,255,25,.16); }
.dsc-slot--g b{ border-style:dashed; border-color: rgba(25,159,255,.7); color: var(--accent-cyan); background: rgba(25,159,255,.1); }

.dsc-flow__steps{ list-style:none; margin:0 0 9px; padding:0; display:grid; grid-template-columns: repeat(3, 1fr); gap:6px; position:relative; }
.dsc-flow__steps::before{ content:""; position:absolute; left:17%; right:17%; top:17px; height:2px; background: var(--brand-lime); transform-origin:left; opacity:.7; }
.dsc-flow__steps li{ position:relative; display:flex; flex-direction:column; align-items:center; gap:7px; text-align:center; font-size:11.5px; font-weight:700; line-height:1.2; color: var(--text); }
.dsc-flow__steps i{ width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background: var(--brand-lime); color:#1A1400; position:relative; z-index:1; }
.dsc-flow__card{ border-radius:14px; border:1px solid rgba(149,255,25,.55); background: rgba(149,255,25,.06); padding: 10px 12px; display:flex; flex-direction:column; gap:6px; }
.dsc-flow__top{ display:flex; align-items:center; justify-content:space-between; font-size:11px; color: var(--text-dim); }
.dsc-badge{ display:inline-grid; }
.dsc-badge em{ grid-area:1/1; font-style:normal; font-size:10px; font-weight:800; letter-spacing:.08em; padding:4px 8px; border-radius:7px; text-align:center; }
.dsc-badge__p{ background: rgba(255,201,61,.16); color: var(--gold); opacity:0; }
.dsc-badge__v{ background: var(--brand-lime); color:#1A1400; }
.dsc-flow__row{ display:flex; align-items:center; gap:10px; font-size:13px; font-weight:600; }
.dsc-flow__row span{ flex:1; } .dsc-flow__row b{ width:22px; text-align:center; font-size:17px; font-weight:800; }

.dsc-table__head{ display:flex; align-items:center; gap:0; margin-bottom: 12px; }
.dsc-av{ width:26px; height:26px; border-radius:50%; border:2px solid var(--surface-2); margin-left:-7px; background: var(--surface-active); }
.dsc-av:first-child{ margin-left:0; } .dsc-av:nth-child(1){ background:#2A7A3B; } .dsc-av:nth-child(2){ background:#1F6FB8; } .dsc-av:nth-child(3){ background:#8A6D1E; } .dsc-av:nth-child(4){ background:#5B4E9A; }
.dsc-table__head strong{ margin-left:10px; font-size:14px; } .dsc-table__head em{ margin-left:auto; font-style:normal; font-size:10px; font-weight:800; letter-spacing:.12em; color: var(--accent-cyan); }
.dsc-table__rows{ position:relative; height: calc(3 * 44px); }
.dsc-row{ position:absolute; left:0; right:0; top:0; height:40px; display:flex; align-items:center; gap:12px; padding:0 12px; border-radius:12px; border:1px solid var(--line); background: rgba(255,255,255,.04);
  transform: translateY(calc(var(--to) * 44px)); }
.dsc-row b{ font-size:15px; font-weight:700; flex:1; }
.dsc-row--me{ border-color: rgba(149,255,25,.6); background: rgba(149,255,25,.1); z-index:2; }
.dsc-row__pos{ width:22px; height:22px; border-radius:7px; background: rgba(255,255,255,.08); position:relative; font-size:12px; font-weight:800; }
.dsc-row__pos i{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-style:normal; }
.dsc-row__pos i::before{ content: attr(data-f); position:absolute; opacity:0; }
.dsc-row__pos i::after{ content: attr(data-t); }
.dsc-row--me .dsc-row__pos{ background: var(--brand-lime); color:#1A1400; }
.dsc-row__mv{ font-size:11px; font-weight:800; color: var(--brand-lime); }
.dsc-row__mv--dn{ color: var(--danger); } .dsc-row__mv--eq{ color: var(--text-faint); }

.dsc-discover{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; padding:12px; }
.dsc-dcard{ position:relative; text-align:left; font:inherit; color:inherit; cursor:pointer; -webkit-tap-highlight-color: transparent; border-radius:14px; border:1px solid var(--line); background: rgba(255,255,255,.04); padding: 9px 10px; display:flex; flex-direction:column; gap:6px; min-height: 76px; transition: transform .12s ease, background .15s ease, border-color .15s ease; }
.dsc-dcard:active{ transform: scale(.975); background: rgba(255,255,255,.1); border-color: rgba(25,159,255,.5); }
.dsc-dcard__k svg{ width:12px; height:12px; margin-left:auto; color: var(--text-dim); flex:none; }
.dsc-dcard--wide{ grid-column: 1 / -1; min-height:0; gap:3px; }
.dsc-dcard__k{ display:flex; align-items:center; font-size:10px; font-weight:800; letter-spacing:.12em; color: var(--accent-cyan); }
.dsc-dcard__t{ font-size:12px; line-height:1.3; color: var(--text-dim); margin-top:auto; }
.dsc-meter{ height:8px; border-radius:6px; background: rgba(183,211,235,.16); overflow:hidden; margin-top:6px; }
.dsc-meter i{ display:block; height:100%; width:62%; border-radius:6px; background: linear-gradient(90deg, var(--accent-cyan), var(--brand-lime)); transform-origin:left; }
.dsc-podium{ display:flex; align-items:flex-end; gap:6px; height:24px; }
.dsc-podium i{ flex:1; height: var(--h); border-radius:5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent-cyan), rgba(25,159,255,.25)); transform-origin:bottom; }
.dsc-podium i:nth-child(2){ background: linear-gradient(180deg, var(--brand-lime), rgba(149,255,25,.25)); }

.dsc-card{ position:relative; width:100%; min-height:68px; margin: 0 0 12px; padding: 10px 14px; border-radius:16px; border:1px solid var(--line-strong); overflow:hidden; cursor:pointer; text-align:left; color: var(--text);
  display:flex; align-items:center; gap:10px; font-family: var(--font-display); background: var(--surface-1); -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.dsc-card:active{ transform: scale(.985); }
.dsc-card__img{ position:absolute; top:0; right:0; bottom:0; width:58%; }
.dsc-card::before{ content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(90deg, var(--surface-1) 0%, var(--surface-1) 36%, rgba(9,19,31,.72) 62%, rgba(9,19,31,.25) 100%); }
.dsc-card__txt{ position:relative; z-index:2; flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.dsc-card__k{ font-size:10px; font-weight:800; letter-spacing:.14em; color: var(--brand-lime); }
.dsc-card__t{ font-size:15px; font-weight:800; letter-spacing:-.01em; line-height:1.15; }
.dsc-card__s{ font-size:11.5px; color: var(--text-dim); }
.dsc-card__go{ position:relative; z-index:2; flex:none; width:30px; height:30px; border-radius:50%; background: rgba(3,7,13,.55); border:1px solid rgba(248,250,252,.28); display:flex; align-items:center; justify-content:center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

@media (prefers-reduced-motion: no-preference){
  .dsc-anim .dsc-a{ opacity:0; }
  .dsc-anim .dsc-sec.is-in > .dsc-hero .dsc-a, .dsc-anim .dsc-sec.is-in > .dsc-body > .dsc-a{ animation: dsc-rise .7s var(--dsc-ease) var(--d, 0s) both; }
  .dsc-anim .dsc-sec.is-in .dsc-hero__img{ animation: dsc-kb 7.5s cubic-bezier(.2,.6,.2,1) both; }
  .dsc-anim .dsc-demo:not(.is-in) *{ animation-play-state: paused; }
  .dsc-anim .dsc-demo.is-in .dsc-a{ animation: dsc-pop .7s cubic-bezier(.34,1.56,.64,1) var(--d, 0s) both; }
  .dsc-anim .dsc-court.is-in .dsc-slot--g b{ animation: dsc-fill .9s ease var(--d-b, .6s) both; }
  .dsc-anim .dsc-slot--g:nth-child(2) b{ --d-b: .8s; }
  .dsc-anim .dsc-act{ opacity:0; }
  .dsc-anim .dsc-sec.is-in .dsc-act{ animation: dsc-rise .7s var(--dsc-ease) .6s both; }

  .dsc-anim .dsc-hist.is-in .dsc-hist__new{ animation: dsc-newrow 1.1s var(--dsc-ease) .3s both; }
  .dsc-anim .dsc-hist.is-in .dsc-hist__loss{ animation: dsc-newrow 1.1s var(--dsc-ease) 1.1s both; }
  .dsc-anim .dsc-hist__new, .dsc-anim .dsc-hist__loss{ opacity:0; }
  .dsc-anim .dsc-flow.is-in .dsc-flow__steps::before{ animation: dsc-line 1.9s ease .3s both; }
  .dsc-anim .dsc-flow.is-in .dsc-flow__steps li{ animation: dsc-step .5s ease calc(.25s + var(--k) * .9s) both; }
  .dsc-anim .dsc-flow.is-in .dsc-flow__steps i{ animation: dsc-stepdot .6s cubic-bezier(.34,1.56,.64,1) calc(.25s + var(--k) * .9s) both; }
  .dsc-anim .dsc-flow.is-in .dsc-flow__card{ animation: dsc-cardglow 1.4s ease 2.3s both; border-color: var(--line-strong); }
  .dsc-anim .dsc-flow.is-in .dsc-badge__p{ animation: dsc-badgeP 2.4s linear 0s both; }
  .dsc-anim .dsc-flow.is-in .dsc-badge__v{ animation: dsc-badgeV .5s cubic-bezier(.34,1.56,.64,1) 2.4s both; }
  .dsc-anim .dsc-flow:not(.is-in) .dsc-badge__p{ opacity:1; }
  .dsc-anim .dsc-flow:not(.is-in) .dsc-badge__v{ opacity:0; }
  .dsc-anim .dsc-table.is-in .dsc-row{ animation: dsc-swap 1s cubic-bezier(.65,0,.25,1) 1.2s both; }
  .dsc-anim .dsc-table.is-in .dsc-row--me{ animation-name: dsc-swap, dsc-meglow; animation-duration: 1s, 1.4s; animation-delay: 1.2s, 2.1s; animation-timing-function: cubic-bezier(.65,0,.25,1), ease; }
  .dsc-anim .dsc-table.is-in .dsc-row__pos i::before{ animation: dsc-numout .3s ease 1.55s both; }
  .dsc-anim .dsc-table.is-in .dsc-row__pos i::after{ animation: dsc-numin .3s ease 1.55s both; }
  .dsc-anim .dsc-table.is-in .dsc-row__mv{ animation: dsc-rise .5s ease 2.2s both; }
  .dsc-anim .dsc-table:not(.is-in) .dsc-row__mv{ opacity:0; }
  .dsc-anim .dsc-table:not(.is-in) .dsc-row{ transform: translateY(calc(var(--from) * 44px)); }
  .dsc-anim .dsc-discover.is-in .dsc-meter i{ animation: dsc-growx 1.3s var(--dsc-ease) .6s both; }
  .dsc-anim .dsc-discover.is-in .dsc-podium i{ animation: dsc-growy .9s var(--dsc-ease) calc(.9s + var(--n, 0) * .12s) both; }
  .dsc-anim .dsc-discover .dsc-podium i:nth-child(2){ --n:1; } .dsc-anim .dsc-discover .dsc-podium i:nth-child(3){ --n:2; }
  .dsc-card.is-fresh::after{ content:""; position:absolute; inset:0; z-index:3; pointer-events:none; background: linear-gradient(105deg, transparent 35%, rgba(248,250,252,.16) 50%, transparent 65%); transform: translateX(-120%); animation: dsc-sheen 1.5s ease .5s 1 both; }
}
@keyframes dsc-rise{ from{ opacity:0; transform: translateY(18px); } to{ opacity:1; transform:none; } }
@keyframes dsc-pop{ from{ opacity:0; transform: translateY(10px) scale(.7); } to{ opacity:1; transform:none; } }
@keyframes dsc-kb{ from{ transform: scale(1.13); } to{ transform: scale(1.03); } }
@keyframes dsc-nudge{ 0%,100%{ transform:none; } 50%{ transform: translateX(4px); } }
@keyframes dsc-push{ 0%,30%{ transform: translateY(-58px); } 100%{ transform:none; } }
@keyframes dsc-newrow{ 0%{ opacity:0; transform: translateY(-16px) scale(.96); } 55%{ opacity:1; box-shadow: 0 0 0 6px rgba(149,255,25,.18); } 100%{ opacity:1; transform:none; box-shadow: 0 0 0 0 rgba(149,255,25,0); } }
@keyframes dsc-fill{ from{ background: transparent; transform: scale(.92); } to{ background: rgba(25,159,255,.1); transform:none; } }
@keyframes dsc-line{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
@keyframes dsc-step{ from{ opacity:.45; } to{ opacity:1; } }
@keyframes dsc-stepdot{ from{ background: var(--surface-active); color: var(--text-faint); transform: scale(.82); } to{ background: var(--brand-lime); color:#1A1400; transform:none; } }
@keyframes dsc-cardglow{ 0%{ border-color: var(--line-strong); box-shadow:none; } 40%{ box-shadow: 0 0 0 6px rgba(149,255,25,.18); } 100%{ border-color: rgba(149,255,25,.55); box-shadow: 0 0 0 0 rgba(149,255,25,0); } }
@keyframes dsc-badgeP{ 0%,92%{ opacity:1; } 100%{ opacity:0; } }
@keyframes dsc-badgeV{ from{ opacity:0; transform: scale(.7); } to{ opacity:1; transform:none; } }
@keyframes dsc-swap{ from{ transform: translateY(calc(var(--from) * 44px)); } to{ transform: translateY(calc(var(--to) * 44px)); } }
@keyframes dsc-meglow{ 0%{ box-shadow:none; } 45%{ box-shadow: 0 0 0 6px rgba(149,255,25,.2); } 100%{ box-shadow: none; } }
@keyframes dsc-numout{ from{ opacity:1; } to{ opacity:0; } }
@keyframes dsc-numin{ from{ opacity:0; } to{ opacity:1; } }
@keyframes dsc-growx{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
@keyframes dsc-growy{ from{ transform: scaleY(0); } to{ transform: scaleY(1); } }
@keyframes dsc-sheen{ to{ transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce){ .dsc-sheet, .dsc-progress i::after{ transition: none; } .dsc-card, .dsc-act, .dsc-dcard, .dsc-close{ transition: none; } }
@media (min-width: 720px){ .dsc-sheet{ height: min(85dvh, 760px); max-width: 480px; border-radius: 20px; } }

.dsc-hero--1{ --lqip: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAAWABgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDlRbFHTfhlIBIVucH+tKkRxK6naExgHqeen1q0qRmQJIxQE8lep9qne5UeU8cAQBixB5BPT8sU3cSt1KMgldFLZxjr+NFbsGl/b7f/AETMSKSTvPRv7v0x0PvRRcLFDV7VbdYR/FlssO/cVPDY4i81mB/dqwGO/BNFFUJm1pKhopMk/Mwf9KKKKhlI/9k=); }
.dsc-hero--2{ --lqip: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAAWABgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDnhBIdqoCfb8asbHUEHg9elTxOl7PIkSbGfDs+CenTvWkLSGQgsdxxjBU8/rVqLZDaRjNbu3BYDtzxmiuistMt7zDXbEIJP3Sjg5H+elFL1H6HP6IxmuHjXClhn2wOtbFukkQ+ZgSc5x/Siit6avuYzdtiaCRn1AMQAq4fGT9P60UUVjJK5tF6H//Z); }
.dsc-hero--3{ --lqip: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAAWABgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDB+xHzQ/GG+Y5B/Go0iIJUgFzg46/rWlJZTQ2wnLAp90Df3zio0WZ5WhGd5O0r2XNO4kSaXfi0k/1SksOCy5xRStaTwITJs+UgcEUUyS1qSrLp8i2+5PLfIycg461QileQW8sLMGdtjBjww6jPvmiis30NI6I1oTNLZKPk3eYFJOeTnr+lFFFL2s1syJRVz//Z); }
.dsc-hero--4{ --lqip: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAAWABgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDmYxLKEiGRw3XpSQWjSXCxysI1LAFuuKuW8kFs4LAyYByO2TTwTLcsybQrPkH+77U+otLFCayCSuqSq4UnkUVsMEa3COpCKPlcHn0NFNJibSKF7AI9RCjiN8NgehrXgQSxSJ0AGf8A636UUUQ1auOelylGyedKrbtkbgbR3BooorOU5GkYRaP/2Q==); }
.dsc-hero--5{ --lqip: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAAWABgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDAR3Mp8tG9gecVaQXexiMBcDPOetTaVBMpabyBIoYKAx79cD8M0+4uYkkjBjb/AEkA4U/KDnB/p+VDbRKSZXttPlupCpm2jPOATRWhbTyWTzAPyByQQR+dFO4GhE3AA6A5AI6H1rMurRxe2Z3htsrHn3waKKuorWsTT1vcuyW6ZO5Qcjb17elFFFbWRndn/9k=); }
.dsc-card__img{ background: url('assets/descubri/d1-historia-m1.webp') 50% 28% / cover no-repeat, url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAAWABgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDlRbFHTfhlIBIVucH+tKkRxK6naExgHqeen1q0qRmQJIxQE8lep9qne5UeU8cAQBixB5BPT8sU3cSt1KMgldFLZxjr+NFbsGl/b7f/AETMSKSTvPRv7v0x0PvRRcLFDV7VbdYR/FlssO/cVPDY4i81mB/dqwGO/BNFFUJm1pKhopMk/Mwf9KKKKhlI/9k=) 50% 28% / cover no-repeat; background-color: var(--surface-2); }

.ih-chips, .ih-where{ display:flex; flex-wrap:wrap; gap:8px; }
.ih-chip{ padding: 8px 12px; border-radius:999px; border:1px solid var(--line-strong); background: rgba(25,159,255,.1); color: var(--text); font-size:13px; font-weight:700; }
.ih-dots{ display:flex; gap:10px; align-items:center; }
.ih-dots i{ width:14px; height:14px; border-radius:50%; background: var(--brand-lime); }
.ih-dots i:nth-child(n+4){ background: rgba(183,211,235,.22); }
@media (prefers-reduced-motion: no-preference){
  .rh-anim .rh-scene:not(.is-in) .ih-chip{ opacity:0; transform: translateY(10px) scale(.9); }
  .rh-anim .ih-chip{ transition: opacity .5s ease calc(var(--i,0) * 120ms + 120ms), transform .6s cubic-bezier(.34,1.56,.64,1) calc(var(--i,0) * 120ms + 120ms); }
  .rh-anim .rh-scene:not(.is-in) .ih-dots i{ transform: scale(0); }
  .rh-anim .ih-dots i{ transition: transform .5s cubic-bezier(.34,1.56,.64,1) calc(var(--i,0) * 140ms + 150ms); }
}

.h2h-entry{
  width:100%; display:flex; align-items:center; gap:12px; text-align:left; cursor:pointer;
  background: var(--surface-2); color: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius-card); padding: 14px 16px; margin-bottom: 12px;
  font-family: var(--font-display);
}
.h2h-entry[hidden]{ display:none; }
.h2h-entry:active{ transform: scale(0.98); }
.h2h-entry__icon{ flex:none; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; color: var(--brand-lime); background: rgba(149,255,25,0.10); }
.h2h-entry__text{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.h2h-entry__title{ font-weight:700; font-size:15px; }
.h2h-entry__sub{ font-size:12px; color: var(--paper-dim); }
.h2h-entry .pastilla__chevron{ flex:none; font-size:22px; color: var(--paper-dim); }

.h2h-arena{
  position:relative; overflow:hidden; display:grid; grid-template-columns: 1fr auto 1fr; align-items:start; column-gap:2px;
  margin: 0; padding: 22px 8px 18px; border-radius: var(--radius-hero); border:1px solid var(--line);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(149,255,25,0.20), transparent 60%),
    radial-gradient(90% 80% at 100% 0%, rgba(25,159,255,0.24), transparent 60%),
    linear-gradient(180deg, rgba(8,16,30,0.78), rgba(8,16,30,0.94)),
    url('assets/home-estados/pendiente-3.webp?v=04.122') center / cover no-repeat,
    var(--surface-1);
}
.h2h-arena::before{ content:""; position:absolute; left:50%; top:-10%; width:2px; height:120%; transform: translateX(-50%) rotate(18deg); background: linear-gradient(180deg, transparent, rgba(149,255,25,0.55) 45%, rgba(25,159,255,0.45) 70%, transparent); opacity:.55; pointer-events:none; }
.h2h-arena > *{ position:relative; z-index:1; }
.h2h-side{ min-width:0; display:flex; flex-direction:column; align-items:center; gap:10px; }
.h2h-avatar{
  width:min(31vw, 124px); aspect-ratio:1/1; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center;
  background: var(--ink-softer); font-family: var(--font-display); font-weight:700; font-size:34px;
}
.h2h-avatar img{ width:100%; height:100%; object-fit:cover; object-position:center 22%; }
.h2h-side--me .h2h-avatar{ border:3px solid var(--brand-lime); color: var(--brand-lime); box-shadow: 0 0 22px rgba(149,255,25,0.30); }
.h2h-side--other .h2h-avatar{ border:3px solid var(--accent-cyan); color: var(--accent-cyan); box-shadow: 0 0 22px rgba(25,159,255,0.30); }
.h2h-name{ font-family: var(--font-display); font-weight:800; font-size:20px; text-align:center; line-height:1.15; overflow-wrap:anywhere; text-shadow:0 2px 10px rgba(5,12,22,.9);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; max-width:100%; }
.h2h-mid{ align-self:center; display:flex; flex-direction:column; align-items:center; gap:2px; margin-top:-22px; }
.h2h-cap{ font-family: var(--font-display); font-weight:800; font-size:10px; line-height:1.15; letter-spacing:0.12em; text-align:center; color: var(--paper); text-shadow:0 1px 6px rgba(5,12,22,.9); }
.h2h-vs{
  font-family: var(--font-display); font-weight:900; font-size:42px; line-height:1; font-style:italic; letter-spacing:0.01em; padding:0 4px;
  color: var(--brand-lime); text-shadow: 0 0 18px rgba(149,255,25,0.45), 2px 2px 0 rgba(25,159,255,0.55);
}
.h2h-arena--pair{ grid-template-columns: 1fr auto 1fr; }
.h2h-arena--pair::before{ display:none; }
.h2h-arena--pair .h2h-side--other .h2h-avatar{ border-color: var(--brand-lime); color: var(--brand-lime); box-shadow: 0 0 22px rgba(149,255,25,0.30); }
.h2h-arena--pair .h2h-cap{ display:none; }
.h2h-arena--pair .h2h-mid{ margin:-22px -12px 0; z-index:2; }
.h2h-arena--pair .h2h-vs{
  width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; padding:0;
  font-style:normal; font-size:26px; line-height:1; color: var(--ink); background: var(--brand-lime); text-shadow:none; box-shadow:0 0 16px rgba(149,255,25,0.5);
}

.h2h-switch{ display:flex; gap:6px; margin: 14px 0 0; padding:4px; border-radius: var(--radius-pill); background: var(--surface-1); border:1px solid var(--line); }
.h2h-switch[hidden]{ display:none; }
.h2h-switch__btn{ flex:1; border:none; background:none; color: var(--paper-faint); font-family: var(--font-display); font-weight:600; font-size:13px; padding:9px 10px; border-radius: var(--radius-pill); cursor:pointer; min-height:40px; transition: background var(--motion-fast) ease, color var(--motion-fast) ease; }
.h2h-switch__btn.is-active{ background: rgba(149,255,25,0.14); color: var(--brand-lime); font-weight:700; }

.h2h-body{ padding: 18px 0 8px; display:flex; flex-direction:column; gap:26px; }
.h2h-body > section[hidden]{ display:none; }
.h2h-body > section:empty{ display:none; }
.h2h-intel[hidden]{ display:none; }
.h2h-intel{ padding:14px 16px; border-color: rgba(149,255,25,0.22); background: linear-gradient(180deg, rgba(149,255,25,0.05), transparent 80%), var(--surface-1); }
.h2h-intel .intelligence-title{ margin-bottom:6px; font-size:12px; }
.h2h-intel__main{ margin:0; font-size:15px; line-height:1.4; font-weight:700; color: var(--paper); }
.h2h-intel__second{ margin:6px 0 0; font-size:13px; line-height:1.45; color: var(--paper-dim); }
.h2h-intel__second[hidden]{ display:none; }

.h2h-board__nums{ display:flex; align-items:flex-end; justify-content:space-between; gap:8px; }
.h2h-board__side{ display:flex; flex-direction:column; gap:4px; min-width:0; flex:1 1 0; }
.h2h-board__side:last-child{ align-items:flex-end; text-align:right; }
.h2h-board__side b{ font-family: var(--font-display); font-weight:800; font-size:64px; line-height:0.95; letter-spacing:-0.02em; }
.h2h-board__side span{ font-size:13px; color: var(--paper-dim); line-height:1.25; }
.h2h-board__side--me b{ color: var(--brand-lime); }
.h2h-board__side--other b{ color: var(--accent-cyan); }
.h2h-board__side--dim b{ color: var(--accent-cyan); }
.h2h-board__mid{ flex:none; align-self:center; display:flex; flex-direction:column; align-items:center; gap:0; text-align:center; padding-bottom:18px; }
.h2h-board__total{ font-family: var(--font-display); font-size:26px; font-weight:800; line-height:1; color: var(--paper); }
.h2h-board__since{ font-size:12px; color: var(--paper-dim); }
.h2h-board__nums--three .h2h-board__side{ align-items:center; text-align:center; }
.h2h-board__nums--three .h2h-board__side b{ font-size:48px; }
.h2h-board__nums--three .h2h-board__side:first-child b{ color: var(--paper); }
.h2h-board__nums--three .h2h-board__side--me b{ color: var(--brand-lime); }
.h2h-board__nums--three .h2h-board__side--dim b{ color: var(--danger); }
.h2h-bar{ display:flex; gap:3px; height:12px; margin:14px 0 8px; border-radius:999px; overflow:hidden; background: var(--surface-3); }
.h2h-bar__me{ background: var(--brand-lime); border-radius:999px; min-width:0; }
.h2h-bar__other{ background: var(--accent-cyan); border-radius:999px; min-width:0; }
.h2h-pct{ display:grid; grid-template-columns: 1fr auto 1fr; align-items:baseline; gap:8px; }
.h2h-pct span{ font-size:13px; color: var(--paper-dim); text-align:center; }
.h2h-pct b{ font-family: var(--font-display); font-weight:800; font-size:30px; line-height:1; letter-spacing:-0.01em; }
.h2h-pct__me{ color: var(--brand-lime); }
.h2h-pct__other{ color: var(--accent-cyan); text-align:right; }
.h2h-pct-pair{ display:flex; align-items:center; gap:14px; margin-top:16px; padding:8px 18px 8px 8px; border-radius: var(--radius-pill); border:1.5px solid rgba(149,255,25,0.55); background: rgba(149,255,25,0.05); }
.h2h-pct-pair b{ font-family: var(--font-display); font-weight:800; font-size:26px; line-height:1; color: var(--brand-lime); padding:6px 14px; border-radius: var(--radius-pill); background: rgba(149,255,25,0.12); }
.h2h-pct-pair span{ font-size:14px; color: var(--paper); }
.h2h-facts{ display:flex; margin:16px 0 0; padding:12px 0 0; border-top:1px solid var(--line); }
.h2h-facts__item{ flex:1 1 0; min-width:0; padding:0 10px; border-left:1px solid var(--line); display:flex; flex-direction:column; gap:3px; }
.h2h-facts__item:first-child{ padding-left:0; border-left:none; }
.h2h-facts dt{ font-size:11px; color: var(--paper-faint); }
.h2h-facts dd{ margin:0; font-family: var(--font-display); font-weight:700; font-size:15px; color: var(--paper); }

.h2h-section-title{ font-family: var(--font-display); font-weight:700; font-size:12px; letter-spacing:0.05em; text-transform:uppercase; color: var(--paper-dim); margin: 0 0 12px; }

.h2h-ev__svg{ display:block; width:100%; height:auto; overflow:visible; }
.h2h-ev__zero{ stroke: var(--line-strong); stroke-width:1; stroke-dasharray:3 3; }
.h2h-ev__bar--me{ fill: var(--brand-lime); }
.h2h-ev__bar--other{ fill: var(--accent-cyan); }
.h2h-ev__bar--tie{ fill: var(--paper-faint); }
.h2h-ev__bar{ opacity:.9; } .h2h-ev__bar.is-last{ opacity:1; }
.h2h-ev__pill rect{ fill: var(--ink); stroke-width:1.5; }
.h2h-ev__pill text{ font-family: var(--font-display); font-size:11px; font-weight:800; }
.h2h-ev__pill--me rect{ stroke: var(--brand-lime); } .h2h-ev__pill--me text{ fill: var(--brand-lime); }
.h2h-ev__pill--other rect{ stroke: var(--accent-cyan); } .h2h-ev__pill--other text{ fill: var(--accent-cyan); }
.h2h-ev__pill--tie rect{ stroke: var(--paper-dim); } .h2h-ev__pill--tie text{ fill: var(--paper); }
.h2h-ev__lbl{ font-family: var(--font-display); font-size:9px; font-weight:600; letter-spacing:0.03em; }
.h2h-ev__lbl--me{ fill: var(--brand-lime); opacity:.8; }
.h2h-ev__lbl--other{ fill: var(--accent-cyan); opacity:.85; }
.h2h-ev__ax{ font-family: var(--font-display); font-size:9px; fill: var(--paper-faint); }
.h2h-ev__legend{ display:flex; gap:16px; margin-top:8px; font-size:11px; color: var(--paper-dim); }
.h2h-ev__legend span{ display:inline-flex; align-items:center; gap:6px; }
.h2h-ev__key{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.h2h-ev__key--me{ background: var(--brand-lime); }
.h2h-ev__key--other{ background: var(--accent-cyan); }
.h2h-ev__caps{ display:flex; justify-content:space-between; gap:12px; margin-top:10px; font-size:12px; color: var(--paper-dim); }
.h2h-ev__cap b{ font-family: var(--font-display); font-size:14px; color: var(--paper); margin-left:4px; }
.h2h-ev__cap--me b{ color: var(--brand-lime); }
.h2h-ev__cap--other b{ color: var(--accent-cyan); }
.h2h-ev__note{ display:block; margin:10px 0 0; font-size:11px; color: var(--paper-faint); }

.h2h-seq{ display:flex; flex-wrap:wrap; gap:8px; }
.h2h-dot{ width:17px; height:17px; display:inline-block; box-sizing:border-box; }
.h2h-dot--key{ width:10px; height:10px; }
.lastmatch-form-dot--other{ background: var(--accent-cyan); }
.h2h-seq__legend{ display:flex; flex-wrap:wrap; gap:6px 16px; align-items:center; margin-top:12px; font-size:11px; color: var(--paper-dim); }
.h2h-seq__legend span{ display:inline-flex; align-items:center; gap:6px; }
.h2h-setdots{ display:inline-flex; gap:5px; align-items:center; flex:none; }
.h2h-setdots .h2h-dot{ width:10px; height:10px; }

.h2h-lm{ width:100%; display:block; margin-bottom:0; font:inherit; color: var(--paper); text-align:left; }
.h2h-lm > .player-home-lastmatch__row1{ display:flex; }
.h2h-lm__badge-row{ display:block; margin:6px 0 10px; }
.h2h-lm .player-home-lastmatch__score{ display:flex; margin-bottom:12px; }
.h2h-lm .player-home-lastmatch__teamsrow{ display:flex; }
.h2h-lm .player-home-lastmatch__teams-line{ display:block; white-space:normal; overflow-wrap:anywhere; }
.h2h-lm__tags{ display:flex; flex-direction:column; gap:4px; margin-top:12px; }
.h2h-lm__tag{ display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; color: var(--brand-lime); text-shadow:0 1px 7px rgba(5,12,22,.95); }
.h2h-lm__tag svg{ flex:none; }
.h2h-tag{ display:inline-block; align-self:flex-start; font-size:11px; font-weight:600; line-height:1.3; padding:3px 9px; border-radius:999px; border:1px solid var(--line-strong); color: var(--paper-dim); }
.h2h-res{ white-space:nowrap; font-size:11px; font-weight:800; letter-spacing:0.04em; text-transform:uppercase; }
.h2h-res--me, .h2h-res--win{ color: var(--brand-lime); }
.h2h-res--other{ color: var(--accent-cyan); }
.h2h-res--loss{ color: var(--paper-dim); }

.h2h-list{ display:flex; flex-direction:column; }
.h2h-row{ width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:5px; text-align:left; background:none; border:none; border-top:1px solid var(--line); padding:13px 2px; color: var(--paper); cursor:pointer; font-family: var(--font-display); }
.h2h-row:last-child{ border-bottom:1px solid var(--line); }
.h2h-row:active{ background: rgba(255,255,255,0.03); }
.h2h-row__line{ width:100%; display:flex; align-items:center; gap:8px; }
.h2h-row__date{ flex:none; width:70px; white-space:nowrap; font-size:11px; color: var(--paper-dim); font-variant-numeric: tabular-nums; }
.h2h-row__res{ flex:1 1 auto; min-width:0; }
.h2h-row__score{ flex:none; font-weight:800; font-size:16px; letter-spacing:0.01em; font-variant-numeric: tabular-nums; }
.h2h-row__players{ font-size:11px; color: var(--paper-faint); line-height:1.4; overflow-wrap:anywhere; padding-left:80px; }
.h2h-row__vs{ color: var(--paper-faint); }
.h2h-row__chev{ flex:none; font-size:20px; color: var(--paper-faint); }
.h2h-row .h2h-tag{ margin-left:80px; }
.h2h-more{ width:100%; margin-top:14px; }
.h2h-note{ margin:12px 0 0; font-size:11px; color: var(--paper-faint); text-align:center; }

.h2h-story{ padding:16px 16px 14px; border-radius: var(--radius-card); border:1px solid var(--line); background: var(--surface-1); }
.h2h-story__head{ display:flex; flex-direction:column; gap:2px; margin-bottom:12px; }
.h2h-story__title{ margin:0; font-family: var(--font-display); font-weight:800; font-size:16px; color: var(--paper); }
.h2h-story__sub{ font-size:12px; color: var(--paper-dim); }
.h2h-story .h2h-ev__legend{ margin-top:10px; }
.h2h-story__maxes{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.h2h-story__max{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.h2h-story__max--other{ align-items:flex-end; text-align:right; }
.h2h-story__lbl{ font-size:11px; color: var(--paper-dim); line-height:1.3; }
.h2h-story__max b{ font-family: var(--font-display); font-weight:800; font-size:34px; line-height:1.05; letter-spacing:-0.01em; }
.h2h-story__max--me b{ color: var(--brand-lime); }
.h2h-story__max--other b{ color: var(--accent-cyan); }
.h2h-story__when{ font-size:11px; color: var(--paper-faint); }
.h2h-story__never{ font-size:13px; font-weight:600; line-height:1.35; color: var(--paper-dim); padding-top:4px; }
.h2h-story__meta{ margin:12px 0 0; font-size:12px; color: var(--paper-dim); text-align:center; }
.h2h-ev__ring{ fill:none; stroke-width:1.5; }
.h2h-ev__ring--me{ stroke: var(--brand-lime); }
.h2h-ev__ring--other{ stroke: var(--accent-cyan); }
.h2h-seq__legend .h2h-ev__note{ margin:0; flex-basis:100%; }

.h2h-sets{ margin:14px 0 0; padding-top:12px; border-top:1px solid var(--line); font-size:12px; color: var(--paper-dim); text-align:center; }
.h2h-sets b{ font-family: var(--font-display); font-size:14px; color: var(--paper); margin-left:6px; }
.h2h-moment__kicker{ font-size:11px; font-weight:800; letter-spacing:0.05em; text-transform:uppercase; color: var(--brand-lime); }

.invite-sheet__saved{ display:flex; flex-direction:column; align-items:center; gap:2px; margin-top:-2px; }
.invite-sheet__saved-k{ font-family: var(--font-display); font-weight:800; font-size:18px; letter-spacing:.02em; color: var(--brand-lime); }
.invite-sheet__saved-s{ font-size:13px; color: var(--text-dim); }
.invite-qr{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.invite-qr__frame{ position:relative; width: min(216px, 58vw); aspect-ratio: 1; padding: 14px; border-radius: 20px; background:#fff; display:grid; place-items:center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.42), 0 0 0 4px rgba(149,255,25,.16); }
.invite-qr__code{ width:100%; height:100%; display:grid; place-items:center; }
.invite-qr__code svg{ display:block; width:100%; height:100%; shape-rendering: crispEdges; }
.invite-qr__wait{ position:absolute; inset:14px; display:grid; place-items:center; text-align:center; font-size:13px; font-weight:600; line-height:1.35; color:#5b6775; border-radius:10px;
  background:#eef2f6; }
.invite-qr[data-state="loading"] .invite-qr__wait{ animation: inviteQrPulse 1.2s ease-in-out 6 alternate; }
.invite-qr[data-state="error"] .invite-qr__wait{ background:#f4f1f1; color:#8a4b4b; }
.invite-qr__retry{ min-height:40px; padding: 0 16px; background:none; border:0; font: inherit; font-size:14px; font-weight:700; color: var(--accent-cyan); text-decoration: underline; text-underline-offset:3px; cursor:pointer; }
@keyframes inviteQrPulse{ from{ opacity:.65; } to{ opacity:1; } }
@media (prefers-reduced-motion: reduce){ .invite-qr[data-state="loading"] .invite-qr__wait{ animation:none; } }
@media (max-height: 820px){ .invite-qr__frame{ width: min(196px, 54vw); } .invite-anim{ zoom: .92; } .invite-sheet__body{ gap:10px; } }
@media (max-height: 700px){ .invite-qr__frame{ width: min(176px, 50vw); padding: 12px; } .invite-qr__wait{ inset:12px; } .invite-anim{ zoom: .82; } .invite-sheet__body{ gap:8px; } }
.invite-sheet__skip{ align-self:center; min-height:40px; margin-top:-4px; padding: 0 18px; background:none; border:0; font: inherit; font-size:14px; font-weight:600; color: var(--text-dim); cursor:pointer; }

.invite-hub__body{ padding: 4px 4px 12px; gap: 10px; align-items: stretch; text-align:center; }
.invite-hub__badge{ align-self:center; width:52px; height:52px; border-radius:50%; display:grid; place-items:center; color: var(--ink, #06101b); background: var(--brand-lime); box-shadow: 0 0 0 6px rgba(149,255,25,.14); }
.invite-hub__badge[hidden]{ display:none; }
.invite-hub__lead{ margin:0; font-size:14px; color: var(--text-dim); }
.invite-hub__headline{ margin: 2px 0 0; font-family: var(--font-display); font-weight:800; font-size:21px; line-height:1.15; color: var(--paper); }
.invite-hub__text{ margin:0 0 4px; font-size:15px; line-height:1.4; color: var(--text); padding: 0 6px; }
.invite-hub__body .btn-start{ width:100%; }
.invite-hub__list{ display:flex; flex-direction:column; flex:none; gap:8px; max-height: 44dvh; overflow-y:auto; overscroll-behavior:contain; text-align:left; }
.invite-hub__list[hidden]{ display:none; }
.invite-hub__row{ flex:none; display:flex; align-items:center; gap:12px; padding: 10px 12px 10px 14px; background: var(--surface-1); border:1px solid var(--line); border-radius: var(--radius-card); }
.invite-hub__who{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.invite-hub__name{ font-size:15px; font-weight:700; color: var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.invite-hub__hint{ font-size:12px; color: var(--text-dim); }
.invite-hub__row.is-done .invite-hub__hint{ color: var(--brand-lime); }
.invite-hub__btn{ flex:none; width:auto; min-height:40px; padding: 0 18px; font-size:12px; }
#invite-hub{ touch-action: pan-y; }

.pending-island__pend{ display:block; }
.pending-island__sep{ height:1px; margin: 12px 0; background: var(--line); }
.pending-island__sep[hidden]{ display:none; }
.pending-island--inv-only{ border-color: var(--line-strong); }
.invite-card{ position:relative; margin:0; }
.invite-card[hidden]{ display:none; }
.invite-card__main{ display:flex; align-items:center; gap:12px; width:100%; min-height:60px; padding: 0; background:none; border:0; font: inherit; color: var(--text); text-align:left; cursor:pointer; }
.invite-card__main:active{ transform: scale(.99); }
.invite-card__icon{ flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; color: var(--brand-lime); background: rgba(149,255,25,.12); }
.invite-card__txt{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.invite-card__k{ font-size:10.5px; font-weight:800; letter-spacing:.08em; color: var(--brand-lime); }
.invite-card__t{ font-size:14.5px; font-weight:700; line-height:1.25; color: var(--paper); }
.invite-card__s{ font-size:12.5px; color: var(--text-dim); }
.invite-card__more{ display:block; width:100%; min-height:40px; margin-top:8px; padding: 0; background:none; border:0; font: inherit; font-size:12.5px; font-weight:700; color: var(--accent-cyan); text-align:center; cursor:pointer; }
.invite-card__more[hidden]{ display:none; }

.load-player-sheet__hint{ margin: 8px 2px 0; font-size:12.5px; line-height:1.4; color: var(--text-dim); }

[data-puntos-open]{ cursor: pointer; -webkit-tap-highlight-color: transparent; }
.player-card__level-label[data-puntos-open]{ color: var(--brand-lime, var(--paper-faint)); }
.player-card__level-value{ font-variant-numeric: tabular-nums; }
.player-row__level-label{ white-space: nowrap; }
.puntos-inline{ white-space: nowrap; }
.puntos-inline[hidden]{ display: none; }

.analysis-points{ margin-top: 12px; }
.points-card{ padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.points-card__kicker{ margin: 0; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-faint); }
.points-card__headline{ margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--paper); }
.points-card__reasons{ margin: 0; font-size: 13px; color: var(--brand-lime, var(--paper-dim)); font-weight: 700; }
.points-card__list{ list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.points-card__row{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line, rgba(255,255,255,0.08)); font-size: 14px; color: var(--paper-dim); }
.points-card__row:first-child{ border-top: 0; }
.points-card__row.is-me{ color: var(--paper); font-weight: 700; }
.points-card__name{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.points-card__pts{ flex: none; font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--paper); }
.points-card__note{ margin: 8px 0 0; font-size: 12px; color: var(--paper-faint); }

.player-card__record{ margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--paper-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-card__record[hidden]{ display: none; }
.ranking-row.is-focus{ background: rgba(25,159,255,0.12); box-shadow: inset 3px 0 0 var(--accent-cyan); }
.ranking-row.is-focus .group-table__name{ color: var(--accent-cyan); }

.points-card{ padding: 10px 14px; gap: 3px; }
.points-card__kicker{ font-size: 9px; }
.points-card__headline{ font-size: 15px; margin-top: 0; }
.points-card__reasons{ font-size: 11px; }
.points-card__list{ margin-top: 4px; }
.points-card__row{ padding: 5px 0; font-size: 12px; }
.points-card__note{ margin-top: 4px; font-size: 11px; }

.player-card__level-label{ line-height: 1.15; text-align: right; }
.ranking-row .group-table__points-label{ line-height: 1.15; font-size: 8px; text-align: right; }

#view-player-home .player-card__level-label{ color: var(--accent-cyan); white-space: nowrap; }
#view-player-home .player-card__level-value{ color: var(--brand-lime); }

.player-card__level-label{ white-space: nowrap; }
.profile-ranking-card__total{ align-items: center; }
.profile-ranking-card__total-unit{ line-height: 1.1; white-space: nowrap; }
