* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0c0712;
  --bg-2: #170b23;
  --text: #fff7ed;
  --muted: rgba(255, 247, 237, 0.72);
  --soft: rgba(255, 255, 255, 0.08);
  --soft-2: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.16);
  --gold: #ffd166;
  --orange: #ff7a3d;
  --pink: #ff3d81;
  --violet: #7c3aed;
  --cyan: #38bdf8;
  --green: #6ee7b7;
  --danger: #fb7185;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --radius: 28px;
  --radius-sm: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

body {
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

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

.app-bg {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 209, 102, 0.20), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(255, 61, 129, 0.18), transparent 28rem),
    radial-gradient(circle at 50% 120%, rgba(124, 58, 237, 0.22), transparent 38rem),
    linear-gradient(140deg, #08050d 0%, #170b23 48%, #110719 100%);
}

.app-bg::before,
.screen-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 72%);
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 54px) 0;
}

.index-shell {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  gap: 22px;
}

.hero-card,
.panel-card,
.mini-card,
.vote-card {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  border-radius: var(--radius);
}

.hero-card {
  padding: clamp(26px, 5vw, 62px);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -34%;
  width: 48vw;
  max-width: 580px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 209, 102, .28), transparent 62%);
  filter: blur(2px);
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 900;
  color: var(--gold);
}

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

h1 {
  font-size: clamp(2.2rem, 7vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.07em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -.03em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  max-width: 770px;
  line-height: 1.55;
}

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

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

.big-form {
  margin-top: 34px;
  max-width: 760px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

label span {
  color: rgba(255,255,255,.92);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  outline: none;
  transition: border .2s, box-shadow .2s, background .2s;
}

input:focus {
  border-color: rgba(255, 209, 102, .9);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, .16);
  background: rgba(0,0,0,.34);
}

.actions-row,
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.actions-column {
  display: grid;
  gap: 12px;
}

button,
.primary-link,
.ghost-link {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  color: var(--text);
  font-weight: 950;
  text-decoration: none;
  transition: transform .16s, filter .16s, background .16s, border .16s;
}

button:hover,
.primary-link:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

.primary-btn,
.primary-link {
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--pink));
  color: #1f0a12;
  box-shadow: 0 18px 40px rgba(255, 85, 76, .28);
}

.secondary-btn {
  background: linear-gradient(135deg, rgba(56, 189, 248, .95), rgba(124, 58, 237, .95));
}

.ghost-btn,
.ghost-link {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
}

.danger-btn {
  background: rgba(251, 113, 133, .14);
  border: 1px solid rgba(251, 113, 133, .40);
}

.big-btn {
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  padding: 17px 22px;
}

.status-text {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
}

.status-text.success {
  color: var(--green);
}

.status-text.error {
  color: var(--danger);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-card {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.mini-card strong {
  color: var(--gold);
}

.mini-card span {
  color: var(--muted);
  line-height: 1.4;
}

.panel-card {
  padding: clamp(20px, 3vw, 34px);
}

.auth-card {
  max-width: 520px;
  margin: 10vh auto 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 8px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}

.settings-form h2 {
  margin: 8px 0 -4px;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.sticky-actions {
  position: sticky;
  bottom: 12px;
  padding: 12px;
  margin: 8px -12px -12px;
  border-radius: 22px;
  background: rgba(12,7,18,.72);
  backdrop-filter: blur(18px);
}

.side-stack {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 18px;
}

.preview-stage {
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 209, 102, .20), transparent 40%),
    linear-gradient(160deg, rgba(0,0,0,.30), rgba(255,255,255,.06));
  border: 1px solid var(--line);
}

.main-preview,
.vote-main-image,
.screen-main-image {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.main-preview {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}

.preview-stage h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: .95;
  letter-spacing: -.06em;
  margin: 0 0 16px;
}

.preview-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.preview-team {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.preview-team img {
  width: min(120px, 22vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.versus {
  color: var(--gold);
  font-weight: 1000;
}

.link-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.link-row span {
  color: var(--muted);
  font-weight: 800;
}

.link-row button {
  padding: 12px 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--line);
}

.share-grid {
  display: grid;
  gap: 14px;
}

.share-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 209, 102, .13), transparent 34%),
    rgba(255,255,255,.055);
}

.share-card-head {
  display: grid;
  gap: 4px;
}

.share-card-head strong {
  color: var(--gold);
  font-size: 1.02rem;
}

.share-card-head span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
}

.share-open {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #170b23;
  font-weight: 1000;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 12px 32px rgba(255, 122, 61, .20);
}

.share-url {
  font-size: .84rem;
  padding: 11px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,.84);
}

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

.share-actions button {
  padding: 10px 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--line);
}

.qr-link {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.72);
  text-decoration: none;
}

.qr-code {
  display: block;
  width: min(100%, 210px);
  aspect-ratio: 1;
  border-radius: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1fr);
  gap: 18px;
}

.control-card,
.live-results-card {
  min-height: 380px;
}

.timer-orb {
  width: min(210px, 52vw);
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.30), transparent 18%),
    conic-gradient(from 210deg, var(--gold), var(--orange), var(--pink), var(--violet), var(--gold));
  color: #170b23;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 1000;
  box-shadow: 0 0 50px rgba(255, 122, 61, .30);
}

.admin-score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 900;
}

.admin-score-row strong {
  font-size: clamp(2.2rem, 8vw, 5rem);
  color: var(--gold);
}

.vote-body {
  min-height: 100dvh;
}

.vote-shell {
  min-height: 100dvh;
  width: min(980px, calc(100vw - 24px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 16px 0;
}

.vote-card {
  width: 100%;
  padding: clamp(18px, 4vw, 44px);
  text-align: center;
}

.vote-main-image {
  max-height: min(26vh, 240px);
  aspect-ratio: 16 / 9;
  margin: 0 auto 18px;
}

.vote-card h1 {
  font-size: clamp(2rem, 9vw, 5rem);
  margin-bottom: 12px;
}

.vote-timer {
  display: inline-grid;
  place-items: center;
  min-width: 132px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 209, 102, .16);
  border: 1px solid rgba(255, 209, 102, .38);
  color: var(--gold);
  font-size: clamp(1.3rem, 7vw, 2.4rem);
  font-weight: 1000;
}

.vote-message {
  color: var(--muted);
  font-weight: 800;
  margin: 14px 0 20px;
}

.vote-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 22px);
}

.team-vote-button {
  min-height: clamp(190px, 36vh, 360px);
  border-radius: 30px;
  padding: clamp(16px, 3vw, 26px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 209, 102, .18), transparent 48%),
    linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
  box-shadow: 0 22px 60px rgba(0,0,0,.26);
}

.team-vote-button:nth-child(2) {
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .18), transparent 48%),
    linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
}

.team-vote-button img {
  width: min(180px, 38vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.30);
}

.team-vote-button span {
  font-size: clamp(1.45rem, 5vw, 3.3rem);
  font-weight: 1000;
  letter-spacing: -.05em;
}

.has-voted .vote-card {
  border-color: rgba(110, 231, 183, .52);
  box-shadow: 0 0 0 1px rgba(110, 231, 183, .22), var(--shadow);
}

.screen-bg {
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 209, 102, .20), transparent 32vw),
    radial-gradient(circle at 84% 8%, rgba(255, 61, 129, .16), transparent 34vw),
    linear-gradient(145deg, #050308 0%, #13061d 42%, #08020d 100%);
}

.screen-stage {
  height: 100dvh;
  width: 100vw;
  padding: clamp(10px, 2.2vw, 30px);
  display: grid;
}

.screen-content {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: clamp(8px, 1.6vh, 18px);
  width: 100%;
}

.screen-header {
  text-align: center;
  min-height: 0;
}

.screen-main-image {
  width: min(760px, 48vw);
  max-height: min(17vh, 180px);
  aspect-ratio: 16 / 9;
  margin: 0 auto clamp(6px, 1vh, 12px);
}

.screen-subtitle {
  margin: 0;
  color: var(--gold);
  font-size: clamp(.75rem, 1.2vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: .20em;
  font-weight: 1000;
}

.screen-header h1 {
  margin: 3px 0 0;
  font-size: clamp(2rem, 5.8vw, 6.6rem);
  line-height: .85;
  letter-spacing: -.08em;
  text-shadow: 0 16px 44px rgba(0,0,0,.48);
}

.screen-status-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}

.screen-status,
.screen-timer {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: clamp(8px, 1.2vw, 14px) clamp(14px, 2vw, 24px);
  background: rgba(255,255,255,.08);
  font-weight: 1000;
}

.screen-status {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: clamp(.78rem, 1.4vw, 1.4rem);
}

.screen-timer {
  min-width: clamp(92px, 10vw, 160px);
  text-align: center;
  color: #160814;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-size: clamp(1.2rem, 3.4vw, 3.6rem);
}

.scoreboard {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 28px);
}

.score-card {
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: clamp(24px, 3vw, 46px);
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 209, 102, .18), transparent 40%),
    linear-gradient(150deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
  box-shadow: 0 30px 90px rgba(0,0,0,.44);
  transition: transform .25s, border .25s, box-shadow .25s;
}

.score-card:nth-child(2) {
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .18), transparent 40%),
    linear-gradient(150deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
}

.score-card.leading {
  border-color: rgba(255, 209, 102, .72);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, .16), 0 34px 100px rgba(255, 122, 61, .20);
}

.score-card-media {
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.8vw, 24px) clamp(10px, 1.8vw, 24px) 0;
  min-height: 0;
}

.score-card-media img {
  display: block;
  width: min(34vh, 36vw, 330px);
  max-width: 68%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 20px 60px rgba(0,0,0,.34);
}

.score-card-body {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: clamp(4px, 1vh, 12px);
  padding: clamp(12px, 2vw, 28px);
  min-height: 0;
}

.score-card h2 {
  margin: 0;
  width: 100%;
  font-size: clamp(1.5rem, 4.2vw, 5rem);
  line-height: .9;
  letter-spacing: -.07em;
  overflow-wrap: anywhere;
}

.score-number {
  font-size: clamp(5rem, 19vw, 22rem);
  line-height: .78;
  font-weight: 1000;
  letter-spacing: -.09em;
  color: #fff;
  text-shadow: 0 20px 70px rgba(255, 122, 61, .22);
}

.plus-one {
  position: absolute;
  top: 10%;
  right: 9%;
  opacity: 0;
  transform: translateY(24px) scale(.7) rotate(-6deg);
  font-size: clamp(2.4rem, 7vw, 8rem);
  font-weight: 1000;
  color: var(--green);
  text-shadow: 0 12px 34px rgba(0,0,0,.42);
  pointer-events: none;
}

.show-plus {
  animation: plus-pop 1s ease-out both;
}

.score-bump {
  animation: score-bump .55s ease-out;
}

@keyframes plus-pop {
  0% { opacity: 0; transform: translateY(34px) scale(.7) rotate(-6deg); }
  18% { opacity: 1; transform: translateY(0) scale(1.08) rotate(-4deg); }
  100% { opacity: 0; transform: translateY(-52px) scale(1.18) rotate(4deg); }
}

@keyframes score-bump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.025); }
}

.progress-wrap {
  height: clamp(8px, 1.2vh, 14px);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.13);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--pink));
  transition: width .25s linear;
}

.screen-footer {
  min-height: clamp(38px, 5vh, 66px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 2rem);
}

.screen-footer strong {
  color: var(--gold);
  font-size: clamp(1.2rem, 3vw, 3.2rem);
}

.screen-message {
  place-self: center;
  text-align: center;
}

@media (max-width: 900px) {
  .feature-grid,
  .settings-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .side-stack {
    position: static;
  }

  .topbar {
    display: grid;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
  }

  .two-cols,
  .vote-buttons,
  .scoreboard {
    grid-template-columns: 1fr;
  }

  .vote-buttons {
    gap: 12px;
  }

  .team-vote-button {
    min-height: 150px;
  }

  .team-vote-button img {
    width: min(120px, 34vw);
  }

  .link-row {
    grid-template-columns: 1fr;
  }

  .screen-bg {
    overflow: auto;
  }

  .screen-stage {
    min-height: 100dvh;
    height: auto;
  }

  .screen-content {
    min-height: 100dvh;
  }

  .screen-main-image {
    width: min(100%, 520px);
    max-height: 18vh;
  }

  .score-card-media img {
    width: min(22vh, 170px);
  }

  .score-number {
    font-size: clamp(5rem, 32vw, 10rem);
  }

  .screen-footer {
    display: grid;
    justify-items: center;
    text-align: center;
  }
}

@media (max-height: 720px) and (min-width: 701px) {
  .screen-stage {
    padding: 10px 18px;
  }

  .screen-content {
    gap: 8px;
  }

  .screen-main-image {
    max-height: 13vh;
  }

  .score-card-media img {
    width: min(25vh, 260px);
  }

  .score-number {
    font-size: clamp(5rem, 16vw, 15rem);
  }

  .screen-header h1 {
    font-size: clamp(2rem, 5vw, 5rem);
  }
}


.install-pwa-btn {
  border-color: rgba(255, 209, 102, .45);
  background: rgba(255, 209, 102, .12);
}

@supports (padding: max(0px)) {
  .page-shell,
  .vote-shell,
  .screen-stage {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .screen-stage {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}


/* Footer crédits + CGU */
.app-credit {
  position: relative;
  z-index: 20;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 0 clamp(18px, 3vw, 34px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  text-align: center;
  color: rgba(255, 247, 237, .70);
  font-size: clamp(.78rem, 1.2vw, .95rem);
  line-height: 1.45;
}

.app-credit a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 209, 102, .42);
}

.app-credit a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .7);
}

.credit-separator {
  color: rgba(255, 255, 255, .35);
}

.legal-shell {
  min-height: auto;
  padding-top: clamp(22px, 4vw, 54px);
  padding-bottom: 22px;
}

.legal-card h1 {
  max-width: 900px;
}

.legal-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: rgba(255, 247, 237, .84);
  line-height: 1.65;
  max-width: 930px;
}

.legal-content h2 {
  margin: 18px 0 0;
  color: #fff;
}

.legal-content p {
  margin: 0;
}

.legal-content a {
  color: var(--gold);
  font-weight: 900;
}

.legal-actions {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.screen-bg .app-credit {
  position: fixed;
  left: clamp(8px, 1.4vw, 18px);
  right: clamp(8px, 1.4vw, 18px);
  bottom: clamp(4px, .8vh, 10px);
  width: auto;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: rgba(8, 5, 13, .48);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  font-size: clamp(.62rem, .92vw, .82rem);
  opacity: .78;
}

@media (max-width: 620px) {
  .app-credit {
    padding-bottom: 18px;
  }

  .credit-separator {
    display: none;
  }

  .screen-bg .app-credit {
    font-size: .62rem;
    padding: 5px 8px;
    gap: 6px;
  }
}
