/* ============================================================
   TUYUL KOS — satu stylesheet, tanpa framework.
   Palet: malam kos (indigo), lampu lorong (amber), tuyul (pink),
   gembok (mint). Semua aset visual CSS/emoji; mudah diganti.
   ============================================================ */

:root {
  --bg: #0b0918;
  --bg-2: #120d24;
  --card: rgba(255, 255, 255, 0.055);
  --card-solid: #17112c;
  --ink: #f7f0e6;
  --muted: #a89cc4;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --amber: #ffc046;
  --amber-2: #ff8a3d;
  --mint: #4fe0c1;
  --pink: #ff6b9d;
  --violet: #9b7bff;
  --danger: #ff5c6c;
  --radius: 22px;
  --shadow: 0 26px 70px -34px rgba(0, 0, 0, 0.95);
  --input-bg: #0e0a1f;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-body: "Plus Jakarta Sans", ui-rounded, "Segoe UI", system-ui, -apple-system,
    sans-serif;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
}

html[data-theme="senja"] {
  --bg: #170d12;
  --bg-2: #21131a;
  --card-solid: #241520;
  --ink: #fff3e8;
  --muted: #c9a9ad;
  --amber: #ffb25e;
  --amber-2: #ff7a59;
  --pink: #ff8fa3;
  --mint: #8be0b8;
  --violet: #d28bff;
  --input-bg: #1c1018;
}

html[data-theme="hutan"] {
  --bg: #07120e;
  --bg-2: #0c1d16;
  --card-solid: #0f241b;
  --ink: #eafff3;
  --muted: #93b8a7;
  --amber: #7ee0a3;
  --amber-2: #4fe0c1;
  --pink: #ff9bb5;
  --mint: #4fe0c1;
  --violet: #8bd7ff;
  --input-bg: #091a13;
}

html[data-theme="neon"] {
  --bg: #08081c;
  --bg-2: #101033;
  --card-solid: #14143d;
  --ink: #f2f4ff;
  --muted: #a2a6d6;
  --amber: #8ef0ff;
  --amber-2: #b48bff;
  --pink: #ff7ad9;
  --mint: #7dffd4;
  --violet: #b48bff;
  --input-bg: #0c0c26;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(1100px 620px at 12% -12%, rgba(155, 123, 255, 0.2), transparent 62%),
    radial-gradient(900px 520px at 108% 4%, rgba(255, 107, 157, 0.14), transparent 58%),
    radial-gradient(820px 640px at 50% 118%, rgba(79, 224, 193, 0.1), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 38px,
    rgba(255, 255, 255, 0.012) 38px 39px
  );
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 800;
}

h2 {
  font-size: clamp(20px, 4.6vw, 26px);
  font-weight: 800;
}

h3 {
  font-size: 17px;
  font-weight: 750;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--amber);
}

::selection {
  background: rgba(255, 192, 70, 0.3);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(32px + var(--safe-b));
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.hint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.error-line {
  color: var(--danger);
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------- */
/* Tombol & input                                             */
/* ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
  font-weight: 750;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease,
    filter 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn:active {
  transform: scale(0.985);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn:focus-visible,
.avatar:focus-visible,
.action-card:focus-visible,
.area-card:focus-visible,
.vote-card:focus-visible,
.code-big:focus-visible,
.link-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-2) 100%);
  border: 0;
  color: #241300;
  box-shadow: 0 16px 40px -18px rgba(255, 154, 60, 0.85);
}

.btn-primary:hover {
  filter: brightness(1.05);
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-2) 100%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  border-color: rgba(255, 92, 108, 0.4);
  color: #ffb4bc;
}

.btn-big {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}

.btn-xl {
  width: 100%;
  min-height: 62px;
  font-size: 18px;
  border-radius: 18px;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 12px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--amber);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 4px;
  text-decoration: none;
}

.link-btn.subtle {
  color: var(--muted);
  margin: 10px auto 0;
  display: block;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field > span {
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.field.compact {
  margin-bottom: 0;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 16px; /* mencegah zoom iOS */
  transition: border-color 0.2s, box-shadow 0.2s;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

input::placeholder {
  color: #6f6488;
}

input:focus,
select:focus {
  outline: 0;
  border-color: rgba(255, 192, 70, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 192, 70, 0.13);
}

/* ---------------------------------------------------------- */
/* Kartu umum                                                 */
/* ---------------------------------------------------------- */

.panel {
  position: relative;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 19px;
}

.count {
  color: var(--amber);
  font-size: 14px;
  font-weight: 800;
}

.fold {
  padding: 0;
  overflow: hidden;
}

.fold summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 750;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fold summary::-webkit-details-marker {
  display: none;
}

.fold summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
}

.fold[open] summary::after {
  content: "–";
}

.fold > .steps,
.fold > .note-list {
  padding: 0 18px 16px;
}

/* ---------------------------------------------------------- */
/* Beranda                                                    */
/* ---------------------------------------------------------- */

.hero {
  position: relative;
  padding: 28px 2px 4px;
  text-align: center;
}

.hero-moon {
  font-size: clamp(46px, 12vw, 70px);
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 34px rgba(255, 192, 70, 0.4));
  animation: floatMoon 5.5s ease-in-out infinite;
}

@keyframes floatMoon {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-7px) rotate(3deg);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(58px, 17vw, 110px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.86;
  margin: 10px 0 14px;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.hero h1 span {
  color: var(--amber);
  display: inline-block;
  position: relative;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 8%;
  height: 7px;
  background: rgba(255, 107, 157, 0.55);
  border-radius: 99px;
  transform: rotate(-1.5deg);
  z-index: -1;
}

.tagline {
  max-width: 46ch;
  margin: 0 auto;
  color: #c8bcdd;
  font-size: 14.5px;
  line-height: 1.6;
}

.tagline b {
  color: var(--ink);
}

.enter-panel {
  margin-top: 22px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.avatar {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 23px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.12s, border-color 0.2s, background 0.2s;
}

.avatar:hover {
  background: rgba(255, 255, 255, 0.09);
}

.avatar.is-on {
  border-color: var(--amber);
  background: rgba(255, 192, 70, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(255, 192, 70, 0.6);
}

.invite-banner {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(79, 224, 193, 0.12);
  border: 1px solid rgba(79, 224, 193, 0.3);
  color: #b8f6e7;
  font-size: 13.5px;
}

.invite-banner b {
  letter-spacing: 0.16em;
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

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

.join-row {
  display: flex;
  gap: 10px;
}

.join-row input {
  flex: 1;
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: calc(14px + 0.32em);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.join-row .btn {
  flex: 0 0 auto;
  padding-inline: 22px;
}

.how {
  margin-top: 30px;
}

.how h2 {
  font-size: 21px;
  margin-bottom: 12px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 9px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 14px 12px 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: #cfc5e0;
  font-size: 13.5px;
  line-height: 1.5;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 192, 70, 0.16);
  color: var(--amber);
  font-weight: 800;
  font-size: 12px;
}

.steps li b {
  color: var(--ink);
}

.steps.small {
  margin-top: 4px;
}

.role-samples {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.role-sample {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.role-sample-icon {
  font-size: 26px;
  line-height: 1.1;
}

.role-sample b {
  font-size: 14px;
}

.role-sample p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 2px;
}

.role-sample.role-tuyul {
  border-color: rgba(255, 107, 157, 0.3);
  background: rgba(255, 107, 157, 0.06);
}

.role-sample.role-ibukos {
  border-color: rgba(255, 192, 70, 0.28);
  background: rgba(255, 192, 70, 0.05);
}

.role-sample.role-warga {
  border-color: rgba(79, 224, 193, 0.24);
  background: rgba(79, 224, 193, 0.045);
}

.foot {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11.5px;
}

/* ---------------------------------------------------------- */
/* Lobby                                                      */
/* ---------------------------------------------------------- */

.lobby-head {
  text-align: center;
  padding: 6px 0 2px;
}

.lobby-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 12vw, 70px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 6px 0 8px;
}

.lobby-title span {
  color: var(--amber);
}

.code-card {
  margin-top: 18px;
  padding: 18px 16px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 192, 70, 0.4);
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 192, 70, 0.11), transparent 60%),
    rgba(255, 255, 255, 0.02);
}

.code-big {
  display: block;
  margin: 4px auto 2px;
  border: 0;
  background: none;
  color: var(--amber);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(52px, 15vw, 76px);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.05;
  text-shadow: 0 0 40px rgba(255, 192, 70, 0.35);
  padding-left: 0.16em;
}

.code-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}

.player-grid {
  display: grid;
  gap: 8px;
}

.lobby-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lobby-player .player-chip {
  flex: 1;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.player-chip.is-off {
  opacity: 0.5;
}

.player-chip.is-empty {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
}

.pc-avatar {
  font-size: 22px;
  width: 30px;
  text-align: center;
}

.pc-name {
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-name i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(155, 123, 255, 0.18);
  color: #c9b7ff;
}

.pc-crown {
  margin-left: auto;
  font-size: 14px;
}

.pc-off {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}

.mini-x {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

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

.settings-grid select {
  min-height: 44px;
  font-size: 14px;
  padding-left: 10px;
}

.lobby-cta {
  margin-top: 18px;
  text-align: center;
}

.lobby-cta .hint {
  margin-top: 9px;
}

.waiting-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(79, 224, 193, 0.5);
  animation: pulse 1.8s infinite;
  flex: 0 0 8px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 224, 193, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(79, 224, 193, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 224, 193, 0);
  }
}

/* ---------------------------------------------------------- */
/* Header permainan                                           */
/* ---------------------------------------------------------- */

.game {
  padding-top: 0;
}

.conn-banner {
  margin: 0 -16px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  background: rgba(255, 92, 108, 0.16);
  color: #ffc3c9;
  border-bottom: 1px solid rgba(255, 92, 108, 0.25);
}

.conn-banner.connecting {
  background: rgba(255, 192, 70, 0.13);
  color: #ffe0a1;
  border-color: rgba(255, 192, 70, 0.25);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -16px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  background: rgba(11, 9, 24, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.tb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brandmark {
  font-size: 18px;
}

.tb-room {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  padding: 5px 9px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.tb-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.phase-name {
  font-size: 11.5px;
  font-weight: 750;
  color: var(--muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.timer {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  min-width: 46px;
  text-align: center;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(255, 192, 70, 0.14);
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.timer.is-low {
  background: rgba(255, 92, 108, 0.18);
  color: #ff9aa5;
  animation: tickPulse 1s ease-in-out infinite;
}

.timer.is-off {
  opacity: 0.45;
  background: transparent;
}

@keyframes tickPulse {
  50% {
    transform: scale(1.06);
  }
}

.tb-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tb-menu-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.tb-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.game-menu {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: 12px;
  z-index: 70;
  width: min(290px, calc(100vw - 24px));
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(19, 14, 38, 0.98);
  box-shadow: var(--shadow);
}

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

.gm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.gm-close {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
}

.gm-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}

.gm-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gm-item b {
  margin-left: auto;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.gm-item.danger {
  color: #ff9aa5;
  border-color: rgba(255, 92, 108, 0.35);
  background: rgba(140, 22, 42, 0.18);
}

.gm-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gm-controls > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.coin-chip {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(255, 192, 70, 0.1);
  border: 1px solid rgba(255, 192, 70, 0.2);
  color: #ffdd9c;
  white-space: nowrap;
}

/* ---------------------------------------------------------- */
/* Chip latensi koneksi (ping)                                */
/* ---------------------------------------------------------- */

.tb-ping {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tb-ping::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.tb-ping[data-quality="good"] {
  color: #4fe0c1;
  border-color: rgba(79, 224, 193, 0.32);
  background: rgba(79, 224, 193, 0.1);
}

.tb-ping[data-quality="ok"] {
  color: #ffc046;
  border-color: rgba(255, 192, 70, 0.32);
  background: rgba(255, 192, 70, 0.1);
}

.tb-ping[data-quality="bad"] {
  color: #ff9b6b;
  border-color: rgba(255, 120, 80, 0.38);
  background: rgba(255, 120, 80, 0.12);
}

.tb-ping[data-quality="lost"] {
  color: #ff6b6b;
  border-color: rgba(255, 92, 108, 0.45);
  background: rgba(140, 22, 42, 0.28);
}

.tb-ping[data-quality="lost"]::before,
.tb-ping[data-quality="bad"]::before {
  animation: pingPulse 1.1s ease-in-out infinite;
}

.tb-ping[data-quality="unknown"]::before {
  box-shadow: none;
  opacity: 0.6;
}

@keyframes pingPulse {
  50% {
    opacity: 0.25;
  }
}

.gm-ping {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.gm-ping > span {
  font-weight: 700;
}

.gm-ping b {
  margin-left: auto;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.phasebar {
  height: 3px;
  margin: 0 -16px 12px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.phasebar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--amber));
  transition: width 0.25s linear;
}

.role-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  color: var(--muted);
}

.rs-role b {
  color: var(--ink);
}

.role-strip.role-tuyul {
  border-color: rgba(255, 107, 157, 0.32);
  background: rgba(255, 107, 157, 0.07);
}

.role-strip.role-ibukos {
  border-color: rgba(255, 192, 70, 0.3);
  background: rgba(255, 192, 70, 0.06);
}

.role-strip.role-warga {
  border-color: rgba(79, 224, 193, 0.25);
  background: rgba(79, 224, 193, 0.05);
}

.rs-mid {
  font-weight: 650;
}

.rs-right {
  color: #ffd894;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------------------------------------------------------- */
/* Kartu peran                                                */
/* ---------------------------------------------------------- */

.role-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.role-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--role-glow, rgba(79, 224, 193, 0.3));
  filter: blur(44px);
  opacity: 0.7;
  pointer-events: none;
}

.role-card.role-warga {
  --role-glow: rgba(79, 224, 193, 0.32);
  border-color: rgba(79, 224, 193, 0.3);
}

.role-card.role-ibukos {
  --role-glow: rgba(255, 192, 70, 0.32);
  border-color: rgba(255, 192, 70, 0.34);
}

.role-card.role-tuyul {
  --role-glow: rgba(255, 107, 157, 0.34);
  border-color: rgba(255, 107, 157, 0.36);
}

.role-big-icon {
  font-size: 50px;
  line-height: 1;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

.role-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.role-copy h2 {
  font-size: 25px;
  margin: 2px 0 4px;
}

.role-tagline {
  color: #ded4ee;
  font-size: 12.5px;
  line-height: 1.45;
}

.role-desc {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: 4px;
}

.stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  padding: 3px 6px;
  transform: rotate(6deg);
}

.teammates {
  margin-top: 8px;
  font-size: 11.5px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 107, 157, 0.12);
  border: 1px solid rgba(255, 107, 157, 0.25);
  color: #ffd3e1;
}

.teammates span {
  color: #f0a9c0;
}

.teammates b {
  color: #fff;
}

/* ---------------------------------------------------------- */
/* Aksi malam                                                 */
/* ---------------------------------------------------------- */

.action-panel {
  padding-bottom: 14px;
}

.action-list {
  display: grid;
  gap: 9px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 13px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s, background 0.2s, transform 0.12s;
}

.action-card:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
}

.action-card:active:not(:disabled) {
  transform: scale(0.99);
}

.action-card.is-on {
  border-color: var(--amber);
  background: rgba(255, 192, 70, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 192, 70, 0.25) inset;
}

.action-card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ac-icon {
  font-size: 26px;
  width: 34px;
  text-align: center;
  flex: 0 0 34px;
}

.ac-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ac-body b {
  font-size: 14.5px;
}

.ac-body small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.ac-body em {
  font-style: normal;
  color: #ffb3bd;
  font-size: 10.5px;
  margin-top: 2px;
}

.ac-check {
  margin-left: auto;
  color: var(--amber);
  font-size: 13px;
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex: 0 0 20px;
}

.action-card.is-on .ac-check {
  border-color: var(--amber);
  background: var(--amber);
  color: #241300;
}

.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.area-card {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
}

.area-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.area-card.is-on {
  border-color: var(--mint);
  background: rgba(79, 224, 193, 0.1);
  box-shadow: 0 0 0 1px rgba(79, 224, 193, 0.28) inset;
}

.area-icon {
  font-size: 22px;
}

.area-card b {
  font-size: 13.5px;
}

.area-card small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.action-footer {
  margin-top: 13px;
  display: grid;
  gap: 4px;
}

.slot-hint {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.locked-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 15px;
  border: 1px solid rgba(79, 224, 193, 0.3);
  background: rgba(79, 224, 193, 0.07);
}

.la-icon {
  font-size: 25px;
}

.locked-action > div {
  display: grid;
  gap: 1px;
}

.locked-action b {
  font-size: 14.5px;
}

.locked-action small {
  color: var(--muted);
  font-size: 11.5px;
}

.locked-action .btn {
  margin-left: auto;
}

.ghost-box {
  text-align: center;
  padding: 26px 18px;
}

.ghost-box h2 {
  margin-bottom: 8px;
}

.ghost-box p {
  color: var(--muted);
  font-size: 13.5px;
}

/* Catatan */

.notes {
  margin-top: 16px;
}

.note-list {
  margin: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.note-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.note-round {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--violet);
  background: rgba(155, 123, 255, 0.14);
  border-radius: 5px;
  padding: 3px 5px;
  margin-top: 1px;
}

.note-list p {
  font-size: 12.5px;
  color: #d4c9e6;
  line-height: 1.5;
}

/* ---------------------------------------------------------- */
/* Pagi                                                       */
/* ---------------------------------------------------------- */

.report-card {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 192, 70, 0.32);
  background: linear-gradient(160deg, rgba(255, 192, 70, 0.14), rgba(255, 107, 157, 0.05) 60%),
    var(--card);
  box-shadow: var(--shadow);
}

.report-card h2 {
  margin: 10px 0 14px;
  font-size: 22px;
}

.report-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.report-lines li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.report-lines li span {
  font-size: 17px;
  line-height: 1.2;
}

.report-lines p {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
}

.loot-bar {
  margin-top: 16px;
}

.loot-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 5px;
}

.loot-labels b {
  color: #ffdd9c;
}

.bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--amber), var(--pink));
  transition: width 0.4s ease;
}

.bar.small {
  height: 6px;
}

.auto-note {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* ---------------------------------------------------------- */
/* Rapat & chat                                               */
/* ---------------------------------------------------------- */

.morning-mini {
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 192, 70, 0.22);
  background: rgba(255, 192, 70, 0.06);
}

.mm-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.morning-mini ul {
  margin: 5px 0 0;
  padding-left: 16px;
  color: #ded2ec;
  font-size: 12px;
  line-height: 1.5;
}

.chat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.chat-card .section-head {
  padding: 14px 16px 0;
  margin-bottom: 8px;
}

.chat-log {
  height: min(42vh, 330px);
  min-height: 190px;
  overflow-y: auto;
  padding: 4px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.chat-log::-webkit-scrollbar {
  width: 6px;
}

.chat-log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9px;
}

.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  max-width: 30ch;
  line-height: 1.5;
}

.chat-row {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  max-width: 88%;
}

.chat-row.own {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-avatar {
  font-size: 17px;
  width: 24px;
  text-align: center;
  flex: 0 0 24px;
}

.bubble-wrap {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chat-name {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  padding-left: 3px;
}

.bubble {
  padding: 8px 11px;
  border-radius: 13px 13px 13px 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-row.own .bubble {
  background: linear-gradient(135deg, rgba(255, 192, 70, 0.92), rgba(255, 138, 61, 0.92));
  color: #241300;
  border-radius: 13px 13px 4px 13px;
  font-weight: 600;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 9px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.chat-form input {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 15px;
}

.btn-send {
  flex: 0 0 48px;
  min-height: 44px;
  padding: 0;
  font-size: 17px;
  border-radius: 12px;
}

.ready-row {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.ready-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------------------------- */
/* Voting                                                     */
/* ---------------------------------------------------------- */

/* ---------------------------------------------------------- */
/* Rapat + voting dalam satu layar                            */
/* ---------------------------------------------------------- */

.meet-grid {
  display: grid;
  gap: 12px;
}

.meet-grid .chat-log {
  height: min(38vh, 300px);
}

.live-vote {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.live-vote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-vote-head b {
  color: var(--amber);
  font-size: 12px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #4fe0c1;
  vertical-align: middle;
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 224, 193, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(79, 224, 193, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 224, 193, 0);
  }
}

.voter-row.is-waiting {
  opacity: 0.55;
  border-style: dashed;
}

.vote-panel p {
  margin-bottom: 12px;
}

.vote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 4px 0 12px;
}

.vote-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 14px 8px 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s, background 0.2s, transform 0.12s;
}

.vote-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.vote-card:active {
  transform: scale(0.985);
}

.vote-card.is-on {
  border-color: var(--pink);
  background: rgba(255, 107, 157, 0.13);
  box-shadow: 0 0 0 1px rgba(255, 107, 157, 0.3) inset;
}

.vote-avatar {
  font-size: 30px;
  line-height: 1.1;
}

.vote-name {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.vote-mark {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  background: var(--pink);
  color: #2b0714;
}

.skip-btn {
  color: var(--muted);
}

.skip-btn.is-on {
  border-color: var(--muted);
  color: var(--ink);
}

/* ---------------------------------------------------------- */
/* Hasil & akhir                                              */
/* ---------------------------------------------------------- */

.reveal-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 26px 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.reveal-card.role-tuyul {
  border-color: rgba(255, 107, 157, 0.45);
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 107, 157, 0.24), transparent 65%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.reveal-card.role-warga {
  border-color: rgba(79, 224, 193, 0.4);
  background: radial-gradient(120% 100% at 50% 0%, rgba(79, 224, 193, 0.18), transparent 65%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.reveal-card.role-ibukos {
  border-color: rgba(255, 192, 70, 0.4);
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 192, 70, 0.16), transparent 65%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.reveal-card.tie {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.reveal-avatar {
  font-size: 58px;
  line-height: 1;
  margin: 10px 0 6px;
}

.reveal-card h2 {
  font-size: 30px;
}

.reveal-role {
  margin-top: 5px;
  color: #e7dcf5;
  font-size: 14px;
}

.reveal-role b {
  color: var(--ink);
}

.reveal-card.tie h2 {
  font-size: 27px;
  margin: 8px 0 4px;
}

.reveal-card.tie p:last-child {
  color: var(--muted);
  font-size: 13px;
}

.reveal-wrap .panel {
  margin-top: 13px;
}

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

.tally-row {
  display: grid;
  grid-template-columns: minmax(90px, 1.1fr) 1.6fr 22px;
  align-items: center;
  gap: 9px;
}

.tally-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
}

.tally-name .char {
  flex: none;
}

.tally-name em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tally-row b {
  font-size: 12px;
  text-align: right;
  color: var(--amber);
}

.winner-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 30px 18px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.winner-card.win-warga {
  background: radial-gradient(120% 110% at 50% 0%, rgba(79, 224, 193, 0.28), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border-color: rgba(79, 224, 193, 0.4);
}

.winner-card.win-tuyul {
  background: radial-gradient(120% 110% at 50% 0%, rgba(255, 107, 157, 0.28), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border-color: rgba(255, 107, 157, 0.4);
}

.winner-icon {
  font-size: 58px;
  line-height: 1;
  margin: 8px 0 4px;
}

.winner-card h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 12vw, 70px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 4px 0 8px;
}

.winner-card p:last-child {
  color: #ded4ec;
  font-size: 13px;
  max-width: 36ch;
  margin: 0 auto;
  line-height: 1.5;
}

.reveal-grid {
  display: grid;
  gap: 8px;
}

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

.reveal-player.is-you {
  border-color: rgba(255, 192, 70, 0.4);
  background: rgba(255, 192, 70, 0.07);
}

.reveal-player.role-tuyul {
  border-color: rgba(255, 107, 157, 0.32);
  background: rgba(255, 107, 157, 0.065);
}

.reveal-player.role-ibukos {
  border-color: rgba(255, 192, 70, 0.26);
}

.rp-avatar {
  font-size: 22px;
  width: 28px;
  text-align: center;
}

.rp-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.rp-body b {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-body small {
  color: var(--muted);
  font-size: 10.5px;
}

.rp-coins {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffdd9c;
  white-space: nowrap;
}

/* ---------------------------------------------------------- */
/* Splash & menu utama                                        */
/* ---------------------------------------------------------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px 20px calc(28px + var(--safe-b));
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 50% 10%, rgba(255, 192, 70, 0.12), transparent 62%),
    radial-gradient(700px 520px at 20% 100%, rgba(155, 123, 255, 0.14), transparent 60%),
    var(--bg);
}

.splash-glow {
  position: absolute;
  width: min(120vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 192, 70, 0.17), transparent 66%);
  filter: blur(8px);
  animation: splashGlow 4.5s ease-in-out infinite;
}

@keyframes splashGlow {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.splash-logo {
  position: relative;
  z-index: 1;
}

.splash-moon {
  display: block;
  font-size: clamp(54px, 14vw, 86px);
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 38px rgba(255, 192, 70, 0.45));
  animation: floatMoon 5.5s ease-in-out infinite;
}

.splash-icon {
  display: block;
  width: clamp(92px, 23vw, 138px);
  height: auto;
  margin: 0 auto 18px;
  border-radius: 28%;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 0 54px rgba(255, 192, 70, 0.18);
  animation: floatMoon 6s ease-in-out infinite;
}

.splash-studio {
  margin-bottom: 8px;
  color: #9488b5;
  font-size: 10.5px;
  letter-spacing: 0.42em;
}

.splash h1 {
  font-family: var(--font-display);
  font-size: clamp(62px, 18vw, 126px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.015em;
  margin: 12px 0 14px;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.splash h1 span {
  color: var(--amber);
}

.splash-sub {
  color: var(--muted);
  font-size: 13.5px;
}

.splash-dots,
.conn-dots {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.splash-dots i,
.conn-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.3;
  animation: dotPulse 1.2s ease-in-out infinite;
}

.splash-dots i:nth-child(2),
.conn-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.splash-dots i:nth-child(3),
.conn-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.splash-skip,
.splash-foot {
  position: absolute;
  z-index: 1;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.splash-skip {
  bottom: calc(48px + var(--safe-b));
}

.splash-foot {
  bottom: calc(20px + var(--safe-b));
  opacity: 0.55;
}

/* ------------------------------------------------------------------ */
/* Intro TenZou.dev (branding sebelum splash game)                     */
/* Disamakan dengan intro Juragan Kost: latar hitam + glow, grid        */
/* perspektif, sapuan cahaya, wordmark TenZou.dev, lalu memudar.        */
/* Tanpa JS, animasi pengaman menyembunyikannya setelah 4,6 detik.      */
/* ------------------------------------------------------------------ */

#tzIntro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  cursor: pointer;
  animation: tzSafety 0.5s ease 4.6s forwards;
}

#tzIntro.tz-skip {
  display: none;
}

#tzIntro.tz-hide {
  animation: tzOut 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tz-glow {
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 34% 38%, rgba(46, 170, 255, 0.34), transparent 72%),
    radial-gradient(closest-side at 70% 66%, rgba(255, 176, 71, 0.22), transparent 72%);
  filter: blur(26px);
  animation: tzGlow 5.5s ease-in-out infinite alternate;
}

.tz-grid {
  position: absolute;
  left: -32%;
  right: -32%;
  bottom: -4%;
  height: 64%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 200, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 255, 0.14) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(1000px) rotateX(40deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 82%);
  mask-image: linear-gradient(to top, #000 8%, transparent 82%);
  animation: tzGrid 3.6s linear infinite;
}

.tz-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(126, 212, 255, 0.14), transparent);
  animation: tzScan 1.5s ease 0.55s both;
}

.tz-logo {
  position: relative;
  text-align: center;
  padding: 0 22px;
  max-width: 100%;
}

.tz-word {
  font-family: var(--font-display);
  font-size: clamp(30px, 9.4vw, 58px);
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.05;
  animation: tzWord 0.95s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.tz-word span {
  background: linear-gradient(100deg, #67d6ff, #8ec9ff 46%, #ffd98a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tz-word i {
  font-style: normal;
  font-size: 0.46em;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #8298b5;
  margin-left: 0.1em;
}

.tz-line {
  height: 2px;
  width: min(320px, 66vw);
  margin: 15px auto 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #67d6ff, #ffd98a, transparent);
  transform-origin: 50% 50%;
  animation: tzLine 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) 0.3s both;
}

.tz-tag {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #7c8ea8;
  animation: tzTag 0.8s ease 0.85s both;
}

.tz-load {
  width: min(320px, 66vw);
  height: 3px;
  margin: 22px auto 0;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(140, 180, 220, 0.16);
  box-shadow: 0 0 0 1px rgba(140, 180, 220, 0.08) inset;
  animation: tzFade 0.6s ease 0.45s both;
}

.tz-load i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #3aa0ff, #67d6ff 55%, #ffd98a);
  box-shadow: 0 0 10px rgba(103, 214, 255, 0.65);
  animation: tzLoad 2.9s cubic-bezier(0.25, 0.7, 0.3, 1) 0.45s forwards;
}

.tz-hint {
  position: absolute;
  bottom: max(20px, 4vh);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5b6b80;
  animation: tzFade 0.7s ease 1.15s both;
}

@keyframes tzWord {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.965);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes tzLine {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes tzTag {
  from {
    opacity: 0;
    letter-spacing: 0.62em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.42em;
  }
}

@keyframes tzFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tzLoad {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes tzGrid {
  to {
    background-position: 0 52px, 0 0;
  }
}

@keyframes tzGlow {
  from {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -2%, 0) scale(1.08);
  }
}

@keyframes tzScan {
  0% {
    transform: translateY(-45%);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translateY(150%);
    opacity: 0;
  }
}

@keyframes tzSafety {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes tzOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  #tzIntro {
    animation: tzSafety 0.01s linear 1.1s forwards;
  }

  #tzIntro * {
    animation: none !important;
  }
}

/* Layar pendek (HP landscape): ringkas supaya splash tidak terpotong. */
@media (max-height: 620px) {
  .splash {
    gap: 10px;
    padding: 16px 20px calc(16px + var(--safe-b));
  }

  .splash-icon {
    width: clamp(64px, 13vh, 96px);
    margin-bottom: 10px;
  }

  .splash h1 {
    font-size: clamp(40px, 11vh, 68px);
    margin: 6px 0 8px;
  }

  .splash-dots {
    display: none;
  }

  .splash-skip {
    bottom: calc(38px + var(--safe-b));
  }

  .splash-foot {
    bottom: calc(14px + var(--safe-b));
  }
}

.screen {
  padding-top: 14px;
}

.screen-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
}

.back-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  transition: background 0.2s, transform 0.12s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.back-btn:active {
  transform: scale(0.96);
}

.screen-title {
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 800;
  line-height: 1.15;
}

.menu-screen {
  width: min(100%, 880px);
  padding-top: 16px;
}

.menu-head {
  display: grid;
  gap: 10px;
}

.brandline {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.brandline span {
  font-size: 16px;
}

.brandline b {
  color: var(--ink);
  font-weight: 750;
}

.brandline i {
  font-style: normal;
  color: var(--amber);
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.profile-pill:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.pp-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 22px;
}

.pp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.pp-copy b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-copy small {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-arrow {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.menu-hero {
  padding: 30px 0 18px;
  text-align: center;
}

.menu-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 16vw, 108px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.015em;
  margin: 8px 0 12px;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.menu-hero h1 span {
  color: var(--amber);
}

.menu-hero .tagline {
  max-width: 44ch;
  margin: 0 auto;
  font-size: 13.5px;
}

.install-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 192, 70, 0.32);
  background: linear-gradient(160deg, rgba(255, 192, 70, 0.14), rgba(255, 255, 255, 0.02));
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.12s;
}

.install-banner:hover {
  border-color: rgba(255, 192, 70, 0.5);
  background: linear-gradient(160deg, rgba(255, 192, 70, 0.19), rgba(255, 255, 255, 0.03));
}

.install-banner:active {
  transform: scale(0.99);
}

.ib-icon {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
}

.ib-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ib-copy b {
  font-size: 13.5px;
}

.ib-copy small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.ib-cta {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--amber);
  color: #1a1530;
  font-size: 12px;
  font-weight: 800;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  color: var(--ink);
  text-align: left;
  transition: transform 0.12s, border-color 0.2s, background 0.2s;
}

.menu-tile:hover {
  border-color: var(--line-strong);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.menu-tile:active {
  transform: scale(0.985);
}

.menu-tile::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 68%);
  pointer-events: none;
}

.tile-create {
  border-color: rgba(255, 192, 70, 0.28);
  background: linear-gradient(160deg, rgba(255, 192, 70, 0.12), rgba(255, 255, 255, 0.02));
}

.tile-join {
  border-color: rgba(79, 224, 193, 0.26);
  background: linear-gradient(160deg, rgba(79, 224, 193, 0.1), rgba(255, 255, 255, 0.02));
}

.mt-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 23px;
}

.mt-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.mt-copy b {
  font-size: 15.5px;
}

.mt-copy small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.mt-arrow {
  display: none;
  color: var(--muted);
  font-size: 20px;
}

.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.menu-foot .link-btn {
  font-size: 12px;
}

/* ---------------------------------------------------------- */
/* Setup, pengaturan, tentang, profil                         */
/* ---------------------------------------------------------- */

.setup-panel {
  display: grid;
  gap: 14px;
}

.setup-panel .field {
  margin-bottom: 0;
}

/* Daftar kos terbuka di layar Gabung */
.room-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.room-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.room-panel-head h2 {
  font-size: 14px;
}

.room-panel-head .link-btn {
  font-size: 11.5px;
}

.room-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.room-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
}

.room-item:hover,
.room-item:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.ri-code {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 8px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--amber);
  background: rgba(255, 192, 70, 0.12);
  border: 1px solid rgba(255, 192, 70, 0.28);
}

.ri-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}

.ri-meta b {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ri-meta small {
  color: var(--muted);
  font-size: 11px;
}

.ri-go {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--amber);
}

.rooms-empty {
  margin: 0;
  padding: 6px 2px;
}

.profile-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(79, 224, 193, 0.26);
  background: rgba(79, 224, 193, 0.07);
}

.profile-line > div {
  min-width: 0;
  flex: 1;
}

.profile-line b {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-line small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-photo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.pf-emoji {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 21px;
}

.pf-badge {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--mint);
}

.notice {
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 192, 70, 0.32);
  background: rgba(255, 192, 70, 0.08);
  font-size: 13px;
  line-height: 1.5;
}

.notice.soft {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.notice p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.notice code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 11px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.pref-list {
  display: grid;
  gap: 2px;
}

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}

.pref-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.pref-row b {
  display: block;
  font-size: 14px;
}

.pref-row small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.toggle {
  position: relative;
  width: 50px;
  height: 29px;
  flex: 0 0 50px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s, border-color 0.2s;
}

.toggle i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #cfc5e0;
  transition: transform 0.2s ease, background 0.2s;
}

.toggle.is-on {
  background: rgba(79, 224, 193, 0.2);
  border-color: rgba(79, 224, 193, 0.5);
}

.toggle.is-on i {
  transform: translateX(21px);
  background: var(--mint);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.12s;
}

.theme-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.theme-card:active {
  transform: scale(0.985);
}

.theme-card.is-on {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(255, 192, 70, 0.22);
  background: rgba(255, 192, 70, 0.06);
}

.theme-swatch {
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
}

.theme-swatch i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.theme-card b {
  font-size: 13.5px;
}

.theme-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.opacity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.opacity-btn {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.12s;
}

.opacity-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.opacity-btn:active {
  transform: scale(0.985);
}

.opacity-btn.is-on {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(255, 192, 70, 0.22);
  background: rgba(255, 192, 70, 0.06);
}

.opacity-btn b {
  font-size: 14px;
}

.opacity-btn small {
  color: var(--muted);
  font-size: 11px;
}

.theme-check {
  position: absolute;
  top: 9px;
  right: 10px;
  color: var(--amber);
  font-weight: 800;
}

.about-hero {
  text-align: center;
}

.about-moon {
  display: block;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 28px rgba(255, 192, 70, 0.35));
}

.about-hero h2 {
  margin: 8px auto 10px;
  max-width: 22ch;
  font-size: clamp(22px, 5.4vw, 30px);
}

.about-hero p {
  max-width: 46ch;
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 1.6;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.about-tags span {
  padding: 5px 9px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
}

.about-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #cfc5e0;
  font-size: 13.5px;
  line-height: 1.55;
}

.about-list b {
  color: var(--ink);
}

.faq details {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.faq summary {
  display: flex;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "＋";
  color: var(--amber);
  font-weight: 800;
}

.faq details[open] summary::before {
  content: "–";
}

.faq p {
  margin-top: 7px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.guest-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guest-avatar {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 33px;
}

.guest-card h2 {
  margin: 2px 0;
  font-size: 22px;
}

.auth-box .google-slot {
  min-height: 44px;
  margin: 12px 0 4px;
}

/* Iframe tombol Google membawa latar putih 300×44; potong tepinya agar
   menyatu dengan tema gelap (tombol aslinya 280×40). */
.auth-box .google-slot iframe {
  clip-path: inset(2px 10px round 999px);
}

.benefits {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #cfc5e0;
  font-size: 12.5px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-big {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 36px;
}

.profile-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-big .pf-photo,
.profile-big .pf-emoji {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.profile-id {
  flex: 1;
  min-width: 0;
}

.profile-id h2 {
  margin: 2px 0;
  font-size: 24px;
}

.profile-id p {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hero > .link-btn {
  margin-left: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 5px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.stat span {
  font-size: 16px;
}

.stat b {
  color: var(--amber);
  font-size: 17px;
  line-height: 1.2;
}

.stat small {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.connecting-screen {
  padding-top: 16vh;
  text-align: center;
}

.conn-moon {
  font-size: 58px;
  line-height: 1;
  animation: floatMoon 4.5s ease-in-out infinite;
}

.conn-code {
  margin: 8px 0;
  color: var(--amber);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(50px, 16vw, 86px);
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  line-height: 1.05;
}

.connecting-screen .conn-dots {
  margin: 10px 0 16px;
}

.connecting-screen .link-btn {
  margin-top: 18px;
}

.clear-bots {
  margin-top: 10px;
}

.chat-bot {
  margin-left: 5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(155, 123, 255, 0.18);
  color: #c9b7ff;
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------- */
/* Rekap suara (tally)                                        */
/* ---------------------------------------------------------- */

.voter-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.voter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.voter-from {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.voter-from i {
  font-style: normal;
  font-size: 16px;
}

.voter-from b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voter-arrow {
  color: var(--muted);
  text-align: center;
}

.voter-to {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  color: var(--amber);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voter-to.is-empty {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}

.voter-fold > .voter-list {
  padding: 0 18px 16px;
}

.tv-voter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 980px);
  margin: 22px auto;
}

.tv-voter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
}

.tv-voter span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tv-voter b {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--amber);
  text-align: right;
}

.tv-voter i {
  color: var(--muted);
  font-style: normal;
}

/* ---------------------------------------------------------- */
/* Toast                                                      */
/* ---------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-b));
  transform: translate(-50%, 18px);
  z-index: 100;
  max-width: min(92vw, 420px);
  padding: 11px 16px;
  border-radius: 12px;
  background: #241a3d;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px -14px rgba(0, 0, 0, 0.85);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------- */
/* Mode TV                                                    */
/* ---------------------------------------------------------- */

body.tv-mode {
  background:
    radial-gradient(1400px 800px at 50% -20%, rgba(155, 123, 255, 0.22), transparent 60%),
    radial-gradient(1000px 600px at 0% 100%, rgba(255, 107, 157, 0.1), transparent 60%),
    #090713;
}

.tv-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2.6vw, 36px);
}

.tv-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: clamp(12px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}

.tv-brand {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tv-brand span {
  color: var(--amber);
}

.tv-center {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  min-width: 0;
}

.tv-code,
.tv-phase {
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 750;
  color: var(--muted);
  white-space: nowrap;
}

.tv-code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.16em;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.tv-clock .timer {
  font-size: clamp(20px, 2.4vw, 34px);
  padding: 6px 13px;
  border-radius: 11px;
}

@media (max-width: 760px) {
  .tv-top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .tv-center {
    order: 3;
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .tv-phase {
    white-space: normal;
  }

  .tv-clock {
    margin-left: auto;
  }
}

.tv-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 3vw, 44px) 0;
}

.tv-shell h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 128px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 6px 0 10px;
}

.tv-sub {
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 22px);
  line-height: 1.5;
  max-width: 46ch;
}

.tv-hint {
  margin-top: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: clamp(12px, 1.2vw, 16px);
}

.tv-lobby {
  text-align: center;
}

.tv-big-code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(76px, 15vw, 220px);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--amber);
  text-shadow: 0 0 70px rgba(255, 192, 70, 0.35);
  padding-left: 0.14em;
  margin: 8px 0;
}

.tv-url {
  font-size: clamp(16px, 1.8vw, 26px);
  color: #ded4ec;
  font-weight: 650;
}

.tv-players {
  margin-top: clamp(18px, 3vw, 34px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(8px, 1vw, 14px);
}

.tv-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 1vw, 14px);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  min-width: 0;
}

.tv-player.is-out {
  opacity: 0.42;
  text-decoration: line-through;
}

.tv-player.is-off {
  opacity: 0.5;
}

.tvp-avatar {
  font-size: clamp(20px, 2vw, 30px);
  flex: 0 0 auto;
}

.tvp-name {
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 700;
  display: grid;
  gap: 0;
  min-width: 0;
  text-align: left;
}

.tvp-name i {
  font-style: normal;
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 600;
}

.tvp-done {
  margin-left: auto;
  color: var(--mint);
  font-weight: 900;
}

.tvp-out {
  margin-left: auto;
  font-size: 0.65em;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tv-night,
.tv-morning,
.tv-vote,
.tv-reveal,
.tv-end {
  text-align: center;
}

.tv-moon {
  font-size: clamp(60px, 9vw, 130px);
  line-height: 1;
  padding-bottom: 8px;
  filter: drop-shadow(0 0 60px rgba(255, 192, 70, 0.45));
  animation: floatMoon 6s ease-in-out infinite;
}

.tv-report {
  list-style: none;
  margin: clamp(14px, 2.4vw, 28px) auto 0;
  padding: 0;
  max-width: 980px;
  display: grid;
  gap: 10px;
}

.tv-report li {
  padding: clamp(10px, 1.4vw, 18px) clamp(14px, 2vw, 24px);
  border-radius: 16px;
  border: 1px solid rgba(255, 192, 70, 0.25);
  background: rgba(255, 192, 70, 0.08);
  font-size: clamp(16px, 2vw, 30px);
  font-weight: 650;
  text-align: left;
}

.tv-discuss {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(14px, 2vw, 28px);
  align-items: stretch;
  width: 100%;
}

.tv-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tv-chat-log {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  max-height: 54vh;
  overflow-y: auto;
  align-content: start;
}

.tv-chat-row {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: clamp(13px, 1.35vw, 20px);
  line-height: 1.4;
  text-align: left;
}

.tv-chat-row b {
  color: var(--amber);
  margin-right: 8px;
}

.tv-side {
  border-left: 1px solid var(--line);
  padding-left: clamp(12px, 2vw, 24px);
}

.tv-side-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: left;
}

.tv-side .tv-players {
  margin-top: 0;
  grid-template-columns: 1fr;
}

.tv-expelled-avatar {
  display: flex;
  justify-content: center;
  font-size: clamp(64px, 9vw, 140px);
  line-height: 1;
  margin-top: 10px;
}

.tv-expelled-avatar .char-face {
  --face-size: clamp(96px, 11vw, 170px);
}

.tv-role-flip {
  font-size: clamp(18px, 2.2vw, 34px);
  color: var(--muted);
}

.tv-role-flip b {
  color: var(--pink);
}

.tv-end.win-warga .tv-players {
  margin-top: 26px;
}

.tv-end.win-tuyul h1 {
  color: var(--pink);
}

.tv-prompt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88vh;
  text-align: center;
}

.tv-prompt h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 96px);
  margin: 8px 0;
}

.tv-prompt h1 span {
  color: var(--amber);
}

.tv-code-row {
  display: flex;
  gap: 10px;
  max-width: 430px;
  margin: 22px auto 8px;
}

.tv-code-row input {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.tv-prompt .hint {
  max-width: 46ch;
  margin: 8px auto;
}

/* ---------------------------------------------------------- */
/* Desktop                                                    */
/* ---------------------------------------------------------- */

@media (min-width: 900px) {
  .home {
    max-width: 1040px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    column-gap: 34px;
    align-items: start;
  }

  .home .hero {
    grid-column: 1;
    text-align: left;
    padding-top: 78px;
  }

  .home .hero-moon {
    position: absolute;
    top: 8px;
    right: 20px;
    font-size: 52px;
    opacity: 0.8;
  }

  .home .hero .tagline {
    margin: 0;
  }

  .home .enter-panel {
    grid-column: 2;
    margin-top: 42px;
  }

  .home .how,
  .home .foot {
    grid-column: 1 / -1;
  }

  .how {
    margin-top: 40px;
  }

  .role-samples {
    grid-template-columns: repeat(3, 1fr);
  }

  .role-sample {
    flex-direction: column;
    gap: 8px;
  }

  .game {
    max-width: 720px;
  }

  .game:has(.meet-grid) {
    max-width: 1040px;
  }

  .meet-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding-left: 13px;
    padding-right: 13px;
  }

  .topbar,
  .conn-banner,
  .phasebar {
    margin-left: -13px;
    margin-right: -13px;
  }

  .avatar-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }

  .avatar {
    font-size: 20px;
    border-radius: 11px;
  }

  .role-card {
    gap: 12px;
    padding: 16px 14px;
  }

  .role-big-icon {
    font-size: 40px;
  }

  .role-copy h2 {
    font-size: 22px;
  }

  .settings-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .settings-grid select {
    font-size: 12.5px;
    padding-left: 8px;
    padding-right: 24px;
  }

  .foot {
    flex-direction: column;
  }

  .code-big {
    font-size: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------- */
/* Mode Kos: pilihan mode, peta, HUD, kontrol                  */
/* ---------------------------------------------------------- */

.mode-panel .section-head {
  margin-bottom: 12px;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mode-card:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.mode-card:disabled {
  cursor: default;
  opacity: 0.62;
}

.mode-card.is-active {
  border-color: rgba(255, 192, 70, 0.6);
  background: linear-gradient(160deg, rgba(255, 192, 70, 0.14), rgba(155, 123, 255, 0.07));
  box-shadow: inset 0 0 0 1px rgba(255, 192, 70, 0.18);
}

.mode-card .mc-icon {
  font-size: 24px;
  line-height: 1;
}

.mode-card b {
  font-size: 14.5px;
}

.mode-card b em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--mint);
  border: 1px solid rgba(79, 224, 193, 0.4);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: 2px;
}

.mode-card small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.kos-shell {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.kos-mapwrap {
  position: relative;
  height: clamp(330px, 58vh, 560px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #131022;
  box-shadow: var(--shadow);
  touch-action: none;
  user-select: none;
}

.kos-mapwrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.kos-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  pointer-events: none;
  z-index: 3;
}

.kos-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(10, 8, 22, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.kos-chip b {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.kos-kill.is-ready {
  border-color: rgba(255, 92, 108, 0.7);
  color: #ffd6da;
  background: rgba(140, 22, 42, 0.6);
  animation: kosPulse 1.6s ease-in-out infinite;
}

@keyframes kosPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 92, 108, 0.35);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 92, 108, 0);
  }
}

.kos-taskline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.09);
  z-index: 3;
}

.kos-taskline i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--amber));
  transition: width 240ms ease;
}

.kos-dead-banner {
  position: absolute;
  left: 50%;
  top: 52px;
  transform: translateX(-50%);
  max-width: min(340px, 88%);
  z-index: 3;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  text-align: center;
  color: #dfe8ff;
  background: rgba(18, 22, 44, 0.8);
  border: 1px solid rgba(155, 123, 255, 0.4);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.kos-controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.kos-controls > * {
  pointer-events: auto;
}

.kos-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 192, 70, 0.55);
  background: linear-gradient(160deg, rgba(255, 192, 70, 0.95), rgba(255, 138, 61, 0.92));
  color: #251705;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 12px 30px -12px rgba(255, 138, 61, 0.85);
  opacity: var(--kos-controls-opacity, 0.9);
  transition: opacity 160ms ease;
}

.kos-action[data-kind="idle"] {
  background: rgba(24, 20, 42, 0.78);
  color: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.kos-action[data-kind="kill"] {
  border-color: rgba(255, 92, 108, 0.7);
  background: linear-gradient(160deg, #ff6b7d, #c2364f);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(194, 54, 79, 0.9);
}

.kos-action[data-kind="report"] {
  border-color: rgba(255, 107, 157, 0.7);
  background: linear-gradient(160deg, #ff8fb4, #d94c84);
  color: #2a0a1a;
}

.kos-action[data-kind="emergency"] {
  border-color: rgba(255, 92, 108, 0.6);
  background: rgba(24, 10, 20, 0.82);
  color: #ffd6da;
  backdrop-filter: blur(6px);
}

.kos-action:disabled {
  opacity: calc(var(--kos-controls-opacity, 0.9) * 0.6);
  cursor: default;
}

.kos-action span:first-child {
  font-size: 17px;
  line-height: 1;
}

.kos-progress {
  width: min(240px, 60%);
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
}

.kos-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--amber));
  transition: width 120ms linear;
}

.kos-hint {
  align-self: stretch;
  margin: 0;
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #e8e2f7;
  background: rgba(10, 8, 22, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  text-align: center;
}

.kos-intro {
  /* Fixed, bukan absolute: kartu peran bisa lebih tinggi dari peta di HP
     landscape. Dengan margin auto + overflow, kartu tetap bisa digulir. */
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(7, 5, 16, 0.78);
  backdrop-filter: blur(5px);
  transition: opacity 260ms ease;
}

.kos-intro.is-out {
  opacity: 0;
  pointer-events: none;
}

.kos-intro > .ki-card {
  margin: auto;
}

.ki-card {
  width: min(340px, 100%);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 20px 20px 18px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(36, 27, 66, 0.98), rgba(19, 14, 38, 0.98));
  box-shadow: var(--shadow);
}

.ki-card .ki-icon {
  font-size: 46px;
  line-height: 1;
}

.ki-card h2 {
  font-size: 28px;
}

.ki-card p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.ki-card .ki-warn {
  color: var(--pink);
  font-weight: 700;
}

.ki-card .btn {
  margin-top: 4px;
}

.kos-side {
  display: grid;
  gap: 10px;
}

.kos-side .role-strip {
  margin: 0;
}

.meeting-banner {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 92, 108, 0.4);
  background: rgba(140, 22, 42, 0.22);
  font-size: 13px;
  line-height: 1.45;
}

.meeting-banner b {
  color: #ffd6da;
}

.kos-tip {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.kos-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

.kos-legend li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.kos-legend span {
  flex: 0 0 auto;
}

.kos-fade {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 5px;
  margin-top: 2px;
}

.kos-fade-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.kos-fade-btns {
  display: flex;
  gap: 5px;
  margin-left: auto;
  min-width: 0;
}

.kos-fade-btn {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.kos-fade-btn.is-on {
  border-color: var(--amber);
  background: rgba(255, 192, 70, 0.14);
  color: var(--amber);
}


/* TV Mode Kos */
.tv-kos {
  display: grid;
  gap: 10px;
  width: 100%;
}

.tv-kos-map {
  position: relative;
  height: min(66vh, 620px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #131022;
  box-shadow: var(--shadow);
}

.tv-kos-map canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tv-kos-hud {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  justify-content: center;
  font-size: clamp(13px, 1.3vw, 19px);
  color: var(--muted);
}

.tv-kos-hud b {
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

@media (min-width: 860px) {
  .game:has(.kos-shell) {
    width: min(100%, 1040px);
  }

  .kos-shell {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
  }

  .kos-mapwrap {
    height: clamp(420px, 64vh, 640px);
  }

  .kos-side {
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--card);
  }
}

/* ------------------------------------------------------------------ */
/* Mode Kos saat bermain: satu layar, tanpa scroll                     */
/* ------------------------------------------------------------------ */

body.is-locked {
  height: 100dvh;
  /* `svh` = tinggi viewport saat toolbar browser masih tampil. Dipakai
     supaya tombol Aksi di dasar peta tidak tertutup address bar di HP. */
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

.game[data-phase="play"] {
  width: 100%;
  max-width: none;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  margin: 0;
  padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

.game[data-phase="play"] .conn-banner {
  margin: 0 -8px;
  padding: 4px 8px;
  font-size: 11px;
}

.game[data-phase="play"] .topbar {
  margin: 0;
  padding: calc(4px + env(safe-area-inset-top, 0px)) 4px 4px 2px;
  border: 0;
  background: transparent;
}

.game[data-phase="play"] .phasebar {
  margin: 0;
  height: 2px;
}

.game[data-phase="play"] .kos-shell {
  flex: 1;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game[data-phase="play"] .kos-mapwrap {
  flex: 1;
  min-height: 0;
  height: auto;
  border-radius: 16px;
}

.game[data-phase="play"] .kos-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.game[data-phase="play"] .kos-side .role-strip {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.game[data-phase="play"] .kos-tip,
.game[data-phase="play"] .kos-legend {
  display: none;
}

.game[data-phase="play"] .kos-fade {
  flex: 0 0 auto;
  margin: 0;
  gap: 4px;
}

.game[data-phase="play"] .kos-fade-btn {
  padding: 4px 8px;
  font-size: 10.5px;
}

.kos-role-chip {
  display: none;
}

/* HP portrait: panel samping diganti chip peran di peta, peta jadi lega. */
@media (max-width: 720px) and (orientation: portrait) {
  .game[data-phase="play"] .kos-side {
    display: none;
  }

  .game[data-phase="play"] .kos-fade,
  .game[data-phase="play"] .kos-hint {
    display: none;
  }

  .game[data-phase="play"] .kos-role-chip {
    display: inline-flex;
  }

  .game[data-phase="play"] .kos-action {
    padding: 12px 16px;
  }
}

/* HP landscape pendek: peta dan panel peran berdampingan. */
@media (orientation: landscape) and (max-height: 640px) {
  .game[data-phase="play"] .kos-shell {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }

  .game[data-phase="play"] .kos-side {
    flex: 0 0 148px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    overflow-y: auto;
  }

  .game[data-phase="play"] .kos-side .role-strip {
    display: block;
  }

  .game[data-phase="play"] .kos-fade {
    flex-direction: column;
    align-items: stretch;
  }

  .game[data-phase="play"] .kos-fade-btns {
    margin-left: 0;
    width: 100%;
  }

  .game[data-phase="play"] .kos-fade-btn {
    flex: 1;
    text-align: center;
  }

  .game[data-phase="play"] .kos-hint {
    display: none;
  }
}

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

  .kos-mapwrap {
    height: clamp(300px, 56vh, 460px);
  }

  .kos-action {
    padding: 11px 14px;
    font-size: 12px;
  }
}

/* ------------------------------------------------------------------ */
/* Desktop / tablet lebar: peta besar + panel peran di kanan           */
/* ------------------------------------------------------------------ */

@media (min-width: 860px) and (orientation: landscape) {
  .game[data-phase="play"] {
    padding-left: 12px;
    padding-right: 12px;
  }

  .game[data-phase="play"] .kos-shell {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }

  .game[data-phase="play"] .kos-mapwrap {
    flex: 1 1 auto;
  }

  .game[data-phase="play"] .kos-side {
    flex: 0 0 232px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    overflow-y: auto;
  }

  .game[data-phase="play"] .kos-side .role-strip {
    flex: 0 0 auto;
  }

  .game[data-phase="play"] .kos-tip {
    display: block;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .game[data-phase="play"] .kos-legend {
    display: grid;
  }

  .game[data-phase="play"] .kos-fade {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .game[data-phase="play"] .kos-fade-btns {
    margin-left: 0;
    width: 100%;
  }

  .game[data-phase="play"] .kos-fade-btn {
    flex: 1;
  }

  .game[data-phase="play"] .kos-hint {
    display: block;
    padding: 5px 10px;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ------------------------------------------------------------------ */
/* Karakter stickman + warna                                          */
/* ------------------------------------------------------------------ */

.char {
  display: block;
  overflow: visible;
  flex: 0 0 auto;
}

.char.is-dead {
  filter: grayscale(0.4);
}

/* Slot stickman sementara; ditukar dengan potret sprite setelah aset siap. */
.char-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

/* Potret sprite: gambar dasar + mask baju yang diwarnai warna pemain. */
.char-face {
  position: relative;
  display: block;
  width: var(--face-size, 40px);
  height: var(--face-size, 40px);
  flex: 0 0 auto;
  line-height: 0;
}

.char-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.char-face .char-shirt {
  position: absolute;
  inset: 0;
  display: none;
  background: var(--face, #f7f0e6);
  -webkit-mask: url("/assets/char/resident_front_shirt.png") center / contain no-repeat;
  mask: url("/assets/char/resident_front_shirt.png") center / contain no-repeat;
}

@supports (mask-image: none) or (-webkit-mask-image: none) {
  .char-face .char-shirt {
    display: block;
  }
}

.char-face.is-dead {
  filter: grayscale(0.5) brightness(0.72);
  opacity: 0.62;
}

.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.color-dot {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  transition: transform 0.12s, border-color 0.2s;
}

.color-dot i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 10px color-mix(in srgb, var(--dot) 45%, transparent);
}

.color-dot:hover {
  transform: translateY(-1px);
}

.color-dot.is-on {
  border-color: #fff;
  transform: scale(1.06);
}

.char-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 18% 30%, rgba(255, 192, 70, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.18);
}

.cp-stage {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.1), transparent 70%);
}

.cp-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cp-copy b {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-copy small {
  color: var(--muted);
  font-size: 11.5px;
}

.name-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.name-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 9px;
}

/* ------------------------------------------------------------------ */
/* Rapat darurat: grid pemain + chat ringkas                          */
/* ------------------------------------------------------------------ */

.meet {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.meet-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.mh-copy h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.mh-copy .muted {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.35;
}

.mh-stats {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
}

.mh-stat {
  min-width: 44px;
  padding: 5px 7px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  line-height: 1.05;
}

.mh-stat b {
  display: block;
  font-size: 15px;
}

.mh-stat small {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mh-stat.is-live {
  border-color: rgba(79, 224, 193, 0.5);
  box-shadow: 0 0 0 1px rgba(79, 224, 193, 0.12);
}

.meet-players {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 7px;
}

.mp-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 7px 5px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  text-align: center;
  transition: border-color 0.18s, background 0.18s, transform 0.1s, box-shadow 0.18s;
}

.mp-card.is-votable {
  cursor: pointer;
}

.mp-card.is-votable:hover {
  border-color: rgba(255, 192, 70, 0.55);
  background: rgba(255, 192, 70, 0.08);
}

.mp-card.is-votable:active {
  transform: scale(0.97);
}

.mp-card.is-picked {
  border-color: var(--amber);
  background: rgba(255, 192, 70, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 192, 70, 0.35);
}

.mp-card.is-you {
  border-color: rgba(107, 184, 255, 0.5);
}

.mp-card.is-dead {
  opacity: 0.62;
  filter: saturate(0.5);
}

.mp-card.is-speaking {
  border-color: rgba(79, 224, 193, 0.8);
  box-shadow: 0 0 0 2px rgba(79, 224, 193, 0.28), 0 0 18px rgba(79, 224, 193, 0.28);
}

.mp-top {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

.mp-char {
  display: grid;
  place-items: center;
  height: 50px;
}

.mp-count {
  position: absolute;
  top: -2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--amber);
  color: #24180a;
  font-size: 10px;
  line-height: 17px;
}

.mp-picked {
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--amber);
  color: #24180a;
  font-size: 10px;
  line-height: 17px;
}

.mp-name {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-name em {
  font-style: normal;
  font-size: 8.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.mp-tags {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 11px;
  font-size: 9px;
  color: var(--muted);
}

.mp-tags i {
  font-style: normal;
}

.mp-tags .mp-dead {
  color: #ff8198;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 8px;
}

.mp-voters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  max-height: 32px;
  overflow: hidden;
}

.mp-voter {
  max-width: 100%;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid var(--vc, var(--line));
  background: rgba(255, 255, 255, 0.06);
  color: #f4eefc;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-out {
  font-size: 9px;
  font-weight: 700;
  color: var(--amber);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meet-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.meet-voice.is-on {
  border-color: rgba(79, 224, 193, 0.45);
  background: rgba(79, 224, 193, 0.08);
}

.meet-voice.is-off {
  opacity: 0.75;
}

.voice-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vb-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

.meet-voice.is-on .vb-icon {
  background: rgba(79, 224, 193, 0.2);
  box-shadow: 0 0 12px rgba(79, 224, 193, 0.35);
}

.vb-copy {
  min-width: 0;
  display: grid;
  line-height: 1.2;
}

.vb-copy b {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vb-copy small {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-mute {
  flex: 0 0 auto;
  white-space: nowrap;
}

.voice-error {
  flex-basis: 100%;
  font-size: 10px;
  color: #ffb3bc;
}

.meet-chat {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.mc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mc-head small {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
}

.mc-log {
  height: clamp(58px, 13vh, 110px);
  overflow-y: auto;
  padding: 2px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scrollbar-width: thin;
}

.mc-log .chat-row {
  max-width: 92%;
  gap: 5px;
}

.mc-log .chat-avatar {
  width: 18px;
  flex-basis: 18px;
  font-size: 12px;
}

.mc-log .chat-avatar .char {
  width: 18px;
  height: 18px;
}

.mc-log .bubble {
  font-size: 11.5px;
  padding: 5px 8px;
  line-height: 1.35;
}

.mc-log .chat-name {
  font-size: 9.5px;
}

.meet-chat.is-closed .mc-log,
.meet-chat.is-closed .chat-form {
  display: none;
}

.meet-chat .chat-form {
  padding: 5px 8px 8px;
}

.meet-chat .chat-form input {
  padding: 8px 10px;
  font-size: 16px;
}

.meet-chat .btn-send {
  padding: 7px 12px;
}

.meet-actions {
  display: grid;
  gap: 6px;
}

.meet-actions .btn {
  width: 100%;
}

.meet-actions .hint {
  margin: 0;
  font-size: 10.5px;
}

.meet-tally {
  padding: 0 2px;
}

@media (min-width: 760px) {
  .game:has(.meet) {
    width: min(100%, 1040px);
    max-width: 1040px;
  }

  .meet-players {
    grid-template-columns: repeat(auto-fit, minmax(104px, 132px));
    justify-content: center;
    gap: 9px;
  }
}

@media (max-height: 700px) {
  .meet {
    gap: 6px;
  }

  .mc-log {
    height: 54px;
  }

  .mp-char {
    height: 42px;
  }

  .mp-char .char {
    width: 40px !important;
    height: 40px !important;
  }

  .meet-voice {
    padding: 5px 8px;
  }
}

@media (max-width: 430px) {
  .meet-players {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 5px;
  }

  .mp-card {
    padding: 6px 3px 5px;
  }

  .mp-char .char {
    width: 38px !important;
    height: 38px !important;
  }
}

/* HP landscape pendek: grid pemain di kiri, suara+chat di kanan. */
@media (orientation: landscape) and (max-height: 540px) {
  .game[data-phase="discuss"],
  .game[data-phase="vote"],
  .game[data-phase="tally"] {
    max-width: none;
    padding-bottom: 4px;
  }

  .game[data-phase="discuss"] .topbar,
  .game[data-phase="vote"] .topbar,
  .game[data-phase="tally"] .topbar {
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .game[data-phase="discuss"] .role-strip,
  .game[data-phase="vote"] .role-strip,
  .game[data-phase="tally"] .role-strip {
    display: none;
  }

  .game[data-phase="discuss"] .morning-mini,
  .game[data-phase="vote"] .morning-mini,
  .game[data-phase="tally"] .morning-mini {
    padding: 4px 9px;
  }

  .game[data-phase="discuss"] .morning-mini .mm-label,
  .game[data-phase="vote"] .morning-mini .mm-label,
  .game[data-phase="tally"] .morning-mini .mm-label {
    font-size: 8px;
  }

  .game[data-phase="discuss"] .morning-mini ul,
  .game[data-phase="vote"] .morning-mini ul,
  .game[data-phase="tally"] .morning-mini ul {
    display: block;
    margin-top: 1px;
    max-height: 15px;
    overflow: hidden;
  }

  .game[data-phase="discuss"] .morning-mini li,
  .game[data-phase="vote"] .morning-mini li,
  .game[data-phase="tally"] .morning-mini li {
    display: inline;
    font-size: 10.5px;
  }

  .meet {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "players voice"
      "players chat"
      "players actions";
    grid-template-rows: auto auto 1fr auto;
    gap: 5px 8px;
    align-items: start;
  }

  .meet-head {
    grid-area: head;
  }

  .meet-players {
    grid-area: players;
    align-self: stretch;
    align-content: start;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .meet-tally {
    grid-area: players;
    align-self: end;
  }

  .meet-voice {
    grid-area: voice;
    padding: 4px 8px;
  }

  .voice-btn .vb-copy small {
    display: none;
  }

  .meet-chat {
    grid-area: chat;
  }

  .mc-log {
    height: 44px;
  }

  .meet-chat .mc-head {
    padding: 4px 9px;
  }

  .meet-chat .chat-form {
    padding: 3px 6px 5px;
  }

  .meet-chat .chat-form input {
    padding: 6px 9px;
  }

  .meet-actions {
    grid-area: actions;
    align-self: end;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: center;
  }

  .meet-actions .btn {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 12.5px;
  }

  .meet-actions .hint,
  .meet-actions .auto-note {
    display: none;
  }
}


