:root {
  --ink: #f9f6ff;
  --muted: #b9b0d0;
  --night: #100922;
  --night-soft: #1a1035;
  --purple: #8257ff;
  --pink: #ff4fa3;
  --lime: #c9ff55;
  --cyan: #54e6e7;
  --line: rgba(255, 255, 255, 0.12);
  --display: "Baloo 2", sans-serif;
  --body: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--night);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 17% 15%, rgba(130, 87, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 90% 85%, rgba(255, 79, 163, 0.16), transparent 26rem),
    var(--night);
  font-family: var(--body);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  z-index: -1;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.28;
}

.orb-one {
  top: -6rem;
  right: 12%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.orb-two {
  bottom: -8rem;
  left: 5%;
  width: 17rem;
  height: 17rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.app-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 48px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-button {
  display: grid;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.user-menu {
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 20;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #251744;
  box-shadow: 0 20px 55px rgba(0,0,0,.38);
}

.user-menu[hidden] { display: none; }

.user-menu button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.user-menu button:hover {
  color: var(--ink);
  background: rgba(255,255,255,.06);
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
}

.brand-button strong {
  color: var(--lime);
  font-weight: 800;
}

.brand-mark {
  display: flex;
  align-items: end;
  gap: 3px;
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  transform: rotate(-4deg);
}

.brand-mark span {
  flex: 1;
  border-radius: 2px;
  background: var(--lime);
}

.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { height: 100%; background: var(--pink); }
.brand-mark span:nth-child(3) { height: 70%; background: var(--cyan); }

.brand-tag {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.screen {
  display: none;
  min-height: calc(100vh - 124px);
  animation: screen-in 0.45s ease both;
}

.screen.is-active {
  display: grid;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-welcome {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(48px, 8vw, 108px);
}

.welcome-copy {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--lime);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

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

.welcome-copy h1,
.home-heading h1,
.inner-heading h1 {
  margin-bottom: 30px;
  font-family: var(--display);
  font-size: clamp(3.7rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.welcome-copy h1 em {
  position: relative;
  display: inline-block;
  color: var(--pink);
  font-style: normal;
}

.welcome-copy h1 em::after {
  position: absolute;
  right: 2%;
  bottom: -9px;
  left: 2%;
  height: 6px;
  border-radius: 100%;
  content: "";
  background: var(--lime);
  transform: rotate(-2deg);
}

.welcome-copy > p {
  max-width: 510px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.reaction {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  font-family: var(--display);
  font-weight: 800;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.2);
}

.reaction-one {
  top: -22%;
  right: 8%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--cyan);
  transform: rotate(12deg);
}

.reaction-two {
  right: -3%;
  bottom: -34%;
  padding: 8px 14px;
  border-radius: 10px 10px 10px 2px;
  color: var(--lime);
  transform: rotate(-7deg);
}

.reaction-three {
  bottom: -18%;
  left: 8%;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  color: var(--pink);
  transform: rotate(8deg);
}

.auth-card,
.code-card {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(27, 17, 56, 0.84);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.auth-card::before {
  position: absolute;
  top: -1px;
  right: 25%;
  left: 25%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.card-intro {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

.auth-card h2 {
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: 2.15rem;
  line-height: 1.1;
}

.auth-card > p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-form label,
.code-card label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
  margin-bottom: 17px;
}

.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  transition: 0.2s ease;
}

.input-wrap input {
  padding: 0 15px 0 46px;
}

input::placeholder {
  color: #766d8d;
}

input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(130, 87, 255, 0.14);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  margin-top: 24px;
  color: #180d2f;
  background: var(--lime);
  box-shadow: 0 8px 25px rgba(201, 255, 85, 0.16);
}

.button-primary:hover {
  box-shadow: 0 12px 34px rgba(201, 255, 85, 0.25);
}

.button:disabled {
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.ready-button {
  width: min(310px, 100%);
  margin-top: 10px;
  padding: 12px 17px;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(84,230,231,.07);
  cursor: pointer;
  font-weight: 800;
}

.ready-button.is-ready {
  border-color: var(--lime);
  color: var(--night);
  background: var(--lime);
}

.button-primary span {
  font-size: 1.25rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #877d9e;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.create-account-link {
  display: block;
  width: 100%;
  margin-top: 15px;
  padding: 4px;
  border: 0;
  color: var(--muted);
  background: none;
  cursor: pointer;
  font-size: .78rem;
  text-align: center;
}

.create-account-link strong {
  color: var(--cyan);
}

.create-account-link:hover strong {
  text-decoration: underline;
}

.divider::before,
.divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
}

.button-guest {
  border: 1px solid rgba(84, 230, 231, 0.32);
  background: rgba(84, 230, 231, 0.08);
}

.button-guest:hover {
  border-color: var(--cyan);
}

.dice {
  color: var(--cyan);
  font-size: 1.45rem;
}

.auth-card .fine-print {
  margin: 15px 0 0;
  text-align: center;
  font-size: 0.73rem;
}

.screen-home {
  align-content: center;
  padding: 36px 0;
}

.player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-left: auto;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
}

.player-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--night);
  background: var(--cyan);
  font-family: var(--display);
  font-weight: 800;
}

.player-bar div:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 112px;
}

.player-bar span {
  color: var(--muted);
  font-size: 0.68rem;
}

.player-bar strong {
  max-width: 160px;
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-button {
  padding: 8px 11px;
  border: 0;
  border-radius: 99px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
}

.logout-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.home-heading {
  margin: 30px 0 34px;
}

.home-heading h1 {
  margin-bottom: 3px;
  font-size: clamp(3.5rem, 7vw, 5.8rem);
}

.home-heading p,
.inner-heading p {
  color: var(--muted);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.action-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 230px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 27px;
  text-align: left;
  cursor: pointer;
  transition: 0.25s ease;
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.25);
}

.action-create {
  background: linear-gradient(135deg, #7041ef, #4e2cb4);
}

.action-join {
  background: linear-gradient(135deg, #242d57, #15233f);
}

.action-number {
  position: absolute;
  top: 20px;
  right: 25px;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--display);
  font-size: 0.75rem;
}

.action-icon {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(-4deg);
}

.action-icon svg {
  width: 60px;
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.icon-controller svg {
  stroke: var(--lime);
}

.action-copy {
  display: flex;
  flex-direction: column;
}

.action-copy strong {
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
}

.action-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.4;
}

.action-arrow {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: var(--night);
  background: var(--ink);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.action-card:hover .action-arrow {
  transform: rotate(10deg) scale(1.08);
}

.vibe-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  color: #7f7596;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.vibe-line span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.vibe-line p {
  margin: 0;
}

.inner-screen {
  align-content: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 0;
}

.back-button {
  width: fit-content;
  margin-bottom: 35px;
  padding: 8px 0;
  border: 0;
  color: var(--muted);
  background: none;
  cursor: pointer;
}

.back-button:hover {
  color: var(--ink);
}

.inner-heading h1 {
  margin-bottom: 6px;
  font-size: clamp(3.4rem, 7vw, 5.5rem);
}

.code-card {
  width: min(480px, 100%);
  margin: 35px auto 0;
}

.code-card input {
  height: 76px;
  padding: 0 18px;
  border: 2px solid rgba(201, 255, 85, 0.32);
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.code-hint {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
}

.games-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.game-count {
  flex: none;
  margin-bottom: 17px;
  padding: 8px 13px;
  border: 1px solid rgba(201, 255, 85, 0.25);
  border-radius: 99px;
  color: var(--lime);
  background: rgba(201, 255, 85, 0.06);
  font-size: 0.75rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.game-card {
  display: grid;
  grid-template-columns: 40% minmax(0, 60%);
  min-width: 0;
  min-height: 355px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--ink);
  background: var(--night-soft);
  text-align: left;
}

.game-card-select {
  cursor: pointer;
  transition: 0.25s ease;
}

.game-card-select:hover {
  border-color: rgba(255, 79, 163, 0.55);
  transform: translateY(-5px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.25),
    0 12px 38px rgba(130, 87, 255, .3);
}

.proibido-catalog-card:hover {
  border-color: rgba(255, 61, 71, .62);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.25),
    0 12px 38px rgba(255, 61, 71, .3);
}

.game-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #ff4fa3, #7b3fe9);
}

.signal {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.signal-one { width: 95px; height: 95px; }
.signal-two { width: 170px; height: 170px; }
.signal-three { width: 255px; height: 255px; }

.signal-center {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--night);
  background: var(--lime);
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 800;
  box-shadow: 8px 8px 0 rgba(16, 9, 34, 0.32);
  transform: rotate(-8deg);
}

.game-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 31px;
}

.game-meta {
  display: flex;
  gap: 14px;
  margin-bottom: auto;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.game-info > strong {
  margin: 22px 0 3px;
  font-family: var(--display);
  font-size: 2.6rem;
}

.game-info > small {
  color: var(--muted);
  line-height: 1.5;
}

.game-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--lime);
  background: rgba(201, 255, 85, .08);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}

.game-cta b {
  display: inline-block;
  font-size: 1rem;
  transition: transform .2s ease;
}

.game-cta:hover {
  color: var(--night);
  background: var(--lime);
  box-shadow: 0 8px 22px rgba(201, 255, 85, .18);
  transform: translateY(-2px);
}

.game-cta:hover b {
  transform: translateX(4px);
}

.game-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.game-card-actions .rules-button,
.game-card-actions .ranking-button {
  flex: 1 1 calc(50% - 4px);
  white-space: nowrap;
}

.game-card-actions .game-cta {
  flex: 1 1 100%;
}

.rules-button {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 700;
}

.ranking-button {
  padding: 10px 11px;
  border: 1px solid rgba(255, 179, 56, .28);
  border-radius: 9px;
  color: #ffb338;
  background: rgba(255, 179, 56, .06);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 700;
}

.ranking-button:hover {
  border-color: #ffb338;
}

.rules-button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.game-card-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  border-style: dashed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.soon-plus {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--pink);
  font-size: 2rem;
}

.game-card-soon strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
}

.game-card-soon small {
  max-width: 220px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 48px);
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  opacity: 0;
  background: #2a1c45;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform: translateY(15px);
  transition: 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--night);
  background: var(--lime);
  font-weight: 800;
}

.rules-modal[hidden] {
  display: none;
}

.rules-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.rules-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 3, 17, .82);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.rules-dialog {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  padding: clamp(25px, 5vw, 42px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: #1b1038;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .5);
}

.rules-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  font-size: 1.4rem;
}

.rules-dialog h2 {
  margin: 5px 0 25px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}

.rules-content section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.rules-content section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.rules-content h3 {
  margin: 0 0 8px;
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.2rem;
}

.rules-content p,
.rules-content li {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.rules-content ul,
.rules-content ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.rules-content li + li {
  margin-top: 7px;
}

.rules-content strong {
  color: var(--ink);
}

.rules-done {
  margin-top: 28px;
}

.ranking-description {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .84rem;
}

.leaderboard {
  display: grid;
  gap: 9px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
}

.leaderboard-row.is-current {
  border-color: rgba(84, 230, 231, .45);
  background: rgba(84, 230, 231, .07);
}

.leaderboard-position {
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.15rem;
  text-align: center;
}

.leaderboard-row:nth-child(1) .leaderboard-position { color: #ffd45c; }
.leaderboard-row:nth-child(2) .leaderboard-position { color: #c9d2dc; }
.leaderboard-row:nth-child(3) .leaderboard-position { color: #d8905b; }

.leaderboard-player {
  min-width: 0;
}

.leaderboard-player strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-player small {
  color: var(--muted);
  font-size: .65rem;
}

.leaderboard-wins {
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.1rem;
  text-align: right;
}

.leaderboard-wins small {
  display: block;
  color: var(--muted);
  font-family: var(--body);
  font-size: .58rem;
  text-transform: uppercase;
}

.empty-ranking {
  padding: 30px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.guest-ranking-warning,
.ranking-result-note {
  padding: 11px 14px;
  border: 1px solid rgba(255, 179, 56, .25);
  border-radius: 11px;
  color: #ffc96f;
  background: rgba(255, 179, 56, .06);
  font-size: .72rem;
  line-height: 1.45;
}

.signup-dialog {
  width: min(700px, 100%);
}

.signup-intro {
  margin: -15px 0 25px;
  color: var(--muted);
  font-size: .86rem;
}

.signup-grid {
  display: grid;
  grid-template-columns: .42fr .58fr;
  gap: 16px;
}

.signup-field {
  display: block;
}

.signup-field-wide {
  grid-column: 1 / -1;
}

.signup-field > span {
  display: block;
  margin-bottom: 7px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.signup-field input {
  padding: 0 15px;
}

.form-error {
  min-height: 20px;
  margin: 14px 0 0;
  color: #ff8b91;
  font-size: .76rem;
}

@media (max-width: 520px) {
  .signup-grid {
    grid-template-columns: 1fr;
  }

  .signup-field-wide {
    grid-column: auto;
  }
}

.guest-ranking-warning {
  margin-top: 15px;
}

.ranking-result-note {
  width: min(430px, 100%);
  margin: 0 0 16px;
  text-align: center;
}

@media (max-width: 560px) {
  .game-card-actions {
    flex-wrap: wrap;
  }

  .game-cta {
    flex-basis: 100%;
  }
}

@media (max-width: 1050px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    grid-template-columns: 38% minmax(0, 62%);
  }
}

@media (max-width: 850px) {
  .app-shell {
    width: min(100% - 28px, 680px);
    padding-top: 18px;
  }

  .screen-welcome {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 45px;
    padding: 55px 0;
  }

  .welcome-copy {
    text-align: center;
  }

  .welcome-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .reaction {
    display: none;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

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

  .game-count {
    margin: 0;
  }

  .game-card-soon {
    min-height: 210px;
  }
}

@media (max-width: 560px) {
  .brand-tag {
    display: none;
  }

  .welcome-copy h1 {
    font-size: clamp(3.2rem, 17vw, 4.6rem);
  }

  .auth-card {
    border-radius: 22px;
  }

  .player-bar {
    margin: 16px 0 0;
  }

  .screen-home {
    align-content: start;
  }

  .home-heading {
    margin-top: 48px;
  }

  .action-card {
    grid-template-columns: auto 1fr;
    gap: 18px;
    min-height: 190px;
    padding: 26px 21px;
  }

  .action-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .action-icon svg {
    width: 49px;
  }

  .action-arrow {
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: 34px;
    height: 34px;
  }

  .vibe-line {
    display: none;
  }

  .inner-screen {
    align-content: start;
    padding-top: 40px;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-art {
    min-height: 225px;
  }

  .game-info {
    min-height: 275px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Sintonia */
.game-screen {
  align-content: center;
  padding: 46px 0;
}

.setup-layout,
.lobby-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(45px, 8vw, 100px);
}

.setup-copy h1,
.lobby-copy h1,
.final-screen h1 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(4.2rem, 9vw, 7.4rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.setup-copy > p,
.lobby-copy > p {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.setup-copy > p strong {
  color: var(--pink);
}

.rules-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.rules-mini span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.74rem;
}

.rules-mini b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--night);
  background: var(--lime);
}

.setup-card,
.lobby-panel {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(27, 17, 56, 0.84);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.step-label,
.answer-kicker {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.setup-card h2 {
  margin: 9px 0 5px;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.05;
}

.setup-card > p {
  color: var(--muted);
  font-size: 0.85rem;
}

.chip-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 25px;
}

.chip-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chip-options label span {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: 0.2s ease;
}

.chip-options b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
}

.chip-options small {
  color: var(--muted);
  font-size: 0.68rem;
}

.chip-options input:checked + span {
  border-color: var(--lime);
  background: rgba(201, 255, 85, 0.1);
  box-shadow: 0 0 0 3px rgba(201, 255, 85, 0.08);
  transform: translateY(-3px);
}

.chip-options input:checked + span b {
  color: var(--lime);
}

.game-topbar,
.round-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-topbar .back-button {
  margin-bottom: 0;
}

.room-pill,
.stock-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
}

.room-pill strong {
  color: var(--lime);
  letter-spacing: 0.13em;
}

.copy-room-code {
  cursor: pointer;
  font: inherit;
}

.copy-room-code small {
  font-size: 0.66rem;
  font-weight: 700;
  opacity: 0.7;
}

.copy-room-code:hover,
.copy-room-code:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.postgame-room {
  width: min(620px, 100%);
  margin: 28px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.postgame-players {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.postgame-player {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.postgame-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.postgame-status.is-ready {
  color: var(--lime);
}

.postgame-status.has-left {
  color: #ff8b91;
}

.postgame-host-actions {
  display: grid;
  gap: 10px;
}

.postgame-waiting {
  color: var(--muted);
  text-align: center;
}

.lobby-layout {
  margin-top: 80px;
}

.lobby-start {
  max-width: 310px;
  margin-top: 30px;
}

.lobby-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.player-list {
  display: grid;
  gap: 10px;
}

.lobby-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.player-bubble {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--night);
  background: var(--player-color, var(--cyan));
  font-family: var(--display);
  font-weight: 800;
}

.lobby-player strong {
  flex: 1;
}

.you-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 99px;
  color: var(--night);
  background: var(--cyan);
  font-family: var(--body);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
  vertical-align: middle;
}

.lobby-player.is-you,
.score-row.is-you,
.ranking-row.is-you {
  border-color: rgba(84, 230, 231, 0.42);
  background: rgba(84, 230, 231, 0.075);
}

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

.player-name-button {
  flex: 1;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.player-name-button:hover {
  color: var(--cyan);
}

.ready-state {
  padding: 4px 8px;
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ready-state.is-ready {
  color: var(--night);
  background: var(--lime);
}

.host-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.round-screen {
  display: none;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 65px;
}

.round-screen.is-active {
  display: block;
}

.round-number {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.round-stage {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
}

.snack-icon {
  display: inline-block;
  color: #ffb338;
  font-size: 1.4rem;
  transform: rotate(-12deg);
}

.stock-counter strong {
  color: var(--lime);
  font-size: 1rem;
}

.round-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0 70px;
}

.round-progress span {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.round-progress span.is-current {
  background: var(--lime);
  box-shadow: 0 0 13px rgba(201, 255, 85, 0.5);
}

.round-view {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: screen-in 0.4s ease both;
}

.round-view.is-active {
  display: block;
}

.timer-ring {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 25px;
  border: 5px solid rgba(201, 255, 85, 0.16);
  border-top-color: var(--lime);
  border-radius: 50%;
}

.timer-ring strong,
.timer-ring small {
  grid-area: 1 / 1;
}

.timer-ring strong {
  margin-top: -12px;
  font-family: var(--display);
  font-size: 2rem;
}

.timer-ring small {
  margin-top: 31px;
  color: var(--muted);
  font-size: 0.62rem;
}

.question-category {
  display: block;
  margin-bottom: 12px;
  color: var(--pink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.question-view h1 {
  margin-bottom: 17px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.question-view > p,
.answer-view > p,
.reveal-view > p {
  color: var(--muted);
}

.skip-timer {
  margin-top: 25px;
  padding: 10px;
  border: 0;
  color: var(--cyan);
  background: none;
  cursor: pointer;
  font-weight: 700;
}

.answer-view h2,
.reveal-view h2,
.score-view h2 {
  margin: 10px 0 28px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1;
}

.secret-answer {
  display: block;
  max-width: 580px;
  margin: 36px auto 0;
  text-align: left;
}

.secret-answer span {
  display: block;
  margin-bottom: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.secret-answer input {
  height: 76px;
  padding: 0 22px;
  border: 2px solid rgba(84, 230, 231, 0.3);
  font-size: 1.15rem;
}

.answer-submit,
.reveal-button {
  max-width: 580px;
  margin-right: auto;
  margin-left: auto;
}

.answer-status {
  margin-top: 16px;
  font-size: 0.78rem;
}

.answers-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 35px 0 28px;
}

.answer-card {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.answer-card.is-majority {
  border-color: var(--lime);
  background: rgba(201, 255, 85, 0.08);
}

.answer-card.is-you {
  box-shadow: inset 0 0 0 1px rgba(84, 230, 231, 0.55);
}

.answer-card.is-reviewable {
  cursor: pointer;
}

.answer-card.is-reviewable:hover,
.answer-card.is-selected {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 2px rgba(84,230,231,.45);
}

.group-review {
  margin: -12px 0 24px;
}

.review-button,
.review-actions button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(84,230,231,.05);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
}

.review-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(84,230,231,.25);
  border-radius: 12px;
  background: rgba(84,230,231,.05);
}

.review-panel[hidden] { display: none; }
.review-panel p { margin: 0 0 10px; color: var(--muted); font-size: .76rem; }
.review-actions { display: flex; justify-content: center; gap: 8px; }
.review-actions button:disabled { opacity: .4; cursor: not-allowed; }

.answer-card small .you-tag {
  margin-left: 3px;
}

.answer-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.35rem;
}

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

.answer-card .player-name-button {
  margin: 0 auto;
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
}

.score-row .player-name-button,
.ranking-row .player-name-button {
  color: var(--ink);
}

.majority-tag {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 99px;
  color: var(--night);
  background: var(--lime);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scoreboard {
  display: grid;
  gap: 9px;
  margin: 25px 0 30px;
  text-align: left;
}

.score-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.score-row .player-bubble {
  width: 36px;
  height: 36px;
}

.score-answer {
  color: var(--muted);
  font-size: 0.78rem;
}

.chips-earned {
  min-width: 42px;
  color: #ffb338;
  font-family: var(--display);
  font-size: 1.2rem;
  text-align: right;
}

.chips-total {
  min-width: 48px;
  color: var(--muted);
  font-size: 0.72rem;
}

.round-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: left;
}

.round-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.next-round-button {
  width: auto;
  min-width: 220px;
  margin: 0;
  padding: 0 22px;
}

.final-screen {
  position: relative;
  justify-items: center;
  text-align: center;
}

.final-screen > p {
  color: var(--muted);
}

.winner-card {
  width: min(430px, 100%);
  margin: 25px 0 18px;
  padding: 30px;
  border: 1px solid rgba(201, 255, 85, 0.45);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(201, 255, 85, 0.13), rgba(130, 87, 255, 0.13));
}

.winner-card .player-bubble {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  border-radius: 21px;
  font-size: 1.6rem;
}

.winner-card strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
}

.winner-card span {
  color: var(--lime);
  font-size: 0.83rem;
}

.final-ranking {
  display: grid;
  gap: 7px;
  width: min(430px, 100%);
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.ranking-row b {
  width: 24px;
  color: var(--muted);
}

.ranking-row strong {
  flex: 1;
  text-align: left;
}

.ranking-row span {
  color: #ffb338;
  font-size: 0.78rem;
}

.final-actions {
  display: flex;
  gap: 10px;
  width: min(430px, 100%);
  margin-top: 25px;
}

.final-actions .button {
  margin: 0;
}

.confetti span {
  position: absolute;
  width: 10px;
  height: 22px;
  border-radius: 3px;
  background: var(--pink);
  transform: rotate(20deg);
}

.confetti span:nth-child(1) { top: 15%; left: 8%; background: var(--lime); }
.confetti span:nth-child(2) { top: 30%; right: 10%; background: var(--cyan); transform: rotate(-30deg); }
.confetti span:nth-child(3) { bottom: 20%; left: 15%; transform: rotate(55deg); }
.confetti span:nth-child(4) { top: 10%; right: 25%; background: #ffb338; }
.confetti span:nth-child(5) { bottom: 15%; right: 19%; background: var(--lime); transform: rotate(-12deg); }
.confetti span:nth-child(6) { top: 37%; left: 3%; background: var(--cyan); transform: rotate(75deg); }

@media (max-width: 760px) {
  .setup-layout,
  .lobby-layout {
    grid-template-columns: 1fr;
  }

  .lobby-layout {
    margin-top: 48px;
  }

  .round-progress {
    margin-bottom: 48px;
  }

  .answers-board {
    grid-template-columns: 1fr;
  }

  .round-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .next-round-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .setup-copy h1,
  .lobby-copy h1,
  .final-screen h1 {
    font-size: 4rem;
  }

  .chip-options {
    gap: 6px;
  }

  .chip-options label span {
    min-height: 92px;
  }

  .game-topbar {
    align-items: flex-start;
  }

  .round-screen {
    padding-top: 38px;
  }

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

  .score-answer {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .chips-total {
    display: none;
  }

  .final-actions {
    flex-direction: column;
  }
}

/* Proibido */
.proibido-catalog-card .game-info {
  background: #211328;
}

.proibido-art {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px),
    linear-gradient(145deg, #ff3d47, #a10f2b);
}

.proibido-stamp {
  padding: 15px 12px;
  border: 5px solid #fff6df;
  color: #fff6df;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: .75;
  text-align: center;
  transform: rotate(-9deg);
  box-shadow: 7px 7px 0 rgba(33, 4, 15, .35);
}

.proibido-screen {
  --pro-red: #ff3d47;
  --pro-red-dark: #a10f2b;
  --pro-blue: #36cfea;
  --pro-cream: #fff6df;
}

.proibido-setup-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  gap: clamp(42px, 8vw, 100px);
}

.proibido-intro {
  position: sticky;
  top: 40px;
  padding-top: 30px;
}

.proibido-label {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--pro-cream);
  background: var(--pro-red);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.proibido-intro h1,
.proibido-teams-heading h1,
.board-screen h1,
.proibido-final h1 {
  margin: 20px 0 12px;
  color: var(--pro-cream);
  font-family: var(--display);
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  line-height: .77;
  letter-spacing: -.07em;
}

.proibido-intro > p {
  max-width: 470px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.proibido-rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 27px;
}

.proibido-rule-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 61, 71, .35);
  border-radius: 6px;
  color: #ff8b91;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.proibido-config {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(27, 17, 56, .86);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.config-section {
  padding: 28px 34px;
  border-bottom: 1px solid var(--line);
}

.config-section h2 {
  margin: 7px 0 18px;
  font-family: var(--display);
  font-size: 1.6rem;
}

.config-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.config-heading h2 {
  margin-bottom: 12px;
}

.config-heading strong {
  color: var(--pro-red);
  font-family: var(--display);
  font-size: 2rem;
}

.player-range {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 99px;
  appearance: none;
  background: linear-gradient(90deg, var(--pro-red), #4a365f);
}

.player-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 4px solid var(--pro-cream);
  border-radius: 50%;
  appearance: none;
  background: var(--pro-red);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: .65rem;
}

.mode-options,
.goal-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.goal-values {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}

.mode-options input,
.goal-values input {
  position: absolute;
  opacity: 0;
}

.mode-options span,
.goal-values span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}

.mode-options input:checked + span,
.goal-values input:checked + span {
  border-color: var(--pro-red);
  color: var(--pro-cream);
  background: rgba(255, 61, 71, .14);
  box-shadow: inset 0 -3px 0 var(--pro-red);
}

.goal-values span {
  font-family: var(--display);
  font-size: 1.35rem;
}

.is-hidden {
  display: none !important;
}

.manual-teams {
  display: none;
  margin-top: 12px;
}

.manual-teams.is-visible {
  display: grid;
  gap: 7px;
}

.manual-player {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.035);
}

.manual-player strong {
  font-size: .78rem;
}

.manual-player button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: .62rem;
}

.manual-player button.is-selected:first-of-type {
  border-color: var(--pro-red);
  color: #ff8b91;
}

.manual-player button.is-selected:last-of-type {
  border-color: var(--pro-blue);
  color: var(--pro-blue);
}

.proibido-primary {
  margin: 0;
  color: var(--pro-cream);
  background: linear-gradient(135deg, var(--pro-red), var(--pro-red-dark));
  box-shadow: 0 10px 28px rgba(255, 61, 71, .18);
}

.proibido-config > .proibido-primary {
  width: calc(100% - 68px);
  margin: 28px 34px 34px;
}

.proibido-room strong {
  color: #ff8b91;
}

.proibido-teams-heading {
  margin: 55px 0 32px;
  text-align: center;
}

.proibido-teams-heading h1 {
  font-size: clamp(3.5rem, 7vw, 6rem);
}

.proibido-teams-heading > p,
.board-screen > p,
.proibido-final > p {
  max-width: 650px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  line-height: 1.55;
}

.team-rosters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.team-roster {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
}

.team-red { border-top: 4px solid var(--pro-red); }
.team-blue { border-top: 4px solid var(--pro-blue); }

.team-name {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-roster > strong {
  display: block;
  margin: 3px 0 18px;
  font-family: var(--display);
  font-size: 1.45rem;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
}

.team-member strong {
  flex: 1;
  font-size: .8rem;
}

.team-member small {
  color: var(--muted);
  font-size: .64rem;
}

.team-switch {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: .6rem;
}

.team-switch:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.team-member .player-name-button {
  font-size: .8rem;
}

.proibido-ready-status {
  margin-top: 20px;
  color: var(--muted);
  font-size: .76rem;
  text-align: center;
}

.proibido-ready-button {
  display: block;
  margin-right: auto;
  margin-left: auto;
  border-color: #ff8b91;
  color: #ff8b91;
  background: rgba(255,61,71,.07);
}

.versus-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--night);
  background: var(--pro-cream);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  transform: rotate(-7deg);
}

.teams-start {
  max-width: 330px;
  margin: 28px auto 0;
}

.proibido-play {
  display: none;
  max-width: 1050px;
  margin: 0 auto;
}

.proibido-play.is-active {
  display: block;
}

.proibido-scorebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.mini-team-score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}

.mini-team-score.red {
  border-left: 4px solid var(--pro-red);
}

.mini-team-score.blue {
  justify-content: flex-end;
  border-right: 4px solid var(--pro-blue);
}

.mini-team-score span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.mini-team-score strong {
  font-family: var(--display);
  font-size: 1.55rem;
}

.proibido-turn-info {
  text-align: center;
}

.proibido-turn-info span {
  display: block;
  color: var(--muted);
  font-size: .65rem;
  text-transform: uppercase;
}

.proibido-turn-info strong {
  font-family: var(--display);
  font-size: 1rem;
}

.role-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 40px;
}

.role-preview[hidden] {
  display: none;
}

.role-preview > span {
  margin-right: 7px;
  color: var(--muted);
  font-size: .68rem;
}

.role-preview button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  font-size: .68rem;
}

.role-preview button.is-active {
  border-color: var(--pro-red);
  color: var(--pro-cream);
  background: rgba(255, 61, 71, .13);
}

.proibido-game-stage {
  position: relative;
  min-height: 500px;
}

.proibido-timer {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
}

.proibido-timer svg,
.proibido-timer strong,
.proibido-timer small {
  grid-area: 1 / 1;
}

.proibido-timer svg {
  width: 94px;
  transform: rotate(-90deg);
}

.proibido-timer circle {
  fill: none;
  stroke-width: 6;
}

.timer-track { stroke: rgba(255,255,255,.08); }
.timer-progress {
  stroke: var(--pro-red);
  stroke-dasharray: 276.46;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.proibido-timer strong {
  margin-top: -12px;
  font-family: var(--display);
  font-size: 1.8rem;
}

.proibido-timer small {
  margin-top: 28px;
  color: var(--muted);
  font-size: .58rem;
}

.role-view {
  display: none;
  max-width: 570px;
  margin: 0 auto;
  text-align: center;
  animation: screen-in .3s ease both;
}

.role-view.is-active {
  display: block;
}

.role-name {
  display: inline-block;
  margin-bottom: 12px;
  color: #ff8b91;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.proibido-game-card {
  position: relative;
  padding: 30px 38px 34px;
  border: 8px solid var(--pro-cream);
  border-radius: 20px;
  color: #25101a;
  background: var(--pro-cream);
  box-shadow: 0 18px 0 #6e1024, 0 35px 70px rgba(0,0,0,.28);
  transform: rotate(-1deg);
}

.proibido-game-card.card-leaving {
  animation: card-leave .16s ease-in forwards;
}

.proibido-game-card.card-entering {
  animation: card-enter .22s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes card-leave {
  to {
    opacity: 0;
    transform: translateX(-45px) rotate(-5deg) scale(.96);
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateX(55px) rotate(4deg) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(-1deg) scale(1);
  }
}

.judge-button:disabled {
  opacity: .55;
  cursor: wait;
}

.proibido-game-card::before {
  position: absolute;
  inset: 7px;
  border: 2px solid var(--pro-red);
  border-radius: 10px;
  content: "";
  pointer-events: none;
}

.card-number {
  position: relative;
  color: #9b6d75;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.proibido-game-card h1 {
  position: relative;
  margin: 10px 0 18px;
  color: #25101a;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  line-height: .9;
}

.forbidden-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding-top: 17px;
  border-top: 2px solid var(--pro-red);
}

.forbidden-word {
  padding: 7px;
  border-radius: 6px;
  color: #7e1c2b;
  background: rgba(255, 61, 71, .1);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.forbidden-word:last-child {
  grid-column: 1 / -1;
}

.role-instruction {
  margin-top: 30px;
  color: var(--muted);
  font-size: .78rem;
}

.judge-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}

.judge-button {
  min-height: 58px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
}

.judge-button span {
  margin-right: 7px;
  font-size: 1.2rem;
}

.judge-button.correct {
  color: #102115;
  background: var(--lime);
}

.judge-button.forbidden {
  color: var(--pro-cream);
  background: var(--pro-red);
}

.judge-button.pass {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
}

.audience-role {
  padding-top: 80px;
}

.audience-role h2 {
  margin: 22px 0 8px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1;
}

.audience-role p {
  color: var(--muted);
}

.audience-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.audience-roles div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.04);
}

.audience-roles span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audience-roles strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.audience-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 90px;
}

.audience-pulse span {
  width: 12px;
  border-radius: 99px;
  background: var(--pro-blue);
  animation: sound-pulse .8s ease-in-out infinite alternate;
}

.audience-pulse span:nth-child(1) { height: 35px; }
.audience-pulse span:nth-child(2) { height: 75px; animation-delay: -.3s; background: var(--pro-red); }
.audience-pulse span:nth-child(3) { height: 50px; animation-delay: -.5s; }

@keyframes sound-pulse {
  to { transform: scaleY(.45); opacity: .55; }
}

.demo-time-button {
  display: block;
  margin: 10px auto 0;
  padding: 8px 12px;
  border: 0;
  color: #756b8b;
  background: none;
  cursor: pointer;
  font-size: .65rem;
  text-decoration: underline;
}

.turn-ready-screen {
  justify-items: center;
  text-align: center;
}

.ready-team-mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 28px 0 20px;
  border: 6px solid var(--night);
  border-radius: 26px;
  color: var(--night);
  background: var(--pro-red);
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  box-shadow: 9px 10px 0 rgba(0, 0, 0, .28);
  transform: rotate(-5deg);
}

.ready-team-mark.is-blue {
  background: var(--pro-blue);
  transform: rotate(5deg);
}

.turn-ready-screen h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: .9;
  letter-spacing: -.05em;
}

.turn-ready-screen > p {
  max-width: 580px;
  color: var(--muted);
  line-height: 1.55;
}

.ready-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(560px, 100%);
  margin: 25px 0;
}

.ready-roles div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.ready-roles span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .65rem;
  text-transform: uppercase;
}

.ready-roles strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.ready-play-button {
  max-width: 330px;
}

.turn-ready-screen > small {
  margin-top: 12px;
  color: #736987;
}

.board-screen {
  justify-items: center;
  text-align: center;
}

.turn-summary-screen {
  justify-items: center;
  text-align: center;
}

.turn-summary-screen h1 {
  margin: 20px 0 8px;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: .92;
}

.turn-summary-screen > p {
  color: var(--muted);
}

.turn-history {
  display: grid;
  gap: 8px;
  width: min(650px, 100%);
  max-height: 330px;
  margin: 25px 0 15px;
  overflow-y: auto;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  text-align: left;
}

.history-row strong {
  font-family: var(--display);
}

.history-kind {
  padding: 4px 8px;
  border-radius: 99px;
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.history-kind.correct { color: var(--night); background: var(--lime); }
.history-kind.forbidden { color: var(--pro-cream); background: var(--pro-red); }
.history-kind.pass { color: var(--night); background: #ffb338; }

.turn-summary-totals {
  color: var(--muted);
  font-size: .76rem;
}

.summary-continue {
  max-width: 320px;
  margin-top: 24px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.profile-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  color: var(--night);
  background: linear-gradient(145deg, var(--cyan), var(--purple));
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  transform: rotate(-4deg);
}

.profile-label {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-hero h2 {
  margin: 3px 0 2px;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
}

.profile-hero p {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.profile-stats div {
  padding: 17px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  text-align: center;
}

.profile-stats strong {
  display: block;
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.7rem;
}

.profile-stats span {
  color: var(--muted);
  font-size: .62rem;
  text-transform: uppercase;
}

.profile-games {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.profile-games div {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}

.profile-games span { color: var(--muted); }

@media (max-width: 520px) {
  .brand-tag { display: none; }
  .profile-stats { grid-template-columns: 1fr; }
}

.board-screen h1 {
  max-width: 750px;
  font-size: clamp(3.3rem, 7vw, 5.8rem);
}

.race-board {
  width: min(850px, 100%);
  margin: 40px 0 30px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
}

.race-lane {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: 15px;
  margin: 18px 0;
}

.lane-name {
  font-size: .72rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.race-track {
  position: relative;
  height: 16px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}

.race-track::after {
  position: absolute;
  top: -5px;
  right: 0;
  width: 4px;
  height: 26px;
  content: "";
  background: repeating-linear-gradient(#fff 0 4px, #222 4px 8px);
}

.race-piece {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 4px solid var(--night);
  border-radius: 12px;
  color: var(--night);
  background: var(--pro-red);
  font-family: var(--display);
  font-weight: 800;
  transform: translate(-10%, -50%) rotate(-5deg);
  transition: left 1.2s cubic-bezier(.2,.8,.2,1);
}

.blue-lane .race-piece {
  background: var(--pro-blue);
  transform: translate(-10%, -50%) rotate(5deg);
}

.race-lane > strong {
  font-family: var(--display);
  font-size: 1.5rem;
}

.board-actions {
  width: min(340px, 100%);
}

.proibido-winner {
  width: min(440px, 100%);
  margin: 25px 0;
  padding: 30px;
  border: 3px solid var(--pro-red);
  border-radius: 20px;
  background: rgba(255, 61, 71, .08);
}

.proibido-winner strong {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
}

.proibido-winner span {
  color: var(--muted);
}

@media (max-width: 780px) {
  .proibido-setup-layout {
    grid-template-columns: 1fr;
  }

  .proibido-intro {
    position: static;
  }

  .team-rosters {
    grid-template-columns: 1fr;
  }

  .versus-mark {
    margin: -5px auto;
  }

  .proibido-timer {
    position: relative;
    margin: 0 auto 20px;
  }

  .proibido-game-stage {
    min-height: 600px;
  }
}

@media (max-width: 520px) {
  .config-section {
    padding: 24px 20px;
  }

  .proibido-config > .proibido-primary {
    width: calc(100% - 40px);
    margin: 24px 20px;
  }

  .proibido-scorebar {
    grid-template-columns: 1fr 1fr;
  }

  .proibido-turn-info {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .role-preview {
    flex-wrap: wrap;
  }

  .role-preview > span {
    width: 100%;
    text-align: center;
  }

  .proibido-game-card {
    padding: 28px 24px;
  }

  .race-board {
    padding: 18px 14px;
  }

  .race-lane {
    grid-template-columns: 58px 1fr 30px;
    gap: 8px;
  }

  .ready-roles {
    grid-template-columns: 1fr;
  }

  .audience-roles {
    grid-template-columns: 1fr;
  }
}
