/* ============================================
   POKXR — Design System
   Premium poker platform UI
   ============================================ */

/* --- Reset & Base --- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(24, 34, 56, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --gold: #c9a55c;
  --gold-light: #dfc088;
  --gold-dark: #a88a3d;
  --red: #dc2626;
  --red-hover: #ef4444;
  --green: #16a34a;
  --blue: #3b82f6;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(201, 165, 92, 0.3);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(201, 165, 92, 0.15);

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

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

.hidden {
  display: none !important;
}

body {
  background: var(--bg-primary) !important;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle radial glow behind the content */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(201, 165, 92, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Page Layout --- */

.page {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 42rem;
  padding: 1.5rem;
  padding-bottom: 3rem;
  animation: fadeInUp 0.5s ease both;
}

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

/* --- Welcome Screen --- */

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.brand-cards {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
  perspective: 800px;
}

.brand-card-wrapper {
  width: 2.5rem;
  aspect-ratio: 2.5 / 3.5;
  perspective: 400px;
}

.brand-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cardFlip 0.6s ease-out forwards, cardBob 2.5s ease-in-out 1.2s infinite;
}

.brand-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.brand-card-face img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 3px;
}

.brand-card-back {
  transform: rotateY(0deg);
}

.brand-card-front {
  transform: rotateY(180deg);
}

.brand-cards:hover .brand-card-face {
  box-shadow: 0 3px 10px rgba(201, 165, 92, 0.3);
}

@keyframes cardFlip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

@keyframes cardBob {
  0%, 100% { transform: rotateY(180deg) translateY(0); }
  50% { transform: rotateY(180deg) translateY(-4px); }
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 10vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
}

.feature-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.feature-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.wip-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 2rem;
}

.welcome-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
}

.welcome-contact {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.welcome-contact a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

.welcome-contact a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* --- Buttons --- */

button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  outline: none;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0e1a;
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(201, 165, 92, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 1.1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  letter-spacing: 0.04em;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.625rem 1.5rem;
  font-size: 0.85rem;
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Legacy button-2d kept for compatibility */
.button-2d {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: #0a0e1a;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  padding: 1rem 2rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.button-2d:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-1px);
}

/* --- Screen Layout --- */

.screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  text-align: center;
}

.screen-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.screen-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.screen-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* --- Avatar Selection --- */

.avatar-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 30rem;
}

.avatar-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.avatar-option-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.avatar-option-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.avatar-option-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.avatar-option-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 480px) {
  .avatar-options {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }

  .avatar-option-card {
    flex-direction: row;
    text-align: left;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .avatar-option-card > .avatar-option-icon {
    flex-shrink: 0;
  }
}

/* --- Shortcode Input --- */

.digit-group {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.digit-group input {
  width: 3rem;
  height: 3.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  caret-color: var(--gold);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.digit-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.2);
}

/* --- Text Input --- */

.input-wrapper {
  width: 100%;
  max-width: 20rem;
  margin-bottom: 0.5rem;
}

.text-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  text-align: center;
  outline: none;
  caret-color: var(--gold);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.text-input::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.text-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.2);
}

/* Legacy large-input */
.large-input {
  width: 100%;
  max-width: 20rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  text-align: center;
  outline: none;
  caret-color: var(--gold);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.large-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.2);
}

/* --- Table Selection --- */

.table-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 28rem;
}

.table-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: left;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  cursor: pointer;
  width: 100%;
}

.table-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.table-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: rgba(201, 165, 92, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.table-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.table-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-card-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.table-card-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.meta-icon {
  font-size: 0.7rem;
}

.table-card-players {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

.table-card-status {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.status-open {
  background: var(--green);
}

.status-dot.status-in-progress {
  background: var(--gold);
}

.status-dot.status-full {
  background: var(--red);
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Legacy .table class kept for compatibility */
.table {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.75rem;
  padding: 1rem 1.5rem;
  transition: all var(--transition);
  display: block;
  width: 100%;
}

.table:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

/* --- Error Messages --- */

h4 {
  font-size: 0.85rem;
  font-weight: 400;
  color: #fbbf24;
  text-align: center;
  margin-top: 1rem;
  font-style: normal;
}

/* --- iframe --- */

.frame {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 999999;
  font-family: var(--font-body);
  font-size: 14px;
}

/* ============================================
   In-Game HUD (original styles preserved)
   ============================================ */

.interface {
  position: absolute;
  display: grid;
  width: clamp(20rem, 100%, 60rem);
  height: 100vh;
  height: -webkit-fill-available;
  height: 100dvh;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

#top-bar {
  display: grid;
  grid-template-columns: 1fr 4rem;
  padding: 0.6rem 0.6rem 0 0.6rem;
}

.uiblock {
  font-family: sans-serif;
  font-size: 1.2rem;
  display: inline-block;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 1.2rem 1.4rem;
}

#start-game-button {
  border-radius: 0.5rem;
  grid-row-start: 1;
  text-align: center;
  width: 4rem;
  height: 4rem;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: all;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -webkit-text-size-adjust: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#start-game-button.active:hover {
  background: #d51d29 !important;
}

#centre-info-text {
  border-radius: 0.5rem;
  margin-right: 0.6rem;
  grid-row-start: 1;
  text-align: center;
  pointer-events: none;
}

/* --- Action Buttons --- */

#action-options {
  display: flex;
  grid-row-start: 3;
  pointer-events: all;
}

#action-options .action {
  margin-left: 0.6rem;
  margin-right: 0.6rem;
  width: calc(22%);
}

#action-options .action:first-child {
  margin-left: auto;
}

#action-options .action:last-child {
  margin-right: auto;
}

.action {
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 300;
  padding: 1.2rem;
  display: block;
  margin: 0 auto 1.2rem auto;
  outline: none;
  width: 18rem;
}

.action:enabled {
  background: #212121;
  color: #ffffff;
}

.action:disabled {
  cursor: not-allowed;
}

.adjuster {
  width: 4rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 300;
  padding: 1.2rem;
  display: block;
  margin: 0 0 1.2rem 0;
  outline: none;
}

.adjuster:enabled {
  background: #212121;
  color: #ffffff;
}

.adjuster:disabled {
  cursor: not-allowed;
}

#decrease {
  margin-right: -1.5rem;
}

#increase {
  margin-left: -1.5rem;
}

/* --- Peek Buttons --- */

#peek-button-container {
  position: sticky;
}

.peek-button {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: none;
  font-size: 1.8rem;
  font-weight: 300;
}

.peek-button:nth-of-type(2) {
  bottom: 5.8rem;
}

/* --- Tournament Button --- */

#new-tournament-button {
  background: rgb(0, 108, 171);
  color: #ffffff;
  width: calc(22% + 5rem) !important;
  transition: background 0.3s ease, color 0.3s ease;
}

#new-tournament-button:hover {
  background: rgb(0, 140, 221) !important;
}

/* --- Debug Button --- */

.debug-button {
  background: #212121;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  color: white;
  font-size: 3rem;
  font-weight: 300;
  margin-top: 2rem;
  padding: 0.3rem 0.6rem;
}

/* --- Legacy heading styles --- */

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  color: var(--text-primary);
}

/* --- Card images (legacy) --- */

.input-cards {
  margin: 2rem auto 0 auto;
  width: 80%;
}

.card {
  margin: 1%;
  width: calc(14%);
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--gold);
}

.center {
  text-align: center;
}

#actions-wrapper {
  display: relative;
}

/* ============================================
   Metrics Dashboard
   ============================================ */

.metrics-page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 56rem;
  padding: 3rem 1.5rem;
  animation: fadeInUp 0.5s ease both;
}

.metrics-header {
  text-align: center;
  margin-bottom: 3rem;
}

.metrics-header .brand {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: inline-block;
  transition: opacity var(--transition);
}

.metrics-header .brand:hover {
  opacity: 0.8;
}

.metrics-header .subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  transition: all var(--transition);
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  min-height: 10rem;
}

.metric-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.metric-card .metric-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: start;
}

.metric-card .metric-value {
  font-size: 2.75rem;
  font-weight: 500;
  font-family: 'DM Mono', monospace;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  align-self: center;
}

.metric-card .metric-footer {
  align-self: end;
  min-height: 1.25rem;
}

.metric-card--live .metric-value {
  background: linear-gradient(135deg, var(--green), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-card--live {
  border-color: rgba(22, 163, 74, 0.2);
}

.metric-card--live:hover {
  border-color: rgba(22, 163, 74, 0.4);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.15);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4ade80;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.metrics-page-footer {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.metrics-page-footer .versions {
  display: flex;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

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

  .metrics-header .brand {
    font-size: 2.3rem;
  }

  .metric-card .metric-value {
    font-size: 2rem;
  }

  .metric-card {
    min-height: 8rem;
  }
}
