/* GunKingX visual layer. Existing routes, form handlers and game data stay in place. */
html[data-gunkingx-ui] {
  color-scheme: dark;
  --gkx-bg: #0b1922;
  --gkx-surface: #122530;
  --gkx-raised: #19313e;
  --gkx-text: #f5f6ec;
  --gkx-muted: #b0c2cb;
  --gkx-line: #2a4350;
  --gkx-yellow: #ffcf59;
  --gkx-mint: #84e3c3;
  --gkx-shadow: 0 20px 60px #00000024;
  --ink: var(--gkx-text);
  --muted: var(--gkx-muted);
  --pink: var(--gkx-mint);
  --pink-dark: var(--gkx-mint);
  --rose: var(--gkx-raised);
  --ruby: var(--gkx-yellow);
  --cream: var(--gkx-bg);
  --gold: var(--gkx-yellow);
  --cyan: var(--gkx-mint);
  --line: var(--gkx-line);
  --shadow: var(--gkx-shadow);
  --primary: var(--gkx-mint);
  --primary-light: #b2f4de;
  --primary-dark: var(--gkx-mint);
  --secondary: var(--gkx-yellow);
  --accent: var(--gkx-yellow);
  --background-dark: var(--gkx-bg);
  --background-light: var(--gkx-surface);
  --card-bg: var(--gkx-surface);
  --card-bg-hover: var(--gkx-raised);
  --text-primary: var(--gkx-text);
  --text-secondary: var(--gkx-muted);
  --text-muted: var(--gkx-muted);
  --glow-primary: #84e3c326;
  --glow-accent: #ffcf5926;
  --gp-primary: var(--gkx-mint);
  --gp-primary-dark: var(--gkx-mint);
  --gp-primary-soft: var(--gkx-raised);
  --gp-accent: var(--gkx-yellow);
  --gp-text: var(--gkx-text);
  --gp-muted: var(--gkx-muted);
  --gp-line: var(--gkx-line);
  --gp-card: var(--gkx-surface);
  --gp-bg: var(--gkx-bg);
  --gp-shadow: var(--gkx-shadow);
  --gp-admin: var(--gkx-mint);
  --font-family-main: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --font-family-display: var(--font-family-main);
  background: var(--gkx-bg);
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
html[data-gunkingx-ui] * { box-sizing: border-box; }
html[data-gunkingx-ui] body {
  background: var(--gkx-bg) !important;
  color: var(--gkx-text) !important;
  font-family: var(--font-family-main) !important;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
html[data-gunkingx-ui] body::before {
  background-image: linear-gradient(#84e3c306 1px, transparent 1px), linear-gradient(90deg, #84e3c306 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
  opacity: .6;
}
html[data-gunkingx-ui] :is(.heart-rain, .falling-hearts, .love-burst) { display: none !important; }
html[data-gunkingx-ui] :is(a, button, input, select, textarea) { -webkit-tap-highlight-color: transparent; }
html[data-gunkingx-ui] :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--gkx-yellow) !important;
  outline-offset: 4px;
}
html[data-gunkingx-ui] :is(h1, h2, h3, h4, .title, .section-title) {
  color: var(--gkx-text) !important;
  font-family: var(--font-family-main) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  letter-spacing: -.035em !important;
}
html[data-gunkingx-ui] :is(p, .muted, .hint, .note, .instruction, .footer-note, .event-subtitle, .install-note, .install-warning, .install-steps) {
  color: var(--gkx-muted) !important;
  line-height: 1.75;
}
html[data-gunkingx-ui] :is(label, .form-label, .info-row strong) { color: var(--gkx-text) !important; }
html[data-gunkingx-ui] :is(.topbar, .user-page-nav, .admin-nav, .navbar.bg-light) {
  background: #0b1922f5 !important;
  border-color: var(--gkx-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px);
}
html[data-gkx-page="user"] .user-page-nav { position: fixed !important; top: 0; left: 0; right: 0; z-index: 50; }
html[data-gunkingx-ui] :is(.card, .game-card, .panel, .payment-card, .password-page, .hero-card, .shop-panel, .item-card, .info-card, .admin-card, .admin-panel, .admin-sidebar, .shop-modal-card, .modal-content, .swal2-popup, .list-group-item, .content, .wrap) {
  color: var(--gkx-text) !important;
  background: var(--gkx-surface) !important;
  border-color: var(--gkx-line) !important;
  box-shadow: var(--gkx-shadow) !important;
  border-radius: 18px !important;
}
html[data-gunkingx-ui] :is(.card-header, .card-footer, .card-up, .info-card-head, .drawer-head) {
  background: var(--gkx-raised) !important;
  border-color: var(--gkx-line) !important;
  color: var(--gkx-text) !important;
}
html[data-gunkingx-ui] :is(.btn, .login-btn, .register-btn, .submit-btn, .buy-btn, .btn-recharge, .admin-btn, .drawer-primary, .phone-alert-btn) {
  background: var(--gkx-yellow) !important;
  color: #10212b !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
html[data-gunkingx-ui] :is(.btn, .login-btn, .register-btn, .submit-btn, .buy-btn, .admin-btn):hover:not(:disabled) {
  background: #ffdc82 !important;
  transform: translateY(-2px);
}
html[data-gunkingx-ui] :is(.btn-soft, .secondary, .btn-secondary, .back-link, .google-btn, .drawer-secondary, .user-page-actions a, .top-actions a, .admin-actions a),
html[data-gunkingx-ui] .phone-alert-btn.is-secondary {
  color: var(--gkx-text) !important;
  background: var(--gkx-raised) !important;
  border: 1px solid var(--gkx-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
html[data-gunkingx-ui] :is(.btn-danger, .danger-btn, .delete-btn) { background: #bb3e4c !important; color: #fff !important; }
html[data-gunkingx-ui] button:disabled { opacity: .5; cursor: not-allowed; }
html[data-gunkingx-ui] :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]), select, textarea) {
  background: var(--gkx-bg) !important;
  color: var(--gkx-text) !important;
  border-color: var(--gkx-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-family: inherit !important;
}
html[data-gunkingx-ui] :is(input, textarea)::placeholder { color: #8da4af !important; opacity: 1; }
html[data-gunkingx-ui] :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--gkx-yellow); }
html[data-gunkingx-ui] option { color: var(--gkx-text); background: var(--gkx-bg); }
html[data-gunkingx-ui] :is(.input-wrap, .form-group, .balance, .highlight-box, .package-option, .gift-option, .qr-box, .status, .notice, .captcha-question) {
  background: #0e202b !important;
  border-color: var(--gkx-line) !important;
  color: var(--gkx-text) !important;
  box-shadow: none !important;
}
html[data-gunkingx-ui] :is(.input-icon, .balance-amount, .package-name, .gift-name, .gift-cost, .highlight-text, .user-page-brand, .admin-brand) {
  color: var(--gkx-mint) !important;
  text-shadow: none !important;
}
html[data-gunkingx-ui] :is(.badge, .package-price, .feature-badge, .card-badge) {
  background: #ffcf591a !important;
  color: var(--gkx-yellow) !important;
  border-color: #ffcf5940 !important;
  box-shadow: none !important;
}
html[data-gunkingx-ui] :is(.package-option.active, .package-option.selected, .gift-option.selected, .tab-btn.active, .tabs .active) {
  background: #84e3c319 !important;
  color: var(--gkx-mint) !important;
  border-color: var(--gkx-mint) !important;
}
html[data-gunkingx-ui] :is(.status.error, .notice.error, .alert-danger, .error-message) { color: #ffabb3 !important; background: #4b202a !important; border-color: #9e4655 !important; }
html[data-gunkingx-ui] :is(.status.success, .notice.success, .alert-success, .success-message) { color: #a2efd3 !important; background: #143e36 !important; border-color: #377b65 !important; }
html[data-gunkingx-ui] :is(.alert-warning, .notice.warning, .password-rules, .warning) { color: #ffdc82 !important; background: #3b3320 !important; border-color: #796332 !important; }
html[data-gunkingx-ui] .password-rules strong { color: #ffdc82 !important; }
html[data-gunkingx-ui] .back-link { align-items: center; justify-content: center; }
html[data-gunkingx-ui] :is(table, .table) { color: var(--gkx-text) !important; border-color: var(--gkx-line) !important; }
html[data-gunkingx-ui] :is(th, td, .info-row) { border-color: var(--gkx-line) !important; }
html[data-gunkingx-ui] th { background: var(--gkx-raised) !important; color: var(--gkx-mint) !important; }
html[data-gunkingx-ui] :is(tbody tr, tbody td) { background: var(--gkx-surface) !important; color: var(--gkx-text) !important; }
html[data-gunkingx-ui] tbody tr:hover td { background: var(--gkx-raised) !important; }
html[data-gunkingx-ui] :is(.dropdown-menu, .feature-menu-host > .top-actions, .feature-menu-host > .user-page-actions) {
  background: var(--gkx-surface) !important;
  color: var(--gkx-text) !important;
  border-color: var(--gkx-line) !important;
  box-shadow: var(--gkx-shadow) !important;
}
html[data-gunkingx-ui] :is(.feature-menu-toggle, .dropdown-item, .navbar .nav-link) { color: var(--gkx-text) !important; }
html[data-gunkingx-ui] .feature-menu-toggle { background: var(--gkx-raised) !important; border-color: var(--gkx-line) !important; box-shadow: none !important; }
html[data-gunkingx-ui] .dropdown-item:hover { background: var(--gkx-raised) !important; }
html[data-gunkingx-ui] :is(.footer-basic, footer:not(.gkx-footer)) { background: var(--gkx-bg) !important; color: var(--gkx-muted) !important; border-color: var(--gkx-line) !important; }
html[data-gunkingx-ui] :is(.swal2-title, .swal2-html-container, .swal2-content) { color: var(--gkx-text) !important; }
html[data-gunkingx-ui] .swal2-confirm { background: var(--gkx-yellow) !important; color: var(--gkx-bg) !important; }

/* Public landing page */
html[data-gkx-page="home"] body { margin: 0; }
html[data-gkx-page="home"] body::before { display: none; }
html[data-gkx-page="home"] .site-shell { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
html[data-gkx-page="home"] .topbar { position: sticky; top: 0; z-index: 20; }
html[data-gkx-page="home"] .nav { min-height: 92px; gap: 24px; }
html[data-gkx-page="home"] .brand { gap: 12px; color: var(--gkx-text); font-size: 22px; letter-spacing: -.7px; }
html[data-gkx-page="home"] .brand-mark { width: 46px; height: 46px; border-radius: 13px; color: #10212b; background: var(--gkx-yellow); box-shadow: none; font-size: 23px; }
html[data-gkx-page="home"] .brand small { display: block; margin-top: 4px; font-size: 8px; font-weight: 600; letter-spacing: 2px; color: var(--gkx-muted); }
.gkx-brand-x { color: var(--gkx-yellow); }
html[data-gkx-page="home"] .nav-actions { gap: 18px; font-size: 12px; color: var(--gkx-muted); }
html[data-gkx-page="home"] .nav-actions a { padding: 12px 6px; border-radius: 9px; }
html[data-gkx-page="home"] .nav-actions a:hover { background: transparent; color: var(--gkx-text); }
html[data-gkx-page="home"] .nav-actions .gkx-nav-login { color: var(--gkx-text); padding-inline: 16px; margin-left: 10px; }
html[data-gkx-page="home"] .nav-actions .gkx-nav-register { background: var(--gkx-yellow); padding-inline: 18px; color: #10212b; }
html[data-gkx-page="home"] .nav-actions i { margin-left: 10px; font-size: 10px; }
html[data-gkx-page="home"] .hero { min-height: 570px; padding: 66px 0 70px; grid-template-columns: 1.07fr 1fr; gap: 36px; align-items: center; }
.gkx-kicker { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: 1.9px; line-height: 1.5; }
html[data-gunkingx-ui] .gkx-kicker { color: var(--gkx-mint) !important; }
.gkx-kicker > span { display: inline-block; width: 6px; height: 6px; background: var(--gkx-mint); border-radius: 50%; box-shadow: 0 0 0 5px #84e3c314; }
html[data-gkx-page="home"] h1 { font-size: clamp(40px, 4.5vw, 66px); line-height: 1.17; margin: 0 0 22px; font-weight: 800; letter-spacing: -3px !important; }
html[data-gkx-page="home"] em { color: var(--gkx-yellow); font-style: normal; }
html[data-gkx-page="home"] .hero-copy { font-size: 14px; font-weight: 400; line-height: 1.95; margin: 0 0 30px; }
html[data-gkx-page="home"] .cta-row { gap: 12px; margin-bottom: 28px; }
html[data-gkx-page="home"] .btn { min-height: 54px; padding-inline: 21px; font-size: 12px; gap: 12px; }
html[data-gkx-page="home"] .btn-primary > i:last-child { margin-left: 12px; }
.gkx-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 11px; color: var(--gkx-muted); }
.gkx-platforms > span { display: inline-flex; align-items: center; gap: 7px; }
.gkx-platforms i { font-size: 16px; color: var(--gkx-text); }
.gkx-platform-note { border-left: 1px solid var(--gkx-line); padding-left: 18px; font-size: 10px; }
.gkx-hero-art { position: relative; min-width: 0; border: 1px solid #84e3c34a; border-radius: 23px; background: #132b35; transform: rotate(-2deg); }
.gkx-art-top { display: flex; align-items: center; justify-content: space-between; padding: 17px 23px; font-size: 9px; letter-spacing: 1.7px; color: var(--gkx-mint); }
.gkx-art-top i { font-size: 19px; }
.gkx-hero-art > img { display: block; width: 100%; height: 294px; object-fit: cover; object-position: 62% center; border-block: 1px solid #84e3c32b; }
.gkx-art-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; font-size: 12px; line-height: 1.8; color: var(--gkx-muted); }
.gkx-art-bottom strong { font-size: 16px; color: var(--gkx-text); }
.gkx-art-bottom a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #84e3c34d; border-radius: 50%; color: var(--gkx-mint); }
.gkx-art-sticker { position: absolute; right: -16px; top: 44px; padding: 12px 16px; transform: rotate(9deg); background: var(--gkx-yellow); color: #10212b; font-size: 11px; font-weight: 900; border: 4px solid var(--gkx-bg); border-radius: 8px; }
.gkx-art-sticker i { margin-right: 7px; }
.gkx-download-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; padding: 58px 0 68px; border-top: 1px solid var(--gkx-line); }
html[data-gkx-page="home"] h2 { margin: 0 0 20px; font-size: clamp(28px, 3vw, 40px); line-height: 1.3; text-align: left !important; }
.gkx-download-intro > p:not(.gkx-kicker) { max-width: 350px; font-size: 13px; margin-bottom: 24px; }
.gkx-text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; color: var(--gkx-mint); }
html[data-gkx-page="home"] .phone-card { padding: 0; border: 1px solid var(--gkx-line); background: var(--gkx-surface); border-radius: 20px; box-shadow: none; scroll-margin-top: 116px; }
html[data-gkx-page="home"] .phone-card::before { display: none; }
html[data-gkx-page="home"] .phone-content { min-height: 0; padding: 27px; border-radius: inherit; background: transparent; gap: 20px; }
html[data-gkx-page="home"] .phone-title { display: flex; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--gkx-line); }
html[data-gkx-page="home"] .phone-title h3 { font-size: 17px; margin: 0 0 3px; letter-spacing: -.5px; }
html[data-gkx-page="home"] .phone-title p { font-size: 11px; font-weight: 400; margin: 0; }
.gkx-download-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; background: #84e3c312; color: var(--gkx-mint); border-radius: 13px; font-size: 23px; }
html[data-gkx-page="home"] .download-server-picker { margin: 0; gap: 10px; }
html[data-gkx-page="home"] .download-server-label { font-size: 11px; color: var(--gkx-muted); }
html[data-gkx-page="home"] .download-server-options { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 9px; }
html[data-gkx-page="home"] .download-server-option { min-height: 47px; padding: 9px 12px; font-size: 12px; background: var(--gkx-bg); color: var(--gkx-muted); border: 1px solid var(--gkx-line); border-radius: 10px; }
html[data-gkx-page="home"] .download-server-option.is-active { color: var(--gkx-mint); border-color: var(--gkx-mint); background: #84e3c30d; box-shadow: none; }
html[data-gkx-page="home"] .download-current-server { color: var(--gkx-mint); font-size: 10px; font-weight: 500; }
html[data-gkx-page="home"] .download-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html[data-gkx-page="home"] .download-stack button { min-height: 74px; padding: 13px 14px; background: var(--gkx-yellow); color: #10212b; border: 0; border-radius: 11px; }
html[data-gkx-page="home"] .download-stack button:hover { background: #ffdc82; transform: translateY(-2px); }
html[data-gkx-page="home"] .download-stack button:last-child { background: var(--gkx-mint); }
html[data-gkx-page="home"] .download-stack button:last-child:hover { background: #aff5dc; }
html[data-gkx-page="home"] .download-stack button > span > i { font-size: 27px; }
html[data-gkx-page="home"] .download-stack button > i { font-size: 13px; }
html[data-gkx-page="home"] .download-stack .gkx-download-caption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font-size: 14px; }
.gkx-download-caption small { font-size: 7px; font-weight: 600; letter-spacing: .6px; }
html[data-gkx-page="home"] .gkx-download-note { display: flex; gap: 7px; margin: -3px 0 0; font-size: 10px; line-height: 1.6; }
.gkx-download-note i { margin-top: 3px; color: var(--gkx-mint); }
.gkx-experience { padding-block: 52px 68px; border-top: 1px solid var(--gkx-line); scroll-margin-top: 92px; }
.gkx-section-heading { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.gkx-section-heading .gkx-kicker { margin-bottom: 12px; }
html[data-gkx-page="home"] .gkx-section-heading h2 { margin-bottom: 0; }
.gkx-section-heading > p { max-width: 220px; font-size: 12px; margin: 0 0 6px; text-align: right; }
.gkx-experience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gkx-experience-card { position: relative; padding: 27px; border: 1px solid var(--gkx-line); border-radius: 16px; background: var(--gkx-surface); }
.gkx-card-number { position: absolute; top: 25px; right: 26px; font-size: 11px; color: #7e99a7; }
.gkx-card-icon { display: block; margin-bottom: 30px; font-size: 29px; color: var(--gkx-yellow); }
.gkx-experience-card h3 { margin: 0 0 14px; font-size: 21px; line-height: 1.5; }
.gkx-experience-card p { margin: 0 0 25px; font-size: 12px; }
.gkx-card-tag { display: inline-block; font-size: 8px; font-weight: 700; letter-spacing: 1px; color: var(--gkx-muted); border-top: 1px solid var(--gkx-line); padding-top: 15px; width: 100%; }
.gkx-card-mint { background: #153c3b; border-color: #2f5b55; }
.gkx-card-mint .gkx-card-icon { color: var(--gkx-mint); }
.gkx-ready { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--gkx-surface); border: 1px solid var(--gkx-line); padding: 38px 40px; border-radius: 18px; }
.gkx-ready .gkx-kicker { margin-bottom: 10px; }
html[data-gkx-page="home"] .gkx-ready h2 { margin-bottom: 0; font-size: clamp(24px, 2.6vw, 34px); }
html[data-gkx-page="home"] .gkx-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 40px 0; margin-top: 56px; border-top: 1px solid var(--gkx-line); }
html[data-gkx-page="home"] .gkx-footer .brand { gap: 0; font-size: 19px; }
.gkx-footer > p { margin: 0; font-size: 11px; }
.gkx-footer > div { display: flex; align-items: center; gap: 23px; margin-left: auto; font-size: 11px; color: var(--gkx-muted); }
.gkx-music-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 0; color: var(--gkx-muted); cursor: pointer; font: inherit; }
.gkx-music-toggle[aria-pressed="true"] { color: var(--gkx-mint); }
html[data-gkx-page="home"] .install-modal { background: #031019bf; backdrop-filter: blur(9px); }
html[data-gkx-page="home"] .install-panel { background: var(--gkx-surface); border: 1px solid var(--gkx-line); border-radius: 18px; box-shadow: 0 30px 100px #0008; }
html[data-gkx-page="home"] .install-head { padding: 20px 24px; border-color: var(--gkx-line); }
html[data-gkx-page="home"] .install-head h2 { font-size: 18px; line-height: 1.5; margin: 0; }
html[data-gkx-page="home"] .install-head h2 i { color: var(--gkx-mint); margin-right: 7px; }
html[data-gkx-page="home"] .modal-close { flex: 0 0 40px; color: var(--gkx-text); background: var(--gkx-raised); border-color: var(--gkx-line); border-radius: 10px; }
html[data-gkx-page="home"] .install-body { padding: 24px; font-size: 13px; }
html[data-gkx-page="home"] .install-steps li { padding-left: 3px; margin-bottom: 12px; }
html[data-gkx-page="home"] .install-steps strong { color: var(--gkx-text); }
html[data-gkx-page="home"] .install-warning { font-size: 11px; border-top: 1px solid var(--gkx-line); padding-top: 16px; margin-bottom: 0; }

/* Login and registration share the same layout and preserve their existing forms. */
html[data-gkx-page="auth"] .page { display: grid; align-items: center; min-height: 100svh; padding: 42px 24px; }
html[data-gkx-page="auth"] :is(.login-shell, .register-shell) { width: min(1040px, 100%); display: grid; grid-template-columns: .95fr 1fr; background: var(--gkx-surface); border: 1px solid var(--gkx-line); border-radius: 24px; overflow: hidden; box-shadow: var(--gkx-shadow); }
html[data-gkx-page="auth"] .panel { padding: 42px; border: 0; border-radius: 0 !important; box-shadow: none !important; min-width: 0; }
.gkx-auth-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 34px; padding: 38px; background: #153735; overflow: hidden; isolation: isolate; }
.gkx-auth-brand { display: inline-flex; font-size: 20px; font-weight: 900; letter-spacing: -1px; color: var(--gkx-text); }
.gkx-auth-brand > span { color: var(--gkx-yellow); margin-left: 2px; }
.gkx-auth-aside .gkx-kicker { margin-bottom: 15px; font-size: 9px; }
html[data-gkx-page="auth"] .gkx-auth-aside :is(h1, h2) { font-size: 42px; line-height: 1.3; margin: 0 0 18px; text-align: left; }
.gkx-auth-aside em { color: var(--gkx-yellow); font-style: normal; }
.gkx-auth-aside p { font-size: 13px; }
.gkx-auth-art { width: calc(100% + 76px); margin-left: -38px; min-height: 180px; flex: 1; background: linear-gradient(0deg, #153735 0%, transparent 35%, transparent 85%, #153735 100%), url('/assets/img/gunpow-local/hero-banner.jpg') 68% center / cover; }
.gkx-auth-back { position: relative; font-size: 12px; color: var(--gkx-mint); }
html[data-gkx-page="auth"] .panel-top { margin-bottom: 23px; }
html[data-gkx-page="auth"] .panel :is(h1, h2) { font-size: 30px; line-height: 1.35; text-align: left; }
html[data-gkx-page="auth"] .hint { font-size: 13px; }
html[data-gkx-page="auth"] .status { min-height: 42px; border-radius: 10px; padding: 11px 13px; font-size: 12px; }
html[data-gkx-page="auth"] .field { margin-bottom: 17px; }
html[data-gkx-page="auth"] .field label { font-size: 12px; margin-bottom: 8px; }
html[data-gkx-page="auth"] .input-wrap { min-height: 50px; border: 1px solid var(--gkx-line); border-radius: 10px; overflow: hidden; }
html[data-gkx-page="auth"] .input-wrap:focus-within { border-color: var(--gkx-mint) !important; outline: 2px solid #84e3c32b; transform: none; }
html[data-gkx-page="auth"] .input-icon { flex: 0 0 40px; width: 40px; font-size: 11px; }
html[data-gkx-page="auth"] .input-wrap :is(input, select) { min-height: 48px; border: 0; font-size: 14px; padding: 10px 12px 10px 0; background: transparent !important; border-radius: 0 !important; }
html[data-gkx-page="auth"] .input-wrap :is(input, select):focus-visible { outline-offset: -3px; outline-width: 2px !important; }
html[data-gkx-page="auth"] :is(.login-btn, .register-btn) { min-height: 52px; font-size: 14px; }
html[data-gkx-page="auth"] .google-btn { min-height: 48px; font-size: 13px; }
html[data-gkx-page="auth"] .google-mark { background: white; color: #3367d6; }
html[data-gkx-page="auth"] :is(.form-meta, .note, .panel a:not(.google-btn):not(.brand)) { font-size: 12px; }
html[data-gkx-page="auth"] .panel a:not(.google-btn) { color: var(--gkx-mint); }
html[data-gkx-page="auth"] .panel > .brand { margin-bottom: 20px; }
html[data-gkx-page="auth"] .panel > .brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--gkx-yellow); color: var(--gkx-bg); font-size: 10px; box-shadow: none; }
html[data-gkx-page="auth"] .success-panel { border-color: var(--gkx-line); background: var(--gkx-raised); }

/* Player dashboard, drawer, and embedded feature pages. */
html[data-gkx-page="dashboard"] body > nav { background: #0b1922f5 !important; border-bottom: 1px solid var(--gkx-line); box-shadow: none; }
html[data-gkx-page="dashboard"] :is(.nav-brand, .nav-brand i, .coin-icon, .role-name, .info-card-head i) { color: var(--gkx-yellow) !important; }
html[data-gkx-page="dashboard"] :is(.sodu-display, .nav-icon-link, .menu-toggle) { background: var(--gkx-raised) !important; color: var(--gkx-text) !important; border-color: var(--gkx-line) !important; box-shadow: none; }
html[data-gkx-page="dashboard"] .menu-toggle { border: 1px solid var(--gkx-line); border-radius: 10px; }
html[data-gkx-page="dashboard"] .info-card-head i { background: #ffcf591a !important; }
html[data-gkx-page="dashboard"] .menu-callout { color: var(--gkx-mint); text-shadow: none; }
html[data-gkx-page="dashboard"] :is(.menu-callout-icon, .menu-callout-text) { background: var(--gkx-raised) !important; color: var(--gkx-mint) !important; border-color: var(--gkx-line) !important; box-shadow: none !important; }
html[data-gkx-page="dashboard"] .nav-links { background: var(--gkx-surface) !important; border-color: var(--gkx-line); box-shadow: var(--gkx-shadow); }
html[data-gkx-page="dashboard"] #navLinks.nav-links :is(.drawer-menu-link, .drawer-menu-button) { background: #17313d !important; color: var(--gkx-text) !important; border-color: var(--gkx-line) !important; box-shadow: none; }
html[data-gkx-page="dashboard"] #navLinks.nav-links :is(.drawer-menu-link, .drawer-menu-button):hover { background: #214554 !important; border-color: var(--gkx-mint) !important; }
html[data-gkx-page="dashboard"] :is(.drawer-group-title, .drawer-logo span) { color: var(--gkx-mint) !important; }
html[data-gkx-page="dashboard"] .drawer-logo { background: transparent !important; }
html[data-gkx-page="dashboard"] :is(.drawer-close, .sodu-display .username) { color: var(--gkx-text) !important; }
html[data-gkx-page="dashboard"] .drawer-close { background: var(--gkx-raised) !important; }
html[data-gkx-page="dashboard"] :is(.info-card-head, .info-row) { border-color: var(--gkx-line) !important; }
html[data-gkx-page="dashboard"] .info-row > span { color: var(--gkx-muted) !important; }
html[data-gkx-page="dashboard"] .info-card { overflow: hidden; }
html[data-gkx-page="dashboard"] :is(.player-item, .player-stat) { background: #0e202b !important; border-color: var(--gkx-line) !important; color: var(--gkx-muted) !important; }
html[data-gkx-page="dashboard"] :is(.player-name, .player-stat strong) { color: var(--gkx-text) !important; }
html[data-gkx-page="dashboard"] :is(.player-id, .player-top) { color: var(--gkx-mint) !important; border-color: var(--gkx-line) !important; }
html[data-gkx-page="dashboard"] :is(.info-card h2, .info-card-head h2) { font-size: 17px; letter-spacing: -.3px !important; }
html[data-gkx-page="dashboard"] :is(.phone-alert-inner, .security-alert-inner, .inventory-backup-inner, .inventory-backup-card, .inventory-backup-dialog) { background: var(--gkx-surface) !important; color: var(--gkx-text) !important; border-color: var(--gkx-line) !important; }
html[data-gkx-page="dashboard"] :is(.phone-alert, .security-alert, .inventory-backup-alert) { background: #031019bf !important; }
html[data-gkx-page="dashboard"] :is(.phone-alert strong, .security-alert strong) { color: var(--gkx-yellow) !important; }
html[data-gkx-page="dashboard"] .security-alert ul { color: var(--gkx-text) !important; }
html[data-gkx-page="dashboard"] :is(.security-alert-actions a, .inventory-backup-primary) { background: var(--gkx-yellow) !important; color: var(--gkx-bg) !important; box-shadow: none !important; }
html[data-gkx-page="dashboard"] :is(.security-alert-actions button, .inventory-backup-dismiss) { background: var(--gkx-raised) !important; color: var(--gkx-text) !important; border-color: var(--gkx-line) !important; }
html[data-gkx-page="dashboard"] .inventory-backup-icon { color: var(--gkx-mint); background: #84e3c31a; box-shadow: none; }
html[data-gkx-page="dashboard"] .inventory-backup-actions { border-color: var(--gkx-line); }
html[data-gkx-page="dashboard"] .feature-box { background: var(--gkx-surface) !important; color: var(--gkx-text) !important; border: 1px solid var(--gkx-line); box-shadow: none; border-radius: 16px; }
html[data-gkx-page="dashboard"] .feature-box:hover { background: var(--gkx-raised) !important; border-color: var(--gkx-mint); }
html[data-gkx-page="dashboard"] .feature-icon { color: var(--gkx-yellow) !important; background: #ffcf5912 !important; }
html[data-gkx-page="dashboard"] .hero { background: var(--gkx-surface) !important; border: 1px solid var(--gkx-line); border-radius: 20px; }
html[data-gkx-page="dashboard"] .hero::before { display: none; }
html[data-gkx-page="download"] .panel { border: 1px solid var(--gkx-line); }
html[data-gkx-page="download"] .badge { border-radius: 6px; }
html[data-gkx-page="user"] :is(.title, h1, h2) { text-align: left !important; }

/* Checkout pages also load this local stylesheet under their existing CSP. */
html[data-gkx-page="checkout"] body { width: 100%; max-width: 820px; margin: 0 auto; padding: 32px 20px; }
html[data-gkx-page="checkout"] main,
html[data-gkx-page="checkout"] body.gkx-checkout-body > section {
  background: var(--gkx-surface); border: 1px solid var(--gkx-line); border-radius: 18px; padding: 26px; margin: 20px 0;
}
html[data-gkx-page="checkout"] h1 { font-size: clamp(24px, 5vw, 32px); line-height: 1.4; }
html[data-gkx-page="checkout"] h2 { font-size: 21px; line-height: 1.4; }
html[data-gkx-page="checkout"] strong { color: var(--gkx-yellow); }
html[data-gkx-page="checkout"] button { background: var(--gkx-yellow); color: var(--gkx-bg); border: 0; border-radius: 10px; padding: 13px 18px; font: inherit; font-weight: 800; cursor: pointer; }
html[data-gkx-page="checkout"] fieldset { border: 1px solid var(--gkx-line); border-radius: 12px; padding: 14px; }
html[data-gkx-page="checkout"] legend { color: var(--gkx-mint); font-size: 14px; padding-inline: 7px; }
html[data-gkx-page="checkout"] :is(p, label, select) { font-size: 14px; }
html[data-gkx-page="checkout"] select { max-width: 100%; padding: 12px; }
html[data-gkx-page="checkout"] :is(nav a, body > a) { display: inline-flex; padding: 10px 14px; margin: 4px 8px 4px 0; background: var(--gkx-raised); color: var(--gkx-mint); border: 1px solid var(--gkx-line); border-radius: 9px; }

/* Keep the admin's existing light/dark switch working with the shared palette. */
html[data-gunkingx-ui][data-gkx-page="admin"] {
  color-scheme: light;
  --ac-brand: #216b5c;
  --ac-brand-hover: #185346;
  --gkx-bg: var(--ac-canvas, #0b1922);
  --gkx-surface: var(--ac-surface, #122530);
  --gkx-raised: var(--ac-hover, #19313e);
  --gkx-text: var(--ac-text, #f5f6ec);
  --gkx-muted: var(--ac-subtle, #b0c2cb);
  --gkx-line: var(--ac-line, #2a4350);
  --gkx-mint: #216b5c;
  --gkx-shadow: 0 2px 8px #10212b08;
}
html[data-gunkingx-ui][data-gkx-page="admin"][data-theme="dark"] {
  color-scheme: dark;
  --ac-canvas: #0b1922;
  --ac-surface: #122530;
  --ac-hover: #19313e;
  --ac-text: #f5f6ec;
  --ac-subtle: #b0c2cb;
  --ac-muted: #8da4af;
  --ac-line: #2a4350;
  --ac-brand: #276d5b;
  --ac-brand-hover: #347f6a;
  --gkx-mint: #84e3c3;
}

@media (max-width: 1050px) {
  html[data-gkx-page="home"] .site-shell { width: calc(100% - 48px); }
  html[data-gkx-page="home"] .nav-actions { gap: 8px; }
  html[data-gkx-page="home"] .hero { gap: 27px; min-height: 510px; padding-block: 48px 60px; }
  html[data-gkx-page="home"] h1 { font-size: 46px; letter-spacing: -2px !important; }
  .gkx-hero-art > img { height: 260px; }
  .gkx-art-sticker { right: -4px; }
  .gkx-download-section { gap: 40px; }
  .gkx-download-caption small { font-size: 6px; }
  .gkx-experience-card { padding: 22px; }
  .gkx-experience-card h3 { font-size: 18px; }
  html[data-gkx-page="auth"] .panel { padding: 30px; }
}
@media (max-width: 800px) {
  html[data-gkx-page="home"] .hero { grid-template-columns: 1fr; gap: 42px; padding-block: 45px 52px; }
  html[data-gkx-page="home"] .hero-intro { max-width: 600px; }
  html[data-gkx-page="home"] h1 { font-size: clamp(44px, 7.4vw, 60px); }
  .gkx-hero-art { transform: none; margin: 0 7px; }
  .gkx-hero-art > img { height: auto; max-height: 330px; aspect-ratio: 2 / 1; object-fit: cover; }
  .gkx-art-sticker { top: 38px; right: -12px; }
  .gkx-download-section { grid-template-columns: 1fr; gap: 28px; padding-block: 42px; }
  .gkx-download-intro > p:not(.gkx-kicker) { max-width: 460px; }
  .gkx-experience-grid { gap: 12px; }
  .gkx-experience-card { padding: 19px; }
  .gkx-experience-card h3 { font-size: 17px; }
  .gkx-section-heading { align-items: start; }
  .gkx-section-heading > p { display: none; }
  .gkx-ready { padding: 28px; }
  html[data-gkx-page="auth"] .page { padding: 24px 16px; }
  html[data-gkx-page="auth"] :is(.login-shell, .register-shell) { max-width: 530px; grid-template-columns: 1fr; }
  .gkx-auth-aside { padding: 24px 28px; gap: 25px; }
  html[data-gkx-page="auth"] .gkx-auth-aside :is(h1, h2) { font-size: 29px; margin-bottom: 0; max-width: 380px; }
  .gkx-auth-aside :is(.gkx-auth-art, .gkx-auth-back, div > p:not(.gkx-kicker)) { display: none; }
  .gkx-auth-aside .gkx-kicker { margin-bottom: 8px; font-size: 8px; }
  html[data-gkx-page="auth"] .panel { padding: 28px; }
  html[data-gkx-page="dashboard"] .nav-container { padding-inline: 14px; }
}
@media (max-width: 560px) {
  html[data-gkx-page="home"] .site-shell { width: calc(100% - 36px); }
  html[data-gkx-page="home"] .nav { min-height: 76px; flex-direction: row; align-items: center; padding: 0; gap: 8px; }
  html[data-gkx-page="home"] .brand { font-size: 18px; gap: 8px; }
  html[data-gkx-page="home"] .brand-mark { width: 37px; height: 37px; font-size: 20px; border-radius: 10px; }
  html[data-gkx-page="home"] .brand small { font-size: 6px; letter-spacing: 1.5px; }
  html[data-gkx-page="home"] .nav-actions { width: auto; gap: 0; font-size: 11px; }
  html[data-gkx-page="home"] .nav-actions :is(.gkx-nav-section, .gkx-nav-register) { display: none; }
  html[data-gkx-page="home"] .nav-actions .gkx-nav-login { border: 1px solid var(--gkx-line); margin: 0; padding: 10px; }
  html[data-gkx-page="home"] .nav-actions i { margin-left: 6px; font-size: 9px; }
  html[data-gkx-page="home"] .hero { padding-block: 34px 42px; gap: 34px; }
  .gkx-kicker { font-size: 8px; letter-spacing: 1.4px; margin-bottom: 20px; }
  html[data-gkx-page="home"] h1 { font-size: clamp(35px, 9.5vw, 51px); line-height: 1.25; letter-spacing: -1.8px !important; margin-bottom: 18px; }
  html[data-gkx-page="home"] .hero-copy { font-size: 12px; line-height: 1.9; margin-bottom: 24px; }
  .gkx-desktop-break { display: none; }
  html[data-gkx-page="home"] .cta-row { display: flex; gap: 8px; margin-bottom: 22px; }
  html[data-gkx-page="home"] .cta-row .btn { flex: 1; width: auto; min-height: 49px; padding-inline: 12px; gap: 7px; font-size: 10px; }
  html[data-gkx-page="home"] .btn-primary > i:last-child { margin-left: 2px; }
  .gkx-platforms { font-size: 10px; gap: 14px; }
  .gkx-platform-note { font-size: 8px; padding-left: 12px; }
  .gkx-hero-art { border-radius: 16px; margin-inline: 2px; }
  .gkx-art-top { padding: 13px 15px; font-size: 7px; }
  .gkx-art-top i { font-size: 16px; }
  .gkx-art-bottom { padding: 15px; font-size: 10px; }
  .gkx-art-bottom strong { font-size: 14px; }
  .gkx-art-sticker { font-size: 8px; padding: 9px 10px; top: 30px; }
  html[data-gkx-page="home"] h2 { font-size: 29px; line-height: 1.35; }
  .gkx-download-section { padding-block: 34px; }
  .gkx-download-intro > p:not(.gkx-kicker) { font-size: 12px; margin-bottom: 18px; }
  html[data-gkx-page="home"] .phone-content { padding: 20px 17px; gap: 19px; }
  html[data-gkx-page="home"] .phone-title h3 { font-size: 16px; }
  html[data-gkx-page="home"] .phone-title p { font-size: 10px; }
  html[data-gkx-page="home"] .download-stack button { padding: 12px; gap: 7px; min-height: 70px; }
  html[data-gkx-page="home"] .download-stack button > span { gap: 8px; }
  html[data-gkx-page="home"] .download-stack .gkx-download-caption { font-size: 12px; }
  html[data-gkx-page="home"] .download-stack button > span > i { font-size: 23px; }
  html[data-gkx-page="home"] .download-stack button > i { font-size: 10px; }
  .gkx-download-caption small { font-size: 5px; }
  html[data-gkx-page="home"] .gkx-download-note { font-size: 9px; }
  .gkx-experience { padding-block: 34px; }
  .gkx-experience-grid { grid-template-columns: 1fr; }
  .gkx-experience-card { padding: 25px; }
  .gkx-card-icon { margin-bottom: 20px; }
  .gkx-experience-card h3 { font-size: 21px; }
  .gkx-experience-card p { max-width: 400px; }
  .gkx-ready { align-items: start; flex-direction: column; padding: 25px; gap: 20px; }
  html[data-gkx-page="home"] .gkx-ready h2 { font-size: 26px; }
  html[data-gkx-page="home"] .gkx-ready .btn { width: auto; min-height: 48px; }
  html[data-gkx-page="home"] .gkx-footer { padding-block: 27px; margin-top: 35px; gap: 12px 18px; }
  .gkx-footer > p { font-size: 10px; }
  .gkx-footer > div { width: 100%; margin-left: 0; gap: 24px; }
  .gkx-footer .gkx-music-toggle { margin-left: auto; }
  html[data-gkx-page="home"] .install-actions { grid-template-columns: 1fr; }
  html[data-gkx-page="home"] .install-head { padding: 16px; gap: 10px; }
  html[data-gkx-page="home"] .install-head h2 { font-size: 15px; }
  html[data-gkx-page="home"] .install-body { padding: 18px; font-size: 12px; }
  html[data-gkx-page="auth"] .panel { padding: 25px 21px; }
  html[data-gkx-page="auth"] .panel :is(h1, h2) { font-size: 27px; }
  html[data-gkx-page="auth"] .input-wrap :is(input, select) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-gunkingx-ui] { scroll-behavior: auto; }
  html[data-gunkingx-ui] *, html[data-gunkingx-ui] *::before, html[data-gunkingx-ui] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* PowMax2 game wordmark, shared by the public, player and admin pages. */
html[data-gunkingx-ui] .powmax2-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}
html[data-gunkingx-ui] .powmax2-logo {
  display: block;
  width: var(--powmax2-logo-width, 212px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
html[data-gunkingx-ui] .powmax2-brand:focus-visible {
  outline: 2px solid var(--gkx-yellow);
  outline-offset: 5px;
  border-radius: 6px;
}
html[data-gkx-page="home"] .nav .powmax2-brand { flex: 0 1 212px; }
html[data-gkx-page="home"] .gkx-footer .powmax2-brand { --powmax2-logo-width: 158px; }
html[data-gkx-page="auth"] .gkx-auth-brand.powmax2-brand { --powmax2-logo-width: 224px; align-self: flex-start; }
html[data-gkx-page="auth"] .panel > .powmax2-brand { --powmax2-logo-width: 174px; }
html[data-gkx-page="dashboard"] .nav-brand.powmax2-brand { --powmax2-logo-width: 164px; margin-left: 12px; }
html[data-gkx-page="dashboard"] .footer-logo.powmax2-brand { --powmax2-logo-width: 184px; }
html[data-gkx-page="admin"] .ac-brand.powmax2-brand {
  --powmax2-logo-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
html[data-gkx-page="admin"] .ac-brand.powmax2-brand small { line-height: 1.4; }
html[data-gkx-page="admin"] .ac-login-card > .powmax2-brand { --powmax2-logo-width: 240px; }
@media (max-width: 560px) {
  html[data-gkx-page="home"] .nav .powmax2-brand { --powmax2-logo-width: 170px; flex-basis: 170px; }
  html[data-gkx-page="auth"] .gkx-auth-brand.powmax2-brand { --powmax2-logo-width: 194px; }
  html[data-gkx-page="dashboard"] .nav-brand.powmax2-brand { --powmax2-logo-width: 130px; margin-left: 8px; }
}
