.storm-home {
  --home-ink: #f7f0e4;
  --home-muted: #b9c6c5;
  --home-deep: #0e1c23;
  --home-line: #b1c2bf36;
  --home-gold: #f5cb87;
  --home-focus: #98e4d5;
  --home-serif: Georgia, 'Times New Roman', serif;
  color-scheme: dark;
  margin: 0;
  color: var(--home-ink);
  background: var(--home-deep);
  font: 16px/1.55 Inter, system-ui, sans-serif;
}

.storm-home *,
.storm-home *::before,
.storm-home *::after {
  box-sizing: border-box;
}

.storm-home :where(h1, h2, h3, p, figure) {
  margin: 0;
}

.storm-home button {
  font: inherit;
  cursor: pointer;
}

.storm-home button:disabled {
  cursor: wait;
}

.storm-home :where(a, button, input):focus-visible {
  outline: 2px solid var(--home-focus);
  outline-offset: 4px;
}

.home-container {
  width: min(1232px, calc(100% - clamp(32px, 9vw, 144px)));
  margin-inline: auto;
}

.home-skip {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--home-deep);
  color: var(--home-ink);
  transform: translateY(calc(-100% - 16px));
}

.home-skip:focus {
  transform: none;
}

.home-header {
  position: relative;
  z-index: 1;
  background: #101e24;
  border-bottom: 1px solid var(--home-line);
}

.home-header-inner,
.home-footer-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  min-height: 74px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--home-ink);
  text-decoration: none;
  font: 700 clamp(19px, 1.75vw, 26px)/1.1 var(--home-serif);
}

.home-brand img {
  display: block;
  flex: none;
}

.home-brand span {
  overflow-wrap: anywhere;
}

.home-about-link,
.home-footer-link,
.home-link,
.home-outline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--home-muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
}

.home-about-link:hover,
.home-footer-link:hover,
.home-link:hover {
  color: var(--home-ink);
}

.home-account-actions {
  display: flex;
  flex: none;
  gap: clamp(8px, 1.6vw, 22px);
  margin-left: auto;
}

.storm-home :is(.home-link, .home-outline) {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 650;
}

.home-link {
  background: transparent;
  border: 1px solid transparent;
}

.home-outline {
  color: var(--home-gold);
  background: #c5a26a11;
  border: 1px solid #d2b48661;
  border-radius: 5px;
}

.home-outline:hover {
  background: #c5a26a25;
  border-color: #d2b486;
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 47vw, 690px);
  border-bottom: 1px solid var(--home-line);
  background: radial-gradient(ellipse at 60% 28%, #22383c, #111e24 65%);
}

.home-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 26%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 19%);
}

.home-hero-art picture {
  display: block;
  height: 100%;
}

.home-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
}

.home-hero-art::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, #132329 0%, #132329d9 14%, #10212745 42%, #10212700 72%),
    linear-gradient(0deg, #0e1c23d9 0%, #0e1c2326 19%, #101b2100 73%, #0e1c2345 100%);
}

.home-hero-inner {
  padding-block: 74px;
}

.home-genre {
  margin-bottom: 19px;
  color: var(--home-gold);
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 700;
  letter-spacing: .115em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 16ch;
  color: #fff3de;
  font: 700 clamp(49px, 6vw, 90px)/1.02 var(--home-serif);
  letter-spacing: -.065em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 30px #07161b5e;
}

.home-lead {
  max-width: 390px;
  margin-top: 27px;
  color: #e1e4db;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.25vw, 32px);
  margin-top: 29px;
}

.home-about-link {
  color: #e1e4db;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.storm-home .home-play {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 60px;
  padding: 12px 22px;
  border: 1px solid #f6d8a5;
  border-radius: 5px;
  color: #292015;
  background: linear-gradient(145deg, #ffe1a7, #db9f54);
  box-shadow: inset 0 1px #fff0c8, 0 6px 20px #05131968;
  font-weight: 800;
  font-size: 18px;
}

.home-play::after {
  width: 20px;
  height: 14px;
  content: '';
  background:
    linear-gradient(currentColor, currentColor) left center / 18px 2px no-repeat,
    linear-gradient(45deg, transparent 45%, currentColor 46% 60%, transparent 61%) right top / 9px 8px no-repeat,
    linear-gradient(-45deg, transparent 45%, currentColor 46% 60%, transparent 61%) right bottom / 9px 8px no-repeat;
}

.home-play:not(:disabled):hover {
  background: linear-gradient(145deg, #ffeec8, #e8b56f);
}

.home-play:disabled {
  opacity: .78;
}

.home-status {
  width: fit-content;
  max-width: 390px;
  margin-top: 13px;
  color: #f4dfba;
  background: #0e1c23d9;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
}

.home-status:empty {
  margin: 0;
  padding: 0;
}

.home-about {
  padding-block: clamp(54px, 7.4vw, 105px);
  scroll-margin-block: 12px;
}

.home-about-header {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 20px;
  margin-bottom: clamp(23px, 3vw, 40px);
}

.home-about-header h2 {
  color: #f6ead7;
  font: 700 clamp(42px, 6vw, 77px)/1 var(--home-serif);
  letter-spacing: -.045em;
}

.home-about-copy {
  display: grid;
  gap: 8px;
}

.home-about-header p {
  max-width: 500px;
  color: var(--home-muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  text-wrap: pretty;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
}

.home-feature {
  min-width: 0;
  border-top: 1px solid #d2b486;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
  border-radius: 6px;
  background: #14252b;
  box-shadow: 0 12px 25px #08121742;
}

.home-shot {
  display: block;
  background: #1f363a;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}

.home-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease-out;
}

.home-shot:hover img {
  transform: scale(1.025);
}

.home-feature figcaption {
  padding: 17px clamp(14px, 2vw, 25px) 23px;
}

.home-feature h3 {
  margin-bottom: 6px;
  font: 700 clamp(23px, 2.3vw, 31px)/1.15 var(--home-serif);
}

.home-feature p {
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

.home-footer {
  background: #101e24;
  border-top: 1px solid var(--home-line);
}

.home-footer-inner {
  justify-content: space-between;
}

.home-footer .home-brand {
  gap: 8px;
  font-size: 19px;
}

.storm-home .account-dialog {
  color-scheme: light;
  position: fixed;
  width: min(465px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid #bfa780;
  border-radius: 8px;
  background: #fbf3e4;
  color: #23383c;
  box-shadow: 0 16px 56px #061216c9;
}

.storm-home .account-dialog::backdrop {
  background: #0b1920bf;
}

.storm-home .account-dialog :where(a, button, input):focus-visible {
  outline-color: #17675e;
}

.storm-home .dialog-body {
  padding: clamp(17px, 4vw, 28px);
}

.storm-home .dialog-body h2 {
  margin-bottom: 10px;
  font: 700 30px/1.1 var(--home-serif);
}

.storm-home .dialog-body > p,
.storm-home .dialog-body form > p {
  font-size: 14px;
  line-height: 1.45;
}

.storm-home .dialog-body form {
  margin-top: 14px;
}

.storm-home .dialog-body .input {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #839899;
  border-radius: 5px;
  background: #fffdf7;
  color: #23383c;
  font: 16px/1.3 Inter, system-ui, sans-serif;
}

.storm-home .dialog-body :is(.actions, .account-mode-links) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.storm-home .dialog-body :is(.button, .icon-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #96703e;
  border-radius: 5px;
  background: #edc17e;
  color: #262019;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.storm-home .dialog-body :is(.button.subtle, .icon-btn) {
  background: #fffaf0;
  color: #244647;
  border-color: #abbab7;
}

.storm-home .dialog-body :is(.button, .icon-btn):not(:disabled):hover {
  filter: brightness(1.05);
  border-color: #5e766f;
}

.storm-home .dialog-body .button:disabled {
  opacity: .6;
  cursor: default;
}

.storm-home .dialog-body .icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

@media (max-width: 760px) {
  .storm-home {
    --home-gold: #f3d5a8;
    --home-muted: #dfd0bd;
    --home-line: #ba9e7b63;
    --home-focus: #ffe1b7;
    --home-deep: #27211d;
    --gate-frame: #a88b66;
    --gate-ink: #f9ecd8;
    background: radial-gradient(ellipse at 50% 32%, #45342a, #27211d 69%);
  }

  .home-container {
    width: calc(100% - 24px);
  }

  .home-header,
  .home-footer {
    background: #332a24;
  }

  .home-header-inner {
    gap: 14px;
    min-height: 62px;
  }

  .home-brand {
    gap: 8px;
  }

  .home-brand img {
    width: 36px;
    height: 36px;
  }

  .home-hero {
    min-height: 0;
    padding-top: 12px;
    background: transparent;
    border-bottom: 0;
  }

  .home-hero-art {
    position: relative;
    z-index: auto;
    inset: auto;
    width: min(calc(100% - 24px), 510px);
    height: clamp(276px, 98vw, 444px);
    margin-inline: auto;
    border: 2px solid var(--gate-frame);
    border-radius: 49% 49% 10px 10px / 46% 46% 10px 10px;
    background: #443329;
    box-shadow: 0 8px 18px #18120fa0, inset 0 0 0 1px #f3dbaf52;
    mask-image: none;
  }

  .home-hero-art img {
    object-position: 100% 46%;
  }

  .home-hero-art::after {
    box-shadow: inset 0 0 18px #1a120c65;
    background: linear-gradient(0deg, #271a13a0, transparent 36%);
  }

  .home-hero-inner {
    display: grid;
    justify-items: center;
    padding-block: 15px clamp(75px, 28vw, 176px);
    text-align: center;
  }

  .home-genre {
    margin-bottom: 6px;
    color: #edc595;
    font-size: 12px;
    letter-spacing: .015em;
    text-transform: none;
  }

  .home-hero h1 {
    max-width: 16ch;
    color: #fff0d8;
    font-size: clamp(34px, 7.4vw, 54px);
    letter-spacing: -.045em;
    line-height: .94;
    text-shadow: 0 3px 8px #1b120f73;
  }

  .home-lead {
    margin-top: 12px;
    color: #ebdbc5;
    font-size: 14px;
    line-height: 1.45;
  }

  .home-hero-actions {
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
  }

  .storm-home .home-play {
    justify-content: center;
    min-width: 108px;
    min-height: 44px;
    padding: 7px 14px;
    border-color: #f0c790;
    background: linear-gradient(#f4d9ab, #c69965);
    box-shadow: inset 0 -2px #9a714f, 0 2px 5px #17100e60;
    font-size: 15px;
  }

  .home-play::after {
    display: none;
  }

  .home-about-link {
    padding-inline: 10px;
    border: 1px solid #ab8d72;
    border-radius: 5px;
    color: #f2dbc0;
    background: #51413580;
    text-decoration: none;
  }

  .home-status {
    background: #2e211c;
  }

  .home-status.is-error {
    color: #ffc6af;
  }

  .home-about {
    padding-block: 24px 38px;
  }

  .home-about-header h2 {
    font-size: 35px;
  }

  .home-feature {
    border-top-color: var(--gate-frame);
    background: #3c3028;
  }

  .home-about-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .home-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .home-footer .home-brand img {
    width: 29px;
    height: 29px;
  }

  .storm-home .account-dialog {
    color-scheme: dark;
    inset: 62px 0 auto;
    width: min(100%, 520px);
    max-width: none;
    max-height: calc(100dvh - 62px);
    margin: 0 auto;
    border: 0;
    border-radius: 0 0 9px 9px;
    color: var(--gate-ink);
    background: #29221e;
    box-shadow: 0 12px 42px #120b09c4;
    scrollbar-color: #b09573 #342820;
    overscroll-behavior: contain;
    scroll-padding-block: 14px;
  }

  .storm-home .account-dialog::backdrop {
    background: #1d1513a6;
  }

  .storm-home .account-dialog[data-mode="login"]::before {
    display: block;
    height: clamp(159px, calc(100dvh - 393px), 455px);
    content: '';
    background: linear-gradient(0deg, #2e211bbf, transparent 35%),
      url("/assets/realm-operation-iron.webp") 100% 46% / cover no-repeat;
  }

  .storm-home .account-dialog .dialog-body {
    position: relative;
    margin: 10px;
    padding: 15px 13px 13px;
    border: 1px solid var(--gate-frame);
    border-radius: 8px;
    background: linear-gradient(145deg, #594839, #332b25 78%);
    box-shadow: 0 5px 14px #170f0c72;
  }

  .storm-home .account-dialog[data-mode="login"] .dialog-body {
    margin-top: -72px;
  }

  .storm-home .account-dialog .dialog-body h2 {
    color: #fff0d8;
    font-size: clamp(24px, 7vw, 31px);
  }

  .storm-home .account-dialog[data-mode="login"] h2 {
    padding-inline-end: 43px;
  }

  .storm-home .account-dialog :where(a, button, input):focus-visible {
    outline-color: var(--home-focus);
    outline-offset: 2px;
  }

  .storm-home .account-dialog .account-form {
    gap: 7px;
    margin-top: 10px;
  }

  .storm-home .account-dialog .account-field {
    gap: 4px;
    margin-top: 2px;
  }

  .storm-home .account-dialog .input {
    border-color: #aa9178;
    background: #282320;
    color: #fff0d8;
  }

  .storm-home .account-dialog .account-password {
    position: relative;
    display: block;
  }

  .storm-home .account-dialog .account-password .input {
    padding-inline-end: 52px;
  }

  .storm-home .account-dialog .account-password .icon-btn {
    position: absolute;
    inset: 1px 1px 1px auto;
    width: 44px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f5dbb9;
  }

  .storm-home .account-dialog .account-password .icon-btn:focus-visible {
    outline-offset: -4px;
  }

  .storm-home .account-dialog .account-feedback.is-error {
    color: #ffd0bb;
  }

  .storm-home .account-dialog .button {
    border-color: #e6c08d;
    color: #271b12;
    background: linear-gradient(#f4d9ad, #ca9f70);
    box-shadow: inset 0 -2px #9b7251;
  }

  .storm-home .account-dialog .button.subtle {
    border-color: #a68b72;
    color: #f4d8b7;
    background: #4d3e34;
    box-shadow: none;
  }

  .storm-home .account-dialog[data-mode="login"] .actions {
    margin-top: 2px;
  }

  .storm-home .account-dialog[data-mode="login"] .actions button[type="submit"] {
    width: 100%;
  }

  .storm-home .account-dialog[data-mode="login"] [data-cancel] {
    position: absolute;
    inset: 8px 8px auto auto;
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .storm-home .account-dialog[data-mode="login"] [data-cancel]::before,
  .storm-home .account-dialog[data-mode="login"] [data-cancel]::after {
    position: absolute;
    width: 14px;
    height: 1px;
    content: '';
    background: currentColor;
    transform: rotate(45deg);
  }

  .storm-home .account-dialog[data-mode="login"] [data-cancel]::after {
    transform: rotate(-45deg);
  }

  .storm-home .account-dialog .account-mode-links {
    gap: 5px;
    margin-top: 8px;
  }

  .storm-home .account-dialog .account-mode-links .button {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 760px) and (max-height: 640px) {
  .home-hero-art {
    height: clamp(155px, calc(100dvh - 324px), 323px);
  }

  .home-hero-inner {
    padding-block: 12px 55px;
  }

  .home-lead {
    margin-top: 9px;
  }

  .home-hero-actions {
    margin-top: 10px;
  }
}

@media (max-width: 390px) {
  .home-header-inner {
    gap: 8px;
  }

  .home-brand {
    gap: 5px;
    font-size: 17px;
  }

  .home-brand img {
    width: 30px;
    height: 30px;
  }

  .home-account-actions {
    gap: 0;
  }

  .storm-home :is(.home-link, .home-outline) {
    padding-inline: 6px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shot img {
    transition: none;
  }
}
