:root {
  color-scheme: dark;
  --bg: #070910;
  --panel: #0d111b;
  --text: #f4f5f7;
  --muted: #8c95a7;
  --line: rgba(255,255,255,.1);
  --lime: #c8ff57;
  --orange: #aa5223;
  --cyan: #56e7ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(30,18,55,.25), transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(18,10,40,.12), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(10,6,22,.08), transparent 40%),
    linear-gradient(180deg, #03040A 0%, #080714 30%, #0a0818 60%, #04050A 100%);
  font-family: Manrope, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.noise {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.ambient { position: fixed; z-index: -2; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .11; }
.ambient-one { top: 15%; left: -260px; background: #3b2870; }
.ambient-two { top: 35%; right: -300px; background: #2a1850; }

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a6afbb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.header-status .status-light {
  position: relative;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #76ff65;
  border: 1px solid rgba(220,255,214,.85);
  box-shadow: 0 0 7px #76ff65, 0 0 18px rgba(118,255,101,.7);
}
.header-status .status-light::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(118,255,101,.38);
  border-radius: inherit;
  animation: server-status-pulse 2.4s ease-out infinite;
}
.header-status.is-checking .status-light {
  background: #e4c35a;
  box-shadow: 0 0 7px #e4c35a, 0 0 18px rgba(228,195,90,.55);
}
.header-status.is-offline .status-light {
  background: #ff704f;
  box-shadow: 0 0 7px #ff704f, 0 0 18px rgba(255,112,79,.55);
}
.header-status.is-offline .status-light::after { border-color: rgba(255,112,79,.38); }
@keyframes server-status-pulse {
  0% { opacity: .8; transform: scale(.55); }
  70%,100% { opacity: 0; transform: scale(1.35); }
}

main { width: min(1320px, calc(100% - 64px)); margin: auto; }
.eyebrow { margin: 0 0 18px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: 4px; }
.orange { margin: 0 0 18px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: 4px; }
.portal-section { padding: 58px 0 46px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.section-heading h1,.section-heading h2 { margin: 0; font: 600 clamp(25px,3vw,37px) Space Grotesk; letter-spacing: -1.3px; }
#currentHeading, #archiveHeading {
  font-family: "Minecrafter";
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}
.section-heading .eyebrow,.section-heading .orange { margin-bottom: 8px; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.archive-section { padding-top: 18px; border-top: 1px solid var(--line); }
.worlds-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.worlds-service {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(139,92,246,.12);
  border-radius: 20px;
  color: #a6afbb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s ease;
}
.worlds-service i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.worlds-service:hover {
  color: #fff;
  border-color: rgba(139,92,246,.25);
  background: rgba(139,92,246,.06);
}
.carousel-shell { position: relative; margin-inline: -58px; padding-inline: 58px; }
.portal-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.portal-grid::-webkit-scrollbar { display: none; }
.portal-grid .portal-card { flex: 0 0 calc((100% - 24px) / 3); scroll-snap-align: start; }
.carousel-arrow {
  position: absolute;
  z-index: 15;
  top: 50%;
  width: 45px;
  height: 74px;
  padding: 0;
  cursor: pointer;
  color: #e4e8ee;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg,rgba(17,22,29,.96),rgba(7,10,14,.96));
  box-shadow: 0 12px 30px rgba(0,0,0,.38), inset 0 0 18px rgba(255,255,255,.025);
  transform: translateY(-50%);
  font: 800 14px/1 monospace;
  transition: color .2s ease,border-color .2s ease,transform .2s ease,opacity .2s ease;
}
.carousel-arrow-left { left: 2px; }
.carousel-arrow-right { right: 2px; }
.carousel-arrow:hover:not(:disabled) { color: var(--lime); border-color: rgba(200,255,87,.48); transform: translateY(-50%) scale(1.04); }
.carousel-arrow:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.carousel-arrow:disabled { opacity: .14; cursor: default; }
.portal-card {
  --accent: #57e9ff;
  --accent-rgb: 87,233,255;
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 2px solid #050607;
  outline: 1px solid rgba(255,255,255,.11);
  background: #11151a;
  cursor: pointer;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 470px;
}
.portal-card:not(.locked):hover { transform: translateY(-8px); border-color: rgba(var(--accent-rgb),.5); }
.portal-art { position: absolute; inset: 0; overflow: hidden; background-position: center; background-size: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.portal-art::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(6,8,13,.28) 53%, #080b11 88%),
    radial-gradient(ellipse at 50% 33%, rgba(var(--accent-rgb),.38), transparent 33%),
    linear-gradient(180deg, rgba(5,7,9,.02) 0%, rgba(5,7,9,.1) 38%, rgba(5,7,9,.91) 87%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 8px);
  z-index: 2;
}
.portal-art::after {
  content: ""; position: absolute; width: 230px; height: 390px; left: 50%; top: 42%; transform: translate(-50%,-50%);
  border: 9px solid rgba(var(--accent-rgb),.3);
  border-radius: 3px;
  box-shadow:
    inset 0 0 30px rgba(var(--accent-rgb),.45),
    0 0 28px rgba(var(--accent-rgb),.35),
    0 0 90px rgba(var(--accent-rgb),.18);
  animation: portalBreathe 5.8s ease-in-out infinite;
  opacity: .42;
}

.header-status-group {
  display: flex;
  gap: 40px; /* spacing between items */
  align-items: center;
}

.portal-card:hover .portal-art { transform: scale(1.035); filter: saturate(1.08) contrast(1.04); }
.portal-runes { position: absolute; z-index: 1; inset: 12% 12% 34%; border: 2px solid rgba(var(--accent-rgb),.12); transform: perspective(500px) rotateX(63deg); box-shadow: inset 0 0 50px rgba(var(--accent-rgb),.12); }
.portal-runes::before,.portal-runes::after { content: ""; position: absolute; inset: 14%; border: 1px solid rgba(var(--accent-rgb),.22); transform: rotate(45deg); }
.portal-runes::after { inset: 30%; transform: rotate(0); background: rgba(var(--accent-rgb),.08); }
.portal-particles { position: absolute; z-index: 2; inset: 8% 12% 34%; background-image: radial-gradient(circle, var(--accent) 0 1px, transparent 2px); background-size: 37px 41px; opacity: .45; mask-image: radial-gradient(ellipse, #000, transparent 70%); animation: particleDrift 9s linear infinite; }
.portal-seal {
  position: absolute;
  z-index: 4;
  top: 44%;
  left: 50%;
  width: clamp(118px, 12vw, 168px);
  aspect-ratio: 1;
  padding: 7px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.62);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.82), rgba(6,13,20,.9) 72%);
  box-shadow: 0 0 0 7px rgba(var(--accent-rgb),.12), 0 0 38px rgba(var(--accent-rgb),.55);
  transform: translate(-50%,-50%);
  transition: transform .35s ease, box-shadow .35s ease;
}
.portal-seal::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(255,255,255,.32); border-radius: inherit; pointer-events: none; }
.portal-seal img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.portal-sigil { width: 100%; height: 100%; display: grid; place-items: center; color: #f5f7f9; border-radius: inherit; background: radial-gradient(circle, rgba(255,255,255,.13), transparent 62%); font: 700 clamp(27px,4vw,47px) Space Grotesk; letter-spacing: -3px; text-shadow: 0 2px 0 rgba(0,0,0,.5),0 0 19px rgba(var(--accent-rgb),.85); }
.portal-card:hover .portal-seal { transform: translate(-50%,-50%) scale(1.055); box-shadow: 0 0 0 9px rgba(var(--accent-rgb),.13), 0 0 54px rgba(var(--accent-rgb),.72); }
.portal-content { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 25px; }
.portal-number { position: absolute; top: 25px; left: 27px; z-index: 3; color: rgba(255,255,255,.45); font: 600 10px Space Grotesk; letter-spacing: 2px; }
.portal-state { position: absolute; top: 24px; right: 24px; z-index: 3; padding: 7px 10px; color: var(--accent); border: 1px solid rgba(var(--accent-rgb),.28); background: rgba(7,10,15,.6); font-size: 8px; font-weight: 800; letter-spacing: 1.8px; }
.portal-content h3 { margin: 0; max-width: 370px; font: 600 clamp(23px,2.6vw,34px)/1.04 Space Grotesk; letter-spacing: -1px; }
.portal-content p { min-height: 42px; margin: 13px 0 20px; color: #9099a9; font-size: 11px; line-height: 1.65; }
.portal-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.1); color: #747d8d; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.portal-footer b { color: var(--accent); font-size: 18px; font-weight: 400; transition: transform .25s ease; }
.portal-card:hover .portal-footer b { transform: translateX(5px); }
.portal-card.locked { cursor: default; filter: grayscale(1); }
.portal-card.locked::after { content: ""; position: absolute; z-index: 8; inset: 0; background: rgba(7,9,13,.48); backdrop-filter: blur(1px); }
.portal-card.locked .portal-state { z-index: 9; color: #777f8b; border-color: rgba(255,255,255,.12); }
.portal-card.locked .portal-content,.portal-card.locked .portal-number { z-index: 9; opacity: .48; }
.portal-card.status-online .portal-state {
  color: #a9ff71;
  border-color: rgba(137,255,91,.5);
  background: rgba(19,49,20,.78);
  box-shadow: inset 0 0 13px rgba(126,255,85,.06), 0 0 16px rgba(126,255,85,.08);
}
.portal-card.status-online .portal-state::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #9cff65; box-shadow: 0 0 8px #9cff65; vertical-align: 1px; }
.portal-card.status-offline .portal-state {
  color: #ffbd68;
  border-color: rgba(255,154,47,.56);
  background: rgba(68,32,9,.82);
  box-shadow: inset 0 0 13px rgba(255,143,40,.07), 0 0 16px rgba(255,143,40,.08);
}
.portal-card.status-offline .portal-state::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 1px; background: #ff9a3d; box-shadow: 0 0 8px rgba(255,154,61,.8); vertical-align: 1px; }
.portal-card.status-soon .portal-state {
  color: #c7b8ff;
  border-color: rgba(168,140,255,.38);
  background: rgba(35,25,62,.74);
}
.portal-card.status-offline .portal-art { filter: saturate(.72) brightness(.78); }
.book-seal.sigil-only::before { content: attr(data-sigil); position: absolute; inset: 7px; display: grid; place-items: center; color: #fff; border-radius: 50%; font: 700 44px Space Grotesk; text-shadow: 0 0 18px rgba(var(--accent-rgb),.9); }

.install-note { margin: 0 0 70px; padding: 14px 16px; color: #858e9b; border: 1px solid var(--line); background: #0c0f13; font-size: 10px; }
.install-note span { margin-right: 10px; color: var(--lime); font-weight: 800; letter-spacing: 1px; }
.install-note code { color: #dce1e8; }
footer { width: min(1500px, calc(100% - 64px)); margin: auto; padding: 0 0 35px; display: flex; justify-content: space-between; color: #4e5664; font-size: 8px; letter-spacing: 1.6px; }

.download-dialog {
  width: min(1120px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 34px 46px 25px;
  overflow: hidden;
  color: #352719;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.download-dialog::backdrop { background: radial-gradient(circle at 50% 42%, rgba(43,31,62,.38), rgba(3,5,9,.92) 62%); backdrop-filter: blur(14px); }
.dialog-close { position: absolute; z-index: 20; top: 1px; right: 7px; width: 38px; height: 38px; cursor: pointer; color: #efe3c1; border: 1px solid rgba(239,227,193,.25); border-radius: 50%; background: rgba(14,10,18,.78); font-size: 23px; box-shadow: 0 0 20px rgba(0,0,0,.45); }
.arcane-book {
  --accent-rgb: 86,231,255;
  position: relative;
  width: 100%;
  height: min(650px, calc(100vh - 130px));
  min-height: 510px;
  perspective: 2200px;
  transform: translateY(20px) scale(.94);
  opacity: 0;
  transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.arcane-book.open { opacity: 1; transform: none; }
.book-shadow { position: absolute; z-index: 0; left: 7%; right: 7%; bottom: -12px; height: 70px; border-radius: 50%; background: rgba(0,0,0,.72); filter: blur(25px); }
.book-cover { position: absolute; top: 2%; bottom: 2%; width: 50%; border: 3px solid #1b1011; background:
  radial-gradient(circle at 50% 42%, rgba(var(--accent-rgb),.14), transparent 28%),
  linear-gradient(135deg, #4b2029, #28121a 52%, #140b10);
  box-shadow: inset 0 0 0 8px #6f3b28, inset 0 0 0 11px #24120e, inset 0 0 38px #0a0508, 0 14px 35px rgba(0,0,0,.5);
}
.book-cover-back { left: 0; border-radius: 14px 3px 3px 14px; transform: rotateY(1deg); }
.book-cover-front {
  z-index: 12;
  right: 0;
  border-radius: 3px 14px 14px 3px;
  transform-origin: left center;
  transform: rotateY(0);
  transition: transform 1s cubic-bezier(.22,.7,.18,1), opacity .4s .55s;
  backface-visibility: hidden;
}
.arcane-book.open .book-cover-front { transform: rotateY(-178deg); opacity: .08; pointer-events: none; }
.cover-frame { position: absolute; inset: 38px; display: grid; place-items: center; align-content: center; gap: 13px; color: #e8cf8c; border: 2px solid #a76a3d; outline: 1px solid rgba(238,198,113,.25); outline-offset: 8px; text-align: center; }
.cover-frame::before,.cover-frame::after { content: "◆"; position: absolute; color: rgba(var(--accent-rgb),.75); text-shadow: 0 0 12px rgba(var(--accent-rgb),.8); }
.cover-frame::before { top: 16px; left: 18px; }.cover-frame::after { right: 18px; bottom: 16px; }
.cover-rune { font-size: 46px; color: rgb(var(--accent-rgb)); filter: drop-shadow(0 0 15px rgba(var(--accent-rgb),.8)); }
.cover-frame span,.cover-frame small { font-size: 9px; letter-spacing: 4px; }
.cover-frame strong { font: 600 37px/1.05 Space Grotesk; letter-spacing: 2px; }
.book-pages {
  position: absolute;
  z-index: 4;
  inset: 4% 2.5%;
  overflow: hidden;
  border-radius: 10px;
  background: #d8c69a;
  box-shadow: 0 0 0 4px #9c7543, 0 0 0 7px #352014, inset 0 0 45px rgba(78,45,20,.4);
}
.book-pages::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: repeating-linear-gradient(0deg, rgba(87,56,28,.08) 0 1px, transparent 1px 5px); mix-blend-mode: multiply; }
.book-spine { position: absolute; z-index: 8; top: 0; bottom: 0; left: 50%; width: 34px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(71,40,18,.3), rgba(255,247,210,.32), rgba(71,40,18,.3), transparent); pointer-events: none; }
.book-spread { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; visibility: hidden; opacity: 0; transform: rotateY(6deg) scale(.985); transition: opacity .34s ease, transform .5s ease, visibility 0s .5s; }
.book-spread.active { visibility: visible; opacity: 1; transform: none; transition-delay: .18s; }
.arcane-book.turning .book-spread.active { animation: pageReveal .52s ease; }
.book-page { position: relative; min-width: 0; padding: clamp(28px,4vw,54px); overflow: hidden; background:
  radial-gradient(circle at 25% 20%, rgba(255,251,221,.68), transparent 38%),
  linear-gradient(100deg, #c9b27e, #e5d6ad 12%, #e9dcb7 88%, #c8ad75);
}
.book-page-left { padding-right: clamp(36px,5vw,66px); border-right: 1px solid rgba(92,57,28,.25); }
.book-page-right { padding-left: clamp(36px,5vw,66px); background:
  radial-gradient(circle at 75% 20%, rgba(255,251,221,.68), transparent 38%),
  linear-gradient(80deg, #c8ad75, #e9dcb7 12%, #e5d6ad 88%, #c9b27e); }
.book-page::after { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(100,61,27,.17); pointer-events: none; }
.book-kicker,.book-chapter { margin: 0 0 20px; color: #755125; font-size: 9px; font-weight: 800; letter-spacing: 3px; }
.book-page h2 { margin: 19px 0 14px; color: #2f2015; font: 600 clamp(27px,3vw,42px)/1 Space Grotesk; letter-spacing: -1.5px; text-align: center; }
.book-page h3 { margin: 0; color: #352416; font: 600 clamp(25px,2.6vw,36px)/1.05 Space Grotesk; letter-spacing: -1px; }
.book-description { color: #68513b; font: 500 12px/1.75 Manrope; }
.book-description code { color: #442819; font-weight: 800; }
.book-seal { --accent-rgb: 86,231,255; position: relative; width: clamp(112px,13vw,158px); aspect-ratio: 1; margin: 12px auto; padding: 7px; border: 3px double #8e6334; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb),.8), #1c2630 72%); box-shadow: 0 0 0 6px rgba(102,70,32,.18), 0 0 30px rgba(var(--accent-rgb),.32); }
.book-seal img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.ornament { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: #936629; }
.ornament i { height: 1px; background: linear-gradient(90deg, transparent, #936629); }.ornament i:last-child { transform: scaleX(-1); }
.rune-divider { margin: 24px 0; color: #936629; text-align: center; font-size: 20px; }
.book-facts { margin: 0; }
.book-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(91,57,28,.18); }
.book-facts dt { color: #806443; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.book-facts dd { margin: 0; color: #382619; font-size: 11px; font-weight: 800; text-align: right; }
.page-note,.book-footnote { position: absolute; left: clamp(30px,4vw,54px); right: clamp(30px,4vw,54px); bottom: 32px; margin: 0; color: #8a6e4d; font: italic 10px/1.5 Georgia,serif; text-align: center; }
.ritual-list { margin: 27px 0 0; padding: 0; list-style: none; }
.ritual-list li { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid rgba(91,57,28,.18); }
.ritual-list b { color: #90662f; font: 600 13px Space Grotesk; }
.ritual-list span { color: #58412d; font-size: 11px; line-height: 1.55; }
.arcane-glyph { margin-top: 30px; color: rgb(var(--accent-rgb)); font-size: 70px; line-height: 1; text-align: center; text-shadow: 0 0 18px rgba(var(--accent-rgb),.55); }
.book-download { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; padding: 17px 18px; color: #f2dfaa; border: 2px solid #5b321d; outline: 1px solid #aa7840; outline-offset: -6px; background: linear-gradient(135deg,#52241f,#2e1518); text-decoration: none; box-shadow: 0 10px 23px rgba(70,38,19,.24), inset 0 0 20px rgba(var(--accent-rgb),.09); transition: transform .2s ease, box-shadow .2s ease; }
.book-download:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(70,38,19,.32), 0 0 18px rgba(var(--accent-rgb),.18); }
.book-download small,.book-download strong { display: block; }.book-download small { color: #bd9a64; font-size: 8px; letter-spacing: 1.5px; }.book-download strong { margin-top: 4px; font-size: 10px; }.book-download > b { font-size: 24px; }
.book-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 13px; color: #a89473; }
.book-controls button { min-width: 110px; padding: 9px 13px; cursor: pointer; color: #e6d5b5; border: 1px solid rgba(230,213,181,.18); background: rgba(14,10,18,.72); font: 700 9px Manrope; letter-spacing: 1px; text-transform: uppercase; }
.book-controls button:disabled { opacity: .3; cursor: default; }.book-controls span { min-width: 80px; font-size: 9px; text-align: center; letter-spacing: 1px; }

@keyframes portalBreathe { 50% { box-shadow: inset 0 0 44px rgba(var(--accent-rgb),.6), 0 0 42px rgba(var(--accent-rgb),.48), 0 0 110px rgba(var(--accent-rgb),.24); transform: translate(-50%,-50%) scale(1.025); } }
@keyframes particleDrift { to { background-position: 37px -82px; } }
@keyframes pageReveal { 0% { opacity: .1; transform: perspective(900px) rotateY(-14deg) scale(.98); } 100% { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .portal-grid .portal-card { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 700px) {
  main,footer { width: min(100% - 28px,1500px); }
  .header-status-group { display: none; }
  .worlds-actions { gap: 6px; }
  .worlds-service { padding: 6px 10px; font-size: 8px; gap: 5px; }
  .worlds-service i { width: 5px; height: 5px; }
  .portal-section { padding-top: 42px; }
  .section-heading { align-items: start; flex-direction: column; }
  .carousel-shell { margin-inline: -7px; padding-inline: 7px; }
  .carousel-arrow { top: auto; bottom: 18px; width: 39px; height: 54px; background: rgba(8,11,15,.91); }
  .carousel-arrow-left { left: 14px; }
  .carousel-arrow-right { right: 14px; }
  .portal-grid .portal-card { flex-basis: 88%; min-height: 500px; }
  footer { flex-direction: column; gap: 8px; }
  .download-dialog { padding: 45px 5px 18px; overflow-y: auto; }
  .arcane-book { height: auto; min-height: 790px; }
  .book-pages { position: relative; inset: auto; min-height: 760px; }
  .book-spread { grid-template-columns: 1fr; overflow-y: auto; }
  .book-page { min-height: 370px; padding: 34px 30px; }
  .book-page-left,.book-page-right { padding: 34px 30px; border: 0; }
  .book-spine,.book-cover { display: none; }
  .page-note,.book-footnote { position: static; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
