:root {
  --bg: #f4f5f7;
  --bg-card: #ffffff;
  --text: #111111;
  --default: #111111;
  --primary: #2563eb;
  --secondary: #16a34a;
  --link: #2563eb;
  --link-hover: #1d4ed8;
  --muted: #4b5563;
  --green: var(--secondary);
  --green-dark: color-mix(in srgb, var(--secondary) 78%, #000);
  --blue: var(--primary);
  --blue-dark: color-mix(in srgb, var(--primary) 78%, #000);
  --line: #e5e7eb;
  --shadow: 0 0 28px rgba(17, 17, 17, 0.12), 0 0 48px rgba(17, 17, 17, 0.1);
  --radius: 16px;
  --glass-gap: 48px;
  --glass: color-mix(in srgb, var(--bg-card) 23%, transparent);
  --glass-strong: color-mix(in srgb, var(--bg-card) 36%, transparent);
  --glass-soft: color-mix(in srgb, var(--bg-card) 8%, transparent);
  --glass-line: color-mix(in srgb, #ffffff 58%, var(--line));
  --glass-blur: 6px;
  --glass-glow: inset 0 0 16px rgba(255, 255, 255, 0.6), inset 0 0 36px rgba(255, 255, 255, 0.26);
  --side-nav-w: 108px;
  --header-h: 68px;
  --wrap-pad: 24px;
  --wrap-pad-top: 48px;
  --outline-black: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000, -1px 0 0 #000, 1px 0 0 #000, -1px 1px 0 #000, 0 1px 0 #000, 1px 1px 0 #000;
  --outline-white: -1px -1px 0 #fff, 0 -1px 0 #fff, 1px -1px 0 #fff, -1px 0 0 #fff, 1px 0 0 #fff, -1px 1px 0 #fff, 0 1px 0 #fff, 1px 1px 0 #fff;
}
* { box-sizing: border-box; font-family: "Ubuntu", sans-serif; }
html, body { margin: 0; min-height: 100%; font-family: "Ubuntu", sans-serif; }
body:has(.app-main) {
  overflow: hidden;
  height: 100dvh;
}
body {
  position: relative;
  z-index: 0;
  background-color: var(--bg);
  color: var(--text);
}
.loc-bgs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.loc-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .7s ease;
}
.loc-bg-layer.is-on { opacity: 1; }
.glass,
.card,
.loader-card,
.item,
.btn-ghost,
.char-icon-btn {
  position: relative;
  background: var(--glass);
  border: 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: #111;
  text-shadow: var(--outline-white);
  font-weight: 400;
}
.glass::before,
.card::before,
.loader-card::before,
.item::before,
.btn-ghost::before,
.char-icon-btn::before,
.side-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: var(--glass-glow);
  pointer-events: none;
}
button, input, select, textarea, optgroup, option {
  font-family: "Ubuntu", sans-serif;
}
a { color: var(--link); font-weight: 400; }
a:hover { color: var(--link-hover); }
.hidden { display: none !important; }
.wrap { width: 80%; max-width: 1900px; margin: 0 auto; padding: var(--wrap-pad); }
.app-main > .wrap { padding: var(--wrap-pad-top) var(--wrap-pad) var(--wrap-pad); }
.side-nav {
  position: fixed;
  left: 12px;
  top: 0;
  bottom: 0;
  margin-block: auto;
  z-index: 45;
  width: var(--side-nav-w);
  height: max-content;
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius);
  background: #fff;
  border: 0;
  box-shadow: var(--shadow);
}
.side-nav::before { display: none; }
.side-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 12px 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}
.side-nav button:hover { background: var(--glass-soft); }
.side-nav svg { width: 26px; height: 26px; display: block; }
.app-main {
  margin-left: calc(var(--side-nav-w) + 24px);
  height: calc(100dvh - var(--header-h));
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) color-mix(in srgb, #e5e7eb 50%, transparent);
}
.app-main::-webkit-scrollbar {
  width: 5px;
}
.app-main::-webkit-scrollbar-track {
  background: color-mix(in srgb, #e5e7eb 50%, transparent);
  border-radius: 99px;
}
.app-main::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 99px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: #fff;
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px;
}
.top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  min-width: 0;
  gap: 2px;
}
.brand {
  font-weight: 700; font-size: 22px; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--link-hover); }
.brand span { color: var(--secondary); }
.brand-online {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--muted);
}
.hero { justify-self: end; position: relative; display: flex; align-items: center; gap: 32px; }
.header-icon-btn {
  position: relative;
  width: 48px; height: 48px; padding: 0; margin: 0;
  flex: 0 0 48px;
  display: grid; place-items: center;
  border: 0; border-radius: 14px;
  background: none; color: var(--text);
  cursor: pointer;
}
.header-icon-btn:hover { background: #f3f4f6; }
.header-icon-btn svg { width: 22px; height: 22px; display: block; }
.header-notify-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 2px #fff;
  animation: notify-pulse 1.5s ease-out infinite;
}
@keyframes notify-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.65), 0 0 0 2px #fff; }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0), 0 0 0 2px #fff; }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), 0 0 0 2px #fff; }
}
.hero-toggle {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 400; color: inherit; cursor: pointer;
  text-align: left;
  width: 100%;
}
.hero-user {
  position: relative;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px;
  display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 500; font-size: 16px;
  text-shadow: none;
}
.avatar-lg {
  width: 85px; height: 85px; flex: 0 0 85px; font-size: 30px;
}
.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, max-content) 16px;
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 2px;
  align-items: center;
  min-width: 0;
}
.hero-name {
  grid-column: 1;
  grid-row: 1;
  font-weight: 500;
  font-size: 15px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}
.hero-menu-caret {
  grid-column: 2;
  grid-row: 1;
  width: 16px;
  height: 16px;
  color: inherit;
  transition: transform .18s ease;
}
.hero-toggle[aria-expanded="true"] .hero-menu-caret {
  transform: rotate(180deg);
}
.hp.hp-header {
  grid-column: 1;
  width: 100%;
  height: 3px;
}
.header-notify { position: relative; flex: 0 0 48px; }
.notify-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 42;
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 480px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.notify-menu .toast {
  animation: none;
  cursor: default;
}
.notify-menu .toast.is-read {
  color: #787878;
}
.notify-empty {
  margin: 0;
  padding: 8px 4px;
  font-size: 14px;
  color: #111;
  text-align: center;
}
.hero-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  z-index: 41;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  border: 0;
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-menu,
.notify-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.hero-menu.is-open,
.notify-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-menu button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 8px;
  padding: 10px 12px; font: inherit; font-weight: 400; cursor: pointer; color: var(--text);
}
.hero-menu button:hover { background: #f3f4f6; }
.hero-sep { height: 1px; background: var(--line); margin: 4px 8px; }
.card {
  border-radius: var(--radius);
  padding: 36px;
}
.grid { display: grid; gap: var(--glass-gap); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1.2fr 1fr 1fr; }
h1, h2, h3 { margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 14px; }
.glass a,
.card a,
.item a,
.toast a,
.loader-card a,
.hero-menu a {
  font-weight: 400;
}
.glass h1, .glass h2, .glass h3,
.card h1:not(.world-map-title), .card h2:not(.world-map-title), .card h3,
.hero-menu h1, .hero-menu h2, .hero-menu h3,
.toast h1, .toast h2, .toast h3,
.loader-card h1, .loader-card h2, .loader-card h3,
.item h1, .item h2, .item h3 {
  color: var(--primary);
  text-shadow: var(--outline-white);
}
.glass h2,
.card h2,
.hero-menu h2,
.loader-card h2,
.item h2 {
  margin-bottom: 20px;
}
.glass .muted,
.card .muted,
.item .muted,
.toast .muted,
.loader-card .muted,
.side-nav button,
.hero-menu button,
.card a,
.card a:hover,
.item a,
.item a:hover,
.log {
  color: #111;
  text-shadow: var(--outline-white);
  font-weight: 400;
}
.side-nav button.active {
  background: var(--glass-strong);
  color: var(--primary);
}
.side-nav button.active svg {
  color: var(--primary);
}
.row { display: flex; gap: 8px; flex-wrap: wrap; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--glass-line);
  border-radius: 12px; font-size: 16px; font-family: "Ubuntu", sans-serif;
  background: var(--glass-strong); color: #111;
  text-shadow: var(--outline-white);
  font-weight: 400;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 6px; }
.btn {
  border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 400;
  cursor: pointer; font-size: 15px; font-family: "Ubuntu", sans-serif;
  transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-black { background: var(--default); color: #fff; }
.btn-green, .btn-blue, .btn-black,
.btn-green:hover, .btn-blue:hover, .btn-black:hover {
  text-shadow: none;
}
.btn-ghost {
  overflow: hidden;
  color: #111;
  text-shadow: var(--outline-white);
  border: 0;
  padding: 20px 32px;
}
.btn-ghost:hover { background: var(--glass-strong); }
.notice {
  background: #ecfdf5; color: #14532d; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}
.error {
  background: #fef2f2; color: #991b1b; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}
.toast-stack {
  display: none !important;
}
.toast {
  pointer-events: auto;
  position: relative;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  padding: 24px 36px 24px 28px;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #111;
  text-shadow: var(--outline-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  animation: toast-in .22s ease-out;
}
.toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  cursor: pointer;
  line-height: 0;
}
.toast-close:hover,
.toast-close:focus,
.toast-close:active {
  background: none;
  border: 0;
  box-shadow: none;
  outline: none;
}
.toast-close svg {
  width: 16px;
  height: 16px;
  display: block;
}
.toast.is-read {
  color: #787878;
}
.toast-ok {
  border-color: color-mix(in srgb, var(--secondary) 45%, var(--line));
  box-shadow: var(--shadow), inset 4px 0 0 var(--secondary);
}
.toast-error {
  border-color: color-mix(in srgb, #991b1b 35%, var(--line));
  box-shadow: var(--shadow), inset 4px 0 0 #991b1b;
}
.toast.is-out {
  animation: toast-out .18s ease-in forwards;
}
@keyframes toast-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes toast-out {
  to { opacity: 0; }
}
.hp { height: 10px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.hp:not(.xp) { box-shadow: 0 0 0 1px #fff; }
.hp > i { display: block; height: 100%; background: var(--green); transition: width .4s linear; }
.xp > i { background: var(--blue); }
.char-page { display: grid; gap: var(--glass-gap); }
.char-stats {
  width: calc((100% - var(--glass-gap)) / 2);
  max-width: calc((100% - var(--glass-gap)) / 2);
  justify-self: start;
}
.char-stats-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--glass-gap);
  align-items: start;
}
.char-head {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) auto;
  align-items: center;
  gap: var(--glass-gap);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  color: #fff;
  text-shadow: var(--outline-black);
}
.char-id {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.char-avatar-glass {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 20px;
  border-radius: 50%;
}
.char-id-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}
.char-id-name {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
}
.char-id-meta .char-hp {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.hp.hp-char { flex: 1; width: auto; min-width: 0; height: 8px; }
.char-hp-num {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.char-gold {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 4px;
}
.char-wallets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.char-gold-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.char-gold-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.char-head,
.char-head .muted,
.char-head .char-id-name,
.char-head .char-hp-num,
.char-head .char-gold-label,
.char-head .char-gold-value,
.char-head .avatar {
  color: #fff;
  text-shadow: var(--outline-black);
}
.char-head .char-icon-btn {
  color: #111;
  text-shadow: var(--outline-white);
}
.char-head .char-icon-badge {
  color: #fff;
  text-shadow: none;
}
.char-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.char-icon-btn {
  position: relative;
  width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  color: #111;
  text-shadow: var(--outline-white);
  cursor: pointer;
}
.char-icon-btn:hover { background: var(--glass-strong); }
.char-icon-btn svg { width: 22px; height: 22px; display: block; }
.char-icon-badge {
  position: absolute;
  top: -5px; right: -5px;
  z-index: 1;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.prog { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.prog:first-of-type { margin-top: 4px; }
.prog-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
}
.prog-top span { min-width: 0; }
.prog-top b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prog-xp { font-weight: 400; }
.list { display: flex; flex-direction: column; gap: 12px; }
.item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 20px 24px; border-radius: 12px;
  background: var(--glass-soft);
}
.item-thumb {
  width: 48px; height: 48px; object-fit: cover; border-radius: 10px;
  background: #e5e7eb; flex: 0 0 48px;
}
.item-body { flex: 1; min-width: 0; }
.eq-actions {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: 0 0 auto;
}
.eq-actions .eq-slot-pick {
  width: auto; min-width: 150px; padding: 10px 12px;
}
.inv-page { display: grid; gap: var(--glass-gap); }
.inv-list {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}
.inv-list::before { display: none; }
.shop-page {
  display: grid;
  grid-template-columns: 20% minmax(0, 1fr);
  gap: var(--glass-gap);
  align-items: start;
}
.shop-balance,
.shop-closed {
  grid-column: 1 / -1;
}
.shop-balance {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
}
.shop-balance .char-wallets {
  justify-content: flex-start;
}
.shop-balance .char-gold {
  align-items: flex-start;
  text-align: left;
}
.shop-kind-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-kind-list a,
.shop-kind-list a:hover,
.shop-kind-list a.is-on {
  display: block;
  color: var(--default);
  text-decoration: underline;
  text-shadow: var(--outline-white);
}
.shop-kind-list a.is-on {
  font-weight: 500;
}
.shop-goods .inv-bag {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.shop-goods {
  transition: opacity .28s ease;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}
.shop-goods::before { display: none; }
.shop-goods.is-fading {
  opacity: 0;
  pointer-events: none;
}
.inv-bag {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.inv-bag-empty { grid-column: 1 / -1; }
.inv-bag-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  min-width: 0;
  height: 100%;
}
.inv-bag-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
}
[data-item-info] { cursor: pointer; }
.inv-bag-name {
  font-weight: 500;
  line-height: 1.25;
}
.inv-bag-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.shop-card-price {
  font-size: 18px;
  font-weight: 500;
  margin: 10px 0;
}
.inv-bag-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 5px 0;
  line-height: 0;
}
.inv-bag-star {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
  overflow: visible;
}
.inv-bag-star-edge,
.inv-bag-star-core {
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.inv-bag-star-edge {
  fill: none;
  stroke: #fff;
  stroke-width: 2px;
}
.inv-bag-star.is-on .inv-bag-star-core {
  fill: #ff9f12;
  stroke: none;
}
.inv-bag-star.is-off .inv-bag-star-edge {
  stroke-width: 3.5px;
}
.inv-bag-star.is-off .inv-bag-star-core {
  fill: none;
  stroke: #ff9f12;
  stroke-width: 1.5px;
}
.inv-bag-actions {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: auto;
}
.inv-bag-actions .eq-slot-pick {
  width: 100%;
  min-width: 0;
}
.inv-bag-actions .btn {
  width: 100%;
  align-self: stretch;
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
}
.inv-bag-scrap {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 10px;
}
.inv-bag-scrap:hover { color: var(--link-hover); }
.inv-wear {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: visible;
}
.inv-figure-col {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: auto;
  gap: 0;
  padding: 36px;
}
.inv-figure {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 100px;
  align-items: start;
  flex: 1 1 auto;
  align-self: stretch;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  min-height: 480px;
  min-width: 0;
  overflow: visible;
}
.inv-paper {
  position: relative;
  width: 100px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 0;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}
.inv-paper [data-item-info] {
  pointer-events: auto;
  cursor: pointer;
}
.inv-paper-left { grid-column: 1; }
.inv-paper-right { grid-column: 3; }
.inv-figure-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-top: 36px;
  gap: 8px;
}
.inv-eq-weight {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
}
.inv-unequip-all {
  align-self: center;
  flex-shrink: 0;
  height: auto;
  margin-top: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}
.inv-paper-slot {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  flex: 0 0 auto;
  min-height: 100px;
  max-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inv-paper-slot:empty { display: none; }
.inv-paper-frame {
  position: relative;
  box-sizing: border-box;
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  max-width: 100px;
  max-height: 100px;
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 9px;
  background: rgba(250, 204, 21, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.inv-paper-img {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  display: block;
}
.inv-paper-dur {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 1;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  text-shadow: var(--outline-black);
  white-space: nowrap;
}
.inv-paper-frame.inv-bag-frame {
  align-self: stretch;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  padding: 10px;
}
.inv-eq {
  padding: 36px 36px 36px 0;
  min-width: 0;
}
.inv-eq h2 { margin-bottom: 20px; }
.eq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.eq-cols .list { gap: 10px; }
.eq-cols .item { box-shadow: none; align-items: center; }
.eq-cols .item-body > b {
  color: var(--primary);
  text-shadow: var(--outline-white);
}
.eq-cols .item-body .muted {
  font-size: 16px;
}
.eq-cols .item .btn {
  align-self: center;
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
}
.loader {
  position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 72%, transparent);
  display: flex; align-items: center; justify-content: center; z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .32s ease, visibility .32s ease;
}
.loader.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.loader-card {
  border-radius: var(--radius);
  padding: 44px 52px; width: min(360px, 90vw); text-align: center;
  opacity: 0;
  transition: opacity .32s ease;
}
.loader.is-on .loader-card {
  opacity: 1;
}
.view-in {
  animation: view-in .34s ease;
}
@keyframes view-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
#panel {
  transition: opacity .28s ease;
}
#panel.is-fading {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .loader, .loader-card { transition: none; }
  .loc-bg-layer { transition: none; }
  .view-in { animation: none; }
  .item-modal,
  .item-modal-backdrop,
  .item-modal-card,
  .item-modal.is-closing { animation: none; }
  #panel, .shop-goods { transition: none; }
  .btn { transition: none; }
  .header-notify-badge { animation: none; }
  .hero-menu, .notify-menu, .world-gps-menu { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .card, .loader-card,
  .item, .btn-ghost, .char-icon-btn, .side-nav,
  input, textarea, select {
    background: var(--bg-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .item { background: #f9fafb; }
  .shop-goods {
    background: transparent;
  }
  .inv-list {
    background: transparent;
  }
  .inv-paper-frame,
  .item-modal-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .glass::before, .card::before,
  .loader-card::before, .item::before, .btn-ghost::before,
  .char-icon-btn::before, .side-nav::before {
    display: none;
  }
}
.loader-title { font-weight: 800; margin-bottom: 12px; color: var(--primary); text-shadow: var(--outline-white); }
.bar { height: 10px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--blue)); transition: width .2s; }
.log { font-size: 13px; color: #111; text-shadow: var(--outline-white); font-weight: 400; max-height: 160px; overflow: auto; white-space: pre-wrap; }
.auth { max-width: 420px; margin: 40px auto; }
.gender-pick,
.look-pick {
  display: flex; gap: 18px; flex-wrap: wrap; margin: 2px 0 8px;
}
.look-pick { flex-direction: column; gap: 10px; }
.gender-pick label,
.look-pick label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 400; font-size: 15px; margin: 0; cursor: pointer;
}
.gender-pick input,
.look-pick input {
  width: auto; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none;
  accent-color: var(--primary);
}
.map-page { display: grid; gap: var(--glass-gap); }
.map-base-cost {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 20px 36px;
}
.map-base-cost .char-gold {
  align-items: flex-start;
  text-align: left;
}
.map-base-cost .char-gold-value .muted {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
}
.map-slots {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: auto;
  min-width: max-content;
}
.map-slots > .char-gold-label {
  color: var(--primary);
  font-weight: 500;
  font-size: 15px;
}
.map-slots-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  width: auto;
}
.map-slot-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}
.map-slot-row span {
  color: var(--muted);
  font-size: 14px;
}
.map-slot-row b {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.prop-list { display: grid; gap: 8px; }
.prop-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.world-map-card {
  padding: 20px;
}
.world-map-title-wrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 20px;
  pointer-events: none;
}
.world-map-title {
  position: relative;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  width: calc(100cqw * 4 / 20 - 40px);
  height: calc(100cqw * 2 / 20 - 40px);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1px;
  border-radius: 0;
  color: #fff;
  text-shadow: var(--outline-black);
  font-size: clamp(14px, 1.35cqw, 22px);
  font-weight: 700;
  line-height: 1.2;
}
.world-map-title-label {
  font-size: 0.62em;
  font-weight: 600;
  line-height: 1;
}
.world-map-title-name {
  line-height: 1.15;
}
.world-map-stage {
  position: relative;
  container-type: inline-size;
  overflow: visible;
  width: min(100%, calc((100dvh - var(--header-h) - var(--wrap-pad-top) - var(--wrap-pad) - 40px) * 2));
}
.world-map {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(10, 1fr);
  width: 100%;
  aspect-ratio: 2 / 1;
  background: url("map.webp") center / 100% 100% no-repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.world-map-cell {
  min-width: 0;
  min-height: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.world-map-cell.has-loc {
  border: 1px dashed #fff;
  cursor: pointer;
}
.world-map-cell.is-here {
  border: 3px solid var(--secondary);
  animation: map-here-pulse 1.8s ease-in-out infinite;
  display: grid;
  place-items: center;
}
.world-here-icon,
.world-dest-icon {
  width: 58%;
  height: 58%;
  display: block;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.45));
}
.world-here-outline,
.world-dest-outline {
  fill: none;
  stroke: #000;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.world-here-stroke {
  fill: none;
  stroke: #1ee15a;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.world-here-dot {
  fill: #1ee15a;
}
.world-dest-stroke {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.world-dest-dot {
  fill: #f59e0b;
}
@keyframes map-here-pulse {
  0%, 100% { border-color: color-mix(in srgb, var(--secondary) 15%, transparent); }
  50% { border-color: var(--secondary); }
}
.world-map-cell.is-dest {
  border: 3px solid #eab308;
  animation: map-dest-pulse 1.8s ease-in-out infinite;
}
@keyframes map-dest-pulse {
  0%, 100% { border-color: color-mix(in srgb, #eab308 15%, transparent); }
  50% { border-color: #eab308; }
}
.world-map-cell.is-selected:not(.is-here) {
  border: 3px solid var(--primary);
  animation: map-selected-pulse 1.8s ease-in-out infinite;
}
@keyframes map-selected-pulse {
  0%, 100% { border-color: color-mix(in srgb, var(--primary) 15%, transparent); }
  50% { border-color: var(--primary); }
}
.world-compass-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 20px;
  background: transparent;
}
.world-nav-stack {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  pointer-events: none;
}
.world-nav-stack > * {
  pointer-events: auto;
}
.world-gps-wrap {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  padding: 20px;
}
.world-gps {
  pointer-events: auto;
  width: calc(100cqw * 4 / 20 - 40px);
  min-height: calc(100cqw * 2 / 20 - 40px);
  height: auto;
  padding: 8px 10px;
  overflow: visible;
  background: var(--primary);
  color: #fff;
  text-shadow: none;
  border-radius: var(--radius);
  border: 2px solid color-mix(in srgb, var(--primary) 50%, #000);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}
.world-gps-label {
  font-size: clamp(10px, 0.85cqw, 13px);
  font-weight: 600;
  line-height: 1.2;
}
.world-gps-dd {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 5;
}
.world-gps-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, #fff 35%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, #000 18%, var(--primary));
  color: #fff;
  text-shadow: none;
  font: inherit;
  font-size: clamp(11px, 0.95cqw, 14px);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.world-gps-toggle:disabled {
  opacity: 0.55;
  cursor: default;
}
.world-gps-toggle-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.world-gps-caret {
  width: 16px;
  height: 16px;
  color: inherit;
  transition: transform .18s ease;
}
.world-gps-toggle[aria-expanded="true"] .world-gps-caret {
  transform: rotate(180deg);
}
.world-gps-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 6;
  width: 100%;
  max-height: calc(100cqw * 5 / 20);
  overflow: hidden;
  box-sizing: border-box;
  padding: 8px 0;
  border-radius: 12px;
  background: #fff;
  border: 0;
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.world-gps-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.world-gps-menu-scroll {
  max-height: calc(100cqw * 5 / 20 - 16px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 10px 4px 12px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #c5c5c5 transparent;
}
.world-gps-menu-scroll::-webkit-scrollbar {
  width: 8px;
}
.world-gps-menu-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}
.world-gps-menu-scroll::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 99px;
  border: 2px solid #fff;
}
.world-gps-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.world-gps-menu-empty {
  margin: 0;
  padding: 8px 4px;
  font-size: 14px;
  color: #111;
  text-align: center;
}
.world-gps-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  color: #111;
  text-shadow: none;
  box-shadow: none;
}
.world-gps-option:hover,
.world-gps-option.is-active {
  background: #f3f4f6;
}
.world-gps-go {
  width: 100%;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, #fff 35%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, #fff 22%, var(--primary));
  color: #fff;
  text-shadow: none;
  font: inherit;
  font-size: clamp(11px, 0.95cqw, 14px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}
.world-gps-go:hover:not(:disabled) {
  background: color-mix(in srgb, #fff 32%, var(--primary));
}
.world-gps-go:disabled {
  opacity: 0.55;
  cursor: default;
}
.world-gps-route-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.world-gps-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.world-gps-route-outline,
.world-gps-route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.world-gps-route-outline {
  stroke: #000;
  stroke-width: 5px;
  stroke-dasharray: 10 8;
}
.world-gps-route-line {
  stroke: #1ee15a;
  stroke-width: 3px;
  stroke-dasharray: 10 8;
}
.world-gps-dest-mark,
.world-gps-here-mark {
  position: absolute;
  left: calc((var(--c) - 1) * 100% / 20);
  top: calc((var(--r) - 1) * 100% / 10);
  width: calc(100% / 20);
  height: calc(100% / 10);
  display: grid;
  place-items: center;
  z-index: 2;
}
.world-gps-here-mark {
  z-index: 3;
}
.world-map-stage:has(.world-gps-here-mark) .world-map-cell.is-here .world-here-icon {
  visibility: hidden;
}
.world-compass {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: calc(100cqw * 3 / 20 - 40px);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--primary);
  border: 2px solid color-mix(in srgb, var(--primary) 50%, #000);
  border-radius: var(--radius);
}
.world-compass-cell {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-shadow: none;
  font-family: inherit;
  font-size: clamp(8px, 0.65vw, 12px);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  padding: 2px;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
}
.world-compass-arrow {
  width: 52%;
  height: 52%;
  display: block;
  transform: rotate(var(--rot, 0deg));
}
.world-compass-cell:not(:disabled):not(.is-center) {
  color: #fff;
  cursor: pointer;
}
.world-compass-cell:not(:disabled):not(.is-center):hover {
  background: color-mix(in srgb, #fff 18%, var(--primary));
  color: #fff;
}
.world-compass-cell:disabled {
  opacity: 0.38;
  cursor: default;
}
.world-compass-cell.is-center {
  background: transparent;
  color: #fff;
  font-size: clamp(12px, 1.2cqw, 20px);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}
.world-compass-speed-unit {
  font-size: clamp(10px, 0.85cqw, 13px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.world-travel-note {
  width: calc(100cqw * 3 / 20 - 40px);
  aspect-ratio: 1;
  padding: 12px;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  text-shadow: none;
  border-radius: var(--radius);
  border: 2px solid color-mix(in srgb, var(--primary) 50%, #000);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  font-size: clamp(11px, 1.05cqw, 15px);
  line-height: 1.25;
}
.world-travel-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}
.world-travel-label {
  font-size: 0.72em;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}
.world-travel-dest {
  font-size: calc(1.28em - 4px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.world-travel-eta {
  margin-top: 1lh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.world-travel-remain-label {
  font-size: 0.72em;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}
.world-travel-remain {
  font-size: 1.55em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-align: center;
}
@media (max-width: 960px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .char-head { grid-template-columns: 1fr; gap: 18px; }
  .char-stats-cols { grid-template-columns: 1fr; }
  .char-gold { align-items: flex-start; text-align: left; }
  .map-base-cost { grid-template-columns: 1fr; gap: 20px; }
  .char-actions { justify-content: flex-start; }
  .inv-wear { grid-template-columns: 1fr; }
  .inv-eq { padding-left: 36px; }
  .shop-page { grid-template-columns: 1fr; }
  .inv-bag,
  .shop-goods .inv-bag { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-figure {
    min-height: 360px;
    aspect-ratio: unset;
    max-height: none;
  }
  .wrap { width: auto; max-width: none; }
  :root { --side-nav-w: 84px; }
  .side-nav { padding: 12px 6px; }
  .side-nav button { padding: 10px 4px; font-size: 11px; }
  .side-nav svg { width: 22px; height: 22px; }
}
.item-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.item-modal.is-closing {
  pointer-events: none;
  animation: modal-out .28s ease forwards;
}
.item-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(6px) grayscale(1);
  -webkit-backdrop-filter: blur(6px) grayscale(1);
  animation: modal-in .28s ease;
}
.item-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
  width: min(760px, calc(100% - 48px));
  max-height: min(88dvh, 760px);
  overflow: auto;
  padding: 36px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  animation: modal-in .28s ease;
}
.item-modal-card.no-media {
  grid-template-columns: minmax(0, 1fr);
  width: min(440px, calc(100% - 48px));
}
.item-modal-media {
  width: 300px;
}
.item-modal-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.item-modal-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.item-modal-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
}
.item-modal-meta {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
}
.item-modal-desc {
  margin: 8px 0 12px;
  text-align: left;
  white-space: pre-wrap;
  line-height: 1.45;
  color: var(--muted);
}
.item-modal-effects {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.4;
}
.item-modal-effects-how {
  margin-bottom: 6px;
}
.item-modal-ok {
  margin-top: auto;
  align-self: flex-end;
}
@keyframes modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .item-modal.is-closing { animation: none; }
}
@media (max-width: 640px) {
  .item-modal-card {
    grid-template-columns: 1fr;
  }
  .item-modal-media { width: 100%; max-width: 300px; }
}
