:root {
  --blue: #2a7de1;
  --blue-dark: #1b5aa8;
  --yellow: #ffd23f;
  --yellow-dark: #d9a800;
  --green: #36b37e;
  --green-dark: #1f8a5c;
  --red: #e5484d;
  --red-dark: #b3262b;
  --rj: #1e9bd7;
  --sp: #e5484d;
  --ink: #1d2433;
  --muted: #6b7385;
  --paper: #ffffff;
  --paper-2: #f3f5fa;
  --line: #e1e5ee;
  --shadow: 0 10px 30px rgba(15, 25, 50, .25);
  --radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #8fd3f7;
  color: var(--ink);
  font: 700 15px/1.35 'Nunito', system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

input, textarea, select { user-select: text; -webkit-user-select: text; font: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, .title { font-family: 'Lilita One', sans-serif; font-weight: 400; letter-spacing: .5px; margin: 0; }

#scene { position: fixed; inset: 0; }
#scene canvas { display: block; }
#overlay { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#modals { position: fixed; inset: 0; pointer-events: none; z-index: 80; }   /* acima do celular (65) e do HUD; abaixo da viagem (90) e do flash da foto (95) */
#modals > * { pointer-events: auto; }

/* ---------------------------------------------------------------- boot */
.boot {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; gap: 14px; text-align: center;
  background: linear-gradient(160deg, var(--rj) 0%, #7b5cd6 50%, var(--sp) 100%);
  color: #fff; transition: opacity .4s;
}
.boot.hide { opacity: 0; pointer-events: none; }
.logo {
  font-family: 'Lilita One', sans-serif; font-size: clamp(54px, 14vw, 96px); line-height: .9;
  color: #fff; -webkit-text-stroke: 3px #16305e; paint-order: stroke fill;
  text-shadow: 0 6px 0 #16305e, 0 12px 24px rgba(0,0,0,.35);
}
.logo small { display: block; font-size: .45em; color: var(--yellow); letter-spacing: 4px; }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border: 0; border-radius: 14px; cursor: pointer;
  font-family: 'Lilita One', sans-serif; font-size: 18px; letter-spacing: .4px;
  background: var(--paper-2); color: var(--ink);
  box-shadow: 0 4px 0 #c9cfdc;
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c9cfdc; }
.btn:disabled { filter: grayscale(1) opacity(.55); cursor: default; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-dark); }
.btn.primary:active { box-shadow: 0 1px 0 var(--blue-dark); }
.btn.go { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-dark); }
.btn.go:active { box-shadow: 0 1px 0 var(--green-dark); }
.btn.gold { background: var(--yellow); color: #4a3500; box-shadow: 0 4px 0 var(--yellow-dark); }
.btn.gold:active { box-shadow: 0 1px 0 var(--yellow-dark); }
.btn.danger { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dark); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--blue); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 15px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.icon { width: 46px; padding: 0; }

/* ---------------------------------------------------------------- formulários */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 800; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; }
.error-text { color: var(--red); font-size: 14px; min-height: 20px; margin: 4px 0 8px; }
.hint { color: var(--muted); font-size: 13px; font-weight: 700; }

.tabs { display: flex; gap: 6px; background: var(--paper-2); padding: 5px; border-radius: 14px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; font-weight: 900; color: var(--muted); position: relative; white-space: nowrap;
}
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.tab .badge { position: absolute; top: 2px; right: 2px; }

.badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900;
}
.badge:empty { display: none; }

/* ---------------------------------------------------------------- telas cheias */
.screen {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(16px, var(--safe-t)) 16px max(16px, var(--safe-b));
  overflow-y: auto; background: linear-gradient(160deg, rgba(30,155,215,.85), rgba(123,92,214,.85) 55%, rgba(229,72,77,.85));
}
.screen.clear { background: transparent; }
.card {
  width: min(440px, 100%); background: var(--paper); border-radius: 24px; padding: 22px;
  box-shadow: var(--shadow);
}
.card h2 { font-size: 26px; margin-bottom: 4px; }
.auth .logo { font-size: clamp(46px, 12vw, 72px); margin-bottom: 18px; text-align: center; }

/* ---------------------------------------------------------------- criador de personagem */
.creator {
  position: fixed; inset: 0; display: grid;
  grid-template-columns: 1fr min(460px, 46vw);
  pointer-events: none;
}
.creator > * { pointer-events: auto; }
.creator .preview-hint {
  align-self: end; justify-self: center; margin-bottom: 20px; pointer-events: none;
  background: rgba(0,0,0,.35); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px;
}
.creator .side {
  background: var(--paper); display: flex; flex-direction: column; box-shadow: var(--shadow);
  padding: max(18px, var(--safe-t)) 18px 0; min-height: 0;
}
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--blue); }
.creator h2 { font-size: 26px; }
.creator .step-body { flex: 1; overflow-y: auto; padding: 12px 2px 16px; min-height: 0; }
.creator .foot { display: flex; gap: 10px; padding: 12px 0 max(16px, var(--safe-b)); border-top: 1px solid var(--line); }
.creator .foot .btn { flex: 1; }
.group-label { font-size: 13px; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .6px; margin: 14px 0 8px; }

.city-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.city-card {
  border: 3px solid transparent; border-radius: 18px; padding: 14px; cursor: pointer; color: #fff; text-align: left;
  min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}
.city-card.rj { background: linear-gradient(160deg, #57c4f0, #1e7fb8); }
.city-card.sp { background: linear-gradient(160deg, #ff8a7a, #b02a44); }
.city-card b { font-family: 'Lilita One'; font-weight: 400; font-size: 24px; }
.city-card small { font-size: 12px; opacity: .92; }
.city-card .emoji { font-size: 36px; }
.city-card.selected { border-color: var(--yellow); box-shadow: 0 0 0 3px #fff inset, 0 6px 0 rgba(0,0,0,.2); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 2px var(--line);
}
.swatch.selected { box-shadow: 0 0 0 3px var(--blue); transform: scale(1.08); }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.option {
  border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; padding: 8px 6px;
  display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 12px; font-weight: 800; position: relative;
}
.option .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; }
.option.selected { border-color: var(--blue); background: #eef5ff; }
.option .price { font-size: 12px; color: #8a6d00; }
.option .tag { position: absolute; top: 4px; right: 4px; font-size: 10px; padding: 1px 6px; border-radius: 8px; color: #fff; }
.tag.rj { background: var(--rj); } .tag.sp { background: var(--sp); }
.option.locked { opacity: .5; }

/* ---------------------------------------------------------------- HUD */
.hud-top {
  position: fixed; top: max(10px, var(--safe-t)); left: 10px; right: 10px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.me-card {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  background: rgba(15, 25, 50, .55); border-radius: 30px; color: #fff; cursor: pointer; backdrop-filter: blur(4px);
}
.me-card .face {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(#5ab8ff, var(--blue)); border: 2px solid #fff;
}
.me-card .name { font-family: 'Lilita One'; font-size: 16px; line-height: 1; }
.me-card .where { font-size: 11px; opacity: .9; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 4px;
  background: rgba(15, 25, 50, .55); color: #fff; border-radius: 17px; font-weight: 900; backdrop-filter: blur(4px);
}
.pill .coin {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: radial-gradient(circle at 35% 35%, #fff3b0, var(--yellow) 60%, var(--yellow-dark)); color: #6b4e00;
  font-family: 'Lilita One';
}
.pill.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.2); } }
.hud-left { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hud-buttons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 60vw; }
.hud-btn {
  width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer; position: relative;
  background: rgba(255,255,255,.92); font-size: 22px; box-shadow: 0 3px 0 rgba(0,0,0,.18);
}
.hud-btn .badge { position: absolute; top: -4px; right: -4px; }
.hud-btn.on { background: var(--green); }
.hud-btn.off-mic { background: rgba(255,255,255,.92); }

.hud-bottom-right {
  position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(16px, var(--safe-b));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.action-btn {
  min-width: 76px; height: 76px; border-radius: 38px; border: 0; cursor: pointer; padding: 0 18px;
  background: var(--yellow); color: #4a3500; box-shadow: 0 5px 0 var(--yellow-dark), 0 8px 18px rgba(0,0,0,.25);
  font-family: 'Lilita One'; font-size: 17px; display: flex; align-items: center; gap: 8px;
}
.action-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--yellow-dark); }
.action-btn .ico { font-size: 28px; }
.action-btn.hidden { display: none; }
.round-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; font-size: 28px;
  background: rgba(255,255,255,.95); box-shadow: 0 4px 0 rgba(0,0,0,.2);
}
.round-btn.dash { background: var(--blue); color: #fff; width: 72px; height: 72px; font-size: 32px; box-shadow: 0 5px 0 var(--blue-dark); position: relative; }
.round-btn.dash.cooldown { filter: grayscale(.8) opacity(.6); }

.emote-wheel {
  position: fixed; right: 12px; bottom: calc(160px + var(--safe-b));
  display: grid; grid-template-columns: repeat(5, 54px); gap: 6px;
  padding: 10px; background: rgba(255,255,255,.96); border-radius: 20px; box-shadow: var(--shadow);
}
.emote-wheel button {
  width: 54px; height: 60px; border: 0; border-radius: 14px; background: var(--paper-2); cursor: pointer;
  display: grid; place-items: center; font-size: 26px; padding: 2px 0 0;
}
.emote-wheel button small { font-size: 9px; font-weight: 900; color: var(--muted); }
.emote-wheel button:active { background: #dde8ff; }

/* joystick de toque */
.joystick {
  position: fixed; left: 0; bottom: 0; width: 50vw; height: 55vh; touch-action: none;
}
.joy-base {
  position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 3px solid rgba(255,255,255,.6); display: none;
}
.joy-knob {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(255,255,255,.9); box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.joystick.active .joy-base { display: block; }
.joy-hint {
  position: absolute; left: 24px; bottom: calc(24px + var(--safe-b)); width: 90px; height: 90px; border-radius: 50%;
  border: 3px dashed rgba(255,255,255,.55); display: grid; place-items: center; color: rgba(255,255,255,.8); font-size: 11px; text-align: center;
}
.joystick.active .joy-hint { display: none; }

/* ---------------------------------------------------------------- etiquetas 3D */
.nametag {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap; will-change: transform;
  display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 12px;
  background: rgba(15,25,50,.6); color: #fff; font-size: 12px; font-weight: 900;
}
.nametag .city { font-size: 9px; padding: 1px 5px; border-radius: 8px; color: #fff; }
.nametag .city.rj { background: var(--rj); } .nametag .city.sp { background: var(--sp); }
.nametag.npc { background: rgba(255,210,63,.95); color: #4a3500; padding-left: 8px; }
.nametag.me { background: rgba(42,125,225,.85); }
.nametag.it { background: var(--red); }
.nametag .spk { display: none; }
.nametag.speaking .spk { display: inline; animation: pulse .6s infinite alternate; }
@keyframes pulse { to { transform: scale(1.25); } }
.emoji-bubble {
  position: absolute; transform: translate(-50%, -100%); font-size: 34px;
  background: #fff; border-radius: 50%; width: 54px; height: 54px; display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.25); animation: pop .3s cubic-bezier(.3,1.6,.6,1);
}
.emoji-bubble::after {
  content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: #fff; border-bottom: 0;
}
@keyframes pop { from { transform: translate(-50%, -100%) scale(.2); } }
.chat-bubble {
  position: absolute; transform: translate(-50%, -100%); max-width: 200px; padding: 6px 10px;
  background: #fff; border-radius: 12px; font-size: 13px; font-weight: 800; box-shadow: 0 3px 8px rgba(0,0,0,.2);
  white-space: normal; text-align: center;
}
.float-text {
  position: absolute; transform: translate(-50%, -100%); font-family: 'Lilita One'; font-size: 26px; color: #fff;
  -webkit-text-stroke: 2px #6b4e00; paint-order: stroke fill; animation: rise 1.4s ease-out forwards;
}
@keyframes rise { to { margin-top: -70px; opacity: 0; } }
.interact-marker {
  position: absolute; transform: translate(-50%, -100%); font-size: 26px; animation: bob 1s ease-in-out infinite;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.3));
}
@keyframes bob { 50% { margin-top: -8px; } }

/* ---------------------------------------------------------------- modais */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,18,40,.45); display: grid; place-items: center;
  padding: max(12px, var(--safe-t)) 12px max(12px, var(--safe-b)); animation: fade .15s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(520px, 100%); max-height: 100%; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
  animation: rise-in .2s cubic-bezier(.3,1.3,.6,1);
}
.modal.wide { width: min(760px, 100%); }
@keyframes rise-in { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; }
.modal-head h2 { flex: 1; font-size: 24px; }
.modal-head .close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper-2); font-size: 18px; cursor: pointer; }
.modal-body { padding: 4px 16px 16px; overflow-y: auto; min-height: 0; }
.modal-foot { display: flex; gap: 10px; padding: 12px 16px max(16px, var(--safe-b)); border-top: 1px solid var(--line); }
.modal-foot .btn { flex: 1; }

.toast-stack {
  position: fixed; top: max(66px, calc(var(--safe-t) + 56px)); left: 50%; transform: translateX(-50%); z-index: 85;
  display: grid; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none;
}
.toast {
  pointer-events: auto; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; animation: rise-in .25s; font-weight: 800;
}
.toast.error { background: #fff0f0; color: var(--red-dark); }
.toast.reward { background: #fff9dc; }
.toast .t-body { flex: 1; }
.toast .t-actions { display: flex; gap: 6px; }

/* ---------------------------------------------------------------- listas */
.list { display: grid; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--paper-2);
}
.row .grow { flex: 1; min-width: 0; }
.row .sub { font-size: 12px; color: var(--muted); }
.row.clickable { cursor: pointer; }
.row.me { background: #eef5ff; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #b7bdc9; flex: none; }
.dot.on { background: var(--green); }
.city-tag { font-size: 11px; padding: 2px 7px; border-radius: 8px; color: #fff; font-weight: 900; }
.city-tag.rj { background: var(--rj); } .city-tag.sp { background: var(--sp); }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }

/* ---------------------------------------------------------------- chat */
.chat-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%); z-index: 15;
  background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column;
  padding-top: var(--safe-t); transform: translateX(105%); transition: transform .22s;
}
.chat-panel.open { transform: none; }
.chat-panel .modal-head { padding-bottom: 6px; }
.chat-panel .tabs { margin: 0 12px 8px; }
.chat-sub { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; }
.chat-sub select { min-height: 38px; padding: 4px 10px; }
.messages { flex: 1; overflow-y: auto; padding: 4px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.msg { max-width: 88%; padding: 7px 11px; border-radius: 14px; background: var(--paper-2); align-self: flex-start; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: #dbeaff; }
.msg .who { font-size: 12px; font-weight: 900; cursor: pointer; }
.msg .who.rj { color: var(--rj); } .msg .who.sp { color: var(--sp); }
.msg .when { font-size: 10px; color: var(--muted); margin-left: 6px; }
.msg.system { align-self: center; background: transparent; color: var(--muted); font-size: 12px; text-align: center; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px max(12px, var(--safe-b)); border-top: 1px solid var(--line); }
.chat-input input { flex: 1; }
.chat-list .row { cursor: pointer; }

/* ---------------------------------------------------------------- salas */
.room-panel {
  position: fixed; left: 10px; top: calc(max(10px, var(--safe-t)) + 60px); width: min(330px, calc(100% - 20px));
  background: rgba(255,255,255,.96); border-radius: 20px; box-shadow: var(--shadow); padding: 12px;
  max-height: calc(100% - 180px); display: flex; flex-direction: column;
}
.room-panel.collapsed .rp-body { display: none; }
.rp-head { display: flex; align-items: center; gap: 8px; }
.rp-head h3 { flex: 1; font-size: 19px; }
.rp-code { font-family: 'Lilita One'; letter-spacing: 2px; background: var(--paper-2); padding: 2px 8px; border-radius: 8px; }
.rp-body { overflow-y: auto; min-height: 0; margin-top: 8px; }
.rp-status { text-align: center; padding: 8px; border-radius: 12px; background: #eef5ff; margin: 8px 0; font-weight: 900; }
.rp-status.count { background: var(--yellow); font-family: 'Lilita One'; font-size: 20px; font-weight: 400; }
.player-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; }
.player-row:nth-child(odd) { background: var(--paper-2); }
.player-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-row .mini { border: 0; background: transparent; cursor: pointer; font-size: 16px; padding: 4px; }
.player-row.speaking { box-shadow: 0 0 0 2px var(--green) inset; }
.player-row.offline { opacity: .5; }
.host-crown { font-size: 14px; }

.match-hud {
  position: fixed; top: max(10px, var(--safe-t)); left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; pointer-events: none;
}
.timer {
  font-family: 'Lilita One'; font-size: 30px; color: #fff; -webkit-text-stroke: 2px #16305e; paint-order: stroke fill;
  background: rgba(15,25,50,.45); padding: 0 16px; border-radius: 16px;
}
.role {
  font-family: 'Lilita One'; font-size: 18px; padding: 6px 14px; border-radius: 14px; color: #fff; background: var(--green);
}
.role.it { background: var(--red); animation: pulse .5s infinite alternate; }
.big-center {
  position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: 'Lilita One'; font-size: clamp(40px, 12vw, 90px); color: #fff; text-align: center;
  -webkit-text-stroke: 3px #16305e; paint-order: stroke fill; text-shadow: 0 6px 0 #16305e;
}
.big-center small { display: block; font-size: .35em; -webkit-text-stroke: 1.5px #16305e; }

.results-list .row { font-size: 16px; }
.results-list .rank { font-family: 'Lilita One'; font-size: 22px; width: 34px; text-align: center; }
.results-list .row.first { background: #fff4c2; }

.room-card { display: flex; align-items: center; gap: 10px; }
.room-card .count { font-family: 'Lilita One'; font-size: 18px; }
.state-tag { font-size: 11px; padding: 2px 8px; border-radius: 8px; background: var(--green); color: #fff; font-weight: 900; }
.state-tag.playing { background: var(--muted); }

/* ---------------------------------------------------------------- viagem */
.travel {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  background: linear-gradient(#7ec8f2, #bfe6fb); overflow: hidden;
}
.travel svg { width: min(900px, 100%); height: auto; max-height: 80vh; }
.travel .phase {
  position: absolute; top: max(24px, var(--safe-t)); left: 0; right: 0; text-align: center;
  font-family: 'Lilita One'; font-size: clamp(26px, 6vw, 44px); color: #fff; -webkit-text-stroke: 2px #16305e; paint-order: stroke fill;
}
.travel .skip { position: absolute; right: 16px; bottom: max(16px, var(--safe-b)); }
.cloud { fill: #fff; opacity: .85; }

/* ---------------------------------------------------------------- minigames */
.minigame { position: fixed; inset: 0; z-index: 25; background: rgba(10,18,40,.75); display: grid; place-items: center; padding: 12px; overflow-y: auto; }
.mg-box { width: min(480px, 100%); background: var(--paper); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); }
.mg-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: 'Lilita One'; font-size: 20px; }
.mg-players { margin-bottom: 8px; font-weight: 800; text-align: center; }
.mg-msg { text-align: center; min-height: 26px; font-weight: 900; margin-bottom: 10px; }
.pads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pad {
  aspect-ratio: 1.2; border: 0; border-radius: 22px; cursor: pointer; font-size: 44px; display: grid; place-items: center;
  color: #fff; font-family: 'Lilita One'; box-shadow: 0 6px 0 rgba(0,0,0,.2); transition: filter .1s, transform .1s;
  filter: brightness(.8) saturate(.8);
}
.pad small { display: block; font-size: 14px; }
.pad.lit { filter: brightness(1.25) saturate(1.2); transform: scale(1.04); }
.mg-canvas { display: block; margin: 0 auto; height: min(520px, calc(100vh - 230px)); width: auto; aspect-ratio: 360 / 520; max-width: 100%; border-radius: 16px; touch-action: none; background: #666; }

/* ---------------------------------------------------------------- loja */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.item-card {
  border: 2px solid var(--line); border-radius: 16px; padding: 10px; display: grid; gap: 6px; justify-items: center; text-align: center;
  background: #fff;
}
.item-card .ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 34px; }
.item-card .nm { font-size: 13px; font-weight: 900; min-height: 34px; }
.item-card.owned { background: #f0fbf5; }
.item-actions { display: grid; gap: 6px; width: 100%; }
.item-actions .btn { width: 100%; }

/* ---------------------------------------------------------------- viagem/aeroporto */
.ticket {
  border-radius: 18px; overflow: hidden; border: 2px dashed var(--line); margin-bottom: 12px;
}
.ticket .route {
  display: flex; align-items: center; justify-content: space-between; padding: 16px;
  background: linear-gradient(90deg, var(--rj), var(--sp)); color: #fff; font-family: 'Lilita One'; font-size: 26px;
}
.ticket .route.from-sp { background: linear-gradient(90deg, var(--sp), var(--rj)); }
.ticket .info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; }
.ticket .info div { display: grid; }
.ticket .info small { color: var(--muted); font-size: 12px; }
.ticket .info b { font-size: 20px; font-family: 'Lilita One'; font-weight: 400; }
.note { padding: 10px 12px; border-radius: 12px; background: #eef5ff; font-size: 14px; margin-bottom: 10px; }
.note.warn { background: #fff4d6; }
.note.good { background: #e7f8ef; }

.npc-text { font-size: 17px; line-height: 1.45; }
.npc-fact { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); font-size: 14px; }
.jam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.jam-pick { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; font-size: 14px; }
.jam-pick span { font-size: 30px; line-height: 1; }

.voice-bar {
  position: fixed; left: 10px; bottom: calc(max(16px, var(--safe-b)) + 150px);
  display: flex; flex-direction: column; gap: 8px;
}

/* ---------------------------------------------------------------- telas pequenas */
@media (max-width: 760px) {
  .creator { grid-template-columns: 1fr; grid-template-rows: 38vh 1fr; }
  .creator .side { grid-row: 2; border-radius: 24px 24px 0 0; padding-top: 16px; }
  .creator .preview-hint { display: none; }
  .hud-buttons { max-width: 50vw; }
  .hud-btn { width: 42px; height: 42px; font-size: 20px; }
  .room-panel { top: auto; bottom: calc(max(16px, var(--safe-b)) + 100px); max-height: 45vh; width: min(300px, calc(100% - 110px)); }
  .me-card .where { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .joystick { display: none; }
}

/* ---------------------------------------------------------------- mapa */
.minimap {
  position: fixed; right: 12px; top: calc(max(10px, var(--safe-t)) + 58px);
  width: 150px; height: 150px; border-radius: 50%; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.bigmap { overflow: auto; border-radius: 14px; margin-bottom: 8px; }
.bigmap canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.poi-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-weight: 800; font-size: 13px;
}
.chip-btn:hover { border-color: var(--blue); }
.buff-pill { background: rgba(31,138,92,.85); }
.emote-wheel .poses { grid-column: 1 / -1; display: flex; gap: 6px; }
.emote-wheel .poses button { flex: 1; width: auto; height: 44px; grid-auto-flow: column; gap: 6px; font-size: 20px; }
.emote-wheel .poses button small { font-size: 12px; }
@media (max-width: 760px) {
  .minimap { width: 104px; height: 104px; top: calc(max(10px, var(--safe-t)) + 104px); }
}

/* ---------------------------------------------------------------- minijogo de pedidos */
.order-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--paper-2); position: relative; margin-bottom: 10px; min-height: 76px; }
.order-card .customer { font-size: 40px; }
.order-card .order { flex: 1; display: flex; gap: 6px; font-size: 34px; background: #fff; border-radius: 12px; padding: 4px 10px; min-height: 48px; align-items: center; }
.order-card .patience { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 5px; background: #0001; border-radius: 3px; overflow: hidden; }
.order-card .patience i { display: block; height: 100%; width: 100%; background: var(--green); }
.order-card.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.tray { min-height: 56px; border: 3px dashed var(--line); border-radius: 14px; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 10px; }
.order-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.order-item { border: 0; border-radius: 14px; background: #fff4d6; padding: 8px 4px; font-size: 32px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 0 #e6d3a6; }
.order-item small { font-size: 11px; font-weight: 800; }
.order-item:active { transform: translateY(2px); box-shadow: none; }

.paint-colors { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.paint-colors button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.paint-colors button.on { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.1); }

/* ---------- bairros, transporte, metrô, shopping ---------- */
.fade-screen {
  position: fixed; inset: 0; z-index: 90; background: #0b0d10; opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center; transition: opacity .35s ease;
  color: #fff; font: 800 20px Nunito, sans-serif; text-align: center; padding: 16px;
}
.fade-screen.on { opacity: 1; pointer-events: auto; }
.metro-ride {
  position: fixed; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 60;
  width: min(92vw, 440px); background: #1d2129; color: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  font-family: Nunito, sans-serif; text-align: center;
}
.metro-ride .bar { height: 8px; background: var(--blue); transition: background .3s; }
.metro-ride .txt { font-size: 17px; padding: 10px 12px 2px; }
.metro-ride small { display: block; color: #9aa3b2; padding: 0 12px 10px; font-size: 12px; }
.hunt-hud {
  position: fixed; bottom: calc(96px + var(--safe-b)); left: 50%; transform: translateX(-50%); z-index: 55;
  background: rgba(29,36,51,.88); color: #fff; border-radius: 999px; padding: 6px 8px 6px 16px;
  font: 700 15px Nunito, sans-serif; display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.hunt-hud .btn { padding: 4px 12px; font-size: 13px; color: #fff; border-color: rgba(255,255,255,.4); }
.metro-map { overflow-x: auto; border-radius: 14px; border: 2px solid var(--line); margin-bottom: 8px; }
.metro-map canvas { display: block; width: 100%; min-width: 560px; height: auto; cursor: pointer; }
.metro-route .leg { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0; }
.metro-route .btn.block { margin-top: 10px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; flex: none; }
.chip-btn.here { border-color: var(--blue); background: #eaf2ff; }
.transit-info { margin: 4px 0 10px; }
.transit-info .btn.block { margin-top: 8px; }
.district-banner {
  position: fixed; top: calc(80px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 58;
  background: rgba(29,36,51,.9); color: #fff; border-radius: 16px; padding: 10px 22px 12px; text-align: center;
  font-family: Nunito, sans-serif; box-shadow: var(--shadow); max-width: min(92vw, 520px); pointer-events: none;
  animation: bannerIn .35s ease; transition: opacity .6s;
}
.district-banner small { display: block; color: #ffd23f; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.district-banner b { display: block; font: 26px "Lilita One", sans-serif; margin: 2px 0; }
.district-banner span { display: block; font-size: 13px; color: #cfd6e2; }
.district-banner.out { opacity: 0; }
@keyframes bannerIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.district-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--line); font-size: 15px; color: var(--ink); }
.district-head small { color: var(--muted); font-weight: 700; }
.district-head .go-cell { margin-left: auto; font-size: 12px; padding: 4px 10px; }
.poi-sub { font-size: 12px; font-weight: 800; color: var(--muted); margin: 8px 0 4px; text-transform: uppercase; letter-spacing: .05em; }
.body-stat { margin: 12px 0; }
.body-stat div { display: flex; justify-content: space-between; font-size: 15px; }
.body-stat .bar { height: 14px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; display: block; }
.body-stat .bar i { display: block; height: 100%; border-radius: 999px; transition: width .4s; }
.body-stat small { color: var(--muted); }
.item-card.on { outline: 3px solid var(--green); }
.wp-pill {
  position: fixed; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 50;
  background: #ffd23f; color: #1d2433; font: 800 14px Nunito, sans-serif; padding: 6px 14px; border-radius: 999px;
  box-shadow: var(--shadow); pointer-events: none; white-space: nowrap; max-width: 70vw; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- vida, briga e polícia ---------- */
.hp-pill { padding: 0 12px 0 10px; }
.hp-bar { display: inline-block; width: 86px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.hp-bar i { display: block; height: 100%; width: 100%; background: #2ecc71; border-radius: 999px; transition: width .25s, background .25s; }
.wanted-pill { background: rgba(179, 38, 43, .88); animation: wanted 1s infinite; font-size: 13px; }
@keyframes wanted { 50% { background: rgba(27, 90, 168, .88); } }
.round-btn.punch { background: #ffe0cc; }
.round-btn.jump { background: #d9f0ff; }
.hurt-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: 0; box-shadow: inset 0 0 120px 40px rgba(229, 72, 77, .75); }
.hurt-vignette.on { animation: hurt .6s ease-out; }
@keyframes hurt { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- ônibus e táxi ---------- */
.ride-panel {
  position: fixed; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 60;
  width: min(94vw, 460px); background: #1d2129; color: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  font-family: Nunito, sans-serif; text-align: center;
}
.ride-panel .bar { height: 8px; background: var(--yellow); }
.ride-panel .txt { font-size: 16px; padding: 10px 12px 6px; }
.ride-panel .btns { display: flex; gap: 8px; justify-content: center; padding: 0 10px 10px; flex-wrap: wrap; }
.ride-panel .btn { font-size: 14px; padding: 8px 14px; }

/* ---------- trabalhos, futebol e pipa ---------- */
.job-hud { top: calc(12px + var(--safe-t)); bottom: auto; }
.match-hud {
  position: fixed; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 55;
  background: rgba(29,36,51,.92); color: #fff; border-radius: 999px; padding: 6px 8px 6px 16px;
  font: 800 15px Nunito, sans-serif; display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.match-hud b { font: 24px "Lilita One", sans-serif; letter-spacing: .04em; }
.match-hud .team { font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.match-hud .team.blue { background: #1e6fb8; }
.match-hud .team.red { background: #d62828; }
.match-hud .btn { padding: 4px 12px; font-size: 13px; color: #fff; border-color: rgba(255,255,255,.4); }
.goal-flash {
  position: fixed; top: 32%; left: 50%; transform: translate(-50%, -50%); z-index: 70; pointer-events: none;
  font: 54px "Lilita One", sans-serif; color: #fff; text-shadow: 0 4px 0 #1d2433, 0 0 30px rgba(0,0,0,.5);
  animation: goalIn 1.6s ease forwards;
}
.goal-flash.good { color: var(--yellow); }
@keyframes goalIn { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1); opacity: 0; } }
.train-btns { display: flex; gap: 10px; margin-top: 8px; }
.train-btns .btn { flex: 1; font-size: 18px; padding: 14px 0; touch-action: none; user-select: none; }
.train-lines { margin: 6px 0 10px; font-size: 13px; }
.train-line { margin: 4px 0; }

/* ---------- celular ---------- */
.phone {
  position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: calc(100px + var(--safe-b)); z-index: 65;
  width: min(300px, 86vw); height: min(560px, 72vh); display: flex; flex-direction: column;
  background: #111; border-radius: 34px; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 0 0 2px #333;
  font-family: Nunito, sans-serif; animation: phoneIn .25s ease;
}
@keyframes phoneIn { from { transform: translateY(40px); opacity: 0; } }
.ph-top { display: flex; justify-content: space-between; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 16px 6px; }
.ph-body { flex: 1; overflow-y: auto; background: linear-gradient(160deg, #fdfbff, #e8f1ff); border-radius: 24px; padding: 12px; color: var(--ink); }
.ph-body h4 { margin: 2px 0 10px; font: 20px "Lilita One", sans-serif; }
.ph-home { display: flex; justify-content: center; gap: 30px; padding: 8px 0 2px; }
.ph-home button { background: none; border: 0; color: #fff; font-size: 16px; cursor: pointer; opacity: .8; }
.ph-wall { background: linear-gradient(135deg, var(--blue), #7b2cbf); color: #fff; border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.ph-wall b { display: block; font: 22px "Lilita One", sans-serif; }
.ph-wall small { font-weight: 800; opacity: .9; }
.ph-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ph-apps button { position: relative; border: 0; background: #fff; border-radius: 18px; padding: 10px 2px 8px; font: 800 12px Nunito, sans-serif; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 #d6dbe6; }
.ph-apps button span { display: block; font-size: 30px; margin-bottom: 2px; }
.ph-badge { position: absolute; top: 6px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.ph-row { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.ph-row .grow { flex: 1; min-width: 0; }
.ph-row b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-row small { color: var(--muted); font-size: 11px; }
.ph-row .dot { background: #b8bec6; margin: 0; }
.ph-row .dot.on { background: var(--green); }
.ph-row .btn { padding: 6px 10px; font-size: 13px; }
.ph-row.btnlike { background: #fff; border: 0; border-radius: 12px; margin-bottom: 6px; cursor: pointer; font-family: inherit; box-shadow: 0 2px 0 #d6dbe6; }
.ph-row .price { font-weight: 900; font-size: 13px; }
.ph-sub { font-size: 12px; color: var(--muted); margin: 10px 2px 4px; }
.ph-empty { font-size: 13px; color: var(--muted); text-align: center; margin: 24px 6px; }
.ph-add { display: flex; gap: 6px; margin-bottom: 8px; }
.ph-add input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; font: 700 14px Nunito, sans-serif; }
.ph-call { text-align: center; padding-top: 30px; }
.ph-call b { display: block; font: 24px "Lilita One", sans-serif; margin-top: 10px; }
.ph-call small { color: var(--muted); font-weight: 800; }
.ph-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 54px; background: linear-gradient(#5ab8ff, var(--blue)); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(42,125,225,.18); } }
.ph-call-btns { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.ph-cam-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ph-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.ph-gallery img { width: 100%; border-radius: 10px; cursor: pointer; aspect-ratio: 4 / 3; object-fit: cover; }
.call-bar {
  position: fixed; top: calc(60px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 62;
  background: var(--green); color: #fff; border-radius: 999px; padding: 6px 8px 6px 16px; font: 800 14px Nunito, sans-serif;
  display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow);
}
.photo-flash { position: fixed; inset: 0; background: #fff; z-index: 95; pointer-events: none; animation: flashOut .5s ease-out forwards; }
@keyframes flashOut { from { opacity: .9; } to { opacity: 0; } }
.photo-view { display: block; width: 100%; border-radius: 12px; }
@media (max-width: 760px) {
  .phone { right: 50%; transform: translateX(50%); bottom: calc(90px + var(--safe-b)); }
  .hp-bar { width: 64px; }
}

/* ---------------------------------------------------------------- mapa da cidade com lista de lugares */
.modal.map-modal { width: min(1180px, 100%); height: 100%; }
.map-modal .modal-body { display: flex; flex-direction: column; flex: 1; }
.cmap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 14px; flex: 1; min-height: 0; }
.cmap-map { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.cmap-map .bigmap { flex: none; overflow: auto; max-height: 64vh; overscroll-behavior: contain; }
.cmap-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.cmap-search { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 16px; font-weight: 700; outline: none; }
.cmap-search:focus { border-color: var(--blue); }
.cmap-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chip {
  border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; cursor: pointer;
  font-weight: 800; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; gap: 4px;
}
.cat-chip small { background: var(--paper-2); border-radius: 999px; padding: 0 7px; font-size: 11px; color: var(--muted); }
.cat-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-chip.on small { background: rgba(255,255,255,.25); color: #fff; }
.cat-chip:disabled { opacity: .45; cursor: default; }
.cmap-cell { border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; font-weight: 800; }
.cmap-count { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cmap-list { overflow-y: auto; min-height: 0; flex: 1; padding-right: 2px; }
.place-group { margin-bottom: 10px; }
.place-head {
  position: sticky; top: 0; z-index: 1; background: var(--paper); padding: 6px 2px; font-weight: 900; font-size: 15px;
  display: flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--line);
}
.place-head em { white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--blue); border-radius: 999px; padding: 1px 8px; }
.place-head small { margin-left: auto; color: var(--muted); font-weight: 800; }
.place-row {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent;
  padding: 8px 6px; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink);
}
.place-row:hover, .place-row:focus-visible { background: var(--paper-2); outline: none; }
.place-row .pi { width: 36px; height: 36px; flex: none; display: grid; place-items: center; font-size: 20px; background: var(--paper-2); border-radius: 10px; }
.place-row .grow { flex: 1; min-width: 0; display: grid; }
.place-row b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-row small { font-size: 12px; color: var(--muted); font-weight: 700; }
.place-row .go { color: var(--blue); font-weight: 900; }
@media (max-width: 760px) {
  .modal.map-modal { height: auto; }
  .map-modal .modal-body { display: block; }
  .cmap { display: block; }
  .cmap-map .bigmap { max-height: 46vh; }
  .cmap-side { margin-top: 8px; }
  .cmap-list { overflow: visible; }
  .place-head { top: -4px; }
}

/* ---------------------------------------------------------------- denunciar / bloquear pela mensagem */
.msg { position: relative; }
.msg-more {
  position: absolute; top: 4px; right: 4px; border: 0; background: transparent; color: var(--muted);
  font-size: 16px; font-weight: 900; line-height: 1; padding: 2px 6px; border-radius: 8px; cursor: pointer;
}
.msg-more:hover, .msg-more:focus-visible { background: var(--paper-2); color: var(--ink); outline: none; }
.quote-msg {
  background: var(--paper-2); border-left: 4px solid var(--line); border-radius: 10px; padding: 8px 12px;
  margin-bottom: 12px; font-weight: 700; color: var(--ink); word-break: break-word;
}
.msg:has(.msg-more) { padding-right: 30px; }

/* ---------------------------------------------------------------- Zap (app de conversas do celular) */
/* identidade própria: raio laranja-amarelo, balões azul-marinho, fundo creme */
.ph-body.zap { --zap: #ff8a1f; --zap-2: #ffc234; --zap-ink: #1d2a4d; background: #fff8ee; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.zap-head, .zap-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(135deg, var(--zap), var(--zap-2)); color: #fff; }
.zap-logo { flex: 1; font-family: 'Lilita One', sans-serif; font-size: 22px; letter-spacing: .5px; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.zap-status { border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--zap-ink); font: 800 12px Nunito, sans-serif; padding: 5px 10px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.zap-bar .grow { display: grid; min-width: 0; }
.zap-bar b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zap-bar small { font-size: 11px; font-weight: 800; opacity: .92; display: flex; align-items: center; gap: 5px; }
.zap-back { border: 0; background: rgba(255,255,255,.28); color: #fff; width: 34px; height: 34px; flex: none; border-radius: 50%; font: 900 18px/1 system-ui, sans-serif; display: grid; place-items: center; cursor: pointer; }
.zap-tools { display: flex; gap: 6px; padding: 8px 10px; }
.zap-btn { border: 2px solid #ffd9a8; background: #fff; color: var(--zap-ink); border-radius: 12px; padding: 7px 10px; font: 800 12px Nunito, sans-serif; cursor: pointer; flex: 1; }
.zap-btn.small { flex: none; padding: 5px 8px; border-color: rgba(255,255,255,.6); }
.zap-btn.danger { color: var(--red-dark); border-color: #ffd0d0; margin: 12px 0; width: 100%; }
.zap-btn:disabled { opacity: .6; }
.zap-list { overflow-y: auto; flex: 1; padding: 0 8px 8px; }
.zap-row { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; padding: 8px 6px; border-radius: 14px; cursor: pointer; font: inherit; color: var(--zap-ink); }
.zap-row:not(.static):hover { background: #fff0db; }
.zap-row .grow { flex: 1; min-width: 0; display: grid; }
.zap-row b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zap-row small { font-size: 12px; color: #7a6a58; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zap-av { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 900 17px Nunito, sans-serif; color: #fff; background: linear-gradient(135deg, #3a6ea5, var(--zap-ink)); }
.zap-av.group { background: linear-gradient(135deg, var(--zap), var(--zap-2)); font-size: 18px; }
.zap-av .zdot { position: absolute; right: -1px; bottom: -1px; border: 2px solid #fff8ee; }
.zap-meta { display: grid; justify-items: end; gap: 3px; }
.zap-meta small { font-size: 10px; }
.zap-unread { font-style: normal; min-width: 20px; height: 20px; border-radius: 999px; background: var(--zap); color: #fff; font: 900 11px/20px Nunito, sans-serif; text-align: center; padding: 0 6px; }
.zdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #b9bfc9; flex: none; }
.zdot.on { background: #2fbf71; } .zdot.busy { background: #ff5a36; } .zdot.play { background: #8b5cf6; } .zdot.call { background: #2a7de1; }
.zap-msgs { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px;
  background: radial-gradient(circle at 20% 10%, rgba(255,194,52,.12), transparent 40%), #fff8ee; }
.zap-bub { position: relative; max-width: 82%; align-self: flex-start; background: #fff; border: 1px solid #f1e2cc; color: var(--zap-ink);
  border-radius: 16px 16px 16px 4px; padding: 7px 10px 16px; font-size: 14px; font-weight: 700; word-break: break-word; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.zap-bub.mine { align-self: flex-end; background: var(--zap-ink); border-color: var(--zap-ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.zap-bub:has(.msg-more) { padding-right: 26px; }
.zap-bub .msg-more { top: 2px; right: 2px; }
.zap-who { display: block; font-size: 11px; font-weight: 900; margin-bottom: 1px; }
.zap-who.rj { color: var(--rj); } .zap-who.sp { color: var(--sp); }
.zap-time { position: absolute; right: 8px; bottom: 3px; font-size: 9px; font-weight: 800; opacity: .6; }
.zap-bub.invite { display: grid; gap: 6px; min-width: 200px; }
.zap-card { display: flex; align-items: center; gap: 8px; background: rgba(255,138,31,.12); border-radius: 12px; padding: 8px; }
.zap-bub.mine .zap-card { background: rgba(255,255,255,.12); }
.zap-card .grow { display: grid; }
.zap-card small { font-size: 11px; opacity: .8; }
.zap-card-ic { font-size: 24px; }
.zap-note { font-size: 11px; opacity: .75; }
.zap-older { align-self: center; border: 0; background: #ffe7c7; color: var(--zap-ink); font: 800 12px Nunito, sans-serif; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.zap-input, .zap-find { display: flex; gap: 6px; padding: 8px; background: #fff; border-top: 1px solid #f1e2cc; }
.zap-input input, .zap-find input { flex: 1; min-width: 0; border: 2px solid #f1e2cc; border-radius: 999px; padding: 8px 12px; font: 700 14px Nunito, sans-serif; outline: none; }
.zap-input input:focus, .zap-find input:focus { border-color: var(--zap); }
.zap-input button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--zap), var(--zap-2)); color: #fff; font-size: 17px; cursor: pointer; }
.zap-find { border-top: 0; background: transparent; }
.ph-body.zap .ph-sub { margin: 10px 4px 2px; }

/* ---------------------------------------------------------------- eventos */
.ev-card { background: #fff; border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(15,25,50,.08); border-left: 5px solid var(--line); display: grid; gap: 5px; }
.ev-card.ativo { border-left-color: var(--green); } .ev-card.pausado { border-left-color: #f2b705; } .ev-card.publicado { border-left-color: var(--blue); }
.ev-card.encerrando, .ev-card.encerrado { border-left-color: #9aa3ad; }
.ev-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ev-top b { font-size: 15px; } .ev-top small { font-size: 11px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.ev-where, .ev-desc { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0; }
.ev-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 800; }
.ev-btns { display: flex; gap: 6px; }
.ev-res { font-size: 12px; font-weight: 900; color: var(--green-dark); }
.event-banner {
  position: fixed; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 57;
  display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; color: #fff; font-weight: 900; font-size: 13px;
  background: linear-gradient(135deg, #7b2cbf, #e5484d); box-shadow: 0 6px 16px rgba(0,0,0,.25); white-space: nowrap; max-width: calc(100% - 240px);
}
.event-banner b { overflow: hidden; text-overflow: ellipsis; }
.event-banner span { background: rgba(255,255,255,.2); border-radius: 999px; padding: 2px 9px; }
.event-banner.paused { background: linear-gradient(135deg, #6b7385, #9aa3ad); }
@media (max-width: 760px) { .event-banner { top: calc(118px + var(--safe-t)); max-width: calc(100% - 24px); } }

/* ---------------------------------------------------------------- Insta (fotos do jogo) */
/* identidade própria: polaroide, verde-água e lima */
.ph-body.insta { --ig: #13b5a0; --ig-2: #8bd43a; --ig-ink: #17323a; background: #eef7f3; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.ig-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #d9ece5; }
.ig-logo { flex: 1; display: flex; align-items: center; gap: 7px; font: 22px 'Lilita One', sans-serif; color: var(--ig-ink); }
.ig-logo.small { font-size: 17px; }
.ig-lens { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--ig), var(--ig-2)); position: relative; flex: none; }
.ig-lens::after { content: ''; position: absolute; inset: 5px; border: 3px solid #fff; border-radius: 50%; }
.ig-new { border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--ig), var(--ig-2)); color: #fff; font: 900 12px Nunito, sans-serif; padding: 7px 12px; cursor: pointer; }
.ig-new.block { width: 100%; padding: 10px; font-size: 14px; }
.ig-new:disabled { opacity: .6; }
.ig-back { border: 0; background: #e3f3ee; color: var(--ig-ink); width: 34px; height: 34px; border-radius: 50%; font: 900 18px/1 system-ui, sans-serif; cursor: pointer; }
.ig-tabs { display: flex; gap: 6px; padding: 8px 10px; background: #fff; }
.ig-tabs button { flex: 1; border: 2px solid #d9ece5; background: #fff; border-radius: 999px; padding: 5px; font: 800 12px Nunito, sans-serif; color: var(--ig-ink); cursor: pointer; }
.ig-tabs button.on { background: var(--ig-ink); border-color: var(--ig-ink); color: #fff; }
.ig-feed { flex: 1; overflow-y: auto; padding: 10px; display: grid; gap: 14px; align-content: start; }
.ig-card { background: #fff; padding: 8px 8px 6px; border-radius: 4px; box-shadow: 0 3px 10px rgba(23,50,58,.16); transform: rotate(-.4deg); }
.ig-card:nth-child(even) { transform: rotate(.5deg); }
.ig-photo { aspect-ratio: 4 / 3; background: #dfe9e5; overflow: hidden; }
.ig-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-caption { margin: 8px 2px 2px; font: 700 14px/1.3 Nunito, sans-serif; color: var(--ig-ink); word-break: break-word; }
.ig-meta { display: flex; align-items: center; gap: 6px; margin: 4px 2px; font-size: 11px; color: #62807a; font-weight: 700; }
.ig-meta span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-author { cursor: pointer; font-size: 12px; color: var(--ig-ink); } .ig-author.rj { color: var(--rj); } .ig-author.sp { color: var(--sp); }
.ig-more { border: 0; background: transparent; color: #62807a; font-size: 16px; font-weight: 900; cursor: pointer; padding: 0 4px; border-radius: 8px; }
.ig-react { display: flex; gap: 4px; flex-wrap: wrap; padding: 2px; }
.ig-react button { border: 1px solid #e0ece8; background: #f6fbf9; border-radius: 999px; padding: 3px 8px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.ig-react button.on { border-color: var(--ig); background: #dff6f0; }
.ig-react small { font: 900 11px Nunito, sans-serif; color: var(--ig-ink); }
.ig-com { margin-left: auto; }
.ig-comments { background: #fff; border-radius: 12px; padding: 8px 10px; display: grid; gap: 6px; }
.ig-c { font-size: 13px; font-weight: 700; color: var(--ig-ink); position: relative; padding-right: 22px; word-break: break-word; }
.ig-c b.rj { color: var(--rj); } .ig-c b.sp { color: var(--sp); }
.ig-c .ig-more { position: absolute; right: 0; top: 0; }
.ig-input { display: flex; gap: 6px; padding: 8px; background: #fff; border-top: 1px solid #d9ece5; }
.ig-input input { flex: 1; min-width: 0; border: 2px solid #d9ece5; border-radius: 999px; padding: 8px 12px; font: 700 14px Nunito, sans-serif; outline: none; }
.ig-input input:focus { border-color: var(--ig); }
.ig-input button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--ig), var(--ig-2)); color: #fff; font-size: 17px; cursor: pointer; }
.ig-compose { display: grid; gap: 8px; margin-top: 8px; }
.ig-compose textarea { width: 100%; border: 2px solid #d9ece5; border-radius: 10px; padding: 8px; font: 700 14px Nunito, sans-serif; resize: none; }
.ig-vis { font: 800 12px Nunito, sans-serif; color: var(--ig-ink); display: flex; align-items: center; gap: 6px; }
.ig-older { justify-self: center; border: 0; background: #d8efe7; color: var(--ig-ink); font: 800 12px Nunito, sans-serif; border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* ---------------------------------------------------------------- garagem e veículo */
.gar-grid { display: grid; gap: 10px; margin-top: 10px; }
.gar-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px; }
.gar-card.owned { border-color: #cfe8d9; }
.gar-card.on { border-color: var(--green); box-shadow: 0 0 0 3px rgba(54,179,126,.18); }
.gar-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--c) 28%, #fff); border: 3px solid var(--c); }
.gar-info { min-width: 0; display: grid; gap: 2px; }
.gar-info b { font-size: 15px; } .gar-info small { font-size: 11px; font-weight: 800; color: var(--muted); }
.gar-info p { margin: 2px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.gar-speed { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.gar-speed i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow)); }
.gar-act { display: grid; gap: 6px; justify-items: end; text-align: right; }
.phone .gar-card { grid-template-columns: 44px 1fr; }
.phone .gar-ic { width: 44px; height: 44px; font-size: 22px; }
.phone .gar-act { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.veh-btn {
  position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: calc(210px + var(--safe-b)); z-index: 56;
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: var(--green); color: #fff;
  font-size: 24px; display: grid; place-items: center; line-height: 1; box-shadow: 0 6px 16px rgba(0,0,0,.25); cursor: pointer;
}
.veh-btn small { font: 900 10px Nunito, sans-serif; }

/* sair de um lugar fechado (hotel) de qualquer ponto dele */
.place-exit {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(64px + env(safe-area-inset-top)); z-index: 56;
  padding: 9px 18px; border-radius: 999px; border: 2px solid #fff; background: #b8860b; color: #fff;
  font: 900 14px Nunito, sans-serif; box-shadow: 0 6px 16px rgba(0,0,0,.25); cursor: pointer;
}
