/* Two communities, each with its own palette and navigation. */
:root { --world-bar-height: 52px; }
html { scroll-padding-top: 140px; }
.world-bar {
  position: fixed; inset: 0 0 auto; z-index: 76; height: var(--world-bar-height);
  display: flex; align-items: stretch; justify-content: space-between; gap: 24px;
  padding-inline: 3.4%; background: #0b090f; color: #f7eee6;
  border-bottom: 1px solid #ffffff20; font-family: var(--font-body);
}
.world-bar__label { align-self: center; font-size: 14px; font-weight: 600; }
.world-bar__label span { color: #a89cac; margin-left: 7px; font-weight: 400; }
.world-bar__choices { display: flex; }
.world-choice {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  border: 0; border-inline-start: 1px solid #ffffff14; background: transparent;
  color: #b9adbd; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: color .2s, background .2s;
}
.world-choice > span { color: #766b7e; font: 12px var(--font-mono); }
.world-choice > b { font-size: 18px; font-weight: 400; }
.world-choice:hover { color: #fff; background: #ffffff09; }
.world-choice[data-world="hazbin"][aria-pressed="true"] { color: #f5d58e; background: #5c272533; box-shadow: inset 0 -2px #e7b960; }
.world-choice[data-world="helluva"][aria-pressed="true"] { color: #d8fe85; background: #36352355; box-shadow: inset 0 -2px #c8f27b; }
.world-choice[aria-pressed="true"] > span { color: currentColor; }
.world-choice:focus-visible { outline-offset: -5px; outline-color: #c8f27b; }
.world-choice:disabled { cursor: default; }
/* A hidden community (js/worlds.js routes everything else): no tab, and no crossing into it from Helluva.
   With a single tab the number and the arrow go. The signed-in admin still sees it, tagged "Oculta". */
html[data-hidden-world="hazbin"]:not([data-world-review]) :is(.world-choice[data-world="hazbin"], .helluva-crossing),
html[data-hidden-world="helluva"]:not([data-world-review]) .world-choice[data-world="helluva"] { display: none !important; }
html[data-hidden-world]:not([data-world-review]) .world-choice > :is(span, b) { display: none; }
html[data-world-review][data-hidden-world="hazbin"] .world-choice[data-world="hazbin"]::after,
html[data-world-review][data-hidden-world="helluva"] .world-choice[data-world="helluva"]::after { content: 'Oculta'; padding: 4px 6px; border: 1px dashed currentColor; border-radius: 3px; font: 600 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
/* Hidden roleplay zones: their link «Rol» and every way to them go (in «Mi cuenta», a profile, «En línea»), and so does
   where each one is in it. The signed-in admin keeps them, the link tagged «Oculta». */
html[data-rol-oculto]:not([data-world-review]) :is(#rol-navigation, .cuenta-pronto--rol, .perfil-donde, .perfil-card__rol, .en-linea__rol, .en-linea__zona) { display: none !important; }
html[data-rol-oculto][data-world-review] #rol-navigation::after { content: 'Oculta'; margin-left: 6px; padding: 2px 5px; border: 1px dashed currentColor; border-radius: 3px; font: 600 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; opacity: .85; }
.nav { top: var(--world-bar-height); }
/* The bar never grows: no piece of it breaks into lines, and the section links step out when they no longer fit
   in one line (js/main.js: .is-compacta), whatever the fonts or the browser's zoom. */
.nav__mark, .nav__mark span, .nav__links a, .nav__staff, .nav .toggle { white-space: nowrap; }
.nav__ducks { font-style: normal; }
.nav.is-compacta .nav__links { display: none; }
@media (max-width: 400px) { .nav__ducks { display: none; } }
@media (max-width: 340px) { .nav .toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
#world-hazbin .hero { padding-top: 192px; }
.event-world { min-width: 0; }
.event-world[hidden] { display: none !important; }
html[data-world="helluva"] {
  --bg: #0e0b18; --text: #f8f0f3; --accent: #c8f27b; --accent-bright: #e0ffa4;
  --text-dim: #e1d7e9; --text-muted: #b7a9c9; --line: #af94df36; --line-soft: #af94df1c;
  color-scheme: dark;
}
html[data-world="helluva"] .nav { background: linear-gradient(#100d1bf5, #100d1be8 75%, #100d1b00); }
html[data-world="helluva"] .nav__mark { font-family: var(--font-body); font-weight: 700; }
html[data-world="helluva"] .nav__mark span { color: #c3a0ff; }
html[data-world="helluva"] .nav::after,
html[data-world="helluva"] #gl,
html[data-world="helluva"] #grain,
html[data-world="helluva"] .veil,
html[data-world="helluva"] #beam { visibility: hidden; }
html[data-world="helluva"] .nav__tools { margin-left: auto; }
.helluva-world {
  --hb-violet: #c1a0f8; --hb-lime: #c8f27b; --hb-pink: #f86492; --hb-cyan: #79e5df;
  --hb-ink: #0e0b18; color: #f8f0f3;
  background: radial-gradient(ellipse at 93% 25%, #38226744, transparent 55%), #0e0b18;
  font-weight: 400;
}
.helluva-main { padding-top: 104px; }
.helluva-stage {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1.1fr;
  align-items: center; gap: 24px; width: min(1380px, 91%); margin: 0 auto;
  padding: 64px 0 86px; min-height: min(780px, 85svh);
}
.helluva-stage__light {
  position: absolute; z-index: -1; inset: -5% -4% -3% 30%; pointer-events: none;
  background: radial-gradient(ellipse at 70% 30%, #c366e128, transparent 58%), radial-gradient(ellipse at 28% 87%, #47747e20, transparent 50%);
}
.helluva-stage__copy { z-index: 2; min-width: 0; }
.helluva-identity { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.helluva-identity > p { color: var(--hb-cyan); font: 13px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; }
.helluva-fanpage { position: relative; font-size: 12px; }
.helluva-fanpage summary { list-style: none; color: #bbabc7; border: 1px solid #bbabc744; padding: 3px 9px; cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }
.helluva-fanpage summary::-webkit-details-marker { display: none; }
.helluva-fanpage > p { position: absolute; z-index: 5; top: calc(100% + 9px); right: 0; width: min(270px, 70vw); padding: 18px; border: 1px solid #b59ae15e; background: #21172e; color: #eee5f5; font-size: 14px; line-height: 1.5; box-shadow: 0 15px 35px #0008; }
.helluva-title {
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(78px, 8.7vw, 136px); font-weight: 900; line-height: .88; text-transform: uppercase;
  letter-spacing: -.035em; transform: rotate(-3deg); transform-origin: left center;
  color: var(--hb-violet); text-shadow: 5px 5px 0 #44305c; margin: 8px 0 38px;
}
.helluva-title > span { display: block; color: #fff2ec; }
.helluva-title em { display: inline-block; font: 700 .27em/1 var(--font-body); letter-spacing: -.04em; vertical-align: middle; color: var(--hb-ink); background: var(--hb-lime); padding: .28em .22em .14em; transform: rotate(8deg); text-shadow: none; margin-left: .1em; }
.helluva-overline { font: 12px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .13em; color: var(--hb-lime); margin-bottom: 16px; }
.helluva-body { max-width: 42ch; font-size: 17px; line-height: 1.65; color: #cbbdd7; }
.helluva-action, .helluva-return {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  border: 1px solid transparent; min-height: 52px; padding: 14px 21px;
  font-size: 15px; font-weight: 600; color: #15131c; background: var(--hb-lime); cursor: pointer;
  box-shadow: 4px 4px 0 #7b91453d; transition: transform .2s, box-shadow .2s;
}
.helluva-action { margin-top: 26px; }
.helluva-action span, .helluva-return span { font-size: 23px; line-height: 1; }
.helluva-action:hover, .helluva-return:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #7b914560; }
.helluva-action:focus-visible, .helluva-return:focus-visible { outline-color: var(--hb-cyan); }
.helluva-art { position: relative; min-width: 0; margin-left: -30px; align-self: center; }
.helluva-art__frame {
  position: relative; background: #161120; aspect-ratio: .98; border: 1px solid #af8bd852;
  clip-path: polygon(6% 0, 100% 4%, 95% 97%, 0 100%);
}
.helluva-art__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 77% center; }
.helluva-art__frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #1e133366, transparent 25%); }
.helluva-art__stamp {
  position: absolute; top: -23px; right: -8px; z-index: 2; padding: 14px 22px;
  background: var(--hb-pink); color: #20101d; font-size: 14px; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .08em; transform: rotate(8deg); box-shadow: 6px 6px 0 #170e24;
}
.helluva-art__stamp b { font: 800 26px/1.15 var(--font-body); letter-spacing: -.02em; }
.helluva-art figcaption { max-width: 58ch; margin: 20px 4% 0; color: #9f90b2; font-size: 12px; line-height: 1.6; }
.helluva-art figcaption a { color: #c6b1e8; }
.helluva-stage__serial { position: absolute; right: 0; bottom: 26px; font: 12px var(--font-mono); letter-spacing: .2em; color: #766087; }
.helluva-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 5%; background: #baa0ed; color: #211432; border-block: 1px solid #e0b4ff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.helluva-strip > span:last-child { font-size: 23px; }
.helluva-crossing { display: flex; align-items: center; justify-content: space-between; gap: 36px; width: min(1220px, 90%); margin: 0 auto; padding: 76px 0; }
.helluva-crossing .helluva-overline { color: #e8bf78; margin-bottom: 10px; }
.helluva-crossing h2 { font: 500 clamp(28px, 3vw, 40px)/1.2 var(--font-body); margin-bottom: 12px; }
.helluva-crossing p:last-child { color: #b7a9c9; font-size: 16px; }
.helluva-return { background: transparent; color: #e8bf78; border-color: #e8bf7860; box-shadow: none; white-space: nowrap; }
.helluva-footer { display: grid; grid-template-columns: .6fr 1.4fr; gap: 50px; border-top: 1px solid #ad8ec328; padding: 40px 5%; background: #0b0811; color: #9f90b2; font-size: 13px; line-height: 1.6; }
.helluva-footer strong { color: #d3c1e5; font-size: 16px; }
.helluva-footer > div > p { margin-top: 9px; }

/* Rival shadow hands: a brief struggle over the outgoing world. */
html.world-tearing { overflow: hidden; }
.world-tear { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.world-tear[hidden] { display: none; }
.tear-sheet { position: fixed; top: 0; left: 0; overflow: hidden; pointer-events: none; contain: paint; transform-origin: 50% 50%; }
.tear-sheet--left { transform: var(--paper-left); filter: brightness(var(--paper-light-left)); }
.tear-sheet--right { transform: var(--paper-right); filter: brightness(var(--paper-light-right)); }
.paper-wrinkle-defs { position: absolute; width: 0; height: 0; pointer-events: none; }
html.has-paper-wrinkles.has-world-vt::view-transition-old(tear-left) { filter: url("#paper-wrinkle-left"); }
html.has-paper-wrinkles.has-world-vt::view-transition-old(tear-right) { filter: url("#paper-wrinkle-right"); }
html.has-paper-wrinkles:not(.has-world-vt) .tear-sheet--left { filter: url("#paper-wrinkle-left") brightness(var(--paper-light-left)); }
html.has-paper-wrinkles:not(.has-world-vt) .tear-sheet--right { filter: url("#paper-wrinkle-right") brightness(var(--paper-light-right)); }
.world-tear__fx { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.world-tear__hand { position: fixed; top: 0; left: 0; z-index: 5; height: auto; max-width: none; transform-origin: 10% 75%; transform: var(--paper-hand); opacity: var(--paper-hand-opacity, 0); filter: drop-shadow(-12px 19px 12px #0008); }
.world-tear__hand--left { transform: var(--paper-hand-left); transform-origin: 97% 44.7%; opacity: var(--paper-hand-left-opacity); }
.world-tear__hands { position: fixed; inset: 0; z-index: 5; pointer-events: none; display: none; }
html.has-hand-mesh .world-tear__hands { display: block; }
html.has-hand-mesh .world-tear__hand { display: none; }
html.has-world-vt::view-transition { pointer-events: none; }
html.has-world-vt::view-transition-group(root) { z-index: 1; animation: none; }
html.has-world-vt::view-transition-old(root) { display: none; }
html.has-world-vt::view-transition-new(root) { z-index: 1; animation: none; mix-blend-mode: normal; transform: var(--paper-arrive); filter: brightness(var(--paper-arrive-light)); }
html.has-world-vt::view-transition-group(tear-left),
html.has-world-vt::view-transition-group(tear-right) { z-index: 3; transform-origin: 50% 50%; animation: paper-capture-hold 5s linear; }
html.has-world-vt::view-transition-group(tear-left) { transform: var(--paper-left); filter: brightness(var(--paper-light-left)); }
html.has-world-vt::view-transition-group(tear-right) { transform: var(--paper-right); filter: brightness(var(--paper-light-right)); }
html.has-world-vt::view-transition-old(tear-left),
html.has-world-vt::view-transition-old(tear-right) { animation: none; mix-blend-mode: normal; }
html.has-world-vt::view-transition-group(tear-fx) { z-index: 4; animation: paper-capture-hold 5s linear; }
html.has-world-vt::view-transition-group(tear-hand),
html.has-world-vt::view-transition-group(tear-hand-left) { z-index: 5; animation: paper-capture-hold 5s linear; transform: var(--paper-hand); transform-origin: 10% 75%; opacity: var(--paper-hand-opacity); }
html.has-world-vt::view-transition-group(tear-hand-left) { transform: var(--paper-hand-left); transform-origin: 97% 44.7%; opacity: var(--paper-hand-left-opacity); }
html.has-world-vt::view-transition-group(tear-hands) { z-index: 5; animation: paper-capture-hold 5s linear; }
html.has-world-vt::view-transition-old(tear-fx),
html.has-world-vt::view-transition-old(tear-hand-left),
html.has-world-vt::view-transition-old(tear-hands),
html.has-world-vt::view-transition-old(tear-hand) { display: none; }
html.has-world-vt::view-transition-new(tear-fx),
html.has-world-vt::view-transition-new(tear-hand-left),
html.has-world-vt::view-transition-new(tear-hands),
html.has-world-vt::view-transition-new(tear-hand) { animation: none; mix-blend-mode: normal; }
@keyframes paper-capture-hold { from { opacity: 1; } to { opacity: 1; } }
@media (max-width: 1100px) { .world-bar__label span { display: none; } .helluva-stage { grid-template-columns: 1fr 1fr; gap: 24px; } .helluva-art { margin-left: 0; } }
@media (max-width: 900px) {
  #world-hazbin .hero { padding-top: 164px; }
  .world-bar { padding-inline: 0; }
  .world-bar__label { display: none; }
  .world-bar__choices { width: 100%; }
  .world-choice { flex: 1; justify-content: center; gap: 8px; padding-inline: 10px; font-size: 13px; }
  .world-choice > b { display: none; }
  .helluva-main { padding-top: 96px; }
  .helluva-stage { grid-template-columns: 1fr; gap: 46px; width: min(680px, 88%); padding-top: 41px; }
  .helluva-stage__copy { max-width: 560px; }
  .helluva-title { font-size: clamp(82px, 16vw, 126px); margin-bottom: 35px; }
  .helluva-art { width: 100%; max-width: 590px; margin: 0; justify-self: center; }
  .helluva-art__frame { aspect-ratio: 1.18; }
  .helluva-art__stamp { right: 0; }
  .helluva-crossing { flex-direction: column; align-items: flex-start; padding-block: 55px; gap: 25px; }
  .helluva-footer { grid-template-columns: 1fr; gap: 16px; }
  .helluva-strip { font-size: 12px; letter-spacing: .03em; }
  /* A single visible community: the "Ducks" label returns and the tab keeps its own width. */
  html[data-hidden-world]:not([data-world-review]) .world-bar { padding-inline: 16px; }
  html[data-hidden-world]:not([data-world-review]) .world-bar__label { display: block; }
  html[data-hidden-world]:not([data-world-review]) .world-bar__choices { width: auto; }
}
@media (max-width: 380px) {
  .world-choice { font-size: 12px; gap: 6px; padding-inline: 7px; }
  .world-choice > span { font-size: 10px; }
  .helluva-title { font-size: 76px; }
  .helluva-identity { gap: 12px; }
  .helluva-identity > p { font-size: 11px; letter-spacing: .05em; }
  .helluva-action { padding-inline: 14px; gap: 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-tear { display: none !important; }
  .helluva-action, .helluva-return { transition: none; }
  .helluva-action:hover, .helluva-return:hover { transform: none; }
}
html.motion-off .helluva-action:hover, html.motion-off .helluva-return:hover { transform: none; }
