/* Public portal refresh. Loaded after the legacy theme; no game/admin rules. */
html { background: #f3f5f8; }
body.girlkun-bg#huynhcuong {
  background: #253746 url("../images/bg/fide999-clean.png") center top / cover fixed no-repeat;
  color: #243349;
  font: 400 16px/1.7 "Be Vietnam Pro", "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
body.girlkun-bg::before { content: none; }
/* Keep text readable over the requested illustrated background. */
#huynhcuong .portal-topbar { background: rgba(243,245,248,.96); border-radius: 0 0 20px 20px; margin-bottom: 20px; }
#huynhcuong > .container-md { padding: 24px !important; background: rgba(243,245,248,.96) !important; border-radius: 24px !important; }
#huynhcuong .p-xs .image-container img { max-width: 360px; border-radius: 12px; }
.portal-topbar { max-width: 1160px; margin: auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.portal-wordmark { display: flex; align-items: center; gap: 12px; color: #17273e; text-decoration: none; font-size: 17px; font-weight: 800; line-height: 1.4; }
.portal-wordmark:hover { color: #17273e; }
.portal-wordmark b { color: #bd481c; }
.portal-wordmark small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 1.8px; color: #64748b; margin-top: 4px; }
.portal-mark { display: grid; place-items: center; width: 44px; height: 44px; background: #17273e; border-radius: 14px 14px 4px 14px; color: #ffab6d; font-size: 27px; font-style: italic; }
.portal-toplink { color: #34465e; font-size: 14px; text-decoration: none; padding: 10px 16px; border: 1px solid #d7dee7; border-radius: 30px; background: #fff; }
.portal-toplink .fa { color: #ba4d1e; margin-right: 6px; }
body.girlkun-bg > .container-md { width: min(1104px, calc(100% - 48px)); max-width: 1104px; margin: 0 auto 40px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body.girlkun-bg .p-xs { grid-template-columns: 1.25fr .75fr; gap: 24px; padding: 38px 42px; border-radius: 24px; background: radial-gradient(ellipse at 92% 50%, #445279 0, transparent 55%), #15263d; overflow: hidden; }
body.girlkun-bg .hero-eyebrow { color: #ffb885; font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; }
body.girlkun-bg .hero-copy h1 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.3; letter-spacing: -1.3px; margin-bottom: 16px; }
body.girlkun-bg .hero-copy h1 span { color: #ffb885; }
body.girlkun-bg .hero-copy p { color: #d5dfec; font-size: 15px; max-width: 490px; line-height: 1.8; }
body.girlkun-bg .hero-tags { color: #e0e7f1; font-size: 12px; gap: 10px 20px; margin-top: 20px; }
body.girlkun-bg .p-xs .image-container { background: none; }
body.girlkun-bg .p-xs .image-container img { max-width: 290px; filter: drop-shadow(0 15px 20px #0003); }
body.girlkun-bg .site-notice { margin: 16px 0 24px !important; background: #e8edf3 !important; border: 0 !important; padding: 12px 16px !important; }
body.girlkun-bg .site-notice .marquee { width: 100%; white-space: normal; text-align: left; padding: 0; }
body.girlkun-bg .site-notice .aura-text { color: #42546c !important; font-size: 13px !important; animation: none !important; padding: 0; white-space: normal; }
body.girlkun-bg #myModal.downloads-section { padding: 0 0 24px; }
body.girlkun-bg .downloads-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.girlkun-bg .downloads-grid > div { margin-top: 0 !important; }
body.girlkun-bg .downloads-grid .card { background: #fff !important; border: 1px solid #dce3eb !important; border-radius: 16px !important; box-shadow: 0 3px 6px #17273e03 !important; height: 100%; }
body.girlkun-bg .downloads-grid .card-body { display: grid !important; grid-template-columns: 38px minmax(0, 1fr); gap: 12px 10px; padding: 16px; align-items: center; text-align: left; }
body.girlkun-bg .downloads-grid .platform-icon { display: grid; place-items: center; width: 38px; height: 38px; margin: 0; background: #eff3f8; color: #394f71; border: 0; border-radius: 10px; font-size: 21px; }
body.girlkun-bg .downloads-grid .card-title { color: #243349 !important; font-size: 16px; margin: 0; }
body.girlkun-bg .downloads-grid .btn { min-height: 44px; font-size: 13px; padding: 10px 8px; border-radius: 9px; background: #1f354f !important; border-color: #1f354f !important; color: #fff !important; }
body.girlkun-bg .downloads-grid .btn:hover { background: #315273 !important; }
body.girlkun-bg .downloads-grid .btn .fa { display: inline-block; }
body.girlkun-bg .portal-navigation { gap: 14px; }
body.girlkun-bg .col.text-center > .portal-navigation a { background: #fff !important; border: 1px solid #dce3eb !important; padding: 18px 22px; border-radius: 16px; min-height: 86px; box-shadow: none !important; }
body.girlkun-bg .col.text-center > .portal-navigation a::after { content: none; }
body.girlkun-bg .col.text-center > .portal-navigation a:hover { border-color: #c65c2e !important; transform: translateY(-2px); }
body.girlkun-bg .col.text-center > .portal-navigation a.nav-ranking { background: #fff4e9 !important; border-color: #ecc7a6 !important; }
body.girlkun-bg .portal-navigation .nav-symbol { background: #edf2f7; color: #334b6a; border: 0; width: 46px; height: 46px; flex-basis: 46px; }
body.girlkun-bg .portal-navigation .nav-ranking .nav-symbol { background: #ffe2c7; color: #a3461b; }
body.girlkun-bg .portal-navigation .nav-label { color: #243349; font-size: 17px; }
body.girlkun-bg .portal-navigation .nav-label small { color: #627187; font-size: 13px; }
body.girlkun-bg .community-links { gap: 14px; margin-bottom: 30px; }
body.girlkun-bg .community-links a { color: #42546c; background: transparent; border: 1px dashed #bcc9d8; min-height: 46px; font-size: 13px; }
body.girlkun-bg .community-links a:hover { background: #e5ecf3; }
.rankings-toolbar { align-items: flex-start; margin: 12px 0 24px; }
.ranking-eyebrow { color: #ac451c; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
body.girlkun-bg .rankings-toolbar h2 { margin: 6px 0; color: #17273e; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.9px; }
.rankings-toolbar p { color: #64748b; font-size: 14px; margin: 0; }
#huynhcuong .rankings-toolbar h2, #huynhcuong .rankings-page .ibox-content h5 { color: #22364f !important; }
body.girlkun-bg .rankings-close { flex-shrink: 0; background: #fff; border-color: #dce3eb; color: #42546c; }
body.girlkun-bg .rankings-close:hover { background: #e5ecf3; border-color: #8496ad; }
body.girlkun-bg .rankings-page > .ibox-content { background: #fff !important; border: 1px solid #dce3eb !important; padding: 26px !important; margin-bottom: 22px !important; border-radius: 20px !important; box-shadow: 0 5px 18px #17273e04 !important; }
body.girlkun-bg .rankings-page .ibox-content .ibox-content { background: transparent !important; }
body.girlkun-bg .rankings-page h5 { color: #22364f !important; font-size: 20px !important; font-weight: 800 !important; border-color: #e4eaf1 !important; padding-bottom: 18px !important; margin-bottom: 18px !important; letter-spacing: -.3px; }
body.girlkun-bg .rankings-page .table-responsive { background: #fff; border: 1px solid #e0e7ef; border-radius: 12px; overflow-x: auto; overscroll-behavior-x: contain; }
body.girlkun-bg .rankings-page .table { color: #34465e !important; font-size: 15px !important; --bs-table-hover-bg: #f1f5f9; --bs-table-hover-color: #1e354e; }
body.girlkun-bg .rankings-page .table th { background: #edf2f7; color: #40536c; font-size: 13px; padding: 15px 16px; }
body.girlkun-bg .rankings-page .table td { padding: 16px; border-color: #e4eaf1 !important; }
body.girlkun-bg .rankings-page .table td:first-child:not([colspan]) { color: #a3461b; }
body.girlkun-bg .rankings-page .table td[colspan] { background: #fafbfd; color: #64748b !important; padding: 34px 16px; font-size: 14px; }
body.girlkun-bg .rankings-page .mt-3.text-center,
body.girlkun-bg .rankings-page .mt-3.text-center span { color: #627187 !important; font-size: 13px !important; line-height: 1.9; }
body.girlkun-bg .rankings-page .leaderboard-card-header { border-color: #e4eaf1; }
body.girlkun-bg .rankings-page .leaderboard-subtitle { color: #627187; font-size: 13px; text-transform: none; }
body.girlkun-bg .rankings-page .leaderboard-tag { background: #fff4e9; color: #93451f; border-color: #ebc6a6; font-size: 12px; }
body.girlkun-bg .rankings-page .leaderboard-card-body > div[style*="background-color"] { background: #f7f9fc !important; border-color: #dce3eb !important; }
body.girlkun-bg .rankings-page .leaderboard-card-body p { color: #42546c !important; font-size: 14px !important; }
body.girlkun-bg .rankings-page .leaderboard-card-body a { background: #213c59 !important; border-color: #213c59 !important; font-size: 14px; }
body.girlkun-bg .ranking-deposit { background: #fff; border-color: #dce3eb; padding: 18px; }
.deposit-heading, .deposit-caption { color: #627187; font-size: 13px; gap: 8px; }
.deposit-heading strong, .deposit-caption strong { color: #374b66; font-size: 12px; }
.deposit-heading .fa { color: #b75a27; }
.deposit-track { background: #e8edf3; border: 0; height: 10px; box-shadow: none; }
.deposit-fill { background: #c56833; }
body.girlkun-bg footer.site-footer { border-color: #dce3eb; padding-top: 30px; }
.footer-brand strong { color: #243349; font-size: 17px; }
.footer-eyebrow { color: #a3461b; font-size: 10px; }
.footer-brand p, .footer-free p, .footer-playtime p, .footer-bottom { color: #627187; font-size: 13px; }
.footer-free { background: #eaf3ee; border-color: #c9dfd1; padding: 20px; }
.footer-free strong { color: #35634c; font-size: 14px; }
.footer-free > .fa { color: #43845e; }
.footer-playtime { background: #fff; border-color: #dce3eb; }
.footer-playtime strong, .footer-playtime p b { color: #4b5c73; font-size: 13px; }
.footer-time-icon, .footer-time-badge { color: #a15c2d; }
.footer-bottom strong { color: #374b66; }
body.girlkun-bg :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #d67b3c; outline-offset: 3px; }
body.girlkun-bg .btn:hover { transform: none; }
/* Home content uses the same typography and surfaces as the ranking page. */
#huynhcuong .ibox-content:has(> .p-1 > .benefits-header),
#huynhcuong .ibox-content:has(.benefits-cluster) { background: #fff !important; border: 1px solid #dce3eb !important; box-shadow: none !important; border-radius: 20px !important; padding: 24px !important; }
#huynhcuong .benefits-header > h5 { color: #243349 !important; }
#huynhcuong .account-actions .btn-action { min-height: 46px; background: #213c59 !important; border-color: #213c59 !important; font-size: 14px; box-shadow: none !important; text-shadow: none; }
#huynhcuong .promo-benefits { background: #172c45; border-color: #172c45; }
#huynhcuong .promo-story h3 span { color: #ffb885; }
#huynhcuong .promo-story p { font-size: 15px; color: #d2dce9; }
.promo-eyebrow { color: #ffbd8c; font-size: 12px; }
.promo-value { background: #ffffff09; border-color: #ffffff26; }
.promo-value em, .promo-perks > span, .promo-dates { color: #d2dce9; font-size: 13px; }
.promo-value > span { font-size: 11px; }
.promo-perks > span { background: #ffffff08; border-color: #ffffff18; }
#huynhcuong .update-control { background: #f7f9fc; border-color: #dce3eb; color: #243349; border-radius: 14px; min-height: 110px; }
#huynhcuong .update-control:hover, #huynhcuong .update-control[aria-expanded="true"] { background: #edf2f7; border-color: #859bb7; }
#huynhcuong .update-control small { color: #a14b21; font-size: 11px; }
#huynhcuong .update-control strong { font-size: 16px; }
#huynhcuong .update-control em { color: #627187; font-size: 13px; }
#huynhcuong .update-control > b { color: #536a88; }
#huynhcuong .update-control img { display: none; }
#huynhcuong .update-control::before { content: "\f06b"; font: normal 25px FontAwesome; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e8eef5; color: #445e7c; }
#huynhcuong .update-blue::before { content: "\f0ac"; }
#huynhcuong .update-green::before { content: "\f145"; }
#huynhcuong .update-purple::before { content: "\f091"; }
@media (max-width: 700px) {
  #huynhcuong .ibox-content:has(.benefits-cluster) { padding: 16px 12px !important; }
  #huynhcuong .updates-controls { grid-template-columns: 1fr; gap: 10px; }
  #huynhcuong .update-control { grid-template-columns: 44px minmax(0, 1fr) 20px; padding: 16px; gap: 12px; min-height: 100px; text-align: left; }
  #huynhcuong .update-control > b { display: block; }
  #huynhcuong .promo-story { text-align: left; }
  .portal-topbar { padding: 18px 16px; }
  .portal-wordmark { font-size: 14px; gap: 9px; }
  .portal-wordmark small { font-size: 8px; letter-spacing: 1px; }
  .portal-mark { width: 38px; height: 38px; font-size: 23px; }
  .portal-toplink { padding: 10px; font-size: 12px; }
  body.girlkun-bg > .container-md { width: calc(100% - 28px); margin-bottom: 24px; }
  body.girlkun-bg .p-xs { grid-template-columns: 1fr; padding: 28px 24px; gap: 0; border-radius: 20px; text-align: left; }
  body.girlkun-bg .hero-copy h1 { font-size: 30px; letter-spacing: -.9px; }
  body.girlkun-bg .hero-copy p { font-size: 14px; margin-bottom: 0; }
  body.girlkun-bg .hero-tags { justify-content: flex-start; font-size: 11px; }
  body.girlkun-bg .p-xs .image-container { display: block; margin-top: 22px; }
  #huynhcuong .p-xs .image-container img { width: 100% !important; max-width: 280px; }
  #huynhcuong > .container-md { padding: 12px !important; border-radius: 18px !important; }
  body.girlkun-bg .downloads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.girlkun-bg .downloads-grid .card-body { padding: 14px; }
  body.girlkun-bg .col.text-center > .portal-navigation { gap: 10px; }
  body.girlkun-bg .col.text-center > .portal-navigation a { padding: 14px 12px; gap: 9px; min-height: 82px; }
  body.girlkun-bg .portal-navigation .nav-symbol { width: 32px; height: 36px; flex-basis: 32px; font-size: 24px; border-radius: 9px; }
  body.girlkun-bg .portal-navigation .nav-label { font-size: 14px; }
  body.girlkun-bg .portal-navigation .nav-label small { font-size: 11px; }
  body.girlkun-bg .community-links { gap: 10px; margin-bottom: 26px; }
  body.girlkun-bg .community-links a { font-size: 12px; }
  .rankings-toolbar { gap: 10px; margin-bottom: 20px; }
  .rankings-toolbar p { font-size: 13px; }
  body.girlkun-bg .rankings-page > .ibox-content { padding: 18px 14px !important; border-radius: 16px !important; margin-bottom: 16px !important; }
  body.girlkun-bg .rankings-page h5 { font-size: 18px !important; }
  body.girlkun-bg .rankings-page .table th, body.girlkun-bg .rankings-page .table td { padding: 14px 12px; white-space: nowrap; }
  body.girlkun-bg .rankings-page .table td[colspan] { white-space: normal; }
  body.girlkun-bg .rankings-page .table:has(th:nth-child(6)) { min-width: 540px; }
  body.girlkun-bg .rankings-page .leaderboard-card-header { flex-wrap: wrap; }
  .footer-main { grid-template-columns: 1fr; gap: 18px; }
  .footer-brand { justify-content: flex-start; }
  .footer-bottom { font-size: 12px; }
}
@media (max-width: 370px) {
  .portal-toplink { font-size: 0; border: 0; background: transparent; }
  .portal-toplink .fa { font-size: 20px; }
  body.girlkun-bg .p-xs { padding: 24px 18px; }
  body.girlkun-bg .hero-copy h1 { font-size: 27px; }
  body.girlkun-bg .col.text-center > .portal-navigation a { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  body.girlkun-bg *, body.girlkun-bg *::before, body.girlkun-bg *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
