:root {
  color-scheme: dark;
  --bg: #120f12;
  --panel: #211b1c;
  --panel-strong: #332526;
  --ink: #f6ead7;
  --muted: #cdbb9d;
  --blood: #b8242f;
  --gold: #c9a45d;
  --line: #5b4638;
  --shadow: 0 22px 60px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(18, 15, 18, .82), rgba(18, 15, 18, .93)),
    url("/images/vila-transilvania-inverno.png") center center / cover fixed;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 1px solid #8d6b3a;
  border-radius: 6px;
  background: linear-gradient(180deg, #d9ba78, #8f6431);
  color: #1c1110;
  cursor: pointer;
  font-weight: 800;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .55;
}

.secondary {
  background: #2a2224;
  color: var(--ink);
  border-color: var(--line);
}

.phase-event {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  animation: phaseEventFade 3.6s ease both;
}

.phase-event.night {
  background: radial-gradient(circle at center, rgba(40, 24, 34, .34), rgba(7, 7, 12, .7));
}

.phase-event.day {
  background: radial-gradient(circle at center, rgba(250, 211, 142, .26), rgba(18, 15, 18, .28));
}

.phase-event-card {
  min-width: min(520px, calc(100vw - 40px));
  border: 1px solid rgba(201, 164, 93, .58);
  border-radius: 8px;
  background: rgba(20, 14, 15, .88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
  padding: 28px 34px;
  text-align: center;
  transform: translateY(8px);
  animation: phaseCardRise 3.2s ease both;
}

.phase-event.day .phase-event-card {
  background: rgba(55, 38, 26, .84);
}

.phase-event-card p {
  margin-bottom: 0;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.phase-event-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: .95;
}

.bat-flight {
  position: absolute;
  inset: 0;
}

.bat {
  position: absolute;
  top: var(--top);
  left: -80px;
  width: 34px;
  height: 16px;
  transform: scale(var(--scale));
  animation: batFly var(--duration) linear var(--delay) both;
}

.bat::before,
.bat::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 22px;
  height: 14px;
  background: #060507;
  border-radius: 80% 80% 20% 20%;
  animation: batWing .32s ease-in-out infinite alternate;
}

.bat::before {
  left: 0;
  transform-origin: right center;
  transform: rotate(18deg);
}

.bat::after {
  right: 0;
  transform-origin: left center;
  transform: rotate(-18deg);
}

@keyframes phaseEventFade {
  0% {
    opacity: 0;
  }

  14% {
    opacity: 1;
  }

  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes phaseCardRise {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(.96);
  }

  18% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-12px) scale(.98);
  }
}

@keyframes batFly {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) scale(var(--scale));
  }

  8% {
    opacity: .95;
  }

  52% {
    transform: translateX(55vw) translateY(-34px) scale(var(--scale));
  }

  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 140px)) translateY(18px) scale(var(--scale));
  }
}

@keyframes batWing {
  from {
    height: 11px;
    top: 5px;
  }

  to {
    height: 18px;
    top: 0;
  }
}

.garlic-block-event {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(92, 42, 24, .28), rgba(9, 7, 8, .48));
}

.garlic-block-event.show {
  animation: garlicBlockFade 3.6s ease both;
}

.garlic-block-card {
  width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(201, 164, 93, .65);
  border-radius: 8px;
  background: rgba(20, 14, 15, .92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62);
  padding: 18px;
  text-align: center;
  animation: garlicBlockRise 3.25s ease both;
}

.garlic-block-card p {
  margin-bottom: 4px;
  color: #ffdddd;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 900;
}

.garlic-block-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 1rem;
}

.garlic-block-card img {
  display: block;
  width: min(260px, 82vw);
  max-height: 390px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #100c0d;
}

@keyframes garlicBlockFade {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes garlicBlockRise {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(.96);
  }

  14% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-12px) scale(.98);
  }
}

.shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  min-height: 18vh;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 3rem;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 6vw, 5.8rem);
  line-height: .95;
}

h2 {
  margin-bottom: 12px;
}

.phase {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  background: rgba(33, 27, 28, .82);
  color: var(--gold);
  font-weight: 800;
  min-width: 116px;
  text-align: center;
}

.home-panel,
.room-banner,
.join-panel,
.personal-panel,
.actions-panel,
.village-panel,
.log-panel {
  border: 1px solid rgba(201, 164, 93, .35);
  border-radius: 8px;
  background: rgba(33, 27, 28, .92);
  box-shadow: var(--shadow);
}

.home-panel,
.room-banner,
.join-panel {
  margin-top: 30px;
  padding: 22px;
}

.room-banner {
  margin-bottom: 16px;
}

.home-main,
.room-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-main {
  margin-bottom: 18px;
}

.home-panel p,
.room-banner p,
.join-panel p,
.panel-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.join-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 130px 110px;
  gap: 10px;
}

.rooms {
  display: grid;
  gap: 10px;
}

.room-item,
.room-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 15, 16, .78);
  padding: 12px;
}

.room-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.room-item strong,
.room-item p,
.room-item small {
  display: block;
  overflow-wrap: anywhere;
}

.room-item p {
  margin: 4px 0;
  color: var(--muted);
}

.room-item small,
.room-empty {
  color: var(--muted);
}

.share-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-width: min(100%, 620px);
}

.share-box input {
  width: 100%;
}

input,
select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #130f10;
  color: var(--ink);
  padding: 0 12px;
}

.game-grid {
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
  height: clamp(560px, calc(100vh - 330px), 680px);
}

.center-stack {
  display: grid;
  min-height: 0;
}

.home-panel,
.room-banner,
.personal-panel,
.actions-panel,
.village-panel,
.log-panel {
  padding: 16px;
}

.personal-panel,
.actions-panel,
.village-panel,
.log-panel {
  min-height: 0;
  overflow: hidden;
}

.personal-panel {
  overflow-y: auto;
}

.actions-panel,
.village-panel,
.log-panel {
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.personal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.personal-header h2 {
  margin-bottom: 0;
}

.personal-blood {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin: 0;
  min-height: 30px;
}

.personal-blood .drop {
  width: 16px;
  height: 27px;
}

.personal-blood .drop::before {
  left: 34%;
  top: 22%;
  width: 4px;
  height: 12px;
}

.personal-blood .drop::after {
  left: 56%;
  bottom: 10%;
  width: 5px;
  height: 5px;
}

.role-card {
  min-height: 430px;
  margin-bottom: 12px;
}

.card-art {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #140f10;
}

.blood {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0;
  min-height: 30px;
}

.drop {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 30px;
  clip-path: polygon(50% 0%, 60% 12%, 70% 27%, 84% 48%, 94% 66%, 90% 82%, 78% 94%, 61% 100%, 39% 100%, 22% 94%, 10% 82%, 6% 66%, 16% 48%, 30% 27%, 40% 12%);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 235, 230, .72) 0 8%, transparent 18%),
    radial-gradient(circle at 72% 72%, rgba(255, 42, 54, .56) 0 18%, transparent 35%),
    linear-gradient(180deg, #e2222e 0%, #a40f1b 48%, #650810 100%);
  box-shadow: inset -2px -6px 8px rgba(0, 0, 0, .36), inset 4px 5px 5px rgba(255, 255, 255, .24), 0 2px 8px rgba(116, 5, 12, .4);
  transform: translateY(1px);
}

.drop::before {
  content: "";
  position: absolute;
  left: 34%;
  top: 22%;
  width: 4px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 245, 238, .74), rgba(255, 245, 238, 0));
  filter: blur(.2px);
  transform: rotate(9deg);
}

.drop::after {
  content: "";
  position: absolute;
  left: 56%;
  bottom: 10%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, rgba(255, 84, 94, .72), rgba(105, 7, 16, .72) 70%);
}

.drop.empty {
  background:
    radial-gradient(circle at 34% 30%, rgba(170, 150, 155, .25) 0 9%, transparent 18%),
    linear-gradient(180deg, #59484e 0%, #372d32 54%, #211b1f 100%);
  opacity: .58;
  box-shadow: inset -2px -5px 7px rgba(0, 0, 0, .32), 0 1px 4px rgba(0, 0, 0, .25);
}

.drop.empty::before {
  background: linear-gradient(180deg, rgba(170, 150, 155, .28), rgba(170, 150, 155, 0));
}

.drop.empty::after {
  background: radial-gradient(circle at 36% 32%, rgba(92, 76, 82, .6), rgba(32, 26, 30, .7) 70%);
}

.hand {
  display: grid;
  gap: 10px;
}

.action-hand {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-content: start;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.action-hand .mini-card.empty {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  text-align: left;
}

.action-hand .mini-card {
  display: block;
  background: rgba(19, 15, 16, .78);
  height: min(100%, 452px);
  max-height: 452px;
  padding: 10px;
  overflow: hidden;
}

.action-hand .mini-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 432px;
  object-fit: contain;
  border-radius: 6px;
  background: #100c0d;
}

.mini-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #171213;
}

.mini-card.empty {
  display: block;
  padding: 12px;
  color: var(--muted);
  line-height: 1.35;
  min-height: auto;
}

.mini-card strong {
  overflow-wrap: anywhere;
}

.mini-card img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.players {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
  min-height: 0;
}

.player {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 15, 16, .88);
  padding: 10px;
  min-height: 0;
}

.player.dead {
  opacity: .55;
}

.player.speaking {
  border-color: #35d16f;
  box-shadow: 0 0 0 1px rgba(53, 209, 111, .55), 0 0 18px rgba(53, 209, 111, .22);
}

.player-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}

.player-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.player-voice-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #b9b6bf;
}

.player-voice-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #b9b6bf;
}

.player-voice-icon .voice-icon,
.player-voice-icon .voice-icon-slash {
  width: 16px;
  height: 16px;
}

.player-voice-icon .voice-icon-slash {
  display: block;
  left: 1px;
  top: 1px;
  color: #d34b55;
}

.player strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.player-blood {
  flex: 0 0 auto;
  margin: 0;
  min-height: 25px;
}

.player-blood .drop {
  width: 14px;
  height: 24px;
}

.player-blood .drop::before {
  left: 34%;
  top: 22%;
  width: 3px;
  height: 10px;
}

.player-blood .drop::after {
  left: 56%;
  bottom: 10%;
  width: 4px;
  height: 4px;
}


.voice-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 15, 16, .78);
  padding: 12px;
}

.voice-panel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.voice-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}


.voice-device-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 6px;
  background: rgba(15, 13, 16, .72);
  padding: 2px;
}

.voice-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c9c5cd;
  padding: 0;
  box-shadow: none;
}

.voice-icon-button:hover,
.voice-icon-button:focus-visible {
  background: rgba(255, 255, 255, .08);
  outline: none;
}

.voice-icon-button.muted {
  background: rgba(111, 27, 40, .62);
  color: #ff5964;
}

.voice-icon-button:disabled {
  opacity: .42;
  filter: none;
}

.voice-icon,
.voice-icon-slash {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-icon-slash {
  position: absolute;
  left: 8px;
  top: 8px;
  display: none;
  color: #ff5964;
}

.voice-icon-button.muted .voice-icon-slash {
  display: block;
}
.actions {
  display: grid;
  align-content: start;
  gap: 12px;
  margin-top: 0;
  overflow-y: auto;
  padding-right: 4px;
  flex: 0 0 auto;
  max-height: 42%;
}

.action-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 15, 16, .78);
  padding: 12px;
}

.action-box strong,
.action-box p {
  grid-column: 1 / -1;
}

.action-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.action-box select {
  width: 100%;
}

.private-messages {
  display: grid;
  gap: 6px;
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
}

.private-messages p {
  margin: 0;
  font-size: .9rem;
}

.log-panel ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
  min-height: 0;
}

.log-panel li {
  margin-bottom: 0;
}


.manual-open {
  overflow: hidden;
}

.manual-button {
  position: fixed;
  left: auto;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  display: inline-grid;
  place-items: center;
  width: 56px;
  min-height: 56px;
  height: 56px;
  border-radius: 50%;
  border-color: rgba(201, 164, 93, .72);
  background: radial-gradient(circle at 35% 25%, #ead29a, #9e6b31 58%, #4a2818 100%);
  color: #1b1010;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 238, 190, .12) inset;
}

.manual-button:hover,
.manual-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .5), 0 0 0 3px rgba(201, 164, 93, .24);
}

.manual-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.manual-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
}

.manual-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 5, 6, .72);
  backdrop-filter: blur(4px);
}

.manual-book {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(980px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 48px));
  min-height: 0;
  border-radius: 8px;
  color: #2d1710;
  font-family: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .62));
}

.manual-book::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(72, 36, 21, .22), rgba(255, 238, 191, .2), rgba(72, 36, 21, .22));
  pointer-events: none;
}

.manual-page {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding: 34px 38px;
  background:
    linear-gradient(90deg, rgba(85, 42, 24, .1), transparent 12%, transparent 88%, rgba(85, 42, 24, .12)),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 244, .72), transparent 32%),
    linear-gradient(180deg, #f1dba4, #d3ad69);
  border: 1px solid #8e6234;
}


.manual-page-left {
  border-radius: 8px 0 0 8px;
  box-shadow: inset -18px 0 22px rgba(93, 48, 25, .18);
}

.manual-page-right {
  border-radius: 0 8px 8px 0;
  box-shadow: inset 18px 0 22px rgba(93, 48, 25, .16);
}

.manual-kicker {
  margin-bottom: 6px;
  color: #7f2a22;
  font-family: "Old English Text MT", "Uncial Antiqua", "Cinzel Decorative", Georgia, "Times New Roman", serif;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.manual-page h2 {
  margin-bottom: 16px;
  color: #35180f;
  font-family: "Old English Text MT", "Uncial Antiqua", "Cinzel Decorative", Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1;
}

.manual-page h3 {
  margin: 22px 0 8px;
  color: #5b241a;
  font-family: "Old English Text MT", "Uncial Antiqua", "Cinzel Decorative", Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.manual-page p,
.manual-page li {
  color: #2e1a12;
  font-size: 1.03rem;
  line-height: 1.48;
}

.manual-page ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.manual-page strong {
  color: #4a170f;
}

.manual-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  height: 38px;
  border-radius: 50%;
  border-color: rgba(201, 164, 93, .75);
  background: #25191a;
  color: #f4e1b2;
  padding: 0;
  line-height: 0;
}

.manual-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}

@media (max-width: 760px) {
  .manual-button {
    left: auto;
    right: 14px;
    bottom: 14px;
    width: 50px;
    min-height: 50px;
    height: 50px;
  }

  .manual-overlay {
    padding: 14px;
  }

  .manual-book {
    grid-template-columns: 1fr;
    width: calc(100vw - 28px);
    height: calc(100vh - 28px);
  }

  .manual-book::before {
    display: none;
  }

  .manual-page {
    min-height: 0;
    padding: 26px 24px;
  }

  .manual-page-left {
    border-radius: 8px 8px 0 0;
  }

  .manual-page-right {
    border-radius: 0 0 8px 8px;
  }

  .manual-page h2 {
    font-size: 2rem;
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 1050px) {
  .game-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .center-stack {
    order: 2;
  }

  .village-panel {
    order: 3;
  }

  .role-card {
    min-height: auto;
  }

  .card-art {
    max-height: 520px;
  }
}

@media (max-width: 680px) {
  .voice-panel {
    grid-template-columns: 1fr;
  }

  .voice-actions {
    justify-content: stretch;
  }

  .voice-actions button {
    flex: 1 1 140px;
  }

  .shell {
    width: min(100% - 20px, 1440px);
    padding: 12px 0;
  }

  .topbar,
  .home-main,
  .room-banner,
  .join-panel,
  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .join-form,
  .room-item,
  .share-box {
    grid-template-columns: 1fr;
  }
}



.host-options {
  display: grid;
  gap: 8px;
  min-width: 210px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}

.check-option input {
  min-height: auto;
  width: 18px;
  height: 18px;
  padding: 0;
}


.tomb-icon {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 28px;
  border: 1px solid #8b8178;
  border-bottom-width: 3px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #8c8580, #4f4947);
  box-shadow: inset 0 4px 5px rgba(255, 255, 255, .12), 0 5px 10px rgba(0, 0, 0, .3);
}

.tomb-icon::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 10px;
  height: 12px;
  transform: translateX(-50%);
  background:
    linear-gradient(#2c2828, #2c2828) center 0 / 2px 12px no-repeat,
    linear-gradient(#2c2828, #2c2828) center 4px / 10px 2px no-repeat;
  opacity: .78;
}


.player.vampire-ally strong {
  color: #ffccd0;
}

.vampire-ally-icon {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 20px;
  margin-left: 8px;
  padding: 0 7px;
  border: 1px solid rgba(216, 54, 67, .82);
  border-radius: 4px;
  background: linear-gradient(180deg, #8f1f2a 0%, #4d0d15 100%);
  color: #fff5ed;
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  vertical-align: 2px;
  box-shadow: 0 0 12px rgba(184, 36, 47, .28);
}
