:root {
  --ink: #f7f5ff;
  --muted: #b6b2c9;
  --night: #0d101a;
  --violet: #8b6cff;
  --violet-soft: #b7a6ff;
  --card: rgba(32, 31, 55, 0.72);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #0b0d16;
}

/* Account roster, safe exchanges, sound and full-screen results. */
.character-screen {
  flex-direction: column;
  overflow-y: auto;
  background: linear-gradient(#10122299, #0d101af5), url('assets/eter-world-login.webp') center/cover;
}

.character-screen>.page-pad {
  padding-top: 70px;
  padding-bottom: 85px;
}

.character-screen h1 {
  font: 600 1.6rem 'Cinzel', serif;
}

.character-slot {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  color: var(--ink);
  border: 1px solid #a688e655;
  background: #151b2dde;
  border-radius: 18px;
  padding: 12px;
  margin: 16px 0;
}

.character-slot img {
  width: 85px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}

.character-slot strong,
.character-slot small {
  display: block;
  margin: 8px 0;
}

.character-slot small {
  color: var(--muted);
  font-size: .75rem;
}

.player-header {
  gap: 7px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.player-header .profile-chip {
  min-width: 0;
  flex: 1;
}

.profile-chip strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-count {
  color: #82ddb4;
  text-align: center;
  font-size: .7rem;
  flex-shrink: 0;
}

.online-count small {
  display: block;
  font-size: .55rem;
}

.logout-button {
  border: 1px solid #ffffff22;
  background: #ffffff0b;
  color: var(--ink);
  padding: 10px 8px;
  border-radius: 10px;
  font-size: .72rem;
}

.game-nav button {
  position: relative;
}

.social-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  right: 19%;
  top: 9px;
  background: #57ee9d;
  box-shadow: 0 0 10px #57ee9d;
}

.social-dot[hidden] {
  display: none;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.profile-actions .primary-button {
  grid-column: 1/-1;
}

.profile-actions button {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.music-controls {
    position: absolute;
    z-index: 95;
    top: 79px;
    right: 52px;
    max-width: 230px;
}

.app-shell:has(#auth-screen.active) .music-controls,
.app-shell:has(#character-screen.active) .music-controls {
  top: 12px;
}

.music-controls button {
  border: 1px solid #b594dd66;
  color: #eee6ff;
  background: #141a2bd9;
  border-radius: 18px;
  padding: 6px 10px;
  font-size: .65rem;
  backdrop-filter: blur(10px);
}

#music-volume-panel {
  padding: 15px;
  background: #161b30;
  border: 1px solid #a78ace77;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 15px 30px #0008;
}

#music-volume-panel output {
  margin-left: 10px;
}

#music-volume {
  padding: 8px 0;
  accent-color: #bb98ff;
}

.trade-offer h3 {
  margin-bottom: 10px;
}

.trade-items article {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.trade-items .item-art {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
}

.trade-items small {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  margin: 4px 0;
}

#trade-offer-form fieldset {
  border: 1px solid #8b6cff55;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}

.trade-picker {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  margin: 15px 0;
}

.trade-picker label {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #fff2;
  padding: 8px;
  border-radius: 10px;
}

.trade-picker .item-art {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
}

.trade-picker span {
  flex: 1;
}

.trade-picker input {
  width: 20px;
  height: 20px;
  accent-color: #9c75ff;
}

.battle-result {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: auto;
  background: radial-gradient(ellipse at 50% 30%, #583f22, #101322 65%);
  display: grid;
  place-items: center;
  padding: 45px 20px;
  text-align: center;
}

.battle-result[hidden] {
  display: none;
}

.battle-result.defeat {
  background: radial-gradient(ellipse at 50% 30%, #45263c, #101322 65%);
}

.result-content {
  width: min(100%, 440px);
}

.result-content h1 {
  font: 700 3rem 'Cinzel', serif;
  color: #f8d890;
}

.defeat .result-content h1 {
  color: #f3bfd1;
}

.result-content>p {
  line-height: 1.6;
  color: #ded7e8;
}

.result-content>button {
  width: 100%;
  margin: 12px 0;
}

.result-loot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid #eec67766;
  background: #161a2b;
  border-radius: 18px;
  text-align: left;
  margin: 25px 0;
}

.result-loot .item-art {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
}

.result-loot small {
  display: block;
  color: var(--muted);
  margin: 7px 0;
}

.reward-chest {
  position: relative;
  width: 160px;
  height: 145px;
  margin: 25px auto;
  filter: drop-shadow(0 0 20px #f8ba5666);
}

.chest-base {
  position: absolute;
  bottom: 5px;
  width: 160px;
  height: 75px;
  background: linear-gradient(#975227, #502714);
  border: 7px solid #d6aa55;
  border-radius: 6px 6px 18px 18px;
  box-shadow: inset 18px 0 #b58135, inset -18px 0 #b58135;
}

.chest-base span {
  display: block;
  width: 30px;
  margin: auto;
  background: #e1b660;
  color: #604522;
  line-height: 35px;
  border-radius: 0 0 10px 10px;
}

.chest-lid {
  position: absolute;
  top: 10px;
  width: 160px;
  height: 65px;
  border: 7px solid #e2b558;
  border-radius: 50px 50px 5px 5px;
  background: linear-gradient(#87461f, #48250f);
  transform: rotate(-9deg) translate(-7px, -8px);
}

.chest-light {
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 57px;
  color: #ffebad;
  font-size: 45px;
  text-shadow: 0 0 25px #ffd66a;
}

.defeat-emblem {
  font-size: 90px;
  color: #b287ad;
  margin: 25px auto;
}

@media(max-width:360px) {
  .player-header .mini-avatar {
    width: 30px;
    height: 30px
  }

  .profile-chip strong {
    max-width: 95px
  }

  .profile-chip small {
    font-size: .59rem
  }

  .gold-balance {
    font-size: .7rem
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #0b0d16;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Minhas modificações */

.bgmercado{
  background-image: url("/assets/items/bg-mercado.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: white!important;  
}

.bgamigos{
  background-image: url("/assets/ui/bg-amigos.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  align-items: end;
}

.bghabilidades{
  background-image: url("/assets/ui/bg-habilidades.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  align-items: end;
}

.bgmapa{
  background-image: url("/assets/ui/mapa-button.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  align-items: end;
}

.bghero {
  background-image: url("/assets/ui/hero-button.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  align-items: end;
}

.hub-grid small {    
    color: white;
    font-size: .69rem;
    line-height: 1.45;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  overflow: hidden;
  margin: 0 auto;
  background: var(--night);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  height: 100%;
  overflow: hidden;
}

.screen.active {
  display: flex;
  animation: reveal .35s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.eyebrow {
  color: var(--violet-soft);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .14em;
}

/* Login */
.auth-screen {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 10, 25, .05) 20%, rgba(9, 10, 19, .3) 45%, rgba(9, 10, 19, .92)), url("assets/eter-world-login.webp") center/cover, #162637;
}

.auth-content {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  width: min(100% - 44px, 380px);
  padding: 50px 0 max(28px, env(safe-area-inset-bottom));
  /*margin-top: auto;*/
  margin-top: 6rem;
}

.auth-screen .aurora,
.auth-screen .star-field {
  display: none;
}

.aurora {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: .45;
}

.aurora-one {
  top: -140px;
  left: -100px;
  background: #6b43e6;
}

.aurora-two {
  right: -130px;
  bottom: -110px;
  background: #1b83a3;
}

.star-field {
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image: radial-gradient(#fff 1px, transparent 1px), radial-gradient(#c8c0ff 1px, transparent 1px);
  background-size: 64px 64px, 91px 91px;
  background-position: 13px 20px, 39px 51px;
}

.brand-lockup {
  margin-bottom: 28px;
  text-shadow: 0 3px 20px #0c142a;
}

.brand-sigil {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border: 1px solid rgba(221, 214, 255, .45);
  border-radius: 14px;
  color: #eadfff;
  font-size: 1.45rem;
  transform: rotate(45deg);
}

.brand-sigil::first-letter {
  transform: rotate(-45deg);
}

.brand-lockup .eyebrow {
  display: block;
  margin-bottom: 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.brand-lockup h1 {
  margin-bottom: 8px;
  font: 700 clamp(3.8rem, 17vw, 5.5rem)/.86 "Cinzel", Georgia, serif;
  letter-spacing: .08em;
  text-indent: .08em;
}

.brand-lockup p {
  margin-bottom: 0;
  color: #eee8ff;
}

.login-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: rgba(13, 15, 28, .7);
  backdrop-filter: blur(12px);
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-tabs button {
  flex: 1;
  min-height: 44px;
  border: 1px solid #ffffff22;
  background: #121426;
  border-radius: 12px;
  color: #afb5cb;
  font: inherit;
}

.auth-tabs button.selected {
  background: #6045ae;
  color: white;
  border-color: #bb9bff;
}

#username-field:not([hidden]) {
  display: grid;
  gap: 10px;
}

.target-select {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.target-select label,
.search-form label {
  display: grid;
  gap: 8px;
  font-size: .8rem;
  color: #c5ccdf;
}

.target-select select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #596181;
  border-radius: 10px;
  background: #151b2e;
  color: white;
  font: inherit;
}

.combatant {
  border: 1px solid #ffffff14;
  background: #11182a;
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
}

.combatant.current-turn {
  border-color: #c6a45d;
  box-shadow: 0 0 0 1px #c6a45d33;
}

.combatant.defeated {
  opacity: .5;
}

.combatant small {
  display: block;
  color: #aab4cb;
  margin-top: 6px;
  font-size: .7rem;
}

.turn-notice {
  padding: 12px;
  border-left: 3px solid #b698ff;
  background: #a78be614;
  font-size: .82rem;
  line-height: 1.6;
}

.person-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.person-actions button {
  padding: 8px;
  font-size: .7rem;
}

.party-member>div:not(.person-actions) {
  min-width: 0;
}

.party-member strong {
  overflow-wrap: anywhere;
}

.search-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.location-copy>p {
  font-size: .8rem;
  line-height: 1.55;
  color: #e2d9ef;
}

.battle-panel .eyebrow {
  margin-top: 20px;
}

@media (max-width: 380px) {
  .party-member {
    flex-wrap: wrap;
  }

  .person-actions {
    flex-direction: row;
    margin-left: auto;
  }
}

label,
.field-label {
  color: #dedbea;
  font-size: .79rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  transition: border-color .2s, box-shadow .2s;
}

input::placeholder {
  color: #8d8a9e;
}

input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 108, 255, .18);
}

.form-note {
  margin: 4px 3px 0;
  color: #8d8a9e;
  font-size: .71rem;
  line-height: 1.35;
  text-align: center;
}

/* Shared controls */
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: linear-gradient(120deg, #8465fa, #ab74ff);
  box-shadow: 0 10px 25px rgba(126, 87, 255, .25);
  font-size: .92rem;
  font-weight: 700;
  transition: transform .2s, filter .2s, opacity .2s;
}

.primary-button span {
  font-size: 1.25rem;
  line-height: 1;
}

.primary-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: .38;
  filter: grayscale(1);
  transform: none;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  color: #e7e4f3;
  background: rgba(255, 255, 255, .06);
  font-size: 1.3rem;
}

/* Creation */
.creation-screen {
  flex-direction: column;
  background: linear-gradient(165deg, #13152a, #0c0e18 58%);
}

.creation-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  padding: calc(18px + env(safe-area-inset-top)) 22px 16px;
}

.creation-title {
  flex: 1;
}

.creation-title .eyebrow {
  display: block;
  margin-bottom: 3px;
}

.creation-title h2 {
  margin: 0;
  font: 600 1.15rem "Cinzel", Georgia, serif;
}

.step-count {
  color: #aaa6bb;
  font-size: .78rem;
  font-weight: 700;
}

.progress-track {
  height: 3px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .08);
}

.progress-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: linear-gradient(90deg, #8668ff, #c38aff);
  transition: width .3s ease;
}

.creation-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 18px 24px;
  scrollbar-width: thin;
  scrollbar-color: #514376 transparent;
}

.creation-body::-webkit-scrollbar {
  display: none;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: reveal .28s ease both;
}

.section-intro {
  margin-bottom: 23px;
}

.section-intro .eyebrow {
  display: block;
  margin-bottom: 7px;
}

.section-intro h3 {
  margin-bottom: 8px;
  font: 600 1.75rem/1.2 "Cinzel", Georgia, serif;
  letter-spacing: -.02em;
}

.section-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.context-chip {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid #a88cfc40;
  border-radius: 6px;
  background: #8b6cff14;
  color: #d2c2ff;
  font-size: .75rem;
}

.gender-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}

.gender-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #aaa7b9;
  background: transparent;
  font-size: .77rem;
  font-weight: 700;
}

.gender-option span {
  color: #b7a6ff;
  font-size: 1rem;
}

.gender-option.selected {
  border-color: rgba(185, 164, 255, .35);
  color: #f5f1ff;
  background: rgba(139, 108, 255, .25);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .15);
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-card {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 158px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px 18px 6px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, .045);
  text-align: left;
  transition: border-color .2s, background .2s, transform .2s;
}

.choice-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .07);
}

.choice-card.selected {
  border-color: #9279ff;
  background: linear-gradient(100deg, rgba(130, 96, 252, .25), rgba(130, 96, 252, .06));
}

.choice-card.selected::after {
  content: "✓";
  position: absolute;
  right: 15px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #18122e;
  background: #c8baff;
  font-size: .72rem;
  font-weight: 800;
}

.choice-art {
  position: relative;
  display: block;
  width: 49%;
  aspect-ratio: 1;
  flex: 0 0 49%;
  overflow: hidden;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  background-color: var(--choice-color, #524386);
}

.choice-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .25s;
}

.choice-card:hover img {
  transform: scale(1.035);
}

.choice-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 8px;
  padding: 16px 12px 10px 0;
}

.choice-copy strong {
  font-size: .98rem;
}

.choice-copy small {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.3;
}

.creation-footer {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  padding: 13px 22px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(13, 15, 26, .95);
}

.selection-hint {
  min-height: 17px;
  margin: 0 0 8px;
  color: #aaa6bb;
  font-size: .72rem;
  text-align: center;
}

.character-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
}

.avatar-orb {
  --aura: #8b6cff;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 3px solid color-mix(in srgb, var(--aura), white 20%);
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 35% 25%, #fff9, transparent 20%), linear-gradient(145deg, var(--aura), #19162a);
  box-shadow: 0 0 25px color-mix(in srgb, var(--aura), transparent 55%);
  font: 1.5rem "Cinzel", serif;
}

.avatar-orb {
  width: 86px;
  height: 86px;
  background-size: cover;
  background-position: center 20%;
}

.character-preview div:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.character-preview strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.character-preview span {
  color: var(--muted);
  font-size: .78rem;
}

.details-form {
  display: grid;
  gap: 9px;
}

.field-label {
  margin-top: 10px;
}

.color-options {
  display: flex;
  gap: 12px;
  margin-top: 3px;
}

.color-swatch {
  width: 38px;
  height: 38px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

.color-swatch.selected {
  border-color: white;
  box-shadow: 0 0 0 3px var(--swatch);
}

.color-swatch[data-color="violet"] {
  --swatch: #8867f6;
}

.color-swatch[data-color="rose"] {
  --swatch: #db5a83;
}

.color-swatch[data-color="gold"] {
  --swatch: #d99f45;
}

.color-swatch[data-color="teal"] {
  --swatch: #36aeaf;
}

/* Home */
.home-screen {
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 76px;
  background: #11182d;
  scrollbar-width: none;
}

.home-screen::-webkit-scrollbar {
  display: none;
}

.home-sky {
  position: absolute;
  inset: 0 0 auto;
  height: 390px;
  background: radial-gradient(circle at 76% 3%, rgba(236, 206, 255, .72) 0 1.5%, transparent 1.8%), radial-gradient(ellipse at 47% 18%, #8f6ac0 0, #5964aa 31%, #26385d 62%, #17243e 100%);
  overflow: hidden;
}

.home-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 38px 38px;
}

.home-sky::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 450px;
  height: 225px;
  border-radius: 50% 50% 0 0;
  background: #1c2d45;
  box-shadow: -270px 50px 0 22px #1b2940, -115px 32px 0 0 #23334c;
  transform: rotate(-7deg);
}

.home-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(17px + env(safe-area-inset-top)) 21px 8px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 260px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 30px;
  color: white;
  background: rgba(20, 27, 48, .35);
  backdrop-filter: blur(8px);
  text-align: left;
}

.profile-chip span:last-child {
  display: grid;
  gap: 1px;
}

.profile-chip strong {
  overflow: hidden;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chip small {
  color: #d2cce0;
  font-size: .62rem;
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: white;
  background: #7d62d2;
  font-size: .8rem;
}

.icon-button.dark {
  color: white;
  background: rgba(20, 27, 48, .36);
  backdrop-filter: blur(8px);
}

.home-content {
  position: relative;
  z-index: 1;
  padding: 76px 21px 18px;
}

.welcome-block {
  text-shadow: 0 2px 15px rgba(0, 0, 0, .3);
}

.welcome-block .eyebrow {
  color: #e7d5ff;
}

.welcome-block h2 {
  margin: 7px 0 9px;
  font: 600 clamp(1.85rem, 8vw, 2.25rem)/1.15 "Cinzel", Georgia, serif;
}

.welcome-block h2 span {
  color: #e3cdff;
  overflow-wrap: anywhere;
}

.welcome-block p:last-child {
  margin-bottom: 25px;
  color: #e1e1ed;
  font-size: .84rem;
}

.featured-quest {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(86, 57, 132, .92), rgba(26, 38, 66, .92));
  box-shadow: 0 20px 40px rgba(4, 9, 19, .28);
}

.quest-glow {
  position: absolute;
  right: -45px;
  top: -65px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #b088ff;
  filter: blur(55px);
  opacity: .24;
}

.quest-topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e4d9ff;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .11em;
}

.level-pill {
  padding: 5px 8px;
  border-radius: 30px;
  color: white;
  background: rgba(255, 255, 255, .13);
  letter-spacing: normal;
}

.featured-quest h3 {
  position: relative;
  margin: 16px 0 7px;
  font: 600 1.42rem "Cinzel", Georgia, serif;
}

.featured-quest p {
  position: relative;
  margin-bottom: 19px;
  color: #e2deed;
  font-size: .81rem;
  line-height: 1.45;
}

.light-button {
  position: relative;
  color: #281b44;
  background: #f4edff;
  box-shadow: none;
}

.game-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  color: white;
  background: rgba(255, 255, 255, .055);
  text-align: left;
}

.action-card:hover {
  background: rgba(255, 255, 255, .09);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  color: #c6b9ff;
  background: #282a4e;
  font-size: 1.15rem;
}

.action-card span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 2px;
}

.action-card strong {
  font-size: .84rem;
}

.action-card small {
  color: #aaa9ba;
  font-size: .69rem;
}

.action-card b {
  color: #bcb7d0;
  font-size: 1.25rem;
  font-weight: 400;
}

.bottom-nav {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-around;
  padding: 8px 13px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: rgba(14, 19, 35, .88);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 3px;
  flex: 1;
  border: 0;
  color: #8e91a2;
  background: transparent;
  font-size: .61rem;
}

.nav-item span {
  font-size: 1.22rem;
}

.nav-item.active {
  color: #d3c2ff;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 94px;
  left: 20px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  color: white;
  background: #282346;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  font-size: .82rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .25s ease;
}

.toast.visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 481px) {
  body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at 50%, #30304b, #14151f 65%);
  }

  .app-shell {
    height: min(860px, 100dvh);
    border-right: 1px solid rgba(255, 255, 255, .1);
    border-left: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
  }
}

button:focus-visible {
  outline: 3px solid #e4c883;
  outline-offset: 3px;
}

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

/* Game: a fixed header/navigation around one independently scrolling view. */
.game-shell {
  flex-direction: column;
  background: #0e1221;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid #ffffff12;
  background: #121628;
}

.player-header .profile-chip {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.player-header .profile-chip span {
  min-width: 0;
}

.player-header .mini-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: cover;
}

.player-header .profile-chip strong {
  font-size: .83rem;
}

.player-header .profile-chip small {
  font-size: .69rem;
}

.gold-balance {
  color: #efc87f;
  font-size: .78rem;
  white-space: nowrap;
}

.game-view {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #514376 transparent;
  overscroll-behavior: contain;
}

.game-nav {
  display: flex;
  flex-shrink: 0;
  gap: 3px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid #ffffff13;
  background: #121628;
}

.game-nav button {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  color: #949ab0;
  background: transparent;
  font-size: .61rem;
}

.game-nav button span {
  font-size: 1.3rem;
  line-height: 1;
}

.game-nav button.active {
  color: #ddd0ff;
  background: #8763ec22;
}

.page-pad {
  padding: 22px 18px 30px;
}

.page-heading {
  margin-bottom: 24px;
}

.page-heading .eyebrow {
  margin-bottom: 8px;
}

.page-heading h2 {
  margin-bottom: 9px;
  font: 600 1.85rem/1.2 "Cinzel", Georgia, serif;
}

.page-heading p:last-child {
  color: #aeb4ca;
  font-size: .83rem;
  line-height: 1.6;
}

.panel {
  margin-bottom: 16px;
  padding: 17px;
  border: 1px solid #ffffff13;
  border-radius: 16px;
  background: #1b203480;
}

.panel h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.panel>p:not(.eyebrow) {
  font-size: .81rem;
  line-height: 1.55;
  color: #b9c0d4;
}

.panel>.eyebrow {
  margin-bottom: 10px;
}

.compact-note {
  color: #a6aec4;
  font-size: .75rem;
  line-height: 1.6;
}

.panel .compact-note:last-child {
  margin: 12px 0 0;
}

.location-hero {
  position: relative;
  height: 345px;
}

.location-hero>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.location-hero::after,
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 15%, #0e122124 40%, #0e1221 100%);
}

.location-hero>div,
.hero-portrait>div {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 4px;
}

.location-hero h2,
.hero-portrait h2 {
  margin: 8px 0;
  font: 600 1.8rem/1.16 "Cinzel", Georgia, serif;
  overflow-wrap: anywhere;
}

.location-hero p:last-child {
  margin-bottom: 0;
  color: #d6dce7;
  font-size: .8rem;
  line-height: 1.5;
}

.location-hero .eyebrow,
.hero-portrait .eyebrow {
  color: #f3d19b;
  text-shadow: 0 1px 5px #000;
  margin-bottom: 8px;
}

.xp-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .85rem;
}

.xp-heading small {
  color: #9ca4ba;
  font-weight: 400;
}

.xp-heading>span {
  font-size: .69rem;
  color: #b8c0d4;
}

.meter {
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff13;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #866aff, #c19aff);
  transition: width .2s;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.hub-grid button {
  display: grid;
  gap: 7px;
  border: 1px solid #ffffff15;
  border-radius: 14px;
  padding: 15px;
  background: #1b2034;
  color: #eeeaff;
  text-align: left;
}

.hub-grid button>span {
  color: #bb9af4;
  font-size: 1.5rem;
}

.wide-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 15px 0;
  padding: 13px 15px;
  border: 1px solid #ffffff13;
  border-radius: 12px;
  color: #ded5f9;
  background: #1c2235;
  font-size: .8rem;
  text-align: left;
}

.wide-link span {
  font-size: .65rem;
  color: #a8b0c6;
}

.hero-portrait {
  position: relative;
  height: 395px;
}

.hero-portrait>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-portrait>div {
  bottom: 0;
}

.hero-portrait .context-chip {
  margin-top: 0;
  background: #141a2ec9;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 12px;
}

.section-label h3 {
  margin: 0;
  font-size: .98rem;
}

.section-label>span {
  font-size: .7rem;
  color: #aaaec3;
}

.section-label>.points-pill {
  padding: 5px 8px;
  border: 1px solid #b691ff55;
  border-radius: 20px;
  color: #e6d5ff;
  background: #a581ff20;
}

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

.stat-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px 36px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: #1a2034;
}

.stat-icon {
  color: #c9b1fc;
  font-size: 1.25rem;
}

.stat-row strong {
  font-size: .86rem;
}

.stat-row small {
  display: block;
  margin-top: 4px;
  font-size: .61rem;
  color: #a2adc5;
}

.stat-row>b {
  text-align: center;
  font-size: 1.15rem;
}

.stat-row>p {
  grid-column: 2 / -1;
  margin: 0;
  color: #9ea9c3;
  font-size: .64rem;
  line-height: 1.4;
}

.stat-add {
  width: 36px;
  height: 44px;
  padding: 0;
  color: #e3cfff;
  background: #936bdf33;
  border: 1px solid #bd95ff44;
  border-radius: 9px;
  font-size: 1.2rem;
}

.small-button {
    margin-right: 10px;
    margin-top: 10px;
    min-height: 44px;
    padding: 9px 12px;
    color: #e1d3ff;
    background: #936bdf26;
    border: 1px solid #bd95ff40;
    border-radius: 9px;
    font-size: .75rem;
    font-weight: 600;
}

.text-button {
  min-height: 44px;
  border: 0;
  color: #c7aff6;
  background: transparent;
  font-size: .75rem;
}

.profile-equipment { margin-bottom: 24px; }

.equipment-paperdoll {
  display: grid;
  grid-template-columns: minmax(44px, .85fr) minmax(68px, 1.3fr) minmax(0, 1.8fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  aspect-ratio: 1.1;
  min-height: 230px;
  padding: 14px;
  border: 1px solid #bb975d40;
  border-radius: 16px;
  background: radial-gradient(ellipse at 80% 45%, #c79a5320, transparent 65%), #121625;
}

.gear-slot {
  --rarity: #626b80;
  display: block;
  align-self: center;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  aspect-ratio: 1;
  border: 2px solid var(--rarity);
  border-radius: 9px;
  background: #0b1425;
  cursor: pointer;
}

.gear-slot-chest { grid-area: 1 / 1; }
.gear-slot-gloves { grid-area: 2 / 1; }
.gear-slot-legs { grid-area: 3 / 1; }
.gear-slot-boots { grid-area: 4 / 1; }
.gear-slot-weapon { grid-area: 1 / 2 / 5 / 3; align-self: center; transform: translateY(calc(-50% - 6px)); }
.gear-slot-cape { grid-area: 1 / 2 / 5 / 3; align-self: center; transform: translateY(calc(50% + 6px)); }
.guild-description { white-space: pre-wrap; overflow-wrap: anywhere; }
#guild-description-form { display: grid; gap: 10px; }
#guild-description { width: 100%; min-height: 105px; resize: vertical; padding: 12px; color: var(--text, #f5eddd); background: #101423; border: 1px solid #66677b; border-radius: 10px; font: inherit; }
.stat-row > b small { display: block; font-size: 11px; font-weight: 500; white-space: normal; }
.gear-slot .item-art { border-radius: 7px; }
.gear-slot:hover { box-shadow: 0 0 16px color-mix(in srgb, var(--rarity) 35%, transparent); }
.gear-slot:focus-visible { outline: 3px solid #fff1cf; outline-offset: 3px; }
.gear-slot-empty { border: 1px dashed #67708c88; background: #ffffff03; }
span.gear-slot-empty { cursor: default; }
.equipment-empty { display: block; position: absolute; inset: 22%; border: 1px solid #ffffff0d; border-radius: 4px; }
.gear-slot .missing-art { font-size: 0; }
.gear-slot .missing-art::after { content: '◇'; font-size: 1.4rem; }

.equipment-silhouette {
  grid-area: 1 / 3 / 5 / 4;
  align-self: stretch;
  justify-self: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.equipment-hint { margin: 10px 0 0; text-align: center; }

.skill-list {
  display: grid;
  gap: 12px;
}

.skill-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  padding: 16px 12px;
  border: 1px solid #a17cee33;
  border-radius: 14px;
  background: linear-gradient(130deg, #3a285a70, #1a2034);
}

.skill-card.locked {
  background: #191e2d;
  border-color: #ffffff14;
}

.skill-card.locked .skill-number {
  color: #7c879f;
}

.skill-number {
  font-family: "Cinzel", Georgia, serif;
  color: #c59cff;
  font-size: 1.4rem;
}

.skill-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: .56rem;
  color: #a3adc4;
}

.skill-top b {
  color: #cdb4fc;
  font-weight: 500;
}

.locked .skill-top b {
  color: #9da8bc;
}

.skill-card h3 {
  margin: 8px 0;
  font-size: .92rem;
}

.skill-card p {
  margin: 0 0 12px;
  color: #b4bed2;
  font-size: .72rem;
  line-height: 1.5;
}

.skill-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  justify-content: space-between;
  font-size: .7rem;
}

.skill-values span {
  color: #a7b2c8;
}

.skill-card small {
  display: block;
  margin-top: 9px;
  color: #98a4bc;
  font-size: .6rem;
}

.rules-card {
  margin: 16px 0;
  padding: 13px;
  border: 1px solid #ffffff15;
  border-radius: 10px;
  color: #b7c0d4;
  font-size: .75rem;
  line-height: 1.55;
}

.rules-card summary {
  cursor: pointer;
  color: #d6c7f5;
}

.rules-card p {
  margin: 12px 0 0;
}

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

.quest-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 15px 12px;
  border: 1px solid #9976e955;
  border-radius: 12px;
  background: #221d3b;
}

.quest-locked {
  background: #171c2a;
  border-color: #ffffff10;
}

.quest-done {
  background: #17262b;
  border-color: #75c6ab25;
}

.quest-index {
  color: #c4a7fa;
  font: 600 1.2rem "Cinzel", Georgia, serif;
}

.quest-done .quest-index {
  color: #79cfba;
}

.quest-card .eyebrow {
  font-size: .51rem;
  letter-spacing: .06em;
  line-height: 1.7;
}

.quest-card h3 {
  margin: 7px 0;
  font-size: .89rem;
}

.quest-card p {
  margin: 0 0 8px;
  color: #a9b3c7;
  font-size: .72rem;
  line-height: 1.5;
}

.quest-card small {
  color: #dbbc86;
  font-size: .67rem;
}

.quest-card .quest-state {
  margin-top: 10px;
  font-size: .64rem;
  color: #b6a1d8;
}

.featured-quest .quest-state {
  color: #d6c4f9;
  font-size: .7rem;
}

.reward-line {
  color: #e6c58a !important;
}

.reward-banner {
  padding: 14px;
  border: 1px solid #7dc6a958;
  border-radius: 12px;
  color: #b6eddc;
  background: #1b3834;
  font-size: .8rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.reward-banner strong,
.reward-banner small {
  display: block;
  margin: 4px 0;
}

.reward-banner .rarity-dot {
  display: none;
}

.objective-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 13px;
  margin: 18px 0;
}

.objective-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8692aa;
  font-size: .77rem;
}

.objective-list li>span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  font-size: .63rem;
}

.objective-list li.done {
  color: #7cd6b9;
}

.objective-list li.current {
  color: #e3d5ff;
}

.objective-list li.current>span {
  background: #8462ce;
  color: white;
}

.battle-panel {
  border-top: 1px solid #ffffff15;
  padding-top: 5px;
  margin-bottom: 16px;
}

.health-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .7rem;
  margin: 14px 0 7px;
}

.meter.enemy i {
  background: #e46d85;
}

.meter.health i {
  background: #6fc7a8;
}

.battle-log {
  border-radius: 9px;
  background: #080d19;
  padding: 12px;
  max-height: 190px;
  overflow-y: auto;
}

.battle-log p {
  margin: 0 0 6px;
  color: #acb7cf;
  font-size: .69rem;
  line-height: 1.45;
}

.battle-log p:last-child {
  margin: 0;
  color: #e2d5fd;
}

.battle-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.success-text {
  font-size: .77rem;
  color: #7cd6b9;
  line-height: 1.6;
}

.rarity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 20px 0 14px;
  font-size: .65rem;
}

.inventory-item {
  border: 1px solid #ffffff14;
  border-left: 3px solid var(--rarity);
  border-radius: 10px;
  margin: 10px 0;
  padding: 0 12px;
  background: #191f31;
}

.inventory-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 14px 0 14px 16px;
}

.rarity-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rarity);
}

.inventory-item .rarity-dot {
  position: absolute;
  left: 0;
  top: 20px;
}

.inventory-item strong,
.market-card strong {
  display: block;
  color: var(--rarity);
  font-size: .83rem;
  line-height: 1.5;
}

.inventory-item small,
.market-card small {
  display: block;
  color: #a1adc5;
  font-size: .65rem;
  line-height: 1.55;
  margin-top: 5px;
}

.inventory-item em {
  display: block;
  color: #cfbde9;
  font-style: normal;
  font-size: .62rem;
  margin-top: 7px;
}

.inventory-controls {
  border-top: 1px solid #ffffff12;
  padding: 10px 0 14px;
}

.inventory-controls p {
  font-size: .7rem;
  color: #a2aec5;
}

.inventory-controls form {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.inventory-controls label {
  font-size: .7rem;
}

.inventory-controls input {
  margin-top: 7px;
  padding: 10px;
}

.market-card {
  position: relative;
  margin: 12px 0;
  padding: 15px;
  border: 1px solid #ffffff16;
  border-left: 3px solid var(--rarity);
  border-radius: 12px;
  background: #171e30;
}

.market-card>p {
  color: #a7b3cb;
  font-size: .7rem;
  margin-top: 12px;
}

.market-card .section-label {
  margin: 14px 0 0;
}

.local-notice {
  color: #d0bd95;
  background: #4b3b252b;
  border: 1px solid #b6945940;
  border-radius: 10px;
  padding: 13px;
  margin: 15px 0;
  font-size: .73rem;
  line-height: 1.6;
}

.empty-state {
  padding: 28px 16px;
  border: 1px dashed #ffffff26;
  border-radius: 12px;
  color: #a5b0c7;
  font-size: .82rem;
  line-height: 1.6;
  text-align: center;
  margin: 20px 0;
}

.party-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ffffff13;
  background: #1a2034;
  border-radius: 12px;
  margin-bottom: 10px;
}

.party-member>img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.party-member>div {
  flex: 1;
  min-width: 0;
}

.party-member>.person-actions {
  flex: 0 0 auto;
}

.party-member strong {
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.party-member small {
  display: block;
  margin-top: 5px;
  color: #9faec6;
  font-size: .62rem;
  line-height: 1.4;
}

.party-member>span {
  color: #8fe0bf;
}

.region-card {
  border: 1px solid #ffffff18;
  border-radius: 16px;
  background: #192036;
  margin-bottom: 18px;
  overflow: hidden;
}

.region-card>img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.region-card>div {
  padding: 16px;
}

.region-card h3 {
  font: 600 1.12rem "Cinzel", Georgia, serif;
  margin: 9px 0;
}

.region-card p:not(.eyebrow) {
  font-size: .77rem;
  color: #b2bfd2;
  line-height: 1.5;
}

.toast {
  max-width: 410px;
  margin: 0 auto;
  bottom: 95px;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Item art is shared by the bag, equipped slots, market and chat. */
.bag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 0 28px;
}

.item-tile {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 2px solid var(--rarity);
  border-radius: 12px;
  background: #0b1425;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.item-tile:hover {
  box-shadow: 0 0 15px color-mix(in srgb, var(--rarity) 35%, transparent);
}

.item-tile:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

.item-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0b1425;
  border-radius: 9px;
}

.item-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-art img[hidden],
.missing-art[hidden] {
  display: none;
}

.missing-art {
  display: grid;
  place-items: center;
  height: 100%;
  color: #b7c3d7;
  font-size: .65rem;
  text-align: center;
}

.equipped-badge {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 20px;
  height: 20px;
  background: #1d443b;
  border: 1px solid #8bddba;
  border-radius: 50%;
  color: #c0ffe3;
  font-size: .7rem;
  line-height: 18px;
}

.market-item-heading {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.market-item-heading .rarity-dot {
  display: none;
}

.market-item-heading p {
  font-size: .72rem;
  color: #b9c5dd;
}

.reward-banner>.item-art {
  width: 86px;
  margin-bottom: 12px;
  border: 2px solid var(--rarity);
}

.item-modal {
  position: fixed;
  inset: 0;
  width: min(420px, calc(100% - 28px));
  max-height: 88dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #8171a7;
  border-radius: 20px;
  color: #f0e9ff;
  background: #151b2d;
  box-shadow: 0 22px 80px #000b;
  overflow: auto;
}

.item-modal::backdrop {
  background: #030813d9;
  backdrop-filter: blur(5px);
}

.item-modal-content {
  padding: 24px;
  position: relative;
}

.item-modal-art {
  width: 176px;
  margin: 0 auto 20px;
  border: 2px solid var(--rarity);
}

.item-modal h2 {
  margin: 10px 0;
  font: 600 1.2rem "Cinzel", Georgia, serif;
  line-height: 1.4;
}

.item-modal-content>p {
  font-size: .8rem;
  line-height: 1.6;
}

.item-modal-content>small {
  display: block;
  color: #a8b6ce;
  font-size: .68rem;
  line-height: 1.5;
  margin-top: 12px;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 1.5rem;
}

.item-bonuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.item-bonuses span {
  border: 1px solid #8e7dba66;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: .75rem;
  color: #dac4ff;
}

.modal-sell {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ffffff20;
}

.modal-sell label {
  font-size: .76rem;
}

.modal-sell input {
  display: block;
  margin-top: 8px;
}

.chat-launcher {
  position: absolute;
  z-index: 12;
  right: 18px;
  bottom: 83px;
  border: 1px solid #af8cec;
  border-radius: 20px;
  background: #2d2445;
  box-shadow: 0 4px 20px #0008;
  padding: 9px 16px;
  color: #f2eaff;
  font-size: .75rem;
  cursor: pointer;
}

.chat-panel {
  position: absolute;
  z-index: 20;
  right: 10px;
  left: 10px;
  bottom: 82px;
  max-height: 68dvh;
  display: flex;
  flex-direction: column;
  background: #121c2ef7;
  border: 1px solid #74668d;
  border-radius: 16px;
  box-shadow: 0 18px 55px #000b;
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel>header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 8px;
  gap: 10px;
}

.chat-panel h3 {
  font-size: .9rem;
  margin: 5px 0;
}

.chat-panel .icon-button {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.chat-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px 12px;
  gap: 4px;
}

.chat-tabs button {
  border: 0;
  border-radius: 7px;
  background: #1d2940;
  color: #b7c5da;
  padding: 10px 3px;
  font-size: .72rem;
  cursor: pointer;
}

.chat-tabs button[aria-pressed=true] {
  background: #7f5ca9;
  color: white;
}

.chat-limit {
  padding: 0 16px;
  font-size: .6rem;
  line-height: 1.5;
  color: #9eacc1;
  margin: 8px 0;
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 100px;
  height: 220px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 16px 12px;
}

.chat-message {
  border-bottom: 1px solid #ffffff0f;
  padding: 10px 0;
}

.chat-message header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.chat-message strong {
  color: #c8a6ff;
  font-size: .7rem;
  overflow-wrap: anywhere;
}

.chat-message time {
  color: #8495af;
  font-size: .6rem;
  white-space: nowrap;
}

.chat-message p {
  margin: 6px 0 0;
  font-size: .76rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #dbe3f3;
}

#chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #ffffff15;
}

#chat-form[hidden] {
  display: none;
}

#chat-form>label:not(.sr-only) {
  grid-column: 1/-1;
  font-size: .67rem;
  color: #b6c3da;
}

#chat-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid #5c5475;
  border-radius: 8px;
  background: #0d1527;
  color: #e3ecfa;
  font: inherit;
}

#chat-form textarea {
  min-width: 0;
  resize: none;
  border: 1px solid #5c5475;
  border-radius: 9px;
  background: #0d1527;
  color: #e3ecfa;
  padding: 10px;
  font: inherit;
  font-size: .76rem;
}

#chat-form .small-button {
  align-self: end;
  padding: 10px;
}

.chat-item {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #1e2639;
  color: #ece5ff;
  border: 1px solid #ffffff16;
  border-radius: 8px;
  padding: 6px;
  margin-top: 8px;
  font-size: .68rem;
  cursor: pointer;
}

.chat-item .item-art {
  width: 48px;
  flex-shrink: 0;
  border: 2px solid var(--rarity);
}

.chat-item small {
  display: block;
  color: #dfc594;
  font-size: .6rem;
  margin-top: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.action-stage {
  position: sticky;
  top: 8px;
  z-index: 6;
  border: 1px solid #ae84d975;
  background: linear-gradient(140deg, #332744, #172238);
  box-shadow: 0 8px 25px #0009;
  padding: 16px;
  margin: 15px 0;
  border-radius: 14px;
  text-align: center;
  min-height: 120px;
}

.action-stage p {
  color: #e1d6f0;
  font-size: .8rem;
  line-height: 1.6;
  margin: 3px 0 8px;
}

.action-stage small {
  display: block;
  color: #aaa6bd;
  font-size: .61rem;
}

.countdown-number {
  display: block;
  color: #eaca8f;
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 700;
  margin: 8px;
}

.action-result>strong {
  color: #9be2bf;
  font-size: .84rem;
}

.action-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.action-miss>strong {
  color: #ffb098;
}

.home-screen #game-view {
  padding-bottom: 40px;
}

@media (max-width:360px) {
  .bag-grid {
    gap: 8px;
  }

  .market-item-heading {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .chat-panel {
    left: 4px;
    right: 4px;
  }
}

/* Exploration and social layer */
.search-scene {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 36px 22px;
  background: #111c2a;
}

.search-landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}

.search-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #101527 5%, #11182d50 60%, #101527aa);
}

.search-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.search-content h2 {
  font: 600 1.55rem "Cinzel", Georgia, serif;
  margin: 20px 0 12px;
  color: #f4e5c8;
}

.search-content>p:not(.eyebrow) {
  color: #c1c8dd;
  font-size: .8rem;
  line-height: 1.65;
}

.search-sigil {
  display: grid;
  place-items: center;
  width: 115px;
  height: 115px;
  margin: 30px auto;
  border: 1px solid #ba9ae288;
  border-radius: 50%;
  font-size: 3.5rem;
  color: #d5afff;
  background: #8f5cc11a;
  box-shadow: 0 0 60px #8b4f9740, inset 0 0 25px #aa70c233;
  animation: search-breathe 1.7s ease-in-out infinite;
}

.search-found .search-sigil {
  color: #efd399;
  border-color: #e3c78b;
  background: #b8953333;
}

.search-progress {
  height: 4px;
  background: #ffffff20;
  overflow: hidden;
  border-radius: 5px;
  margin: 25px 0 8px;
}

.search-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #a983ec, #edca88);
  transform-origin: left;
  animation: search-progress linear forwards;
}

.search-content .search-timing {
  font-size: .65rem !important;
  color: #a19bb4 !important;
}

.search-party {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 24px 0 12px;
}

.search-party img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d4a85c;
  object-fit: cover;
}

.search-content>small {
  display: block;
  color: #b4c2d6;
  font-size: .65rem;
  line-height: 1.6;
}

.search-content>.small-button {
  margin-top: 20px;
}

.found-enemies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 20px 0;
}

.found-enemies span {
  border: 1px solid #c1ab6977;
  background: #2d2a24bb;
  padding: 8px;
  border-radius: 7px;
  color: #ecd7ae;
  font-size: .66rem;
}

@keyframes search-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes search-breathe {
  50% {
    box-shadow: 0 0 80px #b480b96b, inset 0 0 40px #aa70c244;
  }
}

.person-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.person-profile>img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.person-profile>span {
  min-width: 0;
}

.person-profile strong {
  color: #eee5ff;
}

.party-member {
  flex-wrap: wrap;
}

.party-member>.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.presence.online {
  color: #81d5a9;
}

.presence.offline {
  color: #929bb2;
}

.combat-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #e5dcf9;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.combat-profile img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #ae83d0;
}

.combat-profile strong {
  display: block;
  font-size: .77rem;
}

.combat-profile small {
  display: block;
  margin-top: 4px;
  color: #b6c2d8;
  font-size: .64rem;
}

.chat-avatar {
  border: 0;
  padding: 0;
  background: none;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  cursor: pointer;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #b38dd080;
}

.chat-identity {
  flex: 1;
  min-width: 0;
}

.chat-identity strong {
  display: block;
}

.chat-identity small {
  display: block;
  font-size: .57rem;
  line-height: 1.7;
  color: #a7b5ca;
  margin-top: 2px;
}

.profile-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100% - 20px));
  max-height: 91dvh;
  border: 1px solid #8f75b0;
  border-radius: 18px;
  padding: 0;
  background: #141a2c;
  color: #ece8fa;
  overflow: auto;
}

.profile-modal::backdrop {
  background: #030813d9;
  backdrop-filter: blur(5px);
}

.profile-modal>.modal-close {
  position: sticky;
  float: right;
  margin: 10px 10px -50px 0;
  top: 10px;
  z-index: 3;
  background: #141b2fee;
}

.profile-modal .hero-portrait {
  height: 300px;
}

.guild-placeholder {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px dashed #796689;
  border-radius: 12px;
  background: #1c2135;
}

.guild-placeholder>span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #b69bcc;
  background: #39324d;
  border-radius: 10px;
  font-size: 1.6rem;
}

.guild-placeholder strong {
  display: block;
  font-size: .8rem;
}

.guild-placeholder small {
  display: block;
  color: #98a5be;
  font-size: .64rem;
  margin-top: 5px;
}

.social-notices {
  position: absolute;
  z-index: 25;
  right: 10px;
  bottom: 79px;
  width: min(310px, calc(100% - 20px));
}

.social-notices:empty {
  display: none;
}

.social-notice {
  background: #262138f5;
  border: 1px solid #ad8b5e;
  border-radius: 12px;
  padding: 13px;
  box-shadow: 0 8px 25px #0008;
}

.social-notice .eyebrow {
  font-size: .53rem;
  color: #dabb83;
}

.social-notice>strong {
  display: block;
  font-size: .76rem;
  margin: 10px 0;
  color: #f1e8d2;
}

.social-notice>div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-notice .small-button,
.social-notice .text-button {
  font-size: .65rem;
}

#home-screen:has(#social-notices:not(:empty)) .chat-launcher {
  bottom: 228px;
}

#home-screen:has(#social-notices:not(:empty)) .chat-panel {
  bottom: 228px;
  max-height: calc(100dvh - 302px);
}

.sound-toggle {
  position: absolute;
  z-index: 11;
  bottom: 86px;
  left: 15px;
  background: #162235ee;
  color: #adb9cc;
  border: 1px solid #6c6388;
  border-radius: 15px;
  padding: 6px 9px;
  font-size: .56rem;
  cursor: pointer;
}

#home-screen:has(#social-notices:not(:empty)) .sound-toggle {
  bottom: 230px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.filter-grid label {
  font-size: .64rem;
  color: #b6c2d8;
}

.filter-grid select,
.filter-grid input {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #625472;
  border-radius: 8px;
  background: #161e32;
  color: #e1daec;
  padding: 10px 8px;
  min-width: 0;
  font: inherit;
  font-size: .72rem;
}

.filter-grid .filter-wide {
  grid-column: 1/-1;
}

.filter-grid>.small-button {
  align-self: end;
}

.inventory-capacity {
  height: 5px;
  border-radius: 6px;
  background: #ffffff14;
  overflow: hidden;
  margin: -6px 0 20px;
}

.inventory-capacity>span {
  display: block;
  height: 100%;
  background: #ac88db;
}

.inventory-capacity.is-full>span {
  background: #ed9b80;
}

.capacity-warning {
  background: #62372944;
  color: #edba9d;
  border: 1px solid #be7c5644;
  border-radius: 9px;
  padding: 12px;
  font-size: .7rem;
  line-height: 1.5;
}

.shop-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.shop-links .wide-link {
  font-size: .68rem;
  padding: 12px;
}

.market-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0 35px;
  color: #c2b4d4;
  font-size: .7rem;
}

.merchant-link {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 13px;
  padding: 10px;
  background: linear-gradient(100deg, #282134, #262033);
  border: 1px solid #ae845f66;
  border-radius: 13px;
  color: #eadabc;
  text-align: left;
  cursor: pointer;
  margin: 22px 0;
}

.merchant-link img {
  width: 58px;
  height: 58px;
  border-radius: 9px;
  object-fit: cover;
}

.merchant-link span {
  flex: 1;
}

.merchant-link strong {
  font-size: .88rem;
}

.merchant-link small {
  display: block;
  font-size: .64rem;
  color: #b8a992;
  margin-top: 7px;
}

.merchant-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.merchant-hero>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.merchant-hero>div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(0deg, #151623 5%, transparent 90%);
}

.merchant-hero h2 {
  margin: 10px 0;
  color: #f3dfba;
  font: 600 1.3rem "Cinzel", Georgia, serif;
}

.merchant-hero p:not(.eyebrow) {
  font-size: .75rem;
  line-height: 1.5;
  color: #dcc9af;
}

.merchant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 45px;
}

.merchant-grid strong {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: .63rem;
  color: #e2c292;
}

.merchant-confirm {
  border: 1px solid #ad835c66;
  padding: 12px;
  border-radius: 9px;
  margin-top: 16px;
  color: #e5c391;
  font-size: .75rem;
}

.merchant-confirm summary {
  cursor: pointer;
}

.merchant-confirm p {
  font-size: .68rem;
  line-height: 1.5;
}

.merchant-confirm .primary-button {
  font-size: .72rem;
}

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

  .search-sigil,
  .search-progress i {
    animation: none;
  }
}

.whisper-alerts {
  position: absolute;
  z-index: 31;
  top: 68px;
  right: 12px;
  display: grid;
  gap: 8px;
  width: min(300px, calc(100% - 24px));
  max-height: 30dvh;
  overflow: auto;
  pointer-events: none;
}

.whisper-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  color: #f5edff;
  text-align: left;
  background: #171a2af5;
  border: 1px solid #b995ff;
  border-radius: 12px;
  box-shadow: 0 8px 26px #0009;
  cursor: pointer;
  pointer-events: auto;
  animation: whisper-arrive .22s ease-out both;
}

.whisper-mouth {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #ffd7df;
  background: linear-gradient(145deg, #4a2541, #251c38);
  border: 1px solid #dc8ba9;
  border-radius: 8px;
}

.whisper-mouth svg { width: 23px; height: 23px; }
.whisper-alert>span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.whisper-alert small { color: #bca6d9; font-size: .52rem; letter-spacing: .1em; }
.whisper-alert strong { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.whisper-alert>i,
.whisper-tab>i { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; color: #181c25; background: #ffdc85; border-radius: 99px; font-size: .56rem; font-style: normal; font-weight: 800; }
.whisper-alert>i { margin-left: auto; }

.whisper-tabs {
  position: absolute;
  z-index: 26;
  right: 14px;
  bottom: 130px;
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  gap: 6px;
  width: min(390px, calc(100% - 28px));
  pointer-events: none;
}

.whisper-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 180px;
  padding: 7px 10px;
  color: #e7d9ff;
  background: #201b31f2;
  border: 1px solid #78639a;
  border-radius: 15px;
  box-shadow: 0 4px 15px #0008;
  cursor: pointer;
  pointer-events: auto;
}

.whisper-tab span { overflow: hidden; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.whisper-tab.has-unread { border-color: #d5a8ff; box-shadow: 0 0 14px #ac75ff50, 0 4px 15px #0008; }

.whisper-window {
  position: absolute;
  z-index: 29;
  right: 10px;
  bottom: 82px;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100% - 20px));
  max-height: min(68dvh, 620px);
  color: #f4efff;
  background: #111727f7;
  border: 1px solid #9a7cc4;
  border-radius: 16px;
  box-shadow: 0 18px 55px #000c;
  overflow: hidden;
}

.whisper-window[hidden] { display: none; }
.whisper-card { display: flex; flex-direction: column; min-height: 300px; max-height: inherit; }
.whisper-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px 9px; border-bottom: 1px solid #ffffff15; }
.whisper-avatar { width: 40px; height: 40px; object-fit: cover; border: 1px solid #b28fe2; border-radius: 9px; }
.whisper-header>div { flex: 1; min-width: 0; }
.whisper-header .eyebrow { margin: 0 0 3px; color: #c1a0ec; font-size: .5rem; }
.whisper-header strong { display: block; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.whisper-header .icon-button { flex: 0 0 auto; }
.whisper-state { min-height: 0; margin: 0; padding: 0 14px; color: #e0b985; font-size: .64rem; }
.whisper-state:not(:empty) { padding-top: 8px; }
.whisper-messages { display: flex; flex: 1; flex-direction: column; gap: 9px; min-height: 130px; padding: 12px 14px; overflow-y: auto; overscroll-behavior: contain; }
.whisper-message { max-width: 88%; padding: 8px 10px; background: #25273a; border: 1px solid #ffffff12; border-radius: 11px 11px 11px 3px; }
.whisper-message.own { align-self: flex-end; background: #34264b; border-color: #8e6aba55; border-radius: 11px 11px 3px 11px; }
.whisper-message>div { display: flex; align-items: baseline; gap: 8px; }
.whisper-message strong { color: #d6b6ff; font-size: .6rem; }
.whisper-message time { color: #8f99ae; font-size: .53rem; }
.whisper-message p { margin: 5px 0 0; color: #e5e6ef; font-size: .69rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.whisper-empty { align-self: center; margin: auto; color: #9ba5b9; font-size: .66rem; }
.whisper-form { display: flex; align-items: end; gap: 8px; padding: 10px 12px; border-top: 1px solid #ffffff14; }
.whisper-form[hidden] { display: none; }
.whisper-form textarea { flex: 1; min-width: 0; max-height: 110px; resize: vertical; border-radius: 10px; font-size: .68rem; }
.whisper-form .small-button { flex: 0 0 auto; padding-inline: 12px; }
.whisper-card>footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 10px; }
.whisper-expiry { color: #919aaf; font-size: .52rem; }
.whisper-card>footer .text-button { padding: 4px 6px; font-size: .58rem; }
@keyframes whisper-arrive { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

#home-screen:has(#social-notices:not(:empty)) .whisper-tabs { bottom: 275px; }
#home-screen:has(#social-notices:not(:empty)) .whisper-window { bottom: 82px; max-height: calc(100dvh - 302px); }

@media (max-width: 520px) {
  .whisper-alerts { top: 65px; right: 8px; width: min(280px, calc(100% - 16px)); }
  .whisper-tabs { right: 8px; bottom: 127px; width: calc(100% - 16px); }
  .whisper-window { right: 7px; bottom: 78px; width: calc(100% - 14px); max-height: 64dvh; }
}

@media (prefers-reduced-motion: reduce) {
  .whisper-alert { animation: none; }
}

/* Creation cards: portrait left, information right, independent preview action. */
.choice-card {gap:0;padding:0;border-radius:22px;min-height:174px;}
.choice-art {flex-basis:42%;width:42%;min-height:174px;aspect-ratio:auto;clip-path:none;border-radius:21px;align-self:stretch;}
.choice-art img {position:absolute;inset:0;object-fit:cover;object-position:center 24%;}
.choice-copy {flex:1;padding:24px 15px;align-content:center;}
.choice-copy small {line-height:1.5;}
.choice-card.selected::after {right:9px;top:9px;width:16px;height:16px;}
.class-choice-wrapper {position:relative;min-width:0;}
.class-choice-wrapper .choice-card {height:100%;min-height:192px;}
.class-choice-wrapper .choice-copy {padding-bottom:66px;}
.class-preview-button {position:absolute;right:10px;bottom:12px;max-width:calc(58% - 20px);min-height:40px;padding:8px 11px;border:1px solid #bfa0ff66;border-radius:20px;background:#6c4b94;color:#fff;font:inherit;font-size:.73rem;font-weight:700;cursor:pointer;line-height:1.3;}
.class-preview-button:hover {background:#805caf;}
.class-preview-button:focus-visible,.choice-card:focus-visible {outline:3px solid #e5ccff;outline-offset:2px;}
.class-preview-modal {width:min(600px,calc(100vw - 24px));max-height:85dvh;box-sizing:border-box;overflow:auto;padding:22px;background:#171829;color:#eee6ff;border:1px solid #bda4ff66;border-radius:22px;}
.class-preview-modal::backdrop {background:#050510cc;backdrop-filter:blur(4px);}
.class-preview-modal>button {float:right;position:sticky;top:0;}
.class-preview-modal>p {font-size:.86rem;color:#c9bbdc;line-height:1.6;clear:both;}
.class-preview-content>section {margin-top:24px;}
.class-preview-content h3 {color:#dec3ff;font-size:1.05rem;}
.preview-skill {padding:14px;margin-top:10px;border:1px solid #a488ca33;border-radius:14px;background:#242238;}
.preview-skill strong,.preview-skill small {display:block;}
.preview-skill small {margin-top:5px;color:#d2b370;}
.preview-skill p {font-size:.84rem;line-height:1.55;color:#d2c9df;margin:10px 0 0;}
#character-list .character-roster-card{border-radius:22px;background:linear-gradient(135deg,#27273eef,#161b2ded);margin:20px 0;box-shadow:0 14px 35px #0003}
#character-list .character-slot{display:flex;align-items:stretch;gap:0;padding:0;min-height:216px;overflow:hidden;border-radius:21px;cursor:pointer}
#character-list .character-slot-art{position:relative;flex:0 0 42%;min-width:0;overflow:hidden;border-radius:21px}
#character-list .character-slot-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 24%;border-radius:21px}
#character-list .character-slot-copy{flex:1;min-width:0;padding:20px 14px;text-align:left;align-content:center}
#character-list .character-slot-name{font-size:1rem;margin:0 0 8px;overflow-wrap:anywhere}
#character-list .character-slot-copy>small{line-height:1.5;margin:0;color:#c9c4d8}
#character-list .character-level{display:flex;align-items:center;gap:8px;width:fit-content;margin:16px 0 13px;padding:7px 12px;border:1px solid #e5bf6a66;border-radius:12px;background:#dcab3920;color:#ffdc86}
#character-list .character-level>span{font-size:.6rem;font-weight:800;letter-spacing:.1em}
#character-list .character-level b{font-size:1.65rem;line-height:1;font-variant-numeric:tabular-nums}
#character-list .character-play{font-size:.73rem;color:#dbcbff;line-height:1.4;display:block}
#character-list .character-delete{margin:8px 14px 10px auto;font-size:.68rem}
#character-list .character-slot:hover{background:#a489f40d}#character-list .character-slot:focus-visible{outline:3px solid #d4b2ff;outline-offset:-3px}
@media(max-width:360px){#character-list .character-slot{min-height:194px}#character-list .character-slot-copy{padding:16px 11px}#character-list .character-slot-name{font-size:.9rem}#character-list .character-level{padding:6px 9px;gap:6px}}

.equipment-chooser .current-equipment,.equipment-choice{padding:15px;border:1px solid #9b8ead44;border-radius:14px;background:#1b2030;margin:14px 0}.equipment-chooser .current-equipment{border-color:#d7b77b80}.equipment-chooser .item-modal-art{width:90px;height:90px;margin:0 auto 14px}.equipment-chooser h3{font-size:.98rem;line-height:1.45}.equipment-chooser .primary-button{width:100%;margin-top:12px}.equipment-chooser p{font-size:.82rem;line-height:1.6}

/* Exclusive, manually granted title: readable gold / rose / amethyst sheen. */
html [data-title-id="exclusive-moonix"][data-title-id]{display:block;width:fit-content;font-weight:900;letter-spacing:.04em;color:#ffe8b8;text-shadow:0 0 12px #e6b87266,0 0 22px #bb82db44}
@supports(background-clip:text){
 html [data-title-id="exclusive-moonix"][data-title-id]{background:linear-gradient(110deg,#fff0bc 10%,#ecb8df 28%,#fffbe2 46%,#c9b1ff 66%,#ffe09c 84%,#fff0bc);background-size:220% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;filter:drop-shadow(0 0 4px #f1baff55);animation:moonix-title-shine 7s ease-in-out infinite}
}
@keyframes moonix-title-shine{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){html [data-title-id="exclusive-moonix"][data-title-id]{animation:none}}
#forgot-password[hidden], #resend-verification-open[hidden], #password-reset-submit[hidden], #password-reset-feedback[hidden] { display: none; }
