/* PixCity — styles de la ville 3D (page d'accueil). Les pages secondaires ont leurs styles dans layout.php. */
[hidden]:not([hidden="until-found" i]) {
  display: none !important;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
img {
  max-width: 100%;
}
/* Layout: full-screen 3D city, floating glass UI — top bar, side sheet (bottom sheet on phones), live feed card. Single sunny-sky look. */
:root {
  --sky-top: #9fd0ff;
  --sky-low: #e3efff;
  --ink: #1c1640;
  --ink-2: #5b5383;
  --ink-3: #8e87b0;
  --accent: #7c4dff;
  --accent-deep: #5a2fe0;
  --accent-soft: #efe8ff;
  --pink: #ff4f9a;
  --good: #13a35a;
  --good-soft: #e5fbef;
  --glass: rgba(255, 255, 255, 0.9);
  --line: #e9e2ff;
  --chip: #f6f2ff;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  color-scheme: light;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(var(--sky-top), var(--sky-low) 60%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
#scene {
  position: fixed;
  inset: 0;
  touch-action: none;
}
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
#scene canvas.hover {
  cursor: pointer;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}
.emo {
  font-family: var(--emoji);
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 40px rgba(50, 25, 130, 0.16);
}

/* top bar */
.top {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}
.top > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 18px;
}
.brand .mark {
  font-size: 26px;
  line-height: 1;
}
.brand b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.6px;
}
.brand b span {
  color: var(--accent);
}
.stats {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  font-variant-numeric: tabular-nums;
}
.stat {
  padding: 5px 12px;
  border-radius: 12px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}
.stat small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat.free strong {
  color: var(--accent);
}
.spacer {
  flex: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 5px 0 var(--accent-deep);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--accent-deep);
}
.btn.light {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 5px 0 #ddd0ff;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* hint card */
.hint {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 300px;
  border-radius: 22px;
  padding: 18px 18px 16px;
  z-index: 4;
}
.hint h1 {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
  text-wrap: balance;
}
.hint h1 em {
  font-style: normal;
  color: var(--pink);
}
.hint p {
  margin: 0 0 12px;
  color: var(--ink-2);
  line-height: 1.45;
}
.legend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 12px;
  align-items: center;
}
.legend .k {
  font-size: 18px;
  text-align: center;
}
.legend .plus {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  color: var(--accent);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #fff;
}
.hint .close {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--ink-3);
  font-size: 18px;
  padding: 4px 6px;
}
.prices {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.domain {
  font-family: var(--display);
  font-weight: 800;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.2px;
}
.prices span {
  background: var(--chip);
  border-radius: 10px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
}

/* feed */
.feed {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 300px;
  border-radius: 22px;
  padding: 14px 16px;
  z-index: 4;
  max-height: 44vh;
  overflow: auto;
}
.feed h2,
.panel h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.tabs button {
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-3);
}
.tabs button[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 12px;
  width: 100%;
  text-align: left;
}
.row:hover {
  background: var(--chip);
}
.row .e {
  font-size: 26px;
  width: 32px;
  text-align: center;
}
.row .t {
  flex: 1;
  min-width: 0;
}
.row .t b {
  display: block;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .t small {
  color: var(--ink-3);
  font-size: 12px;
}
.row .v {
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.empty {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
  padding: 6px 4px 4px;
}

/* tooltip */
.tip {
  position: fixed;
  z-index: 6;
  pointer-events: none;
  border-radius: 14px;
  padding: 9px 12px;
  transform: translate(14px, 14px);
  font-size: 13px;
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}
.tip .e {
  font-size: 24px;
}
.tip b {
  display: block;
  font-weight: 800;
}
.tip small {
  color: var(--ink-3);
}

/* side panel */
.panel {
  position: fixed;
  top: calc(84px + env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  width: 380px;
  max-height: calc(100vh - 100px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 100px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  border-radius: 26px;
  padding: 20px;
  z-index: 7;
}
.panel .x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--chip);
  font-size: 18px;
  color: var(--ink-2);
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.panel h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 2px 0 4px;
}
.facts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}
.fact {
  background: var(--chip);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.fact.good {
  background: var(--good-soft);
  color: var(--good);
}
.fact.mine {
  background: #ffe6f1;
  color: var(--pink);
}
.owner-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--chip);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
}
.owner-card .e {
  font-size: 54px;
  line-height: 1;
}
.owner-card b {
  font-size: 18px;
  display: block;
}
.owner-card a {
  color: var(--accent);
  font-weight: 800;
  word-break: break-all;
}
label.lbl {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 14px 0 8px;
}
.field {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.field::placeholder {
  color: var(--ink-3);
}
.cats {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 8px 0;
  scrollbar-width: none;
}
.cats button {
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}
.cats button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 176px;
  overflow: auto;
  padding: 2px;
}
.grid button {
  font-family: var(--emoji);
  font-size: 24px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid button:hover {
  background: var(--accent-soft);
}
.grid button[aria-pressed="true"] {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--pink);
}
.chosen {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.chosen .e {
  font-size: 30px;
}
.chosen input {
  width: 64px;
  text-align: center;
  font-family: var(--emoji);
  font-size: 20px;
  padding: 6px;
}
.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
}
.total small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}
.total strong {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.confirm {
  background: var(--accent-soft);
  border-radius: 18px;
  padding: 14px;
  margin-top: 14px;
}
.confirm p {
  margin: 0 0 10px;
  color: var(--ink-2);
  line-height: 1.45;
  font-size: 14px;
}
.confirm .acts {
  display: flex;
  gap: 8px;
}
.note {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 12px;
  line-height: 1.45;
}
.err {
  color: #c62828;
  font-weight: 700;
  font-size: 13px;
  margin-top: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(84px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  z-index: 9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  max-width: calc(100% - 32px);
}
.mode {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 700;
  padding: 0 6px;
}

s.old {
  color: var(--ink-3);
  font-weight: 700;
  font-size: 16px;
}
.hunt-btn .count {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.hunt-btn.done .count {
  background: var(--good-soft);
  color: var(--good);
}
.bubble {
  position: fixed;
  z-index: 6;
  transform: translate(-50%, calc(-100% - 10px));
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 10px 14px;
  max-width: 240px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 12px 30px rgba(50, 25, 130, 0.2);
  pointer-events: none;
}
.bubble b {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  color: var(--accent);
}
.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  margin-left: -8px;
  border: 8px solid transparent;
  border-bottom: 0;
  border-top-color: #fff;
}
.intro {
  color: var(--ink-2);
  line-height: 1.45;
  margin: 4px 0 14px;
}
.bar {
  height: 12px;
  background: var(--chip);
  border-radius: 8px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  border-radius: 8px;
}
.barlbl {
  font-size: 13px;
  color: var(--ink-3);
  margin: 6px 0 14px;
  font-variant-numeric: tabular-nums;
}
.barlbl b {
  color: var(--ink);
}
.hunt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hc {
  background: var(--chip);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 86px;
}
.hc .e {
  font-size: 30px;
  line-height: 1;
}
.hc .q {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px dashed var(--ink-3);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}
.hc small {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.35;
}
.hc.found {
  background: var(--good-soft);
}
.hc.found b {
  font-weight: 800;
}
.hc.found small {
  color: var(--good);
  font-weight: 800;
}
.reward {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
}
.reward .emo {
  font-size: 30px;
}
.reward.on {
  background: var(--good-soft);
}
@media (max-width: 820px) {
  .stats .stat:not(.free) {
    display: none;
  }
  .brand b {
    font-size: 19px;
  }
  .hint,
  .feed {
    display: none;
  }
  .top .find-label {
    display: none;
  }
  .panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-height: 72vh;
    max-height: 72dvh;
    border-radius: 26px 26px 0 0;
    padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
  }
  .grid {
    grid-template-columns: repeat(7, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ajouts du site en ligne */
.lang {
  min-width: 46px;
}
.top .langs .lmenu {
  top: calc(100% + 8px);
}
.demo-pill {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: #ffd23e;
  color: #3b2a00;
  font: 800 12px var(--body);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  margin-top: -12px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
  font-size: 12.5px;
}
.links a {
  color: var(--ink-3);
  font-weight: 700;
  text-decoration: none;
}
.links a:hover {
  color: var(--accent);
}
.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: none;
}
.check a {
  color: var(--accent);
  font-weight: 800;
}
.note a,
.links a {
  word-break: normal;
}
.note a {
  color: var(--accent);
  font-weight: 800;
}
@media (max-width: 820px) {
  .demo-pill {
    top: calc(70px + env(safe-area-inset-top, 0px));
    margin: 0;
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    white-space: nowrap;
  }
  .top .langs {
    display: none;
  }
}

/* v5 : navigation */
.minimap {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: calc(84px + env(safe-area-inset-top, 0px));
  width: 230px;
  border-radius: 18px;
  padding: 6px;
  z-index: 4;
}
.minimap canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
  cursor: crosshair;
  touch-action: none;
  background: #eaf6e4;
}
.minimap .mmt {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(40, 20, 90, 0.15);
  z-index: 1;
}
.minimap.min {
  width: auto;
  padding: 4px;
}
.minimap.min canvas {
  display: none;
}
.minimap.min .mmt {
  position: static;
}
.navctl {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  z-index: 4;
}
.navctl button {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.navctl button:hover {
  background: var(--chip);
}
.navctl button .emo {
  font-size: 19px;
}
.exq {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  margin: 6px 0 6px;
  background: #fff;
  color: var(--ink);
}
.exq:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.exh {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 14px 4px 4px;
}
.panel .row:hover {
  background: var(--chip);
}
.panel .row .v {
  color: var(--ink-3);
}
@media (max-width: 820px) {
  .minimap {
    top: calc(112px + env(safe-area-inset-top, 0px));
    width: 150px;
  }
  .navctl {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .navctl button {
    width: 40px;
    height: 40px;
  }
}

/* v7 : niveaux et classements */
.lvl {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 14px 0 10px;
  border-radius: 18px;
  pointer-events: auto;
  cursor: pointer;
}
.lvl .emo {
  font-size: 26px;
}
.lvl-t {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}
.lvl-t b {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.lvl-t i {
  display: block;
  width: 74px;
  height: 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  overflow: hidden;
}
.lvl-t i span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  border-radius: 6px;
  transition: width 0.6s;
}
.btn.icon {
  width: 52px;
  padding: 0;
  justify-content: center;
}
.btn.icon .emo {
  font-size: 22px;
}
.xpf {
  position: fixed;
  transform: translateX(-50%);
  z-index: 30;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  color: #fff;
  font: 800 13px var(--body);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(124, 77, 255, 0.35);
  pointer-events: none;
  animation: xpf 2.6s ease-out forwards;
}
@keyframes xpf {
  0% {
    opacity: 0;
    margin-top: 8px;
  }
  12% {
    opacity: 1;
    margin-top: 0;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    margin-top: -26px;
  }
}
.lvlup {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(28, 22, 64, 0.35);
  overflow: hidden;
  cursor: pointer;
  animation: fadein 0.3s;
}
.lu-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(40, 20, 90, 0.35);
  animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.lu-e {
  font-size: 76px;
  line-height: 1;
}
.lu-k {
  font: 800 13px var(--body);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--pink);
  margin-top: 8px;
}
.lu-n {
  font: 800 40px var(--display);
  letter-spacing: -1px;
  color: var(--ink);
}
.lu-t {
  font: 700 18px var(--body);
  color: var(--ink-2);
}
.lu-r {
  margin-top: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 14px;
}
.lvlup .cf {
  position: absolute;
  top: -40px;
  animation: fall 3.2s linear forwards;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(540deg);
  }
}
@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
@keyframes fadein {
  from {
    opacity: 0;
  }
}
.streak {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff4e5;
}
.streak .emo {
  font-size: 28px;
}
.streak b {
  display: block;
}
.streak small {
  color: var(--ink-3);
}
.xpt {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px 8px;
  align-items: center;
  font-size: 14px;
}
.xpt .emo {
  font-size: 20px;
}
.xpt b {
  color: var(--accent);
  text-align: right;
}
.xpt small {
  color: var(--ink-3);
  font-weight: 600;
}
.rws {
  display: grid;
  gap: 6px;
}
.rw {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--chip);
  opacity: 0.75;
}
.rw.got {
  opacity: 1;
  background: var(--good-soft);
}
.rw .emo {
  font-size: 22px;
}
.rw b {
  display: block;
  font-size: 14px;
}
.rw small {
  color: var(--ink-3);
  font-size: 12px;
}
.rw em {
  font-style: normal;
  font-weight: 800;
  color: var(--ink-3);
}
.rw.got em {
  color: var(--good);
}
.nick {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nick .exq {
  margin: 0;
}
.btn.wide {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}
.btn.share small {
  opacity: 0.75;
  font-weight: 700;
}
.rtabs {
  flex-wrap: wrap;
}
.rlist {
  margin-top: 6px;
}
.medal {
  font-size: 22px;
}
.medal .pos {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--chip);
  font: 800 13px var(--body);
  color: var(--ink-2);
}
.row.me {
  background: var(--accent-soft);
}
.row .v small {
  color: var(--ink-3);
  font-weight: 700;
  font-size: 11px;
}
.myrank {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.myrank .emo {
  font-size: 22px;
}
@media (max-width: 820px) {
  .lvl {
    height: 44px;
    padding: 0 10px 0 8px;
  }
  .lvl-t i {
    width: 46px;
  }
  .lvl .emo {
    font-size: 22px;
  }
  .btn.icon {
    width: 44px;
  }
}
@media (max-width: 1180px) {
  #exploreBtn .find-label {
    display: none;
  }
}

/* v7 lot 2 : ambiance */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 39;
  overflow: hidden;
}
.confetti .cf {
  position: absolute;
  top: -40px;
  animation: fall 3.4s linear forwards;
}
body {
  transition: background 0.8s;
}
body.night .demo-pill {
  box-shadow: 0 0 18px rgba(255, 210, 62, 0.5);
}

/* v7 lot 3 : boutique */
.oh {
  margin: 18px 0 8px;
  font: 800 15px var(--display);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.oh small {
  font: 700 12px var(--body);
  color: var(--ink-3);
}
.opts {
  display: grid;
  gap: 6px;
}
.opt {
  border-radius: 14px;
  background: var(--chip);
  transition: background 0.2s;
}
.opt.on {
  background: var(--accent-soft);
}
.opt label,
.blk {
  display: grid;
  grid-template-columns: 20px 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  cursor: pointer;
}
.opt input[type="checkbox"],
.blk input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  margin: 0;
}
.opt .emo,
.blk .emo {
  font-size: 22px;
}
.ot b {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}
.ot small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.3;
}
.opt em {
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-deep);
  white-space: nowrap;
}
.opt em.free {
  color: var(--good);
}
.oc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 11px 11px 47px;
}
.oc button {
  border: 0;
  border-radius: 10px;
  padding: 6px 10px;
  font: 700 12.5px var(--body);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}
.oc button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
.oc .field {
  margin: 0;
  height: 38px;
}
.oc.sw button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
}
.oc.sw button[aria-pressed="true"] {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--accent);
}
.blk {
  margin-top: 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff4e5, #ffe9f6);
  grid-template-columns: 20px 30px 1fr;
}
.blk.on {
  box-shadow: inset 0 0 0 2px var(--pink);
}
.promo {
  margin-top: 12px;
  font-size: 13px;
}
.promo summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent);
}
.promo .field {
  margin-top: 8px;
  text-transform: uppercase;
}
.perr {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--good);
  margin-top: 4px;
}
.perr:empty {
  display: none;
}
.qlines {
  margin-top: 12px;
  display: grid;
  gap: 3px;
  font-size: 13px;
}
.qlines:empty {
  display: none;
}
.ql {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-2);
}
.ql b {
  white-space: nowrap;
}
.ql.d {
  color: var(--good);
  font-weight: 700;
}
.ql.err {
  color: #c23;
}
.refb {
  display: grid;
  gap: 8px;
}
.refb small {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.45;
}
.refb small b {
  color: var(--good);
}
.refb .exq {
  font-size: 12.5px;
}

/* v7 lot 4 : écran de chargement, défi de la semaine, image à partager, liens vers les pages publiques */
#loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: linear-gradient(#9fd0ff, #e3efff 60%, #f4f1ff);
  transition: opacity 0.6s;
}
#loader.out {
  opacity: 0;
  pointer-events: none;
}
.ld-in {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.ld-in b {
  font: 800 40px var(--display);
  letter-spacing: -1px;
  color: var(--ink);
}
.ld-in b span {
  color: var(--accent);
}
.ld-in small {
  font: 700 14px var(--body);
  color: var(--ink-3);
}
.ld-city {
  display: flex;
  gap: 8px;
  font-size: 44px;
}
.ld-city .emo {
  animation: ldb 1.2s ease-in-out infinite;
}
.ld-city .emo:nth-child(2) {
  animation-delay: 0.12s;
}
.ld-city .emo:nth-child(3) {
  animation-delay: 0.24s;
}
.ld-city .emo:nth-child(4) {
  animation-delay: 0.36s;
}
.ld-city .emo:nth-child(5) {
  animation-delay: 0.48s;
}
@keyframes ldb {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-16px);
  }
}
.ld-in i {
  display: block;
  width: 220px;
  height: 8px;
  border-radius: 8px;
  background: rgba(124, 77, 255, 0.15);
  overflow: hidden;
}
.ld-in i em {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  animation: ldp 1.4s ease-in-out infinite;
}
@keyframes ldp {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}
.week {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, #e9f7ff, #f1ecff);
}
.week .emo {
  font-size: 28px;
}
.week b {
  display: block;
}
.week small {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
  margin: 2px 0 8px;
}
.week.done {
  background: #e8fbef;
}
.week .btn {
  height: 38px;
  font-size: 13px;
}
.plk {
  margin-left: 6px;
  font-size: 15px;
  opacity: 0.55;
  cursor: pointer;
  padding: 4px;
}
.plk:hover {
  opacity: 1;
}
.cardov {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(28, 22, 64, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fadein 0.25s;
}
.cardbox {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(40, 20, 90, 0.35);
}
.cardbox > .x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--chip);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-2);
}
.cardbox h2 {
  margin: 0 44px 12px 0;
  font: 800 22px var(--display);
}
.cardbox h3 {
  margin: 18px 0 8px;
  font: 800 16px var(--display);
}
.cardimg {
  aspect-ratio: 1200/630;
  border-radius: 16px;
  overflow: hidden;
  background: var(--chip);
  display: grid;
  place-items: center;
}
.cardimg img {
  width: 100%;
  display: block;
}
.cardimg .spin {
  font-weight: 800;
  color: var(--ink-3);
}
.cardacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cardacts .btn {
  text-decoration: none;
  height: 44px;
}
.cardbox .code {
  font:
    600 12px ui-monospace,
    Menlo,
    monospace;
  height: auto;
  padding: 10px;
  margin-top: 8px;
  resize: none;
}

.ld-in b span {
  color: inherit;
}
.credit {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.4;
}

/* v8 lot 1 : ville vivante */
.stat.online {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  padding: 0 4px;
  color: inherit;
}
.stat.online strong {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  color: #16a34a;
}
.stat.online i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
.ticker {
  position: fixed;
  left: 16px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}
.tk {
  pointer-events: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 8px 12px;
  font: 700 13px var(--body);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(40, 20, 90, 0.16);
  animation: tkin 0.35s ease-out;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.tk .emo {
  font-size: 22px;
}
.tk.out {
  opacity: 0;
  transform: translateX(-20px);
}
@keyframes tkin {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
}
.soc {
  margin: 12px 0;
}
.rxbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rx {
  display: flex;
  gap: 4px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--chip);
  cursor: pointer;
  font: 800 13px var(--body);
  color: var(--ink-2);
  transition: transform 0.15s;
}
.rx .emo {
  font-size: 18px;
}
.rx:hover {
  transform: scale(1.08);
}
.rx[aria-pressed="true"] {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.soc h3 small {
  color: var(--ink-3);
  font-weight: 700;
}
.gbf {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.gbf textarea {
  margin: 0;
  resize: none;
  min-height: 46px;
}
.gbf .btn {
  height: 46px;
}
.gbf .btn small {
  opacity: 0.75;
}
.gbl {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
}
.gbm {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--chip);
}
.gbm.hid {
  opacity: 0.5;
}
.gbm .emo {
  font-size: 22px;
}
.gbm b {
  font-size: 13px;
}
.gbm small {
  color: var(--ink-3);
  font-size: 11px;
}
.gbm p {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.gbh {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 16px;
}
@media (max-width: 820px) {
  .ticker {
    bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }
  .stat.online small {
    display: none;
  }
}

/* v8 lot 2 : enchères */
.auc {
  margin: 14px 0 6px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7d6, #ffe9f6);
  box-shadow: inset 0 0 0 2px #ffd23e;
}
.auc.won {
  background: linear-gradient(135deg, #e8fbef, #fff7d6);
}
.auc p {
  margin: 6px 0 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.auc-h {
  display: flex;
  gap: 10px;
  align-items: center;
}
.auc-h .emo {
  font-size: 30px;
}
.auc-h b {
  display: block;
  font: 800 16px var(--display);
}
.auc-h small {
  color: var(--ink-2);
  font-weight: 700;
}
.auc-k {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 12px 0;
}
.auc-k small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}
.auc-k strong {
  display: block;
  font: 800 26px var(--display);
  color: var(--ink);
}
.auc-b {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 13px;
}
.auc-b small {
  color: var(--ink-3);
}
.auc-f {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.auc-f .field {
  margin: 0;
  font-weight: 800;
  font-size: 17px;
}

/* v8 lot 3 : revenus */
.sale {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, #e8fbef, #fff7d6);
}
.sale .emo {
  font-size: 28px;
}
.sale b {
  display: block;
}
.sale small {
  color: var(--ink-2);
  font-size: 12.5px;
}
.osale {
  margin: 12px 0;
  font-size: 13px;
}
.osale summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent);
}
.osale .note {
  display: block;
  margin-top: 6px;
}
.plus-l {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.plus-l > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, #fff7d6, #f1ecff);
}
.plus-l .emo {
  grid-row: span 2;
  font-size: 22px;
}
.plus-l small {
  color: var(--ink-2);
}
.btn.plusb {
  background: linear-gradient(90deg, #ffd23e, #ff9f1c);
  color: #3b2a00;
  border: 0;
}
.btn.plusb small {
  opacity: 0.8;
  font-weight: 700;
}
.stats-lock {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--chip);
}
.stats-lock .emo {
  font-size: 22px;
}
.stats-lock small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.bst {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0 6px;
}
.bst div {
  background: var(--chip);
  border-radius: 12px;
  padding: 8px;
}
.bst b {
  display: block;
  font: 800 18px var(--display);
}
.bst small {
  color: var(--ink-3);
  font-size: 11px;
}
.spark {
  width: 100%;
  height: 50px;
  display: block;
}

/* v8 lot 4 : événements, album, photo, film */
.evbanner {
  position: fixed;
  top: calc(88px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: min(680px, calc(100vw - 32px));
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b2350, #5a2fe0);
  color: #fff;
  font: 700 13px var(--body);
  box-shadow: 0 8px 24px rgba(40, 20, 90, 0.3);
}
.evbanner .emo {
  font-size: 20px;
}
.evbanner b {
  color: #ffd23e;
}
.album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.bdg {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 14px;
  background: var(--chip);
  opacity: 0.55;
}
.bdg.got {
  opacity: 1;
  background: linear-gradient(160deg, #fff7d6, #f1ecff);
  box-shadow: inset 0 0 0 2px #ffd23e;
}
.bdg .emo {
  font-size: 30px;
}
.bdg b {
  font-size: 12px;
  line-height: 1.2;
}
.bdg small {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.25;
}
.fact.ltd {
  background: linear-gradient(90deg, #fff7d6, #ffe9f6) !important;
  color: #7a4b00 !important;
}
.appb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.appb .btn {
  height: 42px;
  font-size: 13.5px;
}
body.photo header.top,
body.photo .stats,
body.photo .feed,
body.photo .hint,
body.photo #panel,
body.photo .navctl,
body.photo #minimap,
body.photo .minimap,
body.photo .ticker,
body.photo .evbanner,
body.photo .demo-pill,
body.photo .lvl,
body.photo .toast {
  display: none !important;
}
.photobar {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 30;
  gap: 8px;
}
body.photo .photobar {
  display: flex;
}
.flash {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 50;
  animation: flash 0.5s forwards;
  pointer-events: none;
}
@keyframes flash {
  to {
    opacity: 0;
  }
}
.tlcap {
  position: fixed;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  z-index: 30;
  display: grid;
  justify-items: center;
  padding: 12px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  font: 700 14px var(--body);
  color: var(--ink-2);
  box-shadow: 0 10px 30px rgba(40, 20, 90, 0.2);
}
.tlcap b {
  font: 800 24px var(--display);
  color: var(--ink);
}
@media (max-width: 820px) {
  .evbanner {
    top: calc(118px + env(safe-area-inset-top, 0px));
    font-size: 11.5px;
    border-radius: 14px;
  }
}

/* ---- v9 : mobile ---- */
.tabbar,
.mhint,
.inapp-note {
  display: none;
}
@media (max-width: 820px) {
  #rankBtn,
  #exploreBtn,
  #huntBtn,
  #findBtn {
    display: none;
  }
  .top {
    gap: 8px;
  }
  .brand {
    padding: 0 12px 0 8px;
  }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 6;
    padding: 6px 6px;
    border-radius: 22px;
    align-items: end;
  }
  .tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    border-radius: 14px;
    color: var(--ink-2);
    font: 800 10.5px var(--body);
    min-height: 48px;
    justify-content: center;
  }
  .tabbar button .emo {
    font-size: 22px;
    line-height: 1;
  }
  .tabbar small {
    font-size: 10.5px;
    white-space: nowrap;
  }
  .tabbar b {
    color: var(--accent);
  }
  .tabbar button:active {
    background: var(--chip);
  }
  .tabbar .tb-main {
    margin-top: -22px;
  }
  .tabbar .tb-main .emo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #ff4f9a);
    box-shadow: 0 8px 20px rgba(124, 77, 255, 0.45);
    font-size: 26px;
    border: 3px solid #fff;
  }
  .tabbar .tb-main small {
    color: var(--accent);
  }
  .navctl {
    left: auto;
    right: max(10px, env(safe-area-inset-right, 0px));
    transform: none;
    flex-direction: column;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    padding: 4px;
    border-radius: 16px;
  }
  .navctl [data-z="in"],
  .navctl [data-z="out"] {
    display: none;
  }
  .navctl button {
    width: 40px;
    height: 40px;
  }
  .minimap {
    top: calc(112px + env(safe-area-inset-top, 0px));
  }
  .evbanner {
    top: calc(70px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    transform: none;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
  }
  .evbanner > span {
    display: inline;
  }
  .evbanner .emo {
    margin-right: 4px;
  }
  .demo-pill {
    top: calc(104px + env(safe-area-inset-top, 0px));
    left: auto;
    right: 12px;
    transform: none;
    font-size: 9.5px;
    padding: 3px 8px;
    border-radius: 8px;
    opacity: 0.9;
  }
  .ticker {
    bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    max-width: calc(100vw - 80px);
  }
  .mhint:not([hidden]) {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 6;
    gap: 10px;
    align-items: center;
    padding: 12px 12px 12px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ink-2);
    animation: mh 0.5s ease-out;
  }
  .mhint .emo {
    font-size: 26px;
  }
  .mhint b {
    display: block;
    color: var(--ink);
    font-size: 14px;
  }
  .mhint button,
  .inapp-note button {
    font-size: 20px;
    color: var(--ink-3);
    padding: 4px 8px;
    margin-left: auto;
  }
  .inapp-note:not([hidden]) {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(132px + env(safe-area-inset-top, 0px));
    z-index: 8;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12.5px;
    color: var(--ink-2);
  }
  .panel {
    z-index: 8;
  }
  body.photo .tabbar,
  body.photo .mhint {
    display: none !important;
  }
}
@keyframes mh {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mhint {
    animation: none;
  }
}
