/*
 * Bundle CSS principal do De 0 a 10.
 * Mantém a ordem explícita dos módulos para evitar falhas de carregamento em hospedagens estáticas/Linux.
 * Arquivos de origem: base, layout, componentes, home, jogo e responsive.
 */

/* ===== base.css ===== */
:root {
  --color-background: #070614;
  --color-background-soft: #17102f;
  --color-surface: rgba(255, 255, 255, 0.08);
  --color-surface-strong: rgba(255, 255, 255, 0.14);
  --color-text: #f8fafc;
  --color-text-muted: #c1c6dd;
  --color-primary: #7cffb2;
  --color-accent: #8c5cff;
  --color-warm: #ffd166;
  --color-warm-strong: #ff9f1c;
  --color-purple-deep: #241040;
  --color-danger: #ff9191;
  --shadow-soft: 0 28px 90px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 38px rgba(255, 209, 102, 0.18);
  --radius-large: 34px;
  --radius-medium: 22px;
  --container-width: 1160px;
  --transition-base: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 209, 102, 0.18), transparent 24rem),
    radial-gradient(circle at 84% 18%, rgba(140, 92, 255, 0.24), transparent 26rem),
    radial-gradient(circle at 52% 88%, rgba(124, 255, 178, 0.12), transparent 24rem),
    linear-gradient(135deg, var(--color-background), var(--color-background-soft));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background:
    linear-gradient(120deg, transparent 0 46%, rgba(255, 209, 102, 0.16) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.12), transparent 18rem);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ===== layout.css ===== */
.site-shell {
  width: min(100% - 32px, var(--container-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 64px;
}

.site-shell--compact {
  display: flex;
  flex-direction: column;
}

.game-shell {
  width: min(100% - 28px, 1480px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.site-nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand__mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  font-size: 0.82rem;
  color: #221300;
  background: linear-gradient(145deg, #fff1b4, var(--color-warm-strong));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(91, 44, 0, 0.16), 0 16px 40px rgba(255, 159, 28, 0.24);
}

.brand__text {
  font-size: 1.08rem;
}

.site-nav {
  gap: 10px;
}

.site-nav a,
.site-nav__button {
  padding: 12px 18px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 209, 102, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav__button:hover,
.site-nav__button:focus-visible {
  color: var(--color-text);
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.08);
}

.page-content,
.game-page {
  padding: 58px 0 0;
}

.page-hero,
.game-intro {
  max-width: 900px;
  margin-bottom: 34px;
}

.page-hero h1,
.game-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  text-shadow: 0 10px 38px rgba(0, 0, 0, 0.34), 0 0 34px rgba(255, 209, 102, 0.1);
}

.page-hero p:not(.section-eyebrow),
.game-intro p:not(.section-eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.site-user-menu {
  position: relative;
}

.site-user-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: none;
  min-width: 190px;
  padding: 10px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 209, 102, 0.14), transparent 10rem),
    var(--color-purple-deep);
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.site-user-menu__dropdown.is-open {
  display: grid;
}

.site-user-menu__dropdown[hidden] {
  display: none;
}

.site-user-menu__dropdown a,
.site-user-menu__dropdown button {
  width: 100%;
  padding: 10px 12px;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.site-user-menu__dropdown a:hover,
.site-user-menu__dropdown a:focus-visible,
.site-user-menu__dropdown button:hover,
.site-user-menu__dropdown button:focus-visible {
  color: var(--color-text);
  background: rgba(255, 209, 102, 0.09);
  outline: none;
}

/* ===== componentes.css ===== */
.section-eyebrow,
.hero__eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--color-warm);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  text-shadow: 0 0 22px rgba(255, 209, 102, 0.22);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 32px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base), filter var(--transition-base);
}

.button::after {
  position: absolute;
  inset: 1px;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.26), transparent 34%, transparent 68%, rgba(255, 255, 255, 0.14));
  opacity: 0.58;
}

.button:hover,
.button:focus-visible {
  filter: saturate(1.08);
  transform: translateY(-3px) scale(1.02);
}

.button:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid rgba(255, 209, 102, 0.38);
  outline-offset: 4px;
}

.button--primary {
  color: #211200;
  background:
    linear-gradient(135deg, #fff2b7 0%, var(--color-warm) 42%, var(--color-warm-strong) 100%);
  box-shadow: 0 20px 50px rgba(255, 159, 28, 0.28), inset 0 -3px 0 rgba(82, 38, 0, 0.2);
}

.button--ghost,
.button--secondary {
  color: var(--color-text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 209, 102, 0.2);
}

.button--compact {
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.surface-card,
.theme-card,
.current-option-card,
.scores-panel,
.result-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 0 0, rgba(255, 209, 102, 0.1), transparent 18rem);
  border: 1px solid rgba(255, 209, 102, 0.16);
  border-radius: var(--radius-large);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.panel-heading,
.panel-heading--split {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-heading h2,
.result-panel h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.helper-text,
.theme-card__footer span,
.panel-heading span {
  color: var(--color-text-muted);
}

.helper-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.message {
  padding: 14px 16px;
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--color-text);
  background: rgba(20, 13, 40, 0.62);
  border: 1px solid rgba(255, 209, 102, 0.16);
  border-radius: 18px;
}

.message[data-type="success"] {
  color: #07120d;
  background: rgba(124, 255, 178, 0.9);
}

.message[data-type="warning"] {
  color: #181000;
  background: rgba(255, 226, 138, 0.94);
}

.message[data-type="error"] {
  color: #2c0505;
  background: rgba(255, 145, 145, 0.94);
}

/* ===== home.css ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 60px 0 44px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.hero__title,
.empty-state__title {
  margin: 0;
  font-size: clamp(4.4rem, 12vw, 9.3rem);
  line-height: 0.86;
  letter-spacing: -0.105em;
  text-wrap: balance;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.38), 0 0 42px rgba(255, 209, 102, 0.12);
}

.hero__description,
.empty-state__description {
  max-width: 610px;
  margin: 30px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.75;
  color: var(--color-text-muted);
}

.hero__actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 38px;
}

#open-start-modal {
  cursor: pointer;
}

.hero__visual {
  position: relative;
  z-index: 1;
  min-height: 520px;
  pointer-events: none;
}

.game-demo {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 520px;
  padding: 24px;
  margin-inline: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 209, 102, 0.22), transparent 15rem),
    radial-gradient(circle at 100% 100%, rgba(140, 92, 255, 0.24), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 34px;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  transform: rotate(0.6deg);
}

.game-demo::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.08), transparent 12rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 20px);
}

.game-demo > * {
  position: relative;
  z-index: 1;
}

.game-demo__topbar,
.game-demo__current,
.game-demo__mini-ranking,
.game-demo__caption {
  position: relative;
  z-index: 1;
}

.game-demo__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.game-demo__topbar strong {
  color: var(--color-warm);
}

.game-demo__current {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(7, 12, 27, 0.82), rgba(36, 16, 64, 0.68));
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-demo__option {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  animation: float-card 3.2s ease-in-out infinite;
}


.game-demo .current-option-thumb {
  box-shadow: inset 0 -3px 0 rgba(91, 44, 0, 0.14), 0 18px 44px rgba(255, 159, 28, 0.22);
}

.game-demo__option small {
  display: block;
  margin-bottom: 6px;
  color: var(--color-warm);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.game-demo__option strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.game-demo__hint,
.game-demo__caption {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.game-demo__hint {
  padding: 12px 14px;
  font-weight: 800;
  background: rgba(255, 209, 102, 0.08);
  border: 1px dashed rgba(255, 209, 102, 0.24);
  border-radius: 18px;
}

.game-demo__mini-ranking {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 0.9fr;
  gap: 10px;
}

.game-demo__column {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 150px;
  padding: 10px;
  background: rgba(5, 8, 18, 0.48);
  border: 1px solid rgba(255, 209, 102, 0.13);
  border-radius: 20px;
}

.game-demo__score {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #221300;
  font-weight: 900;
  background: linear-gradient(145deg, #fff1b4, var(--color-warm-strong));
  border-radius: 50%;
}

.game-demo__placed {
  cursor: default;
  pointer-events: none;
}

.game-demo__placed span:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: normal;
  overflow-wrap: normal;
}

.game-demo__column.is-hot {
  border-color: rgba(255, 209, 102, 0.32);
  box-shadow: 0 0 28px rgba(255, 159, 28, 0.12);
}

.ranking-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 8% 0, rgba(255, 209, 102, 0.18), transparent 16rem),
    radial-gradient(circle at 100% 100%, rgba(140, 92, 255, 0.18), transparent 16rem);
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 38px;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  backdrop-filter: blur(20px);
  transform: rotate(-1deg);
}

.ranking-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), transparent 42%, rgba(140, 92, 255, 0.15)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px);
}

.ranking-panel__header,
.ranking-item {
  position: relative;
  z-index: 1;
}

.ranking-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

.ranking-panel__header strong {
  color: var(--color-warm);
}

.ranking-item {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 100px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(7, 12, 27, 0.72), rgba(36, 16, 64, 0.58));
  border: 1px solid rgba(255, 209, 102, 0.14);
  border-radius: var(--radius-medium);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ranking-item--first { transform: translateX(-12px); }
.ranking-item--second { transform: translateX(18px); }
.ranking-item--third { transform: translateX(-4px); }

.ranking-item__position {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  font-size: 1.04rem;
  font-weight: 900;
  color: #221300;
  background: linear-gradient(145deg, #fff0af, var(--color-warm-strong));
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(91, 44, 0, 0.18), 0 12px 28px rgba(255, 159, 28, 0.2);
}

.ranking-item strong,
.ranking-item small {
  display: block;
}

.ranking-item small {
  margin-top: 6px;
  color: var(--color-text-muted);
}

.score-orbit {
  position: absolute;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: #06140d;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.score-orbit--one {
  top: -28px;
  right: 20px;
  z-index: 2;
  background: linear-gradient(135deg, #fff3bd, var(--color-warm-strong));
  transform: rotate(10deg);
}

.score-orbit--two {
  bottom: 18px;
  left: -26px;
  z-index: 2;
  background: linear-gradient(135deg, #b89cff, #ffffff);
  transform: rotate(-12deg);
}

.how-it-works {
  display: grid;
  gap: 30px;
  padding: 34px;
  margin-top: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 209, 102, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 209, 102, 0.14);
  border-radius: var(--radius-large);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}

.how-it-works h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 209, 102, 0.12);
  border-radius: var(--radius-medium);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.step-card:hover {
  border-color: rgba(255, 209, 102, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.step-card span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 28px;
  font-size: 1.55rem;
  font-weight: 900;
  color: #221300;
  background: linear-gradient(145deg, #fff1b4, var(--color-warm-strong));
  border-radius: 18px;
  box-shadow: inset 0 -3px 0 rgba(91, 44, 0, 0.16);
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.step-card p {
  margin: 0;
  line-height: 1.5;
  color: var(--color-text-muted);
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-8px) rotate(0.6deg); }
}

.game-demo__hint {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  color: var(--color-warm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.game-demo__hint span {
  width: 10px;
  height: 10px;
  background: var(--color-warm-strong);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 159, 28, 0.5);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.8); opacity: 0.58; }
  50% { transform: scale(1.25); opacity: 1; }
}

.game-demo__hint {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.start-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 24px;
}

.start-modal.is-open {
  display: grid;
}

.start-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3, 5, 14, 0.72);
  backdrop-filter: blur(10px);
}

.start-modal__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 860px);
  max-height: min(90vh, 760px);
  padding: 30px;
  overflow: auto;
  background:
    radial-gradient(circle at 0 0, rgba(255, 209, 102, 0.16), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    var(--color-purple-deep);
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 34px;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.start-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
}

.start-modal__step h2 {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.start-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.start-option {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
  color: var(--color-text);
  text-align: left;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 209, 102, 0.16);
  border-radius: 24px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.start-option:hover,
.start-option:focus-visible {
  border-color: rgba(255, 209, 102, 0.38);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), 0 0 28px rgba(255, 159, 28, 0.12);
  outline: none;
  transform: translateY(-4px) rotate(-0.35deg);
}

.start-option span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(145deg, #fff1b4, var(--color-warm-strong));
  border-radius: 18px;
}

.start-option strong {
  font-size: 1.35rem;
  line-height: 1;
}

.start-option small {
  color: var(--color-text-muted);
  line-height: 1.45;
}

.start-modal label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--color-warm);
  font-weight: 900;
}

.start-modal input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--color-text);
  background: rgba(3, 5, 14, 0.42);
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 16px;
  outline: none;
}

.start-modal input:focus {
  border-color: rgba(255, 209, 102, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12);
}

.start-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.custom-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
}

.custom-options-list span,
.custom-options-list small {
  padding: 8px 10px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.random-draw {
  text-align: center;
}

.random-draw__stage {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 209, 102, 0.18), transparent 15rem),
    rgba(3, 5, 14, 0.28);
  border: 1px solid rgba(255, 209, 102, 0.16);
  border-radius: 28px;
}

.random-draw__stage::before {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  content: "";
  border: 1px dashed rgba(255, 209, 102, 0.18);
  border-radius: 22px;
}

.random-draw__deck {
  position: relative;
  display: grid;
  width: min(100%, 540px);
  height: 170px;
  place-items: center;
}

.random-draw__card {
  position: absolute;
  display: grid;
  width: 150px;
  min-height: 150px;
  gap: 10px;
  place-items: center;
  padding: 18px;
  color: var(--color-text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(138, 92, 246, 0.12));
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
  transform: translateX(calc((var(--card-offset, 0)) * 92px)) rotate(calc((var(--card-offset, 0)) * 7deg)) scale(0.88);
  transition: transform 150ms ease, border-color 150ms ease, opacity 150ms ease, box-shadow 150ms ease;
}

.random-draw__card:nth-child(1) { --card-offset: -2; }
.random-draw__card:nth-child(2) { --card-offset: -1; }
.random-draw__card:nth-child(3) { --card-offset: 0; }
.random-draw__card:nth-child(4) { --card-offset: 1; }
.random-draw__card:nth-child(5) { --card-offset: 2; }

.random-draw__card small {
  color: var(--color-warm);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.random-draw__card strong {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #221300;
  font-size: 2.2rem;
  background: linear-gradient(145deg, #fff1b4, var(--color-warm-strong));
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(91, 44, 0, 0.18), 0 14px 28px rgba(255, 159, 28, 0.18);
}

.random-draw__card.is-active {
  z-index: 2;
  border-color: rgba(255, 209, 102, 0.56);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34), 0 0 34px rgba(255, 209, 102, 0.16);
  opacity: 1;
  transform: translateY(-8px) scale(1.02) rotate(-1deg);
}

.random-draw.is-drawing .random-draw__deck {
  animation: draw-shuffle 520ms ease-in-out infinite;
}

.random-draw__result {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(100%, 620px);
  gap: 16px;
  padding: 34px 24px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 209, 102, 0.2), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), 0 0 44px rgba(255, 159, 28, 0.12);
  animation: reveal-pop 260ms ease both;
}

.random-draw__result[hidden] {
  display: none;
}

.random-draw__result span {
  color: var(--color-warm);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.random-draw__result strong {
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}


.random-draw__actions[hidden] {
  display: none;
}

@keyframes draw-shuffle {
  0%, 100% { transform: translateX(-4px) rotate(-0.4deg); }
  50% { transform: translateX(4px) rotate(0.4deg); }
}

.random-draw.is-revealed .random-draw__deck {
  display: none;
}

@media (max-width: 640px) {
  .random-draw__stage {
    min-height: 240px;
    padding: 18px;
  }

  .random-draw__card {
    width: 118px;
    min-height: 132px;
    padding: 14px;
    transform: translateX(calc((var(--card-offset, 0)) * 58px)) rotate(calc((var(--card-offset, 0)) * 6deg)) scale(0.82);
  }

  .random-draw__card strong {
    width: 54px;
    height: 54px;
  }
}

.auth-modal__panel {
  width: min(100%, 560px);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form .button {
  width: 100%;
  margin-top: 4px;
}

.auth-links {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 20px;
}

.auth-links a,
.auth-links button {
  padding: 0;
  color: var(--color-warm);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
  transition: color var(--transition-base), transform var(--transition-base);
}

.auth-links a:hover,
.auth-links a:focus-visible,
.auth-links button:hover,
.auth-links button:focus-visible {
  color: var(--color-warm-strong);
  outline: none;
  transform: translateY(-1px);
}

.auth-feedback {
  min-height: 22px;
  margin: 0;
  color: var(--color-text-muted);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.auth-feedback[data-type="success"] {
  color: var(--color-success);
}

.auth-feedback[data-type="error"] {
  color: var(--color-danger);
}

/* ===== jogo.css ===== */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.theme-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.theme-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 10% 0, rgba(255, 209, 102, 0.18), transparent 12rem),
    linear-gradient(120deg, transparent 0 55%, rgba(255, 255, 255, 0.08) 55% 56%, transparent 56% 100%);
  opacity: 0.8;
}

.theme-card:hover {
  border-color: rgba(255, 209, 102, 0.34);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.34), 0 0 44px rgba(255, 209, 102, 0.1);
  transform: translateY(-6px) rotate(-0.35deg);
}

.theme-card > * {
  position: relative;
  z-index: 1;
}

.theme-card h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.theme-card__content {
  display: grid;
  align-content: start;
}

.theme-card .section-eyebrow {
  margin-bottom: 16px;
}

.theme-card__footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.game-board {
  display: grid;
  gap: 18px;
}

.current-option-card,
.scores-panel,
.result-panel {
  padding: 22px;
}

.current-option-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  animation: reveal-pop 260ms ease both;
}

.current-option-label {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.current-option-meta {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.current-option-image {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  color: #221300;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff1b4, var(--color-warm-strong));
  border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(91, 44, 0, 0.16), 0 18px 38px rgba(255, 159, 28, 0.18);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 8px;
}

.score-column {
  position: relative;
  min-height: 320px;
  padding: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(36, 16, 64, 0.58), rgba(7, 12, 27, 0.62)),
    radial-gradient(circle at 50% 0, rgba(255, 209, 102, 0.08), transparent 7rem);
  border: 1px solid rgba(255, 209, 102, 0.13);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.score-column.is-full {
  border-color: rgba(255, 209, 102, 0.42);
}

.score-column__target {
  display: grid;
  width: 100%;
  gap: 4px;
  place-items: center;
  padding: 0;
  margin: 0 0 10px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.score-column__number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #221300;
  background: linear-gradient(145deg, #fff1b4, var(--color-warm-strong));
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(91, 44, 0, 0.18), 0 10px 22px rgba(255, 159, 28, 0.16);
}

.score-column__meta {
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--color-text-muted);
}

.score-column__items {
  display: grid;
  gap: 7px;
}

.placed-chip {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  color: var(--color-text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 209, 102, 0.13);
  border-radius: 14px;
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
  animation: chip-in 220ms ease both;
}

.placed-chip:hover,
.placed-chip:focus-visible {
  transform: translateY(-1px);
  color: #221300;
  background: linear-gradient(135deg, #fff1b4, var(--color-warm));
  border-color: rgba(255, 255, 255, 0.34);
  outline: none;
}

.score-placeholder {
  display: block;
  min-height: 44px;
  padding: 9px 6px;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
  color: var(--color-text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

.result-panel {
  margin-top: 18px;
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.result-score {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 209, 102, 0.12);
  border-radius: 16px;
}

.result-score strong {
  color: var(--color-warm);
}

.result-score span {
  color: var(--color-text-muted);
}

.option-image {
  position: relative;
  display: inline-grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  color: #221300;
  background: linear-gradient(135deg, #fff1b4, var(--color-warm-strong));
  border-radius: 18px;
  box-shadow: inset 0 -3px 0 rgba(91, 44, 0, 0.14);
  flex: 0 0 auto;
}

.option-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.option-image__fallback {
  position: relative;
  z-index: 1;
  display: none;
  font-weight: 900;
}

.option-image.has-error .option-image__fallback,
.option-image:not(:has(img)) .option-image__fallback {
  display: inline-flex;
}

.current-option-image {
  display: block;
}

.current-option-thumb {
  width: 118px;
  height: 118px;
  border-radius: 28px;
}

.current-option-thumb .option-image__fallback {
  font-size: 2.5rem;
}

.placed-chip__thumb {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.placed-chip__thumb .option-image__fallback,
.result-item__thumb .option-image__fallback {
  font-size: 0.9rem;
}

.result-item__thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.placed-chip {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.result-score__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px 6px 6px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.result-empty {
  color: var(--color-text-muted);
}

.current-option-image {
  width: auto;
  height: auto;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

.current-option-thumb[data-drag-current="true"] {
  cursor: grab;
  transition: opacity var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 18px 44px rgba(255, 159, 28, 0.22);
}

.current-option-thumb[data-drag-current="true"]:hover,
.current-option-thumb[data-drag-current="true"]:focus-visible {
  transform: scale(1.04);
}

.current-option-thumb.is-dragging {
  cursor: grabbing;
  opacity: 0.58;
  transform: scale(0.94);
}

.score-grid.is-dragging .score-column:not(.is-full) {
  border-color: rgba(255, 209, 102, 0.5);
  background: rgba(255, 209, 102, 0.08);
}

.score-grid.is-dragging .score-column.is-full {
  opacity: 0.62;
}

.score-column.is-drop-target:not(.is-full) {
  border-color: var(--color-warm);
  background: rgba(255, 209, 102, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.42), 0 18px 48px rgba(255, 159, 28, 0.12);
  transform: translateY(-2px);
}

.score-column.is-drop-target.is-full {
  border-color: var(--color-danger);
  background: rgba(255, 145, 145, 0.12);
}

.placed-chip__thumb[data-drag-placed] {
  cursor: grab;
  transition: opacity var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.placed-chip__thumb[data-drag-placed]:hover,
.placed-chip__thumb[data-drag-placed]:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(255, 159, 28, 0.2);
}

.placed-chip__thumb.is-dragging {
  cursor: grabbing;
  opacity: 0.58;
  transform: scale(0.92);
}

.placed-chip {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 58px;
  height: 58px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  overflow: hidden;
}

.placed-chip__thumb {
  width: 32px;
  height: 32px;
}

.placed-chip > span:last-child {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(0.68rem, 0.68vw, 0.78rem);
  font-weight: 800;
  line-height: 1.18;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.game-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.discard-zone,
.discarded-panel {
  min-height: 76px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
}

.discard-zone {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.discard-zone:hover,
.discard-zone:focus-visible,
.discard-zone.is-drop-target {
  background: rgba(255, 145, 145, 0.13);
  border-color: rgba(255, 145, 145, 0.58);
  outline: none;
  transform: translateY(-1px);
}

.discard-zone.is-dragging {
  border-style: dashed;
}

.discard-zone__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.discard-zone strong,
.discard-zone small,
.discarded-panel > strong {
  display: block;
}

.discard-zone small {
  margin-top: 4px;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.discarded-panel {
  padding: 12px;
}

.discarded-panel > strong {
  margin-bottom: 10px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.discarded-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discarded-item {
  display: inline-grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  max-width: 260px;
  padding: 6px 10px 6px 6px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
}

.discarded-item span:not(.option-image) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discarded-item strong {
  color: var(--color-warm);
  font-size: 0.76rem;
}

.discarded-item__thumb {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.discarded-empty {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.current-option-card,
.placed-chip {
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base), background var(--transition-base);
}

.current-option-card.is-selected,
.placed-chip.is-selected {
  border-color: var(--color-warm);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.2), 0 18px 44px rgba(255, 159, 28, 0.14);
}

.game-tools {
  margin-top: 16px;
  margin-bottom: 0;
}

.reveal-button {
  justify-self: end;
  min-width: 132px;
}

.reset-progress-button {
  opacity: 0.82;
}

.reset-progress-button:hover,
.reset-progress-button:focus-visible {
  opacity: 1;
}

@keyframes reveal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chip-in {
  from { opacity: 0; transform: translateY(5px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.current-option-thumb {
  animation: reveal-pop 260ms ease both;
}

.round-strip {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 14px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(140, 92, 255, 0.1)),
    rgba(7, 12, 27, 0.48);
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.round-strip span,
.round-strip small {
  color: var(--color-text-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.round-strip strong {
  display: block;
  margin-top: 3px;
  color: var(--color-warm);
  font-size: 1.18rem;
  line-height: 1;
}

.round-strip__track {
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.round-strip__track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-warm), var(--color-warm-strong));
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(255, 159, 28, 0.28);
  transition: width 260ms ease;
}

/* ===== responsive.css ===== */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    min-height: auto;
    padding-top: 70px;
  }

  .hero__visual {
    max-width: 620px;
    min-height: auto;
  }

  .score-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell,
  .game-shell {
    width: min(100% - 24px, var(--container-width));
    padding-top: 20px;
  }

  .site-nav {
    display: none;
  }

  .brand__text {
    display: none;
  }

  .hero__title,
  .empty-state__title {
    font-size: clamp(3.7rem, 23vw, 5.8rem);
  }

  .hero__actions,
  .button,
  .theme-card__footer,
  .panel-heading--split,
  .current-option-card {
    width: 100%;
  }

  .hero__actions,
  .theme-card__footer,
  .panel-heading--split,
  .current-option-card,
  .round-strip {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .rules-grid,
  .themes-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .how-it-works,
  .current-option-card,
  .scores-panel,
  .result-panel {
    padding: 20px;
  }

  .ranking-item,
  .ranking-item--first,
  .ranking-item--second,
  .ranking-item--third {
    min-height: 88px;
    transform: none;
  }

  .score-orbit {
    display: none;
  }

  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-column {
    min-height: 190px;
  }

  .result-score {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .score-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .game-tools {
    grid-template-columns: 1fr;
  }

  .game-actions {
    justify-content: stretch;
  }

  .game-actions .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .start-options {
    grid-template-columns: 1fr;
  }

  .start-option {
    min-height: 160px;
  }

  .start-modal__panel {
    padding: 24px;
  }
}

.score-column.is-selected {
  border-color: rgba(255, 209, 102, 0.7);
  box-shadow: 0 18px 42px rgba(255, 159, 28, 0.16), inset 0 0 0 1px rgba(255, 209, 102, 0.18);
}

.score-column.is-selected .score-column__target {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(255, 159, 28, 0.12));
}

.online-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.online-player,
.online-vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 999px;
  background: rgba(7, 12, 27, 0.58);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.online-player {
  padding: 7px 10px;
}

.online-player span {
  color: var(--color-success);
  font-size: 0.7rem;
}

.online-player.is-host {
  border-color: rgba(255, 209, 102, 0.45);
  color: var(--color-warm);
}

.online-votes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  padding: 0 6px 8px;
}

.online-vote-pill {
  max-width: 100%;
  padding: 4px 6px 4px 4px;
}

.online-vote-pill strong {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-warm), var(--color-warm-strong));
  color: #241000;
  font-size: 0.68rem;
  box-shadow: 0 6px 14px rgba(255, 159, 28, 0.18);
}

.online-vote-pill span {
  overflow: hidden;
  max-width: 74px;
  text-overflow: ellipsis;
}

.discard-zone .online-votes {
  justify-content: flex-start;
  padding: 6px 0 0;
}

.current-option-card.is-text-only {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.current-option-card.is-text-only .current-option-image {
  display: none;
}

.current-option-card.is-text-only .current-option-label {
  max-width: 980px;
  letter-spacing: -0.055em;
}

.placed-chip--text-only {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 10px 11px;
}

.placed-chip--text-only > span:last-child {
  -webkit-line-clamp: 2;
}

.discarded-item--text-only {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-left: 10px;
}
