:root {
	--noasaba-header-height: 60px;
}

html { scroll-behavior: auto; }
html.noasaba-snap-enabled { scrollbar-width: none; }
html.noasaba-snap-enabled::-webkit-scrollbar { display: none; }
body.noasaba-home { margin: 0; color: #fff; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.noasaba-home #fullpage,
body.noasaba-home #fullpage *,
body.noasaba-home #fullpage *::before,
body.noasaba-home #fullpage *::after { box-sizing: border-box; }
body.noasaba-home a { color: inherit; }
html.admin-bar { margin-top: 0 !important; }
body.admin-bar.noasaba-home #wpadminbar { position: fixed; top: 0; }

.panorama-background, .panorama-overlay { position: fixed; inset: 0; pointer-events: none; }
.panorama-background { --panorama-fallback: url("../panorama/noasaba-360-mobile.webp"); z-index: 0; background: #151914 var(--panorama-fallback) center / cover no-repeat; }
.panorama-background.pnlm-container { position: fixed !important; inset: 0 !important; width: auto !important; height: auto !important; pointer-events: none !important; background-color: #151914 !important; background-image: var(--panorama-fallback) !important; background-position: center !important; background-size: cover !important; }
.panorama-background .pnlm-render-container { opacity: 0; transition: opacity 220ms ease; }
.panorama-background[data-initialized="true"] .pnlm-render-container { opacity: 1; }
.panorama-background .pnlm-controls-container, .panorama-background .pnlm-load-box, .panorama-background .pnlm-compass, .panorama-background .pnlm-panorama-info, .panorama-background .pnlm-about-msg { display: none !important; }
.panorama-overlay { z-index: 1; background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.5) 42%, rgba(0,0,0,.72)), radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 45%); }
.page-content { position: relative; z-index: 2; min-height: 100svh; color: #fff; }
#fullpage { margin-top: 0; min-height: 100svh; }
html:not(.noasaba-snap-enabled) body.noasaba-home #fullpage { margin-top: var(--noasaba-header-height); }
html:not(.noasaba-snap-enabled) body.admin-bar.noasaba-home #fullpage { margin-top: calc(var(--noasaba-header-height) + 32px); }
.hero-section, .intro-section, .server-section { display: flex !important; align-items: center; justify-content: center; min-height: 100svh; height: auto; text-align: center; }
html.noasaba-snap-enabled #fullpage > .section { height: 100svh; min-height: 100svh; }
.hero-section { padding: calc(clamp(3rem, 8vh, 6rem) + 100px) 1.5rem clamp(3rem, 8vh, 6rem); position: relative; text-shadow: 0 3px 18px rgba(0,0,0,.72); }
.hero-inner { display: grid; justify-items: center; gap: .65rem; animation: hero-enter 700ms ease-out both; }
.hero-actions { bottom: clamp(2rem, 8vh, 5rem); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; left: 50%; position: absolute; transform: translateX(-50%); z-index: 2; }
html:not(.noasaba-snap-enabled) body.noasaba-home .hero-actions { bottom: calc(clamp(2rem, 8vh, 5rem) + var(--noasaba-header-height)); }
.hero-actions a { border: 1px solid rgb(255 255 255 / 78%); border-radius: 4px; color: #fff; font-size: 1rem; font-weight: 700; padding: .65rem 1rem; text-decoration: none; text-shadow: none; transition: background-color 160ms ease, color 160ms ease; }
.hero-actions a:first-child { background: #25c2a0; border-color: #25c2a0; color: #17211f; }
.hero-actions a:hover { background: #fff; color: #17211f; }
.hero-actions a:focus-visible { outline: 3px solid #8ab4f8; outline-offset: 3px; }
.hero-kicker { margin: 0; font-size: clamp(1.65rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; }
.hero-title { margin: 0; color: inherit; font-size: clamp(3.2rem, 9vw, 7rem); line-height: .95; }
.intro-section { padding: 5rem 1.5rem; }
.intro-inner { width: min(920px, 100%); }
.intro-line { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2.15rem); font-weight: 700; line-height: 1.75; text-shadow: 0 3px 16px rgba(0,0,0,.78); }
.intro-line + .intro-line { margin-top: .25rem; }
.server-section { flex-direction: column; padding: 5rem 1.5rem 6rem; }
.server-section { scroll-margin-top: var(--noasaba-header-height); }
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); width: min(1120px, 100%); margin: 0 auto; }
/* Docusaurus keeps its navbar in flow; align section content below the same visual offset. */
html.noasaba-snap-enabled body.noasaba-home .intro-inner,
html.noasaba-snap-enabled body.noasaba-home .server-grid { transform: translateY(50.390625px); }
body.noasaba-home .noasaba-shared-footer { position: relative; z-index: 2; }
.server-card { display: grid; justify-items: center; gap: .85rem; min-height: 320px; padding: clamp(1.5rem, 3vw, 2.25rem); text-align: center; color: #fff; }
.noasaba-snap-enabled .server-card { opacity: 0; transform: translateY(28px); transition: opacity 620ms ease, transform 620ms ease; }
.noasaba-snap-enabled .server-section.active .server-card { opacity: 1; transform: translateY(0); }
.server-icon { width: clamp(76px, 8vw, 112px); height: clamp(76px, 8vw, 112px); object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 14px 18px rgba(0,0,0,.4)); }
.server-card h3 { margin: 0; color: inherit; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.2; text-shadow: 0 3px 14px rgba(0,0,0,.72); }
.server-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem .85rem; width: min(100%, 320px); margin: .25rem 0 0; text-align: left; }
.server-info dt, .server-info dd { margin: 0; line-height: 1.55; }
.server-info dt { color: rgba(255,255,255,.72); font-size: .95rem; font-weight: 700; }
.server-info dd { color: #fff; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 996px) {
  .hero-section { padding: 2rem 1.25rem; }
  html.noasaba-snap-enabled body.noasaba-home .hero-section { padding: calc(2rem + 100px) 1.25rem 2rem; }
}
@media (max-width: 996px) and (min-height: 741px) {
  html.noasaba-snap-enabled body.noasaba-home .intro-inner,
  html.noasaba-snap-enabled body.noasaba-home .server-grid { transform: translateY(48px); }
}
@media (max-width: 768px) {
  .server-section { padding: 4rem 1.25rem 5rem; }
  .server-grid { grid-template-columns: 1fr; }
  .server-card { min-height: 260px; }
  .server-info { width: min(100%, 280px); }
}
@media (max-width: 782px) {
  html:not(.noasaba-snap-enabled) body.admin-bar.noasaba-home #fullpage { margin-top: calc(var(--noasaba-header-height) + 46px); }
}
@media (max-width: 640px) {
  .hero-inner { width: min(100%, 32rem); }
  .hero-actions { align-items: stretch; flex-direction: column; flex-wrap: nowrap; max-width: 32rem; width: calc(100% - 2.5rem); }
  .hero-actions a { text-align: center; white-space: normal; width: 100%; }
  .intro-section { padding: 4rem 1.25rem; }
  .intro-line { line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner { animation: none; }
  .noasaba-snap-enabled .server-card { opacity: 1; transform: none; transition: none; }
  .hero-actions a { transition: none; }
}
