/* JVR Worlds - additive styles; shared JVR masthead, nav, typography and buttons
   come from jvr.css. This file lives at the repository root next to jvr.css. */
.worlds-page {
  --worlds-ink:#101015;
  --worlds-soft:#f4f2ed;
  --worlds-line:#e7e5e0;
  margin:0;
  background:var(--jvr-bg,#f9f9f9);
  color:var(--jvr-black,#111);
  font-family:"Inter",system-ui,sans-serif;
}
.worlds-page *, .worlds-page *::before, .worlds-page *::after { box-sizing:border-box; }
.worlds-page .nav-links a[aria-current="page"] { color:var(--jvr-yellow,#ffde59); }
.worlds-page .worlds-footer .links { display:flex;gap:16px;flex-wrap:wrap; }
.worlds-page .worlds-footer .links a { font-size:.77rem;text-decoration:none; }
.worlds-main { display:block; }
.worlds-wrap { width:min(1180px,calc(100% - 44px));margin-inline:auto; }
/* Give the creator video gallery more room without widening the World details above. */
.worlds-wrap.worlds-gallery-wrap { width:min(1520px,calc(100% - 44px)); }

/* Reuses the very same collage asset as the standard JVR homepage hero. */
.worlds-hero {
  position:relative;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(135deg,#0a0a0f 0%,#1a1a2e 52%,#16213e 100%);
  border-bottom:4px solid var(--jvr-yellow,#ffde59);
}
.worlds-hero::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(135deg,rgba(10,10,15,.62),rgba(22,33,62,.68)),
    url("images/archive-collage.png");
  background-size:cover;
  background-position:center;
  opacity:.58;
}
.worlds-hero::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:repeating-linear-gradient(to bottom,transparent,transparent 2px,rgba(0,0,0,.16) 2px,rgba(0,0,0,.16) 4px);
}
.worlds-hero .worlds-hero-layout {
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(240px,.65fr);
  align-items:center;
  gap:42px;
  max-width:var(--jvr-max,1100px);
  padding:55px 22px 61px;
}
.worlds-hero .jvr-brand-kicker { margin:0 0 12px; }
.worlds-hero h1 {
  font-family:"IBM Plex Mono",monospace;
  font-size:clamp(2.45rem,4.15vw,3.55rem);
  font-weight:700;
  line-height:1.04;
  letter-spacing:-.058em;
  text-transform:uppercase;
  color:#fff;
  margin:0 0 18px;
  text-shadow:3px 3px 0 rgba(255,87,87,.43);
}
.worlds-hero h1 span {
  display:block;
  color:var(--jvr-yellow,#ffde59);
  text-shadow:2px 2px 0 rgba(204,153,0,.25);
}
.worlds-hero .worlds-lede {
  color:rgba(255,255,255,.78);
  font-size:1.08rem;
  line-height:1.52;
  max-width:620px;
  margin:0 0 16px;
}
/* Global .cta and .btn styles are deliberately reused instead of restyled. */
.worlds-hero .worlds-hero-actions { margin-top:0; margin-bottom:0; }
.worlds-hero-note {
  border:2px solid rgba(255,255,255,.20);
  border-radius:14px;
  padding:23px;
  max-width:320px;
  justify-self:end;
  background:rgba(10,10,20,.37);
  box-shadow:0 18px 48px rgba(0,0,0,.12);
}
.worlds-hero-note .worlds-note-icon { font-size:2rem;margin-bottom:12px;color:var(--jvr-yellow,#ffde59); }
.worlds-hero-note strong { display:block;font:700 1.08rem "Space Grotesk",sans-serif;margin-bottom:9px; }
.worlds-hero-note p { font-size:.9rem;color:rgba(255,255,255,.8);margin:0;line-height:1.55; }
/* Reuse global .btn styling for the asset pack CTA as well. */
.worlds-page .worlds-btn { display:inline-flex;align-items:center;gap:8px;text-decoration:none; }
.worlds-page .worlds-btn--muted { opacity:.55;cursor:not-allowed;pointer-events:none; }
.worlds-intro{padding:51px 0 15px}
.worlds-section-eyebrow{font:700 .7rem "IBM Plex Mono",monospace;letter-spacing:.16em;color:#c64141;text-transform:uppercase}
.worlds-section-head{display:flex;justify-content:space-between;gap:16px;align-items:end;margin:0 0 22px}
.worlds-section-head h2{font:700 clamp(1.8rem,3.5vw,2.5rem) "Space Grotesk",sans-serif;color:var(--worlds-ink);letter-spacing:.03em;text-transform:uppercase;margin:8px 0}
.worlds-section-head p{margin:0;max-width:600px;color:#5a5d68}
.worlds-count{background:#fff;border:1px solid #e8e6e0;border-radius:30px;padding:8px 15px;color:#444;font:600 .74rem "IBM Plex Mono",monospace;white-space:nowrap}
.worlds-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:16px 0 60px}
.worlds-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #e7e5e2;border-radius:19px;background:#fff;box-shadow:0 10px 28px rgba(20,20,30,.05);min-width:0;transition:transform .2s,box-shadow .2s}
.worlds-card:hover{transform:translateY(-5px);box-shadow:0 18px 46px rgba(20,20,30,.13)}
.worlds-card-image{position:relative;aspect-ratio:1.6;display:grid;place-items:center;overflow:hidden;background:linear-gradient(140deg,#13182a,#23263f 60%,#6c363e)}
.worlds-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.worlds-card-image--empty{color:#fff;text-shadow:2px 3px 0 rgba(255,87,87,.65)}
.worlds-monogram{font:800 clamp(5rem,10vw,8.7rem)/1 "Space Grotesk",sans-serif;opacity:.78}
.worlds-card-image::after{position:absolute;inset:0;content:"";background:linear-gradient(to top,rgba(0,0,0,.4),transparent 55%);pointer-events:none}
.worlds-card-tag{position:absolute;top:13px;left:13px;background:#ffde59;color:#101015;font:700 .63rem "IBM Plex Mono",monospace;letter-spacing:.1em;text-transform:uppercase;padding:9px 11px;border-radius:7px;z-index:1}
.worlds-card-copy{padding:24px;display:flex;flex:1;flex-direction:column}
.worlds-card-copy h3{font:700 1.48rem/1.18 "Space Grotesk",sans-serif;letter-spacing:-.025em;color:#121218;text-transform:none;margin:0 0 9px}
.worlds-card-sub{font-weight:700;font-size:.85rem;color:#ce4747;margin-bottom:10px}
.worlds-creator-credit{font-size:.83rem;color:#545763;margin:0 0 14px;line-height:1.5}
.worlds-creator-credit span{font:700 .66rem "IBM Plex Mono",monospace;letter-spacing:.07em;text-transform:uppercase;color:#a04444;margin-right:4px}
.worlds-creator-credit a,.worlds-creator-credit strong{color:#bc333b;font-weight:800;text-decoration:none}
.worlds-creator-credit a:hover{text-decoration:underline}
.worlds-card-copy p{font-size:.91rem;color:#5a5b64;line-height:1.65;margin:0 0 23px}
.worlds-card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:16px;border-top:1px solid #eeecea;color:#646772;font-size:.77rem}
.worlds-card-foot a{font-weight:800;color:#c74444}
.worlds-empty{grid-column:1/-1;background:#fff;border:1px dashed #cecad0;border-radius:18px;padding:48px 28px;margin-bottom:70px;text-align:center}
.worlds-empty h3{color:#161820;font:700 1.5rem "Space Grotesk",sans-serif;text-transform:none}
.worlds-empty p{max-width:610px;margin:0 auto;color:#60616b}
.worlds-explainer{padding:36px 0 52px;border-top:1px solid #e6e4e2}
.worlds-explainer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.worlds-step{background:#fff;padding:23px;border:1px solid #ebe8e4;border-radius:15px}
.worlds-step b{display:inline-block;color:#c84646;font:700 .8rem "IBM Plex Mono",monospace;margin-bottom:10px}
.worlds-step strong{display:block;margin-bottom:9px;font:700 1.15rem "Space Grotesk",sans-serif}
.worlds-step p{font-size:.88rem;color:#60616b;margin:0}
.worlds-detail-hero .worlds-hero-layout{padding-top:43px;padding-bottom:51px}
.worlds-detail-hero .jvr-brand-kicker{margin-top:18px}
.worlds-breadcrumb{display:flex;gap:7px;font-size:.77rem;color:#c6c8d2}
.worlds-breadcrumb a{color:#f5de85}
.worlds-detail-art{height:295px;min-width:0;width:100%;border:1px solid rgba(255,255,255,.2);border-radius:22px;overflow:hidden;background:linear-gradient(140deg,#151827,#2e3450 64%,#783b47);display:grid;place-items:center;box-shadow:0 26px 65px rgba(0,0,0,.3)}
.worlds-detail-art img{width:100%;height:100%;object-fit:cover}
.worlds-detail-art span{font:800 10rem/1 "Space Grotesk",sans-serif;color:rgba(255,255,255,.5);text-shadow:3px 4px 0 rgba(255,87,87,.8)}
.worlds-hero-creator{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#fff;margin:0 0 13px;font-size:.93rem}
.worlds-hero-creator span{font:700 .7rem "IBM Plex Mono",monospace;letter-spacing:.1em;color:#f8de8b}
.worlds-hero-creator a,.worlds-hero-creator strong{color:#fff;font-weight:800;text-decoration:none}
.worlds-hero-creator a:hover{color:var(--jvr-yellow,#ffde59);text-decoration:underline}
.worlds-hero-hashtag{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 13px}
.worlds-hero-hashtag>span{font:700 .7rem "IBM Plex Mono",monospace;letter-spacing:.1em;color:#f8de8b}
.worlds-hashtag{display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(255,222,89,.55);border-radius:999px;padding:7px 12px;background:rgba(255,222,89,.10);color:#ffde59;font-size:.87rem;font-weight:800;text-decoration:none;overflow-wrap:anywhere}
.worlds-hashtag:hover{background:rgba(255,222,89,.22);color:#fff;text-decoration:underline}
.worlds-detail-topline{display:flex;gap:12px;flex-wrap:wrap;font:700 .72rem "IBM Plex Mono",monospace;color:#e3e4eb;margin-bottom:18px}
.worlds-detail-topline span{border:1px solid rgba(255,255,255,.18);padding:7px 10px;border-radius:999px}
.worlds-content{padding:45px 0 75px}
.worlds-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,.8fr);gap:28px;align-items:start}
.worlds-panel{background:#fff;border:1px solid #e8e6e3;border-radius:19px;padding:29px;margin-bottom:24px;min-width:0;box-shadow:0 8px 28px rgba(0,0,0,.035)}
.worlds-panel h2{color:#151520;font:700 clamp(1.45rem,3vw,1.85rem) "Space Grotesk",sans-serif;letter-spacing:-.025em;text-transform:none;margin:0 0 15px}
.worlds-panel h3{color:#151520;font:700 1.2rem "Space Grotesk",sans-serif;letter-spacing:-.02em;text-transform:none}
.worlds-panel p{font-size:.95rem;color:#545661;line-height:1.72}
.worlds-panel p:last-child{margin-bottom:0}
.worlds-guidelines{padding-left:23px;color:#545661;font-size:.94rem;line-height:1.75;margin-bottom:0}
.worlds-guidelines li{margin:0 0 10px}
.worlds-license{padding:16px;border-left:4px solid #ffde59;background:#f7f6f2;border-radius:4px;font-size:.84rem;line-height:1.66;color:#535662}
.worlds-panel .worlds-license{margin-bottom:0}
.worlds-side-label{font:700 .68rem "IBM Plex Mono",monospace;color:#ca4646;letter-spacing:.12em;text-transform:uppercase}
.worlds-side-owner{font-size:1.1rem!important;font-weight:700;color:#222!important}
.worlds-assets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 20px}
.worlds-asset{display:flex;flex-direction:column;overflow:hidden;border:1px solid #e7e5e2;border-radius:14px;background:#fff;min-width:0}
.worlds-asset-thumb{aspect-ratio:1.7;background:#e9e9ef;display:grid;place-items:center;font:800 2.2rem "Space Grotesk",sans-serif;color:#595a6a}
.worlds-asset-thumb img{width:100%;height:100%;object-fit:cover}
.worlds-asset-text{padding:16px;display:flex;flex:1;flex-direction:column}
.worlds-asset-title{font-weight:800;font-size:.95rem;margin:0 0 6px;color:#23232a}
.worlds-asset-desc{font-size:.78rem;color:#646673;line-height:1.5;margin-bottom:13px}
.worlds-download{display:inline-flex;align-items:center;gap:6px;color:#bc3939!important;font-size:.83rem;font-weight:800;margin-top:auto}
.worlds-pack-cta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;align-items:center;border-top:1px solid #ede9e7;padding-top:20px}
.worlds-pack-cta small{color:#777883;font-size:.77rem}
.worlds-gallery-intro{margin:0 0 13px}
.worlds-gallery-cta{margin:22px 0 4px}
.worlds-video-hashtag{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#fff9e7;border:1px solid #f4e5a8;border-radius:12px;padding:10px 12px;margin:4px 0 20px!important;font-size:.85rem!important}
.worlds-page .worlds-panel .worlds-video-hashtag .worlds-hashtag{background:#ffde59;color:#171722;border:1px solid #e4c044;padding:5px 10px;font-size:.83rem}
.worlds-page .worlds-panel .worlds-video-hashtag .worlds-hashtag:hover{background:#ffe88c}
.worlds-video-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:17px 0 0}
.worlds-video{display:flex;flex-direction:column;border-radius:13px;border:1px solid #e7e5e2;overflow:hidden;background:#fff;min-width:0;color:#282834;box-shadow:0 5px 20px rgba(0,0,0,.04)}
.worlds-video-media{display:flex;align-items:center;justify-content:center;min-height:180px;background:linear-gradient(145deg,#0e1019,#232633)}
.worlds-video-media--player{padding:8px}
.worlds-video-media iframe{display:block;width:100%;max-width:350px;aspect-ratio:9/16;height:auto;border:0;border-radius:6px;background:#101117}
.worlds-video-media--external{padding:25px;min-height:180px}
.worlds-video-fallback{display:flex;align-items:center;justify-content:center;min-height:100px;padding:16px;border:1px solid rgba(255,255,255,.28);border-radius:11px;text-align:center;color:#ffde59!important;font-weight:800;font-size:.91rem}
.worlds-video-fallback:hover{background:rgba(255,255,255,.1)}
.worlds-video-info{padding:14px 16px 17px}
.worlds-panel .worlds-video-info h3{font-size:1.02rem;margin:0 0 7px;line-height:1.3}
.worlds-panel .worlds-video-info p{font-size:.81rem;line-height:1.45;color:#666875;margin:0 0 9px}
.worlds-video-info a{font-size:.83rem;font-weight:800;color:#be3737;text-decoration:none}
.worlds-video-info a:hover{text-decoration:underline}
.worlds-muted{color:#747683;font-size:.89rem}
.worlds-preview-label{display:inline-block;background:#fff0ca;border-radius:9px;padding:8px 13px;color:#6e5110;font-size:.76rem;font-weight:800;margin-top:9px}
.worlds-footer{background:#15151d;padding:27px 0;color:#adafb9;margin-top:10px}
.worlds-footer .worlds-wrap{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;font-size:.78rem}
.worlds-footer a{color:#ffe171}
@media (max-width:880px) {
  .worlds-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .worlds-hero .worlds-hero-layout { gap:24px;grid-template-columns:minmax(0,1.25fr) minmax(220px,.75fr); }
  .worlds-hero-note { padding:19px; }
  .worlds-hero h1 { font-size:clamp(2.15rem,4.3vw,3.05rem); }
  .worlds-columns { grid-template-columns:1fr; }
  .worlds-video-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .worlds-side { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }
  .worlds-side .worlds-panel { margin:0; }
}
@media (max-width:650px) {
  .worlds-wrap { width:min(100% - 32px,1180px); }
  .worlds-wrap.worlds-gallery-wrap { width:min(100% - 32px,1520px); }
  .worlds-hero .worlds-hero-layout { grid-template-columns:1fr;padding:42px 20px 44px;gap:22px; }
  .worlds-hero-note { justify-self:stretch;max-width:none; }
  .worlds-grid,.worlds-explainer-grid,.worlds-assets,.worlds-video-list,.worlds-side { grid-template-columns:1fr; }
  .worlds-intro { padding-top:35px; }
  .worlds-section-head { align-items:start;flex-direction:column; }
  .worlds-panel { padding:22px; }
  .worlds-detail-art { height:220px; }
  .worlds-card-image { aspect-ratio:1.9; }
  .worlds-hero h1 { font-size:clamp(1.95rem,7.4vw,3.05rem);overflow-wrap:break-word; }
}

.worlds-page .worlds-panel a:not(.worlds-download):not(.worlds-btn){color:#c83a42;font-weight:700}

/* An optional portrait-format creator introduction, hosted as a World asset. */
.worlds-intro-video{
  display:flex;
  justify-content:center;
  background:linear-gradient(145deg,#0e101a,#242432);
  border-radius:14px;
  padding:14px;
  margin:19px 0 0;
}
.worlds-intro-video video{
  display:block;
  width:100%;
  max-width:360px;
  max-height:640px;
  aspect-ratio:9 / 16;
  object-fit:contain;
  border-radius:9px;
  background:#050506;
}
@media(max-width:650px){
  .worlds-intro-video{padding:7px}
}
/* Make the entire World card clickable */
.worlds-card {
  position: relative;
  cursor: pointer;
}

.worlds-card-foot a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep creator profile links independently clickable */
.worlds-creator-credit a {
  position: relative;
  z-index: 2;
}

/* Highlight cards during keyboard navigation */
.worlds-card:focus-within {
  outline: 2px solid var(--jvr-red);
  outline-offset: 3px;
}
