.system-entry {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 195, 111, 0.32);
  border-radius: 180px 180px 24px 24px;
  background:
    linear-gradient(180deg, rgba(23, 13, 30, 0.74), rgba(4, 3, 8, 0.95) 40%),
    var(--gate-panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 -30px 90px rgba(0, 0, 0, 0.6),
    0 28px 90px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(.2,.76,.25,1),
    border-color 400ms ease,
    box-shadow 400ms ease;
}

.system-gate[data-gate-phase="awake"] .system-entry,
.system-gate[data-gate-phase="opening"] .system-entry {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.system-gate[data-gate-phase="awake"] .system-entry--kagome {
  transition-delay: 340ms;
}

.system-gate[data-gate-phase="awake"] .system-entry--solomon {
  transition-delay: 470ms;
}

.system-entry--kagome {
  grid-area: kagome;
  border-color: rgba(131, 236, 237, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 -30px 90px rgba(0, 0, 0, 0.6),
    0 28px 90px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(77, 218, 229, 0.08);
}

.system-entry--solomon {
  grid-area: solomon;
  border-color: rgba(232, 195, 111, 0.48);
}

.system-entry::before,
.system-entry::after {
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px solid rgba(232, 195, 111, 0.16);
  border-radius: 165px 165px 16px 16px;
  content: "";
  pointer-events: none;
}

.system-entry::after {
  inset: 19px;
  border-style: dashed;
  opacity: 0.34;
}

.system-entry__backglow {
  position: absolute;
  inset: -18%;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.58;
  filter: blur(48px);
  animation: portal-backglow-breathe 5.8s ease-in-out infinite alternate;
  pointer-events: none;
}

.system-entry--kagome .system-entry__backglow {
  background:
    radial-gradient(circle at 50% 28%, rgba(125, 241, 245, 0.42), transparent 28%),
    radial-gradient(circle at 50% 68%, rgba(30, 122, 148, 0.32), transparent 48%),
    radial-gradient(circle at 26% 76%, rgba(111, 79, 183, 0.18), transparent 34%);
}

.system-entry--solomon .system-entry__backglow {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 211, 115, 0.28), transparent 28%),
    radial-gradient(circle at 50% 66%, rgba(116, 48, 151, 0.42), transparent 49%);
  animation-delay: -2.2s;
}

.system-entry__arch {
  position: absolute;
  top: 8%;
  left: 50%;
  z-index: 1;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 195, 111, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(232, 195, 111, 0.018),
    0 0 0 24px rgba(232, 195, 111, 0.014);
  transform: translateX(-50%);
  pointer-events: none;
}

.system-entry__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 610px;
  padding: clamp(32px, 3vw, 48px) clamp(20px, 2.5vw, 36px) clamp(22px, 2.5vw, 34px);
  text-align: center;
}

.system-entry__sigil {
  display: grid;
  width: clamp(78px, 8vw, 112px);
  aspect-ratio: 1;
  margin: 0 auto 13px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--gate-gold);
  background: rgba(3, 2, 6, 0.64);
  box-shadow:
    0 0 0 8px rgba(232, 195, 111, 0.025),
    inset 0 0 28px rgba(232, 195, 111, 0.08),
    0 0 32px rgba(232, 195, 111, 0.12);
  animation: portal-sigil-float 6s ease-in-out infinite;
}

.system-entry__sigil--kagome {
  color: var(--gate-cyan);
  box-shadow:
    0 0 0 8px rgba(131, 236, 237, 0.025),
    inset 0 0 28px rgba(131, 236, 237, 0.1),
    0 0 32px rgba(131, 236, 237, 0.13);
}

.system-entry__sigil svg {
  width: 72%;
  height: 72%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 7px currentColor);
}

.system-entry__type {
  margin: 0 0 5px;
  opacity: 0.82;
}

.system-entry h2 {
  margin: 0;
  color: var(--gate-gold-bright);
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(1.72rem, 2.7vw, 2.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.09em;
  text-shadow: 0 0 20px rgba(232, 195, 111, 0.2);
}

.system-entry--kagome h2 {
  color: #d9fcff;
  text-shadow: 0 0 20px rgba(131, 236, 237, 0.2);
}

.system-entry__subtitle {
  margin: 5px 0 0;
  color: rgba(232, 195, 111, 0.84);
  font-family: "YuMincho", "Yu Mincho", serif;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
}

.system-entry--kagome .system-entry__subtitle {
  color: rgba(159, 239, 242, 0.84);
}

.system-entry__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  width: min(270px, 86%);
  margin: 14px auto;
  color: var(--gate-gold);
  font-size: 0.7rem;
}

.system-entry__divider::before,
.system-entry__divider::after {
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, currentColor);
}

.system-entry__divider::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

.system-entry--kagome .system-entry__divider {
  color: var(--gate-cyan);
}

.system-entry__copy {
  margin: 0;
  color: rgba(244, 234, 212, 0.74);
  font-family: "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(0.78rem, 0.9vw, 0.9rem);
  line-height: 1.82;
}

.system-entry__keywords,
.system-gate__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.system-entry__keywords li,
.system-gate__features li {
  padding: 5px 9px;
  border: 1px solid rgba(232, 195, 111, 0.22);
  border-radius: 999px;
  color: rgba(244, 234, 212, 0.78);
  background: rgba(4, 3, 8, 0.42);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.system-entry--kagome .system-entry__keywords li {
  border-color: rgba(131, 236, 237, 0.28);
  color: rgba(211, 251, 252, 0.84);
}

.system-gate__status {
  display: grid;
  gap: 4px;
  margin: 16px 0 12px;
  padding: 11px 13px;
  border: 1px solid rgba(232, 195, 111, 0.25);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(30, 13, 38, 0.55), rgba(4, 3, 8, 0.72));
  box-shadow: inset 0 0 20px rgba(232, 195, 111, 0.035);
  text-align: left;
}

.system-gate__status--sealed,
.system-gate__status--kagome {
  border-color: rgba(131, 236, 237, 0.3);
  background:
    radial-gradient(circle at 88% 24%, rgba(92, 229, 235, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(11, 36, 43, 0.56), rgba(3, 7, 10, 0.78));
  box-shadow:
    inset 0 0 24px rgba(131, 236, 237, 0.045),
    0 0 24px rgba(79, 211, 221, 0.04);
}

.system-gate__status--sealed {
  margin-top: auto;
}

.system-gate__status--kagome .system-gate__status-value {
  color: #d7fcff;
  text-shadow: 0 0 12px rgba(131, 236, 237, 0.24);
}

.system-gate__status-value {
  color: #fff4d2;
  font-family: "YuMincho", "Yu Mincho", serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.system-gate__status-note {
  color: rgba(244, 234, 212, 0.62);
  font-size: 0.7rem;
  line-height: 1.5;
}

.system-gate__action,
.system-gate__subaction,
.system-gate__utility button {
  font: inherit;
  cursor: pointer;
}

.system-gate__action {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(232, 195, 111, 0.7);
  border-radius: 999px;
  color: #fff7dd;
  background:
    linear-gradient(180deg, rgba(91, 40, 113, 0.92), rgba(31, 14, 40, 0.96));
  box-shadow:
    inset 0 0 18px rgba(232, 195, 111, 0.1),
    0 0 28px rgba(112, 57, 139, 0.2);
  font-family: "YuMincho", "Yu Mincho", serif;
  letter-spacing: 0.09em;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.system-gate__action:hover:not(:disabled),
.system-gate__action:focus-visible:not(:disabled) {
  border-color: var(--gate-gold-bright);
  box-shadow:
    inset 0 0 24px rgba(232, 195, 111, 0.16),
    0 0 38px rgba(150, 80, 181, 0.32);
  transform: translateY(-2px);
}

.system-entry--kagome .system-gate__action {
  border-color: rgba(131, 236, 237, 0.68);
  color: #e2feff;
  background:
    linear-gradient(180deg, rgba(20, 90, 103, 0.9), rgba(5, 25, 31, 0.96));
  box-shadow:
    inset 0 0 22px rgba(131, 236, 237, 0.12),
    0 0 30px rgba(67, 208, 219, 0.13);
}

.system-entry--kagome .system-gate__action:hover:not(:disabled),
.system-entry--kagome .system-gate__action:focus-visible:not(:disabled) {
  border-color: #c9fcff;
  box-shadow:
    inset 0 0 28px rgba(131, 236, 237, 0.18),
    0 0 42px rgba(77, 224, 233, 0.24);
}

.system-gate__action-glyph {
  color: var(--gate-cyan);
  font-size: 0.72rem;
  filter: drop-shadow(0 0 6px rgba(131, 236, 237, 0.72));
}

.system-gate__subaction {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid rgba(232, 195, 111, 0.2);
  border-radius: 999px;
  color: rgba(244, 234, 212, 0.72);
  background: rgba(3, 2, 5, 0.65);
  font-size: 0.76rem;
}

.system-gate__action:disabled,
.system-gate__subaction:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.system-gate__ad {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(232, 195, 111, 0.28);
  border-radius: 13px;
  background:
    radial-gradient(circle at 82% 28%, rgba(151, 57, 182, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(35, 13, 44, 0.76), rgba(4, 3, 8, 0.86));
  text-align: left;
}

.system-gate__ad--kagome {
  border-color: rgba(131, 236, 237, 0.3);
  background:
    radial-gradient(circle at 84% 24%, rgba(80, 226, 233, 0.18), transparent 34%),
    radial-gradient(circle at 16% 86%, rgba(109, 73, 181, 0.17), transparent 38%),
    linear-gradient(135deg, rgba(8, 39, 48, 0.8), rgba(4, 6, 12, 0.9));
  box-shadow: inset 0 0 24px rgba(131, 236, 237, 0.035);
}

.system-gate__ad h3 {
  margin: 5px 0 6px;
  color: var(--gate-gold);
  font-family: "YuMincho", "Yu Mincho", serif;
  font-size: 0.98rem;
  font-weight: 500;
}

.system-gate__ad--kagome h3 {
  color: #c9fbff;
  text-shadow: 0 0 14px rgba(131, 236, 237, 0.16);
}

.system-gate__ad--kagome .system-gate__features li {
  border-color: rgba(131, 236, 237, 0.25);
  color: rgba(211, 251, 252, 0.82);
}

.system-gate__ad p {
  margin: 0;
  color: rgba(244, 234, 212, 0.7);
  font-size: 0.7rem;
  line-height: 1.58;
}
