:root {
  /* Ambiance propre à Soultoine : accent « grape » (remplace le bleu de Bacar) */
  --sea:        #9a6ee0;
  --sea-deep:   #6a3fb0;
  --sand:       #fbe3a2;
  --sand-deep:  #f3cf78;
  --tile:       #f8efd6;
  --tile-edge:  #e7d3a0;
  --leaf:       #5cb85c;
  --leaf-deep:  #3f9a45;
  --coral:      #ff7a59;
  --coral-deep: #ec5c3a;
  --sun:        #ffc94d;
  --grape:      #7c5cff;
  --ink:        #2c4a52;
  --ink-soft:   #5a767d;
  --paper:      #fffdf6;
  --shadow:     0 8px 0 rgba(0,0,0,.08);
  --radius:     22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button, [role="button"] { touch-action: manipulation; }

html, body {
  height: 100%;
  font-family: 'Fredoka', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 100% at 50% -20%, #ffd06b 0%, #ff9663 46%, #f0637e 100%) fixed;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

::selection { background: transparent; }
::-moz-selection { background: transparent; }

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(10px, 2vh, 22px) clamp(12px, 3vw, 28px);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(10px, 2vh, 18px);
}
.back-link {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 5px 0 rgba(0,0,0,.12);
  color: var(--sea-deep);
  font-size: 30px; font-weight: 800; line-height: 1;
  text-decoration: none;
  padding-bottom: 4px;
  transition: transform .08s;
}
.back-link:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.brand-badge {
  width: 58px; height: 58px;
  flex: none;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
  display: grid; place-items: center;
  overflow: hidden;
}
.brand-badge svg { width: 82%; height: 82%; }
.brand-text { min-width: 0; overflow: hidden; }
.brand-text h1 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 3vw, 28px);
  color: var(--paper);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0,0,0,.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text p {
  font-weight: 500;
  font-size: clamp(11px, 1.6vw, 14px);
  color: #ffe7d4;
}
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 44px; height: 44px;
  border: none; cursor: pointer;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 5px 0 rgba(0,0,0,.12);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 20px;
  color: var(--sea-deep);
  display: grid; place-items: center;
  transition: transform .08s;
}
.icon-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }

/* Pastille de profil */
.profile-chip {
  border: none; cursor: pointer;
  background: var(--paper);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 5px 0 rgba(0,0,0,.12);
  transition: transform .08s;
  max-width: 170px;
}
.profile-chip:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.profile-name {
  font-weight: 700; font-size: 15px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Avatar genré */
.avatar {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--tile);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 3px var(--ring, #ccc);
  flex: none;
}
.avatar svg { width: 80%; height: 80%; }
.avatar.avatar-f { --ring: #ff7ab0; background: #ffe6f0; }
.avatar.avatar-g { --ring: #4aa3e8; background: #e2f1ff; }
.avatar[data-badge]::after {
  content: attr(data-badge);
  position: absolute; bottom: -3px; right: -5px;
  font-size: 14px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}

/* ---------- Play area ---------- */
.play-area {
  flex: 1;
  display: flex;
  min-height: 0;
}
.board-panel { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.board-frame {
  position: relative;
  flex: 1;
  background: var(--world-ground, var(--sand));
  border-radius: var(--radius);
  padding: clamp(10px, 1.6vw, 16px);
  padding-top: 60px;
  box-shadow: inset 0 0 0 6px var(--world-ground-deep, var(--sand-deep)), 0 10px 0 rgba(0,0,0,.12);
  display: grid; place-items: center;
  overflow: hidden;
  transition: background .35s, box-shadow .35s;
}
.board-reset {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 7;
  border: none; cursor: pointer;
  background: var(--paper);
  color: var(--sea-deep);
  border-radius: 999px;
  padding: 7px 13px 7px 10px;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 0 rgba(0,0,0,.14);
  transition: transform .08s;
}
.board-reset:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.14); }
.board-reset .ico { width: 16px; height: 16px; }
.board-level { left: 12px; right: auto; }
.board-level b { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--coral); }
.level-world::before { content: " · "; color: var(--ink-soft); font-weight: 600; }
.level-world { color: var(--ink-soft); font-weight: 600; }

/* Stats (coups / paires) */
.stats {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 6;
  display: flex; gap: 10px;
}
.stat {
  background: rgba(255,255,255,.65);
  border-radius: 12px;
  padding: 2px 12px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.05;
}
.stat-val {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 17px; color: var(--ink);
}
.stat-val b { color: var(--coral); }
.stat-lbl { font-size: 10px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px; }
@media (max-width: 360px) { .stats { display: none; } }

/* ---------- Memory board ---------- */
.memory-board {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: clamp(5px, 1.2vw, 10px);
  width: 100%;
  max-width: min(100%, 70vh);
}
.card {
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  perspective: 600px;
  animation: pop .26s cubic-bezier(.34,1.5,.5,1) backwards;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
}
.card-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.34,1.2,.5,1);
}
.card.flipped .card-inner,
.card.matched .card-inner { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0;
  border-radius: 14px;
  display: grid; place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.card-back {
  background: linear-gradient(150deg, var(--world-wall1, var(--sea)) 0%, var(--world-wall2, var(--sea-deep)) 100%);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 4px 0 rgba(0,0,0,.14);
}
.card-back svg { width: 56%; height: 56%; opacity: .92; }
.card-front {
  transform: rotateY(180deg);
  background: var(--paper);
  box-shadow: inset 0 0 0 3px var(--world-ground-deep, var(--tile-edge)), 0 4px 0 rgba(0,0,0,.12);
}
.card-front svg { width: 74%; height: 74%; }
.card:active .card-inner { transform: scale(.96); }
.card.flipped:active .card-inner,
.card.matched:active .card-inner { transform: rotateY(180deg) scale(.96); }
.card.matched { cursor: default; animation: matched-pulse .45s ease; }
.card.matched .card-front { box-shadow: inset 0 0 0 3px var(--leaf), 0 4px 0 rgba(0,0,0,.12); }
.card.shake .card-inner { animation: card-shake .4s; }
@keyframes card-shake {
  0%,100%{ transform: rotateY(180deg) translateX(0); }
  25%{ transform: rotateY(180deg) translateX(-5px); }
  75%{ transform: rotateY(180deg) translateX(5px); }
}
@keyframes matched-pulse {
  0%,100%{ transform: scale(1); }
  40%{ transform: scale(1.12); }
}
@keyframes pop {
  from { transform: scale(.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.goal-banner {
  margin-top: 12px;
  background: var(--paper);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: clamp(13px, 1.8vw, 16px);
  box-shadow: 0 5px 0 rgba(0,0,0,.1);
}
.goal-banner .goal-icon::before { content: "🃏"; font-size: 20px; }

/* ---------- Buttons ---------- */
.btn {
  border: none; cursor: pointer;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 16px;
  border-radius: 16px;
  padding: 13px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .08s;
  white-space: nowrap;
}
.btn:active { transform: translateY(4px) !important; box-shadow: 0 1px 0 rgba(0,0,0,.2) !important; }
.btn-play { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--coral-deep); }
.btn-secondary { background: var(--sun); color: #7a5200; box-shadow: 0 5px 0 #e0a82e; }
.btn-ghost { background: #f0e9d6; color: var(--ink-soft); box-shadow: 0 5px 0 #ddd2b6; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* small inline icons */
.ico { width: 18px; height: 18px; display: inline-block; background-repeat: no-repeat; background-position: center; background-size: contain; }
.ico-next  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.ico-grid  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a767d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.ico-restart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a3fb0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E"); }
.ico-sound { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a3fb0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9zM16 9a3 3 0 0 1 0 6M19 7a7 7 0 0 1 0 10'/%3E%3C/svg%3E"); }
.ico-fullscreen { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a3fb0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E"); }
:fullscreen .ico-fullscreen,
.fullscreen-active .ico-fullscreen { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a3fb0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v3a2 2 0 0 1-2 2H3M21 8h-3a2 2 0 0 1-2-2V3M3 16h3a2 2 0 0 1 2 2v3M16 21v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E"); }
.muted .ico-sound { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ec5c3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9zM17 9l4 6M21 9l-4 6'/%3E%3C/svg%3E"); }

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,50,58,.55);
  display: grid; place-items: center;
  z-index: 100;
  animation: fade .2s ease;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--paper);
  border-radius: 28px;
  padding: 28px 28px 24px;
  text-align: center;
  max-width: 380px; width: 100%;
  box-shadow: 0 14px 0 rgba(0,0,0,.2);
  animation: drop .35s cubic-bezier(.34,1.4,.5,1);
}
@keyframes drop { from { transform: translateY(-40px) scale(.9); opacity: 0; } }
.modal h2 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 30px; color: var(--coral);
}
.modal p { color: var(--ink-soft); font-weight: 500; margin-top: 6px; }
.modal-gecko { width: 110px; height: 110px; margin: 0 auto 4px; }
.modal-gecko svg { width: 100%; height: 100%; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

.win-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 2px; }
.win-stars span {
  font-size: 38px; line-height: 1;
  filter: grayscale(1) opacity(.3);
  transform: scale(.7);
}
.win-stars span.on {
  filter: none;
  animation: star-pop .4s cubic-bezier(.34,1.6,.5,1) backwards;
  transform: scale(1);
}
.win-stars span.on:nth-child(2) { animation-delay: .12s; }
.win-stars span.on:nth-child(3) { animation-delay: .24s; }
@keyframes star-pop { from { transform: scale(0) rotate(-40deg); } }

.modal-help { text-align: center; max-width: 400px; }
.modal-help h2 { color: var(--sea-deep); }
.help-intro { margin-top: 8px; }
.help-steps { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 14px; text-align: left; }
.help-step {
  display: flex; align-items: center; gap: 12px;
  background: #f6efdd; border-radius: 14px; padding: 10px 14px;
  font-weight: 500; font-size: 14px; color: var(--ink);
}
.help-step b { font-weight: 700; }
.help-step-num {
  flex: none;
  width: 28px; height: 28px;
  background: var(--sea); color: #fff;
  border-radius: 50%;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 16px;
  display: grid; place-items: center;
}
.help-run-hint { font-size: 14px; font-weight: 500; color: var(--ink-soft); margin: 0 0 12px; }
.help-run-hint b { color: var(--ink); }
.help-targets { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.help-targets .ht { width: 40px; height: 40px; background: #f6efdd; border-radius: 12px; display: grid; place-items: center; }
.help-targets .ht svg { width: 78%; height: 78%; }

.modal-levels h2 { color: var(--sea-deep); }
.level-progress { text-align: center; font-weight: 500; font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.level-progress b { color: var(--ink); font-weight: 700; }
.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 12px;
  margin: 16px 0 4px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 2px 4px;
}
.world-header {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  background: var(--world-bg, #f6efdd);
  border-left: 4px solid var(--world-color, #ccc);
  border-radius: 10px;
  padding: 6px 12px;
  margin-top: 6px;
}
.world-header:first-child { margin-top: 0; }
.world-emoji { display: inline-flex; line-height: 0; }
.world-emoji svg { width: 22px; height: 22px; display: block; }
.world-name { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 15px; color: var(--world-color, #555); flex: 1; }
.world-progress { font-size: 12px; font-weight: 700; color: var(--ink-soft); background: rgba(0,0,0,.06); padding: 2px 8px; border-radius: 999px; }
.level-card {
  position: relative;
  border: none; cursor: pointer;
  background: #f6efdd;
  border-radius: 16px;
  padding: 14px 4px;
  min-height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 0 rgba(0,0,0,.1);
  transition: transform .08s;
  overflow: hidden;
}
.level-card:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.level-card .num { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 22px; color: var(--sea-deep); line-height: 1; }
.level-card .badge {
  position: absolute; top: 5px; right: 5px;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 12px; font-weight: 800; color: #fff;
  display: grid; place-items: center;
}
.level-card .ministars { font-size: 9px; line-height: 1; margin-top: 3px; letter-spacing: 1px; }
.level-card.completed { background: #e6f6e2; }
.level-card.current { box-shadow: 0 0 0 3px var(--coral), 0 4px 0 rgba(0,0,0,.1); }
.level-card.current .num { color: var(--coral); }
.level-card.completed .badge { background: var(--world-color, var(--leaf)); }
.level-card.completed .num   { color: var(--world-color, var(--leaf-deep)); }
@media (max-width: 460px) { .level-grid { grid-template-columns: repeat(3, 1fr); } }

.credits {
  text-align: center;
  margin-top: clamp(8px, 1.6vh, 16px);
  padding: 4px 0 2px;
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 500;
  color: #ffe7d4;
}
.credits b { font-weight: 700; color: var(--paper); }

/* ---- Modale joueurs ---- */
.modal-users h2, .modal-profile h2 { color: var(--sea-deep); text-align: center; }
.users-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.user-row { display: flex; align-items: center; gap: 8px; }
.user-pick {
  flex: 1;
  border: none; cursor: pointer;
  background: #f6efdd;
  border-radius: 16px;
  padding: 8px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 0 rgba(0,0,0,.1);
  transition: transform .08s;
}
.user-pick:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.user-row.active .user-pick { box-shadow: 0 0 0 3px var(--leaf), 0 4px 0 rgba(0,0,0,.1); background: #e6f6e2; }
.user-name { font-weight: 700; font-size: 16px; color: var(--ink); flex: 1; text-align: left; }
.user-current { color: var(--leaf-deep); font-weight: 800; font-size: 18px; }
.user-del {
  border: none; cursor: pointer;
  width: 38px; height: 38px; flex: none;
  background: #f0e9d6;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 4px 0 #ddd2b6;
  transition: transform .08s;
}
.user-del:active { transform: translateY(3px); box-shadow: 0 1px 0 #ddd2b6; }
.add-user { width: 100%; margin-bottom: 4px; }
.add-user .plus { font-size: 20px; font-weight: 800; }

/* ---- Modale création ---- */
.modal-profile p { margin-top: 10px; }
.modal-profile .gender-q { margin-top: 16px; font-weight: 600; }
.name-input {
  width: 100%;
  margin-top: 10px;
  border: 3px solid var(--sand-deep);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: 'Fredoka', sans-serif;
  font-size: 18px; font-weight: 600;
  color: var(--ink);
  text-align: center;
  background: #fffdf6;
  outline: none;
}
.name-input:focus { border-color: var(--sea); }
.name-input.shake { animation: shake .4s; }
@keyframes shake {
  0%,100%{transform:translateX(0);} 20%,60%{transform:translateX(-7px);} 40%,80%{transform:translateX(7px);}
}
.gender-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.gender-btn {
  border: 3px solid #f0e9d6; cursor: pointer;
  background: #fff;
  border-radius: 16px;
  padding: 14px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: 15px; color: var(--ink);
  box-shadow: 0 4px 0 rgba(0,0,0,.1);
  transition: transform .08s;
}
.gender-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.gender-emoji { font-size: 30px; }
.gender-btn[data-gender="f"].selected { border-color: #ff7ab0; background: #ffe6f0; }
.gender-btn[data-gender="g"].selected { border-color: #4aa3e8; background: #e2f1ff; }
.gender-choice.missing .gender-btn { border-color: var(--coral); animation: shake .4s; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  body { overflow-x: hidden; overflow-y: auto; }
  #app { height: auto; min-height: 100%; width: 100%; }
  .memory-board { max-width: min(100%, 64vh); }
}
@media (max-width: 520px) {
  .brand-badge { width: 46px; height: 46px; }
  .brand-text { display: none; }
  .profile-chip { padding: 5px 10px 5px 5px; gap: 6px; max-width: 110px; }
  .profile-name { font-size: 13px; }
  .icon-btn { width: 38px; height: 38px; font-size: 16px; }
  .back-link { width: 38px; height: 38px; font-size: 26px; }
  .topbar { gap: 6px; }
  .topbar-right { gap: 6px; }
}
