@font-face {
  font-family: "Noto Sans Khmer";
  src: url("assets/noto-sans-khmer-regular.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Khmer";
  src: url("assets/noto-sans-khmer-bold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
.download-dialog {
  width: min(420px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 24px;
  border: 1px solid #ded3bd;
  border-radius: 22px;
  background: #fffdf7;
  color: #302d26;
  box-shadow: 0 16px 60px #302d2633;
}
.download-dialog[open] { display: grid; gap: 16px; }
.download-dialog::backdrop { background: #302d2673; }
.download-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.download-dialog h2 { margin: 0; font-size: 19px; line-height: 1.6; }
.download-dialog button {
  flex: none;
  padding: 6px 12px;
  border: 1px solid #ded3bd;
  border-radius: 12px;
  background: #f7f4ed;
  color: #655b48;
  font: inherit;
  cursor: pointer;
}
.download-option {
  display: block;
  padding: 16px;
  border: 1px solid #ded3bd;
  border-radius: 14px;
  background: #f6efdc;
  color: #72571e;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.7;
}
.download-option:hover { background: #eee1bc; }
.download-option:focus-visible, .download-dialog button:focus-visible { outline: 2px solid #9b752c; outline-offset: 3px; }
:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --text: #302d26;
  --muted: #756f63;
  --gold: #9b752c;
  --line: #e8e0d2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Khmer", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  background: radial-gradient(ellipse at 85% 0%, #eee3ca85, transparent 45%), var(--bg);
  -webkit-tap-highlight-color: transparent;
}
button, select, a { touch-action: manipulation; }
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
[hidden] { display: none !important; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-shell { width: 100%; max-width: 560px; margin: auto; padding: 26px 24px 126px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-wordmark { font-size: 30px; font-weight: 900; letter-spacing: -1.6px; color: #39362e; }
.brand-wordmark span { color: #aa843b; }
.brand-logo { width: 165px; height: auto; max-width: 165px; max-height: 50px; object-fit: contain; object-position: left; }
.language-control {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 36px;
  flex: none;
  border: 1px solid #ded5c4;
  border-radius: 24px;
  background: #fffdf7;
  color: #867347;
}
.language-control > svg { width: 15px; height: 15px; margin-right: 7px; }
.language-control select {
  appearance: none;
  color: #655b48;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  padding: 6px 23px 6px 0;
  cursor: pointer;
  max-width: 119px;
}
.language-control option { color: var(--text); background: #fffdf7; }
.language-control .select-arrow { position: absolute; right: 6px; margin: 0; width: 15px; pointer-events: none; }
.language-control:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.welcome { padding: 27px 0 22px; text-align: center; }
.welcome-title-line { display: flex; align-items: center; justify-content: center; gap: 13px; }
.welcome-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.welcome-icon { width: 50px; height: 50px; object-fit: contain; flex: none; border-radius: 12px; box-shadow: 0 4px 12px #9b752c1a; }
.welcome h1 { min-width: 0; margin: 0; font-size: 28px; font-weight: 750; letter-spacing: 2px; line-height: 1.5; }
.gold-line { width: 26px; height: 1px; background: linear-gradient(90deg, transparent, #be9b55); flex: none; }
.gold-line:last-child { transform: rotate(180deg); }
.welcome p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; letter-spacing: .5px; }
.notice {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid #e7ddc8;
  border-radius: 12px;
  background: #f2ead9a6;
}
.notice svg { width: 17px; height: 17px; color: #9b752c; }
.notice p { margin: 0; color: #766446; font-size: 12px; line-height: 1.8; }
.entry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
  min-height: 146px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 4px 14px #71572405;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  outline-offset: 4px;
}
.entry.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 17px;
  min-height: 101px;
  padding: 22px;
  border-color: #ceb57e;
  background: linear-gradient(110deg, #edddba, #f6ecd4 75%, #f9f0dc);
  box-shadow: 0 6px 18px #8e6e2a0d;
}
.entry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: #f5efe3;
  color: #9b752c;
}
.entry-icon svg { width: 23px; height: 23px; stroke-width: 1.6; }
.featured .entry-icon { width: 47px; height: 47px; border-radius: 50%; background: #fff9e7b3; color: #866120; }
.featured .entry-icon svg { width: 27px; height: 27px; }
.entry-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; width: 100%; }
.entry-copy strong { font-size: 17px; font-weight: 650; line-height: 1.4; letter-spacing: .2px; }
.entry-copy > span { color: var(--muted); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.featured .entry-copy { flex: 1; }
.featured .entry-copy strong { font-size: 20px; }
.featured .entry-copy > span { color: #786543; font-size: 12px; }
.entry-arrow { position: absolute; right: 16px; top: 20px; color: #b4a68a; }
.entry-arrow svg { width: 18px; height: 18px; stroke-width: 1.7; }
.featured .entry-arrow {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: #937027;
  color: #fff8e7;
}
.featured .entry-arrow svg { stroke-width: 2; }
.entry:hover { border-color: #c5ad79; box-shadow: 0 8px 24px #765b2010; transform: translateY(-2px); }
.entry:active { transform: scale(.985); }
.entry:focus-visible, .nav-item:focus-visible { outline: 2px solid var(--gold); }
.preview-notice { margin: 20px 0 0; text-align: center; color: #7d7667; font-size: 11px; line-height: 1.8; }
.site-signature { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 17px; color: #b4a894; font-size: 9px; font-weight: 500; letter-spacing: 4px; }
.site-signature span { width: 20px; height: 1px; background: #ddd4c3; }
.bottom-nav {
  position: fixed;
  z-index: 5;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  min-height: calc(76px + env(safe-area-inset-bottom));
  padding: 7px 14px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid #e3dac9;
  background: #fffcf5f5;
  box-shadow: 0 -8px 30px #6e552007;
  backdrop-filter: blur(16px);
}
.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
  min-height: 56px;
  border-radius: 10px;
  outline-offset: 3px;
  color: #746a56;
  text-decoration: none;
  cursor: pointer;
}
.nav-item > svg { width: 23px; height: 23px; color: #967636; }
.nav-item > span { font-size: 11px; font-weight: 500; line-height: 1.7; text-align: center; }
.vip-circle { display: flex; align-items: center; justify-content: center; width: 43px; height: 24px; border-radius: 6px; background: #ece0c2; color: #775a1b; font-size: 15px !important; font-weight: 750 !important; letter-spacing: 1px; }
.nav-item:hover { color: #9b752c; background: #efe7d64d; }
.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(105px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100vw - 36px);
  padding: 12px 18px;
  border: 1px solid #6d5b38;
  border-radius: 12px;
  color: #fff8e9;
  background: #564a34;
  box-shadow: 0 8px 25px #5b481122;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.asset-icon { width: 27px; height: 27px; object-fit: contain; }
.nav-item > .asset-icon { width: 24px; height: 24px; }
#customer-service-widget:empty { display: none; }
html[lang="km"] .welcome h1 { font-size: 25px; line-height: 1.7; letter-spacing: 0; }
html[lang="km"] .welcome p { letter-spacing: 0; }
html[lang="km"] .entry-copy strong { font-size: 17px; line-height: 1.6; letter-spacing: 0; }
html[lang="km"] .featured .entry-copy strong { font-size: 19px; }
html[lang="km"] .entry-copy > span { line-height: 1.9; }
html[lang="km"] .nav-item > span { font-size: 11px; line-height: 1.8; }
html[lang="en"] .welcome h1 { font-size: 25px; letter-spacing: 1px; }
@media (min-width: 760px) {
  .page-shell { max-width: 680px; padding: 45px 28px 150px; }
  .site-header { padding-bottom: 22px; border-bottom: 1px solid #e4dac7; }
  .welcome { padding: 31px 0 24px; }
  .entry { min-height: 156px; padding: 22px; }
  .entry.featured { min-height: 112px; padding: 25px; }
  .entry-arrow { right: 22px; top: 25px; }
  .entry-copy strong { font-size: 19px; }
  .entry-copy > span { font-size: 12px; }
  .bottom-nav { max-width: 624px; bottom: 18px; border: 1px solid #ded3bd; border-radius: 18px; box-shadow: 0 8px 28px #5b48110c; }
}
@media (max-width: 480px) {
  .welcome-title-line > .gold-line { display: none; }
  .welcome-icon { width: 44px; height: 44px; border-radius: 10px; }
}
@media (max-width: 360px) {
  .page-shell { padding: 20px 16px 122px; }
  .site-header { gap: 10px; }
  .brand-wordmark { font-size: 27px; }
  .brand-logo { max-width: 130px; }
  .language-control { padding-left: 8px; }
  .language-control select { font-size: 11px; }
  .welcome { padding: 24px 0 20px; }
  .welcome-title-line { gap: 9px; }
  .welcome-heading { gap: 9px; }
  .welcome-icon { width: 40px; height: 40px; }
  .gold-line { width: 17px; }
  html[lang="km"] .welcome h1 { font-size: 21px; }
  .notice { padding: 10px 11px; gap: 9px; }
  .notice p { font-size: 11px; }
  .entry-list { gap: 11px; }
  .entry { padding: 15px; min-height: 148px; }
  .entry.featured { padding: 17px 14px; gap: 11px; min-height: 98px; }
  .featured .entry-icon { width: 39px; height: 39px; }
  .featured .entry-arrow { width: 26px; height: 26px; }
  .entry-copy strong, html[lang="km"] .entry-copy strong { font-size: 15px; }
  .featured .entry-copy strong, html[lang="km"] .featured .entry-copy strong { font-size: 17px; }
  .entry-copy > span, .featured .entry-copy > span { font-size: 10px; }
  .entry-arrow { right: 13px; top: 20px; }
  .entry-icon { width: 33px; height: 33px; }
  .nav-item > span, html[lang="km"] .nav-item > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
