@import url("../../prosilver/theme/stylesheet.css");
@import url("blueland.css");

/* =====================================================
 * City-Games custom stylesheet
 * - Inherit everything from prosilver
 * - Add manual light/dark toggle styles
 * - Add dark variants for custom background images
 * ===================================================== */

/* DARK THEME (manual toggle) */
html:not([data-theme-ready]) body,
html:not([data-theme-ready]) .wrap {
  transition: none !important;
}
html, body {
  transition: background-color .3s ease, color .3s ease;
}
.wrap {
  transition: background-color .3s ease, border-color .3s ease;
}
@media (prefers-reduced-motion: reduce) {
  html, body, .wrap { transition: none !important; }
}
html.phpbb-dark-mode,
html.phpbb-dark-mode body {
  background-color: #00001a;
  color: #cfd6e4;
}
html.phpbb-dark-mode .wrap {
  background-color: #4d4d4d60;
  border-color: #2a3645;
}
html.phpbb-dark-mode h1 { color: #f3f6fb; }
html.phpbb-dark-mode h2 { color: #e7ecf5; }
html.phpbb-dark-mode h3 { color: #7cc7ff; border-bottom-color: #334153; }
html.phpbb-dark-mode hr {
  border-color: #7cc1ff;
  border-top-color: #324252;
}
html.phpbb-dark-mode a { color: #7cc1ff; transition: color .2s ease; }
html.phpbb-dark-mode a:hover { color: #CC0000; }
html.phpbb-dark-mode .forumbg .header a,
html.phpbb-dark-mode .forabg .header a,
html.phpbb-dark-mode li.header .row-item dt,
html.phpbb-dark-mode li.header dl dt,
html.phpbb-dark-mode li.header span.stats_info,
html.phpbb-dark-mode li.header .row-item dd,
html.phpbb-dark-mode li.header .row-item i,
html.phpbb-dark-mode th a { color: #fff !important; }
html.phpbb-dark-mode .forumbg .header a:hover,
html.phpbb-dark-mode .forabg .header a:hover,
html.phpbb-dark-mode th a:hover { color: #bfe3ff; }
html.phpbb-dark-mode .dropdown-extended a.mark_read { background-color: #0f1724; }
html.phpbb-dark-mode .postlink {
  border-bottom-color: #79b8ff;
  color: #79b8ff;
}
html.phpbb-dark-mode .postlink:visited {
  border-bottom-color: #9bbdf1;
  color: #9bbdf1;
}
html.phpbb-dark-mode .postlink:hover {
  background-color: #0f2236;
  color: #cfe9ff;
}
html.phpbb-dark-mode .signature a,
html.phpbb-dark-mode .signature a:hover { background-color: transparent; }
html.phpbb-dark-mode .top i { color: #a0a8b4; }
html.phpbb-dark-mode .arrow-left:hover,
html.phpbb-dark-mode .arrow-right:hover { color: #79b8ff; }
html.phpbb-dark-mode .wrap { border-color: #2a3645; }
html.phpbb-dark-mode .headerbar,
html.phpbb-dark-mode .headerbar a,
html.phpbb-dark-mode .headerbar a:hover {
  color: #fff;
  text-decoration: none;
}
html.phpbb-dark-mode .navbar { background-color: #1e2c3d; border: 1px solid #334153; }
html.phpbb-dark-mode .panel {
  background-color: #101725;
  color: #e7ecf5;
  border-color: #2a3645;
}
html.phpbb-dark-mode .post:target .content,
html.phpbb-dark-mode .post h3 a.first-unread,
html.phpbb-dark-mode .post:target h3 a { color: #e6edf3; }
html.phpbb-dark-mode .forabg .bg1 { border: none; }
html.phpbb-dark-mode .bg1 { background-color: #0f1724; }
html.phpbb-dark-mode .bg2 { background-color: #0c1420; }
html.phpbb-dark-mode .bg3 { background-color: #132033; }
html.phpbb-dark-mode .post.bg1,
html.phpbb-dark-mode .post.bg2 {
    border-top-color: #2a3645;
    border-bottom-color: #2a3645;
}
html.phpbb-dark-mode table.zebra-list tr:nth-child(odd) td,
html.phpbb-dark-mode ul.zebra-list li:nth-child(odd) { background-color: #0f1724; }
html.phpbb-dark-mode table.zebra-list tr:nth-child(even) td,
html.phpbb-dark-mode ul.zebra-list li:nth-child(even) { background-color: #0c1420; }
html.phpbb-dark-mode .ucprowbg { background-color: #182235; }
html.phpbb-dark-mode .fieldsbg { background-color: #1a273a; }
html.phpbb-dark-mode ul.navlinks { border-top-color: #7cc1ff; }
html.phpbb-dark-mode table.table1 thead th { color: #e6edf3; }
html.phpbb-dark-mode table.table1 tbody tr { border-color: #2a3645; }
html.phpbb-dark-mode table.table1 tbody tr:hover,
html.phpbb-dark-mode table.table1 tbody tr.hover {
  background-color: #152a42;
  color: #ffffff;
}
html.phpbb-dark-mode table.table1 td { color: #cfd6e4; }
html.phpbb-dark-mode table.table1 tbody td { border-top-color: #0b1320; }
html.phpbb-dark-mode table.table1 tbody th {
  border-bottom-color: #334153;
  color: #e0e6ef;
  background-color: #0f1724;
}
/* Colour unread titles */
html.phpbb-dark-mode [class*="forum_unread"] a.forumtitle,
html.phpbb-dark-mode [class*="forum_unread_subforum"] a.forumtitle,
html.phpbb-dark-mode [class*="forum_unread"] a.lastsubject,
html.phpbb-dark-mode [class*="forum_unread_subforum"] a.lastsubject,
html.phpbb-dark-mode [class*="topic_unread"] a.topictitle,
html.phpbb-dark-mode [class*="global_unread"] a.topictitle,
html.phpbb-dark-mode [class*="announce_unread"] a.topictitle,
html.phpbb-dark-mode [class*="sticky_unread"] a.topictitle {
    color: #CC0000; 
}
html.phpbb-dark-mode table.info tbody th { color: #e6edf3; }
html.phpbb-dark-mode dl.details dt { color: #e6edf3; }
html.phpbb-dark-mode dl.details dd { color: #cfd6e4; }
html.phpbb-dark-mode .sep { color: #4aa9ff; }
html.phpbb-dark-mode .icon.icon-blue,
html.phpbb-dark-mode a:hover .icon.icon-blue { color: #6bb7ff; }
html.phpbb-dark-mode .icon.icon-green,
html.phpbb-dark-mode a:hover .icon.icon-green { color: #5bd45b; }
html.phpbb-dark-mode .icon.icon-red,
html.phpbb-dark-mode a:hover .icon.icon-red { color: #CC0000; }
html.phpbb-dark-mode .icon.icon-orange,
html.phpbb-dark-mode a:hover .icon.icon-orange { color: #ffa657; }
html.phpbb-dark-mode .icon.icon-bluegray,
html.phpbb-dark-mode a:hover .icon.icon-bluegray { color: #9fb0c8; }
html.phpbb-dark-mode .icon.icon-gray,
html.phpbb-dark-mode a:hover .icon.icon-gray { color: #9aa3ad; }
html.phpbb-dark-mode .icon.icon-lightgray,
html.phpbb-dark-mode a:hover .icon.icon-lightgray { color: #b7bfca; }
html.phpbb-dark-mode .icon.icon-black,
html.phpbb-dark-mode a:hover .icon.icon-black { color: #e6edf3; }
html.phpbb-dark-mode .alert_close .icon:before { background-color: #0f1724; }
html.phpbb-dark-mode .jumpbox .dropdown li { border-top-color: #334153; }
html.phpbb-dark-mode .jumpbox-cat-link {
  background-color: #0a5f8e;
  border-top-color: #0a5f8e;
  color: #e6edf3;
}
html.phpbb-dark-mode .jumpbox-cat-link:hover {
  background-color: #169ee6;
  border-top-color: #169ee6;
  color: #e6edf3;
}
html.phpbb-dark-mode .jumpbox-forum-link { background-color: #0f1724; }
html.phpbb-dark-mode .jumpbox-forum-link:hover { background-color: #1c2b42; }
html.phpbb-dark-mode .jumpbox .dropdown .pointer-inner { border-color: #0f1724 transparent; }
html.phpbb-dark-mode .jumpbox-sub-link { background-color: #0f1724; }
html.phpbb-dark-mode .jumpbox-sub-link:hover { background-color: #142338; }
html.phpbb-dark-mode .copyright { background: none; padding: 0; margin-top: 12px; color: #9aa3ad; }
html.phpbb-dark-mode .error { color: #CC0000; }
html.phpbb-dark-mode .reported { background-color: #2a1420; }
html.phpbb-dark-mode li.reported:hover { background-color: #3a1b2b !important; }
html.phpbb-dark-mode div.rules {
  background-color: #3a1b2b;
  color: #CC0000;
}
html.phpbb-dark-mode p.post-notice { background-color: #3a1b2b; background-image: none; }
html.phpbb-dark-mode ul.forums {
  background-color: #0f1724;
  background-image: linear-gradient(to bottom, #1a2635 0%, #0f1724 100%);
}
html.phpbb-dark-mode ul.topiclist li { color: #c2ccda; }
html.phpbb-dark-mode ul.topiclist dd { border-left-color: #0f1724; }
html.phpbb-dark-mode .rtl ul.topiclist dd {
  border-right-color: #0f1724;
  border-left-color: transparent;
}
html.phpbb-dark-mode li.row {
  border-top-color: #0c1220;
  border-bottom-color: #0f3a59;
}
html.phpbb-dark-mode li.row strong { color: #e6edf3; }
html.phpbb-dark-mode li.row:hover { background-color: #1c2b42; }
html.phpbb-dark-mode li.row:hover dd { border-left-color: #314155; }
html.phpbb-dark-mode .rtl li.row:hover dd {
  border-right-color: #314155;
  border-left-color: transparent;
}
html.phpbb-dark-mode li.header dt,
html.phpbb-dark-mode li.header dd { color: #dfe7f3; }
html.phpbb-dark-mode .postbody { color: #e6edf3; }
html.phpbb-dark-mode .content { color: #e6edf3; }
html.phpbb-dark-mode .content h2,
html.phpbb-dark-mode .panel h2 {
  color: #8ecbff;
  border-bottom-color: #334153;
}
html.phpbb-dark-mode dl.faq dt { color: #e6edf3; }
html.phpbb-dark-mode .posthilit {
  background-color: #3a2530;
  color: #CC0000;
}
html.phpbb-dark-mode .signature { border-top-color: #2a3645; }
html.phpbb-dark-mode .notice { border-top-color: #2a3645; }
html.phpbb-dark-mode blockquote {
  background-color: #1b1e22;
  border-color: #2c3239;
}
html.phpbb-dark-mode blockquote blockquote { background-color: #20242a; }
html.phpbb-dark-mode blockquote blockquote blockquote { background-color: #1b1e22; }
html.phpbb-dark-mode .codebox {
  background-color: #0d1117;
  border-color: #1f2937;
}
html.phpbb-dark-mode .codebox p { border-bottom-color: #2b3a4a; }
html.phpbb-dark-mode .codebox code { color: #7bdc96; }
html.phpbb-dark-mode .attachbox {
  background-color: #0f141a;
  border-color: #1f2a36;
}
html.phpbb-dark-mode .pm-message .attachbox { background-color: #0f1724; }
html.phpbb-dark-mode .attachbox dd { border-top-color: #1f2a36; }
html.phpbb-dark-mode .attachbox p,
html.phpbb-dark-mode .attachbox p.stats { color: #a7b3c1; }
html.phpbb-dark-mode .attach-image img { border-color: #3a4656; }
html.phpbb-dark-mode dl.file dd,
html.phpbb-dark-mode dl.thumbnail dd { color: #a7b3c1; }
html.phpbb-dark-mode dl.thumbnail img {
  border-color: #3a4656;
  background-color: #0f141a;
}
html.phpbb-dark-mode dl.thumbnail dt a:hover { background-color: #1a2330; }
html.phpbb-dark-mode dl.thumbnail dt a:hover img { border-color: #79b8ff; }
html.phpbb-dark-mode fieldset.polls dl {
  border-top-color: #2a3645;
  color: #a7b3c1;
}
html.phpbb-dark-mode fieldset.polls dl.voted { color: #e6edf3; }
html.phpbb-dark-mode fieldset.polls dd div { color: #0a0f18; }
html.phpbb-dark-mode .pollbar1 { background-color: #d24f7a; border-bottom-color: #8e2d4d; border-right-color: #8e2d4d; }
html.phpbb-dark-mode .pollbar2 { background-color: #e05282; border-bottom-color: #a2395f; border-right-color: #a2395f; }
html.phpbb-dark-mode .pollbar3 { background-color: #f05a8b; border-bottom-color: #c24770; border-right-color: #c24770; }
html.phpbb-dark-mode .pollbar4 { background-color: #ff5e93; border-bottom-color: #cc4a75; border-right-color: #cc4a75; }
html.phpbb-dark-mode .pollbar5 { background-color: #ff6a9a; border-bottom-color: #d1557d; border-right-color: #d1557d; }
html.phpbb-dark-mode .postprofile {
  color: #a7b3c1;
  border-color: #2a3645;
}
html.phpbb-dark-mode .pm .postprofile { border-color: #273446; }
html.phpbb-dark-mode .postprofile strong { color: #e6edf3; }
html.phpbb-dark-mode dd.profile-warnings { color: #CC0000; }
html.phpbb-dark-mode .button {
  border-color: #38465a;
  color: #CC0000;
  background-color: #141c27;
  background-image: linear-gradient(to bottom, #1a2331 0%, #141c27 100%);
  box-shadow: 0 0 0 1px #0f1724 inset;
}
html.phpbb-dark-mode .button:hover,
html.phpbb-dark-mode .button:focus {
  border-color: #79b8ff;
  text-shadow: none;
  background-color: #1a2331;
  background-image: linear-gradient(to bottom, #1e2938 0%, #172230 100%);
}
html.phpbb-dark-mode .button .icon,
html.phpbb-dark-mode .button-secondary { color: #b6c2cf; }
html.phpbb-dark-mode .button-secondary:focus,
html.phpbb-dark-mode .button-secondary:hover,
html.phpbb-dark-mode .button:focus .icon,
html.phpbb-dark-mode .button:hover .icon { color: #79b8ff; }
html.phpbb-dark-mode .button-search:hover,
html.phpbb-dark-mode .button-search-end:hover { border-color: #38465a; }
html.phpbb-dark-mode .caret { border-color: #2a3645; }
html.phpbb-dark-mode .contact-icons a { border-color: #2a3645; }
html.phpbb-dark-mode .contact-icons a:hover { background-color: #0f1724; }
html.phpbb-dark-mode .pagination li a {
  background: #1b2330;
  border-color: #334153;
  box-shadow: none;
  color: #c2ccda;
}
html.phpbb-dark-mode .pagination li.ellipsis span {
  background: transparent;
  color: #e6edf3;
}
html.phpbb-dark-mode .pagination li.active span {
  background: #226b98;
  border-color: #226b98;
  color: #ffffff;
}
html.phpbb-dark-mode .pagination li a:hover,
html.phpbb-dark-mode .pagination li a:hover .icon,
html.phpbb-dark-mode .pagination .dropdown-visible a.dropdown-trigger,
html.phpbb-dark-mode .nojs .pagination .dropdown-container:hover a.dropdown-trigger {
  background: #1c5e8d;
  border-color: #1c5e8d;
  color: #ffffff;
  text-shadow: none;
}
html.phpbb-dark-mode .search-box .inputbox,
html.phpbb-dark-mode .search-box .inputbox:hover,
html.phpbb-dark-mode .search-box .inputbox:focus { border-color: #334153; }
html.phpbb-dark-mode .search-header { box-shadow: 0 0 10px #0a3c5f; }
html.phpbb-dark-mode .search-results li:hover,
html.phpbb-dark-mode .search-results li.active { background-color: #152a42; }
html.phpbb-dark-mode .phpbb_alert {
  background-color: #0f1724;
  border-color: #334153;
}
html.phpbb-dark-mode .darken { background-color: #000000; }
html.phpbb-dark-mode .loading_indicator {
  background-color: #000000;
  background-image: url("./images/loading.gif");
}
html.phpbb-dark-mode .dropdown-extended ul li { border-top-color: #2a3645; }
html.phpbb-dark-mode .dropdown-extended ul li:hover {
  background-color: #152a42;
  color: #ffffff;
}
html.phpbb-dark-mode .dropdown-extended .header,
html.phpbb-dark-mode .dropdown-extended .footer {
  border-color: #2a3645;
  color: #e6edf3;
}
html.phpbb-dark-mode .dropdown-extended .footer { border-top-style: solid; border-top-width: 1px; }
html.phpbb-dark-mode .dropdown-extended .header {
  background-image: linear-gradient(to bottom, #0f2236 0%, #16283c 100%);
}
html.phpbb-dark-mode .dropdown .pointer { border-color: #2a3645 transparent; }
html.phpbb-dark-mode .dropdown .pointer-inner { border-color: #0f1724 transparent; }
html.phpbb-dark-mode .dropdown-extended .pointer-inner { border-color: #0f2236 transparent; }
html.phpbb-dark-mode .dropdown .dropdown-contents {
  background: #0f1724;
  border-color: #2a3645;
  box-shadow: 1px 3px 5px rgba(0,0,0,0.5);
}
html.phpbb-dark-mode .dropdown-up .dropdown-contents { box-shadow: 1px 0 5px rgba(0,0,0,0.5); }
html.phpbb-dark-mode .dropdown li,
html.phpbb-dark-mode .dropdown li li { border-color: #2a3645; }
html.phpbb-dark-mode .dropdown li.separator { border-color: #2a3645; }
html.phpbb-dark-mode .notification_list p.notification-time { color: #a7b3c1; }
html.phpbb-dark-mode li.notification-reported strong,
html.phpbb-dark-mode li.notification-disapproved strong { color: #CC0000; }
html.phpbb-dark-mode .badge { background-color: #CC0000; color: #0a0f18; }
html.phpbb-dark-mode .panel-container h3,
html.phpbb-dark-mode .panel-container hr,
html.phpbb-dark-mode .cp-menu hr { border-color: #334153; }
html.phpbb-dark-mode .panel-container .panel li.row {
  border-bottom-color: #314155;
  border-top-color: #0c1220;
}
html.phpbb-dark-mode ul.cplist { border-top-color: #314155; }
html.phpbb-dark-mode .panel-container .panel li.header dd,
html.phpbb-dark-mode .panel-container .panel li.header dt { color: #e6edf3; }
html.phpbb-dark-mode .panel-container table.table1 thead th {
  color: #e6edf3;
  border-bottom-color: #e6edf3;
}
html.phpbb-dark-mode .cp-main .pm-message {
  border-color: #1f2937;
  background-color: #0f1724;
}
html.phpbb-dark-mode .navigation a {
  color: #e6edf3;
  background: linear-gradient(to right, #182536 50%, #1e2c3d 100%) !important;
}
html.phpbb-dark-mode .rtl .navigation a {
  background: linear-gradient(to right, #1e2c3d 50%, #182536 100%) !important;
}
html.phpbb-dark-mode .navigation a:hover {
  background: #1b2a3b;
  color: #CC0000;
}
html.phpbb-dark-mode .navigation .active-subsection a {
  background: #4d4d4d60;
  color: #CC0000;
}
html.phpbb-dark-mode .panel-container h2 { color: #e6edf3; }
html.phpbb-dark-mode .panel-container .panel { background-color: #4d4d4d60; }
html.phpbb-dark-mode .cp-main .pm { background-color: #0f1724; }
html.phpbb-dark-mode .cp-mini { background-color: #0f1724; }
html.phpbb-dark-mode dl.mini dt { color: #c2ccda; }
html.phpbb-dark-mode .current { color: #e6edf3 !important; }
html.phpbb-dark-mode .pmlist li.pm_message_reported_colour,
html.phpbb-dark-mode .pm_message_reported_colour { border-left-color: #CC0000; border-right-color: #CC0000; }
html.phpbb-dark-mode .pmlist li.pm_marked_colour,
html.phpbb-dark-mode .pm_marked_colour { border-color: #ffa657; }
html.phpbb-dark-mode .pmlist li.pm_replied_colour,
html.phpbb-dark-mode .pm_replied_colour { border-color: #1e2c3d; }
html.phpbb-dark-mode .pmlist li.pm_friend_colour,
html.phpbb-dark-mode .pm_friend_colour { border-color: #9bbdf1; }
html.phpbb-dark-mode .pmlist li.pm_foe_colour,
html.phpbb-dark-mode .pm_foe_colour { border-color: #e6edf3; }
html.phpbb-dark-mode .gallery label { background: #0f1724; border-color: #334153; }
html.phpbb-dark-mode .gallery label:hover { background-color: #0f1724; }
html.phpbb-dark-mode select {
  border-color: #e6edf3;
  background-color: #0b1320;
  color: #e6edf3;
}
html.phpbb-dark-mode label { color: #c2ccda; }
html.phpbb-dark-mode dd label { color: #e6edf3; }
html.phpbb-dark-mode fieldset.fields1 { background-color: transparent; }
html.phpbb-dark-mode fieldset dl:hover dt label { color: #e6edf3; }
html.phpbb-dark-mode fieldset.fields2 dl:hover dt label { color: inherit; }
html.phpbb-dark-mode fieldset.quick-login input.inputbox { background-color: #0f1724; }
html.phpbb-dark-mode .message-box textarea { color: #e6edf3; }
html.phpbb-dark-mode .message-box textarea.drag-n-drop { outline-color: rgba(230,237,243,.5); }
html.phpbb-dark-mode .message-box textarea.drag-n-drop-highlight { outline-color: rgba(124,193,255,.5); }
html.phpbb-dark-mode .inputbox {
  background-color: #0f1724;
  border-color: #38465a;
  color: #e6edf3;
}
html.phpbb-dark-mode .inputbox:hover { border-color: #7cc1ff; }
html.phpbb-dark-mode .inputbox:focus { border-color: #7cc1ff; }
html.phpbb-dark-mode .inputbox:-moz-placeholder { color: #e6edf3; }
html.phpbb-dark-mode .inputbox:-webkit-input-placeholder { color: #e6edf3; }
html.phpbb-dark-mode .inputbox:focus:-moz-placeholder { color: transparent; }
html.phpbb-dark-mode .inputbox:focus:-webkit-input-placeholder { color: transparent; }
html.phpbb-dark-mode a.button1,
html.phpbb-dark-mode input.button1,
html.phpbb-dark-mode input.button3,
html.phpbb-dark-mode a.button2,
html.phpbb-dark-mode input.button2 {
  color: #e6edf3;
  background-image: linear-gradient(to bottom, #1a2331 0%, #141c27 100%);
}
html.phpbb-dark-mode a.button1,
html.phpbb-dark-mode input.button1 { border-color: #e6edf3; }
html.phpbb-dark-mode input.button3 { background-image: none; }
html.phpbb-dark-mode a.button2,
html.phpbb-dark-mode input.button2,
html.phpbb-dark-mode input.button3 { border-color: #e6edf3; }
html.phpbb-dark-mode a.button1,
html.phpbb-dark-mode a.button2 { color: #e6edf3; }
html.phpbb-dark-mode a.button1:hover,
html.phpbb-dark-mode input.button1:hover,
html.phpbb-dark-mode a.button2:hover,
html.phpbb-dark-mode input.button2:hover,
html.phpbb-dark-mode input.button3:hover {
  border-color: #CC0000;
  color: #CC0000;
  background-image: linear-gradient(to bottom, #1e2938 0%, #172230 100%);
}
html.phpbb-dark-mode input.button1:focus,
html.phpbb-dark-mode input.button2:focus,
html.phpbb-dark-mode input.button3:focus {
  border-color: #79b8ff;
  color: #bfe3ff;
}
html.phpbb-dark-mode input.disabled { color: #9aa3ad; }

/* Toggle button (moon/sun) */
#toggle-theme {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  line-height: 1;
}
#toggle-theme .icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  display: none;
}
html:not(.phpbb-dark-mode) #toggle-theme .icon-moon { display: inline-block; }
html.phpbb-dark-mode #toggle-theme .icon-sun  { display: inline-block; }
#toggle-theme:focus,
#toggle-theme:active,
#toggle-theme:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; }
#toggle-theme::-moz-focus-inner { border: 0; }
@media (max-width: 700px) {
    #toggle-theme .icon {
      transform: scale(0.90) !important;
    }
}

/* ==== UCP/MCP TABS — DARK (hard-coded) ==== */
html.phpbb-dark-mode .tabs .tab > a { background:#1e2c3d; color:#cfd6e4; }
html.phpbb-dark-mode .tabs .tab > a:hover { background:#0f1724; color:#CC0000; }
html.phpbb-dark-mode .tabs .activetab > a,
html.phpbb-dark-mode .tabs .activetab > a:hover {
  background-image:linear-gradient(to bottom, #0f1724 0%, #1e2c3d 100%);
  border-color:#1e2c3d;
  box-shadow:0 1px 1px #0f1724 inset;
  color:#e6edf3;
}
html.phpbb-dark-mode .minitabs .tab > a { background-color:#0c1420; color:#cfd6e4; }
html.phpbb-dark-mode .minitabs .tab > a:hover { background-color:#0f1724; color:#CC0000; }
html.phpbb-dark-mode .minitabs .activetab > a,
html.phpbb-dark-mode .minitabs .activetab > a:hover {
  background-color:#4d4d4d60;
  color:#e6edf3;
}
html.phpbb-dark-mode .responsive-tab .responsive-tab-link:before { border-color:#cfd6e4; }
html.phpbb-dark-mode .responsive-tab .responsive-tab-link:hover:before { border-color:#CC0000; }

/**************************************************
 * FONDS SPÉCIAUX DU STYLE — VERSION DARK
 * (adapter les noms de fichiers si besoin)
 **************************************************/

/* Fond général du forum (bgforum + body) */
html.phpbb-dark-mode body {
  background-color: #000010;
}
html.phpbb-dark-mode #bgforum {
  background-image: url("./images/bgforum_dark.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
}

/* Backblue (fond derrière le wrap, colonnes, etc.) */
html.phpbb-dark-mode .backblue,
html.phpbb-dark-mode #backblue {
  background-image: url("./images/backblue_dark.png");
}

/* Header (grosse bannière du haut) */
html.phpbb-dark-mode .headerbar,
html.phpbb-dark-mode #bg_header,
html.phpbb-dark-mode .bg_header {
  background-image: url("./images/bg_header_dark.png");
}

/* Navbar (barre de menu) — forcée en sombre */
html.phpbb-dark-mode .navbar,
html.phpbb-dark-mode #navbar,
html.phpbb-dark-mode .bg_navbar {
    background-image: url("./images/navbar_dark.png") !important;
    background-color: #1e2c3d !important;
    border-color: #334153 !important;
}

/* Listes de forums (forabg / forumbg = blocs de catégories) */
html.phpbb-dark-mode .forabg,
html.phpbb-dark-mode .forumbg {
  background-image: url("./images/bg_list_dark.png");
}

/* Bas des blocs de liste (barre inférieure) */

/* Mode clair : on recrée la barre même sans .hasborder */
.forabg::after,
.forumbg::after,
.bg_list_bottom {
  content: "";
  background: url("./images/bg_list_bottom.png") repeat-x;
  border-left: 1px solid rgba(38, 87, 120, 0.6);
  border-right: 1px solid rgba(38, 87, 120, 0.6);
  border-bottom: 1px solid rgba(38, 87, 120, 0.6);
  display: block;
  height: 17px;
  border-radius: 0 0 5px 5px;
}

/* Mode sombre : version bg_list_bottom_dark */
html.phpbb-dark-mode .forabg::after,
html.phpbb-dark-mode .forumbg::after,
html.phpbb-dark-mode .bg_list_bottom {
  background: url("./images/bg_list_bottom_dark.png") repeat-x;
  border-left-color: #334153;
  border-right-color: #334153;
  border-bottom-color: #334153;
}
/* Bloc spécial forumg (si utilisé sur index ou sur la page arcade) */
html.phpbb-dark-mode .forumg,
html.phpbb-dark-mode #forumg {
  background-image: url("./images/forumg_dark.png");
}

/* =====================================================
 * BlueLand_v33 specific dark images overrides
 * ===================================================== */

/* Fond général (backblue_dark) */
html.phpbb-dark-mode html,
html.phpbb-dark-mode body {
    background-image: url("./images/backblue_dark.jpg") !important;
    background-color: #000010 !important;
}

/* Blocs catégories / forums (bg_list_dark) */
html.phpbb-dark-mode .forabg,
html.phpbb-dark-mode .forumbg {
    background-image: url("./images/bg_list_dark.png") !important;
}

/* Bas des blocs (bg_list_bottom_dark) */
html.phpbb-dark-mode .hasborder .forabg::after,
html.phpbb-dark-mode .hasborder .forumbg::after,
html.phpbb-dark-mode .bg_list_bottom {
    background-image: url("./images/bg_list_bottom_dark.png") !important;
}

/* Bannière haut de page (bg_header_dark via variables CSS) */
html.phpbb-dark-mode :root {
    --banniere-path: url("./images/bg_header_dark.png");
    --banniere-bg-color: #0d1520;
}

html.phpbb-dark-mode .headerbar {
    background: var(--banniere-bg-color) var(--banniere-path) no-repeat center top !important;
}

/* ================================================
   Texte bleu néon lisible en mode sombre
   ================================================ */

html.phpbb-dark-mode,
html.phpbb-dark-mode body,
html.phpbb-dark-mode .content,
html.phpbb-dark-mode .postbody,
html.phpbb-dark-mode .post,
html.phpbb-dark-mode .postprofile,
html.phpbb-dark-mode .postprofile dd,
html.phpbb-dark-mode .panel,
html.phpbb-dark-mode .forabg,
html.phpbb-dark-mode .forumbg,
html.phpbb-dark-mode .topiclist li,
html.phpbb-dark-mode .topiclist dt,
html.phpbb-dark-mode .topiclist dd,
html.phpbb-dark-mode .bg1,
html.phpbb-dark-mode .bg2,
html.phpbb-dark-mode .bg3,
html.phpbb-dark-mode .headerbar,
html.phpbb-dark-mode .inner,
html.phpbb-dark-mode .row,
html.phpbb-dark-mode .stat-block,
html.phpbb-dark-mode p,
html.phpbb-dark-mode span,
html.phpbb-dark-mode a {
    color: #4ecbff !important;
}

/* Couleur des messages mChat en mode sombre (forcé en bleu néon) */
html.phpbb-dark-mode .mchat-body,
html.phpbb-dark-mode .mchat-body *,
html.phpbb-dark-mode #mchat-panel,
html.phpbb-dark-mode #mchat-panel *,
html.phpbb-dark-mode #mchat-main,
html.phpbb-dark-mode #mchat-main li,
html.phpbb-dark-mode #mchat-main li *,
html.phpbb-dark-mode .mchat-message,
html.phpbb-dark-mode .mchat-message-text,
html.phpbb-dark-mode .mchat-message-text *,
html.phpbb-dark-mode .mchat-text,
html.phpbb-dark-mode .mchat-text *,
html.phpbb-dark-mode .mchat-msg,
html.phpbb-dark-mode .mchat-msg * {
    color: #fb6f92 !important;
}
/* Effet NEON BLEU dans le mChat en mode sombre */
html.phpbb-dark-mode .mchat-message-text,
html.phpbb-dark-mode .mchat-message-text *,
html.phpbb-dark-mode .mchat-msg,
html.phpbb-dark-mode .mchat-msg *,
html.phpbb-dark-mode .mchat-text,
html.phpbb-dark-mode .mchat-text *,
html.phpbb-dark-mode #mchat-main li,
html.phpbb-dark-mode #mchat-main li * {
    color: #fb6f92 !important;


}
/* =====================================================
 * Blocs "stat-block" (Qui joue / Infos jeux / scores...)
 * en mode sombre : fond foncé + texte clair
 * ===================================================== */

/* Conteneur principal des blocs statistiques (dont "Qui joue") */
html.phpbb-dark-mode .stat-block {
    background-color: #050a12 !important;
    border-color: #2a3645 !important;
    color: #e7ecf5 !important;
}

/* Titre du bloc (ex. "Qui joue depuis les 5 dernières minute(s) ?") */
html.phpbb-dark-mode .has-bg-icons .online-list > p,
html.phpbb-dark-mode .stat-block > p {
    background-color: #101725 !important;
    color: #e7ecf5 !important;
}

/* Intérieur du bloc (lignes, listes, etc.) */
html.phpbb-dark-mode .online-list,
html.phpbb-dark-mode .online-list *,
html.phpbb-dark-mode .stat-block ul,
html.phpbb-dark-mode .stat-block li,
html.phpbb-dark-mode .stat-block .bg1,
html.phpbb-dark-mode .stat-block .bg2 {
    background-color: #050a12 !important;
    color: #e7ecf5 !important;
}
/* ==========================================
   Mode sombre — tableaux de l'index Arcade
   (TOP 10 des joueurs + Derniers scores OA)
   ========================================== */

/* Fond + contour des tableaux dans le bloc Arcade de l'index */
html.phpbb-dark-mode .block_arcade_index table.table1,
html.phpbb-dark-mode .block_arcade_index table.table1 tr,
html.phpbb-dark-mode .block_arcade_index table.table1 th,
html.phpbb-dark-mode .block_arcade_index table.table1 td {
    background-color: #050a12 !important;  /* fond sombre uniforme */
    border-color: #050a12 !important;      /* plus de contour bleu */
    box-shadow: none !important;
}