@layer reset, base, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, ul, dl, dd { margin: 0; }
  button, input { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { --bg: #15111e; --surface: #211a2c; --surface-raised: #292134; --border: #3b3047; --text: #f5f0ec; --muted: #bab0c6; --purple: #c4a5ed; --purple-deep: #8c64bb; --gold: #f0ce88; --green: #a7d3aa; --radius: 14px; --shell: 1540px; }
  html { scroll-behavior: smooth; scroll-padding-top: 112px; }
  body { background: var(--bg); color: var(--text); font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.6; background-image: radial-gradient(ellipse at 20% 0%, #37213c55, transparent 55%); }
  button { color: var(--text); }
  a, button, summary, input { outline-offset: 5px; }
  :focus-visible { outline: 3px solid var(--gold); }
  ::selection { background: #926db5; color: white; }
  h1, h2, h3 { line-height: 1.1; font-weight: 760; letter-spacing: -.045em; text-wrap: balance; }
  h1 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); }
  h2 { font-size: clamp(1.65rem, 2.4vw, 2.4rem); }
  h3 { font-size: 1.65rem; }
  p { color: var(--muted); }
  .shell { width: min(var(--shell), calc(100% - 96px)); margin-inline: auto; }
  .eyebrow { font-size: .7rem; font-weight: 750; letter-spacing: .17em; line-height: 1.5; color: var(--purple); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 20px; background: var(--gold); color: #201726; transform: translateY(-180%); border-radius: 8px; font-weight: 700; }
  .skip-link:focus { transform: none; }
  .initial-loading, .noscript-note { padding-block: 90px; }
  .noscript-note a { text-decoration: underline; }
  main { min-height: 60vh; padding-bottom: 80px; outline: none; }
  main > :first-child { margin-top: 0; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 21px; border: 1px solid transparent; border-radius: 7px; font-size: .84rem; font-weight: 750; line-height: 1.4; white-space: normal; text-align: center; transition: background .18s, border-color .18s, transform .18s; }
  .button:hover { transform: translateY(-2px); }
  .button.primary { background: var(--gold); color: #28202e; box-shadow: 0 3px 0 #a78a57; }
  .button.primary:hover { background: #ffe1a4; }
  .button.secondary { border-color: #5a4869; background: #2e223e; }
  .button.secondary:hover { background: #41304f; border-color: var(--purple); }
  .button.glass { background: #27213299; border-color: #b49cc85c; }
  .button.glass:hover { background: #44324bbd; }
  .button:disabled { opacity: .65; cursor: wait; transform: none; }
  .text-link { font-size: .84rem; font-weight: 700; color: var(--purple); }
  .text-link:hover { color: var(--gold); }
  .icon-button { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid #76698180; border-radius: 6px; width: 42px; min-height: 42px; font-size: 1.1rem; flex-shrink: 0; }
  .icon-button:hover { background: #9983ac25; border-color: var(--purple); }
  .mini-label { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 4px; font-weight: 750; font-size: .65rem; line-height: 1.4; letter-spacing: .08em; background: #483d51; color: #d5c6df; }
  .gold-label { background: #e2be73; color: #302733; }
  .active-label { background: #2d4637; color: #bfe0c5; }
  .world-art { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
}
@layer components {
  /* Inline SVG icon chrome: sizing/shape moved here from per-element style attrs
     (CSP style-src 'self' blocks inline style attributes). Icons keep explicit
     1em dimensions from their width/height attrs and inherit currentColor. */
  .ui-icon { display: inline-block; flex-shrink: 0; }
  .site-header { border-bottom: 1px solid #3b30478a; background: #17121ff2; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
  .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 102px; gap: 32px; }
  .brand { display: flex; gap: 12px; align-items: center; font-size: .77rem; font-weight: 850; letter-spacing: .09em; line-height: 1.3; flex-shrink: 0; }
  .brand img { filter: drop-shadow(0 4px 12px #a584d52b); }
  .brand-second { display: block; font-size: 1.22rem; letter-spacing: .035em; }
  .brand-dot { color: var(--gold); }
  #site-nav { display: flex; align-items: center; gap: 31px; font-size: .83rem; font-weight: 650; color: #cac0d5; }
  #site-nav > a, #minecraft-toggle { min-height: 44px; display: inline-flex; align-items: center; }
  #site-nav a:hover, #site-nav a[aria-current="page"], #minecraft-toggle:hover, #minecraft-toggle[aria-expanded="true"] { color: var(--text); }
  #site-nav a[aria-current="page"] { position: relative; }
  #site-nav > a[aria-current="page"]::after { content: ''; height: 3px; width: 16px; border-radius: 2px; background: var(--gold); position: absolute; bottom: 1px; left: 0; }
  #minecraft-toggle { color: inherit; background: none; border: 0; padding: 0; gap: 9px; font-weight: inherit; }
  .nav-dropdown { position: relative; padding-block: 15px; }
  .dropdown-panel { position: absolute; top: calc(100% - 8px); left: -22px; width: 330px; background: #251c31; border: 1px solid #53415f; box-shadow: 0 18px 55px #0008; border-radius: 10px; padding: 18px; }
  .dropdown-heading { font-size: .6rem; letter-spacing: .15em; color: var(--purple); display: block; margin-bottom: 9px; }
  .dropdown-panel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px; border-radius: 6px; }
  .dropdown-panel a:hover { background: #4c375c60; }
  .dropdown-panel small { display: block; color: var(--muted); font-size: .73rem; font-weight: 400; }
  .dropdown-panel .dropdown-all { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0; color: var(--purple); }
  #site-nav .nav-discord { margin-left: 5px; border: 1px solid #6c557b; border-radius: 6px; padding: 9px 17px; gap: 19px; color: #eadffa; }
  .nav-discord:hover { background: #392745; }
  .menu-toggle { display: none; }
  .welcome { padding-block: 56px 34px; }
  .welcome .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold); margin-bottom: 15px; }
  .gold-dash { display: inline-block; width: 19px; height: 2px; background: var(--gold); }
  .welcome h1 { font-size: clamp(2.45rem, 3.8vw, 3.65rem); margin-bottom: 13px; }
  .welcome h1 span, .page-heading h1 span { color: var(--purple); }
  .welcome > p:last-child { font-size: 1rem; }
  .mobile-break { display: none; }
  .feature-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: stretch; }
  .feature-carousel { display: flex; flex-direction: column; min-width: 0; border: 1px solid #695274; border-radius: var(--radius); overflow: hidden; background: #292033; box-shadow: 0 20px 60px #0002; }
  .feature-slides { position: relative; display: grid; flex: 1; }
  .feature-slide { position: relative; min-height: 469px; isolation: isolate; display: flex; align-items: center; }
  .feature-slide > .world-art { position: absolute; inset: 0; object-position: 75% center; z-index: -2; }
  .feature-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #201729f2 0%, #221929c9 40%, #1b182a26 75%), linear-gradient(0deg, #201a2ac9, transparent 50%); }
  .feature-copy { padding: 44px; max-width: 590px; }
  .feature-label { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: .6rem; letter-spacing: .12em; font-weight: 700; color: #d4c3d6; }
  .feature-copy h2 { font-size: clamp(2.8rem, 4vw, 4rem); letter-spacing: -.04em; line-height: 1.04; margin-bottom: 20px; }
  .feature-copy p { max-width: 370px; font-size: .91rem; line-height: 1.7; color: #d4cadc; }
  .feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
  .feature-meta { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 27px; font-size: .61rem; font-weight: 650; letter-spacing: .1em; color: #baabc4; }
  .feature-meta span + span { border-left: 1px solid #a596b17a; padding-left: 17px; }
  .slide-creative .world-art { filter: hue-rotate(18deg); object-position: 95% center; }
  .slide-help .world-art { filter: hue-rotate(-18deg); }
  .carousel-toolbar { display: flex; gap: 22px; align-items: center; padding: 13px 22px; min-height: 64px; background: #211928; border-top: 1px solid #63516c6b; }
  .carousel-dots { display: flex; align-items: center; gap: 3px; }
  .carousel-dots button { width: 35px; height: 35px; display: grid; place-items: center; border: 0; background: none; padding: 0; }
  .carousel-dots button::after { content: ''; width: 6px; height: 6px; background: #796386; border-radius: 10px; transition: width .2s, background .2s; }
  .carousel-dots button.is-active::after { background: var(--gold); width: 25px; }
  .carousel-position { font-variant-numeric: tabular-nums; font-size: .65rem; color: #b6a5c0; }
  .carousel-controls { margin-left: auto; display: flex; gap: 7px; }
  .carousel-controls .icon-button { width: 36px; min-height: 36px; font-size: .9rem; }
  .discord-card { display: flex; flex-direction: column; border: 1px solid #574063; border-radius: var(--radius); background: radial-gradient(ellipse at right top, #5f3e713f, transparent 60%), #271b32; padding: 29px 27px 0; overflow: hidden; }
  .discord-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 38px; }
  .discord-icon { display: block; width: 40px; height: 30px; min-width: 40px; flex: 0 0 40px; aspect-ratio: 4 / 3; align-self: center; color: var(--purple); }
  .discord-top .eyebrow { font-size: .57rem; }
  .discord-card h2 { font-size: 1.95rem; letter-spacing: -.04em; line-height: 1.16; margin-bottom: 17px; }
  .discord-card > p { font-size: .85rem; line-height: 1.8; }
  #discord-widget-slot iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 7px; margin-block: 20px; }
  .discord-card-bottom { margin-top: auto; margin-inline: -27px; border-top: 1px solid #57406370; padding: 16px 22px; color: #c2add1; font-size: .62rem; display: flex; align-items: center; gap: 8px; background: #1a132123; }
  .community-quicklinks { display: flex; flex-direction: column; justify-content: center; flex: 1; padding-block: 24px; }
  .community-quicklinks a { position: relative; display: block; padding: 13px 25px 13px 0; border-top: 1px solid #71528455; }
  .community-quicklinks span { display: block; font-weight: 650; font-size: .83rem; }
  .community-quicklinks small { display: block; color: var(--muted); font-size: .69rem; margin-top: 3px; }
  .community-quicklinks b { position: absolute; right: 0; top: 14px; color: var(--purple); font-weight: 400; }
  .community-quicklinks a:hover span { color: var(--gold); }
  .feature-resources { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding: 18px 24px; border-top: 1px solid var(--border); font-size: .73rem; color: var(--purple); background: #201729; }
  .feature-resources span { color: var(--gold); font-size: .59rem; margin-right: 8px; }
  .feature-resources a:hover { color: var(--gold); }
  .card-map { border-top: 1px solid var(--border); border-bottom: 0; padding: 0; }
  .card-map > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; padding: 16px 26px; min-height: 54px; font-size: .85rem; }
  .card-map > summary::-webkit-details-marker { display: none; }
  .map-chevron { font-size: 1.15rem; transition: transform .18s; }
  .card-map[open] .map-chevron { transform: rotate(180deg); }
  .card-map-panel { padding: 0 16px 18px; }
  .map-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: .73rem; color: var(--muted); }
  .map-toolbar a { display: inline-flex; align-items: center; min-height: 32px; padding-inline: 4px; color: var(--purple); font-weight: 650; }
  .card-map-panel p { font-size: .7rem; margin-top: 12px; }
  .backup-home { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; margin-top: 24px; border-block: 1px solid var(--border); }
  .backup-home p { font-size: .82rem; margin-top: 4px; }
  .backup-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
  .backup-filters [aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
  .backup-list { display: grid; gap: 14px; }
  .backup-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 24px; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
  .backup-item h3 { font-size: 1.12rem; margin-block: 8px; letter-spacing: -.02em; line-height: 1.4; }
  .backup-item p:not(.eyebrow), .backup-generated { font-size: .75rem; }
  .backup-generated { margin-bottom: 14px; }
  .backup-checksum { grid-column: 1 / -1; padding-block: 10px 0; border-top: 1px solid var(--border); border-bottom: 0; }
  .backup-checksum summary { font-size: .73rem; }
  .backup-checksum code { display: block; font-size: .73rem; overflow-wrap: anywhere; margin-top: 10px; color: var(--muted); }
  .backup-empty { padding: 24px; border: 1px solid var(--border); border-radius: 10px; font-size: .85rem; background: #211a2c; }
  .maintenance-slot .eyebrow { margin-bottom: 12px; }
  .maintenance-slot .maintenance-schedule { font-size: .75rem; margin-top: 12px; }
  .maintenance-slot[data-maintenance-state="failed"] { border-color: #b07879; }
  .maintenance-slot[data-maintenance-state="running"] { border-color: var(--gold); }
  .tiny-cube { font-size: 1.1rem; color: var(--gold); }
  .worlds-section { margin-top: 49px; }
  .world-map-frame { display: block; width: 100%; height: clamp(320px, 48vh, 540px); border: 1px solid var(--border); border-radius: var(--radius); background: #181818; }
  .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 13px; }
  .section-heading .eyebrow { margin-bottom: 10px; }
  .section-heading h2 { font-size: 1.9rem; }
  .section-heading .text-link { flex-shrink: 0; padding-bottom: 3px; }
  .section-intro { font-size: .83rem; margin-bottom: 24px; }
  .server-grid { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .server-card { background: var(--surface); border: 1px solid #48374f; border-radius: 11px; overflow: hidden; min-width: 0; }
  .server-art { height: 165px; position: relative; overflow: hidden; background: #32283b; }
  .server-art .world-art { height: 250%; object-position: center; margin-top: -118px; filter: saturate(.78); }
  .server-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #19151b7d, transparent); }
  .server-art.creative .world-art { object-position: 80% 65%; transform: scale(1.35); filter: hue-rotate(22deg) saturate(.7); }
  .art-tag { position: absolute; z-index: 1; bottom: 16px; left: 25px; color: #ffefdb; font-size: .62rem; letter-spacing: .15em; font-weight: 750; text-transform: uppercase; padding: 4px 8px; background: #19101c8c; border: 1px solid #c1abc84a; border-radius: 4px; }
  .server-card-body { padding: 24px 26px 20px; }
  .server-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 16px; }
  .server-card-top .eyebrow { color: #ad91c8; }
  .status-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .64rem; font-weight: 650; letter-spacing: .025em; color: #c3b4d0; }
  .status-badge.online { color: var(--green); }
  .status-badge.offline { color: #eda8a9; }
  .status-badge.parked { color: #c5b5a3; }
  .status-dot { width: 6px; height: 6px; border-radius: 50%; background: #a994bb; display: inline-block; flex-shrink: 0; }
  .online .status-dot { background: #96d299; box-shadow: 0 0 0 3px #a1d8a212; }
  .offline .status-dot { background: #ea9b9e; }
  .parked .status-dot { background: #b8a383; }
  .server-card h3 { margin-bottom: 11px; }
  .card-description { font-size: .83rem; min-height: 44px; line-height: 1.7; }
  .server-reading { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .66rem; color: #b9a8c5; min-height: 20px; }
  .host-row, .host-placeholder { margin-top: 15px; border: 1px solid #4a3a56; background: #17111f66; min-height: 52px; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 5px 13px; gap: 12px; }
  .host-row code { font-family: ui-monospace, monospace; font-size: .83rem; color: var(--gold); overflow-wrap: anywhere; min-width: 0; }
  .host-row .icon-button { width: 34px; min-height: 34px; border: 0; color: var(--purple); }
  .host-placeholder { color: #b4a3bf; font-size: .73rem; padding: 14px; }
  .card-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 17px; font-size: .73rem; }
  .card-links a { color: var(--purple); font-weight: 650; }
  .card-links a:hover, .card-copy-link:hover { color: var(--gold); }
  .card-copy-link { background: none; color: var(--purple); font-size: inherit; font-weight: 650; border: 0; padding: 0; text-align: left; min-height: 26px; }
  .card-links > span { color: #a995b5; }
  .status-detail { font-size: .63rem; margin-top: 12px; overflow-wrap: anywhere; }
  .status-detail:empty { display: none; }
  .is-parked .server-art { opacity: .55; filter: grayscale(.4); }
  .api-notice { margin-top: 16px; color: #b7a5c4; font-size: .66rem; }
  .start-strip { margin-top: 42px; padding: 26px 30px; display: flex; align-items: center; gap: 24px; border: 1px solid #594163; border-radius: 10px; background: linear-gradient(100deg, #30203d, #221a2c); }
  .strip-icon { display: grid; place-items: center; height: 58px; width: 58px; flex-shrink: 0; background: #694a812e; border: 1px solid #7d598c60; border-radius: 8px; color: var(--gold); font-size: 1.9rem; }
  .start-strip h2 { font-size: 1.45rem; margin-top: 7px; }
  .start-strip p:last-child { font-size: .8rem; margin-top: 9px; }
  .start-strip .button { margin-left: auto; flex-shrink: 0; }
  .page-heading { padding-top: 44px; margin-bottom: 34px; max-width: 840px; }
  .breadcrumb { display: inline-flex; align-items: center; gap: 15px; color: #b6a2c4; font-size: .71rem; margin-bottom: 35px; }
  .breadcrumb span { color: #765d89; }
  .page-heading .eyebrow { margin-bottom: 13px; color: var(--gold); }
  .page-heading h1 { margin-bottom: 20px; }
  .page-heading > p:last-child { font-size: 1rem; max-width: 690px; }
  .pack-hero, .parked-banner { position: relative; min-height: 370px; display: flex; align-items: center; border: 1px solid #674d74; border-radius: var(--radius); overflow: hidden; isolation: isolate; }
  .pack-hero > .world-art, .parked-banner > .world-art { position: absolute; inset: 0; z-index: -2; object-position: 65% center; }
  .pack-hero > div:last-child, .parked-banner > div { padding: 42px 48px; max-width: 610px; }
  .pack-hero h2, .parked-banner h2 { font-size: 3.25rem; margin-block: 20px; }
  .pack-hero p, .parked-banner p { color: #ddd1e5; max-width: 460px; font-size: .9rem; margin-bottom: 25px; }
  .parked-banner { background: #2e2633; }
  .parked-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #211b29f2 10%, #241b31af 65%, #231b2970); z-index: -1; }
  .parked-banner .world-art { filter: grayscale(.7) saturate(.5); }
  .pack-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: #251c2c; }
  .pack-facts > div { padding: 19px 25px; }
  .pack-facts > div + div { border-left: 1px solid var(--border); }
  .pack-facts dt { text-transform: uppercase; color: #b69bc8; font-size: .59rem; letter-spacing: .13em; margin-bottom: 6px; }
  .pack-facts dd { font-weight: 650; font-size: .95rem; overflow-wrap: anywhere; }
  .import-panel { margin-top: 38px; border: 1px solid #684d72; border-radius: 10px; background: radial-gradient(at 80% 0%, #57376845, transparent 60%), #281d32; display: grid; grid-template-columns: 1fr 310px; gap: 25px 50px; padding: 32px; }
  .import-panel h2 { margin-block: 12px 16px; }
  .import-panel p:not(.eyebrow) { font-size: .9rem; max-width: 570px; }
  .import-actions { display: flex; flex-direction: column; gap: 12px; align-self: center; }
  .import-actions > a:last-child { font-size: .73rem; text-align: center; padding: 4px; color: var(--purple); }
  .import-url { grid-column: 1/-1; padding: 18px 20px; background: #160f1f66; border: 1px solid #64487369; border-radius: 5px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
  .import-url span { color: #b49bc5; font-size: .62rem; letter-spacing: .1em; }
  .import-url code { font-size: .8rem; color: var(--gold); overflow-wrap: anywhere; }
  .unavailable { color: var(--muted); font-size: .8rem; }
  .help-teaser { margin-top: 42px; padding: 29px 0; border-block: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 25px; }
  .help-teaser h2 { margin-block: 10px; }
  .help-teaser p:last-child { font-size: .84rem; }
  .help-teaser .button { flex-shrink: 0; }
  .small-note { margin-top: 38px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
  .small-note h2 { font-size: 1.4rem; margin-bottom: 12px; }
  .small-note p { font-size: .88rem; }
  .small-note a, .guide a:not(.text-link), .faq-section a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
  .directory-note { padding: 19px 23px; border: 1px solid #584163; border-radius: 8px; background: #2c2035; display: flex; align-items: center; gap: 17px; }
  .directory-note p { font-size: .83rem; }
  .directory-note .button { margin-left: auto; flex-shrink: 0; }
  .compact { min-height: 40px; padding: 8px 14px; }
  .help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 65px; align-items: start; }
  .guide-step { display: flex; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--border); }
  .guide-step:first-child { padding-top: 7px; }
  .step-number { display: grid; place-items: center; align-self: start; font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--gold); border: 1px solid #735981; border-radius: 7px; width: 43px; min-height: 43px; flex-shrink: 0; background: #31213d; }
  .guide-step h2 { font-size: 1.8rem; margin-block: 7px 17px; }
  .guide-step p { font-size: .93rem; margin-bottom: 15px; line-height: 1.85; }
  .guide strong { font-weight: 650; color: #e3d5ef; }
  .help-sidebar { border: 1px solid #62496e; border-radius: 10px; background: #291e33; padding: 27px; position: sticky; top: 132px; }
  .help-sidebar h2 { font-size: 1.9rem; margin-top: 14px; }
  .help-sidebar ul { padding: 24px 0 27px; list-style: none; }
  .help-sidebar li { font-size: .82rem; color: #cdbbd8; margin-block: 10px; display: flex; gap: 11px; }
  .help-sidebar li::before { content: '◇'; color: var(--gold); }
  .help-sidebar .button { width: 100%; margin-bottom: 15px; }
  .help-sidebar > a { color: var(--purple); font-size: .76rem; }
  .help-sidebar p:last-child { font-size: .79rem; margin-top: 13px; line-height: 1.85; overflow-wrap: anywhere; }
  .help-sidebar p a { color: var(--purple); text-decoration: underline; }
  .sidebar-divider { height: 1px; background: var(--border); margin-block: 27px; }
  .faq-section { margin-top: 47px; max-width: 960px; }
  details { border-bottom: 1px solid var(--border); padding-block: 20px; }
  details summary { font-size: .98rem; font-weight: 650; cursor: pointer; color: #dfccec; min-height: 30px; }
  details summary:hover { color: var(--gold); }
  details p { margin-top: 16px; font-size: .9rem; }
  .not-found-art { height: 330px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .not-found-actions { display: flex; gap: 15px; margin-top: 25px; }
  .site-footer { background: #120e19; border-top: 1px solid var(--border); padding-block: 34px 19px; }
  .footer-inner { display: flex; align-items: center; gap: 30px; padding-bottom: 30px; }
  .footer-name { font-size: .79rem; font-weight: 800; letter-spacing: .075em; }
  .footer-inner > p { font-size: .72rem; }
  .footer-inner > div { margin-left: auto; display: flex; flex-wrap: wrap; gap: 24px; font-size: .71rem; color: #b7a3c7; }
  .footer-inner a:hover { color: var(--gold); }
  .footer-bottom { padding-top: 18px; border-top: 1px solid #36293f; font-size: .6rem; color: #a48db6; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
  .toast { position: fixed; z-index: 60; left: 50%; bottom: 25px; transform: translate(-50%, 25px); background: #30233e; color: #ffe0aa; border: 1px solid #a683ba; border-radius: 8px; padding: 12px 22px; box-shadow: 0 10px 50px #000a; opacity: 0; pointer-events: none; width: max-content; max-width: calc(100% - 32px); overflow-wrap: anywhere; font-size: .83rem; transition: opacity .2s, transform .2s; }
  .toast.visible { opacity: 1; transform: translate(-50%, 0); }
  .copy-fallback { position: fixed; left: -9999px; top: 0; }
  .copy-dialog { background: var(--surface); color: var(--text); border: 1px solid var(--purple); border-radius: 10px; padding: 25px; width: min(500px, calc(100% - 32px)); }
  .copy-dialog::backdrop { background: #0d071cbb; }
  .copy-dialog h2 { font-size: 1.6rem; }
  .copy-dialog p { font-size: .85rem; margin-block: 16px; }
  .copy-dialog input { color: var(--gold); background: #130d1d; border: 1px solid #685075; width: 100%; padding: 12px; border-radius: 5px; }
  .copy-dialog form { margin-top: 20px; }
}
@layer responsive {
  @media (min-width: 1800px) {
    :root { --shell: 1740px; }
    .feature-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; }
    .feature-slide { min-height: 510px; }
    .feature-copy { max-width: 650px; padding: 50px; }
    .feature-copy h2 { font-size: 4.3rem; }
    .feature-copy p { max-width: 410px; font-size: 1rem; }
    .discord-card { padding-inline: 32px; }
    .discord-card h2 { font-size: 2.2rem; }
    .discord-card-bottom { margin-inline: -32px; padding-inline: 32px; }
    .server-art { height: 200px; }
    .server-art .world-art { margin-top: -160px; }
    .server-card-body { padding: 28px 32px 24px; }
    .welcome { padding-top: 65px; }
  }
  @media (min-width: 2800px) {
    html { font-size: 20px; }
    :root { --shell: 2200px; }
    .header-inner { min-height: 126px; }
    .feature-layout { grid-template-columns: minmax(0, 1fr) 470px; gap: 36px; }
    .feature-slide { min-height: 640px; }
    .feature-copy { padding: 65px; max-width: 820px; }
    .feature-copy p { max-width: 520px; }
    .feature-copy h2 { font-size: 4.5rem; }
    .feature-meta { margin-top: 40px; }
    .carousel-toolbar { min-height: 80px; padding-inline: 35px; }
    .discord-card { padding: 40px 38px 0; }
    .discord-card-bottom { margin-inline: -38px; padding-inline: 38px; }
    .discord-top { margin-bottom: 58px; }
    .server-art { height: 260px; }
    .server-art .world-art { margin-top: -225px; }
    .server-card-body { padding: 32px 36px; }
    .help-layout { grid-template-columns: 1fr 470px; }
    .help-sidebar { top: 160px; }
    .pack-hero, .parked-banner { min-height: 470px; }
    .pack-hero > div:last-child, .parked-banner > div { max-width: 800px; padding: 56px 62px; }
  }
  @media (max-width: 1150px) {
    .shell { width: calc(100% - 64px); }
    #site-nav { gap: 20px; }
    .feature-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
    .feature-copy { padding: 31px; }
    .feature-copy h2 { font-size: 3.1rem; }
    .feature-copy p { max-width: 310px; }
    .feature-label { flex-wrap: wrap; }
    .feature-slide { min-height: 495px; }
    .discord-card { padding: 26px 23px 0; }
    .discord-card h2 { font-size: 1.7rem; }
    .discord-card-bottom { margin-inline: -23px; }
    .help-layout { gap: 35px; grid-template-columns: 1fr 300px; }
    .import-panel { grid-template-columns: 1fr 280px; gap: 25px; }
  }
  @media (max-width: 900px) {
    .header-inner { min-height: 84px; }
    .brand { font-size: .65rem; }
    .brand-second { font-size: 1.1rem; }
    #site-nav { gap: 17px; font-size: .73rem; }
    #site-nav .nav-discord { padding-inline: 11px; gap: 7px; }
    .feature-layout { grid-template-columns: minmax(0, 1fr); }
    .feature-slide { min-height: 445px; }
    .feature-copy { padding: 38px; }
    .feature-copy p { max-width: 350px; }
    .discord-card { display: flex; flex-direction: column; gap: 0; padding: 25px 28px 0; }
    .discord-top { grid-column: 1/-1; margin-bottom: 4px; justify-content: flex-start; }
    .discord-card h2 { grid-column: 1; grid-row: 2/4; font-size: 2rem; margin-top: 8px; }
    .discord-card > p { grid-column: 2; grid-row: 2; }
    .discord-topics { grid-column: 2; margin-block: 8px; }
    .discord-button { grid-column: 1; grid-row: 4; align-self: start; }
    #discord-widget-slot { grid-column: 2; grid-row: 4; }
    .discord-note { margin-top: 0; }
    .discord-card-bottom { grid-column: 1/-1; margin-inline: -28px; margin-top: 8px; }
    .help-layout { grid-template-columns: 1fr; gap: 30px; }
    .help-sidebar { position: static; }
    .help-sidebar .button { width: auto; margin-right: 20px; }
    .help-sidebar ul { display: grid; grid-template-columns: 1fr 1fr; }
    .footer-inner { flex-wrap: wrap; gap: 15px 26px; }
    .footer-inner > div { flex-basis: 100%; margin-left: 0; }
  }
  @media (max-width: 700px) {
    .shell { width: calc(100% - 40px); }
    .header-inner { min-height: 78px; }
    .brand img { width: 36px; height: 36px; }
    .menu-toggle { display: flex; gap: 15px; align-items: center; min-height: 44px; padding: 7px 12px; border: 1px solid #644d75; background: #2b1e35; border-radius: 6px; font-size: .75rem; }
    #site-nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 16px 20px 24px; background: #21182a; border-bottom: 1px solid #72517e; box-shadow: 0 20px 30px #0006; max-height: calc(100dvh - 80px); overflow-y: auto; }
    #site-nav.mobile-open { display: flex; flex-direction: column; align-items: stretch; gap: 7px; font-size: .9rem; }
    #site-nav > a, #minecraft-toggle { padding-inline: 12px; min-height: 46px; }
    #site-nav > a[aria-current="page"]::after { left: 0; top: 15px; width: 3px; height: 16px; }
    .nav-dropdown { padding: 0; }
    #minecraft-toggle { width: 100%; justify-content: space-between; }
    .dropdown-panel { position: static; width: 100%; margin-block: 5px 9px; padding: 12px; box-shadow: none; }
    #site-nav .nav-discord { margin-left: 0; justify-content: space-between; margin-top: 8px; padding-inline: 12px; }
    .welcome { padding-block: 34px 25px; }
    .welcome h1 { font-size: clamp(2.2rem, 7vw, 3rem); }
    .welcome > p:last-child { font-size: .87rem; max-width: 330px; }
    .welcome .eyebrow { font-size: .62rem; }
    .feature-slide { min-height: 455px; align-items: end; }
    .feature-slide > .world-art { object-position: 77% center; }
    .feature-shade { background: linear-gradient(0deg, #21192a 2%, #251b32df 32%, #20172848 95%), linear-gradient(90deg, #21162c55, transparent); }
    .feature-copy { padding: 30px 27px 32px; max-width: 100%; }
    .feature-label { gap: 10px; margin-bottom: 19px; font-size: .57rem; }
    .feature-copy h2 { font-size: 2.9rem; }
    .feature-copy p { font-size: .84rem; max-width: 360px; }
    .feature-actions { gap: 10px; margin-top: 23px; }
    .feature-actions .button { padding-inline: 16px; font-size: .76rem; }
    .feature-meta { gap: 10px; font-size: .56rem; }
    .feature-meta span + span { padding-left: 10px; }
    .carousel-toolbar { padding: 11px 18px; gap: 10px; }
    .carousel-position { font-size: .59rem; }
    .carousel-dots button { width: 26px; }
    .carousel-controls { gap: 5px; }
    .carousel-controls .icon-button { width: 36px; min-height: 38px; }
    .backup-home { align-items: flex-start; flex-direction: column; gap: 12px; }
    .backup-item { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .backup-item .button { justify-self: start; }
    .feature-resources { padding-inline: 20px; }
    .server-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .worlds-section { margin-top: 36px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 18px; }
    .section-heading h2 { font-size: 1.8rem; }
    .section-heading .eyebrow { font-size: .61rem; }
    .server-art { height: 155px; }
    .server-card-body { padding: 23px; }
    .card-description { min-height: 0; }
    .start-strip { padding: 24px; display: grid; grid-template-columns: 44px 1fr; gap: 20px 17px; }
    .strip-icon { width: 44px; height: 44px; align-self: start; }
    .start-strip h2 { font-size: 1.3rem; }
    .start-strip .button { grid-column: 1/-1; margin-left: 0; justify-self: start; }
    .page-heading { padding-top: 30px; }
    .breadcrumb { margin-bottom: 25px; }
    .page-heading h1 { font-size: 2.7rem; }
    .page-heading > p:last-child { font-size: .9rem; }
    .pack-hero, .parked-banner { min-height: 400px; }
    .pack-hero > div:last-child, .parked-banner > div { padding: 29px; }
    .pack-hero h2, .parked-banner h2 { font-size: 2.7rem; }
    .pack-facts { grid-template-columns: repeat(2, 1fr); }
    .pack-facts > div { padding: 17px 21px; }
    .pack-facts > div:nth-child(3) { border-left: 0; }
    .pack-facts > div:nth-child(n+3) { border-top: 1px solid var(--border); }
    .import-panel { padding: 25px; grid-template-columns: minmax(0, 1fr); }
    .import-panel h2 { font-size: 1.85rem; }
    .import-panel p:not(.eyebrow) { font-size: .85rem; }
    .import-url { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px; }
    .help-teaser { flex-direction: column; align-items: flex-start; }
    .directory-note { flex-wrap: wrap; padding: 19px; gap: 12px; }
    .directory-note p { flex: 1; }
    .directory-note .button { margin-left: 17px; }
    .guide-step { gap: 17px; padding-block: 27px; }
    .step-number { width: 35px; min-height: 36px; }
    .guide-step h2 { font-size: 1.6rem; margin-top: 4px; }
    .guide-step p { font-size: .86rem; }
    .help-sidebar { padding: 24px; }
    .help-sidebar ul { grid-template-columns: 1fr; padding-block: 18px; }
    .help-sidebar .button { width: 100%; }
    .faq-section { margin-top: 34px; }
    .footer-inner > p { flex-basis: 100%; }
    .footer-inner > div { gap: 20px; font-size: .66rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; line-height: 1.8; }
    main { padding-bottom: 45px; }
  }
  @media (max-width: 480px) {
    .mobile-break { display: block; }
    .feature-slide { min-height: 475px; }
    .feature-copy { padding-inline: 23px; }
    .feature-copy h2 { font-size: 2.7rem; }
    .feature-actions { flex-wrap: nowrap; }
    .feature-actions .button { gap: 10px; padding-inline: 12px; font-size: .7rem; }
    .feature-meta { gap: 8px; letter-spacing: .06em; }
    .carousel-toolbar { padding-inline: 13px; }
    .carousel-position { display: none; }
    .discord-card { display: flex; padding: 26px 25px 0; gap: 0; }
    .discord-top { justify-content: space-between; margin-bottom: 25px; }
    .discord-card h2 { font-size: 2rem; margin-top: 0; }
    .discord-card > p { font-size: .86rem; }
    .discord-topics { margin-block: 19px 23px; }
    .discord-button { width: 100%; }
    .discord-note { margin-block: 14px 23px; }
    .discord-card-bottom { margin-inline: -25px; margin-top: 0; width: calc(100% + 50px); }
    .section-heading h2 { font-size: 1.7rem; }
    .server-card-body { padding: 23px 20px; }
    .server-card-top { gap: 7px; }
    .status-badge { font-size: .62rem; }
    .pack-hero > div:last-child, .parked-banner > div { padding-inline: 23px; }
    .guide-step { gap: 13px; }
    .guide-step h2 { font-size: 1.45rem; }
    .not-found-actions { flex-wrap: wrap; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .button:hover { transform: none; }
  }
}
/* ------------------------------------------------------------------
   Motion layer: reactive animation grammar. Fine pointers get hover
   lift and icon movement, touch gets tactile press scaling, focus
   rings and disclosure fades stay soft. Everything here is inside
   prefers-reduced-motion: no-preference, so a reduce preference
   removes all of it instantly and the static defaults remain.
   The JS-assisted card map height animation lives in motion.mjs.
   ------------------------------------------------------------------ */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes rise-in { from { opacity: 0; transform: translateY(9px); } }
    @keyframes fade-in { from { opacity: 0; } }
    @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
    @keyframes slide-fade-in { from { opacity: 0; transform: translateX(20px); } }

    /* Soft color, shadow and focus-ring transitions on interactives. */
    a, button, summary, input, [tabindex] { transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .2s ease, transform .2s ease, outline-color .16s ease, outline-offset .16s ease; }

    /* Hover grammar, fine pointers only. Coarse pointers never get
       sticky hover lift; the next block removes the base rule there. */
    @media (hover: hover) and (pointer: fine) {
      .button:hover { transform: translateY(-2px); }
      .button:hover span[aria-hidden="true"] { display: inline-block; transform: translate(2px, -2px); }
      .button:active { transform: translateY(-1px); }
      .icon-button:hover { transform: translateY(-1px); }
      .server-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
      .server-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px #00000066; border-color: #5f4a6e; }
      /* No lift while a map disclosure is open, so a panned iframe
         cannot leave the card floating on a persistent hover state. */
      .server-card:has(.card-map[open]):hover { transform: none; box-shadow: none; }
      .community-quicklinks b { transition: transform .18s ease; }
      .community-quicklinks a:hover b { transform: translateX(3px); }
    }

    /* Touch grammar: tactile press scaling instead of hover. */
    @media (hover: none) and (pointer: coarse) {
      .button:hover { transform: none; }
      .button:active { transform: scale(.96); transition: transform .09s ease; }
      .icon-button:active { transform: scale(.9); transition: transform .09s ease; }
      .menu-toggle:active, .carousel-dots button:active { transform: scale(.96); }
      .card-map > summary:active { color: var(--gold); }
    }

    /* Disclosure, dropdown, carousel and reveal motion. These run on
       unhide (class or [hidden] flips), so no JS and no loops. */
    .dropdown-panel:not([hidden]) { animation: menu-in .18s ease; }
    #site-nav.mobile-open { animation: menu-in .2s ease; }
    .feature-slide:not([hidden]) { animation: slide-fade-in .32s ease; }
    .backup-checksum[open] code { animation: fade-in .22s ease; }
    .card-map .ui-icon, .map-chevron { transition: transform .2s ease; }
    .card-map[open] .icon-chevron, .card-map[open] .map-chevron { transform: rotate(180deg); }

    /* One-shot entrances. Transform and opacity only, no layout work. */
    .welcome, .feature-layout, .page-heading { animation: rise-in .38s ease backwards; }
    .server-grid > .server-card { animation: rise-in .42s ease backwards; }
    .server-grid > .server-card:nth-child(2) { animation-delay: .07s; }
    .server-grid > .server-card:nth-child(n+3) { animation-delay: .12s; }
  }
}
