:root {
  --ink: #111827;
  --muted: #667085;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --line: #e5e7ef;
  --black: #070a17;
  --brand-blue: #1f2a7a;
  --brand-blue-2: #11194f;
  --brand-red: #cf1018;
  --brand-red-2: #9f0b13;
  --green: #16c784;
  --teal: #11b8c9;
  --amber: #ffb21a;
  --coral: #ef4444;
  --blue: #355cff;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(6, 10, 30, 0.28);
  --nav-height: 74px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

html {
  background: #070a17;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(160deg, rgba(207, 16, 24, 0.22), transparent 34%),
    linear-gradient(35deg, rgba(53, 92, 255, 0.2), transparent 44%),
    linear-gradient(145deg, #070a17 0%, #11194f 48%, #080912 100%);
  color: var(--ink);
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: min(100vw, 430px);
  height: 100svh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 22rem),
    linear-gradient(145deg, rgba(207, 16, 24, 0.08), transparent 28rem),
    var(--paper);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.app-shell.is-busy {
  pointer-events: none;
  filter: saturate(0.92);
}

@supports (height: 100dvh) {
  .app-shell {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.screen {
  height: 100%;
  min-height: 100%;
  padding: env(safe-area-inset-top) 18px calc(var(--nav-height) + 22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.auth-screen {
  position: relative;
  display: grid;
  align-content: end;
  gap: 18px;
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  padding: calc(26px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  color: #ffffff;
  isolation: isolate;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.auth-screen::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(180deg, rgba(7, 10, 23, 0.16), rgba(7, 10, 23, 0.9)),
    url("assets/real-padel-club.jpg");
  background-position: center;
  background-size: cover;
}

.register-screen::before {
  background-image:
    linear-gradient(180deg, rgba(7, 10, 23, 0.16), rgba(7, 10, 23, 0.9)),
    var(--auth-image);
}

.auth-screen::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.72), transparent 42%),
    linear-gradient(20deg, rgba(207, 16, 24, 0.36), transparent 34%),
    linear-gradient(0deg, rgba(7, 10, 23, 0.7), transparent 62%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: inline-grid;
  width: 132px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.logo-mark img {
  display: block;
  width: 118px;
  height: auto;
}

.logo-mark.small {
  width: 82px;
  height: 36px;
  box-shadow: 0 8px 20px rgba(7, 10, 23, 0.12);
}

.logo-mark.small img {
  width: 73px;
}

.logo-mark.large {
  width: 194px;
  height: 82px;
  border-radius: 18px;
}

.logo-mark.large img {
  width: 170px;
}

.logo-mark.card {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 112px;
  height: 44px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.logo-mark.card img {
  width: 99px;
}

.logo-mark.hero {
  width: 124px;
  height: 48px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.logo-mark.hero img {
  width: 108px;
}

.logo-mark.poster {
  width: 126px;
  height: 46px;
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(56, 32, 14, 0.18);
}

.logo-mark.poster img {
  width: 113px;
}

.brand-title {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.auth-copy h1 {
  max-width: 11ch;
  margin: 0;
  color: #ffffff;
  font-size: 46px;
  line-height: 0.94;
}

.auth-copy p {
  max-width: 31ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-red);
  content: "";
}

.eyebrow.dark {
  color: var(--brand-blue);
}

.auth-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(7, 10, 23, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.auth-switch button {
  min-height: 42px;
  border-radius: calc(var(--radius) - 4px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 900;
}

.auth-switch button.is-active {
  background: #ffffff;
  color: var(--brand-blue-2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.auth-form-head strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.auth-form-head span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.auth-panel .inline-warning {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(207, 16, 24, 0.24);
  color: #ffffff;
}

.input-field {
  display: grid;
  gap: 6px;
}

.input-field span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.input-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  outline: 0;
}

.input-field input:focus {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(207, 16, 24, 0.18);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 850;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: linear-gradient(135deg, var(--brand-red), #ff3b4a 44%, var(--amber));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(207, 16, 24, 0.28);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.secondary-button.is-quiet {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #eef1f8;
  color: var(--ink);
}

.full-width {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  min-height: 46px;
  place-items: center;
  border: 1px solid rgba(226, 230, 240, 0.88);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(7, 10, 23, 0.06);
}

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.filled-heart .icon {
  fill: var(--coral);
  stroke: var(--coral);
}

.splash-screen {
  display: grid;
  height: 100%;
  min-height: 100%;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(207, 16, 24, 0.22), transparent 48%),
    linear-gradient(180deg, var(--brand-blue-2), #070a17);
  color: #ffffff;
}

.splash-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  animation: pulseIn 900ms ease both;
}

.splash-card h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.live-loader {
  width: 140px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.live-loader span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-red), #ffffff, var(--brand-blue));
  animation: loaderMove 900ms ease-in-out infinite;
}

.venue-screen {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 22px;
}

.venue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.venue-top .brand-title,
.venue-top .brand-subtitle {
  color: var(--ink);
}

.venue-heading h1 {
  margin: 8px 0 8px;
  color: var(--brand-blue-2);
  font-size: 36px;
  line-height: 1.02;
}

.venue-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.venue-list {
  display: grid;
  gap: 12px;
}

.venue-card {
  position: relative;
  display: grid;
  min-height: 236px;
  overflow: hidden;
  padding: 16px;
  align-content: end;
  border-radius: var(--radius);
  color: #ffffff;
  text-align: left;
  isolation: isolate;
  box-shadow: 0 20px 42px rgba(17, 25, 79, 0.18);
}

.venue-card::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--venue-image);
  background-position: center;
  background-size: cover;
  content: "";
  transition: transform 400ms ease;
}

.venue-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 10, 23, 0.06) 0%, rgba(7, 10, 23, 0.9) 100%),
    linear-gradient(135deg, rgba(31, 42, 122, 0.58), transparent 42%),
    linear-gradient(22deg, rgba(207, 16, 24, 0.24), transparent 48%);
  content: "";
}

.venue-card:active::before {
  transform: scale(1.04);
}

.venue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.venue-name {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.venue-handle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.pill,
.live-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.pill {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.mini-pill {
  padding: 6px 9px;
  background: #eef2ff;
  color: var(--brand-blue);
}

.live-pill {
  padding: 7px 10px;
  background: rgba(207, 16, 24, 0.1);
  color: var(--brand-red);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 5px rgba(207, 16, 24, 0.14);
}

.app-view {
  display: grid;
  height: 100%;
  min-height: 100%;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 28%),
    var(--paper);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(10px + env(safe-area-inset-top)) 14px 11px;
  border-bottom: 1px solid rgba(226, 230, 240, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

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

.header-title {
  min-width: 0;
}

.header-title strong,
.header-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-title strong {
  color: var(--brand-blue-2);
  font-size: 16px;
  line-height: 1.1;
}

.header-title span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.admin-button {
  position: relative;
}

.admin-button span {
  position: absolute;
  right: -3px;
  top: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.content {
  min-height: 0;
  padding: 14px 14px calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.view-stack {
  display: grid;
  gap: 14px;
  animation: enterView 260ms ease both;
}

.blank-view {
  min-height: calc(100svh - var(--nav-height) - 96px);
}

.inline-warning {
  padding: 12px 13px;
  border: 1px solid rgba(207, 16, 24, 0.18);
  border-radius: var(--radius);
  background: rgba(207, 16, 24, 0.07);
  color: var(--brand-red-2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.pending-screen {
  display: grid;
  min-height: 100%;
  height: 100%;
  place-items: center;
  padding: calc(22px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom));
  background:
    linear-gradient(160deg, rgba(207, 16, 24, 0.11), transparent 42%),
    linear-gradient(24deg, rgba(31, 42, 122, 0.12), transparent 48%),
    var(--paper);
}

.pending-card {
  display: grid;
  width: 100%;
  gap: 13px;
  justify-items: center;
  padding: 20px;
  border: 1px solid rgba(226, 230, 240, 0.92);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(17, 25, 79, 0.14);
  text-align: center;
}

.status-orb {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 42, 122, 0.12), rgba(207, 16, 24, 0.12));
  color: var(--brand-blue-2);
}

.pending-card h1 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 26px;
  line-height: 1.03;
}

.pending-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.pending-meta {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faff;
  text-align: left;
}

.pending-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.pending-meta strong {
  overflow: hidden;
  color: var(--brand-blue-2);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-approval-panel {
  display: grid;
  gap: 14px;
}

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.07), transparent 52%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(17, 25, 79, 0.08);
}

.admin-head h1 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 24px;
  line-height: 1.04;
}

.admin-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.status-count {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.approval-list {
  display: grid;
  gap: 10px;
}

.approval-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 25, 79, 0.07);
}

.approval-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.approval-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.approval-copy strong,
.approval-copy span,
.approval-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-copy strong {
  color: var(--brand-blue-2);
  font-size: 14px;
}

.approval-copy span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.approval-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.empty-approval {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.hero-band {
  position: relative;
  min-height: 282px;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius);
  color: #ffffff;
  isolation: isolate;
  box-shadow: 0 24px 48px rgba(17, 25, 79, 0.22);
}

.hero-band::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
}

.hero-band::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 10, 23, 0.16), rgba(7, 10, 23, 0.9)),
    linear-gradient(135deg, rgba(31, 42, 122, 0.62), transparent 58%),
    linear-gradient(25deg, rgba(207, 16, 24, 0.28), transparent 56%);
  content: "";
}

.hero-band h1 {
  max-width: 12ch;
  margin: 38px 0 10px;
  font-size: 36px;
  line-height: 1;
}

.hero-band p {
  max-width: 30ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.45;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.hero-actions .ghost-button {
  min-height: 46px;
  background: rgba(255, 255, 255, 0.17);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 20px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.metric-card {
  display: grid;
  min-height: 86px;
  padding: 10px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f9fafc);
  box-shadow: 0 12px 26px rgba(17, 25, 79, 0.07);
}

.metric-card strong {
  color: var(--brand-blue-2);
  font-size: 22px;
}

.metric-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.match-card,
.post-card,
.stat-card,
.profile-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(17, 25, 79, 0.08);
}

.match-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.match-top,
.post-top,
.player-row,
.table-row,
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.match-kicker,
.post-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.court-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 850;
}

.score-line {
  display: grid;
  gap: 7px;
}

.team-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.team-name {
  overflow: hidden;
  font-size: 16px;
  color: #151a2f;
  font-weight: 880;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  display: flex;
  gap: 5px;
  font-weight: 900;
}

.score span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: #f0f3ff;
  color: var(--brand-blue-2);
}

.winner-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brand-red);
}

.confirm-grid {
  display: grid;
  gap: 8px;
}

.player-confirm {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: #f7f8fc;
  border: 1px solid #eef1f7;
}

.player-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-weight: 780;
}

.player-name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.confirm-button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--brand-blue-2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.confirm-button.is-done {
  background: rgba(22, 199, 132, 0.14);
  color: #06724d;
}

.progress-line {
  display: grid;
  gap: 6px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0e8;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red), var(--amber));
  transition: width 260ms ease;
}

.post-list,
.match-list,
.table-stack {
  display: grid;
  gap: 12px;
}

.post-card {
  overflow: hidden;
}

.post-top {
  padding: 12px;
}

.post-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.post-user strong,
.post-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-user span {
  color: var(--muted);
  font-size: 12px;
}

.post-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e4e8f3;
}

.post-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.action-row {
  display: flex;
  gap: 8px;
}

.round-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.caption {
  margin: 0;
  color: #2f3435;
  font-size: 14px;
  line-height: 1.4;
}

.stories-row,
.venue-tabs,
.segmented {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stories-row::-webkit-scrollbar,
.venue-tabs::-webkit-scrollbar,
.segmented::-webkit-scrollbar {
  display: none;
}

.story-chip,
.segmented button,
.venue-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.story-chip.is-active,
.segmented button.is-active,
.venue-tabs button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-blue));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 42, 122, 0.18);
}

.form-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.06), transparent 52%),
    #ffffff;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-grid input {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
  color: var(--ink);
  font-size: 16px;
  outline: 0;
}

.form-grid select {
  min-height: 48px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
  outline: 0;
}

.form-grid input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(31, 42, 122, 0.12);
}

.form-grid select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(31, 42, 122, 0.12);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  overflow: hidden;
}

.stat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #ffffff, #f7f8ff);
}

.stat-title h3 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 16px;
}

.table-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 42px 42px 42px;
  min-height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid #edf0e8;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row.head {
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.rank {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #ffdc73);
  color: #18100a;
  font-size: 12px;
  font-weight: 900;
}

.pair-name {
  overflow: hidden;
  font-weight: 830;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row > span:not(.pair-name):not(.rank) {
  color: #333839;
  text-align: right;
  font-weight: 750;
}

.winner-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(207, 16, 24, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(31, 42, 122, 0.06), transparent),
    #ffffff;
}

.winner-card strong {
  font-size: 13px;
}

.trophy-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
  color: var(--amber);
}

.profile-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.profile-row {
  min-height: 58px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row span {
  color: var(--muted);
  font-size: 13px;
}

.profile-row strong {
  font-size: 14px;
}

.admin-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(31, 42, 122, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.08), transparent 54%),
    linear-gradient(25deg, rgba(207, 16, 24, 0.08), transparent 62%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(17, 25, 79, 0.08);
}

.admin-intro h3 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 22px;
  line-height: 1.05;
}

.admin-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.admin-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(31, 42, 122, 0.2);
}

.admin-panel {
  gap: 14px;
}

.admin-block {
  display: grid;
  gap: 10px;
}

.admin-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-block-head strong {
  color: var(--brand-blue-2);
  font-size: 14px;
}

.upload-logo {
  position: relative;
  overflow: hidden;
}

.upload-logo input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.player-photo-grid,
.logo-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-photo-tile {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 9px;
  border: 1px solid #edf0f7;
  border-radius: var(--radius);
  background: #f9faff;
}

.player-photo-tile strong,
.player-photo-tile span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-photo-tile strong {
  color: #151a2f;
  font-size: 13px;
}

.player-photo-tile span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.mock-player-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  overflow: hidden;
  border-radius: 7px;
  background-image: url("assets/real-padel-players.jpg");
  background-size: 360%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.photo-1 {
  background-position: 6% 42%;
}

.photo-2 {
  background-position: 37% 42%;
}

.photo-3 {
  background-position: 66% 42%;
}

.photo-4 {
  background-position: 92% 42%;
}

.logo-option {
  display: grid;
  min-height: 72px;
  min-width: 0;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid #edf0f7;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-blue-2);
  text-align: center;
}

.logo-option.is-selected {
  border-color: rgba(207, 16, 24, 0.42);
  background: linear-gradient(180deg, #ffffff, #fff6f7);
  box-shadow: 0 10px 22px rgba(207, 16, 24, 0.1);
}

.logo-option img {
  max-width: 92px;
  max-height: 30px;
  object-fit: contain;
}

.logo-option strong {
  font-size: 15px;
  line-height: 1.05;
}

.logo-option span {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-preview-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 25, 79, 0.08);
}

.poster-reference-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #080d14;
  box-shadow: 0 18px 36px rgba(17, 25, 79, 0.14);
}

.poster-reference-image.is-feed {
  border-radius: 0;
  box-shadow: none;
}

.ai-poster {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.2) 0 9%, transparent 9% 18%, rgba(255, 255, 255, 0.14) 18% 26%, transparent 26%),
    linear-gradient(65deg, transparent 0 42%, rgba(255, 255, 255, 0.18) 42% 54%, transparent 54%),
    #dfb27d;
  color: #ffffff;
  isolation: isolate;
}

.ai-poster::before,
.ai-poster::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.ai-poster::before {
  background:
    repeating-linear-gradient(115deg, transparent 0 10px, rgba(255, 255, 255, 0.22) 10px 12px, transparent 12px 20px),
    linear-gradient(180deg, rgba(92, 53, 20, 0.02), rgba(92, 53, 20, 0.18));
  opacity: 0.42;
}

.ai-poster::after {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  box-shadow: inset 0 0 90px rgba(84, 43, 11, 0.16);
}

.ai-poster.blue {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0 9%, transparent 9% 18%, rgba(255, 255, 255, 0.12) 18% 26%, transparent 26%),
    linear-gradient(180deg, #2c3a98, #0f174c);
}

.ai-poster.red {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0 9%, transparent 9% 18%, rgba(255, 255, 255, 0.12) 18% 26%, transparent 26%),
    linear-gradient(180deg, #d74447, #8b0b18);
}

.ai-poster.is-feed {
  min-height: 560px;
  border-radius: 0;
}

.poster-top,
.poster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poster-logos {
  display: grid;
  min-width: 120px;
  min-height: 44px;
  place-items: center;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #182044;
  text-align: center;
}

.poster-logos img,
.poster-sponsors img {
  max-width: 118px;
  max-height: 38px;
  object-fit: contain;
}

.poster-logos strong,
.poster-sponsors strong {
  font-size: 13px;
  line-height: 1.05;
}

.poster-time {
  display: grid;
  width: 104px;
  min-height: 94px;
  align-content: center;
  padding: 10px;
  border-radius: 7px;
  background: rgba(186, 112, 50, 0.72);
  text-transform: uppercase;
}

.poster-time span,
.poster-time strong {
  display: block;
  line-height: 1;
}

.poster-time span {
  font-size: 30px;
  font-weight: 950;
}

.poster-time strong {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 950;
}

.poster-team {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.poster-team strong {
  min-width: min(88%, 290px);
  padding: 12px 18px;
  border-radius: 999px 999px 999px 14px;
  background: rgba(196, 118, 51, 0.86);
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.poster-players {
  display: flex;
  justify-content: center;
  width: 100%;
}

.poster-player-photo {
  display: grid;
  width: 118px;
  height: 158px;
  place-items: end center;
  overflow: hidden;
  margin: 0 -8px;
  border-radius: 52px 52px 10px 10px;
  background-image: url("assets/real-padel-players.jpg");
  background-size: 520%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 12px 16px rgba(61, 31, 9, 0.22));
}

.poster-player-photo span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 25, 79, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.poster-versus {
  display: grid;
  justify-items: center;
  margin: -4px 0;
}

.poster-versus span {
  display: grid;
  width: 106px;
  height: 82px;
  place-items: center;
  transform: rotate(-8deg);
  color: #ffffff;
  font-size: 44px;
  font-weight: 950;
  text-shadow:
    -3px -3px 0 #111,
    3px -3px 0 #111,
    -3px 3px 0 #111,
    3px 3px 0 #111,
    0 8px 0 rgba(0, 0, 0, 0.22);
}

.poster-sponsors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.poster-sponsors div {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.55);
  color: #182044;
  text-align: center;
}

.poster-footer {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(226, 230, 240, 0.92);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 30px rgba(17, 25, 79, 0.08);
  transform: translateZ(0);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.nav-button {
  display: grid;
  min-height: 56px;
  padding: 0;
  place-items: center;
  gap: 2px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: clamp(7.2px, 2vw, 8.2px);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.nav-button span {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.nav-button.is-active {
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-blue));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 42, 122, 0.2);
}

.toast {
  position: fixed;
  right: 14px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 30;
  width: min(calc(100vw - 28px), 402px);
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  animation: toastIn 260ms ease both;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@keyframes enterView {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loaderMove {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  body {
    padding: 26px 0;
  }

  .app-shell {
    height: calc(100svh - 52px);
    min-height: calc(100svh - 52px);
    border-radius: 22px;
  }

  .bottom-nav {
    bottom: 26px;
    border-radius: 0 0 22px 22px;
  }
}

@media (max-width: 430px) {
  .app-shell {
    width: 100vw;
    box-shadow: none;
  }

  .screen,
  .auth-screen {
    padding-right: 16px;
    padding-left: 16px;
  }

  .content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .bottom-nav {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .auth-copy h1 {
    font-size: 40px;
  }

  .venue-heading h1 {
    font-size: 32px;
  }

  .hero-band {
    min-height: 258px;
  }

  .hero-band h1 {
    font-size: 31px;
  }

  .section-head {
    align-items: start;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-row {
    grid-template-columns: 30px minmax(0, 1fr) 28px 34px 34px 34px;
    padding: 0 9px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
