@font-face {
  font-family: Mukta;
  src: url("/assets/mukta.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Fraunces;
  src: url("/assets/fraunces.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --ink: #1c443e;
  --muted: #5e746d;
  --jade: #205b51;
  --paper: #fffdf5;
  --line: #d1dcd1;
  --coral: #d86559;
  --saffron: #e6ad38;
  --teal: #39998d;
  --indigo: #637fb2;
  --body: Mukta, "Trebuchet MS", "Nirmala UI", sans-serif;
  --display: Fraunces, Georgia, "Nirmala UI", serif;
  --shadow: 0 12px 32px #21483e12;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.45 var(--body);
  background: #e9eee6;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button,
a {
  color: inherit;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #b98223;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.5;
}
a {
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  display: block;
  flex-shrink: 0;
}
#scenery {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#scenery > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  background: var(--paper);
  padding: 10px;
  z-index: 50;
}
.skip-link:focus {
  top: 12px;
}
header {
  max-width: 1512px;
  margin: auto;
  height: 98px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid #bdd0c0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-emblem {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  background: var(--jade);
  border-radius: 15px;
  box-shadow: 0 4px 0 #103c35;
  transform: rotate(-7deg);
  color: #ffe3a1;
}
.brand-emblem svg {
  width: 31px;
  height: 31px;
}
.brand-name {
  font: 650 26px/1 var(--display);
  letter-spacing: -1px;
}
.brand-hindi {
  display: block;
  font: 600 13px/1.5 var(--body);
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 4px;
}
.main-nav {
  display: flex;
  gap: 27px;
  margin-left: auto;
  align-items: center;
}
.nav-button {
  font-size: 16px;
  background: transparent;
  padding: 14px 0;
  color: var(--muted);
  white-space: nowrap;
}
.nav-button.active {
  color: var(--ink);
  box-shadow: 0 2px var(--jade);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid #bdcfc0;
}
.language-switch {
  display: flex;
  background: #dce6dc;
  border: 1px solid #c4d3c4;
  border-radius: 9px;
  padding: 3px;
}
.language-switch button {
  font-size: 15px;
  padding: 5px 12px;
  border-radius: 6px;
  min-height: 36px;
  background: transparent;
}
.language-switch .selected {
  background: var(--paper);
  box-shadow: 0 2px 5px #244b4220;
}
.icon-button {
  background: transparent;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.icon-button:hover {
  background: #d8e3d7;
}
.game-layout {
  max-width: 1456px;
  padding: 32px 30px 24px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr) minmax(
      190px,
      232px
    );
  gap: 28px;
  align-items: start;
}
.lounge {
  padding-top: 28px;
}
.intro-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #73806a;
}
.intro-label svg {
  color: #b28435;
}
h1 {
  font: 580 clamp(32px, 3.1vw, 44px)/1.11 var(--display);
  letter-spacing: -1.9px;
  white-space: pre-line;
  margin: 18px 0 17px;
}
.intro-copy {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 240px;
}
.mode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0 19px;
}
.mode-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 13px;
  border: 1px solid #c6d5c7;
  border-radius: 12px;
  background: #f9fbf57a;
  text-align: left;
  box-shadow: 0 2px 0 #ced8c83b;
  min-height: 78px;
  transition:
    background 0.16s,
    transform 0.16s;
}
.mode-option:hover {
  background: #fffdf5;
  transform: translateY(-2px);
}
.mode-option.selected {
  border-color: var(--jade);
  background: #fffdf5;
  box-shadow:
    inset 3px 0 var(--jade),
    var(--shadow);
}
.mode-option > svg {
  margin-top: 4px;
  color: var(--jade);
}
.mode-option strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.mode-option small {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
  margin-top: 5px;
}
.lounge-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 3px;
  font-size: 14px;
  color: var(--muted);
}
.tiny-flower {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px #d4e2d2;
}
.lounge-note {
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid #cad8c6;
  color: #758170;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  gap: 12px;
}
.lounge-note svg {
  color: #bb9149;
  margin-top: 3px;
}
.courtyard {
  min-width: 0;
  text-align: center;
}
#board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 12px 18px;
  text-align: left;
}
#board-heading h2 {
  font: 600 23px/1.2 var(--display);
  letter-spacing: -0.5px;
}
#board-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.board-label {
  color: #8b6a33;
  border: 1px solid #cfc7a4;
  border-radius: 100px;
  padding: 4px 10px;
  background: #fff9e4;
  font-size: 13px;
  white-space: nowrap;
}
.board-stage {
  position: relative;
  perspective: 1200px;
  margin: -15px -15px -9px;
  isolation: isolate;
}
.board {
  width: 100%;
  transform: rotateX(13deg) rotateZ(-1deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 12px 5px #687e6310);
}
.board-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  user-select: none;
}
.board-svg [data-pawn] {
  cursor: pointer;
}
.board-svg [data-pawn]:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 4px #835715);
}
.board-svg [data-pawn] .pawn-halo {
  stroke-dasharray: 4 3;
}
.board-svg [data-pawn]:hover {
  filter: brightness(1.08);
}
.player-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 18px;
  z-index: 2;
}
.player-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #cad4c6;
  background: #f8faf3d9;
  border-radius: 11px;
  padding: 8px 10px;
  text-align: left;
  min-height: 60px;
  min-width: 0;
  box-shadow: 0 3px 0 #cfdbc680;
}
.player-badge.current {
  border-color: var(--player);
  background: #fffdf5;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--player) 12%, transparent);
}
.player-avatar {
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--player) 17%, #fffdf5);
  color: var(--player);
  border: 1px solid color-mix(in srgb, var(--player) 45%, #fffdf5);
  flex-shrink: 0;
}
.player-info {
  flex: 1;
  min-width: 0;
}
.player-info strong {
  font-size: 16px;
  line-height: 1.2;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-info small {
  font-size: 13px;
  color: var(--muted);
  display: block;
  line-height: 1.3;
}
.player-home-dots {
  display: flex;
  gap: 3px;
  margin-left: auto;
}
.player-home-dots i {
  display: block;
  width: 6px;
  height: 6px;
  background: #d8ddd2;
  border-radius: 50%;
}
.player-home-dots i.filled {
  background: var(--player);
}
.player-badge.empty {
  opacity: 0.62;
  border-style: dashed;
}
.player-badge.resigned {
  opacity: 0.4;
}
.game-controls {
  position: relative;
  margin: 21px 18px 0;
  padding: 14px 17px 12px;
  background: #fffdf7;
  border: 1px solid #c6d4c3;
  border-radius: 16px;
  box-shadow: 0 5px 0 #c7d4be66;
  text-align: left;
  min-height: 126px;
}
.turn-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.turn-copy {
  flex: 1;
  min-width: 0;
}
.turn-copy h3 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
}
.turn-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  margin-top: 4px;
}
.roll-button {
  background: var(--jade);
  color: #fff8e7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 11px;
  box-shadow: 0 4px 0 #123c35;
  min-height: 66px;
  min-width: 146px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.roll-button:not(:disabled):hover {
  background: #2b7061;
  transform: translateY(-1px);
}
.roll-button:disabled {
  opacity: 0.8;
  background: #dfe8dc;
  color: var(--muted);
  box-shadow: 0 3px 0 #c3d0bd;
}
.roll-label {
  font-size: 15px;
  max-width: 86px;
  text-align: left;
  line-height: 1.2;
  font-weight: 700;
}
.dice {
  display: grid;
  width: 43px;
  height: 43px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  background: #fff9e8;
  border: 1px solid #ddcda8;
  border-radius: 10px;
  padding: 7px;
  gap: 3px;
  box-shadow:
    0 3px 0 #b9a17c,
    1px 0 0 1px #fff3d8;
  transform: rotate(-7deg);
  flex-shrink: 0;
}
.dice i {
  background: transparent;
  border-radius: 50%;
}
.dice i.dot {
  background: #b85b48;
}
.rolling .dice {
  animation: dice-tumble 0.35s ease;
}
.turn-clock {
  width: 34px;
  height: 34px;
  border: 2px solid #b8cbb2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.turn-clock.urgent {
  color: #a84335;
  border-color: #c36753;
}
.pawn-options {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  border-top: 1px solid #e1e8da;
  padding-top: 10px;
}
.pawn-option {
  flex: 1;
  min-width: 0;
  border: 1px solid #d3decc;
  background: #f3f6ed;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  font-size: 14px;
  line-height: 1.1;
}
.pawn-option svg {
  width: 20px;
  height: 30px;
  overflow: visible;
}
.pawn-option.legal {
  background: #fff4cf;
  border-color: #b99444;
}
.pawn-option.legal:hover {
  background: #ffe9a8;
}
.pawn-option:disabled {
  opacity: 0.58;
}
.pawn-option small {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.finish-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: 600 20px var(--display);
  margin-bottom: 12px;
}
.controls-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 19px;
  border-radius: 9px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}
.primary {
  background: var(--jade);
  color: #fff8e8;
  box-shadow: 0 3px 0 #143e35;
}
.primary:hover {
  background: #2b7061;
}
.secondary {
  background: #ecf0e5;
  border: 1px solid #ccd7c6;
  color: var(--ink);
}
.secondary:hover {
  background: #e2ead8;
}
.right-rail {
  padding-top: 3px;
  min-width: 0;
}
#room-panel {
  padding: 18px 17px;
  background: #f9fbf4c9;
  border: 1px solid #c5d4c3;
  border-radius: 13px;
  box-shadow: 0 4px 0 #d1dcc999;
  margin-bottom: 22px;
}
.room-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}
.room-status {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 9px;
}
.room-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  background: #e7eddf;
  border: 1px dashed #9db79b;
  border-radius: 7px;
  padding: 8px 10px;
}
.room-code strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
}
.room-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.room-panel-actions .secondary,
.room-panel-actions .primary {
  width: 100%;
  font-size: 14px;
  min-height: 40px;
  padding: 8px;
}
.text-button {
  padding: 6px;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
  color: var(--muted);
  min-height: 36px;
}
.table-talk {
  padding: 0 3px;
}
.table-talk h3 {
  font: 600 20px var(--display);
  letter-spacing: -0.5px;
}
.table-talk > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.emotes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.emote {
  font-size: 13px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #eef3e7;
  border: 1px solid #cad7c0;
  min-height: 36px;
}
.emote:hover {
  background: #fff8dd;
}
.events {
  height: 160px;
  overflow-y: auto;
  overscroll-behavior: contain;
  mask-image: linear-gradient(#000 85%, transparent);
  padding-bottom: 20px;
}
.event {
  display: flex;
  gap: 9px;
  margin-bottom: 11px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}
.event-mark {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mark, #b6ba9e);
  margin-top: 6px;
  flex-shrink: 0;
}
.ad-slot {
  margin-top: 23px;
}
.ad-label {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  color: #7a8174;
  margin-bottom: 5px;
}
.house-ad {
  position: relative;
  background: #dce7d0;
  border: 1px solid #c2d0b4;
  border-radius: 11px;
  padding: 18px 15px;
  overflow: hidden;
  min-height: 167px;
}
.house-ad svg {
  color: #6c8c5b;
  margin: 0 0 12px auto;
  transform: rotate(-12deg);
}
.house-ad strong {
  display: block;
  max-width: 165px;
  font: 600 21px/1.15 var(--display);
  letter-spacing: -0.5px;
}
.house-ad small {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 8px;
  color: #62755b;
  max-width: 165px;
}
.house-ad::after {
  content: "";
  position: absolute;
  right: -35px;
  top: 15px;
  width: 110px;
  height: 110px;
  border: 18px solid #c1d2ac;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.4;
}
.house-ad > * {
  position: relative;
  z-index: 1;
}
.rail-foot {
  font-size: 12px;
  color: #81907b;
  margin: 15px 5px;
}
.mobile-ad {
  display: none;
}
dialog {
  border: 1px solid #c5d2bf;
  border-radius: 21px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(520px, calc(100% - 28px));
  max-height: calc(100dvh - 36px);
  box-shadow: 0 25px 100px #163e3b45;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #103b3566;
  backdrop-filter: blur(4px);
}
.dialog-body {
  padding: 30px;
  position: relative;
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 12px;
}
.dialog-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #e8eddd;
  margin-bottom: 20px;
  color: #b98530;
}
.dialog-body h2 {
  font: 600 29px/1.2 var(--display);
  letter-spacing: -1px;
  padding-right: 18px;
}
.dialog-body > p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}
.dialog-tabs {
  display: flex;
  background: #e9efdf;
  padding: 4px;
  gap: 4px;
  border-radius: 9px;
  margin: 23px 0;
}
.dialog-tabs button {
  flex: 1;
  border-radius: 6px;
  min-height: 40px;
  padding: 6px;
  background: transparent;
  font-size: 16px;
}
.dialog-tabs button.selected {
  background: #fffdf5;
  box-shadow: 0 2px 4px #173b331a;
}
form {
  margin-top: 22px;
}
.field {
  display: block;
  margin-bottom: 17px;
}
.field-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  min-height: 46px;
  color: var(--ink);
  border: 1px solid #b8cbb5;
  background: #fffef8;
  border-radius: 8px;
  font-size: 17px;
}
.field input::placeholder {
  color: #8a9583;
}
.field input.room-input {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
}
.field-hint {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 20px;
}
.form-error {
  color: #a44035;
  font-size: 15px;
  min-height: 0;
  margin-bottom: 14px;
}
.form-error:empty {
  display: none;
}
form > .primary {
  width: 100%;
}
.rules-list {
  display: grid;
  gap: 19px;
  margin-top: 25px;
}
.rule-title {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
}
.rule-title svg {
  color: #a9813f;
  width: 19px;
  height: 19px;
}
.rule-copy {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 5px;
}
.story-art {
  height: 155px;
  margin: 20px 0;
  background: #e7ebd8;
  border-radius: 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.story-art svg {
  width: 130px;
  height: 130px;
  color: #8b9763;
}
.story-foot {
  font-size: 14px !important;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.dialog-actions > * {
  flex: 1;
}
.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 20px);
  background: #194d43;
  color: #fff7e0;
  padding: 11px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
  text-align: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  font-size: 16px;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.online-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39866d;
  margin-right: 7px;
}
.online-pulse.lost {
  background: #bd7640;
}
@keyframes dice-tumble {
  0% {
    transform: rotate(-7deg) translateY(0);
  }
  35% {
    transform: rotate(70deg) translateY(-8px);
  }
  70% {
    transform: rotate(160deg) translateY(-4px);
  }
  100% {
    transform: rotate(353deg);
  }
}
html[lang="hi"] h1 {
  font: 700 clamp(30px, 2.9vw, 39px)/1.25 var(--body);
  letter-spacing: -0.5px;
}
html[lang="hi"] .brand-name {
  font-family: var(--body);
  font-size: 27px;
}
html[lang="hi"] .mode-option strong {
  font-size: 17px;
}
html[lang="hi"] .turn-copy h3 {
  font-size: 19px;
}
html[lang="hi"] .dialog-body h2,
html[lang="hi"] .table-talk h3,
html[lang="hi"] .house-ad strong,
html[lang="hi"] #board-heading h2 {
  font-family: var(--body);
  letter-spacing: 0;
}
html[lang="hi"] .roll-label {
  font-size: 16px;
}
@media (min-width: 1600px) {
  .game-layout {
    gap: 38px;
    padding-top: 38px;
  }
  .board-stage {
    margin-top: -20px;
  }
  .game-controls {
    margin-top: 15px;
  }
}
@media (max-width: 1199px) {
  header {
    padding: 0 25px;
    gap: 18px;
  }
  .game-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    max-width: 1050px;
  }
  .right-rail {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 210px 1fr 210px;
    gap: 24px;
    padding-top: 12px;
  }
  #room-panel {
    margin: 0;
  }
  .events {
    height: 110px;
  }
  .ad-slot {
    margin-top: 0;
  }
  .rail-foot {
    display: none;
  }
  .main-nav {
    gap: 18px;
  }
  .header-tools {
    padding-left: 12px;
  }
  .intro-copy {
    font-size: 16px;
  }
  .game-controls {
    margin-top: 14px;
  }
  .roll-button {
    min-width: 132px;
  }
}
@media (max-width: 767px) {
  header {
    height: 76px;
    padding: 0 18px;
    gap: 12px;
  }
  .brand-name {
    font-size: 23px;
  }
  .brand-emblem {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }
  .brand-emblem svg {
    width: 27px;
    height: 27px;
  }
  .brand-hindi {
    font-size: 11px;
    margin-top: 3px;
  }
  .main-nav {
    display: none;
  }
  .header-tools {
    margin-left: auto;
    padding: 0;
    border: 0;
    gap: 4px;
  }
  .language-switch button {
    padding: 4px 8px;
    min-height: 32px;
    font-size: 14px;
  }
  .header-tools .icon-button {
    width: 36px;
    height: 40px;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
    padding: 0 15px 20px;
    gap: 0;
    max-width: 650px;
  }
  .lounge {
    padding: 0;
    width: 100%;
  }
  .intro-label,
  h1,
  .intro-copy,
  .lounge-footer,
  .lounge-note {
    display: none;
  }
  .mode-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 16px 0 21px;
  }
  .mode-option {
    min-height: 57px;
    padding: 8px 6px;
    gap: 6px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
  }
  .mode-option > svg {
    width: 18px;
    height: 18px;
    margin: 0;
  }
  .mode-option strong {
    font-size: 13px;
    line-height: 1.2;
  }
  .mode-option small {
    display: none;
  }
  .mode-option.selected {
    box-shadow: inset 0 -2px var(--jade);
  }
  .courtyard {
    width: 100%;
  }
  #board-heading {
    margin: 0 5px 13px;
  }
  #board-heading h2 {
    font-size: 22px;
  }
  #board-heading p {
    font-size: 13px;
    margin-top: 3px;
  }
  .board-label {
    font-size: 12px;
    padding: 3px 8px;
  }
  .player-row {
    margin: 0 7px;
    gap: 10px;
  }
  .player-badge {
    min-height: 49px;
    padding: 6px 8px;
    gap: 7px;
    border-radius: 9px;
  }
  .player-avatar {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .player-info strong {
    font-size: 14px;
  }
  .player-info small {
    font-size: 11px;
  }
  .player-home-dots {
    gap: 2px;
  }
  .player-home-dots i {
    width: 4px;
    height: 4px;
  }
  .board-stage {
    margin: -9px -6px -8px;
  }
  .board {
    transform: rotateX(10deg) rotateZ(-1deg);
  }
  .game-controls {
    margin: 16px 6px 0;
    padding: 12px 11px 10px;
    border-radius: 12px;
    min-height: 121px;
  }
  .turn-top {
    gap: 10px;
  }
  .turn-copy h3 {
    font-size: 17px;
  }
  .turn-copy p {
    font-size: 13px;
    max-width: 190px;
  }
  .roll-button {
    min-width: 116px;
    min-height: 60px;
    padding: 8px 10px;
    gap: 7px;
  }
  .roll-label {
    font-size: 14px;
    max-width: 68px;
  }
  .dice {
    width: 37px;
    height: 37px;
    padding: 6px;
    gap: 2px;
    border-radius: 9px;
  }
  .turn-clock {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-width: 1.5px;
  }
  .pawn-options {
    gap: 5px;
    padding-top: 9px;
    margin-top: 10px;
  }
  .pawn-option {
    font-size: 12px;
    min-height: 44px;
    padding: 4px;
    gap: 3px;
  }
  .pawn-option small {
    font-size: 10px;
  }
  .pawn-option svg {
    width: 16px;
    height: 26px;
  }
  .right-rail {
    width: 100%;
    display: block;
    padding: 0 6px;
    margin-top: 19px;
  }
  #room-panel {
    display: none;
  }
  .right-rail:has(.room-code) #room-panel {
    display: block;
    margin-bottom: 20px;
  }
  .table-talk h3 {
    font-size: 19px;
  }
  .table-talk > p {
    font-size: 13px;
  }
  .emotes {
    margin: 10px 0;
    gap: 8px;
  }
  .emote {
    flex: 1;
    font-size: 13px;
    min-height: 40px;
  }
  .events {
    height: 88px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .event {
    font-size: 13px;
    margin-bottom: 7px;
  }
  #desktop-ad {
    display: none;
  }
  .mobile-ad {
    display: block;
    margin: 22px 7px 0;
  }
  .mobile-ad .ad-slot {
    margin: 0;
  }
  .mobile-ad .house-ad {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
  }
  .mobile-ad .house-ad svg {
    width: 29px;
    height: 29px;
    margin: 0;
    order: -1;
  }
  .mobile-ad .house-ad strong {
    font: 600 16px/1.2 var(--display);
    max-width: none;
  }
  .mobile-ad .house-ad small {
    font-size: 12px;
    margin-top: 3px;
    max-width: none;
  }
  .mobile-ad .house-ad::after {
    width: 80px;
    height: 80px;
    right: -25px;
    top: -30px;
    border-width: 12px;
  }
  .mobile-ad .ad-label {
    font-size: 10px;
  }
  .dialog-body {
    padding: 25px 22px;
  }
  .dialog-body h2 {
    font-size: 27px;
  }
  .dialog-icon {
    margin-bottom: 16px;
  }
  .finish-ribbon {
    font-size: 18px;
  }
  .controls-actions .primary,
  .controls-actions .secondary {
    font-size: 14px;
    padding: 8px 12px;
  }
  html[lang="hi"] .mode-option strong {
    font-size: 14px;
  }
  html[lang="hi"] .turn-copy h3 {
    font-size: 18px;
  }
  html[lang="hi"] .brand-name {
    font-size: 24px;
  }
  html[lang="hi"] .roll-label {
    font-size: 14px;
  }
}
@media (max-width: 374px) {
  header {
    padding: 0 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand-hindi {
    display: none;
  }
  .brand-name {
    font-size: 21px;
  }
  .game-layout {
    padding-inline: 10px;
  }
  .mode-option {
    gap: 4px;
  }
  .mode-option > svg {
    width: 16px;
  }
  .mode-option strong {
    font-size: 12px;
  }
  .turn-clock {
    display: none;
  }
  .player-home-dots {
    display: none;
  }
  .roll-button {
    min-width: 108px;
  }
  .turn-copy h3 {
    font-size: 16px;
  }
  .turn-copy p {
    font-size: 12px;
  }
}
[hidden] {
  display: none !important;
}
#desktop-ad .ad-slot { margin-top: 0; margin-bottom: 23px; }
@media(min-width:768px) and (max-width:1199px){.board-stage{width:calc(100% - 30px);margin-inline:auto}}
.game-controls[data-phase="roll"] .pawn-options {
  display: none;
}
.player-info small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-controls[data-phase="roll"] {
  min-height: 96px;
}
@media (min-width: 1200px) {
  .game-layout {
    max-width: 1230px;
    grid-template-columns: 235px minmax(0, 1fr) 232px;
    gap: 26px;
    padding-top: 24px;
  }
  .board-stage {
    width: min(calc(100% + 12px), calc(100dvh - 400px));
    margin: -13px auto -12px;
  }
  #board-heading {
    margin-bottom: 13px;
  }
  .player-row {
    margin: 0 15px;
    gap: 14px;
  }
  .player-badge {
    min-height: 52px;
  }
  .right-rail .game-controls {
    margin: 0 0 23px;
    padding: 15px;
    min-height: 0;
  }
  .right-rail .turn-top {
    display: block;
    position: relative;
  }
  .right-rail .turn-copy {
    padding-right: 21px;
  }
  .right-rail .turn-copy h3 {
    font-size: 18px;
  }
  .right-rail .turn-copy p {
    min-height: 35px;
    margin-top: 6px;
  }
  .right-rail .roll-button {
    width: 100%;
    margin-top: 13px;
    min-height: 60px;
  }
  .right-rail .roll-label {
    max-width: 110px;
  }
  .right-rail .turn-clock {
    position: absolute;
    right: -3px;
    top: -2px;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .right-rail .pawn-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .right-rail .pawn-option {
    min-height: 45px;
    font-size: 12px;
  }
  .right-rail .controls-actions {
    flex-direction: column;
  }
  .right-rail .finish-ribbon {
    font-size: 18px;
  }
  .lounge {
    padding-top: 21px;
  }
  .lounge h1 {
    font-size: 39px;
  }
  .lounge-note {
    margin-top: 17px;
  }
  .mode-list {
    margin-top: 23px;
  }
  .events {
    height: 130px;
  }
}
@media (max-width: 767px) {
  .game-controls[data-phase="roll"] {
    min-height: 86px;
  }
  .player-home-dots {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .board {
    transform: rotateX(8deg);
  }
}
