/*
 * World interface theme: Seal of Dusk.
 * Loaded after the legacy world styles and before battle-seal.css.
 */

:root {
  color-scheme: light;
  --bg: #e9e2d3;
  --surface: #fffdf7;
  --surface-2: #f6f1e7;
  --surface-3: #eee8da;
  --line: #c7b994;
  --line-soft: #ded4bf;
  --text: #263443;
  --muted: #5a6978;
  --faint: #71808b;
  --accent: #8c621b;
  --accent-strong: #a97827;
  --accent-soft: #f5ead1;
  --good: #257555;
  --good-soft: #e0f0e6;
  --danger: #b33b36;
  --danger-soft: #fae5e2;
  --info: #176997;
  --info-soft: #dceef7;
  --purple: #7c4d8d;
  --shadow: 0 12px 32px rgba(48, 58, 63, .15);
  --shadow-soft: 0 7px 20px rgba(48, 58, 63, .11);
  --radius: 9px;
  --radius-sm: 5px;
}

html {
  background: #e9e2d3;
}

body {
  background-color: #e9e2d3;
  background-image:
    radial-gradient(circle at 8% 2%, rgba(255, 249, 224, .95), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(178, 211, 219, .62), transparent 39rem),
    linear-gradient(135deg, #e9e2d3, #dce7e6 52%, #eee5d4);
  background-repeat: no-repeat;
  color: var(--text);
  scrollbar-color: #aa9d83 #eee7d9;
}

::selection {
  color: #fffdf7;
  background: #176997;
}

button,
input,
select {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(23, 105, 151, .72);
  outline-offset: 2px;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(238, 232, 218, .7);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(238, 232, 218, .78);
  border-radius: 999px;
  background: #aa9d83;
}

.app-shell {
  min-height: 100vh;
}

/* Header */

.topbar {
  min-height: 70px;
  padding: 9px 18px;
  border-color: var(--line);
  color: #263443;
  background-color: #fffaf0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .45) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 239, .98), rgba(235, 231, 218, .98) 58%, rgba(248, 243, 231, .98));
  background-position: 0 0, 0 0;
  background-size: 22px 22px, 100% 100%;
  background-repeat: repeat, no-repeat;
  box-shadow: 0 8px 26px rgba(48, 58, 63, .13);
  backdrop-filter: blur(14px);
}

.brand-block {
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: visible;
  border: 1px solid rgba(140, 98, 27, .62);
  border-radius: 2px;
  transform: rotate(45deg);
  color: transparent;
  background: radial-gradient(circle, #7da1ad 0 18%, #284859 20% 51%, #c39a4e 53% 57%, #eff1e9 59%);
  box-shadow: 0 4px 18px rgba(66, 82, 88, .2);
  font-size: 0;
}

.brand-mark::after {
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border: 2px solid #f7ddb0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  content: "";
}

.brand-title {
  color: var(--text);
  font: 600 clamp(20px, 1.8vw, 27px) / 1 Georgia, "Times New Roman", serif;
  letter-spacing: .025em;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .025em;
}

.time-block {
  display: grid;
  grid-template-columns: auto auto;
  min-width: 230px;
  padding: 5px 10px;
  border: 1px solid rgba(199, 185, 148, .8);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 253, 247, .62);
  box-shadow: inset 0 1px rgba(255, 255, 255, .88);
}

.time-clock,
.top-combat-rating {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.time-clock {
  padding-right: 12px;
}

.top-combat-rating {
  padding-left: 12px;
  border-left: 1px solid var(--line-soft);
}

.time-clock > span,
.top-combat-rating > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.time-block strong {
  margin-top: 1px;
  color: var(--text);
  font: 600 18px / 1.1 Georgia, "Times New Roman", serif;
  font-variant-numeric: tabular-nums;
}

.top-combat-rating strong {
  color: #7b5518;
}

.top-actions {
  gap: 7px;
}

/* Buttons */

.button {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 5px;
  box-shadow: 0 2px 7px rgba(46, 57, 60, .07);
  font-size: 12px;
  font-weight: 750;
}

.button-primary {
  border-color: #7c5519;
  color: #fffdf5;
  background: linear-gradient(180deg, #b88936, #85601f);
  text-shadow: 0 1px rgba(65, 40, 6, .26);
}

.button-primary:hover:not(:disabled) {
  border-color: #684411;
  color: #fffdf5;
  background: linear-gradient(180deg, #c89943, #946b24);
}

.button-secondary,
.button-ghost {
  border-color: #cabd9f;
  color: #435363;
  background: rgba(255, 253, 248, .86);
}

.button-secondary:hover:not(:disabled),
.button-ghost:hover:not(:disabled) {
  border-color: #9d8451;
  color: #6f4d16;
  background: #f7eedb;
}

.button-admin,
.button-refresh {
  border-color: rgba(140, 98, 27, .48);
  color: #78531a;
  background: #f5ead1;
}

.button-admin:hover:not(:disabled),
.button-refresh:hover:not(:disabled) {
  border-color: #8c621b;
  color: #5e3e10;
  background: #efdfbd;
}

.button-danger-ghost {
  border-color: rgba(179, 59, 54, .32);
  color: #9a342f;
  background: rgba(250, 229, 226, .52);
}

.button-danger-ghost:hover:not(:disabled) {
  border-color: rgba(179, 59, 54, .58);
  color: #842a26;
  background: #fae5e2;
}

.button:disabled {
  color: #78838b;
  opacity: .52;
  box-shadow: none;
}

/* World layout and navigation */

.layout {
  grid-template-columns: 216px minmax(560px, 1fr) 320px;
  gap: 12px;
  width: min(1660px, 100%);
  padding: 13px 14px 28px;
}

.location-nav,
.status-panel {
  top: 83px;
  max-height: calc(100vh - 96px);
  scrollbar-color: #aa9d83 transparent;
}

.location-nav {
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #263443;
  background-color: #fffdf7;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .48) 0 1px, transparent 1px),
    linear-gradient(145deg, #fffdf7, #eee8da);
  background-position: 0 0, 0 0;
  background-size: 22px 22px, 100% 100%;
  background-repeat: repeat, no-repeat;
  box-shadow: inset 0 1px rgba(255, 255, 255, .96), var(--shadow);
}

.location-button {
  grid-template-columns: 30px 1fr;
  gap: 9px;
  min-height: 44px;
  padding: 6px 8px;
  border-color: transparent;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
}

.location-button:hover {
  border-color: #c8b995;
  color: var(--text);
  background: rgba(255, 253, 247, .74);
}

.location-button.is-active {
  border-color: rgba(140, 98, 27, .5);
  color: #6f4d16;
  background: linear-gradient(90deg, #f5ead1, rgba(255, 250, 239, .8));
  box-shadow: inset 3px 0 #b1812e, 0 2px 7px rgba(46, 57, 60, .06);
}

.location-icon {
  width: 28px;
  height: 28px;
  border-color: rgba(23, 105, 151, .38);
  border-radius: 4px;
  color: #176997;
  background: #e5f0f4;
  font-size: 14px;
  opacity: 1;
}

.location-button.is-active .location-icon {
  border-color: rgba(140, 98, 27, .48);
  color: #7b5518;
  background: #fff8e8;
}

.location-label {
  color: inherit;
  font-size: 13px;
  font-weight: 750;
}

.nav-note {
  margin: 7px 4px 1px;
  padding-top: 10px;
  border-color: var(--line-soft);
  color: var(--faint);
  font-size: 9px;
}

.main-content {
  min-width: 0;
}

/* Shared parchment surfaces */

.location-header,
.objective-banner,
.action-card,
.item-card,
.npc-card,
.info-card,
.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(145deg, rgba(255, 253, 247, .98), rgba(238, 232, 218, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .96), var(--shadow-soft);
}

.status-panel,
.section-block {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.location-header {
  position: relative;
  margin-bottom: 10px;
  padding: 17px 19px;
  overflow: hidden;
  background-color: #fffdf7;
  background-image:
    radial-gradient(circle at 92% 18%, rgba(178, 211, 219, .28), transparent 19rem),
    linear-gradient(145deg, rgba(255, 253, 247, .98), rgba(238, 232, 218, .96));
}

.location-header::before,
.location-header::after {
  position: absolute;
  width: 20px;
  height: 20px;
  content: "";
  pointer-events: none;
}

.location-header::before {
  top: 5px;
  left: 5px;
  border-top: 1px solid rgba(140, 98, 27, .58);
  border-left: 1px solid rgba(140, 98, 27, .58);
}

.location-header::after {
  right: 5px;
  bottom: 5px;
  border-right: 1px solid rgba(140, 98, 27, .42);
  border-bottom: 1px solid rgba(140, 98, 27, .42);
}

.location-kicker,
.section-kicker {
  color: #8c621b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .17em;
}

.location-header h1,
.section-heading h2,
.panel-title,
.card-title,
.info-card h3,
.shop-slot-heading h3 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.location-header h1 {
  margin-top: 4px;
  font-size: clamp(25px, 2.7vw, 33px);
  letter-spacing: -.015em;
}

.location-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.location-header-badge {
  padding: 7px 11px;
  border-color: rgba(140, 98, 27, .34);
  color: #6f4d16;
  background: #f5ead1;
  font-weight: 750;
}

.objective-banner {
  grid-template-columns: 1fr 120px;
  gap: 16px;
  margin-bottom: 11px;
  padding: 13px 16px;
  border-color: rgba(23, 105, 151, .27);
  background: linear-gradient(120deg, #edf5f6, #dceef7 72%, #e9f2f3);
}

.objective-banner strong {
  margin: 2px 0 3px;
  color: #263443;
  font: 600 15px / 1.25 Georgia, "Times New Roman", serif;
}

.objective-banner p {
  color: #526473;
  font-size: 12px;
}

.objective-progress {
  height: 7px;
  background: #cad5d8;
  box-shadow: inset 0 1px 3px rgba(48, 58, 63, .17);
}

.objective-progress > span {
  background: linear-gradient(90deg, #176997, #64a8c8);
}

.section-block {
  margin-top: 13px;
}

.section-heading {
  margin: 0 2px 8px;
}

.section-heading h2 {
  font-size: 18px;
}

.section-heading p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.card-grid {
  gap: 10px;
}

.action-card,
.item-card,
.npc-card {
  min-height: 164px;
  padding: 14px;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.action-card:hover,
.item-card:hover,
.npc-card:hover {
  border-color: #ad8b4d;
  transform: translateY(-1px);
  background: linear-gradient(145deg, #fffdf7, #f7eedb);
  box-shadow: inset 0 1px rgba(255, 255, 255, .96), 0 12px 26px rgba(48, 58, 63, .14);
}

.action-card.is-locked,
.npc-card.is-locked {
  border-color: #d6cfbf;
  color: #596673;
  background: linear-gradient(145deg, #f0ede5, #e7e3d9);
  opacity: .76;
  filter: saturate(.78);
}

.action-card.is-locked:hover,
.npc-card.is-locked:hover {
  transform: none;
  border-color: #d6cfbf;
  background: linear-gradient(145deg, #f0ede5, #e7e3d9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8), 0 6px 16px rgba(48, 58, 63, .08);
}

.item-card.is-equipped,
.item-card.is-equipped:hover {
  border-color: rgba(140, 98, 27, .52);
  background: linear-gradient(145deg, #fff8e8, #eee8da 62%);
}

.card-title {
  font-size: 16px;
  line-height: 1.23;
}

.card-description {
  margin: 8px 0 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.card-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-color: var(--line-soft);
}

.card-cost {
  color: var(--text);
  font-size: 13px;
}

.card-cost.is-free,
.item-owned,
.npc-record {
  color: #257555;
}

.tag {
  min-height: 23px;
  padding: 3px 7px;
  border-color: #d4cbb8;
  color: #435363;
  background: rgba(255, 253, 247, .78);
  font-size: 10px;
}

.tag-positive {
  border-color: rgba(37, 117, 85, .28);
  color: #1f654a;
  background: #e0f0e6;
}

.tag-negative {
  border-color: rgba(179, 59, 54, .27);
  color: #96312d;
  background: #fae5e2;
}

.tag-accent {
  border-color: rgba(140, 98, 27, .32);
  color: #6f4d16;
  background: #f5ead1;
}

.tag-info {
  border-color: rgba(23, 105, 151, .27);
  color: #155d86;
  background: #dceef7;
}

.requirement-list {
  margin-top: 8px;
}

.requirement {
  color: #99332f;
  font-size: 10px;
  font-weight: 650;
}

.special-card {
  margin-bottom: 10px;
  padding: 14px;
  border-color: rgba(179, 59, 54, .3);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(120deg, #fff8f5, #fae5e2);
  box-shadow: var(--shadow-soft);
}

.special-card p {
  color: #7d4a48;
  font-size: 12px;
}

.info-card {
  padding: 14px;
}

.main-content > .info-card {
  margin-bottom: 10px;
}

.info-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 12px;
}

.damage-rules-card {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid #bfa873;
  border-radius: 9px;
  background: linear-gradient(135deg, #fffaf0, #e4edE9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .94), var(--shadow-soft);
}
.damage-rules-card summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
}
.damage-rules-card summary::-webkit-details-marker { display: none; }
.damage-rules-card summary span, .damage-rules-card summary b, .damage-rules-card summary small { display: block; }
.damage-rules-card summary b { color: #2a4755; font: 700 17px Georgia, serif; }
.damage-rules-card summary small { margin-top: 3px; color: #6d797e; font-size: 9px; }
.damage-rules-card summary > i { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid #aa894a; border-radius: 50%; color: #815b1d; background: rgba(255, 251, 239, .8); font: 700 18px/1 Georgia, serif; transition: transform 160ms ease; }
.damage-rules-card[open] summary { border-bottom: 1px solid rgba(174, 150, 101, .42); background: rgba(255, 253, 246, .48); }
.damage-rules-card[open] summary > i { transform: rotate(45deg); }
.damage-rule-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 12px 12px 7px; }
.damage-rule-steps > div { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 7px; align-content: start; padding: 9px; border: 1px solid rgba(120, 117, 93, .2); border-radius: 7px; background: rgba(255, 253, 247, .72); }
.damage-rule-steps > div > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fffaf0; background: #3b6778; font-size: 10px; font-weight: 900; }
.damage-rule-steps p, .damage-rule-steps strong { display: block; }
.damage-rule-steps p { margin: 0; color: #5f6d73; font-size: 9px; line-height: 1.42; }
.damage-rule-steps strong { margin-bottom: 3px; color: #314b58; font-size: 10px; }
.damage-rule-formula { margin: 0 12px 12px; padding: 9px 11px; border-left: 3px solid #a97827; color: #5c6970; background: rgba(246, 237, 215, .72); font-size: 10px; line-height: 1.45; }
.damage-rule-formula b { color: #76531d; }

@media (max-width: 1120px) {
  .damage-rule-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .damage-rule-steps > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .damage-rule-steps { grid-template-columns: 1fr; }
  .damage-rule-steps > div:last-child { grid-column: auto; }
}

.item-slot,
.npc-subtitle {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .09em;
}

.shop-slot-group {
  margin-top: 15px;
}

.shop-slot-heading {
  margin-bottom: 8px;
  padding: 0 2px 7px;
  border-color: var(--line-soft);
}

.shop-slot-heading h3 {
  color: var(--text);
  font-size: 17px;
}

.shop-slot-heading span {
  color: var(--muted);
  font-size: 10px;
}

.npc-card {
  min-height: 235px;
}

.npc-rating {
  min-width: 54px;
  padding: 5px 7px;
  border-color: rgba(140, 98, 27, .34);
  border-radius: 6px;
  color: #6f4d16;
  background: #f5ead1;
  box-shadow: inset 0 1px rgba(255, 255, 255, .82);
}

.npc-rating small {
  color: #7b6a4a;
}

.npc-name-row {
  margin-top: 3px;
}

.npc-name-row .card-title {
  margin: 0;
}

.npc-pool-note {
  color: #6f4d16;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.arena-match-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(140, 98, 27, .3);
  border-radius: 7px;
  color: var(--text);
  background: linear-gradient(135deg, #fff9eb, #eee5d2);
  box-shadow: var(--shadow-soft);
}

.arena-match-bar strong,
.arena-match-bar span {
  display: block;
}

.arena-match-bar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.arena-match-button {
  min-width: 180px;
}

.gym-allocation {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 11px;
  border: 1px solid rgba(23, 105, 151, .28);
  border-radius: 7px;
  background: linear-gradient(135deg, #edf6f7, #e4ece9);
  box-shadow: var(--shadow-soft);
}

.gym-allocation strong,
.gym-allocation > div > span {
  display: block;
}

.gym-allocation > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.gym-allocation-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gym-allocation-actions button {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 5px;
  align-items: center;
  min-height: 31px;
  padding: 4px 6px;
  border: 1px solid rgba(23, 105, 151, .25);
  border-radius: 4px;
  color: #354957;
  background: rgba(255, 253, 247, .78);
  font-size: 9px;
  cursor: pointer;
}

.gym-allocation-actions button:hover {
  border-color: #176997;
  background: #fffdf7;
}

.gym-allocation-actions button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.gym-allocation-actions button b {
  font: 700 12px Georgia, "Times New Roman", serif;
}

.gym-allocation-actions button i {
  color: #176997;
  font-style: normal;
  font-weight: 900;
}

/* Status column */

.status-panel {
  gap: 9px;
  border: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.panel-card {
  padding: 12px;
}

.panel-header {
  margin-bottom: 9px;
}

.panel-title {
  font-size: 14px;
}

.panel-muted {
  color: var(--muted);
  font-size: 10px;
}

.rank-name {
  color: #6f4d16;
  font: 600 17px / 1.15 Georgia, "Times New Roman", serif;
}

.player-name-row,
.npc-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 3px;
}

.player-name {
  color: var(--text);
  font: 600 18px / 1.1 Georgia, "Times New Roman", serif;
}

.combat-rating-pill {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(140, 98, 27, .38);
  border-radius: 999px;
  color: #6f4d16;
  background: #f5ead1;
  box-shadow: inset 0 1px rgba(255, 255, 255, .85);
  font-size: 9px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.combat-rating-details {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #d9cfbb;
  border-radius: 5px;
  color: var(--muted);
  background: rgba(255, 253, 247, .64);
}

.combat-rating-details summary {
  padding: 7px 8px;
  color: #526473;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.combat-rating-details[open] summary {
  border-bottom: 1px solid var(--line-soft);
  color: #6f4d16;
  background: rgba(245, 234, 209, .56);
}

.combat-rating-details code {
  display: block;
  margin: 8px 8px 5px;
  padding: 6px 7px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(23, 105, 151, .18);
  border-radius: 4px;
  color: #28556e;
  background: #edf5f6;
  font: 9px / 1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.combat-rating-details p {
  margin: 0 8px 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.resource-list {
  gap: 8px;
}

.resource-row {
  grid-template-columns: 66px 1fr 46px;
  gap: 7px;
}

.resource-xp-row {
  align-items: start;
}

.xp-total {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.resource-label {
  color: var(--muted);
  font-size: 10px;
}

.resource-value {
  color: var(--text);
  font-size: 10px;
}

.progress-track {
  height: 7px;
  border: 1px solid rgba(75, 83, 88, .12);
  background: #d8d5cc;
  box-shadow: inset 0 1px 3px rgba(56, 58, 55, .16);
}

.progress-health {
  background: linear-gradient(90deg, #9f3031, #de6261 58%, #ef8580);
}

.progress-energy {
  background: linear-gradient(90deg, #176997, #6aafcf);
}

.progress-hunger {
  background: linear-gradient(90deg, #95611e, #d89a36, #f2ca62);
}

.progress-xp {
  background: linear-gradient(90deg, #67427a, #a273b3);
}

.stat-summary-grid {
  gap: 6px;
}

.summary-cell {
  padding: 8px;
  border-color: #d9cfbb;
  border-radius: 5px;
  background: rgba(255, 253, 247, .7);
}

.summary-cell span {
  color: var(--muted);
  font-size: 9px;
}

.summary-cell strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.summary-cell small {
  color: var(--faint);
  font-size: 9px;
}

.summary-cell.is-debt {
  border-color: rgba(179, 59, 54, .25);
  background: #fff3f1;
}

.summary-cell.is-debt strong {
  color: #a33430;
}

.attribute-list,
.equipment-list {
  gap: 5px;
}

.attribute-row,
.equipment-row {
  min-height: 29px;
  border: 1px solid rgba(199, 185, 148, .54);
  border-radius: 5px;
  color: var(--text);
  background: rgba(255, 253, 247, .62);
}

.attribute-row {
  grid-template-columns: 1fr auto;
  padding: 4px 7px;
}

.attribute-allocation-note {
  margin: 7px 1px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.attribute-name,
.equipment-slot {
  color: var(--muted);
  font-size: 10px;
}

.attribute-value {
  color: var(--text);
  font: 700 13px Georgia, "Times New Roman", serif;
}

.attribute-up {
  width: 23px;
  height: 23px;
  border-color: rgba(140, 98, 27, .38);
  border-radius: 4px;
  color: #6f4d16;
  background: #f5ead1;
}

.attribute-up:hover {
  border-color: #8c621b;
  background: #efdfbd;
}

.skill-points {
  color: #6f4d16;
  background: #f5ead1;
}

.equipment-row {
  padding: 5px 7px;
}

.equipment-item {
  color: #354957;
  font-size: 10px;
}

.equipment-item.is-empty {
  color: #7a858c;
}

.achievement-list {
  gap: 5px;
}

.achievement-chip {
  min-height: 43px;
  padding: 6px;
  border-color: #dad2c2;
  border-radius: 5px;
  color: #737e85;
  background: rgba(244, 241, 234, .78);
}

.achievement-chip.is-earned {
  border-color: rgba(140, 98, 27, .34);
  color: #6f4d16;
  background: #f5ead1;
}

.journal-list {
  gap: 7px;
  max-height: 280px;
  scrollbar-color: #aa9d83 transparent;
}

.journal-entry {
  padding: 3px 0 3px 8px;
  border-left-color: #8a989f;
}

.journal-entry time {
  color: var(--faint);
  font-size: 8px;
}

.journal-entry p {
  color: #425361;
  font-size: 10px;
  line-height: 1.35;
}

.journal-entry.is-money {
  border-color: #257555;
}

.journal-entry.is-danger,
.journal-entry.is-battle-loss {
  border-color: #b33b36;
}

.journal-entry.is-battle-win,
.journal-entry.is-achievement {
  border-color: #a97827;
}

.journal-entry.is-progress {
  border-color: #7c4d8d;
}

/* Shared presentation hooks for the stat-based rating. */

.header-combat-rating,
.combat-rating-badge,
.rating-index-badge,
.profile-rating-badge {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(140, 98, 27, .38);
  border-radius: 999px;
  color: #6f4d16;
  background: #f5ead1;
  box-shadow: inset 0 1px rgba(255, 255, 255, .85);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/* Administrator dialog */

.admin-overlay {
  z-index: 1250;
  padding: 16px;
  color: var(--text);
  background: rgba(38, 52, 67, .48);
  backdrop-filter: blur(7px);
}

.admin-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background-color: #fffdf7;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .48) 0 1px, transparent 1px),
    linear-gradient(145deg, #fffdf7, #eee8da);
  background-position: 0 0, 0 0;
  background-size: 22px 22px, 100% 100%;
  background-repeat: repeat, no-repeat;
  box-shadow: 0 28px 80px rgba(38, 52, 67, .32);
}

.admin-header {
  padding: 12px 14px;
  border-color: var(--line);
  background: linear-gradient(90deg, #fffaf0, #e9e2d5);
}

.admin-header h2 {
  color: var(--text);
  font: 600 20px / 1.1 Georgia, "Times New Roman", serif;
}

.admin-close {
  border-color: #cabd9f;
  border-radius: 5px;
  color: #435363;
  background: rgba(255, 253, 248, .86);
}

.admin-close:hover {
  border-color: #9d8451;
  color: #6f4d16;
  background: #f7eedb;
}

.admin-warning {
  border-color: rgba(140, 98, 27, .3);
  color: #6f4d16;
  background: #f5ead1;
}

.admin-card {
  border-color: #d4c8ad;
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 253, 247, .78);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9);
}

.admin-card h3 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.admin-card label,
.admin-current-state p {
  color: var(--muted);
}

.admin-card input,
.admin-card select {
  border-color: #c8b995;
  border-radius: 5px;
  color: var(--text);
  background: #fffdf7;
  box-shadow: inset 0 1px 3px rgba(48, 58, 63, .08);
}

.admin-card input:focus,
.admin-card select:focus {
  border-color: #176997;
}

.admin-current-state b {
  color: var(--text);
}

/* Notifications and no-script state */

.toast-stack {
  z-index: 1400;
}

.toast {
  border: 1px solid #c9b992;
  border-left: 4px solid #176997;
  border-radius: 6px;
  color: #314350;
  background: rgba(255, 253, 247, .97);
  box-shadow: 0 14px 36px rgba(38, 52, 67, .22);
  font-size: 11px;
}

.toast.is-error {
  border-color: rgba(179, 59, 54, .4);
  border-left-color: #b33b36;
  color: #842d29;
  background: rgba(255, 244, 241, .98);
}

.toast.is-success {
  border-color: rgba(37, 117, 85, .36);
  border-left-color: #257555;
  color: #205f47;
  background: rgba(240, 249, 243, .98);
}

.noscript {
  border-color: rgba(179, 59, 54, .46);
  color: #842d29;
  background: #fae5e2;
}

/* Responsive world layout */

@media (max-width: 1320px) {
  .layout {
    grid-template-columns: 198px minmax(520px, 1fr) 294px;
    gap: 10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .panel-card {
    padding: 10px;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(210px, 1fr) auto minmax(345px, auto);
  }

  .time-block {
    display: grid;
  }

  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .status-panel {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .status-panel .panel-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(210px, 1fr) auto;
  }

  .top-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 7px;
    overflow-x: auto;
    border-top: 1px solid rgba(199, 185, 148, .48);
    scrollbar-width: thin;
  }
}

@media (max-width: 820px) {
  .arena-match-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .arena-match-button {
    width: 100%;
  }

  .gym-allocation {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 8px 10px;
  }

  .time-block {
    display: grid;
    min-width: 200px;
    padding: 4px 8px;
  }

  .time-block strong {
    font-size: 16px;
  }

  .time-clock {
    padding-right: 8px;
  }

  .top-combat-rating {
    padding-left: 8px;
  }

  .top-actions {
    grid-column: 1 / -1;
    gap: 6px;
  }

  .top-actions .button {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .location-nav {
    position: static;
    display: flex;
    max-height: none;
    padding: 6px;
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .location-button {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    width: auto;
    min-width: 108px;
    min-height: 43px;
    flex: 0 0 108px;
    justify-items: stretch;
    padding: 5px 7px;
    text-align: left;
    scroll-snap-align: start;
  }

  .location-icon {
    width: 25px;
    height: 25px;
  }

  .nav-note {
    display: none;
  }

  .status-panel {
    grid-template-columns: 1fr;
  }

  .status-panel .panel-card:last-child {
    grid-column: auto;
  }

  .card-grid,
  .objective-banner {
    grid-template-columns: 1fr;
  }

  .objective-progress {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-block {
    gap: 11px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-title {
    font-size: 19px;
  }

  .brand-subtitle {
    display: none;
  }

  .time-block {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    min-height: 45px;
  }

  .time-clock > span,
  .top-combat-rating > span {
    font-size: 8px;
  }

  .time-block strong {
    font-size: 15px;
  }

  .button {
    min-height: 42px;
  }

  .layout {
    padding: 7px;
  }

  .location-nav {
    display: flex;
    grid-template-columns: none;
  }

  .location-header {
    padding: 14px;
  }

  .location-header h1 {
    font-size: 25px;
  }

  .location-header,
  .section-heading,
  .special-card-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-header-badge {
    align-self: auto;
  }

  .section-heading p {
    text-align: left;
  }

  .objective-banner {
    padding: 12px;
  }

  .action-card,
  .item-card,
  .npc-card {
    min-height: 0;
    padding: 12px;
  }

  .npc-card {
    min-height: 215px;
  }

  .panel-card {
    padding: 11px;
  }

  .admin-overlay {
    padding: 7px;
  }

  .admin-dialog {
    max-height: calc(100vh - 14px);
  }

  .admin-grid,
  .admin-button-stack {
    grid-template-columns: 1fr;
  }

  .toast-stack {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell *,
  .admin-overlay *,
  .purchase-overlay *,
  .toast-stack * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Large arena catalog: filters stay light and only one 24-card page is rendered. */

.shop-catalog {
  --shop-control-height: 40px;
}

.shop-category-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 2px 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(140, 98, 27, .38) transparent;
  scrollbar-width: thin;
  scroll-snap-type: inline proximity;
}

.shop-category-tabs::-webkit-scrollbar {
  height: 6px;
}

.shop-category-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(140, 98, 27, .34);
}

.shop-category-tab {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: #53636c;
  background: rgba(255, 253, 247, .78);
  box-shadow: inset 0 1px rgba(255, 255, 255, .92);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}

.shop-category-tab b {
  display: inline-grid;
  min-width: 23px;
  min-height: 20px;
  place-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  color: #7a6745;
  background: #ede7da;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.shop-category-tab:hover {
  border-color: rgba(140, 98, 27, .54);
  color: #6f4d16;
  background: #fff9ec;
}

.shop-category-tab.is-active,
.shop-category-tab[aria-selected="true"] {
  border-color: #8c621b;
  color: #fffaf0;
  background: linear-gradient(180deg, #a97827, #805916);
  box-shadow: inset 0 1px rgba(255, 255, 255, .3), 0 4px 12px rgba(90, 61, 16, .18);
}

.shop-category-tab.is-active b,
.shop-category-tab[aria-selected="true"] b {
  color: #694810;
  background: #fff3d9;
}

.shop-category-tab:focus-visible {
  outline: 3px solid rgba(23, 105, 151, .28);
  outline-offset: 2px;
}

.shop-toolbar {
  position: sticky;
  z-index: 8;
  top: 8px;
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(2, minmax(130px, .8fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .94);
  box-shadow: inset 0 1px rgba(255, 255, 255, .96), 0 9px 24px rgba(48, 58, 63, .13);
  backdrop-filter: blur(14px);
}

.shop-toolbar label {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.shop-toolbar label > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shop-toolbar input,
.shop-toolbar select {
  width: 100%;
  height: var(--shop-control-height);
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--text);
  background: #fffdf7;
  box-shadow: inset 0 1px 4px rgba(48, 58, 63, .06);
  font-size: 11px;
}

.shop-toolbar input::placeholder {
  color: #879197;
}

.shop-toolbar input:hover,
.shop-toolbar select:hover {
  border-color: #ad8b4d;
}

.shop-reset {
  min-height: var(--shop-control-height);
  white-space: nowrap;
}

.shop-results,
.shop-pagination-summary {
  margin: 9px 2px 3px;
  color: var(--faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.shop-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.shop-item-card {
  min-height: 0;
  content-visibility: auto;
  contain-intrinsic-size: 390px;
}

.shop-item-card.is-level-locked {
  border-color: #d6cfbf;
  background: linear-gradient(145deg, #f5f1e8, #e8e4da);
}

.shop-item-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
}

.shop-item-icon {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(140, 98, 27, .35);
  border-radius: 7px;
  color: #77531b;
  background: radial-gradient(circle at 35% 28%, #fffaf0, #eadfc7);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9);
  font: 700 20px Georgia, "Times New Roman", serif;
}

.shop-item-icon img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5efe2;
}

.shop-item-title {
  min-width: 0;
}

.shop-item-title .card-title {
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.shop-item-head .item-owned {
  align-self: start;
  padding: 3px 6px;
  border: 1px solid rgba(37, 117, 85, .25);
  border-radius: 999px;
  background: var(--good-soft);
  font-size: 8px;
  white-space: nowrap;
}

.shop-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}

.shop-item-badges span {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid rgba(140, 98, 27, .24);
  border-radius: 999px;
  color: #6f4d16;
  background: #f5ead1;
  font-size: 8px;
  font-weight: 800;
}

.shop-item-card .card-description {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.item-zone-protection {
  margin: 0 0 7px;
  padding: 7px 8px;
  border: 1px solid rgba(23,105,151,.24);
  border-radius: 5px;
  background: linear-gradient(145deg,#edf6f5,#e4eef2);
}

.item-zone-protection > strong {
  display: block;
  margin-bottom: 5px;
  color: #27566d;
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.item-zone-protection > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.item-zone-protection span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid rgba(39,86,109,.18);
  border-radius: 999px;
  color: #375b6c;
  background: rgba(255,255,255,.72);
}

.item-zone-protection i { font-size: 8px; font-style: normal; }
.item-zone-protection b { color: #176997; font-size: 9px; font-variant-numeric: tabular-nums; }

.item-effect {
  padding: 7px 8px;
  border: 1px solid rgba(37, 117, 85, .23);
  border-radius: 5px;
  background: #e7f2e8;
}

.item-effect strong {
  display: block;
  color: #1f654a;
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.item-effect p {
  margin: 3px 0 0;
  color: #365f4d;
  font-size: 9px;
  line-height: 1.35;
}

.item-effect.is-neutral {
  border-color: rgba(90, 105, 120, .2);
  color: var(--faint);
  background: rgba(238, 232, 218, .7);
}

.item-effect.is-neutral strong {
  color: var(--faint);
}

.item-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 7px;
}

.item-requirements span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.item-requirements i {
  padding: 2px 5px;
  border: 1px solid rgba(179, 59, 54, .2);
  border-radius: 3px;
  color: #8f3632;
  background: #fff3f1;
  font-size: 8px;
  font-style: normal;
}

.item-reference {
  margin-top: 7px;
  border: 1px dashed rgba(23, 105, 151, .31);
  border-radius: 5px;
  background: rgba(220, 238, 247, .48);
}

.item-reference summary {
  padding: 6px 7px;
  color: #155d86;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}

.item-reference > p {
  margin: 0;
  padding: 0 7px 5px;
  color: #647783;
  font-size: 8px;
}

.item-reference ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0 18px 7px 23px;
  color: #4f6573;
  font-size: 8px;
  line-height: 1.3;
}

.item-target-choice {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 7px;
  border: 1px solid rgba(140, 98, 27, .3);
  border-radius: 5px;
  background: #fff8e8;
}

.item-target-choice > span {
  color: #6f4d16;
  font-size: 8px;
  font-weight: 850;
}

.item-target-choice select {
  width: 100%;
  min-height: 34px;
  padding: 4px 7px;
  border: 1px solid #c7b994;
  border-radius: 4px;
  color: var(--text);
  background: #fffdf7;
  font-size: 9px;
}

.shop-item-card .requirement-list {
  display: grid;
  gap: 2px;
}

.shop-item-card .card-footer {
  margin-top: auto;
}

.shop-item-card .card-footer > div:first-child {
  min-width: 74px;
}

.shop-price-note {
  display: block;
  margin-top: 1px;
  color: var(--faint);
  font-size: 7px;
}

.shop-empty {
  margin-top: 12px;
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 253, 247, .58);
  text-align: center;
}

.shop-empty strong {
  display: block;
  color: var(--text);
  font: 600 18px Georgia, "Times New Roman", serif;
}

.shop-empty p {
  margin-top: 5px;
  font-size: 11px;
}

.shop-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px;
  border-top: 1px solid var(--line-soft);
}

.shop-pagination button {
  min-width: 34px;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #435363;
  background: #fffdf7;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.shop-pagination button:hover,
.shop-pagination button.is-current {
  border-color: #8c621b;
  color: #6f4d16;
  background: #f5ead1;
}

.shop-item-badges .is-copy-status {
  border-color: rgba(37, 117, 85, .28);
  color: #246248;
  background: #e5f2e9;
}

.shop-pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.shop-pagination > span:last-child {
  margin-left: 5px;
  color: var(--faint);
  font-size: 9px;
}

.shop-page-gap {
  display: grid;
  min-width: 20px;
  place-items: center;
  color: var(--faint);
}

.equipment-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.equipment-item img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(140, 98, 27, .25);
  border-radius: 4px;
  object-fit: contain;
  background: #f5efe2;
}

.equipment-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .shop-toolbar {
    grid-template-columns: minmax(210px, 1.5fr) repeat(2, minmax(125px, 1fr)) auto;
  }
}

@media (max-width: 760px) {
  .shop-toolbar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .shop-search {
    grid-column: 1 / -1;
  }

  .shop-reset {
    grid-column: 1 / -1;
  }

  .shop-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shop-toolbar {
    grid-template-columns: 1fr;
  }

  .shop-search,
  .shop-reset {
    grid-column: 1;
  }

  .shop-category-tabs {
    margin-inline: -3px;
    padding-inline: 3px;
  }

  .shop-item-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .shop-item-icon {
    width: 44px;
    height: 44px;
  }

  .shop-item-head .item-owned {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .shop-pagination > span:last-child {
    width: 100%;
    margin: 3px 0 0;
    text-align: center;
  }
}

/* v0.10: Fighter Hall, Arena hub and RPG inventory */
.fighter-hall-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #cbb98f;
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 18%, rgba(23, 105, 151, .13), transparent 12rem),
    linear-gradient(135deg, #fffaf0, #eee5d3);
  box-shadow: var(--shadow-soft);
}

.fighter-hall-emblem {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #a67c32;
  border-radius: 50%;
  color: #fffaf0;
  background: linear-gradient(145deg, #31586b, #193746);
  box-shadow: inset 0 0 0 5px #e7d5ae, 0 8px 22px rgba(43, 65, 75, .22);
  font-size: 28px;
}

.fighter-hall-card h3 { margin: 2px 0 5px; color: #263f4e; font: 700 23px Georgia, serif; }
.fighter-hall-card p { margin: 0 0 9px; color: var(--muted); }

.arena-hub-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid #d2c5a8;
  border-radius: 9px;
  background: #eee7d8;
}

.arena-hub-tabs button {
  min-height: 42px;
  flex: 1;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #64717d;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.arena-hub-tabs button span { margin-left: 5px; color: #8a7251; font-size: 10px; text-transform: uppercase; }
.arena-hub-tabs button.is-active { border-color: #bba26c; color: #294958; background: #fffaf0; box-shadow: 0 4px 12px rgba(60, 65, 59, .1); }

.arena-bot-intro,
.arena-hidden-opponent,
.live-arena-status {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d7cab0;
  border-radius: 8px;
  background: rgba(255, 253, 247, .72);
}

.arena-bot-intro { display: block; }
.arena-bot-intro strong { color: #304b5a; font: 700 18px Georgia, serif; }
.arena-bot-intro p, .arena-hidden-opponent p, .live-arena-status p { margin: 4px 0 0; color: var(--muted); }

.arena-invitation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.arena-invitation {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d4c7aa;
  border-radius: 8px;
  background: linear-gradient(145deg, #fffdf7, #f0eadf);
}

.arena-invitation.is-selected { border-color: #367899; box-shadow: inset 0 0 0 1px rgba(23, 105, 151, .18), 0 7px 18px rgba(43, 75, 88, .12); }
.arena-invitation-level { grid-row: 1 / span 2; display: grid; width: 50px; height: 62px; place-items: center; align-content: center; border: 1px solid #c3aa74; border-radius: 5px; color: #5c4930; background: #f3e6c8; line-height: 1; }
.arena-invitation-level small, .arena-invitation-level span { font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.arena-invitation-level b { margin: 3px 0; font: 700 25px Georgia, serif; }
.arena-invitation strong { display: block; overflow: hidden; color: #314b58; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.arena-invitation p { min-height: 29px; margin: 2px 0 5px; color: #6b7780; font-size: 9px; line-height: 1.3; }
.arena-invitation .button { grid-column: 2; min-height: 30px; padding: 5px 8px; font-size: 10px; }

.arena-hidden-opponent { justify-content: center; min-height: 100px; border-style: dashed; }
.arena-hidden-opponent > span { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid #cbb88f; border-radius: 50%; color: #9d7b3a; background: #f6ecd4; font: 700 29px Georgia, serif; }

.arena-reveal-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 170px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #a98b4e;
  border-radius: 9px;
  background: linear-gradient(120deg, #eef2ec, #fffaf0 45%, #eee3c9);
  box-shadow: 0 10px 25px rgba(48, 65, 69, .15);
}

.arena-reveal-portrait { position: relative; height: 126px; overflow: hidden; border: 4px solid #f7eedb; border-radius: 7px; background: #263d49; box-shadow: 0 0 0 1px #9c7c43, 0 8px 17px rgba(45, 54, 53, .2); }
.arena-reveal-portrait img { width: 100%; height: 100%; object-fit: cover; }
.arena-reveal-portrait span { position: absolute; right: 5px; bottom: 5px; padding: 3px 7px; border-radius: 999px; color: #fff; background: rgba(29, 53, 64, .86); font-weight: 900; }
.arena-reveal-copy h3 { margin: 2px 0; color: #273f4c; font: 700 23px Georgia, serif; }
.arena-reveal-copy > p { margin: 5px 0 8px; color: #5b6973; }
.arena-reveal-equipment { margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(120, 102, 69, .2); }
.arena-reveal-equipment strong, .arena-reveal-equipment span { display: block; }
.arena-reveal-equipment strong { color: #826021; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.arena-reveal-equipment span { margin-top: 3px; color: #596975; font-size: 10px; }
.arena-reveal-actions { display: grid; gap: 9px; }
.arena-reveal-actions > span { color: #3b735c; font-size: 11px; font-weight: 800; text-align: center; }

.live-arena-panel { display: grid; gap: 10px; }
.live-arena-status i { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: #a6a9a4; box-shadow: 0 0 0 5px rgba(105, 111, 108, .1); }
.live-arena-status i.is-waiting { background: #c18b2d; box-shadow: 0 0 0 5px rgba(193, 139, 45, .13); animation: liveWaiting 1.6s ease-in-out infinite; }
.live-arena-request { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; padding: 14px; border: 1px solid #d0c2a5; border-radius: 8px; background: linear-gradient(145deg, #fffaf0, #e9e5db); }
.live-arena-request span, .live-arena-request strong, .live-arena-request small { display: block; }
.live-arena-request span { color: #7a756b; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.live-arena-request strong { margin: 2px 0; color: #334d5b; }
.live-arena-request small, .live-arena-note { color: #69757d; }
.live-arena-note { margin: 0; padding: 10px 12px; border-left: 3px solid #9d8c67; background: rgba(255, 253, 247, .5); font-size: 11px; }

.equipment-quicklook { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; padding: 9px; border: 1px solid #d7cab1; border-radius: 6px; background: #f6f0e5; }
.equipment-quicklook strong, .equipment-quicklook span { display: block; }
.equipment-quicklook strong { color: #314a57; font-size: 11px; }
.equipment-quicklook span { margin-top: 2px; color: #71808a; font-size: 9px; line-height: 1.3; }
.equipment-mini-figure { position: relative; width: 34px; height: 44px; flex: 0 0 34px; }
.equipment-mini-figure::before { position: absolute; top: 0; left: 12px; width: 11px; height: 11px; border-radius: 50%; content: ''; background: #b59b6f; }
.equipment-mini-figure i { position: absolute; top: 13px; left: 7px; width: 21px; height: 29px; border-radius: 9px 9px 5px 5px; background: linear-gradient(#486a7b, #263f4c); clip-path: polygon(15% 0, 85% 0, 100% 68%, 72% 68%, 68% 100%, 53% 100%, 50% 70%, 47% 100%, 32% 100%, 28% 68%, 0 68%); }

.inventory-rpg-layout { display: grid; grid-template-columns: minmax(560px, 1fr) 210px; gap: 14px; align-items: start; }
.paperdoll-panel { min-width: 0; padding: 12px; border: 1px solid #c8b88f; border-radius: 9px; background: radial-gradient(ellipse at center, rgba(204, 223, 219, .9), transparent 47%), linear-gradient(145deg, #fffaf0, #e9e1d2); box-shadow: inset 0 0 50px rgba(97, 116, 117, .08), var(--shadow-soft); }
.paperdoll-title { display: flex; align-items: center; justify-content: center; gap: 9px; color: #2a4655; font: 700 19px Georgia, serif; }
.paperdoll-stage { position: relative; width: min(100%, 720px); height: 650px; margin: 4px auto 0; }
.paperdoll-aura { position: absolute; top: 8%; bottom: 5%; left: 50%; width: 300px; transform: translateX(-50%); border: 1px solid rgba(62, 112, 126, .17); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 250, 224, .82), rgba(104, 158, 167, .13) 54%, transparent 70%); box-shadow: 0 0 50px rgba(60, 122, 135, .16); }
.paperdoll-figure { position: absolute; z-index: 1; top: 80px; bottom: 55px; left: 50%; width: 210px; transform: translateX(-50%); filter: drop-shadow(0 13px 14px rgba(43, 55, 57, .18)); }
.paperdoll-figure i { position: absolute; display: block; background: linear-gradient(90deg, #b7c4c2, #e9e6d9 48%, #a8bbb9); }
.paperdoll-figure .is-head { top: 0; left: 74px; width: 62px; height: 72px; border-radius: 46% 46% 42% 42%; box-shadow: inset 0 -8px 14px rgba(74, 91, 92, .13); }
.paperdoll-figure .is-body { top: 68px; left: 42px; width: 126px; height: 230px; border-radius: 48px 48px 32px 32px; clip-path: polygon(18% 0, 82% 0, 100% 23%, 83% 100%, 17% 100%, 0 23%); }
.paperdoll-figure .is-arm-left, .paperdoll-figure .is-arm-right { top: 86px; width: 44px; height: 245px; border-radius: 22px; transform-origin: top; }
.paperdoll-figure .is-arm-left { left: 25px; transform: rotate(8deg); }
.paperdoll-figure .is-arm-right { right: 25px; transform: rotate(-8deg); }
.paperdoll-figure .is-leg-left, .paperdoll-figure .is-leg-right { top: 272px; width: 57px; height: 238px; border-radius: 18px 18px 26px 26px; }
.paperdoll-figure .is-leg-left { left: 46px; transform: rotate(2deg); }
.paperdoll-figure .is-leg-right { right: 46px; transform: rotate(-2deg); }

.paperdoll-slot { position: absolute; z-index: 4; display: grid; width: 70px; height: 70px; place-items: center; padding: 5px; border: 1px solid #af9c72; border-radius: 9px; color: #746543; background: rgba(255, 250, 239, .94); box-shadow: 0 5px 14px rgba(49, 64, 65, .13), inset 0 0 0 3px rgba(230, 219, 194, .6); cursor: help; }
.paperdoll-slot:hover, .paperdoll-slot:focus-visible { z-index: 30; border-color: #176997; box-shadow: 0 0 0 3px rgba(23, 105, 151, .16), 0 9px 23px rgba(48, 68, 72, .22); }
.paperdoll-slot.has-item { color: #274958; background: linear-gradient(145deg, #fffdf7, #dfe9e5); }
.paperdoll-slot img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(40, 45, 43, .2)); }
.paperdoll-slot > span:not(.paperdoll-tooltip) { font: 700 24px Georgia, serif; }
.paperdoll-slot > b { position: absolute; right: 3px; bottom: 2px; left: 3px; overflow: hidden; color: #596a72; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.paperdoll-slot-action { position: absolute; z-index: 8; top: -8px; right: -8px; min-height: 22px; padding: 3px 7px; transform: translateY(2px); border: 1px solid #9d664c; border-radius: 999px; color: #7e3f2d; background: #fff6e9; box-shadow: 0 4px 10px rgba(52, 48, 40, .2); cursor: pointer; font-size: 8px; font-weight: 900; opacity: 0; transition: opacity 140ms ease, transform 140ms ease, background 140ms ease; }
.paperdoll-slot:hover .paperdoll-slot-action, .paperdoll-slot:focus-within .paperdoll-slot-action { transform: translateY(0); opacity: 1; }
.paperdoll-slot-action:hover { color: #fffaf0; background: #9a5136; }
.paperdoll-slot.is-head { top: 0; left: calc(50% - 35px); }
.paperdoll-slot.is-chain { top: 104px; left: calc(50% - 145px); }
.paperdoll-slot.is-body { top: 170px; left: calc(50% - 35px); }
.paperdoll-slot.is-belt { top: 315px; left: calc(50% - 35px); }
.paperdoll-slot.is-gloves { top: 238px; left: calc(50% - 205px); }
.paperdoll-slot.is-bracers { top: 238px; right: calc(50% - 205px); }
.paperdoll-slot.is-legs { top: 405px; left: calc(50% - 35px); }
.paperdoll-slot.is-feet { bottom: 0; left: calc(50% - 35px); }
.paperdoll-slot.is-leftHand { top: 356px; left: 3%; }
.paperdoll-slot.is-rightHand { top: 356px; right: 16%; }
.paperdoll-slot.is-ring1, .paperdoll-slot.is-ring2, .paperdoll-slot.is-ring3, .paperdoll-slot.is-ring4 { right: 2%; width: 56px; height: 56px; }
.paperdoll-slot.is-ring1 { top: 92px; }
.paperdoll-slot.is-ring2 { top: 157px; }
.paperdoll-slot.is-ring3 { top: 222px; }
.paperdoll-slot.is-ring4 { top: 287px; }
.paperdoll-slot.is-ring1 img, .paperdoll-slot.is-ring2 img, .paperdoll-slot.is-ring3 img, .paperdoll-slot.is-ring4 img { width: 34px; height: 34px; }

.paperdoll-tooltip { position: absolute; z-index: 60; top: calc(100% + 7px); left: 50%; display: none; width: min(290px, 72vw); padding: 9px 10px; transform: translateX(-50%); border: 1px solid #967439; border-radius: 6px; color: #354b57; background: #fffaf0; box-shadow: 0 12px 28px rgba(38, 49, 50, .24); text-align: left; pointer-events: none; }
.paperdoll-slot:hover .paperdoll-tooltip, .paperdoll-slot:focus .paperdoll-tooltip, .paperdoll-slot:focus-visible .paperdoll-tooltip { display: block; }
.paperdoll-tooltip strong, .paperdoll-tooltip small, .paperdoll-tooltip em, .paperdoll-tooltip i { display: block; }
.paperdoll-tooltip strong { color: #243f4d; font: 700 14px Georgia, serif; }
.paperdoll-tooltip small { margin: 2px 0 6px; color: #7b7161; font-size: 8px; text-transform: uppercase; }
.paperdoll-tooltip em { color: #26684f; font-size: 10px; font-style: normal; }
.paperdoll-tooltip i { margin-top: 5px; padding-top: 5px; border-top: 1px solid #e0d4ba; color: #786b55; font-size: 9px; font-style: normal; }
.paperdoll-slot.is-rightHand .paperdoll-tooltip, .paperdoll-slot.is-bracers .paperdoll-tooltip, .paperdoll-slot[class*="is-ring"] .paperdoll-tooltip { right: 0; left: auto; transform: none; }
.paperdoll-slot.is-leftHand .paperdoll-tooltip, .paperdoll-slot.is-gloves .paperdoll-tooltip { left: 0; transform: none; }
.paperdoll-help { margin: 3px 0 0; color: #738087; font-size: 9px; text-align: center; }

.inventory-overview { display: grid; gap: 8px; position: sticky; top: 92px; }
.inventory-overview > div, .inventory-overview > p { margin: 0; padding: 12px; border: 1px solid #d2c4a5; border-radius: 7px; background: rgba(255, 253, 247, .82); }
.inventory-overview span, .inventory-overview strong, .inventory-overview small { display: block; }
.inventory-overview span { color: #6b777e; font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.inventory-overview strong { margin-top: 3px; color: #2c4c5b; font: 700 24px Georgia, serif; }
.inventory-overview small, .inventory-overview p { color: #6a757b; font-size: 10px; }
.inventory-backpack { margin-top: 14px; }
.inventory-backpack .shop-item-card { min-height: 100%; }
.item-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.button-sell { min-height: 34px; padding: 6px 9px; border: 1px solid #b68e6f; border-radius: 7px; color: #7e442d; background: #f5e7da; cursor: pointer; font-size: 10px; }
.button-sell:hover:not(:disabled) { border-color: #9b5b3d; background: #f0dac8; }
.button-sell:disabled { cursor: not-allowed; opacity: .42; }

/* v0.12: подтверждение покупки в стиле «Печати Сумрака». */
body.has-purchase-dialog { overflow: hidden; }
.purchase-overlay[hidden] { display: none !important; }
.purchase-overlay {
  position: fixed;
  z-index: 1320;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(102, 150, 158, .18), transparent 31rem),
    rgba(28, 41, 47, .68);
  backdrop-filter: blur(7px) saturate(.85);
}
.purchase-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 28px;
  border: 1px solid #a8894e;
  border-radius: 12px;
  color: #2b3d49;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .46) 0 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 50% 0, rgba(211, 232, 229, .82), transparent 20rem),
    linear-gradient(145deg, #fffdf6, #ece3d2);
  box-shadow: 0 32px 90px rgba(17, 27, 31, .48), inset 0 0 0 4px rgba(255, 249, 233, .76);
  animation: purchaseDialogIn 180ms ease-out both;
}
.purchase-dialog::before, .purchase-dialog::after {
  position: absolute;
  top: 13px;
  width: 33%;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, #b59455);
}
.purchase-dialog::before { left: 7%; }
.purchase-dialog::after { right: 7%; transform: scaleX(-1); }
.purchase-dialog-crest {
  position: absolute;
  z-index: 2;
  top: 2px;
  left: 50%;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid #a67a31;
  background: #f8edcf;
  box-shadow: 0 3px 9px rgba(58, 54, 43, .18);
}
.purchase-dialog-crest i { width: 9px; height: 9px; border: 2px solid #2c5c70; border-radius: 50%; }
.purchase-dialog-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #c5b38e;
  border-radius: 50%;
  color: #53636d;
  background: rgba(255, 253, 247, .78);
  cursor: pointer;
  font: 700 20px/1 Georgia, serif;
}
.purchase-dialog-close:hover { border-color: #9b7040; color: #833f30; background: #fff5e3; }
.purchase-dialog-header { padding: 7px 38px 17px; text-align: center; }
.purchase-dialog-header h2 { margin: 3px 0 4px; color: #263f4d; font: 700 25px/1.15 Georgia, serif; }
.purchase-dialog-header p { margin: 0; color: #6a777e; font-size: 10px; }
.purchase-dialog-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 14px;
  border: 1px solid #cbb98e;
  border-radius: 9px;
  background: linear-gradient(120deg, rgba(229, 239, 235, .8), rgba(255, 250, 239, .9));
  box-shadow: inset 0 1px rgba(255, 255, 255, .86);
}
.purchase-dialog-icon {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #a98442;
  border-radius: 8px;
  color: #78541c;
  background: radial-gradient(circle at 35% 25%, #fffdf6, #e3d5b7);
  box-shadow: inset 0 0 0 4px rgba(255, 250, 236, .72), 0 7px 16px rgba(47, 58, 59, .16);
  font: 700 29px Georgia, serif;
}
.purchase-dialog-icon img { width: 100%; height: 100%; object-fit: contain; }
.purchase-dialog-item > div:last-child > span { color: #8c651e; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.purchase-dialog-item h3 { margin: 3px 0; color: #253e4b; font: 700 21px/1.2 Georgia, serif; }
.purchase-dialog-item p { margin: 0; color: #5e6b73; font-size: 11px; line-height: 1.4; }
.purchase-copy-count { margin-top: 6px; color: #5d6d73; font-size: 10px; }
.purchase-copy-count strong { color: #22644a; font-size: 12px; }
.purchase-dialog-effects { display: grid; gap: 7px; margin-top: 10px; }
.purchase-dialog-effects .item-zone-protection { margin-top: 0; }
.purchase-effect-list { padding: 9px 11px; border: 1px solid rgba(37, 117, 85, .22); border-radius: 6px; background: rgba(229, 242, 233, .72); }
.purchase-effect-list strong { display: block; color: #276249; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.purchase-effect-list p { margin: 3px 0 0; color: #3c5a51; font-size: 10px; line-height: 1.45; }
.purchase-effect-list.is-muted { border-color: #d6cdbb; color: #68757b; background: rgba(245, 241, 232, .8); }
.purchase-dialog-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid #c9b88e;
  border-radius: 8px;
  background: rgba(255, 253, 247, .76);
}
.purchase-dialog-ledger > div { padding: 10px 12px; border-right: 1px solid #ddd1b8; }
.purchase-dialog-ledger > div:last-child { border-right: 0; }
.purchase-dialog-ledger span, .purchase-dialog-ledger strong { display: block; }
.purchase-dialog-ledger span { color: #778087; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.purchase-dialog-ledger strong { margin-top: 2px; color: #2b4754; font: 700 18px Georgia, serif; font-variant-numeric: tabular-nums; }
.purchase-dialog-ledger .is-price strong { color: #a04b35; }
.purchase-dialog-ledger .is-balance strong { color: #277054; }
.purchase-dialog-ledger .is-negative strong { color: #af3934; }
.purchase-dialog-warning { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.purchase-dialog-warning span { padding: 4px 7px; border: 1px solid rgba(179, 59, 54, .26); border-radius: 999px; color: #9a3732; background: #fae5e2; font-size: 9px; }
.purchase-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #d7c9ac; }
.purchase-dialog-actions .button { min-width: 132px; min-height: 42px; }
.purchase-dialog-note { margin: 10px 3px 0; color: #718087; font-size: 9px; line-height: 1.4; text-align: center; }
@keyframes purchaseDialogIn { from { transform: translateY(10px) scale(.985); opacity: 0; } }

@keyframes liveWaiting { 50% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(193, 139, 45, .08); } }

@media (max-width: 1260px) {
  .arena-invitation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-rpg-layout { grid-template-columns: 1fr; }
  .inventory-overview { position: static; grid-template-columns: repeat(3, 1fr); }
  .inventory-overview > p { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .fighter-hall-card { grid-template-columns: 52px minmax(0, 1fr); }
  .fighter-hall-emblem { width: 50px; height: 50px; }
  .fighter-hall-card > .button { grid-column: 1 / -1; }
  .arena-invitation-grid { grid-template-columns: 1fr; }
  .arena-reveal-card { grid-template-columns: 86px minmax(0, 1fr); }
  .arena-reveal-portrait { height: 102px; }
  .arena-reveal-actions { grid-column: 1 / -1; }
  .live-arena-request { grid-template-columns: 1fr; }
  .paperdoll-stage { height: 610px; transform: scale(.9); transform-origin: top center; margin-bottom: -55px; }
  .inventory-overview { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .arena-hub-tabs { display: grid; grid-template-columns: 1fr; }
  .arena-reveal-card { grid-template-columns: 1fr; }
  .arena-reveal-portrait { width: 120px; }
  .paperdoll-panel { padding: 5px; overflow: hidden; }
  .paperdoll-stage { left: 50%; width: 610px; transform: translateX(-50%) scale(.62); transform-origin: top center; margin-bottom: -230px; }
  .paperdoll-help { padding: 0 8px 7px; }
  .inventory-overview { grid-template-columns: 1fr; }
  .paperdoll-slot-action { opacity: 1; transform: none; }
  .purchase-overlay { padding: 7px; }
  .purchase-dialog { max-height: calc(100vh - 14px); padding: 23px 12px 14px; border-radius: 8px; }
  .purchase-dialog-header { padding-right: 28px; padding-left: 28px; }
  .purchase-dialog-header h2 { font-size: 21px; }
  .purchase-dialog-item { grid-template-columns: 65px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .purchase-dialog-icon { width: 62px; height: 62px; }
  .purchase-dialog-item h3 { font-size: 17px; }
  .purchase-dialog-ledger { grid-template-columns: 1fr; }
  .purchase-dialog-ledger > div { display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid #ddd1b8; }
  .purchase-dialog-ledger > div:last-child { border-bottom: 0; }
  .purchase-dialog-ledger strong { margin: 0; font-size: 16px; }
  .purchase-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .purchase-dialog-actions .button { min-width: 0; }
}
