:root {
  color-scheme: dark;
  --space-0: #02030b;
  --space-1: #050817;
  --space-2: #0a1028;
  --ink: #080c1b;
  --starlight: #f2f5ff;
  --starlight-soft: #c8d4ff;
  --blue: #6d8dff;
  --blue-bright: #70c7ff;
  --violet: #a879ff;
  --cyan: #70e4f2;
  --life: #59dca5;
  --line: rgba(119, 151, 255, .48);
  --line-soft: rgba(110, 143, 255, .16);
  --panel: rgba(7, 10, 28, .82);
  --portal-center-x: 50%;
  --portal-center-y: 56%;
  --font-ui: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-display: Baskerville, "Palatino Linotype", "Times New Roman", serif;
  --font-mono: "Cascadia Mono", Consolas, "SF Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Board-only geometry; homepage and the two other groups retain their original layout. */
body.is-open[data-function-group="status-board-section"] .hero {
  left: 50%; top: max(76px, calc(env(safe-area-inset-top) + 70px));
  transform: translateX(-50%) scale(.42); pointer-events: none;
}
body.is-open[data-function-group="status-board-section"] .function-dock {
  left: 50%; top: max(190px, calc(env(safe-area-inset-top) + 184px));
  width: min(860px, calc(100% - 32px)); padding: 4px 8px 28px;
  max-height: calc(100svh - max(202px, calc(env(safe-area-inset-top) + 196px)) - env(safe-area-inset-bottom));
  transform: translateX(-50%); text-align: left; scrollbar-gutter: stable both-edges;
}
body.is-open[data-function-group="status-board-section"] .function-dock::before,
body.is-open[data-function-group="status-board-section"] .board-group::before { display: none; }
body.is-open[data-function-group="status-board-section"] .owner-console-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 600px) {
  body.is-open[data-function-group="status-board-section"] .hero { top: max(124px, calc(env(safe-area-inset-top) + 118px)); transform: translateX(-50%) scale(.48); }
  body.is-open[data-function-group="status-board-section"] .function-dock {
    top: max(198px, calc(env(safe-area-inset-top) + 192px)); width: calc(100% - 16px); padding-inline: 4px;
    max-height: calc(100svh - max(208px, calc(env(safe-area-inset-top) + 202px)) - env(safe-area-inset-bottom));
  }
}
@media (max-height: 540px) and (min-width: 601px) {
  body.is-open[data-function-group="status-board-section"] .hero { top: 62px; transform: translateX(-50%) scale(.28); }
  body.is-open[data-function-group="status-board-section"] .function-dock { top: 132px; max-height: calc(100svh - 140px); }
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--space-0);
}

body {
  color: var(--starlight);
  background:
    radial-gradient(circle at 50% 55%, rgba(74, 65, 205, .18), transparent 23%),
    radial-gradient(ellipse at 15% 16%, rgba(31, 99, 189, .13), transparent 36%),
    radial-gradient(ellipse at 86% 12%, rgba(108, 48, 170, .12), transparent 34%),
    linear-gradient(180deg, #01020a, #050817 55%, #02040d);
  font-family: var(--font-ui);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(95, 127, 255, .025) 48%, rgba(187, 211, 255, .08) 50%, rgba(95, 127, 255, .025) 52%, transparent),
    radial-gradient(ellipse at 50% 57%, transparent 0 25%, rgba(92, 90, 230, .05) 25.3%, transparent 25.8%),
    radial-gradient(ellipse at 50% 57%, transparent 0 39%, rgba(59, 128, 223, .035) 39.3%, transparent 39.8%);
  mix-blend-mode: screen;
}

#cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere::before {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -36vh;
  height: 74vh;
  content: "";
  opacity: .23;
  background-image:
    linear-gradient(rgba(82, 117, 222, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 117, 222, .17) 1px, transparent 1px);
  background-size: 62px 46px;
  transform: perspective(440px) rotateX(65deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 65%, transparent);
}

.atmosphere::after {
  position: absolute;
  inset: 16px;
  content: "";
  border: 1px solid rgba(115, 147, 244, .13);
  clip-path: polygon(0 0, 4% 0, 4% 1px, 96% 1px, 96% 0, 100% 0, 100% 5%, calc(100% - 1px) 5%, calc(100% - 1px) 95%, 100% 95%, 100% 100%, 96% 100%, 96% calc(100% - 1px), 4% calc(100% - 1px), 4% 100%, 0 100%, 0 95%, 1px 95%, 1px 5%, 0 5%);
}

.axis {
  position: absolute;
  display: block;
  opacity: .26;
  background: linear-gradient(90deg, transparent, var(--line), rgba(221, 230, 255, .68), var(--line), transparent);
}

.axis-horizontal { left: 8%; right: 8%; top: var(--portal-center-y); height: 1px; transform: translateY(-50%); }
.axis-vertical { top: 3%; bottom: 2%; left: var(--portal-center-x); width: 1px; background: linear-gradient(transparent, var(--line), rgba(221, 230, 255, .68), var(--line), transparent); transform: translateX(-50%); }

.signal {
  position: absolute;
  top: 19%;
  width: min(16vw, 220px);
  height: 220px;
  opacity: .18;
  border-top: 1px solid var(--line);
  background: repeating-linear-gradient(180deg, transparent 0 16px, rgba(103, 136, 233, .2) 17px, transparent 18px);
}

.signal-left { left: 4vw; transform: skewY(17deg); }
.signal-right { right: 4vw; transform: skewY(-17deg); }

.corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(145, 171, 255, .54);
  border-style: solid;
}

.corner-one { left: 22px; top: 22px; border-width: 1px 0 0 1px; }
.corner-two { right: 22px; top: 22px; border-width: 1px 1px 0 0; }
.corner-three { right: 22px; bottom: 22px; border-width: 0 1px 1px 0; }
.corner-four { left: 22px; bottom: 22px; border-width: 0 0 1px 1px; }

.experience {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero {
  position: absolute;
  left: 82%;
  top: 6%;
  width: min(94vw, 1100px);
  text-align: center;
  transform: translateX(-50%) scale(.36);
  transform-origin: 50% 0;
  transition: left .9s cubic-bezier(.16, 1, .3, 1), top .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), filter .8s ease;
}

.js-ready:not(.is-open) .hero {
  left: 50%;
  top: 13.5%;
  transform: translateX(-50%) scale(1);
}

.hero h1 {
  margin: 0;
  color: var(--starlight);
  font-family: var(--font-display);
  font-size: clamp(5rem, 12.5vw, 11.2rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .82;
  text-shadow:
    0 1px 0 #fff,
    0 3px 0 rgba(83, 105, 190, .42),
    0 0 20px rgba(178, 201, 255, .34),
    0 0 58px rgba(96, 85, 234, .2);
}

.hero p {
  display: flex;
  margin: clamp(18px, 2.6vh, 28px) auto 0;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--starlight-soft);
  font-size: clamp(1.65rem, 3.3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: .48em;
  line-height: 1;
  text-indent: .48em;
  text-shadow: 0 0 22px rgba(120, 139, 255, .42);
}

.hero p::before,
.hero p::after {
  width: min(13vw, 170px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(169, 139, 255, .62), var(--line));
}

.hero p::after { background: linear-gradient(90deg, var(--line), rgba(169, 139, 255, .62), transparent); }

.portal-stage {
  --portal-core-size: clamp(190px, 20vw, 286px);
  position: absolute;
  left: var(--portal-center-x);
  top: var(--portal-center-y);
  width: min(78vw, 920px);
  height: clamp(320px, 30vw, 390px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .5s ease, transform .65s cubic-bezier(.16, 1, .3, 1), visibility 0s;
}

.is-open .portal-stage {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.84);
  transition-delay: 0s, 0s, .48s;
}

.portal-orbit-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portal-orbit-visual::before,
.portal-orbit-visual::after {
  position: absolute;
  left: 50%;
  top: 50%;
  content: "";
  border: 1px solid rgba(112, 147, 255, .32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.portal-orbit-visual::before {
  width: 94%;
  height: 69%;
  border-style: dashed;
  animation: orbit-drift 42s linear infinite;
}

.portal-orbit-visual::after {
  width: 72%;
  height: 88%;
  opacity: .48;
  border-color: rgba(159, 116, 255, .26);
  transform: translate(-50%, -50%) rotate(-7deg);
}

.portal-dust {
  position: absolute;
  inset: 0;
  overflow: visible;
  border-radius: 50%;
}

.portal-dust span {
  --dust-x: 0px;
  --dust-y: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  background: #e8efff;
  box-shadow: 0 0 10px #73bfff, 0 0 22px rgba(126, 93, 255, .64);
}

.portal-dust span:nth-child(1) { --dust-x: -38vw; --dust-y: -16vh; }
.portal-dust span:nth-child(2) { --dust-x: 33vw; --dust-y: -21vh; animation-delay: .08s; }
.portal-dust span:nth-child(3) { --dust-x: -29vw; --dust-y: 18vh; animation-delay: .16s; }
.portal-dust span:nth-child(4) { --dust-x: 40vw; --dust-y: 13vh; animation-delay: .24s; }
.portal-dust span:nth-child(5) { --dust-x: -12vw; --dust-y: -30vh; animation-delay: .32s; }
.portal-dust span:nth-child(6) { --dust-x: 15vw; --dust-y: 28vh; animation-delay: .4s; }
.portal-dust span:nth-child(7) { --dust-x: -44vw; --dust-y: 2vh; animation-delay: .48s; }
.portal-dust span:nth-child(8) { --dust-x: 45vw; --dust-y: -2vh; animation-delay: .56s; }
.portal-intro .portal-dust span { animation: portal-dust-converge 1.35s cubic-bezier(.22, .78, .24, 1) both; }

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 18px rgba(90, 111, 255, .045);
}

.orbit::before,
.orbit::after {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--starlight);
  box-shadow: 0 0 9px var(--blue), 0 0 20px rgba(115, 102, 255, .55);
}

.orbit::before { left: -3px; }
.orbit::after { right: -3px; }
.orbit-a { width: 100%; height: 55%; animation: orbit-breathe 8s ease-in-out infinite; }
.orbit-b { width: 78%; height: 82%; opacity: .65; transform: translate(-50%, -50%) rotate(8deg); animation: orbit-drift 22s linear infinite; }
.orbit-c { width: 48%; height: 58%; opacity: .7; border-color: rgba(179, 122, 255, .48); border-style: dashed; animation: orbit-drift-reverse 30s linear infinite; }
.orbit-d { width: 28%; height: 95%; opacity: .46; border-color: rgba(89, 212, 241, .42); transform: translate(-50%, -50%) rotate(90deg); }

.satellite {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(211, 223, 255, .72);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f4f7ff, #7186ff 31%, #080b26 68%);
  box-shadow: 0 0 16px rgba(94, 120, 255, .46);
}

.satellite-a { left: 18%; top: 45%; animation: satellite-float 7s ease-in-out infinite; }
.satellite-b { right: 21%; top: 60%; width: 10px; height: 10px; animation: satellite-float 8.5s ease-in-out -2s infinite; }
.satellite-c { left: 66%; top: 22%; width: 8px; height: 8px; background: radial-gradient(circle, #eafff8, var(--life) 36%, #06151a 70%); box-shadow: 0 0 15px rgba(89, 220, 165, .36); animation: satellite-float 7.6s ease-in-out -4s infinite; }

.portal-connector-boundary {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--portal-core-size);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.015);
}

.portal-connectors {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.orbit-connector {
  opacity: .78;
  stroke: rgba(119, 174, 255, .78);
  stroke-linecap: round;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.portal-core-trigger {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: var(--portal-core-size);
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
}

.portal-core-trigger:focus-visible {
  outline: 2px solid rgba(222, 233, 255, .98);
  outline-offset: 10px;
  box-shadow: 0 0 0 7px rgba(100, 128, 255, .15), 0 0 68px rgba(105, 82, 255, .28);
}

.portal-core-trigger:hover,
.portal-stage.is-near .portal-core-trigger,
.portal-core-trigger:focus-visible {
  transform: translate(-50%, -50%) scale(1.05);
}

.portal-core-trigger.portal-pressed { transform: translate(-50%, -50%) scale(.94); }

.reactor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86%;
  aspect-ratio: 1;
  border: 2px solid rgba(200, 214, 255, .82);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 18deg, rgba(111, 139, 255, .28) 0 1deg, transparent 1deg 13deg),
    radial-gradient(circle, rgba(218, 226, 255, .32), rgba(82, 67, 212, .17) 32%, rgba(5, 7, 25, .9) 67%);
  box-shadow: inset 0 0 42px rgba(105, 121, 255, .32), 0 0 0 7px rgba(100, 128, 255, .06), 0 0 40px rgba(79, 111, 255, .34), 0 0 112px rgba(103, 58, 208, .32);
  transform: translate(-50%, -50%);
  transition: box-shadow .3s ease, filter .3s ease, transform .25s ease;
}

.portal-stage.is-near .reactor,
.portal-core-trigger:hover .reactor,
.portal-core-trigger:focus-visible .reactor,
.portal-stage[data-active-entry] .reactor {
  filter: brightness(1.16);
  box-shadow: inset 0 0 48px rgba(119, 143, 255, .4), 0 0 48px rgba(80, 133, 255, .43), 0 0 138px rgba(119, 65, 231, .4);
}

.portal-core-trigger.portal-pressed .reactor { transform: translate(-50%, -50%) scale(.95); }

.reactor::before,
.reactor::after {
  position: absolute;
  left: 50%;
  top: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.reactor::before {
  width: 118%;
  height: 118%;
  border: 1px solid rgba(176, 135, 255, .5);
  border-radius: 50%;
  background: repeating-conic-gradient(from 4deg, rgba(189, 160, 255, .66) 0 1deg, transparent 1deg 7deg, rgba(89, 199, 241, .48) 7deg 8deg, transparent 8deg 14deg);
  mask-image: radial-gradient(circle, transparent 0 47%, #000 48% 50%, transparent 51% 54%, #000 55% 56%, transparent 57%);
  animation: spin 34s linear infinite;
}

.reactor::after {
  width: 152%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(172, 128, 255, .5) 20%, var(--starlight) 49.5%, var(--starlight) 50.5%, rgba(95, 208, 244, .48) 80%, transparent);
  box-shadow: 0 0 14px rgba(104, 133, 255, .48);
}

.reactor-ring,
.reactor-core {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.reactor-ring { border: 1px solid rgba(122, 151, 255, .58); }
.reactor-ring-a { width: 79%; height: 79%; border-style: dashed; animation: spin 17s linear infinite; }
.reactor-ring-b { width: 57%; height: 57%; border-color: rgba(184, 130, 255, .66); animation: spin-reverse 13s linear infinite; }
.reactor-ring-c { width: 35%; height: 35%; box-shadow: 0 0 16px rgba(99, 176, 255, .48); animation: portal-beacon 8.6s ease-in-out 2.2s infinite; }

.reactor-core {
  width: 11%;
  height: 11%;
  background: #f4f7ff;
  box-shadow: 0 0 7px #fff, 0 0 18px var(--cyan), 0 0 42px 12px rgba(92, 123, 255, .72), 0 0 92px 32px rgba(111, 62, 210, .28);
  animation: core-pulse 3.2s ease-in-out infinite;
}

.orbit-navigation {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.orbit-action {
  position: absolute;
  display: inline-flex;
  min-width: 132px;
  min-height: 48px;
  padding: 10px 17px 10px 14px;
  border: 1px solid rgba(125, 159, 255, .72);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #e9efff;
  background: linear-gradient(135deg, rgba(16, 23, 58, .9), rgba(7, 10, 31, .76));
  box-shadow: inset 0 0 20px rgba(105, 132, 255, .08), 0 8px 28px rgba(0, 0, 0, .35), 0 0 24px rgba(101, 86, 255, .16);
  font: 650 .88rem/1.15 var(--font-ui);
  letter-spacing: .06em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(7px);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, box-shadow .24s ease, transform .24s ease;
}

.orbit-action-portfolio { left: 4%; top: 12%; }
.orbit-action-applications { right: 3%; bottom: 11%; }

.orbit-action-star {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(227, 235, 255, .96);
  border-radius: 50%;
  background: #93b7ff;
  box-shadow: 0 0 8px #7ba3ff, 0 0 18px rgba(132, 91, 255, .74);
}

.orbit-action:hover,
.orbit-action:focus-visible,
  .orbit-action.portal-pressed,
  .portal-stage[data-active-entry="portfolio-trigger"] .orbit-action-portfolio,
  .portal-stage[data-active-entry="applications-trigger"] .orbit-action-applications {
  border-color: rgba(216, 228, 255, .98);
  color: #fff;
  background: linear-gradient(135deg, rgba(35, 49, 109, .96), rgba(31, 19, 74, .92));
  box-shadow: inset 0 0 24px rgba(127, 159, 255, .15), 0 0 0 5px rgba(101, 132, 255, .1), 0 0 34px rgba(105, 82, 255, .34);
  transform: translateY(-2px) scale(1.025);
}

.orbit-action:focus-visible {
  outline: 2px solid rgba(231, 239, 255, .98);
  outline-offset: 4px;
}

.orbit-action.portal-pressed { transform: translateY(1px) scale(.97); }

.portal-stage[data-active-entry="portfolio-trigger"] .connector-portfolio,
.portal-stage[data-active-entry="applications-trigger"] .connector-applications,
.portal-stage.portal-activating .orbit-connector {
  opacity: 1;
  stroke: rgba(141, 195, 255, 1);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(99, 145, 255, .7));
}

.portal-touch-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(212, 230, 255, .94);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 22px rgba(107, 143, 255, .72);
  transform: translate(-50%, -50%);
}

.function-return-home {
  position: fixed;
  left: max(12px, calc(env(safe-area-inset-left) + 12px));
  top: max(12px, calc(env(safe-area-inset-top) + 12px));
  z-index: 1000;
  display: inline-flex;
  min-width: 112px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(139, 165, 255, .65);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #edf2ff;
  background: linear-gradient(135deg, rgba(19, 29, 70, .97), rgba(7, 10, 30, .97));
  box-shadow: inset 0 0 20px rgba(105, 135, 255, .08), 0 8px 30px rgba(0, 0, 0, .42), 0 0 22px rgba(92, 101, 255, .14);
  font: 650 .84rem/1.15 var(--font-ui);
  letter-spacing: .04em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.function-return-home[hidden] { display: none; }
.function-return-home:hover,
.function-return-home:focus-visible {
  color: #fff;
  border-color: rgba(220, 231, 255, .98);
  background: linear-gradient(135deg, rgba(39, 56, 122, .98), rgba(22, 15, 66, .98));
  outline: 2px solid rgba(229, 237, 255, .9);
  outline-offset: 4px;
  transform: translateY(-1px);
}
.function-return-home:active { transform: translateY(1px) scale(.98); }

.function-dock {
  position: absolute;
  left: clamp(40px, 5vw, 76px);
  top: clamp(70px, 9vh, 94px);
  z-index: 4;
  display: grid;
  width: min(920px, calc(100% - 40px));
  max-height: calc(100svh - 110px);
  min-height: 0;
  padding: 0 7px 8px 25px;
  border: 0;
  color: var(--starlight);
  background: transparent;
  gap: 24px;
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(113, 144, 255, .32) transparent;
  scrollbar-width: thin;
  transform: translateX(0);
  contain: layout paint style;
  transition: opacity .42s ease .1s, transform .58s cubic-bezier(.16, 1, .3, 1) .06s;
}

.function-dock:focus { outline: none; }
.function-dock::before {
  position: absolute;
  left: 4px;
  top: 7px;
  bottom: 8px;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgba(129, 156, 255, .68) 10%, rgba(114, 99, 235, .34) 90%, transparent);
}

.function-group { position: relative; min-width: 0; scroll-margin-top: 4px; }
.function-group:focus { outline: none; }
.function-group:focus-visible { outline: 2px solid rgba(175, 195, 255, .72); outline-offset: 5px; }
.function-group::before {
  position: absolute;
  left: -25px;
  top: 4px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(227, 234, 255, .86);
  border-radius: 50%;
  content: "";
  background: #647dff;
  box-shadow: 0 0 12px rgba(104, 125, 255, .78);
  transform: translateX(-50%);
}

.function-dock h2 {
  display: grid;
  margin: 0 0 14px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  color: var(--starlight-soft);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.2;
}

.function-dock h2::after {
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(173, 127, 255, .72), var(--line), transparent);
}

.function-list { display: grid; gap: 10px; }
.function-link {
  display: grid;
  min-width: 0;
  min-height: 108px;
  padding: 7px;
  border: 1px solid rgba(107, 139, 242, .64);
  color: #f4f6ff;
  background: linear-gradient(100deg, rgba(19, 28, 67, .72), rgba(8, 11, 34, .44));
  grid-template-columns: 152px minmax(0, 1fr) 23px;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  text-decoration: none;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .25s ease, transform .25s ease;
}

.function-link:hover,
.function-link:focus-visible {
  border-color: #cbd8ff;
  background-color: rgba(39, 51, 116, .52);
  box-shadow: inset 0 0 30px rgba(102, 132, 255, .12), 0 0 22px rgba(96, 83, 229, .18);
  outline: none;
  transform: translateY(-2px);
}

.function-link:focus-visible { box-shadow: inset 0 0 0 2px rgba(224, 232, 255, .86), inset 0 0 30px rgba(105, 132, 255, .14), 0 0 24px rgba(98, 91, 239, .24); }
.game-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(190, 204, 255, .2);
  background: #03050f;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.game-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 35%, rgba(129, 167, 255, .17), transparent 62%);
  opacity: 0;
  transform: translateX(-60%);
  transition: opacity .3s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}

.game-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) brightness(.82) contrast(1.08);
  transform: scale(1.015);
  transition: filter .35s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}

.game-card:hover .game-preview img,
.game-card:focus-visible .game-preview img { filter: saturate(1.08) brightness(1) contrast(1.04); transform: scale(1.075); }
.game-card:hover .game-preview::after,
.game-card:focus-visible .game-preview::after { opacity: 1; transform: translateX(60%); }

.game-copy { display: grid; min-width: 0; gap: 3px; }
.game-name { color: #f4f6ff; font-family: var(--font-display); font-size: 1rem; font-weight: 670; letter-spacing: .035em; line-height: 1.22; }
.game-name-en { color: rgba(193, 207, 255, .68); font-family: var(--font-mono); font-size: .67rem; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.game-support { margin-top: 4px; color: rgba(229, 235, 255, .68); font-size: .74rem; letter-spacing: .015em; line-height: 1.4; }
.launch-arrow { fill: none; stroke: var(--blue-bright); stroke-linecap: square; stroke-linejoin: miter; width: 25px; justify-self: end; stroke-width: 1.6; }

.fruit-link { border-color: rgba(225, 190, 94, .52); }
.fruit-link .launch-arrow { stroke: #ffd76f; }
.backrooms-link { border-color: rgba(190, 176, 226, .5); }
.backrooms-link .launch-arrow { stroke: #cdbdf5; }
.minecraft-link { border-color: rgba(96, 190, 139, .52); }
.minecraft-link .launch-arrow { stroke: #83dda9; }
.plants-link { border-color: rgba(181, 208, 92, .5); }
.plants-link .launch-arrow { stroke: #d9ef78; }

.application-card { border-color: rgba(168, 121, 255, .58); grid-template-columns: 88px minmax(0, 1fr) 23px; }
.application-card .launch-arrow { stroke: var(--violet); }
.app-preview {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(180, 161, 255, .3);
  background: radial-gradient(circle at 35% 28%, rgba(125, 169, 255, .31), rgba(87, 55, 155, .18) 48%, rgba(3, 5, 15, .9));
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.app-preview img { display: block; width: 72%; height: 72%; object-fit: contain; }

.account-entry {
  position: fixed;
  right: max(12px, calc(env(safe-area-inset-right) + 12px));
  top: max(12px, calc(env(safe-area-inset-top) + 12px));
  z-index: 1001;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 7px;
  font-family: var(--font-ui);
}

.account-action,
.account-menu summary,
.account-menu-panel button,
.board-group button,
.account-dialog button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(129, 157, 255, .62);
  border-radius: 999px;
  color: #eef3ff;
  background: linear-gradient(135deg, rgba(18, 27, 65, .96), rgba(8, 11, 33, .94));
  box-shadow: inset 0 0 18px rgba(107, 137, 255, .08), 0 8px 25px rgba(0, 0, 0, .32);
  font: 650 .78rem/1.2 var(--font-ui);
  cursor: pointer;
}

.account-action:hover,
.account-action:focus-visible,
.account-menu summary:hover,
.account-menu summary:focus-visible,
.account-menu-panel button:hover,
.account-menu-panel button:focus-visible,
.board-group button:hover,
.board-group button:focus-visible,
.account-dialog button:hover,
.account-dialog button:focus-visible {
  border-color: rgba(222, 232, 255, .96);
  outline: 2px solid rgba(220, 232, 255, .84);
  outline-offset: 3px;
}

.account-action:disabled { color: rgba(205, 214, 245, .58); cursor: not-allowed; opacity: .78; }
.account-menu-panel button:disabled,
.owner-action-row button:disabled { cursor: not-allowed; filter: saturate(.35); opacity: .55; }
.account-menu { position: relative; }
.account-menu summary { min-width: 116px; list-style: none; text-align: center; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 228px;
  padding: 8px;
  border: 1px solid rgba(124, 151, 244, .46);
  background: rgba(5, 8, 25, .98);
  gap: 6px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .48);
}
.account-menu-panel button { width: 100%; border-radius: 5px; text-align: left; }

.board-group { padding-bottom: 18px; }
.board-service-line {
  display: flex;
  margin: -4px 0 12px;
  align-items: center;
  gap: 8px;
  color: rgba(194, 207, 250, .72);
  font: .7rem/1.4 var(--font-mono);
}
.board-service-dot { width: 7px; height: 7px; border-radius: 50%; background: #d6a866; box-shadow: 0 0 10px rgba(214, 168, 102, .52); }
.dynamic-ready .board-service-dot { background: var(--life); box-shadow: 0 0 12px rgba(89, 220, 165, .64); }
.dynamic-degraded .board-service-dot { background: #d68aa3; box-shadow: 0 0 12px rgba(214, 91, 132, .55); }
.owner-console-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.board-panel,
.board-messages,
.owner-console {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(112, 143, 241, .42);
  background: linear-gradient(120deg, rgba(15, 22, 55, .74), rgba(6, 9, 29, .68));
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.board-label { margin: 0 0 5px; color: var(--cyan); font: 700 .64rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.board-panel h3,
.board-panel h4,
.board-messages h3,
.owner-console h3,
.owner-console h4 { margin: 0 0 8px; color: #eef3ff; font-family: var(--font-display); font-weight: 550; letter-spacing: .035em; }
.board-panel p,
.board-messages p,
.owner-console p { margin: 6px 0; color: rgba(222, 230, 255, .74); font-size: .76rem; line-height: 1.55; overflow-wrap: anywhere; }
.presence-panel.is-alert { border-color: rgba(255, 94, 132, .82); background: linear-gradient(120deg, rgba(91, 16, 40, .82), rgba(31, 5, 20, .78)); box-shadow: inset 0 0 28px rgba(255, 48, 101, .08), 0 0 30px rgba(255, 35, 95, .1); }
.presence-panel.is-alert h3,
.presence-panel.is-alert #presence-message { color: #ffc1d0; }
.presence-panel.is-sos { border-color: rgba(255, 72, 96, .96); background: linear-gradient(120deg, rgba(116, 13, 33, .9), rgba(42, 3, 15, .88)); }
.public-alert-meta { display: grid; margin: 10px 0; padding: 10px; border: 1px solid rgba(255, 127, 155, .32); gap: 3px; background: rgba(30, 3, 13, .46); }
.public-alert-meta p { margin: 0 !important; color: rgba(255, 221, 230, .82) !important; }
.public-alert-evidence { display: grid; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 127, 155, .24); gap: 5px; overflow-wrap: anywhere; }
.public-alert-evidence strong { color: #ffe4eb; font-family: var(--font-mono); font-weight: 650; }
.public-alert-evidence a { color: #9ee9ff; text-underline-offset: 3px; }
.board-disclaimer { color: rgba(194, 204, 239, .6) !important; font-size: .68rem !important; }
.board-composer,
.board-messages,
.owner-console { margin-top: 10px; }
.announcement-panel { margin-top: 10px; }
.announcement-card { padding: 9px 0; border-top: 1px solid rgba(118, 145, 226, .2); }
.announcement-card:first-child { border-top: 0; }
.announcement-card > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: rgba(197, 210, 250, .68); font: .66rem/1.4 var(--font-mono); }
.announcement-card.is-pinned strong { color: var(--cyan); }
.announcement-card p { white-space: pre-wrap; }
.board-form { display: grid; gap: 7px; }
.board-form label,
.account-dialog label,
.account-dialog legend { color: rgba(215, 224, 255, .78); font-size: .74rem; line-height: 1.4; }
.board-form textarea,
.account-dialog input,
.account-dialog textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(114, 145, 242, .48);
  border-radius: 4px;
  color: #f3f6ff;
  background: rgba(2, 5, 18, .86);
  font: .82rem/1.5 var(--font-ui);
}
.board-form textarea { min-height: 84px; resize: vertical; }
.board-form textarea:focus-visible,
.account-dialog input:focus-visible,
.account-dialog textarea:focus-visible { border-color: var(--cyan); outline: 2px solid rgba(112, 228, 242, .22); outline-offset: 2px; }
.board-form-actions,
.board-section-heading,
.message-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board-section-heading.compact { align-items: center; }
.board-section-heading h3,
.board-section-heading h4 { margin-bottom: 0; }
.board-primary,
.dialog-primary { border-color: rgba(119, 215, 242, .72) !important; background: linear-gradient(135deg, rgba(51, 94, 184, .96), rgba(86, 53, 169, .94)) !important; }
.board-danger { border-color: rgba(255, 121, 157, .7) !important; color: #ffd9e3 !important; background: linear-gradient(135deg, rgba(94, 23, 52, .95), rgba(54, 14, 45, .94)) !important; }
.message-list { display: grid; margin-top: 10px; gap: 8px; }
.message-card { padding: 11px; border: 1px solid rgba(122, 148, 229, .28); background: rgba(3, 6, 20, .58); }
.message-card.is-hidden { border-color: rgba(218, 152, 84, .48); opacity: .76; }
.message-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: rgba(197, 210, 250, .68); font: .66rem/1.4 var(--font-mono); }
.message-card .message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-badge { display: inline-block; margin-left: 6px; color: var(--cyan); font-size: .58rem; letter-spacing: .08em; }
.message-badge.hidden { color: #efbd7e; }
.message-tools,
.outbox-actions,
.announcement-actions,
.owner-action-row { display: flex; margin-top: 8px; flex-wrap: wrap; gap: 5px; }
.message-tools button,
.outbox-actions button,
.announcement-actions button { min-height: 34px; padding: 5px 9px; font-size: .65rem; }
.message-pagination { margin-top: 10px; color: rgba(204, 216, 253, .72); font: .67rem/1.3 var(--font-mono); }
.owner-console { border-color: rgba(168, 121, 255, .5); }
.outbox-item { padding: 9px 0; border-top: 1px solid rgba(118, 145, 226, .2); }
.outbox-item:first-child { border-top: 0; }
.outbox-item code { color: rgba(204, 216, 255, .74); font: .64rem/1.4 var(--font-mono); }
.owner-announcement-item,
.session-item { padding: 9px 0; border-top: 1px solid rgba(118, 145, 226, .2); }
.owner-announcement-item:first-child,
.session-item:first-child { border-top: 0; }
.owner-announcement-item small { color: rgba(190, 204, 247, .64); font: .63rem/1.4 var(--font-mono); }
.session-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.session-item p { margin: 0; }

.account-dialog {
  width: min(460px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(128, 155, 248, .6);
  border-radius: 8px;
  color: #f1f5ff;
  background: linear-gradient(155deg, #111936, #06091b 70%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .7), 0 0 45px rgba(95, 85, 223, .24);
}
.account-dialog:not([open]) { display: none; }
.account-dialog::backdrop { background: rgba(1, 2, 9, .82); backdrop-filter: blur(6px); }
.account-dialog form,
.account-dialog .dialog-content { display: grid; padding: 18px; gap: 8px; }
.dialog-step { display: grid; gap: 8px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 0; color: #f4f6ff; font-family: var(--font-display); font-size: 1.35rem; font-weight: 550; }
.dialog-close { min-width: 42px; padding: 5px !important; font-size: 1.25rem !important; }
.account-dialog fieldset { display: grid; margin: 4px 0 0; padding: 10px; border: 1px solid rgba(119, 147, 235, .34); gap: 7px; }
.account-dialog fieldset[hidden] { display: none !important; }
.field-divider { color: rgba(190, 204, 247, .55); font-size: .68rem; text-align: center; }
.confirmation-check { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: flex-start; gap: 8px; }
.confirmation-check input { width: 18px; height: 18px; margin: 2px 0 0; }
.account-dialog p[role="status"],
.board-group p[role="status"] { min-height: 1.1em; color: #b9dfff; }
.account-entry [hidden],
.board-group [hidden] { display: none !important; }

/* Original local SVG outlines; no avatar, font or tracking service. */
.account-entry { align-items: center; max-width: calc(100vw - 24px); }
.account-icon, .account-popover button {
  min-height: 44px; border: 1px solid rgba(129,157,255,.48); color: #eaf3ff;
  background: linear-gradient(135deg,rgba(20,30,68,.96),rgba(8,11,33,.95));
  border-radius: 10px; cursor: pointer; font: 500 .82rem/1.4 var(--font-ui);
}
.account-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; padding: 10px; border-radius: 50%; }
.account-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.account-avatar { width: 55px; padding: 7px; gap: 3px; border-color: rgba(147,174,255,.8); }
.account-avatar .person-icon { width: 25px; height: 25px; }
.account-avatar .account-chevron { width: 10px; height: 10px; }
.account-icon:hover, .account-icon:focus-visible, .account-popover button:focus-visible { outline: 2px solid #a5d9ff; outline-offset: 3px; }
.account-icon[aria-expanded="true"] { background: #273766; border-color: #a5d9ff; }
.account-popover {
  position: absolute; right: 0; top: calc(100% + 10px); display: grid; gap: 8px;
  width: min(340px, calc(100vw - 24px)); min-width: 0; padding: 18px;
  max-height: calc(100dvh - 95px - env(safe-area-inset-bottom)); overflow: auto;
  background: linear-gradient(145deg,#121c3a,#080d21); color: #edf4ff;
  border: 1px solid rgba(142,164,244,.5); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.65); overflow-wrap: anywhere;
}
.account-popover h2 { margin: 0 0 6px; font: 600 1rem/1.4 var(--font-ui); }
.account-popover strong { font-size: 1.08rem; }
.account-popover small, .account-popover p, .account-popover time { font: .78rem/1.65 var(--font-ui); color: #bac9e8; margin: 0; }
.account-popover button { padding: 9px 12px; width: 100%; text-align: left; border-radius: 8px; }
.account-popover button[aria-pressed="true"] { border-color: #82ddeb; background: #23385b; }
#account-login-identifier { padding-bottom: 12px; border-bottom: 1px solid #344364; color: #d5e8ff; }
#logout-button { margin-top: 6px; color: #ffc7d6; }
.notification-item { padding-block: 10px; border-bottom: 1px solid #2d3c5a; }
.notification-item p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; white-space: pre-wrap; }
.account-session-status { position: absolute; right: 0; top: calc(100% + 3px); max-width: min(260px,80vw); font: .68rem/1.5 var(--font-ui); color: #c1d4ef; text-align: right; pointer-events: none; }
.account-entry:has(.account-popover:not([hidden])) .account-session-status { visibility: hidden; }
.account-session-status:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#login-submit { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: 100%; }
.button-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(225,239,255,.35); border-top-color: #d8f6ff; border-radius: 50%; animation: account-spin .8s linear infinite; }
.button-spinner[hidden] { display: none; }
@keyframes account-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button-spinner { animation: none; border-style: dotted; } }
@media (max-width: 600px) {
  .account-entry { gap: 4px; }
  .account-icon { width: 44px; }
  .account-avatar { width: 52px; }
  .is-open .account-entry { top: max(66px, calc(env(safe-area-inset-top) + 66px)); }
  .is-open .account-popover { max-height: calc(100dvh - 132px - env(safe-area-inset-bottom)); }
  .account-popover { width: min(320px,calc(100vw - 20px)); padding: 15px; }
  .board-form-actions, .board-section-heading, .message-pagination { flex-wrap: wrap; }
}
@media (max-height: 540px) and (min-width: 601px) {
  .is-open[data-sylomni-profile="Dynamic"] .hero { left: 50%; }
}

.js-ready:not(.panel-ready) .function-dock {
  visibility: hidden;
  content-visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-42px) scale(.97);
  transition-delay: 0s;
}

.is-open .portal-stage *,
.is-open .portal-stage *::before,
.is-open .portal-stage *::after { animation-play-state: paused !important; }

.site-positioning {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1;
  width: min(92vw, 760px);
  color: rgba(196, 208, 244, .5);
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .35s ease, transform .45s ease;
}
.site-positioning p { margin: 0; font-size: clamp(.68rem, 1.1vw, .78rem); letter-spacing: .035em; line-height: 1.55; }
.site-positioning p[lang="en"] { color: rgba(152, 170, 221, .44); font-family: var(--font-mono); font-size: clamp(.58rem, .9vw, .68rem); letter-spacing: .12em; }
.is-open .site-positioning { opacity: 0; transform: translate(-50%, 8px); }

.booting *,
.booting *::before,
.booting *::after { transition: none !important; }

.not-found-shell { position: relative; z-index: 2; display: flex; width: min(100%, 760px); min-height: 100svh; margin: 0 auto; padding: 32px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found-shell h1 { margin: 0; font: 500 clamp(5rem, 16vw, 10rem)/.85 var(--font-display); text-shadow: 0 0 30px rgba(103, 111, 255, .3); }
.not-found-shell p { margin: 24px 0 34px; color: var(--starlight-soft); }
.not-found-shell a { color: var(--starlight); text-underline-offset: .3em; }
.not-found-shell a:focus-visible { outline: 2px solid var(--starlight); outline-offset: 6px; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes orbit-drift { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes orbit-drift-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes orbit-breathe { 50% { opacity: .62; transform: translate(-50%, -50%) scale(1.025); } }
@keyframes core-pulse { 50% { transform: translate(-50%, -50%) scale(1.24); filter: brightness(1.18); } }
@keyframes satellite-float { 50% { transform: translateY(-9px); filter: brightness(1.18); } }
@keyframes portal-dust-converge {
  0% { opacity: 0; transform: translate(calc(-50% + var(--dust-x)), calc(-50% + var(--dust-y))) scale(.35); }
  28% { opacity: .9; }
  82% { opacity: .7; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}
@keyframes portal-beacon {
  0%, 74%, 100% { box-shadow: 0 0 16px rgba(99, 176, 255, .48); transform: translate(-50%, -50%) scale(1); }
  84% { box-shadow: 0 0 32px rgba(130, 166, 255, .92), 0 0 80px rgba(119, 70, 226, .34); transform: translate(-50%, -50%) scale(1.1); }
  91% { box-shadow: 0 0 22px rgba(113, 198, 255, .6); transform: translate(-50%, -50%) scale(1); }
}

@media (min-width: 980px) {
  .function-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .function-link { grid-template-columns: 124px minmax(0, 1fr) 20px; gap: 10px; }
  .application-card { grid-template-columns: 88px minmax(0, 1fr) 20px; }
}

@media (max-width: 720px) {
  :root { --portal-center-y: 59%; }
  .atmosphere::after { inset: 9px; }
  .corner-one { left: 14px; top: 14px; }
  .corner-two { right: 14px; top: 14px; }
  .corner-three { right: 14px; bottom: 14px; }
  .corner-four { left: 14px; bottom: 14px; }
  .signal { opacity: .1; }
  .experience { min-height: 100svh; }
  .hero { left: 84%; top: 4%; transform: translateX(-50%) scale(.22); }
  .js-ready:not(.is-open) .hero { left: 50%; top: 11%; transform: translateX(-50%) scale(1); }
  .hero h1 { font-size: clamp(3.7rem, 20vw, 7.2rem); }
  .hero p { margin-top: 15px; gap: 8px; font-size: clamp(1.18rem, 6.6vw, 1.9rem); letter-spacing: .32em; text-indent: .32em; }
  .hero p::before,
  .hero p::after { width: 9vw; }
  .portal-stage { --portal-core-size: clamp(150px, 43vw, 194px); width: calc(100% - 12px); height: clamp(310px, 48vh, 400px); }
  .orbit-action { min-width: 120px; min-height: 46px; padding: 9px 13px 9px 11px; gap: 7px; font-size: .76rem; letter-spacing: .035em; backdrop-filter: none; }
  .orbit-action-portfolio { left: 0; top: 8%; }
  .orbit-action-applications { right: 0; bottom: 7%; }
  .portal-orbit-visual::before { width: 96%; height: 71%; }
  .function-return-home { min-width: 108px; min-height: 48px; padding: 9px 14px; font-size: .8rem; backdrop-filter: none; }
  .function-dock { left: 15px; top: max(76px, calc(env(safe-area-inset-top) + 66px)); width: min(400px, calc(100% - 30px)); max-height: calc(100svh - max(94px, calc(env(safe-area-inset-top) + 84px))); padding: 0 5px 7px 22px; gap: 18px; }
  .is-open[data-sylomni-profile="Dynamic"] .function-dock { top: max(124px, calc(env(safe-area-inset-top) + 124px)); max-height: calc(100svh - max(140px, calc(env(safe-area-inset-top) + 140px))); }
  .function-dock::before { left: 3px; }
  .function-group::before { left: -22px; }
  .function-dock h2 { margin-bottom: 10px; gap: 9px; font-size: .86rem; letter-spacing: .07em; }
  .function-list { gap: 6px; }
  .function-link { min-height: 84px; padding: 5px; grid-template-columns: 106px minmax(0, 1fr) 17px; gap: 8px; }
  .game-name { font-size: .82rem; letter-spacing: .01em; }
  .game-name-en { font-size: .57rem; letter-spacing: .065em; }
  .game-support { margin-top: 2px; font-size: .65rem; line-height: 1.28; }
  .launch-arrow { width: 18px; }
  .application-card { grid-template-columns: 72px minmax(0, 1fr) 17px; }
  .account-entry { right: max(8px, calc(env(safe-area-inset-right) + 8px)); top: max(8px, calc(env(safe-area-inset-top) + 8px)); gap: 5px; }
  .account-action,
  .account-menu summary { min-height: 44px; padding: 7px 11px; font-size: .7rem; backdrop-filter: none; }
  .owner-console-grid { grid-template-columns: 1fr; }
  .board-panel,
  .board-messages,
  .owner-console { padding: 11px; }
  .board-section-heading { align-items: flex-start; }
  .message-card header { display: grid; }
  .site-positioning { bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 28px); }
  .site-positioning p { font-size: .6rem; line-height: 1.38; }
  .site-positioning p[lang="en"] { font-size: .5rem; letter-spacing: .075em; }
}

@media (max-height: 620px) {
  :root { --portal-center-y: 55%; }
  .experience { min-height: 100svh; }
  .hero { left: 82%; top: 2.5%; transform: translateX(-50%) scale(.3); }
  .js-ready:not(.is-open) .hero { left: 50%; top: 4%; transform: translateX(-50%) scale(.65); }
  .portal-stage { --portal-core-size: min(34vh, 152px); width: min(82vw, 720px); height: min(64vh, 270px); }
  .orbit-action { min-height: 44px; padding-block: 8px; font-size: .74rem; }
  .orbit-action-portfolio { left: 4%; top: 31%; }
  .orbit-action-applications { right: 4%; bottom: 20%; }
  .function-dock { top: 70px; max-height: calc(100svh - 84px); gap: 20px; }
  .function-link { min-height: 90px; }
  .site-positioning { bottom: max(7px, env(safe-area-inset-bottom)); }
}

@media (max-width: 350px) {
  :root { --portal-center-y: 60%; }
  .js-ready:not(.is-open) .hero { top: 10%; }
  .portal-stage { --portal-core-size: 146px; height: 310px; }
  .orbit-action { min-width: 112px; padding-inline: 9px 11px; font-size: .72rem; }
  .orbit-action-portfolio { top: 7%; }
  .orbit-action-applications { bottom: 7%; }
  .account-action,
  .account-menu summary { padding-inline: 8px; }
  .function-link { grid-template-columns: 96px minmax(0, 1fr) 15px; }
  .application-card { grid-template-columns: 64px minmax(0, 1fr) 15px; }
}

@media (forced-colors: active) {
  .portal-core-trigger,
  .orbit-action,
  .account-action,
  .account-menu summary,
  .function-return-home,
  .function-link,
  .board-panel,
  .account-dialog { border: 2px solid ButtonText; }
  .portal-core-trigger:focus-visible,
  .orbit-action:focus-visible,
  .function-return-home:focus-visible { outline: 3px solid Highlight; }
  .orbit-action-star { background: Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .portal-orbit-visual::before,
  .portal-orbit-visual::after,
  .orbit { opacity: .76; }
  .reactor { filter: brightness(1.08); box-shadow: inset 0 0 42px rgba(111, 137, 255, .34), 0 0 44px rgba(88, 129, 255, .34), 0 0 110px rgba(111, 62, 210, .28); }
  .orbit-action { border-color: rgba(181, 201, 255, .88); box-shadow: inset 0 0 18px rgba(112, 139, 255, .1), 0 0 22px rgba(101, 86, 255, .2); }
  .portal-dust,
  .portal-touch-ripple { display: none; }
}
