@font-face {
  font-family: "Stop Fredoka";
  src: url("../assets/stop-reactions/fredoka-balloon-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* A sala compartilha a navegação do Arcade e tem sua própria área de rolagem. */
.app-shell:has(> #stop-game.active) {
  width: 100%;
  max-width: none;
  padding: 0;
}
#stop-game {
  --ritmo-ink: #100e1d;
  --ritmo-card: #1c182f;
  --ritmo-edge: #36304e;
  --ritmo-paper: #f8f3ff;
  --ritmo-muted: #c3b8d9;
  --ritmo-lime: #d7ff76;
  --ritmo-peach: #ffba86;
  --ritmo-violet: #ab8aff;
  --ritmo-balloon: "Stop Fredoka", ui-rounded, "Segoe UI", sans-serif;
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ritmo-paper);
  text-align: start;
  -webkit-tap-highlight-color: transparent;
}
#stop-game.active {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at 10% 0%, #2c1b46 0%, transparent 52%), var(--ritmo-ink);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #76618c var(--ritmo-card);
}
#stop-game [hidden] { display: none !important; }
#stop-game :is(h1,h2,h3,p,ol) { margin: 0; color: inherit; }
#stop-game :is(h1,h2,h3,p,button,label,small,span) { text-transform: none; }
#stop-game :is(button,input,select,summary) { font-family: inherit; }
#stop-game button { cursor: pointer; }
#stop-game button:disabled { cursor: default; }
#stop-game :is(button,input,select,summary):focus-visible {
  outline: 3px solid #fff3d8;
  outline-offset: 3px;
}
#stop-game .ritmo-page {
  box-sizing: border-box;
  width: calc(100% - clamp(24px, 4vw, 64px));
  margin-inline: auto;
  padding: env(safe-area-inset-top) 0 max(64px, calc(56px + env(safe-area-inset-bottom)));
}
#stop-game .ritmo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#stop-game .ritmo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}
#stop-game .ritmo-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
#stop-game #stop-social:empty { display: none; }
#stop-game :where(.ritmo-primary,.ritmo-quiet,.ritmo-text,#stop-react) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  max-width: 100%;
  width: auto;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #665983;
  border-radius: 10px;
  background: #29223f;
  box-shadow: none;
  color: var(--ritmo-paper);
  font: 700 1rem/1.25 "Segoe UI", system-ui, sans-serif;
  letter-spacing: normal;
  text-decoration: none;
}
#stop-game .ritmo-primary { border-color: transparent; background: var(--ritmo-lime); color: #231b33; }
#stop-game .ritmo-primary:enabled:hover { background: #edffab; }
#stop-game .ritmo-quiet:enabled:hover { background: #42365f; }
#stop-game .ritmo-text { padding-inline: 7px; color: #d3baff; border: 0; background: none; }
#stop-game .ritmo-text:hover { color: #fff; }
#stop-game :is(.ritmo-primary,.ritmo-quiet):disabled {
  color: #ddd3e9;
  background: #443a51;
  border-color: #6b5c78;
  opacity: 1;
}
#stop-game #stop-sound { width: 44px; min-width: 44px; padding: 8px; }
#stop-game .ritmo-topbar :is(.game-menu-trigger,.game-social-trigger,#stop-sound) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #74648a;
  border-radius: 11px;
  background: #392b4dc4;
  color: #f8f1ff;
  box-shadow: inset 0 1px 0 #ffffff0e;
}
#stop-game .ritmo-topbar :is(.game-menu-trigger,.game-social-trigger) {
  padding: 8px 13px;
  font: 700 .86rem/1.25 "Segoe UI", system-ui, sans-serif;
  white-space: normal;
}
#stop-game .ritmo-topbar :is(.game-menu-trigger,.game-social-trigger,#stop-sound):hover {
  background: #4f3c65;
  border-color: #b99bce;
}
#stop-game .ritmo-topbar :is(.game-menu-trigger,.game-social-trigger,#stop-sound):focus-visible {
  outline: 3px solid #fff3d8;
  outline-offset: 3px;
}
#stop-game .ritmo-topbar .game-social-trigger.has-invite::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--ritmo-lime);
}
#stop-sound[aria-pressed="false"] .sound-waves,
#stop-sound[aria-pressed="true"] .sound-slash { display: none; }
#stop-game .ritmo-eyebrow {
  color: #d9c6ff;
  font-weight: 800;
  font-size: .64rem;
  line-height: 1.4;
  letter-spacing: .14em;
}
#stop-game .ritmo-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 237px;
  padding: 26px 39px;
  border: 1px solid #7458a7;
  border-radius: 24px;
  background: linear-gradient(109deg, #292044 1%, #492973 58%, #714cb0);
}
#stop-game .ritmo-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 1%;
  top: -27%;
  width: 53%;
  aspect-ratio: 1;
  border: 1px solid #cbaaef69;
  border-radius: 50%;
  box-shadow: 0 0 0 22px #cca5ef10, 0 0 0 47px #cca5ef13, 0 0 0 96px #cca5ef0d;
  transform: rotate(-13deg) scaleY(.72);
}
#stop-game .ritmo-hero-copy { position: relative; z-index: 1; }
#stop-game #stop-title {
  margin: 9px 0 2px;
  color: #fff7ea;
  font: 1000 clamp(3.95rem, 10vw, 7.8rem)/.84 "Arial Black", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.095em;
  text-shadow: 5px 5px 0 #190f31;
}
#stop-game #stop-title span { color: var(--ritmo-lime); }
#stop-game .ritmo-subtitle {
  color: var(--ritmo-peach);
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  font-weight: 850;
  letter-spacing: -.045em;
}
#stop-game .ritmo-hero-art {
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  width: min(43%, 420px);
  height: 178px;
}
#stop-game .ritmo-hero-art img {
  display: block;
  width: min(208px, 73%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 31%;
  transform: rotate(6deg);
  box-shadow: 0 15px 29px #170a2a86;
}
#stop-game .ritmo-chip {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  color: #291a42;
  font-size: 1.45rem;
  font-weight: 950;
  box-shadow: 0 4px 0 #37205d;
}
#stop-game .ritmo-chip-a { left: 12%; top: 8%; background: var(--ritmo-peach); transform: rotate(-17deg); }
#stop-game .ritmo-chip-z { right: 14%; bottom: 3%; background: var(--ritmo-lime); transform: rotate(15deg); }
#stop-game .ritmo-spark { position: absolute; color: #ffedb1; font-size: clamp(1.5rem, 3.4vw, 2.8rem); }
#stop-game .ritmo-spark-one { right: 4%; top: 5%; }
#stop-game .ritmo-spark-two { left: 1%; bottom: 14%; }

/* Entrada da sala e sorteio. O cadastro e a lista de presença ocupam o mesmo painel. */
#stop-game .ritmo-lobby-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}
#stop-game .ritmo-room-prep { display: grid; min-width: 0; gap: 12px; }
#stop-game :is(.ritmo-registration,.ritmo-lottery,.ritmo-settings,.ritmo-suggestions,.ritmo-play,.ritmo-scoreboard) {
  min-width: 0;
  border: 1px solid var(--ritmo-edge);
  border-radius: 20px;
  background: var(--ritmo-card);
  color: var(--ritmo-paper);
}
#stop-game :is(.ritmo-registration,.ritmo-lottery,.ritmo-suggestions) { padding: 24px; }
#stop-game .ritmo-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#stop-game :is(.ritmo-section-head,.ritmo-lottery) h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
#stop-game :is(#stop-players,#stop-category-metrics,#stop-suggestion-status) {
  padding: 3px 9px;
  border-radius: 10px;
  background: #382a50;
  color: #dfd1ff;
  font-weight: 800;
  font-size: .83rem;
  font-variant-numeric: tabular-nums;
}
#stop-game :is(#stop-players,#stop-category-metrics):empty { display: none; }
#stop-game .ritmo-note,
#stop-game #stop-stage-note { margin: 7px 0 15px; color: var(--ritmo-muted); font-size: .86rem; line-height: 1.5; }
#stop-game .ritmo-invite-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
#stop-game .ritmo-invite-field,
#stop-game .stop-roster-player {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 7px 11px;
  border: 1px solid #453954;
  border-radius: 12px;
  background: #241e38;
}
#stop-game .ritmo-invite-field > span { font-size: .74rem; color: var(--ritmo-muted); }
#stop-game .ritmo-invite-field :is(input,select,.arcade-picker-trigger) {
  display: block;
  width: 100%;
  min-height: 42px;
  min-width: 0;
  padding: 4px 5px;
  border: 0;
  border-radius: 5px;
  background-color: #241e38;
  color: var(--ritmo-paper);
  font: 700 1rem/1.25 "Segoe UI", system-ui, sans-serif;
}
#stop-game .ritmo-invite-field select { color-scheme: dark; }
#stop-game .ritmo-invite-field .arcade-picker-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  gap: 7px;
  min-height: 44px;
  text-align: start;
  --picker-accent: #d8b5ff;
}
#stop-game .ritmo-invite-field .arcade-picker-trigger:disabled { opacity: 1; color: var(--ritmo-muted); }
#stop-game .ritmo-invite-actions { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-top: 12px; }
#stop-game #stop-roster { display: grid; gap: 7px; list-style: none; margin: 12px 0 0; padding: 0; }
#stop-game #stop-roster:empty { display: none; }
#stop-game .stop-roster-player { align-items: center; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; }
#stop-game :is(.stop-score-avatar,.stop-score-position) { display: block; width: 38px; height: 38px; border-radius: 13px; }
#stop-game .stop-score-name { overflow-wrap: anywhere; color: #fff5ff; font-weight: 750; }
#stop-game .stop-roster-player small { color: var(--ritmo-muted); }
#stop-game .ritmo-settings { border-radius: 18px; }
#stop-game .ritmo-settings summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 3px 12px;
  padding: 16px 20px;
  color: var(--ritmo-paper);
  cursor: pointer;
  list-style: none;
}
#stop-game .ritmo-settings summary::-webkit-details-marker { display: none; }
#stop-game .ritmo-settings summary::after {
  content: "";
  display: block;
  justify-self: center;
  width: 8px;
  height: 8px;
  border-right: 2px solid #dfc7fa;
  border-bottom: 2px solid #dfc7fa;
  transform: rotate(45deg);
}
#stop-game .ritmo-settings[open] summary::after { transform: rotate(225deg); }
#stop-game #stop-category-title { font: 700 1.21rem/1.25 var(--ritmo-balloon); }
#stop-game #stop-category-metrics { border-radius: 999px; white-space: nowrap; }
#stop-game .ritmo-settings-body { padding: 0 20px 16px; }
#stop-game #stop-category-help { margin: 0 0 10px; }
#stop-game #stop-category-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
#stop-game #stop-category-options label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #63536d;
  border-radius: 13px;
  background: #272031;
  color: #e2d7e9;
  cursor: pointer;
}
#stop-game #stop-category-options label:has(input:checked) { background: #382a46; border-color: #9776af; color: #fbf0ff; }
#stop-game #stop-category-options label:focus-within { outline: 2px solid #efd8ff; outline-offset: 1px; }
#stop-game #stop-category-options input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 2px solid #ae8bbf;
  border-radius: 5px;
  color: #fff5ff;
  background: #41283f;
  box-shadow: none;
  opacity: 1;
  cursor: inherit;
}
#stop-game #stop-category-options input[type="checkbox"]:checked {
  border-color: #d5adeb;
  background: #80459e;
}
#stop-game #stop-category-options input[type="checkbox"]:disabled {
  border-color: #a785b7;
  background: #372437;
}
#stop-game #stop-category-options input[type="checkbox"]:checked:disabled {
  border-color: #cba6dd;
  background: #663a7e;
}
#stop-game #stop-category-options input[type="checkbox"]:checked::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 6px;
  height: 10px;
  margin-top: -2px;
  border: solid #fff5ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
#stop-game #stop-category-options input[type="checkbox"]:focus-visible {
  outline: 2px solid #fff1ce;
  outline-offset: 2px;
}
@media (forced-colors: active) {
  #stop-game #stop-category-options input[type="checkbox"],
  #stop-game #stop-category-options input[type="checkbox"]:is(:checked,:disabled,:checked:disabled) {
    -webkit-appearance: auto;
    appearance: auto;
    forced-color-adjust: auto;
    accent-color: auto;
    background: revert;
    border: revert;
    color: revert;
  }
  #stop-game #stop-category-options input[type="checkbox"]:checked::before { content: none; }
  #stop-game #stop-category-options input[type="checkbox"]:focus-visible { outline-color: Highlight; }
}
#stop-game #stop-category-options label:has(input:disabled) { cursor: default; }
#stop-game #stop-category-options label span { min-width: 0; overflow-wrap: anywhere; font-size: .86rem; font-weight: 650; line-height: 1.3; }
#stop-game #stop-category-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; }
#stop-game #stop-category-status { color: #f8d8a0; font-size: .83rem; }
#stop-game #stop-save-categories { min-height: 44px; font-size: .9rem; }
#stop-game #stop-suggestion-title { display: block; }
#stop-game #stop-suggestion-options { display: flex; flex-wrap: wrap; gap: 6px; }
#stop-game #stop-suggestion-options button { border: 1px solid #77648b; border-radius: 10px; min-width: 44px; min-height: 44px; background: #30253f; color: var(--ritmo-paper); }
#stop-game #stop-suggestion-options button[aria-pressed="true"] { background: var(--ritmo-violet); color: #271635; }
#stop-game .ritmo-lottery {
  display: grid;
  justify-items: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, #3b2d53 0%, #241c33 72%);
}
#stop-game .ritmo-lottery h2 { margin-top: 6px; }
#stop-game .ritmo-lottery .ritmo-primary { min-height: 48px; min-width: min(210px,100%); }
#stop-game .ritmo-lottery .ritmo-note { margin: 10px 0 0; }
#stop-game .ritmo-reel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(8px, 1.6vw, 20px);
  padding: 25px 0 27px;
}
#stop-game .ritmo-reel > * { display: grid; place-items: center; font-family: "Arial Black",system-ui,sans-serif; font-weight: 1000; line-height: 1; }
#stop-game #stop-lobby-letter {
  width: clamp(84px, 8.5vw, 120px);
  aspect-ratio: 1;
  border-radius: 21px;
  background: var(--ritmo-peach);
  color: #332138;
  font-size: clamp(3rem, 5.8vw, 5rem);
  box-shadow: 0 5px 0 #9f6156, 0 12px 20px #140d207a;
}
#stop-game .ritmo-reel-side {
  width: 52px;
  height: 65px;
  border: 1px solid #6f567e;
  border-radius: 12px;
  background: #3e3152;
  color: #ae94bf;
  font-size: 1.8rem;
  transform: rotate(-12deg);
}
#stop-game .ritmo-reel-side:last-child { transform: rotate(12deg); }
#stop-game .ritmo-reel-window { height: 1em; overflow: hidden; }
#stop-game .ritmo-reel-strip { display: grid; grid-auto-rows: 1em; text-align: center; }
#stop-game[data-stop-phase="draw"] .ritmo-lottery:not([data-rolling]) #stop-lobby-letter { background: var(--ritmo-lime); }
/* A rodada usa o mesmo estado da sala para composição, placar e votação. */
#stop-game:is([data-stop-phase="playing"],[data-stop-phase="correction"],[data-stop-phase="scores"]) #stop-prep,
#stop-game:is([data-stop-phase="lobby"],[data-stop-phase="waiting"],[data-stop-phase="draw"]) .stop-room-layout,
#stop-game:is([data-stop-phase="correction"],[data-stop-phase="scores"]) .ritmo-play,
#stop-game[data-stop-phase="correction"] #stop-scoreboard { display: none; }
#stop-game .stop-room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 30%);
  align-items: start;
  gap: 16px;
}
#stop-game[data-stop-phase="correction"] .stop-room-layout,
#stop-game[data-stop-phase="scores"] .stop-room-layout {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}
#stop-game .ritmo-play { position: relative; overflow: hidden; }
#stop-game .ritmo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 99px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ritmo-edge);
  background: #251e3d;
}
#stop-game #stop-stage-title,
#stop-game #stop-scoreboard-title {
  margin: 3px 0 5px;
  font-size: clamp(1.3rem, 2.85vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}
#stop-game #stop-stage-note { margin: 0; }
#stop-game .ritmo-draw {
  display: grid;
  place-items: center;
  width: 60px;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--ritmo-peach);
  color: #291b3d;
  box-shadow: 0 4px 0 #af695d;
  font-size: 2.15rem;
  font-weight: 950;
}
#stop-game .ritmo-clock { text-align: end; font-size: 1.72rem; font-weight: 850; font-variant-numeric: tabular-nums; }
#stop-game .ritmo-track { height: 5px; margin-top: 6px; border-radius: 8px; background: #4d4065; overflow: hidden; }
#stop-game #stop-time-bar { height: 100%; background: var(--ritmo-lime); transform-origin: left center; }
#stop-game .ritmo-answers { padding: 16px 20px 20px; container-type: inline-size; }
#stop-game #stop-answers-title { color: #fff6eb; font: 700 1.23rem/1.25 var(--ritmo-balloon); }
#stop-game #stop-progress { color: #dacceb; text-align: end; font: 700 .8rem/1.25 var(--ritmo-balloon); }
#stop-game #stop-categories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
#stop-game .stop-category {
  --ritmo-accent: #ccb1ff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 68px;
  padding: 8px 17px 8px 11px;
  border: 1px solid #68577b;
  border-radius: 999px;
  background: linear-gradient(160deg, #392b4b, #2c233e 65%);
  box-shadow: inset 0 1px 0 #ffffff15, 0 2px 0 #100c1b;
  font-family: var(--ritmo-balloon);
  cursor: text;
}
#stop-game .stop-category:nth-child(4n+2) { --ritmo-accent: #ffc296; }
#stop-game .stop-category:nth-child(4n+3) { --ritmo-accent: #c2e9ae; }
#stop-game .stop-category:nth-child(4n) { --ritmo-accent: #ffb5ce; }
#stop-game .stop-capsule-number {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 31px;
  aspect-ratio: 1;
  margin-inline-end: 11px;
  border-radius: 50%;
  color: #30233c;
  background: var(--ritmo-accent);
  box-shadow: inset 0 1px 0 #ffffff5c, 0 2px 0 #150f2180;
  font: 700 .84rem/1 var(--ritmo-balloon);
}
#stop-game .stop-category-label {
  grid-column: 2;
  grid-row: 1;
  overflow-wrap: anywhere;
  color: var(--ritmo-accent);
  font: 700 .9rem/1.15 var(--ritmo-balloon);
}
#stop-game .stop-category input {
  grid-row: 2;
  grid-column: 2;
  width: 100%;
  min-width: 0;
  min-height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #fff9ee;
  font: 700 1.055rem/1.2 var(--ritmo-balloon);
  caret-color: var(--ritmo-accent);
}
#stop-game .stop-category input::placeholder { color: #d0bedc; opacity: 1; }
#stop-game .stop-category:focus-within { outline: 2px solid var(--ritmo-accent); outline-offset: 1px; }
#stop-game .stop-category input:focus-visible { outline: none; }
#stop-game .stop-category:has(input:not(:placeholder-shown)) { border-color: #9885ad; }
#stop-game .ritmo-round-actions { margin-top: 14px; }
#stop-game #stop-round { background: #ff6c99; color: #260921; }
#stop-game #stop-round:enabled:hover { background: #ff96b7; }
#stop-game #stop-round:disabled { background: #604353; color: #f0d8e1; border-color: #856073; }
#stop-game .ritmo-scoreboard { padding: 16px; }
#stop-game #stop-ready-summary { color: var(--ritmo-muted); font-size: .8rem; text-align: end; }
#stop-game #stop-score-list { list-style: none; padding: 0; margin: 13px 0 0; }
#stop-game .stop-score-player {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ritmo-edge);
}
#stop-game .stop-score-player:last-child { border-bottom: 0; }
#stop-game .stop-score-position { grid-column: 1; grid-row: 1 / 3; width: 31px; height: 31px; border-radius: 10px; }
#stop-game .stop-score-identity { grid-column: 2; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
#stop-game .stop-score-identity strong { display: block; font-size: .9rem; }
#stop-game .stop-score-identity span { display: block; color: var(--ritmo-muted); font-size: .75rem; }
#stop-game .is-you .stop-score-identity strong { color: var(--ritmo-lime); }
#stop-game .stop-score-badges { display: flex; grid-column: 2; gap: 6px; color: #dcc6f4; }
#stop-game .stop-score-badges small { font-size: .62rem; font-weight: 730; }
#stop-game .stop-score-points { grid-column: 3; grid-row: 1 / 3; font-size: .98rem; font-variant-numeric: tabular-nums; }
#stop-game .stop-score-points small { margin-inline-start: 3px; color: var(--ritmo-muted); font-size: .67rem; }
#stop-game #stop-results {
  width: 100%;
  padding: clamp(16px, 4vw, 36px);
  border: 1px solid #665177;
  border-radius: 26px;
  color: var(--ritmo-paper);
  background: linear-gradient(155deg, #30223f 0%, #1e192e 74%);
  box-shadow: 0 10px 32px #110d2080;
}
#stop-game .stop-correction-card {
  min-width: 0;
  padding: clamp(16px, 3.5vw, 28px);
  border: 1px solid #816196;
  border-radius: 22px;
  background: radial-gradient(ellipse at 90% 0%, #50335e 0%, transparent 65%), #332740;
}
#stop-game .stop-correction-card h2 { margin: 0 0 14px; font: 700 clamp(1.7rem, 4vw, 2.4rem)/1.1 var(--ritmo-balloon); }
#stop-game .stop-correction-byline {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  color: #f6e6ff;
  background: #563a6a;
  overflow-wrap: anywhere;
  font: 700 .98rem/1.3 var(--ritmo-balloon);
}
#stop-game .stop-correction-word { margin: 12px 0 22px; color: #fff6df; font: 700 clamp(2.2rem, 7vw, 4rem)/1.08 var(--ritmo-balloon); overflow-wrap: anywhere; }
#stop-game .stop-correction-count { margin: 8px 0; color: #ffddae; font-weight: 750; }
#stop-game .stop-correction-progress { display: block; margin: 8px 0 14px; color: #d6c5e6; font: .87rem/1.4 "Segoe UI",system-ui,sans-serif; }
#stop-game .stop-correction-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#stop-game .stop-correction-card button {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #806791;
  color: #f8edff;
  background: #352942;
  font: 700 1rem/1.2 var(--ritmo-balloon);
}
#stop-game .stop-correction-buttons button { flex: 1 1 110px; font-size: 1.1rem; }
#stop-game .stop-correction-buttons .approve { background: #cdea9e; border-color: #cdea9e; color: #222d17; }
#stop-game .stop-correction-buttons .reject { background: #ffb0c6; border-color: #ffb0c6; color: #442234; }
#stop-game .stop-correction-buttons button[aria-pressed="true"] { box-shadow: 0 0 0 2px #251d31, 0 0 0 4px #fff2db; }
#stop-game .stop-correction-next { margin-top: 16px; }
#stop-game #stop-review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#stop-game .ritmo-room-actions { text-align: center; margin-top: 12px; }
#stop-game #stop-message { min-height: 1.3em; margin: 8px auto 0; color: #d9cae6; font-size: .83rem; line-height: 1.5; text-align: center; }
#stop-game #stop-message:empty { min-height: 0; margin: 0; }

/* O menu abre em coluna por cima do jogo e cabe em celulares deitados. */
#stop-game .ritmo-dock {
  position: fixed;
  z-index: 20;
  right: max(16px, env(safe-area-inset-right), calc((100vw - 1140px) / 2));
  bottom: max(16px, env(safe-area-inset-bottom));
}
#stop-game #stop-react {
  gap: 10px;
  min-height: 46px;
  padding: 8px 18px;
  border: 1px solid #b895d5;
  border-radius: 999px;
  background: #413050;
  color: #f6e5ff;
  box-shadow: 0 4px 14px #100a1f70;
  font: 700 1rem/1.2 var(--ritmo-balloon);
}
#stop-game #stop-react::after {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}
#stop-game #stop-react[aria-expanded="true"] { background: #e4cafa; color: #312039; }
#stop-game #stop-react[aria-expanded="true"]::after { transform: translateY(-2px) rotate(225deg); }
#stop-game #stop-reaction-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 62px;
  max-height: calc(100vh - 90px - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 90px - env(safe-area-inset-bottom));
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid #9073a1;
  border-radius: 30px;
  background: #30233e;
  box-shadow: 0 8px 20px #110b2275;
  transform-origin: right bottom;
}
#stop-game #stop-reaction-menu button {
  display: grid;
  place-items: center;
  width: 100%;
  flex: 0 0 48px;
  min-height: 48px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
}
#stop-game #stop-reaction-menu img { display: block; width: 42px; height: 42px; object-fit: contain; }
#stop-game #stop-reaction-menu button:hover { background: #4f385f; }
#stop-game #stop-reaction-menu button:focus-visible { background: #4f385f; outline: 2px solid #ead4ff; outline-offset: -2px; }
#stop-game #stop-reaction-message {
  position: fixed;
  right: max(16px, env(safe-area-inset-right), calc((100vw - 1140px) / 2));
  bottom: max(76px, calc(76px + env(safe-area-inset-bottom)));
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(280px, 80vw);
  padding: 7px 11px;
  border: 1px solid #816296;
  border-left: 3px solid var(--ritmo-lime);
  border-radius: 12px;
  color: #f8f3ff;
  background: #29223a;
  box-shadow: 0 4px 16px #100a1f70;
  font: 700 .87rem/1.4 var(--ritmo-balloon);
  pointer-events: none;
}
#stop-game #stop-reaction-message img { display: block; width: 48px; height: 48px; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  #stop-game #stop-reaction-menu:not([hidden]) { animation: stop-ritmo-rise .18s cubic-bezier(.19,.75,.28,1) both; }
}
@keyframes stop-ritmo-rise { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

@container (max-width: 470px) {
  #stop-game #stop-categories { gap: 8px; }
  #stop-game .stop-category { min-height: 61px; padding: 7px 12px 7px 8px; }
  #stop-game .stop-capsule-number { width: 25px; margin-inline-end: 7px; font-size: .73rem; }
  #stop-game .stop-category-label { font-size: .8rem; }
  #stop-game .stop-category input { font-size: 1rem; }
}
@container (min-width: 310.01px) and (max-width: 352px) {
  #stop-game .stop-category { padding-inline: 6px 7px; }
  #stop-game .stop-capsule-number { width: 21px; margin-inline-end: 5px; }
}
@container (max-width: 310px) {
  #stop-game #stop-categories { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  #stop-game .ritmo-lobby-grid { grid-template-columns: minmax(0, 3fr) minmax(310px, 2fr); }
  #stop-game .ritmo-lottery { align-self: stretch; align-content: center; }
  #stop-game #stop-category-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
  #stop-game #stop-category-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #stop-game #stop-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  #stop-game .stop-room-layout { grid-template-columns: minmax(0, 1fr); }
  #stop-game .ritmo-scoreboard { padding: 13px 16px; }
}
@media (max-width: 800px), (max-height: 540px) and (pointer: coarse) {
  #stop-game[data-stop-phase="lobby"] .ritmo-lottery,
  #stop-game[data-stop-phase="waiting"] .ritmo-lottery :is(.ritmo-eyebrow, h2, .ritmo-reel) { display: none; }
  #stop-game[data-stop-phase="waiting"] .ritmo-lottery { display: flex; flex-direction: column; align-items: stretch; }
  #stop-game.active[data-stop-phase="draw"] { overflow: hidden; }
  #stop-game[data-stop-phase="draw"] :is(.ritmo-topbar, .ritmo-hero, .ritmo-room-prep) { visibility: hidden; }
  #stop-game[data-stop-phase="draw"] .ritmo-lottery {
    position: fixed;
    inset: 0;
    z-index: 70;
    align-content: center;
    justify-items: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    text-align: center;
  }
  #stop-game[data-stop-phase="draw"] .ritmo-reel { grid-area: auto; width: 100%; padding: 10px 0; }
  #stop-game[data-stop-phase="draw"] #stop-lobby-letter { width: min(46vw, 38dvh, 230px); font-size: clamp(3.4rem, 16vw, 8rem); }
}
@media (max-width: 620px) {
  #stop-game .ritmo-lobby-grid { grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 10px; }
  #stop-game .ritmo-room-prep { gap: 10px; }
  #stop-game :is(.ritmo-registration,.ritmo-lottery,.ritmo-suggestions) { padding: 15px; border-radius: 14px; }
  #stop-game .ritmo-settings summary { padding: 12px 14px; gap: 6px; }
  #stop-game .ritmo-settings-body { padding: 0 12px 12px; }
  #stop-game .ritmo-reel-side { display: none; }
  #stop-game #stop-lobby-letter { width: 70px; border-radius: 14px; }
}
@media (max-width: 540px) {
  #stop-game .ritmo-topbar { min-height: 59px; }
  #stop-game .ritmo-hero { min-height: 153px; padding: 12px 15px; border-radius: 15px; }
  #stop-game .ritmo-hero-art { height: 105px; }
  #stop-game .ritmo-hero-art img { width: min(108px, 83%); }
  #stop-game .ritmo-chip { width: 23px; height: 23px; border-radius: 6px; font-size: .8rem; }
  #stop-game .ritmo-chip-a { left: 0; }
  #stop-game .ritmo-chip-z { right: 0; }
  #stop-game .ritmo-spark { display: none; }
  #stop-game .stop-room-layout { gap: 10px; }
  #stop-game .ritmo-stage { grid-template-columns: minmax(0,1fr) 37px 58px; gap: 8px; padding: 10px; }
  #stop-game .ritmo-draw { width: 37px; border-radius: 8px; font-size: 1.25rem; }
  #stop-game .ritmo-clock { font-size: 1.15rem; }
  #stop-game #stop-stage-note { font-size: .75rem; }
  #stop-game #stop-stage-title { font-size: 1.15rem; }
  #stop-game :is(.ritmo-play,.ritmo-scoreboard) { border-radius: 13px; }
  #stop-game .ritmo-answers { padding: 10px; }
  #stop-game #stop-results { border-radius: 18px; }
  #stop-game .stop-correction-card { padding: 16px; }
}
@media (max-width: 355px) {
  #stop-game .ritmo-invite-fields { grid-template-columns: minmax(0,1fr); }
  #stop-game #stop-category-options label { padding-inline: 6px; gap: 5px; }
}

/* A lista flutuante também pode abrir fora do contêiner da sala. */
#stop-friend-popup.arcade-picker-options {
  --arcade-choice-panel: #241e38;
  --arcade-choice-line: #78648b;
  --arcade-choice-text: #f8f3ff;
  --arcade-choice-accent: #e2c4ff;
  --arcade-choice-row: #443251;
  font-family: "Segoe UI", system-ui, sans-serif;
  scrollbar-color: #9075a8 #241e38;
}
