* {
  box-sizing: border-box;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none;
}

input, textarea, [contenteditable=""], [contenteditable="true"],
[contenteditable="plaintext-only"], [contenteditable=""] *,
[contenteditable="true"] *, [contenteditable="plaintext-only"] * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}

img, canvas { -webkit-user-drag: none; }


html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  font-family:
  var(--luma-font-family);

  background: #0d1117;
  color: white;
}


body {
  overflow: hidden;

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-regular);

  line-height: 1.4;
}

/* ========================================
   LUMA UI DESIGN TOKENS
   ======================================== */

:root {

  /* ----------------------------------------
     SURFACES
     ---------------------------------------- */

  --luma-surface-cream:
    #fffaf5;

  --luma-surface-ivory:
    #f8f0ea;

  --luma-surface-soft:
    #f3e6e1;


  /* ----------------------------------------
     ACCENTS
     ---------------------------------------- */

  --luma-accent-blush:
    #d99aaa;

  --luma-accent-coral:
    #c97886;

  --luma-accent-deep:
    #7b4a5c;


  /* ----------------------------------------
     TEXT
     ---------------------------------------- */

  --luma-text-primary:
    #5f493f;

  --luma-text-secondary:
    #987f87;

  --luma-text-muted:
    #b99da5;


  /* ----------------------------------------
     BORDERS
     ---------------------------------------- */

  --luma-border-soft:
    rgba(
      111,
      82,
      67,
      0.16
    );


  /* ----------------------------------------
     SHAPE
     ---------------------------------------- */

  --luma-radius-small:
    9px;

  --luma-radius-medium:
    14px;

  --luma-radius-large:
    20px;

  --luma-radius-pill:
    999px;


  /* ----------------------------------------
     SHADOW
     ---------------------------------------- */

  --luma-shadow-soft:
    0 10px 30px
    rgba(
      67,
      48,
      57,
      0.14
    );

    /* ----------------------------------------
    SPACING
    ---------------------------------------- */

 --luma-space-xs:
   4px;

 --luma-space-sm:
   8px;

 --luma-space-md:
   12px;

 --luma-space-lg:
   18px;

 --luma-space-xl:
   24px;

 --luma-space-2xl:
   32px;

   /* ----------------------------------------
   TYPOGRAPHY
   ---------------------------------------- */

--luma-font-family:
  "Nunito",
  Arial,
  Helvetica,
  sans-serif;

--luma-font-size-xs:
  11px;

--luma-font-size-sm:
  12px;

--luma-font-size-md:
  14px;

--luma-font-size-lg:
  18px;

--luma-font-size-xl:
  24px;

--luma-font-weight-regular:
  400;

--luma-font-weight-semibold:
  600;

--luma-font-weight-bold:
  700;

}

/* ========================================
   LUMA SHARED SURFACES
   ======================================== */

.luma-panel {
  background:
    var(--luma-surface-cream);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-large);

  box-shadow:
    var(--luma-shadow-soft);

  color:
    var(--luma-text-primary);
}

.luma-surface-soft {
  background:
    var(--luma-surface-soft);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  color:
    var(--luma-text-primary);
}

.luma-window-backdrop {
  background:
    rgba(
      65,
      48,
      57,
      0.24
    );

  backdrop-filter:
    blur(3px);

  -webkit-backdrop-filter:
    blur(3px);
}

/* ========================================
   LUMA SHARED BUTTONS
   ======================================== */

.luma-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap:
    var(--luma-space-sm);

  padding:
    9px 14px;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-small);

  background:
    var(--luma-surface-cream);

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);

  cursor: pointer;
}

.luma-button:hover {
  background:
    var(--luma-surface-soft);
}


.luma-button:active {
  transform:
    scale(0.97);
}

.luma-button-primary {
  background:
    var(--luma-accent-deep);

  border-color:
    var(--luma-accent-deep);

  color:
    var(--luma-surface-cream);
}


.luma-button-primary:hover {
  background:
    var(--luma-accent-coral);

  border-color:
    var(--luma-accent-coral);
}

.luma-button:disabled,
.luma-button.disabled {
  opacity: 0.5;

  cursor: not-allowed;

  transform: none;
}


.luma-button:disabled:hover,
.luma-button.disabled:hover {
  background:
    var(--luma-surface-cream);
}

/* ========================================
   LUMA SHARED INPUTS
   ======================================== */

.luma-input {
  width: 100%;

  padding:
    10px 12px;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-small);

  background:
    var(--luma-surface-cream);

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  outline: none;
}

.luma-input:focus {
  border-color:
    var(--luma-accent-blush);

  box-shadow:
    0 0 0 3px
    rgba(
      217,
      154,
      170,
      0.16
    );
}

.luma-input::placeholder {
  color:
    var(--luma-text-muted);

  opacity: 1;
}

.luma-input:disabled,
.luma-input[readonly] {
  background:
    var(--luma-surface-ivory);

  color:
    var(--luma-text-secondary);

  cursor: not-allowed;

  opacity: 0.7;
}

/* ========================================
   LUMA SHARED TABS
   COFFEE / CREAM / DARK BROWN
   ======================================== */

.luma-tab {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    var(--luma-space-sm);

  min-height:
    38px;

  padding:
    8px 16px;

  border:
    1px solid
    #d7b9a6;

  border-radius:
    var(--luma-radius-small);

  background:
    #fff7ed;

  color:
    #6b4939;

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);

  box-shadow:
    0 1px 3px
    rgba(75, 51, 40, 0.06);

  cursor:
    pointer;

  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}


/* Coffee hover */

.luma-tab:hover {
  background:
    #ead3c2;

  border-color:
    #b98465;

  color:
    #4b3328;

  box-shadow:
    0 2px 6px
    rgba(75, 51, 40, 0.10);

  transform:
    translateY(-1px);
}


/* Dark brown selected */

.luma-tab.active {
  background:
    #4b3328;

  border-color:
    #4b3328;

  color:
    #fff7ed;

  box-shadow:
    0 2px 7px
    rgba(75, 51, 40, 0.20);
}


/* Slight coffee lift while selected */

.luma-tab.active:hover {
  background:
    #5e4032;

  border-color:
    #5e4032;

  color:
    #fff7ed;
}


/* Disabled */

.luma-tab:disabled,
.luma-tab.disabled {
  opacity:
    0.5;

  cursor:
    not-allowed;

  transform:
    none;
}


.luma-tab:disabled:hover,
.luma-tab.disabled:hover {
  background:
    #fff7ed;

  border-color:
    #d7b9a6;

  color:
    #6b4939;

  box-shadow:
    0 1px 3px
    rgba(75, 51, 40, 0.06);

  transform:
    none;
}

/* ========================================
   LUMA SHARED ICON BUTTONS
   ======================================== */

.luma-icon-button {
  width: 52px;
  height: 52px;

  min-width: 52px;
  min-height: 52px;

  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    50%;

  background:
    var(--luma-surface-ivory);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-lg);

  line-height: 1;

  cursor: pointer;
}

.luma-icon-button:hover {
  background:
    var(--luma-surface-soft);

  color:
    var(--luma-text-primary);
}


.luma-icon-button:active {
  transform:
    scale(0.94);
}

.luma-icon-button:disabled,
.luma-icon-button.disabled {
  opacity: 0.5;

  cursor: not-allowed;

  transform: none;
}


.luma-icon-button:disabled:hover,
.luma-icon-button.disabled:hover {
  background:
    var(--luma-surface-ivory);

  color:
    var(--luma-text-secondary);
}

/* ========================================
   LUMA SHARED BADGES
   ======================================== */

.luma-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap:
    var(--luma-space-xs);

  padding:
    4px 8px;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-pill);

  background:
    var(--luma-surface-ivory);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-bold);

  line-height: 1;

  white-space: nowrap;
}

.luma-badge-accent {
  background:
    var(--luma-surface-soft);

  border-color:
    var(--luma-accent-blush);

  color:
    var(--luma-accent-deep);
}

.luma-badge-positive {
  background:
    rgba(
      113,
      166,
      127,
      0.12
    );

  border-color:
    rgba(
      113,
      166,
      127,
      0.28
    );

  color:
    #5f8d6b;
}

.luma-badge-warning {
  background:
    rgba(
      201,
      143,
      104,
      0.12
    );

  border-color:
    rgba(
      201,
      143,
      104,
      0.30
    );

  color:
    #9a6849;
}

/* ========================================
   LUMA SHARED WINDOW HEADERS
   ======================================== */

.luma-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap:
    var(--luma-space-md);

  padding:
    var(--luma-space-lg)
    var(--luma-space-xl);

  border-bottom:
    1px solid
    var(--luma-border-soft);

  color:
    var(--luma-text-primary);
}

.luma-window-title {
  margin: 0;

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-lg);

  font-weight:
    var(--luma-font-weight-bold);

  line-height: 1.2;
}

.luma-window-subtitle {
  margin:
    var(--luma-space-xs)
    0
    0;

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-regular);

  line-height: 1.35;
}

/* ========================================
   LUMA SHARED HELPER TEXT
   ======================================== */

.luma-helper-text {
  margin: 0;

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-regular);

  line-height: 1.4;
}

.luma-empty-state {
  margin: 0;

  padding:
    var(--luma-space-xl);

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-semibold);

  line-height: 1.4;

  text-align: center;
}

/* ========================================
   LUMA SHARED FORM FIELDS
   ======================================== */

.luma-field {
  display: flex;
  flex-direction: column;

  gap:
    var(--luma-space-xs);
}


.luma-label {
  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);

  line-height: 1.3;
}



/* ========================================
   LUMA SHARED WINDOW CONTENT
   ======================================== */

.luma-window-body {
  padding:
    var(--luma-space-xl);

  color:
    var(--luma-text-primary);
}


.luma-window-section {
  display: flex;
  flex-direction: column;

  gap:
    var(--luma-space-md);
}


.luma-window-section
+
.luma-window-section {
  margin-top:
    var(--luma-space-xl);
}


.luma-section-title {
  margin: 0;

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

  line-height: 1.3;
}



/* ========================================
   LUMA SHARED CARDS
   ======================================== */

.luma-card {
  padding:
    var(--luma-space-lg);

  background:
    var(--luma-surface-ivory);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  color:
    var(--luma-text-primary);
}



/* ========================================
   LUMA SHARED DIVIDER
   ======================================== */

.luma-divider {
  width: 100%;
  height: 1px;

  margin:
    var(--luma-space-lg)
    0;

  border: 0;

  background:
    var(--luma-border-soft);
}


/* ========================================
   LUMA SHARED INLINE ICONS
   ======================================== */
   .luma-inline-crown-icon {

    width:
      42px;
  
    height:
      42px;
  
    display:
      inline-block;
  
    flex:
      0 0 22px;
  
    object-fit:
      contain;
  
    vertical-align:
      -5px;
  
    margin:
      -4px 0;
  
    pointer-events:
      none;
  
  }

/* ========================================
   LUMA SHARED LAYOUT UTILITIES
   ======================================== */

.luma-row {
  display: flex;
  align-items: center;

  gap:
    var(--luma-space-md);
}


.luma-row-between {
  justify-content:
    space-between;
}


.luma-stack {
  display: flex;
  flex-direction: column;

  gap:
    var(--luma-space-md);
}


.luma-stack-small {
  display: flex;
  flex-direction: column;

  gap:
    var(--luma-space-sm);
}


.luma-stack-large {
  display: flex;
  flex-direction: column;

  gap:
    var(--luma-space-lg);
}



/* ========================================
   LUMA SHARED TEXT UTILITIES
   ======================================== */

.luma-text-primary {
  color:
    var(--luma-text-primary);
}


.luma-text-secondary {
  color:
    var(--luma-text-secondary);
}


.luma-text-muted {
  color:
    var(--luma-text-muted);
}



/* ========================================
   LUMA SHARED ALIGNMENT UTILITIES
   ======================================== */

.luma-grow {
  flex: 1;
  min-width: 0;
}


.luma-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none !important;
}

/* ========================================
   SCREEN
   ======================================== */

.screen {
  width: 100%;
  height: 100%;
}


/* ========================================
   GAME SCREEN
   ======================================== */

   #gameScreen {
    width: 100vw;
    height: 100vh;

    position: relative;

    isolation: isolate;
  
    display: grid;
  
    grid-template-rows:
      minmax(0, 1fr);
  
    grid-template-columns:
      minmax(0, 1fr);
  
    overflow: hidden;
  }


  /* ========================================
  GAME HUD ROOT
  ======================================== */

.game-hud {
 position: fixed;

 inset: 0;

 width: 100%;
 height: 100%;

 pointer-events: none;

 z-index: 40;
}

/* ========================================
   HUD REGIONS
   ======================================== */

.hud-region {
  position: absolute;

  display: flex;
  align-items: center;

  pointer-events: none;
}

.hud-region > * {
  pointer-events: auto;
}


.hud-top-left {
  top: 18px;
  left: 18px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.hud-top-center {
  top: 18px;
  left: 50%;

  transform: translateX(-50%);
}

/* ========================================
TOP HUD NAVIGATION
======================================== */

.top-hud-nav {
  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  padding:
    0;

  background:
    transparent;

  border:
    0;

  border-radius:
    0;

  box-shadow:
    none;

  backdrop-filter:
    none;

  -webkit-backdrop-filter:
    none;

  pointer-events:
    auto;
}


/* ========================================
TOP HUD MENU MODULE
Reusable for future menus
======================================== */

.top-hud-menu {
  position:
    relative;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;
}


/* ========================================
TOP HUD ROOT BUTTON
======================================== */

.top-hud-menu-button {
  width:
    52px;

  height:
    52px;

  min-width:
    52px;

  min-height:
    52px;

  padding:
    7px;

  gap:
    0;

  border-radius:
    999px;

  background:
    rgba(255, 252, 246, 0.96);

  border-color:
    rgba(215, 185, 166, 0.9);

  color:
    #4b3328;

  box-shadow:
    0 4px 12px
    rgba(75, 51, 40, 0.12);
}


.top-hud-menu-button:hover,
.top-hud-menu-button:focus-visible {
  background:
    #ead3c2;

  border-color:
    #b98465;

  color:
    #4b3328;

  transform:
    translateY(-1px);
}


.top-hud-menu-button[aria-expanded="true"] {
  background:
    rgba(255, 252, 246, 0.96);

  border-color:
    #b98465;

  color:
    #4b3328;

  box-shadow:
    0 0 0 3px
    rgba(185, 132, 101, 0.2),
    0 4px 12px
    rgba(75, 51, 40, 0.12);
}


.top-hud-menu-button.pinned-open {
  background:
    #ead3c2;

  border-color:
    #a96f50;

  color:
    #4b3328;

  box-shadow:
    0 0 0 3px
    rgba(169, 111, 80, 0.22),
    0 4px 12px
    rgba(75, 51, 40, 0.12);
}

/* ========================================
ACTIVE TOOL ROOT
======================================== */

.top-hud-menu-button.tool-active {
  background:
    #ead3c2;

  border-color:
    #b98465;

  box-shadow:
    0 0 0 3px
    rgba(185, 132, 101, 0.14),
    0 4px 12px
    rgba(75, 51, 40, 0.12);
}


.top-hud-menu-button.tool-active:hover {
  background:
    #dfc2ad;

  border-color:
    #a96f50;
}


.top-hud-menu-button.tool-active[aria-expanded="true"] {
  background:
    #ead3c2;

  border-color:
    #b98465;
}


/* ========================================
TOP HUD ICONS
======================================== */

.top-hud-icon {
  width:
    36px;

  height:
    36px;

  flex-shrink:
    0;

  display:
    block;

  object-fit:
    contain;

  pointer-events:
    none;
}


.top-hud-dropdown-icon {
  width:
    30px;

  height:
    30px;

  flex-shrink:
    0;

  display:
    block;

  object-fit:
    contain;

  pointer-events:
    none;
}


/* ========================================
TOP HUD DROPDOWN
======================================== */

.top-hud-dropdown {
  --top-hud-dropdown-pointer-x:
    18px;

  position:
    absolute;

  top:
    calc(100% + 10px);

  left:
    0;

  width:
    172px;

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;

  padding:
    8px;

  background:
    rgba(255, 247, 237, 0.96);

  border:
    1px solid
    rgba(215, 185, 166, 0.92);

  border-radius:
    14px;

  box-shadow:
    0 14px 30px
    rgba(75, 51, 40, 0.18),
    inset 0 1px 0
    rgba(255, 255, 255, 0.68);

  overflow:
    visible;

  z-index:
    1200;

  backdrop-filter:
    blur(8px);

  -webkit-backdrop-filter:
    blur(8px);

  isolation:
    isolate;
}

.top-hud-dropdown::before {
  content:
    "";

  position:
    absolute;

  top:
    -8px;

  left:
    var(--top-hud-dropdown-pointer-x);

  width:
    16px;

  height:
    16px;

  background:
    rgba(255, 247, 237, 0.96);

  border-left:
    1px solid
    rgba(215, 185, 166, 0.92);

  border-top:
    1px solid
    rgba(215, 185, 166, 0.92);

  transform:
    rotate(45deg);

  z-index:
    -1;
}


/* ========================================
TOP HUD DROPDOWN ITEMS
======================================== */

.top-hud-dropdown-item {
  width:
    100%;

  min-height:
    42px;

  justify-content:
    flex-start;

  padding:
    6px 10px;

  gap:
    10px;

  background:
    transparent;

  border-color:
    transparent;

  border-radius:
    10px;

  color:
    #4b3328;

  text-align:
    left;

  white-space:
    nowrap;

  overflow:
    hidden;

  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

/* ========================================
DROPDOWN LABELS
======================================== */

.top-hud-dropdown-item > span {
  max-width:
    118px;

  margin-left:
    0;

  opacity:
    1;

  overflow:
    hidden;

  transform:
    translateX(0);

  transition:
    none;
}


.top-hud-dropdown-item:hover,
.top-hud-dropdown-item:focus-visible {
  width:
    100%;

  background:
    #ead3c2;

  border-color:
    #d7b9a6;

  transform:
    translateX(2px);
}

/* ========================================
ACTIVE TOOL
======================================== */

.top-hud-dropdown-item.active {
  background:
    #4b3328;

  border-color:
    #4b3328;

  color:
    #fff7ed;
}


.top-hud-dropdown-item.active:hover,
.top-hud-dropdown-item.active:focus-visible {
  background:
    #5e4032;

  border-color:
    #5e4032;

  color:
    #fff7ed;
}


.hud-feedback {
  position: relative;

  min-width: 220px;
  max-width: min(520px, 70vw);

  pointer-events: none;
}


.hud-top-right {
  top: 18px;
  right: 22px;

  flex-direction: column;
  align-items: flex-end;

  gap: 10px;
}


.hud-bottom-left {
  bottom: 24px;
  left: 24px;
}


.hud-bottom-center {
  bottom: 24px;
  left: 50%;

  transform: translateX(-50%);
}


.hud-bottom-right {
  right: 24px;
  bottom: 24px;
}

/* ========================================
   JOIN SCREEN
   ======================================== */

#joinScreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 20px;
}


.join-card {
  width: min(420px, 100%);

  padding: 40px;

  background: #161b22;

  border: 1px solid #30363d;

  border-radius: 16px;

  box-shadow:
    0 20px 60px
    rgba(0, 0, 0, 0.5);
}


.join-card h1 {
  margin-top: 0;
  margin-bottom: 10px;

  font-size: 32px;
}


.join-card p {
  color: #8b949e;

  margin-bottom: 30px;
}


#joinForm {
  display: flex;
  flex-direction: column;

  gap: 10px;
}


#joinForm label {
  font-size: 14px;

  color: #c9d1d9;
}


input {
  width: 100%;

  padding: 12px 14px;

  border: 1px solid #30363d;

  border-radius: 8px;

  background: #0d1117;

  color: white;

  font-size: 16px;

  outline: none;
}


input:focus {
  border-color: #58a6ff;
}


button {
  padding: 12px 18px;

  border: none;

  border-radius: 8px;

  background: #238636;

  color: white;

  font-size: 16px;

  font-weight: bold;

  cursor: pointer;
}


button:hover {
  background: #2ea043;
}

button,
input,
textarea,
select {
  font-family:
    var(--luma-font-family);
}


/* ========================================
   TOP BAR
   ======================================== */

   .top-bar {
    grid-row: 1;
    grid-column: 1;
  
    width: 100%;
    min-width: 0;
    height: 60px;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    padding: 0 20px;
  
    background: #161b22;
    border-bottom: 1px solid #30363d;
  
    position: relative;
    z-index: 10;
  }



.game-title {
  display: flex;

  align-items: center;

  gap: 10px;

  font-weight: bold;
}


.status-dot {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: #3fb950;
}


#connectionStatus {
  color: #8b949e;

  font-size: 14px;
}


/* ========================================
   MAIN GAME LAYOUT
   ======================================== */

   .game-layout {
    grid-row: 1;
    grid-column: 1;
  
    width: 100%;
    height: 100%;
  
    min-width: 0;
    min-height: 0;
  
    display: grid;

    position: relative;

    z-index: 0;
  
    grid-template-columns:
    minmax(0, 1fr);
  
    overflow: hidden;
  }


/* ========================================
   WORLD
   ======================================== */

   .world-panel {
    width: 100%;
    height: 100%;
  
    min-width: 0;
    min-height: 0;
  
    display: grid;
  
    grid-template-rows:
      minmax(0, 1fr);
  
    background: #090c10;
  
    overflow: hidden;
  }

.world-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    padding: 0 15px;
  
    background: #161b22;
  
    border-bottom: 1px solid #30363d;
  
    font-weight: bold;
}

/* ========================================
   SPACE HUD
   ======================================== */

   .space-hud-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  
  .visit-home-button {
    flex-shrink: 0;
  
    padding: 7px 12px;
  
    border: 1px solid #6a4a55;
    border-radius: 9px;
  
    background: #6b4050;
  
    color: #fff1f5;
  
    font-size: 12px;
  }
  
  
  .visit-home-button:hover {
    background: #825164;
  }
  
  
  /* ========================================
     VISIT HOME WINDOW
     ======================================== */
  
     .visit-home-window {
      position: fixed;
    
      inset: 0;
    
      display: flex;
      align-items: center;
      justify-content: center;
    
      padding:
        var(--luma-space-xl);
    
      z-index: 100;
    }
  
  
    .visit-home-card {
      width:
        min(
          390px,
          100%
        );
    
      padding:
        var(--luma-space-xl);
    
      border:
        1px solid
        var(--luma-border-soft);
    
      border-radius:
        var(--luma-radius-large);
    
      background:
        var(--luma-surface-cream);
    
      box-shadow:
        var(--luma-shadow-soft);
    
      color:
        var(--luma-text-primary);
    }


    .visit-home-window:not(.hidden):not(.closing) {
      animation:
        luma-items-backdrop-enter
        200ms
        ease-out
        both;
    }


    .visit-home-window:not(.hidden):not(.closing)
    .visit-home-card {
      animation:
        luma-items-window-enter
        220ms
        cubic-bezier(
          0.22,
          1,
          0.36,
          1
        )
        both;
    }


    .visit-home-window.closing {
      pointer-events:
        none;

      animation:
        luma-items-backdrop-exit
        180ms
        ease-in
        both;
    }


    .visit-home-window.closing
    .visit-home-card {
      animation:
        luma-items-window-exit
        180ms
        ease-in
        both;
    }
  
  
    .visit-home-header {
      align-items:
        flex-start;
    
      margin-bottom:
        var(--luma-space-lg);
    }
  
  
  
  
    .visit-home-close-button {
      width: 32px;
      height: 32px;
    
      font-size:
        20px;
    }
  
  
    .visit-home-label {
      display:
        block;
    
      margin-bottom:
        var(--luma-space-sm);
    }
  
  
    #visitUsernameInput {
      margin-bottom:
        var(--luma-space-md);
    }
  
  
    .visit-home-submit-button {
      width:
        100%;
    }

  /* ========================================
  PUBLIC PLACES
  ======================================== */

.places-divider {
 margin-top: 4px;
}


.places-list {
  display: flex;
  flex-direction: column;

  gap:
    var(--luma-space-sm);
}


.place-entry {
  display: flex;
  align-items: center;

  gap:
    var(--luma-space-md);

  padding:
    var(--luma-space-md);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  background:
    var(--luma-surface-ivory);
}


.place-icon {
  width: 38px;
  height: 38px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius:
    var(--luma-radius-medium);

  background:
    var(--luma-surface-soft);

  font-size:
    19px;
}


.place-info {
 min-width: 0;

 flex: 1;
}


.place-name {
  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);
}


.place-description {
  margin-top:
    var(--luma-space-xs);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-xs);
}


.place-visit-button {
  flex-shrink:
    0;
}

  /* ========================================
  HOME DISCOVERY
  ======================================== */

  .visit-home-divider {
    display: flex;
    align-items: center;
  
    margin:
      var(--luma-space-lg)
      0
      var(--luma-space-md);
  
    color:
      var(--luma-text-muted);
  
    font-size:
      var(--luma-font-size-xs);
  
    font-weight:
      var(--luma-font-weight-bold);
  
    text-transform:
      uppercase;
  
    letter-spacing:
      0.08em;
  }
  
  
  .visit-home-divider::after {
    content: "";
  
    height:
      1px;
  
    flex:
      1;
  
    margin-left:
      var(--luma-space-md);
  
    background:
      var(--luma-border-soft);
  }

/* ========================================
HOME PRIVACY
======================================== */

.home-privacy-control {
  display: flex;

  flex-direction: column;

  gap:
    var(--luma-space-sm);
}


.home-privacy-description {
  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);
}


.home-privacy-options {
  display: flex;

  gap:
    var(--luma-space-sm);
}


.home-privacy-button {
  flex:
    1;
}


.home-discovery-list {
  max-height:
    220px;

  display: flex;
  flex-direction: column;

  gap:
    var(--luma-space-sm);

  overflow-y:
    auto;
}


.home-discovery-entry {
  display: flex;
  align-items: center;

  gap:
    var(--luma-space-md);

  padding:
    var(--luma-space-md);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  background:
    var(--luma-surface-ivory);
}


.home-discovery-icon {
  width: 52px;
  height: 52px;

  min-width: 52px;
  min-height: 52px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius:
    var(--luma-radius-small);

  background:
    var(--luma-surface-soft);

  font-size:
    17px;
}


.home-discovery-info {
 min-width: 0;
 flex: 1;
}

.home-discovery-visit-button {
  flex-shrink:
    0;
}

.home-discovery-name {
  overflow: hidden;

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.home-discovery-owner {
  margin-top:
    var(--luma-space-xs);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-xs);
}

/* ========================================
   HOME DISCOVERY PRESENCE
   ======================================== */

   .home-discovery-presence {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  
    gap:
      var(--luma-space-xs);
  
    margin-top:
      var(--luma-space-sm);
  }


/* ========================================
   OWNER STATUS
   ======================================== */

   .home-owner-status {
    font-size:
      10px;
  }




/* ========================================
   HOME OCCUPANCY
   ======================================== */

   .home-player-count {
    font-size:
      10px;
  }

  .home-discovery-empty {
    padding:
      var(--luma-space-lg)
      var(--luma-space-sm);
  }

.space-hud {
  position: relative;

  z-index: 1;

  min-width: 0;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 0;

  background: transparent;

  border: none;
  border-radius: 0;

  box-shadow: none;

  backdrop-filter: none;

  color: #5f493f;
}


.performance-monitor {
  pointer-events: none;

  width: max-content;
  max-width: 100%;

  display: flex;
  align-items: center;
  gap: 6px;

  margin-top: 8px;
  padding: 5px 8px;

  border: 1px solid rgba(111, 82, 67, 0.16);
  border-radius: 999px;

  background: rgba(255, 250, 242, 0.78);

  box-shadow: 0 8px 20px rgba(73, 52, 42, 0.12);

  color: #5f493f;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;

  backdrop-filter: blur(8px);
}

.performance-monitor-dot {
  width: 8px;
  height: 8px;

  flex: 0 0 auto;

  border-radius: 999px;

  background: rgba(111, 82, 67, 0.35);

  box-shadow: 0 0 0 2px rgba(255, 250, 242, 0.72);
}

.performance-monitor-dot-good {
  background: #5dcc7d;

  box-shadow:
    0 0 0 2px rgba(255, 250, 242, 0.78),
    0 0 8px rgba(93, 204, 125, 0.5);
}

.performance-monitor-dot-warn {
  background: #f3c95c;

  box-shadow:
    0 0 0 2px rgba(255, 250, 242, 0.78),
    0 0 8px rgba(243, 201, 92, 0.5);
}

.performance-monitor-dot-bad {
  background: #ed6a5e;

  box-shadow:
    0 0 0 2px rgba(255, 250, 242, 0.78),
    0 0 8px rgba(237, 106, 94, 0.5);
}

.performance-monitor-dot-unknown {
  background: rgba(111, 82, 67, 0.35);
}

.performance-monitor-divider {
  opacity: 0.45;
}

/* ========================================
BUILDER FLOOR PALETTE
======================================== */

.builder-floor-palette {
  position: fixed;

  top: 72px;
  left: 18px;

  z-index: 45;

  min-width: 180px;

  padding: 12px;

  border:
    1px solid
    rgba(111, 82, 67, 0.18);

  border-radius: 14px;

  background:
    rgba(255, 250, 242, 0.96);

  box-shadow:
    0 8px 24px
    rgba(73, 52, 42, 0.16);

  color: #5f493f;
}


.builder-floor-palette-title {
  margin-bottom: 8px;

  font-size: 12px;
  font-weight: 700;
}


.builder-floor-palette-grid {
  display: flex;
  flex-direction: column;

  gap: 6px;
}

.builder-floor-palette-item {
  width: 100%;

  padding: 8px 10px;

  border:
    1px solid
    rgba(111, 82, 67, 0.16);

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.72);

  color: #6a5146;

  font-size: 12px;
  font-weight: 700;

  text-align: left;
}


.builder-floor-palette-item:hover {
  background:
    rgba(247, 230, 225, 0.9);
}


.builder-floor-palette-item.active {
  border-color:
    rgba(169, 120, 130, 0.6);

  background:
    #f3e6e1;

  color:
    #7a5660;
}

/* ========================================
BUILDER WALL PALETTE
======================================== */

.builder-wall-palette {
  position: fixed;

  top: 72px;
  left: 18px;

  z-index: 45;

  min-width: 180px;

  padding: 12px;

  border:
    1px solid
    rgba(111, 82, 67, 0.18);

  border-radius: 14px;

  background:
    rgba(255, 250, 242, 0.96);

  box-shadow:
    0 8px 24px
    rgba(73, 52, 42, 0.16);

  color: #5f493f;
}


.builder-wall-palette-title {
  margin-bottom: 8px;

  font-size: 12px;
  font-weight: 700;
}


.builder-wall-palette-grid {
  display: flex;
  flex-direction: column;

  gap: 6px;
}


.builder-wall-palette-item {
  width: 100%;

  padding: 8px 10px;

  border:
    1px solid
    rgba(111, 82, 67, 0.16);

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.72);

  color: #6a5146;

  font-size: 12px;
  font-weight: 700;

  text-align: left;
}


.builder-wall-palette-item:hover {
  background:
    rgba(247, 230, 225, 0.9);
}


.builder-wall-palette-item.active {
  border-color:
    rgba(169, 120, 130, 0.6);

  background:
    #f3e6e1;

  color:
    #7a5660;
}


.space-hud-icon {
  display: none;
}



.space-hud-text {
  min-width: 0;
}


.space-hud-name {
  overflow: hidden;

  color: #f5e9e5;

  font-size: 14px;
  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.space-hud-status {
  margin-top: 2px;

  color: #b99da5;

  font-size: 11px;
}


.build-version-watermark {
  margin-top:
    3px;

  color:
    rgba(255, 255, 255, 0.86);

  font-size:
    10px;

  font-weight:
    700;

  line-height:
    1.1;

  text-shadow:
    0 1px 3px
    rgba(18, 19, 24, 0.5);

  white-space:
    nowrap;
}


.guest-upgrade-prompt {
  margin-top:
    6px;

  padding:
    4px 8px;

  border:
    1px solid
    rgba(255, 255, 255, 0.44);

  border-radius:
    999px;

  background:
    rgba(255, 248, 237, 0.24);

  color:
    rgba(255, 255, 255, 0.94);

  font-size:
    10px;

  font-weight:
    800;

  line-height:
    1.1;

  text-shadow:
    0 1px 3px
    rgba(18, 19, 24, 0.42);

  cursor:
    pointer;
}


.guest-upgrade-prompt:hover {
  background:
    rgba(255, 248, 237, 0.34);
}

.mobile-joystick {
  position: fixed;
  left: calc(env(safe-area-inset-left, 0px) + 12px);
  width: 92px;
  height: 92px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(255, 248, 237, 0.16);
  box-shadow: 0 2px 10px rgba(36, 30, 27, 0.15);
  z-index: 60;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.mobile-joystick[hidden] { display: none; }
.mobile-joystick.disabled { opacity: 0.35; }
.mobile-joystick-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 248, 237, 0.6);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.mobile-joystick.active {
  border-color: #ffe45c;
  background: rgba(255, 248, 237, 0.25);
}
.mobile-joystick.positioning { z-index:1402; cursor:move; opacity:1; border-style:dashed; }
.mobile-joystick-position-editor { position:fixed; inset:0; z-index:1401; background:#30232522; touch-action:none; }
.mobile-joystick-position-editor[hidden] { display:none; }
.mobile-joystick-position-editor section { position:absolute; top:max(12px,env(safe-area-inset-top)); left:50%; transform:translateX(-50%); box-sizing:border-box; width:min(300px,calc(100vw - 24px)); padding:9px; border:1px solid #d3bdac; border-radius:16px; background:#fff8ed; color:#624a40; text-align:center; box-shadow:0 4px 18px #34233633; }
.mobile-joystick-position-editor p { margin:0 0 7px; font-size:11px; }
.mobile-joystick-position-editor button { min-width:64px; min-height:32px; margin:0 3px; padding:5px 8px; border:1px solid #d4bac8; border-radius:10px; background:#f2e6f0; color:#64434a; font:inherit; font-size:11px; }

.guest-upgrade-save-label {
  display: block;
  white-space: nowrap;
}


.guest-upgrade-prompt.hidden {
  display:
    none;
}


.go-home-button {
  flex-shrink: 0;

  padding: 7px 12px;

  border:
    1px solid #5a3f49;

  border-radius: 9px;

  background: #422c34;

  color: #f4dfe6;

  font-size: 12px;

  transition:
    background 0.15s ease,
    transform 0.15s ease;
}


.go-home-button:hover {
  background: #573945;

  transform:
    translateY(-1px);
}

#coordinates {
  color: #8b949e;

  font-size: 13px;
}


.canvas-container {
  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 0;

  position: relative;
}


#gameCanvas {
  display: block;
  flex-shrink: 0;

  background: #1a1f26;

  border: none;
  box-shadow: none;
}

#gameCanvas {
  touch-action: none;
}


/* ========================================
PLAYER NAME HOVER TOOLTIP
======================================== */

.player-name-tooltip {

  position:
    fixed;

  z-index:
    1400;

  max-width:
    min(
      220px,
      calc(100vw - 16px)
    );

  padding:
    6px 10px;

  overflow:
    hidden;

  border:
    1px solid
    rgba(
      111,
      82,
      67,
      0.16
    );

  border-radius:
    var(--luma-radius-pill);

  background:
    rgba(
      255,
      250,
      245,
      0.96
    );

  color:
    var(--luma-accent-deep);

  font-family:
    inherit;

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.2;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  box-shadow:
    0 4px 12px
    rgba(
      67,
      48,
      57,
      0.12
    );

  pointer-events:
    none;

  user-select:
    none;

}


/* ========================================
LUMA WORLD CURSOR STATES
======================================== */

#gameCanvas[data-cursor-state="default"] {
  cursor:
    url("/assets/UI/cursors/cursor-default.png")
    8 6,
    default;
}


#gameCanvas[data-cursor-state="move"] {
  cursor:
    url("/assets/UI/cursors/cursor-move.png")
    8 6,
    pointer;
}


#gameCanvas[data-cursor-state="interact"] {
  cursor:
    url("/assets/UI/cursors/cursor-interact.png")
    8 6,
    pointer;
}



#gameCanvas[data-cursor-state="build"] {
  cursor:
    url("/assets/UI/cursors/cursor-build.png")
    32 52,
    crosshair;
}


#gameCanvas[data-cursor-state="dig"] {
  cursor:
    url("/assets/UI/cursors/cursor-dig.png")
    32 52,
    crosshair;
}


#gameCanvas[data-cursor-state="water"] {
  cursor:
    url("/assets/UI/cursors/cursor-water.png")
    32 52,
    crosshair;
}


#gameCanvas[data-cursor-state="harvest"] {
  cursor:
    url("/assets/UI/cursors/cursor-harvest.png")
    32 52,
    pointer;
}


#gameCanvas[data-cursor-state="seed"] {
  cursor:
    url("/assets/UI/cursors/cursor-seed.png")
    32 52,
    crosshair;
}





.controls {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  color: #8b949e;

  background: #161b22;

  border-top: 1px solid #30363d;

  font-size: 13px;
}


/* ========================================
   SIDEBAR
   ======================================== */

   .sidebar {
    width: 100%;
    height: 100%;
  
    min-width: 0;
    min-height: 0;
  
    display: flex;
    flex-direction: column;
  
    background: #161b22;
  
    border-left: 1px solid #30363d;
  
    overflow: hidden;
  }


/* ========================================
   PLAYERS
   ======================================== */

.players-panel {
  height: 40%;

  min-height: 150px;

  overflow-y: auto;

  border-bottom: 1px solid #30363d;
}


.panel-title {
  height: 48px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 15px;

  font-weight: bold;

  border-bottom: 1px solid #30363d;
}


#playerCount {
  padding: 3px 8px;

  border-radius: 20px;

  background: #30363d;

  color: #c9d1d9;

  font-size: 12px;
}


#playerList {
  padding: 8px;
}


.player {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 9px;

  border-radius: 6px;
}


.player:hover {
  background: #21262d;
}


.player-dot {
  width: 9px;
  height: 9px;

  border-radius: 50%;

  flex-shrink: 0;
}


.player-name {
  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.chat-panel {
  position: relative;

  width: 460px;
  height: 320px;

  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background:
    rgba(116, 94, 156, 0.103);

  border:
    1px solid rgba(255, 255, 255, 0.55);

  border-radius: 20px;

  box-shadow:
    0 10px 30px
    rgba(67, 48, 57, 0.14);

    backdrop-filter:
    blur(8px);
  
  -webkit-backdrop-filter:
    blur(8px);

  color: #c7bec2;

  z-index: 50;
}

/* ========================================
CHAT TOOLBAR
======================================== */

.chat-panel-toolbar {

  position:
    relative;

  height:
    28px;

  flex-shrink:
    0;

  display:
    flex;

  align-items:
    stretch;

  border-bottom:
    1px solid
    rgba(
      255,
      255,
      255,
      0.08
    );

}


/* ========================================
CHAT LAYOUT BUTTON
======================================== */

.chat-layout-button {

  width:
    32px;

  flex-shrink:
    0;

  padding:
    0;

  border:
    none;

  background:
    transparent;

  color:
    rgba(
      255,
      255,
      255,
      0.68
    );

  font-size:
    18px;

  line-height:
    1;

  cursor:
    pointer;

}


.chat-layout-button:hover {

  background:
    rgba(
      255,
      255,
      255,
      0.08
    );

  color:
    rgba(
      255,
      255,
      255,
      0.95
    );

}


/* ========================================
CHAT LAYOUT MENU
======================================== */

.chat-layout-menu {

  position:
    fixed;

  top:
    0;

  left:
    0;

  right:
    auto;

  width:
    170px;

  z-index:
    1300;

  pointer-events:
    auto;

  padding:
    7px;

  background:
    rgba(
      255,
      250,
      245,
      0.98
    );

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  box-shadow:
    var(--luma-shadow-soft);

  color:
    var(--luma-text-primary);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

}


.chat-layout-menu-title {

  padding:
    5px 8px 7px;

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-bold);

  text-transform:
    uppercase;

  letter-spacing:
    0.06em;

}


.chat-layout-menu-item {

  width:
    100%;

  min-height:
    32px;

  display:
    flex;

  align-items:
    center;

  padding:
    6px 9px;

  border:
    none;

  border-radius:
    var(--luma-radius-small);

  background:
    transparent;

  color:
    var(--luma-text-primary);

  font-family:
    inherit;

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-semibold);

  text-align:
    left;

  cursor:
    pointer;

}


.chat-layout-menu-item:hover {

  background:
    var(--luma-surface-soft);

}


.chat-layout-menu-divider {

  height:
    1px;

  margin:
    5px 4px;

  background:
    var(--luma-border-soft);

}

/* ========================================
CHAT LAYOUT CONTROLS
======================================== */

.chat-drag-handle {

  height:
  28px;

  flex:
    1;

  flex-shrink:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  color:
    rgba(
      255,
      255,
      255,
      0.58
    );

  font-size:
    11px;

  font-weight:
    700;

  letter-spacing:
    2px;

  user-select:
    none;

  touch-action:
    none;

  cursor:
    grab !important;

  transition:
    background 140ms ease,
    color 140ms ease;

}


.chat-drag-handle:hover {

  background:
    rgba(
      255,
      255,
      255,
      0.08
    );

  color:
    rgba(
      255,
      255,
      255,
      0.88
    );

}


.chat-drag-handle:active {

  cursor:
    grabbing !important;

}

/* ========================================
CHAT PEEK MODE
======================================== */

.chat-panel.peek-mode {

  height:
    86px !important;

  min-height:
    86px;

}


.chat-panel.peek-mode
.messages {

  display:
    none;

}


.chat-panel.peek-mode
.chat-form {

  flex:
    1;

  align-items:
    center;

  border-top:
    none;

}


.chat-panel.peek-mode
.chat-resize-handle {

  opacity:
    0;

  pointer-events:
    auto;

}

/* ========================================
CHAT PEEK MESSAGE PREVIEW
======================================== */

.chat-peek-preview {

  position:
    fixed;

  width:
    min(
      360px,
      calc(100vw - 24px)
    );

  padding:
    10px 14px;

  z-index:
    1320;

  display:
    block;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  background:
    rgba(
      255,
      250,
      245,
      0.97
    );

  box-shadow:
    var(--luma-shadow-soft);

  color:
    var(--luma-text-primary);

  font-family:
    inherit;

  text-align:
    left;

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

  cursor:
    pointer;

}


.chat-peek-preview:hover {

  background:
    var(--luma-surface-cream);

  transform:
    translateY(-1px);

}


.chat-peek-preview-name {

  overflow:
    hidden;

  color:
    var(--luma-accent-deep);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-bold);

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}


.chat-peek-preview-text {

  margin-top:
    2px;

  overflow:
    hidden;

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-semibold);

  line-height:
    1.35;

  display:
    -webkit-box;

  -webkit-line-clamp:
    2;

  -webkit-box-orient:
    vertical;

  overflow-wrap:
    anywhere;

}


/* ========================================
CHAT NEW MESSAGE INDICATOR
======================================== */

.chat-new-message-indicator {

  position:
    absolute;

  left:
    50%;

  bottom:
    58px;

  z-index:
    8;

  max-width:
    calc(100% - 24px);

  padding:
    6px 12px;

  border:
    1px solid
    rgba(
      123,
      74,
      92,
      0.14
    );

  border-radius:
    999px;

  background:
    rgba(
      255,
      250,
      245,
      0.96
    );

  color:
    var(--luma-accent-deep);

  font-family:
    inherit;

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1;

  white-space:
    nowrap;

  box-shadow:
    0 4px 12px
    rgba(
      67,
      48,
      57,
      0.12
    );

  cursor:
    pointer;

  transform:
    translateX(-50%);

  animation:
    luma-chat-new-message-enter
    170ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;

}


.chat-new-message-indicator:hover {

  background:
    var(--luma-surface-cream);

}


.chat-new-message-indicator:active {

  transform:
    translateX(-50%)
    scale(0.96);

}


/* ========================================
NEW MESSAGE INDICATOR ENTRANCE
======================================== */

@keyframes
luma-chat-new-message-enter {

  from {

    opacity:
      0;

    transform:
      translateX(-50%)
      translateY(4px)
      scale(0.96);

  }


  to {

    opacity:
      1;

    transform:
      translateX(-50%)
      translateY(0)
      scale(1);

  }

}


/* ========================================
HIDE INDICATOR DURING PEEK MODE
======================================== */

.chat-panel.peek-mode
.chat-new-message-indicator {

  display:
    none !important;

}


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

  .chat-new-message-indicator {

    animation:
      none;

  }

}


/* ========================================
CHAT RESIZE HANDLE
======================================== */

.chat-resize-handle {


  position:
    absolute;

  right:
    5px;

  bottom:
    5px;

  width:
    16px;

  height:
    16px;

  z-index:
    5;

  touch-action:
    none;

  cursor:
    nwse-resize !important;

}


.chat-resize-handle::before {

  content:
    "";

  position:
    absolute;

  right:
    2px;

  bottom:
    2px;

  width:
    7px;

  height:
    7px;

  border-right:
    2px solid
    rgba(
      255,
      255,
      255,
      0.52
    );

  border-bottom:
    2px solid
    rgba(
      255,
      255,
      255,
      0.52
    );

  border-radius:
    0 0 3px 0;

}


.chat-resize-handle:hover::before {

  border-color:
    rgba(
      255,
      255,
      255,
      0.88
    );

}

/* ========================================
BOTTOM NAVIGATION
======================================== */

.bottom-nav {
  position: relative;

  transform: none;

  display: flex;
  align-items: center;

  padding: 8px;

  background:
    rgba(255, 250, 247, 0.94);

  border:
    1px solid rgba(234, 221, 227, 0.95);

  border-radius: 28px;

  box-shadow:
    0 10px 28px
    rgba(76, 52, 65, 0.18);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

  z-index: 60;
}


.bottom-nav-button {
  width: 92px;
  height: 64px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 4px;

  border: none;
  border-radius: 20px;

  background: transparent;

  color: #6f5a64;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}


.bottom-nav-icon {
  font-size: 22px;
  line-height: 1;
}


.bottom-nav-button:hover {
  background:
    rgba(240, 222, 214, 0.55);
}


.bottom-nav-button:active {
  transform: scale(0.96);
}


.bottom-nav-button.active {
  background:
    #f7ded4;

  color:
    #c97862;
}

/* ========================================
CHAT MESSAGE FEED
======================================== */

.messages {

  flex:
    1;

  min-height:
    0;

  overflow-y:
    auto;

  padding:
    12px;

  scroll-padding:
    12px;

}

/* ========================================
CHAT EMPTY STATE
======================================== */

.messages:empty {

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

}


.messages:empty::before {

  content:
    "No messages yet — say hello ✨";

  max-width:
    220px;

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-semibold);

  line-height:
    1.4;

  text-align:
    center;

  opacity:
    0.78;

}

/* ========================================
CHAT CONNECTION STATUS
======================================== */

.chat-connection-status {

  flex-shrink:
    0;

  margin:
    8px 12px 0;

  padding:
    6px 10px;

  border:
    1px solid
    rgba(
      184,
      95,
      109,
      0.22
    );

  border-radius:
    999px;

  background:
    rgba(
      255,
      235,
      232,
      0.94
    );

  color:
    #a65d69;

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-semibold);

  line-height:
    1.3;

  text-align:
    center;

}


.chat-panel.chat-disconnected
.chat-form {

  opacity:
    0.72;

}


.chat-panel.chat-disconnected
#messageInput,

.chat-panel.chat-disconnected
.chat-send-button {

  cursor:
    not-allowed;

}


/* ========================================
PLAYER CHAT MESSAGE
======================================== */

.message {

  width:
  fit-content;

  max-width:
  100%;

  margin-bottom:
    8px;

    transform-origin:
    left bottom;

  animation:
    luma-chat-message-enter
    180ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;

  padding:
    8px 10px;

  border:
    1px solid
    rgba(
      111,
      82,
      67,
      0.10
    );

  border-radius:
    12px;

  background:
    rgba(
      255,
      250,
      245,
      0.86
    );

  box-shadow:
    0 2px 8px
    rgba(
      67,
      48,
      57,
      0.055
    );

    color:
    var(--luma-text-primary);

  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;

}

/* ========================================
CHAT MESSAGE — HOVER
======================================== */

.message:hover {

  background:
    rgba(
      255,
      252,
      248,
      0.96
    );

  border-color:
    rgba(
      111,
      82,
      67,
      0.16
    );

  box-shadow:
    0 3px 10px
    rgba(
      67,
      48,
      57,
      0.085
    );

}


/* ========================================
CHAT MESSAGE — SELF HOVER
======================================== */

.message-self:hover {

  background:
    rgba(
      255,
      226,
      214,
      0.98
    );

  border-color:
    rgba(
      198,
      135,
      112,
      0.38
    );

}


/* ========================================
CHAT MESSAGE — SELF
======================================== */

.message-self {

  background:
    rgba(
      255,
      232,
      222,
      0.96
    );

  border-color:
    rgba(
      198,
      135,
      112,
      0.30
    );

  box-shadow:
    0 2px 8px
    rgba(
      120,
      78,
      63,
      0.08
    );

}

.message-self .message-name {

  color:
    #9a5f4c;

}

/* ========================================
CHAT PLAYER NAME — INTERACTIVE
======================================== */

.message-name-interactive {

  cursor:
    pointer;

  transition:
    color 140ms ease,
    opacity 140ms ease;

}


.message-name-interactive:hover {

  color:
    var(--luma-accent-coral);

  text-decoration:
    underline;

  text-decoration-thickness:
    1px;

  text-underline-offset:
    2px;

}


.message-name-interactive:active {

  opacity:
    0.72;

}

/* ========================================
CHAT PLAYER NAME — KEYBOARD FOCUS
======================================== */

.message-name-interactive:focus-visible {

  outline:
    2px solid
    rgba(
      201,
      120,
      134,
      0.55
    );

  outline-offset:
    2px;

  border-radius:
    4px;

}

/* ========================================
CHAT MESSAGE ENTRANCE
======================================== */

@keyframes luma-chat-message-enter {

  from {

    opacity:
      0;

    transform:
      translateY(5px)
      scale(0.96);

  }


  to {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }

}


/* ========================================
REDUCED MOTION
======================================== */

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

  .message {

    animation:
      none;

  }

}


/* ========================================
MESSAGE HEADER
======================================== */

.message-header {

  min-width:
    0;

  display:
    flex;

  align-items:
    baseline;

  gap:
    7px;

}


/* ========================================
PLAYER NAME
======================================== */

.message-name {

  min-width:
    0;

  overflow:
    hidden;

  color:
    var(--luma-accent-deep);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.25;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}


/* ========================================
MESSAGE TIME
======================================== */

.message-time {

  flex-shrink:
    0;

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-semibold);

  line-height:
    1.2;

}


/* ========================================
MESSAGE BODY
======================================== */

.message-text {

  margin-top:
    3px;

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-regular);

  line-height:
    1.42;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;

  word-break:
    normal;

}


.system-message {
  margin: 8px 0;

  color: #6e7681;

  text-align: center;

  font-size: 10px;

  font-style: italic;
}

/* ========================================
SYSTEM MESSAGE SEMANTIC TONES
======================================== */

.system-message-success {
  color:
    #6f8f73;
}


.system-message-reward {
  color:
    #a77946;
}


.system-message-error {
  color:
    #b85f6d;
}


/* ========================================
CHAT INPUT AREA
======================================== */

.chat-form {

  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  padding:
    8px 10px 10px;

  border-top:
    1px solid
    rgba(
      111,
      82,
      67,
      0.10
    );

  background:
    rgba(
      255,
      250,
      245,
      0.08
    );

}


/* ========================================
CHAT MESSAGE INPUT
======================================== */

.chat-form #messageInput {

  width:
    auto;

  height:
    38px;

  flex:
    1;

  min-width:
    0;

  padding:
    0 14px;

  box-sizing:
    border-box;

  border:
    1px solid
    rgba(
      111,
      82,
      67,
      0.18
    );

  border-radius:
    999px;

  outline:
    none;

  background:
    rgba(
      255,
      250,
      245,
      0.92
    );

  color:
    var(--luma-text-primary);

  font-family:
    inherit;

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-regular);

  line-height:
    1;

  box-shadow:
    0 1px 3px
    rgba(
      67,
      48,
      57,
      0.05
    );

  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;

}


/* ========================================
CHAT INPUT PLACEHOLDER
======================================== */

.chat-form #messageInput::placeholder {

  color:
    var(--luma-text-muted);

  opacity:
    0.82;

}


/* ========================================
CHAT INPUT FOCUS
======================================== */

.chat-form #messageInput:focus {

  background:
    var(--luma-surface-cream);

  border-color:
    rgba(
      201,
      120,
      134,
      0.62
    );

  box-shadow:
    0 0 0 3px
    rgba(
      201,
      120,
      134,
      0.12
    ),
    0 2px 6px
    rgba(
      67,
      48,
      57,
      0.07
    );

}


/* ========================================
CHAT SEND BUTTON
======================================== */

.chat-send-button {

  width:
    38px;

  height:
    38px;

  flex-shrink:
    0;

  padding:
    0;

  box-sizing:
    border-box;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px solid
    rgba(
      123,
      74,
      92,
      0.12
    );

  border-radius:
    50%;

  background:
    var(--luma-accent-blush);

  color:
    #fffaf5;

  font-family:
    inherit;

  font-size:
    14px;

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1;

  box-shadow:
    0 2px 6px
    rgba(
      67,
      48,
      57,
      0.10
    );

  cursor:
    pointer;

  transition:
    background 150ms ease,
    transform 120ms ease,
    box-shadow 150ms ease;

}


.chat-send-button:hover {

  background:
    var(--luma-accent-coral);

  transform:
    translateY(-1px);

  box-shadow:
    0 4px 9px
    rgba(
      67,
      48,
      57,
      0.14
    );

}


.chat-send-button:active {

  transform:
    translateY(0)
    scale(0.94);

  box-shadow:
    0 1px 3px
    rgba(
      67,
      48,
      57,
      0.10
    );

}


/* ========================================
CHAT KEYBOARD FOCUS
======================================== */

.chat-send-button:focus-visible {

  outline:
    3px solid
    rgba(
      201,
      120,
      134,
      0.24
    );

  outline-offset:
    2px;

}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 800px) {

  .game-layout {
    grid-template-columns:
      1fr;
  }


  .sidebar {
    display:
      none;
  }


  .canvas-container {
    padding:
      10px;
  }


  .controls {
    font-size:
      12px;
  }


  .chat-panel {
    width:
      min(
        460px,
        calc(100vw - 48px)
      );
  }


  .bottom-nav {
    width:
      calc(100vw - 32px);

    max-width:
      400px;
  }


  .bottom-nav-button {
    width:
      auto;

    min-width:
      0;

    flex:
      1;
  }


  .hud-top-left {
    max-width:
      calc(100vw - 150px);
  }


  .space-hud {
    max-width:
      100%;

    flex-wrap:
      wrap;
  }


  .hud-bottom-left {
    bottom:
      112px;
  }


  .hud-bottom-right {
    bottom:
      112px;
  }

}

@media (max-width: 700px), (pointer: coarse) and (max-width: 900px) {

  .canvas-container {
    padding:
      0;
  }


  .hud-top-left {
    top:
      calc(env(safe-area-inset-top, 0px) + 10px);

    left:
      12px;

    max-width:
      min(34vw, 150px);
  }


  .space-hud {
    max-width:
      100%;

    gap:
      6px;

    overflow:
      hidden;
  }


  .performance-monitor {
    gap: 4px;

    margin-top: 6px;
    padding: 4px 6px;

    font-size: 9px;
  }

  .performance-monitor-dot {
    width: 7px;
    height: 7px;
  }

  .space-hud-name {
    max-width:
      100%;

    font-size:
      12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .space-hud-info {
    min-width: 0;
    max-width: 100%;
  }


  .space-hud-status {
    font-size:
      10px;
  }


  .build-version-watermark {
    font-size:
      9px;
  }


  .space-hud-actions {
    display:
      none;
  }


  .hud-top-center {
    top:
      calc(env(safe-area-inset-top, 0px) + 12px);

    width:
      auto;
  }


  .top-hud-nav {
    gap:
      6px;

    padding:
      0;
  }



  .top-hud-menu {
    min-width:
      0;
  }


  .top-hud-menu-button {
    width:
      46px;

    height:
      46px;

    min-width:
      46px;

    min-height:
      46px;

    padding:
      6px;

    border-radius:
      999px;
  }


  .top-hud-icon {
    width:
      32px;

    height:
      32px;
  }

  .settings-gear-button {
    width:
      46px;

    height:
      46px;

    min-width:
      46px;

    min-height:
      46px;

    padding:
      6px;
  }

  .settings-gear-icon {
    width:
      32px;

    height:
      32px;
  }


  .top-hud-dropdown {
    width:
      158px;

    padding:
      7px;
  }


  .top-hud-dropdown-item {
    min-height:
      40px;
  }


  .top-hud-dropdown-icon {
    width:
      28px;

    height:
      28px;
  }


  .hud-top-right {
    top:
      calc(env(safe-area-inset-top, 0px) + 14px);

    right:
      10px;

    gap:
      6px;
  }


  .crown-display {
    min-height:
      44px;

    padding:
      7px 12px 7px 34px;

    font-size:
      13px;
  }


  .crown-icon {
    left:
      -14px;

    width:
      52px;

    height:
      52px;
  }


  .zoom-tool-stack {
    gap:
      4px;
  }


  .zoom-controls {
    padding:
      4px;
  }


  .zoom-button {
    width:
      28px;

    height:
      28px;

    font-size:
      16px;
  }


  .hud-bottom-left {
    left:
      14px;

    right:
      14px;

    bottom:
      calc(env(safe-area-inset-bottom, 0px) + 12px);
  }


  .chat-panel {
    width:
      min(420px, calc(100vw - 28px));

    height:
      min(34vh, 210px);

    min-height:
      148px;

    border-radius:
      18px;
  }


  .chat-panel-toolbar {
    height:
      24px;
  }


  .chat-form {
    padding:
      7px 8px 9px;
  }


  .chat-form #messageInput {
    height:
      34px;

    font-size:
      14px;
  }


  .messages {
    padding:
      10px 12px;

    scroll-padding:
      10px;
  }


  .message {
    margin-bottom:
      6px;

    padding:
      6px 9px;

    border-radius:
      11px;
  }


  .message-header {
    gap:
      5px;
  }


  .message-name {
    font-size:
      12px;

    line-height:
      1.12;
  }


  .message-time {
    font-size:
      11px;

    line-height:
      1.1;
  }


  .message-text {
    margin-top:
      2px;

    font-size:
      13px;

    line-height:
      1.2;
  }


  .chat-send-button {
    width:
      34px;

    height:
      34px;
  }


  .hud-bottom-right {
    right:
      14px;

    bottom:
      calc(env(safe-area-inset-bottom, 0px) + min(38vh, 232px));
  }


  .logout-button {
    padding:
      7px 11px;

    font-size:
      12px;
  }

}

@media (max-width: 700px) and (max-height: 720px),
  (pointer: coarse) and (max-width: 900px) and (max-height: 720px) {

  .chat-panel {
    height:
      min(30vh, 178px);

    min-height:
      132px;
  }


  .hud-bottom-right {
    bottom:
      calc(env(safe-area-inset-bottom, 0px) + min(34vh, 198px));
  }

}

/* ========================================
ACCOUNT SCREEN
======================================== */

#joinScreen {
  --title-horizon-y:
    50vh;

  position:
    relative;

  overflow:
    hidden;
}

#joinScreen.title-preload-pending .title-scene,
#joinScreen.title-preload-pending .login-branding,
#joinScreen.title-preload-pending .login-card,
#joinScreen.title-preload-pending .login-disclaimer,
#joinScreen.title-preload-pending .login-readiness-ticker,
#joinScreen.title-preload-pending .login-build-version-watermark {
  opacity:
    0;

  visibility:
    hidden;
}

.title-scene {
  position:
    absolute;

  inset:
    0;

  z-index:
    0;

  overflow:
    hidden;

  pointer-events:
    none;
}

.title-scene-layer {
  position:
    absolute;

  inset:
    0;
}
.login-branding {
  position:
    relative;

  z-index:
    7;

  display:
    flex;

  justify-content:
    center;

  width:
    min(58vw, 620px);

  max-width:
    calc(100vw - 40px);

  margin:
    0 auto
    clamp(22px, 3vh, 42px);

  pointer-events:
    none;
}

.login-wordmark {
  width:
    100%;
}

.login-wordmark-image {
  display:
    block;

  width:
    100%;

  height:
    auto;

  max-width:
    none;

  user-select:
    none;
}

.login-build-version-watermark {
  position:
    absolute;

  left:
    50%;

  bottom:
    clamp(10px, 2.4vh, 24px);

  z-index:
    9;

  color:
    rgba(255, 255, 255, 0.9);

  font-size:
    12px;

  font-weight:
    800;

  letter-spacing:
    0.04em;

  text-shadow:
    0 2px 8px
    rgba(64, 43, 28, 0.46);

  transform:
    translateX(-50%);

  pointer-events:
    none;

  white-space:
    nowrap;
}


.title-scene-sky {
  z-index:
    0;

  background:
    linear-gradient(
      to bottom,
      #5db7f5 0%,
      #8fcff7 34%,
      #c7e7f3 48%,
      #f8e7bf 56%,
      #f9f2d8 100%
    );
}

.login-horizon-glow {
  z-index:
    1;

  background:
    radial-gradient(
      ellipse
      96vw 36vh
      at
      50%
      var(--title-horizon-y),
      rgba(255, 253, 224, 0.86) 0%,
      rgba(255, 232, 164, 0.48) 34%,
      rgba(255, 215, 144, 0.25) 62%,
      rgba(255, 225, 180, 0) 86%
    ),
    radial-gradient(
      ellipse
      132vw 48vh
      at
      50%
      var(--title-horizon-y),
      rgba(255, 240, 190, 0.42) 0%,
      rgba(255, 231, 188, 0.22) 52%,
      rgba(255, 231, 188, 0) 82%
    );

  opacity:
    0.92;
}

.title-scene-clouds {
  z-index:
    3;

  overflow:
    hidden;
}

.login-sun-rays {
  z-index:
    2;

  overflow:
    hidden;

  mix-blend-mode:
    screen;
}

.login-sun-ray {
  position:
    absolute;

  left:
    50%;

  top:
    var(--title-horizon-y);

  width:
    54vw;

  height:
    23vw;

  min-width:
    520px;

  min-height:
    220px;

  background-image:
    url("assets/login/background/sunray.png");

  background-repeat:
    no-repeat;

  background-position:
    0 50%;

  background-size:
    100% 100%;

  opacity:
    var(
      --login-sun-ray-opacity,
      0.12
    );

  filter:
    blur(10px);

  transform-origin:
    0% 82%;

  transform:
    translate3d(
      0,
      -82%,
      0
    )
    rotate(
      var(--login-sun-ray-rotation)
    )
    scaleX(
      var(--login-sun-ray-length, 1)
    )
    scaleY(
      var(--login-sun-ray-width, 1)
    );

  pointer-events:
    none;
}

.login-sun-ray-1 {
  --login-sun-ray-rotation:
    -118deg;

  --login-sun-ray-length:
    1.18;

  --login-sun-ray-width:
    0.56;

  --login-sun-ray-opacity:
    0.42;
}

.login-sun-ray-2 {
  --login-sun-ray-rotation:
    -101deg;

  --login-sun-ray-length:
    1.08;

  --login-sun-ray-width:
    0.72;

  --login-sun-ray-opacity:
    0.5;
}

.login-sun-ray-3 {
  --login-sun-ray-rotation:
    -88deg;

  --login-sun-ray-length:
    0.94;

  --login-sun-ray-width:
    0.52;

  --login-sun-ray-opacity:
    0.32;
}

.login-sun-ray-4 {
  --login-sun-ray-rotation:
    -73deg;

  --login-sun-ray-length:
    1.1;

  --login-sun-ray-width:
    0.66;

  --login-sun-ray-opacity:
    0.48;
}

.login-sun-ray-5 {
  --login-sun-ray-rotation:
    -58deg;

  --login-sun-ray-length:
    1.28;

  --login-sun-ray-width:
    0.48;

  --login-sun-ray-opacity:
    0.42;
}

.login-sun-ray-6 {
  --login-sun-ray-rotation:
    -132deg;

  --login-sun-ray-length:
    0.92;

  --login-sun-ray-width:
    0.44;

  --login-sun-ray-opacity:
    0.28;
}

.login-sun-ray-7 {
  --login-sun-ray-rotation:
    -43deg;

  --login-sun-ray-length:
    0.98;

  --login-sun-ray-width:
    0.5;

  --login-sun-ray-opacity:
    0.32;
}

.login-cloud-glow {
  z-index:
    4;

  background:
    radial-gradient(
      ellipse
      104vw 34vh
      at
      50%
      var(--title-horizon-y),
      rgba(255, 250, 214, 0.42) 0%,
      rgba(255, 224, 154, 0.24) 38%,
      rgba(255, 218, 165, 0.1) 62%,
      rgba(255, 225, 180, 0) 86%
    );

  mix-blend-mode:
    screen;

  opacity:
    0.76;
}

.login-hills {
  z-index:
    5;

  overflow:
    hidden;
}

.login-hills-image {
  --login-hills-art-horizon-offset:
    34%;

  position:
    absolute;

  left:
    50%;

  top:
    var(--title-horizon-y);

  width:
    max(
      100vw,
      calc(
        (
          100vh - var(--title-horizon-y)
        ) * 2.998
      )
    );

  height:
    auto;

  max-width:
    none;

  pointer-events:
    none;

  user-select:
    none;

  transform-origin:
    50% 100%;

  transform:
    translate3d(
      -50%,
      calc(
        -1 * var(--login-hills-art-horizon-offset)
      ),
      0
    );
}

.login-foreground-landscape {
  z-index:
    6;

  --login-foreground-hills-bottom-offset:
    0px;

  position:
    absolute;

  inset:
    auto auto auto auto;

  left:
    50%;

  bottom:
    var(--login-foreground-hills-bottom-offset);

  width:
    max(
      100vw,
      calc(
        100vh * 3
      )
    );

  aspect-ratio:
    3552 / 1184;

  transform:
    translate3d(
      -50%,
      0,
      0
    );

  overflow:
    hidden;
}

.login-foreground-hills,
.login-landscape-clutter {
  position:
    absolute;

  inset:
    0;
}

.login-foreground-hills-image {
  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  object-fit:
    fill;

  max-width:
    none;

  pointer-events:
    none;

  user-select:
    none;
}

.login-clutter {
  position:
    absolute;

  left:
    calc(
      var(--login-clutter-x) +
      var(--login-clutter-active-x-offset, var(--login-clutter-cluster-x-offset, 5%))
    );

  bottom:
    calc(
      var(--login-clutter-y) -
      10% +
      var(--login-clutter-active-y-offset, var(--login-clutter-cluster-y-offset, 6%))
    );

  width:
    calc(
      var(--login-clutter-size) *
      var(--login-clutter-active-scale, var(--login-clutter-cluster-scale, 2))
    );

  height:
    auto;

  opacity:
    var(--login-clutter-opacity, 0.95);

  pointer-events:
    none;

  user-select:
    none;

  transform:
    translate3d(
      -50%,
      0,
      0
    );
}

.login-clutter-image {
  display:
    block;

  width:
    100%;

  height:
    auto;

  max-width:
    none;

  pointer-events:
    none;

  user-select:
    none;

  transform:
    rotate(
      var(--login-clutter-rotate, 0deg)
    )
    scaleX(
      var(--login-clutter-flip, 1)
    );

  transform-origin:
    var(--login-clutter-root-x, 50%)
    var(--login-clutter-root-y, 100%);

  animation:
    login-clutter-sway
    var(--login-clutter-sway-duration, 4.8s)
    ease-in-out
    infinite;

  animation-delay:
    var(--login-clutter-sway-delay, 0s);

  animation-direction:
    alternate;

  will-change:
    transform;
}

.login-clutter-1 { --login-clutter-x: 5%; --login-clutter-y: 36%; --login-clutter-size: 38px; --login-clutter-rotate: -12deg; --login-clutter-sway-duration: 4.6s; --login-clutter-sway-delay: -0.4s; }
.login-clutter-2 { --login-clutter-x: 9%; --login-clutter-y: 34%; --login-clutter-size: 34px; --login-clutter-rotate: 8deg; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.1s; --login-clutter-sway-delay: -1.3s; }
.login-clutter-3 { --login-clutter-x: 13%; --login-clutter-y: 31%; --login-clutter-size: 32px; --login-clutter-rotate: -5deg; --login-clutter-sway-duration: 4.2s; --login-clutter-sway-delay: -2.1s; }
.login-clutter-4 { --login-clutter-x: 17%; --login-clutter-y: 29%; --login-clutter-size: 36px; --login-clutter-rotate: 10deg; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.4s; --login-clutter-sway-delay: -0.8s; }
.login-clutter-5 { --login-clutter-x: 21%; --login-clutter-y: 26%; --login-clutter-size: 30px; --login-clutter-rotate: -8deg; --login-clutter-sway-duration: 4.8s; --login-clutter-sway-delay: -1.9s; }
.login-clutter-6 { --login-clutter-x: 25%; --login-clutter-y: 24%; --login-clutter-size: 38px; --login-clutter-rotate: 6deg; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.7s; --login-clutter-sway-delay: -2.7s; }
.login-clutter-7 { --login-clutter-x: 7%; --login-clutter-y: 34%; --login-clutter-size: 31px; --login-clutter-rotate: 11deg; --login-clutter-opacity: 0.9; --login-clutter-sway-duration: 4.4s; --login-clutter-sway-delay: -1.1s; }
.login-clutter-8 { --login-clutter-x: 11%; --login-clutter-y: 32%; --login-clutter-size: 29px; --login-clutter-rotate: -9deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 5.2s; --login-clutter-sway-delay: -2.3s; }
.login-clutter-9 { --login-clutter-x: 15%; --login-clutter-y: 29%; --login-clutter-size: 34px; --login-clutter-rotate: 6deg; --login-clutter-opacity: 0.9; --login-clutter-flip: -1; --login-clutter-sway-duration: 4.7s; --login-clutter-sway-delay: -0.6s; }
.login-clutter-10 { --login-clutter-x: 19%; --login-clutter-y: 27%; --login-clutter-size: 33px; --login-clutter-rotate: -7deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 5.6s; --login-clutter-sway-delay: -1.7s; }
.login-clutter-11 { --login-clutter-x: 23%; --login-clutter-y: 25%; --login-clutter-size: 35px; --login-clutter-rotate: 5deg; --login-clutter-opacity: 0.9; --login-clutter-flip: -1; --login-clutter-sway-duration: 4.3s; --login-clutter-sway-delay: -2.6s; }
.login-clutter-12 { --login-clutter-x: 27%; --login-clutter-y: 23%; --login-clutter-size: 30px; --login-clutter-rotate: -11deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 5s; --login-clutter-sway-delay: -0.2s; }
.login-clutter-13 { --login-clutter-x: 8%; --login-clutter-y: 30%; --login-clutter-size: 32px; --login-clutter-rotate: -6deg; --login-clutter-opacity: 0.86; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.3s; --login-clutter-sway-delay: -1.5s; }
.login-clutter-14 { --login-clutter-x: 12%; --login-clutter-y: 28%; --login-clutter-size: 36px; --login-clutter-rotate: 4deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 4.5s; --login-clutter-sway-delay: -2.4s; }
.login-clutter-15 { --login-clutter-x: 16%; --login-clutter-y: 26%; --login-clutter-size: 30px; --login-clutter-rotate: -12deg; --login-clutter-opacity: 0.86; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.8s; --login-clutter-sway-delay: -0.9s; }
.login-clutter-16 { --login-clutter-x: 20%; --login-clutter-y: 24%; --login-clutter-size: 38px; --login-clutter-rotate: 7deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 4.9s; --login-clutter-sway-delay: -1.8s; }
.login-clutter-17 { --login-clutter-x: 24%; --login-clutter-y: 22%; --login-clutter-size: 34px; --login-clutter-rotate: -5deg; --login-clutter-opacity: 0.86; --login-clutter-sway-duration: 5.5s; --login-clutter-sway-delay: -2.9s; }
.login-clutter-18 { --login-clutter-x: 28%; --login-clutter-y: 20%; --login-clutter-size: 31px; --login-clutter-rotate: 9deg; --login-clutter-opacity: 0.88; --login-clutter-flip: -1; --login-clutter-sway-duration: 4.1s; --login-clutter-sway-delay: -1.2s; }
.login-clutter-middle {
  --login-clutter-active-x-offset:
    var(--login-clutter-middle-x-offset, 0%);

  --login-clutter-active-y-offset:
    var(--login-clutter-middle-y-offset, 10%);

  --login-clutter-active-scale:
    var(--login-clutter-middle-scale, 2);
}

.login-clutter-19 { --login-clutter-x: 33%; --login-clutter-y: 17%; --login-clutter-size: 34px; --login-clutter-rotate: -8deg; --login-clutter-opacity: 0.9; --login-clutter-sway-duration: 4.8s; --login-clutter-sway-delay: -0.7s; }
.login-clutter-20 { --login-clutter-x: 45%; --login-clutter-y: 16%; --login-clutter-size: 30px; --login-clutter-rotate: 7deg; --login-clutter-opacity: 0.88; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.3s; --login-clutter-sway-delay: -1.9s; }
.login-clutter-21 { --login-clutter-x: 46%; --login-clutter-y: 15%; --login-clutter-size: 36px; --login-clutter-rotate: -4deg; --login-clutter-opacity: 0.9; --login-clutter-sway-duration: 4.5s; --login-clutter-sway-delay: -2.6s; }
.login-clutter-22 { --login-clutter-x: 43%; --login-clutter-y: 16%; --login-clutter-size: 31px; --login-clutter-rotate: 10deg; --login-clutter-opacity: 0.86; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.6s; --login-clutter-sway-delay: -1.2s; }
.login-clutter-23 { --login-clutter-x: 48%; --login-clutter-y: 13%; --login-clutter-size: 38px; --login-clutter-rotate: -6deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 4.9s; --login-clutter-sway-delay: -2.2s; }
.login-clutter-24 { --login-clutter-x: 53%; --login-clutter-y: 12%; --login-clutter-size: 32px; --login-clutter-rotate: 6deg; --login-clutter-opacity: 0.86; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.1s; --login-clutter-sway-delay: -0.4s; }
.login-clutter-25 { --login-clutter-x: 35%; --login-clutter-y: 15%; --login-clutter-size: 29px; --login-clutter-rotate: 9deg; --login-clutter-opacity: 0.86; --login-clutter-flip: -1; --login-clutter-sway-duration: 4.7s; --login-clutter-sway-delay: -1.5s; }
.login-clutter-26 { --login-clutter-x: 39%; --login-clutter-y: 16%; --login-clutter-size: 33px; --login-clutter-rotate: -10deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 5.4s; --login-clutter-sway-delay: -2.1s; }
.login-clutter-27 { --login-clutter-x: 41%; --login-clutter-y: 14%; --login-clutter-size: 28px; --login-clutter-rotate: 5deg; --login-clutter-opacity: 0.84; --login-clutter-flip: -1; --login-clutter-sway-duration: 4.3s; --login-clutter-sway-delay: -0.9s; }
.login-clutter-28 { --login-clutter-x: 44%; --login-clutter-y: 13%; --login-clutter-size: 35px; --login-clutter-rotate: -5deg; --login-clutter-opacity: 0.9; --login-clutter-sway-duration: 5.8s; --login-clutter-sway-delay: -2.7s; }
.login-clutter-29 { --login-clutter-x: 47%; --login-clutter-y: 15%; --login-clutter-size: 31px; --login-clutter-rotate: 11deg; --login-clutter-opacity: 0.86; --login-clutter-flip: -1; --login-clutter-sway-duration: 4.9s; --login-clutter-sway-delay: -1.1s; }
.login-clutter-30 { --login-clutter-x: 50%; --login-clutter-y: 14%; --login-clutter-size: 34px; --login-clutter-rotate: -7deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 5.2s; --login-clutter-sway-delay: -2.4s; }
.login-clutter-31 { --login-clutter-x: 52%; --login-clutter-y: 13%; --login-clutter-size: 30px; --login-clutter-rotate: 6deg; --login-clutter-opacity: 0.84; --login-clutter-flip: -1; --login-clutter-sway-duration: 4.5s; --login-clutter-sway-delay: -0.6s; }
.login-clutter-32 { --login-clutter-x: 55%; --login-clutter-y: 12%; --login-clutter-size: 36px; --login-clutter-rotate: -9deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 5.6s; --login-clutter-sway-delay: -1.8s; }
.login-clutter-foreground-left {
  --login-clutter-active-x-offset:
    var(--login-clutter-foreground-left-x-offset, 0%);

  --login-clutter-active-y-offset:
    var(--login-clutter-foreground-left-y-offset, 10%);

  --login-clutter-active-scale:
    var(--login-clutter-foreground-left-scale, 8);

  filter:
    blur(var(--login-clutter-foreground-left-blur, 1px));
}

.login-clutter-33 { --login-clutter-x: 19%; --login-clutter-y: 19%; --login-clutter-size: 34px; --login-clutter-rotate: -10deg; --login-clutter-opacity: 0.9; --login-clutter-sway-duration: 4.6s; --login-clutter-sway-delay: -0.5s; }
.login-clutter-34 { --login-clutter-x: 20%; --login-clutter-y: 7%; --login-clutter-size: 30px; --login-clutter-rotate: 8deg; --login-clutter-opacity: 0.86; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.3s; --login-clutter-sway-delay: -1.7s; }
.login-clutter-35 { --login-clutter-x: 30%; --login-clutter-y: 6%; --login-clutter-size: 37px; --login-clutter-rotate: -5deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 4.9s; --login-clutter-sway-delay: -2.4s; }
.login-clutter-36 { --login-clutter-x: 29%; --login-clutter-y: 4%; --login-clutter-size: 31px; --login-clutter-rotate: 11deg; --login-clutter-opacity: 0.84; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.7s; --login-clutter-sway-delay: -1.1s; }
.login-clutter-37 { --login-clutter-x: 31%; --login-clutter-y: 4%; --login-clutter-size: 35px; --login-clutter-rotate: -8deg; --login-clutter-opacity: 0.88; --login-clutter-sway-duration: 4.4s; --login-clutter-sway-delay: -2.0s; }
.login-clutter-38 { --login-clutter-x: 34%; --login-clutter-y: 6%; --login-clutter-size: 29px; --login-clutter-rotate: 6deg; --login-clutter-opacity: 0.86; --login-clutter-flip: -1; --login-clutter-sway-duration: 5.1s; --login-clutter-sway-delay: -0.8s; }
.login-clutter-39 { --login-clutter-x: 37%; --login-clutter-y: 4%; --login-clutter-size: 36px; --login-clutter-rotate: -6deg; --login-clutter-opacity: 0.9; --login-clutter-sway-duration: 5.5s; --login-clutter-sway-delay: -2.8s; }
.login-clutter-40 { --login-clutter-x: 40%; --login-clutter-y: 0%; --login-clutter-size: 30px; --login-clutter-rotate: 9deg; --login-clutter-opacity: 0.84; --login-clutter-flip: -1; --login-clutter-sway-duration: 4.7s; --login-clutter-sway-delay: -1.4s; }

.title-cloud {
  position:
    absolute;

  left:
    -50vw;

  width:
    200vw;

  min-width:
    2928px;

  opacity:
    var(
      --title-cloud-opacity,
      1
    );

  overflow:
    hidden;

  animation:
    title-cloud-drift
    var(
      --title-cloud-duration,
      140s
    )
    ease-in-out
    infinite;

  animation-direction:
    alternate;

  will-change:
    transform;
}

.title-cloud-strip {
  width:
    100%;

  height:
    100%;

  background-image:
    var(--title-cloud-image);

  background-repeat:
    repeat-x;

  background-position:
    0 50%;

  background-size:
    auto 100%;
}

.title-cloud-1 {
  top:
    calc(
      var(--title-horizon-y) - 11vh
    );

  height:
    clamp(
      72px,
      9vw,
      150px
    );

  --title-cloud-image:
    url("assets/login/background/clouds-1.png");

  --title-cloud-duration:
    48s;

  --title-cloud-drift-distance:
    42px;

  --title-cloud-opacity:
    0.72;
}

.title-cloud-2 {
  top:
    calc(
      var(--title-horizon-y) - 22vh
    );

  height:
    clamp(
      110px,
      15vw,
      230px
    );

  --title-cloud-image:
    url("assets/login/background/clouds-2.png");

  --title-cloud-duration:
    38s;

  --title-cloud-drift-distance:
    64px;

  --title-cloud-opacity:
    0.68;
}

.title-cloud-3 {
  top:
    clamp(
      18px,
      7vh,
      88px
    );

  height:
    clamp(
      120px,
      18vw,
      270px
    );

  --title-cloud-image:
    url("assets/login/background/clouds-3.png");

  --title-cloud-duration:
    32s;

  --title-cloud-drift-distance:
    82px;

  --title-cloud-opacity:
    0.58;
}

.title-cloud-4 {
  top:
    calc(
      var(--title-horizon-y) - 35vh
    );

  height:
    clamp(
      78px,
      11vw,
      175px
    );

  --title-cloud-image:
    url("assets/login/background/clouds-4.png");

  --title-cloud-duration:
    44s;

  --title-cloud-drift-distance:
    54px;

  --title-cloud-opacity:
    0.62;
}


@keyframes login-clutter-sway {
  from {
    transform:
      rotate(
        calc(
          var(--login-clutter-rotate, 0deg) -
          var(--login-clutter-sway-strength, 0deg)
        )
      )
      scaleX(
        var(--login-clutter-flip, 1)
      );
  }

  to {
    transform:
      rotate(
        calc(
          var(--login-clutter-rotate, 0deg) +
          var(--login-clutter-sway-strength, 15deg)
        )
      )
      scaleX(
        var(--login-clutter-flip, 1)
      );
  }
}

@keyframes title-cloud-drift {
  from {
    transform:
      translate3d(
        calc(
          -1 * var(--title-cloud-drift-distance, 18px)
        ),
        0,
        0
      );
  }

  to {
    transform:
      translate3d(
        var(--title-cloud-drift-distance, 18px),
        0,
        0
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-cloud,
  .login-clutter-image {
    animation:
      none;
  }
}

.join-card {
  position:
    relative;

  z-index:
    8;
}

#authMessage {
min-height: 20px;
margin: 4px 0;
font-size: 14px;
text-align: center;
}

.auth-error {
color: #ff7b72;
}

.auth-success {
color: #3fb950;
}

.secondary-button {
background: #30363d;
}

.secondary-button:hover {
background: #484f58;
}

.guest-login-button {
  margin-top: 10px;
}

.google-auth-button {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin: 4px 0 10px;
}

.google-auth-button.hidden {
  display: none;
}


/* ========================================
   LOGIN TITLE CARD POLISH
   ======================================== */

#joinScreen {
  font-family:
    var(--luma-font-family);
}

#joinScreen .login-branding {
  margin-bottom:
    clamp(24px, 3.5vh, 46px);
}

#joinScreen .join-card {
  width:
    min(390px, calc(100vw - 40px));

  padding:
    clamp(24px, 4vh, 34px);

  background:
    rgba(255, 248, 237, 0.78);

  border:
    1px solid
    rgba(126, 87, 64, 0.28);

  border-radius:
    22px;

  color:
    var(--luma-text-primary);

  box-shadow:
    0 20px 54px
    rgba(88, 59, 43, 0.22),
    0 4px 14px
    rgba(126, 87, 64, 0.12),
    inset 0 1px 0
    rgba(255, 255, 255, 0.52);

  backdrop-filter:
    blur(8px);

  -webkit-backdrop-filter:
    blur(8px);
}

#joinScreen:not(.login-disclaimer-accepted) .join-card {
  opacity:
    0;

  pointer-events:
    none;

  transform:
    translateY(12px);
}

#joinScreen.login-disclaimer-accepted .join-card {
  animation:
    luma-login-disclaimer-login-enter
    220ms
    ease-out
    both;
}

.login-disclaimer {
  position:
    fixed;

  inset:
    0;

  z-index:
    30;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    clamp(20px, 5vh, 48px);

  background:
    rgba(255, 244, 226, 0.16);
}

.login-disclaimer.hidden {
  display:
    none;
}

.login-disclaimer-card {
  width:
    min(460px, calc(100vw - 40px));

  display:
    flex;

  flex-direction:
    column;

  gap:
    18px;

  padding:
    clamp(24px, 4vh, 34px);

  border:
    1px solid
    rgba(126, 87, 64, 0.28);

  border-radius:
    24px;

  max-height:
    min(760px, calc(100vh - 40px));

  overflow-y:
    auto;

  background:
    rgba(255, 248, 237, 0.86);

  color:
    var(--luma-text-primary);

  box-shadow:
    0 22px 60px
    rgba(88, 59, 43, 0.22),
    inset 0 1px 0
    rgba(255, 255, 255, 0.56);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);
}

.login-disclaimer:not(.hidden):not(.closing) .login-disclaimer-card {
  animation:
    luma-login-disclaimer-enter
    240ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

.login-disclaimer.closing {
  pointer-events:
    none;
}

.login-disclaimer.closing .login-disclaimer-card {
  animation:
    luma-login-disclaimer-exit
    180ms
    ease-in
    both;
}

.login-disclaimer-title {
  color:
    #7b4a5c;

  font-size:
    clamp(22px, 3vw, 28px);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.12;
}

.login-disclaimer-copy {
  display:
    grid;

  gap:
    12px;

  color:
    #6f5147;

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-semibold);

  line-height:
    1.45;
}

.login-disclaimer-copy p {
  margin:
    0;
}

.login-disclaimer-okay-button {
  align-self:
    stretch;

  min-height:
    48px;

  border:
    1px solid
    rgba(140, 74, 89, 0.24);

  border-radius:
    14px;

  background:
    #c97886;

  color:
    #fffaf5;

  font-family:
    var(--luma-font-family);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

  box-shadow:
    0 8px 18px
    rgba(123, 74, 92, 0.18);
}

.login-disclaimer-okay-button:hover {
  background:
    #d18491;
}

.login-disclaimer-okay-button:focus-visible {
  outline:
    3px solid
    rgba(201, 120, 134, 0.28);

  outline-offset:
    3px;
}

@keyframes luma-login-disclaimer-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes luma-login-disclaimer-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
}

@keyframes luma-login-disclaimer-login-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#joinScreen .join-card h1,
#joinScreen .join-card > p {
  display:
    none;
}

#joinScreen #joinForm {
  gap:
    12px;
}

#joinScreen #createAccountForm {
  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;
}

#joinScreen #joinForm label,
#joinScreen #createAccountForm label {
  color:
    #6f5147;

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);

  letter-spacing:
    0.01em;

  position:
    absolute;

  width:
    1px;

  height:
    1px;

  padding:
    0;

  margin:
    -1px;

  overflow:
    hidden;

  clip:
    rect(0, 0, 0, 0);

  white-space:
    nowrap;

  border:
    0;
}

#joinScreen input {
  min-height:
    48px;

  border:
    1px solid
    rgba(126, 87, 64, 0.24);

  border-radius:
    14px;

  background:
    rgba(255, 252, 246, 0.82);

  color:
    var(--luma-text-primary);

  font-family:
    var(--luma-font-family);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-semibold);

  box-shadow:
    inset 0 1px 2px
    rgba(126, 87, 64, 0.08);

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

#joinScreen input::placeholder {
  color:
    rgba(141, 104, 92, 0.58);
}

#joinScreen input:focus {
  border-color:
    rgba(201, 120, 134, 0.72);

  background:
    rgba(255, 253, 249, 0.94);

  box-shadow:
    0 0 0 3px
    rgba(201, 120, 134, 0.18),
    inset 0 1px 2px
    rgba(126, 87, 64, 0.08);
}

#joinScreen button {
  min-height:
    48px;

  border:
    1px solid
    transparent;

  border-radius:
    14px;

  font-family:
    var(--luma-font-family);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

  transition:
    transform 120ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

#joinScreen #loginButton,
#joinScreen #createAccountContinueButton {
  margin-top:
    8px;

  background:
    #c97886;

  border-color:
    rgba(140, 74, 89, 0.24);

  color:
    #fffaf5;

  box-shadow:
    0 8px 18px
    rgba(123, 74, 92, 0.18);
}

#joinScreen #loginButton:hover,
#joinScreen #createAccountContinueButton:hover {
  background:
    #d18491;

  box-shadow:
    0 10px 22px
    rgba(123, 74, 92, 0.22);
}

#joinScreen #loginButton:active,
#joinScreen #createAccountContinueButton:active {
  transform:
    translateY(1px)
    scale(0.99);

  background:
    #b96878;
}

#joinScreen #loginButton:focus-visible,
#joinScreen #registerButton:focus-visible {
  outline:
    3px solid
    rgba(201, 120, 134, 0.28);

  outline-offset:
    3px;
}

.login-auth-separator {
  display:
    grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items:
    center;

  gap:
    12px;

  margin:
    2px 0 -2px;

  color:
    rgba(111, 81, 71, 0.58);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-bold);

  letter-spacing:
    0.14em;
}

.login-auth-separator span {
  height:
    1px;

  background:
    linear-gradient(
      to right,
      rgba(126, 87, 64, 0),
      rgba(126, 87, 64, 0.24),
      rgba(126, 87, 64, 0)
    );
}

#joinScreen #registerButton.secondary-button,
#joinScreen #showLoginButton.secondary-button {
  min-height:
    auto;

  padding:
    6px 8px;

  background:
    transparent;

  border-color:
    transparent;

  color:
    #8f5362;

  box-shadow:
    none;

  text-decoration:
    none;
}

#joinScreen #registerButton.secondary-button:hover,
#joinScreen #showLoginButton.secondary-button:hover {
  background:
    rgba(255, 248, 237, 0.34);

  color:
    #b96878;

  text-decoration:
    underline;

  text-underline-offset:
    3px;
}

#joinScreen #registerButton.secondary-button:active,
#joinScreen #showLoginButton.secondary-button:active {
  transform:
    translateY(1px);

  color:
    #7b4a5c;
}

#joinScreen #authMessage,
#joinScreen #createAuthMessage {
  min-height:
    20px;

  margin:
    2px 0 0;

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-semibold);
}

#joinScreen #authMessage.auth-error,
#joinScreen #createAuthMessage.auth-error {
  color:
    #a95c5f;
}

#joinScreen #authMessage.auth-success,
#joinScreen #createAuthMessage.auth-success {
  color:
    #6f8e55;
}

.login-readiness-ticker {
  position:
    fixed;

  left:
    0;

  right:
    0;

  bottom:
    clamp(24px, 5vh, 46px);

  z-index:
    120;

  overflow:
    hidden;

  pointer-events:
    none;

  opacity:
    1;

  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.login-readiness-ticker.hidden {
  opacity:
    0;

  transform:
    translateY(18px);
}

.login-readiness-ticker-track {
  display:
    flex;

  width:
    max-content;

  gap:
    clamp(64px, 10vw, 140px);

  padding:
    10px 0;

  color:
    rgba(86, 58, 45, 0.72);

  font-size:
    clamp(14px, 1.4vw, 18px);

  font-weight:
    var(--luma-font-weight-bold);

  letter-spacing:
    0.08em;

  text-transform:
    uppercase;

  text-shadow:
    0 1px 8px
    rgba(255, 250, 244, 0.8);

  animation:
    luma-readiness-ticker-scroll
    16s
    linear
    infinite;
}

.login-readiness-ticker-track span {
  white-space:
    nowrap;
}

#joinScreen.login-server-warming #loginButton,
#joinScreen.login-server-warming #registerButton {
  opacity:
    0.58;

  cursor:
    wait;
}

@keyframes luma-readiness-ticker-scroll {
  from {
    transform:
      translateX(100vw);
  }

  to {
    transform:
      translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-readiness-ticker-track {
    animation:
      none;

    transform:
      translateX(0);
  }
}

.screen-transition-overlay {
  position:
    fixed;

  inset:
    0;

  z-index:
    5000;

  background:
    #fffaf4;

  opacity:
    0;

  pointer-events:
    none;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  transition:
    opacity 420ms ease;
}

.screen-transition-overlay.visible {
  opacity:
    1;
}

.screen-transition-overlay.hidden {
  display:
    none;
}

.screen-transition-lockup {
  position:
    relative;

  width:
    min(560px, calc(100vw - 48px));

  height:
    clamp(72px, 10vw, 96px);

  overflow:
    visible;
}

.screen-transition-star {
  position:
    absolute;

  left:
    50%;

  top:
    50%;

  width:
    clamp(30px, 18vw, 60px);

  height:
    auto;

  opacity:
    0;

  transform:
    translate(-50%, calc(-50% - 120px))
    scale(0.96);

  user-select:
    none;

  transition:
    opacity 420ms ease;
}

.screen-transition-overlay.visible .screen-transition-star {
  opacity:
    1;

  animation:
    screen-transition-star-loading
    1380ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

.screen-transition-overlay.loading-sequence.visible .screen-transition-star {
  opacity:
    1;

  animation:
    screen-transition-star-drop
    780ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;

  filter:
    saturate(
      var(--screen-transition-progress, 0)
    );

  transition:
    opacity 420ms ease,
    filter 180ms linear;
}

.screen-transition-overlay.loading-sequence.loading-sequence-ready .screen-transition-star {
  animation:
    screen-transition-star-slide-left
    620ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;

  filter:
    saturate(1);
}

.screen-transition-overlay.loading-sequence.loading-sequence-exiting .screen-transition-star {
  animation-play-state: paused;
  opacity:
    0;

  transform:
    translate(
      calc(
        -50% -
        clamp(80px, 7vw, 145px)
      ),
      -50%
    )
    scale(1);
}

.screen-transition-loading-text {
  position:
    absolute;

  left:
    50%;

  top:
    calc(50% + clamp(34px, 7vw, 58px));

  color:
    rgba(111, 81, 71, 0.78);

  font-family:
    var(--luma-font-family);

  font-size:
    clamp(12px, 1.6vw, 15px);

  font-weight:
    var(--luma-font-weight-bold);

  letter-spacing:
    0.03em;

  opacity:
    0;

  white-space:
    nowrap;

  transform:
    translate(-50%, -50%);

  transition:
    opacity 260ms ease;
}

.screen-transition-overlay.loading-sequence.visible:not(.loading-sequence-ready)
.screen-transition-loading-text {
  opacity:
    1;
}

.screen-transition-overlay.loading-sequence.loading-sequence-ready
.screen-transition-loading-text,
.screen-transition-overlay.loading-sequence.loading-sequence-exiting
.screen-transition-loading-text {
  opacity:
    0;
}

.screen-transition-overlay.loading-sequence.scene-preparing .screen-transition-loading-text {
  opacity: 1;
}

.screen-transition-tagline {
  position:
    absolute;

  left:
    50%;

  top:
    50%;

  color:
    #6f5147;

  font-family:
    var(--luma-font-family);

  font-size:
    clamp(18px, 2.2vw, 30px);

  font-weight:
    var(--luma-font-weight-bold);

  letter-spacing:
    0.02em;

  opacity:
    0;

  white-space:
    nowrap;

  transform:
    translate(
      calc(
        -50% +
        clamp(30px, 18vw, 60px) / 2
      ),
      -50%
    );
}

.screen-transition-overlay.visible .screen-transition-tagline {
  animation:
    screen-transition-tagline-slide
    520ms
    cubic-bezier(0.22, 1, 0.36, 1)
    860ms
    both;
}

.screen-transition-overlay.loading-sequence .screen-transition-tagline {
  animation:
    none;
}

.screen-transition-overlay.loading-sequence.loading-sequence-ready .screen-transition-tagline {
  animation:
    screen-transition-tagline-slide
    520ms
    cubic-bezier(0.22, 1, 0.36, 1)
    240ms
    both;
}

.screen-transition-overlay.settled .screen-transition-star {
  opacity:
    1;

  animation:
    none;

  transform:
    translate(
      calc(
        -50% -
        clamp(80px, 7vw, 145px)
      ),
      -50%
    )
    scale(1);
}

.screen-transition-overlay.settled .screen-transition-tagline {
  opacity:
    1;

  animation:
    none;

  transform:
    translate(
      calc(
        -50% +
        clamp(30px, 18vw, 60px) +
        clamp(10px, 1.4vw, 18px)
      ),
      -50%
    );
}

@keyframes screen-transition-star-drop {
  0% {
    transform:
      translate(-50%, calc(-50% - 120px))
      scale(0.96);
  }

  58% {
    transform:
      translate(-50%, calc(-50% + 8px))
      scale(1.04);
  }

  74% {
    transform:
      translate(-50%, calc(-50% - 4px))
      scale(0.99);
  }

  100% {
    transform:
      translate(-50%, -50%)
      scale(1);
  }
}
@keyframes screen-transition-star-slide-left {
  0% {
    transform:
      translate(-50%, -50%)
      scale(1);
  }

  100% {
    transform:
      translate(
        calc(
          -50% -
          clamp(80px, 7vw, 145px)
        ),
        -50%
      )
      scale(1);
  }
}
@keyframes screen-transition-star-loading {
  0% {
    transform:
      translate(-50%, calc(-50% - 120px))
      scale(0.96);
  }

  32% {
    transform:
      translate(-50%, calc(-50% + 8px))
      scale(1.035);
  }

  42% {
    transform:
      translate(-50%, calc(-50% - 3px))
      scale(0.995);
  }

  53% {
    transform:
      translate(-50%, calc(-50% + 1px))
      scale(1.005);
  }

  62% {
    transform:
      translate(-50%, -50%)
      scale(1);
  }

  100% {
    transform:
      translate(
        calc(
          -50% -
          clamp(80px, 7vw, 145px)
        ),
        -50%
      )
      scale(1);
  }
}

@keyframes screen-transition-tagline-slide {
  0% {
    opacity:
      0;

    transform:
      translate(
        calc(
          -50% +
          clamp(30px, 18vw, 60px) / 2
        ),
        -50%
      );
  }

  100% {
    opacity:
      1;

    transform:
      translate(
        calc(
          -50% +
          clamp(30px, 18vw, 60px) +
          clamp(10px, 1.4vw, 18px)
        ),
        -50%
      );
  }
}


@media (prefers-reduced-motion: reduce) {
  .screen-transition-overlay.visible .screen-transition-star {
    animation:
      none;

    transform:
      translate(
        calc(
          -50% -
          clamp(80px, 7vw, 145px)
        ),
        -50%
      )
      scale(1);
  }

  .screen-transition-overlay.visible .screen-transition-tagline {
    animation:
      none;

    opacity:
      1;

    transform:
      translate(
        calc(
          -50% +
          clamp(30px, 18vw, 60px) +
          clamp(10px, 1.4vw, 18px)
        ),
        -50%
      );
  }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout-button {
  position: relative;

  z-index: 1;

  padding: 7px 12px;

  font-size: 12px;
  font-weight: 600;

  color: #5f493f;

  background:
    rgba(255, 250, 242, 0.94);

  border:
    1px solid rgba(111, 82, 67, 0.14);

  border-radius: 999px;

  box-shadow:
    0 4px 14px
    rgba(73, 52, 42, 0.12);

  backdrop-filter: blur(8px);

  cursor: pointer;
}

.logout-button:hover {
  background: #484f58;
}

/* ========================================
   CROWNS
   ======================================== */

   .crown-display {
    position:
      relative;
  
    z-index:
      1;
  
    display:
      flex;
  
    align-items:
      center;
  
    padding:
      9px 14px 9px 42px;
  
    background:
      rgba(255, 250, 242, 0.94);
  
    border:
      1px solid rgba(111, 82, 67, 0.14);
  
    border-radius:
      999px;
  
    box-shadow:
      0 4px 14px rgba(73, 52, 42, 0.12);
  
    color:
      #5f493f;
  
    font-size:
      14px;
  
    font-weight:
      600;
  
    backdrop-filter:
      blur(8px);
  
    overflow:
      visible;
  }
  
  
  .crown-icon {
    position:
      absolute;
  
    left:
      -18px;
  
    top:
      50%;
  
    width:
      64px;
  
    height:
      64px;
  
    object-fit:
      contain;
  
    transform:
      translateY(-50%);
  
    pointer-events:
      none;
  }
  
  
  #crownAmount {
    color:
      #5f493f;
  }


/* ========================================
   ZOOM / GARDEN TOOL STACK
   ======================================== */

   .zoom-tool-stack {
    position: relative;
  
    z-index: 1;
  
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  
  .zoom-controls {
    display: flex;
    align-items: center;
    gap: 4px;
  
    padding: 5px;
  
    background:
      rgba(255, 250, 242, 0.94);
  
    border:
      1px solid rgba(111, 82, 67, 0.14);
  
    border-radius: 999px;
  
    box-shadow:
      0 4px 14px
      rgba(73, 52, 42, 0.12);
  
    backdrop-filter: blur(8px);
  }

.zoom-button {
  width: 30px;
  height: 30px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: transparent;

  color: #6f5a50;

  font-size: 18px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
}

.zoom-button:hover {
  background:
    rgba(240, 222, 214, 0.7);
}

.zoom-button.active {
  background: #c98f98;
  color: #fffaf6;

  box-shadow:
    0 0 0 2px
    rgba(255, 255, 255, 0.7);
}


.zoom-button.active:hover {
  background: #b97f89;
}

.settings-gear-button {
  position: relative;

  z-index: 1;

  width: 52px;
  height: 52px;

  min-width: 52px;
  min-height: 52px;

  padding: 7px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(111, 82, 67, 0.14);

  border-radius: 999px;

  background:
    rgba(255, 250, 242, 0.94);

  box-shadow:
    0 4px 14px
    rgba(73, 52, 42, 0.12);

  backdrop-filter: blur(8px);

  cursor: pointer;

  transition:
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.settings-gear-button:hover,
.settings-gear-button:focus-visible {
  background:
    rgba(240, 222, 214, 0.92);

  transform:
    translateY(-1px);
}

.settings-gear-button.active,
.settings-gear-button[aria-pressed="true"] {
  background: #c98f98;

  box-shadow:
    0 0 0 2px
    rgba(255, 255, 255, 0.7),
    0 4px 14px
    rgba(73, 52, 42, 0.12);
}

.settings-gear-button.active:hover,
.settings-gear-button[aria-pressed="true"]:hover {
  background: #b97f89;
}

.settings-gear-icon {
  width: 36px;
  height: 36px;

  display: block;

  object-fit: contain;

  pointer-events: none;
}


/* ========================================
SETTINGS WINDOW
======================================== */

.settings-window {
  position: fixed;

  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: var(--luma-space-xl);

  z-index: 1100;
}

.settings-window.hidden {
  display: none;
}

.settings-window:not(.hidden):not(.closing) {
  animation:
    luma-items-backdrop-enter
    200ms
    ease-out
    both;
}

.settings-window:not(.hidden):not(.closing)
.settings-card {
  animation:
    luma-items-window-enter
    220ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;
}

.settings-card {
  width: min(420px, calc(100vw - 32px));

  padding: 22px;

  color: #5f493f;
}

.settings-header {
  margin-bottom: 18px;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 14px;

  padding: 16px;

  border: 1px solid rgba(111, 82, 67, 0.12);
  border-radius: 18px;

  background: rgba(255, 250, 242, 0.72);
}

.settings-control-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.settings-control-title {
  font-size: 14px;
  font-weight: 900;
  color: #5f493f;
}

.settings-section-heading {
  color: #7d5960;

  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-audio-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-audio-control + .settings-audio-control {
  padding-top: 14px;

  border-top: 1px solid rgba(111, 82, 67, 0.1);
}

.settings-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #8f6f66;

  font-size: 12px;
  font-weight: 900;
}

.settings-toggle-row input {
  width: 16px;
  height: 16px;

  accent-color: #c98f98;
}

.settings-control-description {
  margin-top: 4px;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #9b7f75;
}

.settings-control-value {
  flex: 0 0 auto;

  padding: 5px 8px;

  border-radius: 999px;

  background: #f2dfd8;

  color: #7d5960;

  font-size: 12px;
  font-weight: 900;
}

.settings-slider {
  width: 100%;

  accent-color: #c98f98;
}

.settings-slider-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #a78b82;

  font-size: 11px;
  font-weight: 800;
}

/* ========================================
PLACEMENT CONTROLS
======================================== */

.placement-controls {

  position: absolute;

  left: 50%;
  bottom: 112px;

  transform:
    translateX(-50%);

  display: flex;
  align-items: center;

  gap: 8px;

  padding:
    8px 10px;

  border:
    1px solid
    rgba(205, 181, 193, 0.55);

  border-radius:
    12px;

  background:
    rgba(38, 30, 34, 0.92);

  box-shadow:
    0 8px 24px
    rgba(0, 0, 0, 0.22);

  z-index: 20;

  pointer-events: none;

}


.placement-controls.hidden {

  display: none;

}


.placement-control {

  padding:
    5px 9px;

  border-radius:
    8px;

  background:
    rgba(255, 250, 252, 0.08);

  color:
    #f2e3e9;

  font-size:
    12px;

  font-weight:
    700;

  white-space: nowrap;

}

.item-action-bar {
  position: absolute;

  left: 50%;
  bottom: 112px;

  transform: translateX(-50%);

  display: flex;
  gap: 8px;

  padding: 8px;

  background: rgba(15, 18, 22, 0.92);

  border: 1px solid rgba(255, 170, 80, 0.5);
  border-radius: 10px;

  z-index: 20;
}

.item-action-bar.hidden {
  display: none;
}

.item-action-bar button {
  padding: 7px 12px;

  border: 0;
  border-radius: 6px;

  cursor: pointer;
}

.item-action-bar button:hover {
  filter: brightness(1.15);
}

/* ========================================
BUILDER MARKER ACTIONS
======================================== */

.marker-action-bar {
  position: absolute;

  transform:
    translate(
      -50%,
      -100%
    );

  z-index: 30;

  pointer-events: auto;
}

.wardrobe-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}

.item-context-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}

/* ========================================
WARDROBE
======================================== */

.wardrobe-button {

  border:
    1px solid #eadde3;

  background:
    #fffafc;

  color:
    #6f5361;

  border-radius:
    10px;

  padding:
    9px 13px;

  font-weight:
    700;

  cursor:
    pointer;

  transition:
    background 0.15s ease,
    transform 0.15s ease;

}


.wardrobe-button:hover {

  background:
    #f8eef2;

  transform:
    translateY(-1px);

}


/* ========================================
WARDROBE WINDOW
======================================== */

.wardrobe-window {

  position:
    fixed;

  inset:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  background:
    rgba(65, 48, 57, 0.24);

  backdrop-filter:
    blur(3px);

  z-index:
    1000;

}


.wardrobe-window.hidden {

  display:
    none;

}


.wardrobe-card {

  width:
    min(560px, calc(100vw - 40px));

  max-height:
    min(650px, calc(100vh - 60px));

  display:
    flex;

  flex-direction:
    column;

  overflow:
    hidden;

  background:
    #fffafc;

  border:
    1px solid #eadde3;

  border-radius:
    20px;

  box-shadow:
    0 18px 50px rgba(76, 52, 65, 0.20);

}


/* ========================================
WARDROBE HEADER
======================================== */

.wardrobe-header {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    20px;

  padding:
    20px 22px 16px;

  border-bottom:
    1px solid #eee3e8;

}


.wardrobe-title {

  color:
    #5d4350;

  font-size:
    20px;

  font-weight:
    800;

}


.wardrobe-subtitle {

  margin-top:
    3px;

  color:
    #a08492;

  font-size:
    13px;

}


.wardrobe-close-button {

  width:
    34px;

  height:
    34px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex-shrink:
    0;

  padding:
    0;

  border:
    none;

  border-radius:
    50%;

  background:
    #f4e9ee;

  color:
    #765966;

  font-size:
    22px;

  line-height:
    1;

  cursor:
    pointer;

}


.wardrobe-close-button:hover {

  background:
    #eadce3;

}


/* ========================================
WARDROBE CATEGORY TABS
======================================== */

.wardrobe-tabs {
  position:
    sticky;

  top:
    0;

  z-index:
    2;

  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    var(--luma-space-sm);

  padding:
    var(--luma-space-md)
    var(--luma-space-xl);

  background:
    var(--luma-surface-ivory);

  border-bottom:
    1px solid
    var(--luma-border-soft);
}


.wardrobe-tab {

  border:
    1px solid #e8dbe1;

  background:
    #ffffff;

  color:
    #826b76;

  border-radius:
    999px;

  padding:
    8px 16px;

  font-size:
    13px;

  font-weight:
    700;

  cursor:
    pointer;

}


.wardrobe-tab:hover {

  background:
    #faf2f5;

}


.wardrobe-tab.active {

  background:
    #745363;

  border-color:
    #745363;

  color:
    #ffffff;

}


/* ========================================
WARDROBE GRID
======================================== */

.wardrobe-grid {

  display:
    grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(120px, 1fr)
    );

  gap:
    12px;

  min-height:
    220px;

  padding:
    20px 22px 24px;

  overflow-y:
    auto;

}


.wardrobe-empty {

  grid-column:
    1 / -1;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  min-height:
    180px;

  color:
    #a18c96;

  font-size:
    14px;

  text-align:
    center;

}

/* ========================================
WARDROBE ITEMS
======================================== */

.wardrobe-item {

  position:
    relative;

  aspect-ratio:
    1 / 1;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;


  gap:
    8px;

  padding:
    14px 10px;

  border:
    1px solid #eadde3;

  border-radius:
    16px;

  background:
    #ffffff;

  color:
    #6f5361;

  cursor:
    pointer;

  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;

}


.wardrobe-item:hover {

  transform:
    translateY(-2px);

  border-color:
    #cdb5c1;

  box-shadow:
    0 8px 20px
    rgba(88, 60, 74, 0.10);

}


.wardrobe-item.equipped {

  border:
    2px solid #745363;

  background:
    #fbf4f7;

}


.wardrobe-item-checkmark {

  position:
    absolute;

  top:
    -11px;

  right:
    -11px;

  width:
    34px;

  height:
    34px;

  object-fit:
    contain;

  pointer-events:
    none;

  filter:
    drop-shadow(0 3px 5px rgba(75, 51, 40, 0.22));

}


.wardrobe-item-icon {

  font-size:
    34px;

}


.wardrobe-item-name {
  max-width:
    100%;

  overflow:
    hidden;

  color:
    #604852;

  font-size:
    13px;

  font-weight:
    700;

  text-align:
    center;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.wardrobe-item-status {
  min-height:
    14px;

  color:
    #a08492;

  font-size:
    11px;

  line-height:
    14px;

  text-align:
    center;
}


.wardrobe-item.equipped
.wardrobe-item-status {
  color:
    var(--luma-accent-deep);

  font-weight:
    var(--luma-font-weight-bold);
}

/* ========================================
PLAYER PROFILE WINDOW
======================================== */

.profile-window {

  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    var(--luma-space-xl);

  z-index:
    1175;

}


.profile-window.hidden {

  display:
    none;

}


/* ========================================
PROFILE CARD
======================================== */

.profile-card {

  width:
    min(
      420px,
      calc(100vw - 40px)
    );

  max-height:
    min(
      650px,
      calc(100vh - 60px)
    );

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background:
    var(--luma-surface-cream);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-large);

  box-shadow:
    var(--luma-shadow-soft);

}


/* ========================================
PROFILE HEADER
======================================== */

.profile-header {

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap:
    var(--luma-space-lg);

  padding:
    var(--luma-space-lg)
    var(--luma-space-xl);

  border-bottom:
    1px solid
    var(--luma-border-soft);

}


.profile-title {

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-lg);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.2;

}


.profile-subtitle {

  margin-top:
    var(--luma-space-xs);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  line-height:
    1.35;

}


.profile-close-button {

  font-size:
    22px;

}


.profile-close-button:hover {

  background:
    #eadce3;

}


/* ========================================
PROFILE AVATAR
======================================== */

.profile-avatar-area {

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    var(--luma-space-xl);

  background:
    var(--luma-surface-ivory);

  border-bottom:
    1px solid
    var(--luma-border-soft);

}


#profileAvatarCanvas {

  width:
    220px;

  height:
    220px;

  display:
    block;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-large);

  background:
    var(--luma-surface-soft);

}


/* ========================================
PROFILE INFORMATION
======================================== */

.profile-info {

  padding:
    var(--luma-space-lg)
    var(--luma-space-xl)
    var(--luma-space-xl);

}


.profile-username {

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-xl);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.2;

  text-align:
    center;

}


.profile-joined-row {

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap:
    var(--luma-space-lg);

  margin-top:
    var(--luma-space-lg);

  padding:
    var(--luma-space-md)
    var(--luma-space-lg);

  background:
    var(--luma-surface-ivory);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

}


.profile-info-label {

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);

}


.profile-joined-date {

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);

}

/* ========================================
MY ITEMS WINDOW
======================================== */

.items-window {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    rgba(65, 48, 57, 0.24);

  backdrop-filter:
    blur(3px);

  z-index: 1000;
}


.items-window.hidden {
  display: none;
}

/* ========================================
WORLD INTERACTION CONTEXT MENU
======================================== */

.world-context-menu {

  position:
    fixed;

  width:
    240px;

  max-width:
    calc(
      100vw -
      24px
    );

  padding:
    var(--luma-space-lg);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  background:
    var(--luma-surface-cream);

  color:
    var(--luma-text-primary);

  box-shadow:
    var(--luma-shadow-soft);

  transform-origin:
    top left;

  z-index:
    1170;

}


.world-context-menu.hidden {

  display:
    none;

}


.world-context-close {

  position:
    absolute;

  top:
    var(--luma-space-sm);

  right:
    var(--luma-space-sm);

}


.world-context-heading {

  padding-right:
    32px;

  margin-bottom:
    var(--luma-space-md);

}


.world-context-title {

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

}


.world-context-subtitle {

  margin-top:
    2px;

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-semibold);

}


.world-context-actions {

  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-sm);

}


.world-context-target {

  width:
    100%;

  min-height:
    46px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    flex-start;

  justify-content:
    center;

  padding:
    var(--luma-space-sm)
    var(--luma-space-md);

  text-align:
    left;

}


.world-context-target-name {

  color:
    inherit;

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

}


.world-context-target-meta {

  margin-top:
    1px;

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-semibold);

}


.world-context-menu:not(.hidden) {

  animation:
    luma-world-context-enter
    170ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;

}


@keyframes luma-world-context-enter {

  from {

    opacity:
      0;

    transform:
      translateY(4px)
      scale(0.97);

  }


  to {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }

}

/* ========================================
PLAYER CONTEXT MENU
======================================== */

.player-context-menu {

  position:
    fixed;

  width:
    236px;

  max-width:
    calc(
      100vw -
      24px
    );

  padding:
    var(--luma-space-lg);

  overflow:
    hidden;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  background:
    var(--luma-surface-cream);

  color:
    var(--luma-text-primary);

  box-shadow:
    var(--luma-shadow-soft);

  transform-origin:
    top left;

  z-index:
    1150;

}


.player-context-menu.hidden {

  display:
    none;

}


/* ========================================
PLAYER CONTEXT MOTION
======================================== */

.player-context-menu:not(.hidden):not(.closing) {

  animation:
    luma-player-context-enter
    180ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;

}


.player-context-menu.closing {

  pointer-events:
    none;

  animation:
    luma-player-context-exit
    150ms
    ease-in
    both;

}


@keyframes luma-player-context-enter {

  from {

    opacity:
      0;

    transform:
      translateY(5px)
      scale(0.96);

  }


  70% {

    opacity:
      1;

    transform:
      translateY(-1px)
      scale(1.01);

  }


  to {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }

}


@keyframes luma-player-context-exit {

  from {

    opacity:
      1;

    transform:
      scale(1);

  }


  to {

    opacity:
      0;

    transform:
      translateY(4px)
      scale(0.97);

  }

}


/* ========================================
PLAYER CONTEXT CLOSE
======================================== */

.player-context-close {

  position:
    absolute;

  top:
    var(--luma-space-sm);

  right:
    var(--luma-space-sm);

  width:
    28px;

  height:
    28px;

  font-size:
    17px;

}


/* ========================================
PLAYER CONTEXT IDENTITY
======================================== */

.player-context-heading {

  display:
    flex;

  align-items:
    center;

  gap:
    var(--luma-space-md);

  padding-right:
    30px;

}


.player-context-avatar {

  width:
    42px;

  height:
    42px;

  flex:
    0 0 42px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    50%;

  background:
    var(--luma-surface-soft);

  color:
    var(--luma-accent-deep);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

}


.player-context-identity {

  min-width:
    0;

}


.player-context-name {

  overflow:
    hidden;

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.25;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}


.player-context-relationship {

  margin-top:
    2px;

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-semibold);

  line-height:
    1.3;

}


/* ========================================
PLAYER CONTEXT RELATIONSHIP STATES
======================================== */

.player-context-menu.relationship-friends
.player-context-relationship {

  color:
    #5f8d6b;

}


.player-context-menu.relationship-pending
.player-context-relationship {

  color:
    var(--luma-accent-coral);

}


.player-context-menu.relationship-none
.player-context-relationship {

  color:
    var(--luma-text-muted);

}


/* ========================================
PLAYER CONTEXT ACTIONS
======================================== */

.player-context-actions {

  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-sm);

  margin-top:
    var(--luma-space-lg);

  padding-top:
    var(--luma-space-md);

  border-top:
    1px solid
    var(--luma-border-soft);

}


.player-context-action {

  width:
    100%;

  justify-content:
    center;

  text-align:
    center;

}


.player-context-friend-actionable {

  border-color:
    var(--luma-accent-blush);

  color:
    var(--luma-accent-deep);

}


.player-context-friend-review {

  border-color:
    var(--luma-accent-coral);

  color:
    var(--luma-accent-coral);

}


/* ========================================
SOCIAL IDENTITY → PROFILE
======================================== */

.social-row-identity-interactive {

  margin:
    -4px;

  padding:
    4px;

  border-radius:
    var(--luma-radius-small);

  cursor:
    pointer;

  transition:
    background 120ms ease,
    transform 120ms ease;

}


.social-row-identity-interactive:hover {

  background:
    var(--luma-surface-soft);

}


.social-row-identity-interactive:active {

  transform:
    scale(0.985);

}


.social-row-identity-interactive:focus-visible {

  outline:
    2px solid
    var(--luma-accent-blush);

  outline-offset:
    2px;

}


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

  .player-context-menu {

    animation:
      none !important;

  }

}

/* ========================================
SOCIAL WINDOW
======================================== */

.social-window {

  position:
    fixed;

  inset:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    var(--luma-space-xl);

  z-index:
    1100;

}


.social-window.hidden {

  display:
    none;

}


/* ========================================
SOCIAL CARD
======================================== */

.social-card {

  width:
    min(
      500px,
      calc(100vw - 48px)
    );

  max-height:
    min(
      600px,
      calc(100vh - 72px)
    );

  display:
    flex;

  flex-direction:
    column;

  overflow:
    hidden;

  background:
    var(--luma-surface-cream);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-large);

  color:
    var(--luma-text-primary);

  box-shadow:
    var(--luma-shadow-soft);

}


/* ========================================
SOCIAL HEADER
======================================== */

.social-header {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    var(--luma-space-lg);

  flex:
    0 0 auto;

  padding:
    var(--luma-space-lg)
    var(--luma-space-xl);

  border-bottom:
    1px solid
    var(--luma-border-soft);

}


.social-title {

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-lg);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.2;

}


.social-subtitle {

  margin-top:
    var(--luma-space-xs);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  line-height:
    1.35;

}


.social-close-button {

  flex:
    0 0 auto;

}


/* ========================================
SOCIAL TABS
======================================== */

.social-tabs {

  display:
    flex;

  align-items:
    center;

  gap:
    var(--luma-space-sm);

  flex:
    0 0 auto;

  margin:
    0;

  padding:
    var(--luma-space-md)
    var(--luma-space-xl);

  overflow-x:
    auto;

  background:
    var(--luma-surface-ivory);

  border-bottom:
    1px solid
    var(--luma-border-soft);

  scrollbar-width:
    none;

}


.social-tabs::-webkit-scrollbar {

  display:
    none;

}


.social-tab {

  flex:
    1 0 0;

  min-width:
    90px;

  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;

}


.social-tab:hover {

  transform:
    translateY(-1px);

}


.social-tab:active {

  transform:
    translateY(0)
    scale(0.985);

}


/* ========================================
SOCIAL TAB PANELS
======================================== */

.social-tab-panel {

  min-height:
    220px;

  max-height:
    min(
      390px,
      calc(100vh - 230px)
    );

  overflow-y:
    auto;

  padding:
    var(--luma-space-lg)
    var(--luma-space-xl)
    var(--luma-space-xl);

  scrollbar-width:
    thin;

  scrollbar-color:
    var(--luma-accent-blush)
    transparent;

}


.social-tab-panel.hidden {

  display:
    none;

}


.social-tab-panel:not(.hidden) {

  animation:
    luma-social-panel-enter
    140ms
    ease-out;

}


@keyframes luma-social-panel-enter {

  from {

    opacity:
      0;

    transform:
      translateY(3px);

  }

  to {

    opacity:
      1;

    transform:
      translateY(0);

  }

}


.social-tab-panel::-webkit-scrollbar {

  width:
    8px;

}


.social-tab-panel::-webkit-scrollbar-track {

  background:
    transparent;

}


.social-tab-panel::-webkit-scrollbar-thumb {

  background:
    var(--luma-accent-blush);

  border-radius:
    var(--luma-radius-pill);

}


/* ========================================
SOCIAL LIST
======================================== */

.social-list {

  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-sm);

  min-height:
    24px;

}


/* ========================================
SOCIAL PLAYER ROW
======================================== */

.social-row {

  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items:
    center;

  gap:
    var(--luma-space-md);

  min-height:
    64px;

  padding:
    var(--luma-space-md);

  background:
    var(--luma-surface-ivory);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;

}


.social-row:hover {

  transform:
    translateY(-1px);

  background:
    var(--luma-surface-cream);

  border-color:
    rgba(
      111,
      82,
      67,
      0.24
    );

  box-shadow:
    0 4px 14px
    rgba(
      67,
      48,
      57,
      0.07
    );

}


/* ========================================
SOCIAL PLAYER IDENTITY
======================================== */

.social-row-identity {

  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    var(--luma-space-md);

}


.social-row-avatar {

  width:
    38px;

  height:
    38px;

  flex:
    0 0 38px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  background:
    var(--luma-surface-soft);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    50%;

  color:
    var(--luma-accent-deep);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

}


.social-row-text {

  min-width:
    0;

}


.social-row-name {

  overflow:
    hidden;

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.25;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}


.social-row-meta {

  margin-top:
    2px;

  overflow:
    hidden;

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-semibold);

  line-height:
    1.3;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}


/* ========================================
SOCIAL ACTIONS
======================================== */

.social-row-actions {

  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  gap:
    var(--luma-space-xs);

}


.social-action-button {

  flex:
    0 0 auto;

  min-height:
    32px;

  padding:
    6px 10px;

  font-size:
    var(--luma-font-size-sm);

  white-space:
    nowrap;

}


.social-action-secondary {

  background:
    var(--luma-surface-cream);

  color:
    var(--luma-text-secondary);

}


.social-action-secondary:hover {

  color:
    var(--luma-text-primary);

}


/* ========================================
SOCIAL EMPTY STATE
======================================== */

.social-empty-state {

  min-height:
    180px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  padding:
    var(--luma-space-2xl)
    var(--luma-space-lg);

  text-align:
    center;

}


.social-empty-icon {

  margin-bottom:
    var(--luma-space-sm);

  color:
    var(--luma-text-muted);

  font-size:
    28px;

  line-height:
    1;

}


.social-empty-title {

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

}


.social-empty-text {

  max-width:
    260px;

  margin-top:
    var(--luma-space-xs);

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-sm);

  line-height:
    1.45;

}


/* ========================================
SOCIAL RESPONSIVE
======================================== */

@media (
  max-width:
    520px
) {

  .social-window {

    padding:
      var(--luma-space-md);

  }


  .social-card {

    width:
      100%;

    max-height:
      calc(
        100vh -
        24px
      );

  }


  .social-header {

    padding:
      var(--luma-space-lg);

  }


  .social-tabs {

    padding:
      var(--luma-space-md)
      var(--luma-space-lg);

  }


  .social-tab {

    flex:
      0 0 auto;

  }


  .social-tab-panel {

    max-height:
      calc(
        100vh -
        190px
      );

    padding:
      var(--luma-space-lg);

  }


  .social-row {

    grid-template-columns:
      minmax(0, 1fr);

  }


  .social-row-actions {

    width:
      100%;

  }


  .social-action-button {

    flex:
      1;

  }

}


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

  .social-tab-panel,
  .social-row {

    animation:
      none !important;

    transition:
      none !important;

  }

}

/* ========================================
FLOATING ITEM CONTEXT CARD
======================================== */

.items-card {
  width:
    min(
      780px,
      calc(100vw - 48px)
    );

    height:
    min(
      720px,
      calc(100vh - 72px)
    );

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background:
    var(--luma-surface-cream);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-large);

  box-shadow:
    var(--luma-shadow-soft);
}

/* ========================================
MY ITEMS HEADER
======================================== */

.items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap:
    var(--luma-space-lg);

  padding:
    var(--luma-space-lg)
    var(--luma-space-xl);

  border-bottom:
    1px solid
    var(--luma-border-soft);
}

.items-title {
  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-lg);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.2;
}


.items-subtitle {
  margin-top:
    var(--luma-space-xs);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  line-height:
    1.35;
}


.items-close-button {
  width: 52px;
  height: 52px;

  min-width: 52px;
  min-height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  padding: 0;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    50%;

  background:
    var(--luma-surface-ivory);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-lg);

  line-height:
    1;

  cursor:
    pointer;
}


.items-close-button:hover {
  background:
    #eadce3;
}


/* ========================================
MY ITEMS MAIN TABS
======================================== */

.items-main-tabs {
  display: flex;

  gap:
    var(--luma-space-sm);

  padding:
    var(--luma-space-md)
    var(--luma-space-xl);

  background:
    var(--luma-surface-ivory);

  border-bottom:
    1px solid
    var(--luma-border-soft);
}


.items-main-tab {
  min-width:
    96px;
}

.items-main-tab:hover {
  background:
    #faf2f5;
}


.items-main-tab.active {
  border-color:
    #745363;

  background:
    #745363;

  color:
    #ffffff;
}


/* ========================================
MY ITEMS VIEWS
======================================== */

.items-view {
  min-height: 0;

  flex: 1;

  overflow-y: auto;
}


.items-view.hidden {
  display: none;
}

.items-view:not(.hidden) {
  animation:
    luma-items-view-enter
    140ms
    ease-out;
}


@keyframes luma-items-view-enter {

  from {
    opacity: 0;
    transform:
      translateY(3px);
  }

  to {
    opacity: 1;
    transform:
      translateY(0);
  }

}

/* ========================================
MY ITEMS TOOLBAR
======================================== */

.items-toolbar {
  display:
    flex;

  align-items:
    center;

  gap:
    var(--luma-space-md);

  padding:
    var(--luma-space-md)
    var(--luma-space-xl);

  background:
    var(--luma-surface-cream);

  border-bottom:
    1px solid
    var(--luma-border-soft);
}


.items-filter-wrap {
  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  flex:
    0 0 auto;

  min-width:
    0;
}


.items-filter-wrap.hidden {
  display:
    none;
}


.items-filter-label {
  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    700;
}


.items-filter-dropdown {
  position:
    relative;

  width:
    132px;

  min-width:
    132px;
}


.items-filter-select {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  width:
    100%;

  height:
    42px;

  padding:
    9px 12px
    9px 16px;

  border:
    1px solid
    rgba(64, 36, 24, 0.42);

  border-radius:
    15px;

  outline:
    none;

  background:
    linear-gradient(
      180deg,
      #6b4638 0%,
      #503226 100%
    );

  color:
    var(--luma-surface-cream);

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.2),
    0 4px 10px
      rgba(55, 34, 28, 0.14);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    800;

  cursor:
    pointer;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}


.items-filter-chevron {
  margin-left:
    8px;

  color:
    rgba(255, 250, 245, 0.86);

  font-size:
    12px;

  line-height:
    1;

  transition:
    transform 0.15s ease;
}


.items-filter-dropdown.open .items-filter-chevron {
  transform:
    rotate(180deg);
}


.items-filter-select:hover {
  border-color:
    rgba(64, 36, 24, 0.58);

  background:
    linear-gradient(
      180deg,
      #755043 0%,
      #57372b 100%
    );

  transform:
    translateY(-1px);
}


.items-filter-select:focus {
  border-color:
    #8b5b49;

  background:
    linear-gradient(
      180deg,
      #765244 0%,
      #533428 100%
    );

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.24),
    0 0 0 3px
      rgba(111, 73, 58, 0.18),
    0 4px 10px
      rgba(55, 34, 28, 0.14);
}


.items-filter-menu {
  position:
    absolute;

  top:
    calc(100% + 6px);

  left:
    0;

  z-index:
    20;

  width:
    100%;

  padding:
    6px;

  border:
    1px solid
    rgba(64, 36, 24, 0.22);

  border-radius:
    15px;

  background:
    #fffaf5;

  box-shadow:
    0 12px 26px
      rgba(55, 34, 28, 0.2);

  overflow:
    hidden;
}


.items-filter-menu.hidden {
  display:
    none;
}


.items-filter-option {
  display:
    block;

  width:
    100%;

  padding:
    8px 10px;

  border:
    0;

  border-radius:
    10px;

  background:
    transparent;

  color:
    var(--luma-text-primary);

  font:
    inherit;

  font-size:
    var(--luma-font-size-md);

  text-align:
    left;

  cursor:
    pointer;
}


.items-filter-option:hover,
.items-filter-option:focus {
  outline:
    none;

  background:
    #6b4638;

  color:
    var(--luma-surface-cream);
}


.items-filter-option.selected {
  background:
    #503226;

  color:
    var(--luma-surface-cream);

  font-weight:
    800;
}


.items-search-wrap {
  position: relative;

  flex:
    1 1 auto;

  min-width:
    0;
}


.items-search-icon {
  position: absolute;

  left: 14px;
  top: 50%;

  transform:
    translateY(-50%);

  font-size:
    14px;

  pointer-events: none;

  opacity:
    0.55;
}


.items-search-input {
  width: 100%;

  padding:
    10px 12px
    10px 40px;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-small);

  outline:
    none;

  background:
    var(--luma-surface-cream);

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}


.items-search-input::placeholder {
  color:
    #b49ca7;
}


.items-search-input:hover {
  border-color:
    #d8c3cd;
}


.items-search-input:focus {
  border-color:
    #9a7184;

  background:
    #fffefe;

  box-shadow:
    0 0 0 3px
    rgba(154, 113, 132, 0.12);
}


/* ========================================
INVENTORY GRID
======================================== */

.inventory-grid {

  display:
    grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(120px, 1fr)
    );

  gap:
    12px;

  padding:
    20px 22px 24px;

}


/* ========================================
INVENTORY ITEMS
======================================== */

.inventory-slot {

  position:
    relative;

  aspect-ratio:
    1 / 1;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  padding:
    14px 10px;

  border:
    1px solid #eadde3;

  border-radius:
    16px;

  background:
    #ffffff;

  color:
    #6f5361;

  cursor:
    pointer;

  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;

}


.inventory-slot:hover {

  transform:
    translateY(-2px);

  border-color:
    #cdb5c1;

  box-shadow:
    0 8px 20px
    rgba(88, 60, 74, 0.10);

}


/* ========================================
INVENTORY ITEM ICON
======================================== */

.inventory-item-icon {

  position:
    relative;

  width:
    120px;

  height:
    120px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  overflow:
    visible;

  font-size:
    34px;

}

:root {

  --inventory-tree-sprout-preview-size:
    512px;

  --inventory-tree-sprout-preview-offset-x:
    -14px;

  --inventory-tree-sprout-preview-offset-y:
    -140px;

  --shop-tree-sprout-preview-size:
    512px;

  --shop-tree-sprout-preview-offset-x:
    -14px;

  --shop-tree-sprout-preview-offset-y:
    90px;

  --shop-purchase-tree-sprout-preview-size:
    112px;

  --shop-purchase-tree-sprout-preview-offset-x:
    -2px;

  --shop-purchase-tree-sprout-preview-offset-y:
    6px;

  --inventory-wall-item-size:
    175px;

  --inventory-wall-item-offset-x:
    -16px;

  --inventory-wall-item-offset-y:
    -8px;

}

.inventory-item-image {

  width:
    120px;

  height:
    120px;

  object-fit:
    contain;

  image-rendering:
    auto;

  pointer-events:
    none;

}

.inventory-item-image-wall {

  width:
    var(--inventory-wall-item-size);

  height:
    var(--inventory-wall-item-size);

  transform:
    translate(
      var(--inventory-wall-item-offset-x),
      var(--inventory-wall-item-offset-y)
    );

}

.inventory-item-image-tree-sprout {

  position:
    absolute;

  left:
    50%;

  top:
    50%;

  width:
    var(--inventory-tree-sprout-preview-size);

  height:
    var(--inventory-tree-sprout-preview-size);

  max-width:
    none;

  max-height:
    none;

  transform:
    translate(
      calc(-50% + var(--inventory-tree-sprout-preview-offset-x)),
      calc(-50% + var(--inventory-tree-sprout-preview-offset-y))
    );

}


/* ========================================
INVENTORY ITEM NAME
======================================== */

.inventory-item-name {

  max-width:
    100%;

  overflow:
    hidden;

  color:
    #604852;

  font-size:
    13px;

  font-weight:
    700;

  text-align:
    center;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}


/* ========================================
INVENTORY QUANTITY
======================================== */

.inventory-quantity {

  position:
    absolute;

    right:
    2px;

  top:
    2px;

  min-width:
    24px;

  padding:
    3px 7px;

  border-radius:
    999px;

  background:
    #f1e3e9;

  color:
    #745363;

  font-size:
    11px;

  font-weight:
    800;

  text-align:
    center;

}

/* ========================================
MY ITEMS EMPTY STATE
======================================== */

.items-empty {
  grid-column:
    1 / -1;

  min-height:
    220px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    var(--luma-space-xl);

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-sm);

  text-align:
    center;
}

/* ========================================
MY ITEMS SELECTION
======================================== */

.inventory-slot.selected {
  border-color:
    #8d6679;

  background:
    #fbf3f7;

  box-shadow:
    0 0 0 3px
    rgba(141, 102, 121, 0.12);
}


.wardrobe-item.selected {
  border-color:
    #8d6679;

  background:
    #fbf3f7;

  box-shadow:
    0 0 0 3px
    rgba(141, 102, 121, 0.12);
}

.wardrobe-item.selected.equipped {
  box-shadow:
    0 0 0 3px
    rgba(116, 83, 99, 0.18);
}

/* ========================================
FLOATING ITEM CONTEXT CARD
======================================== */

.items-card {
  position: relative;
}


.item-context-card {
  position: fixed;

  width: 250px;

  padding:
    18px;

  border:
    1px solid #e4d3db;

  border-radius:
    16px;

  background:
    rgba(
      255,
      250,
      252,
      0.98
    );

  color:
    #604852;

  box-shadow:
    0 16px 40px
    rgba(
      78,
      52,
      66,
      0.22
    );

  z-index:
    1100;
}


.item-context-card.hidden {
  display: none;
}


/* ========================================
CONTEXT CLOSE
======================================== */

.item-context-close {
  position: absolute;

  top: 9px;
  right: 9px;

  width: 28px;
  height: 28px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background:
    #f3e7ec;

  color:
    #806471;

  font-size:
    17px;

  cursor: pointer;
}


.item-context-close:hover {
  background:
    #ead9e1;
}


/* ========================================
CONTEXT HEADING
======================================== */

.item-context-heading {
  display: flex;
  align-items: center;

  gap: 11px;

  padding-right:
    24px;
}


.item-context-icon {
  width: 44px;
  height: 44px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius:
    12px;

  background:
    #f5e9ee;

  font-size:
    24px;
}


.item-context-title-group {
  min-width: 0;
}


.item-context-name {
  color:
    #5d4350;

  font-size:
    15px;

  font-weight:
    800;
}


.item-context-meta {
  margin-top:
    3px;

  color:
    #9a7e8b;

  font-size:
    11px;
}


/* ========================================
CONTEXT INFORMATION
======================================== */

.item-context-description {
  margin-top:
    14px;

  color:
    #765f6a;

  font-size:
    12px;

  line-height:
    1.5;
}


.item-context-ownership {
  margin-top:
    12px;

  padding:
    9px 10px;

  border-radius:
    10px;

  background:
    #f8eff3;

  color:
    #927582;

  font-size:
    11px;
}


/* ========================================
CONTEXT ACTIONS
======================================== */

.item-context-actions {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    var(--luma-space-sm);

  margin-top:
    var(--luma-space-lg);
}


.item-context-action {
  flex:
    1 1 96px;

  min-width:
    88px;
}

.item-context-ownership {
  display: flex;
  flex-direction: column;

  gap: 3px;
}


.item-context-ownership strong {
  color:
    #765966;

  font-size:
    11px;

  font-weight:
    700;
}


.item-context-ownership span {
  color:
    #a08492;

  font-size:
    10px;
}

/* ========================================
LUMA COZY COFFEE PALETTE
UI COLOR PASS
======================================== */

:root {

  --luma-cream:
    #f7f0e9;

  --luma-paper:
    #fffaf4;

  --luma-card:
    #fffdf9;

  --luma-latte:
    #eaded3;

  --luma-latte-dark:
    #d9c7ba;

  --luma-mocha:
    #655047;

  --luma-coffee:
    #4f3c35;

  --luma-muted:
    #9a8378;

  --luma-rose:
    #a97882;

  --luma-rose-soft:
    #eadadd;

  --luma-selected:
    #f3e6e1;

}


/* ========================================
MAIN MY ITEMS WINDOW
======================================== */

.items-card {

  background:
    var(--luma-cream);

  border-color:
    var(--luma-latte);

  box-shadow:
    0 18px 55px
    rgba(73, 52, 43, 0.18);

}


/* ========================================
HEADER
======================================== */

.items-header {

  background:
    var(--luma-paper);

  border-bottom-color:
    var(--luma-latte);

}


.items-title {

  color:
    var(--luma-coffee);

}


.items-subtitle {

  color:
    var(--luma-muted);

}


/* ========================================
CLOSE BUTTON
======================================== */

.items-close-button {

  background:
    #eee3dd;

  color:
    var(--luma-mocha);

}


.items-close-button:hover {

  background:
    #e5d6ce;

}


/* ========================================
MAIN TABS
======================================== */

.items-main-tabs {

  background:
    var(--luma-surface-ivory);

  border-bottom-color:
    var(--luma-border-soft);

}


.items-main-tab {

  background:
    var(--luma-surface-cream);

  border-color:
    var(--luma-border-soft);

  color:
    var(--luma-text-secondary);

}


.items-main-tab:hover {

}


.items-main-tab.active {

}


/* ========================================
SEARCH AREA
======================================== */

.items-toolbar {

  background:
    var(--luma-surface-cream);

  border-bottom-color:
    var(--luma-border-soft);

}


.items-search-input {

  background:
    var(--luma-surface-cream);

  border-color:
    var(--luma-border-soft);

  color:
    var(--luma-text-primary);

}


.items-search-input::placeholder {

  color:
    var(--luma-text-muted);

}


.items-search-input:hover {

  border-color:
    var(--luma-accent-blush);

}


.items-search-input:focus {

  border-color:
    var(--luma-accent-blush);

  background:
    var(--luma-surface-cream);

  box-shadow:
    0 0 0 3px
    rgba(217, 154, 170, 0.16);

}


/* ========================================
INVENTORY CARDS
======================================== */

.inventory-slot {

  background:
    var(--luma-surface-cream);

  border-color:
    var(--luma-border-soft);

  color:
    var(--luma-text-primary);

}


.inventory-slot:hover {

  background:
    var(--luma-surface-soft);

  border-color:
    var(--luma-accent-blush);

  box-shadow:
    var(--luma-shadow-soft);

}


.inventory-item-name {

  color:
    var(--luma-text-primary);

}


/* ========================================
QUANTITY BADGE
======================================== */

.inventory-quantity {

  background:
    var(--luma-surface-soft);

  color:
    var(--luma-accent-deep);

}


/* ========================================
SELECTED INVENTORY CARD
======================================== */

.inventory-slot.selected {

  background:
    var(--luma-surface-soft);

  border-color:
    var(--luma-accent-coral);

  box-shadow:
    0 0 0 3px
    rgba(201, 120, 134, 0.14);

}


/* ========================================
WARDROBE CARDS
======================================== */

.wardrobe-item {

  background:
    var(--luma-surface-cream);

  border-color:
    var(--luma-border-soft);

  color:
    var(--luma-text-primary);

}


.wardrobe-item:hover {

  background:
    var(--luma-surface-soft);

  border-color:
    var(--luma-accent-blush);

}


.wardrobe-item-name {

  color:
    var(--luma-text-primary);

}


.wardrobe-item-status {

  color:
    var(--luma-text-secondary);

}


.wardrobe-item.selected {

  background:
    var(--luma-surface-soft);

  border-color:
    var(--luma-accent-coral);

  box-shadow:
    0 0 0 3px
    rgba(201, 120, 134, 0.14);

}


.wardrobe-item.equipped {
  background:
    var(--luma-surface-ivory);

  border-width:
    1px;

  border-color:
    var(--luma-accent-deep);
}

/* ========================================
WARDROBE CATEGORY TABS
======================================== */

.wardrobe-tabs {
  background:
    var(--luma-surface-ivory);

  border-bottom-color:
    var(--luma-border-soft);
}


.wardrobe-tab {
  border-radius:
    var(--luma-radius-small);
}


/* ========================================
FLOATING ITEM CONTEXT CARD
======================================== */

.item-context-card {

  background:
    var(--luma-surface-cream);

  border-color:
    var(--luma-border-soft);

  color:
    var(--luma-text-primary);

  box-shadow:
    var(--luma-shadow-soft);

}


.item-context-icon {

  background:
    var(--luma-surface-soft);

}


.item-context-name {

  color:
    var(--luma-text-primary);

}


.item-context-meta {

  color:
    var(--luma-text-secondary);

}


.item-context-description {

  color:
    var(--luma-text-secondary);

}


.item-context-ownership {

  background:
    var(--luma-surface-ivory);

  color:
    var(--luma-text-secondary);

}


.item-context-ownership strong {

  color:
    var(--luma-text-primary);

}





.item-context-ownership span {

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-xs);

}

/* ========================================
LUMA COZY UI PALETTE
======================================== */

:root {

  /* Main warm surfaces */

  --luma-cream:
    #fffaf2;

  --luma-cream-soft:
    #fbf3e8;

  --luma-card:
    #fffdf8;

  --luma-card-hover:
    #fff8ef;


  /* Borders */

  --luma-border:
    #ead6c3;

  --luma-border-strong:
    #d9bfa9;


  /* Typography */

  --luma-text:
    #5a3828;

  --luma-text-soft:
    #765748;

  --luma-muted:
    #a18473;


  /* Soft pink selection */

  --luma-pink:
    #d8797f;

  --luma-pink-hover:
    #ce6c73;

  --luma-pink-soft:
    #f7ddd8;

  --luma-pink-pale:
    #fcebe5;


  /* Quantity / subtle UI */

  --luma-badge:
    #f7e3d5;

  --luma-badge-text:
    #6b4938;


  /* Shadows */

  --luma-shadow:
    rgba(91, 58, 42, 0.10);

  --luma-shadow-strong:
    rgba(78, 47, 33, 0.18);

}

/* ========================================
LUMA MY ITEMS
DESIGN SYSTEM WINDOW SHELL
======================================== */

.items-card {

  background:
    var(--luma-surface-ivory);

  border-color:
    var(--luma-border-soft);

  box-shadow:
    var(--luma-shadow-soft);

}


.items-header {

  background:
    var(--luma-surface-ivory);

  border-bottom-color:
    var(--luma-border-soft);

}


.items-title {

  color:
    var(--luma-text-primary);

}


.items-subtitle {

  color:
    var(--luma-text-secondary);

}


.items-close-button {

  background:
    var(--luma-surface-ivory);

  color:
    var(--luma-text-secondary);

}


.items-close-button:hover {

  background:
    var(--luma-surface-soft);

  color:
    var(--luma-text-primary);

}

/* ========================================
LUMA ITEM SELECTION
DESIGN SYSTEM
======================================== */

.inventory-slot.selected {

  background:
    var(--luma-surface-soft);

  border-color:
    var(--luma-accent-coral);

  box-shadow:
    0 0 0 3px
    rgba(201, 120, 134, 0.14);

}


.wardrobe-item.selected {

  background:
    var(--luma-surface-soft);

  border-color:
    var(--luma-accent-coral);

  box-shadow:
    0 0 0 3px
    rgba(201, 120, 134, 0.14);

}

/* ========================================
LUMA ITEMS MAIN TABS
COFFEE / CREAM / DARK BROWN
======================================== */

.items-main-tab.luma-tab {

  min-width:
    96px;

  background:
    #fff7ed;

  border-color:
    #d7b9a6;

  color:
    #6b4939;

}


.items-main-tab.luma-tab:hover {

  background:
    #ead3c2;

  border-color:
    #b98465;

  color:
    #4b3328;

}


.items-main-tab.luma-tab.active {

  background:
    #4b3328;

  border-color:
    #4b3328;

  color:
    #fff7ed;

  box-shadow:
    0 2px 7px
    rgba(75, 51, 40, 0.20);

}


.items-main-tab.luma-tab.active:hover {

  background:
    #5e4032;

  border-color:
    #5e4032;

  color:
    #fff7ed;

}

/* ========================================
LUMA ITEMS WINDOW
UNIFIED WARM BACKGROUND
======================================== */

.items-card,
.items-header,
.items-main-tabs,
.items-toolbar,
#inventoryView,
#wardrobeView,
.wardrobe-tabs {

  background:
    var(--luma-surface-ivory);

}

/* ========================================
LUMA SMALLER ITEM CARDS
======================================== */

.inventory-grid,
.wardrobe-grid {

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(100px, 1fr)
    );

}


/* Keep cards square */

.inventory-slot,
.wardrobe-item {

  aspect-ratio:
    1 / 1;

  padding:
    10px 8px;

  border-radius:
    var(--luma-radius-medium);
}


/* Slightly smaller item icon */

.inventory-item-icon {

  width:
    48px;

  height:
    48px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex-shrink:
    0;

  font-size:
    30px;

  line-height:
    1;

}


.wardrobe-item-icon {
  width:
    48px;

  height:
    48px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex-shrink:
    0;

  font-size:
    30px;

  line-height:
    1;
}

/* ========================================
LUMA WARM PINK SCROLLBARS
======================================== */

/* Firefox */

.items-view,
.inventory-grid,
.wardrobe-grid {

  scrollbar-width:
    thin;

  scrollbar-color:
    var(--luma-pink)
    var(--luma-cream-soft);

}


/* Chrome / Edge / Safari */

.items-view::-webkit-scrollbar,
.inventory-grid::-webkit-scrollbar,
.wardrobe-grid::-webkit-scrollbar {

  width:
    10px;

}


.items-view::-webkit-scrollbar-track,
.inventory-grid::-webkit-scrollbar-track,
.wardrobe-grid::-webkit-scrollbar-track {

  background:
    var(--luma-cream-soft);

  border-radius:
    999px;

}


.items-view::-webkit-scrollbar-thumb,
.inventory-grid::-webkit-scrollbar-thumb,
.wardrobe-grid::-webkit-scrollbar-thumb {

  background:
    var(--luma-pink);

  border:
    2px solid
    var(--luma-cream-soft);

  border-radius:
    999px;

}


.items-view::-webkit-scrollbar-thumb:hover,
.inventory-grid::-webkit-scrollbar-thumb:hover,
.wardrobe-grid::-webkit-scrollbar-thumb:hover {

  background:
    var(--luma-pink-hover);

}

/* ========================================
LUMA ITEM CONTEXT CARD
FLIP ANIMATION
======================================== */

.item-context-card {

  transform-style:
    preserve-3d;

  transform-origin:
    center center;

  transition:
    transform 0.13s ease,
    opacity 0.13s ease;

}


.item-context-card.flipping-out {

  transform:
    perspective(900px)
    rotateY(90deg);

  opacity:
    0.55;

}


.item-context-card.flipping-in {

  transform:
    perspective(900px)
    rotateY(0deg);

  opacity:
    1;

}

/* ========================================
CLOTHING SHOP
======================================== */

.shop-window {

  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    rgba(65, 48, 57, 0.28);

  backdrop-filter:
    blur(4px);

  z-index: 1100;

}


.shop-window.hidden {

  display: none;

}


/* ========================================
SHOP CARD
======================================== */

.shop-card {

  width:
    min(
      820px,
      calc(100vw - 40px)
    );

  max-height:
    min(
      720px,
      calc(100vh - 60px)
    );

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border:
    1px solid #dfc7bd;

  border-radius:
    24px;

  background:
    linear-gradient(
      145deg,
      #fffaf4,
      #f8eee7
    );

  box-shadow:
    0 28px 80px
    rgba(67, 43, 51, 0.28);

  color:
    #5b4147;

}


/* ========================================
SHOP HEADER
======================================== */

.shop-header {

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  padding:
    24px 26px
    18px;

  border-bottom:
    1px solid #ead7cf;

}


.shop-title {

  color:
    #5d3f47;

  font-size:
    24px;

  font-weight:
    800;

  letter-spacing:
    -0.02em;

}


.shop-subtitle {

  margin-top:
    5px;

  color:
    #a27e83;

  font-size:
    13px;

}


.shop-close-button {

  width:
    36px;

  height:
    36px;

  flex-shrink:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0;

  border:
    1px solid #e4cbc3;

  border-radius:
    50%;

  background:
    #f5e5df;

  color:
    #8d626c;

  font-size:
    22px;

  line-height:
    1;

}


.shop-close-button:hover {

  background:
    #efd5ce;

  color:
    #744b56;

}


/* ========================================
CROWN BALANCE
======================================== */

.shop-balance-row {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  margin:
    18px 26px
    0;

  padding:
    11px 14px;

  border:
    1px solid #ead4ca;

  border-radius:
    12px;

  background:
    #fff7f0;

  color:
    #9b7479;

  font-size:
    12px;

}


.shop-balance-row strong {

  color:
    #704d56;

  font-size:
    14px;

}


/* ========================================
CATEGORY TABS
======================================== */

.shop-category-tabs {

  display:
    flex;

  gap:
    8px;

  padding:
    16px 26px
    14px;

}


.shop-category-tab {

  padding:
    8px 16px;

  border:
    1px solid #e3cbc2;

  border-radius:
    999px;

  background:
    #fff8f2;

  color:
    #987078;

  font-size:
    12px;

  font-weight:
    700;

}


.shop-category-tab:hover {

  background:
    #f7e7e0;

}


.shop-category-tab.active {

  border-color:
    #d9a9a4;

  background:
    #eebfba;

  color:
    #69444c;

}


/* ========================================
SHOP CONTENT
======================================== */

.shop-content {

  min-height:
    0;

  flex:
    1;

  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr)
    260px;

  gap:
    18px;

  padding:
    0 26px
    26px;

}


/* ========================================
SHOP GRID
======================================== */

.shop-grid {

  min-height:
    300px;

  display:
    grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(120px, 1fr)
    );

  align-content:
    start;

  gap:
    12px;

  padding:
    4px;

  overflow-y:
    auto;

}


.shop-empty {

  grid-column:
    1 / -1;

  padding:
    50px 20px;

  color:
    #aa898c;

  font-size:
    13px;

  text-align:
    center;

}


/* ========================================
SHOP ITEM CARD
======================================== */

.shop-item {

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  gap:
    8px;

  padding:
    12px;

  border:
    1px solid #ead6cd;

  border-radius:
    16px;

  background:
    #fffaf5;

  color:
    #60464c;

  cursor:
    pointer;

  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;

}


.shop-item:hover {

  transform:
    translateY(-2px);

  border-color:
    #d9b2aa;

  background:
    #fff6ef;

  box-shadow:
    0 8px 20px
    rgba(93, 61, 70, 0.10);

}


.shop-item.selected {

  border-color:
    #cf9695;

  background:
    #fbe8e2;

  box-shadow:
    0 0 0 2px
    rgba(207, 150, 149, 0.14);

}


.shop-item-preview {

  position:
    relative;

  overflow:
    visible;

  width:
    88px;

  height:
    88px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    14px;

  background:
    #f7eee8;

  overflow:
    hidden;

}


.shop-item-preview img {

  width:
    100%;

  height:
    100%;

  object-fit:
    contain;

  image-rendering:
    auto;

}


.shop-item-name {

  width:
    100%;

  overflow:
    hidden;

  color:
    #61464d;

  font-size:
    12px;

  font-weight:
    700;

  text-align:
    center;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}


.shop-item-price {

  color:
    #a06e78;

  font-size:
    11px;

  font-weight:
    700;

}


/* ========================================
SELECTED ITEM DETAILS
======================================== */

.shop-details {

  min-height:
    300px;

  padding:
    18px;

  border:
    1px solid #e5d0c7;

  border-radius:
    18px;

  background:
    #fff9f3;

}


.shop-details-empty {

  height:
    100%;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    30px 15px;

  color:
    #aa898c;

  font-size:
    12px;

  line-height:
    1.6;

  text-align:
    center;

}


/* ========================================
DETAIL CONTENT
======================================== */

.shop-detail-preview {

  height:
    150px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  margin-bottom:
    16px;

  border-radius:
    16px;

  background:
    #f7eee8;

}


.shop-detail-preview img {

  max-width:
    100%;

  max-height:
    100%;

  object-fit:
    contain;

}


.shop-detail-name {

  color:
    #5e4149;

  font-size:
    18px;

  font-weight:
    800;

}


.shop-detail-category {

  margin-top:
    4px;

  color:
    #aa858a;

  font-size:
    11px;

  text-transform:
    capitalize;

}


.shop-detail-price {

  margin-top:
    18px;

  padding:
    11px 12px;

  border-radius:
    11px;

  background:
    #f7e8e1;

  color:
    #815a64;

  font-size:
    14px;

  font-weight:
    800;

  text-align:
    center;

}


/* ========================================
BUY BUTTON
======================================== */

.shop-buy-button {

  width:
    100%;

  margin-top:
    10px;

  padding:
    11px 14px;

  border:
    1px solid #cf9695;

  border-radius:
    11px;

  background:
    #dfaaa7;

  color:
    #5d3d45;

  font-size:
    13px;

  font-weight:
    800;

}


.shop-buy-button:hover {

  background:
    #d99d9a;

}


.shop-buy-button:disabled {

  cursor:
    not-allowed;

  opacity:
    0.55;

}


/* ========================================
SHOP SCROLLBAR
======================================== */

.shop-grid {

  scrollbar-width:
    thin;

  scrollbar-color:
    #d7aaa7
    #f7eee8;

}


.shop-grid::-webkit-scrollbar {

  width:
    9px;

}


.shop-grid::-webkit-scrollbar-track {

  background:
    #f7eee8;

  border-radius:
    999px;

}


.shop-grid::-webkit-scrollbar-thumb {

  background:
    #d7aaa7;

  border-radius:
    999px;

}


/* ========================================
SHOP RESPONSIVE
======================================== */

@media (
  max-width: 700px
) {

  .shop-content {

    grid-template-columns:
      1fr;

  }


  .shop-details {

    min-height:
      220px;

  }


  .shop-card {

    max-height:
      calc(100vh - 30px);

  }

}

.shop-item-owned {

  padding:
    3px 8px;

  border-radius:
    999px;

  background:
    #f1ddd7;

  color:
    #8a626a;

  font-size:
    10px;

  font-weight:
    800;

}


.shop-detail-owned {

  margin-top:
    12px;

  padding:
    8px 10px;

  border-radius:
    10px;

  background:
    #f4e4de;

  color:
    #8b636b;

  font-size:
    11px;

  font-weight:
    700;

  text-align:
    center;

}

/* ========================================
SHOP DETAIL DESCRIPTION
======================================== */

.shop-detail-description {

  margin-top:
    12px;

  color:
    #8f7076;

  font-size:
    12px;

  line-height:
    1.55;

}

/* ========================================
SHOP ECONOMY BADGES
======================================== */

.shop-detail-badges {

  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    6px;

  margin-top:
    12px;

}


.shop-detail-badge {

  padding:
    5px 9px;

  border:
    1px solid #e2c7bf;

  border-radius:
    999px;

  background:
    #fff4ee;

  color:
    #8a626a;

  font-size:
    10px;

  font-weight:
    800;

}

/* ========================================
/* ========================================
SHOP PURCHASE CONFIRMATION
======================================== */

.shop-confirm-window {

  position:
    fixed;

  inset:
    0;

  z-index:
    1200;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    var(--luma-space-xl);

}


/* ========================================
CONFIRMATION CARD
======================================== */

.shop-confirm-card {

  width:
    min(
      390px,
      100%
    );

  padding:
    var(--luma-space-xl);

  overflow:
    hidden;

}


/* ========================================
HEADER
======================================== */

.shop-confirm-header {

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    var(--luma-space-lg);

}


.shop-confirm-title {

  color:
    var(--luma-text-primary);

}


.shop-confirm-subtitle {

  color:
    var(--luma-text-secondary);

}


/* ========================================
CLOSE BUTTON
======================================== */

.shop-confirm-close-button {

  width:
    34px;

  height:
    34px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0 0 34px;

  padding:
    0 0 2px 0;

  font-family:
    var(--luma-font-family);

  font-size:
    20px;

  line-height:
    1;

}


/* ========================================
ITEM PREVIEW
======================================== */

.shop-confirm-item {

  display:
    flex;

  align-items:
    center;

  gap:
    var(--luma-space-md);

  margin-top:
    var(--luma-space-lg);

  padding:
    var(--luma-space-md);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  background:
    var(--luma-surface-ivory);

}


.shop-confirm-image {

  width:
    58px;

  height:
    58px;

  flex:
    0 0 58px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  overflow:
    hidden;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  background:
    var(--luma-surface-soft);

}


.shop-confirm-image img {

  width:
    100%;

  height:
    100%;

  object-fit:
    contain;

}


.shop-confirm-item-info {

  min-width:
    0;

}


.shop-confirm-item-name {

  overflow:
    hidden;

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-md);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.3;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}


.shop-confirm-item-meta {

  margin-top:
    var(--luma-space-xs);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-semibold);

}


/* ========================================
PRICE
======================================== */

.shop-confirm-price-row {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    var(--luma-space-md);

  margin-top:
    var(--luma-space-lg);

  padding:
    var(--luma-space-md);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  background:
    var(--luma-surface-ivory);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

}


.shop-confirm-price-row strong {

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    5px;

  color:
    var(--luma-accent-deep);

  font-size:
    var(--luma-font-size-lg);

  line-height:
    1;

}


/* ========================================
ACTIONS
======================================== */

.shop-confirm-actions {

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    var(--luma-space-sm);

  margin-top:
    var(--luma-space-lg);

}


.shop-confirm-cancel-button,
.shop-confirm-purchase-button {

  width:
    100%;

  min-height:
    40px;

}


.shop-confirm-purchase-button {

  background:
    var(--luma-accent-deep);

  border-color:
    var(--luma-accent-deep);

  color:
    var(--luma-surface-cream);

}


.shop-confirm-purchase-button:hover {

  background:
    var(--luma-accent-coral);

  border-color:
    var(--luma-accent-coral);

  color:
    var(--luma-surface-cream);

}


/* ========================================
PENDING
======================================== */

.shop-confirm-purchase-button:disabled,
.shop-confirm-cancel-button:disabled {

  cursor:
    not-allowed;

  opacity:
    0.5;

}


/* ========================================
CONFIRMATION MOTION
======================================== */

.shop-confirm-window:not(.hidden):not(.closing) {

  animation:
    luma-shop-confirm-backdrop-enter
    180ms
    ease-out
    both;

}


.shop-confirm-window:not(.hidden):not(.closing)
.shop-confirm-card {

  animation:
    luma-shop-confirm-card-enter
    240ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;

}


.shop-confirm-window.closing {

  pointer-events:
    none;

  animation:
    luma-shop-confirm-backdrop-exit
    170ms
    ease-in
    both;

}


.shop-confirm-window.closing
.shop-confirm-card {

  animation:
    luma-shop-confirm-card-exit
    170ms
    ease-in
    both;

}


@keyframes luma-shop-confirm-card-enter {

  from {

    opacity:
      0;

    transform:
      translateY(12px)
      scale(0.985);

  }


  70% {

    opacity:
      1;

    transform:
      translateY(-2px)
      scale(1);

  }


  to {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }

}


@keyframes luma-shop-confirm-card-exit {

  from {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }


  to {

    opacity:
      0;

    transform:
      translateY(10px)
      scale(0.99);

  }

}


@keyframes luma-shop-confirm-backdrop-enter {

  from {

    opacity:
      0;

  }


  to {

    opacity:
      1;

  }

}


@keyframes luma-shop-confirm-backdrop-exit {

  from {

    opacity:
      1;

  }


  to {

    opacity:
      0;

  }

}


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

  .shop-confirm-window,
  .shop-confirm-card {

    animation:
      none !important;

  }

}

/* ========================================
SHOP AFFORDABILITY
======================================== */

.shop-detail-balance {

  margin-top:
    6px;

  color:
    #9b8381;

  font-size:
    11px;

}


.shop-detail-insufficient {

  margin-top:
    8px;

  color:
    #a85f5f;

  font-size:
    11px;

  font-weight:
    800;

}


.shop-buy-button:disabled {

  cursor:
    default;

  opacity:
    0.5;

}

/* ========================================
LEGACY HUD CONTROL BRIDGE
Existing controls remain in the DOM so the
new top HUD can delegate to their handlers.
======================================== */

/* Old bottom navigation */

.bottom-nav {
  display:
    none;
}


/* Old standalone gardening controls */

#removeFloorButton,
#waterPlantButton,
#harvestPlantButton {
  display:
    none;
}

/* ========================================
ACQUISITION FEED
Appears above the chat box
Newest reward stays closest to chat
======================================== */

.acquisition-feed {

  position:
    fixed;

  top:
    0;

  left:
    0;

  width:
    min(
      560px,
      calc(100vw - 56px)
    );

  display:
    flex;

  flex-direction:
    column-reverse;

  align-items:
    center;

  gap:
    12px;

  pointer-events:
    none;

  z-index:
    1325;

}



.acquisition-feed-item {
  width:
  fit-content;

  max-width:
    100%;

  min-height:
    34px;

  display:
    flex;

  align-items:
    center;

    gap:
    7px;

    padding:
    5px 9px;

  border:
    1px solid
    rgba(191, 160, 130, 0.42);

    border-radius:
    13px;

  background:
    rgba(255, 248, 238, 0.94);

  box-shadow:
    0 16px 34px
    rgba(84, 61, 47, 0.14);

  backdrop-filter:
    blur(6px);

  opacity:
    0;

  transform:
    translateY(14px)
    scale(0.985);

  animation:
    acquisitionFeedEnter
    220ms ease-out
    forwards;
}


.acquisition-feed-item.leaving {
  animation:
    acquisitionFeedExit
    220ms ease-in
    forwards;
}


.acquisition-feed-item.reward {
  background:
    rgba(255, 248, 230, 0.96);

  border-color:
    rgba(231, 189, 106, 0.52);
}


.acquisition-feed-item.success {
  background:
    rgba(241, 248, 232, 0.96);

  border-color:
    rgba(163, 191, 117, 0.46);
}


.acquisition-feed-icon {
  width:
    26px;

  height:
    26px;

  flex-shrink:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;
}


.acquisition-feed-icon img {
  width:
    26px;

  height:
    26px;

  display:
    block;

  object-fit:
    contain;
}

/* ========================================
ACQUISITION FEED — CLOTHING ART SCALE
Production clothing overlays use the full
256x256 character coordinate canvas.
======================================== */

.acquisition-feed-icon img[src*="assets/characters/"] {
  width:
    256px;

  height:
    256px;

  max-width:
    none;

  max-height:
    none;

  object-fit:
    contain;

  flex-shrink:
    0;
}


.acquisition-feed-text {
  flex:
  0 1 auto;

min-width:
  0;

font-size:
  10px;

white-space:
  nowrap;

  color:
    #5a4032;


  font-weight:
    800;

  line-height:
    1.2;
}

/* ========================================
ACQUISITION FEED — FLOATING ITEM ICON
======================================== */

.acquisition-feed-item {
  position:
    relative;

  padding:
    6px 12px 6px 40px;

  overflow:
    visible;
}


.acquisition-feed-icon {
  position:
    absolute;

  left:
    -18px;

  top:
    50%;

  width:
    52px;

  height:
    52px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  transform:
    translateY(-50%);

  font-size:
    32px;

  line-height:
    1;

  pointer-events:
    none;
}


.acquisition-feed-icon img {
  width:
    52px;

  height:
    52px;

  object-fit:
    contain;
}


.acquisition-feed-text {
  color:
    #5f493f;
}


@media (max-width: 700px), (pointer: coarse) and (max-width: 900px) {
  .acquisition-feed { width:min(180px, calc(100vw - 24px));align-items:flex-start;gap:3px;overflow:hidden; }
  .acquisition-feed-item { flex-shrink:0; }
  .acquisition-feed-item { box-sizing:border-box;min-height:22px;gap:3px;padding:1px 6px 1px 3px;border-radius:8px; }
  .acquisition-feed-icon { position:static;left:auto;top:auto;width:18px;height:18px;flex:0 0 18px;transform:none;font-size:15px; }
  .acquisition-feed-icon img { width:18px;height:18px; }
  .acquisition-feed-icon img[src*="assets/characters/"] { width:96px;height:96px; }
  .acquisition-feed-text { font-size:8px;line-height:1.35;overflow:hidden;text-overflow:ellipsis; }
  .acquisition-feed-item .acquisition-feed-accent { font-size:10px; }
}

.acquisition-feed-accent {
  flex-shrink:
    0;

  color:
    #e4ae52;

  font-size:
    22px;

  line-height:
    1;
}


@keyframes acquisitionFeedEnter {
  from {
    opacity:
      0;

    transform:
      translateX(-18px)
      translateY(8px)
      scale(0.985);
  }

  to {
    opacity:
      1;

    transform:
      translateX(0)
      translateY(0)
      scale(1);
  }
}


@keyframes acquisitionFeedExit {
  from {
    opacity:
      1;

    transform:
      translateY(0)
      scale(1);
  }

  to {
    opacity:
      0;

    transform:
      translateY(-10px)
      scale(0.985);
  }
}

/* ========================================
LUMA UI DEFAULT CURSOR
All interface surfaces keep the Luma
default hand. The world canvas manages
its own contextual cursor states.
======================================== */

html,
body,
body *:not(#gameCanvas) {
  cursor:
    url("/assets/UI/cursors/cursor-default.png")
    8 6,
    default
    !important;
}

/* ========================================
LUMA SYSTEM FEEDBACK ROLL
Small bottom-center gameplay notices
======================================== */

.system-feedback-roll {
  position:
    fixed;

  left:
    50%;

  bottom:
    18px;

  z-index:
    80;

  width:
    min(
      520px,
      calc(100vw - 40px)
    );

  display:
    flex;

  flex-direction:
    column-reverse;

  align-items:
    center;

  gap:
    4px;

  transform:
    translateX(-50%);

  pointer-events:
    none;
}


.system-feedback-roll
.system-message {
  width:
    fit-content;

  max-width:
    100%;

  margin:
    0;

  padding:
    5px 10px;

  border:
    1px solid
    rgba(111, 82, 67, 0.14);

  border-radius:
    999px;

  background:
    rgba(255, 250, 245, 0.92);

  box-shadow:
    0 4px 12px
    rgba(67, 48, 57, 0.10);

  color:
    #987f87;

  font-size:
    10px;

  font-weight:
    600;

  font-style:
    normal;

  line-height:
    1.2;

  text-align:
    center;

  backdrop-filter:
    blur(6px);
}


.system-feedback-roll
.system-tool-prompt-hint.hidden {
  display:
    none;
}


.system-feedback-roll
.system-tool-prompt-hint {
  order:
    -1;

  color:
    #987f87;

  opacity:
    0.94;
}


/* SUCCESS */

.system-feedback-roll
.system-message-success {
  color:
    #6f8f73;
}


/* REWARD */

.system-feedback-roll
.system-message-reward {
  color:
    #a77946;
}


/* ERROR */

.system-feedback-roll
.system-message-error {
  color:
    #b85f6d;
}

/* ========================================
SYSTEM FEEDBACK — ENTRANCE
======================================== */

.system-feedback-roll
.system-message {
  animation:
    systemFeedbackEnter
    160ms
    ease-out
    both;
}


@keyframes systemFeedbackEnter {

  from {
    opacity:
      0;

    transform:
      translateY(6px)
      scale(0.98);
  }

  to {
    opacity:
      1;

    transform:
      translateY(0)
      scale(1);
  }

}

/* ========================================
LUMA ITEM PROVENANCE
PHASE 14.4.16 POLISH
======================================== */

.item-provenance-summary {
  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-sm);
}


.item-provenance-summary > div {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    var(--luma-space-md);

  padding-bottom:
    var(--luma-space-sm);

  border-bottom:
    1px solid
    var(--luma-border-soft);
}


.item-provenance-summary > div:last-child {
  padding-bottom:
    0;

  border-bottom:
    none;
}


.item-provenance-summary > div > strong {
  flex-shrink:
    0;

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-semibold);
}


.item-provenance-summary > div > span {
  overflow:
    hidden;

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-bold);

  text-align:
    right;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* ========================================
PROVENANCE HISTORY
======================================== */

.item-provenance-history {
  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-sm);

  margin-top:
    var(--luma-space-md);

  padding-top:
    var(--luma-space-md);

  border-top:
    1px solid
    var(--luma-border-soft);
}


.item-provenance-history > strong {
  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);
}


/* ========================================
PROVENANCE EVENTS
======================================== */

.item-provenance-event {
  display:
    grid;

  grid-template-columns:
    1fr auto;

  gap:
    3px
    var(--luma-space-sm);

  padding:
    var(--luma-space-sm)
    var(--luma-space-md);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-small);

  background:
    var(--luma-surface-cream);
}


.item-provenance-event > strong {
  grid-column:
    1 / -1;

  color:
    var(--luma-accent-deep);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-bold);
}


.item-provenance-event > span {
  min-width:
    0;

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-xs);

  line-height:
    1.35;
}


.item-provenance-event > span:last-child {
  color:
    var(--luma-text-muted);

  text-align:
    right;

  white-space:
    nowrap;
}

/* ========================================
PROVENANCE EVENT LIST
======================================== */

.item-provenance-events {
  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-sm);
}


.item-provenance-events.scrollable {
  max-height:
    124px;

  overflow-y:
    auto;

  padding-right:
    var(--luma-space-xs);

  scrollbar-width:
    thin;

  scrollbar-color:
    var(--luma-border-soft)
    transparent;
}


.item-provenance-events.scrollable::-webkit-scrollbar {
  width:
    5px;
}


.item-provenance-events.scrollable::-webkit-scrollbar-track {
  background:
    transparent;
}


.item-provenance-events.scrollable::-webkit-scrollbar-thumb {
  border-radius:
    999px;

  background:
    var(--luma-border-soft);
}

/* ========================================
LUMA MY ITEMS
PHASE 14.4.18 RESPONSIVE
======================================== */

@media (max-width: 700px) {

  /* ======================================
  WINDOW SHELL
  ====================================== */

  .items-window {
    padding:
      var(--luma-space-md);
  }


  .items-card {
    width:
      100%;

    height:
      calc(
        100vh -
        24px
      );

    max-width:
      none;
  }


  /* ======================================
  HEADER
  ====================================== */

  .items-header {
    gap:
      var(--luma-space-md);

    padding:
      var(--luma-space-md)
      var(--luma-space-lg);
  }


  /* ======================================
  INVENTORY / WARDROBE MAIN TABS
  ====================================== */

  .items-main-tabs {
    padding:
      var(--luma-space-sm)
      var(--luma-space-lg);
  }


  .items-main-tab {
    flex:
      1;

    min-width:
      0;
  }


  /* ======================================
  SEARCH
  ====================================== */

  .items-toolbar {
    flex-direction:
      column;

    align-items:
      stretch;

    gap:
      var(--luma-space-sm);

    padding:
      var(--luma-space-sm)
      var(--luma-space-lg);
  }


  .items-filter-wrap {
    width:
      100%;
  }


  .items-filter-dropdown {
    flex:
      1;

    width:
      100%;

    min-width:
      0;
  }


  .items-filter-select {
    width:
      100%;
  }


  /* ======================================
  CATEGORY NAVIGATION
  ====================================== */

  .wardrobe-tabs {
    flex-wrap:
      nowrap;

    overflow-x:
      auto;

    padding:
      var(--luma-space-sm)
      var(--luma-space-lg);

    scrollbar-width:
      none;
  }


  .wardrobe-tabs::-webkit-scrollbar {
    display:
      none;
  }


  .wardrobe-tab {
    flex-shrink:
      0;
  }


  /* ======================================
  ITEM GRIDS
  ====================================== */

  .inventory-grid,
  .wardrobe-grid {
    grid-template-columns:
      repeat(
        auto-fill,
        minmax(92px, 1fr)
      );

    gap:
      var(--luma-space-sm);

    padding:
      var(--luma-space-md)
      var(--luma-space-lg)
      var(--luma-space-lg);
  }


  /* ======================================
  FLOATING ITEM CARD
  ====================================== */

  .item-context-card {
    width:
      min(
        250px,
        calc(100vw - 24px)
      );

    max-height:
      calc(100vh - 24px);

    overflow-y:
      auto;
  }

}


/* ========================================
SHORT VIEWPORTS
======================================== */

@media (max-height: 680px) {

  .items-window {
    padding:
      var(--luma-space-sm);
  }


  .items-card {
    height:
      calc(
        100vh -
        16px
      );
  }


  .items-header {
    padding:
      var(--luma-space-md)
      var(--luma-space-lg);
  }


  .items-main-tabs,
  .items-toolbar,
  .wardrobe-tabs {
    padding-top:
      var(--luma-space-sm);

    padding-bottom:
      var(--luma-space-sm);
  }


  .inventory-grid,
  .wardrobe-grid {
    padding-top:
      var(--luma-space-md);

    padding-bottom:
      var(--luma-space-md);
  }


  .item-context-card {
    max-height:
      calc(100vh - 16px);

    overflow-y:
      auto;
  }

}

/* ========================================
LUMA MY ITEMS
PHASE 14.4.19 MICROINTERACTIONS
======================================== */

.inventory-slot,
.wardrobe-item {
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}


/* ========================================
CARD PRESS FEEDBACK
======================================== */

.inventory-slot:active,
.wardrobe-item:active {
  transform:
    translateY(0)
    scale(0.985);
}


/* ========================================
ITEM ARTWORK RESPONSE
======================================== */

.inventory-item-icon,
.wardrobe-item-icon {
  transition:
    transform 140ms ease;
}


.inventory-slot:hover
.inventory-item-icon,
.wardrobe-item:hover
.wardrobe-item-icon {
  transform:
    scale(1.04);
}


/* ========================================
QUANTITY BADGE RESPONSE
======================================== */

.inventory-quantity {
  transition:
    transform 140ms ease;
}


.inventory-slot:hover
.inventory-quantity {
  transform:
    translateY(-1px);
}


/* ========================================
KEYBOARD / FOCUS FEEDBACK
======================================== */

.inventory-slot:focus-visible,
.wardrobe-item:focus-visible {
  outline:
    none;

  border-color:
    var(--luma-accent-coral);

  box-shadow:
    0 0 0 3px
    rgba(201, 120, 134, 0.18);
}

/* ========================================
LUMA MY ITEMS
WINDOW OPEN / CLOSE MOTION
======================================== */

.items-window:not(.hidden):not(.closing) {
  animation:
    luma-items-backdrop-enter
    200ms
    ease-out
    both;
}


.items-window:not(.hidden):not(.closing)
.items-card {
  animation:
    luma-items-window-enter
    220ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;
}


/* ========================================
EXIT
======================================== */

.items-window.closing {
  pointer-events:
    none;

  animation:
    luma-items-backdrop-exit
    180ms
    ease-in
    both;
}


.items-window.closing
.items-card {
  animation:
    luma-items-window-exit
    180ms
    ease-in
    both;
}


/* ========================================
WINDOW KEYFRAMES
======================================== */

@keyframes luma-items-window-enter {

  from {
    opacity:
      0;

    transform:
      translateY(18px);
  }

  to {
    opacity:
      1;

    transform:
      translateY(0);
  }

}


@keyframes luma-items-window-exit {

  from {
    opacity:
      1;

    transform:
      translateY(0);
  }

  to {
    opacity:
      0;

    transform:
      translateY(16px);
  }

}


/* ========================================
BACKDROP KEYFRAMES
======================================== */

@keyframes luma-items-backdrop-enter {

  from {
    opacity:
      0;
  }

  to {
    opacity:
      1;
  }

}


@keyframes luma-items-backdrop-exit {

  from {
    opacity:
      1;
  }

  to {
    opacity:
      0;
  }

}

/* ========================================
LUMA PROFILE
OPEN / CLOSE MOTION
======================================== */

.profile-window:not(.hidden):not(.closing) {

  animation:
    luma-profile-backdrop-enter
    180ms
    ease-out
    both;

}


.profile-window:not(.hidden):not(.closing)
.profile-card {

  animation:
    luma-profile-card-enter
    240ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;

}


/* EXIT */

.profile-window.closing {

  pointer-events:
    none;

  animation:
    luma-profile-backdrop-exit
    180ms
    ease-in
    both;

}


.profile-window.closing
.profile-card {

  animation:
    luma-profile-card-exit
    180ms
    ease-in
    both;

}


@keyframes luma-profile-card-enter {

  from {

    opacity:
      0;

    transform:
      translateY(14px)
      scale(0.985);

  }


  70% {

    opacity:
      1;

    transform:
      translateY(-3px)
      scale(1);

  }


  to {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }

}


@keyframes luma-profile-card-exit {

  from {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }


  to {

    opacity:
      0;

    transform:
      translateY(12px)
      scale(0.99);

  }

}


@keyframes luma-profile-backdrop-enter {

  from {
    opacity:
      0;
  }

  to {
    opacity:
      1;
  }

}


@keyframes luma-profile-backdrop-exit {

  from {
    opacity:
      1;
  }

  to {
    opacity:
      0;
  }

}


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

  .profile-window,
  .profile-card {

    animation:
      none !important;

  }

}

/* ========================================
SOCIAL FIXED WINDOW SIZE
======================================== */

.social-card {

  width:
    500px;

  height:
    560px;

  max-width:
    calc(
      100vw -
      48px
    );

  max-height:
    calc(
      100vh -
      72px
    );

}


/* ========================================
SOCIAL PANEL / LIST SCROLLING
======================================== */

.social-tab-panel {

  min-height:
    0;

  max-height:
    none;

  flex:
    1 1 auto;

  overflow:
    hidden;

}


.social-list {

  height:
    100%;

  min-height:
    0;

  overflow-y:
    auto;

  padding-right:
    var(--luma-space-xs);

  scrollbar-width:
    thin;

  scrollbar-color:
    var(--luma-accent-blush)
    transparent;

}


.social-list::-webkit-scrollbar {

  width:
    8px;

}


.social-list::-webkit-scrollbar-track {

  background:
    transparent;

}


.social-list::-webkit-scrollbar-thumb {

  background:
    var(--luma-accent-blush);

  border-radius:
    var(--luma-radius-pill);

}


.social-list::-webkit-scrollbar-thumb:hover {

  background:
    var(--luma-accent-coral);

}


/* ========================================
SOCIAL WINDOW OPEN / CLOSE MOTION
======================================== */

.social-window:not(.hidden):not(.closing) {

  animation:
    luma-social-backdrop-enter
    180ms
    ease-out
    both;

}


.social-window:not(.hidden):not(.closing)
.social-card {

  animation:
    luma-social-window-enter
    220ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;

}


.social-window.closing {

  pointer-events:
    none;

  animation:
    luma-social-backdrop-exit
    180ms
    ease-in
    both;

}


.social-window.closing
.social-card {

  animation:
    luma-social-window-exit
    180ms
    ease-in
    both;

}


@keyframes luma-social-window-enter {

  from {

    opacity:
      0;

    transform:
      translateY(18px);

  }

  to {

    opacity:
      1;

    transform:
      translateY(0);

  }

}


@keyframes luma-social-window-exit {

  from {

    opacity:
      1;

    transform:
      translateY(0);

  }

  to {

    opacity:
      0;

    transform:
      translateY(16px);

  }

}


@keyframes luma-social-backdrop-enter {

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }

}


@keyframes luma-social-backdrop-exit {

  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }

}


/* ========================================
REMOVE FRIEND CONFIRMATION
======================================== */

.friend-confirm-window {

  position:
    fixed;

  inset:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    var(--luma-space-xl);

  z-index:
    1200;

}


.friend-confirm-window.hidden {

  display:
    none;

}


.friend-confirm-card {

  width:
    min(
      360px,
      calc(
        100vw -
        40px
      )
    );

  overflow:
    hidden;

  background:
    var(--luma-surface-cream);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-large);

  box-shadow:
    var(--luma-shadow-soft);

  animation:
    luma-friend-confirm-enter
    180ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;

}


.friend-confirm-header {

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    var(--luma-space-lg);

  padding:
    var(--luma-space-lg)
    var(--luma-space-xl);

  border-bottom:
    1px solid
    var(--luma-border-soft);

}


.friend-confirm-title {

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-lg);

  font-weight:
    var(--luma-font-weight-bold);

}


.friend-confirm-subtitle {

  margin-top:
    var(--luma-space-xs);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  line-height:
    1.4;

}


.friend-confirm-body {

  padding:
    var(--luma-space-xl);

  text-align:
    center;

}


.friend-confirm-name {

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-lg);

  font-weight:
    var(--luma-font-weight-bold);

  overflow-wrap:
    anywhere;

}


.friend-confirm-message {

  margin-top:
    var(--luma-space-sm);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  line-height:
    1.45;

}


.friend-confirm-actions {

  display:
    flex;

    justify-content:
    center;

  gap:
    var(--luma-space-sm);

  padding:
    var(--luma-space-lg)
    var(--luma-space-xl);

  background:
    var(--luma-surface-ivory);

  border-top:
    1px solid
    var(--luma-border-soft);

}


.friend-remove-confirm-button {

  border-color:
    var(--luma-accent-coral);

  background:
    var(--luma-accent-coral);

  color:
    white;

}


.friend-remove-confirm-button:hover {

  filter:
    brightness(0.96);

}


@keyframes luma-friend-confirm-enter {

  from {

    opacity:
      0;

    transform:
      translateY(8px)
      scale(0.985);

  }

  to {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }

}


@media (
  max-width:
    520px
) {

  .social-card {

    width:
      100%;

    height:
      calc(
        100vh -
        24px
      );

    max-width:
      none;

    max-height:
      none;

  }

}


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

  .social-window,
  .social-card,
  .friend-confirm-card {

    animation:
      none !important;

  }

}

/* ========================================
SOCIAL FRIEND PRESENCE
======================================== */

.social-row-meta-online {

  color:
    #5f8d6b;

  font-weight:
    var(--luma-font-weight-bold);

}


.social-row-meta-offline {

  color:
    var(--luma-text-muted);

}

/* ========================================
PHASE 14.5
SMALL HEIGHT POLISH
======================================== */

@media (
  max-height:
    640px
) {

  /* ======================================
  PROFILE
  ====================================== */

  .profile-window {

    padding:
      var(--luma-space-md);

  }


  .profile-card {

    max-height:
      calc(
        100vh -
        24px
      );

  }


  .profile-body {

    padding:
      var(--luma-space-lg);

  }


  .profile-avatar-frame {

    width:
      176px;

    height:
      176px;

  }


  #profileAvatarCanvas {

    width:
      160px;

    height:
      160px;

  }


  .profile-info {

    margin-top:
      var(--luma-space-md);

  }


  .profile-details {

    margin-top:
      var(--luma-space-md);

  }


  /* ======================================
  SOCIAL
  ====================================== */

  .social-window {

    padding:
      var(--luma-space-md);

  }


  .social-card {

    height:
      calc(
        100vh -
        24px
      );

    max-height:
      none;

  }


  /* ======================================
  PLAYER CONTEXT
  ====================================== */

  .player-context-menu {

    max-height:
      calc(
        100vh -
        24px
      );

    overflow-y:
      auto;

  }


  /* ======================================
  FRIEND CONFIRMATION
  ====================================== */

  .friend-confirm-window {

    padding:
      var(--luma-space-md);

  }

}
/* ========================================
WORLD SHOP PURCHASE CARD
======================================== */

.shop-purchase-card {

  position:
    fixed;

  width:
    320px;

  max-width:
    calc(
      100vw -
      24px
    );

  padding:
    var(--luma-space-lg);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-large);

  background:
    var(--luma-surface-cream);

  color:
    var(--luma-text-primary);

  box-shadow:
    var(--luma-shadow-soft);

  z-index:
    1160;

  animation:
    shop-purchase-card-enter
    180ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;

}


.shop-purchase-card.hidden {

  display:
    none;

}


@keyframes shop-purchase-card-enter {

  from {

    opacity:
      0;

    transform:
      translateY(5px)
      scale(0.97);

  }


  to {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }

}

/* ========================================
SHOP PURCHASE CARD EXIT
======================================== */

.shop-purchase-card.closing {

  pointer-events:
    none;

  animation:
    shop-purchase-card-exit
    170ms
    ease-in
    both;

}


@keyframes shop-purchase-card-exit {

  from {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }


  to {

    opacity:
      0;

    transform:
      translateY(6px)
      scale(0.98);

  }

}


/* ========================================
COMMERCE REDUCED MOTION
======================================== */

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

  .shop-purchase-card {

    animation:
      none !important;

  }

}


/* ========================================
SHOP PURCHASE CLOSE
======================================== */

.shop-purchase-close {

  position:
    absolute;

  top:
    var(--luma-space-sm);

  right:
    var(--luma-space-sm);

  width:
    28px;

  height:
    28px;

}


/* ========================================
SHOP PURCHASE HEADING
======================================== */

.shop-purchase-heading {

  display:
    flex;

  align-items:
    center;

  gap:
    var(--luma-space-md);

  padding-right:
    30px;

}


.shop-purchase-preview {

  position:
    relative;

  width:
    72px;

  height:
    72px;

  flex:
    0 0 72px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  overflow:
    hidden;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  background:
    var(--luma-surface-soft);

}


.shop-purchase-image {

  width:
    100%;

  height:
    100%;

  object-fit:
    contain;

  pointer-events:
    none;

}


.shop-purchase-image.hidden {

  display:
    none;

}


.shop-purchase-fallback {

  font-size:
    30px;

}


.shop-purchase-fallback.hidden {

  display:
    none;

}


.shop-purchase-title-group {

  min-width:
    0;

}


.shop-purchase-name {

  overflow:
    hidden;

  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-lg);

  font-weight:
    var(--luma-font-weight-bold);

  line-height:
    1.25;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}


.shop-purchase-meta {

  margin-top:
    3px;

  color:
    var(--luma-text-muted);

  font-size:
    var(--luma-font-size-xs);

  font-weight:
    var(--luma-font-weight-semibold);

}


/* ========================================
SHOP PURCHASE DESCRIPTION
======================================== */

.shop-purchase-description {

  margin-top:
    var(--luma-space-lg);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  line-height:
    1.5;

}


/* ========================================
SHOP PURCHASE PRICE
======================================== */

.shop-purchase-price-row,
.shop-purchase-total-row {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    var(--luma-space-md);

}


.shop-purchase-price-row {

  margin-top:
    var(--luma-space-lg);

  padding:
    var(--luma-space-md);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-medium);

  background:
    var(--luma-surface-ivory);

  font-size:
    var(--luma-font-size-sm);

}


.shop-purchase-price-row strong {

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    5px;

  color:
    var(--luma-accent-deep);

  line-height:
    1;

}


/* ========================================
SHOP PURCHASE QUANTITY
======================================== */

.shop-purchase-quantity-section {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    var(--luma-space-md);

  margin-top:
    var(--luma-space-md);

}


.shop-purchase-quantity-label {

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-semibold);

}


.shop-purchase-quantity-controls {

  display:
    flex;

  align-items:
    center;

  gap:
    var(--luma-space-xs);

}


.shop-purchase-quantity-button {

  width:
    32px;

  height:
    32px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-small);

  background:
    var(--luma-surface-soft);

  color:
    var(--luma-accent-deep);

  font: inherit;

  font-weight:
    var(--luma-font-weight-bold);

  cursor:
    pointer;

}


.shop-purchase-quantity-button:hover {

  background:
    var(--luma-surface-ivory);

}


.shop-purchase-quantity-input {

  width:
    58px;

  height:
    32px;

  box-sizing:
    border-box;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-small);

  background:
    var(--luma-surface-cream);

  color:
    var(--luma-text-primary);

  font: inherit;

  font-weight:
    var(--luma-font-weight-bold);

  text-align:
    center;

  outline:
    none;

}


.shop-purchase-quantity-input:focus {

  border-color:
    var(--luma-accent-blush);

}

/* ========================================
REMOVE NATIVE NUMBER SPINNERS
======================================== */

.shop-purchase-quantity-input {

  appearance:
    textfield;

  -moz-appearance:
    textfield;

}


.shop-purchase-quantity-input::-webkit-inner-spin-button,
.shop-purchase-quantity-input::-webkit-outer-spin-button {

  margin:
    0;

  -webkit-appearance:
    none;

}


/* ========================================
SHOP PURCHASE TOTAL
======================================== */

.shop-purchase-total-row {

  margin-top:
    var(--luma-space-lg);

  padding-top:
    var(--luma-space-md);

  border-top:
    1px solid
    var(--luma-border-soft);

  font-size:
    var(--luma-font-size-md);

}


.shop-purchase-total-row strong {

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    5px;

  color:
    var(--luma-accent-deep);

  font-size:
    var(--luma-font-size-lg);

  line-height:
    1;

}
/* ========================================
SHOP PURCHASE STATUS
======================================== */

.shop-purchase-status {

  margin-top:
    var(--luma-space-md);

  padding:
    9px 11px;

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-small);

  background:
    var(--luma-surface-ivory);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-semibold);

  line-height:
    1.35;

  text-align:
    center;

  animation:
    shop-purchase-status-enter
    150ms
    ease-out
    both;

}


.shop-purchase-status.hidden {

  display:
    none;

}


.shop-purchase-status.success {

  background:
    rgba(
      113,
      166,
      127,
      0.10
    );

  border-color:
    rgba(
      113,
      166,
      127,
      0.28
    );

  color:
    #5f8d6b;

}


.shop-purchase-status.error {

  background:
    rgba(
      201,
      120,
      134,
      0.08
    );

  border-color:
    rgba(
      201,
      120,
      134,
      0.28
    );

  color:
    var(--luma-accent-coral);

}


@keyframes shop-purchase-status-enter {

  from {

    opacity:
      0;

    transform:
      translateY(3px);

  }


  to {

    opacity:
      1;

    transform:
      translateY(0);

  }

}

.shop-purchase-button {

  width:
    100%;

  margin-top:
    var(--luma-space-lg);

  justify-content:
    center;

}


@media (
  max-height:
    600px
) {

  .shop-purchase-card {

    max-height:
      calc(
        100vh -
        24px
      );

    overflow-y:
      auto;

  }

}

/* ========================================
LOCKED CHAT LAYOUT
======================================== */

.chat-panel.layout-locked
.chat-drag-handle {

  cursor:
    default !important;

}


.chat-panel.layout-locked
.chat-resize-handle {

  opacity:
    0.22;

  cursor:
    not-allowed !important;

}

.sell-quantity-section {
  width:
    100%;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    var(--luma-space-md);
}
/* ========================================
CHARACTER CREATOR WINDOW
======================================== */

.character-creator-window {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    var(--luma-space-xl);

  z-index:
    1180;
}

.character-creator-window.hidden {
  display:
    none;
}

.character-creator-card {
  width:
    920px;

  height:
    640px;

  max-height:
    calc(100vh - 60px);

  max-width:
    calc(100vw - 40px);

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.character-creator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap:
    var(--luma-space-lg);

  padding:
    var(--luma-space-lg)
    var(--luma-space-xl);

  border-bottom:
    1px solid
    var(--luma-border-soft);
}

.character-creator-close-button {
  font-size:
    22px;
}

.character-creator-close-button:hover {
  background:
    #eadce3;
}

.character-creator-body {
  display: grid;
  grid-template-columns:
    360px
    1fr;

  flex:
    1;

  min-height:
    0;

  overflow:
    hidden;
}

.character-creator-preview-area {
  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    var(--luma-space-xl);

  background:
    var(--luma-surface-ivory);

  border-right:
    1px solid
    var(--luma-border-soft);
}

.character-creator-preview-frame {
  padding:
    var(--luma-space-md);

  background:
    var(--luma-surface-soft);

  border:
    1px solid
    var(--luma-border-soft);

  border-radius:
    var(--luma-radius-large);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#characterCreatorPreviewCanvas {
  width:
    min(320px, 100%);

  aspect-ratio:
    1 / 1;

  height:
    auto;

  display:
    block;

  opacity:
    1;

  transform:
    translateX(0);

  transition:
    opacity 260ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

#characterCreatorPreviewCanvas.exiting-left {
  opacity:
    0;

  transform:
    translateX(-42px);
}

#characterCreatorPreviewCanvas.entering-from-right {
  opacity:
    0;

  transform:
    translateX(56px);
}

.character-creator-controls {
  display: flex;
  flex-direction: column;

  gap:
    var(--luma-space-lg);

  padding:
    var(--luma-space-xl);

  min-height:
    0;

  overflow:
    hidden;
}

.character-creator-tabs {
  display:
    flex;
  flex-wrap: wrap;
  flex-shrink: 0;

  gap:
    var(--luma-space-sm);

  padding-bottom:
    var(--luma-space-xs);
}

.character-creator-tab {
  min-width:
    96px;
}

.character-creator-tab-panel {
  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-lg);

  min-height:
    0;

  flex:
    1;

  overflow:
    hidden;
}

.character-creator-tab-panel.hidden {
  display:
    none;
}

.character-creator-section {
  display: flex;
  flex-direction: column;

  gap:
    var(--luma-space-sm);
}

.character-creator-section-title {
  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);
}

.character-creator-option-row {
  display: flex;
  flex-wrap: wrap;

  gap:
    var(--luma-space-sm);
}

.character-creator-option {
  min-width:
    88px;
}

.character-creator-hair-section {
  min-height:
    0;

  flex:
    1;

  overflow:
    hidden;
}

.character-creator-hair-fixed-controls {
  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-sm);

  flex:
    0 0 auto;
}

.character-creator-hair-grid {
  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-lg);

  flex:
    1;

  min-height:
    0;

  overflow-y:
    auto;

  padding:
    2px
    6px
    8px
    2px;
}

.character-creator-hair-category-grid {
  display:
    grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(118px, 1fr)
    );

  gap:
    var(--luma-space-md);
}

.character-creator-hair-category-tabs {
  display:
    flex;

  gap:
    var(--luma-space-sm);

  flex-wrap:
    wrap;
}

.character-creator-hair-category-tab {
  min-width:
    78px;
}

.character-creator-hair-grid::-webkit-scrollbar {
  width:
    9px;
}

.character-creator-hair-grid::-webkit-scrollbar-track {
  background:
    rgba(255, 247, 241, 0.72);

  border-radius:
    999px;
}

.character-creator-hair-grid::-webkit-scrollbar-thumb {
  background:
    rgba(136, 78, 97, 0.28);

  border-radius:
    999px;
}

.character-creator-hair-card {
  position:
    relative;

  min-height:
    112px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    0;

  padding:
    6px;

  background:
    rgba(255, 247, 241, 0.88);

  border:
    1px solid
    rgba(201, 151, 121, 0.42);

  border-radius:
    12px;

  color:
    var(--luma-text-primary);

  cursor:
    pointer;

  box-shadow:
    0 1px 2px rgba(75, 51, 40, 0.10),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);

  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.character-creator-hair-card:hover {
  transform:
    translateY(-1px);

  background:
    #f7e8e5;

  border-color:
    rgba(201, 120, 134, 0.52);

  box-shadow:
    0 2px 5px rgba(75, 51, 40, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.48);
}

.character-creator-hair-card.active {
  background:
    #f5d7d1;

  border-color:
    #4b3029;

  box-shadow:
    0 0 0 1px #4b3029,
    0 2px 5px rgba(75, 51, 40, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.character-creator-hair-preview {
  width:
    96px;

  height:
    96px;

  display:
    block;
}

.character-creator-hair-tooltip {
  position:
    fixed;

  z-index:
    1300;

  padding:
    4px 9px;

  background:
    rgba(28, 22, 22, 0.86);

  border:
    1px solid rgba(255, 255, 255, 0.2);

  border-radius:
    999px;

  color:
    #fff;

  font-size:
    12px;

  font-weight:
    800;

  line-height:
    1.2;

  opacity:
    0;

  pointer-events:
    none;

  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55);

  transform:
    translate(-50%, -100%);

  transition:
    opacity 100ms ease;
}

.character-creator-hair-tooltip.visible {
  opacity:
    1;
}

.character-creator-note {
  margin-top:
    auto;

  padding:
    var(--luma-space-md)
    var(--luma-space-lg);

  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  line-height:
    1.4;
}

.character-creator-window:not(.hidden):not(.closing) {
  animation:
    luma-profile-backdrop-enter
    180ms
    ease-out
    both;
}

.character-creator-window:not(.hidden):not(.closing)
.character-creator-card {
  animation:
    luma-profile-card-enter
    240ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;
}

.character-creator-window.closing {
  pointer-events:
    none;

  animation:
    luma-profile-backdrop-exit
    180ms
    ease-in
    both;
}

.character-creator-window.closing
.character-creator-card {
  animation:
    luma-profile-card-exit
    180ms
    ease-in
    both;
}

@media (max-width: 720px) {
  .character-creator-body {
    grid-template-columns:
      1fr;
  }

  .character-creator-preview-area {
    border-right:
      0;

    border-bottom:
      1px solid
      var(--luma-border-soft);
  }
}

/* Character creator polish */
.character-creator-preview-frame {
  padding:
    0;

  background:
    transparent;

  border:
    0;

  border-radius:
    0;

  box-shadow:
    none;
}

/* Character creator skin swatches */
.character-creator-skin-option {
  width:
    46px;

  min-width:
    46px;

  padding:
    6px;
}

.character-creator-skin-swatch {
  width:
    26px;

  height:
    26px;

  display:
    block;

  border:
    1px solid
    rgba(75, 51, 40, 0.22);

  border-radius:
    999px;

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(75, 51, 40, 0.12);
}

.skin-tone-fair {
  background:
    #f3b18f;
}

.skin-tone-peach {
  background:
    #ef977f;
}

.skin-tone-tan {
  background:
    #c9835a;
}

.skin-tone-deep {
  background:
    #7b4a35;
}

.character-creator-actions {
  display: flex;
  justify-content: flex-end;
}

.character-creator-outfit-note {
  color:
    var(--luma-text-secondary);

  font-size:
    var(--luma-font-size-sm);

  line-height:
    1.35;
}

.character-creator-outfit-grid {
  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-lg);

  flex:
    1;

  min-height:
    0;

  overflow-y:
    auto;

  padding:
    2px
    6px
    8px
    2px;
}

.character-creator-outfit-group {
  display:
    flex;

  flex-direction:
    column;

  gap:
    var(--luma-space-sm);
}

.character-creator-outfit-group-title {
  color:
    var(--luma-text-primary);

  font-size:
    var(--luma-font-size-sm);

  font-weight:
    var(--luma-font-weight-bold);
}

.character-creator-clothing-options {
  display:
    grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(104px, 1fr)
    );

  gap:
    var(--luma-space-sm);
}

.character-creator-clothing-card {
  min-height:
    116px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    6px;

  padding:
    8px;

  background:
    rgba(255, 247, 241, 0.88);

  border:
    1px solid
    rgba(201, 151, 121, 0.42);

  border-radius:
    12px;

  color:
    var(--luma-text-primary);

  cursor:
    pointer;

  box-shadow:
    0 1px 2px rgba(75, 51, 40, 0.10),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);

  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.character-creator-clothing-card:hover {
  transform:
    translateY(-1px);

  background:
    #f7e8e5;

  border-color:
    rgba(201, 120, 134, 0.52);

  box-shadow:
    0 2px 5px rgba(75, 51, 40, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.48);
}

.character-creator-clothing-card.active {
  background:
    #f5d7d1;

  border-color:
    #4b3029;

  box-shadow:
    0 0 0 1px #4b3029,
    0 2px 5px rgba(75, 51, 40, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.character-creator-clothing-preview {
  width:
    58px;

  height:
    58px;

  object-fit:
    contain;
}

.character-creator-clothing-label {
  max-width:
    100%;

  overflow:
    hidden;

  color:
    var(--luma-text-primary);

  font-size:
    12px;

  font-weight:
    var(--luma-font-weight-bold);

  text-align:
    center;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.character-creator-tint-options {
  display:
    flex;

  flex-direction:
    column;

  gap:
    6px;
}

.character-creator-tint-options.hidden {
  display:
    none;
}

.character-creator-tint-label {
  color:
    var(--luma-text-secondary);

  font-size:
    11px;

  font-weight:
    var(--luma-font-weight-bold);
}

.character-creator-tint-row {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    7px;
}

.character-creator-tint-swatch {
  width:
    46px;

  height:
    40px;

  padding:
    6px;

  background:
    rgba(255, 247, 241, 0.88);

  border:
    1px solid
    rgba(201, 151, 121, 0.56);

  border-radius:
    10px;

  cursor:
    pointer;

  color:
    transparent;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  box-shadow:
    0 1px 2px rgba(75, 51, 40, 0.10),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);

  outline:
    none;

  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.character-creator-tint-swatch:hover {
  transform:
    translateY(-1px);

  background:
    #f7e8e5;

  border-color:
    rgba(137, 81, 96, 0.62);
}

.character-creator-tint-swatch.active,
.character-creator-tint-swatch.active:hover,
.character-creator-tint-swatch:focus-visible {
  background:
    #4b3328;

  border-color:
    #4b3328;

  box-shadow:
    0 2px 7px rgba(75, 51, 40, 0.20),
    inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.character-creator-tint-swatch-dot {
  width:
    26px;

  height:
    26px;

  display:
    block;

  background:
    var(--character-creator-tint-color);

  border:
    1px solid
    rgba(75, 51, 40, 0.22);

  border-radius:
    999px;

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(75, 51, 40, 0.12);
}

.character-creator-window.signup-mode .character-creator-close-button {
  display:
    none;
}

.character-creator-apply-button:disabled {
  opacity:
    0.68;

  cursor:
    default;
}

/* ========================================
CLOTHING GENDER BADGES
======================================== */

.clothing-gender-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(215, 185, 166, 0.95);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  color: #7a5a49;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.clothing-gender-badge-detail {
  margin: 8px auto 0;
}

.shop-item .clothing-gender-badge,
.wardrobe-item .clothing-gender-badge {
  margin-top: -2px;
}


.item-name-tooltip {
  position: fixed;
  z-index: 1400;
  transform: translate(-50%, -100%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(75, 51, 40, 0.94);
  color: #fff7ed;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(75, 51, 40, 0.22);
  opacity: 1;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.item-name-tooltip.hidden {
  opacity: 0;
  transform: translate(-50%, calc(-100% + 5px));
}

/* Equipped wardrobe checkmark polish */
.wardrobe-item {
  position: relative;
}

.wardrobe-item-checkmark {
  position: absolute;
  top: -11px;
  right: -11px;
  width: 52px;
  height: 52px;

  min-width: 52px;
  min-height: 52px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(75, 51, 40, 0.22));
}


.item-context-gender-line {
  display: block;
  margin-top: 2px;
}

/* Wardrobe card art scale polish */
.wardrobe-item {
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px;
}

.wardrobe-item-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 42px;
  line-height: 1;
  overflow: visible;
}

.wardrobe-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.wardrobe-item-status {
  display: none;
}


.shop-confirm-color-options {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--luma-border-soft);
  border-radius: var(--luma-radius-medium);
  background: var(--luma-surface-ivory);
}

.shop-confirm-color-options.hidden {
  display: none;
}

.shop-confirm-color-label {
  margin-bottom: 9px;
  color: var(--luma-text-secondary);
  font-size: var(--luma-font-size-sm);
  font-weight: var(--luma-font-weight-bold);
}

.shop-confirm-tint-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--luma-text-secondary);
  font-size: var(--luma-font-size-sm);
  font-weight: var(--luma-font-weight-bold);
}

.shop-confirm-tint-preview-swatch {
  width: 52px;
  height: 52px;

  min-width: 52px;
  min-height: 52px;
  border: 1px solid rgba(120, 77, 55, 0.28);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

.creative-catalogue {position:fixed;inset:12% 16%;z-index:900;padding:20px;background:#fff5e8;color:#64434a;border:1px solid #d6b4b5;border-radius:18px;display:flex;flex-direction:column;gap:10px;box-shadow:0 12px 40px #0004;}
.flower-colour-editor {position:fixed;top:80px;right:16px;z-index:1300;width:330px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 96px);overflow:auto;padding:16px;background:#fff8ed;color:#64434a;border:1px solid #d6b4b5;border-radius:16px;box-shadow:0 12px 40px #0004;display:flex;flex-direction:column;gap:12px;}
.flower-colour-editor header {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.garden-lot-backdrop {position:fixed;inset:0;z-index:1400;background:#21142155;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:12px;}
.garden-lot-panel {box-sizing:border-box;width:440px;min-width:0;max-width:100%;max-height:calc(100dvh - 24px);overflow:auto;overflow-wrap:anywhere;background:#fff8ed;color:#64434a;padding:20px;border:2px solid #b79bc7;border-radius:20px;box-shadow:0 12px 40px #0004;display:flex;flex-direction:column;gap:12px;}
.garden-lot-panel header {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.garden-lot-panel header h2 {min-width:0;}.garden-lot-panel header button {flex-shrink:0;}
.garden-lot-panel h2 {font-size:18px;margin:0;}.garden-lot-panel p {font-size:13px;line-height:1.5;margin:0;}
.garden-lot-panel details {padding:10px;border:1px solid #ddcbd5;border-radius:10px;}.garden-lot-panel details details {margin-top:10px;}
.garden-lot-panel summary {cursor:pointer;font-weight:600;}.garden-lot-credit {padding:10px 0;font-size:13px;}
.garden-lot-panel label {display:flex;justify-content:flex-start;align-items:center;gap:8px;font-size:13px;line-height:1.5;}.garden-lot-controls label {flex-direction:column;align-items:stretch;}
.garden-lot-panel input[type="checkbox"] {width:18px;min-width:18px;height:18px;flex:0 0 18px;margin:0;}
.garden-lot-controls {display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px;}.garden-lot-controls select,.garden-lot-controls input {box-sizing:border-box;width:100%;min-width:0;padding:8px;border-radius:8px;border:1px solid #cbb7cb;}
.garden-lot-controls > label {min-width:0;}
.garden-sale-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.returning-guest-window {position:fixed;inset:0;z-index:1500;background:#30243866;display:grid;place-items:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));box-sizing:border-box;}
.returning-guest-window[hidden],.returning-guest-window [hidden] {display:none!important;}
.returning-guest-card {box-sizing:border-box;width:min(420px,100%);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;background:#fff8ed;color:#64434a;padding:20px;border:2px solid #b79bc7;border-radius:20px;box-shadow:0 12px 40px #0004;font:14px var(--luma-font-family,sans-serif);}
.returning-guest-card h2 {font-size:21px;margin:0 0 12px;}
.returning-guest-card p {line-height:1.5;margin:12px 0;}
.returning-guest-card button {box-sizing:border-box;width:100%;min-height:44px;padding:10px;border:1px solid #d5b8ce;border-radius:12px;background:#f2e6ef;color:#64434a;font:600 14px var(--luma-font-family,sans-serif);cursor:pointer;}
.returning-guest-card button:disabled {opacity:.6;cursor:default;}
.returning-guest-card [data-continue] {background:#fffaf2;margin-top:10px;}
.returning-guest-actions {display:grid;gap:10px;margin-top:16px;}
.returning-guest-card label {display:block;margin:12px 0 6px;}
.returning-guest-card input {box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #cbb7cb;border-radius:8px;background:#fffaf2;color:#64434a;color-scheme:light;font:16px var(--luma-font-family,sans-serif);}
.returning-guest-card [data-google-button] {margin:16px 0;min-height:44px;max-width:100%;overflow:hidden;}
.returning-guest-card [data-status]:empty {display:none;}
.guest-upgrade-window .guest-upgrade-card {box-sizing:border-box;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overscroll-behavior:contain;}
.garden-lot-controls :is(select,input[type="number"]) {background:#fffaf2;color:#64434a;color-scheme:light;font:inherit;min-height:40px;}
.garden-lineage-summary {white-space:normal;overflow-wrap:anywhere;padding:8px 10px;border:1px solid #ddcbd5;border-radius:8px;background:#f6efdf;}
.garden-lot-panel summary {white-space:normal;overflow-wrap:anywhere;}
.garden-mutation-choice {display:flex;flex-wrap:wrap;gap:10px;border:1px solid #d4b0c9;border-radius:12px;padding:12px;}.garden-mutation-choice h3,.garden-mutation-choice p {flex-basis:100%;margin:0;}
.planting-action-bar {position:fixed;bottom:54px;left:50%;transform:translateX(-50%);z-index:100;max-width:calc(100vw - 24px);padding:5px;border:1px solid #d4bac8;border-radius:18px;background:#fff8edf2;box-shadow:0 5px 16px #0002;pointer-events:auto;}
.planting-action-bar[hidden] {display:none;}
.planting-action-bar button {display:block;padding:9px 13px;border:1px solid #d4bac8;border-radius:13px;background:#fffaf5;color:#64434a;font:600 12px var(--luma-ui-font, sans-serif);white-space:nowrap;cursor:pointer;}
.planting-action-bar button.active {background:#eee2f5;border-color:#a887b6;}
.planting-action-bar button:focus-visible {outline:2px solid #80516b;outline-offset:2px;}
@media(max-width:600px){.planting-action-bar {bottom:112px;}}
.flower-colour-editor.garden-mutation-editor {box-sizing:border-box;width:700px;max-width:calc(100vw - 24px);top:60px;right:12px;max-height:calc(100dvh - 72px);gap:10px;padding:14px;}
.garden-mutation-editor header {cursor:grab;touch-action:none;}
.garden-mutation-editor .mutation-table-wrap {flex-shrink:0;overflow-x:auto;}
.garden-mutation-editor table {width:100%;min-width:560px;border-collapse:collapse;table-layout:fixed;font-size:12px;}
.garden-mutation-editor th {text-align:left;padding:4px;color:#64434a;background:transparent;}
.garden-mutation-editor th:first-child {width:25%;}
.garden-mutation-editor th:nth-child(2) {width:14%;}
.garden-mutation-editor th:nth-child(3) {width:23%;}
.garden-mutation-editor th:nth-child(4) {width:12%;}
.garden-mutation-editor th:nth-child(5) {width:9%;}
.garden-mutation-editor td {padding:4px;vertical-align:middle;}
.garden-mutation-editor td input,.garden-mutation-editor td select {box-sizing:border-box;width:100%;min-width:0;background:#fffaf5;color:#64434a;border:1px solid #d4bac8;border-radius:6px;padding:6px;font:inherit;}
.garden-mutation-editor td button {font:inherit;padding:6px;width:100%;border-radius:6px;}
.garden-mutation-editor tr.is-selected td {background:#ebdff0;}
.garden-mutation-editor .mutation-colour-sample {display:block;width:24px;height:24px;border-radius:50%;border:1px solid #986e7b;box-shadow:inset 0 0 0 2px #fff5;margin:auto;}
.garden-mutation-editor h3 {font-size:13px;margin:0;overflow-wrap:anywhere;}
.garden-mutation-editor .mutation-sliders {display:flex;flex-direction:column;gap:12px;padding:10px 0;}
.garden-mutation-editor .mutation-apply {display:flex;align-items:center;gap:8px;line-height:1.4;}
.garden-mutation-editor .mutation-apply input {width:18px;height:18px;flex:0 0 18px;margin:0;}
.garden-mutation-editor [hidden] {display:none;}
@media(max-width:480px){
  .flower-colour-editor.garden-mutation-editor {top:12px;max-height:calc(100dvh - 24px);padding:10px;}
  .garden-mutation-editor table {font-size:10px;}
  .garden-mutation-editor td,.garden-mutation-editor th {padding:3px 2px;}
  .garden-mutation-editor td input,.garden-mutation-editor td select,.garden-mutation-editor td button {padding:5px 2px;}
  .garden-mutation-editor .mutation-colour-sample {width:20px;height:20px;}
}
.flower-colour-editor h2,.flower-colour-editor p {margin:0;}
.flower-colour-editor p {font-size:12px;line-height:1.5;}
.flower-colour-editor canvas {width:180px;height:180px;align-self:center;background:#f0f1df;border-radius:12px;}
.flower-colour-editor label {display:grid;grid-template-columns:76px minmax(0,1fr) 32px;gap:8px;align-items:center;font-size:12px;}
.flower-colour-editor input {width:100%;min-width:0;accent-color:#80516b;}
.flower-colour-actions {display:flex;flex-wrap:wrap;gap:8px;}
.flower-colour-editor button {padding:8px 12px;border:1px solid #d4bac8;border-radius:10px;background:#f2e6f0;color:#64434a;cursor:pointer;}
.creative-catalogue h2,.creative-catalogue p {margin:0;}
.crate-drop-editor {inset:10% max(12px,calc((100vw - 850px)/2)) auto;max-height:80vh;overflow:auto;}
.crate-drop-form {overflow:auto;min-height:0;}
.crate-drop-form table {width:100%;border-collapse:collapse;margin:12px 0;}
.crate-drop-form th {text-align:left;color:#64434a;background:transparent;}
.crate-drop-form td {padding:4px;}
.crate-drop-form td input {width:90px;box-sizing:border-box;}
.crate-drop-form td select {max-width:240px;}
.crate-drop-form > button {margin-right:8px;}
.creative-catalogue-list {overflow:auto;min-height:0;flex:1;}
.creative-catalogue-row {display:flex;gap:12px;align-items:center;padding:10px;border-bottom:1px solid #d6b4b555;}
.creative-catalogue-row span:nth-child(2) {flex:1;}
.builder-display-choice {display:block;width:100%;margin-bottom:6px;text-align:left;cursor:pointer;}
.builder-npc-editor {overflow:auto;}
.builder-npc-editor label {display:block;}
.builder-npc-editor textarea,.builder-npc-editor select {display:block;width:100%;box-sizing:border-box;margin-top:6px;}
.builder-npc-editor textarea {padding:10px;border:1px solid #d6b4b5;border-radius:10px;background:#fffaf2;color:#64434a;resize:vertical;min-height:90px;}
.builder-npc-art-preview {max-height:220px;max-width:100%;object-fit:contain;align-self:center;}
.builder-npc-art-preview[hidden] {display:none;}
.builder-display-choice[aria-pressed="true"] {outline:2px solid #ba809b;background:#f9dce8;}
.creative-catalogue button:disabled {opacity:.55;cursor:default;}
.creative-catalogue button,.creative-catalogue input,.creative-catalogue select {padding:8px;border-radius:10px;border:1px solid #d6b4b5;background:#fffaf2;color:#64434a;}
@media(max-width:640px){.creative-catalogue {inset:8% 12px;}.creative-catalogue-row {gap:6px;}}
.creative-catalogue.crate-drop-editor {inset:10% auto auto 50%;transform:translateX(-50%);width:min(440px,calc(100vw - 24px));max-height:80vh;padding:10px;gap:5px;border-radius:10px;}
.crate-drop-editor,.crate-drop-editor * {font-size:10px;line-height:1.3;}
.crate-drop-editor button,.crate-drop-editor input,.crate-drop-editor select {font-size:10px;padding:3px 4px;border-radius:5px;}
.crate-drop-editor .crate-drop-form table {margin:6px 0;}
.crate-drop-editor .crate-drop-form td {padding:2px;}
.crate-drop-editor .crate-drop-form td input {width:48px;}
.crate-drop-editor .crate-drop-form td select {width:130px;max-width:130px;}
.crate-drop-editor .crate-drop-form > button {margin-right:4px;}
.shop-confirm-tint-controls {
  display: grid;
  gap: 10px;
}

.shop-confirm-tint-control {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  color: var(--luma-text-secondary);
  font-size: var(--luma-font-size-sm);
  font-weight: var(--luma-font-weight-bold);
}

.shop-confirm-tint-control input[type="range"] {
  width: 100%;
  accent-color: var(--luma-accent-deep);
}

.shop-confirm-tint-control output {
  text-align: right;
  color: var(--luma-text-primary);
}


/* ========================================
BUILDER NO STEP BUTTON
======================================== */

.builder-no-step-button.active {
  background:
    #6b4050;

  border-color:
    #6b4050;

  color:
    #fff1f5;
}

/* ========================================
NPC DIALOGUE OVERLAY
======================================== */

.npc-dialogue-overlay {
  position:
    fixed;

  inset:
    0;

  z-index:
    1200;

  display:
    grid;

  place-items:
    stretch;

  pointer-events:
    auto;
}

.npc-dialogue-overlay.hidden {
  display:
    none;
}

.npc-dialogue-backdrop {
  position:
    absolute;

  inset:
    0;

  background:
    rgba(
      65,
      48,
      57,
      0.28
    );

  backdrop-filter:
    blur(4px);

  -webkit-backdrop-filter:
    blur(4px);
}

.npc-dialogue-overlay.opening
.npc-dialogue-backdrop {
  animation:
    npc-dialogue-backdrop-enter
    420ms
    ease-out
    both;
}

.npc-dialogue-overlay.closing
.npc-dialogue-backdrop {
  animation:
    npc-dialogue-backdrop-exit
    320ms
    ease-in
    both;
}

.npc-dialogue-stage {
  position:
    relative;

  width:
    100%;

  height:
    100%;

  overflow:
    hidden;

  display:
    grid;

  grid-template-columns:
    minmax(300px, 34vw)
    minmax(520px, 1fr);

  align-items:
    center;

  gap:
    clamp(10px, 2vw, 36px);

  padding:
    clamp(18px, 3vh, 36px)
    clamp(28px, 5vw, 72px)
    clamp(18px, 3vh, 42px);
}

.npc-dialogue-art-panel {
  align-self:
    stretch;

  display:
    flex;

  align-items:
    flex-end;

  justify-content:
    flex-start;

  min-height:
    0;

  overflow:
    visible;

  pointer-events:
    none;
}

.npc-dialogue-art {
  --npc-dialogue-art-x:
    clamp(-28px, -1.8vw, -10px);

  --npc-dialogue-art-y:
    clamp(190px, 30vh, 320px);

  max-width:
    none;

  max-height:
    none;

  width:
    auto;

  height:
    min(126vh, 1160px);

  object-fit:
    contain;

  filter:
    drop-shadow(
      0 18px 28px
      rgba(45, 31, 38, 0.24)
    );

  transform:
    translate(
      var(--npc-dialogue-art-x),
      var(--npc-dialogue-art-y)
    );
}

.npc-dialogue-overlay.opening
.npc-dialogue-art {
  animation:
    npc-dialogue-maid-enter
    420ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

.npc-dialogue-overlay.closing
.npc-dialogue-art {
  animation:
    npc-dialogue-maid-exit
    320ms
    ease-in
    both;
}

.npc-dialogue-content {
  align-self:
    center;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    flex-start;

  gap:
    clamp(18px, 3vh, 34px);

  padding-bottom:
    clamp(32px, 8vh, 92px);
}

.npc-dialogue-overlay.opening
.npc-dialogue-content {
  opacity:
    0;
}

.npc-dialogue-overlay.ready
.npc-dialogue-bubble {
  animation:
    npc-dialogue-bubble-pop
    260ms
    cubic-bezier(0.18, 0.9, 0.24, 1.18)
    both;
}

.npc-dialogue-overlay.ready
.npc-dialogue-primary-button {
  animation:
    npc-dialogue-button-enter
    220ms
    ease-out
    90ms
    both;
}

.npc-dialogue-overlay.closing
.npc-dialogue-bubble {
  animation:
    npc-dialogue-bubble-exit
    280ms
    ease-in
    both;
}

.npc-dialogue-overlay.closing
.npc-dialogue-primary-button {
  animation:
    npc-dialogue-button-exit
    220ms
    ease-in
    both;
}

.npc-dialogue-bubble {
  position:
    relative;

  z-index:
    0;

  width:
    min(780px, 58vw);

  min-height:
    128px;

  padding:
    var(--luma-space-lg)
    var(--luma-space-2xl);

  border:
    1px solid
    rgba(111, 82, 67, 0.16);

  border-radius:
    22px;

  background:
    #fffaf5;

  box-shadow:
    0 22px 50px
    rgba(67, 48, 57, 0.22);

  color:
    var(--luma-text-primary);
}

.npc-dialogue-bubble::before {
  content:
    "";

  position:
    absolute;

  z-index:
    -1;

  left:
    -30px;

  bottom:
    30px;

  width:
    64px;

  height:
    46px;

  background:
    #fffaf5;

  clip-path:
    polygon(
      0 100%,
      100% 0,
      78% 100%
    );
}

.npc-dialogue-name {
  margin-bottom:
    var(--luma-space-sm);

  color:
    var(--luma-accent-deep);

  font-size:
    var(--luma-font-size-lg);

  font-weight:
    var(--luma-font-weight-bold);
}

.npc-dialogue-text {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:35vh;
  overflow-y:auto;
  color:
    var(--luma-text-primary);

  font-size:
    clamp(16px, 1.45vw, 22px);

  font-weight:
    var(--luma-font-weight-semibold);

  line-height:
    1.5;
}

.npc-dialogue-primary-button {
  min-width:
    300px;

  min-height:
    66px;

  border-radius:
    var(--luma-radius-pill);

  font-size:
    var(--luma-font-size-md);

  align-self:
    center;

  margin-right:
    min(8vw, 120px);
}

@media (max-width: 820px) {

  .tutorial-mimi-outro .npc-dialogue-stage { grid-template-columns:minmax(0,1fr); }
  .tutorial-mimi-outro .npc-dialogue-art-panel,
  .tutorial-mimi-outro .npc-dialogue-content { min-width:0; }
  .tutorial-mimi-outro .npc-dialogue-content { width:100%; }
  .tutorial-mimi-outro .npc-dialogue-bubble { width:100%; max-width:100%; }
  .tutorial-mimi-outro .npc-dialogue-primary-button { min-width:0; width:min(100%,300px); }

  .npc-dialogue-stage {
    grid-template-columns:
      1fr;

    align-items:
      end;

    padding:
      22px;
  }

  .npc-dialogue-art {
    --npc-dialogue-art-x:
      0px;

    --npc-dialogue-art-y:
      clamp(70px, 16vh, 150px);

    max-width:
      none;

    max-height:
      none;

    height:
      min(78vh, 720px);

    transform:
      translate(
        var(--npc-dialogue-art-x),
        var(--npc-dialogue-art-y)
      );
  }

  .npc-dialogue-content {
    align-items:
      center;

    padding-bottom:
      10px;
  }

  .npc-dialogue-bubble {
    width:
      min(100%, 640px);
  }

  .npc-dialogue-primary-button {
    margin-right:
      0;
  }

}

@media (max-width:700px), (pointer:coarse) and (max-width:900px) {
  .mimi-dialogue .npc-dialogue-stage {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(0,1fr) auto;
    gap:0;
    padding:max(12px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));
  }
  .mimi-dialogue .npc-dialogue-art-panel {
    grid-column:1; grid-row:1; min-width:0; min-height:0;
    justify-content:center; margin-bottom:-22px;
  }
  .mimi-dialogue .npc-dialogue-art {
    --npc-dialogue-art-x:0px; --npc-dialogue-art-y:0px;
    width:auto; height:min(46dvh,340px); max-height:100%; max-width:100%;
    object-fit:contain; object-position:center bottom;
  }
  .mimi-dialogue .npc-dialogue-content {
    position:relative; z-index:1; grid-column:1; grid-row:2;
    justify-self:center; width:100%; max-width:360px; min-width:0;
    align-items:center; gap:10px; padding-bottom:0;
  }
  .mimi-dialogue .npc-dialogue-bubble {
    box-sizing:border-box; width:100%; max-width:100%; min-height:0;
    padding:12px; border-radius:18px;
  }
  .mimi-dialogue .npc-dialogue-bubble::before {
    left:50%; top:-14px; bottom:auto; width:24px; height:16px;
    transform:translateX(-50%); clip-path:polygon(0 100%,50% 0,100% 100%);
  }
  .mimi-dialogue .npc-dialogue-name { font-size:10px; margin-bottom:5px; }
  .mimi-dialogue .npc-dialogue-text { font-size:10px; line-height:1.4; max-height:32dvh; }
  .mimi-dialogue .npc-dialogue-primary-button {
    box-sizing:border-box; min-width:0; width:min(100%,240px); min-height:44px;
    font-size:10px; margin-right:0;
  }
}

@keyframes npc-dialogue-backdrop-enter {
  from {
    opacity:
      0;
  }

  to {
    opacity:
      1;
  }
}

@keyframes npc-dialogue-backdrop-exit {
  from {
    opacity:
      1;
  }

  to {
    opacity:
      0;
  }
}

@keyframes npc-dialogue-maid-enter {
  from {
    opacity:
      0;

    transform:
      translate(
        calc(var(--npc-dialogue-art-x) - 92px),
        var(--npc-dialogue-art-y)
      );
  }

  to {
    opacity:
      1;

    transform:
      translate(
        var(--npc-dialogue-art-x),
        var(--npc-dialogue-art-y)
      );
  }
}

@keyframes npc-dialogue-maid-exit {
  from {
    opacity:
      1;

    transform:
      translate(
        var(--npc-dialogue-art-x),
        var(--npc-dialogue-art-y)
      );
  }

  to {
    opacity:
      0;

    transform:
      translate(
        calc(var(--npc-dialogue-art-x) - 92px),
        var(--npc-dialogue-art-y)
      );
  }
}

@keyframes npc-dialogue-bubble-pop {
  0% {
    opacity:
      0;

    transform:
      translateY(12px)
      scale(0.86);
  }

  72% {
    opacity:
      1;

    transform:
      translateY(0)
      scale(1.035);
  }

  100% {
    opacity:
      1;

    transform:
      translateY(0)
      scale(1);
  }
}

@keyframes npc-dialogue-button-enter {
  from {
    opacity:
      0;

    transform:
      translateY(10px);
  }

  to {
    opacity:
      1;

    transform:
      translateY(0);
  }
}

@keyframes npc-dialogue-bubble-exit {
  from {
    opacity:
      1;

    transform:
      translateY(0);
  }

  to {
    opacity:
      0;

    transform:
      translateY(26px);
  }
}

@keyframes npc-dialogue-button-exit {
  from {
    opacity:
      1;

    transform:
      translateY(0);
  }

  to {
    opacity:
      0;

    transform:
      translateY(18px);
  }
}







/* ========================================
   SEED AREA CONFIRM BAR
   ======================================== */

.seed-area-confirm-bar {
  position: fixed;
  left: 50%;
  top: 62%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%) translateY(-50%);
  padding: 13px 15px 13px 20px;
  border: 1px solid rgba(124, 74, 61, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 236, 0.96);
  box-shadow:
    0 16px 38px rgba(86, 54, 41, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: #6f493f;
  font-family: var(--luma-ui-font, inherit);
  font-size: 14px;
  font-weight: 800;
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seed-area-confirm-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(calc(-50% + 18px));
}

.seed-area-confirm-bar.closing {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(calc(-50% + 18px));
}

.seed-area-confirm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seed-area-confirm-button {
  touch-action: manipulation;
  min-width: 74px;
  border: 1px solid rgba(124, 74, 61, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 253, 246, 0.92);
  color: #7c4a3d;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.seed-area-confirm-plant {
  border-color: rgba(201, 120, 134, 0.42);
  background: #ca7886;
  color: #fffaf4;
  box-shadow: 0 8px 18px rgba(201, 120, 134, 0.18);
}

.seed-area-confirm-button:hover,
.seed-area-confirm-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(124, 74, 61, 0.16);
}

.seed-area-confirm-cancel:hover,
.seed-area-confirm-cancel:focus-visible {
  border-color: rgba(111, 73, 63, 0.34);
  background: rgba(230, 210, 188, 0.96);
  color: #6f493f;
}

.seed-area-confirm-plant:hover,
.seed-area-confirm-plant:focus-visible {
  background: #bd6f7e;
}

@media (max-width: 720px) {
  .seed-area-confirm-bar {
    left: 50%;
    right: auto;
    top: 62%;
    width: min(calc(100vw - 28px), 360px);
    justify-content: space-between;
    transform: translateX(-50%) translateY(-50%);
    border-radius: 22px;
  }

  .seed-area-confirm-bar.hidden,
  .seed-area-confirm-bar.closing {
    transform: translateX(-50%) translateY(calc(-50% + 18px));
  }
}


/* ========================================
   GUEST ACCOUNT UPGRADE
   ======================================== */

.guest-upgrade-window {
  position:
    fixed;

  inset:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    20px;

  pointer-events:
    auto;

  z-index:
    1000;
}

.guest-upgrade-window.hidden {
  display:
    none;
}

.guest-upgrade-window:not(.hidden):not(.closing) {
  animation:
    luma-items-backdrop-enter
    200ms
    ease-out
    both;
}

.guest-upgrade-window.closing {
  pointer-events:
    none;

  animation:
    luma-items-backdrop-exit
    180ms
    ease-in
    both;
}

.guest-upgrade-card {
  width:
    min(390px, calc(100vw - 36px));

  max-height:
    min(680px, calc(100vh - 44px));

  overflow:
    auto;

  padding:
    20px;
}

.guest-upgrade-window:not(.hidden):not(.closing)
.guest-upgrade-card {
  animation:
    luma-items-window-enter
    220ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    both;
}

.guest-upgrade-window.closing
.guest-upgrade-card {
  animation:
    luma-items-window-exit
    180ms
    ease-in
    both;
}

.guest-upgrade-header {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    14px;

  margin-bottom:
    14px;
}

.guest-upgrade-subtitle {
  margin-top:
    4px;

  color:
    var(--luma-text-muted);

  font-size:
    12px;

  font-weight:
    700;
}

.guest-upgrade-form {
  display:
    flex;

  flex-direction:
    column;

  gap:
    9px;
}

.guest-upgrade-form label {
  color:
    var(--luma-text-primary);

  font-size:
    12px;

  font-weight:
    800;
}

.guest-upgrade-message {
  min-height:
    18px;

  color:
    #9f5b68;

  font-size:
    12px;

  font-weight:
    800;

  text-align:
    center;
}

.guest-upgrade-message.success {
  color:
    #4f8b63;
}

.guest-upgrade-submit-button {
  margin-top:
    4px;
}







.shop-item-preview:has(.shop-item-preview-image-tree-sprout) {

  overflow:
    visible;

}

.shop-item-preview-image-tree-sprout {

  position:
    absolute;

  left:
    50%;

  top:
    50%;

  width:
    var(--shop-tree-sprout-preview-size);

  height:
    var(--shop-tree-sprout-preview-size);

  max-width:
    none;

  max-height:
    none;

  transform:
    translate(
      calc(-50% + var(--shop-tree-sprout-preview-offset-x)),
      calc(-50% + var(--shop-tree-sprout-preview-offset-y))
    );

}

.shop-purchase-image-tree-sprout {

  position:
    absolute;

  left:
    50%;

  top:
    50%;

  width:
    var(--shop-purchase-tree-sprout-preview-size);

  height:
    var(--shop-purchase-tree-sprout-preview-size);

  max-width:
    none;

  max-height:
    none;

  transform:
    translate(
      calc(-50% + var(--shop-purchase-tree-sprout-preview-offset-x)),
      calc(-50% + var(--shop-purchase-tree-sprout-preview-offset-y))
    );

}

/* ========================================
WORLD CONTEXT RIBBON FOUNDATION
======================================== */

.world-context-menu {

  width:
    auto;

  min-width:
    48px;

  padding:
    5px;

  border:
    1px solid
    rgba(255, 246, 235, 0.42);

  border-radius:
    999px;

  background:
    linear-gradient(
      180deg,
      rgba(82, 52, 43, 0.74),
      rgba(53, 34, 31, 0.62)
    );

  color:
    #fff8ef;

  box-shadow:
    0 14px 34px
      rgba(45, 28, 24, 0.24),
    inset 0 1px 0
      rgba(255, 255, 255, 0.28);

  backdrop-filter:
    blur(12px)
    saturate(1.18);

  -webkit-backdrop-filter:
    blur(12px)
    saturate(1.18);

}


.world-context-close,
.world-context-heading {

  display:
    none;

}


.world-context-actions {

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

  align-items:
    center;

}


.world-context-ribbon-action {

  position:
    relative;

  width:
    38px;

  height:
    38px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px solid
    rgba(255, 248, 239, 0.34);

  border-radius:
    14px;

  background:
    rgba(255, 246, 235, 0.72);

  color:
    #6d493b;

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.7),
    0 5px 14px
      rgba(42, 26, 22, 0.14);

  cursor:
    pointer;

  transition:
    transform 130ms ease,
    background 130ms ease,
    color 130ms ease,
    box-shadow 130ms ease;

}


.world-context-ribbon-action.primary {

  background:
    rgba(255, 251, 242, 0.86);

}


.world-context-ribbon-action:hover,
.world-context-ribbon-action:focus-visible {

  background:
    #fffaf2;

  color:
    #4e2f25;

  transform:
    translateX(2px)
    scale(1.04);

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.86),
    0 8px 18px
      rgba(42, 26, 22, 0.2);

  outline:
    none;

}


.world-context-ribbon-action:active {

  transform:
    translateX(1px)
    scale(0.98);

}


.world-context-ribbon-action:disabled {

  opacity:
    0.42;

  cursor:
    not-allowed;

  filter:
    grayscale(0.35);

}


.world-context-ribbon-icon {

  font-size:
    18px;

  line-height:
    1;

  pointer-events:
    none;

}


.world-context-ribbon-label {

  position:
    absolute;

  left:
    calc(100% + 8px);

  top:
    50%;

  min-width:
    max-content;

  padding:
    7px 11px;

  border:
    1px solid
    rgba(255, 248, 239, 0.64);

  border-radius:
    999px;

  background:
    rgba(255, 250, 242, 0.94);

  color:
    #6b4437;

  font-size:
    12px;

  font-weight:
    800;

  letter-spacing:
    0.01em;

  box-shadow:
    0 8px 20px
      rgba(42, 26, 22, 0.16);

  opacity:
    0;

  transform:
    translate(-4px, -50%)
    scale(0.96);

  transform-origin:
    left center;

  pointer-events:
    none;

  transition:
    opacity 120ms ease,
    transform 120ms ease;

}


.world-context-ribbon-action:hover
.world-context-ribbon-label,
.world-context-ribbon-action:focus-visible
.world-context-ribbon-label {

  opacity:
    1;

  transform:
    translate(0, -50%)
    scale(1);

}


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

  .world-context-ribbon-action,
  .world-context-ribbon-label,
  .world-context-menu:not(.hidden) {

    animation:
      none;

    transition:
      none;

  }

}

/* ========================================
WORLD CONTEXT TARGET PICKER
======================================== */

.world-context-menu.target-picker {

  min-width:
    178px;

  padding:
    7px;

  border-radius:
    20px;

}


.world-context-menu.target-picker
.world-context-actions {

  align-items:
    stretch;

  gap:
    5px;

}


.world-context-target-choice {

  width:
    100%;

  min-height:
    42px;

  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  padding:
    6px 9px;

  border:
    1px solid
    rgba(255, 248, 239, 0.34);

  border-radius:
    15px;

  background:
    rgba(255, 246, 235, 0.7);

  color:
    #674234;

  text-align:
    left;

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.64);

  cursor:
    pointer;

  transition:
    transform 130ms ease,
    background 130ms ease,
    box-shadow 130ms ease;

}


.world-context-target-choice:hover,
.world-context-target-choice:focus-visible {

  background:
    rgba(255, 250, 242, 0.94);

  transform:
    translateX(2px);

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.78),
    0 7px 16px
      rgba(42, 26, 22, 0.14);

  outline:
    none;

}


.world-context-target-choice-icon {

  width:
    28px;

  height:
    28px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0 0 auto;

  border-radius:
    11px;

  background:
    rgba(255, 255, 255, 0.46);

  font-size:
    15px;

}


.world-context-target-choice-text {

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    1px;

}


.world-context-target-choice-name {

  overflow:
    hidden;

  color:
    #58372d;

  font-size:
    12px;

  font-weight:
    850;

  line-height:
    1.1;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}


.world-context-target-choice-meta {

  overflow:
    hidden;

  color:
    rgba(105, 72, 60, 0.72);

  font-size:
    10px;

  font-weight:
    750;

  line-height:
    1.1;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

}

.world-context-menu.action-ribbon {

  min-width:
    48px;

  border-radius:
    999px;

}


.world-context-menu.action-ribbon
.world-context-actions {

  align-items:
    center;

}

/* Compact, movable creative catalogue; other builder panels retain their layout. */
.creative-catalogue.creative-catalogue-compact {inset:auto;left:max(12px,calc(50vw - 220px));top:min(12vh,64px);width:min(440px,calc(100vw - 24px));height:min(560px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;padding:12px;gap:8px;border-radius:14px;}
.creative-catalogue-compact .creative-catalogue-header {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;cursor:grab;touch-action:none;user-select:none;}
.creative-catalogue-compact h2 {font-size:18px;}
.creative-catalogue-compact p {font-size:12px;}
.creative-catalogue-compact > input,.creative-catalogue-compact > select {width:100%;box-sizing:border-box;flex-shrink:0;}
.creative-catalogue-compact .creative-catalogue-row {gap:8px;padding:6px 2px;font-size:13px;}
.creative-catalogue-compact .creative-catalogue-row span:nth-child(2) {min-width:0;overflow-wrap:anywhere;}
.creative-catalogue-compact button {padding:5px 8px;font-size:12px;flex-shrink:0;}
.creative-catalogue-compact .creative-catalogue-list {overscroll-behavior:contain;}
.creative-catalogue-compact.creative-catalogue-dragging .creative-catalogue-header {cursor:grabbing;}

.creative-catalogue.creative-paint-palette {inset:auto;left:auto;right:12px;top:64px;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 88px);overflow:auto;box-sizing:border-box;padding:14px;gap:10px;}
.creative-paint-palette h2 {font-size:18px;}
.creative-paint-palette p {font-size:12px;}
.creative-paint-swatch {height:54px;flex-shrink:0;border:1px solid #64434a55;border-radius:10px;}

.crate-drop-editor h2 {cursor:grab;touch-action:none;padding:4px 0;}
.crate-drop-editor.crate-drop-dragging h2 {cursor:grabbing;}

/* Maid 2 crafting: a compact preview and material exchange. */
.maid-crafting-window {position:fixed;z-index:1300;left:50%;top:50%;transform:translate(-50%,-50%);width:320px;box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow:auto;padding:16px;border:1px solid #a78b68;border-radius:16px;background:#fff8ec;color:#4d382d;box-shadow:0 12px 40px #0005;font-size:12px;}
.maid-crafting-window h2 {font-size:16px;margin:0 28px 8px 0;}
.maid-crafting-window h2 + button {position:absolute;right:12px;top:10px;width:28px;height:28px;min-width:0;min-height:0;padding:0;}
.maid-crafting-window canvas {display:block;width:192px;height:112px;margin:8px auto;pointer-events:none;}
.maid-crafting-window h3 {margin:8px 0;font-size:14px;}
.maid-crafting-window .shop-confirm-tint-control {display:grid;grid-template-columns:65px 1fr 32px;gap:8px;align-items:center;margin:8px 0;padding:0;min-height:0;height:24px;font-size:12px;}
.maid-crafting-window input[type=range] {width:100%;height:20px;margin:0;}
.maid-crafting-window [data-craft] {width:100%;margin-top:10px;}
.maid-crafting-window [data-status] {min-height:32px;line-height:1.4;}
.maid-crafting-window [data-swatch] {display:inline-block;width:18px;height:18px;min-width:18px;min-height:18px;border:1px solid #a78b68;border-radius:5px;}
.login-preferences {display:flex;flex-wrap:wrap;gap:8px 18px;margin:4px 0 0;}
#joinScreen #authMessage:empty {display:none;}
#joinScreen #joinForm .login-preferences label {display:flex;align-items:center;gap:7px;position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;font-size:12px;cursor:pointer;}
#joinScreen .login-preferences input[type=checkbox] {width:16px;height:16px;min-height:16px;padding:0;margin:0;flex-shrink:0;accent-color:#6f5147;}

/* Portrait character creation: keep categories and the submit action reachable. */
/* Mobile chat overrides saved desktop sizes without changing those preferences. */
.mobile-cancel-tool {display:none;}
@media (max-width: 700px), (pointer: coarse) and (max-width: 900px) {
  .mobile-cancel-tool:not([hidden]) {display:block;position:fixed;right:max(12px,env(safe-area-inset-right));top:min(calc(174px + env(safe-area-inset-top)),calc(100dvh - 56px - env(safe-area-inset-bottom)));z-index:95;min-height:44px;min-width:110px;padding:10px 14px;border:1px solid #bc9fb6;border-radius:14px;background:#fff8ed;color:#64434a;font:700 14px var(--luma-font-family);box-shadow:0 4px 14px #0002;pointer-events:auto;}
  .mobile-cancel-tool:focus-visible {outline:2px solid #80516b;outline-offset:3px;}
  .chat-panel {max-width:calc(100vw - 28px);}
  .chat-panel:not(.peek-mode) {height:min(24dvh,140px) !important;min-height:120px;}
  .chat-panel.peek-mode {height:clamp(80px,12.5dvh,100px) !important;min-height:80px;}
  .chat-panel,.chat-layout-menu,.chat-peek-preview {font-size:10px;}
  .chat-panel .messages {padding:4px 6px;scroll-padding:4px;}
  .chat-panel .messages:empty::before {font-size:10px;}
  .chat-panel .message {padding:3px 5px;margin-bottom:3px;border-radius:6px;line-height:1.3;}
  .chat-panel .message-header {display:inline;}
  .chat-panel .message-name {display:inline-block;max-width:110px;font-size:10px;line-height:1.3;vertical-align:bottom;}
  .chat-panel .message-name::after {content:':';}
  .chat-panel .message-time {float:right;margin-left:5px;font-size:10px;line-height:1.3;}
  .chat-panel .message-text {display:inline;margin:0 0 0 4px;font-size:10px;line-height:1.3;}
  .chat-panel .chat-form {padding:3px 24px 3px 5px;gap:4px;}
  .chat-panel .chat-form #messageInput {font-size:8px;height:28px;min-height:28px;padding:3px 7px;box-sizing:border-box;}
  .chat-panel .chat-send-button {width:28px;height:28px;min-width:28px;min-height:28px;font-size:12px;flex-shrink:0;}
  .hud-top-right .crown-display {padding:5px 9px 5px 23px;font-size:10px;min-height:24px;box-sizing:border-box;}
  .hud-top-right #crownAmount {font-size:10px;}
  .hud-top-right .crown-icon {width:32px;height:32px;left:-9px;}
  .phone-chat-focused {transform:translate(var(--phone-chat-x,0px),var(--phone-chat-y,0px))!important;}
  .phone-chat-focused .chat-panel {max-height:var(--phone-chat-height)!important;min-height:min(80px,var(--phone-chat-height))!important;}
  .chat-panel .chat-empty-state,.chat-panel .chat-connection-status,
  .chat-panel .chat-new-message-indicator,.chat-layout-menu-title,
  .chat-layout-menu-item,.chat-peek-preview-name,.chat-peek-preview-text {font-size:10px;line-height:1.3;}
  .chat-layout-menu {padding:4px;}
  .chat-layout-menu-title,.chat-layout-menu-item {padding:4px 6px;}
}

@media (max-width: 720px) {
  .character-creator-window {padding:12px;}
  .character-creator-card {width:100%;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);max-width:100%;}
  .character-creator-header {padding:14px 16px;flex-shrink:0;}
  .character-creator-body {display:flex;flex-direction:column;min-width:0;}
  .character-creator-preview-area {padding:8px;flex:0 0 auto;}
  #characterCreatorPreviewCanvas {width:min(180px,30dvh);max-width:100%;}
  .character-creator-controls {flex:1;min-width:0;padding:12px 16px;gap:12px;}
  .character-creator-tabs {flex-wrap:wrap;flex-shrink:0;gap:6px;}
  .character-creator-tab {flex:1 0 28%;min-width:0;min-height:40px;padding:8px;}
  .character-creator-tab-panel {overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;}
  .character-creator-tab-panel > .character-creator-section {flex-shrink:0;}
  .character-creator-hair-section {flex:0 0 auto;overflow:visible;}
  .character-creator-hair-grid,.character-creator-outfit-grid {flex:0 0 auto;overflow:visible;}
  .character-creator-actions {flex-shrink:0;}
}

/* Touch movement feedback is created only by the touch gesture controller. */
.touch-move-indicator {position:fixed;z-index:12000;width:44px;height:44px;transform:translate(-50%,-50%);pointer-events:none;user-select:none;}
.touch-move-indicator[hidden] {display:none;}
.touch-move-indicator img {position:absolute;width:32px;height:32px;left:6px;top:6px;object-fit:contain;}
.touch-move-indicator svg {position:absolute;inset:0;width:44px;height:44px;overflow:visible;transform:rotate(-90deg);}
.touch-move-indicator circle {fill:none;stroke-width:3;}
.touch-move-ring-track {stroke:rgba(68,47,39,.35);}
.touch-move-ring-progress {stroke:#fff3dc;stroke-dasharray:100;stroke-dashoffset:100;}
.touch-move-indicator.charging .touch-move-ring-progress {animation:touch-move-charge 300ms linear forwards;}
.touch-move-indicator.engaged .touch-move-ring-progress {stroke-dashoffset:0;}
.touch-move-indicator.engaged svg {animation:touch-move-engaged 350ms ease-out forwards;}
@keyframes touch-move-charge {to {stroke-dashoffset:0;}}
@keyframes touch-move-engaged {from {transform:rotate(-90deg) scale(1);opacity:1;}to {transform:rotate(-90deg) scale(1.65);opacity:0;}}
/* Crafting shop uses the bag's item cards without changing inventory layout. */
.maid-crafting-window.crafting-shop {width:680px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:0;display:flex;flex-direction:column;overflow:hidden;font-size:12px;}
.crafting-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #e4d4c2;cursor:move;touch-action:none;flex-shrink:0;}
.crafting-header h2 {margin:0;font-size:16px;}
.crafting-header button {position:static;min-width:28px;}
.crafting-body {min-height:0;overflow:auto;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:16px;}
.crafting-tabs {display:flex;flex-wrap:wrap;gap:4px;margin-bottom:10px;}
.crafting-tabs [aria-pressed=true] {background:#75574b;color:white;}
.crafting-shop .crafting-grid {grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px;padding:0;overflow:visible;}
.crafting-shop .inventory-slot {min-width:0;font-size:11px;gap:4px;box-sizing:border-box;}
.crafting-shop .inventory-slot.selected {border:2px solid #a96f83;background:#fcf0f3;}
.crafting-shop .inventory-item-icon {width:48px;height:48px;overflow:hidden;}
.crafting-shop .inventory-item-image {width:100%;height:100%;object-fit:contain;}
.crafting-shop .inventory-item-name {font-size:11px;line-height:1.2;text-align:center;}
.crafting-shop .inventory-quantity {font-size:10px;}
.crafting-detail {border-left:1px solid #e4d4c2;padding-left:16px;min-width:0;}
.crafting-detail h3 {margin:0 0 6px;}
.crafting-detail h4 {margin:8px 0;}
.crafting-shop .crafting-output-preview {width:192px;height:112px;margin:8px auto;}
.crafting-material {display:grid;grid-template-columns:26px 1fr auto;gap:6px;align-items:center;margin:4px 0;}
.crafting-shop .crafting-material .inventory-item-icon {width:26px;height:26px;font-size:20px;}
.crafting-material.insufficient strong {color:#b33f50;}
.crafting-colours {margin-top:10px;}
.crafting-shop .crafting-status {flex-shrink:0;min-height:0;margin:0;padding:10px 16px;border-top:1px solid #e4d4c2;line-height:1.4;}
.crafting-shop:has(.crafting-editor-recipes) .crafting-body {display:block;}
.crafting-editor-recipes {display:grid;gap:8px;margin:10px 0;}
.crafting-recipe {min-width:0;border:1px solid #dfcab9;border-radius:8px;padding:10px;margin:0;}
.crafting-recipe legend {font-weight:600;}
.crafting-editor-output,.crafting-editor-material {display:grid;grid-template-columns:minmax(0,1fr) 64px auto;gap:6px;margin:6px 0;align-items:center;}
.crafting-shop select,.crafting-shop input[type=number] {min-width:0;width:100%;box-sizing:border-box;padding:6px;font-size:12px;}
.crafting-shop input:not([type=range]) {border:1px solid #d9c5b5;border-radius:6px;}
.crafting-shop button {font-size:12px;}
@media(max-width:600px) {
 .crafting-body {grid-template-columns:1fr;gap:12px;}
 .crafting-detail {border-left:0;border-top:1px solid #e4d4c2;padding:12px 0 0;}
 .crafting-shop .crafting-grid {grid-template-columns:repeat(auto-fill,minmax(80px,1fr));}
 .crafting-shop .shop-confirm-tint-control {min-height:32px;}
 .crafting-editor-output {grid-template-columns:minmax(0,1fr) 58px;}
 .crafting-editor-output button {grid-column:1 / -1;}
 .crafting-header {padding:10px 12px;}
}

/* Searchable item choices in the builder crafting table editor. */
.crafting-search-picker { position:relative; min-width:0; }
.crafting-search-picker > input { width:100%; min-width:0; box-sizing:border-box; padding:7px 22px 7px 8px; font:inherit; font-size:12px; color:#684b3d; background:#fffaf5; }
.crafting-search-picker::after { content:'▾'; position:absolute; right:8px; top:7px; pointer-events:none; color:#967b68; }
.crafting-search-results { position:absolute; z-index:10; top:calc(100% + 3px); left:0; right:0; max-height:160px; overflow-y:auto; padding:4px; border:1px solid #d9c5b5; border-radius:8px; background:#fffaf5; box-shadow:0 4px 12px #593a2420; }
.crafting-search-results[hidden] { display:none; }
.crafting-search-picker.opens-up .crafting-search-results { top:auto; bottom:calc(100% + 3px); }
.crafting-shop .crafting-search-option { display:block; width:100%; margin:0; padding:7px 8px; border:0; border-radius:5px; text-align:left; font:inherit; font-size:12px; color:#684b3d; background:transparent; white-space:normal; }
.crafting-shop .crafting-search-option:hover,.crafting-shop .crafting-search-option.active { background:#eadbea; }
.crafting-search-empty { margin:4px; font-size:12px; color:#967b68; }

/* Player-anchored temporary clothing preview controls. */
.try-on-controls .shop-confirm-tint-control { grid-template-columns:64px minmax(0,1fr) 30px; gap:6px; margin:10px 0 0; min-height:28px; padding:0; font-size:12px; }
.try-on-controls input[type="range"] { min-width:0; }
.item-drop-countdown { font-weight:700; }

/* Mixed seed choices share the planting toolbar; locks are local to the account. */
.planting-action-bar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;width:max-content}
.planting-action-bar button[hidden],#mixedSeedLocks[hidden]{display:none}
.mixed-seed-toggle{display:flex;align-items:center;gap:6px;padding:7px;color:#64434a;font-size:12px;cursor:pointer}
#mixedSeedLocks{position:absolute;bottom:calc(100% + 8px);left:0;right:0;min-width:240px;max-height:min(45vh,360px);overflow:auto;overscroll-behavior:contain;background:#fffaf4;border:1px solid #d4bac8;border-radius:14px;padding:10px;box-shadow:0 5px 16px #0002}
#mixedSeedLocks p{font-size:12px;color:#64434a;margin:3px 0 9px}
#mixedSeedLocks label{display:flex;align-items:center;gap:9px;padding:8px 2px;font-size:12px;color:#64434a;cursor:pointer}
.world-zoom-button{min-width:32px;min-height:34px;border:0;border-radius:15px;background:transparent;color:#684e43;font:600 13px Arial,sans-serif;cursor:pointer;touch-action:manipulation}
.world-zoom-button:disabled{opacity:.4;cursor:default}.world-zoom-button:focus-visible{outline:2px solid #80516b}
.planting-action-bar .mixed-seed-toggle{flex-direction:row;white-space:nowrap}
.mixed-seed-toggle input,#mixedSeedLocks input{width:16px;height:16px;min-width:16px;flex:0 0 16px;margin:0;accent-color:#80516b}
#mixedSeedLocks label span{min-width:0;overflow-wrap:anywhere}

/* Compact desktop zoom pill; mobile retains wheel/pinch camera controls. */
#worldZoomControls{width:110px;gap:0;padding:2px;min-height:30px}
#worldZoomControls[hidden]{display:none}
#worldZoomControls .world-zoom-button{padding:0;min-height:24px;min-width:26px;font-size:11px;line-height:24px;flex:1}
#worldZoomControls .world-zoom-button:nth-child(2){min-width:44px}
#worldZoomControls .world-zoom-button:not(:disabled):is(:hover,:active,:focus-visible){background:var(--luma-mocha,#655047);color:#fff}
.screen-transition-overlay.build-check-pending{pointer-events:auto}
.build-check-pending .screen-transition-loading-text{width:min(520px,calc(100vw - 48px));white-space:normal;text-align:center}
.build-check-pending .asset-load-retry{position:absolute;top:calc(100% + 68px);left:50%;transform:translateX(-50%);white-space:nowrap;pointer-events:auto}
.home-spawn-placement{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:1500;display:flex;gap:12px;align-items:center;width:max-content;max-width:calc(100vw - 40px);padding:12px;border:1px solid #d3bdac;border-radius:16px;background:#fff8ed;color:#655047;font:13px var(--luma-font-family)}
.home-background-editor{position:fixed;inset:0;z-index:1600;background:#30232555;display:grid;place-items:center;padding:12px;box-sizing:border-box}
.home-background-editor section{box-sizing:border-box;width:min(400px,100%);max-height:calc(100dvh - 24px);overflow:auto;background:#fff8ed;color:#655047;border:1px solid #d3bdac;border-radius:18px;padding:20px;box-shadow:0 8px 30px #30232544}
.home-background-editor label{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:12px 0;font-size:13px}
.home-background-editor [hidden]{display:none}.home-background-editor select,.home-background-editor fieldset input{box-sizing:border-box;max-width:100%;padding:8px;border:1px solid #d3bdac;border-radius:8px;background:#fffaf4;color:#655047}
.home-background-editor fieldset input{display:block;width:100%;margin:8px 0}.home-background-editor footer{display:flex;gap:10px;margin-top:14px}.home-background-editor button,.home-spawn-placement button{background:#655047;color:white;border-radius:10px;padding:9px 12px;font-size:12px}
.home-background-preview{height:110px;border:1px solid #d3bdac;border-radius:12px}.home-background-editor h2{margin:0 0 16px;font-size:20px}
.home-background-editor input[type=color]{appearance:auto;color-scheme:light;box-sizing:border-box;width:76px;min-width:76px;height:34px;min-height:34px;padding:2px;border:1px solid #d3bdac;border-radius:6px;background:#fffaf4}
