:root {
  --viewport-height: 100svh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --text-light: #fffaf0;
  --text-blue: #0d4693;
  --text-gold: #f6c35d;
  --shadow-soft: 0 0.12em 0.18em rgba(20, 48, 83, 0.28);
  --font-display: "BangkokDisplay", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "BangkokBody", "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-family: var(--font-body);
}

@supports (height: 100dvh) {
  :root {
    --viewport-height: 100dvh;
  }
}

@font-face {
  font-family: "DreamHanSerifCN-W12";
  src: url("../fonts/DreamHanSerifCN-W12-subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DreamHanSerifCN-W20";
  src: url("../fonts/DreamHanSerifCN-W20-subset.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSansSC";
  src: url("../fonts/SourceHanSansSC-VF.otf.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "BangkokDisplay";
  src: url("../fonts/DreamHanSerifCN-W20-subset.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "BangkokBody";
  src: url("../fonts/DreamHanSerifCN-W12-subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "BangkokBody";
  src: url("../fonts/DreamHanSerifCN-W20-subset.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0b4f91;
}

body {
  min-height: var(--viewport-height);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  touch-action: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.is-hidden {
  display: none !important;
}
