/* Rexnivo home v3: "Adventure is calling". Navy and crimson brand anchor; amber play; one accent per world. */
[hidden] { display: none !important; }
body.home {
  --navy: #0e1530; --navy2: #172150; --navy3: #22306b; --crimson: #d62c47; --amber: #ffbe3b; --amber-d: #c98a12;
  --cream: #fff6e3; --mist: #c9d1ee;
  --wilds: #3fae63; --clockworks: #f0a830; --frontier: #2cc2b9; --storylands: #e2668f;
  --round: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  background: linear-gradient(180deg, #0e1530 0%, #1a1b4a 35%, #2a1f4f 60%, #121633 100%); color: var(--cream); color-scheme: dark;
}
body.home a { color: var(--amber); }
body.home main { max-width: none; padding: 0; }
body.home .top {
  position: absolute; inset: 0 0 auto 0; z-index: 20; background: linear-gradient(180deg, rgba(14, 21, 48, 0.82), rgba(14, 21, 48, 0)); border: 0;
}
body.home .mark { color: var(--cream); font-family: var(--round); font-size: 1.6rem; letter-spacing: 0.05em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
/* the logo is drawn for a light ground: over the painted hero it sits on a small cream plate */
body.home .mark { background: #fbf6ec; padding: 5px 14px 5px 10px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); text-shadow: none; }
body.home .top nav a { color: var(--cream); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
body.home .top nav .lang { color: var(--cream); }
body.home .mark { min-height: 44px; display: inline-flex; align-items: center; }
body.home .foot a { display: inline-flex; align-items: center; min-height: 44px; }
.pgrid a { display: inline-flex; align-items: center; min-height: 44px; }
html[lang='vi'] .hx h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
body.home a:focus-visible, body.home button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.btn.big { min-height: 56px; font-size: 1.12rem; padding: 0.6em 1.5em; }
body.home .btn { font-family: var(--round); border-radius: 999px; font-weight: 800; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms; }
body.home .btn.play { background: var(--amber); border-color: var(--amber); color: #2a1700; box-shadow: 0 6px 0 var(--amber-d), 0 10px 30px rgba(255, 190, 59, 0.35); }
body.home .btn.play:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--amber-d), 0 14px 36px rgba(255, 190, 59, 0.45); background: #ffcb5e; }
body.home .btn.play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--amber-d); }
body.home .btn.ghost { background: rgba(14, 21, 48, 0.45); color: var(--cream); border: 2px solid var(--cream); backdrop-filter: blur(4px); }
body.home .btn.ghost:hover { background: rgba(255, 246, 227, 0.14); }

/* ---------- hero ---------- */
.hx { position: relative; min-height: min(100svh, 980px); display: grid; overflow: hidden; isolation: isolate; }
.hx-scene { position: absolute; inset: 0; z-index: 0; }
.hx-bg, .hx-awake, .hx-leaves { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.hx-bg { transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px), 0) scale(1.02); transition: transform 600ms cubic-bezier(.2, .7, .2, 1); animation: hx-in 1400ms ease-out both; }
.hx-awake { opacity: 0; transition: opacity 2200ms ease; transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px), 0) scale(1.02); }
.hx-awake.on { opacity: 1; }
.hx-leaves { z-index: 3; transform: translate3d(calc(var(--px, 0) * -26px), calc(var(--py, 0) * -14px), 0) scale(1.04); transition: transform 500ms cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.hx-scene::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 21, 48, 0.88) 0%, rgba(14, 21, 48, 0.55) 30%, rgba(14, 21, 48, 0) 58%), linear-gradient(0deg, rgba(14, 21, 48, 0.95) 0%, rgba(14, 21, 48, 0) 26%); }
.hx-glow { position: absolute; z-index: 1; left: 40%; top: 18%; width: 40vmax; height: 40vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 140, 0.28), rgba(255, 214, 140, 0) 65%); pointer-events: none; animation: breathe 7s ease-in-out infinite; }
.hx-rex { position: absolute; z-index: 4; left: 50%; bottom: -1%; height: min(46%, 470px); width: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
  transform: translate3d(calc(var(--px, 0) * -18px), 0, 0); transition: transform 500ms cubic-bezier(.2, .7, .2, 1); animation: rex-in 900ms 300ms cubic-bezier(.2, 1.3, .4, 1) both; transform-origin: 50% 100%; }
.mote { position: absolute; z-index: 3; width: 6px; height: 6px; border-radius: 50%; background: #ffe7a3; box-shadow: 0 0 10px 3px rgba(255, 220, 130, 0.65); opacity: 0; animation: mote 9s linear infinite; pointer-events: none; }
.m0 { left: 30%; top: 70%; animation-delay: 0s; } .m1 { left: 45%; top: 62%; animation-delay: 1.2s; } .m2 { left: 58%; top: 74%; animation-delay: 2.4s; }
.m3 { left: 66%; top: 55%; animation-delay: 3.1s; } .m4 { left: 38%; top: 80%; animation-delay: 4.3s; } .m5 { left: 52%; top: 50%; animation-delay: 5.2s; }
.m6 { left: 72%; top: 70%; animation-delay: 6.1s; } .m7 { left: 25%; top: 58%; animation-delay: 7.2s; } .m8 { left: 61%; top: 82%; animation-delay: 0.6s; }
.m9 { left: 48%; top: 75%; animation-delay: 1.9s; } .m10 { left: 80%; top: 60%; animation-delay: 3.6s; } .m11 { left: 35%; top: 48%; animation-delay: 4.8s; }
.m12 { left: 56%; top: 66%; animation-delay: 5.9s; } .m13 { left: 68%; top: 44%; animation-delay: 8s; }

.hx-copy { pointer-events: none; position: relative; z-index: 6; align-self: center; max-width: 640px; padding: clamp(100px, 16vh, 170px) clamp(16px, 5vw, 64px) clamp(96px, 12vh, 140px); }
.hx-copy > * { pointer-events: auto; }
.hx-kick { font-family: var(--round); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 800; font-size: 0.9rem; color: var(--amber); margin: 0 0 0.4rem; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.hx h1 { font-family: var(--round); font-weight: 900; font-size: clamp(2.6rem, 7.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.01em; margin: 0 0 0.35em; color: #fff;
  text-shadow: 0 4px 0 rgba(14, 21, 48, 0.55), 0 10px 40px rgba(0, 0, 0, 0.55); animation: rise 900ms 150ms ease-out both; }
.hx-sub { font-size: clamp(1.08rem, 2vw, 1.32rem); line-height: 1.5; max-width: 32ch; margin: 0 0 1.4rem; color: var(--cream); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); animation: rise 900ms 300ms ease-out both; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 0.9rem; animation: rise 900ms 450ms ease-out both; }
.hx-promise { margin: 0; font-size: 0.95rem; color: var(--mist); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }

/* landmarks: real links that work without JavaScript; JS turns them into world cards */
.hx-marks { position: absolute; inset: 0; z-index: 5; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.mk { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); pointer-events: auto; animation: rise 700ms both; }
.mk-a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 999px; text-decoration: none;
  background: rgba(14, 21, 48, 0.72); border: 2px solid var(--wc, var(--amber)); color: var(--cream) !important; font-family: var(--round); font-weight: 800; font-size: 0.98rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); backdrop-filter: blur(3px); transition: transform 160ms ease, background-color 160ms; }
.mk-a:hover, .mk-a:focus-visible { transform: scale(1.07); background: rgba(14, 21, 48, 0.92); }
.mk-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--wc, var(--amber)); box-shadow: 0 0 0 0 var(--wc, var(--amber)); animation: ping 2.4s ease-out infinite; }
.mk-l em { font-style: normal; font-weight: 600; font-size: 0.8rem; color: var(--mist); }
.mk-wilds { --wc: var(--wilds); } .mk-clockworks { --wc: var(--clockworks); } .mk-frontier { --wc: var(--frontier); } .mk-storylands { --wc: var(--storylands); }
.mk-wonder { --wc: #7ff3ea; } .mk-wonder .mk-a { background: rgba(10, 60, 70, 0.78); }
.mk-off .mk-a { border-style: dashed; opacity: 0.85; } .mk-off .mk-dot { animation: none; opacity: 0.6; }
.mk.awake .mk-dot { background: #fff1b8; box-shadow: 0 0 16px 6px rgba(255, 220, 120, 0.8); }

.hx-pop { position: absolute; z-index: 12; width: min(360px, calc(100vw - 32px)); padding: 18px 20px 20px; border-radius: 20px; background: #0e1530; border: 2px solid var(--wc, var(--amber));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); color: var(--cream); animation: pop 220ms ease-out both; }
.hx-pop h2 { font-family: var(--round); margin: 0.1rem 0 0.4rem; font-size: 1.6rem; color: #fff; }
.hx-pop .kind { margin: 0; color: var(--wc, var(--amber)); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
.hx-x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--cream); font-size: 1.6rem; cursor: pointer; }
.glist { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 8px; }
.glist a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: #fff !important; text-decoration: none; font-weight: 800; font-family: var(--round); }
.glist a:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- sections ---------- */
.sec { padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 64px); max-width: 1280px; margin: 0 auto; }
.sec h2 { font-family: var(--round); font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 0 0 0.2em; color: #fff; }
.sec-sub { color: var(--mist); font-size: 1.1rem; margin: 0 0 1.8rem; max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: rgba(255, 255, 255, 0.1); color: var(--cream); }
.chip.w-wilds { background: var(--wilds); color: #062411; } .chip.w-clockworks { background: var(--clockworks); color: #2a1700; } .chip.w-frontier { background: var(--frontier); color: #04302d; } .chip.w-storylands { background: var(--storylands); color: #3a0a19; }

.pcards { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.pcards > .pcard { max-width: 440px; } /* a single filter result keeps card size instead of stretching across the row */
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 26px; overflow: hidden; background: var(--navy2); border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45); border-color: var(--pc, var(--amber)); }
.pc-wilds { --pc: var(--wilds); } .pc-clockworks { --pc: var(--clockworks); } .pc-frontier { --pc: var(--frontier); }
.pc-art { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.pc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; display: block; }
.pcard:hover .pc-art img { transform: scale(1.06); }
.pc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; align-items: flex-start; }
.pc-body h3 { font-family: var(--round); font-size: 1.6rem; margin: 0.1em 0 0.2em; color: #fff; }
.pc-body p { margin: 0 0 1rem; color: var(--cream); line-height: 1.5; }
.pc-body .pc-meta { margin: 0 0 0.5rem; color: var(--mist); font-weight: 700; font-size: 0.95rem; }
.pc-body > .chip { margin-bottom: 6px; }
.pc-body .btn.play { margin-top: auto; }
.atlas-done:not([hidden]) { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; background: #fff1b8; color: #3a2800; font-weight: 800; font-size: 0.85rem; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }

.worlds { max-width: 1400px; }
.gates { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.gate { --g: var(--amber); position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 200px 200px 24px 24px; overflow: hidden; background: var(--navy2); border: 3px solid var(--g);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03), 0 20px 50px rgba(0, 0, 0, 0.4); scroll-margin-top: 24px; }
.g-wilds { --g: var(--wilds); } .g-clockworks { --g: var(--clockworks); } .g-frontier { --g: var(--frontier); } .g-storylands { --g: var(--storylands); }
.gate-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.gate-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms ease, filter 700ms ease; }
.gate:hover .gate-art img { transform: scale(1.05); }
.gate-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 21, 48, 0) 50%, var(--navy2)); }
.g-off .gate-art img { filter: grayscale(0.75) brightness(0.75); }
.wake:not([hidden]) { position: absolute; z-index: 2; top: 18%; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: #fff1b8; color: #3a2800; font-weight: 900; font-family: var(--round); box-shadow: 0 0 30px rgba(255, 230, 150, 0.9); }
.gate-body { padding: 4px 18px 20px; }
.gate-body .kind { margin: 0; color: var(--g); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.gate-body h3 { font-family: var(--round); font-size: 1.55rem; margin: 0.1em 0 0.3em; color: #fff; }
.gate-body p { margin: 0 0 0.6rem; color: var(--cream); line-height: 1.45; }
.gate .small { font-size: 0.85rem; color: var(--mist); margin: 0.2rem 0 0; }
.soon-note { border: 2px dashed rgba(226, 102, 143, 0.6); border-radius: 12px; padding: 10px 12px; color: var(--mist) !important; }

.filters { display: grid; gap: 10px; margin: 0 0 1.2rem; }
.fg { display: flex; flex-wrap: wrap; gap: 8px; }
.fg button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--cream); font: 700 0.98rem var(--round); cursor: pointer; }
.fg button[aria-pressed='true'] { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.fcount { margin: 0; color: var(--mist); }
.dtiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.dtile > a, .dtile > div { display: grid; height: 100%; border-radius: 18px; overflow: hidden; background: var(--navy2); border: 2px solid rgba(255, 255, 255, 0.08); color: var(--cream) !important; text-decoration: none; transition: transform 180ms ease, border-color 180ms; }
.dtile > a:hover { transform: translateY(-4px); border-color: var(--amber); }
.dtile img, .noart { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.noart { display: grid; place-items: center; font: 900 3rem var(--round); color: rgba(255, 255, 255, 0.22); background: repeating-linear-gradient(45deg, #1b2657, #1b2657 12px, #1f2b62 12px, #1f2b62 24px); }
.dt-b { display: grid; gap: 4px; padding: 12px 14px 16px; }
.dt-b strong { font-family: var(--round); font-size: 1.15rem; color: #fff; }
.dt-m { color: var(--mist); font-size: 0.88rem; }
.dt-go { color: var(--amber); font-weight: 800; }
.dt-soon { color: var(--mist); font-style: italic; font-size: 0.9rem; }
.dt-off > div { opacity: 0.85; border-style: dashed; height: auto; }
.dt-off .dt-b { padding: 12px 14px; }
.hx-chips { display: none; }
.mk-l { white-space: nowrap; }
.dtile[hidden] { display: none; }

.atlas-box { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.stamp { position: relative; padding: 18px; border-radius: 20px; background: var(--navy2); border: 2px dashed rgba(255, 255, 255, 0.18); min-height: 150px; }
.stamp h3 { font-family: var(--round); margin: 0 0 0.2rem; color: #fff; }
.stamp .st { font-weight: 800; color: var(--mist); }
.stamp.on { border: 2px solid var(--g, var(--amber)); background: linear-gradient(160deg, rgba(255, 230, 150, 0.16), var(--navy2) 60%); }
.stamp.on .st { color: #fff1b8; }
.stamp.off { opacity: 0.6; }
.stamp ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.atlas-empty { grid-column: 1 / -1; margin: 0; color: var(--mist); }

.parents { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pgrid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.pgrid > div { padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.pgrid h3 { font-family: var(--round); margin: 0 0 0.3rem; color: #fff; }
.pgrid p { margin: 0; color: var(--cream); line-height: 1.55; }

body.home .foot { background: #0a0f24; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--mist); }
body.home .foot a { color: var(--amber); }

@keyframes hx-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rex-in { from { opacity: 0; transform: translateY(40px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--wc, #ffbe3b); } 70% { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 0.9; } 70% { opacity: 0.6; } 100% { opacity: 0; transform: translate(30px, -120px); } }
@keyframes breathe { 0%, 100% { opacity: 0.65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- small screens: the scene sits above the words, landmarks become a row of world chips ---------- */
@media (max-width: 860px) {
  .gates { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .hx { min-height: 0; grid-template-rows: auto auto; }
  .hx-scene { position: relative; height: max(56vw, 40vh); min-height: 220px; max-height: 460px; overflow: hidden; }
  .hx-scene::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(14, 21, 48, 0) 40%), linear-gradient(180deg, rgba(14, 21, 48, 0.75) 0%, rgba(14, 21, 48, 0) 30%); }
  .hx-rex { height: 58%; left: auto; right: 3%; }
  .hx-copy { padding: 8px 16px 36px; }
  .hx-marks { position: relative; inset: auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; margin-top: 12px; pointer-events: auto; }
  .hx-scene .hx-marks { display: none; }
  .mk { position: static; transform: none; }
  .gates { grid-template-columns: 1fr; }
  .gate { border-radius: 120px 120px 22px 22px; }
  .gate-art { aspect-ratio: 16 / 10; }
  .hx-cta { gap: 10px; }
  .hx-cta .btn { flex: 1 1 120px; justify-content: center; padding: 0.5em 0.7em; font-size: 1rem; min-height: 52px; }
  .hx h1 { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  .hx-sub { font-size: 1rem; margin-bottom: 1rem; }
  body.home .top { position: relative; background: var(--navy); padding: 8px 12px; flex-wrap: nowrap; }
  body.home .mark { font-size: 1.25rem; }
  body.home .top nav { gap: 0 10px; flex-wrap: nowrap; overflow-x: auto; }
  body.home .top nav a { font-size: 0.92rem; white-space: nowrap; }
  body.home .top nav a:not(.lang)[href="/"], body.home .top nav a:not(.lang)[href="/vi/"], body.home .top nav a[href$="/about/"] { display: none; }
  .hx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .hx-chips .mk-a { font-size: 0.92rem; }
  .hx-chips .w-wilds { --wc: var(--wilds); } .hx-chips .w-clockworks { --wc: var(--clockworks); } .hx-chips .w-frontier { --wc: var(--frontier); } .hx-chips .w-storylands { --wc: var(--storylands); border-style: dashed; }
  .hx-kick { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home *, body.home *::before, body.home *::after { animation: none !important; transition-duration: 1ms !important; }
  .mote, .hx-glow { display: none; }
  .hx-bg, .hx-leaves, .hx-rex { transform: none !important; }
}

/* section identities: painted bands from the hero, one feel per section */
.sec-play { position: relative; max-width: none; padding-left: max(clamp(16px, 5vw, 64px), calc((100% - 1280px) / 2)); padding-right: max(clamp(16px, 5vw, 64px), calc((100% - 1280px) / 2));
  background: linear-gradient(180deg, rgba(14, 21, 48, 1) 0%, rgba(14, 21, 48, 0.86) 30%, rgba(14, 21, 48, 0.94) 100%), url('/art/home/world-wilds.webp') center 30% / cover; }
.worlds { position: relative; background: radial-gradient(ellipse at 50% 0%, rgba(255, 190, 120, 0.18), rgba(14, 21, 48, 0) 60%); }
.workshop { margin-top: 2.2rem; padding: 18px 20px; border-radius: 18px; border: 2px dashed rgba(201, 209, 238, 0.35); background: rgba(14, 21, 48, 0.6); }
.workshop h3 { margin: 0; font-family: var(--round); color: #fff; }
.workshop .small { margin: 0.2rem 0 0.8rem; color: var(--mist); }
.workshop ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.workshop li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--cream); }
.workshop li span { color: var(--mist); font-size: 0.88rem; }
.atlas { position: relative; }

.atlas .atlas-box { margin-top: 28px; padding: clamp(18px, 3vw, 32px); border-radius: 22px; background: #f3e6c8 url('/art/home/paper.webp') center / cover; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.atlas .stamp { background: rgba(255, 250, 238, 0.6); border-color: rgba(90, 58, 20, 0.35); color: #3b2a14; }
.atlas .stamp h3 { color: #3b2a14; }
.atlas .stamp .st { color: #6b5232; }
.atlas .stamp.on { background: rgba(255, 236, 170, 0.75); border: 3px solid #b8860b; }
.atlas .stamp.on .st { color: #7a4f00; }
.atlas .atlas-empty, .atlas .atlas-nojs { color: #3b2a14; font-weight: 600; }
/* superseded by inline heading Rex */ .atlas-rex-unused { position: absolute; right: clamp(16px, 5vw, 64px); top: clamp(16px, 3vw, 40px); width: clamp(70px, 8vw, 110px); height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); }
.parents { position: relative; }
.par-rex { position: absolute; right: clamp(16px, 5vw, 64px); top: clamp(16px, 4vw, 48px); width: clamp(80px, 10vw, 150px); height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); }
.hx-chips .w-wonder { --wc: #7ff3ea; background: rgba(10, 60, 70, 0.85); }
@media (max-width: 1100px) { .mk-l em { display: none; } }
@media (max-width: 700px) { /* superseded by inline heading Rex */ .atlas-rex-unused { width: 60px; top: 40px; } .atlas h2 { padding-right: 70px; } }

@media (max-width: 700px) and (max-height: 700px) { .hx-scene { height: 50vw; min-height: 170px; } .hx-sub { font-size: 0.95rem; line-height: 1.4; } .hx h1 { font-size: clamp(2rem, 9vw, 2.6rem); } }

/* review fixes (release scores) */
.lang .short { display: none; }
@media (max-width: 380px) { .lang .long { display: none; } .lang .short { display: inline; } .hx-cta .btn { font-size: 0.95rem; } }
@media (max-width: 1100px) { .atlas-box, .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .atlas-box, .pgrid { grid-template-columns: 1fr; } }
.stamp { display: grid; grid-template-rows: auto auto 1fr; padding: 0 0 14px; overflow: hidden; min-height: 0; }
.stamp .st-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; filter: grayscale(0.65) brightness(0.62) sepia(0.2); transition: filter 1200ms ease; }
.stamp.on .st-art { filter: none; }
.stamp.off .st-art { filter: grayscale(1) brightness(0.55); }
.stamp h3, .stamp .st, .stamp ul { padding: 0 14px; }
.stamp h3 { margin-top: 10px; }
.atlas .atlas-empty { font-size: 1rem; text-align: center; }
.gate-cta { margin-top: 0.4rem; background: transparent; color: #fff !important; border: 2px solid var(--g); min-height: 48px; }
.gate-cta:hover { background: rgba(255, 255, 255, 0.08); }
.fall { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--amber); background: transparent; color: var(--amber); font: 800 0.95rem var(--round); cursor: pointer; justify-self: start; }
h2.with-rex { display: flex; align-items: flex-end; gap: 12px; }
h2.with-rex .h-rex { width: clamp(52px, 6vw, 84px); height: auto; order: 2; margin-left: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4)); }
.parents .pgrid > div { border-top: 4px solid rgba(255, 190, 59, 0.55); }
@media (max-width: 700px) {
  .hx-scene .hx-marks { display: block; position: absolute; inset: 0; padding: 0; margin: 0; pointer-events: none; }
  .hx-scene .mk { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; }
  .hx-scene .mk .mk-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hx-scene .mk-a { padding: 6px; min-width: 44px; justify-content: center; }
  .hx-scene .mk-wilds { --x: 14%; --y: 52%; }
}

/* round 3: desktop copy sits low on the jungle floor so the upper-left (volcano) can hold The Wilds pin */
@media (min-width: 701px) {
  .hx-copy { align-self: end; padding-top: 0; padding-bottom: clamp(48px, 9vh, 96px); }
  .hx-scene::after { background: linear-gradient(90deg, rgba(14, 21, 48, 0.86) 0%, rgba(14, 21, 48, 0.5) 32%, rgba(14, 21, 48, 0) 58%), linear-gradient(0deg, rgba(14, 21, 48, 0.95) 0%, rgba(14, 21, 48, 0.25) 45%, rgba(14, 21, 48, 0) 70%); }
}
@media (max-width: 700px) { .hx-scene .mk-frontier { --x: 22%; --y: 80%; } } /* the river below the falls: clear of the Wonder gate and of Rex */
.lang { min-width: 44px; justify-content: center; }
@media (max-width: 380px) { .hx-cta .btn { white-space: nowrap; font-size: 0.88rem; padding: 0.5em 0.6em; } }
.parents .pgrid > div { background: #f3e6c8 url('/art/home/paper.webp') center / cover; border: 0; border-top: 4px solid #b8860b; color: #3b2a14; }
.parents .pgrid h3, .parents .pgrid p { color: #3b2a14; }
.parents .pgrid a { color: #7a2e10; font-weight: 700; }
/* short desktop screens (e.g. 1024x768): a slightly smaller Rex keeps his hat below the Wonder gate pin */
@media (min-width: 701px) and (max-height: 820px) { .hx-rex { height: min(36%, 470px); } }
/* upright tablets (e.g. 768x1024): the copy spans the width, so Rex stands smaller at the right, below the headline */
@media (min-width: 701px) and (max-width: 1100px) and (orientation: portrait) { .hx-rex { height: min(32%, 420px); left: auto; right: 2%; } }

/* trophy shelf (Rexnivo Rewards): rank, stars and every badge; earned medals shine, the rest show how to earn them */
.trophies { margin-top: 28px; padding: 18px clamp(14px, 2.4vw, 24px); border-radius: 20px; background: linear-gradient(160deg, rgba(42, 33, 97, 0.65), rgba(14, 21, 48, 0.85)); border: 1px solid rgba(232, 195, 106, 0.45); }
.trophies h3 { margin: 0 0 4px; font-family: var(--round); color: #ffd76a; font-size: 1.25rem; }
.tr-rank { margin: 0 0 14px; color: var(--cream); font-weight: 600; }
.tr-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.tr { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.tr strong { color: #fff3d0; font-size: 0.98rem; }
.tr .tr-how { grid-column: 2; color: var(--cream); font-size: 0.82rem; line-height: 1.35; opacity: 0.85; }
.tr-medal { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; position: relative; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
.tr-medal::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.5); }
.tr-medal.bronze { background: radial-gradient(circle at 35% 30%, #f0b27a, #a5612e 70%); }
.tr-medal.silver { background: radial-gradient(circle at 35% 30%, #e9edf2, #8d98a8 70%); }
.tr-medal.gold { background: radial-gradient(circle at 35% 30%, #ffe9a3, #c8901c 70%); }
.tr.on { border-color: rgba(232, 195, 106, 0.7); box-shadow: 0 0 18px rgba(232, 195, 106, 0.18); }
.tr.off .tr-medal { filter: grayscale(1) brightness(0.55); }
.tr.off strong { color: var(--cream); }
/* logo on the smallest phones: a little smaller on a tighter plate, so the menu still fits on one line */
@media (max-width: 760px) { body.home .mark { padding: 4px 10px 4px 8px; border-radius: 12px; } }
@media (max-width: 380px) { body.home .mark { padding: 4px 7px 4px 5px; } body.home .mark img { height: 27px; } body.home .top { gap: 8px; } body.home .top nav { gap: 0 8px; } }
@media (max-width: 340px) { body.home .mark { padding: 4px 5px 4px 3px; } body.home .mark img { height: 22px; } }
