/* Homepage brand correction only: reserve the original two-line title area. */
.games-portal .portal-brand{height:1.96em;margin:23px 0;display:flex;align-items:center}.games-portal .portal-brand img{width:320px;height:1.96em;max-width:100%;object-fit:contain;object-position:left center}

/* Homepage only: an unobstructed stage, visually behind the navigation and real CTAs. */
.home [data-kore-hero] .crystal-stage {
  min-width: 0;
  isolation: isolate;
  background: transparent;
}
.home [data-kore-hero] .kore-flow,
.home [data-kore-hero] .kore-ideas,
.home [data-kore-hero] #crystal,
.home [data-kore-hero] #crystal-fallback {
  position: absolute;
  pointer-events: none;
}
.home [data-kore-hero] .kore-flow,
.home [data-kore-hero] .kore-ideas,
.home [data-kore-hero] #crystal { inset: 0; width:100%; height:100%; }
.home [data-kore-hero] .kore-flow { z-index: 0; }
.home [data-kore-hero] .kore-ideas { z-index: 1; overflow: hidden; }
.home [data-kore-hero] #crystal { z-index: 2; visibility: hidden; }
.home [data-kore-hero] .kore-webgl #crystal { visibility: visible; }
.home [data-kore-hero] #crystal-fallback {
  z-index: 2; left: 50%; top: 46%; width: 70%; height: 76%;
  margin: 0; transform: translate(-50%,-50%);
}
.home [data-kore-hero] .kore-webgl #crystal-fallback { visibility: hidden; }
.home [data-kore-hero] .kore-idea {
  position:absolute; left: 0; top: 0; display: block; opacity: 0;
  color: #dceae6;
  font: 500 clamp(11px, 1.23vw, 19px)/1.3 'DM Sans',system-ui,sans-serif;
  letter-spacing: .14em;
  text-shadow: 0 2px 8px #09151b, 0 0 18px #98dddf4d;
  white-space: nowrap;
}
.home [data-kore-hero] .object-label { z-index: 3; bottom: 39px; }
.home [data-kore-hero] #motion {
  z-index: 4; right: 0; left: auto; top:auto; bottom: 0;
  min-height: 32px; min-width: 92px;
  color: #d6e4e8; background:#0b2028;
  border-color:#405660;
}
.home [data-kore-hero] #motion[hidden] {display:none}
.home [data-kore-hero] #motion:disabled {cursor:default;opacity:.75}
.home [data-kore-hero] :is(.hero-copy, .crystal-stage) { min-inline-size: 0; }
.home [data-kore-hero] .hero-copy h1 { overflow-wrap: anywhere; }
.home [data-kore-hero] :is(.actions .button, #motion) {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}
.home [data-kore-hero] .actions .home-discord {
  gap: .55rem;
  min-block-size: 44px;
  padding-inline: .85rem;
}
@media (max-width:760px) {
  .home [data-kore-hero] .crystal-stage { margin-top: 16px; }
  .home [data-kore-hero] .object-label { bottom: 34px; }
  .home [data-kore-hero] #motion { min-height:44px; }
}
@media (prefers-reduced-motion: reduce) {
  .home [data-kore-hero] .kore-ideas { display:none; }
}

.home [data-kore-hero] .kore-mesh2d {
  position:absolute; inset:0; width:100%; height:100%; z-index:2;
  pointer-events:none; visibility:hidden;
}
.home [data-kore-hero] .kore-software .kore-mesh2d { visibility:visible; }
.home [data-kore-hero] .kore-software #crystal-fallback { visibility:hidden; }

@media (max-width:540px) {
  .home .hero[data-kore-hero] { padding-top: 34px; padding-bottom: 32px; row-gap: 0; }
  .home [data-kore-hero] .hero-copy h1 {
    font-size: clamp(49px,14vw,70px); margin-block: 14px 17px;
  }
  .home [data-kore-hero] .hero-copy .intro { margin-block: 0; }
  .home [data-kore-hero] .actions { margin-top: 23px; row-gap: 8px; }
  .home [data-kore-hero] .actions .button { min-height: 44px; padding-block: 9px; }
  .home [data-kore-hero] .actions .outline { column-gap: .7rem; }
  .home [data-kore-hero] .crystal-stage { height: 292px; margin-top: 12px; }
}

/* Charge travels through the existing glyphs; its short glint dissolves well before return. */
/* The container only clips the stage; it cannot trap the word behind the crystal.
   Each decorative word chooses its own depth layer on the signed orbit. */
.home [data-kore-hero] .kore-ideas { z-index:auto; }
.home [data-kore-hero] .kore-idea {
  z-index:1;
  color:var(--kore-word-color, #dceae6);
}
.home [data-kore-hero] .kore-glyph {
  display:inline-block;
  transform:translateY(calc(var(--kore-curve, 0px) * var(--kore-glyph-arc, 0)))
    rotate(calc(var(--kore-tilt, 0deg) * var(--kore-glyph-tilt, 0)));
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .home [data-kore-hero] .kore-glyph {
    color: transparent;
    background-image: linear-gradient(105deg,
      var(--kore-word-color, #dceae6) calc(var(--kore-word-crest, -13%) - 16%),
      #b2e9e3 calc(var(--kore-word-crest, -13%) - 7%),
      #fffaf0 var(--kore-word-crest, -13%),
      #ffd2af calc(var(--kore-word-crest, -13%) + 6%),
      var(--kore-word-color, #dceae6) calc(var(--kore-word-crest, -13%) + 15%));
    background-size:calc(100% * var(--kore-letter-count, 1)) 100%;
    background-position:var(--kore-letter-pos, 0%) 0;
    background-repeat:no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 1px 3px #0b191e);
  }
}
.home [data-kore-hero] .kore-idea::after {
  content: "";
  position: absolute;
  inset-block-start: .22em;
  inset-inline-start: var(--kore-word-glint, 0%);
  inline-size: .26em;
  block-size: 1px;
  transform: translateX(-100%) rotate(-24deg);
  background: linear-gradient(90deg, #86e3d300, #e9fff0 65%, #ffe4b8);
  opacity: calc(.82 * var(--kore-word-charge, 0));
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .home [data-kore-hero] .kore-idea::after { display: none; }
}
