/* digitalCORE v5 brand */
:root {
  --navy: #15192a;
  --navy-dark: #060c1a;
  --electric: #18b4ff;
  --accent: #63b3ed;
  --off-white: #f4f6fb;
  --white: #ffffff;
  --body: #3d4a6b;
  --slate: #6b7a9a;
  --bluegrey: #a8b4d0;
  --border: #dde3f0;
  --green: #2bd16f;
  --red: #ff5b5b;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", Calibri, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.h-font {
  font-family: "Poppins", "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.15;
}

.bg-grad-01 {
  background: linear-gradient(
    135deg,
    #060c1a 0%,
    #0a1535 25%,
    #0f3a80 50%,
    #1a5acc 72%,
    #0f3060 100%
  );
  position: relative;
}
.bg-grad-01::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #060c1a 0%,
    #060c1a 14%,
    transparent 50%
  );
  pointer-events: none;
}
.bg-grad-01 > * {
  position: relative;
}

.accent-bar {
  height: 4px;
  background: var(--electric);
  width: 100%;
}

.wordmark {
  font-family: "Poppins", "Trebuchet MS", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.wordmark-light {
  color: var(--white);
}
.wordmark-dark {
  color: var(--navy);
}
.wordmark .dot {
  color: var(--electric);
}
.wordmark-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}
.wordmark-img-lg {
  height: 32px;
}
.wordmark-dark .wordmark-img {
  filter: brightness(0) saturate(100%) invert(8%) sepia(16%) saturate(2486%) hue-rotate(202deg) brightness(94%) contrast(97%);
}

.player-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.player-header .wordmark {
  flex: 0 1 auto;
  min-width: 0;
}
.player-meta {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 16px;
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
}
.player-meta-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-meta-score {
  color: var(--electric);
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}
@media (max-width: 480px) {
  .player-header {
    padding: 14px 16px;
    gap: 10px;
  }
  .wordmark-img {
    height: 28px;
  }
  .player-meta {
    font-size: 13px;
    letter-spacing: 0.05em;
  }
}
@media (max-width: 360px) {
  .player-header {
    padding: 12px 12px;
    gap: 8px;
  }
  .wordmark-img {
    height: 24px;
  }
  .player-meta {
    font-size: 12px;
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-pad {
  padding: 24px;
}
@media (min-width: 900px) {
  .page-pad {
    padding: 80px;
  }
}

.btn {
  display: inline-block;
  font-family: "Poppins", "Trebuchet MS", Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11pt;
  padding: 16px 24px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 80ms ease, background 120ms ease, color 120ms ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--off-white);
}
.btn-electric {
  background: var(--electric);
  color: var(--navy-dark);
}
.btn-electric:hover {
  background: #2dc4ff;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}
.btn-big {
  padding: 20px 24px;
  font-size: 13pt;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  font-family: "Inter", Calibri, Arial, sans-serif;
  font-size: 16px;
  padding: 14px 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  width: 100%;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(24, 180, 255, 0.18);
}
.password-field {
  position: relative;
}
.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 70px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--slate);
  font-family: "Inter", Calibri, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
}
.password-toggle:hover {
  color: var(--electric);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 2px;
}

label {
  display: block;
  font-family: "Poppins", "Trebuchet MS", Arial, sans-serif;
  font-weight: 600;
  font-size: 11pt;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin: 0 0 6px;
}

.field {
  margin-bottom: 14px;
}

.fine-print {
  color: var(--bluegrey);
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.5;
}

.card {
  background: var(--white);
  border-radius: 3px;
  border: 1px solid var(--border);
  padding: clamp(14px, 4vw, 20px);
}

.text-white {
  color: var(--white);
}
.text-electric {
  color: var(--electric);
}
.text-slate {
  color: var(--slate);
}
.text-navy {
  color: var(--navy);
}

.pill {
  display: inline-block;
  font-family: "Poppins", Trebuchet MS, Arial, sans-serif;
  font-weight: 600;
  font-size: 10pt;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--electric);
  color: var(--navy-dark);
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.col {
  display: flex;
  flex-direction: column;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-5 {
  gap: 20px;
}
.gap-6 {
  gap: 24px;
}
.mt-2 {
  margin-top: 8px;
}
.mt-3 {
  margin-top: 12px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-6 {
  margin-top: 24px;
}
.mt-8 {
  margin-top: 32px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}

.headline {
  font-family: "Poppins", Trebuchet MS, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 6vw, 56px);
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.subhead {
  color: var(--bluegrey);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes slideUp {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.slide-up {
  animation: slideUp 0.3s ease-out;
}

/* Player layout */
.player-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.player-light {
  background: var(--off-white);
  color: var(--body);
}
.player-dark {
  background: var(--navy-dark);
  color: var(--white);
}

.timer-pill {
  position: fixed;
  top: 12px;
  right: 12px;
  background: var(--navy);
  color: var(--electric);
  padding: 10px 16px;
  border-radius: 3px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 22px;
  z-index: 30;
  min-width: 56px;
  text-align: center;
}
@media (max-width: 480px) {
  .timer-pill {
    top: 10px;
    right: 10px;
    padding: 7px 12px;
    font-size: 18px;
    min-width: 44px;
  }
}
@media (max-width: 360px) {
  .timer-pill {
    padding: 6px 10px;
    font-size: 16px;
    min-width: 40px;
  }
}
/* Reserve space in the header on the right when the timer pill is on screen */
body:has(.timer-pill) .player-header {
  padding-right: 84px;
}
body:has(.timer-pill) .player-meta-score {
  display: none;
}
@media (min-width: 400px) {
  body:has(.timer-pill) .player-header {
    padding-right: 96px;
  }
  body:has(.timer-pill) .player-meta-score {
    display: inline;
  }
}
.timer-pill.warning {
  color: #ffb84d;
}
.timer-pill.urgent {
  color: var(--red);
}

.choice-btn {
  display: block;
  width: 100%;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--navy);
  padding: 18px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  border-radius: 3px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 120ms ease;
  line-height: 1.35;
}
@media (max-width: 480px) {
  .choice-btn {
    padding: 14px 14px;
    font-size: 15px;
  }
}
@media (max-width: 360px) {
  .choice-btn {
    padding: 12px 12px;
    font-size: 14px;
  }
}
.choice-btn:hover {
  border-color: var(--electric);
}
.choice-btn.selected {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.choice-btn .letter {
  display: inline-block;
  background: var(--off-white);
  color: var(--navy);
  font-weight: 800;
  border-radius: 3px;
  width: 28px;
  height: 28px;
  text-align: center;
  line-height: 28px;
  margin-right: 12px;
}
.choice-btn.selected .letter {
  background: var(--electric);
  color: var(--navy-dark);
}

.tf-btn {
  flex: 1;
  padding: clamp(18px, 5vw, 28px);
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 5vw, 22px);
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tf-btn:hover {
  border-color: var(--electric);
}
.tf-btn.selected {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Player view content + bottom confirm bar */
.player-content {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px clamp(14px, 4vw, 20px) 24px;
}
.player-content-narrow {
  max-width: 520px;
}
.player-content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.player-status-h {
  font-size: clamp(22px, 6vw, 32px);
  margin: 0 0 8px;
}
.player-status-h-md {
  font-size: clamp(20px, 5.5vw, 28px);
  margin: 0 0 8px;
}
.player-q-text {
  font-size: clamp(20px, 5vw, 32px);
  margin: 8px 0 8px;
}
.player-q-text-sm {
  font-size: clamp(17px, 4.5vw, 22px);
  margin: 6px 0 14px;
}
.player-points {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.05;
  color: var(--navy);
}
.player-rank {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 5vw, 24px);
}
.player-final-rank {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 10vw, 48px);
  line-height: 1;
  color: var(--white);
}
.player-waiting-rank {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 7vw, 32px);
  color: var(--white);
}
.reveal-card-text {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.4;
}

.confirm-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px clamp(12px, 4vw, 16px);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--navy);
  border-top: 4px solid var(--electric);
  z-index: 20;
}
body.has-confirm-bar .player-content {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.score-tag {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--navy);
  color: var(--electric);
}

.bar {
  height: 28px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  background: var(--electric);
  transition: width 0.6s ease-out;
}
.bar-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--navy-dark);
  font-size: 13px;
}
.bar-count {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 13px;
}

/* Screen view */
.screen-shell {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.screen-headline {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
}
.screen-text {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.15;
}
.screen-meta {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: var(--slate);
  font-size: clamp(24px, 2.4vw, 36px);
}
.screen-timer {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: var(--electric);
  font-size: clamp(60px, 7vw, 110px);
  line-height: 1;
}
.lb-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 40px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s ease;
}
.lb-row .rk {
  color: var(--electric);
  text-align: right;
}
.lb-row .delta {
  color: var(--slate);
  font-size: 0.7em;
  min-width: 80px;
  text-align: right;
}
.lb-row .delta.up {
  color: var(--green);
}

/* Admin login */
.admin-login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(
    135deg,
    #060c1a 0%,
    #0a1535 35%,
    #0f3a80 75%,
    #1a5acc 100%
  );
}
.admin-login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 32px 28px;
  width: min(420px, 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.admin-login-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 12px;
}
.admin-login-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 28px;
  margin: 0 0 8px;
}
.admin-login-sub {
  color: var(--slate);
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.5;
}
.admin-login-err {
  background: rgba(255, 91, 91, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 91, 91, 0.35);
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}
.admin-login-ok {
  background: rgba(24, 180, 255, 0.08);
  color: var(--navy);
  border: 1px solid rgba(24, 180, 255, 0.35);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}
.admin-who {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: var(--bluegrey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}
.admin-super-badge {
  display: inline-block;
  background: var(--electric);
  color: var(--navy-dark);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.admin-signout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
}
.admin-signout:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Admin view */
.admin-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--off-white);
}
.admin-top {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 4px solid var(--electric);
}
.admin-mid {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 80px;
}
.admin-bottom {
  position: sticky;
  bottom: 0;
  background: var(--navy-dark);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
  border-top: 4px solid var(--electric);
  z-index: 10;
}
.admin-action {
  min-height: 56px;
  border-radius: 3px;
  background: var(--electric);
  color: var(--navy-dark);
  border: none;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11pt;
  cursor: pointer;
}
.admin-action.secondary {
  background: var(--navy);
  color: var(--white);
}
.admin-action:disabled {
  opacity: 0.4;
}
.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 12px;
}
.admin-card-h {
  padding: 12px 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.admin-card-b {
  padding: 12px 14px;
  font-size: 14px;
}
.q-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  align-items: center;
}
.q-row:last-child {
  border-bottom: none;
}
.q-row.active {
  background: rgba(24, 180, 255, 0.1);
  font-weight: 700;
}
.q-row .q-type {
  display: inline-block;
  font-size: 9px;
  background: var(--navy);
  color: var(--electric);
  padding: 3px 6px;
  border-radius: 3px;
  margin-right: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lb-mini {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  align-items: center;
}
.lb-mini:last-child {
  border-bottom: none;
}
.lb-mini .rk {
  color: var(--electric);
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}
.lb-mini .pts {
  font-weight: 700;
  color: var(--navy);
}
.player-search-wrap {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.player-search {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  outline: none;
}
.player-search:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(24, 180, 255, 0.18);
}
.ans-row {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.ans-row:last-child {
  border-bottom: none;
}
.ans-meta {
  font-size: 11px;
  color: var(--slate);
  margin-top: 4px;
}

.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 3px;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

dialog {
  border: none;
  border-radius: 3px;
  padding: 0;
  background: transparent;
  max-width: 92vw;
}
dialog::backdrop {
  background: rgba(6, 12, 26, 0.7);
}
dialog .dialog-inner {
  background: var(--white);
  padding: 24px;
  border-radius: 3px;
  width: min(420px, 92vw);
}

.qr-wrap {
  background: var(--white);
  padding: 18px;
  border-radius: 3px;
  display: inline-block;
}
.qr-wrap canvas,
.qr-wrap img {
  display: block;
}

.signin-url {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: var(--electric);
  font-size: clamp(28px, 4vw, 64px);
  letter-spacing: 0.02em;
  margin-top: 18px;
}

/* Legal pages (privacy / terms) */
.legal-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--off-white);
  color: var(--body);
}
.legal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-back {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--electric);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 3px;
}
.legal-back:hover {
  border-color: var(--electric);
}
.legal-main {
  flex: 1;
  padding: 32px 24px 64px;
}
.legal-article {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 28px;
}
@media (min-width: 720px) {
  .legal-article {
    padding: 48px;
  }
}
.legal-article h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 6px;
}
.legal-article h2 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  border-top: 2px solid var(--electric);
  padding-top: 18px;
  display: inline-block;
}
.legal-article p,
.legal-article li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}
.legal-article a {
  color: #0f6fb5;
  text-decoration: underline;
}
.legal-article a:hover {
  color: var(--electric);
}
.legal-article ul {
  padding-left: 22px;
  margin: 8px 0 12px;
}
.legal-article li {
  margin-bottom: 6px;
}
.legal-article strong {
  color: var(--navy);
}
.legal-meta {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 24px;
}
.legal-footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--slate);
}
.legal-footer a {
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  text-decoration: none;
}
.legal-footer a:hover {
  color: var(--electric);
}

/* Persistent app footer (Privacy / Terms) */
.app-footer {
  flex-shrink: 0;
  padding: 12px 20px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--slate);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.app-footer a {
  color: inherit;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.app-footer a:hover {
  color: var(--electric);
}
.app-footer .sep {
  opacity: 0.5;
}
.app-footer-dark {
  color: var(--bluegrey);
}
.app-footer-fixed {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  padding: 4px 20px;
  z-index: 5;
}
