:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #622322;
  background: #f9dfdb;
  font-synthesis: none;
  --paper: #fff8f5;
  --pink-50: #f9dfdb;
  --pink-100: #f3bcc1;
  --pink-200: #e6a8ad;
  --rose: #d05f70;
  --rose-2: #d77687;
  --wine: #a93248;
  --deep: #622322;
  --muted: #936f70;
  --line: rgba(98, 35, 34, .16);
  --shadow: 0 18px 50px rgba(98, 35, 34, .10);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--pink-50); }
body { margin: 0; min-width: 320px; min-height: 100%; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--pink-50);
  background-image:
    linear-gradient(rgba(208,95,112,.11) 50%, transparent 50%),
    linear-gradient(90deg, rgba(208,95,112,.11) 50%, transparent 50%);
  background-size: 64px 64px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,.25);
  pointer-events: none;
}

.app-shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 24px; }
.screen-home { min-height: 100dvh; display: flex; flex-direction: column; }
.screen-home .footer-note { margin-top: 10px; }
 .brand { text-align: center; margin: 0 0 14px; }
.brand-bow { line-height: 1; display: grid; place-items: center; }
.brand-bow-image { width: clamp(58px, 10vw, 92px); height: auto; display: block; filter: drop-shadow(0 8px 18px rgba(98,35,34,.12)); }
.brand-bow-inline { width: clamp(34px, 5vw, 44px); height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(98,35,34,.12)); }
.brand-title-row { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.brand h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(34px, 7vw, 58px); letter-spacing: -.03em; color: var(--deep); }
.brand p { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--wine); font-size: clamp(16px, 2.5vw, 22px); }
.brand-home-compact { margin-bottom: 12px; }


.panel { background: rgba(255,248,245,.94); border: 1px solid rgba(169,50,72,.20); border-radius: 28px; box-shadow: var(--shadow); }
.home-card { max-width: 680px; margin: 0 auto; padding: clamp(24px, 5vw, 46px); text-align: center; position: relative; overflow: hidden; }
.home-card::before, .home-card::after { content: "♥"; position: absolute; color: var(--pink-200); font-size: 46px; opacity: .55; transform: rotate(-10deg); }
.home-card::before { left: 24px; top: 24px; }
.home-card::after { right: 24px; bottom: 20px; transform: rotate(12deg); }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; color: var(--wine); }
.home-card h2 { margin: 12px auto 8px; max-width: 520px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 5vw, 38px); }
.home-card .intro { margin: 0 auto 26px; max-width: 520px; color: var(--muted); line-height: 1.55; }
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 500px; margin: 0 auto; }

.btn { min-height: 52px; border: 0; border-radius: 16px; padding: 13px 18px; font-weight: 800; cursor: pointer; transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.btn:hover { filter: brightness(.98); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn:focus-visible, .cell:focus-visible, input:focus-visible { outline: 3px solid rgba(208,95,112,.36); outline-offset: 2px; }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 9px 22px rgba(169,50,72,.18); }
.btn-secondary { background: #fff; color: var(--wine); border: 1px solid rgba(169,50,72,.28); }
.btn-soft { background: var(--pink-50); color: var(--deep); border: 1px solid var(--line); }
.btn-danger { background: #fff; color: #8f2336; border: 1px solid rgba(143,35,54,.25); }
.btn:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.topbar .mini-brand { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 700; }
.brand-inline { display: inline-flex; align-items: center; gap: 8px; }
.mini-brand-icon { width: 24px; height: 24px; object-fit: contain; display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-icon { width: 22px; height: 22px; object-fit: contain; display: block; flex: 0 0 auto; }

.back { min-height: 44px; padding: 9px 13px; border-radius: 13px; }

.grid-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
.section { padding: clamp(18px, 3.5vw, 30px); }
.section h2, .section h3 { margin: 0 0 14px; }
.section h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 4vw, 34px); }
.section h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .09em; color: var(--wine); }

.room-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; }
.pill { display: inline-flex; align-items: center; min-height: 34px; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 700; }
.pill strong { color: var(--deep); }

.draw-stage { text-align: center; padding: 16px 0 4px; }
.ball-wrap { width: min(270px, 70vw); aspect-ratio: 1; margin: 6px auto 22px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 27%, #fff 0 9%, #f6d6db 10% 23%, var(--rose-2) 53%, var(--wine) 100%); box-shadow: inset -18px -20px 35px rgba(98,35,34,.20), 0 16px 35px rgba(98,35,34,.16); border: 7px solid rgba(255,255,255,.72); position: relative; }
.ball-wrap::before { content: ""; position: absolute; width: 54%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,248,245,.95); box-shadow: inset 0 0 0 2px rgba(169,50,72,.14); }
.ball-number { position: relative; z-index: 1; font-family: Georgia, "Times New Roman", serif; font-weight: 800; color: var(--deep); font-size: clamp(64px, 16vw, 110px); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.ball-wrap.is-drawing { animation: bob .22s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-3px) rotate(-1deg); } to { transform: translateY(4px) rotate(1deg); } }

.draw-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.draw-actions .btn-primary { min-width: 190px; }
.host-draw-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 720px; margin: 0 auto; }
.host-draw-actions .btn { min-width: 0; width: 100%; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
.host-draw-actions .btn-primary { min-width: 0; }

.number-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.board-number { min-width: 0; aspect-ratio: 1; border-radius: 13px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-weight: 850; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-number.drawn { background: var(--pink-100); border-color: rgba(169,50,72,.28); color: var(--deep); }
.board-number.latest { background: var(--wine); color: #fff; transform: scale(1.04); box-shadow: 0 7px 16px rgba(169,50,72,.18); }

.history { display: flex; flex-wrap: wrap; gap: 8px; }
.history-chip { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--pink-50); border: 1px solid var(--line); font-weight: 800; }
.history-chip:first-child { background: var(--wine); color: white; }
.empty { color: var(--muted); font-size: 14px; line-height: 1.5; }

.form-card { max-width: 540px; margin: 0 auto; padding: clamp(22px, 5vw, 38px); }
.form-card h2 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 8px; font-size: clamp(28px, 5vw, 38px); }
.form-card p { color: var(--muted); line-height: 1.5; }
.form { display: grid; gap: 15px; margin-top: 22px; }
.field { display: grid; gap: 7px; text-align: left; }
.field label { font-size: 13px; font-weight: 800; color: var(--deep); }
.field input { width: 100%; min-height: 52px; border: 1px solid rgba(169,50,72,.22); border-radius: 15px; background: #fff; padding: 12px 14px; color: var(--deep); font-size: 16px; }
.pin-input { text-align: center; font-size: 28px !important; letter-spacing: .35em; font-weight: 900; font-variant-numeric: tabular-nums; padding-left: calc(14px + .35em) !important; }
.help { font-size: 12px; color: var(--muted); }
.error { background: #fff0f1; color: #8f2336; border: 1px solid rgba(143,35,54,.18); padding: 11px 13px; border-radius: 13px; font-size: 13px; }
.notice { background: #fff; color: var(--muted); border: 1px solid var(--line); padding: 11px 13px; border-radius: 13px; font-size: 13px; }

.guest-header { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; margin-bottom: 16px; }
.latest-card { min-width: 116px; text-align: center; padding: 12px 16px; border-radius: 18px; background: var(--wine); color: #fff; }
.latest-card span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.latest-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 42px; line-height: 1; margin-top: 5px; }

.card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.7vw, 11px); }
.cell { border: 1px solid rgba(169,50,72,.20); background: #fff; color: var(--deep); border-radius: clamp(11px, 2vw, 17px); aspect-ratio: 1; display: grid; place-items: center; font-weight: 900; font-size: clamp(18px, 5vw, 30px); cursor: pointer; position: relative; transition: transform .12s ease, background .16s ease, color .16s ease; }
.cell.marked { background: var(--rose-2); color: white; border-color: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.34); }
.cell.marked::after { content: "♥"; position: absolute; font-size: .56em; right: 7px; top: 5px; color: rgba(255,255,255,.86); }
.cell.drawn:not(.marked) { box-shadow: inset 0 0 0 2px rgba(208,95,112,.16); }

.status-banner { margin: 16px 0; border-radius: 17px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); display: flex; gap: 11px; align-items: center; }
.status-banner .status-icon { font-size: 24px; }
.status-banner strong { display: block; }
.status-banner span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.participant-list { display: grid; gap: 8px; }
.participant { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: #fff; border: 1px solid var(--line); }
.participant span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.participant small { color: var(--muted); text-align: right; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(65,23,23,.42); display: grid; place-items: center; padding: 18px; }
.modal { width: min(430px, 100%); background: var(--paper); border: 1px solid rgba(169,50,72,.22); border-radius: 24px; padding: 24px; box-shadow: 0 30px 80px rgba(65,23,23,.22); }
.modal h3 { font-family: Georgia, "Times New Roman", serif; font-size: 25px; margin: 0 0 8px; }
.modal p { color: var(--muted); line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.celebrate { text-align: center; }
.celebrate .big { font-size: 58px; }
.celebrate h3 { font-size: 34px; color: var(--wine); }

.footer-note { text-align: center; color: rgba(98,35,34,.58); font-size: 12px; margin-top: 20px; }
.app-version { opacity: .58; margin-left: 5px; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  body::before, body::after { position: absolute; min-height: 100%; }
  .grid-layout { grid-template-columns: 1fr; }
  .host-side { order: 2; }
  .guest-header { grid-template-columns: 1fr; }
  .latest-card { min-width: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .latest-card strong { margin: 0; }
}
@media (max-width: 560px) {
  body::before { background-size: 46px 46px; }
  .app-shell { width: min(100% - 18px, 1180px); padding-top: 15px; }
  .home-actions { grid-template-columns: 1fr; }
  .home-card::before, .home-card::after { font-size: 30px; }
  .panel { border-radius: 22px; }
  .section { padding: 16px; }
  .number-board { gap: 6px; }
  .board-number { border-radius: 10px; font-size: 13px; }
  .host-draw-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .host-draw-actions .btn-primary { grid-column: 1 / -1; width: 100%; }
  .host-draw-actions .btn { min-height: 46px; padding: 10px 6px; font-size: 12px; }
  .btn { min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.section-heading h3 { margin:0; }
.btn-small { min-height:36px; padding:8px 12px; border-radius:12px; font-size:13px; }

/* v0.2.0 — aniversariante + experiência estável */
.home-card-photo {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(250px, .72fr);
  align-items: stretch;
  text-align: left;
  isolation: isolate;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.home-card-photo::before { left: 26px; top: 24px; z-index: 0; }
.home-card-photo::after { right: 24px; bottom: 20px; z-index: 0; }
.home-copy {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.home-card-photo h2,
.home-card-photo .intro { margin-left: 0; margin-right: 0; }
.home-card-photo h2 { max-width: 560px; }
.home-card-photo .intro { max-width: 570px; margin-bottom: 18px; }
.home-card-photo .home-actions { max-width: 560px; margin: 0; width: 100%; }
.home-card-photo .home-actions.has-host-resume { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 610px; gap: 9px; }
.home-card-photo .home-actions.has-host-resume .btn { min-width: 0; padding-left: 10px; padding-right: 10px; font-size: 13px; white-space: nowrap; }
.home-resume { margin-top: 12px; max-width: 520px; }
.home-resume .btn { width: 100%; }
.home-notice { margin: 0 0 16px; max-width: 520px; }
.home-config { margin-top: 12px; max-width: 520px; }
.home-photo {
  min-height: 320px;
  position: relative;
  display: grid;
  place-items: end center;
  overflow: hidden;
  padding: 14px 14px 0 0;
  background: linear-gradient(145deg, rgba(243,188,193,.28), rgba(255,248,245,.10));
}
.home-photo-glow {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(169,50,72,.12);
  box-shadow: 0 24px 60px rgba(169,50,72,.10);
  top: 10%;
  left: 10%;
}
.home-photo img {
  position: relative;
  z-index: 2;
  width: min(100%, 300px);
  max-height: min(46dvh, 360px);
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 18px 22px rgba(98,35,34,.12));
}
.home-photo-badge {
  position: absolute;
  z-index: 3;
  right: 16px;
  top: 16px;
  background: rgba(255,248,245,.92);
  color: var(--wine);
  border: 1px solid rgba(169,50,72,.18);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(98,35,34,.08);
}

.guest-header {
  grid-template-columns: minmax(0, 1fr) 105px auto;
  align-items: center;
  gap: 14px;
}
.guest-title h2 { margin: 7px 0 7px; }
.guest-nair {
  width: 105px;
  height: 120px;
  display: grid;
  place-items: end center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(243,188,193,.18), rgba(255,255,255,.72));
  border: 1px solid rgba(169,50,72,.12);
  overflow: hidden;
}
.guest-nair img {
  width: 94px;
  height: 112px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 7px 10px rgba(98,35,34,.10));
  user-select: none;
  -webkit-user-drag: none;
}
.card-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.card-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legend-marked { background: var(--rose-2); }
.legend-drawn { background: #fff; border: 2px solid rgba(208,95,112,.42); }
.cell.drawn:not(.marked)::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  left: 7px;
  top: 7px;
  background: var(--rose);
  opacity: .72;
}
.cell:disabled { cursor: default; }

.celebrate-photo {
  width: 112px;
  height: 138px;
  object-fit: contain;
  margin: -8px auto -6px;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(98,35,34,.12));
}

@media (max-width: 820px) {
  .home-card-photo {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
  }
  .home-card-photo .home-actions.has-host-resume { grid-template-columns: 1fr 1fr; }
  .home-card-photo .home-actions.has-host-resume #resumeHost { grid-column: 1 / -1; }
  .home-copy { padding: 30px; }
  .home-photo { min-height: 410px; padding-right: 8px; }
  .home-photo img { max-height: 395px; }
  .guest-header { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .guest-title { grid-column: 1 / -1; }
  .guest-nair { width: 92px; height: 102px; }
  .guest-nair img { width: 82px; height: 96px; }
  .latest-card { width: auto; min-width: 0; }
}

@media (max-width: 650px) {
  .home-card-photo { grid-template-columns: 1fr; text-align: center; }
  .home-copy { padding: 26px 22px 8px; }
  .home-card-photo h2,
  .home-card-photo .intro { margin-left: auto; margin-right: auto; }
  .home-card-photo .home-actions,
  .home-card-photo .home-actions.has-host-resume,
  .home-resume,
  .home-notice,
  .home-config { max-width: none; margin-left: 0; margin-right: 0; }

  .home-card-photo .home-actions.has-host-resume { grid-template-columns: 1fr; }
  .home-card-photo .home-actions.has-host-resume #resumeHost { grid-column: auto; }
  .home-photo {
    min-height: 290px;
    padding: 0 10px;
    background: transparent;
  }
  .home-photo-glow { width: 64%; top: 7%; left: 18%; }
  .home-photo img { width: min(74vw, 280px); max-height: 286px; }
  .home-photo-badge { top: 16px; right: 18px; }
}

@media (max-width: 420px) {
  .guest-header { gap: 10px; }
  .guest-nair { width: 74px; height: 86px; border-radius: 14px; }
  .guest-nair img { width: 68px; height: 82px; }
  .latest-card { padding: 10px 12px; }
  .latest-card strong { font-size: 36px; }
  .card-grid { gap: 6px; }
  .cell { font-size: clamp(17px, 6vw, 25px); }
}

/* v0.2.1 — alinhamento dos controles em desktop/mobile */


/* v0.2.2 — host em duas colunas, retomada por PIN e foto mobile maior */
.host-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  grid-template-areas:
    "ball participants"
    "actions board"
    "history board";
  gap: 18px;
  align-items: start;
}
.host-ball-panel { grid-area: ball; }
.host-participants-panel { grid-area: participants; }
.host-actions-panel { grid-area: actions; padding-top: 18px; padding-bottom: 18px; }
.host-board-panel { grid-area: board; }
.host-history-panel { grid-area: history; }
.host-ball-stage { padding-bottom: 0; }
.host-ball-panel .ball-wrap { width: min(245px, 54vw); margin-bottom: 4px; }
.host-participants-panel .participant-list { max-height: 310px; overflow: auto; padding-right: 2px; }
.host-board-panel .number-board { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 820px) {
  .host-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ball"
      "actions"
      "participants"
      "board"
      "history";
  }
  .host-participants-panel .participant-list { max-height: none; overflow: visible; }
}

@media (max-width: 650px) {
  .guest-header {
    grid-template-columns: minmax(132px, .72fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }
  .guest-title { grid-column: 1 / -1; }
  .guest-nair {
    width: 138px;
    height: 158px;
    justify-self: center;
    border-radius: 20px;
  }
  .guest-nair img {
    width: 128px;
    height: 150px;
  }
  .latest-card { width: 100%; min-height: 96px; }
}

/* v0.2.3 — escala fixa da aplicação */
html, body {
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
}

/* v0.2.4 — dashboard do sorteador reorganizado */
.host-statusbar {
  grid-column: 1 / -1;
  padding: 12px 16px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(98,35,34,.07);
}
.host-statusbar .room-meta {
  margin: 0;
  gap: 8px;
  align-items: center;
}
.host-statusbar .pill {
  min-height: 32px;
  padding: 6px 10px;
  background: rgba(255,255,255,.78);
}
.meta-label { color: var(--muted); font-weight: 700; }

.host-column {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}
.host-panel-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.host-panel-title > span {
  color: var(--wine);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.host-panel-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.host-participants-panel .section-heading {
  align-items: center;
  margin-bottom: 12px;
}
.host-participants-panel .section-heading .host-panel-title { margin: 0; }

@media (min-width: 821px) {
  .app-shell { width: min(1240px, calc(100% - 32px)); }
  .host-dashboard {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(470px, 1.06fr);
    grid-template-areas: none;
    gap: 16px;
    align-items: start;
  }

  .host-ball-panel,
  .host-participants-panel,
  .host-actions-panel,
  .host-board-panel,
  .host-history-panel { grid-area: auto; }

  .host-ball-panel { padding: 20px 24px 18px; }
  .host-ball-stage { padding: 0; }
  .host-ball-panel .ball-wrap {
    width: 210px;
    max-width: 100%;
    margin: 4px auto 0;
    border-width: 6px;
    box-shadow: inset -15px -17px 30px rgba(98,35,34,.18), 0 12px 28px rgba(98,35,34,.13);
  }
  .host-ball-panel .ball-number { font-size: 82px; }

  .host-actions-panel { padding: 16px 18px 18px; }
  .host-actions-panel .host-panel-title { margin-bottom: 10px; }
  .host-draw-actions {
    max-width: none;
    gap: 7px;
  }
  .host-draw-actions .btn {
    min-height: 46px;
    padding: 10px 8px;
    border-radius: 13px;
    font-size: 13px;
  }

  .host-history-panel { padding: 20px; }
  .host-history-panel .history { gap: 7px; }
  .host-history-panel .history-chip {
    min-width: 36px;
    min-height: 36px;
    font-size: 13px;
  }

  .host-participants-panel { padding: 20px; }
  .host-participants-panel .participant-list {
    max-height: 190px;
    overflow: auto;
    padding-right: 2px;
  }
  .host-participants-panel .participant {
    min-height: 42px;
    padding: 8px 11px;
  }

  .host-board-panel { padding: 20px; }
  .host-board-panel .host-panel-title { margin-bottom: 14px; }
  .host-board-panel .number-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }
  .host-board-panel .board-number {
    aspect-ratio: 1.12;
    border-radius: 12px;
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  .host-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 14px;
  }
  .host-statusbar { order: 0; }
  .host-column { display: contents; }
  .host-ball-panel { order: 1; }
  .host-actions-panel { order: 2; }
  .host-participants-panel { order: 3; }
  .host-board-panel { order: 4; }
  .host-history-panel { order: 5; }
  .host-ball-panel,
  .host-participants-panel,
  .host-actions-panel,
  .host-board-panel,
  .host-history-panel { grid-area: auto; }
  .host-panel-title small { white-space: normal; text-align: right; }
}

@media (max-width: 560px) {
  .host-statusbar { padding: 10px 12px; }
  .host-statusbar .room-meta { gap: 6px; }
  .host-statusbar .pill { font-size: 12px; padding: 5px 8px; }
  .host-panel-title { gap: 8px; }
  .host-panel-title > span { font-size: 13px; }
  .host-panel-title small { font-size: 10px; }
}

/* v0.2.5 — sorteador compacto, sem painel 1–36 */
.host-topbar {
  display: grid;
  grid-template-columns: auto auto minmax(170px, 1fr) auto;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(169,50,72,.18);
  border-radius: 18px;
  background: rgba(255,248,245,.90);
  box-shadow: 0 8px 24px rgba(98,35,34,.06);
}
.host-topbar .back {
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 11px;
  white-space: nowrap;
}
.host-mini-brand,
.host-inline-notice,
.host-top-meta {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(98,35,34,.14);
}
.host-mini-brand {
  font-size: 17px !important;
  white-space: nowrap;
}
.host-inline-notice {
  min-width: 0;
  color: var(--wine);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.host-inline-notice.is-error { color: #8f2336; }
.host-top-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-bottom: 0;
}
.host-top-meta .pill {
  min-height: 29px;
  padding: 4px 8px;
  gap: 4px;
  font-size: 11px;
  white-space: nowrap;
  background: #fff;
}

@media (min-width: 821px) {
  .app-shell { width: min(1160px, calc(100% - 28px)); padding-top: 18px; }
  .host-dashboard {
    display: grid;
    grid-template-columns: minmax(330px, .78fr) minmax(460px, 1.22fr);
    gap: 12px;
    align-items: start;
  }
  .host-column { gap: 12px; }

  .host-ball-panel {
    padding: 14px 18px 12px;
  }
  .host-ball-panel .host-panel-title { margin-bottom: 2px; }
  .host-ball-stage { padding: 0; }
  .host-ball-panel .ball-wrap {
    width: 158px;
    margin: 2px auto 0;
    border-width: 5px;
    box-shadow: inset -12px -14px 24px rgba(98,35,34,.17), 0 9px 22px rgba(98,35,34,.11);
  }
  .host-ball-panel .ball-number { font-size: 61px; }

  .host-actions-panel {
    padding: 12px 14px 14px;
  }
  .host-actions-panel .host-panel-title { margin-bottom: 8px; }
  .host-draw-actions { gap: 6px; }
  .host-draw-actions .btn {
    min-height: 41px;
    padding: 8px 7px;
    border-radius: 12px;
    font-size: 12px;
  }

  .host-participants-panel,
  .host-history-panel { padding: 14px 16px; }
  .host-participants-panel .section-heading { margin-bottom: 8px; }
  .host-participants-panel .participant-list {
    max-height: 150px;
    overflow: auto;
  }
  .host-participants-panel .participant {
    min-height: 38px;
    padding: 7px 10px;
  }
  .host-history-panel .host-panel-title { margin-bottom: 9px; }
  .host-history-panel .history { gap: 6px; }
  .host-history-panel .history-chip {
    min-width: 32px;
    min-height: 32px;
    font-size: 12px;
  }
  .footer-note { margin-top: 14px; }
}

@media (max-width: 820px) {
  .host-topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }
  .host-topbar .back { min-height: 36px; padding: 6px 9px; font-size: 12px; }
  .host-mini-brand {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    text-align: right;
    font-size: 15px !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .host-inline-notice {
    grid-column: 1 / -1;
    margin: 0;
    padding: 6px 8px 0;
    border-left: 0;
    border-top: 1px solid rgba(98,35,34,.11);
    font-size: 12px;
    min-height: 25px;
  }
  .host-top-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 6px 0 0;
    border-left: 0;
  }
  .host-top-meta .pill {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    justify-content: center;
    padding: 4px 4px;
    gap: 3px;
    font-size: 10.5px;
    overflow: hidden;
    white-space: nowrap;
  }
  .host-dashboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .host-column { display: contents; }
  .host-ball-panel { order: 1; padding: 14px 16px 12px; }
  .host-actions-panel { order: 2; padding: 12px; }
  .host-participants-panel { order: 3; padding: 14px; }
  .host-history-panel { order: 4; padding: 14px; }
  .host-ball-panel .ball-wrap { width: min(178px, 48vw); margin: 2px auto 0; }
  .host-ball-panel .ball-number { font-size: clamp(58px, 16vw, 72px); }
  .host-panel-title { margin-bottom: 8px; }
}

@media (max-width: 420px) {
  .host-top-meta .pill { font-size: 9.5px; padding-left: 2px; padding-right: 2px; }
  .host-top-meta .meta-label { font-size: 9px; }
  .host-topbar { margin-bottom: 9px; }
}


/* v0.2.6 — cartelas físicas em PDF */
.home-actions-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
.home-actions-3 .btn { min-width: 0; padding-left: 10px; padding-right: 10px; }
.home-help {
  margin-top: 12px;
  max-width: 560px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .home-actions-3 { grid-template-columns: 1fr 1fr; }
  .home-actions-3 #physicalCards { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .home-actions-3 { grid-template-columns: 1fr; }
  .home-actions-3 #physicalCards { grid-column: auto; }
  .home-help { font-size: 11px; }
}


/* v0.2.8 — botão de cartelas físicas apenas no desktop */
.physical-cards-button {
  min-width: 52px !important;
  width: 52px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-size: 20px;
  justify-self: start;
}
@media (max-width: 820px) {
  .physical-cards-button { display: none !important; }
  .home-actions-3 { grid-template-columns: 1fr 1fr; }
}


/* v0.2.10 — todos os botões da Home web em uma única linha */
.home-actions-main {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 52px;
  gap: 9px;
  max-width: 760px !important;
  width: 100%;
}
.home-actions-main.has-guest-resume {
  grid-template-columns: minmax(145px, 1fr) minmax(145px, 1fr) 52px minmax(170px, 1.18fr);
}
.home-actions-main .btn { min-width: 0; white-space: nowrap; }
.resume-guest-button { width: 100%; padding-left: 12px; padding-right: 12px; font-size: 13px; }

@media (max-width: 820px) {
  .home-actions-main,
  .home-actions-main.has-guest-resume {
    grid-template-columns: 1fr 1fr;
  }
  .home-actions-main .physical-cards-button { display: none !important; }
  .home-actions-main .resume-guest-button { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .home-actions-main,
  .home-actions-main.has-guest-resume { grid-template-columns: 1fr; }
  .home-actions-main .resume-guest-button { grid-column: auto; }
}


/* v0.2.11 — cabeçalho da cartela mobile em duas colunas */
.guest-card-label,
.guest-card-name { display: inline; }
.guest-card-label::after { content: " "; }

@media (max-width: 650px) {
  .guest-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 12px;
    align-items: stretch;
    margin-bottom: 16px;
  }

  .guest-title {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: start;
  }

  .guest-title .kicker {
    margin-bottom: 7px;
  }

  .guest-title h2 {
    margin: 0 0 7px;
    line-height: 1.02;
  }

  .guest-card-label,
  .guest-card-name {
    display: block;
  }

  .guest-card-label::after { content: ""; }

  .guest-card-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 2px;
  }

  .guest-card-name {
    font-size: clamp(27px, 8vw, 36px);
    color: var(--deep);
    overflow-wrap: anywhere;
  }

  .guest-title .empty {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.42;
  }

  .guest-nair {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 138px;
    height: 100%;
    min-height: 238px;
    justify-self: end;
    align-self: stretch;
    border-radius: 20px;
    place-items: end center;
  }

  .guest-nair img {
    width: 132px;
    height: 100%;
    max-height: 270px;
    object-fit: contain;
    object-position: center bottom;
  }

  .latest-card {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 88px;
    display: block;
    padding: 10px 14px 9px;
    text-align: center;
    align-self: end;
  }

  .latest-card span {
    display: block;
    margin: 0 0 3px;
    font-size: 10px;
  }

  .latest-card strong {
    display: block;
    margin: 0;
    font-size: 43px;
  }
}

@media (max-width: 390px) {
  .guest-header {
    grid-template-columns: minmax(0, 1fr) 124px;
    column-gap: 10px;
  }
  .guest-nair {
    width: 124px;
    min-height: 228px;
  }
  .guest-nair img { width: 120px; }
  .guest-card-label { font-size: 17px; }
  .guest-card-name { font-size: clamp(25px, 7.6vw, 32px); }
  .guest-title .empty { font-size: 11px; }
  .latest-card { min-height: 82px; padding: 9px 10px 8px; }
  .latest-card strong { font-size: 40px; }
}


/* v0.2.12 — topo da cartela mobile mais compacto */
@media (max-width: 650px) {
  .guest-header {
    grid-template-columns: minmax(0, 1fr) 116px;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: stretch;
    margin-bottom: 12px;
  }

  .guest-title {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: start;
  }

  .guest-title .kicker {
    margin: 0 0 6px;
    font-size: 11px;
  }

  .guest-title h2 {
    margin: 0;
    line-height: 1.02;
    min-width: 0;
  }

  .guest-card-label {
    display: block;
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
  }

  .guest-card-name {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: var(--deep);
    font-size: var(--guest-name-size, 30px);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    letter-spacing: -.025em;
  }

  .guest-nair {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 116px;
    height: 178px;
    min-height: 0;
    justify-self: end;
    align-self: start;
    border-radius: 18px;
    place-items: end center;
    padding: 0;
  }

  .guest-nair img {
    width: 116px;
    height: 178px;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    transform: scale(1.04);
    transform-origin: center bottom;
  }

  .latest-card {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    padding: 8px 12px 7px;
    display: block;
    text-align: center;
    align-self: end;
  }

  .latest-card span {
    display: block;
    margin: 0 0 1px;
    font-size: 9.5px;
  }

  .latest-card strong {
    display: block;
    margin: 0;
    font-size: 39px;
    line-height: 1;
  }

  .status-banner {
    margin: 12px 0;
    padding: 11px 13px;
  }

  .status-banner span {
    font-size: 12px;
    line-height: 1.35;
  }
}

@media (max-width: 390px) {
  .guest-header {
    grid-template-columns: minmax(0, 1fr) 108px;
    column-gap: 9px;
  }
  .guest-nair,
  .guest-nair img {
    width: 108px;
    height: 170px;
  }
  .guest-card-label { font-size: 15px; }
  .latest-card { min-height: 72px; padding: 7px 9px 6px; }
  .latest-card strong { font-size: 37px; }
}


/* v0.2.13 — viewport compacto + rodapé no fim + sem rolagem interna desnecessária */
html, body { min-height: 100%; }
body { min-height: 100dvh; overflow-x: hidden; }
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}
.footer-note {
  margin-top: auto;
  padding-top: 10px;
  padding-bottom: 0;
  flex: 0 0 auto;
}

@media (min-width: 821px) {
  .app-shell {
    width: min(1160px, calc(100% - 24px));
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .host-topbar {
    min-height: 48px;
    margin-bottom: 10px;
    padding: 6px 8px;
    border-radius: 15px;
  }
  .host-topbar .back { min-height: 34px; padding: 5px 10px; }
  .host-mini-brand { font-size: 16px !important; }
  .host-inline-notice { font-size: 12px; }
  .host-top-meta .pill { min-height: 27px; padding: 3px 7px; font-size: 10.5px; }

  .host-dashboard {
    grid-template-columns: minmax(300px, .72fr) minmax(500px, 1.28fr);
    gap: 10px;
  }
  .host-column { gap: 10px; }

  .host-ball-panel { padding: 10px 14px 9px; }
  .host-ball-panel .host-panel-title { margin-bottom: 0; }
  .host-ball-panel .ball-wrap {
    width: 136px;
    margin: 0 auto;
    border-width: 4px;
  }
  .host-ball-panel .ball-number { font-size: 54px; }

  .host-actions-panel { padding: 10px 12px 11px; }
  .host-actions-panel .host-panel-title { margin-bottom: 6px; }
  .host-draw-actions { gap: 5px; }
  .host-draw-actions .btn {
    min-height: 38px;
    padding: 6px 6px;
    border-radius: 11px;
    font-size: 11.5px;
  }

  .host-participants-panel,
  .host-history-panel { padding: 11px 14px; }
  .host-participants-panel .section-heading { margin-bottom: 7px; }
  .host-participants-panel .participant-list {
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .host-participants-panel .participant {
    min-height: 35px;
    padding: 6px 9px;
    border-radius: 11px;
  }
  .host-participants-panel .participant span { font-size: 13px; }
  .host-participants-panel .participant small { font-size: 11px; }
  .btn-small { min-height: 32px; padding: 6px 10px; font-size: 11px; border-radius: 10px; }

  .host-history-panel .host-panel-title { margin-bottom: 7px; }
  .host-history-panel .history { gap: 5px; }
  .host-history-panel .history-chip {
    min-width: 30px;
    min-height: 30px;
    font-size: 11px;
  }
  .host-panel-title > span { font-size: 12.5px; }
  .host-panel-title small { font-size: 10px; }
  .footer-note { font-size: 11px; padding-top: 8px; }
}

@media (max-width: 820px) {
  .app-shell { min-height: 100dvh; padding-bottom: 7px; }
  .host-participants-panel .participant-list { max-height: none; overflow: visible; }
  .footer-note { margin-top: auto; padding-top: 12px; }
}


/* v0.2.14 — sorteador desktop ocupa toda a área útil, sem faixa vazia */
@media (min-width: 821px) {
  .app-shell.screen-host {
    height: 100dvh;
    min-height: 560px;
    overflow: hidden;
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .host-topbar {
    flex: 0 0 auto;
    margin-bottom: 10px;
  }

  .host-dashboard {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(310px, .72fr) minmax(520px, 1.28fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "ball participants"
      "actions history";
    gap: 10px;
    align-items: stretch;
  }

  .host-column { display: contents; }
  .host-ball-panel { grid-area: ball; }
  .host-actions-panel { grid-area: actions; }
  .host-participants-panel { grid-area: participants; }
  .host-history-panel { grid-area: history; }

  .host-ball-panel,
  .host-participants-panel {
    min-height: 0;
    height: 100%;
  }

  .host-ball-panel {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
  }
  .host-ball-panel .host-panel-title { flex: 0 0 auto; margin-bottom: 2px; }
  .host-ball-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 0;
  }
  .host-ball-panel .ball-wrap {
    width: clamp(170px, 27vh, 235px);
    max-width: 72%;
    margin: 0 auto;
    border-width: 5px;
  }
  .host-ball-panel .ball-number { font-size: clamp(66px, 11vh, 90px); }

  .host-participants-panel {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
  }
  .host-participants-panel .section-heading { flex: 0 0 auto; margin-bottom: 8px; }
  .host-participants-panel #participantListContainer {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
  }
  .host-participants-panel .participant-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    max-height: none;
    overflow: visible;
  }
  .host-participants-panel .participant {
    min-height: 42px;
    padding: 8px 11px;
  }

  .host-actions-panel,
  .host-history-panel {
    align-self: end;
  }
  .host-actions-panel { padding: 10px 12px 11px; }
  .host-history-panel { padding: 10px 14px 11px; }
  .host-history-panel .history { gap: 5px; }
  .host-history-panel .history-chip {
    min-width: 31px;
    min-height: 31px;
  }

  .host-dashboard ~ .footer-note {
    flex: 0 0 auto;
    margin-top: 7px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 16px;
  }
}

@media (min-width: 821px) and (max-height: 680px) {
  .host-ball-panel .ball-wrap { width: clamp(150px, 25vh, 180px); }
  .host-ball-panel .ball-number { font-size: clamp(58px, 10vh, 72px); }
  .host-participants-panel .participant { min-height: 36px; padding: 6px 9px; }
  .host-actions-panel, .host-history-panel { padding-top: 8px; padding-bottom: 8px; }
}


/* v0.2.15 — painel desktop preenchido: bola maior + participantes compactos + painel 1–36 */
@media (min-width: 821px) {
  .host-dashboard {
    grid-template-columns: minmax(310px, .72fr) minmax(540px, 1.28fr);
    grid-template-rows: minmax(145px, .38fr) minmax(205px, .62fr) auto;
    grid-template-areas:
      "ball participants"
      "ball board"
      "actions history";
    gap: 10px;
  }

  .host-ball-panel { grid-area: ball; }
  .host-actions-panel { grid-area: actions; }
  .host-participants-panel { grid-area: participants; }
  .host-board-panel { grid-area: board; }
  .host-history-panel { grid-area: history; }

  .host-ball-panel .ball-wrap {
    width: clamp(230px, 36vh, 310px);
    max-width: 82%;
    border-width: 6px;
  }
  .host-ball-panel .ball-number {
    font-size: clamp(86px, 15vh, 122px);
  }

  .host-participants-panel {
    padding: 11px 14px 10px;
  }
  .host-participants-panel .section-heading {
    margin-bottom: 6px;
  }
  .host-participants-panel #participantListContainer {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding-right: 2px;
  }
  .host-participants-panel .participant-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .host-participants-panel .participant {
    min-height: 34px;
    padding: 5px 8px;
    border-radius: 10px;
  }
  .host-participants-panel .participant span {
    font-size: 12px;
  }
  .host-participants-panel .participant small {
    font-size: 10px;
  }

  .host-board-panel {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px 14px 12px;
  }
  .host-board-panel .host-panel-title {
    flex: 0 0 auto;
    margin-bottom: 7px;
  }
  .host-board-fill {
    flex: 1 1 auto;
    min-height: 0;
  }
  .host-board-fill .number-board {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }
  .host-board-fill .board-number {
    aspect-ratio: auto;
    min-height: 0;
    border-radius: 10px;
    font-size: clamp(11px, 1.15vw, 14px);
  }

  .host-history-panel {
    min-height: 62px;
  }
}

@media (min-width: 821px) and (max-height: 680px) {
  .host-dashboard {
    grid-template-rows: minmax(125px, .36fr) minmax(175px, .64fr) auto;
  }
  .host-ball-panel .ball-wrap { width: clamp(205px, 34vh, 245px); }
  .host-ball-panel .ball-number { font-size: clamp(78px, 14vh, 98px); }
  .host-participants-panel .participant { min-height: 31px; padding-top: 4px; padding-bottom: 4px; }
  .host-board-panel { padding-top: 8px; padding-bottom: 9px; }
}

/* Mantém o mobile da v0.2.14 sem o painel extra do sorteador. */
@media (max-width: 820px) {
  .host-board-panel { display: none; }
}


/* v0.2.16 — sorteador mobile: painéis em largura total + participantes limitados a 4 linhas */
@media (max-width: 820px) {
  /* A grade desktop deixava align-items:start ativo. Em coluna isso encolhia
     a bola e os controles à largura do conteúdo. No mobile tudo deve ocupar
     a largura útil da tela. */
  .host-dashboard {
    width: 100%;
    align-items: stretch;
  }
  .host-ball-panel,
  .host-actions-panel,
  .host-participants-panel,
  .host-history-panel {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .host-ball-panel {
    min-height: 0;
  }
  .host-ball-stage {
    width: 100%;
  }
  .host-ball-panel .ball-wrap {
    width: min(255px, 64vw);
    max-width: 100%;
  }
  .host-ball-panel .ball-number {
    font-size: clamp(74px, 21vw, 102px);
  }

  .host-actions-panel .host-draw-actions {
    width: 100%;
    max-width: none;
  }

  /* Exibe aproximadamente quatro participantes e mantém scroll para o restante. */
  .host-participants-panel #participantListContainer {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 2px;
  }
  .host-participants-panel .participant-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    max-height: none;
    overflow: visible;
  }
  .host-participants-panel .participant {
    min-height: 57px;
    padding: 9px 12px;
  }
}

@media (max-width: 420px) {
  .host-ball-panel .ball-wrap {
    width: min(238px, 66vw);
  }
  .host-participants-panel #participantListContainer {
    max-height: 238px;
  }
  .host-participants-panel .participant {
    min-height: 54px;
  }
}


/* v0.2.17 — participante responsivo: ocupa a viewport sem cortar conteúdo */
.guest-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

@media (min-width: 821px) {
  /* O fullscreen rígido é exclusivo do sorteador. A tela do participante
     recebe sua própria grade, com áreas que se adaptam à altura disponível. */
  .app-shell.screen-guest {
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .screen-guest > .topbar {
    flex: 0 0 auto;
    min-height: 46px;
    margin-bottom: 10px;
  }

  .screen-guest > #guestNotice {
    flex: 0 0 auto;
    margin-bottom: 8px !important;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .screen-guest .guest-dashboard {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(470px, 1.28fr) minmax(330px, .72fr);
    gap: 10px;
    align-items: stretch;
    overflow: hidden;
  }

  .screen-guest .guest-card-panel {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 14px 16px;
  }

  .screen-guest .guest-header {
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) 86px 112px;
    gap: 10px;
    margin-bottom: 8px;
  }
  .screen-guest .guest-title h2 {
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: clamp(23px, 2.4vw, 31px);
  }
  .screen-guest .guest-title .empty {
    font-size: 12px;
    line-height: 1.35;
  }
  .screen-guest .guest-nair {
    width: 86px;
    height: 92px;
    border-radius: 14px;
  }
  .screen-guest .guest-nair img {
    width: 82px;
    height: 90px;
  }
  .screen-guest .latest-card {
    min-width: 112px;
    padding: 9px 11px;
    border-radius: 15px;
  }
  .screen-guest .latest-card strong {
    font-size: 36px;
    margin-top: 3px;
  }

  .screen-guest .status-banner {
    flex: 0 0 auto;
    margin: 8px 0;
    padding: 9px 11px;
    border-radius: 14px;
  }
  .screen-guest .status-banner .status-icon { font-size: 20px; }
  .screen-guest .status-banner span { font-size: 11.5px; line-height: 1.3; }

  /* A cartela cresce com a tela, mas respeita a altura disponível. Em telas
     menores ela encolhe antes de provocar corte. */
  .screen-guest .card-grid {
    flex: 0 0 auto;
    width: min(100%, clamp(330px, calc(100dvh - 315px), 575px));
    align-self: center;
    gap: clamp(6px, 1vh, 9px);
  }
  .screen-guest .cell {
    border-radius: clamp(10px, 1.4vh, 15px);
    font-size: clamp(18px, 3.7vh, 28px);
  }
  .screen-guest .card-legend {
    flex: 0 0 auto;
    margin-top: 8px;
    gap: 12px;
  }
  .screen-guest .guest-card-panel > .draw-actions {
    flex: 0 0 auto;
    margin-top: 10px !important;
  }

  .screen-guest .guest-side {
    min-height: 0;
    height: 100%;
    grid-template-rows: minmax(92px, auto) minmax(0, 1fr);
    overflow: hidden;
  }
  .screen-guest .guest-history-panel,
  .screen-guest .guest-board-panel {
    min-width: 0;
    min-height: 0;
    padding: 12px 14px;
  }
  .screen-guest .guest-history-panel {
    overflow: auto;
    scrollbar-width: thin;
  }
  .screen-guest .guest-history-panel h3,
  .screen-guest .guest-board-panel h3 {
    margin-bottom: 8px;
    font-size: 12px;
  }
  .screen-guest .guest-history-panel .history {
    gap: 5px;
  }
  .screen-guest .guest-history-panel .history-chip {
    min-width: 30px;
    min-height: 30px;
    font-size: 11px;
  }

  .screen-guest .guest-board-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .screen-guest .guest-board-fill {
    flex: 1 1 auto;
    min-height: 0;
  }
  .screen-guest .guest-board-fill .number-board {
    height: 100%;
    min-height: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }
  .screen-guest .guest-board-fill .board-number {
    aspect-ratio: auto;
    min-height: 0;
    border-radius: 10px;
    font-size: clamp(11px, 1.15vw, 14px);
  }

  .screen-guest > .footer-note {
    flex: 0 0 auto;
    margin-top: 7px;
    padding-top: 0;
    line-height: 16px;
  }
}

@media (min-width: 821px) and (max-height: 700px) {
  .screen-guest .guest-card-panel { padding: 10px 13px; }
  .screen-guest .guest-header {
    grid-template-columns: minmax(0, 1fr) 72px 104px;
    margin-bottom: 6px;
  }
  .screen-guest .guest-nair { width: 72px; height: 78px; }
  .screen-guest .guest-nair img { width: 69px; height: 76px; }
  .screen-guest .latest-card { padding: 7px 9px; }
  .screen-guest .latest-card strong { font-size: 32px; }
  .screen-guest .status-banner { margin: 6px 0; padding: 7px 9px; }
  .screen-guest .card-grid {
    width: min(100%, clamp(300px, calc(100dvh - 285px), 500px));
    gap: 5px;
  }
  .screen-guest .card-legend { margin-top: 6px; }
  .screen-guest .guest-card-panel > .draw-actions { margin-top: 7px !important; }
  .screen-guest .guest-side { grid-template-rows: minmax(78px, auto) minmax(0, 1fr); }
  .screen-guest .guest-history-panel,
  .screen-guest .guest-board-panel { padding: 9px 11px; }
}

@media (max-width: 820px) {
  /* No celular a página inteira deve rolar naturalmente. Nenhum container da
     cartela pode herdar o overflow:hidden usado no painel do sorteador. */
  .app-shell.screen-guest {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .screen-guest .guest-dashboard {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
  }
  .screen-guest .guest-card-panel,
  .screen-guest .guest-side,
  .screen-guest .guest-history-panel,
  .screen-guest .guest-board-panel {
    width: 100%;
    max-width: none;
    min-height: 0;
    overflow: visible;
  }
  .screen-guest .guest-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .screen-guest .guest-history-panel .history {
    max-height: 150px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .screen-guest .guest-board-fill .number-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .screen-guest > .footer-note {
    margin-top: 14px;
  }
}


/* v0.2.19 — participante desktop sem barras de rolagem internas */
@media (min-width: 821px) {
  .screen-guest .guest-card-panel,
  .screen-guest .guest-history-panel,
  .screen-guest .guest-board-panel {
    overflow: hidden;
    scrollbar-width: none;
  }
  .screen-guest .guest-card-panel::-webkit-scrollbar,
  .screen-guest .guest-history-panel::-webkit-scrollbar,
  .screen-guest .guest-board-panel::-webkit-scrollbar {
    display: none;
  }
  /* Como o botão de reset não existe mais, a cartela pode usar o espaço
     disponível sem depender de um container rolável. */
  .screen-guest .card-grid {
    width: min(100%, clamp(320px, calc(100dvh - 292px), 560px));
  }
  .screen-guest .guest-history-panel .history {
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 821px) and (max-height: 700px) {
  .screen-guest .card-grid {
    width: min(100%, clamp(285px, calc(100dvh - 260px), 470px));
  }
  .screen-guest .guest-header { margin-bottom: 4px; }
  .screen-guest .status-banner { margin: 4px 0 6px; }
  .screen-guest .card-legend { margin-top: 4px; }
}


/* v0.2.20 — participante desktop: foto à esquerda, cartela à direita, legenda sob a foto */
.guest-nair-desktop,
.card-legend-desktop { display: none; }

@media (min-width: 821px) {
  .screen-guest .guest-header {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
    align-items: center;
    margin-bottom: 7px;
  }
  .screen-guest .guest-nair-mobile { display: none; }

  .screen-guest .guest-play-area {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(170px, .34fr) minmax(0, .66fr);
    gap: 10px;
    align-items: stretch;
    overflow: hidden;
  }

  .screen-guest .guest-photo-zone {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
  }

  .screen-guest .guest-nair-desktop {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    place-items: end center;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(243,188,193,.10), rgba(255,255,255,.40));
    border: 1px solid rgba(169,50,72,.10);
  }
  .screen-guest .guest-nair-desktop img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    transform: scale(1.08);
    transform-origin: center bottom;
    filter: drop-shadow(0 10px 16px rgba(98,35,34,.10));
  }

  .screen-guest .card-legend-desktop {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 34px;
    margin: 0;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(169,50,72,.12);
    white-space: nowrap;
    font-size: 11px;
  }
  .screen-guest .card-legend-mobile { display: none; }

  .screen-guest .guest-card-zone {
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .screen-guest .guest-card-zone .card-grid {
    flex: none;
    width: min(100%, clamp(320px, calc(100dvh - 250px), 490px));
    max-width: 100%;
    align-self: center;
    justify-self: center;
    gap: clamp(6px, .9vh, 9px);
  }

  .screen-guest .guest-card-zone .cell {
    aspect-ratio: 1;
    min-height: 0;
  }
}

@media (min-width: 821px) and (max-height: 700px) {
  .screen-guest .guest-play-area {
    grid-template-columns: minmax(150px, .32fr) minmax(0, .68fr);
    gap: 8px;
  }
  .screen-guest .guest-nair-desktop { border-radius: 15px; }
  .screen-guest .guest-card-zone .card-grid {
    width: min(100%, clamp(285px, calc(100dvh - 225px), 430px));
    gap: 5px;
  }
  .screen-guest .card-legend-desktop {
    min-height: 30px;
    padding: 4px 7px;
    gap: 8px;
    font-size: 10px;
  }
}

@media (max-width: 820px) {
  .screen-guest .guest-nair-desktop,
  .screen-guest .card-legend-desktop { display: none; }
  .screen-guest .guest-nair-mobile { display: grid; }
  .screen-guest .guest-play-area,
  .screen-guest .guest-card-zone {
    display: block;
    width: 100%;
    min-height: 0;
    overflow: visible;
  }
  .screen-guest .guest-photo-zone { display: none; }
  .screen-guest .card-legend-mobile { display: flex; }
}


/* v0.2.21 — participante: marcação manual apenas + matriz 5x5 preenchendo a área */
/* Números já sorteados não recebem qualquer pista visual dentro da cartela.
   O participante precisa marcar manualmente; histórico e painel 1–36 continuam informativos. */
.screen-guest .cell.drawn:not(.marked) {
  box-shadow: none;
}
.screen-guest .cell.drawn:not(.marked)::before {
  display: none;
  content: none;
}
.screen-guest .card-legend,
.screen-guest .card-legend-desktop,
.screen-guest .card-legend-mobile {
  display: none !important;
}

@media (min-width: 821px) {
  /* Sem a legenda, a foto usa toda a coluna esquerda. */
  .screen-guest .guest-photo-zone {
    gap: 0;
  }
  .screen-guest .guest-nair-desktop {
    flex: 1 1 100%;
    height: 100%;
  }

  /* A matriz ocupa integralmente o espaço útil da área da cartela.
     Em vez de calcular um quadrado pelo viewport, distribuímos as 5 linhas e
     5 colunas dentro da área disponível. Isso elimina corte e scroll e reage
     automaticamente a mudanças de largura/altura. */
  .screen-guest .guest-card-zone {
    min-height: 0;
    height: 100%;
    display: grid;
    overflow: hidden;
  }
  .screen-guest .guest-card-zone .card-grid {
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: clamp(5px, .85vh, 9px);
  }
  .screen-guest .guest-card-zone .cell {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: clamp(9px, 1.2vh, 14px);
    font-size: clamp(17px, min(3.2vh, 2.2vw), 29px);
  }
}

@media (min-width: 821px) and (max-height: 700px) {
  .screen-guest .guest-card-zone .card-grid {
    gap: 5px;
  }
  .screen-guest .guest-card-zone .cell {
    border-radius: 9px;
    font-size: clamp(16px, 2.7vh, 23px);
  }
}


/* v0.2.22 — reset da cartela removido também no mobile */
.screen-guest #resetMarks,
.screen-guest [data-action="reset-marks"],
.screen-guest .reset-marks { display: none !important; }


/* v0.2.23 — ícones personalizados de troféu, festim e coroa */
.participant-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.participant-status-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.status-banner .status-icon {
  min-width: 28px;
  display: grid;
  place-items: center;
}
.status-icon-image {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.celebrate .big {
  display: grid;
  place-items: center;
  min-height: 72px;
  margin-top: 6px;
}
.celebrate-icon-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(98,35,34,.10));
}

@media (max-width: 560px) {
  .participant-status-icon {
    width: 16px;
    height: 16px;
  }
  .status-icon-image {
    width: 24px;
    height: 24px;
  }
  .celebrate-icon-image {
    width: 60px;
    height: 60px;
  }
}


/* v0.2.24 — substitui laços/ícones rosas por imagem enviada */
.host-mini-brand.brand-inline,
.topbar .mini-brand.brand-inline {
  display: inline-flex;
  align-items: center;
}
.status-icon-image {
  border-radius: 0;
}
@media (max-width: 560px) {
  .mini-brand-icon { width: 20px; height: 20px; }
  .btn-icon { width: 20px; height: 20px; }
  .brand-bow-image { width: 64px; }
}


/* v0.2.26 — home compacta e ícones por imagem */
.sort-icon { width: 24px; height: 24px; }
.print-icon { width: 28px; height: 28px; object-fit: contain; display: block; }
.physical-cards-button {
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.screen-home .panel.home-card-photo { flex: 1 1 auto; }
@media (min-width: 821px) {
  .screen-home { overflow: hidden; }
  .screen-home .home-card-photo { max-height: calc(100dvh - 132px); }
}
@media (max-height: 820px) and (min-width: 821px) {
  .brand-home-compact { margin-bottom: 8px; }
  .brand h1 { font-size: clamp(30px, 4.6vw, 48px); }
  .brand p { font-size: 16px; }
  .home-copy { padding: 20px 28px; }
  .home-photo { min-height: 280px; }
  .home-photo img { max-height: min(42dvh, 310px); width: min(100%, 268px); }
  .home-card-photo .intro { margin-bottom: 14px; }
  .home-config { margin-top: 10px; }
}
@media (max-width: 1024px) {
  .home-card-photo { grid-template-columns: minmax(0, 1.18fr) minmax(220px, .68fr); }
  .home-actions-main { grid-template-columns: minmax(132px, 1fr) minmax(138px, 1fr) 56px; }
  .home-actions-main.has-guest-resume { grid-template-columns: minmax(128px, 1fr) minmax(138px, 1fr) 56px minmax(150px, 1.05fr); }
}
@media (max-width: 820px) {
  .screen-home { min-height: auto; overflow: visible; }
  .home-card-photo { flex: none; max-height: none; }
}
@media (max-width: 560px) {
  .brand-title-row { gap: 8px; }
  .brand-bow-inline { width: 28px; }
}


/* v0.2.27 — restaura o destaque da foto da aniversariante na Home */
@media (min-width: 821px) {
  .screen-home .home-photo {
    min-height: 0;
    height: 100%;
    padding: 8px 8px 0;
    align-items: end;
  }
  .screen-home .home-photo img {
    width: min(112%, 390px);
    max-width: none;
    max-height: calc(100% - 2px);
    height: auto;
    object-fit: contain;
    object-position: center bottom;
  }
  .screen-home .home-photo-glow {
    width: 88%;
    top: 6%;
    left: 6%;
  }
}

@media (max-height: 820px) and (min-width: 821px) {
  /* A compactação da Home deve ocorrer no texto/espaçamentos, não na foto. */
  .screen-home .home-photo {
    min-height: 0;
  }
  .screen-home .home-photo img {
    width: min(115%, 390px);
    max-height: calc(100% - 2px);
  }
}


/* v0.2.28 — restaura a Home mobile sem desfazer o layout desktop */
@media (max-width: 820px) {
  /* As regras de preenchimento da viewport da Home são exclusivas do desktop. */
  .screen-home {
    display: block;
    min-height: 0;
    overflow: visible;
  }
  .screen-home.app-shell {
    width: min(100% - 18px, 1180px);
    padding: 15px 0 30px;
  }
  .screen-home .brand-home-compact {
    margin: 0 0 14px;
  }
  .screen-home .brand-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .screen-home .brand h1 {
    font-size: clamp(32px, 9vw, 44px);
  }
  .screen-home .brand p {
    margin-top: 2px;
    font-size: clamp(15px, 4.4vw, 19px);
  }
  .screen-home .brand-bow-inline {
    width: 30px;
    max-width: 30px;
  }

  .screen-home .home-card-photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
    width: 100%;
    max-width: 1100px;
    max-height: none;
    min-height: 0;
    margin: 0 auto;
    flex: none;
    overflow: hidden;
    text-align: left;
  }
  .screen-home .home-copy {
    min-height: 0;
    padding: 30px;
  }
  .screen-home .home-card-photo .intro {
    margin-bottom: 20px;
  }
  .screen-home .home-photo {
    min-height: 410px;
    height: auto;
    padding: 0 8px 0 0;
    align-items: end;
  }
  .screen-home .home-photo img {
    width: min(100%, 365px);
    max-width: 100%;
    max-height: 395px;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
  }
  .screen-home .home-photo-glow {
    width: 82%;
    top: 10%;
    left: 10%;
  }
  .screen-home .home-photo-badge {
    top: 16px;
    right: 18px;
  }
  .screen-home .footer-note {
    margin-top: 14px;
  }
}

@media (max-width: 650px) {
  .screen-home .home-card-photo {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .screen-home .home-copy {
    padding: 24px 22px 8px;
  }
  .screen-home .home-card-photo h2,
  .screen-home .home-card-photo .intro {
    margin-left: auto;
    margin-right: auto;
  }
  .screen-home .home-card-photo .intro {
    margin-bottom: 18px;
  }
  .screen-home .home-actions-main,
  .screen-home .home-actions-main.has-guest-resume {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    max-width: none !important;
  }
  .screen-home .home-actions-main .physical-cards-button {
    display: none !important;
  }
  .screen-home .home-actions-main .resume-guest-button {
    grid-column: 1 / -1;
  }
  .screen-home .home-photo {
    min-height: 290px;
    height: 290px;
    padding: 0 10px;
    background: transparent;
  }
  .screen-home .home-photo-glow {
    width: 64%;
    top: 7%;
    left: 18%;
  }
  .screen-home .home-photo img {
    width: min(74vw, 280px);
    max-width: 280px;
    max-height: 286px;
  }
}

@media (max-width: 420px) {
  .screen-home .brand h1 {
    font-size: clamp(30px, 9vw, 38px);
  }
  .screen-home .brand-bow-inline {
    width: 26px;
    max-width: 26px;
  }
  .screen-home .home-copy {
    padding: 22px 16px 8px;
  }
  .screen-home .home-actions-main,
  .screen-home .home-actions-main.has-guest-resume {
    grid-template-columns: 1fr 1fr;
  }
  .screen-home .home-actions-main .btn {
    min-height: 48px;
    padding: 10px 8px;
    font-size: 13px;
  }
  .screen-home .home-actions-main .resume-guest-button {
    grid-column: 1 / -1;
  }
  .screen-home .home-photo {
    min-height: 270px;
    height: 270px;
  }
  .screen-home .home-photo img {
    width: min(78vw, 270px);
    max-width: 270px;
    max-height: 268px;
  }
}
