﻿:root {
  color-scheme: dark;
  --bg: #050506;
  --panel: #101115;
  --panel-2: #17181d;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(214, 167, 79, 0.42);
  --text: #f7f3ea;
  --muted: #a9a39a;
  --gold: #d8a84f;
  --gold-2: #f0c46c;
  --purple: #8757d8;
  --danger: #ff4d5f;
  --ok: #45c979;
  --mobile-nav-height: 3.75rem;
  --app-height: 100dvh;
  --keyboard-offset: 0px;
  --home-hero-image: url("/assets/home/hero-socio-card.jpeg");
  --home-tickets-image: url("/assets/home/convocatoria-entradas.jpg");
  --home-travel-image: url("/assets/home/viaje-madrid.jpg");
  --home-merch-image: url("/assets/home/merch-contraataque.png");
  font-family: "Arial Narrow", "Roboto Condensed", "Inter", system-ui, sans-serif;
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3ea;
  --panel: #ffffff;
  --panel-2: #f0ece2;
  --line: rgba(24, 22, 19, 0.14);
  --line-strong: rgba(165, 115, 31, 0.42);
  --text: #171512;
  --muted: #5f5a51;
  --gold: #bf842b;
  --gold-2: #9c681d;
  --purple: #6d45bd;
  --danger: #c83245;
  --ok: #18864b;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  height: -webkit-fill-available;
  background: #050506;
  overflow: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  height: var(--app-height);
  min-height: var(--app-height);
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(216, 168, 79, 0.2), transparent 24rem),
    radial-gradient(circle at 94% 8%, rgba(135, 87, 216, 0.16), transparent 22rem),
    linear-gradient(135deg, #030303, #0c0d10 44%, #050506);
}

body.is-standalone {
  position: fixed;
  inset: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body.modal-open {
  overflow: hidden;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 168, 79, 0.18), transparent 20rem),
    linear-gradient(135deg, #fffaf0, #f1eadc 48%, #ffffff);
}

body[data-theme="light"] .public-panel,
body[data-theme="light"] .admin-panel,
body[data-theme="light"] .phone-frame {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1.2rem 3rem rgba(60, 45, 18, 0.14);
}

body[data-theme="light"] .phone-frame {
  background: #f7f3ea;
}

body[data-theme="light"] .mobile-header,
body[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.94);
}

body[data-theme="light"] .home-benefit-card,
body[data-theme="light"] .status-card,
body[data-theme="light"] .offer-card,
body[data-theme="light"] .product-card,
body[data-theme="light"] .post-card,
body[data-theme="light"] .member-card,
body[data-theme="light"] .join-form,
body[data-theme="light"] .list-row,
body[data-theme="light"] .event-card,
body[data-theme="light"] .ticket-card,
body[data-theme="light"] .detail-meta div,
body[data-theme="light"] .detail-copy,
body[data-theme="light"] .player-meta div,
body[data-theme="light"] .message-card,
body[data-theme="light"] .admin-login,
body[data-theme="light"] .admin-form {
  background: rgba(255, 255, 255, 0.78);
}

body[data-theme="light"] .ghost-action,
body[data-theme="light"] .outline-action,
body[data-theme="light"] .google-action,
body[data-theme="light"] .icon-button,
body[data-theme="light"] .menu-list button,
body[data-theme="light"] .admin-tabs button,
body[data-theme="light"] .admin-row-actions button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
}

body.auth-screen .bottom-nav,
body.auth-screen .mobile-menu-fab,
body.auth-screen .mobile-quick-menu {
  display: none !important;
}

body.auth-screen .header-actions > :not(.whatsapp-header-button) {
  display: none !important;
}

body.auth-screen .mobile-header {
  display: grid;
  grid-template-columns: 2.35rem 1fr 2.35rem;
  border-bottom: 0;
  background: rgba(255, 250, 240, 0.96);
}

body.auth-screen .mobile-header::after {
  content: "";
}

body.auth-screen .mobile-content {
  padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
}

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

input,
select,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-loading[hidden] {
  display: none;
}

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.96), rgba(8, 9, 11, 0.98)),
    radial-gradient(ellipse at 50% 70%, rgba(216, 168, 79, 0.16), transparent 18rem);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.app-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.app-loading__logo {
  width: 5rem;
  height: 5rem;
}

.app-loading strong,
.app-loading small {
  display: block;
  text-align: center;
}

.app-loading strong {
  font-size: 1.05rem;
  text-transform: uppercase;
}

.app-loading small {
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(22rem, 27rem);
  gap: 1.4rem;
  justify-content: center;
  align-items: center;
  min-height: var(--app-height);
  padding: 1.3rem;
}

.is-standalone .app-shell {
  display: block;
  width: 100%;
  height: var(--app-height);
  min-height: var(--app-height);
  padding: 0;
}

.is-standalone .public-panel {
  display: none;
}

.is-standalone .phone-frame {
  width: 100%;
  max-width: none;
  height: var(--app-height);
  min-height: var(--app-height);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.public-panel,
.admin-panel,
.phone-frame {
  border: 1px solid var(--line);
  background: rgba(12, 13, 16, 0.78);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.public-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 45rem;
  padding: 1.45rem;
  overflow: hidden;
  border-radius: 1.7rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.88)),
    repeating-linear-gradient(88deg, transparent 0 1rem, rgba(255, 255, 255, 0.025) 1rem 1.05rem),
    radial-gradient(ellipse at 50% 84%, rgba(216, 168, 79, 0.38), transparent 18rem),
    linear-gradient(160deg, #15161b, #050506);
}

body.instagram-sidebar-off .public-panel .instagram-embed-panel {
  display: none;
}

.brand-lockup,
.panel-head,
.post-head,
.profile-box,
.card-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.crest,
.avatar {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #100c05;
  background: radial-gradient(circle at 30% 25%, #fff4c6, var(--gold) 52%, #9b6621);
  font-weight: 1000;
  letter-spacing: 0;
}

.crest.large {
  width: 6rem;
  height: 6rem;
  margin: 1.6rem auto 0.9rem;
  font-size: 2rem;
}

.public-brand-logo {
  width: 3.6rem;
  height: 3.6rem;
  flex: 0 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 0.35rem 0.7rem rgba(0, 0, 0, 0.5));
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.hero-copy h2 {
  max-width: 8ch;
  margin: 0.8rem 0 0.7rem;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
}

.hero-copy p:not(.kicker) {
  max-width: 25rem;
  color: #ddd8ce;
  font-size: 1rem;
  line-height: 1.45;
}

.hero-actions,
.action-stack {
  display: grid;
  gap: 0.7rem;
}

.hero-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 1.2rem;
}

.instagram-embed-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.instagram-embed-panel__head span,
.instagram-embed-panel__head strong {
  display: block;
}

.instagram-embed-panel__head span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.instagram-embed-panel__head strong {
  font-size: 1rem;
}

.instagram-embed-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.55rem;
  align-items: start;
}

.instagram-embed-list .instagram-media {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  background: #050506 !important;
}

.instagram-embed-list iframe {
  width: 100% !important;
  max-height: 24rem !important;
  border-radius: 0.5rem !important;
}

body[data-theme="light"] .instagram-embed-list .instagram-media {
  background: #fff !important;
}

.instagram-embed-fallback {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  padding: 0.85rem;
  text-decoration: none;
}

.instagram-embed-fallback strong {
  font-size: 1.8rem;
}

.instagram-embed-fallback span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.instagram-lite-card {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  min-height: 5.2rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(216, 168, 79, 0.13), rgba(255, 255, 255, 0.04)),
    #050506;
  padding: 0.8rem;
  text-align: left;
}

body[data-theme="light"] .instagram-lite-card {
  background:
    linear-gradient(135deg, rgba(216, 168, 79, 0.18), rgba(0, 0, 0, 0.03)),
    #fff;
}

.instagram-lite-card strong {
  font-size: 0.95rem;
}

.instagram-lite-card span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.instagram-modal[hidden] {
  display: none;
}

.instagram-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.instagram-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(0.45rem);
}

.instagram-modal__panel {
  position: relative;
  display: grid;
  width: min(34rem, 94vw);
  max-height: min(46rem, 88vh);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 0.9rem;
  background: #050506;
  padding: 0.8rem;
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.45);
}

body[data-theme="light"] .instagram-modal__panel {
  background: #fff;
}

.instagram-modal__close {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--panel);
  font-weight: 900;
}

.instagram-modal__content .instagram-media {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.mobile-instagram-panel {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0;
}

.mobile-instagram-embed-list {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 0 0.25rem;
}

.mobile-instagram-embed-list::-webkit-scrollbar {
  display: none;
}

.mobile-instagram-embed-list > * {
  flex: 0 0 min(78%, 18rem);
  scroll-snap-align: start;
}

.mobile-instagram-embed-list .instagram-media {
  background: #050506 !important;
}

body[data-theme="light"] .mobile-instagram-embed-list .instagram-media {
  background: #fff !important;
}

.mobile-instagram-embed-list iframe {
  max-height: 20rem !important;
}

.primary-action,
.ghost-action,
.outline-action {
  display: inline-grid;
  place-items: center;
  min-height: 2.85rem;
  border: 0;
  border-radius: 0.45rem;
  font-weight: 1000;
  text-transform: uppercase;
  text-decoration: none;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  text-shadow: 0 0.08rem 0.28rem rgba(0, 0, 0, 0.34);
}

.ghost-action,
.outline-action {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.public-stats {
  display: grid;
  gap: 0.55rem;
}

.public-stats > span,
.public-stats a,
.metric-grid div,
.metric-grid a,
.admin-grid article {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
}

.public-stats strong,
.metric-grid strong,
.admin-grid strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
}

.public-stats span,
.public-stats a,
.metric-grid span,
.metric-grid a,
.admin-grid span,
.admin-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.instagram-stat {
  display: grid;
  gap: 0.2rem;
  color: var(--text);
  text-decoration: none;
}

.instagram-stat strong {
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.instagram-stat small {
  color: var(--muted);
  font-size: 0.72rem;
}

.phone-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(52rem, calc(var(--app-height) - 2.6rem));
  min-height: 43rem;
  overflow: hidden;
  border: 0.55rem solid #1b1c22;
  border-radius: 2.4rem;
  background: #07080b;
}

.mobile-header,
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex: 0 0 auto;
}

.whatsapp-header-button {
  color: #ffffff !important;
  border-color: rgba(37, 211, 102, 0.42) !important;
  background: #25d366 !important;
  text-decoration: none;
  box-shadow: 0 0.35rem 0.9rem rgba(37, 211, 102, 0.2);
}

.whatsapp-header-button svg {
  width: 1.38rem;
  height: 1.38rem;
  fill: currentColor;
}

.whatsapp-header-button:hover,
.whatsapp-header-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0.45rem 1rem rgba(37, 211, 102, 0.24);
}

body[data-theme="light"] .whatsapp-header-button {
  color: #ffffff !important;
  border-color: rgba(37, 211, 102, 0.42) !important;
  background: #25d366 !important;
  box-shadow: 0 0.35rem 0.9rem rgba(37, 211, 102, 0.2);
}

.mobile-header {
  flex: 0 0 auto;
  height: calc(4rem + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 0.9rem 0;
  border-bottom: 1px solid var(--line);
  gap: 0.6rem;
}

.mobile-header-title {
  min-width: 0;
  text-align: center;
}

.mobile-header h2 {
  margin: 0.1rem 0 0;
  font-size: 1.12rem;
  text-align: center;
}

.icon-button {
  display: grid;
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
}

.notification-badge {
  position: absolute;
  top: -0.18rem;
  right: -0.18rem;
  min-width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--panel);
  border-radius: 999px;
  color: #171007;
  background: var(--gold);
  padding: 0 0.22rem;
  font-size: 0.58rem;
  font-weight: 1000;
  line-height: 0.85rem;
}

.icon-button.real-madrid-shortcut {
  overflow: visible;
  border-color: transparent;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.real-madrid-shortcut img {
  display: block;
  width: 1.18rem;
  height: 1.72rem;
  object-fit: contain;
  object-position: center;
}

body[data-theme="light"] .icon-button.real-madrid-shortcut {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body[data-theme="light"] .real-madrid-shortcut img {
  width: 1.28rem;
  height: 1.86rem;
}

.mobile-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.72rem 0.72rem calc(var(--mobile-nav-height) + 0.55rem + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(var(--mobile-nav-height) + 1rem + env(safe-area-inset-bottom));
  scrollbar-width: thin;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screen-in 220ms ease both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero-card {
  position: relative;
  display: grid;
  min-height: 22rem;
  overflow: hidden;
  align-content: end;
  border: 1px solid var(--line-strong);
  border-radius: 0.9rem;
  padding: 1rem;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.78) 0%, rgba(5, 5, 6, 0.44) 44%, rgba(5, 5, 6, 0.1) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.04) 0%, rgba(5, 5, 6, 0.2) 42%, rgba(5, 5, 6, 0.94) 100%),
    var(--home-hero-image) 56% center / cover;
  box-shadow: inset 0 -6rem 6rem rgba(0, 0, 0, 0.56);
}

body[data-theme="light"] .home-hero-card {
  background:
    linear-gradient(90deg, rgba(20, 13, 4, 0.28) 0%, rgba(20, 13, 4, 0.08) 48%, rgba(20, 13, 4, 0) 100%),
    linear-gradient(180deg, rgba(255, 250, 239, 0.02) 0%, rgba(255, 250, 239, 0.08) 42%, rgba(12, 9, 5, 0.72) 100%),
    var(--home-hero-image) 56% center / cover;
  border-color: rgba(158, 116, 43, 0.42);
  box-shadow:
    inset 0 -4.6rem 4.8rem rgba(25, 17, 7, 0.42),
    0 0.9rem 2.2rem rgba(89, 66, 25, 0.12);
}

.home-hero-logo {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 50%;
  filter: drop-shadow(0 0.45rem 0.8rem rgba(0, 0, 0, 0.72));
}

.theme-logo {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}

.theme-logo img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theme-logo__light {
  display: none;
}

body[data-theme="light"] .theme-logo__dark {
  display: none;
}

body[data-theme="light"] .theme-logo__light {
  display: block;
}

body[data-theme="light"] .home-hero-logo .theme-logo__dark {
  display: block;
}

body[data-theme="light"] .home-hero-logo .theme-logo__light {
  display: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 20rem;
}

.home-hero-copy h3 {
  max-width: 10ch;
  margin: 0.25rem 0 0.45rem;
  font-size: 2.25rem;
}

body[data-theme="light"] .home-hero-copy h3,
body[data-theme="light"] .home-hero-copy .kicker,
body[data-theme="light"] .home-hero-copy p:not(.kicker) {
  color: #fffaf0;
  text-shadow: 0 0.18rem 0.7rem rgba(0, 0, 0, 0.78);
}

.home-hero-copy p:not(.kicker) {
  margin-bottom: 0.85rem;
  color: #f4efe4;
  line-height: 1.35;
}

.home-hero-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.55rem;
}

.home-hero-card--compact {
  min-height: 13.8rem;
  align-content: end;
}

.home-hero-card--compact .home-hero-copy h3 {
  max-width: 12ch;
  margin-top: 0;
  font-size: 1.95rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.home-hero-card--compact .home-hero-copy p {
  max-width: 18rem;
}

.visual-card {
  position: relative;
  min-height: 12.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.88)),
    radial-gradient(ellipse at 50% 100%, rgba(216, 168, 79, 0.5), transparent 9rem),
    linear-gradient(140deg, #20232b, #0b0c10);
}

.hero-card h3 {
  max-width: 9ch;
  margin: 3.7rem 0 0.35rem;
  font-size: 2.35rem;
}

.hero-card p:last-child {
  max-width: 14rem;
  color: #f1ede3;
}

.match-light {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background:
    repeating-linear-gradient(90deg, transparent 0 1.4rem, rgba(255, 255, 255, 0.04) 1.4rem 1.45rem),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.32), transparent 5rem);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.metric-grid--single {
  grid-template-columns: 1fr;
}

.metric-grid div {
  padding: 0.65rem 0.35rem;
  text-align: center;
}

.metric-grid a {
  padding: 0.8rem 0.9rem;
}

.metric-grid strong {
  font-size: 1.05rem;
}

.metric-grid span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.56rem;
}

.mobile-instagram-stat {
  grid-template-columns: auto 1fr;
  align-items: center;
  text-align: left;
}

.mobile-instagram-stat span,
.mobile-instagram-stat small {
  grid-column: 2;
}

.mobile-instagram-stat strong {
  grid-row: 1 / span 2;
  font-size: 1.65rem;
}

.home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.home-benefit-grid--quick {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-benefit-card {
  display: grid;
  gap: 0.25rem;
  min-height: 5.35rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(216, 168, 79, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.04);
  padding: 0.7rem;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-benefit-grid--quick .home-benefit-card {
  min-height: 5.4rem;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.2rem 0.45rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0.45rem 1rem rgba(60, 45, 18, 0.06);
}

.home-benefit-card span,
.home-feature-card span {
  color: var(--gold-2);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-benefit-card strong {
  line-height: 1.2;
}

.home-benefit-grid--quick .home-benefit-card strong {
  font-size: 0.76rem;
  line-height: 1.1;
}

.home-benefit-grid--quick .home-benefit-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.2;
}

.home-benefit-icon {
  grid-row: 1 / span 2;
  display: inline-grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 0.45rem;
  color: var(--gold-2);
  background: rgba(191, 132, 43, 0.1);
  font-size: 1rem !important;
}

.home-benefit-icon--crest img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.home-feature-strip {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.95rem;
}

.home-feature-card {
  display: grid;
  min-height: auto;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: var(--text);
  overflow: hidden;
  padding: 7.1rem 0.8rem 0.8rem;
  text-align: left;
  background-color: #050506;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain, contain;
  transition: transform 200ms ease, border-color 200ms ease, filter 200ms ease;
}

.home-benefit-card:hover,
.home-feature-card:hover {
  border-color: rgba(216, 168, 79, 0.42);
}

.home-benefit-card:active,
.home-feature-card:active {
  transform: translateY(1px) scale(0.995);
}

.home-feature-card strong {
  max-width: none;
  margin-top: 0.15rem;
  font-size: 1.2rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.share-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  border: 1px solid rgba(216, 168, 79, 0.42);
  border-radius: 0.55rem;
  color: var(--gold);
  background: rgba(216, 168, 79, 0.08);
  padding: 0.55rem 0.8rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.detail-panel > .share-action,
.community-post-detail > .share-action,
.draw-detail-page > .share-action {
  width: 100%;
}

.feature-tickets {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88)),
    var(--home-tickets-image);
}

.feature-travel {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88)),
    var(--home-travel-image);
}

.feature-football {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.86)),
    var(--home-madrid-today-image, radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.52), transparent 3.4rem), linear-gradient(135deg, #1b1e29, #07080b 52%, #16100a));
}

.feature-merch {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78)),
    var(--home-merch-image);
}

body[data-theme="light"] .home-feature-card {
  color: #fffaf0;
  border-color: rgba(158, 116, 43, 0.35);
  box-shadow: 0 0.65rem 1.45rem rgba(89, 66, 25, 0.1);
  text-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.72);
}

body[data-theme="light"] .feature-tickets {
  background-image:
    linear-gradient(180deg, rgba(16, 12, 6, 0.02), rgba(16, 12, 6, 0.54)),
    var(--home-tickets-image);
}

body[data-theme="light"] .feature-travel {
  background-image:
    linear-gradient(180deg, rgba(16, 12, 6, 0.02), rgba(16, 12, 6, 0.54)),
    var(--home-travel-image);
}

body[data-theme="light"] .feature-football {
  background-image:
    linear-gradient(180deg, rgba(16, 12, 6, 0.02), rgba(16, 12, 6, 0.58)),
    var(--home-madrid-today-image, radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.54), transparent 3.4rem), linear-gradient(135deg, #d7dcea, #ffffff 54%, #f4e1b5));
}

body[data-theme="light"] .feature-merch {
  background-image:
    linear-gradient(180deg, rgba(16, 12, 6, 0.02), rgba(16, 12, 6, 0.48)),
    var(--home-merch-image);
}

.home-live-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.7rem 0 0.95rem;
}

.home-live-metrics button {
  display: grid;
  min-width: 0;
  min-height: 4.2rem;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(24, 22, 19, 0.12);
  border-radius: 0.7rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.25rem;
  box-shadow: 0 0.45rem 1rem rgba(60, 45, 18, 0.06);
}

.home-live-metrics span {
  color: var(--gold);
  font-size: 1.05rem;
}

.home-live-metrics strong {
  margin-top: 0.05rem;
  font-size: 1.02rem;
  line-height: 1;
}

.home-live-metrics small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.54rem;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
}

.home-dashboard-stack {
  display: grid;
  gap: 0.72rem;
}

.home-section-card {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(24, 22, 19, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.78rem;
  box-shadow: 0 0.5rem 1.25rem rgba(60, 45, 18, 0.07);
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-section-head h3 {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.home-section-head button,
.home-section-head span {
  border: 0;
  color: var(--gold-2);
  background: transparent;
  padding: 0;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-topic-list,
.home-draw-list {
  display: grid;
  gap: 0.15rem;
}

.home-topic-row,
.home-draw-row,
.home-event-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(24, 22, 19, 0.08);
  color: var(--text);
  background: transparent;
  padding: 0.48rem 0;
  text-align: left;
}

.home-topic-row:first-child,
.home-draw-row:first-child,
.home-event-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-topic-row strong,
.home-draw-row strong,
.home-event-row strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.15;
}

.home-topic-row small,
.home-draw-row small,
.home-event-row small,
.home-empty-row small {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.25;
}

.home-empty-row {
  color: var(--text);
  padding: 0.25rem 0 0.1rem;
}

.home-draw-row > button:last-child,
.home-event-row > button:last-child {
  min-height: 2.15rem;
  border: 1px solid rgba(191, 132, 43, 0.32);
  border-radius: 0.5rem;
  color: var(--gold-2);
  background: rgba(191, 132, 43, 0.08);
  padding: 0.35rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-draw-thumb,
.home-event-image {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0.5rem;
  background: rgba(191, 132, 43, 0.1);
  padding: 0;
}

.home-draw-thumb img,
.home-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-match-card {
  gap: 0.45rem;
}

.home-match-button {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.15rem 0;
}

.home-match-team {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.home-match-team img,
.home-match-team > span {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.home-match-team strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.home-match-vs {
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.home-match-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.25;
  text-align: center;
}

.home-inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.home-inline-actions .primary-action,
.home-inline-actions .outline-action {
  min-height: 2.25rem;
  font-size: 0.68rem;
}

.home-madrid-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.home-madrid-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.home-madrid-stats span {
  display: grid;
  justify-items: center;
  border-radius: 0.55rem;
  background: rgba(191, 132, 43, 0.08);
  padding: 0.48rem 0.25rem;
}

.home-madrid-stats strong {
  color: var(--gold-2);
  font-size: 1rem;
  line-height: 1;
}

.home-madrid-stats small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.56rem;
}

.home-virtual-cta {
  position: relative;
  display: grid;
  min-height: 8.6rem;
  overflow: hidden;
  border: 1px solid rgba(191, 132, 43, 0.42);
  border-radius: 0.75rem;
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(191, 132, 43, 0.98), rgba(146, 88, 15, 0.98)),
    radial-gradient(circle at 100% 60%, rgba(255, 255, 255, 0.24), transparent 6rem);
  padding: 0.82rem;
}

.home-virtual-cta div {
  position: relative;
  z-index: 1;
  max-width: 72%;
}

.home-virtual-cta h3,
.home-virtual-cta p {
  margin: 0;
}

.home-virtual-cta h3 {
  font-size: 1rem;
  text-transform: uppercase;
}

.home-virtual-cta p {
  margin-top: 0.2rem;
  font-weight: 900;
}

.home-virtual-cta small {
  display: block;
  margin: 0.25rem 0 0.55rem;
  color: rgba(255, 250, 240, 0.86);
  font-size: 0.66rem;
  line-height: 1.28;
}

.home-virtual-cta .outline-action {
  width: min(13rem, 100%);
  min-height: 2.25rem;
  border-color: rgba(255, 255, 255, 0.58);
  color: #171512;
  background: #fff;
  font-size: 0.68rem;
}

.home-virtual-cta img {
  position: absolute;
  right: 0.55rem;
  bottom: 0.3rem;
  width: 5.4rem;
  height: 5.4rem;
  object-fit: contain;
  opacity: 0.85;
}

body:not([data-theme="light"]) .home-benefit-grid--quick .home-benefit-card,
body:not([data-theme="light"]) .home-live-metrics button,
body:not([data-theme="light"]) .home-section-card {
  border-color: var(--line);
  background:
    linear-gradient(145deg, rgba(216, 168, 79, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

body:not([data-theme="light"]) .home-benefit-icon,
body:not([data-theme="light"]) .home-draw-thumb,
body:not([data-theme="light"]) .home-event-image,
body:not([data-theme="light"]) .home-madrid-stats span {
  background: rgba(216, 168, 79, 0.12);
}

body:not([data-theme="light"]) .home-topic-row,
body:not([data-theme="light"]) .home-draw-row,
body:not([data-theme="light"]) .home-event-row {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body:not([data-theme="light"]) .home-draw-row > button:last-child,
body:not([data-theme="light"]) .home-event-row > button:last-child {
  border-color: rgba(216, 168, 79, 0.36);
  background: rgba(216, 168, 79, 0.1);
}

.section-title {
  margin: 1.2rem 0 0.65rem;
  font-size: 1rem;
}

.compact-list,
.event-list,
.ticket-list,
.menu-list,
.offer-list,
.shop-grid {
  display: grid;
  gap: 0.7rem;
}

.list-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 4.6rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.7rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.list-row.wide {
  grid-template-columns: 1fr auto;
}

.list-row.static {
  cursor: default;
}

.list-row:not(.static):hover {
  border-color: rgba(216, 168, 79, 0.36);
  background: rgba(255, 255, 255, 0.065);
}

.list-row:not(.static):active {
  transform: translateY(1px) scale(0.995);
}

.list-row small,
.post-head small,
.profile-box small,
.member-card small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
}

.list-row em {
  padding: 0.5rem 0.7rem;
  border-radius: 0.35rem;
  color: #100c05;
  background: var(--gold);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

.module-screen-head {
  margin-bottom: 0.85rem;
}

.module-screen-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.module-screen-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-card,
.offer-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.85rem;
}

.status-card {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  margin-bottom: 0.75rem;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(216, 168, 79, 0.16), rgba(135, 87, 216, 0.08)),
    rgba(255, 255, 255, 0.05);
}

button.status-card {
  cursor: pointer;
}

button.status-card:active {
  transform: translateY(1px);
}

.status-card span,
.offer-card small,
.product-card small {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.status-card strong {
  font-size: 1.2rem;
}

.membership-history {
  display: grid;
  gap: 0.6rem;
}

.membership-history h3 {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

#screen-memberships .module-screen-head h3 {
  font-size: 1.55rem;
  line-height: 1;
}

#screen-memberships .module-screen-head p {
  max-width: 20rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.membership-experience {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.membership-active-card {
  position: relative;
  display: grid;
  gap: 0.52rem;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(216, 168, 79, 0.74);
  border-radius: 0.85rem;
  color: var(--text);
  text-align: left;
  background:
    radial-gradient(circle at 78% 22%, rgba(240, 196, 108, 0.32), transparent 6rem),
    radial-gradient(circle at 88% 72%, rgba(216, 168, 79, 0.12), transparent 8rem),
    linear-gradient(135deg, rgba(216, 168, 79, 0.13), rgba(255, 255, 255, 0.025) 50%, rgba(216, 168, 79, 0.08)),
    #0a0a0b;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(240, 196, 108, 0.07);
}

.membership-card-watermark {
  position: absolute;
  right: -0.65rem;
  top: 1rem;
  width: 8rem;
  opacity: 0.13;
  pointer-events: none;
}

.membership-card-watermark img {
  width: 100%;
  height: auto;
}

.membership-active-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.membership-active-card > strong {
  position: relative;
  z-index: 1;
  max-width: 72%;
  font-size: 1.65rem;
  line-height: 1;
}

.membership-state-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(69, 201, 121, 0.65);
  border-radius: 999px;
  color: #6ef09f;
  background: rgba(29, 118, 61, 0.22);
  padding: 0.32rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.membership-state-pill::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.membership-state-pill.is-pending {
  border-color: rgba(216, 168, 79, 0.58);
  color: var(--gold-2);
  background: rgba(216, 168, 79, 0.13);
}

.membership-price {
  position: relative;
  z-index: 1;
  color: var(--gold-2);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.membership-price small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.membership-card-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 0.18rem 0 0.2rem;
  background: rgba(255, 255, 255, 0.18);
}

.membership-active-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.membership-active-meta > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 0.5rem;
  align-items: center;
}

.membership-active-meta .membership-mini-icon {
  grid-row: 1 / 3;
}

.membership-active-meta small {
  color: var(--muted);
  font-size: 0.78rem;
}

.membership-active-meta em {
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-mini-icon,
.membership-plan-icon,
.membership-chip-icon,
.membership-link-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.membership-mini-icon {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--gold-2);
}

.membership-mini-icon::before,
.membership-mini-icon::after,
.membership-plan-icon::before,
.membership-plan-icon::after,
.membership-chip-icon::before,
.membership-chip-icon::after,
.membership-link-icon::before,
.membership-link-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.membership-mini-icon--crown::before {
  width: 1rem;
  height: 0.55rem;
  border-bottom: 0.18rem solid currentColor;
  background: linear-gradient(135deg, transparent 0 30%, currentColor 31% 39%, transparent 40% 58%, currentColor 59% 67%, transparent 68%);
}

.membership-mini-icon--calendar::before {
  width: 1.22rem;
  height: 1.12rem;
  border: 0.14rem solid currentColor;
  border-radius: 0.12rem;
}

.membership-mini-icon--calendar::after {
  width: 0.85rem;
  height: 0.14rem;
  background: currentColor;
  box-shadow: 0 0.34rem 0 currentColor;
}

.membership-mini-icon--card::before {
  width: 1.24rem;
  height: 0.88rem;
  border: 0.14rem solid currentColor;
  border-radius: 0.12rem;
}

.membership-mini-icon--card::after {
  width: 0.72rem;
  height: 0.12rem;
  background: currentColor;
  transform: translateY(-0.18rem);
}

#membershipPlans {
  display: grid;
  gap: 0.8rem;
}

.membership-plan-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.08), transparent 5rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #0c0d10;
  padding: 0.9rem;
}

.membership-plan-card.is-popular {
  border-color: rgba(216, 168, 79, 0.86);
  box-shadow: inset 0 0 0 1px rgba(240, 196, 108, 0.06);
}

.membership-plan-head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding-right: 1.1rem;
}

.membership-plan-head h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.08;
}

.membership-plan-head p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.membership-plan-head p strong {
  color: var(--gold-2);
  font-size: 1.18rem;
}

.membership-plan-head small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.membership-plan-description {
  display: -webkit-box !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.membership-plan-description.is-expanded {
  display: block !important;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.membership-description-toggle {
  width: fit-content;
  min-height: 1.75rem;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(216, 168, 79, 0.1);
  padding: 0 0.62rem;
  font-size: 0.74rem;
  font-weight: 850;
}

.membership-plan-icon {
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(216, 168, 79, 0.28);
  border-radius: 50%;
  color: var(--gold-2);
  background: radial-gradient(circle, rgba(216, 168, 79, 0.14), rgba(255, 255, 255, 0.025));
}

.membership-plan-icon--phone::before {
  width: 1.15rem;
  height: 1.78rem;
  border: 0.15rem solid currentColor;
  border-radius: 0.16rem;
}

.membership-plan-icon--phone::after {
  bottom: 0.62rem;
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 50%;
  background: currentColor;
}

.membership-plan-icon--member::before {
  width: 1.35rem;
  height: 1rem;
  border: 0.15rem solid currentColor;
  border-top: 0;
  border-radius: 0 0 0.35rem 0.35rem;
  transform: translateY(0.28rem);
}

.membership-plan-icon--member::after {
  width: 0.72rem;
  height: 0.72rem;
  border: 0.15rem solid currentColor;
  border-radius: 50%;
  transform: translateY(-0.45rem);
  box-shadow: -0.62rem 0.78rem 0 -0.3rem currentColor, 0.62rem 0.78rem 0 -0.3rem currentColor;
}

.membership-popular {
  position: absolute;
  top: -0.25rem;
  right: 1.05rem;
  border: 1px solid rgba(216, 168, 79, 0.36);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(216, 168, 79, 0.08);
  padding: 0.26rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.membership-chevron,
.membership-link-card em {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
  border-top: 0.12rem solid currentColor;
  border-right: 0.12rem solid currentColor;
  color: var(--text);
  transform: rotate(45deg);
}

.membership-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.membership-feature-chips span {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.38rem 0.58rem;
  color: var(--text);
  font-size: 0.78rem;
}

.membership-chip-icon {
  width: 1rem;
  height: 1rem;
  color: var(--gold-2);
}

.membership-chip-icon--calendar::before,
.membership-chip-icon--ticket::before,
.membership-chip-icon--bag::before,
.membership-chip-icon--lock::before {
  width: 0.86rem;
  height: 0.76rem;
  border: 0.12rem solid currentColor;
  border-radius: 0.1rem;
}

.membership-chip-icon--ticket::before {
  border-radius: 0.2rem;
  transform: rotate(-4deg);
}

.membership-chip-icon--plane::before {
  width: 0.95rem;
  height: 0.12rem;
  background: currentColor;
  transform: rotate(-28deg);
}

.membership-chip-icon--plane::after {
  width: 0.45rem;
  height: 0.45rem;
  border-top: 0.12rem solid currentColor;
  border-right: 0.12rem solid currentColor;
  transform: rotate(17deg) translate(0.12rem, -0.14rem);
}

.membership-chip-icon--gift::before {
  width: 0.84rem;
  height: 0.72rem;
  border: 0.12rem solid currentColor;
}

.membership-chip-icon--gift::after {
  width: 0.12rem;
  height: 0.9rem;
  background: currentColor;
  box-shadow: 0.36rem -0.28rem 0 -0.08rem currentColor, -0.36rem -0.28rem 0 -0.08rem currentColor;
}

.membership-chip-icon--trophy::before {
  width: 0.72rem;
  height: 0.62rem;
  border: 0.12rem solid currentColor;
  border-radius: 0.1rem 0.1rem 0.35rem 0.35rem;
}

.membership-chip-icon--trophy::after {
  width: 0.62rem;
  height: 0.12rem;
  background: currentColor;
  transform: translateY(0.46rem);
}

.membership-chip-icon--star::before {
  width: 0.72rem;
  height: 0.72rem;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 56%, 82% 100%, 50% 72%, 18% 100%, 31% 56%, 0 35%, 38% 35%);
}

.membership-plan-action {
  min-height: 2.55rem;
  border-radius: 0.55rem;
}

#paymentList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.membership-link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 4.95rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: var(--text);
  text-align: left;
  background:
    radial-gradient(circle at 18% 20%, rgba(216, 168, 79, 0.1), transparent 4rem),
    rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
}

.membership-link-card.is-pending {
  grid-column: 1 / -1;
  border-color: rgba(216, 168, 79, 0.5);
}

.membership-link-card strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.1;
}

.membership-link-card small {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.membership-link-icon {
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(216, 168, 79, 0.38);
  border-radius: 50%;
  color: var(--gold-2);
  background: rgba(216, 168, 79, 0.06);
}

.membership-link-icon--doc::before,
.membership-link-icon--receipt::before,
.membership-link-icon--card::before {
  width: 1.1rem;
  height: 1.35rem;
  border: 0.14rem solid currentColor;
  border-radius: 0.1rem;
}

.membership-link-icon--receipt::after {
  width: 0.64rem;
  height: 0.12rem;
  background: currentColor;
  box-shadow: 0 0.32rem 0 currentColor;
}

.membership-link-icon--card::before {
  height: 0.86rem;
}

.membership-link-icon--card::after {
  width: 0.72rem;
  height: 0.12rem;
  background: currentColor;
  transform: translateY(-0.16rem);
}

.offer-card {
  display: grid;
  gap: 0.75rem;
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease;
}

.product-card {
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease;
}

.offer-card:hover,
.product-card:hover {
  border-color: rgba(216, 168, 79, 0.42);
}

.offer-card:active,
.product-card:active {
  transform: translateY(1px) scale(0.995);
}

.visual-offer {
  min-height: auto;
  align-content: end;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.18), rgba(216, 168, 79, 0.18)),
    #111318;
  background-color: #111318;
  background-position: top center, top center !important;
  background-repeat: no-repeat;
  background-size: 100% 10.4rem, contain !important;
  padding-top: 11.2rem;
}

.visual-offer > div {
  display: grid;
  gap: 0.25rem;
  margin: -0.2rem -0.85rem 0;
  background: #111318;
  padding: 0.75rem 0.85rem 0;
}

.visual-offer > .primary-action {
  margin-top: 0.65rem;
}

.draw-list-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  background:
    linear-gradient(145deg, rgba(135, 87, 216, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04) !important;
  background-image: none !important;
  padding-top: 0.85rem;
}

.draw-list-card > div {
  margin: 0;
  background: transparent;
  padding: 0;
}

.draw-list-art {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(13rem, 58vw, 22rem);
  max-height: min(70vh, 34rem);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background:
    linear-gradient(180deg, rgba(7, 7, 12, 0.08), rgba(7, 7, 12, 0.18)),
    var(--media-src) center / cover no-repeat,
    rgba(216, 168, 79, 0.08);
  padding: 0;
}

.draw-list-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--media-src) center / cover no-repeat;
  filter: blur(18px) saturate(1.08);
  opacity: 0.45;
  transform: scale(1.08);
}

.draw-list-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.22));
}

.draw-list-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 34rem);
  object-fit: contain;
}

.draw-list-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 0.48rem;
  color: #fff;
  background: rgba(82, 52, 107, 0.58);
  backdrop-filter: blur(10px);
  padding: 0.34rem 0.5rem;
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.draw-list-badge span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0.5rem rgba(216, 168, 79, 0.8);
}

.draw-list-body {
  display: grid;
  gap: 0.25rem;
}

.draw-list-body p:not(.kicker) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.draw-list-card h3 {
  font-size: 1.05rem;
  line-height: 1.12;
}

.offer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.offer-actions .primary-action,
.offer-actions .outline-action {
  min-height: 2.65rem;
}

#screen-draws .offer-list {
  min-height: 0;
}

.offer-card h3,
.product-card h3 {
  margin: 0.1rem 0 0.25rem;
  font-size: 1.2rem;
}

.offer-card p,
.product-card p {
  margin: 0;
  color: var(--muted);
}

.inline-entry-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.inline-entry-form input {
  min-width: 0;
}

.draw-detail-page {
  display: grid;
  gap: 0.65rem;
  padding-bottom: 0.4rem;
}

.draw-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgba(7, 7, 12, 0.02), rgba(7, 7, 12, 0.18) 56%, rgba(7, 7, 12, 0.9)),
    url("/assets/home/sorteo-hero-contraataque.png") center 34% / cover no-repeat;
  min-height: 20.7rem;
}

.draw-hero--image {
  min-height: 0;
  background: #050506;
}

.draw-hero__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.draw-hero::before,
.draw-hero::after {
  content: "";
  position: absolute;
  top: 4.7rem;
  width: 0.42rem;
  height: 9.6rem;
  border-radius: 999px;
  background: #dca8ff;
  box-shadow: 0 0 1rem rgba(210, 138, 255, 0.85);
}

.draw-hero::before {
  left: 1.6rem;
  transform: rotate(13deg);
}

.draw-hero::after {
  right: 1.6rem;
  transform: rotate(-13deg);
}

.draw-hero--image::before,
.draw-hero--image::after {
  display: none;
}

.draw-status-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(221, 172, 255, 0.78);
  border-radius: 0.65rem;
  color: #fff;
  background: rgba(95, 38, 130, 0.38);
  padding: 0.58rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.draw-status-badge span {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff2ad, var(--gold));
  box-shadow: 0 0 0.7rem rgba(216, 168, 79, 0.75);
}

.draw-title-card,
.draw-countdown-card,
.draw-stats-card,
.draw-info-grid > div {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background:
    linear-gradient(135deg, rgba(135, 87, 216, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
}

.draw-title-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-top: 0;
  padding: 0.78rem;
  backdrop-filter: blur(10px);
}

.draw-title-card__crest {
  display: grid;
  width: 3.8rem;
  height: 3.8rem;
  place-items: center;
  border-right: 1px solid var(--line);
  padding-right: 0.75rem;
}

.draw-title-card__crest img {
  grid-area: 1 / 1;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.draw-title-card h3 {
  margin: 0 0 0.28rem;
  font-size: 0.98rem;
  line-height: 1.16;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.draw-title-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.draw-countdown-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
}

.draw-orb {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  position: relative;
  border: 1px solid rgba(216, 168, 79, 0.36);
  border-radius: 50%;
  color: var(--gold-2);
  background:
    radial-gradient(circle at 35% 24%, rgba(216, 168, 79, 0.18), transparent 38%),
    linear-gradient(145deg, #15161b, #07080b);
  box-shadow: inset 0 0 1rem rgba(216, 168, 79, 0.06);
  font-weight: 1000;
}

.draw-orb::before,
.draw-orb::after,
.draw-hourglass::before,
.draw-hourglass::after,
.draw-line-icon::before,
.draw-line-icon::after,
.draw-action-icon::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.draw-orb--calendar::before {
  width: 1.15rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-top-width: 0.32rem;
  border-radius: 0.15rem;
}

.draw-orb--users::before,
.draw-orb--users::after {
  width: 0.52rem;
  height: 0.52rem;
  top: 0.78rem;
  border-radius: 50%;
  background: currentColor;
}

.draw-orb--users::before {
  left: 0.92rem;
}

.draw-orb--users::after {
  right: 0.92rem;
}

.draw-orb--winner::before {
  width: 1.05rem;
  height: 0.78rem;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 0.35rem 0.35rem;
}

.draw-orb--winner::after {
  width: 0.72rem;
  height: 0.18rem;
  bottom: 0.85rem;
  background: currentColor;
  box-shadow: 0 -0.34rem 0 -0.05rem currentColor;
}

.draw-orb--status::before {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid currentColor;
  border-radius: 0.28rem;
  transform: rotate(45deg);
}

.draw-orb--status::after {
  width: 0.65rem;
  height: 0.36rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.draw-hourglass {
  position: relative;
  display: block;
  width: 2.1rem;
  height: 2.4rem;
  font-style: normal;
  color: var(--gold-2);
  filter: drop-shadow(0 0.18rem 0.3rem rgba(216, 168, 79, 0.2));
}

.draw-hourglass::before {
  inset: 0.18rem 0.38rem;
  border: 2px solid currentColor;
  border-radius: 0.2rem;
  transform: perspective(3rem) rotateX(18deg);
}

.draw-hourglass::after {
  left: 0.72rem;
  top: 0.76rem;
  width: 0.66rem;
  height: 0.82rem;
  background: linear-gradient(180deg, transparent 0 42%, currentColor 42% 58%, transparent 58%);
}

.draw-countdown-card span,
.draw-stats-card small,
.draw-info-grid strong {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.draw-stats-card small {
  max-width: 100%;
  font-size: 0.58rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.draw-info-grid strong {
  font-size: 0.72rem;
}

.draw-countdown-card strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1;
}

.draw-countdown-card em {
  font-size: 2.55rem;
  font-style: normal;
  filter: drop-shadow(0 0.2rem 0.45rem rgba(216, 168, 79, 0.24));
}

.draw-stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0.65rem 0;
}

.draw-stats-card div {
  display: grid;
  justify-items: center;
  gap: 0.22rem;
  min-width: 0;
  padding: 0 0.45rem;
  text-align: center;
}

.draw-stats-card div + div {
  border-left: 1px solid var(--line);
}

.draw-stats-card .draw-orb {
  width: 2.75rem;
  height: 2.75rem;
}

.draw-stats-card strong {
  font-size: 1.06rem;
  font-weight: 850;
}

.draw-state-pill {
  border: 1px solid rgba(69, 201, 121, 0.65);
  border-radius: 0.45rem;
  color: #f1fff5;
  background: rgba(69, 201, 121, 0.42);
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem !important;
  font-weight: 850;
}

.draw-info-section h4 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 0.45rem 0 0.7rem;
  color: var(--gold-2);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.draw-info-section h4 span {
  height: 1px;
  background: rgba(216, 168, 79, 0.45);
}

.draw-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.draw-info-grid > div {
  display: grid;
  grid-template-columns: 2.15rem minmax(0, 1fr);
  gap: 0.2rem 0.55rem;
  align-items: center;
  min-height: 4.35rem;
  padding: 0.62rem;
}

.draw-info-grid > div > span {
  position: relative;
  grid-row: 1 / span 2;
  color: var(--gold-2);
  font-size: 0;
  width: 1.85rem;
  height: 1.85rem;
}

.draw-line-icon--gift::before {
  inset: 0.45rem 0.2rem 0.2rem;
  border: 2px solid currentColor;
  border-radius: 0.1rem;
}

.draw-line-icon--gift::after {
  left: 0.85rem;
  top: 0.22rem;
  width: 2px;
  height: 1.34rem;
  background: currentColor;
  box-shadow: -0.45rem 0.34rem 0 -0.03rem currentColor, 0.45rem 0.34rem 0 -0.03rem currentColor;
}

.draw-line-icon--card::before {
  inset: 0.28rem 0.1rem;
  border: 2px solid currentColor;
  border-radius: 0.16rem;
}

.draw-line-icon--card::after {
  left: 0.35rem;
  right: 0.35rem;
  top: 0.72rem;
  height: 2px;
  background: currentColor;
}

.draw-line-icon--repeat::before {
  inset: 0.25rem;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
}

.draw-line-icon--repeat::after {
  right: 0.15rem;
  top: 0.33rem;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(38deg);
}

.draw-line-icon--announce::before {
  left: 0.25rem;
  top: 0.56rem;
  width: 1.1rem;
  height: 0.76rem;
  border: 2px solid currentColor;
  border-right-width: 0.45rem;
  transform: skewY(-10deg);
}

.draw-line-icon--announce::after {
  left: 1.25rem;
  top: 0.66rem;
  width: 0.34rem;
  height: 0.56rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.draw-info-grid small {
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.draw-participate-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 4rem;
  border: 1px solid rgba(255, 224, 145, 0.75);
  border-radius: 0.8rem;
  color: #090909;
  background: linear-gradient(135deg, #f7ce65, #d89b2d);
  padding: 0.7rem 0.9rem;
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.35), 0 0.8rem 1.7rem rgba(216, 168, 79, 0.16);
}

.draw-participate-action span {
  position: relative;
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-2);
  background: #08090d;
  font-size: 1.3rem;
}

.draw-action-icon::before {
  left: 0.67rem;
  top: 0.52rem;
  width: 1.05rem;
  height: 0.8rem;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 0.32rem 0.32rem;
}

.draw-participate-action strong {
  font-size: 1.08rem;
  letter-spacing: 0.07em;
  font-weight: 850;
  text-transform: uppercase;
}

.draw-participate-action em {
  font-size: 2rem;
  font-style: normal;
}

.draw-participate-action:disabled {
  color: #312a1a;
  opacity: 0.72;
}

.draw-rules {
  color: var(--gold-2);
  text-align: center;
}

.draw-rules summary {
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

.draw-rules summary::-webkit-details-marker {
  display: none;
}

.draw-rules p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: left;
}

body[data-theme="light"] .draw-hero,
body[data-theme="light"] .draw-title-card,
body[data-theme="light"] .draw-countdown-card,
body[data-theme="light"] .draw-stats-card,
body[data-theme="light"] .draw-info-grid > div {
  border-color: rgba(158, 116, 43, 0.28);
}

.result-pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(216, 168, 79, 0.45);
  border-radius: 999px;
  color: var(--gold) !important;
  background: rgba(216, 168, 79, 0.1);
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.mini-ranking {
  display: grid;
  gap: 0.3rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.mini-ranking li {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.45rem;
  color: var(--text);
  font-size: 0.82rem;
}

.mini-ranking span {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border-radius: 50%;
  color: #171007;
  background: var(--gold);
  font-size: 0.68rem;
  font-weight: 1000;
}

.product-card {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 0.8rem;
}

.product-art {
  min-height: 8.4rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.45), transparent 2.8rem),
    linear-gradient(140deg, #242631, #0b0c10);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover, contain;
}

.product-buy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin-top: 0.6rem;
}

.product-detail-buy {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.8rem;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.product-gallery span {
  min-height: 5.4rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background-color: #111318;
  background-position: center;
  background-size: cover;
}

.product-buy button {
  grid-column: 1 / -1;
}

.product-buy select {
  grid-column: 1 / -1;
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--text);
  background: var(--surface);
  padding: 0 0.65rem;
}

.shop-experience {
  display: grid;
  gap: 0.95rem;
}

.shop-hero {
  position: relative;
  display: grid;
  min-height: 16.2rem;
  overflow: hidden;
  align-content: end;
  border: 1px solid var(--line-strong);
  border-radius: 0.8rem;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.95) 0%, rgba(5, 5, 6, 0.62) 45%, rgba(5, 5, 6, 0.08) 100%),
    radial-gradient(circle at 86% 28%, rgba(255, 255, 255, 0.12), transparent 8rem),
    var(--shop-hero-image),
    linear-gradient(145deg, #17191f, #050506);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 1.05rem;
  box-shadow: inset 0 0 0 1px rgba(240, 196, 108, 0.06);
}

.shop-hero-badge {
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  border-radius: 0.4rem;
  color: #191108;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.shop-hero-copy {
  display: grid;
  gap: 0.35rem;
  max-width: 62%;
  margin-top: 2.4rem;
}

.shop-hero-copy strong {
  font-size: 1.9rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.shop-hero-copy small {
  color: #d8d3ca;
  font-size: 0.92rem;
  line-height: 1.25;
}

.shop-hero-copy em {
  color: var(--gold-2);
  font-size: 1.45rem;
  font-style: normal;
  font-weight: 1000;
}

.shop-hero-action {
  width: fit-content;
  min-width: 8rem;
  border-radius: 0.45rem;
  color: #130d06;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.shop-categories {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
}

.shop-categories::-webkit-scrollbar {
  display: none;
}

.shop-categories button {
  flex: 0 0 auto;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  padding: 0 0.95rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.shop-categories .is-selected {
  border-color: var(--line-strong);
  color: #170f06;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.shop-section-title {
  margin: 0;
  color: var(--gold-2);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.shop-product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #0c0d11;
}

.shop-product-card .product-art {
  width: 100%;
  min-height: 9.5rem;
  border: 0;
  border-radius: 0;
  background-size: cover;
}

.shop-product-body {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem;
}

.shop-product-body h3 {
  display: -webkit-box;
  min-height: 2.1rem;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  text-transform: none;
}

.shop-product-body p {
  color: var(--muted);
  font-size: 0.78rem;
}

.shop-product-body .product-buy {
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.45rem;
}

.shop-product-body .product-buy button {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  min-height: 2.15rem;
  padding: 0 0.75rem;
}

.product-detail-panel {
  display: grid;
  gap: 0.85rem;
}

.product-media-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 72% 24%, rgba(216, 168, 79, 0.2), transparent 8rem),
    #101116;
}

.product-media-main {
  display: block;
  width: 100%;
  min-height: min(58dvh, 25rem);
  border: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.product-media-dots {
  position: absolute;
  right: 0;
  bottom: 0.7rem;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.product-media-dots button {
  width: 0.48rem;
  height: 0.48rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  padding: 0;
}

.product-media-dots .is-selected {
  background: var(--gold-2);
}

.product-detail-copy h3 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
  text-transform: none;
}

.product-detail-copy > strong {
  display: block;
  color: var(--gold-2);
  font-size: 1.5rem;
}

.product-detail-copy p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.product-gallery {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.product-gallery button {
  flex: 0 0 4.8rem;
  height: 4.8rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background-color: #111318;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.product-gallery .is-selected {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 2px rgba(216, 168, 79, 0.16);
}

.product-options {
  display: grid;
  gap: 0.55rem;
}

.product-option-line,
.product-options label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.product-option-line {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0 0.75rem;
}

.product-option-line strong {
  color: var(--text);
}

.product-options select {
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--text);
  background: var(--panel);
  padding: 0 0.7rem;
}

.product-detail-actions {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.4rem;
}

.product-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.94);
  padding: calc(0.9rem + env(safe-area-inset-top)) 0.9rem calc(1rem + env(safe-area-inset-bottom));
}

.product-image-viewer__close,
.product-image-viewer__controls button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.product-image-viewer__close {
  justify-self: end;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  font-size: 1.65rem;
}

.product-image-viewer__canvas {
  display: grid;
  min-height: 0;
  overflow: auto;
  place-items: center;
  touch-action: pan-x pan-y pinch-zoom;
}

.product-image-viewer__canvas img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 140ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.product-image-viewer__controls {
  display: grid;
  grid-template-columns: 2.7rem 4rem 2.7rem;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.product-image-viewer__controls button {
  min-height: 2.5rem;
  border-radius: 0.55rem;
  font-size: 1.15rem;
}

.product-image-viewer__controls span {
  color: var(--gold-2);
  font-weight: 900;
  text-align: center;
}

.mini-action {
  min-height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: #171007;
  background: var(--gold);
  padding: 0 0.65rem;
  font-weight: 900;
}

.club-badge {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: #f6f0e5;
  font-weight: 1000;
  font-size: 0.75rem;
}

.club-badge.purple {
  color: white;
  background: var(--purple);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
}

.segmented--two {
  grid-template-columns: repeat(2, 1fr);
}

.segmented button {
  min-height: 2.35rem;
  border: 0;
  border-radius: 0.35rem;
  color: var(--muted);
  background: transparent;
}

.segmented .is-selected {
  color: #171007;
  background: var(--gold);
  font-weight: 1000;
}

.post-card,
.member-card,
.join-form {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
}

.post-card + .post-card {
  margin-top: 0.8rem;
}

.community-stories {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.community-section-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: end;
}

.community-section-head span {
  color: var(--gold-2);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.community-section-head strong {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

.story-rail {
  display: grid;
  grid-auto-columns: minmax(12.5rem, 72%);
  grid-auto-flow: column;
  gap: 0.65rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.2rem;
}

.story-card {
  display: grid;
  align-content: space-between;
  min-height: 18rem;
  width: 100%;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  padding: 0.75rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 50% 20%, rgba(216, 168, 79, 0.36), transparent 8rem),
    var(--story-image, linear-gradient(140deg, #20232b, #0b0c10)),
    #111318;
  background-position: center;
  background-size: cover;
  text-align: left;
  cursor: pointer;
}

body[data-theme="light"] .story-card {
  color: #fffaf0;
  border-color: rgba(158, 116, 43, 0.35);
  background:
    linear-gradient(180deg, rgba(16, 12, 6, 0.02), rgba(16, 12, 6, 0.54)),
    radial-gradient(circle at 50% 20%, rgba(216, 168, 79, 0.14), transparent 8rem),
    var(--story-image, linear-gradient(140deg, #f6eedf, #d7c7aa)),
    #ede4d3;
  background-position: center;
  background-size: cover;
  box-shadow: 0 0.65rem 1.45rem rgba(89, 66, 25, 0.1);
  text-shadow: 0 0.14rem 0.52rem rgba(0, 0, 0, 0.68);
}

.story-card--instagram {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.86)),
    url("/assets/home/hero-contraataque.jpg");
}

.story-card--join {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.84)),
    var(--home-hero-image);
  background-position: 58% center;
}

.story-card > span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.48rem;
  color: #1c1205;
  background: var(--gold);
  font-size: 0.62rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.story-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  line-height: 1;
}

.story-card p {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.25;
}

.story-card small {
  color: var(--gold);
  font-weight: 1000;
  text-transform: uppercase;
}

.story-card .primary-action {
  width: 100%;
}

.community-feed {
  display: grid;
  gap: 0.65rem;
}

#screen-community,
#screen-communityPostDetail {
  color: var(--text);
  background: transparent;
}

#screen-community .post-card,
#screen-communityPostDetail .post-card,
#screen-community .community-channel-card,
#screen-community .community-topic-card,
#screen-community .community-profile-strip {
  background: rgba(255, 255, 255, 0.05);
}

body[data-theme="light"] #screen-community,
body[data-theme="light"] #screen-communityPostDetail {
  --surface: #fffaf1;
  --surface-2: #ffffff;
  --text: #15120d;
  --muted: #625b52;
  --line: rgba(31, 27, 20, 0.12);
}

body[data-theme="light"] #screen-community .post-card,
body[data-theme="light"] #screen-communityPostDetail .post-card,
body[data-theme="light"] #screen-community .community-channel-card,
body[data-theme="light"] #screen-community .community-topic-card,
body[data-theme="light"] #screen-community .community-profile-strip {
  background: #ffffff;
  box-shadow: 0 0.45rem 1.1rem rgba(36, 27, 10, 0.05);
}

.community-channel-home,
.community-channel-screen,
.community-channel-group,
.community-channel-list {
  display: grid;
  gap: 0.52rem;
}

.community-profile-strip,
.community-channel-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.community-profile-strip {
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
}

.community-profile-strip--compact .primary-action {
  min-height: 2rem;
  min-width: 6.8rem;
  padding: 0 0.6rem;
  font-size: 0.68rem;
}

.community-home-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.15rem;
  border-bottom: 1px solid rgba(216, 168, 79, 0.28);
}

.community-home-tabs button {
  min-width: 0;
  min-height: 2rem;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  padding: 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.community-home-tabs button.is-selected {
  border-color: var(--gold);
  color: var(--gold-2);
}

.community-profile-strip .primary-action {
  width: auto;
  min-width: 8.5rem;
}

.icon-action {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 1.2rem;
  font-weight: 1000;
}

.community-level-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(216, 168, 79, 0.35);
  border-radius: 999px;
  padding: 0.18rem 0.42rem;
  color: var(--gold);
  background: rgba(216, 168, 79, 0.08);
  font-size: 0.68rem;
  font-weight: 1000;
  white-space: nowrap;
}

.community-level-badge--FREE {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.community-channel-card {
  display: grid;
  grid-template-columns: 2.15rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.52rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.community-channel-card.is-locked {
  opacity: 0.66;
}

.community-channel-icon {
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  background: rgba(216, 168, 79, 0.16);
  font-size: 0.98rem;
}

.community-channel-card strong,
.community-channel-title strong,
.community-topic-card strong {
  display: block;
  color: var(--text);
}

.community-channel-card small,
.community-channel-title small,
.community-topic-card small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.community-channel-card em {
  color: var(--gold);
  font-style: normal;
  font-weight: 1000;
}

.community-channel-title {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  padding: 0 0 0.65rem;
  background: var(--surface);
}

.community-channel-title > span:nth-of-type(2) {
  min-width: 0;
  flex: 1;
}

.community-pinned {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(216, 168, 79, 0.45);
  border-radius: 0.7rem;
  padding: 0.7rem;
  background: rgba(216, 168, 79, 0.12);
  cursor: pointer;
}

.community-topic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.68rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.community-topic-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.community-topic-card > .avatar {
  width: 1.95rem;
  height: 1.95rem;
  font-size: 0.68rem;
}

.community-topic-card em {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.16rem 0.42rem;
  color: #1c1205;
  background: var(--gold);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

.community-topic-card p {
  display: -webkit-box;
  margin: 0.22rem 0;
  overflow: hidden;
  color: var(--text);
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-topic-card__activity {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 0.18rem;
  min-width: 6.4rem;
  text-align: right;
}

.community-topic-card__activity .avatar {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.58rem;
}

.community-topic-card__activity small {
  max-width: 7.4rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.55rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-topic-thumb {
  display: block;
  height: 8.5rem;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.community-topic-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-reactions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

.community-reactions::-webkit-scrollbar {
  display: none;
}

.community-reactions button,
.community-reactions > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.14rem 0.35rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.66rem;
  font-weight: 900;
}

.community-reactions button,
.community-reaction-button {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  gap: 0.22rem;
  white-space: nowrap;
}

.community-reactions button span,
.community-reaction-button span {
  display: inline;
  width: auto !important;
  padding: 0;
  border: 0;
  background: transparent;
}

.community-reactions button.is-active {
  border-color: var(--gold);
  color: var(--gold);
}

.community-upgrade-card {
  display: grid;
  gap: 0.75rem;
}

.avatar {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 0.8rem;
}

.avatar.gold {
  background: linear-gradient(135deg, #fff, var(--gold));
}

.avatar.photo {
  color: white;
  background: linear-gradient(135deg, #34435d, #8b5b36);
}

.avatar.photo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.notification-card {
  display: grid;
  gap: 0.65rem;
  cursor: pointer;
}

.notification-card.is-unread {
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line));
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
}

.notification-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.42;
  white-space: pre-line;
}

.post-image {
  height: 10.8rem;
  margin-top: 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
}

.community-news-card {
  position: relative;
  display: grid;
  min-height: 13.5rem;
  width: 100%;
  align-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.84)),
    radial-gradient(circle at 70% 20%, rgba(216, 168, 79, 0.28), transparent 7rem),
    var(--card-image, linear-gradient(140deg, #20232b, #0b0c10)),
    #111318;
  background-position: center;
  background-size: cover;
  padding: 0.75rem;
  text-align: left;
}

body[data-theme="light"] .community-news-card {
  color: #fffaf0;
  border-color: rgba(158, 116, 43, 0.35);
  background:
    linear-gradient(180deg, rgba(16, 12, 6, 0.02), rgba(16, 12, 6, 0.58)),
    radial-gradient(circle at 70% 20%, rgba(216, 168, 79, 0.16), transparent 7rem),
    var(--card-image, linear-gradient(140deg, #f6eedf, #d7c7aa)),
    #ede4d3;
  background-position: center;
  background-size: cover;
  box-shadow: 0 0.65rem 1.45rem rgba(89, 66, 25, 0.1);
  text-shadow: 0 0.14rem 0.52rem rgba(0, 0, 0, 0.68);
}

.community-news-card + .community-news-card {
  margin-top: 0.8rem;
}

.community-news-card__badge,
.community-post-hero > span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.48rem;
  color: #1c1205;
  background: var(--gold);
  font-size: 0.62rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.community-news-card h3,
.community-post-hero h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.community-news-card p {
  display: -webkit-box;
  margin: 0.45rem 0 0.55rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.community-news-card small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.community-post-detail {
  display: grid;
  gap: 0.72rem;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

body[data-theme="light"] .community-post-detail {
  border-color: rgba(31, 27, 20, 0.1);
  background: #ffffff;
}

.community-post-detail > p,
.community-post-detail__body {
  margin: 0;
  line-height: 1.45;
  white-space: pre-line;
}

.community-post-hero {
  position: relative;
  display: grid;
  min-height: 17rem;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 70% 20%, rgba(216, 168, 79, 0.28), transparent 7rem),
    var(--card-image, linear-gradient(140deg, #20232b, #0b0c10)),
    #111318;
  background-position: center;
  background-size: cover;
  padding: 0.8rem;
}

body[data-theme="light"] .community-post-hero {
  color: #fffaf0;
  border-color: rgba(158, 116, 43, 0.35);
  background:
    linear-gradient(180deg, rgba(16, 12, 6, 0.02), rgba(16, 12, 6, 0.58)),
    radial-gradient(circle at 70% 20%, rgba(216, 168, 79, 0.16), transparent 7rem),
    var(--card-image, linear-gradient(140deg, #f6eedf, #d7c7aa)),
    #ede4d3;
  background-position: center;
  background-size: cover;
  text-shadow: 0 0.14rem 0.52rem rgba(0, 0, 0, 0.72);
}

.community-post-hero__content {
  display: grid;
  gap: 0.35rem;
  max-width: 78%;
}

.community-post-hero__author {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 900;
}

.community-post-hero__author .avatar {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.community-post-hero > .share-action {
  position: absolute;
  right: 0.78rem;
  bottom: 0.78rem;
  min-height: 2.3rem;
  width: auto;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  padding: 0 0.95rem;
  text-shadow: none;
}

.community-post-hero small {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
}

.community-login-comment {
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(178, 125, 27, 0.45);
  text-transform: uppercase;
}

body[data-theme="light"] .community-login-comment {
  color: #9c6b16;
  background: #fff;
}

.post-comments {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.post-comments__head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.post-comments__head strong {
  color: var(--text);
}

.post-comments__list {
  display: grid;
  gap: 0.5rem;
}

.post-comment-thread {
  display: grid;
  gap: 0.45rem;
}

.post-comment-replies {
  display: grid;
  gap: 0.45rem;
  margin-left: 1.05rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(216, 168, 79, 0.35);
}

.post-comment {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.55rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.045);
}

body[data-theme="light"] .post-comment {
  background: #fff;
}

.post-comment.is-highlighted {
  border-color: rgba(216, 168, 79, 0.82);
  box-shadow: 0 0 0 0.18rem rgba(216, 168, 79, 0.14);
}

.post-comment strong,
.post-comment small,
.post-comment p {
  display: block;
}

.post-comment small,
.empty-comments {
  color: var(--muted);
  font-size: 0.72rem;
}

.post-comment p {
  margin: 0.2rem 0 0;
  line-height: 1.35;
}

.post-comment__image {
  display: block;
  width: min(100%, 18rem);
  margin-top: 0.48rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
}

body[data-theme="light"] .post-comment__image {
  background: #f5efe2;
}

.post-comment__image img {
  display: block;
  width: 100%;
  max-height: 15rem;
  object-fit: contain;
}

.post-comment__body.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-comment__body.is-expanded {
  display: block;
}

.post-comment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.post-comment__actions button {
  color: var(--gold);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.post-comment__actions button.is-active {
  color: var(--text);
}

.comment-quote {
  display: grid;
  gap: 0.15rem;
  border-left: 2px solid var(--gold);
  border-radius: 0.4rem;
  padding: 0.45rem 0.55rem;
  background: rgba(216, 168, 79, 0.08);
  color: var(--muted);
}

.comment-quote--jump {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  text-align: left;
}

.comment-quote strong {
  color: var(--gold);
  font-size: 0.75rem;
}

.comment-quote span {
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.comment-order-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.comment-order-switch button {
  min-height: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comment-order-switch button.is-selected {
  border-color: rgba(216, 168, 79, 0.58);
  color: #fff;
  background: linear-gradient(135deg, #d9aa4d, #a66b08);
}

.community-comment-steps {
  display: inline-flex;
  gap: 0.28rem;
}

.community-comment-steps button,
.community-comment-pagination__pages button {
  display: grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 1000;
}

body[data-theme="light"] .comment-order-switch button,
body[data-theme="light"] .community-comment-steps button,
body[data-theme="light"] .community-comment-pagination__pages button {
  background: #fff;
}

.community-comment-steps button:disabled,
.community-comment-pagination button:disabled {
  opacity: 0.42;
}

.community-comment-pagination {
  display: grid;
  grid-template-columns: minmax(5.8rem, 1fr) auto minmax(5.8rem, 1fr);
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.community-comment-pagination__pages {
  display: inline-flex;
  gap: 0.35rem;
  justify-content: center;
}

.community-comment-pagination__pages button.is-selected {
  border-color: rgba(166, 107, 8, 0.68);
  color: #fff;
  background: linear-gradient(135deg, #d9aa4d, #a66b08);
}

@media (max-width: 520px) {
  #screen-communityPostDetail {
    margin: -0.1rem -0.25rem 0;
  }

  .community-post-detail {
    border-radius: 0.65rem;
    padding: 0.56rem;
  }

  .community-topic-card {
    grid-template-columns: 1fr;
  }

  .community-topic-card__activity {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .community-topic-card__activity small {
    max-width: 100%;
  }

  .community-post-hero {
    min-height: 12.4rem;
    border-radius: 0.62rem;
    padding: 0.72rem;
  }

  .community-post-hero__content {
    max-width: 100%;
    gap: 0.28rem;
    padding-bottom: 2.35rem;
  }

  .community-post-hero h3 {
    font-size: 1.2rem;
    line-height: 1.04;
  }

  .community-post-hero__author {
    font-size: 0.82rem;
  }

  .community-post-detail__body {
    font-size: 1rem;
  }

  .community-post-hero > .share-action {
    left: 0.78rem;
    right: auto;
  }

  .post-comments__head,
  .community-comment-pagination {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .comment-order-switch,
  .community-comment-steps,
  .community-comment-pagination__pages {
    justify-content: flex-start;
  }

  .post-comment {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    border-radius: 0.55rem;
    padding: 0.56rem;
  }

  .post-comment strong {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .post-comment p {
    font-size: 0.86rem;
  }

  .post-comment__actions button {
    font-size: 0.68rem;
  }
}

.inline-rm-emoji {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
}

.post-comment-form {
  display: grid;
  gap: 0.5rem;
}

.post-comment-form textarea {
  min-height: 4.5rem;
}

.comment-image-input {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comment-image-input input {
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.55rem;
  color: var(--text);
  text-transform: none;
}

body[data-theme="light"] .comment-image-input input {
  background: #fff;
}

.comment-emoji-row,
.comment-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.comment-emoji-row button {
  min-height: 2rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 900;
}

.comment-emoji-row img {
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: middle;
}

.post-comment-edit-form,
.post-comment-reply-form {
  margin-top: -0.2rem;
}

.stadium {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7)),
    radial-gradient(circle at 48% 28%, rgba(255, 255, 255, 0.55), transparent 4rem),
    repeating-linear-gradient(100deg, #252932 0 1rem, #171a21 1rem 2rem);
}

.scarf {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(45deg, #f3f0e8 0 1rem, #d8a84f 1rem 1.3rem, #1b1c22 1.3rem 2.5rem);
}

.post-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  color: var(--muted);
}

.football-screen,
.football-section,
.football-fixtures,
.football-empty {
  display: grid;
  gap: 0.75rem;
}

.football-featured,
.football-section,
.football-empty,
.football-notice {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.045);
}

.football-notice {
  display: grid;
  gap: 0.2rem;
  border-color: rgba(216, 168, 79, 0.35);
  padding: 0.7rem 0.8rem;
  background: rgba(216, 168, 79, 0.09);
}

.football-notice strong {
  color: var(--gold-2);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.football-notice span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.football-featured {
  overflow: hidden;
  border-color: var(--line-strong);
  padding: 0.85rem;
  background:
    linear-gradient(145deg, rgba(216, 168, 79, 0.13), rgba(255, 255, 255, 0.035)),
    #08090d;
}

.football-featured[data-football-match],
.football-fixture[data-football-match] {
  cursor: pointer;
}

.football-season-switcher {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
}

.football-season-switcher::-webkit-scrollbar {
  display: none;
}

.football-season-switcher button {
  flex: 0 0 auto;
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.football-season-switcher button.is-selected {
  border-color: rgba(216, 168, 79, 0.68);
  background: rgba(216, 168, 79, 0.16);
  color: var(--gold-2);
}

.football-competition-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: -0.15rem;
  padding-bottom: 0.35rem;
}

.football-competition-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  padding: 0 0.65rem;
  text-transform: uppercase;
}

.football-competition-tabs button.is-selected {
  border-color: rgba(216, 168, 79, 0.68);
  background: rgba(216, 168, 79, 0.16);
  color: var(--gold-2);
}

.football-competition-tabs img,
.football-competition-tabs span {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.football-competition-tabs img {
  object-fit: contain;
}

.football-competition-tabs span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-2);
  font-size: 0.55rem;
  font-weight: 1000;
}

.football-competition-tabs strong {
  font-size: 0.7rem;
  line-height: 1;
}

.football-featured__head,
.football-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.football-featured__head span,
.football-section__head span,
.football-fixture__score small {
  color: var(--gold-2);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.football-featured__head strong,
.football-section__head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.football-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.football-team {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
}

.football-team__logo {
  display: grid;
  width: 3.35rem;
  height: 3.35rem;
  place-items: center;
}

.football-team__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.football-team__logo span {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-2);
  font-weight: 1000;
}

.football-team strong {
  max-width: 8.5rem;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.football-score {
  display: grid;
  justify-items: center;
  min-width: 4.8rem;
  text-align: center;
}

.football-score strong {
  font-size: 2.15rem;
  line-height: 1;
}

.football-score small,
.football-score em,
.football-muted,
.football-fixture__date span {
  color: var(--muted);
  font-style: normal;
}

.football-section,
.football-empty {
  padding: 0.75rem;
}

.football-section__head .outline-action {
  min-height: 2.2rem;
  padding: 0 0.75rem;
  font-size: 0.72rem;
}

.football-cache-note {
  margin: -0.35rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

.football-fixture {
  display: grid;
  grid-template-columns: 4.35rem minmax(0, 1fr);
  align-items: stretch;
  min-height: 5.25rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.14);
  padding: 0.6rem;
}

.football-fixture__date {
  display: grid;
  gap: 0.2rem;
  padding-right: 0.55rem;
  border-right: 1px solid var(--line);
}

.football-fixture__date strong {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.15;
}

.football-fixture__match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.7rem;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  padding: 0;
  text-align: left;
}

.football-fixture--actions {
  align-items: stretch;
}

.football-fixture__body {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.football-fixture__meta {
  display: grid;
  gap: 0.18rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.48rem;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.2;
}

body[data-theme="light"] .football-fixture__meta {
  border-top-color: rgba(24, 22, 19, 0.1);
}

.football-fixture__meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-fixture__actions {
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.45rem;
}

.football-fixture__actions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2rem;
  cursor: pointer;
  color: var(--gold-2);
  font-size: 0.68rem;
  font-weight: 900;
  list-style: none;
  text-transform: uppercase;
}

.football-fixture__actions summary::-webkit-details-marker {
  display: none;
}

.football-fixture__actions summary::after {
  content: "+";
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border: 1px solid rgba(216, 168, 79, 0.38);
  border-radius: 50%;
  font-size: 0.9rem;
}

.football-fixture__actions[open] summary::after {
  content: "-";
}

.football-fixture__actions > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding-top: 0.45rem;
}

.football-fixture__quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  min-width: 0;
}

.football-fixture__teams {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.football-fixture .football-team {
  grid-template-columns: 1.75rem minmax(0, 1fr);
  justify-items: start;
  text-align: left;
}

.football-fixture .football-team--away {
  grid-template-columns: 1.75rem minmax(0, 1fr);
  text-align: left;
}

.football-fixture .football-team__logo {
  width: 1.75rem;
  height: 1.75rem;
}

.football-fixture .football-team strong {
  max-width: none;
  min-width: 0;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-fixture__score {
  display: grid;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.football-fixture__score strong {
  font-size: 1.18rem;
  line-height: 1;
}

.football-fixture__score small,
.football-fixture__score em {
  max-width: 4.6rem;
  overflow: hidden;
  line-height: 1.08;
  text-overflow: ellipsis;
}

.football-fixture__score em {
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.football-more-action {
  width: 100%;
  min-height: 2.25rem;
  margin-top: 0.55rem;
  border: 1px solid rgba(216, 168, 79, 0.34);
  border-radius: 0.65rem;
  color: var(--gold-2);
  background: rgba(216, 168, 79, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.football-section--primary {
  border-color: rgba(216, 168, 79, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.12)),
    rgba(255, 255, 255, 0.045);
}

.football-action-button {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 4.7rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.65rem 0.8rem;
  text-align: left;
}

.football-action-button::after {
  content: ">";
  color: var(--gold-2);
  font-size: 1.4rem;
  font-weight: 900;
}

.football-action-button > span {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.15rem;
}

.football-action-button strong,
.football-action-button small {
  display: block;
  min-width: 0;
}

.football-action-button strong {
  font-size: 0.98rem;
  text-transform: uppercase;
}

.football-action-button small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.15;
}

.football-action-button.is-open {
  border-color: rgba(216, 168, 79, 0.68);
  background:
    linear-gradient(135deg, rgba(216, 168, 79, 0.23), rgba(216, 168, 79, 0.05)),
    rgba(255, 255, 255, 0.035);
}

.football-action-button.is-open small,
.football-action-button.is-open strong {
  color: var(--gold-2);
}

.football-action-button.is-compact {
  grid-template-columns: 1.45rem minmax(0, 1fr);
  min-height: 2.85rem;
  border-radius: 0.75rem;
  gap: 0.42rem;
  padding: 0.38rem 0.42rem;
  text-align: left;
}

.football-action-button.is-compact::after {
  display: none;
}

.football-action-button.is-compact > span {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.76rem;
}

.football-action-button.is-compact strong {
  font-size: 0.58rem;
  line-height: 1.05;
}

.football-action-button.is-compact small {
  overflow: hidden;
  font-size: 0.58rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-match-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.55rem;
  overflow: hidden;
}

.event-match-card__date {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding-right: 0.48rem;
  border-right: 1px solid var(--line);
}

.event-match-card__date strong {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.event-match-card__date span {
  color: var(--text);
  font-size: 1rem;
}

.event-match-card__body {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding-left: 0.5rem;
}

.event-match-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.35rem;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  padding: 0;
  text-align: left;
}

.event-match-card__teams {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}

.event-match-card__team {
  display: grid;
  grid-template-columns: 1.78rem minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.event-match-card__team > span {
  display: grid;
  width: 1.78rem;
  height: 1.78rem;
  place-items: center;
}

.event-match-card__team img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-match-card__team > span > span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-2);
  font-size: 0.56rem;
  font-weight: 1000;
}

.event-match-card__team strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-match-card__score {
  display: grid;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.event-match-card__score strong {
  font-size: 1.05rem;
  line-height: 1;
  text-transform: uppercase;
}

.event-match-card__score small,
.event-match-card__score em {
  max-width: 4.2rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.08;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-match-card__score small {
  color: var(--gold-2);
}

.event-match-card .football-fixture__quick-actions--events {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.32rem;
}

.event-match-card .football-action-button.is-compact {
  grid-template-columns: 1.32rem minmax(0, 1fr);
  min-height: 2.55rem;
  border-radius: 0.7rem;
  gap: 0.32rem;
  padding: 0.34rem 0.36rem;
}

.event-match-card .football-action-button.is-compact > span {
  width: 1.28rem;
  height: 1.28rem;
  font-size: 0.68rem;
}

.event-match-card .football-action-button.is-compact strong {
  font-size: 0.52rem;
  line-height: 1.04;
  white-space: normal;
}

.event-match-card .football-action-button.is-compact small {
  font-size: 0.49rem;
  line-height: 1;
}

.event-card--agenda .kicker {
  margin: 0 0 0.2rem;
}

.prediction-dashboard,
.prediction-open-list,
.prediction-history-list {
  display: grid;
  gap: 0.65rem;
}

.prediction-summary-card,
.prediction-open-card {
  display: grid;
  gap: 0.7rem;
  border: 1px solid rgba(216, 168, 79, 0.34);
  border-radius: 0.8rem;
  background:
    linear-gradient(145deg, rgba(216, 168, 79, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  padding: 0.85rem;
}

.prediction-summary-card > span,
.prediction-open-card .kicker {
  color: var(--gold-2);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-summary-card > strong {
  font-size: 1.9rem;
  line-height: 1;
}

.prediction-open-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.prediction-open-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.football-action-detail .detail-copy .kicker {
  color: var(--gold-2);
}

@media (min-width: 430px) {
  .football-fixture__actions > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .football-action-button.is-compact {
    grid-template-columns: 1.75rem minmax(0, 1fr);
  }

  .football-action-button.is-compact::after {
    display: none;
  }
}

@media (max-width: 360px) {
  .football-fixture {
    grid-template-columns: 3.65rem minmax(0, 1fr);
    padding: 0.5rem;
  }

  .football-fixture__date {
    padding-right: 0.4rem;
  }

  .football-fixture__match {
    grid-template-columns: minmax(0, 1fr) 3.8rem;
    gap: 0.4rem;
  }

  .football-fixture .football-team strong {
    font-size: 0.62rem;
  }

  .football-fixture__score strong {
    font-size: 1rem;
  }
}

.football-match-hero {
  border-color: rgba(216, 168, 79, 0.65);
}

.football-match-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.football-match-actions .football-section__head {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.football-match-actions .football-action-button {
  grid-template-columns: 1.8rem minmax(0, 1fr);
  min-height: 3.35rem;
  padding: 0.48rem;
}

.football-match-actions .football-action-button::after {
  display: none;
}

.football-match-actions .football-action-button > span {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.82rem;
}

.football-match-actions .football-action-button strong {
  font-size: 0.62rem;
  line-height: 1;
}

.football-match-actions .football-action-button small {
  overflow: hidden;
  font-size: 0.58rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-match-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.18rem;
}

.football-match-tabs button {
  min-height: 2rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.football-match-tabs button.is-selected {
  color: #16120a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.football-prediction-card {
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
}

.football-score-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.2rem auto 3.2rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  text-align: center;
}

.football-score-entry strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.football-score-entry input {
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 1.25rem;
  font-weight: 1000;
  text-align: center;
}

.football-prediction-card p,
.football-prediction-card small,
.football-match-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
}

.football-match-ranking {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.football-match-ranking li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.3rem 0;
}

.football-match-ranking span,
.football-match-ranking em {
  color: var(--gold-2);
  font-style: normal;
  font-weight: 900;
}

.football-prizes-card p,
.football-rules-card p {
  margin: 0 0 0.45rem;
  color: var(--text);
  line-height: 1.35;
}

.football-table {
  display: grid;
  gap: 0.2rem;
}

.football-table__head,
.football-table__row {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) 2rem 2.2rem 2.2rem;
  align-items: center;
  gap: 0.35rem;
}

.football-table__head {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.football-table__row {
  min-height: 2.55rem;
  width: 100%;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--text);
  padding: 0.25rem 0;
  text-align: left;
}

.football-table__row.is-madrid {
  background: rgba(216, 168, 79, 0.12);
}

.football-table__row span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.football-table__row img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.football-summary {
  gap: 0.65rem;
}

.football-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.football-metrics div {
  display: grid;
  gap: 0.16rem;
  min-height: 3.6rem;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.45rem;
  text-align: center;
}

.football-metrics span,
.football-record span,
.football-locked small {
  color: var(--muted);
  font-size: 0.68rem;
}

.football-metrics strong {
  color: var(--gold-2);
  font-size: 1.2rem;
  line-height: 1;
}

.football-record {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.football-record > span,
.football-record em span {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.2rem 0.52rem;
  font-style: normal;
}

.football-record em {
  display: inline-flex;
  gap: 0.25rem;
  margin-left: auto;
  font-style: normal;
}

.football-record em span {
  width: 1.75rem;
  justify-content: center;
  padding: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.football-record em .is-win {
  border-color: rgba(69, 201, 121, 0.45);
  color: #63dd90;
}

.football-record em .is-draw {
  border-color: rgba(216, 168, 79, 0.45);
  color: var(--gold-2);
}

.football-record em .is-loss {
  border-color: rgba(255, 77, 95, 0.45);
  color: #ff8794;
}

.football-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.football-team-grid button {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.14);
  padding: 0.5rem 0.35rem;
  text-align: center;
}

.football-team-grid button.is-madrid {
  border-color: rgba(216, 168, 79, 0.58);
  background: rgba(216, 168, 79, 0.11);
}

.football-team-grid img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
}

.football-team-grid span {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-squad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.football-squad-grid div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.14);
  padding: 0.45rem;
}

.football-squad-grid img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  object-fit: cover;
}

.football-squad-grid span {
  min-width: 0;
}

.football-squad-grid strong,
.football-squad-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-squad-grid strong {
  font-size: 0.75rem;
}

.football-squad-grid small {
  color: var(--muted);
  font-size: 0.64rem;
}

.football-locked {
  display: grid;
  gap: 0.45rem;
}

.football-locked div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.14);
  padding: 0.55rem;
}

.football-locked div {
  min-width: 0;
}

.football-locked strong,
.football-locked small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-locked div {
  grid-template-columns: 1fr;
  border-color: rgba(216, 168, 79, 0.28);
  background: rgba(216, 168, 79, 0.055);
}

.football-team-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.football-team-profile img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

.football-team-profile span {
  display: grid;
  gap: 0.18rem;
}

.football-team-profile small,
.football-timeline small,
.football-lineups small {
  color: var(--muted);
}

.football-match-stats {
  gap: 0.45rem;
}

.football-match-stats > div:not(.football-section__head) {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) 3.4rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.14);
  padding: 0.5rem;
  text-align: center;
}

.football-match-stats strong {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.football-match-stats span {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.football-timeline,
.football-lineups {
  display: grid;
  gap: 0.5rem;
}

.football-timeline div {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.14);
  padding: 0.55rem;
}

.football-timeline strong {
  color: var(--gold-2);
}

.football-timeline span,
.football-lineups div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.football-timeline b,
.football-lineups strong {
  font-size: 0.78rem;
}

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

.football-lineups div {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.14);
  padding: 0.65rem;
}

.football-lineups ul {
  display: grid;
  gap: 0.22rem;
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.football-empty {
  justify-items: center;
  padding: 1.25rem;
  text-align: center;
}

.football-empty h3,
.football-empty p {
  margin: 0;
}

.football-empty p {
  color: var(--muted);
  line-height: 1.35;
}

.football-empty__crest {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
}

.football-empty__crest img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 50%;
}

body[data-theme="light"] .football-featured,
body[data-theme="light"] .football-section,
body[data-theme="light"] .football-empty {
  background: rgba(255, 255, 255, 0.78);
}

.event-card,
.ticket-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.event-card:hover,
.ticket-card:hover {
  border-color: rgba(216, 168, 79, 0.42);
}

.event-card:active,
.ticket-card:active {
  transform: translateY(1px) scale(0.995);
}

.event-card {
  display: grid;
  grid-template-columns: 4.7rem 1fr;
}

.event-art,
.ticket-art {
  min-height: 6.7rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.45), transparent 2.4rem),
    linear-gradient(140deg, #242631, #0b0c10);
  background-position: center;
  background-size: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.event-card:hover .event-art,
.ticket-card:hover .ticket-art {
  transform: scale(1.018);
  filter: saturate(1.08);
}

.event-body,
.ticket-body {
  padding: 0.8rem;
}

.event-body h3,
.ticket-body h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.event-meta,
.ticket-meta {
  color: var(--muted);
  font-size: 0.76rem;
}

.ticket-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.ticket-actions button {
  min-height: 2.6rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-actions button:last-child {
  background: var(--purple);
}

.ticket-actions button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.65;
}

.detail-panel,
.player-panel {
  display: grid;
  gap: 0.8rem;
}

.detail-hero,
.player-hero {
  min-height: 12rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: #f7f3ea;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.18), rgba(216, 168, 79, 0.18)),
    radial-gradient(circle at 75% 20%, rgba(135, 87, 216, 0.28), transparent 36%),
    #111318;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 1rem;
}

.detail-hero {
  min-height: auto;
  padding-top: min(50vw, 10.6rem);
  background-position: top center;
  background-size: contain, contain !important;
}

.detail-hero--image {
  min-height: 13.5rem;
  padding: 0;
  background-color: #111318;
  background-position: center;
  background-size: contain;
  animation: image-reveal 320ms ease both;
}

@keyframes image-reveal {
  from {
    opacity: 0;
    filter: saturate(0.8);
    transform: scale(1.01);
  }
  to {
    opacity: 1;
    filter: saturate(1);
    transform: scale(1);
  }
}

.detail-copy {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.8rem;
}

.detail-copy h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1;
}

.detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.rich-content {
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
  margin: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.05;
}

.rich-content h2 {
  font-size: 1.25rem;
}

.rich-content h3,
.rich-content h4 {
  font-size: 1.08rem;
}

.rich-content ul,
.rich-content ol {
  display: grid;
  gap: 0.3rem;
  padding-left: 1.1rem;
}

.rich-content blockquote {
  border-left: 3px solid var(--gold);
  border-radius: 0.45rem;
  background: rgba(216, 168, 79, 0.1);
  color: var(--text);
  padding: 0.55rem 0.65rem;
}

.rich-content a {
  color: var(--gold-2);
  font-weight: 800;
  text-decoration: none;
}

.rich-content code {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.08rem 0.25rem;
}

.rich-content hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.2rem 0;
}

.draw-title-card .rich-content,
.product-detail-copy .rich-content {
  gap: 0.45rem;
}

.draw-title-card .rich-content {
  font-size: 0.8rem;
}

.product-detail-copy .rich-content {
  margin-top: 0.25rem;
}

.community-post-detail__body .rich-content {
  white-space: normal;
}

.detail-hero h3,
.player-hero h3 {
  margin: 0.2rem 0;
  font-size: 1.75rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0.12rem 0.55rem rgba(0, 0, 0, 0.5);
}

.detail-meta,
.player-meta {
  display: grid;
  gap: 0.5rem;
}

.detail-meta div,
.player-meta div,
.message-card {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
}

.detail-meta span,
.player-meta span,
.message-card small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.squad-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.squad-card {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  text-align: left;
}

.squad-card-stats {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  color: var(--muted);
}

.squad-card-stats em {
  display: inline-flex;
  min-width: 2.7rem;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  color: var(--text);
  font-style: normal;
  font-weight: 900;
}

.squad-card-stats em span {
  color: var(--gold);
  font-size: 0.88rem;
  line-height: 1;
}

.squad-number {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 50%;
  color: #140e05;
  background: var(--gold);
  font-weight: 950;
}

.squad-photo {
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: #111318;
  background-position: center top;
  background-size: cover;
}

.player-hero-card {
  display: grid;
  grid-template-columns: minmax(7.5rem, 42%) 1fr;
  gap: 0.9rem;
  align-items: end;
  overflow: hidden;
  min-height: 15rem;
}

.player-photo {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: stretch;
  display: grid;
  min-height: 13rem;
  place-items: end center;
  border-radius: 0.7rem;
  color: var(--gold);
  background:
    linear-gradient(180deg, transparent 55%, rgba(8, 9, 11, 0.78)),
    rgba(255, 255, 255, 0.05);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 2.4rem;
  font-weight: 1000;
}

.player-hero-card > :not(.player-photo) {
  grid-column: 2;
}

.player-bio-card {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
}

.player-bio-card span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.player-bio-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.4;
}

.support-card {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background:
    linear-gradient(135deg, rgba(216, 168, 79, 0.16), rgba(135, 87, 216, 0.1)),
    rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
}

.support-card span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-card strong {
  font-size: 1.1rem;
}

.support-card p,
.support-card small {
  margin: 0;
  color: var(--muted);
}

.support-like-action.is-liked,
.message-card.is-liked .message-card__head button {
  border-color: var(--gold);
  color: #160f04;
  background: var(--gold);
}

.message-card__head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.message-card__head button {
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.message-card__head button:disabled,
.support-like-action:disabled {
  opacity: 0.55;
}

.message-likes {
  margin-top: 0.35rem;
  text-transform: none !important;
}

.squad-card strong,
.message-card strong {
  display: block;
}

.squad-card small,
.player-hero p,
.detail-hero p {
  color: var(--muted);
}

.player-hero .kicker,
.detail-hero .kicker,
.player-hero p,
.detail-hero p {
  color: rgba(247, 243, 234, 0.78);
}

.message-form {
  display: grid;
  gap: 0.55rem;
}

.message-form textarea {
  min-height: 5rem;
}

.message-list {
  display: grid;
  gap: 0.55rem;
}

.member-card {
  min-height: 25rem;
  margin-bottom: 0.8rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(216, 168, 79, 0.1), rgba(0, 0, 0, 0.18)),
    #0f1014;
  border-color: var(--line-strong);
}

.member-card-photo {
  display: grid;
  width: 5.4rem;
  height: 5.4rem;
  place-items: center;
  margin: 1.1rem auto 0.65rem;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--gold) 58%, #fff);
  border-radius: 50%;
  color: #171007;
  background: linear-gradient(135deg, #fff, var(--gold));
  font-size: 1.35rem;
  font-weight: 1000;
}

.member-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.membership-badge {
  display: inline-grid;
  gap: 0.08rem;
  min-width: 8.5rem;
  border: 1px solid color-mix(in srgb, var(--gold) 58%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  padding: 0.38rem 0.7rem;
  color: var(--text);
  line-height: 1;
}

.membership-badge strong {
  font-size: 0.75rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.membership-badge small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-badge.is-pending {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.membership-badge--inline {
  margin: 0.45rem 0;
}

.status-card .membership-badge strong {
  display: block;
  font-size: 0.75rem;
}

.card-top {
  justify-content: space-between;
  color: var(--gold-2);
  font-weight: 900;
  text-transform: uppercase;
}

.qr {
  width: 7rem;
  height: 7rem;
  margin: 1rem auto 0.5rem;
  border: 0.45rem solid white;
  border-radius: 0.35rem;
  background: white;
}

.qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.member-card-bio {
  max-width: 17rem;
  margin: 0.7rem auto 0;
  color: var(--muted);
  line-height: 1.35;
}

.member-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.member-social-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.profile-form {
  margin-top: 0.8rem;
}

.profile-form textarea {
  min-height: 5.5rem;
  padding-top: 0.7rem;
  resize: vertical;
}

.profile-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.join-form {
  display: grid;
  gap: 0.75rem;
}

.auth-card,
.welcome-card {
  display: grid;
  gap: 0.82rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(216, 168, 79, 0.08), rgba(255, 255, 255, 0.035)),
    color-mix(in srgb, var(--panel) 92%, #000 8%);
  box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.24);
  padding: 1.35rem 1.05rem;
}

body[data-theme="light"] .auth-card,
body[data-theme="light"] .welcome-card {
  border-color: rgba(24, 22, 19, 0.1);
  color: #171512;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1rem 2.2rem rgba(60, 45, 18, 0.1);
}

.auth-card {
  margin-top: 0.35rem;
}

.auth-logo {
  display: grid;
  justify-self: center;
  width: 4.4rem;
  height: 4.4rem;
  place-items: center;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-card h3,
.welcome-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.62rem;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.auth-card .form-intro,
.welcome-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.36;
  text-align: center;
}

.auth-trust {
  margin: 0.18rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.auth-trust strong {
  color: var(--gold-2);
}

.social-auth-action {
  display: grid;
  grid-template-columns: 2.3rem 1fr 2.3rem;
  align-items: center;
  min-height: 3.35rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 82%, #000 18%);
  padding: 0 0.75rem;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

body[data-theme="light"] .social-auth-action {
  border-color: rgba(24, 22, 19, 0.14);
  color: #111;
  background: #fff;
}

.social-auth-action span {
  display: inline-grid;
  justify-self: start;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  font-size: 1.35rem;
}

.google-action span {
  color: #4285f4;
}

.apple-action span {
  color: var(--text);
}

.auth-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-card label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-card label small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
}

.auth-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 3.35rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background: color-mix(in srgb, var(--panel) 82%, #000 18%);
  padding: 0 0.55rem;
}

.auth-input-wrap > span {
  width: 1.8rem;
  color: var(--muted);
  font-size: 1.15rem;
  text-align: center;
}

.auth-input-wrap input {
  min-height: 3rem !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 0.55rem !important;
  font-size: 0.98rem;
}

.auth-input-wrap button {
  width: 2rem;
  height: 2rem;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.auth-primary-action {
  min-height: 3.45rem;
  margin-top: 0.3rem;
  border-radius: 0.72rem;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.auth-legal,
.auth-switch {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.38;
  text-align: center;
}

.auth-legal a,
.auth-switch button {
  border: 0;
  color: var(--gold-2);
  background: transparent;
  padding: 0;
  font-weight: 900;
  text-decoration: none;
}

.welcome-card {
  align-content: center;
  min-height: calc(var(--app-height) - 8rem);
  text-align: center;
}

.welcome-card .primary-action,
.welcome-card .outline-action,
.welcome-card .ghost-action {
  min-height: 3rem;
}

.form-intro {
  margin: -0.25rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.form-hint {
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.join-form label {
  display: grid;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.join-form .check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.35;
  text-transform: none;
}

.join-form .check-row input {
  width: 1rem;
  min-height: 1rem;
  margin-top: 0.12rem;
  accent-color: var(--accent);
}

.join-form input,
.join-form select,
.profile-form textarea,
.message-form input,
.message-form textarea,
.inline-entry-form input,
.table-toolbar input,
.admin-login input,
.admin-form input,
.admin-form select,
.admin-row-actions select {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 78%, #000 22%);
  padding: 0 0.75rem;
}

select,
option,
input,
textarea {
  color: var(--text);
  background-color: color-mix(in srgb, var(--panel) 82%, #000 18%);
}

option {
  color: var(--text);
  background-color: var(--panel);
}

body[data-theme="light"] .join-form input,
body[data-theme="light"] .join-form select,
body[data-theme="light"] .profile-form textarea,
body[data-theme="light"] .message-form input,
body[data-theme="light"] .message-form textarea,
body[data-theme="light"] .inline-entry-form input,
body[data-theme="light"] .table-toolbar input,
body[data-theme="light"] .admin-login input,
body[data-theme="light"] .admin-form input,
body[data-theme="light"] .admin-form select,
body[data-theme="light"] .admin-row-actions select,
body[data-theme="light"] select,
body[data-theme="light"] input,
body[data-theme="light"] textarea {
  color: var(--text);
  background-color: #ffffff;
}

.google-action {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 82%, #000 18%);
  padding: 0 0.8rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.google-action span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  color: #1f1f1f;
  background: #fff;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.social-auth-action.google-action,
.social-auth-action.apple-action {
  display: grid;
  grid-template-columns: 2.3rem 1fr 2.3rem;
  gap: 0;
  min-height: 3.35rem;
  border-radius: 0.72rem;
  padding: 0 0.75rem;
}

body[data-theme="light"] .social-auth-action.google-action,
body[data-theme="light"] .social-auth-action.apple-action {
  background: #fff;
}

.form-result {
  min-height: 1.2rem;
  margin: 0;
  color: var(--ok);
  font-weight: 800;
}

.menu-list button {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  padding: 0 0.8rem;
}

.menu-icon,
.nav-icon {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1;
}

.menu-icon {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.82rem;
}

.menu-icon--crest,
.nav-icon--crest {
  border-color: transparent;
  background: transparent;
}

.menu-icon--crest img,
.nav-icon--crest img {
  display: block;
  width: 0.84rem;
  height: 1.22rem;
  object-fit: contain;
}

.danger-menu-action {
  color: #ffd7dc !important;
  border-color: rgba(255, 77, 95, 0.38) !important;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  padding-inline: 0.25rem;
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.94);
}

.bottom-nav button {
  display: grid;
  grid-template-rows: max-content max-content;
  flex: 1;
  gap: 0.12rem;
  align-content: center;
  justify-items: center;
  min-height: 100%;
  min-width: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.92rem;
  min-width: 0;
}

.bottom-nav .nav-icon {
  width: 1.34rem;
  height: 1.34rem;
  font-size: 0.78rem;
}

.bottom-nav span {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.52rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav .is-active {
  color: var(--gold);
}

.mobile-menu-fab {
  position: absolute;
  right: 0.75rem;
  bottom: calc(var(--mobile-nav-height) + 0.72rem + env(safe-area-inset-bottom));
  z-index: 24;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.34rem;
  min-height: 2.45rem;
  border: 1px solid rgba(216, 168, 79, 0.48);
  border-radius: 999px;
  color: var(--gold-2);
  background:
    linear-gradient(145deg, rgba(216, 168, 79, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(7, 8, 11, 0.96);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.38);
  padding: 0 0.78rem;
}

.mobile-menu-fab span {
  font-size: 0.84rem;
}

.mobile-menu-fab strong {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.mobile-menu-fab.is-open {
  color: #16120a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

body[data-theme="light"] .mobile-menu-fab {
  color: var(--gold-2);
  background:
    linear-gradient(145deg, rgba(191, 132, 43, 0.14), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.8rem 1.8rem rgba(60, 45, 18, 0.16);
}

body[data-theme="light"] .mobile-menu-fab.is-open {
  color: #171007;
  background: linear-gradient(135deg, var(--gold), #e8bd63);
}

.mobile-quick-menu {
  position: absolute;
  right: 0.62rem;
  bottom: calc(var(--mobile-nav-height) + 3.55rem + env(safe-area-inset-bottom));
  left: 0.62rem;
  z-index: 23;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  border: 1px solid rgba(216, 168, 79, 0.34);
  border-radius: 0.9rem;
  background: rgba(7, 8, 11, 0.97);
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.52);
  padding: 0.62rem;
}

body[data-theme="light"] .mobile-quick-menu {
  border-color: rgba(165, 115, 31, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1.2rem 2.4rem rgba(60, 45, 18, 0.2);
}

body[data-theme="light"] .mobile-quick-menu button {
  background: rgba(247, 243, 234, 0.86);
}

body[data-theme="light"] .mobile-quick-menu .menu-icon {
  border-color: rgba(24, 22, 19, 0.12);
  background: rgba(191, 132, 43, 0.08);
}

.mobile-quick-menu[hidden] {
  display: none;
}

.mobile-quick-menu button {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 0.48rem;
  min-width: 0;
  min-height: 3.35rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  padding: 0.46rem 0.5rem;
  text-align: left;
}

.mobile-quick-menu .menu-icon {
  grid-row: 1 / 3;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--gold-2);
  font-size: 0.78rem;
}

.mobile-quick-menu .menu-icon img {
  width: 1.32rem;
  height: 1.32rem;
  object-fit: contain;
}

.mobile-quick-menu strong,
.mobile-quick-menu small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-quick-menu strong {
  font-size: 0.75rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.mobile-quick-menu small {
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.05;
}

body.ios-keyboard-open .mobile-content {
  padding-bottom: calc(var(--keyboard-offset) + 1rem + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(var(--keyboard-offset) + 7rem + env(safe-area-inset-bottom));
}

body.ios-keyboard-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + env(safe-area-inset-bottom))) !important;
}

body.ios-keyboard-open .mobile-menu-fab,
body.ios-keyboard-open .mobile-quick-menu {
  opacity: 0;
  pointer-events: none;
}

.admin-panel {
  padding: 1.25rem;
  border-radius: 1.2rem;
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin: 0.2rem 0 0;
  font-size: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-grid article {
  min-height: 7rem;
}

.admin-grid strong {
  margin: 0.4rem 0;
  font-size: 2rem;
}

.admin-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.admin-login,
.admin-form {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.045);
}

.admin-login p {
  min-height: 1.1rem;
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.admin-tabs button {
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-tabs .is-selected {
  color: #151009;
  background: var(--gold);
}

.admin-forms {
  margin-bottom: 1rem;
}

.admin-form {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form strong,
.admin-form button {
  grid-column: 1 / -1;
}

.admin-form.is-active {
  display: grid;
}

.admin-row-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.admin-row-actions select {
  min-height: 2.25rem;
  max-width: 10rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 78%, #000 22%);
}

.admin-row-actions button {
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.table-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(14rem, 20rem);
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
}

th {
  color: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  border-radius: 999px;
  padding: 0 0.65rem;
  color: #151009;
  background: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.wait {
  color: white;
  background: var(--purple);
}

.status-pill.ok {
  color: #07150c;
  background: var(--ok);
}

.install-modal[hidden] {
  display: none;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: end;
}

.install-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
}

.install-modal__panel {
  position: relative;
  display: grid;
  gap: 0.75rem;
  width: min(100%, 30rem);
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 1.1rem 1.1rem 0 0;
  background:
    linear-gradient(160deg, rgba(216, 168, 79, 0.12), rgba(255, 255, 255, 0.04)),
    #08090c;
  box-shadow: 0 -1rem 3rem rgba(0, 0, 0, 0.55);
  padding: 1.05rem 1rem calc(1rem + env(safe-area-inset-bottom));
}

.install-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.25rem;
}

.install-modal__logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 50%;
}

.install-modal h2 {
  margin: 0;
  max-width: 13ch;
  font-size: 1.75rem;
}

.install-modal p {
  margin: 0;
  color: #e7dfd1;
  line-height: 1.35;
}

.install-modal__actions {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.55rem;
}

.install-modal__hint {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  padding: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: minmax(20rem, 27rem);
    justify-content: center;
  }

  .public-panel {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --mobile-nav-height: 3.45rem;
    font-size: 15px;
  }

  html,
  body {
    width: 100%;
    height: var(--app-height);
    min-height: var(--app-height);
    background: #050506;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .app-shell {
    display: block;
    min-height: var(--app-height);
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    height: var(--app-height);
    min-height: var(--app-height);
    border: 0;
    border-radius: 0;
  }

  .is-ios.is-standalone body,
  .is-ios.is-standalone .app-shell,
  .is-ios.is-standalone .phone-frame {
    height: var(--app-height);
    min-height: var(--app-height);
    max-height: var(--app-height);
  }

  .is-ios.is-standalone .phone-frame {
    overflow: hidden;
    background: var(--bg);
  }

  .is-ios.is-standalone .mobile-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .is-ios input,
  .is-ios select,
  .is-ios textarea {
    font-size: max(16px, 1rem);
  }

  .mobile-header {
    height: calc(3.65rem + env(safe-area-inset-top));
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    gap: 0.45rem;
  }

  .header-actions {
    gap: 0.28rem;
  }

  .mobile-header h2 {
    font-size: 1rem;
  }

  .icon-button {
    width: 2.15rem;
    height: 2.15rem;
  }

  .mobile-content {
    padding: 0.62rem 0.62rem calc(var(--mobile-nav-height) + 0.5rem + env(safe-area-inset-bottom));
  }

  body.ios-keyboard-open .mobile-content {
    padding-bottom: calc(var(--keyboard-offset) + 1rem + env(safe-area-inset-bottom));
  }

  .primary-action,
  .ghost-action,
  .outline-action {
    min-height: 2.55rem;
    font-size: 0.82rem;
  }

  .home-hero-card {
    min-height: min(62dvh, 28rem);
    padding: 0.85rem;
    background-position: 58% center;
  }

  #screen-draws.is-active {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: calc(var(--app-height) - var(--mobile-nav-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 5.2rem);
  }

  #screen-draws .offer-list {
    display: grid;
    min-height: 0;
  }

  #screen-draws .visual-offer {
    min-height: 100%;
    align-content: end;
    background-position: top center, top center !important;
    background-size: 100% 64%, contain !important;
    padding-top: min(58dvh, 24rem);
  }

  #screen-draws .visual-offer > div {
    margin-top: 0;
  }

  #screen-draws .draw-list-card {
    display: grid;
    gap: 0.7rem;
    min-height: auto;
    align-content: start;
    background:
      linear-gradient(145deg, rgba(135, 87, 216, 0.08), rgba(255, 255, 255, 0.035)),
      rgba(255, 255, 255, 0.04) !important;
    padding-top: 0.85rem;
  }

  #screen-draws .draw-list-card > div {
    margin: 0;
    padding: 0;
  }

  #screen-draws .draw-list-art {
    min-height: 8.75rem;
  }

  #screen-draws .draw-list-art img {
    max-height: 11.5rem;
  }

  .home-hero-logo {
    width: 3.9rem;
    height: 3.9rem;
  }

  .home-hero-copy h3 {
    max-width: 11ch;
    font-size: 2.05rem;
  }

  .home-hero-copy p:not(.kicker) {
    font-size: 0.92rem;
  }

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

  .home-hero-card--compact {
    min-height: 13rem;
    padding: 0.75rem;
  }

  .home-hero-card--compact .home-hero-copy h3 {
    max-width: 12ch;
    font-size: 1.62rem;
  }

  .home-hero-card--compact .home-hero-copy p {
    max-width: 15rem;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
  }

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

  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0.55rem 0 0.7rem;
  }

  .metric-grid div {
    min-width: 0;
    min-height: 3.35rem;
    padding: 0.45rem 0.2rem;
    display: grid;
    align-content: center;
  }

  .metric-grid strong {
    font-size: 0.98rem;
    line-height: 1;
  }

  .metric-grid span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.48rem;
    line-height: 1.1;
  }

  .home-benefit-grid {
    gap: 0.45rem;
  }

  .home-benefit-card {
    min-height: 4.75rem;
    padding: 0.6rem;
  }

  .home-benefit-grid--quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .home-benefit-grid--quick .home-benefit-card {
    min-height: 4.9rem;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    padding: 0.48rem 0.35rem;
    text-align: center;
  }

  .home-benefit-grid--quick .home-benefit-card small {
    grid-column: auto;
    font-size: 0.54rem;
  }

  .home-benefit-grid--quick .home-benefit-card strong {
    font-size: 0.64rem;
  }

  .home-benefit-icon {
    grid-row: auto;
    width: 1.55rem;
    height: 1.55rem;
  }

  .home-benefit-card strong {
    font-size: 0.88rem;
  }

  .home-benefit-grid--quick .home-benefit-card strong {
    font-size: 0.64rem;
  }

  .home-feature-card {
    min-height: auto;
    padding: 6.4rem 0.7rem 0.7rem;
  }

  .home-feature-card strong {
    font-size: 1.05rem;
  }

  .visual-card {
    min-height: 10.8rem;
    padding: 0.85rem;
  }

  .hero-card h3 {
    margin-top: 3rem;
    font-size: 2rem;
  }

  .compact-list,
  .event-list,
  .ticket-list,
  .menu-list,
  .offer-list,
  .shop-grid {
    gap: 0.55rem;
  }

  #screen-memberships .module-screen-head {
    margin-bottom: 0.7rem;
  }

  #screen-memberships .module-screen-head h3 {
    font-size: 1.48rem;
  }

  .membership-active-card {
    gap: 0.45rem;
    padding: 0.9rem;
  }

  .membership-card-watermark {
    right: -0.85rem;
    width: 7.2rem;
  }

  .membership-active-card > strong {
    max-width: 76%;
    font-size: 1.42rem;
  }

  .membership-price {
    font-size: 1.42rem;
  }

  .membership-active-meta {
    gap: 0.55rem;
  }

  .membership-active-meta em {
    font-size: 0.78rem;
  }

  .membership-plan-card {
    padding: 0.75rem;
  }

  .membership-plan-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.62rem;
  }

  .membership-plan-head h3 {
    font-size: 1.12rem;
  }

  .membership-plan-head small {
    font-size: 0.78rem;
  }

  .membership-plan-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .membership-popular {
    position: static;
    grid-column: 2 / 3;
    width: fit-content;
    margin-top: 0.25rem;
  }

  .membership-feature-chips {
    gap: 0.35rem;
  }

  .membership-feature-chips span {
    min-height: 2rem;
    padding: 0.3rem 0.48rem;
    font-size: 0.72rem;
  }

  #paymentList {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .membership-link-card {
    min-height: 4.4rem;
    padding: 0.65rem;
  }

  .list-row {
    min-height: 3.85rem;
    gap: 0.55rem;
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .football-metrics {
    gap: 0.35rem;
  }

  .football-metrics div {
    min-height: 3.2rem;
    padding: 0.35rem 0.2rem;
  }

  .football-metrics span,
  .football-record span,
  .football-locked small {
    font-size: 0.62rem;
  }

  .football-metrics strong {
    font-size: 1rem;
  }

  .football-record em {
    width: 100%;
    margin-left: 0;
  }

  .football-team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .football-team-grid button {
    padding: 0.42rem 0.22rem;
  }

  .football-team-grid img {
    width: 1.85rem;
    height: 1.85rem;
  }

  .football-team-grid span {
    font-size: 0.6rem;
  }

  .football-squad-grid {
    grid-template-columns: 1fr;
  }

  .football-lineups {
    grid-template-columns: 1fr;
  }

  .football-match-stats > div:not(.football-section__head) {
    grid-template-columns: 2.7rem minmax(0, 1fr) 2.7rem;
  }

  .list-row em {
    padding: 0.42rem 0.55rem;
    font-size: 0.62rem;
  }

  .club-badge {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.68rem;
  }

  .event-card {
    grid-template-columns: 4.1rem 1fr;
  }

  .event-art,
  .ticket-art {
    min-height: 5.9rem;
  }

  .event-body,
  .ticket-body {
    padding: 0.65rem;
  }

  .event-body h3,
  .ticket-body h3,
  .offer-card h3,
  .product-card h3 {
    font-size: 1.05rem;
  }

  .detail-hero--image {
    min-height: 12rem;
    max-height: 38dvh;
  }

  .detail-copy {
    padding: 0.7rem;
  }

  .detail-copy h3 {
    font-size: 1.22rem;
  }

  .detail-copy p {
    font-size: 0.88rem;
  }

  .offer-actions {
    gap: 0.4rem;
  }

  .ticket-actions {
    gap: 0.4rem;
  }

  .ticket-actions button {
    min-height: 2.35rem;
    font-size: 0.76rem;
  }

  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateZ(0);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .bottom-nav button {
    font-size: 0.74rem;
  }

  .bottom-nav span {
    font-size: 0.5rem;
  }

  .install-modal__panel {
    width: 100%;
  }

  .admin-panel {
    display: none;
  }
}

@media (max-width: 390px) {
  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-card h3 {
    font-size: 2rem;
  }
}

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