:root {
  --bg-page: #111111;
  --bg-header: #1a1a1a;
  --bg-panel: #121212;
  --bg-panel-soft: #1f1f1f;
  --line: #303030;
  --line-2: #4b4b4b;
  --text: #f2f2f2;
  --muted: #bdbdbd;
  --green: #69b34c;
  --green-2: #4f9336;
  --green-soft: #88d068;
  --red: #d86b77;
  --amber: #d3ac65;
  --amber-2: #b98f47;
  --purple: #b892d8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Oxanium', sans-serif;
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.58;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(10, 10, 10, 0.76), rgba(12, 12, 12, 0.82)),
    url('background.png') center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Press Start 2P', cursive;
  line-height: 1.4;
}

a {
  color: inherit;
}

.site-main {
  flex: 1;
}

.shell {
  width: min(1240px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-header);
  border-bottom: 2px solid #2a2a2a;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  letter-spacing: 0.04em;
  color: #f9f9f9;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.4rem 0.62rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: #fff;
  border-color: #4e4e4e;
  background: #242424;
}

.header-cta {
  text-decoration: none;
  border: 1px solid #77b85c;
  color: #f3ffef;
  background: linear-gradient(180deg, rgba(118, 184, 92, 0.34), rgba(79, 147, 54, 0.34));
  border-radius: 6px;
  padding: 0.46rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-cta:hover {
  filter: brightness(1.08);
}

.hero-showcase {
  border-bottom: 2px solid #2a2a2a;
  background: #0f0f0f;
}

.hero-showcase__image {
  position: relative;
  min-height: 620px;
  background-size: cover;
  background-position: center;
}

.hero-showcase__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
}

.ip-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  border: 1px solid #7bbf5d;
  background: rgba(18, 18, 18, 0.8);
  color: #e9ffe3;
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-card {
  position: absolute;
  left: max(3.8vw, 24px);
  bottom: -58px;
  z-index: 3;
  width: min(560px, calc(100vw - 50px));
  background: #0f1110;
  border: 2px solid #2f3a31;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
}

.hero-card__kicker {
  margin: 0;
  color: #95c785;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero-card h1 {
  margin-top: 0.45rem;
  font-size: clamp(1rem, 2.5vw, 1.36rem);
}

.hero-card p {
  margin: 0.7rem 0 0;
  color: #d8ddd7;
}

.hero-card__actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0.48rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn.small {
  padding: 0.35rem 0.52rem;
  font-size: 0.73rem;
}

.btn-green {
  color: #11200f;
  border-color: #7dc55c;
  background: linear-gradient(180deg, var(--green-soft), var(--green-2));
}

.btn-dark {
  color: #e7ece6;
  border-color: #585858;
  background: linear-gradient(180deg, #2a2a2a, #202020);
}

.btn-danger {
  color: #ffe8ec;
  border-color: #a2535e;
  background: linear-gradient(180deg, #81434b, #6e323a);
}

.content-stack {
  display: grid;
  gap: 1rem;
  margin-top: 96px;
  margin-bottom: 1.6rem;
}

.wiki-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.6rem;
}

.wiki-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
  position: sticky;
  top: 92px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.feature-strip.editions-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: linear-gradient(180deg, #2b2f2c, #242824);
  padding: 0.7rem;
}

.lift-a { transform: translateY(-6px); }
.lift-b { transform: translateY(4px); }
.lift-c { transform: translateY(-2px); }
.lift-d { transform: translateY(7px); }

.tile h2 {
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin-bottom: 0.4rem;
}

.tile p {
  margin: 0;
  color: #d3d9d2;
  font-size: 0.83rem;
}

.panel-block,
.admin-card,
.edition-box {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--bg-panel-soft), var(--bg-panel));
  padding: 0.9rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.panel-head h2,
.page-hero h1,
.admin-card h2,
.edition-box h2 {
  font-size: clamp(0.88rem, 2vw, 1.1rem);
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.panel-head p,
.page-hero p,
.muted-line,
.legend-card p,
.live-meta,
.live-title,
.organizer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.info-grid article {
  border: 1px solid #4f5e52;
  border-radius: 7px;
  background: #222822;
  padding: 0.55rem;
}

.info-grid h3 {
  font-size: 0.72rem;
  margin-bottom: 0.36rem;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
}

.page-hero {
  padding-top: 1rem;
}

.page-hero article {
  border: 1px solid #434343;
  border-radius: 8px;
  background: linear-gradient(180deg, #252525, #1b1b1b);
  padding: 0.9rem;
}

.mini-kicker {
  margin: 0;
  color: #98ca86;
  font-size: 0.76rem;
  font-weight: 800;
}

.page-hero h1 {
  margin-top: 0.45rem;
}

.page-hero p {
  margin-top: 0.5rem;
}

.flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #525252;
  border-radius: 7px;
  background: #191919;
  padding: 0.45rem;
}

.flow-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.flow-row > i {
  color: #8ec86f;
}

.wiki-toc {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.wiki-toc a {
  color: #d7f1d0;
  text-decoration: none;
}

.wiki-toc a:hover {
  text-decoration: underline;
}

.wiki-toc--side a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.wiki-main-content > .panel-block {
  scroll-margin-top: 90px;
}

.organizers-grid,
.items-grid,
.legend-grid,
.editions-grid,
.live-grid,
.admin-layout {
  display: grid;
  gap: 0.65rem;
}

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

.organizers-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.organizer-card {
  border: 1px solid #505a52;
  border-radius: 8px;
  background: #222722;
  padding: 0.68rem;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0.7rem;
  align-items: center;
}

.organizer-card.small-card {
  background: #202420;
}

.organizer-card img {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  border: 1px solid #68776a;
  object-fit: cover;
}

.organizer-card h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.74rem;
  margin: 0;
}

.organizer-card p {
  margin: 0.24rem 0 0.55rem;
}

.items-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.item {
  border: 1px solid #57655a;
  border-radius: 7px;
  background: #242a24;
  min-height: 54px;
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.46rem;
}

.item img,
.shop-table img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.item span {
  font-size: 0.82rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.shop-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.shop-table th,
.shop-table td {
  border: 1px solid #5f6e62;
  padding: 0.44rem;
  text-align: left;
  vertical-align: middle;
  font-size: 0.8rem;
}

.shop-table th {
  background: #2f3a32;
  color: #ecf5eb;
}

.shop-table tbody tr:nth-child(odd) {
  background: #252b25;
}

.shop-table tbody tr:nth-child(even) {
  background: #202620;
}

.cost {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.1rem 0.45rem;
  font-size: 0.71rem;
  font-weight: 800;
}

.cost-free {
  color: #eaffe1;
  border-color: #8fca72;
  background: rgba(123, 196, 82, 0.22);
}

.cost-vlow {
  color: #fff0d5;
  border-color: #c79a55;
  background: rgba(211, 172, 101, 0.18);
}

.cost-low {
  color: #ffe8c8;
  border-color: #c08d45;
  background: rgba(190, 138, 63, 0.2);
}

.cost-midminus {
  color: #ffe2b2;
  border-color: #b67f34;
  background: rgba(174, 122, 46, 0.23);
}

.cost-mid {
  color: #ffdba0;
  border-color: #ad7430;
  background: rgba(167, 109, 37, 0.24);
}

.cost-high {
  color: #f4e5ff;
  border-color: #ae7dd2;
  background: rgba(184, 146, 216, 0.2);
}

.cost-vhigh {
  color: #efdcff;
  border-color: #9460bb;
  background: rgba(148, 96, 187, 0.24);
}

.legend-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.legend-card {
  border: 1px solid #5e6f61;
  border-radius: 7px;
  background: #232a23;
  padding: 0.5rem;
}

.legend-card p {
  margin-top: 0.42rem;
}

.tips-list {
  display: grid;
  gap: 0.45rem;
}

.tips-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.info-box {
  display: grid;
  gap: 0.35rem;
}

.info-box p {
  margin: 0;
  padding: 0.38rem 0.42rem;
  border: 1px solid #4e5d50;
  border-radius: 6px;
  background: #1c211c;
  font-size: 0.8rem;
}

.empty-box {
  border: 1px dashed #667867;
  border-radius: 8px;
  background: #202520;
  padding: 1.1rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.empty-box i {
  font-size: 1.3rem;
  color: #9fcb8c;
}

.edition-box header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.45rem;
}

.edition-box--mosaic {
  grid-column: span 6;
}

.edition-box--mosaic.is-featured {
  grid-column: span 12;
  background: linear-gradient(180deg, #2a322a, #202820);
  border-color: #6f8b67;
}

.edition-meta-row {
  margin-bottom: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.edition-pill {
  border: 1px solid #657765;
  border-radius: 999px;
  padding: 0.14rem 0.42rem;
  font-size: 0.72rem;
  color: #d7e6d8;
  background: #232c23;
}

.edition-box header span,
.edition-desc {
  color: var(--muted);
  font-size: 0.82rem;
}

.edition-desc {
  margin: 0 0 0.58rem;
}

.live-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.editions-toolbar {
  border: 1px solid #556656;
  border-radius: 8px;
  background: #1f251f;
  padding: 0.58rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.edition-select-form {
  display: grid;
  gap: 0.28rem;
  min-width: min(360px, 100%);
}

.edition-select-form label {
  font-size: 0.75rem;
  color: var(--muted);
}

.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap select {
  appearance: none;
  width: 100%;
  border: 1px solid #6a7c6a;
  border-radius: 7px;
  background: linear-gradient(180deg, #181d18, #141814);
  color: #ecf5ec;
  font: inherit;
  font-size: 0.83rem;
  padding: 0.48rem 2rem 0.48rem 0.56rem;
}

.select-wrap i {
  position: absolute;
  right: 0.58rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ac18b;
  pointer-events: none;
}

.edition-stats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.edition-stats span {
  border: 1px solid #607260;
  border-radius: 999px;
  background: #222922;
  padding: 0.18rem 0.45rem;
  font-size: 0.74rem;
  color: #d3e5d4;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.edition-focus {
  border: 1px solid #667b66;
  border-radius: 10px;
  background: linear-gradient(180deg, #262f26, #202920);
  padding: 0.7rem;
}

.edition-focus header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.48rem;
}

.edition-focus header span {
  color: var(--muted);
  font-size: 0.8rem;
}

.stream-list {
  display: grid;
  gap: 0.55rem;
}

.stream-row {
  border: 1px solid #647964;
  border-radius: 8px;
  background: #1c221c;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.stream-row.is-live {
  border-color: #8ec86f;
}

.stream-row.is-offline {
  border-color: #5d6e5e;
}

.stream-banner {
  grid-column: 1 / -1;
  border-bottom: 1px solid #5d715e;
  background: #121512;
}

.stream-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.stream-body {
  padding: 0.5rem;
}

.stream-row > .btn {
  margin: 0.5rem;
  align-self: start;
}

.live-card {
  border: 1px solid #68796a;
  border-radius: 7px;
  background: #1e231e;
  padding: 0.45rem;
}

.live-card.is-live {
  border-color: #8ec96f;
  box-shadow: inset 0 0 0 1px rgba(123, 196, 82, 0.25);
}

.live-head {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: center;
}

.live-head strong {
  font-size: 0.84rem;
}

.live-state {
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.live-state.on {
  color: #daffd0;
}

.live-state.off {
  color: #c6d0c6;
}

.live-title {
  margin: 0.36rem 0;
  font-size: 0.78rem;
}

.live-meta {
  margin: 0 0 0.38rem;
  font-size: 0.77rem;
}

.flash {
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.flash.success {
  border-color: #8ccb72;
  color: #ecffe7;
  background: rgba(123, 196, 82, 0.18);
}

.flash.error {
  border-color: #b76872;
  color: #ffe8ec;
  background: rgba(216, 107, 119, 0.18);
}

.status-banner {
  border: 1px solid #637663;
  border-radius: 7px;
  background: #212721;
  padding: 0.5rem 0.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.status-banner p {
  margin: 0;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: start;
}

.admin-card--organizers {
  grid-column: span 7;
}

.admin-card--create {
  grid-column: span 5;
}

.admin-card--notes {
  grid-column: span 4;
}

.admin-card--manage {
  margin-top: 0.7rem;
}

.admin-card h2 {
  margin-bottom: 0.65rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.62rem;
}

.field,
.organizer-card div {
  display: grid;
  gap: 0.33rem;
}

label {
  color: var(--muted);
  font-size: 0.77rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  border: 1px solid #6f816f;
  border-radius: 6px;
  background: #161916;
  padding: 0.45rem 0.55rem;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(123, 196, 82, 0.34);
  border-color: #8dca6d;
}

.full {
  grid-column: 1 / -1;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.form-actions.between {
  justify-content: space-between;
}

.site-footer {
  margin-top: auto;
  border-top: 2px solid #2a2a2a;
  background: #151515;
}

.footer-inner {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-inner nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-inner a {
  text-decoration: none;
  color: #e2eadf;
  font-size: 0.79rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-inner a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .hero-showcase__image {
    min-height: 520px;
  }

  .feature-strip,
  .feature-strip.editions-meta,
  .wiki-layout,
  .admin-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .admin-board {
    grid-template-columns: 1fr 1fr;
  }

  .admin-card--organizers,
  .admin-card--create,
  .admin-card--notes {
    grid-column: auto;
  }

  .wiki-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    padding: 0.62rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
  }

  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .hero-showcase__image {
    min-height: 430px;
  }

  .hero-card {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .content-stack {
    margin-top: 1rem;
  }

  .feature-strip,
  .feature-strip.editions-meta,
  .items-grid,
  .legend-grid,
  .live-grid,
  .wiki-layout,
  .admin-board,
  .admin-layout,
  .form-grid,
  .organizer-card,
  .editions-grid {
    grid-template-columns: 1fr;
  }

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

  .stream-row > .btn {
    margin: 0.5rem;
  }

  .lift-a,
  .lift-b,
  .lift-c,
  .lift-d {
    transform: none;
  }

  .organizer-card img {
    width: 70px;
    height: 70px;
  }

  .hero-card__actions .btn,
  .form-actions .btn,
  .organizer-card .btn {
    width: 100%;
  }

  .form-actions,
  .form-actions.between {
    justify-content: stretch;
  }
}

/* Editions v2 */
.edx-controls {
  display: grid;
  gap: 0.75rem;
}

.edx-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
}

.edx-aside {
  align-self: start;
}

.edx-list {
  display: grid;
  gap: 0.6rem;
}

.edx-entry {
  text-decoration: none;
  border: 1px solid #556756;
  border-radius: 8px;
  background: linear-gradient(180deg, #232b23, #1d241d);
  padding: 0.58rem;
  display: grid;
  gap: 0.34rem;
}

.edx-entry:hover {
  border-color: #7fae71;
}

.edx-entry.is-current {
  border-color: #89c46f;
  box-shadow: inset 0 0 0 1px rgba(123, 196, 82, 0.26);
}

.edx-entry-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: center;
}

.edx-entry-top strong {
  font-size: 0.82rem;
}

.edx-badge {
  border: 1px solid #7bbd64;
  background: rgba(123, 196, 82, 0.2);
  color: #eaffdf;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
}

.edx-entry-date,
.edx-entry-meta,
.edx-entry-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.edx-entry-date,
.edx-entry-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.edx-main {
  display: grid;
  gap: 0.8rem;
}

.edx-main-head {
  border: 1px solid #607560;
  border-radius: 8px;
  background: #1e251e;
  padding: 0.62rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.edx-date-block {
  text-align: right;
  display: grid;
  gap: 0.24rem;
}

.edx-date-block p,
.edx-date-block time {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.edx-date-block p {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.edx-date-block time {
  color: #edf7eb;
  font-weight: 700;
}

.edx-description,
.edx-streams {
  border: 1px solid #5d705f;
  border-radius: 8px;
  background: #1e241e;
  padding: 0.62rem;
}

.edx-description h3,
.edx-streams h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.edx-description p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Wiki v2 */
.wkx-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 270px;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.6rem;
}

.wkx-left,
.wkx-right {
  align-self: start;
  position: sticky;
  top: 90px;
}

.wkx-main {
  display: grid;
  gap: 1rem;
}

.wkx-toc {
  display: grid;
  gap: 0.26rem;
}

.wkx-toc a {
  text-decoration: none;
  border: 1px solid #4f5f50;
  border-radius: 7px;
  background: #1f251f;
  color: #e0ecde;
  padding: 0.38rem 0.44rem;
  font-size: 0.79rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.wkx-toc a:hover {
  border-color: #81b671;
  color: #f3ffef;
}

.wkx-main > .panel-block {
  scroll-margin-top: 92px;
}

.wkx-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.56rem;
}

.wkx-summary-grid article {
  border: 1px solid #536455;
  border-radius: 8px;
  background: #1f261f;
  padding: 0.55rem;
}

.wkx-summary-grid h3,
.wkx-flow h3,
.wkx-loot-item h3 {
  margin: 0 0 0.34rem;
  font-size: 0.75rem;
}

.wkx-summary-grid p,
.wkx-flow p,
.wkx-loot-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.wkx-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.wkx-flow article {
  border: 1px solid #566857;
  border-radius: 8px;
  background: #202720;
  padding: 0.58rem;
}

.wkx-arrow {
  color: #95ca7f;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wkx-loot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
}

.wkx-loot-item {
  border: 1px solid #566856;
  border-radius: 8px;
  background: #1f261f;
  padding: 0.56rem;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.5rem;
}

.wkx-loot-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #607261;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #283228;
  color: #dff4d6;
}

.wkx-item-img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  object-fit: contain;
}

.wkx-item-img--table {
  width: 28px;
  height: 28px;
  display: block;
}

.wkx-table td i {
  font-size: 0.9rem;
  color: #e9f6e4;
}

.wkx-sep {
  border: 0;
  border-top: 1px solid #4e5f4f;
  margin: 0.7rem 0;
}

@media (max-width: 1200px) {
  .wkx-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .wkx-right {
    position: static;
    grid-column: 1 / -1;
  }

  .wkx-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .edx-layout,
  .wkx-layout,
  .wkx-loot-list,
  .wkx-summary-grid,
  .wkx-flow {
    grid-template-columns: 1fr;
  }

  .wkx-left,
  .wkx-right {
    position: static;
  }

  .wkx-arrow {
    justify-content: flex-start;
  }
}

/* Layout refresh: less boxed */
.editions-page .panel-block,
.wiki-page .panel-block {
  border: 1px solid rgba(122, 142, 124, 0.32);
  background: linear-gradient(180deg, rgba(25, 31, 25, 0.74), rgba(18, 23, 18, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.edx-layout {
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.2rem;
}

.edx-aside {
  position: sticky;
  top: 90px;
  border-right: 2px solid rgba(131, 174, 117, 0.35);
}

.edx-entry {
  border: 0;
  border-left: 3px solid #4f6251;
  background: rgba(26, 33, 26, 0.62);
  border-radius: 5px;
}

.edx-entry:hover {
  border-left-color: #89bb78;
  background: rgba(32, 41, 32, 0.74);
}

.edx-entry.is-current {
  border: 0;
  border-left: 3px solid #8fd66f;
  box-shadow: none;
  background: rgba(42, 55, 42, 0.78);
}

.edx-main {
  border-left: 2px solid rgba(128, 171, 113, 0.33);
  border-radius: 6px;
}

.edx-main-head,
.edx-description,
.edx-streams {
  border: 0;
  border-left: 3px solid #58715a;
  background: rgba(27, 34, 27, 0.58);
  border-radius: 4px;
}

.edition-stats span {
  background: rgba(34, 43, 34, 0.74);
}

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

.wkx-left {
  top: 90px;
}

.wkx-main > .panel-block {
  border: 0;
  border-left: 3px solid #5f7d63;
  border-radius: 4px;
  background: rgba(24, 30, 24, 0.66);
}

.wkx-summary-grid article,
.wkx-flow article,
.wkx-loot-item,
.legend-card,
.info-box p,
.wkx-toc a {
  border-radius: 4px;
}

.wkx-toc a {
  border: 0;
  border-left: 3px solid #4d6250;
  background: rgba(27, 35, 27, 0.62);
}

.wkx-toc a:hover {
  border-left-color: #8fc978;
  background: rgba(33, 43, 33, 0.78);
}

@media (max-width: 1200px) {
  .wkx-layout {
    grid-template-columns: 1fr;
  }

  .wkx-left,
  .edx-aside {
    position: static;
  }
}

@media (max-width: 950px) {
  .edx-layout {
    grid-template-columns: 1fr;
  }
}
