:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #120e1b;
  color: #eee5f0;
  --gold: #f5dfae;
}
* { box-sizing: border-box; }
body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: radial-gradient(ellipse at 55% 10%, #271b36 0%, #120e1b 72%);
}
.gateway {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(23rem, 1fr);
  width: min(85rem, 100%);
  min-height: min(50rem, calc(100svh - 4rem));
  border: 1px solid #684d78;
  box-shadow: 0 20px 70px #09060e88;
}
.crest {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: clamp(1rem, 3vw, 2.5rem) clamp(.5rem, 2vw, 1.5rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, #07101411 28%, #07141b11 55%, #090d19e6 100%),
    #0e2731 url('/assets/realm-background.png') center / cover;
}
.crest img {
  display: block;
  width: min(100%, 50rem);
  height: auto;
  filter: drop-shadow(0 14px 20px #03050a99);
}
figcaption {
  padding-top: 1.75rem;
  text-align: center;
  color: #fff1ce;
  font: 400 clamp(2rem, 4.2vw, 4rem)/.99 Georgia, serif;
  text-shadow: 0 2px 12px #000;
}
.portal {
  padding: clamp(1.7rem, 4vw, 4rem);
  background: linear-gradient(150deg, #2a1c39, #171020 82%);
}
h1 {
  margin: 0 0 1rem;
  color: var(--gold);
  overflow-wrap: anywhere;
  font: 400 clamp(2rem, 3.4vw, 3.4rem)/1.05 Georgia, serif;
}
.intro { margin: 0 0 1.4rem; color: #cec1d4; line-height: 1.55; }
.options { display: flex; border-bottom: 1px solid #78618c; margin-bottom: 1rem; }
.options a {
  flex: 1;
  padding: .7rem .2rem;
  text-align: center;
  text-decoration: none;
  color: #eee0ee;
  border-bottom: 2px solid transparent;
}
.options a[aria-current=page] { border-color: var(--gold); color: var(--gold); font-weight: 650; }
form { display: grid; gap: .45rem; }
label { margin-top: .4rem; color: #e1ccab; font-size: .94rem; }
input, textarea, button { font: inherit; }
input:not([type=hidden]), textarea {
  min-height: 46px;
  width: 100%;
  padding: .6rem .7rem;
  color: #fdf5ff;
  background: #160f22;
  border: 1px solid #846b95;
  border-radius: 4px;
}
textarea { resize: vertical; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.primary {
  margin-top: .75rem;
  min-height: 48px;
  padding: .5rem;
  border: 1px solid #f4d9a3;
  border-radius: 4px;
  color: #24152a;
  background: linear-gradient(115deg, #edce8e, #b89156);
  font-weight: 750;
  cursor: pointer;
}
.primary:hover, .social a:hover, .game-support:hover { filter: brightness(1.12); }
.hint, #feedback, #social-status { margin: .15rem 0; color: #deccdf; line-height: 1.45; }
#feedback, #social-status { margin-block: .75rem; }
.social { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.45rem; }
.social a, .game-support {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  min-height: 46px;
  padding: .55rem;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.google { color: #222; background: #fff; }
.google span {
  font: 800 1.1rem system-ui, sans-serif;
  background: conic-gradient(#4285f4 0 28%, #34a853 28% 48%, #fbbc05 48% 68%, #ea4335 68% 87%, #4285f4 87%);
  color: #4285f4;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.facebook { color: #fff; background: #0866da; }
.facebook span { font: 800 1.3rem Arial, sans-serif; }
.game-support {
  width: min(100%, 19rem);
  margin: 1.25rem auto 0;
  color: #f4dfac;
  border: 1px solid #8c947e;
  background: #203b45;
}
@media (max-width: 760px) {
  body { padding: .75rem; }
  .gateway { grid-template-columns: 1fr; max-width: 36rem; }
  .crest { padding: .75rem .75rem 1.2rem; }
  .crest img { max-width: 25rem; }
  figcaption { padding-top: .7rem; font-size: clamp(1.7rem, 7vw, 2.5rem); }
  figcaption br { display: none; }
}
@media (max-width: 390px) { .social { grid-template-columns: 1fr; } }
.realm-shell { display: block; padding: 0; }
.realm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid #684d78;
  background: #1b1226;
}
.realm-brand { color: var(--gold); font: 400 1.5rem Georgia, serif; }
.realm-signout {
  padding: .45rem .8rem;
  min-height: 42px;
  border: 1px solid #846b95;
  border-radius: 4px;
  color: var(--gold);
  background: #24162f;
  cursor: pointer;
}
