:root {
  color-scheme: dark;
  background: #0d111a;
  font-family: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
.version-gateway {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  container-type: size;
  /* The medallion's / runs 0.8 horizontal units per vertical unit.
     All scene edges and the light beam share this exact geometry. */
  --seam-run: 40cqh;
  --medallion-size: clamp(240px, 42cqh, 440px);
  --guild-logo-height: clamp(88px, 10cqh, 128px);
}
h1 {
  position: absolute;
  z-index: 4;
  top: 5.5cqh;
  inset-inline: 5%;
  margin: 0;
  color: #fff1ce;
  text-align: center;
  font-size: clamp(32px, 5.3vw, 96px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-shadow: 0 3px 4px #000, 0 6px 24px #000b;
  pointer-events: none;
}
.version-choices, .version-choice, .version-scenery, .version-scenery img { position: absolute; inset: 0; }
.version-choice { color: #ffe1a0; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.version-classic {
  background: #6a3218;
  clip-path: polygon(0 0, calc(50% + var(--seam-run)) 0, calc(50% - var(--seam-run)) 100%, 0 100%);
}
.version-forever {
  color: #d4f6ff;
  background: #102d4c;
  clip-path: polygon(calc(50% + var(--seam-run)) 0, 100% 0, 100% 100%, calc(50% - var(--seam-run)) 100%);
}
.version-scenery { display: block; overflow: hidden; }
.version-scenery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .35s ease, transform .6s ease;
}
.version-classic .version-scenery img { object-position: 35% center; }
.version-forever .version-scenery img { object-position: 65% center; }
.version-choice::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#0005, transparent 30%, #0001 55%, #0009), radial-gradient(ellipse at center, transparent 35%, #0005);
}
.version-copy {
  position: absolute;
  z-index: 1;
  top: 78%;
  left: 21%;
  width: 36%;
  transform: translate(-50%, -25%);
  text-align: center;
  text-shadow: 0 2px 4px #000, 0 5px 24px #000;
  border-radius: 4px;
}
.version-forever .version-copy { left: 76%; }
.guild-logo {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--guild-logo-height) * 1.5);
  height: var(--guild-logo-height);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.guild-logo img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px #000d) drop-shadow(0 0 12px #0008);
}
.version-label { display: block; font-size: clamp(11px, 1.3vw, 21px); text-transform: uppercase; letter-spacing: .36em; }
.guild-name {
  display: block;
  margin-top: 9px;
  font-size: clamp(30px, 3.8vw, 68px);
  line-height: 1.1;
  font-variant: small-caps;
  white-space: nowrap;
}
.version-rule {
  position: relative;
  display: block;
  width: 78%;
  height: 1px;
  margin: 14px auto 10px;
  background: linear-gradient(90deg, transparent, currentColor 35%, currentColor 65%, transparent);
  box-shadow: 0 1px 6px currentColor;
}
.version-rule::after {
  content: '';
  position: absolute;
  left: calc(50% - 3px);
  top: -3px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid currentColor;
  background: #1c211e;
}
.version-arrow { display: block; font-family: Georgia, serif; font-size: 39px; line-height: 1; transition: transform .25s ease; }
.version-divider {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 220cqh;
  transform: translate(-50%, -50%) rotate(38.659808deg);
  background: #fff3cf;
  box-shadow: -2px 0 5px #e3a12a, 2px 0 5px #56d4ff, 0 0 20px #ffdf7b8c;
  pointer-events: none;
}
.version-medallion {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: var(--medallion-size);
  height: var(--medallion-size);
  /* At half-height, the original logo's seam is at 47.65% of its width. */
  transform: translate(-47.65%, -50%);
  filter: drop-shadow(0 7px 14px #0009);
  pointer-events: none;
}
.version-choice:focus-visible { outline: none; }
.version-choice:focus-visible .version-copy { outline: 2px solid currentColor; outline-offset: 14px; background: #0c151c66; }
.version-choice:focus-visible .version-arrow { transform: translateX(5px); }
@media (hover: hover) {
  .version-choice:hover .version-scenery img { filter: brightness(1.12); transform: scale(1.025); }
  .version-choice:hover .version-arrow { transform: translateX(7px); }
}
@media (max-aspect-ratio: 4/5) {
  .version-gateway { min-height: 650px; --medallion-size: clamp(160px, 47cqw, 205px); --guild-logo-height: clamp(50px, 7.7cqh, 66px); }
  h1 { top: 4.5cqh; inset-inline: 6%; font-size: clamp(30px, 7.9vw, 48px); }
  .version-copy { top: 31%; left: 35%; width: 66%; transform: translate(-50%, -50%); }
  .version-forever .version-copy { top: 82%; left: 65%; }
  .guild-logo { bottom: calc(100% + 8px); }
  .version-label { font-size: clamp(10px, 2.9vw, 15px); letter-spacing: .27em; }
  .guild-name { margin-top: 7px; font-size: clamp(27px, 7.1vw, 42px); }
  .version-rule { margin-top: 12px; }
  .version-arrow { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .version-scenery img, .version-arrow { transition: none; }
}
