:root {
  --portal-green: #042b1a;
  --portal-green-deep: #021a10;
  --portal-gold: #d4be8b;
  --portal-white: #ffffff;
  --portal-muted: rgba(255, 255, 255, 0.8);
  --portal-border: rgba(212, 190, 139, 0.62);
  --portal-gutter: clamp(20px, 4.8vw, 78px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  background: var(--portal-green-deep);
  color: var(--portal-white);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.country-portal {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.country-portal-background,
.country-portal-background img,
.country-portal-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.country-portal-background {
  z-index: -3;
}

.country-portal-background img {
  object-fit: cover;
  object-position: center;
}

.country-portal-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 18, 11, 0.72) 0%, rgba(1, 18, 11, 0.38) 46%, rgba(1, 18, 11, 0.12) 72%),
    linear-gradient(0deg, rgba(2, 26, 16, 0.96) 0%, rgba(2, 26, 16, 0.32) 38%, rgba(2, 26, 16, 0.08) 72%);
}

.country-portal-header {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3.4vw, 44px) var(--portal-gutter) 16px;
}

.country-portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  text-decoration: none;
}

.country-portal-brand img {
  width: 68px;
  height: 68px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.country-portal-brand span {
  display: grid;
  gap: 3px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.country-portal-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 600;
  line-height: 1;
}

.country-portal-brand small {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.country-gateway-main {
  align-self: end;
  display: grid;
  gap: clamp(28px, 4vh, 46px);
  padding: clamp(30px, 4vh, 52px) var(--portal-gutter) clamp(22px, 3vh, 34px);
}

.country-gateway-intro {
  max-width: 980px;
}

.country-gateway-intro h1,
.country-coming-soon h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.36);
}

.country-gateway-intro h1 {
  max-width: 1120px;
  font-size: clamp(2.6rem, 4.1vw, 4.2rem);
  line-height: 0.98;
}

.country-gateway-intro h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin-top: clamp(22px, 3vh, 34px);
  background: var(--portal-gold);
}

.country-gateway-intro p,
.country-coming-soon p {
  margin: 22px 0 0;
  color: var(--portal-muted);
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 1.55;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.country-market-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--portal-border);
  background: rgba(4, 43, 26, 0.86);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.country-market {
  position: relative;
  min-width: 0;
  min-height: 146px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 26px;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  padding: clamp(20px, 2.2vw, 30px);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.country-market + .country-market {
  border-left: 1px solid rgba(212, 190, 139, 0.48);
}

.country-market:hover,
.country-market:focus-visible {
  background: rgba(212, 190, 139, 0.14);
  outline: none;
}

.country-market:focus-visible {
  box-shadow: inset 0 0 0 2px var(--portal-gold);
}

.country-market-flag {
  width: clamp(70px, 6.8vw, 112px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

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

.country-market-copy {
  min-width: 0;
  display: grid;
  gap: 15px;
}

.country-market-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  font-weight: 400;
  line-height: 1.05;
}

.country-market-copy > span {
  color: var(--portal-gold);
  font-size: clamp(0.76rem, 0.9vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0;
}

.country-market svg,
.country-portal-action svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.country-market svg {
  color: var(--portal-gold);
}

.country-market:hover svg,
.country-market:focus-visible svg,
.country-portal-action:hover svg,
.country-portal-action:focus-visible svg {
  transform: translateX(4px);
}

.country-market--soon {
  color: rgba(255, 255, 255, 0.88);
}

.country-market--soon .country-market-copy > span {
  color: rgba(212, 190, 139, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.country-portal-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--portal-gutter) max(18px, env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  line-height: 1.4;
}

.country-portal-footer a {
  text-decoration: none;
}

.country-portal-footer a:hover,
.country-portal-footer a:focus-visible {
  color: var(--portal-gold);
  outline: none;
}

.country-coming-soon-main {
  display: grid;
  align-items: center;
  padding: 30px var(--portal-gutter);
}

.country-coming-soon {
  width: min(760px, 100%);
}

.country-coming-soon-flag {
  width: clamp(92px, 9vw, 138px);
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  margin-bottom: clamp(26px, 4vh, 42px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.country-coming-soon h1 {
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.96;
}

.country-coming-soon p {
  max-width: 670px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.country-coming-soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 4vh, 44px);
}

.country-portal-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  border: 1px solid var(--portal-gold);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.country-portal-action--primary {
  background: var(--portal-gold);
  color: var(--portal-green-deep);
}

.country-portal-action--secondary {
  background: rgba(4, 43, 26, 0.46);
  color: var(--portal-white);
}

.country-portal-action:hover,
.country-portal-action:focus-visible {
  background: var(--portal-white);
  border-color: var(--portal-white);
  color: var(--portal-green-deep);
  outline: none;
}

@media (max-width: 1060px) {
  .country-market {
    min-height: 126px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .country-market > svg {
    display: none;
  }
}

@media (max-width: 760px) {
  .country-portal {
    min-height: 100svh;
    overflow: auto;
  }

  .country-portal-shade {
    background: linear-gradient(0deg, rgba(2, 26, 16, 0.98) 0%, rgba(2, 26, 16, 0.72) 60%, rgba(2, 26, 16, 0.34) 100%);
  }

  .country-portal-background img {
    object-position: 62% center;
  }

  .country-portal-header {
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .country-portal-brand img {
    width: 54px;
    height: 54px;
  }

  .country-portal-brand strong {
    font-size: 1.08rem;
  }

  .country-portal-brand small {
    font-size: 0.6rem;
  }

  .country-gateway-main {
    gap: 26px;
    padding-top: 32px;
  }

  .country-gateway-intro h1 {
    font-size: clamp(2.25rem, 10.4vw, 3.45rem);
    line-height: 1;
  }

  .country-gateway-intro h1::after {
    width: 62px;
    margin-top: 20px;
  }

  .country-gateway-intro p {
    max-width: 34ch;
    margin-top: 17px;
    font-size: 0.95rem;
  }

  .country-market-rail {
    grid-template-columns: 1fr;
  }

  .country-market {
    min-height: 88px;
    grid-template-columns: 74px minmax(0, 1fr) 22px;
    gap: 16px;
    padding: 13px 16px;
  }

  .country-market + .country-market {
    border-top: 1px solid rgba(212, 190, 139, 0.48);
    border-left: 0;
  }

  .country-market > svg {
    display: block;
    width: 21px;
    height: 21px;
  }

  .country-market-flag {
    width: 74px;
  }

  .country-market-copy {
    gap: 7px;
  }

  .country-market-copy strong {
    font-size: 1.42rem;
  }

  .country-market-copy > span {
    font-size: 0.7rem;
  }

  .country-portal-footer {
    padding-top: 4px;
  }

  .country-portal-footer a {
    display: none;
  }

  .country-coming-soon-main {
    align-items: end;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .country-coming-soon h1 {
    font-size: clamp(2.85rem, 14vw, 4.2rem);
  }

  .country-coming-soon-actions,
  .country-portal-action {
    width: 100%;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .country-portal-header {
    padding-top: 20px;
  }

  .country-portal-brand img {
    width: 54px;
    height: 54px;
  }

  .country-gateway-main {
    gap: 22px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .country-gateway-intro h1 {
    font-size: clamp(2.7rem, 5vw, 4.35rem);
  }

  .country-gateway-intro h1::after {
    margin-top: 18px;
  }

  .country-gateway-intro p {
    margin-top: 14px;
  }

  .country-market {
    min-height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
