/* ==========================================================================
   THE GATE — composition pass
   The login was a rectangle pinned to the right edge, which reads as a web app.
   This puts an arched gate in the centre of a full-bleed scene with the hero
   standing to its left, the way a game client opens.
   ========================================================================== */

#title .cc-stage { right: 0; left: 0; }
#title .cc-pad { left: 24%; transform: translateX(-50%); }
#title .cc-stage::before { left: 4%; }
#title .cc-stage::after { display: none; }

#title .rh-lockup {
  left: 50%; top: 12px; gap: 14px;
  transform: translateX(-50%);
  animation: rhInCenter .9s cubic-bezier(.2,1.1,.35,1) both;
}
#title .rh-crest { width: 74px; height: 88px; }
#title .rh-name { font-size: clamp(28px, 3vw, 46px); }
#title .rh-rule i { width: clamp(32px, 4.5vw, 64px); }
@keyframes rhInCenter {
  from { opacity: 0; transform: translate(-50%, -18px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

#title .cc-panel {
  left: 50%; right: auto; top: 124px; bottom: 48px;
  width: 440px;
  transform: translateX(-50%);
  border-radius: 190px 190px 6px 6px;
  background: linear-gradient(180deg, #2b2a33 0%, #1d1c25 10%, #14151d 48%, #0d0e14 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,240,200,.16),
    inset 0 0 0 5px #0c0d13,
    inset 0 0 0 6px rgba(217,180,106,.30),
    inset 0 0 0 9px #15161e,
    0 40px 100px rgba(0,0,0,.9),
    0 0 0 1px #000;
}
/* arch trim: a gold band that follows the rounded top */
#title .cc-panel::before {
  left: 7px; right: 7px; top: 6px; height: 200px; border-radius: 190px 190px 0 0;
  background: linear-gradient(180deg, rgba(245,224,168,.9), rgba(220,192,122,.55) 30%, rgba(169,131,47,0) 88%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 2px; box-shadow: none;
  pointer-events: none;
}
#title .cc-panel::after {
  inset: 6px; border-radius: 184px 184px 2px 2px;
  pointer-events: none;
  background:
    radial-gradient(circle at 22px 168px, #b39a5c 0 1.4px, #4a3d1c 1.5px 2.4px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 22px) 168px, #b39a5c 0 1.4px, #4a3d1c 1.5px 2.4px, transparent 2.5px),
    radial-gradient(circle at 18px calc(100% - 20px), #b39a5c 0 1.4px, #4a3d1c 1.5px 2.4px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 18px) calc(100% - 20px), #b39a5c 0 1.4px, #4a3d1c 1.5px 2.4px, transparent 2.5px);
  background-repeat: no-repeat;
}
#title .cc-panel > #titleBody { padding: 52px 30px 0; }
#title .cc-panel .fine { margin: 16px 30px 20px; }

#title #titleBody .acc-guest {
  font-size: 9.5px; letter-spacing: .10em; white-space: nowrap;
  padding: 9px 10px;
}

/* the primary plate reads as the door handle */
#title #titleBody button[type=submit],
#title #titleBody .signin,
#title #titleBody .btn.primary {
  font-size: 13px; padding: 13px 14px; letter-spacing: .28em;
}

@media (max-width: 900px) {
  #title .cc-panel { left: 50%; right: auto; top: 104px; bottom: 14px; width: min(440px, calc(100vw - 24px)); }
  #title .cc-panel > #titleBody { padding: 44px 22px 0; }
  #title .cc-pad { left: 50%; }
  #title .cc-stage::before { display: none; }
  #title .cc-stage { right: 0; }
}
