* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #262034;
  background: #8cd6e8;
  /* kill mobile long-press text selection + the Copy/Look Up/Translate callout */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* keep real text fields usable */
input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen {
  display: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* track the visible viewport on mobile (toolbar safe) */
}

.screen.active {
  display: block;
}

/* ---------------------------------------------------- sign-in splash */
#login-screen { overflow: hidden; }
#login-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.login-wrap {
  position: relative; z-index: 2; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 24px; box-sizing: border-box;
}
.login-logo { text-align: center; animation: loginFloat 6s ease-in-out infinite; }
.login-logo h1 {
  margin: 0; font-size: clamp(38px, 8vw, 78px); font-weight: 900; letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(180deg, #fff 0%, #ffe6f6 45%, #ffc6e6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 30px rgba(255, 160, 220, 0.55);
  filter: drop-shadow(0 2px 0 rgba(120, 60, 130, 0.35));
}
.login-logo p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.92); font-size: clamp(13px, 2.4vw, 17px); text-shadow: 0 2px 12px rgba(60, 30, 80, 0.6); }
@keyframes loginFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.login-card {
  width: min(380px, 92vw); padding: 22px 24px 20px;
  background: rgba(38, 26, 60, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 20px;
  box-shadow: 0 18px 60px rgba(20, 10, 40, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}
.login-tabs { display: flex; gap: 8px; margin-bottom: 16px; background: rgba(0, 0, 0, 0.22); padding: 5px; border-radius: 12px; }
.login-tab {
  flex: 1; padding: 9px 6px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, 0.7); font-weight: 700; font-size: 14px; transition: all 0.15s;
}
.login-tab.active { background: linear-gradient(180deg, #ff8fc4, #e85aa0); color: #fff; box-shadow: 0 4px 14px rgba(232, 90, 160, 0.45); }
.login-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.login-field input {
  padding: 11px 13px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.92); color: #2a2236; font-size: 15px; outline: none; transition: box-shadow 0.15s, border-color 0.15s;
}
.login-field input:focus { border-color: #ff8fc4; box-shadow: 0 0 0 3px rgba(255, 143, 196, 0.35); }
.login-submit { width: 100%; margin-top: 4px; padding: 12px; font-size: 16px; }
.login-forgot { display: inline-block; margin-top: 12px; color: #ffd6ec; font-size: 13px; text-decoration: none; opacity: 0.9; }
.login-forgot:hover { text-decoration: underline; opacity: 1; }
.login-msg { min-height: 18px; margin-top: 10px; font-size: 13px; line-height: 1.35; color: #ffe6c0; }
.login-msg.err { color: #ffc2c2; }
.login-msg.ok { color: #c6ffd9; }
.menu-account { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-badge { font-size: 13px; color: rgba(60, 40, 70, 0.8); background: rgba(255, 255, 255, 0.5); padding: 5px 10px; border-radius: 999px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#menu-screen {
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #8bd6e8 0%, #ffd36b 46%, #ff8e9e 100%);
  padding: 22px;
}

.menu-shell {
  max-width: 1220px;
  margin: 0 auto;
}

.menu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
  color: #251833;
}

.menu-top p {
  max-width: 700px;
  margin-top: 8px;
  font-size: 16px;
  color: #44354d;
}

.portal-link,
.link-btn {
  color: inherit;
  text-decoration: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
}

.panel,
.drawer,
.chat-panel,
.nearby-card,
.toast {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(55, 42, 70, 0.2);
  box-shadow: 0 18px 45px rgba(58, 44, 80, 0.18);
  backdrop-filter: blur(10px);
}

.panel {
  border-radius: 8px;
  padding: 14px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-header h2 {
  font-size: 20px;
}

.primary-btn,
.secondary-btn,
.speak-btn,
.hud-btn,
.character-card,
.option-btn,
.slot-btn,
.wardrobe-btn {
  border: 1px solid rgba(44, 33, 60, 0.2);
  border-radius: 8px;
  background: #ffffff;
  color: #2c2238;
}

.primary-btn {
  padding: 10px 14px;
  background: #27345c;
  color: #fff;
  font-weight: 800;
}

.secondary-btn {
  padding: 8px 11px;
  background: #f4f8fb;
  font-weight: 700;
}

.speak-btn {
  width: 44px;
  height: 40px;
  padding: 0;
  background: #fff4b8;
  font-size: 22px;
  line-height: 1;
}

.character-list {
  display: grid;
  gap: 8px;
}

.character-card {
  width: 100%;
  text-align: left;
  padding: 10px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}

.character-card:hover,
.option-btn:hover,
.slot-btn:hover,
.wardrobe-btn:hover,
.hud-btn:hover {
  border-color: #27345c;
}

.mini-avatar {
  width: 56px;
  height: 82px;
  image-rendering: pixelated;
  background: #e5f8ff;
  border-radius: 7px;
}

.character-name {
  font-weight: 800;
}

.character-meta {
  margin-top: 2px;
  font-size: 12px;
  color: #675c70;
}

.status-line {
  min-height: 22px;
  margin-top: 10px;
  color: #8a2842;
  font-weight: 700;
}

.creator-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 14px;
  align-items: start;
}

#creator-preview,
#closet-preview {
  width: 100%;
  max-width: 240px;
  image-rendering: pixelated;
  background:
    linear-gradient(#c7f5ff 0 45%, #ffe6a1 45% 100%);
  border: 1px solid rgba(44, 33, 60, 0.25);
  border-radius: 8px;
}

.creator-actions {
  margin-top: 10px;
}

.creator-actions .primary-btn,
#save-style-btn {
  width: 100%;
}

.creator-scroll {
  min-width: 0;
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding-right: 4px;
}

.field-label {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  font-weight: 800;
  color: #44354d;
}

.field-label input {
  padding: 10px;
  border: 1px solid rgba(44, 33, 60, 0.24);
  border-radius: 8px;
  background: #fff;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.tab-btn {
  padding: 8px 10px;
  border: 1px solid rgba(44, 33, 60, 0.2);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.tab-btn.active {
  background: #27345c;
  color: #fff;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.profile-sliders { display: flex; flex-direction: column; gap: 12px; }
.profile-hint { font-size: 12px; color: #675c70; margin: 0 0 2px; }
.profile-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 700;
  font-size: 13px;
  color: #2c2238;
}
.profile-row input[type="range"] { width: 100%; height: 22px; accent-color: #ff5fa2; cursor: pointer; }
.profile-sliders .secondary-btn { margin-top: 6px; align-self: flex-start; }

.option-btn {
  min-height: 48px;
  padding: 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.option-btn.active {
  background: #eaf6ff;
  border-color: #21789a;
}

.swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.24);
  vertical-align: middle;
}

#game-screen {
  position: relative;
  background: #83d4e8;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  touch-action: none;
}

#topbar {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hud-btn,
#stars-readout {
  pointer-events: auto;
}

.hud-btn {
  padding: 9px 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.9);
}

/* icon-only HUD buttons (closet / quests / chat / portal) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-width: 40px;
  height: 40px;
  color: #27345c;
}
.icon-btn svg { display: block; }
.icon-btn:hover { color: #0e1430; background: #fff; }

#stars-readout {
  margin-left: auto;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(39, 52, 92, 0.9);
  font-weight: 900;
}

.refresh-btn {
  min-width: 44px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 22px;
  line-height: 1;
}

.drawer {
  position: fixed;
  top: 62px;
  right: 12px;
  bottom: 12px;
  width: min(620px, calc(100vw - 24px));
  z-index: 35;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 22, 44, 0.5);
  padding: 18px;
}
.modal-card {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px 20px;
  box-shadow: 0 18px 50px rgba(20, 12, 30, 0.35);
}
.salon-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}
.salon-layout {
  display: grid;
  grid-template-columns: 184px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 0;
}
#salon-preview {
  width: 180px;
  height: 280px;
  background: #eef6ff;
  border-radius: 12px;
}
.salon-controls {
  min-width: 0;
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}
#salon-apply { margin-top: 14px; }
@media (max-width: 560px) {
  .salon-layout { grid-template-columns: 1fr; }
  #salon-preview { justify-self: center; height: 230px; }
  .salon-controls { max-height: 38vh; }
}
.set-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-weight: 700;
  color: #44354d;
}
.set-row input[type="range"] {
  width: 100%;
  accent-color: #ff5fa2;
}
.set-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(44, 33, 60, 0.14);
  font-weight: 700;
  color: #44354d;
}

.closet-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  align-items: start;
}

.closet-controls {
  display: flex;
  flex-direction: column;
}

.closet-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b6480;
  margin: 0 0 8px;
}

#wardrobe-title {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(44, 33, 60, 0.16);
}

.item-icon {
  display: block;
  border-radius: 9px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 3px 5px;
  min-height: 0;
  background: #f6f4fb;
}

.slot-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #6b6480;
  line-height: 1;
}

.slot-btn.active {
  background: #27345c;
  border-color: #27345c;
}

.slot-btn.active .slot-label {
  color: #fff;
}

.wardrobe-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  max-height: 320px;
  overflow: auto;
}

.wardrobe-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  min-height: 0;
}

.wardrobe-name {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 1.08;
  color: #2c2238;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wardrobe-rarity { display: none; }   /* rarity is already shown by the icon frame */

.rarity-uncommon .wardrobe-rarity { color: #3a9a52; }
.rarity-rare .wardrobe-rarity { color: #2f6fd0; }
.rarity-epic .wardrobe-rarity { color: #a23fd0; }

.wardrobe-btn.equipped {
  background: #eaf6ff;
  border-color: #21789a;
}

.quest-list {
  display: grid;
  gap: 8px;
}

.quest-intro {
  font-size: 12.5px;
  line-height: 1.4;
  color: #51465b;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(44, 33, 60, 0.2);
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 4px;
}

.quest-section {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6480;
  margin: 8px 2px 2px;
}
.quest-section-active { color: #1f7a4d; }
.quest-section-complete { color: #8a8398; }

.quest-card {
  border: 1px solid rgba(44, 33, 60, 0.18);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  border-left: 4px solid rgba(44, 33, 60, 0.18);
}
.quest-active { border-left-color: #34c07a; }
.quest-available { border-left-color: #f2b04a; }
.quest-complete { border-left-color: #bcb6c8; background: rgba(255, 255, 255, 0.55); }

.quest-head { display: flex; gap: 9px; align-items: flex-start; }
.quest-ic { flex: 0 0 auto; }
.quest-ic .item-icon { border-radius: 8px; }
.quest-headtext { min-width: 0; }

.quest-title { font-weight: 900; }

.quest-text {
  color: #51465b;
  font-size: 12.5px;
  margin: 3px 0 0;
}

.quest-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
}
.quest-status { font-weight: 700; color: #3a3350; }
.quest-reward { font-weight: 800; color: #b06a1f; white-space: nowrap; }

.quest-actions { margin-top: 8px; }
.quest-hint { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #8a6a4f; }
.quest-go { padding: 7px 14px; }
.quest-redo {
  padding: 6px 12px;
  border: 1px solid #27345c;
  border-radius: 8px;
  background: #fff;
  color: #27345c;
  font-weight: 800;
}
.quest-redo:hover { background: #27345c; color: #fff; }

.quest-tracked { border-left-color: #ffb800; box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.45); background: rgba(255, 250, 232, 0.92); }
.quest-track {
  padding: 6px 12px;
  border: 1px solid #d99a16;
  border-radius: 8px;
  background: #fff;
  color: #b06a1f;
  font-weight: 800;
}
.quest-track:hover { background: #ffb800; color: #2a2236; border-color: #ffb800; }
.quest-track.tracking { background: #ffce3a; border-color: #ffce3a; color: #2a2236; cursor: default; opacity: 1; }

/* mall shop */
.shop-stars {
  font-weight: 900;
  font-size: 16px;
  color: #b06a1f;
  margin-bottom: 4px;
}
.shop-hint {
  font-size: 12.5px;
  color: #51465b;
  margin: 0 0 12px;
}
.shop-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.shop-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1px solid rgba(44, 33, 60, 0.16);
  border-radius: 10px;
  background: #fff;
}
.shop-tile.owned { opacity: 0.72; }
.shop-name { font-size: 12px; font-weight: 800; text-align: center; line-height: 1.15; color: #2c2238; }
.shop-meta { font-size: 9.5px; text-transform: capitalize; color: #8a8398; }
.shop-buy {
  margin-top: 2px;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: #f2b04a;
  color: #3a2a10;
  font-weight: 900;
  font-size: 12px;
}
.shop-buy.broke { background: #e7e2ee; color: #9a93a8; cursor: not-allowed; }
.shop-buy.owned { background: #d8eede; color: #3a7a52; cursor: default; }

.nearby-card {
  position: fixed;
  left: 14px;
  bottom: 90px;
  z-index: 45;
  width: min(360px, calc(100vw - 28px));
  border-radius: 8px;
  padding: 12px;
}

.nearby-card h3 {
  margin: 0 0 4px;
}

.nearby-card p {
  font-size: 13px;
  color: #51465b;
  margin-bottom: 8px;
}

.nearby-card .primary-btn,
.nearby-card .secondary-btn,
.nearby-card .speak-btn {
  margin-right: 6px;
}

.nearby-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  top: 74px;
  z-index: 42;
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 900;
}

.chat-panel {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 36;
  width: min(420px, calc(100vw - 24px));
  border-radius: 8px;
  padding: 8px;
}

#chat-messages {
  max-height: 130px;
  overflow: auto;
  font-size: 13px;
  margin-bottom: 6px;
}

.chat-msg {
  margin-bottom: 3px;
}

.chat-name {
  font-weight: 900;
  color: #27345c;
}

#chat-form {
  margin: 0;
}

#chat-input {
  width: 100%;
  border: 1px solid rgba(44, 33, 60, 0.25);
  border-radius: 8px;
  padding: 9px;
}

#mobile-controls {
  display: none;
}

@media (max-width: 820px) {
  #menu-screen {
    padding: 10px;
    padding-bottom: 56px;
    -webkit-overflow-scrolling: touch;
  }

  h1 {
    font-size: 32px;
  }

  .menu-top,
  .menu-grid,
  .creator-layout,
  .closet-body {
    grid-template-columns: 1fr;
    display: grid;
  }

  .menu-top {
    gap: 8px;
  }

  .creator-scroll {
    max-height: none;
  }

  #topbar {
    flex-wrap: wrap;
  }

  .hud-btn,
  #stars-readout {
    padding: 7px 9px;
    font-size: 12px;
  }

  .refresh-btn {
    min-width: 38px;
    font-size: 18px;
  }

  .drawer {
    top: 88px;
    left: 8px;
    right: 8px;
    bottom: 82px;
    width: auto;
  }

  .nearby-card {
    bottom: 148px;
    max-height: calc(100vh - 232px);
    overflow: auto;
  }

  #mobile-controls {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
  }

  #joystick {
    pointer-events: auto;
    position: relative;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.3), rgba(39, 52, 92, 0.42));
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 18px rgba(20, 14, 30, 0.3);
    touch-action: none;
  }

  #joy-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 34%, #ffffff, #cdd6ff 62%, #8a93c8);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 3px 10px rgba(20, 14, 30, 0.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  #mobile-act {
    pointer-events: auto;
    min-width: 86px;
    height: 64px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 95, 162, 0.92);
    color: #fff;
    font-weight: 900;
    font-size: 15px;
  }

  .chat-panel {
    bottom: 76px;
    z-index: 34;
  }
}

/* ---------------------------------------------------- emote bar + voice picker */
.emote-bar { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.emote-bar.open { z-index: 70; }   /* open tray sits ABOVE the mobile joystick (z 40) so it's always tappable to clear */
.emote-toggle { width: 52px; height: 52px; border-radius: 50%; border: none; font-size: 25px; line-height: 1; cursor: pointer; background: rgba(255,255,255,0.94); box-shadow: 0 5px 16px rgba(40,30,60,0.32); transition: transform 0.12s; }
.emote-toggle:hover { transform: scale(1.06); }
.emote-tray { display: none; flex-direction: row; gap: 8px; background: rgba(40,28,62,0.86); padding: 9px; border-radius: 18px; box-shadow: 0 8px 26px rgba(20,10,40,0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.emote-bar.open .emote-tray { display: flex; animation: emotePop 0.16s ease; }
.emote-opt { width: 46px; height: 46px; border-radius: 50%; border: none; font-size: 23px; line-height: 1; cursor: pointer; background: rgba(255,255,255,0.96); transition: transform 0.1s; }
.emote-opt:hover { transform: scale(1.15); }
@keyframes emotePop { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }
.set-divider { height: 1px; background: rgba(0,0,0,0.12); margin: 14px 0 12px; }
.set-voice-title { font-weight: 700; font-size: 14px; margin-bottom: 9px; }
.set-voice-hint { font-weight: 400; opacity: 0.55; font-size: 12px; }
.voice-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.voice-opt { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.15); background: #fff; color: #3a2e4a; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.12s; }
.voice-opt:hover { border-color: #ff8fc4; }
.voice-opt.active { background: linear-gradient(180deg, #ff8fc4, #e85aa0); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(232,90,160,0.4); }

.login-remember { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: 13px; color: rgba(255,255,255,0.86); cursor: pointer; user-select: none; }
.login-remember input { width: 16px; height: 16px; accent-color: #e85aa0; cursor: pointer; margin: 0; }
