/**
 * PLAYZONE ARCADE — Core Design System & UI Stylesheet
 * Palette:
 *   Background: Charcoal / Midnight (#0b1120, #0f172a)
 *   Surface: Dark Slate Gray (#162032, #1e293b, #26354d)
 *   Accents: Coral (#ff6b4a), Orange (#ff9f1c), Warm Yellow (#ffbf69), Cyan (#2ec4b6)
 */

:root {
  --bg-midnight: #0b1120;
  --bg-charcoal: #0f172a;
  --surface-1: #162032;
  --surface-2: #1e293b;
  --surface-3: #283548;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-focus: #ff9f1c;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent-coral: #ff6b4a;
  --accent-orange: #ff9f1c;
  --accent-yellow: #ffbf69;
  --accent-cyan: #2ec4b6;
  --accent-gold: #facc15;
  --accent-danger: #ef4444;
  --accent-success: #10b981;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-card: 0 10px 28px -6px rgba(2, 6, 23, 0.65);
  --shadow-hover: 0 18px 36px -8px rgba(255, 107, 74, 0.22);
  --transition-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-med: 240ms cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  scroll-behavior: smooth;
  background-color: var(--bg-midnight);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 107, 74, 0.08), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(46, 196, 182, 0.07), transparent 32%),
    var(--bg-midnight);
  color: var(--text-primary);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

.pz-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
  min-width: 0;
}

/* ========================================================================= */
/* NAVBAR                                                                    */
/* ========================================================================= */

.pz-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pz-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.pz-logo {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.65rem !important;
  text-decoration: none;
  min-width: 0;
}

.pz-logo__icon {
  display: inline-block !important;
  flex-shrink: 0 !important;
  border-radius: 10px;
}

.pz-logo__text {
  display: inline-flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
  min-width: 0;
  line-height: 1.15;
}

.pz-logo__brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.pz-logo__brand em {
  font-style: normal;
  color: var(--accent-coral);
}

.pz-logo__sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-yellow);
}

.pz-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pz-nav__link {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.pz-nav__link:hover,
.pz-nav__link.is-active {
  color: var(--text-primary);
  background: rgba(255, 107, 74, 0.14);
}

.pz-nav__pill {
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-orange));
  color: #0b1120;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.38rem;
  border-radius: 99px;
}

.pz-navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========================================================================= */
/* BUTTONS, BADGES & INPUTS                                                  */
/* ========================================================================= */

.pz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.pz-btn:active {
  transform: translateY(1px);
}

.pz-btn--primary {
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-orange));
  color: #0b1120;
  box-shadow: 0 4px 16px rgba(255, 107, 74, 0.3);
}

.pz-btn--primary:hover {
  box-shadow: 0 6px 22px rgba(255, 159, 28, 0.45);
  transform: translateY(-1px);
}

.pz-btn--outline {
  background: rgba(30, 41, 59, 0.75);
  color: var(--text-primary);
  border-color: rgba(255, 159, 28, 0.4);
}

.pz-btn--outline:hover {
  background: rgba(255, 159, 28, 0.14);
  border-color: var(--accent-orange);
}

.pz-btn--ghost {
  background: rgba(30, 41, 59, 0.55);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.pz-btn--ghost:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}

.pz-btn--chip {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  border-radius: 999px;
}

.pz-btn--chip:hover {
  border-color: var(--accent-orange);
}

.pz-btn--lg {
  padding: 0.82rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.pz-btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.83rem;
}

.pz-btn--xs {
  padding: 0.32rem 0.68rem;
  font-size: 0.76rem;
}

.pz-btn--full {
  width: 100%;
}

.pz-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pz-badge--cat {
  background: rgba(255, 159, 28, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 159, 28, 0.3);
}

.pz-badge--id {
  background: rgba(255, 107, 74, 0.18);
  color: #fda4af;
  border: 1px solid rgba(255, 107, 74, 0.4);
}

.pz-badge--mode {
  background: rgba(46, 196, 182, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(46, 196, 182, 0.3);
}

.pz-badge--diff {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pz-badge--gold {
  background: rgba(250, 204, 21, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.pz-badge--mono {
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-size: 0.68rem;
}

.pz-input,
.pz-select {
  width: 100%;
  background: var(--bg-charcoal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.9rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast);
}

.pz-input:focus,
.pz-select:focus {
  border-color: var(--accent-orange);
  outline: none;
}

.pz-input--mono {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.pz-pill-btn {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.pz-pill-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 159, 28, 0.45);
}

.pz-pill-btn.is-active {
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-orange));
  color: #0b1120;
  font-weight: 700;
  border-color: transparent;
}

/* ========================================================================= */
/* HERO SECTION                                                              */
/* ========================================================================= */

.pz-hero {
  padding: 3.2rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pz-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.pz-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(46, 196, 182, 0.12);
  border: 1px solid rgba(46, 196, 182, 0.3);
  color: var(--accent-cyan);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.pz-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.pz-hero__title {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-orange), var(--accent-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pz-hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 62ch;
  margin-bottom: 1.65rem;
}

.pz-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pz-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.pz-hero__stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-yellow);
}

.pz-hero__stat span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pz-showcase-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.pz-showcase-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pz-showcase-card__live {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.pz-showcase-card__note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pz-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pz-showcase-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  gap: 0.75rem;
  min-height: 48px;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.pz-showcase-item:hover {
  border-color: var(--accent-coral);
  background: rgba(30, 41, 59, 0.85);
  transform: translateX(3px);
}

.pz-showcase-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.pz-showcase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.22), rgba(56, 189, 248, 0.22));
  border: 1px solid rgba(46, 196, 182, 0.55);
  color: #2ec4b6;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  width: 78px;
  min-width: 78px;
  max-width: 78px;
  text-align: center;
  box-sizing: border-box;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.pz-showcase-item:hover .pz-showcase-btn {
  background: linear-gradient(135deg, #2ec4b6, #38bdf8);
  color: #090d16;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(46, 196, 182, 0.35);
}

.pz-showcase-item code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-yellow);
}

/* ========================================================================= */
/* SECTIONS & GAME CARDS                                                     */
/* ========================================================================= */

.pz-section {
  padding: 3rem 0;
}

.pz-section--compact {
  padding: 1.25rem 0 0;
}

.pz-section--alt {
  background: rgba(22, 32, 50, 0.55);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pz-puzzle-zone {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 107, 74, 0.09), transparent 45%),
    rgba(15, 23, 42, 0.85);
}

.pz-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.pz-section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  margin-bottom: 0.25rem;
}

.pz-section__tag--id {
  color: var(--accent-coral);
}

.pz-section__title {
  font-size: 1.75rem;
  font-weight: 800;
}

.pz-section__subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 58ch;
}

/* Recently Played Bar */
.pz-recent-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.pz-recent-bar__label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-yellow);
  white-space: nowrap;
}

.pz-recent-bar__list {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: border-color var(--transition-fast);
}

.recent-pill:hover {
  border-color: var(--accent-orange);
}

.recent-pill__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.recent-pill__text strong {
  font-size: 0.82rem;
}

.recent-pill__text small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.recent-pill__play {
  color: var(--accent-coral);
  font-size: 0.8rem;
}

/* Library Toolbar */
.pz-library-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.15rem;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.pz-search-box {
  position: relative;
}

.pz-search-box__icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.pz-search-box .pz-input {
  padding-left: 2.5rem;
}

.pz-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pz-library-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Game Cards Grid */
.pz-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.game-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--card-accent, var(--accent-coral));
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 159, 28, 0.45);
}

.game-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.game-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.game-card__badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.game-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.game-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.28;
}

.game-card__desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.game-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: auto;
}

.game-card__modes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 28px;
  gap: 0.35rem;
}

.game-card__mode-pill {
  padding: 0.24rem 0.62rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.game-card__mode-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 159, 28, 0.45);
}

.game-card__mode-pill.is-active {
  background: rgba(255, 159, 28, 0.2);
  color: var(--accent-yellow);
  border-color: var(--accent-orange);
}

.game-card__mode-tag {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Clean, Aligned 2-Row Scoreboard Box inside Each Game Card */
.game-card__scores {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  background: rgba(11, 17, 32, 0.78);
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.game-card__score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.game-card__score-meta {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.game-card__score-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.game-card__score-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.game-card__holder-name {
  font-size: 0.71rem;
  font-weight: 800;
  color: var(--accent-yellow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 135px;
}

.game-card__score-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.14);
}

.game-card__score-value {
  font-size: 0.94rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.game-card__score-value--accent {
  color: var(--accent-orange);
  background: rgba(255, 159, 28, 0.12);
  border: 1px solid rgba(255, 159, 28, 0.3);
  padding: 0.16rem 0.48rem;
  border-radius: 6px;
}

.game-card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  width: 100%;
}

.game-card__btn-play {
  padding: 0.58rem 0.85rem;
  font-size: 0.86rem;
  width: 100%;
}

.game-card__btn-lb {
  padding: 0.58rem 0.78rem;
  font-size: 0.82rem;
}

/* ========================================================================= */
/* HALL OF FAME SUMMARY & DEDICATED LEADERBOARD PAGE                         */
/* ========================================================================= */

.pz-hof-disclaimer {
  background: rgba(46, 196, 182, 0.1);
  border: 1px solid rgba(46, 196, 182, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pz-hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.15rem;
}

.hof-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hof-card__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hof-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.hof-card__head-text {
  min-width: 0;
}

.hof-card__title {
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hof-card__id {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hof-card__record {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  background: rgba(11, 17, 32, 0.82);
  padding: 0.78rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.hof-card__record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.hof-card__crown {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.hof-card__date {
  font-size: 0.67rem;
  color: var(--text-muted);
}

.hof-card__record-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hof-card__holder-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.hof-card__holder-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hof-card__metric-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-orange);
  background: rgba(255, 159, 28, 0.14);
  border: 1px solid rgba(255, 159, 28, 0.32);
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hof-card__pb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.hof-card__pb-row strong {
  font-family: var(--font-mono);
  color: var(--accent-yellow);
}

.hof-card__footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.pz-owner-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  border-radius: 99px;
  margin-left: 0.35rem;
}

/* Dedicated Leaderboard Page */
.pz-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lb-selector-panel {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.lb-selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-width: 240px;
}

.lb-selector-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.lb-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lb-selector-actions {
  display: flex;
  gap: 0.5rem;
}

.lb-hero-banner {
  background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.lb-hero-banner__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.lb-hero-banner__title {
  font-size: 1.65rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.lb-hero-banner__rules,
.lb-hero-banner__tiebreak {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.lb-hero-banner__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lb-stat-card {
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.lb-stat-card--gold {
  border-color: rgba(250, 204, 21, 0.4);
}

.lb-stat-card__tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-yellow);
}

.lb-stat-card__value {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--accent-orange);
}

.lb-stat-card__holder {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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

.lb-content-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 1.5rem;
}

.lb-table-card,
.lb-history-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.lb-side-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.lb-mode-indicator {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: rgba(46, 196, 182, 0.14);
  color: var(--accent-cyan);
  font-weight: 700;
}

.lb-table-wrapper {
  overflow-x: auto;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.lb-table th,
.lb-table td {
  padding: 0.75rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.lb-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.lb-table__row--top1 {
  background: rgba(250, 204, 21, 0.08);
}

.lb-table__row--mine {
  background: rgba(46, 196, 182, 0.08);
}

.lb-table__score {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-yellow);
}

.lb-table__aux,
.lb-table__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.lb-history-card h4 {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.lb-history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lb-history__item {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  font-size: 0.82rem;
}

.lb-history__main {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.lb-history__score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-orange);
}

.lb-history__sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ========================================================================= */
/* GAME ARENA VIEW & LIVE HUD                                                */
/* ========================================================================= */

.pz-arena-section {
  padding: 1.25rem 0 3rem;
}

.pz-arena-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.pz-arena-topbar__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.pz-arena-title {
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pz-arena-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-yellow);
}

.pz-arena-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
}

.pz-arena-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.pz-hud-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.pz-hud-item {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pz-hud-item--primary {
  border-color: rgba(255, 107, 74, 0.45);
  background: rgba(255, 107, 74, 0.08);
}

.pz-hud-item--gold {
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.06);
}

.pz-hud-item__label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pz-hud-item__value {
  font-size: 1.02rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* ========================================================================= */
/* MODALS, TOASTS & STATES                                                   */
/* ========================================================================= */

.pz-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pz-modal {
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

.pz-modal--gold {
  border: 2px solid var(--accent-gold);
}

.pz-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pz-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pz-modal__title {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.pz-modal__subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.pz-new-record-score-box {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.15rem;
}

.pz-new-record-score-box strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent-gold);
}

.pz-new-record-score-box span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pz-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pz-form__label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.pz-form__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pz-claim-info-box {
  background: var(--bg-charcoal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  font-size: 0.78rem;
}

.pz-code-block {
  display: block;
  margin-top: 0.4rem;
  padding: 0.45rem;
  background: var(--bg-midnight);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  word-break: break-all;
  color: var(--accent-cyan);
}

.pz-result-rank-banner {
  background: rgba(46, 196, 182, 0.15);
  border: 1px solid rgba(46, 196, 182, 0.4);
  color: var(--accent-cyan);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.pz-result-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.pz-result-stat {
  background: var(--bg-charcoal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pz-result-stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pz-result-stat strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-yellow);
}

.pz-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.pz-modal__actions--triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.pz-ownership-alert {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.pz-ownership-alert--verified {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.pz-ownership-alert--locked {
  background: rgba(255, 159, 28, 0.14);
  border: 1px solid rgba(255, 159, 28, 0.4);
  color: var(--accent-yellow);
}

.pz-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.pz-form-group {
  margin-bottom: 0.9rem;
}

.pz-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 1rem 0;
}

.pz-supabase-details summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.65rem;
}

.pz-supabase-details__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pz-guide-block {
  background: var(--bg-charcoal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}

.pz-guide-block h4 {
  font-size: 0.9rem;
  color: var(--accent-yellow);
  margin-bottom: 0.3rem;
}

.pz-guide-block p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Toasts */
.pz-toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.pz-toast {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.pz-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pz-toast--success {
  border-left-color: var(--accent-success);
}

.pz-toast--error {
  border-left-color: var(--accent-danger);
}

/* Loading, Empty & Error States */
.pz-loading-state,
.pz-empty-state,
.pz-error-state {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  grid-column: 1 / -1;
}

.pz-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 159, 28, 0.25);
  border-top-color: var(--accent-coral);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: pz-spin 0.8s linear infinite;
}

@keyframes pz-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.pz-footer {
  background: var(--bg-charcoal);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.pz-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pz-footer__desc,
.pz-footer__note {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

.pz-footer__links h4,
.pz-footer__status h4 {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  color: var(--accent-yellow);
}

.pz-footer__links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.pz-footer__links a:hover {
  color: var(--accent-coral);
}

.pz-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========================================================================= */
/* SPECIAL EDITION FOR DONNA STYLING & UI ENHANCEMENTS                       */
/* ========================================================================= */

.pz-btn--donna-love {
  background: linear-gradient(135deg, rgba(255, 107, 139, 0.22), rgba(255, 159, 28, 0.18));
  border-color: rgba(255, 107, 139, 0.55);
  color: #fecdd3;
}

.pz-btn--donna-love:hover {
  background: linear-gradient(135deg, rgba(255, 107, 139, 0.35), rgba(255, 159, 28, 0.28));
  border-color: #ff6b8b;
  transform: translateY(-1px);
}

.pz-btn--donna-cta {
  background: rgba(255, 107, 139, 0.16);
  border: 1px solid rgba(255, 107, 139, 0.5);
  color: #fecdd3;
}

.pz-btn--donna-cta:hover {
  background: rgba(255, 107, 139, 0.28);
  border-color: #ff6b8b;
  transform: translateY(-1px);
}

.pz-hero__eyebrow--donna {
  background: linear-gradient(90deg, rgba(255, 107, 139, 0.18), rgba(255, 159, 28, 0.14));
  border-color: rgba(255, 107, 139, 0.45);
  color: #fda4af;
}

.pz-showcase-card--donna {
  border-color: rgba(255, 107, 139, 0.38);
  box-shadow: 0 14px 36px -8px rgba(255, 107, 139, 0.2);
}

.pz-modal--donna {
  border: 2px solid rgba(255, 107, 139, 0.65);
  background: linear-gradient(165deg, #1e293b 0%, #17152b 100%);
}

.pz-donna-letter-box {
  background: rgba(255, 107, 139, 0.1);
  border: 1px solid rgba(255, 107, 139, 0.35);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.15rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #fce7f3;
}

.pz-donna-quick-games {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pz-donna-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}


