@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  font-family: "Bai Jamjuree", Arial, sans-serif;
  color: #eef6ff;
  background: #07538a;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #052744;
  --panel: #052b4a;
  --blue: #0861f4;
  --cyan: #0ad4ec;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 148px; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 18%, #126aa3 0, #07538a 55%, #064878 100%);
  font-size: 15px;
  line-height: 1.7;
}

button, a { font: inherit; }

.site-shell {
  width: min(100%, 692px);
  min-height: 100vh;
  margin-inline: auto;
  background: linear-gradient(180deg, #052d4e 0%, #062849 56%, #062541 100%);
  box-shadow: 0 0 35px rgb(0 18 38 / 18%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, #062541 0%, #052744 100%);
  box-shadow: 0 7px 20px rgb(0 15 35 / 28%);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 103px;
  padding: 10px 28px;
  border-bottom: 1px solid rgb(117 204 255 / 12%);
}

.brand {
  display: flex;
  width: 136px;
  height: 68px;
  align-items: center;
  justify-content: center;
}

.brand img {
  display: block;
  width: 112px;
  height: 56px;
  object-fit: contain;
}

.account-button {
  justify-self: start;
  min-width: 130px;
  border: 2px solid #b8eaff;
  border-radius: 28px;
  padding: 8px 15px;
  color: #fff;
  background: linear-gradient(115deg, #39b9fc, #1472e6);
  box-shadow: 0 0 17px rgb(31 194 255 / 65%), inset 0 0 7px rgb(255 255 255 / 55%);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.account-button:last-child { justify-self: end; }
.account-button:hover, .promo-card button:hover, .promo-card .promo-cta:hover { filter: brightness(1.12); }
.account-button:focus-visible, .promo-card button:focus-visible, .promo-card .promo-cta:focus-visible, a:focus-visible { outline: 2px solid white; outline-offset: 3px; }

.subnav {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 0 16px;
}

.subnav a {
  color: #ecf5ff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}

.subnav a:hover { color: #28d9ff; }

.hero { overflow: hidden; }
.hero img { display: block; width: 100%; height: auto; }

.section-pad { padding: 26px 30px; }

.promotions, .providers {
  background: linear-gradient(180deg, rgb(4 38 69 / 92%), rgb(4 34 62 / 96%));
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #8bdfff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.kicker-line { height: 1px; flex: 1; background: linear-gradient(90deg, rgb(54 191 255 / 55%), transparent); }

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}

.promo-card { min-width: 0; text-align: center; }

.partner-logo {
  display: flex;
  height: 43px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: clamp(16px, 3.3vw, 27px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 3px rgb(0 0 0 / 18%);
}

.cm88 { color: #56e33a; }
.fly88 { color: #32caff; }
.sc88 { color: #ff7134; }
.c168 { color: #287dff; }
.f168 { color: #ff5a24; }
.mb66 { color: #ff303d; }
.win78 { color: #151921; text-shadow: 0 0 5px #a9bacb; }
.gg88 { color: #64d9ef; }

.promo-card button, .promo-card .promo-cta {
  display: flex;
  width: 100%;
  min-height: 56px;
  margin-top: 11px;
  border: 0;
  border-radius: 32px;
  color: #02305e;
  background: linear-gradient(105deg, #11d8e7 0%, #1784f2 95%);
  box-shadow: 0 5px 16px rgb(0 133 255 / 26%);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.provider-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 221 / 300;
  border-radius: 14px;
  object-fit: cover;
  background: #102b82;
  box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
}

.article {
  padding-top: 32px;
  padding-bottom: 40px;
  color: #30343a;
  background: #f7f7f7;
  font-size: 14px;
  line-height: 1.75;
}

.article h1, .article h2, .article h3, .article h4 {
  color: #183f77;
  line-height: 1.35;
}

.article h1 { margin: 0 0 14px; font-size: 25px; }
.article h2 { margin: 28px 0 10px; font-size: 21px; }
.article h3 { margin: 22px 0 8px; font-size: 17px; }
.article h4 { margin: 18px 0 7px; font-size: 15px; }
.article p { margin: 0 0 15px; }
.article section { scroll-margin-top: 150px; }

.site-footer {
  background: #041f38;
  text-align: center;
}

.footer-icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 20px;
}

.footer-icons img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.footer-note {
  margin: 0 auto 8px;
  color: #a9c2d6;
  font-size: 12px;
}

.copyright { margin: 0; color: #dce8f4; font-size: 12px; }

.notice {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgb(117 220 255 / 55%);
  border-radius: 12px;
  padding: 12px 16px;
  color: #f4fbff;
  background: #06345a;
  box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  right: max(18px, calc((100vw - 692px) / 2 + 18px));
  bottom: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(231 248 255 / 65%);
  border-radius: 50%;
  color: white;
  background: rgb(5 44 77 / 78%);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 3px 10px rgb(0 0 0 / 22%);
}

@media (max-width: 600px) {
  body { background: #052744; }
  .site-shell { width: 100%; }
  .toolbar { min-height: 82px; padding: 8px 12px; }
  .brand { width: 100px; height: 56px; }
  .brand img { width: 92px; height: 48px; }
  .account-button { min-width: 96px; padding: 7px 8px; font-size: 10px; }
  .subnav { min-height: 36px; gap: 5px; padding: 0 8px; }
  .subnav a { font-size: 10px; }
  .section-pad { padding: 22px 18px; }
  .promo-grid { gap: 17px 10px; }
  .partner-logo { height: 34px; font-size: clamp(13px, 4vw, 21px); }
  .promo-card button, .promo-card .promo-cta { min-height: 43px; margin-top: 7px; font-size: 10px; }
  .provider-grid { gap: 10px; }
  .provider-grid img { border-radius: 10px; }
  .article h1 { font-size: 21px; }
  .article h2 { font-size: 19px; }
  .article h3 { font-size: 16px; }
  .footer-icons { gap: 7px; }
}

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