.game-title {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(24px, 6svh, 68px) clamp(20px, 7vw, 100px);
  overflow: hidden;
  background: #202735;
}
#title-scene { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.game-title::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, #111827 2%, #181b2cee 23%, #181a2a8c 54%, #2323393c 82%),
    linear-gradient(0deg, #131928, #181d3430 48%, #152032cb),
    radial-gradient(ellipse at 70% 48%, #6e476980, #19223762 53%);
}
.title-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  width: min(100%, 1250px);
}
.title-copy { position: relative; z-index: 1; }
.title-emblem {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border: 2px solid #aa8962;
  background: linear-gradient(145deg, #50324e, #261d38 74%);
  box-shadow: inset 0 0 0 3px #241c31, inset 0 0 0 5px #75565d, 0 5px #121523;
  clip-path: var(--pixel-corners);
}
.title-emblem img { display: block; width: 61px; height: 61px; image-rendering: pixelated; }
.title-copy h1 {
  margin: 17px 0 29px;
  color: #fae4b3;
  font-size: clamp(3.15rem, 8.5vw, 7.8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-shadow: 0 4px #8e5d54, 0 9px #171421;
}
.title-actions {
  display: grid;
  gap: 12px;
  width: min(100%, 298px);
  padding-top: 19px;
  border-top: 2px solid #b08a624f;
}
.title-actions :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  padding: 8px 16px;
  border: 2px solid #7c7588;
  background: #272a3f;
  box-shadow: inset 0 2px #81738c64, inset 0 -4px #151829, 0 3px #141625;
  color: #f0e3da;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.title-actions .title-play { border-color: #dbb375; background: linear-gradient(#9b7153, #65473e); color: #fff0c5; box-shadow: inset 0 2px #e7b4798f, inset 0 -4px #493136, 0 3px #171727; }
.title-actions :is(a, button):is(:hover, :focus-visible) { border-color: #ffdb9b; color: #fff1ce; background: #6e5046; }
.title-actions :focus-visible { outline-color: #f6cb95; outline-offset: 4px; }
.title-hero {
  position: relative;
  min-width: 0;
  min-height: 300px;
  aspect-ratio: 1 / 1.04;
  background: radial-gradient(ellipse at 50% 62%, #b879cd51, #624cb530 28%, #25204904 61%);
}
.title-hero img { position: absolute; left: 50%; transform: translateX(-50%); height: auto; image-rendering: pixelated; }
.title-rune { bottom: -6%; width: min(89%, 458px); opacity: .85; filter: drop-shadow(0 0 18px #b570f06b); }
.title-ender { bottom: 12%; width: min(110%, 586px); filter: drop-shadow(7px 14px 0 #161828a1); }
.title-hero::after {
  position: absolute;
  top: 40%;
  left: 27%;
  width: 4px;
  height: 4px;
  content: '';
  background: #d8a5df;
  box-shadow: 41px -44px #ba81c5, 180px -5px #edb782, 229px 44px #9e81d8, 117px 106px #dfb0dd, -21px 76px #bf8fdc, 160px -74px #ddc08f;
  animation: title-motes 4.6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes title-motes { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: translateY(-8px); } }

@media (max-width: 740px) {
  .game-title { padding-block: clamp(24px, 6svh, 58px) 18px; }
  .game-title::before { background: linear-gradient(180deg, #141929f5, #191a2ab0 54%, #192238a0), radial-gradient(ellipse at 50% 66%, #82649363, transparent 58%); }
  .title-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
  .title-copy { width: min(100%, 400px); text-align: center; }
  .title-copy h1 { margin: 14px 0 22px; font-size: clamp(3rem, 12vw, 5.3rem); }
  .title-emblem { width: 56px; margin-inline: auto; }
  .title-emblem img { width: 47px; height: 47px; }
  .title-actions { margin-inline: auto; }
  .title-hero { width: min(100%, 398px, 49svh); min-height: 180px; }
  .title-hero::after { left: 20%; box-shadow: 37px -26px #ba81c5, 86px -52px #ddc08f, 128px 52px #9e81d8, 77px 86px #dfb0dd; }
}

@media (prefers-reduced-motion: reduce) { .title-hero::after { animation: none; } }
