:root {
  --bg: #0b1511;
  --panel: #12201a;
  --panel2: #172a22;
  --line: #22392f;
  --text: #eaf3ee;
  --dim: #8fa89b;
  --green: #1fb36b;
  --green-d: #0f7a49;
  --gold: #f2b84b;
  --red: #ef6a5b;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.hidden {
  display: none !important;
}

.screen {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px 90px;
}

h2,
h3,
p {
  margin: 0;
}

h3 {
  font-size: 15px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

small {
  color: var(--dim);
}

.fine {
  color: var(--dim);
  font-size: 13px;
  margin: 8px 0 12px;
}

.err {
  color: var(--red);
  min-height: 1.2em;
  margin-top: 10px;
  font-size: 14px;
}

.neg {
  color: var(--red);
}

.brand {
  text-align: center;
  padding: 28px 0 18px;
}

.logo {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.logo span {
  color: var(--green);
}

.tag {
  color: var(--dim);
  margin-top: 6px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 12px;
}

input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

input:focus {
  outline: 2px solid var(--green);
  outline-offset: 0;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 4px 0 14px;
}

legend {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 8px;
  padding: 0;
}

.starts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.start {
  text-align: left;
  background: var(--bg);
  border: 2px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 10px;
  font: inherit;
  cursor: pointer;
}

.start b {
  display: block;
}

.start small {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
}

.start.on {
  border-color: var(--green);
  background: var(--panel2);
}

.row {
  display: flex;
  gap: 8px;
}

.row>* {
  flex: 1;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: var(--panel2);
  border: 1px solid var(--line);
}

.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #04150c;
}

.btn.ghost {
  background: transparent;
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.btn:active:not(:disabled) {
  transform: scale(.98);
}

.link {
  background: none;
  border: 0;
  color: var(--dim);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 12px;
}

.who {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.who span {
  color: var(--dim);
  font-size: 13px;
}

.online {
  font-size: 13px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

.online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.money {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr .6fr;
  gap: 8px;
  margin-bottom: 10px;
}

.money>div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}

.money b {
  display: block;
  font-size: 20px;
}

.meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.meter span {
  font-size: 12px;
  color: var(--dim);
}

.meter div {
  height: 8px;
  border-radius: 6px;
  background: var(--panel2);
  margin-top: 4px;
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--green);
  border-radius: 6px;
  transition: width .4s;
}

.meter i.bad {
  background: var(--gold);
}

.meter i.low {
  background: var(--red);
}

.billboard {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(90deg, #3a2c0e, #2a2108);
  border: 1px solid #5a4614;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.billboard small {
  color: var(--gold);
  margin-right: 8px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
}

.place h2 {
  font-size: 24px;
  margin: 2px 0 4px;
}

.place p {
  color: var(--dim);
  font-size: 14px;
}

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

.grid .btn {
  text-align: left;
}

.grid .btn small {
  display: block;
  font-weight: 400;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.item:first-of-type {
  border-top: 0;
}

.item .info {
  flex: 1;
  font-size: 15px;
}

.item .info small {
  display: block;
}

.item .btn {
  flex: none;
  padding: 9px 12px;
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.log li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
}

.log li:first-child {
  border-top: 0;
  color: var(--text);
}

.chat {
  display: flex;
  flex-direction: column;
}

.msgs {
  height: 52vh;
  overflow-y: auto;
  margin-bottom: 10px;
  font-size: 15px;
}

.msgs p {
  padding: 4px 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.msgs b {
  color: var(--green);
}

.msgs input {
  margin: 0;
}

#chatIn {
  margin: 0;
}

.board {
  margin: 0;
  padding-left: 26px;
}

.board li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.board li:first-child {
  border-top: 0;
}

.board .g {
  float: right;
  color: var(--green);
  font-weight: 700;
}

.board small {
  display: block;
}

.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  max-width: 520px;
  margin: 0 auto;
}

.nav button {
  flex: 1;
  padding: 14px 0;
  background: none;
  border: 0;
  color: var(--dim);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav button.on {
  color: var(--green);
  box-shadow: inset 0 3px 0 var(--green);
}

#toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -120%);
  background: var(--panel2);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 12px;
  max-width: 90vw;
  z-index: 10;
  transition: transform .25s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}

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

#toast.bad {
  border-color: var(--red);
}

/* ---------- visual layer: map, avatars, rooms ---------- */
.hav {
  width: 40px;
  height: 44px;
  flex: none;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

#avPreview {
  width: 84px;
  height: 124px;
  flex: none;
  background: #e4efe9;
  border-radius: 14px;
}

.pickers {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.swatches,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sw {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
}

.sw.on {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--green);
}

.chip {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.chip.on {
  background: var(--green);
  border-color: var(--green);
  color: #04150c;
  font-weight: 700;
}

.mapwrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: #8fd18a;
}

.citymap {
  display: block;
  width: 100%;
  height: auto;
}

.citymap .place {
  cursor: pointer;
  outline: none;
}

.citymap .place:hover .plabel rect,
.citymap .place:focus-visible .plabel rect {
  stroke: #1fb36b;
  stroke-width: 2;
}

.citymap .ring {
  animation: dash 1s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -22;
  }
}

.citymap .me {
  transition: transform .9s ease-in-out;
  pointer-events: none;
}

.citymap .bb {
  cursor: pointer;
}

.citymap text {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

@media (prefers-reduced-motion: reduce) {

  .citymap .ring,
  .citymap .me {
    animation: none;
    transition: none;
  }
}

.needs {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, .93);
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.need {
  display: flex;
  align-items: center;
  gap: 6px;
}

.need span {
  font-size: 16px;
  line-height: 1;
}

.need div {
  flex: 1;
  height: 9px;
  border-radius: 6px;
  background: #dfe7e2;
  overflow: hidden;
}

.need i {
  display: block;
  height: 100%;
  border-radius: 6px;
  transition: width .4s, background .4s;
}

.need i.good {
  background: #1fb36b;
}

.need i.mid {
  background: #f2b84b;
}

.need i.low {
  background: #ef6a5b;
}

.dest .info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dest .big {
  font-size: 20px;
}

.dest .hint {
  margin-top: 4px;
  color: var(--green);
}

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

.destrow .info {
  flex: 1;
}

.destrow .btn {
  flex: none;
}

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

#roomHost svg {
  display: block;
  width: 100%;
  height: auto;
}

.roomtxt {
  padding: 12px 14px 4px;
}

.roomtxt h2 {
  font-size: 20px;
}

.roomtxt p {
  color: var(--dim);
  font-size: 14px;
  margin-top: 2px;
}

#roomAct {
  padding: 10px 14px 14px;
}

.dest,
#here {
  scroll-margin-bottom: 92px;
}

/* ---------- 3D game HUD ---------- */
#game {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #9bd3f0;
  color: #16231c;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#stage,
#stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#game button {
  font: inherit;
}

.pill,
.hud,
.obj,
.navpill,
.ctx {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#topbar {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 8px);
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 16px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(238, 248, 243, .94);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  white-space: nowrap;
}

#topbar span {
  color: #24382f;
}

#tbMood.bad {
  color: #c2410c;
}

.tb-music-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #ffffff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: #16231c;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tb-music-btn:hover {
  transform: scale(1.08);
  background: #eef7f2;
}

.tb-music-btn.playing {
  animation: musicPulse 2s ease-in-out infinite;
}

.tb-music-btn.muted {
  opacity: 0.55;
  filter: grayscale(1);
}

@keyframes musicPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

.cash {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 4px 4px 4px 12px;
  cursor: pointer;
  color: #16231c;
}

.cash b {
  font-size: 14px;
}

.cash i {
  font-style: normal;
  background: #1fb36b;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Top Floating Notification Stack (Prevents overlapping of Topbar, Objective & Danfo Ride) */
.top-banner-stack {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 56px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 45;
  pointer-events: none;
  width: min(720px, calc(100vw - 24px));
}

.top-banner-stack>* {
  pointer-events: auto;
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
}

.top-banner-stack>.hidden {
  display: none !important;
}

.obj {
  width: min(340px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6c445;
  color: #3a2a05;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.obj .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a2a05;
  flex: none;
  animation: pulse 1.4s infinite;
}

.obj b {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.obj small {
  display: block;
  font-size: 11px;
  opacity: .8;
}

@keyframes pulse {
  50% {
    transform: scale(1.5);
    opacity: .5;
  }
}

.hud {
  position: absolute;
  background: rgba(255, 255, 255, .9);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}

.needcard {
  top: calc(env(safe-area-inset-top) + 104px);
  left: 8px;
  width: 118px;
  height: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.needcard .x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #16231c;
  color: #fff;
  line-height: 1;
  cursor: pointer;
}

.needcard.min>.need {
  display: none;
}

.needcard.min {
  width: 34px;
  height: 24px;
  padding: 0;
}

.need {
  display: flex;
  align-items: center;
  gap: 6px;
}

.need span {
  font-size: 14px;
}

.need div {
  flex: 1;
  height: 8px;
  border-radius: 6px;
  background: #dfe7e2;
  overflow: hidden;
}

.need i {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: 6px;
  transition: width .4s, background .4s;
}

.need i.good {
  background: #1fb36b;
}

.need i.mid {
  background: #f2b84b;
}

.need i.low {
  background: #ef6a5b;
}

.mini {
  top: calc(env(safe-area-inset-top) + 104px);
  right: 8px;
  width: 104px;
  height: 104px;
  padding: 0;
  overflow: hidden;
  border: 2px solid #fff;
}

.ctx {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 84px);
  transform: translateX(-50%);
  background: #2fb561;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  cursor: pointer;
  white-space: nowrap;
  animation: pop .25s ease-out;
}

@keyframes pop {
  from {
    transform: translateX(-50%) scale(.8);
    opacity: 0;
  }
}

.joy {
  position: absolute;
  left: 18px;
  bottom: calc(env(safe-area-inset-bottom) + 92px);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  border: 2px solid rgba(255, 255, 255, .7);
  display: none;
  touch-action: none;
}

.joy i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}

@media (pointer: coarse) {
  .joy {
    display: block;
  }
}

.navpill {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, .95);
  border-radius: 22px;
  padding: 6px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  max-width: calc(100vw - 12px);
}

.navpill button {
  background: none;
  border: 0;
  color: #5a6e63;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
  border-radius: 12px;
}

.navpill button span {
  font-size: 19px;
  line-height: 1.1;
}

.navpill button.on {
  color: #1fb36b;
  background: #e6f6ee;
}

.sheetback {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 14, .35);
}

.sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 100vw);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .4);
  animation: slideup .22s ease-out;
}

@keyframes slideup {
  from {
    transform: translate(-50%, 40px);
    opacity: 0;
  }
}

@keyframes slideinright {
  from {
    transform: translateX(40px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .sheet {
    left: auto;
    right: 24px;
    bottom: 85px;
    transform: none;
    width: 380px;
    max-height: calc(100vh - 110px);
    border-radius: 22px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    animation: slideinright .22s ease-out;
  }

  .sheetback {
    background: transparent;
    pointer-events: none;
  }
}

/* =========================================================================
   CITYLIFE CASH VAULT MODAL (Unique, bespoke white theme)
   ========================================================================= */
.sheetback.sheetback-wallet {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  pointer-events: auto !important;
  z-index: 99 !important;
}

.sheet.sheet-wallet,
.sheet.sheet-white {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 26px 26px 0 0 !important;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  z-index: 100 !important;
}

@media (min-width: 640px) {

  .sheet.sheet-wallet,
  .sheet.sheet-white {
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    transform: translateX(-50%) !important;
    width: min(510px, calc(100vw - 32px)) !important;
    border-radius: 26px !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35) !important;
    max-height: 88vh !important;
    animation: popIn .22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
}

.sheet.sheet-wallet .sheethead,
.sheet.sheet-white .sheethead {
  padding: 16px 20px 8px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.sheet.sheet-wallet .sheethead h2,
.sheet.sheet-white .sheethead h2 {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  letter-spacing: -0.3px !important;
}

.sheet.sheet-wallet .sheethead .x2,
.sheet.sheet-white .sheethead .x2 {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  font-size: 18px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  transition: all 0.15s ease !important;
}

.sheet.sheet-wallet .sheethead .x2:hover,
.sheet.sheet-white .sheethead .x2:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.sheet.sheet-wallet .sheetbody,
.sheet.sheet-white .sheetbody {
  padding: 14px 18px 24px !important;
}

/* Guide sheet card styling inside white sheet */
.sheet.sheet-guide .card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.sheet.sheet-guide .card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.sheet.sheet-guide .card h3 {
  color: #047857 !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.sheet.sheet-guide .card p.fine {
  color: #334155 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

.sheet.sheet-guide .btn.go {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25) !important;
  cursor: pointer !important;
}

.sheet.sheet-guide .btn.sm {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  transition: all 0.15s ease !important;
}

.sheet.sheet-guide .btn.sm:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* Vault Hero Banner: In-game Balance & Currency Switcher */
.vault-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.vault-hero-left {
  display: flex;
  flex-direction: column;
}

.vault-hero-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

.vault-hero-val {
  font-size: 18px;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.4px;
  margin-top: 1px;
}

.vault-toggle-wrap {
  display: flex;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px;
}

.vault-toggle-btn {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vault-toggle-btn.active {
  background: #047857;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
}

/* Pack Tier Cards Grid */
.vault-pack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vault-pack-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.vault-pack-card:hover {
  border-color: #059669;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.08);
  transform: translateY(-1px);
}

.vault-pack-card.best-value {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%) !important;
  border: 2px solid #059669 !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.12) !important;
}

.vault-card-badge {
  position: absolute;
  top: -9px;
  right: 14px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.35);
}

.vault-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vault-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.vault-card-info {
  display: flex;
  flex-direction: column;
}

.vault-pack-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.vault-pack-amount {
  font-size: 13px;
  font-weight: 800;
  color: #059669;
  margin-top: 1px;
}

.vault-pack-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}

.vault-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.vault-buy-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.vault-pack-card.best-value .vault-buy-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
}

.vault-buy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

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

.vault-buy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vault-price-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
}

/* Email Receipt Input */
.vault-receipt-box {
  margin-top: 14px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vault-receipt-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sheet.sheet-wallet input,
.sheet.sheet-wallet .vault-receipt-input {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  outline: none !important;
  transition: border-color 0.15s ease !important;
}

.sheet.sheet-wallet input:focus,
.sheet.sheet-wallet .vault-receipt-input:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.vault-icon-box.theme-amber {
  background: #fef3c7;
}

.vault-icon-box.theme-blue {
  background: #e0f2fe;
}

.vault-icon-box.theme-emerald {
  background: #dcfce7;
}

.vault-icon-box.theme-purple {
  background: #f3e8ff;
}

.vault-icon-box.theme-gold {
  background: #fef9c3;
}

.vault-card-badge.badge-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4) !important;
}

.vault-card-badge.badge-purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  box-shadow: 0 2px 6px rgba(109, 40, 217, 0.4) !important;
}

.vault-card-badge.badge-blue {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4) !important;
}

.vault-trust-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
}

.vault-trust-footer span {
  font-size: 14px;
}



.sheethead {
  display: flex;
  align-items: center;
  padding: 14px 16px 6px;
}

.sheethead h2 {
  flex: 1;
  font-size: 19px;
}

.x2 {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.sheetbody {
  overflow-y: auto;
  padding: 6px 14px calc(env(safe-area-inset-bottom) + 16px);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.sheetbody .card {
  margin-bottom: 10px;
}

.sheetbody .row.gap {
  margin-top: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.stat-grid div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.stat-grid small {
  display: block;
}

.stat-grid b {
  font-size: 15px;
}

.meprow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meprow svg {
  width: 56px;
  height: 76px;
  background: #e4efe9;
  border-radius: 12px;
  flex: none;
}

.chatbox {
  height: 38vh;
  overflow-y: auto;
  margin-bottom: 10px;
  font-size: 15px;
}

.chatbox p {
  padding: 4px 0;
  overflow-wrap: anywhere;
}

.chatbox b {
  color: var(--green);
}

.btn.sm {
  padding: 8px 12px;
  font-size: 14px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--dim);
  margin-left: 6px;
}

.item .btn.go {
  background: var(--green);
  border-color: var(--green);
  color: #04150c;
}

.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.filter-pill {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s ease;
  flex: none;
}

.filter-pill.on {
  background: #1fb36b;
  color: #fff;
  border-color: #1fb36b;
}

#toast {
  z-index: 50;
  top: calc(env(safe-area-inset-top) + 150px);
}

#toast {
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .25s;
}

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

/* Danfo Run */
.dg {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #87c8f0;
  touch-action: none;
  user-select: none;
}

.dg.hidden {
  display: none;
}

#dgCanvas,
#pnCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.dgtop {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.dgchip {
  background: rgba(10, 20, 16, .72);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.dgx {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 20, 16, .72);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.dgpad {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 30%;
  max-width: 160px;
  height: 84px;
  border: 0;
  border-radius: 22px;
  background: rgba(10, 20, 16, .55);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.dgpad.l {
  left: 14px;
}

.dgpad.r {
  right: 14px;
}

.dgpad:active {
  background: rgba(31, 179, 107, .8);
}

.dgpark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(34px, env(safe-area-inset-bottom));
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background: #1fb36b;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.dgover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: grid;
  place-items: center;
  padding: 20px;
}

.dgover.hidden {
  display: none;
}

.dgcard {
  background: #13221b;
  color: #fff;
  border-radius: 20px;
  padding: 22px;
  width: min(360px, 100%);
  text-align: center;
}

.dgcard h2 {
  margin: 0 0 8px;
}

.dgcard p {
  margin: 0 0 16px;
  color: #cfe3d8;
  line-height: 1.5;
}

.dgcard .row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Danfo Run Modern Modal Sheets (Pre-Game & Game Over) */
.dg-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  box-sizing: border-box;
  animation: dgFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-modal-backdrop.hidden {
  display: none !important;
}

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

@keyframes dgSlideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dg-modal-sheet {
  background: #ffffff;
  color: #1e272e;
  border-radius: 28px;
  width: 100%;
  max-width: 430px;
  max-height: 88vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dgSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.dg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #f1f3f5;
  flex-shrink: 0;
}

.dg-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dg-title-icon {
  font-size: 24px;
  line-height: 1;
}

.dg-modal-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1e272e;
  letter-spacing: -0.3px;
}

.dg-modal-close {
  background: #f1f3f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #485460;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.dg-modal-close:hover {
  background: #e4e7eb;
  color: #1e272e;
}

.dg-modal-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.dg-modal-sub {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #57606f;
}

.dg-modal-sub b {
  color: #1e272e;
  font-weight: 700;
}

.dg-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.dg-stat-box {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.dg-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #8395a7;
  margin-bottom: 4px;
}

.dg-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #222f3e;
  letter-spacing: -0.5px;
}

/* Vehicle Selector Section */
.dg-vehicle-section {
  margin-bottom: 16px;
}

.dg-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dg-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #8395a7;
  letter-spacing: 0.6px;
}

.dg-vehicle-count {
  font-size: 11px;
  font-weight: 700;
  color: #1fb36b;
  background: #eafaf1;
  padding: 2px 8px;
  border-radius: 9999px;
}

.dg-cars-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.dg-cars-carousel::-webkit-scrollbar {
  height: 5px;
}

.dg-cars-carousel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dg-car-card {
  flex: 0 0 125px;
  min-width: 125px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-sizing: border-box;
}

.dg-car-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.dg-car-card.selected {
  border-color: #1fb36b;
  background: #eafaf1;
  box-shadow: 0 6px 16px rgba(31, 179, 107, 0.18);
}

.dg-car-icon {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.dg-car-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e272e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.dg-car-sub {
  font-size: 10.5px;
  color: #636e72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.dg-car-badge {
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #4a5568;
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: 5px;
}

.dg-car-card.selected .dg-car-badge {
  background: #1fb36b;
  color: #ffffff;
}

/* Rules Cards */
.dg-rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.dg-rule-card {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dg-rule-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.dg-rule-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dg-rule-text b {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e272e;
}

.dg-rule-text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #57606f;
}

/* Action Buttons */
.dg-btn-primary {
  width: 100%;
  background: #1fb36b;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(31, 179, 107, 0.28);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.dg-btn-primary:hover {
  background: #189859;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(31, 179, 107, 0.35);
}

.dg-btn-primary:active {
  transform: translateY(1px);
}

.dg-btn-secondary {
  width: 100%;
  background: #ffffff;
  color: #2d3436;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.dg-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dg-rules-tip {
  margin: 12px 0 16px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #8395a7;
  text-align: left;
}

/* Leaderboard */
.dg-leaderboard-section {
  margin-top: 14px;
}

.dg-lb-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  color: #8395a7;
  letter-spacing: 0.6px;
}

.dg-lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dg-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 9px 12px;
}

.dg-lb-row.dg-lb-me {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.dg-lb-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dg-lb-rank {
  font-size: 16px;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
  color: #485460;
}

.dg-lb-names {
  display: flex;
  flex-direction: column;
}

.dg-lb-uname {
  font-size: 13px;
  font-weight: 700;
  color: #1e272e;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dg-real-user-tag {
  font-size: 11px;
  opacity: 0.65;
  filter: grayscale(1);
}

.dg-lb-sub {
  font-size: 10.5px;
  color: #8395a7;
}

.dg-lb-score {
  font-size: 12.5px;
  font-weight: 700;
  color: #1fb36b;
  background: #eafaf1;
  padding: 3px 10px;
  border-radius: 9999px;
}

/* Game Over Card Elements */
.dg-result-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.dg-result-banner.record {
  background: #eafaf1;
  color: #1fb36b;
}

.dg-result-banner.crashed {
  background: #fef2f2;
  color: #dc2626;
}

.dg-result-banner.parked {
  background: #f0f9ff;
  color: #0284c7;
}

.dg-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.dg-result-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.dg-res-lbl {
  font-size: 11px;
  color: #8395a7;
  font-weight: 600;
  margin-bottom: 4px;
}

.dg-res-val {
  font-size: 18px;
  font-weight: 800;
  color: #1e272e;
}

.dg-net-summary {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #57606f;
}

.dg-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.dgx.fs {
  margin-left: auto;
  font-size: 20px;
}

.dgx.fs+.dgx {
  margin-left: 0;
}

/* Penalty */
.pnaim {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(max(34px, env(safe-area-inset-bottom)) + 120px);
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pnaim button {
  flex: 1;
  max-width: 130px;
  padding: 12px 6px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(10, 20, 16, .6);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.pnaim button.on {
  border-color: #ffd23f;
  background: rgba(31, 179, 107, .85);
}

.pnpower {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: calc(max(34px, env(safe-area-inset-bottom)) + 74px);
  height: 16px;
  border-radius: 9px;
  background: rgba(10, 20, 16, .6);
  overflow: hidden;
}

.pnpower i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #1fb36b;
}

.pnpower b {
  position: absolute;
  left: 80%;
  width: 15%;
  top: 0;
  bottom: 0;
  border-left: 2px solid #ffd23f;
  border-right: 2px solid #ffd23f;
  box-sizing: border-box;
}

/* Home shop */
.homebar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 150px);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.homebar.hidden,
.arrbar.hidden {
  display: none;
}

.homebar button {
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: rgba(19, 34, 27, .88);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.arrbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 150px);
  background: rgba(19, 34, 27, .92);
  color: #fff;
  border-radius: 16px;
  padding: 12px;
  z-index: 7;
  font-size: 14px;
}

.arrbar .row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.arrbar .btn {
  flex: 1;
}

.swatchrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatchrow .own {
  width: 72px;
  text-align: center;
  font-size: 12px;
}

.swatchrow .own i {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 6px;
  border: 3px solid transparent;
}

.swatchrow .own.on i {
  border-color: #1fb36b;
}

.swatchrow .own button {
  width: 100%;
  padding: 6px 2px;
  font-size: 12px;
}

.ticker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 138px);
  max-width: calc(100% - 24px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(19, 34, 27, .85);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
  z-index: 3;
  text-align: center;
}

.ticker.show {
  opacity: 1;
}

/* Bus Ride Banner */
.busride-banner {
  background: rgba(19, 34, 27, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1.5px solid #f5c518;
  border-radius: 18px;
  padding: 10px 18px;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: pop .25s ease-out;
  width: max-content;
  min-width: min(380px, calc(100vw - 24px));
  max-width: min(640px, calc(100vw - 24px));
}

.busride-banner.hidden {
  display: none !important;
}

.busride-content {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.busride-content #skipBusRide {
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .busride-content {
    white-space: normal;
  }
}

.busride-icon {
  font-size: 26px;
}

.busride-info {
  display: flex;
  flex-direction: column;
}

.busride-info b {
  font-size: 15px;
  color: #f5c518;
}

.busride-info small {
  font-size: 12px;
  color: #cfe3d8;
}

#skipBusRide {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
}

/* Sign up / log in page: light card on the landing page */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #bfe0f6 0%, #dff0fb 55%, #f2f9ff 100%);
  display: block;
  box-sizing: border-box;
}

.auth-modal-backdrop.hidden {
  display: none;
}

.au-page {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  box-sizing: border-box;
  color: #14231a;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.au-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #14231a;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(20, 40, 60, .15);
  display: grid;
  place-items: center;
}

.au-brand {
  text-align: center;
  padding: 8px 0 18px;
}

.au-logo {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -.5px;
}

.au-logo b {
  color: #1fb36b;
}

.au-flag {
  margin-right: 8px;
  font-size: 28px;
  vertical-align: 2px;
}

.au-tag {
  margin: 4px 0 0;
  color: #4b6a7d;
  font-size: 15px;
}

.au-card {
  background: #fff;
  border-radius: 28px;
  padding: 18px 20px 20px;
  box-sizing: border-box;
  box-shadow: 0 10px 40px rgba(25, 70, 110, .16);
  animation: pop .25s ease-out;
}

.au-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #eef3f8;
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 14px;
}

.au-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 12px 8px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: #5b7384;
  cursor: pointer;
}

.au-tab.on {
  background: #fff;
  color: #14231a;
  box-shadow: 0 1px 6px rgba(20, 40, 60, .12);
}

.au-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 12px;
}

.au-dots i {
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: #d9e4ec;
}

.au-dots i.on {
  background: #1fb36b;
}

.au-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #33495a;
}

.au-label em {
  font-style: normal;
  font-weight: 500;
  color: #7a8f9e;
}

.au-input {
  display: flex;
  align-items: center;
  background: #eaf0fd;
  border-radius: 18px;
  padding: 0 14px;
  border: 2px solid transparent;
}

.au-input:focus-within {
  border-color: #1fb36b;
  background: #fff;
}

.au-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #14231a;
  padding: 14px 0;
}

.au-input input::placeholder {
  color: #8fa3b3;
  font-weight: 500;
}

.au-input.at span {
  color: #5b7384;
  font-weight: 700;
  margin-right: 4px;
}

.au-eye {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  opacity: .7;
}

.au-hint {
  margin: 6px 4px 0;
  font-size: 12.5px;
  color: #66798a;
  line-height: 1.35;
}

.au-dob {
  display: grid;
  grid-template-columns: .8fr 1fr 1fr;
  gap: 8px;
}

.au-dob select {
  background: #eaf0fd;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 13px 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #14231a;
  min-width: 0;
}

.au-dob select:focus {
  outline: 0;
  border-color: #1fb36b;
  background: #fff;
}

.au-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f2f6fa;
  border-radius: 18px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #33495a;
  cursor: pointer;
}

.au-agree input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: #1fb36b;
  flex: none;
}

.au-h {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  margin: 16px 0 8px;
  color: #14231a;
}

.au-h:first-child {
  margin-top: 4px;
}

.au-err {
  min-height: 18px;
  margin: 12px 4px 0;
  color: #c0392b;
  font-size: 13.5px;
  font-weight: 600;
}

.au-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.au-btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 16px 18px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.au-btn.primary {
  background: #1fb36b;
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 179, 107, .35);
}

.au-btn.primary:active {
  transform: translateY(1px);
}

.au-btn.ghost {
  flex: 0 0 auto;
  background: #eef3f8;
  color: #14231a;
  padding-left: 26px;
  padding-right: 26px;
}

.au-btn:disabled {
  opacity: .6;
}

.au-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: #66798a;
}

.au-page .hidden {
  display: none !important;
}

.au-page .starts {
  grid-template-columns: 1fr 1fr;
}

.au-page .start {
  background: #f6f9fc;
  border: 2px solid #dde8f0;
  color: #14231a;
}

.au-page .start small {
  color: #5b7384;
}

.au-page .start.on {
  border-color: #1fb36b;
  background: #effaf4;
}

.au-page .looks {
  display: flex;
  gap: 14px;
  align-items: center;
}

.au-page #avPreview {
  width: 96px;
  height: 120px;
  flex: none;
  background: #eaf5ff;
  border-radius: 18px;
}

.au-page .chip {
  background: #eef3f8;
  color: #14231a;
  border-color: transparent;
}

.au-page .chip.on {
  background: #14231a;
  color: #fff;
}

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

  .au-logo {
    font-size: 30px;
  }
}

/* ============================================================
   SMARTPHONE DEVICE (Matching naijalifegame.com / Screenshot 2)
   ============================================================ */
.phone-device {
  position: fixed;
  right: 24px;
  bottom: 85px;
  width: 340px;
  height: 640px;
  max-height: calc(100vh - 105px);
  z-index: 45;
  animation: slideinphone .28s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.phone-device.hidden {
  display: none;
}

@keyframes slideinphone {
  from {
    transform: translateY(40px) scale(0.96);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .phone-device {
    right: 8px;
    left: 8px;
    bottom: 74px;
    width: auto;
    height: calc(100vh - 90px);
    max-height: none;
  }
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: #0d1712;
  border-radius: 38px;
  border: 4px solid #1c2e24;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 8px;
  box-sizing: border-box;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 5px;
  background: #1a2b20;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px 6px;
  color: #cfe3d8;
  font-size: 13px;
  font-weight: 700;
}

.phone-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  line-height: 1;
}

.phone-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.phone-screen {
  flex: 1;
  background: linear-gradient(180deg, #18482d 0%, #0d2719 50%, #08170f 100%);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.phone-screen.phone-screen-white {
  background: #ffffff !important;
  box-shadow: none !important;
}

.phone-screen.phone-screen-white .phone-status-bar {
  color: #0f172a !important;
}

.phone-screen.phone-screen-white .phone-status-bar span,
.phone-screen.phone-screen-white .phone-status-bar div {
  color: #0f172a !important;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  z-index: 5;
}

.phone-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.phone-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px 12px;
}

/* Home Screen */
.phone-home-widget {
  text-align: center;
  padding: 14px 0 10px;
  color: #fff;
}

.phone-big-clock {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.phone-big-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.phone-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 6px;
  padding: 4px;
  margin-bottom: auto;
}

.phone-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  position: relative;
  transition: transform .12s ease;
}

.phone-app-item:active {
  transform: scale(0.92);
}

.phone-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  position: relative;
  color: #fff;
}

.phone-app-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  border: 2px solid #0d2719;
}

.phone-app-name {
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.phone-dock {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 8px 6px;
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Sub-views inside the Phone (Games, Today, Leaderboard, etc.) */
.phone-app-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.phone-app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 10px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 10px;
}

.phone-back-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.phone-app-title {
  font-size: 16px;
  font-weight: 700;
}

.phone-game-card {
  background: rgba(14, 34, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-game-info {
  flex: 1;
}

.phone-game-info b {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
}

.phone-game-info small {
  display: block;
  font-size: 11px;
  color: #cfe3d8;
  line-height: 1.3;
}

.phone-game-play {
  background: #1fb36b;
  color: #04150c;
  font-weight: 800;
  border: 0;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  flex: none;
}

.phone-game-play:active {
  transform: scale(0.96);
}

.phone-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 12px;
}

.phone-tab-btn {
  flex: 1;
  background: transparent;
  border: 0;
  color: #cfe3d8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.phone-tab-btn.active {
  background: #1fb36b;
  color: #04150c;
  box-shadow: 0 2px 8px rgba(31, 179, 107, 0.35);
}

.phone-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.phone-status-dot.online {
  background: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
}

.phone-status-dot.offline {
  background: #7f8c8d;
}

/* ============================================================
   PHONE MUSIC & LIVE RADIO (Matches reference design)
   ============================================================ */
.phone-screen.phone-screen-white .phone-app-bar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 6px 4px 12px !important;
  color: #0f172a !important;
  border-bottom: none !important;
  margin-bottom: 8px !important;
}

.phone-screen.phone-screen-white .phone-back-btn {
  background: #f1f5f9 !important;
  border: none !important;
  color: #0f172a !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
}

.phone-screen.phone-screen-white .phone-back-btn:hover {
  background: #e2e8f0 !important;
}

.phone-screen.phone-screen-white .phone-app-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.2px !important;
}

.phone-music-card {
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.phone-music-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: #f1f5f9;
  color: #0f172a;
}
.phone-music-meta {
  flex: 1;
  min-width: 0;
}
.phone-music-meta b {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 2px;
  font-weight: 700;
}
.phone-music-meta small {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}
.phone-switch {
  position: relative;
  width: 50px;
  height: 28px;
  background: #cbd5e1;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
  border: none;
  padding: 0;
  outline: none;
}
.phone-switch.on {
  background: #10b981;
}
.phone-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone-switch.on .phone-switch-knob {
  transform: translateX(22px);
}
.phone-vol-box {
  background: transparent;
  padding: 2px 4px 14px 4px;
}
.phone-vol-box label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.phone-vol-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}
.phone-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.phone-vol-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: none;
}
.phone-pill-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}
.phone-pill-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.phone-pill-action:active {
  background: #f1f5f9;
}
.phone-music-nav {
  display: flex;
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 4px;
  margin: 12px 0 14px;
}
.phone-music-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.phone-music-nav-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.phone-music-sec-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #64748b;
  margin: 16px 4px 8px;
}
.phone-audio-item {
  background: #f8fafc;
  border-radius: 16px;
  padding: 13px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.phone-audio-item:hover {
  background: #f1f5f9;
}
.phone-audio-item:active {
  transform: scale(0.99);
  background: #e2e8f0;
}
.phone-audio-item.active {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.12);
}
.phone-audio-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.phone-audio-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-audio-info {
  flex: 1;
  min-width: 0;
}
.phone-audio-info b {
  display: block;
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone-audio-info small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone-playing-pill {
  background: #d1fae5;
  color: #065f46;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   WHOT CARD GAME (Authentic Casino Felt-Green Table)
   ============================================================ */
.whot-modal {
  background: radial-gradient(circle at 50% 45%, #185c3c 0%, #0d3d26 55%, #062316 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 1000;
  user-select: none;
  overflow: hidden;
}

.whot-header {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 25;
  pointer-events: auto;
}

.whot-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whot-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.whot-logo-icon {
  font-size: 18px;
  line-height: 1;
}

.whot-logo-name {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.whot-stake-badge {
  background: rgba(0, 0, 0, 0.32);
  color: #facc15;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  letter-spacing: 0.02em;
}

.whot-call-badge {
  background: rgba(0, 0, 0, 0.32);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whot-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.whot-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.whot-icon-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

.whot-leave-btn {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.whot-leave-btn:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: scale(1.04);
}

.whot-table {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 60px) 16px calc(max(14px, env(safe-area-inset-bottom)));
  box-sizing: border-box;
  overflow: hidden;
}

/* Opponent Seat */
.whot-opp-area {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.whot-opp-seat {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  min-width: 150px;
}

.whot-opp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.whot-opp-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.whot-opp-count-tag {
  font-size: 13px;
  color: #a7f3d0;
  font-weight: 600;
}

.whot-opp-cards-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

.whot-mini-card {
  width: 26px;
  height: 38px;
  border-radius: 5px;
  background: #8b1e22;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09) 2px, transparent 2px, transparent 4px);
  flex-shrink: 0;
}

/* Center Table Area (Market & Discard) */
.whot-center-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(36px, 6vw, 68px);
  margin: auto 0;
  z-index: 5;
}

.whot-deck-col,
.whot-discard-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.whot-pile-label {
  margin-top: 10px;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
}

.whot-wanted-badge {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #facc15;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 3px 12px;
  border-radius: 999px;
}

/* Card Geometry & Face (Authentic Nigerian Whot) */
.whot-card {
  width: clamp(86px, 9.2vw, 126px);
  height: calc(clamp(86px, 9.2vw, 126px) * 1.45);
  background: #fffdf8;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 7px;
  box-sizing: border-box;
  position: relative;
  user-select: none;
  flex-shrink: 0;
}

.whot-card.back {
  background: #8b1e22;
  border: 3.5px solid #ffffff;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07) 3px, transparent 3px, transparent 7px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whot-card.back:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.whot-back-inner {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 9px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.whot-back-text {
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 3px;
  transform: rotate(-25deg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Card indices & shapes */
.whot-card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: #8b1e22;
  gap: 2px;
}

.whot-card-corner.top-left {
  align-self: flex-start;
}

.whot-card-corner.bottom-right {
  align-self: flex-end;
  transform: rotate(180deg);
}

.whot-num {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 900;
  color: #8b1e22;
  font-family: inherit;
}

.whot-corner-svg {
  width: clamp(11px, 1.1vw, 15px);
  height: clamp(11px, 1.1vw, 15px);
  fill: #8b1e22;
}

.whot-card-center {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.whot-center-svg {
  width: clamp(54px, 5.8vw, 82px);
  height: clamp(54px, 5.8vw, 82px);
  fill: #8b1e22;
  transition: transform 0.15s ease;
}

.whot-card-20-center {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #8b1e22;
  transform: rotate(-25deg);
}

/* Player Hand Area */
.whot-player-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 15;
}

.whot-turn-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.whot-story-banner {
  background: rgba(0, 0, 0, 0.38);
  color: #f1f5f9;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 500;
  padding: 7px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.whot-status-prompt {
  color: #facc15;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.01em;
  text-align: center;
}

.whot-clock-track {
  width: min(380px, 85vw);
  height: 4px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.whot-clock-bar {
  height: 100%;
  width: 100%;
  background: #4ade80;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  transition: width 0.3s ease, background 0.3s ease;
}

.whot-hand.player {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 8px 12px 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
}

.whot-hand.player .whot-card {
  margin: 0 -8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28), box-shadow 0.2s ease, opacity 0.2s ease;
}

.whot-hand.player .whot-card.playable {
  border: 2.5px solid #fbbf24;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 14px rgba(251, 191, 36, 0.65);
  transform: translateY(-10px);
}

.whot-hand.player .whot-card.playable:hover {
  transform: translateY(-24px) scale(1.1);
  z-index: 20;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.85);
}

.whot-hand.player .whot-card:not(.playable) {
  opacity: 0.82;
}

/* In-table alert popup */
.whot-alert {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(14, 25, 18, 0.95);
  color: #f5c518;
  font-size: 19px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 18px;
  border: 2px solid #f5c518;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 30;
  white-space: nowrap;
}

.whot-alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.whot-alert.win {
  color: #1fb36b;
  border-color: #1fb36b;
}

.whot-alert.warning {
  color: #ff3b30;
  border-color: #ff3b30;
}

/* Shape Chooser Modal */
.whot-shape-modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 50;
}

.whot-shape-modal.hidden {
  display: none;
}

.whot-shape-box {
  background: #0d291b;
  border: 2px solid #22c55e;
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  color: #fff;
  width: min(340px, 90vw);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.whot-shape-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.shape-btn {
  background: #143d29;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.15s, background 0.15s;
}

.shape-btn:hover {
  transform: scale(1.05);
  background: #1c5237;
  border-color: #22c55e;
}

.shape-svg {
  width: 28px;
  height: 28px;
  fill: #8b1e22;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (max-width: 640px) {
  .whot-table {
    padding-top: calc(env(safe-area-inset-top) + 52px);
  }

  .whot-card {
    width: clamp(62px, 17vw, 78px);
    height: calc(clamp(62px, 17vw, 78px) * 1.45);
    border-radius: 10px;
    padding: 5px;
  }

  .whot-hand.player .whot-card {
    margin: 0 -8px;
  }

  .whot-center-area {
    gap: 20px;
  }

  .whot-center-svg {
    width: clamp(38px, 9.5vw, 48px);
    height: clamp(38px, 9.5vw, 48px);
  }

  .whot-card-20-center {
    font-size: 20px;
  }
}

/* ==========================================================================
   MINIGAMES: AYÒ OLÓPÓN, LUDO, TEN TEN, CHESS
   ========================================================================== */

/* Generic Game Alerts & Status */
.ayo-alert,
.ludo-alert,
.tt-alert,
.chess-alert {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(14, 28, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.ayo-alert.show,
.ludo-alert.show,
.tt-alert.show,
.chess-alert.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ayo-alert.win,
.ludo-alert.win,
.tt-alert.win,
.chess-alert.win {
  border-color: #2ecc71;
  background: rgba(18, 56, 33, 0.96);
  color: #55efc4;
}

.ayo-alert.loss,
.ludo-alert.loss,
.tt-alert.loss,
.chess-alert.loss {
  border-color: #e74c3c;
  background: rgba(60, 20, 20, 0.96);
  color: #ff7675;
}

.tt-alert.rhythm {
  border-color: #f1c40f;
  background: rgba(60, 50, 10, 0.96);
  color: #ffeaa7;
  font-size: 18px;
  padding: 10px 24px;
}

/* --- AYÒ OLÓPÓN --- */
.ayo-modal {
  background: radial-gradient(circle at center, #1b2e23 0%, #0d1712 100%);
  display: flex;
  flex-direction: column;
}

.ayo-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 14px;
}

.ayo-status-bar {
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 20px;
  border-radius: 999px;
  color: #c9e6d4;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ayo-board-wood {
  background: #3b2219;
  border: 7px solid #24140e;
  border-radius: 32px;
  padding: 16px 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.85), 0 12px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(440px, 94vw);
}

.ayo-row-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c9a489;
  text-align: center;
  opacity: 0.8;
}

.ayo-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.ayo-center-divider {
  height: 4px;
  background: #24140e;
  border-radius: 2px;
  margin: 4px 0;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.05);
}

.ayo-pit {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #130a07 55%, #2a150e 100%);
  border: 2px solid #1a0d09;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.ayo-pit.player.clickable {
  cursor: pointer;
  border-color: #27ae60;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(39, 174, 96, 0.5);
}

.ayo-pit.player.clickable:hover {
  transform: scale(1.08);
  border-color: #2ecc71;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.8), 0 0 14px rgba(46, 204, 113, 0.8);
}

.ayo-pit-num {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  line-height: 1;
}

.ayo-seeds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 16px;
  overflow: hidden;
  gap: 1px;
}

.ayo-seed-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e6b885;
  box-shadow: inset -1px -1px 2px #5a3a1f;
  display: inline-block;
}

/* --- STREET LUDO --- */
.ludo-modal {
  background: radial-gradient(circle at center, #1b2e23 0%, #0d1712 100%);
  display: flex;
  flex-direction: column;
}

.ludo-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 16px;
}

.ludo-status-bar {
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 20px;
  border-radius: 999px;
  color: #c9e6d4;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ludo-board-wrap {
  background: #112017;
  border: 4px solid #1f3d2b;
  border-radius: 24px;
  padding: 16px;
  width: min(380px, 92vw);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ludo-yards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.ludo-yard-box {
  width: 100%;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ludo-yard-box.red {
  background: rgba(231, 76, 60, 0.15);
  border: 2px solid rgba(231, 76, 60, 0.4);
}

.ludo-yard-box.green {
  background: rgba(46, 204, 113, 0.15);
  border: 2px solid rgba(46, 204, 113, 0.4);
}

.yard-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.ludo-yard-tokens {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ludo-token {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ludo-token.player {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border: 2px solid #55efc4;
}

.ludo-token.opp {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: 2px solid #ff7675;
}

.ludo-token.clickable {
  cursor: pointer;
  animation: pulseToken 1.2s infinite;
}

.ludo-token.clickable:hover {
  transform: scale(1.12);
}

@keyframes pulseToken {

  0%,
  100% {
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
  }

  50% {
    box-shadow: 0 0 16px rgba(46, 204, 113, 0.95);
  }
}

.ludo-center-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ludo-dice-roller {
  width: 72px;
  height: 72px;
  background: #ffffff;
  border: 3px solid #f1c40f;
  border-radius: 18px;
  font-size: 42px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}

.ludo-dice-roller:active:not(:disabled) {
  transform: scale(0.92);
}

.ludo-dice-roller:disabled {
  opacity: 0.6;
  cursor: default;
}

.ludo-roll-hint {
  font-size: 11px;
  color: #9cb8a7;
}

/* --- TEN TEN --- */
.tt-modal {
  background: radial-gradient(circle at center, #182c20 0%, #0a130e 100%);
  display: flex;
  flex-direction: column;
}

.tt-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  gap: 20px;
}

.tt-duelist-area {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: min(380px, 92vw);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 20px 14px;
}

.tt-duelist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tt-avatar {
  font-size: 44px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.tt-name {
  font-size: 14px;
  font-weight: 700;
  color: #e4f2eb;
}

.tt-foot-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 800;
  color: #f1c40f;
  min-width: 80px;
  text-align: center;
}

.tt-vs {
  font-size: 16px;
  font-weight: 900;
  color: #ff9f43;
}

.tt-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(380px, 92vw);
}

.tt-rule-tip {
  font-size: 12px;
  color: #a3c2b1;
  text-align: center;
  margin: 0;
}

.tt-button-group {
  display: flex;
  gap: 12px;
  width: 100%;
}

.tt-leg-btn {
  flex: 1;
  padding: 16px 12px;
  border-radius: 16px;
  border: none;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s, opacity 0.2s;
}

.tt-leg-btn.left {
  background: linear-gradient(135deg, #0984e3, #74b9ff);
}

.tt-leg-btn.right {
  background: linear-gradient(135deg, #e17055, #fab1a0);
}

.tt-leg-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.tt-leg-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* --- CHESS --- */
.chess-modal {
  background: radial-gradient(circle at center, #1b2e23 0%, #0d1712 100%);
  display: flex;
  flex-direction: column;
}

.chess-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  gap: 12px;
}

.chess-status-bar {
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 20px;
  border-radius: 999px;
  color: #c9e6d4;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chess-board-wrap {
  background: #2b1f17;
  border: 6px solid #422d20;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 4px;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(360px, 90vw);
  aspect-ratio: 1;
}

.chess-sq {
  display: grid;
  place-items: center;
  font-size: 28px;
  user-select: none;
  cursor: pointer;
  position: relative;
}

.chess-sq.light {
  background: #f0d9b5;
}

.chess-sq.dark {
  background: #b58863;
}

.chess-sq.selected {
  background: #7fc97f !important;
  box-shadow: inset 0 0 0 3px #27ae60;
}

.chess-sq.legal::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.7);
  position: absolute;
}

.white-piece {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.black-piece {
  color: #111111;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* Area boys */
.threat {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 120px;
  z-index: 20;
  background: rgba(60, 14, 12, .96);
  color: #fff;
  border: 2px solid #e8574a;
  border-radius: 16px;
  padding: 14px;
}

.threat.hidden {
  display: none;
}

.threat p {
  margin: 8px 0;
  line-height: 1.4;
}

.threat .thbar {
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
  margin-bottom: 6px;
}

.threat .thbar i {
  display: block;
  height: 100%;
  width: 100%;
  background: #e8574a;
}

.threat .row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.threat .btn {
  flex: 1;
}

/* flight screen */
.flightScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(#0e2a55, #4a86c9 60%, #cfe6f7);
  color: #fff;
  transition: opacity .6s
}

.flightScreen.out {
  opacity: 0;
  pointer-events: none
}

.flightSky {
  position: absolute;
  inset: 0;
  overflow: hidden
}

.flightPlane {
  position: absolute;
  left: -15%;
  top: 38%;
  font-size: 64px;
  animation: flyAcross 5.4s linear infinite;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35))
}

@keyframes flyAcross {
  0% {
    left: -15%;
    top: 55%;
    transform: rotate(-12deg)
  }

  50% {
    top: 30%;
    transform: rotate(0)
  }

  100% {
    left: 110%;
    top: 20%;
    transform: rotate(4deg)
  }
}

.flightTxt {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 22px;
  padding: 0 16px
}

.flightTxt .flightStep {
  font-size: 15px;
  opacity: .92
}

/* controller / keyboard focus in menus */
#sheetBody button:focus-visible,
#sheetBody input:focus-visible,
.phone-device button:focus-visible {
  outline: 3px solid #1fb36b;
  outline-offset: 2px;
}

/* controller cursor in mini-games */
.gp-cursor {
  outline: 4px solid #ffd24a !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 8px rgba(255, 210, 74, .35) !important;
  border-radius: 8px;
}

/* ======================= Landing page: danfo yellow, tar black, highway-sign green ======================= */
.ld {
  --ld-yellow: #ffc72c;
  --ld-tar: #17150f;
  --ld-sign: #0f5b3c;
  --ld-mist: #eef1ec;
  --ld-ink2: #4a463c;
  min-height: 100vh;
  background: #fff;
  color: var(--ld-tar);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.ld.hidden {
  display: none;
}

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

.ld a,
.ld button {
  -webkit-tap-highlight-color: transparent;
}

.ld :focus-visible {
  outline: 3px solid var(--ld-tar);
  outline-offset: 3px;
}

.ld-final :focus-visible {
  outline-color: #fff;
}

.ld-h1,
.ld-h2,
.ld-brand,
.ld-times time,
.ld-feats dt,
.ld-board-row.head {
  font-family: 'Bricolage Grotesque', 'Outfit', system-ui, sans-serif;
}

.ld-top {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(16px, 4vw);
}

.ld-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ld-tar);
  text-decoration: none;
}

.ld-brand b {
  font-weight: 800;
  background: var(--ld-tar);
  color: var(--ld-yellow);
  padding: 0 6px;
  margin-left: 2px;
  border-radius: 6px;
}

.ld-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-link {
  color: var(--ld-tar);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 10px;
}

.ld-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ld-btn {
  font: 700 14px/1 'Plus Jakarta Sans', system-ui, sans-serif;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.ld-btn:active {
  transform: translateY(1px);
}

.ld-btn.dark {
  background: var(--ld-tar);
  color: #fff;
}

.ld-btn.dark:hover {
  background: #2c2920;
}

.ld-btn.ghost {
  background: transparent;
  color: var(--ld-tar);
}

.ld-btn.ghost:hover {
  background: rgba(23, 21, 15, .08);
}

.ld-btn.line {
  background: transparent;
  color: var(--ld-tar);
  border-color: var(--ld-tar);
}

.ld-btn.line:hover {
  background: var(--ld-tar);
  color: #fff;
}

.ld-btn.yellow {
  background: var(--ld-yellow);
  color: var(--ld-tar);
}

.ld-btn.yellow:hover {
  background: #ffd65c;
}

.ld-btn.big {
  font-size: 16px;
  padding: 16px 22px;
}

.ld-hero {
  position: relative;
  isolation: isolate;
  background: var(--ld-yellow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 104px max(16px, 4vw) 56px;
  align-items: center;
}

.ld-h1 {
  margin: 0;
  font-size: clamp(2.9rem, 9vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.035em;
  font-weight: 800;
}

.ld-lead {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: #2b2718;
}

.ld-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ld-online {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.ld-online i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ld-sign);
  box-shadow: 0 0 0 4px rgba(15, 91, 60, .2);
}

.ld-board {
  margin: 0;
  background: var(--ld-sign);
  color: #fff;
  border-radius: 16px;
  padding: 14px;
  outline: 3px solid #fff;
  outline-offset: -9px;
  box-shadow: 0 0 0 4px var(--ld-tar);
}

.ld-board-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
}

.ld-board-row em {
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  opacity: .82;
  text-align: right;
}

.ld-board-row.head {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  padding-top: 18px;
  border-top: 2px solid rgba(255, 255, 255, .35);
}

.ld-board-row.head:first-child {
  border-top: 0;
  padding-top: 12px;
}

.ld-board-row.head.plane span:first-child::before {
  content: '\2708\FE0E';
  margin-right: 8px;
}

.ld-board-row.fly {
  margin-top: 6px;
  border-top: 2px solid rgba(255, 255, 255, .35);
  color: var(--ld-yellow);
}

.ld-board-row.fly em {
  opacity: 1;
  font-weight: 800;
  font-size: 15px;
}

@media (prefers-reduced-motion: no-preference) {
  .ld-board-row {
    animation: ld-flip .55s cubic-bezier(.2, .7, .2, 1) both;
  }

  .ld-board-row:nth-child(2) {
    animation-delay: .15s;
  }

  .ld-board-row:nth-child(3) {
    animation-delay: .27s;
  }

  .ld-board-row:nth-child(4) {
    animation-delay: .39s;
  }

  .ld-board-row:nth-child(5) {
    animation-delay: .51s;
  }

  .ld-board-row:nth-child(6) {
    animation-delay: .63s;
  }

  .ld-board-row:nth-child(7) {
    animation-delay: .75s;
  }

  @keyframes ld-flip {
    from {
      opacity: 0;
      transform: rotateX(-80deg);
      transform-origin: 50% 0;
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

.ld-hazard {
  height: 16px;
  background: repeating-linear-gradient(-45deg, var(--ld-tar) 0 14px, var(--ld-yellow) 14px 28px);
}

.ld-h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -.025em;
  font-weight: 800;
}

.ld-day,
.ld-people,
.ld-feats {
  padding: 64px max(16px, 4vw);
}

.ld-times {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 48px;
}

.ld-times li {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 2px solid var(--ld-tar);
}

.ld-times time {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.ld-times p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ld-ink2);
  max-width: 38em;
}

.ld-times p b {
  color: var(--ld-tar);
}

.ld-people {
  background: var(--ld-mist);
  display: grid;
  gap: 28px;
}

.ld-people-head p {
  margin: 14px 0 20px;
  max-width: 34em;
  line-height: 1.55;
  color: var(--ld-ink2);
}

.ld-tabs {
  display: inline-flex;
  padding: 4px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid var(--ld-tar);
}

.ld-tab {
  font: 700 15px/1 'Plus Jakarta Sans', system-ui, sans-serif;
  border: 0;
  background: transparent;
  color: var(--ld-tar);
  padding: 11px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.ld-tab.on {
  background: var(--ld-tar);
  color: var(--ld-yellow);
}

.ld-looks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ld-look {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 14px 8px 12px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 8px;
  font: 700 13px 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ld-tar);
  transition: border-color .12s ease, transform .12s ease;
}

.ld-look:hover {
  border-color: var(--ld-tar);
  transform: translateY(-2px);
}

.ld-look svg {
  width: 100%;
  max-width: 120px;
  height: 160px;
}

.ld-feats dl {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 48px;
}

.ld-feats dl>div {
  border-top: 2px solid var(--ld-tar);
  padding: 18px 0 24px;
}

.ld-feats dt {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.ld-feats dd {
  margin: 8px 0 0;
  line-height: 1.55;
  color: var(--ld-ink2);
  max-width: 40em;
}

.ld-final {
  background: var(--ld-tar);
  color: #fff;
  padding: 64px max(16px, 4vw);
  display: grid;
  gap: 24px;
  justify-items: start;
}

.ld-final .ld-h2 {
  color: var(--ld-yellow);
  font-size: clamp(2rem, 6vw, 3.8rem);
}

.ld-foot {
  background: var(--ld-tar);
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: 20px max(16px, 4vw) 28px;
}

.ld-foot p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}

@media (min-width: 760px) {
  .ld-times {
    grid-template-columns: 1fr 1fr;
  }

  .ld-feats dl {
    grid-template-columns: 1fr 1fr;
  }

  .ld-looks {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 980px) {
  .ld-hero {
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    padding-top: 120px;
    padding-bottom: 72px;
  }

  .ld-people {
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 56px;
  }

  .ld-looks {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .ld-hero {
    padding-top: 92px;
  }

  .ld-board-row {
    padding: 10px 12px;
  }

  .ld-board-row em {
    display: none;
  }
}

/* gender tabs on the signup card */
.gtabs {
  display: flex;
  gap: 8px;
  margin: 2px 0 10px;
}

.gtab {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  padding: 12px 10px;
  border-radius: 12px;
  border: 2px solid #d6dccf;
  background: #fff;
  color: #17150f;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.gtab .gi {
  font-size: 18px;
}

.gtab.on {
  background: #17150f;
  border-color: #17150f;
  color: #ffc72c;
}

.gtab:focus-visible {
  outline: 3px solid #1fb36b;
  outline-offset: 2px;
}

/* live city behind the hero: the 3D world drifts under a yellow veil so the copy stays readable */
.ld-hero>#stage {
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.ld-hero.live>#stage {
  opacity: 1;
}

.ld-hero.live::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 199, 44, .93) 0%, rgba(255, 199, 44, .78) 45%, rgba(255, 199, 44, .35) 100%);
}

@media (max-width: 700px) {
  .ld-hero.live::before {
    background: rgba(255, 199, 44, .82);
  }
}

.ld-hero {
  overflow: hidden;
}

.sit-btn {
  display: none !important;
}

/* Floating Camera & Sound Pill Widget (positioned on right under minimap) */
.cam-control-pill {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 218px);
  right: 38px;
  left: auto;
  z-index: 25;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  width: 44px;
  user-select: none;
  touch-action: manipulation;
  animation: pop .22s cubic-bezier(0.16, 1, 0.3, 1);
}

.ccp-btn {
  background: transparent;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.ccp-btn:hover {
  background: #f1f5f9;
  color: #047857;
  transform: scale(1.08);
}

.ccp-btn:active {
  transform: scale(0.92);
}

.ccp-btn.muted {
  color: #94a3b8;
}

.ccp-divider {
  width: 22px;
  height: 1px;
  background: #e2e8f0;
  margin: 3px 0;
}

/* ======================= ADDONS: Legal Modal, Emotes & NEPA ======================= */
.legal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 18, 13, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.legal-backdrop.hidden {
  display: none !important;
}

.legal-card {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 22px;
  width: min(520px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: pop .2s ease-out;
}

.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.legal-head h2 {
  font-size: 18px;
}

.legal-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 18px 0;
}

.legal-body {
  padding: 14px 18px 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim);
}

.legal-body h4 {
  color: var(--text);
  margin: 12px 0 4px;
}

.legal-body ul {
  padding-left: 18px;
  margin: 6px 0;
}

/* Emote Wheel / Quick Bar */
.emote-wrap {
  position: absolute;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 92px);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.emote-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(19, 34, 27, 0.9);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}

.emote-toggle:hover {
  transform: scale(1.08);
}

.emote-toggle:active {
  transform: scale(0.92);
}

.side-quick-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  margin-bottom: 2px;
}

.side-quick-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(19, 34, 27, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.side-quick-btn:hover {
  transform: scale(1.1);
  border-color: #fff;
}

.side-quick-btn:active {
  transform: scale(0.92);
}

.side-quick-btn.active {
  background: #f59e0b;
  color: #111;
  border-color: #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
  animation: pulse-border 1.2s infinite;
}

@keyframes pulse-border {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.emote-menu-head {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  padding: 4px 8px 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Photo Mode styling */
body.photo-mode #topbar,
body.photo-mode #nav,
body.photo-mode #needs,
body.photo-mode #mini,
body.photo-mode #camControlPill,
body.photo-mode #joy,
body.photo-mode #ctxBtn,
body.photo-mode #objective,
body.photo-mode #threat,
body.photo-mode #busRideBanner,
body.photo-mode #floatingHelpBtn,
body.photo-mode #floatingChatBtn,
body.photo-mode #whotInviteBanner,
body.photo-mode #phoneDevice,
body.photo-mode .emote-wrap {
  display: none !important;
}

#photoExitBar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 12px;
  background: rgba(8, 18, 13, 0.88);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  align-items: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: pop .2s ease-out;
}

#photoExitBar.hidden {
  display: none !important;
}

#photoExitBar span {
  font-weight: 700;
  font-size: 13px;
}

#photoExitBar button {
  background: #1fb36b;
  border: 0;
  color: #04150c;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

#photoExitBar button:hover {
  transform: scale(1.05);
}

#photoExitBar button.close-photo {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.emote-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(19, 34, 27, 0.94);
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: pop .18s ease-out;
}

.emote-menu.hidden {
  display: none;
}

.emote-menu button {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: #fff;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.emote-menu button:hover {
  background: var(--green);
  color: #04150c;
}

/* NEPA / Power Indicator inside Home */
.nepa-pill {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.nepa-pill.on {
  background: #dcfce7;
  color: #166534;
}

.nepa-pill.gen {
  background: #fef3c7;
  color: #92400e;
}

.nepa-pill.off {
  background: #fee2e2;
  color: #991b1b;
}

/* =========================================================================
   FLOATING CHAT BUTTON & SCREENSHOT-AUTHENTIC TABBED CHAT UI
   ========================================================================= */
.floating-chat-btn {
  position: fixed;
  bottom: 82px;
  left: 14px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0b1320;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  z-index: 90;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.floating-chat-btn:hover {
  transform: scale(1.08);
  border-color: #2dd4bf;
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.35);
}

.floating-chat-btn:active {
  transform: scale(0.94);
}

/* How to play pill button (matches user reference screenshot) */
.how-to-play-pill {
  position: fixed;
  bottom: 144px;
  left: 14px;
  background: #ffffff;
  color: #1e293b;
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  z-index: 90;
  border: 1px solid rgba(0, 0, 0, 0.06);
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.how-to-play-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.how-to-play-pill .htp-icon {
  font-size: 15px;
  line-height: 1;
}

.how-to-play-pill .htp-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.1px;
}

.how-to-play-pill .htp-close {
  font-size: 16px;
  line-height: 1;
  color: #94a3b8;
  margin-left: 4px;
  padding: 2px 4px;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.how-to-play-pill .htp-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.fcb-svg {
  display: block;
}

/* night: white icon + white ring so it stands out on the dark scene */
body.is-night .floating-chat-btn {
  background: #1e293b;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.6);
}

body.is-night .floating-chat-btn .fcb-svg {
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.55));
}

.fcb-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #0b1320;
}

.fcb-badge.hidden {
  display: none;
}

/* Mobile view: hide How To Play pill and floating Chat icon to declutter joystick and HUD */
@media (max-width: 768px), (pointer: coarse) and (max-width: 1024px) {
  #floatingHelpBtn,
  .how-to-play-pill,
  #floatingChatBtn,
  .floating-chat-btn {
    display: none !important;
  }
}

/* Chat Tabs Bar */
.chat-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.chat-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.chat-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.chat-tab-btn.on {
  background: #10b981;
  color: #041f14;
  border-color: #34d399;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* Direct 1-on-1 Contact Selector */
.chat-dm-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  font-size: 13px;
}

.chat-dm-select {
  flex: 1;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 13px;
}

/* Chat Messages Box (matches user Screenshot 2) */
.sheet .chatbox {
  background: #0b1320;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  height: 40vh;
  max-height: 380px;
  overflow-y: auto;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.chat-msg {
  padding: 3px 0;
  line-height: 1.45;
  font-size: 14.5px;
  overflow-wrap: anywhere;
}

.chat-user {
  color: #2dd4bf !important;
  font-weight: 700;
  margin-right: 6px;
}

.chat-city-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  margin-right: 6px;
  vertical-align: middle;
}

.chat-city-tag.ph {
  background: #0284c7;
  color: #fff;
}

.chat-city-tag.abj {
  background: #d97706;
  color: #fff;
}

.chat-text {
  color: #ffffff;
}

/* Pill Input Bar (matches user Screenshot 2) */
.chat-pill-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  margin-top: 10px;
}

.chat-pill-icon {
  font-size: 16px;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.chat-pill-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14.5px;
  padding: 8px 4px;
  outline: none;
  font-family: inherit;
}

.chat-pill-input::placeholder {
  color: #64748b;
}

.chat-pill-emoji {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, color 0.15s ease;
}

.chat-pill-emoji:hover {
  transform: scale(1.15);
  color: #f1f5f9;
}

.chat-pill-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f766e;
  border: none;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.chat-pill-send:hover {
  background: #14b8a6;
  transform: scale(1.06);
}

.chat-pill-send:active {
  transform: scale(0.92);
}

.chat-pill-send svg {
  display: block;
  transform: translate(1px, -1px);
}
.ld-foot a { color: #ffd34d; text-decoration: none; margin: 0 4px; } .ld-foot p + p { margin-top: 8px; }

.ld-foot a {
  color: #ffd34d;
  text-decoration: none;
  margin: 0 4px;
}

.ld-foot p+p {
  margin-top: 8px;
}

/* ==========================================================================
   🚕 UNCLE TUNDE 60-SECOND INTERACTIVE ONBOARDING HUD CARD
   ========================================================================== */
.tunde-card {
  background: linear-gradient(135deg, rgba(20, 28, 44, 0.95), rgba(12, 18, 30, 0.98));
  border: 1.5px solid #f59e0b;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.25);
  color: #fff;
  padding: 12px 18px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: tundeEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

@keyframes tundeEntrance {
  from { opacity: 0; transform: translateY(-16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tunde-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 14px;
}

.tunde-pilot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.tunde-avatar {
  font-size: 26px;
  background: #f59e0b;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.tunde-title-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tunde-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tunde-title-box small {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tunde-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tunde-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f59e0b;
  color: #141c2c;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tunde-badge.all-done {
  background: #10b981;
  color: #ffffff;
}

.tunde-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s;
  font-size: 13px;
}

.tunde-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tunde-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s, color 0.2s;
  font-size: 16px;
  line-height: 1;
}

.tunde-close-btn:hover {
  background: rgba(239, 68, 68, 0.45);
  color: #fff;
  transform: scale(1.08);
}

.tunde-card.fading-out {
  opacity: 0;
  transform: translateY(-20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tunde-steps {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  overflow: hidden;
}

.tunde-steps.collapsed {
  display: none;
}

.tunde-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s, border-color 0.2s;
}

.tunde-step.done {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.step-check {
  font-size: 16px;
  flex-shrink: 0;
}

.step-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-name {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.tunde-step.done .step-name {
  text-decoration: line-through;
  color: #94a3b8;
}

.step-payout {
  font-size: 10.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reward-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: #fef08a;
}

.reward-pill.rep {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.step-btn {
  flex-shrink: 0;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

/* ==========================================================================
   📱 NAIJAX PHONE APP STYLES
   ========================================================================== */
.phone-naijax-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  background: #0f172a;
}

.phone-naijax-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-naijax-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
}

.phone-naijax-compose {
  background: rgba(30, 41, 59, 0.9);
  border-radius: 12px;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-naijax-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  padding: 8px;
  font-size: 12px;
  box-sizing: border-box;
  resize: none;
  height: 52px;
}

.phone-naijax-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.phone-naijax-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-naijax-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.phone-naijax-post {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
}

.phone-post-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.phone-post-body {
  font-size: 12px;
  color: #e2e8f0;
  margin: 5px 0;
  line-height: 1.35;
}

.phone-post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
}

.phone-like-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 12px;
  padding: 2px 7px;
  color: #f87171;
  font-size: 10.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
