.start-card {
  padding: 30px;
}

.start-card > .eyebrow {
  margin-bottom: 18px;
}

.avatar-label {
  margin-top: 22px;
}

.admin-login-page {
  min-height: 100svh;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-login-page .topbar {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.admin-login {
  width: min(460px, 100%);
  margin: auto;
  padding: 34px;
}

.admin-login h1 {
  font-size: clamp(2.4rem, 7vw, 3.7rem);
  margin-bottom: 10px;
}

.admin-login .statusbar {
  margin: 0;
  color: #a53f54;
}

.local-option {
  display: block;
  margin: 16px auto 0;
}

.room-code-input {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.online-badge i,
.live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #25aa79;
  box-shadow: 0 0 0 5px #25aa7920;
}

.live-pulse {
  display: inline-block;
  animation: live-pulse 1.6s ease-in-out infinite;
}

.room-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.room-heading h1 {
  margin-bottom: 0;
}

.player-slot.me {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px #1769e014;
}

.waiting-slot {
  gap: 12px;
  align-content: center;
}

.scene-card.selectable {
  transition: transform .16s ease, border-color .16s ease;
}

.scene-card.selectable.selected {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 14px 0 #1769e012, 0 25px 55px #1769e026;
}

.waiting-host {
  text-align: center;
  padding: 12px 0;
}

.waiting-host .live-pulse {
  margin-bottom: 15px;
}

.room-code-card {
  display: grid;
  gap: 2px;
  padding: 18px;
  border-radius: 18px;
  background: #e9f6ff;
  text-align: center;
  color: #557795;
}

.room-code-card strong {
  font: 800 2rem/1 'Baloo 2', sans-serif;
  letter-spacing: .12em;
  color: var(--blue);
}

.online-role {
  font-size: 1.35rem;
  font-weight: 900;
  margin: -14px 0 18px;
}

.site-footer {
  width: 100%;
  margin: 38px 0 0;
  padding: 0;
  border: 0;
  background: #0b356b;
  color: #dceeff;
  font-size: .88rem;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 34px 0 22px;
}

.footer-brands {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-doblame {
  color: #fff;
  font: 800 2.45rem/.9 'Baloo 2', sans-serif;
  letter-spacing: -.05em;
}

.footer-doblame > span { color: #62caff; }
.footer-doblame small { margin-left: 3px; color: #9fcff5; font-size: .8rem; letter-spacing: 0; }

.footer-made {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #a9c9e8;
  font-size: .75rem;
}

.codin-mark {
  color: #fff;
  font: 900 1.15rem/1 'Nunito', sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
}

.codin-mark span { color: #62caff; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 25px 0 22px;
}

.footer-links a {
  color: #dceeff;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(194, 225, 255, .2);
  color: #9fc2e3;
  font-size: .75rem;
}

.host-finish-button {
  position: fixed;
  right: 88px;
  top: max(18px, env(safe-area-inset-top, 0px));
  z-index: 35;
  min-height: 54px;
  padding: 11px 17px;
  border: 3px solid #ffd4dc;
  border-radius: 17px;
  background: linear-gradient(180deg, #e95972, #c93655);
  color: white;
  font: 900 .9rem/1 'Nunito', sans-serif;
  box-shadow: 0 6px 0 #90283f, 0 15px 32px #7e29433d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: filter .15s ease, transform .08s ease, box-shadow .08s ease;
}

.host-finish-button .icon {
  width: 20px;
  height: 20px;
}

.host-finish-button:hover {
  filter: brightness(1.06);
}

.host-finish-button:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #90283f, 0 10px 22px #7e29432b;
}

.topbar .host-finish-button {
  position: static;
  min-height: 46px;
  padding: 9px 14px;
  border-radius: 15px;
}

.brand-static {
  cursor: default;
  user-select: none;
}

.game-style-picker {
  display: grid;
  gap: 10px;
}

.game-style {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid #cfe5f6;
  border-radius: 16px;
  background: #f8fcff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.game-style strong,
.game-style span {
  display: block;
}

.game-style strong { font-size: 1rem; }
.game-style span { margin-top: 3px; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.game-style.selected { border-color: var(--blue); background: #e7f5ff; box-shadow: 0 0 0 3px #1769e012; }

.script-page {
  display: grid;
  place-items: center;
}

.script-page .topbar { width: 100%; }

.script-card {
  width: min(720px, 100%);
  padding: 28px;
}

.script-card h1 { margin-bottom: 16px; }

.script-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 900;
}

.script-progress > div { height: 9px; overflow: hidden; border-radius: 20px; background: #ddecf7; }
.script-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--sky)); }

.script-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -8px 0 18px;
  padding: 10px 13px;
  border: 2px solid #cfe5f6;
  border-radius: 14px;
  background: #f8fcff;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}

.script-timer strong { color: var(--blue); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.script-timer.ending { border-color: #f0b8c3; background: #fff3f5; }
.script-timer.ending strong { color: #b62f4b; }
.script-time-setting { padding-top: 2px; }

.target-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 13px;
  border-radius: 14px;
  background: #e6f5ff;
}

.target-chip span { color: var(--blue); font-size: .82rem; font-weight: 900; text-transform: uppercase; }

.script-video-box { overflow: hidden; border-radius: 20px; background: #06172b; }
.script-video-box .play-video { max-height: 330px; }

.script-preview {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 13px;
  border: 2px solid #bce5ff;
  border-radius: 13px;
  background: #ffffffec;
  color: var(--blue);
  font-weight: 900;
}

.original-line {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 15px 17px;
  border-left: 5px solid var(--sky);
  border-radius: 13px;
  background: #edf8ff;
}

.original-line span { color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.original-line strong { font-size: 1.12rem; line-height: 1.45; }
.script-input { min-height: 108px; font-size: 1.08rem; }

.script-meter {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: .82rem;
}

.script-meter span.valid { color: #16805d; font-weight: 900; }

@media (max-width: 560px) {
  .script-card { padding: 20px; }
  .script-meter { display: grid; gap: 3px; }
  .script-preview { right: 10px; bottom: 10px; }
}

#app.view-enter {
  animation: view-enter .3s cubic-bezier(.2, .75, .25, 1) both;
}

#confirm-dialog.game-confirm {
  width: min(460px, calc(100vw - 32px));
  overflow: visible;
  padding: 38px 30px 28px;
  border: 3px solid #ffc8d3;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 0, #fff 0, #fff8fa 48%, #ffedf1 100%);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 10px 0 #bd355024, 0 30px 90px #57203552;
}

#confirm-dialog.game-confirm::before {
  content: '!';
  position: absolute;
  top: -34px;
  left: 50%;
  width: 64px;
  height: 64px;
  border: 4px solid #ffd8df;
  border-radius: 21px;
  background: linear-gradient(180deg, #e95972, #c93655);
  color: white;
  font: 900 2.3rem/58px 'Baloo 2', sans-serif;
  box-shadow: 0 6px 0 #90283f, 0 14px 30px #7e29433d;
  transform: translateX(-50%) rotate(-3deg);
}

#confirm-dialog.game-confirm h3 {
  padding: 0;
  margin: 4px 0 10px;
  color: #9f2943;
  font-size: clamp(1.7rem, 6vw, 2.25rem);
}

#confirm-dialog.game-confirm p {
  color: #5b6f84;
  font-size: 1rem;
  line-height: 1.55;
}

#confirm-dialog.game-confirm .confirm-actions {
  justify-content: center;
  margin-top: 26px;
}

#confirm-dialog.game-confirm #confirm-accept {
  min-width: 155px;
}

#confirm-dialog.confirm-pop {
  animation: confirm-pop .32s cubic-bezier(.2, .9, .25, 1.15) both;
}

.closing-transition {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #08264ecc;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .22s ease;
}

.closing-transition.visible {
  opacity: 1;
}

.closing-transition-card {
  min-width: min(360px, 100%);
  padding: 28px;
  border: 3px solid #bee6ff;
  border-radius: 27px;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 0 #1769e025, 0 32px 80px #041a3855;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateY(18px) scale(.96);
  transition: transform .24s cubic-bezier(.2, .8, .25, 1);
}

.closing-transition.visible .closing-transition-card {
  transform: translateY(0) scale(1);
}

.closing-transition-card .icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 14px;
  background: #ffe8ed;
  color: #c93655;
}

.closing-transition-card strong {
  font: 900 1.65rem/1.1 'Baloo 2', sans-serif;
}

.closing-transition-card span {
  color: #607b95;
  font-size: .9rem;
  font-weight: 800;
}

.lobby-settings {
  align-self: start;
}

.manual-cast {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #edf7ff;
}

.manual-cast label {
  display: grid;
  grid-template-columns: minmax(74px, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 8px;
}

.manual-cast span {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
}

.role-reveal {
  overflow: hidden;
}

.phase-countdown {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
}

.phase-countdown p {
  margin: 0 0 12px;
  color: #5c7590;
  font-weight: 900;
}

.phase-countdown strong {
  color: var(--blue);
  font: 900 clamp(6rem, 22vw, 12rem)/.8 'Baloo 2', sans-serif;
  filter: drop-shadow(0 14px 24px #1769e035);
  animation: countdown-pop .8s ease both;
}

.role-pop {
  animation: role-pop .65s cubic-bezier(.2,.9,.2,1.15) both;
}

.role-card {
  align-items: center;
  text-align: center;
}

.role-card .avatar {
  width: 58px;
  height: 58px;
}

.role-card span,
.secret-role-card strong {
  color: var(--blue);
  font: 900 clamp(1.4rem, 4vw, 2.1rem)/1 'Baloo 2', sans-serif;
}

.secret-role-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 2px solid #b9d7f4;
  border-radius: 28px;
  background: linear-gradient(150deg, #fff, #eaf6ff);
  display: grid;
  gap: 14px;
  box-shadow: 0 24px 70px #1769e024;
}

.secret-role-card > span {
  color: #58728e;
  font-weight: 900;
}

.secret-role-card p {
  margin: 0;
}

.waiting-ready,
.waiting-stage {
  display: grid;
  place-items: center;
  text-align: center;
}

.waiting-ready {
  gap: 8px;
}

.waiting-stage {
  min-height: 66svh;
  gap: 12px;
  padding: 32px 0;
}

.waiting-stage h1,
.waiting-stage p {
  margin: 0;
}

.waiting-orbit {
  width: 48px;
  height: 48px;
  border: 5px solid #d8ebfb;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: waiting-spin 1s linear infinite;
}

.waiting-orbit.large {
  width: 82px;
  height: 82px;
  border-width: 8px;
}

.round-toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.round-timer {
  min-width: 82px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #0b3974;
  color: white;
  font: 900 1.1rem/1 'Baloo 2', sans-serif;
  letter-spacing: .06em;
  text-align: center;
}

.ready-control:not(:disabled) {
  border-color: #7bd4b0;
  background: #dffff1;
  color: #157254;
}

.character-intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 24px;
  display: grid;
  place-items: center;
  background: #08234fdb;
  backdrop-filter: blur(12px);
}

.character-intro-card {
  width: min(520px, 100%);
  padding: 38px;
  border: 3px solid #a9d8ff;
  border-radius: 30px;
  background: white;
  color: #10233d;
  text-align: center;
  box-shadow: 0 30px 90px #00143566;
  animation: role-pop .6s cubic-bezier(.2,.9,.2,1.15) both;
}

.character-intro-card h1 {
  color: var(--blue);
  font-size: clamp(2.4rem, 9vw, 4.7rem);
  margin: 4px 0;
}

.character-intro-card > strong {
  display: block;
  font-size: 1.25rem;
}

.round-players {
  width: min(720px, 100%);
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.round-player {
  padding: 14px;
  border: 1px solid #c9ddf0;
  border-radius: 18px;
  background: white;
  display: grid;
  place-items: center;
  gap: 6px;
  opacity: .68;
}

.round-player.done {
  border-color: #7bd4b0;
  background: #e7fff5;
  opacity: 1;
}

.round-player .avatar {
  width: 48px;
  height: 48px;
}

.round-player span {
  font-weight: 900;
}

.round-player small {
  color: #5b7896;
}

.result-heading {
  margin-bottom: 18px;
}

.result-heading h1 {
  margin: 0;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.result-players,
.result-cinema {
  border: 1px solid #c9ddf0;
  border-radius: 24px;
  background: #ffffffcf;
  box-shadow: 0 20px 60px #1769e014;
}

.result-players {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.result-players h2 {
  margin: 0 0 5px;
}

.result-player {
  padding: 10px;
  border-radius: 15px;
  background: #eef7ff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-player .avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.result-player div:last-child {
  min-width: 0;
  display: grid;
}

.result-player strong,
.result-player span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-player span {
  color: #5d7892;
  font-size: .82rem;
}

.result-cinema {
  padding: 18px;
}

.result-countdown {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 6px;
  background: #062250dc;
  color: white;
  text-align: center;
}

.result-countdown strong {
  font: 900 6rem/1 'Baloo 2', sans-serif;
}

.result-host-controls {
  min-height: 48px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reaction {
  position: fixed;
  left: 50%;
  right: auto;
  top: 48%;
  bottom: auto;
  z-index: 90;
  pointer-events: none;
  display: grid;
  justify-items: center;
  gap: 6px;
  filter: drop-shadow(0 18px 24px #0b2a4b40);
  animation: room-reaction 2.3s cubic-bezier(.18, .8, .22, 1) both;
}

.reaction span {
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
}

.reaction small {
  padding: 7px 13px;
  border: 2px solid #c9e9ff;
  border-radius: 999px;
  background: #ffffffed;
  color: #21547e;
  font-size: .85rem;
  font-weight: 900;
  box-shadow: 0 6px 20px #154c7824;
}

@keyframes room-reaction {
  0% { transform: translate(-50%, 55%) scale(.25) rotate(-10deg); opacity: 0; }
  18% { transform: translate(-50%, -50%) scale(1.15) rotate(4deg); opacity: 1; }
  68% { transform: translate(-50%, -58%) scale(1) rotate(0); opacity: 1; }
  100% { transform: translate(-50%, -105%) scale(.72); opacity: 0; }
}

@keyframes view-enter {
  from { opacity: .45; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes confirm-pop {
  from { opacity: 0; transform: translateY(16px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes waiting-spin {
  to { transform: rotate(1turn); }
}

@keyframes role-pop {
  from { opacity: 0; transform: scale(.82) translateY(22px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes live-pulse {
  0%, 100% { transform: scale(.8); opacity: .65; }
  50% { transform: scale(1.18); opacity: 1; }
}

.unofficial-notice {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  background: rgba(4, 18, 42, .72);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

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

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

.flag-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line, #d8e5f7);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}

.copyright-case {
  display: grid;
  gap: 10px;
}

.creation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.creator-live .room-code-card,
.creator-live #copy-room {
  display: none !important;
}

.creator-live .online-badge {
  font-size: 0;
}

.creator-live .online-badge::after {
  content: "CREATOR LIVE · DATOS PRIVADOS";
  font-size: .78rem;
}

.creation-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line, #d8e5f7);
  border-radius: 16px;
  background: rgba(238, 247, 255, .8);
  text-align: center;
}

.creation-panel code {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: .72rem;
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 18px;
  border: 2px solid #bfe5ff;
  border-radius: 22px;
  background: rgba(248,252,255,.97);
  box-shadow: 0 8px 0 rgba(23,105,224,.12), 0 20px 55px rgba(16,44,80,.22);
  backdrop-filter: blur(18px);
}

.consent-banner[hidden] { display: none; }
.consent-copy strong { display: block; margin-bottom: 3px; color: #0a2f68; font-size: 1rem; }
.consent-copy p { margin: 0; color: #58708d; font-size: .82rem; line-height: 1.45; }
.consent-copy a { color: #1769e0; font-weight: 900; }
.consent-actions { display: grid; grid-template-columns: 1fr 1.12fr; gap: 9px; min-width: 390px; }
.consent-choice { min-height: 56px; padding: 9px 13px; border: 2px solid #b7d9f4; border-radius: 15px; background: #fff; color: #174d8b; text-align: left; box-shadow: 0 4px 0 #d5ebfa; }
.consent-choice.primary { border-color: #1769e0; background: #1769e0; color: #fff; box-shadow: 0 4px 0 #0f4da6; }
.consent-choice span,.consent-choice small { display: block; }
.consent-choice span { font-weight: 900; }
.consent-choice small { margin-top: 2px; color: inherit; font-size: .7rem; opacity: .76; }
.consent-choice.accepted { border-color: #3d9277; background: #e8f8f2; color: #256a55; box-shadow: 0 4px 0 #bce7d8; }
.consent-attention { animation: consent-nudge .38s ease both; }
@keyframes consent-nudge { 35% { transform: translateY(-7px); } 70% { transform: translateY(2px); } }
.private-code-card { background: linear-gradient(135deg, #e8f4ff, #f4edff); }
.private-room-badge { letter-spacing: .04em; }

.age-rating { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #405a78; font-size: .72rem; font-weight: 850; }
.age-rating .help-button { width: 20px; height: 20px; min-width: 20px; font-size: .67rem; }

.legal-page { max-width: 1050px; }
.legal-shell { display: grid; gap: 22px; }
.legal-heading { padding: 10px 2px 24px; border-bottom: 2px solid #c8e7ff; color: var(--ink); }
.legal-heading h1 { max-width: 760px; margin: 5px 0 16px; color: var(--ink); }
.legal-heading .eyebrow { color: var(--blue); }
.language-switch { display: flex; gap: 8px; }
.language-switch .btn { min-height: 38px; padding: 7px 14px; color: #416889; border: 1px solid #c8e7ff; background: transparent; box-shadow: none; }
.language-switch .active { background: var(--blue); color: #fff; border-color: var(--blue); }
.legal-document { padding: clamp(22px, 5vw, 52px); border: 2px solid var(--edge, #c8e7ff); border-radius: 24px; background: rgba(255,255,255,.93); box-shadow: 0 10px 0 rgba(23,105,224,.05), 0 24px 60px rgba(18,61,111,.08); }
.legal-document h2 { margin: 38px 0 12px; color: #0a2f68; }
.legal-document h3 { margin: 25px 0 10px; color: #174d8b; }
.legal-document p,
.legal-document li { line-height: 1.7; }
.legal-document ul { display: grid; gap: 7px; padding-left: 22px; }
.legal-document hr { margin: 30px 0; border: 0; border-top: 1px solid var(--line, #d8e5f7); }
.legal-document code { overflow-wrap: anywhere; }
.age-editor .warnings { padding: 10px; border-radius: 12px; color: #8d2430; background: #fff0f2; }

.streamer-dialog {
  width: min(520px, calc(100vw - 30px));
  padding: 38px 30px 30px;
  border: 3px solid #bfe5ff;
  border-radius: 28px;
  background: #f8fcff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 10px 0 rgba(23,105,224,.12), 0 32px 90px rgba(16,44,80,.3);
}

.streamer-dialog h3 { margin: 4px 0 8px; padding: 0; font-size: 1.7rem; }
.streamer-dialog > p:not(.eyebrow) { margin: 0 auto; max-width: 400px; color: var(--muted); }
.streamer-mark { width: max-content; margin: 0 auto 22px; padding: 10px 16px 8px; border: 4px solid #e1f4ff; border-radius: 14px; background: #1769e0; color: #fff; font: 900 .82rem/1 'Nunito', sans-serif; letter-spacing: .16em; box-shadow: 0 6px 0 #0f4da6; transform: rotate(-3deg); }
.streamer-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 25px; }

.private-code-note { display: block; margin-top: 8px; color: #6684a1; font-size: .72rem; }

@media (max-width: 520px) {
  .policy-grid,
  .copyright-grid,
  .flag-grid {
    grid-template-columns: 1fr;
  }
  .start-card,
  .admin-login {
    padding: 24px;
  }

  .admin-login-page {
    padding: 18px;
  }

  .room-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-brands,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-made { justify-items: start; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .streamer-actions { grid-template-columns: 1fr; }
  .consent-banner { right: 10px; bottom: 10px; left: 10px; grid-template-columns: 1fr; gap: 12px; width: auto; padding: 14px; border-radius: 19px; }
  .consent-actions { min-width: 0; }
  .consent-choice { min-height: 54px; padding: 8px 10px; }

  .host-finish-button {
    right: 16px;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    min-height: 50px;
    padding: 10px 13px;
    border-radius: 15px;
  }

  .topbar .host-finish-button {
    min-width: 46px;
    min-height: 44px;
    padding: 8px 10px;
  }

  .topbar .host-finish-button span { display: none; }

  .manual-cast label {
    grid-template-columns: 1fr;
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

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

  .result-players h2 {
    grid-column: 1 / -1;
  }

  .result-player {
    align-items: flex-start;
    flex-direction: column;
  }

  .character-intro-card {
    padding: 28px 22px;
  }
}
