/* Default-v4: paineis grafite, texto claro e controles em preto e branco. */
body.kings-modern {
  --king-bg: #15161a;
  --king-panel: rgba(18,19,22,.94);
  --king-raised: #232427;
  --king-line: #36373b;
  --king-gold: #f2f2f2;
  --king-text: #e6e6e6;
  --king-muted: #bcbcbc;
  --king-snow-rgb: 229,236,242;
  --king-web-rgb: 200,200,200;
  --king-spider-rgb: 220,220,220;
  --king-bat-rgb: 180,180,180;
  color: var(--king-text);
  color-scheme: dark;
}
body.kings-modern.kings-digital .digital-background {
  background: radial-gradient(ellipse at 50% 0%, #191a1d, transparent 65%), linear-gradient(180deg, #17181c, #2b2c30);
}
body.kings-modern.kings-digital .digital-background::before {
  opacity: .4;
  background-image: linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px);
}
body.kings-modern a { color: #e6e6e6; }
body.kings-modern a:hover { color: #fff; }
body.kings-modern :focus-visible { outline-color: #f2f2f2 !important; }
body.kings-modern ::selection { background: #eee; color: #191a1d; }
body.kings-modern .skip-link:focus { color: #fff; }
body.kings-modern .site-wordmark, body.kings-modern .site-wordmark span { color: #f7f7f7; }
body.kings-modern .server-presence, body.kings-modern .server-presence strong { color: #c2c2c2; }
body.kings-modern .wrap .language a:hover, body.kings-modern .wrap .language a.active { background: #2c2d31; }
body.kings-modern .video-toggle { color: #eee; background: #191a1d; }
body.kings-modern .video-toggle:hover { color: #fff; }
body.kings-modern .hero-edition { color: #d6d6d6; text-shadow: none; }
body.kings-modern .hero-brand img { filter: drop-shadow(0 8px 14px rgba(0,0,0,.12)); }
body.kings-modern .hero-download { background: #191a1d; border-color: #55575d; color: #f2f2f2; box-shadow: none; }
body.kings-modern .hero-download:hover { background: #28292d; color: #f7f7f7; }
body.kings-modern .hero-register { background: #f2f2f2; border-color: #f2f2f2; color: #191a1d; }
body.kings-modern .hero-register:hover { background: #d6d6d6; border-color: #d6d6d6; color: #191a1d; }
body.kings-modern .wrap .main .sidebar .container .title { color: #ddd; }
body.kings-modern .wrap .main .sidebar.left .container .box ul li a { color: #c5c5c5; }
body.kings-modern .navigation-box a > .fa { color: #a7a7a7; }
body.kings-modern .wrap .main .sidebar.left .container .box ul li a:hover { color: #f7f7f7; background: #25262a; }
body.kings-modern .wrap .main .sidebar.left .container .box ul li a[aria-current="page"] { color: #f7f7f7; border-color: #51535a; background: #26272b; }
body.kings-modern .wrap .main .sidebar.right .container .box ul li { border-bottom-color: #2b2c30; }
body.kings-modern .wrap .main .sidebar.right .container .box ul li span.text { color: #eee; }
body.kings-modern .wrap .main .sidebar.right .container .box ul li a { color: #d6d6d6; }
body.kings-modern .wrap .main .sidebar.right .container .box ul li span.online { color: #90c4a0; }
body.kings-modern .wrap .main .sidebar.right .container .box ul li span.offline { color: #a7a7a7; }
body.kings-modern .login-label { color: #b3b3b3; }
body.kings-modern .wrap .main .sidebar.right .container .box .login-input { color: #f2f2f2; background: #141518; border-color: #494b52; }
body.kings-modern input::placeholder, body.kings-modern textarea::placeholder { color: #aaa; }
body.kings-modern .wrap .main .sidebar.right .container .box .login-submit { color: #191a1d; background: #f2f2f2; border-color: #f2f2f2; }
body.kings-modern .wrap .main .sidebar.right .container .box .login-submit:hover { background: #d6d6d6; }
body.kings-modern .wrap .main .sidebar.right .container .box .forgot-password a { color: #b9b9b9; }
body.kings-modern .wrap .main .content .container { border-top-color: #eee; box-shadow: 0 8px 30px rgba(0,0,0,.04); }
body.kings-modern .wrap .main .content .container h1.title { color: #f2f2f2; }
body.kings-modern .wrap .main .content .container h2.title { color: #eee; background: #25262a; }
body.kings-modern ul.news li { color: #b9b9b9; background: #141518; border-color: #393b41; border-left-color: #b3b3b3; }
body.kings-modern ul.news li:hover { background: #25262a; border-left-color: #f7f7f7; }
body.kings-modern ul.news li a, body.kings-modern ul.news li a:hover { color: #eee; }
body.kings-modern ul.news li p.author-created, body.kings-modern ul.news .news-type, body.kings-modern ul.news li p.body { color: #b4b4b4; }
body.kings-modern .breadcrumber { color: #b3b3b3; }
body.kings-modern .breadcrumber li + li::before { color: #a7a7a7; }
body.kings-modern .box-panel { background: #191a1d; }
body.kings-modern .box-panel .box-panel-title { background: #242529; color: #eee; }
body.kings-modern .box-panel .box-panel-content { scrollbar-color: #6b6d76 #2b2c30; }
body.kings-modern .box-panel .submit { background: #222327; }
body.kings-modern .form .row { border-bottom-color: #2b2c30; }
body.kings-modern .form .label, body.kings-modern .form label { color: #d6d6d6; }
body.kings-modern .form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.kings-modern .form select, body.kings-modern .form textarea { color: #f2f2f2; background: #141518; border-color: #50525b; }
body.kings-modern .form .required, body.kings-modern .form .error-message { color: #f2a4a4; }
body.kings-modern .form .error input { border-color: #f2a4a4 !important; }
body.kings-modern .btn, body.kings-modern a.btn, body.kings-modern .btn-secondary { color: #191a1d; background: #f2f2f2; border-color: #f2f2f2; }
body.kings-modern .btn:hover, body.kings-modern .btn-secondary:hover, body.kings-modern .btn-secondary.active { color: #191a1d; background: #d6d6d6; border-color: #d6d6d6; }
body.kings-modern table.list { color: #eee; }
body.kings-modern table.list th { background: #26272b; color: #c2c2c2; }
body.kings-modern table.list td { background: #191a1d; color: #d6d6d6; border-bottom-color: #2c2d31; }
body.kings-modern table.list tr:nth-child(even) td { background: #222327; }
body.kings-modern table.list tr:hover td { background: #26272b; }
body.kings-modern .top-ranking .type { background: #27282d; color: #eee; }
body.kings-modern .top-ranking table.list tbody tr:first-child td { color: #f7f7f7; }
body.kings-modern .top-ranking .score, body.kings-modern .top-ranking .name { color: #eee; background: #15161a; border-color: #41434a; }
body.kings-modern .rankings .character { background-color: #191a1d; color: #eee; }
body.kings-modern .rankings .character .desc .name, body.kings-modern .rankings .character .desc .name a { color: #eee; }
body.kings-modern .rankings .character .class, body.kings-modern .rankings .character .guild-name { color: #b3b3b3; }
body.kings-modern .rankings .character .level { color: #eee; }
body.kings-modern .paginator .pagination li a { background: #191a1d; }
body.kings-modern .rates { background: #232427; border-color: #41434a; color: #d6d6d6; }
body.kings-modern .community-intro, body.kings-modern .community-link { background: #191a1d; }
body.kings-modern .community-intro h2, body.kings-modern .community-info strong { color: #eee; }
body.kings-modern .community-icon { color: #eee; background: #15161a; }
body.kings-modern .community-info small { color: #b3b3b3; }
body.kings-modern .community-action { background: #f2f2f2; color: #191a1d; }
body.kings-modern .castle-owner-detail strong, body.kings-modern .castle-owner-detail strong a { color: #eee; }
body.kings-modern .castle-owner-detail span { color: #b3b3b3; }
body.kings-modern .castle-information-summary > div, body.kings-modern .castle-information-countdown, body.kings-modern .castle-owner-mark { background: #191a1d; }
body.kings-modern .castle-schedule-row:nth-child(odd) { background: #191a1d; }
body.kings-modern .castle-schedule-row:nth-child(even) { background: #232427; }
body.kings-modern .castle-schedule-header { background: #292b30 !important; color: #eee; }
body.kings-modern .castle-siege-information-link a { background: #f2f2f2; color: #191a1d; }
body.kings-modern .download-help, body.kings-modern .download-modal { background: #191a1d; color: #d6d6d6; }
body.kings-modern .shop-categories .title { background: #eee; color: #191a1d; box-shadow: none; }
body.kings-modern .shop-itens .item .cash { color: #d6d6d6; border-color: #3b3d42; }
body.kings-modern .shop-itens .item .image { background-color: #2b2c30; background-image: none; }
body.kings-modern .shop-itens .item .name, body.kings-modern .shop-itens .item .info { color: #eee; }
body.kings-modern .overlay { background: rgba(0,0,0,.5); }
body.kings-modern .footer, body.kings-modern .footer a { color: #b3b3b3; }
body.kings-modern .navigation-disclosure > summary, body.kings-modern .mobile-panel-link { color: #eee; }

/* O CSS original usa o ID do popup: esta especificidade precisa ser superada. */
body.kings-modern #morpheus-popup-container {
  width: min(440px, calc(100vw - 32px)) !important;
  min-width: 0 !important; max-width: calc(100vw - 32px) !important;
  color-scheme: light; background: #fff; color: #171717; border: 1px solid #bcbcbc;
  border-radius: 10px; box-shadow: 0 18px 60px rgba(0,0,0,.25);
  font: 15px/1.6 "Segoe UI", Arial, sans-serif;
}
body.kings-modern #morpheus-popup-container .morpheus-popup-content {
  background: #fff; color: #171717; border: 0; outline: 0;
  margin: 0; padding: 24px; border-radius: 10px;
}
body.kings-modern #morpheus-popup-container .morpheus-popup-message {
  color: #171717; line-height: 1.6; overflow-wrap: anywhere; font-size: 15px;
}
body.kings-modern #morpheus-popup-container .morpheus-popup-message p,
body.kings-modern #morpheus-popup-container .morpheus-popup-message span { color: inherit; }
body.kings-modern #morpheus-popup-container :focus-visible { outline-color: #171717 !important; }
body.kings-modern #morpheus-popup-container .morpheus-popup-panel {
  background: transparent; border: 0; margin: 20px 0 0; padding: 0;
}
body.kings-modern #morpheus-popup-container .morpheus-popup-panel .morpheus-popup-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; min-height: 44px; padding: 10px 22px;
  background: #171717; color: #fff; border: 1px solid #171717;
  border-radius: 5px; font-weight: 600; text-decoration: none; text-shadow: none;
}
body.kings-modern #morpheus-popup-container .morpheus-popup-panel .morpheus-popup-btn:hover { background: #333; color: #fff; border-color: #333; }
body.kings-modern #morpheus-popup-container #morpheus-popup-prompt { width: 100%; max-width: 100%; background: #fafafa; color: #171717; border: 1px solid #bbb; padding: 10px; }
body.kings-modern #popup_container { background: #fff; color: #171717; border-color: #bbb; }
body.kings-modern #popup_title { background: #f2f2f2; color: #171717; border-bottom-color: #ddd; }

/* Video de fundo: os elementos sobre a imagem continuam com fundo legivel. */
body.kings-modern.kings-video .site-topbar { background: rgba(15,16,18,.90); padding: 0 14px; border-radius: 0 0 8px 8px; }
body.kings-modern.kings-video .hero-edition { color: #fff; text-shadow: 0 1px 4px #000; }
body.kings-modern.kings-video .hero-edition .fa { color: #fff; }
body.kings-modern.kings-video .footer { color: #ddd; background: rgba(0,0,0,.7); }
body.kings-modern.kings-video .footer a { color: #fff; }
@media (max-width: 560px) {
  /* Espaco para a marca que ja faz parte do video, acima dos botoes. */
  body.kings-modern.kings-video .wrap .header.site-hero { height: 280px; }
}
