:root {
  color-scheme:dark;
  --background:#02122b;
  --gold:#d8a84d;
  --gold-hover:#e6b85c;
  --text:#fff3d6;
}

* {
  box-sizing:border-box;
}

.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

html,
body {
  min-height:100%;
  margin:0;
  background:#02122b;
}

body {
  color:var(--text);
  font-family:Arial,"Microsoft YaHei",sans-serif;
}

.gateway {
  width:100%;
  min-height:100vh;
  min-height:100dvh;
  padding:clamp(10px,1.2vw,16px) 16px clamp(18px,2vw,28px);
  background:#02122b;
}

.gateway-hero {
  width:100%;
  background:#02122b;
}

.hero-artwork-wrap {
  position:relative;
  width:min(100%,900px);
  margin:0 auto;
  background:#02122b;
}

.hero-artwork-wrap::before {
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,#02122b 0,transparent 7%,transparent 93%,#02122b 100%),
    linear-gradient(180deg,#02122b 0,transparent 6%,transparent 93%,#02122b 100%);
}

.gateway-art {
  width:auto;
  max-width:100%;
  height:clamp(420px,calc(100dvh - 230px),660px);
  margin:0 auto;
  display:block;
  object-fit:contain;
  object-position:center;
  border:0;
  border-radius:0;
  box-shadow:none;
  outline:0;
}

.gateway-intro {
  max-width:680px;
  margin:10px auto 0;
  color:#fff3d6;
  text-align:center;
  font-size:17px;
  font-weight:700;
  line-height:1.4;
}

.gateway-choices {
  width:min(840px,100%);
  margin:16px auto 0;
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:24px;
  background:#02122b;
}

.gateway-choice {
  width:min(380px,calc(50% - 12px));
  min-width:290px;
  min-height:76px;
  padding:14px 24px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:20px;
  color:#fff3d6;
  background:linear-gradient(135deg,#031735,#082249);
  border:1.5px solid #d8a84d;
  border-radius:20px;
  text-align:left;
  text-decoration:none;
  font-size:18px;
  font-weight:800;
  line-height:1.35;
  box-shadow:0 10px 26px rgba(0,0,0,.3);
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.gateway-choice:hover,
.gateway-choice:focus-visible {
  color:#ffffff;
  background:linear-gradient(135deg,#051d40,#0b2a57);
  border-color:#e6b85c;
  box-shadow:0 12px 30px rgba(0,0,0,.36),0 0 20px rgba(216,168,77,.22);
}

.gateway-choice:focus-visible {
  outline:3px solid rgba(230,184,92,.38);
  outline-offset:3px;
}

.gateway-flag {
  display:block;
  width:46px;
  height:46px;
  flex:0 0 46px;
  overflow:hidden;
  background:#151515;
  border:1px solid #3a3a3a;
  border-radius:50%;
  opacity:1;
  box-shadow:0 4px 12px rgba(0,0,0,.28);
}

.gateway-flag img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.gateway-choice:hover .gateway-flag,
.gateway-choice:focus-visible .gateway-flag {
  border-color:#d8a84d;
  box-shadow:0 0 15px rgba(216,168,77,.24);
}

@media (max-width:680px) {
  .gateway {
    padding:6px 12px 28px;
  }

  .hero-artwork-wrap::before {
    background:
      linear-gradient(90deg,#02122b 0,transparent 5%,transparent 95%,#02122b 100%),
      linear-gradient(180deg,#02122b 0,transparent 4%,transparent 94%,#02122b 100%);
  }

  .gateway-art {
    width:100%;
    height:auto;
    max-height:none;
  }

  .gateway-intro {
    margin-top:8px;
    padding-inline:8px;
    font-size:15px;
  }

  .gateway-choices {
    width:min(440px,100%);
    margin-top:16px;
    flex-direction:column;
    align-items:center;
    gap:12px;
  }

  .gateway-choice {
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:72px;
    padding:14px 20px;
    font-size:17px;
    overflow-wrap:anywhere;
  }

  .gateway-flag {
    width:42px;
    height:42px;
    flex-basis:42px;
  }
}

@media (max-width:400px) {
  .gateway {
    padding-inline:10px;
  }

  .gateway-choices {
    width:100%;
  }

  .gateway-choice {
    padding:15px 16px;
    gap:13px;
    font-size:15px;
  }

  .gateway-flag {
    width:38px;
    height:38px;
    flex-basis:38px;
  }
}
