:root {
  color-scheme: dark;
  --bg: #050905;
  --bg-2: #0a110b;
  --panel: rgba(17, 25, 17, 0.92);
  --panel-2: rgba(25, 36, 23, 0.92);
  --line: rgba(167, 197, 125, 0.26);
  --line-strong: rgba(167, 197, 125, 0.52);
  --text: #f5f8ee;
  --muted: #aeb99f;
  --soft: #d8e2c8;
  --accent: #a7c57d;
  --accent-2: #6f8d52;
  --accent-3: #d6ed9a;
  --danger: #e77d64;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 14%, rgba(111, 141, 82, 0.26), transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, #080d08 50%, #030503 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}

body.cart-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "WOLGRAD MARKET";
  z-index: -1;
  display: grid;
  place-items: center;
  color: rgba(167, 197, 125, 0.035);
  font-family: Cinzel, serif;
  font-size: clamp(5rem, 18vw, 18rem);
  font-weight: 800;
  line-height: 0.8;
  text-align: center;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

textarea {
  resize: none;
}

.number-text,
td,
th,
small,
time,
input[type="number"],
input[inputmode="numeric"],
.points-card strong {
  font-family: Inter, "Segoe UI", Arial, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 5, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.brand {
  font-weight: 900;
}

.account {
  justify-content: flex-end;
}

.promo-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(380px, calc(100vw - 28px));
  padding: 16px;
  border: 2px solid #6f2bd9;
  background: rgba(17, 25, 17, 0.97);
  box-shadow: 6px 6px 0 #020402, 0 0 26px rgba(111, 43, 217, 0.2);
}

.promo-toast[hidden] {
  display: none;
}

.promo-toast strong,
.promo-toast p {
  display: block;
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.promo-toast .section-label {
  color: #fff;
}

.promo-toast-close {
  float: right;
  width: auto;
  min-height: 0;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  background: #6f2bd9;
  color: #fff;
  box-shadow: 3px 3px 0 #020402;
  font-size: 0.66rem;
}

.brand-mark,
.empty-art,
.reward-icon,
.avatar.fallback {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(167, 197, 125, 0.1);
  color: var(--accent-3);
  font-size: 0.75rem;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 50;
  display: grid;
  min-width: 220px;
  transform: translateX(-50%);
  border: 2px solid var(--line);
  background: rgba(7, 18, 8, 0.98);
  box-shadow: 6px 6px 0 #020602;
  padding: 8px;
}

.nav-menu-panel button {
  min-height: 40px;
  border: 1px solid rgba(167, 197, 125, 0.32);
  background: transparent;
  color: var(--soft);
  text-align: left;
  font-weight: 900;
  padding: 0 12px;
}

.nav-menu-panel button:hover,
.nav-menu-panel button.active {
  background: rgba(91, 118, 65, 0.55);
  color: #faffef;
}

.tab-button,
.discord-login,
.logout-btn,
.primary-link,
.secondary-link,
.submit-btn,
.item-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 31, 18, 0.86);
  color: var(--soft);
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease;
}

.tab-button {
  min-width: 112px;
  padding: 0 18px;
}

.tab-button.active,
.nav-menu.active > summary,
.nav-menu[open] > summary,
.discord-login,
.primary-link,
.submit-btn,
.item-button {
  border-color: rgba(167, 197, 125, 0.76);
  background: rgba(91, 118, 65, 0.55);
  color: #faffef;
}

.tab-button:hover,
.discord-login:hover,
.logout-btn:hover,
.primary-link:hover,
.secondary-link:hover,
.submit-btn:hover,
.item-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.discord-login,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.discord-login.disabled {
  pointer-events: none;
  opacity: 0.66;
}

.points-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-3);
  background: rgba(167, 197, 125, 0.08);
  white-space: nowrap;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.account-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--soft);
}

.logout-btn {
  min-height: 36px;
  padding: 0 12px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 64px));
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 72px 22px 90px;
}

.hero.signed-in {
  display: none;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.giant-word {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  color: transparent;
  -webkit-text-stroke: 1px rgba(167, 197, 125, 0.12);
  font-family: Cinzel, serif;
  font-size: clamp(5rem, 17vw, 17rem);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-pokemon {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.48));
  opacity: 0;
  animation: float-in 900ms ease forwards, hover-float 5.6s ease-in-out infinite;
}

.magearna {
  right: clamp(16px, 10vw, 170px);
  top: clamp(80px, 14vw, 130px);
  width: clamp(170px, 22vw, 330px);
}

.snorlax {
  left: clamp(8px, 10vw, 160px);
  bottom: clamp(16px, 8vw, 80px);
  width: clamp(150px, 18vw, 260px);
  animation-delay: 140ms, -1.8s;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 680ms 160ms ease forwards;
}

.kicker,
.section-label {
  margin: 0;
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0;
}

h1 {
  margin: 10px 0 18px;
  font-size: clamp(3.3rem, 9vw, 8.4rem);
  line-height: 0.88;
}

h2 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.hero-copy p:not(.kicker),
.view-head p,
.catalog-title p,
.selected-preview p,
.reward-card p,
.info-panel p,
.info-panel li {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy p:not(.kicker) {
  max-width: 560px;
  margin-inline: auto;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-link {
  min-width: 160px;
}

.secondary-link {
  background: rgba(6, 11, 6, 0.68);
}

.app-shell {
  width: min(1260px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.auction-highlights {
  width: min(1260px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 18px;
}

.home-spotlights {
  width: min(1260px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.sales-ticker[hidden] {
  display: none;
}

.sales-ticker,

.auction-highlights[hidden] {
  display: none;
}

.highlight-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-3);
}

.highlight-controls span {
  min-width: 98px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
}

.auction-countdown-panel {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 360px;
  padding: 12px 18px;
  border: 2px solid var(--accent-3);
  background: #071006;
  box-shadow: 6px 6px 0 #000;
  text-align: center;
}

.auction-countdown-panel span {
  color: var(--muted);
  font-size: 0.72rem;
  font-family: "Press Start 2P", monospace;
  text-transform: uppercase;
}

.auction-countdown-panel strong {
  color: var(--accent-3);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.auction-countdown-panel p {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.6;
  text-transform: uppercase;
}

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

.highlight-card {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.highlight-card:focus-visible {
  outline: 4px solid var(--accent-3);
  outline-offset: 4px;
}

.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #071006;
}

.highlight-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 14px 14px 88px;
  background: linear-gradient(transparent, rgba(5, 9, 5, 0.94) 26%);
  text-align: center;
}

.highlight-card span {
  display: block;
  color: var(--accent-3);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.highlight-card h3 {
  max-width: 92%;
  margin: 0;
  font-size: clamp(0.86rem, 1.6vw, 1.06rem);
  line-height: 1.05;
}

.highlight-card p {
  max-width: 92%;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.62rem, 1.08vw, 0.76rem);
  line-height: 1.18;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.highlight-offer-button {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  width: min(84%, 270px);
  margin: 0;
  display: block;
  padding: 12px 10px;
  border: 3px solid #020402;
  background: #314d25;
  color: #fff4d8;
  box-shadow: 4px 4px 0 #020402;
  font-size: clamp(0.64rem, 1.35vw, 0.86rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.highlight-offer-button:hover,
.highlight-offer-button:focus-visible {
  background: #51783b;
}

.highlight-empty {
  place-items: center;
  border-style: dashed;
}

.highlight-empty::before {
  width: 42%;
  aspect-ratio: 1;
  content: "";
  border: 4px solid rgba(214, 177, 94, 0.36);
  background:
    linear-gradient(45deg, transparent 46%, rgba(214, 177, 94, 0.22) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(214, 177, 94, 0.22) 46% 54%, transparent 54%),
    #071006;
}

.highlight-empty div {
  text-align: center;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: reveal 240ms ease both;
}

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

.view-head.split {
  align-items: center;
}

.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.quick-type-filters {
  display: flex;
  gap: 18px;
  align-items: end;
  min-height: 46px;
}

.quick-type-button {
  min-width: 206px;
  min-height: 44px;
  padding: 0 18px;
  border: 3px solid #020402;
  background: #314d25;
  color: #fff4d8;
  box-shadow: 4px 4px 0 #020402;
  font-weight: 1000;
  text-transform: uppercase;
}

.quick-type-button.cosmetics {
  background: #c51b17;
}

.quick-type-button:hover,
.quick-type-button:focus-visible,
.quick-type-button.active {
  filter: brightness(1.16);
  transform: translate(-1px, -1px);
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 10, 0.78);
  color: var(--text);
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 13px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(167, 197, 125, 0.12);
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 24px;
  align-items: start;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
}

.catalog-item.disabled {
  opacity: 0.58;
}

.catalog-item,
.offer-panel,
.info-panel,
.reward-card,
.points-card,
.reward-flow {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.catalog-item {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  min-height: 264px;
  display: grid;
  grid-template-rows: 132px 1fr auto;
  gap: 12px;
  padding: 14px;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.catalog-item:hover,
.catalog-item:focus-within {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.negotiating-pin {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: -7px;
  padding: 7px 10px;
  border: 2px solid #020402;
  background: #c51b17;
  color: #fff4d8;
  box-shadow: 4px 4px 0 #020402;
  font-size: 0.62rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.promo-pin {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: -7px;
  padding: 7px 11px;
  border: 2px solid #020402;
  box-shadow: 4px 4px 0 #020402;
  font-size: 0.62rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.promo-discount {
  background: #b8ff31;
  color: #061006;
}

.highlight-card .negotiating-pin {
  display: block;
  color: #fff4d8;
}

.highlight-negotiating-pin {
  top: 12px;
  right: 10px;
}

.is-negotiating {
  border-color: rgba(214, 177, 94, 0.92);
}

.catalog-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 132px;
  overflow: hidden;
}

.catalog-art img,
.selected-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.36));
}

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

.secondary-cart-button {
  background: rgba(5, 9, 5, 0.92);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -470px;
  z-index: 90;
  width: min(430px, 100vw);
  height: 100svh;
  max-height: none;
  overflow: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  gap: 14px;
  transition: right 220ms ease;
  padding: 0 18px 18px;
  border-left: 3px solid var(--line-strong);
  background: #0d1f10;
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.48);
}

.cart-panel.is-open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(1px);
}

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

.cart-toggle {
  position: fixed;
  right: 18px;
  top: 86px;
  z-index: 88;
  width: auto;
  min-height: 0;
  padding: 12px 16px;
  border: 2px solid var(--line-strong);
  background: var(--accent-2);
  color: var(--text);
  box-shadow: 5px 5px 0 #020402, 0 0 22px rgba(167, 197, 125, 0.18);
  text-transform: uppercase;
}

body.cart-open .cart-toggle {
  display: none;
}

.cart-toggle span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  margin-left: 8px;
  border: 1px solid #020402;
  background: #fff4d8;
  color: #061006;
}

.cart-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cart-head,
.cart-line,
.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -18px;
  padding: 18px;
  border-bottom: 2px solid var(--line-strong);
  background: var(--accent-2);
}

.cart-head h3 {
  margin: 4px 0 0;
}

.cart-close-icon {
  width: 42px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-size: 1.45rem;
}

.cart-items {
  display: grid;
  gap: 8px;
  align-content: start;
  margin-top: 0;
  overflow: auto;
}

.cart-line {
  border: 1px solid var(--line);
  padding: 10px;
  background: rgba(5, 9, 5, 0.72);
}

.cart-line span {
  min-width: 0;
}

.cart-coupon,
.cart-offer,
.cart-message {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.cart-summary {
  margin-top: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(167, 197, 125, 0.08);
}

.cart-summary small {
  color: var(--muted);
}

.cart-footer-actions {
  display: grid;
  gap: 10px;
}

.catalog-title h3 {
  margin: 0 0 6px;
}

.last-offer-label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(214, 177, 94, 0.42);
  background: rgba(3, 11, 5, 0.52);
  color: rgba(255, 244, 216, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.last-offer-label strong {
  color: var(--gold);
  font-weight: 900;
  margin-left: 4px;
}

.last-offer-label.muted-offer {
  color: rgba(214, 237, 154, 0.62);
  border-color: rgba(127, 159, 100, 0.26);
}

.highlight-last-offer {
  position: static;
  z-index: 4;
  width: fit-content;
  max-width: min(90%, 250px);
  margin-top: 4px;
  font-size: 0.64rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 8px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 2px solid #020402;
  background: #c51b17;
  color: #fff4d8;
  box-shadow: 3px 3px 0 #020402;
  font-family: Inter, "Segoe UI", Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.item-button,
.submit-btn {
  position: relative;
  z-index: 4;
  width: 100%;
}

.item-button:disabled,
.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.offer-panel {
  position: sticky;
  top: 84px;
  padding: 18px;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.modal-backdrop[hidden] {
  display: none;
}

.offer-modal {
  width: min(860px, 100%);
  max-height: calc(100svh - 24px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 14, 9, 0.98);
  box-shadow: var(--shadow);
  animation: reveal 220ms ease both;
  text-align: center;
}

.admin-modal {
  justify-items: end;
  align-items: stretch;
}

.admin-modal .offer-modal {
  height: 100%;
  max-height: none;
  margin: 0;
  text-align: left;
}

.close-btn {
  min-height: 38px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 31, 18, 0.86);
  color: var(--soft);
  font-weight: 900;
}

.selected-preview {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 16px;
  align-items: center;
  min-height: 360px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.selected-art-large {
  display: grid;
  place-items: center;
  min-height: 330px;
  width: min(560px, 100%);
  overflow: auto;
  border: 1px solid var(--line);
  background: #071006;
}

.selected-art-large img {
  width: 100%;
  max-height: min(62svh, 620px);
  object-fit: contain;
}

.selected-preview > .empty-art,
.empty-art {
  width: 86px;
  height: 86px;
}

.offer-login-notice {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(167, 197, 125, 0.08);
}

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

form {
  display: grid;
  gap: 14px;
}

form[hidden],
#offerForm[hidden] {
  display: none !important;
}

.fine-print {
  margin: 0;
  color: var(--accent-3);
  font-size: 0.82rem;
  line-height: 1.4;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.success {
  color: var(--accent-3);
}

.error,
.error-text {
  color: var(--danger);
}

.warning {
  color: #ffd66b;
}

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

.points-card {
  min-width: 168px;
  padding: 18px 20px;
  text-align: center;
}

.wallet-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.points-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.points-card strong {
  color: var(--accent-3);
  font-size: 2rem;
  line-height: 0.95;
}

.loyalty-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.info-panel {
  padding: 22px;
}

.loyalty-program {
  min-height: 560px;
  overflow: visible;
  text-align: center;
}

.loyalty-program ul {
  display: inline-grid;
  justify-items: start;
  margin-inline: auto;
  text-align: left;
}

.loyalty-program h3:not(:first-child) {
  margin-top: 22px;
}

.loyalty-program .number-text {
  color: #fff8d8;
  font-size: 0.96em;
}

.roulette-instructions {
  max-width: 960px;
  margin: 26px auto;
}

.roulette-instructions h3,
.roulette-instructions p {
  text-align: center;
}

.roulette-instructions ul {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 18px auto 0;
  padding-left: 22px;
}

.info-panel ol {
  margin: 0;
  padding-left: 20px;
}

.info-panel li + li {
  margin-top: 12px;
}

.login-shell {
  display: grid;
  place-items: start center;
  padding-top: clamp(32px, 8vw, 96px);
}

.login-panel {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  text-align: center;
}

.login-tabs {
  justify-content: center;
}

.login-form {
  display: none;
  text-align: left;
}

.login-form.active,
.login-form#resendForm {
  display: grid;
}

.login-form {
  gap: 14px;
  padding: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form input {
  width: 100%;
}

.history-list {
  display: grid;
  gap: 10px;
}

.offers-panel .history-list {
  max-height: 575px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: var(--accent-2) rgba(5, 9, 5, 0.7);
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 5, 0.5);
}

.history-row em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.offer-history-row em {
  grid-column: 1 / 3;
}

.accepted-offer-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border: 2px solid var(--line);
  background: rgba(18, 34, 14, 0.92);
  color: var(--soft);
  box-shadow: 4px 4px 0 #020402;
  line-height: 1.5;
}

.player-notice,
.inline-confirm,
.proof-receipt {
  grid-column: 1 / -1;
  border: 2px solid var(--line);
  background: rgba(18, 34, 14, 0.92);
  box-shadow: 4px 4px 0 #020402;
}

.player-notice,
.inline-confirm {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.player-notice p,
.inline-confirm p {
  margin: 0;
  color: var(--soft);
  line-height: 1.5;
}

.inline-confirm div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.proof-receipt {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  color: var(--soft);
  text-decoration: none;
}

.proof-receipt span {
  grid-column: 2;
}

.proof-receipt img {
  grid-row: 1;
  width: 92px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #020402;
  background: #050905;
}

.mini-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(21, 31, 18, 0.86);
  color: var(--soft);
  font-weight: 900;
}

.danger-mini {
  border-color: rgba(231, 125, 100, 0.55);
  color: #ffd3ca;
}

.secondary-mini {
  background: #071006;
}

.counter-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}

.counter-actions label {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.counter-actions label span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.counter-countdown {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(21, 31, 18, 0.86);
  color: var(--soft);
  text-align: center;
}

.counter-countdown span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.counter-countdown strong {
  color: var(--accent-3);
  font-family: Inter, "Segoe UI", Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.counter-countdown.is-expiring {
  border-color: #ffd66b;
}

.counter-countdown.is-expired {
  border-color: var(--danger);
  color: var(--danger);
}

.accepted-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.accepted-actions .mini-action {
  min-height: 44px;
}

.payment-countdown span {
  color: var(--accent-3);
}

.roulette-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  justify-items: center;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.wheel {
  width: min(260px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(167, 197, 125, 0.75), rgba(21, 31, 18, 0.92), rgba(214, 237, 154, 0.55), rgba(21, 31, 18, 0.92), rgba(167, 197, 125, 0.75));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45), var(--shadow);
}

.wheel span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--accent-3);
  font-weight: 900;
}

.wheel.rolling {
  animation: spin-wheel 680ms cubic-bezier(.2,.7,.1,1) both;
}

.roulette-actions {
  display: grid;
  gap: 12px;
  width: min(380px, 100%);
  justify-self: center;
}

.roulette-disabled-panel {
  align-self: center;
  width: min(560px, 100%);
}

.ticket-packages {
  display: grid;
  gap: 10px;
}

.ticket-packages > span {
  color: var(--soft);
  font-family: "Press Start 2P", Inter, sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.ticket-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ticket-package-button {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
  text-transform: uppercase;
}

.ticket-package-button small {
  color: var(--accent-3);
  font-family: Inter, "Segoe UI", Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
}

.ticket-package-button.is-confirming {
  border-color: var(--accent-3);
  background: #5a762f;
}

.roulette-disabled-panel .form-status {
  margin: 0;
  padding: 18px;
  border: 3px solid #020402;
  background: rgba(18, 34, 14, 0.92);
  color: var(--accent-3);
  box-shadow: 4px 4px 0 #020402;
  text-align: center;
}

.roulette-closed-panel {
  width: min(680px, 100%);
}

.roulette-closed-message {
  font-family: "Press Start 2P", Inter, sans-serif;
  line-height: 1.8;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .ticket-package-grid {
    grid-template-columns: 1fr;
  }
}

.history-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row span {
  color: var(--accent-3);
}

.history-row small {
  color: var(--muted);
}

.reward-flow {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  color: var(--soft);
}

.reward-flow span::after {
  content: ">";
  margin-left: 12px;
  color: var(--accent-2);
}

.reward-flow span:last-child::after {
  content: "";
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.reward-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto minmax(44px, auto);
  gap: 12px;
  padding: 18px;
  min-height: 280px;
  overflow: hidden;
}

.reward-card h3 {
  margin: 0;
}

.reward-card p {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  line-height: 1.35;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.reward-card .item-button {
  align-self: end;
  min-height: 44px;
  padding-block: 8px;
}

.featured {
  grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
  justify-content: center;
}

.featured .prize-card {
  aspect-ratio: 1;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  place-items: center;
  text-align: center;
  cursor: pointer;
}

.featured .prize-card h3 {
  margin: 0;
  font-size: 0.92rem;
}

.featured .prize-card p {
  max-width: 100%;
  font-size: 0.72rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

.featured .prize-card strong {
  font-size: 0.78rem;
}

.prize-card:focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 3px;
}

.reward-preview-card {
  cursor: pointer;
}

.reward-preview-card:focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 3px;
}

.prize-art {
  display: grid;
  place-items: center;
  width: min(88px, 45%);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(167, 197, 125, 0.08);
}

.prize-art img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.reward-icon {
  width: min(64px, 28%);
  aspect-ratio: 1;
  border-radius: 8px;
}

.reward-card strong {
  color: var(--accent-3);
}

.prize-detail-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 680px;
}

.prize-detail-copy p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.redemption-panel {
  margin-top: 18px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid #020402;
  background: #071006;
}

.history-table th,
.history-table td {
  padding: 12px;
  border-bottom: 2px solid rgba(167, 197, 125, 0.2);
  color: var(--soft);
  text-align: left;
}

.history-table th {
  color: #fff4d8;
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
}

.history-table td {
  font-size: 0.88rem;
}

.history-table td:last-child {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

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

.auth-gate-panel {
  width: min(460px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  border: 4px solid #020402;
  background: #101d0f;
  box-shadow: 8px 8px 0 #020402;
  text-align: center;
}

.auth-gate-panel h3,
.auth-gate-panel p {
  margin: 0;
}

.auth-gate-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.canvas-roulette {
  position: relative;
  display: grid;
  place-items: center;
  width: min(450px, calc(100vw - 72px));
  aspect-ratio: 1;
}

.canvas-roulette canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #020402;
  background: #fff4d8;
  box-shadow:
    0 0 0 5px #294421,
    0 10px 25px rgba(0, 0, 0, 0.8),
    6px 6px 0 #020402;
}

.spin-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  z-index: 5;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 45px solid #ee1515;
  filter: drop-shadow(0 4px 0 #020402);
  transform: translateX(-50%);
}

.spin-pointer::after {
  content: "";
  position: absolute;
  top: -40px;
  left: -10px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 25px solid #ffffff;
}

.catalog-item,
.highlight-card,
.highlight-copy,
.reward-card {
  text-align: center;
}

.catalog-item,
.reward-card {
  justify-items: center;
}

.catalog-title h3,
.catalog-title p,
.highlight-card h3,
.highlight-card p,
.reward-card h3,
.reward-card p {
  text-align: center;
}

.meta-row {
  justify-content: center;
}

.roulette-instructions,
.roulette-instructions h3,
.roulette-instructions p {
  text-align: left;
}

.roulette-instructions ul {
  display: block;
  max-width: 760px;
}

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

@keyframes sale-pulse {
  0%,
  100% {
    border-color: var(--line);
    transform: translateY(0);
  }

  18% {
    border-color: var(--accent-3);
    transform: translateY(-2px);
  }
}

@keyframes float-in {
  to {
    opacity: 0.92;
  }
}

@keyframes hover-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin-wheel {
  to {
    transform: rotate(1080deg);
  }
}

@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .brand,
  .account {
    justify-content: center;
  }

  .topbar,
  .hero {
    position: relative;
  }

  .market-layout,
  .loyalty-grid,
  .roulette-stage,
  .home-spotlights {
    grid-template-columns: 1fr;
  }

  .offer-panel {
    position: static;
  }

  .view-head,
  .view-head.split {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body::before {
    place-items: start center;
    padding-top: 160px;
  }

  .topbar {
    min-height: 0;
  }

  .brand {
    padding-top: 6px;
  }

  .nav-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 12px 2px;
  }

  .nav-menu-panel {
    left: 0;
    transform: none;
  }

  .tab-button {
    min-width: 116px;
    padding: 0 12px;
  }

  .account {
    padding-bottom: 6px;
    flex-wrap: wrap;
  }

  .account-name {
    max-width: 100px;
  }

  .hero {
    min-height: 600px;
    padding: 220px 18px 56px;
    place-items: end center;
  }

  .magearna {
    right: 14px;
    top: 40px;
    width: 190px;
  }

  .snorlax {
    left: 10px;
    top: 98px;
    bottom: auto;
    width: 138px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .hero-actions,
  .filters,
  .reward-flow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .raid-week-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid,
  .guide-mini-grid,
  .ranked-term-list,
  .tier-source-grid,
  .competitive-example-grid {
    grid-template-columns: 1fr;
  }

  .guide-recipe-head,
  .guide-recipe-body {
    grid-template-columns: 1fr;
  }

  .guide-recipe-head {
    align-items: stretch;
  }

  .raid-boss-head {
    align-items: center;
    flex-direction: row;
  }

  .cart-panel {
    top: 0;
    right: -100vw;
    bottom: auto;
    width: 100%;
    height: 100svh;
    max-height: none;
    transition: right 220ms ease;
  }

  .cart-panel.is-open {
    right: 0;
  }

  .cart-toggle {
    right: 10px;
    top: auto;
    bottom: 12px;
  }

  .app-shell {
    width: min(100% - 24px, 1260px);
    padding-top: 28px;
  }

  .auction-highlights {
    width: min(100% - 24px, 1260px);
    padding-top: 28px;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  }

  .catalog-item {
    min-height: 242px;
    grid-template-rows: 112px 1fr auto;
  }

  .selected-preview {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .selected-art-large {
    min-height: 260px;
  }

  .selected-art-large img {
    max-height: 52svh;
  }

  .rewards-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .reward-card {
    padding: 14px;
    gap: 8px;
  }

  .offer-modal {
    width: 100%;
  }

.history-row {
  grid-template-columns: 1fr;
}
}

.update-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 120;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: min(720px, calc(100% - 24px));
  padding: 14px 16px;
  color: var(--cream);
  background: #102411;
  border: 2px solid var(--gold);
  box-shadow: 6px 6px 0 #000;
  transform: translateX(-50%);
}

.update-banner strong {
  color: var(--gold);
  text-transform: uppercase;
}

.update-banner button {
  width: auto;
  padding: 10px 14px;
  color: var(--cream);
  background: var(--moss);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
}

.consultation-list {
  overflow-x: auto;
}

.consultation-table {
  min-width: 760px;
}

.consultation-table td:first-child {
  min-width: 210px;
}

.consultation-pokemon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.consultation-sprite {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 2px solid #020602;
  background: rgba(4, 12, 5, 0.82);
  box-shadow: 3px 3px 0 #020602;
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
}

.consultation-sprite img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  grid-area: 1 / 1;
}

.consultation-sprite span {
  grid-area: 1 / 1;
}

.consultation-sprite img:not(.is-hidden) + span {
  display: none;
}

.consultation-table small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.tip-credit {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-family: var(--font-pixel);
}

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

.guide-card {
  border: 2px solid var(--line);
  background: rgba(9, 31, 11, 0.9);
  box-shadow: 6px 6px 0 #020602;
  padding: 18px;
}

.guide-card-action {
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.guide-card-action:hover,
.guide-card-action:focus-visible,
.guide-card-action.active {
  border-color: var(--gold);
  outline: none;
}

.guide-card-action:hover {
  transform: translate(-1px, -1px);
}

.guide-open-button {
  width: 100%;
  margin-top: 14px;
  border: 2px solid #020602;
  background: var(--moss);
  color: var(--cream);
  box-shadow: 4px 4px 0 #020602;
  padding: 10px 12px;
  font-family: var(--font-pixel);
  cursor: pointer;
}

.guide-card-wide {
  grid-column: 1 / -1;
}

.guide-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(167, 197, 125, 0.35);
  padding-bottom: 12px;
}

.guide-card-head span,
.guide-card h3 {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-pixel);
}

.guide-card-head strong {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 8px;
  font-size: 0.78rem;
}

.guide-card p {
  margin: 0;
  line-height: 1.55;
}

.guide-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  margin-bottom: 12px;
  border: 2px solid #020602;
  background: rgba(4, 12, 5, 0.62);
}

.guide-hero img {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
}

.guide-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-mini-grid div {
  border: 1px solid rgba(167, 197, 125, 0.32);
  background: rgba(4, 12, 5, 0.68);
  padding: 12px;
}

.guide-mini-grid strong,
.guide-mini-grid span {
  display: block;
}

.guide-mini-grid strong {
  color: var(--cream);
  margin-bottom: 6px;
}

.guide-steps {
  margin: 0;
  padding-left: 24px;
  line-height: 1.65;
}

.ranked-guide-grid .guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-bullets {
  margin: 0;
  padding-left: 22px;
  line-height: 1.5;
}

.guide-bullets li + li {
  margin-top: 8px;
}

.ranked-term-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ranked-term-list div {
  border: 1px solid rgba(167, 197, 125, 0.32);
  background: rgba(4, 12, 5, 0.68);
  padding: 12px;
}

.ranked-term-list strong,
.ranked-term-list span {
  display: block;
}

.ranked-term-list strong {
  color: var(--cream);
  margin-bottom: 6px;
}

.tier-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tier-source-grid a {
  display: block;
  border: 2px solid var(--gold);
  background: rgba(214, 181, 82, 0.12);
  color: var(--cream);
  padding: 14px;
  text-decoration: none;
  box-shadow: 4px 4px 0 #020602;
}

.tier-source-grid strong,
.tier-source-grid span {
  display: block;
}

.tier-source-grid strong {
  font-family: var(--font-pixel);
}

.tier-source-grid span {
  margin-top: 6px;
  color: var(--muted);
}

.tier-source-grid a:hover,
.tier-source-grid a:focus-visible {
  background: rgba(214, 181, 82, 0.2);
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.tier-explain-list {
  margin-top: 14px;
}

.competitive-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.competitive-example-grid article {
  border: 1px solid rgba(167, 197, 125, 0.34);
  background: rgba(4, 12, 5, 0.72);
  padding: 14px;
  box-shadow: 4px 4px 0 #020602;
}

.competitive-example-grid h3 {
  margin: 10px 0 6px;
  color: var(--cream);
  font-family: var(--font-pixel);
  font-size: 1.05rem;
}

.competitive-team-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 54px;
  flex-wrap: wrap;
  border: 2px solid #020602;
  background: rgba(9, 31, 11, 0.78);
  padding: 8px;
}

.competitive-team-icons img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.source-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold);
  font-weight: 900;
}

.guide-recipe-panel {
  margin-top: 22px;
  border: 2px solid var(--gold);
  background: rgba(9, 31, 11, 0.94);
  box-shadow: 8px 8px 0 #020602;
  padding: 18px;
}

.guide-recipe-panel[hidden] {
  display: none;
}

.guide-recipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(214, 181, 82, 0.42);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.guide-recipe-head span {
  color: var(--gold);
  font-family: var(--font-pixel);
}

.guide-recipe-head h3 {
  margin: 4px 0 0;
  color: var(--cream);
  font-family: var(--font-pixel);
}

.guide-recipe-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) 1fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.recipe-visual {
  display: grid;
  grid-template-columns: auto 34px minmax(70px, auto);
  align-items: center;
  justify-content: start;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  border: 3px solid #1a1a1a;
  background: #c6c6c6;
  box-shadow: inset 3px 3px 0 #efefef, inset -3px -3px 0 #555, 5px 5px 0 #020602;
  padding: 10px;
  overflow-x: auto;
}

.recipe-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-template-rows: repeat(3, 40px);
}

.recipe-smithing-slots {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  gap: 6px;
}

.recipe-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #555;
  background: #8b8b8b;
  box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #d8d8d8;
  color: #101010;
  font-size: 0.5rem;
  text-align: center;
  overflow: hidden;
}

.recipe-slot.empty {
  background: #adadad;
}

.recipe-slot img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
}

.recipe-slot small {
  position: absolute;
  right: 2px;
  bottom: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 900;
  text-shadow: 1px 1px 0 #000;
}

.recipe-arrow {
  color: #787878;
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.recipe-result {
  display: grid;
  place-items: center;
  gap: 6px;
  color: #111;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.recipe-result .recipe-slot {
  width: 46px;
  height: 46px;
}

.guide-note {
  margin: 16px 0 0;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  color: var(--cream);
  line-height: 1.5;
}

.raid-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.raid-boss-card {
  border: 2px solid var(--line);
  background: rgba(9, 31, 11, 0.9);
  box-shadow: 6px 6px 0 #020602;
  padding: 18px;
}

.raid-boss-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(167, 197, 125, 0.35);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.raid-boss-head img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  flex: 0 0 82px;
  image-rendering: auto;
  border: 2px solid #020602;
  background: rgba(4, 12, 5, 0.78);
  box-shadow: 4px 4px 0 #020602;
}

.raid-boss-head div {
  display: grid;
  gap: 8px;
}

.raid-boss-head span {
  color: var(--cream);
  font-family: var(--font-pixel);
  font-size: 1.18rem;
  font-weight: 900;
}

.raid-boss-head strong {
  border: 1px solid var(--gold);
  background: rgba(214, 181, 82, 0.12);
  color: var(--gold);
  padding: 6px 8px;
  font-size: 0.84rem;
}

.raid-boss-card p {
  margin: 0 0 14px;
}

.raid-picks {
  display: grid;
  gap: 10px;
}

.raid-picks div {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 12px;
  align-items: center;
  border: 1px solid rgba(167, 197, 125, 0.28);
  background: rgba(4, 12, 5, 0.68);
  padding: 12px;
}

.raid-picks img {
  grid-row: span 3;
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: auto;
  border: 2px solid #020602;
  background: rgba(9, 31, 11, 0.9);
}

.raid-picks strong,
.raid-picks span,
.raid-picks small {
  display: block;
}

.raid-picks strong {
  color: var(--cream);
  font-size: 1rem;
}

.raid-picks span {
  margin-top: 5px;
}

.raid-picks small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 620px) {
  .update-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
