@font-face {
  font-family: Wish Fraunces;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Wish Inter;
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

.wish-toolbar {
  position: absolute;
  z-index: 36;
  top: var(--tool-top);
  right: calc(var(--tool-right) + 4 * var(--tool-step));
}
#wishShopOpen {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: var(--tool-size);
  height: var(--tool-size);
  padding: 3px 4px 3px 9px;
  border: 1px solid #bc9e6a;
  border-radius: 99px;
  background: #1a223bf5;
  color: #ffdfa0;
  touch-action: manipulation;
  box-shadow: 0 2px 7px #10192660;
}
#wishShopOpen:hover { background: #2c2e49; }
#wishShopOpen:focus-visible,
#wishShop :is(button, input):focus-visible,
#wishAccountSettings :is(button, a):focus-visible {
  outline: 2px solid #ffd990;
  outline-offset: 3px;
}
.wish-hud-balance {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 750;
  font-size: 14px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wish-hud-balance img, .wish-shop-balance img { object-fit: contain; }
.wish-hud-avatar, .wish-profile-avatar {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  flex: none;
  overflow: hidden;
  border: 1px solid #dfbf7c;
  border-radius: 50%;
  background: #1b2846;
}
.wish-hud-avatar { width: calc(var(--tool-size) - 8px); aspect-ratio: 1; }
.wish-hud-avatar img, .wish-profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  transform-origin: 50% 61%;
}
.wish-hud-avatar.is-outfit img, .wish-profile-avatar.is-outfit img {
  transform: scale(1.2);
  transform-origin: 50% 45%;
}
body.warehouse .wish-toolbar, body:is(.skiing,.warehouse) #wishGain {
  display: none;
}
body.skiing .wish-toolbar {
  right: calc(var(--tool-right) + 2 * var(--tool-step));
}
#gameViewport:has(.wish-toolbar) header .prototype {
  margin-inline-end: calc(4 * var(--tool-step) + 108px);
}
#wishGain {
  position: absolute;
  z-index: 34;
  top: calc(var(--tool-top) + var(--tool-size) + 9px);
  right: var(--tool-right);
  max-width: min(280px, 77vw);
  padding: 8px 12px;
  border: 1px solid #d7b674;
  border-radius: 8px;
  background: #22253ef2;
  color: #ffecbd;
  font: 600 13px/1.3 Wish Inter, Arial, sans-serif;
  pointer-events: none;
}
#wishGain:empty {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
}
.wish-finish-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wish-finish-actions #finishShop { background: #674534; }

#gameViewport #wishShop {
  --wish-ink: #f8eedc;
  --wish-soft: #bcc5d8;
  --wish-gold: #f3cf8a;
  --wish-line: #d2ba8249;
  --wish-deep: #171c34;
  inset: 0;
  width: min(1100px, calc(100vw - 48px));
  max-width: none;
  max-height: min(880px, calc(100dvh - 52px));
  margin: auto;
  border: 1px solid #d9b77e;
  border-radius: 22px;
  background: linear-gradient(135deg, #252139, var(--wish-deep) 78%);
  color: var(--wish-ink);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 22px 86px #090a1dcb, inset 0 1px #fbdc9a4d;
  font: 500 14px/1.5 Wish Inter, Arial, sans-serif;
  color-scheme: dark;
}
#gameViewport #wishShop[open] { display: flex; flex-direction: column; }
#gameViewport #wishShop::backdrop { background: #0c1124c4; backdrop-filter: blur(4px); }
#wishShop h2, #wishShop h3, #wishShop .wish-profile-identity strong {
  margin: 0;
  color: var(--wish-ink);
  font-family: Wish Fraunces, Georgia, serif;
  font-weight: 660;
  letter-spacing: -.025em;
}
#wishShop button { cursor: pointer; }
#wishShop button:disabled { cursor: default; }
#wishShop [hidden] { display: none !important; }
.wish-shop-head {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  padding: 14px 23px;
  border-bottom: 1px solid var(--wish-line);
  background: #22213b;
}
.wish-shop-heading { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.wish-office-mark img { display: block; object-fit: contain; }
#wishShopTitle { font-size: clamp(22px, 3.3vw, 31px); line-height: 1.05; }
.wish-shop-balance {
  display: grid;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--wish-line);
  border-radius: 12px;
  background: #392a41;
  color: #f4d697;
  line-height: 1.2;
}
.wish-shop-balance > span { color: #e9d8cc; font-size: 11px; }
.wish-shop-balance > div { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.wish-shop-balance strong { font-size: 15px; font-variant-numeric: tabular-nums; }
#wishShopClose, #wishAccountClose {
  flex: none;
  width: 42px;
  min-width: 0;
  height: 42px;
  padding: 0 0 5px;
  border: 1px solid var(--wish-line);
  border-radius: 50%;
  background: #ffffff08;
  color: var(--wish-gold);
  font: 400 29px/1 Arial, sans-serif;
}
#wishShopClose:hover, #wishAccountClose:hover { background: #fff4d927; }
.wish-shop-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: clamp(12px, 2vw, 23px);
}
.wish-profile {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: clamp(112px, 18vw, 220px);
  isolation: isolate;
  overflow: hidden;
  padding: clamp(13px, 2.2vw, 24px);
  border: 1px solid #d8c29071;
  border-radius: 12px;
  background: #1b2846;
}
.wish-profile-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 39%;
}
.wish-profile::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#081b28e8 2%,#081b288e 32%,transparent 69%),linear-gradient(0deg,#071a2588,transparent 62%);
  content: "";
}
.wish-profile-identity { display: flex; align-items: center; gap: 13px; min-width: 0; color: #fff6e6; }
.wish-profile-identity div { min-width: 0; }
.wish-profile-avatar { width: clamp(43px, 7vw, 64px); aspect-ratio: 1; border-width: 2px; box-shadow: 0 0 0 3px #263352; }
.wish-profile-caption { display: block; margin-bottom: 3px; color: #f3d9ac; font-size: 11px; font-weight: 650; }
#wishShop .wish-profile-identity strong {
  display: block;
  font-size: clamp(22px, 3.8vw, 35px);
  line-height: 1.01;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wish-profile-controls {
  display: grid;
  grid-template-columns: minmax(0, 30rem) auto;
  justify-content: space-between;
  align-items: start;
  gap: 12px 24px;
  margin-top: 18px;
}
.wish-name-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--wish-soft);
  font-size: 13px;
  font-weight: 650;
}
.wish-name-fields { display: flex; gap: 8px; }
#wishNameInput {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #876e62;
  border-radius: 8px;
  background: #131a30;
  color: var(--wish-ink);
  font: 650 16px/1.35 Wish Inter, Arial, sans-serif;
}
#wishNameSave {
  flex: none;
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid #87625e;
  border-radius: 8px;
  background: #4b2e47;
  color: var(--wish-ink);
  font: 700 13px/1.35 Wish Inter, Arial, sans-serif;
  white-space: nowrap;
}
#wishNameSave:hover:not(:disabled) { background: #623a55; }
#wishNameSave:disabled { opacity: .65; }
#wishAccountOpen {
  justify-self: end;
  margin-top: 24px;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--wish-gold);
  font: 650 13px/1.35 Wish Inter, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: start;
}
#wishAccountOpen:hover { color: #ffdfa5; }
.wish-form-status { margin: 0; color: #f9d293; font-size: 12px; line-height: 1.5; }
.wish-form-status:not(:empty) { margin-top: 8px; }
.wish-gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: clamp(20px, 3vw, 34px);
}
.wish-gallery-head > :first-child { flex: 1 1 12rem; }
#wishShop #wishCollectionTitle {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.1;
}
.wish-gallery-head p {
  margin: 6px 0 0;
  color: var(--wish-soft);
  font-size: 13px;
  line-height: 1.55;
}
#gameViewport #wishAccountSettings {
  --wish-gold: #f3cf8a;
  --wish-line: #d2ba8249;
  inset: 0;
  width: min(390px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d9b77e;
  border-radius: 16px;
  background: #22213b;
  color: #f8eedc;
  box-shadow: 0 20px 50px #090a1dbe;
  font: 500 14px/1.45 Wish Inter, Arial, sans-serif;
  color-scheme: dark;
}
#gameViewport #wishAccountSettings::backdrop { background: #0c1024ab; backdrop-filter: blur(3px); }
.wish-account-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#wishAccountTitle { margin: 0; font: 660 24px/1.1 Wish Fraunces, Georgia, serif; }
#wishAccountStatus { margin: 12px 0 0; color: #f4e5d1; overflow-wrap: anywhere; }
#wishAccountStorage { margin: 5px 0 0; color: #bcc5d8; }
#wishAccountStorage:empty { margin: 0; }
.wish-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#wishAccountManage {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid #997a67;
  border-radius: 8px;
  background: #4b2e47;
  color: #f4dfb2;
  font-weight: 700;
  text-decoration: none;
}
#wishAccountManage:hover { background: #623a55; }
#wishAccountManage[aria-disabled="true"] { opacity: .65; }
.wish-tabs {
  display: flex;
  gap: clamp(4px, 1.8vw, 17px);
  margin-top: 16px;
  border-bottom: 1px solid var(--wish-line);
}
#wishShop [role="tab"] {
  margin: 0 0 -1px;
  padding: .6em clamp(6px, 2vw, 15px) .7em;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--wish-soft);
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 600;
  white-space: nowrap;
}
#wishShop [role="tab"]:hover { color: var(--wish-ink); }
#wishShop [role="tab"][aria-selected="true"] { border-color: var(--wish-gold); color: var(--wish-gold); }
#wishShopNotice { margin: 0; min-height: 18px; color: #f9d293; font-size: 12px; }
#wishShopNotice:not(:empty) { padding-top: 9px; }
.wish-items-panel { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(245px, 1fr); gap: 15px; align-items: start; }
.wish-item-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.wish-items-panel:is([data-slot="outfit"],[data-slot="pet"],[data-slot="ski"]) .wish-item-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
#wishShop .wish-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  min-height: auto;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--wish-line);
  border-radius: 10px;
  background: #192039;
  color: var(--wish-ink);
}
#wishShop .wish-item:hover { background: #262c48; border-color: #dbbe80a8; }
#wishShop .wish-item[aria-pressed="true"] { border-color: #f5d597; box-shadow: 0 0 0 1px #f5d597; }
.wish-item-thumb {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  aspect-ratio: 2.3;
  overflow: hidden;
  color: #f8eacb;
  background: linear-gradient(143deg,#212b4a,var(--accent,#637297));
}
.wish-item-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wish-items-panel:is([data-slot="outfit"],[data-slot="pet"],[data-slot="ski"]) .wish-item-thumb {
  aspect-ratio: 1;
}
.wish-item-text { grid-column: 1 / -1; }
.wish-item-heading {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font: 650 20px/1.2 Wish Fraunces, Georgia, serif;
  color: var(--wish-ink);
}
.wish-item-label {
  display: grid;
  gap: 2px;
  padding: 7px 9px 8px;
  line-height: 1.22;
}
.wish-item-label strong { font-size: 12px; overflow-wrap: anywhere; }
.wish-item-label small { color: #e4c599; font-size: 11px; }
.wish-item-detail {
  position: sticky;
  top: 0;
  padding: 12px;
  border: 1px solid var(--wish-line);
  border-radius: 12px;
  background: #151c36;
}
.wish-item-art {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  aspect-ratio: 2.3;
  overflow: hidden;
  border-radius: 7px;
  background: radial-gradient(ellipse at 60% 40%,#435074,#222b48 80%);
  color: #ecd7af;
}
.wish-item-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wish-item-detail:is([data-item-slot="outfit"],[data-item-slot="pet"],[data-item-slot="ski"],[data-item-slot="bag"]) .wish-item-art { aspect-ratio: 1; }
.wish-item-copy { padding: 11px 2px 0; }
#wishShop h3 { margin-top: 3px; font-size: clamp(19px, 2.7vw, 26px); line-height: 1.13; }
#wishItemState { color: #a6d3ba; font-size: 11px; font-weight: 700; }
#wishItemDescription { margin: 7px 0 12px; color: #d1d8e8; font-size: 12px; }
#wishItemAction {
  width: 100%;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #f0d69a;
  border-radius: 7px;
  background: linear-gradient(180deg, #f6cc77, #db9d4c);
  box-shadow: 0 3px #8e542e;
  color: #341d29;
  font-weight: 750;
  font-size: 13px;
}
#wishItemAction:hover:not(:disabled) { background: linear-gradient(180deg, #ffdc90, #edb05a); }
#wishItemAction:disabled { opacity: .8; }
#wishItemAction:disabled:not([data-exchange]) {
  border-color: #58445a;
  background: #30263e;
  box-shadow: none;
  color: #d0c3d2;
  opacity: 1;
}
#wishItemHint { display: block; margin-top: 5px; color: #d8c4a2; font-size: 11px; }
@media (max-width: 1080px) { #gameViewport:has(.wish-toolbar) header .prototype { display: none; } }
@media (max-width: 520px) {
  #wishShopOpen { position: relative; width: var(--tool-size); padding: 3px; }
  .wish-hud-balance {
    position: absolute;
    bottom: -9px;
    right: -5px;
    padding: 2px 4px 2px 2px;
    z-index: 1;
    border: 1px solid #c2a875;
    border-radius: 10px;
    background: #1a223b;
    font-size: 10px;
  }
  .wish-hud-balance img { width: 13px; height: 11px; }
  #gameViewport header .brand { max-width: max(65px, calc(100vw - 269px)); overflow: hidden; text-overflow: ellipsis; }
  #wishGain:not(:empty) { top: calc(var(--tool-top) + var(--tool-size) + 52px); }
}
@media (max-width: 640px) {
  #gameViewport #wishShop { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .wish-shop-head { gap: 8px; padding: 9px 10px; }
  .wish-shop-heading { gap: 6px; }
  .wish-office-mark { display: none; }
  .wish-shop-balance { gap: 3px; padding: 5px 7px; }
  .wish-shop-balance > div { gap: 3px; font-size: 11px; }
  .wish-shop-balance img { width: 18px; height: 15px; }
  .wish-profile-controls { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  #wishAccountOpen { justify-self: start; margin-top: 0; }
  .wish-gallery-head { margin-top: 14px; }
  #wishShopClose { width: 44px; height: 44px; }
  .wish-items-panel { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .wish-item-detail { position: static; }
  .wish-item-detail:is([data-item-slot="outfit"],[data-item-slot="pet"],[data-item-slot="ski"],[data-item-slot="bag"]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
  .wish-item-copy { padding-top: 3px; }
  .wish-items-panel:is([data-slot="outfit"],[data-slot="pet"],[data-slot="ski"]) .wish-item-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { .wish-shop-scroll { scroll-behavior: auto; } }
