.realm {
  --forest: #183f40;
  --cream: #fff9e8;
  background: #f8f2e5;
  color: #263b35;
}
.realm main { width: 100%; margin: 0; padding: 0; }
.realm h1, .realm h2, .realm h3, .realm p { margin: 0; }
.realm-bar {
  position: sticky; top: 0; z-index: 4; height: 66px; min-height: 0; flex-flow: row nowrap; align-items: center;
  padding: 0 max(5vw, calc((100vw - 1180px) / 2));
  background: #fffaf0; border-bottom: 1px solid #d4c8a9;
}
.realm-bar img, .realm-footer img { display: block; object-fit: contain; max-height: 57px; }
.realm-bar nav { display: flex; order: 0; width: auto; height: auto; padding: 0; align-items: center; gap: clamp(12px, 3vw, 34px); }
.realm-bar nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: #334b41; }
.realm-bar nav .realm-sign { min-height: 38px; padding: 4px 17px; border-radius: 6px; background: var(--forest); color: white; }
.realm-hero {
  position: relative; isolation: isolate; display: grid; align-items: center;
  min-height: clamp(430px, 41vw, 630px); padding: 48px max(6vw, calc((100vw - 1180px) / 2));
  background: var(--forest); color: var(--cream);
}
.realm-landscape, .realm-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.realm-landscape { object-fit: cover; object-position: center; z-index: -2; }
.realm-hero::before {
  content: ""; z-index: -1;
  background: linear-gradient(90deg, #112f34f7, #153238cc 27%, #17323954 52%, transparent 75%);
}
.realm-hero-copy { min-width: 0; }
.realm-server { color: #ffe3a0; font-weight: 700; letter-spacing: .13em; }
.realm-hero h1, .realm-section h2 {
  font-family: "Songti SC", "STSong", "SimSun", serif; font-weight: 800; letter-spacing: -.02em;
}
.realm-hero h1 { margin: 13px 0 16px; color: #fff9e8; font-size: clamp(34px, 4.4vw, 68px); line-height: 1.09; }
.realm-hero-copy > p:not(.realm-server) { max-width: 29em; color: white; line-height: 1.85; text-shadow: 0 1px 4px #19353a; }
.realm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 430px; margin-top: 24px; }
.realm-actions a {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 56px; padding: 10px 15px; border: 1px solid #fff4cd; border-radius: 8px;
  background: #ffda89; color: #382b18; font-size: 18px; font-weight: 750;
  box-shadow: 0 3px 0 #98723a, 0 5px 14px #10252545;
}
.realm-actions a + a { background: #c0eadb; color: #183e34; border-color: #e2fff4; box-shadow: 0 3px 0 #527e71, 0 5px 14px #10252545; }
.realm-actions a span { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #ffffff63; flex: none; }
.realm-actions a:hover, .realm-actions a:focus-visible { filter: brightness(1.08); }
.realm-perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 6vw; padding: 13px 16px; background: var(--forest); color: #fff0c9; font-size: 14px; }
.realm-section { width: min(1180px, 90%); margin: 46px auto; }
.realm-section h2 { font-size: clamp(27px, 3.2vw, 40px); line-height: 1.25; }
.realm-matches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 19px; border-top: 2px solid #b09964; }
.realm-matches article { padding: 17px 20px 19px 0; border-bottom: 1px solid #d3c5a7; }
.realm h3 { font-size: 19px; color: var(--forest); }
.realm-matches p, .realm-stories p { color: #4d594a; font-size: 15px; line-height: 1.85; margin-top: 5px; }
.realm-journey { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(25px, 6vw, 90px); align-items: start; }
.realm-stories article { margin-top: 17px; }
.realm-form { scroll-margin-top: 82px; background: #fffaf0; border: 1px solid #cfbd98; border-top: 4px solid var(--forest); border-radius: 10px; padding: clamp(18px, 2.5vw, 30px); }
.realm-form h2 { font-size: 27px; }
.realm-form .realm-platforms { margin: 6px 0 16px; font-size: 14px; }
.realm-form .account-hint { margin-bottom: 10px; color: #6b604f; }
.realm-form input { background: white; }
.realm-form .button.gold { width: 100%; background: var(--forest); border-color: var(--forest); color: white; }
.realm-footer { display: flex; align-items: center; justify-content: space-between; background: #e8e0ce; padding: 18px 5vw; }
.realm a:focus-visible, .realm button:focus-visible { outline: 3px solid #b36c32; outline-offset: 3px; }
@media (max-width: 740px) {
  .realm-bar { height: 58px; padding: 0 4vw; gap: 8px; }
  .realm-bar img { width: 78px; max-height: 47px; }
  .realm-bar nav a { font-size: 13px; }
  .realm-bar nav .realm-sign { padding-inline: 10px; }
  .realm-hero { min-height: 460px; align-items: end; padding: 110px 5vw 25px; }
  .realm-landscape { object-position: 67% center; }
  .realm-hero::before { background: linear-gradient(0deg, #102c31f7, #102e32ce 44%, #19353b28 90%); }
  .realm-section { margin-block: 32px; }
  .realm-matches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .realm-journey { grid-template-columns: 1fr; }
  .realm-perks { gap: 4px 14px; font-size: 12px; }
}
@media (max-width: 430px) {
  .realm-hero h1 { font-size: clamp(29px, 8vw, 34px); }
  .realm-actions { gap: 9px; }
  .realm-actions a { min-height: 50px; padding-inline: 9px; font-size: clamp(14px, 4vw, 16px); }
  .realm-matches { grid-template-columns: 1fr; }
  .realm-matches article { padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
