/* Generated from styles.css: shared buttons, panels, forms and UI components. */

button, input { font: inherit; }

/* Compact table density used across the site. Page-specific tables may
   override these tokens when their content needs a different layout. */
:root {
  --table-cell-padding-block: 10px;
  --table-cell-padding-inline: 12px;
  --table-cell-font-size: 13px;
}

:where(table th, table td) {
  padding: var(--table-cell-padding-block) var(--table-cell-padding-inline);
  font-size: var(--table-cell-font-size);
}

/* Tables coming from wiki, news and other authored content always scroll in
   their own surface instead of forcing or clipping the page canvas. */
.content-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(170, 111, 105, 0.20);
  border-radius: 12px;
  background: rgba(12, 10, 10, 0.48);
  -webkit-overflow-scrolling: touch;
}

.content-table-wrap > table {
  width: max-content;
  min-width: 100%;
  margin: 0;
}

.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

@keyframes navOutlineIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.side-card {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 18px;
  background: rgba(12, 12, 13, 0.8);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 2px rgba(0,0,0,0.4);
}

.side-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.mini-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(106, 58, 58, 0.15);
  background: rgba(20, 20, 20, 0.6);
  color: #d8d8d8;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  transition: 0.2s ease;
  position: relative;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 2px rgba(0,0,0,0.4);
}

.mini-copy:hover {
  background: rgba(30, 20, 20, 0.8);
  border-color: rgba(106, 58, 58, 0.25);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.05),
    inset 0 -1px 2px rgba(0,0,0,0.5);
}

.mini-copy-icon {
  width: 15px;
  height: 15px;
  color: #d47f7f;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.top-social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(106, 58, 58, 0.15);
  border-radius: 10px;
  color: #d47f7f;
  background: rgba(20, 20, 20, 0.6);
  transition: 0.2s ease;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 3px rgba(0,0,0,0.5);
}

.top-social-link:hover {
  border-color: rgba(106, 58, 58, 0.25);
  background: rgba(30, 20, 20, 0.7);
}

.auth-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}

.auth-login-button,
.auth-logout-button,
.auth-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(106, 58, 58, 0.18);
  border-radius: 10px;
  color: #e3d7d5;
  background: rgba(20, 20, 20, 0.6);
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-login-button {
  min-height: 42px;
  padding: 0 14px;
  font-weight: 900;
  flex: 0 0 auto;
}

.auth-profile {
  display: inline-flex;
  align-items: center;
}

.auth-profile[hidden],
.auth-login-button[hidden] {
  display: none;
}

.auth-player-wrap {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.auth-player-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.auth-player {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f0e7e5;
  font-size: 13px;
  font-weight: 900;
}

.role-badge {
  max-width: 120px;
  min-height: 20px;
  padding: 2px 7px;
  overflow: hidden;
  border: 1px solid rgba(251, 168, 80, 0.28);
  border-radius: 8px;
  background: rgba(251, 168, 80, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fba850;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.role-badge[hidden] {
  display: none;
}

.auth-player-hint {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.auth-player-hint[hidden] {
  display: none;
}

.auth-logout-button {
  min-height: 34px;
  padding: 0 12px;
  color: #d47f7f;
  font-size: 12px;
  font-weight: 900;
}

.security-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  padding: 6px 8px;
  border: 1px solid rgba(251, 168, 80, 0.22);
  border-radius: 10px;
  background: rgba(251, 168, 80, 0.06);
  color: #e3d7d5;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.security-notice[hidden] {
  display: none;
}

.security-notice-action {
  min-height: 28px;
  padding: 0 9px;
  flex: 0 0 auto;
  font-size: 11px;
  text-decoration: none;
}

.search {
  position: relative;
  width: min(430px, 42vw);
  min-width: 0;
}

.search input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 42px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
  background: rgba(20, 20, 20, 0.6);
  outline: none;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 2px rgba(0,0,0,0.4);
}

.search input:focus {
  border-color: rgba(106, 58, 58, 0.3);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.05),
    inset 0 -1px 2px rgba(0,0,0,0.5);
}

.search-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  padding: 8px;
  border: 1px solid rgba(106, 58, 58, 0.22);
  border-radius: 14px;
  background: rgba(14, 12, 12, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 0 -1px 2px rgba(0,0,0,0.55),
    0 18px 32px rgba(0, 0, 0, 0.42);
}

.search-suggestions.is-open {
  display: grid;
  gap: 6px;
}

.search-suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #d9cece;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.search-suggestion:hover,
.search-suggestion.is-active {
  border-color: rgba(106, 58, 58, 0.25);
  background: rgba(106, 58, 58, 0.12);
}

.search-suggestion-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #d47f7f;
  background: rgba(106, 58, 58, 0.12);
  border: 1px solid rgba(106, 58, 58, 0.16);
}

.search-suggestion strong,
.search-suggestion small {
  display: block;
}

.search-suggestion strong {
  font-size: 13px;
  line-height: 1.2;
}

.search-suggestion small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.35;
}

.search-suggestion-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(106, 58, 58, 0.15);
  border-radius: 10px;
  color: inherit;
  background: rgba(20, 20, 20, 0.58);
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 3px rgba(0,0,0,0.5);
  transition: 0.2s ease;
}

.search-result:hover {
  border-color: rgba(106, 58, 58, 0.25);
  background: rgba(30, 20, 20, 0.68);
}

.search-result-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: center;
  line-height: 0;
  border-radius: 10px;
  color: #d47f7f;
  background: rgba(106, 58, 58, 0.12);
  border: 1px solid rgba(106, 58, 58, 0.16);
}

.search-result-icon .icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  margin: auto;
  position: static;
  transform: translate(0, 0);
}

.search-result strong,
.search-result > span:not(.search-result-icon),
.search-result > span:not(.search-result-icon) > span,
.search-result small {
  display: block;
}

.search-result strong {
  font-size: 14px;
  line-height: 1.25;
}

.search-result > span:not(.search-result-icon) > span {
  margin-top: 3px;
  color: #c9bebe;
  font-size: 12px;
  line-height: 1.4;
}

.search-result small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.35;
}

.search-type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-right: 7px;
  padding: 2px 6px;
  border: 1px solid rgba(212, 127, 127, 0.20);
  border-radius: 999px;
  color: #e6b0aa;
  background: rgba(106, 58, 58, 0.16);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.search-empty {
  padding: 18px;
  border: 1px solid rgba(106, 58, 58, 0.15);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(20, 20, 20, 0.42);
  line-height: 1.55;
}

.search-hit-highlight {
  border-radius: 8px;
  background: rgba(183, 107, 104, 0.12);
  box-shadow: 0 0 0 6px rgba(183, 107, 104, 0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.search > svg {
  position: absolute;
  left: 14px;
  top: 11px;
  color: var(--muted);
}

.keycap {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
}

.panel {
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  background: rgba(12, 12, 13, 0.85);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 3px rgba(0,0,0,0.5);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 370px;
  gap: 22px;
  align-items: stretch;
}

.hero-main {
  position: relative;
  overflow: hidden;
  padding: 36px;
  min-height: 440px;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(180, 80, 80, 0.10), transparent 26%),
    radial-gradient(circle at 88% 82%, rgba(122, 52, 52, 0.08), transparent 24%);
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.95;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 80, 80, 0.20);
  background: rgba(180, 80, 80, 0.08);
  color: #f0dede;
  font-size: 13px;
  font-weight: 900;
}

.badge h2 {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: 1;
  letter-spacing: 0;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cf7a7a;
}

.gradient-text {
  color: #d98686;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 14px 28px;
  border-radius: 6px;
  border: 10px solid rgba(255,255,255,0.06);
  background: rgba(30, 30, 30, 0.6);
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 900;
  transition: 0.2s ease;
  cursor: pointer;
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.04),
    inset 0 -2px 4px rgba(0,0,0,0.6);
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(106, 58, 58, 0.3);
  background: rgba(40, 40, 40, 0.7);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.06),
    inset 0 -2px 4px rgba(0,0,0,0.7);
}

.button.primary {
  background: #4a2a2a;
  border-color: rgba(106, 58, 58, 0.4);
  color: #e8e8e8;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.04),
    inset 0 -2px 5px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,255,0.02);
}

.button.primary:hover {
  background: #563232;
  border-color: rgba(106, 58, 58, 0.5);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.06),
    inset 0 -2px 5px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.03);
}

.button.primary:active {
  background: #3d2222;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.6),
    inset 0 -1px 2px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(0,0,0,0.3);
}

.button.secondary {
  background: #3d2a2a;
  border-color: rgba(106, 58, 58, 0.35);
  color: #d8d8d8;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.04),
    inset 0 -2px 5px rgba(0,0,0,0.45),
    0 1px 0 rgba(255,255,255,0.02);
}

.button.secondary:hover {
  background: #483232;
  border-color: rgba(106, 58, 58, 0.45);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.06),
    inset 0 -2px 5px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,255,0.03);
}

.shop-spotlight {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.shop-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.shop-title h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.055em;
}

.shop-title img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.shop-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(20, 20, 20, 0.6);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 3px rgba(0,0,0,0.5);
}

.shop-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #eddcdc;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  font-weight: 900;
}

.shop-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.045em;
}

.shop-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 19px;
}

.section-note {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.copy-icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #d47f7f;
  background: rgba(180, 80, 80, 0.08);
  border: 1px solid rgba(180, 80, 80, 0.18);
  transition: 0.2s ease;
}

.copy-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.online-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #6f5f5d;
  box-shadow: 0 0 0 4px rgba(111, 95, 93, 0.10);
}

.is-online .online-dot {
  background: #89d18b;
  box-shadow: 0 0 0 4px rgba(137, 209, 139, 0.12);
}

.is-offline .online-dot {
  background: #c76f68;
  box-shadow: 0 0 0 4px rgba(199, 111, 104, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 20px;
  background: rgba(20, 20, 20, 0.6);
  transition: 0.2s ease;
  text-align: left;
  color: inherit;
  cursor: pointer;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 3px rgba(0,0,0,0.5);
}

.card:hover {
  border-color: rgba(106, 58, 58, 0.18);
  background: rgba(30, 20, 20, 0.7);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.05),
    inset 0 -1px 3px rgba(0,0,0,0.6);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #a85858;
  background: rgba(106, 58, 58, 0.12);
  border: 1px solid rgba(106, 58, 58, 0.16);
  margin-bottom: 16px;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 2px rgba(0,0,0,0.4);
}

.card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  letter-spacing: -0.045em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 14px;
}

.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.doc-card {
  padding: 28px;
}

.store-section {
  padding: 28px;
}

.store-status {
  margin-top: 18px;
}

.store-status-action {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.store-category-list {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.store-category-section {
  min-width: 0;
}

.store-category-head {
  max-width: 680px;
}

.store-category-head h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 18px;
}

.store-category-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.store-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.store-catalog-main {
  min-width: 0;
}

.store-preview-panel {
  position: sticky;
  top: 84px;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 238, 235, 0.09);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(10, 10, 12, 0.64);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.store-preview-empty,
.store-preview-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.store-preview-empty h2,
.store-preview-body h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.18;
}

.store-preview-empty p,
.store-preview-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.store-preview-placeholder {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 144, 116, 0.16);
  border-radius: 12px;
  color: #ffb269;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 120, 86, 0.18), transparent 54%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 238, 235, 0.035);
}

.store-preview-description {
  max-height: 8.9em;
  overflow: auto;
  white-space: pre-wrap;
}

.store-preview-benefits {
  display: grid;
  gap: 8px;
}

.store-preview-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 144, 116, 0.14);
  border-radius: 9px;
  color: #f5ddd7;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 800;
}

.store-preview-benefits svg {
  color: #ffb269;
}

.store-preview-media {
  position: relative;
  height: 145px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.store-preview-media img {
  position: absolute;
  inset: 12px;
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.store-preview-media .store-product-media-empty {
  height: 100%;
}

.store-preview-meta {
  display: grid;
  gap: 7px;
  margin: 0;
}

.store-preview-meta div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  align-items: baseline;
}

.store-preview-meta dt {
  color: rgba(255, 238, 235, 0.58);
  font-size: 12px;
}

.store-preview-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.store-preview-account {
  padding: 10px;
}

.store-preview-account > span {
  width: 36px;
  height: 36px;
}

.store-preview-actions {
  display: grid;
  gap: 8px;
}

.store-preview-actions .button {
  min-height: 40px;
  padding: 0 14px;
}

.store-mini-cart {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 1180;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 144, 116, 0.32);
  border-radius: 999px;
  color: #f7e6df;
  background:
    linear-gradient(135deg, rgba(255, 90, 72, 0.22), rgba(255, 163, 94, 0.11)),
    rgba(18, 12, 12, 0.88);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 238, 235, 0.03);
  font-weight: 850;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.store-mini-cart:hover,
.store-mini-cart.has-items {
  border-color: rgba(255, 112, 88, 0.42);
  color: #fff1ec;
  background:
    linear-gradient(135deg, rgba(255, 92, 72, 0.32), rgba(255, 176, 104, 0.16)),
    rgba(18, 12, 12, 0.92);
}

.store-mini-cart:hover {
  transform: translateY(-2px);
}

.store-mini-cart-count {
  position: absolute;
  top: -7px;
  right: -5px;
  display: none;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #180b08;
  background: #ffb269;
  font-size: 11px;
  font-weight: 950;
}

.store-mini-cart.has-items .store-mini-cart-count {
  display: grid;
}

.store-mini-cart-total {
  color: rgba(255, 238, 235, 0.74);
  font-size: 12px;
}

.store-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  justify-content: flex-end;
}

.store-cart-drawer.is-open {
  display: flex;
}

.store-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.store-cart-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 24px));
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  overflow: auto;
  border-radius: 0;
}

.store-cart-step {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 14px;
}

.store-cart-step[hidden] {
  display: none;
}

.store-cart-recipient-step {
  align-content: start;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
}

.store-cart-back-button {
  width: max-content;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.store-cart-back-button:hover {
  color: #fff1ec;
}

.store-cart-recipient-step h3 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
}

.store-recipient-options {
  display: grid;
  gap: 8px;
}

.store-recipient-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 238, 235, 0.09);
  border-radius: 10px;
  color: #f4ded8;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.store-recipient-options label:has(input:checked) {
  border-color: rgba(255, 118, 96, 0.42);
  background: rgba(255, 98, 78, 0.13);
}

.store-recipient-self,
.store-recipient-gift {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 176, 103, 0.18);
  border-radius: 10px;
  background: rgba(255, 144, 76, 0.055);
}

.store-recipient-self[hidden],
.store-recipient-gift[hidden] {
  display: none;
}

.store-recipient-self p,
.store-recipient-result {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.store-recipient-self strong {
  color: #ffe4d4;
  font-size: 14px;
}

.store-recipient-field {
  display: grid;
  gap: 6px;
}

.store-recipient-field span {
  color: rgba(255, 238, 235, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.store-recipient-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 238, 235, 0.1);
  border-radius: 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  outline: none;
}

.store-recipient-field input:focus {
  border-color: rgba(255, 118, 96, 0.44);
}

.store-recipient-result[data-tone="success"] {
  color: #9be5b0;
}

.store-recipient-result[data-tone="error"] {
  color: #ffb4a8;
}

.store-gift-hint {
  margin: 0;
  color: rgba(255, 238, 235, 0.64);
  font-size: 12px;
  line-height: 1.45;
}

.store-cart-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
}

.store-cart-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.store-cart-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
}

.store-cart-empty {
  padding: 14px;
  border: 1px solid rgba(255, 238, 235, 0.08);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.14);
  font-size: 13px;
  line-height: 1.45;
}

.store-cart-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 238, 235, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.store-cart-item.is-unavailable {
  border-color: rgba(255, 120, 92, 0.22);
}

.store-cart-item-media {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  padding: 4px;
  border-radius: 8px;
  color: #ffb269;
  background: rgba(0, 0, 0, 0.22);
}

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

.store-cart-item-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.store-cart-item-body strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-cart-item-body span {
  color: var(--muted);
  font-size: 12px;
}

.store-cart-qty {
  display: inline-grid;
  grid-template-columns: 28px 28px 28px;
  gap: 4px;
  align-items: center;
  width: max-content;
}

.store-cart-qty button,
.store-cart-icon-button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 238, 235, 0.1);
  border-radius: 8px;
  color: #f7e6df;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.store-cart-qty button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.store-cart-qty b {
  color: var(--text);
  font-size: 13px;
  text-align: center;
}

.store-cart-account {
  margin-top: auto;
}

.store-cart-footer {
  display: grid;
  gap: 10px;
  align-items: start;
}

.store-cart-footer .store-cart-pay-button,
body.compact-ui .store-cart-footer .store-cart-pay-button {
  align-self: start;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  gap: 9px;
  font-size: 14px;
  font-weight: 900;
}

.store-cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.store-cart-total-row strong {
  color: var(--text);
  font-size: 18px;
}

.store-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(90deg, rgba(20, 14, 14, 0.98), rgba(20, 14, 14, 0.84)),
    radial-gradient(circle at 86% 24%, rgba(255, 98, 78, 0.16), transparent 36%);
}

.store-hero.page-title {
  padding: 22px 24px;
}

.store-hero-copy {
  max-width: 720px;
}

.store-section {
  padding: 18px;
}

.store-catalog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.store-catalog-title {
  min-width: 0;
}

.store-catalog-title h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.store-catalog-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.store-benefits {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
}

.store-benefits div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 144, 116, 0.18);
  border-radius: 999px;
  color: #f6ded8;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.store-benefits span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #ffb269;
  background: rgba(255, 137, 91, 0.12);
}

@media (max-width: 860px) {
  .store-catalog-header {
    display: grid;
    gap: 8px;
  }

  .store-benefits {
    flex-wrap: wrap;
  }

  .store-preview-panel {
    display: none;
  }

  .store-mini-cart {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(84px + env(safe-area-inset-bottom));
    min-width: 48px;
    padding: 0 14px;
  }

  .store-mini-cart-total {
    display: none;
  }

  .store-cart-panel {
    width: 100vw;
    min-height: 100vh;
    padding: 18px;
  }
}

.store-category-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 4px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(255, 238, 235, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.store-category-tabs button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.store-category-tabs button:hover,
.store-category-tabs button.is-active {
  border-color: rgba(255, 118, 96, 0.34);
  color: #fff1ec;
  background: rgba(255, 100, 82, 0.13);
}

.store-product-card {
  min-width: 0;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 238, 235, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(12, 12, 13, 0.42);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.store-product-card:hover,
.store-product-card:focus-visible,
.store-product-card.is-active {
  border-color: rgba(255, 130, 118, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(18, 13, 13, 0.5);
  transform: translateY(-2px);
  outline: none;
}

.store-product-card.is-active {
  border-color: rgba(255, 119, 92, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 119, 92, 0.18), 0 12px 26px rgba(0, 0, 0, 0.24);
}

.store-product-media {
  position: relative;
  height: 136px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.store-product-badge {
  position: absolute;
  left: 9px;
  top: 9px;
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 132, 0.22);
  border-radius: 999px;
  color: #ffd3a4;
  background: rgba(18, 10, 8, 0.78);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.store-product-media img {
  position: absolute;
  inset: 10px;
  display: block;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.store-product-media-empty {
  color: var(--accent);
}

.store-product-body {
  flex: 1 1 auto;
  padding: 12px 12px 6px;
}

.store-product-body h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.store-product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.store-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.store-product-badges span {
  min-width: 0;
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 132, 0.18);
  border-radius: 7px;
  color: #ffd5aa;
  background: rgba(18, 10, 8, 0.52);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-product-note {
  display: block;
  margin-top: 8px;
  color: rgba(255, 238, 235, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.store-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 10px 12px 12px;
}

.store-product-footer strong {
  color: #f4dddd;
  font-size: 16px;
}

.store-product-footer [data-store-buy],
.store-product-buy {
  min-width: 96px;
  min-height: 34px;
  padding: 6px 10px;
  justify-content: center;
}

.page[data-page="store"] .store-product-footer .button {
  min-height: 34px;
}

.store-product-more {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.store-product-message {
  margin: -2px 12px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.store-product-message[data-tone="error"] {
  color: #ffb4a8;
}

.store-product-message[data-tone="muted"] {
  color: rgba(255, 238, 235, 0.68);
}

.store-product-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.store-product-modal.is-open {
  display: flex;
}

.store-product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.store-product-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 48px));
  max-height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(320px, 1fr);
  overflow: hidden;
}

.store-product-modal-media {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.28);
}

.store-product-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.store-product-modal-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  overflow: auto;
}

.store-product-modal-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.store-product-modal-content h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.store-product-modal-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.store-product-modal-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.store-product-modal-benefits {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 238, 235, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.store-product-modal-benefits h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.store-product-modal-benefits ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-product-modal-benefits li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.store-product-modal-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffb269;
  box-shadow: 0 0 12px rgba(255, 121, 84, 0.55);
}

.store-checkout-note {
  margin: -4px 0 0;
}

.store-product-modal-meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: baseline;
}

.store-product-modal-meta dt {
  color: rgba(255, 238, 235, 0.58);
  font-size: 13px;
}

.store-product-modal-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.store-product-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.store-product-modal-actions .button {
  min-height: 42px;
  padding: 0 14px;
}

.store-product-modal-actions .store-gift-soon {
  grid-column: 1 / -1;
}

.store-gift-soon span {
  margin-left: 8px;
  color: rgba(255, 238, 235, 0.56);
  font-size: 12px;
}

.doc-card h3 {
  margin: 24px 0 9px;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.doc-card p,
.doc-card li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.doc-card ul,
.doc-card ol {
  padding-left: 22px;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.toc a,
.toc button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 0;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.toc a:hover,
.toc button:hover {
  color: var(--text);
}

.internal-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 0.35em;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #69b7ff;
  background: transparent;
  font-weight: 800;
  line-height: inherit;
  text-decoration: none;
  vertical-align: baseline;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.internal-link:hover,
.internal-link:focus-visible {
  color: #9fd2ff;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: rgba(159, 210, 255, 0.6);
  text-underline-offset: 0.18em;
}

.internal-link > .internal-link__icon {
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  min-width: 1em !important;
  margin: 0 !important;
  flex: 0 0 1em;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: currentColor !important;
  box-shadow: none !important;
  -webkit-mask: url("/assets/meltarion_svg.svg") center / contain no-repeat;
  mask: url("/assets/meltarion_svg.svg") center / contain no-repeat;
  vertical-align: -0.12em;
}

.internal-link__path {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rules-shell {
  display: grid;
  gap: 28px;
}

.rules-intro {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(180, 80, 80, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(106, 58, 58, 0.12), rgba(106, 58, 58, 0.04)),
    rgba(18, 18, 19, 0.85);
  color: #ddd2d2;
}

.rule-section {
  scroll-margin-top: 104px;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rule-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.rule-section-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.rule-section-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.rule-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(180, 80, 80, 0.18);
  background: rgba(106, 58, 58, 0.10);
  color: #efcfcf;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rule-block + .rule-block {
  margin-top: 18px;
}

.rule-block h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.45;
}

.rule-block p {
  margin: 0;
}

.rule-list {
  margin: 0;
  padding-left: 20px;
}

.rule-list li + li {
  margin-top: 7px;
}

.map-frame {
  overflow: hidden;
  height: 800px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0a090a;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.notice {
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid rgba(106, 58, 58, 0.15);
  background: rgba(106, 58, 58, 0.08);
  color: #d8d8d8;
  line-height: 1.55;
  font-size: 14px;
  margin-top: 16px;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 2px rgba(0,0,0,0.4);
}

.code-line {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 9px;
  color: #f0e5e5;
  border: 1px solid rgba(180, 80, 80, 0.18);
  background: rgba(180, 80, 80, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.footer {
  margin-top: 38px;
  color: var(--muted-2);
  text-align: center;
  font-size: 13px;
}

.mobile-toggle { display: none; }

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

@media (max-width: 1023px) {

  .mobile-toggle { display: inline-flex; }
  .search { display: none; }
}

@media (max-width: 760px) {

  .section-head { display: block; }
  .section-note { margin-top: 10px; }
  .map-frame { height: 800px; }

  .hero-logo {
    width: 70px;
    height: 70px;
    right: 18px;
    top: 18px;
    opacity: 0.42;
  }
}

.hero-main::before,
.page-title::after {
  opacity: 0.7;
}

.button,
.copy-icon-btn {
  position: relative;
  color: var(--text-emboss);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
  transform: none !important;
}

.button {
  min-height: 58px;
  padding: 0 24px;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 44%, rgba(116, 69, 64, 0.10), transparent 64%),
    linear-gradient(180deg, rgba(41, 31, 29, 0.98) 0%, rgba(23, 18, 17, 1) 100%);
  border-color: rgba(132, 87, 82, 0.48);
  box-shadow:
    inset 0 12px 0 rgba(255, 223, 223, 0.04),
    inset 0 -10px 0 rgba(0, 0, 0, 0.92),
    inset 10px 10px 16px rgba(0, 0, 0, 0.72),
    inset -2px -2px 10px rgba(105, 73, 69, 0.08),
    0 0 0 1px rgba(8, 6, 6, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.22);
}

.button.primary {
  background:
    radial-gradient(circle at 50% 42%, rgba(130, 77, 71, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(60, 40, 37, 0.98) 0%, rgba(31, 23, 22, 1) 100%);
  border-color: rgba(154, 95, 90, 0.52);
}

.button.secondary {
  background:
    radial-gradient(circle at 50% 42%, rgba(96, 62, 58, 0.10), transparent 65%),
    linear-gradient(180deg, rgba(36, 29, 28, 0.98) 0%, rgba(20, 17, 16, 1) 100%);
  border-color: rgba(120, 82, 77, 0.42);
}

.search input {
  min-height: 48px;
  color: #d7cdcd;
  background:
    linear-gradient(180deg, rgba(25, 20, 19, 0.98) 0%, rgba(15, 13, 12, 1) 100%);
  border-color: rgba(110, 75, 71, 0.34);
}

.search input::placeholder {
  color: #7f7271;
}

.search input:focus {
  border-color: rgba(154, 95, 90, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 223, 223, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.92),
    inset 4px 4px 10px rgba(0, 0, 0, 0.74),
    inset -2px -2px 6px rgba(111, 78, 74, 0.08),
    0 0 0 1px rgba(10, 8, 8, 0.5),
    0 0 0 3px rgba(183, 107, 104, 0.08);
}

.badge,
.shop-card .tag,
.keycap {
  color: #dccccc;
  font-weight: 800;
  text-shadow:
    0 -1px 0 rgba(255, 232, 232, 0.04),
    0 1px 1px rgba(0, 0, 0, 0.82);
}

.badge .pulse {
  box-shadow:
    0 0 0 1px rgba(91, 48, 45, 0.6),
    0 0 10px rgba(183, 107, 104, 0.12);
}

.shop-card .button {
  min-height: 54px;
}

.mini-copy-icon,
.copy-icon-btn,
.copy-icon {
  color: var(--cocoa-accent);
}

.copy-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(33, 25, 24, 0.98) 0%, rgba(20, 16, 15, 1) 100%);
}

.gradient-text {
  color: #c9706d;
  text-shadow:
    0 -1px 0 rgba(255, 210, 210, 0.06),
    0 2px 2px rgba(0, 0, 0, 0.72);
}

.button::after,
.copy-icon-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 224, 218, 0.018);
  opacity: 0.62;
  transition: opacity 180ms ease;
}

.button:hover::after,
.copy-icon-btn:hover::after {
  opacity: 0.52;
}

.button.primary {
  background: var(--deboss-primary-bg);
  border-color: rgba(174, 98, 92, 0.54);
}

.button.primary:hover {
  border-color: rgba(218, 124, 116, 0.66);
  background: var(--deboss-primary-bg-hover);
}

.hero-actions .button {
  min-width: 190px;
}

.icon,
.copy-icon,
.mini-copy-icon {
  filter: none !important;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  transform: translate(-50%, 14px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 10px;
  background: #6fbf83;
  border: 1px solid rgba(190, 245, 203, 0.38);
  color: #f5fff7;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(15, 72, 36, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -2px 4px rgba(34, 99, 55, 0.26),
    0 14px 30px rgba(0, 0, 0, 0.42);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.auth-modal.is-open,
.auth-modal[aria-hidden="false"] {
  display: grid;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 25%, rgba(95, 55, 52, 0.22), transparent 34%),
    rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 22px;
  transform: translateY(14px) scale(0.97);
  transition: transform 240ms ease;
}

.auth-modal.is-open .auth-dialog,
.auth-modal[aria-hidden="false"] .auth-dialog {
  animation: authDialogIn 180ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes authDialogIn {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.985);
  }

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

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(170, 111, 105, 0.28);
  border-radius: 12px;
  color: #d47f7f;
  background: rgba(20, 16, 15, 0.92);
  cursor: pointer;
}

.auth-lead {
  margin: 18px 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-tabs {
  display: inline-flex;
  position: relative;
  gap: 6px;
  padding: 5px;
  margin: 16px 0 4px;
  width: min(100%, 292px);
  border: 1px solid rgba(170, 111, 105, 0.18);
  border-radius: 999px;
  background: rgba(20, 16, 15, 0.72);
}

.auth-tabs-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border: 1px solid rgba(226, 126, 126, 0.32);
  border-radius: inherit;
  background: rgba(226, 126, 126, 0.14);
  box-shadow: inset 0 0 18px rgba(226, 126, 126, 0.08);
  transform: translateX(0);
  transition:
    transform 220ms cubic-bezier(.2, .8, .2, 1),
    background 220ms ease,
    border-color 220ms ease;
}

.auth-tabs.is-register .auth-tabs-indicator {
  transform: translateX(100%);
}

.auth-tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #bfb4b2;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.auth-tab.active {
  color: #f0dede;
  font-weight: 950;
}

.auth-panels {
  position: relative;
  overflow: hidden;
  transition: height 220ms cubic-bezier(.2, .8, .2, 1);
}

.auth-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(.2, .8, .2, 1),
    visibility 0s linear 220ms;
}

.auth-panel.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(.2, .8, .2, 1),
    visibility 0s;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form h3 {
  margin: 10px 0 0;
  color: #f0dede;
  font-size: 18px;
  letter-spacing: 0;
}

.auth-register-info ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #d8cecc;
  line-height: 1.55;
}

.auth-warning {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(251, 168, 80, 0.24);
  border-radius: 12px;
  color: #f0c2ba;
  background: rgba(251, 168, 80, 0.06);
  font-size: 13px;
  line-height: 1.45;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #cfc2c0;
  font-size: 13px;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(170, 111, 105, 0.34);
  border-radius: 12px;
  color: var(--text);
  background: #211917;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 235, 0.06),
    inset 4px 4px 7px rgba(0, 0, 0, 0.68);
}

.auth-form input:focus {
  border-color: rgba(204, 132, 124, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 235, 0.08),
    inset 5px 5px 8px rgba(0, 0, 0, 0.72),
    0 0 0 3px rgba(198, 126, 118, 0.10);
}

.auth-inline-link {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #d9aaa4;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-inline-link:hover,
.auth-inline-link:focus-visible {
  color: #f0dede;
}

.auth-captcha {
  display: grid;
  min-height: 74px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(170, 111, 105, 0.20);
  border-radius: 12px;
  background: rgba(20, 16, 15, 0.54);
}

.auth-captcha[hidden] {
  display: none;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-message[data-tone="success"] {
  color: #9ee0ad;
}

.auth-message[data-tone="error"] {
  color: #e69a9a;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
}

.auth-map-link {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  color: #d47f7f;
  font-size: 13px;
  font-weight: 900;
}

.auth-register-fallback {
  justify-self: center;
  color: #b9adab;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease;
}

.auth-register-fallback:hover {
  color: #d47f7f;
}

@media (prefers-reduced-motion: reduce) {
  .auth-tabs-indicator,
  .auth-panel,
  .auth-panels {
    transition: none !important;
    animation: none !important;
  }
}

body.auth-modal-open {
  overflow: hidden;
}

.minecraft-text {
  display: inline;
  align-items: baseline;
  gap: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

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

.security-card {
  gap: 16px;
}

.security-card[hidden] {
  display: none !important;
}

.security-status {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(170, 111, 105, 0.18);
  border-radius: 12px;
  background: rgba(22, 17, 16, 0.54);
}

.security-status strong {
  color: var(--text);
  font-size: 15px;
}

.security-status span {
  color: var(--muted);
  line-height: 1.5;
}

.security-status.warning {
  border-color: rgba(251, 168, 80, 0.30);
  background: rgba(251, 168, 80, 0.08);
}

.security-status.warning strong,
.security-pill.warning {
  color: #f6b66f;
}

.security-status.success {
  border-color: rgba(112, 202, 142, 0.30);
  background: rgba(112, 202, 142, 0.08);
}

.security-status.success strong,
.security-pill.success {
  color: #9fe2ad;
}

.security-pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.security-pill.muted {
  border-color: rgba(218, 190, 185, 0.16);
  color: #c7b8b5;
  background: rgba(52, 43, 41, 0.50);
}

.security-pill.warning {
  border-color: rgba(251, 168, 80, 0.30);
  background: rgba(251, 168, 80, 0.08);
}

.security-pill.success {
  border-color: rgba(112, 202, 142, 0.30);
  background: rgba(112, 202, 142, 0.08);
}

.primary-cta-button {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 8px;
  border-width: 1px;
  white-space: nowrap;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 2px rgba(255,255,255,0.06),
    inset 0 -2px 5px rgba(0,0,0,0.5);
}

.primary-cta-button .mobile-label {
  display: none;
}

.tag-count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #bfb6b4;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.filter-field > span,
.filter-field > label {
  position: static;
  display: block;
  margin: 0;
  line-height: 1.2;
  pointer-events: none;
}

.custom-select {
  position: relative;
  width: 100%;
  z-index: 20;
  min-width: 0;
  transform: none !important;
}

.custom-select.open,
.custom-select.is-open {
  z-index: 80;
}

.custom-select-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  gap: 10px;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(170, 111, 105, 0.25);
  border-radius: 10px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(38, 28, 26, 0.94), rgba(26, 20, 19, 0.94));
  outline: none;
  cursor: pointer;
  transform: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 235, 0.055),
    0 8px 18px rgba(0, 0, 0, 0.18);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger,
.custom-select.is-open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  border-color: rgba(204, 132, 124, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 235, 0.08),
    0 0 0 3px rgba(198, 126, 118, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.25);
}

.custom-select-value {
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  pointer-events: none;
  border-right: 2px solid rgba(224, 185, 181, 0.76);
  border-bottom: 2px solid rgba(224, 185, 181, 0.76);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.custom-select.open .custom-select-chevron,
.custom-select.is-open .custom-select-chevron {
  transform: translateY(2px) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  max-height: min(280px, 58vh);
  min-width: 100%;
  padding: 6px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 126, 126, 0.45) rgba(20, 14, 14, 0.8);
  border: 1px solid rgba(170, 111, 105, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(31, 24, 23, 0.98), rgba(18, 16, 16, 0.98));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 238, 235, 0.05);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.custom-select-menu::-webkit-scrollbar {
  width: 8px;
}

.custom-select-menu::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(20, 14, 14, 0.8);
}

.custom-select-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(226, 126, 126, 0.42);
}

.custom-select.open .custom-select-menu,
.custom-select.is-open .custom-select-menu {
  opacity: 1;
  transform: translateY(0);
}

.custom-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d9cfcd;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.custom-select-option::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(214, 146, 139, 0);
  box-shadow: 0 0 0 1px rgba(214, 146, 139, 0.24);
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  color: #f0dede;
  background: rgba(112, 65, 60, 0.22);
  outline: none;
}

.custom-select-option.active {
  color: #f5e6e2;
  border-color: rgba(204, 132, 124, 0.30);
  background: rgba(118, 68, 68, 0.28);
}

.custom-select-option.active::before {
  background: #d9928b;
  box-shadow: 0 0 10px rgba(217, 146, 139, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .custom-select-trigger,
  .custom-select-chevron,
  .custom-select-menu,
  .custom-select-option {
    transition: none !important;
  }
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(170, 111, 105, 0.20);
  border-radius: 14px;
  background: rgba(14, 12, 12, 0.72);
}

@keyframes wikiToolbarContextIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.editor-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-toolbar-group:last-child {
  padding-right: 0;
  border-right: 0;
}

.editor-toolbar-label {
  width: 100%;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.editor-toolbar-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(170, 111, 105, 0.22);
  border-radius: 9px;
  color: #e0cac7;
  background: rgba(30, 24, 23, 0.86);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.emoji-editor-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0;
}

.emoji-floating-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 80 !important;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 120, 120, 0.35);
  border-radius: 10px;
  color: #fff;
  background: rgba(42, 27, 27, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  line-height: 1;
}

.emoji-floating-btn:hover,
.emoji-floating-btn:focus-visible {
  border-color: rgba(255, 155, 155, 0.65);
  background: rgba(64, 38, 38, 0.96);
  outline: none;
}

.emoji-floating-btn[hidden] {
  display: none;
}

.picmo__popupContainer {
  z-index: 99999 !important;
}

.popupContainer,
.picmo-popup,
.picmo-picker,
.picmo__picker {
  z-index: 99999 !important;
}

.picmo-picker,
.picmo__picker,
.meltarion-picmo-picker {
  --accent-color: #e18478;
  --background-color: #140f0f;
  --border-color: rgba(255, 120, 120, 0.28);
  --category-name-background-color: #140f0f;
  --category-name-text-color: #e7c9c4;
  --emoji-hover-background-color: rgba(225, 132, 120, 0.18);
  --emoji-focus-background-color: rgba(225, 132, 120, 0.28);
  --secondary-background-color: #211717;
  --secondary-text-color: #bfa6a2;
  --text-color: #f3e7e4;
  width: min(360px, calc(100vw - 24px));
  max-height: min(430px, calc(100vh - 24px));
  overflow: hidden;
  border: 1px solid rgba(255, 135, 125, 0.32);
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(90, 45, 42, 0.45), #120d0d 52%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}

.picmo-picker input,
.picmo__picker input,
.picmo-picker .searchField,
.picmo__picker .picmo__searchField,
.picmo__searchField {
  border: 1px solid rgba(255, 135, 125, 0.22) !important;
  border-radius: 12px !important;
  color: #f3e7e4 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.picmo-picker input::placeholder,
.picmo__picker input::placeholder,
.picmo__searchField::placeholder {
  color: rgba(243, 231, 228, 0.55) !important;
}

.picmo-picker button,
.picmo__picker button {
  border-radius: 10px !important;
}

.picmo-picker button:hover,
.picmo__picker button:hover {
  background: rgba(225, 132, 120, 0.16) !important;
}

.picmo-picker .categoryTab.isActive,
.picmo__picker .picmo__categoryTabActive,
.picmo-picker [aria-selected="true"],
.picmo__picker [aria-selected="true"] {
  color: #fff !important;
  background: rgba(225, 132, 120, 0.22) !important;
}

.picmo-picker .categoryName,
.picmo__picker .picmo__categoryName,
.picmo-picker h2 {
  color: #e7c9c4 !important;
  background: transparent !important;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.picmo-picker .emojiButton,
.picmo__picker .picmo__emojiButton {
  border-radius: 12px !important;
}

.picmo-picker .emojiButton:hover,
.picmo__picker .picmo__emojiButton:hover {
  background: rgba(225, 132, 120, 0.18) !important;
  transform: translateY(-1px);
}

.picmo-picker *,
.picmo__picker * {
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 132, 120, 0.55) rgba(255, 255, 255, 0.06);
}

.picmo-picker ::-webkit-scrollbar,
.picmo__picker ::-webkit-scrollbar {
  width: 8px;
}

.picmo-picker ::-webkit-scrollbar-track,
.picmo__picker ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.picmo-picker ::-webkit-scrollbar-thumb,
.picmo__picker ::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(225, 132, 120, 0.48);
}

@media (max-width: 760px) {

  .editor-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: stretch;
  }

  .editor-toolbar-group {
    min-width: max-content;
  }
}

.button.danger {
  color: #ef9a9a;
  border-color: rgba(180, 80, 80, 0.24);
}

@keyframes copy-float {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.96);
  }

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

.page[data-page="search"] .page-title {
  padding: 22px 26px;
  margin-bottom: 16px;
}

.page[data-page="search"] .page-title .badge {
  margin-bottom: 10px;
}

.page[data-page="search"] .page-title .lead {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.page[data-page="search"] .section-head {
  margin-bottom: 14px;
}

.page[data-page="search"] .section-head h2 {
  font-size: 26px;
}

body.compact-ui .side-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
}

body.compact-ui .mini-copy {
  gap: 9px;
  padding: 9px 11px;
  border-radius: 10px;
}

body.compact-ui .top-social-link {
  width: 38px;
  height: 38px;
}

body.compact-ui .auth-login-button {
  min-height: 38px;
  padding: 0 12px;
}

body.compact-ui .auth-logout-button {
  min-height: 32px;
  padding: 0 11px;
}

body.compact-ui .search {
  width: 100%;
  min-width: 260px;
  max-width: 520px;
}

body.compact-ui .search input {
  height: 38px;
  padding: 0 40px 0 38px;
  border-radius: 13px;
}

body.compact-ui .button {
  min-height: 52px;
  padding: 0 22px;
  gap: 10px;
}

body.compact-ui .primary-cta-button {
  min-height: 50px;
  padding: 0 21px;
}

body.compact-ui .badge {
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 11px;
  font-size: 12px;
}

body.compact-ui .shop-card,
body.compact-ui .card {
  padding: 18px;
}

body.compact-ui .doc-card {
  padding: var(--card-padding);
}

body.compact-ui .custom-select-trigger {
  height: 44px;
  min-height: 44px;
}

body.compact-ui .custom-select-value,
body.compact-ui .custom-select-option {
  font-size: 12px;
}

@media (max-width: 760px) {
  .button {
    min-height: 52px;
    padding: 0 18px;
  }

  .content-header-actions,
  .primary-cta-button {
    width: 100%;
  }
}

@media (max-width: 1023px) {

	  .store-product-grid {
	    grid-template-columns: 1fr;
	  }
}

@media (max-width: 640px) {

  .auth-login-button {
    padding-inline: 11px;
  }
}

@media (max-width: 767px) {

  .hero {
    gap: 14px;
  }

  .hero-main,
  body.compact-ui .hero-main {
    min-height: 0;
    padding: 20px;
  }

  .hero-main h1 {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.04;
    letter-spacing: 0;
  }

  .hero-main .lead {
    max-width: 100%;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .button,
  body.compact-ui .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding-inline: 16px;
  }

  .shop-spotlight {
    gap: 12px;
    padding: 16px;
  }

  .shop-title h2 {
    font-size: 20px;
    letter-spacing: 0;
  }

  .shop-card {
    width: 100%;
    padding: 16px;
  }

  .shop-card .button {
    width: 100%;
    min-height: 50px;
    padding-inline: 14px;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 14px;
  }

  .copy-icon-btn {
    width: 38px;
    height: 38px;
    justify-self: end;
  }

  .grid {
    margin: 16px 0;
  }
}

@media (max-width: 430px) {

  .badge {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 767px) {

  .custom-select-trigger,
  body.compact-ui .custom-select-trigger {
    min-height: 46px;
    height: 46px;
    padding-inline: 12px;
  }

  .custom-select-menu {
    left: 0;
    right: 0;
    max-width: 100%;
    max-height: min(280px, calc(100dvh - 170px));
  }

  .custom-select-option {
    min-height: 42px;
  }
}

.minecraft-text {
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 767px) {

  .security-status {
    padding: 12px;
  }
}

@media (max-width: 640px) {

  .auth-profile {
    max-width: 100%;
    min-width: 0;
  }
}

#adminNewsForm input[type="text"],
#adminNewsForm input[type="url"],
#adminNewsForm input[type="datetime-local"],
#adminNewsForm select,
#adminNewsForm textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(226, 126, 126, 0.22);
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(7, 7, 8, 0.72);
  color: var(--text);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 3px rgba(0,0,0,0.45);
  outline: none;
}

#adminNewsForm input::placeholder,
#adminNewsForm textarea::placeholder {
  color: rgba(210, 190, 186, 0.42);
}

#adminNewsForm input:focus,
#adminNewsForm select:focus,
#adminNewsForm textarea:focus {
  border-color: rgba(226, 126, 126, 0.46);
  background: rgba(9, 9, 10, 0.84);
}

#adminNewsForm textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

#adminNewsForm textarea[name="excerpt"] {
  min-height: 92px;
}

#adminNewsForm textarea[name="content"] {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

@media (max-width: 430px) {
  #adminNewsForm input[type="text"],
  #adminNewsForm input[type="url"],
  #adminNewsForm input[type="datetime-local"],
  #adminNewsForm select,
  #adminNewsForm textarea {
    padding: 12px;
  }

  #adminNewsForm textarea[name="content"] {
    min-height: 240px;
  }
}

#adminNewsForm input[type="text"],
#adminNewsForm input[type="url"],
#adminNewsForm input[type="datetime-local"],
#adminNewsForm select,
#adminNewsForm textarea {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(226, 126, 126, 0.24) !important;
  border-radius: 12px !important;
  padding: 13px 14px !important;
  background: rgba(7, 7, 8, 0.78) !important;
  color: var(--text) !important;
  font: inherit;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 3px rgba(0,0,0,0.48);
  outline: none;
}

#adminNewsForm input[type="datetime-local"] {
  color-scheme: dark;
}

#adminNewsForm select {
  background-image:
    linear-gradient(45deg, transparent 50%, #d8c7c4 50%),
    linear-gradient(135deg, #d8c7c4 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px !important;
}

#adminNewsForm input::placeholder,
#adminNewsForm textarea::placeholder {
  color: rgba(210, 190, 186, 0.42);
}

#adminNewsForm input:focus,
#adminNewsForm select:focus,
#adminNewsForm textarea:focus {
  border-color: rgba(226, 126, 126, 0.52) !important;
  background-color: rgba(10, 10, 11, 0.9) !important;
  box-shadow:
    0 0 0 3px rgba(106, 58, 58, 0.20),
    inset 0 1px 2px rgba(255,255,255,0.04);
}

#adminNewsForm textarea {
  resize: vertical;
  line-height: 1.58;
}

#adminNewsForm textarea[name="excerpt"] {
  min-height: 96px;
}

#adminNewsForm textarea[name="content"] {
  min-height: 280px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

#adminNewsForm button[type="submit"] {
  order: 2;
}

@media (max-width: 430px) {

  #adminNewsForm textarea[name="content"] {
    min-height: 250px !important;
  }
}

#adminNewsDeleteModal[hidden] {
  display: none !important;
}

@keyframes homeNewsKenBurns {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.075) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes homeNewsFadeIn {
  from {
    opacity: 0.82;
  }
  to {
    opacity: 1;
  }
}

@keyframes homeNewsContentIn {
  from {
    opacity: 0;
    transform: translate3d(-12px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.button.primary,
.button[data-variant="primary"],
.auth-login-button,
.primary-cta-button {
  border-color: rgba(225, 132, 120, 0.46);
  background: var(--ui-primary);
}

.button.primary:hover,
.button.primary:focus-visible,
.button[data-variant="primary"]:hover,
.button[data-variant="primary"]:focus-visible,
.auth-login-button:hover,
.auth-login-button:focus-visible,
.primary-cta-button:hover,
.primary-cta-button:focus-visible {
  border-color: rgba(239, 157, 146, 0.66);
  background: var(--ui-primary-hover);
}

.button.secondary,
.button[data-variant="secondary"] {
  border-color: rgba(170, 111, 105, 0.30);
  background: linear-gradient(180deg, rgba(35, 27, 25, 0.96), rgba(19, 16, 15, 0.98));
}

.button.danger:hover,
.button.danger:focus-visible,
.button[data-variant="danger"]:hover,
.button[data-variant="danger"]:focus-visible,
.auth-logout-button:hover,
.auth-logout-button:focus-visible {
  border-color: rgba(255, 139, 129, 0.62);
  background: var(--ui-danger-hover);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"])::placeholder,
textarea::placeholder,
.search input::placeholder {
  color: rgba(185, 170, 167, 0.58);
}

.security-status.warning,
.auth-warning {
  border-color: rgba(241, 191, 120, 0.30);
  color: var(--ui-warning);
  background: rgba(241, 191, 120, 0.07);
}

.auth-message:empty {
  border-color: transparent;
  background: transparent;
}

@media (max-width: 1023px) {

  .map-frame {
    height: clamp(420px, 62dvh, 620px);
    border-radius: var(--ui-radius-lg);
  }
}

@media (max-width: 767px) {

  .map-frame {
    height: clamp(340px, 58dvh, 480px);
  }

  .map-frame iframe {
    background: #0d0909;
  }
}

@media (max-width: 380px) {

  .auth-login-button {
    min-height: 46px;
    padding-inline: 14px;
  }
}

.comment-thread {
  margin-left: min(calc(var(--comment-depth, 0) * 24px), 72px);
}

.comment-thread + .comment-thread {
  margin-top: 12px;
}

.comment-replies {
  display: none;
  margin-top: 12px;
  padding-left: 16px;
  border-left: 1px solid rgba(225, 132, 120, 0.18);
}

.comment-replies.is-expanded {
  display: block;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.comment-reaction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid rgba(225, 132, 120, 0.16);
  border-radius: 999px;
  background: rgba(24, 18, 17, 0.72);
  color: rgba(243, 231, 228, 0.78);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition:
    background var(--ui-transition),
    border-color var(--ui-transition),
    color var(--ui-transition),
    opacity var(--ui-transition);
}

.comment-reaction-btn:hover,
.comment-reaction-btn:focus-visible,
.comment-reaction-btn.is-active {
  border-color: rgba(225, 132, 120, 0.42);
  background: rgba(86, 49, 45, 0.44);
  color: #fff4f1;
  outline: none;
}

.comment-reaction-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.comment-reaction-btn .icon {
  width: 16px;
  height: 16px;
}

.comment-reply-form {
  margin-top: 12px;
}

@media (max-width: 760px) {

  .comment-thread {
    margin-left: min(calc(var(--comment-depth, 0) * 10px), 24px);
  }

  .comment-replies {
    padding-left: 10px;
  }

  .comment-actions {
    gap: 7px;
  }

  .comment-reaction-btn {
    min-height: 36px;
    padding-inline: 10px;
  }
}

.mc-avatar {
  flex: 0 0 auto;
  display: block;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(225, 132, 120, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 194, 184, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(42, 30, 28, 0.96), rgba(18, 13, 13, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 235, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.24);
  image-rendering: pixelated;
  object-fit: cover;
}

.mc-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.mc-avatar-md {
  width: 42px;
  height: 42px;
}

.mc-avatar-lg {
  width: clamp(54px, 5vw, 68px);
  height: clamp(54px, 5vw, 68px);
  border-radius: 18px;
}

@media (max-width: 767px) {
  .mc-avatar-lg {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }
}

@keyframes marketSkeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (max-width: 700px) {

  .store-product-modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .store-product-dialog {
    width: 100vw;
    max-height: none;
    min-height: 100vh;
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .store-product-modal-media img {
    min-height: 220px;
    max-height: 34vh;
  }

  .store-product-modal-content {
    padding: 24px 18px 28px;
  }

  .store-product-modal-content h2 {
    font-size: 24px;
  }

  .store-product-modal-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .store-product-modal-actions {
    grid-template-columns: 1fr;
  }

  .store-product-modal-actions .store-gift-soon {
    grid-column: auto;
  }
}

@media (max-width: 1400px) {

  .auth-player {
    max-width: 112px;
  }
}

@media (max-width: 640px) {

  .auth-profile {
    max-width: 40px;
    min-width: 0;
  }
}

/* Split CSS safeguard: keep the later design-system button reset after legacy button rules. */
.button,
button.button {
  min-height: var(--ui-control-height, 44px);
  padding: 0 18px;
  border: 1px solid var(--ui-border, rgba(170, 111, 105, 0.24));
  border-radius: var(--ui-radius-sm, 10px);
  background: var(--ui-control, linear-gradient(180deg, rgba(41, 30, 28, 0.98), rgba(25, 19, 18, 0.98)));
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 235, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78),
    0 8px 18px rgba(0, 0, 0, 0.20);
  line-height: 1;
  white-space: nowrap;
}

.button.primary,
.button[data-variant="primary"] {
  border-color: rgba(225, 132, 120, 0.46);
  background: var(--ui-primary, linear-gradient(180deg, rgba(78, 47, 43, 0.98), rgba(42, 28, 26, 0.98)));
}

.button.secondary,
.button[data-variant="secondary"] {
  border-color: rgba(170, 111, 105, 0.30);
  background: linear-gradient(180deg, rgba(35, 27, 25, 0.96), rgba(19, 16, 15, 0.98));
}

.button:hover,
.button:focus-visible,
button.button:hover,
button.button:focus-visible {
  border-color: var(--ui-border-strong, rgba(204, 132, 124, 0.48));
  background: var(--ui-control-hover, linear-gradient(180deg, rgba(55, 38, 35, 0.98), rgba(29, 22, 21, 0.98)));
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 235, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(10, 7, 7, 0.56),
    var(--ui-ring, 0 0 0 3px rgba(225, 132, 120, 0.14)),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

body.compact-ui .button,
body.compact-ui button.button {
  min-height: 44px;
  padding: 0 18px;
}

.button.market-map-button {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
}

body.compact-ui .button.market-map-button {
  min-height: 32px;
  padding: 0;
}

.button.store-product-buy,
.store-product-footer .button {
  min-height: 34px;
  padding: 0 12px;
  gap: 8px;
}

body.compact-ui .button.store-product-buy,
body.compact-ui .store-product-footer .button {
  min-height: 34px;
  padding: 0 12px;
}

.account-pill {
  display: inline-flex;
  align-items: stretch;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(170, 111, 105, 0.22);
  border-radius: 10px;
  color: #e3d7d5;
  background: rgba(34, 25, 23, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 235, 0.045),
    inset 0 -1px 2px rgba(0, 0, 0, 0.40);
}

.account-pill-profile,
.account-pill-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  color: inherit;
  background: transparent;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.account-pill-profile {
  gap: 8px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.account-pill-avatar-shell {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  overflow: visible;
}

.account-pill-avatar-shell .account-pill-avatar {
  position: absolute;
  inset: 0;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  box-sizing: border-box;
  margin: 0;
  border-radius: 9px;
  object-fit: cover;
}

.account-pill-avatar-shell .account-pill-avatar-cosmetic {
  z-index: 2;
}

.account-pill-avatar-frame {
  position: absolute;
  inset: -5px;
  z-index: 3;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  object-fit: fill;
  pointer-events: none;
}

.account-pill-logout {
  width: 42px;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  color: #d9aaa4;
  cursor: pointer;
}

.account-pill-profile:hover,
.account-pill-profile:focus-visible {
  color: #f0e7e5;
  background: rgba(106, 58, 58, 0.18);
}

.account-pill-logout:hover,
.account-pill-logout:focus-visible {
  color: #f0c2ba;
  background: rgba(212, 127, 127, 0.13);
}

.account-pill-logout:disabled {
  cursor: wait;
  opacity: 0.55;
}
