/* Terraria world: night-forest green with leaf-green and gold touches, the updates strip and the boss checklist.
   Colours come from world.json tokens. No Re-Logic art, fonts, sprites or logo lettering. */
.xw--terraria .xw-bar { box-shadow: 0 3px 0 color-mix(in srgb, var(--w-accent) 55%, transparent); }
.xw--terraria .xw-hero__art img { box-shadow: 0 0 0 1px var(--w-line), 0 18px 40px -18px color-mix(in srgb, var(--w-accent) 45%, transparent); }
.xw--terraria .xw-card { transition: transform .15s; }
.xw--terraria .xw-card:hover { transform: translateY(-3px); }
.xw--terraria tr[hidden], .xw--terraria li[hidden], .xw--terraria p[hidden], .xw--terraria button[hidden] { display: none; }

/* Updates strip on the hub. */
.tr-strip { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; margin-block: 8px 32px; padding: 22px 24px; background: linear-gradient(100deg, var(--w-panel), var(--w-panel2)); border: 1px solid var(--w-line); border-radius: var(--w-radius); }
.tr-strip h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.tr-strip p { margin: 6px 0 0; color: var(--w-muted); }
.tr-strip .xw-kicker { margin: 0 0 6px; }
.tr-strip__dates { color: var(--w-accent2) !important; font-weight: 700; }
.tr-strip__next { color: var(--w-text) !important; }
.tr-next { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tr-next li { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 10px; padding: 8px 12px; background: var(--w-bg2); border-radius: var(--w-radius); }
.tr-next b { color: var(--w-accent); font-variant-numeric: tabular-nums; }

/* Updates page. */
.tr-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.tr-head img { width: 100%; height: auto; border-radius: var(--w-radius); border: 1px solid var(--w-line); }
.xw--terraria [data-tr-starts] { display: block; color: var(--w-accent2); font-weight: 700; }
.xw--terraria th small { display: block; color: var(--w-muted); font-weight: 600; }
.tr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tr-panel { padding: 18px 20px; background: var(--w-panel); border: 1px solid var(--w-line); border-left: 4px solid var(--w-accent); border-radius: var(--w-radius); }
.tr-panel p { margin: 0; }
.tr-panel .xw-kicker { margin-bottom: 6px; }

/* Boss checklist. */
.tr-tool-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; margin-block: 8px 28px; }
.tr-tool__art { margin: 0; position: sticky; top: 16px; }
.tr-tool__art img { width: 100%; height: auto; border-radius: var(--w-radius); border: 1px solid var(--w-line); }
.tr-tool { display: grid; gap: 16px; padding: 20px; background: var(--w-panel); border: 1px solid var(--w-line); border-radius: var(--w-radius); }
.tr-worlds { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.tr-worlds__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--w-bg2); border-radius: 999px; }
.tr-worlds__tabs button { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 14px; font: inherit; font-weight: 800; color: var(--w-muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.tr-worlds__tabs button[aria-pressed="true"] { color: var(--w-accent-ink); background: var(--w-accent); }
.tr-world-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; }
.tr-name { display: grid; gap: 4px; color: var(--w-muted); font-size: .9rem; }
.tr-name input { width: min(16em, 100%); padding: 9px 12px; font: inherit; color: var(--w-text); background: var(--w-bg2); border: 1px solid var(--w-line); border-radius: var(--w-radius); }
.tr-opt { display: flex; gap: 8px; align-items: center; color: var(--w-muted); cursor: pointer; }
.tr-next-card { padding: 16px 18px; background: linear-gradient(100deg, var(--w-bg2), var(--w-panel2)); border: 1px solid var(--w-line); border-left: 4px solid var(--w-accent2); border-radius: var(--w-radius); }
.tr-next-card h2 { margin: 2px 0 8px; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.tr-next-card p { margin: 6px 0 0; }
.tr-next-card .xw-kicker { margin: 0; }
.tr-progress p { margin: 0 0 6px; color: var(--w-accent2); font-weight: 700; }
.tr-bar { height: 10px; background: var(--w-bg2); border-radius: 999px; overflow: hidden; }
.tr-bar span { display: block; height: 100%; width: 0; background: var(--w-accent); transition: width .2s; }
.tr-stage h2 { margin: 6px 0 0; font-size: 1.25rem; }
.tr-stage__lede { margin: 2px 0 8px; color: var(--w-muted); }
.tr-bosses { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tr-bosses label { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; background: var(--w-bg2); border: 1px solid transparent; border-radius: var(--w-radius); cursor: pointer; }
.tr-bosses li.is-next label { border-color: var(--w-accent2); }
.tr-bosses input { width: 1.2rem; height: 1.2rem; margin-top: 2px; accent-color: var(--w-accent); }
.tr-boss__n { min-width: 1.6em; color: var(--w-muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.tr-boss__body b { font-size: 1.05rem; }
.tr-boss__line { display: block; margin-top: 4px; color: var(--w-muted); font-size: .94rem; }
.tr-boss__k { display: inline-block; min-width: 4.6em; color: var(--w-accent); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tr-tag { margin-left: 6px; padding: 1px 8px; font-size: .75rem; font-style: normal; font-weight: 800; color: var(--w-bg); background: var(--w-accent2); border-radius: 999px; }
.tr-bosses input:checked ~ .tr-boss__body { opacity: .6; }
.tr-bosses input:checked ~ .tr-boss__body b { text-decoration: line-through; }
.tr-worlds__tabs button:focus-visible, .tr-bosses input:focus-visible, .tr-opt input:focus-visible, .tr-name input:focus-visible { outline: 2px solid var(--w-accent2); outline-offset: 2px; }
.tr-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; color: var(--w-muted); font-size: .92rem; }

@media (max-width: 900px) {
  .tr-strip { grid-template-columns: 1fr; }
  .tr-strip .xw-button { justify-self: start; }
}
@media (max-width: 760px) {
  .tr-tool-wrap, .tr-head, .tr-two { grid-template-columns: 1fr; }
  .tr-tool__art { order: -1; position: static; }
  .tr-strip { padding: 16px; }
  .tr-next li { grid-template-columns: 1fr; gap: 2px; }
  .tr-tool { padding: 14px; }
  .tr-bosses label { grid-template-columns: auto minmax(0, 1fr); }
  .tr-boss__n { display: none; }
}
