/*
 * MUINMORTALS — Native WebEngine module presentation.
 * Works with the original WebEngine 1.2.7 module markup and Bootstrap 3.
 * The template shell is defined in theme.css. No module logic is replaced.
 */

/* Bridge the native palette so inherited module rules stay readable. */
body.im-site {
  --webenginebg1: var(--im-bg);
  --webenginebg2: var(--im-panel);
  --webenginebg3: var(--im-bg);
  --webenginecolor1: var(--im-cyan);
  --webenginecolor2: var(--im-text);
  --webenginecolor3: var(--im-cyan);
  --webenginecolor4: #ffffff;
  --webenginecolor5: #101f33;
  --webenginecolor6: var(--im-silver);
  --webenginecolor7: var(--im-blue);
  --webenginecolor8: #0866b0;
  --webenginecolor9: #ffffff;
  --webenginecolor10: #4aa8e7;
  --webenginecolor11: #087dcf;
  --webenginecolor12: #ffffff;
  --webenginecolor13: var(--im-cyan);
  --webenginecolor14: var(--im-muted);
  --webenginebg14: var(--im-muted);
  --webenginecolor15: #06111f;
  --webenginecolor16: var(--im-line);
  --webenginecolor17: var(--im-text);
  --webenginecolor18: var(--im-blue);
  --webenginecolor21: var(--im-line);
  --webenginecolor22: #091422;
  --webenginecolor23: var(--im-muted);
  --webenginecolor24: #0b1b2e;
  --webenginecolor25: #b7cce2;
  --webenginecolor26: #c7efff;
  --webenginecolor27: var(--im-panel);
  --webenginecolor28: #0d1c2e;
  --webenginecolor29: #0b1a2c;
  --webenginecolor30: #356286;
  --webenginecolor31: #edf3fa;
  --webenginecolor32: var(--im-cyan);
  --webenginecolor33: #c2d5e9;
  --webenginecolor54: #0e2136;
  --webenginecolor55: rgba(0, 0, 0, .25);
  --webenginecolor56: rgba(0, 0, 0, .3);
  --webenginecolor57: var(--im-muted);
  --webenginecolor58: #132d47;
  --webenginecolor59: #c8eaff;
  --webenginecolor60: var(--im-text);
  --webenginecolor61: #c2d5e9;
  --webenginecolor62: rgba(0, 0, 0, .3);
  --webenginecolor63: var(--im-line);
}

/* Module flow, typography, editorial content and empty states. */
body.im-site .im-module,
body.im-site .im-module-body {
  min-width: 0;
  color: var(--im-text);
  font-family: var(--im-font-body);
  line-height: 1.65;
  overflow-wrap: break-word;
}
body.im-site .im-module::after,
body.im-site .im-module-body::after {
  content: "";
  display: table;
  clear: both;
}
body.im-site .im-module .page-title {
  padding: 0 0 18px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--im-line);
  color: #edf5ff;
  font-family: var(--im-font-title);
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .025em;
  text-align: left;
}
body.im-site .im-module .page-title:not(:first-child) {
  margin-top: 32px;
  font-size: 22px;
}
body.im-site .im-module h2,
body.im-site .im-module h3,
body.im-site .im-module h4 {
  color: var(--im-silver);
  font-family: var(--im-font-title);
  font-weight: 600;
  line-height: 1.4;
}
body.im-site .im-module h2 { margin: 28px 0 18px; font-size: 23px; }
body.im-site .im-module h3 { margin: 24px 0 14px; font-size: 19px; }
body.im-site .im-module h4 { margin: 20px 0 12px; font-size: 16px; }
body.im-site .im-module p { margin-bottom: 18px; }
body.im-site .im-module > p,
body.im-site .im-module-body > p { max-width: 86ch; color: #bdcee0; }
body.im-site .im-module > ul,
body.im-site .im-module > ol,
body.im-site .im-module-body > ul,
body.im-site .im-module-body > ol {
  padding-left: 24px;
  margin-bottom: 22px;
  line-height: 1.9;
  color: #bdcee0;
}
body.im-site .im-module a { color: var(--im-cyan); }
body.im-site .im-module a:hover { color: #ffffff; }
body.im-site .im-module a:focus-visible,
body.im-site .panel-news a:focus-visible {
  outline: 2px solid var(--im-cyan) !important;
  outline-offset: 4px;
}
body.im-site .im-module hr { margin: 26px 0; border-color: var(--im-line); }
body.im-site .im-module img { max-width: 100%; }
body.im-site .im-module iframe { max-width: 100%; }
body.im-site .im-module blockquote {
  padding: 16px 20px;
  margin: 22px 0;
  border-left: 3px solid var(--im-blue);
  background: rgba(21, 60, 91, .25);
  color: #bcd1e8;
  font-size: 15px;
}
body.im-site .im-module pre {
  padding: 16px;
  border: 1px solid var(--im-line);
  background: #040c16;
  color: #c4d8ec;
  overflow-x: auto;
}
body.im-site .im-module code { color: #a9dbfc; background: #102337; }
body.im-site .text-muted,
body.im-site .help-block { color: var(--im-muted); }
body.im-site .im-module .page-container,
body.im-site .im-module .page-content { width: auto; max-width: 100%; }

/* Controls retain their original names, actions and validation hooks. */
body.im-site .form-control,
body.im-site input[type="text"],
body.im-site input[type="password"],
body.im-site input[type="email"],
body.im-site input[type="number"],
body.im-site input[type="search"] {
  height: 44px;
  max-width: 100%;
  padding: 10px 13px;
  border: 1px solid #35516e;
  border-radius: 4px;
  background: linear-gradient(180deg, #06101d, #0b192a);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .17);
  color: #e5f0fc;
  font-family: var(--im-font-body);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .16s ease, box-shadow .16s ease;
  color-scheme: dark;
}
body.im-site .form-control::placeholder,
body.im-site input::placeholder { color: #8198b2; opacity: 1; }
body.im-site .form-control:focus,
body.im-site input[type="text"]:focus,
body.im-site input[type="password"]:focus,
body.im-site input[type="email"]:focus,
body.im-site input[type="number"]:focus,
body.im-site input[type="search"]:focus {
  border-color: var(--im-cyan);
  outline: 2px solid rgba(80, 180, 245, .26);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(30, 158, 255, .10);
}
body.im-site textarea.form-control { height: auto; min-height: 140px; resize: vertical; }
body.im-site select.form-control { padding-right: 26px; cursor: pointer; }
body.im-site select option { background: #0b192a; color: #e5f0fc; }
body.im-site input[type="checkbox"],
body.im-site input[type="radio"] { accent-color: var(--im-blue); }
body.im-site .form-control[disabled],
body.im-site .form-control[readonly],
body.im-site fieldset[disabled] .form-control {
  background: #102032;
  color: #8fa3bb;
  opacity: .75;
}
body.im-site .has-error .form-control,
body.im-site .form-control[aria-invalid="true"] { border-color: #df7d8d; }
body.im-site .has-error .help-block,
body.im-site .has-error .control-label { color: #f2a4ae; }
body.im-site .has-success .form-control { border-color: #63b79f; }
body.im-site .im-module label,
body.im-site .im-module .control-label { color: #c7d9eb; font-size: 13px; font-weight: 600; }
body.im-site .im-module .help-block { margin: 7px 0 0; font-size: 12px; line-height: 1.65; }
body.im-site .im-module .help-block a { text-decoration: underline; text-underline-offset: 3px; }
body.im-site .im-module .form-group { margin-bottom: 22px; }
body.im-site .im-module > .col-xs-8.col-xs-offset-2,
body.im-site .im-module-body > .col-xs-8.col-xs-offset-2 {
  float: none;
  width: 100%;
  max-width: 640px;
  padding: 0;
  margin: 28px auto !important;
}
body.im-site .im-module .form-horizontal > .form-group {
  margin-left: 0;
  margin-right: 0;
}
body.im-site .im-module .form-horizontal > .form-group > [class*="col-sm-"] {
  float: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
}
body.im-site .im-module .form-horizontal > .form-group > .control-label {
  display: block;
  padding-top: 0;
  margin-bottom: 8px;
  text-align: left;
}
body.im-site .input-group-addon {
  border-color: #35516e;
  background: #12263c;
  color: #c0d9ee;
}
body.im-site .im-module .g-recaptcha { max-width: 100%; }

/* Native Bootstrap actions, including small table and sidebar buttons. */
body.im-site .btn {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 4px;
  font-family: var(--im-font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .025em;
  white-space: normal;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
body.im-site .btn-primary,
body.im-site .im-module a.btn-primary {
  border: 1px solid #68baf1;
  background: linear-gradient(180deg, #127ac6, #064b89);
  color: #f4fbff;
  box-shadow: inset 0 1px 0 rgba(213, 241, 255, .25), 0 2px 10px rgba(0, 100, 190, .12);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
body.im-site .btn-primary:hover,
body.im-site .btn-primary:focus,
body.im-site .btn-primary:active,
body.im-site .im-module a.btn-primary:hover {
  border-color: #b5eaff !important;
  background: linear-gradient(180deg, #188edc, #075e9f) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(213, 241, 255, .3), 0 0 16px rgba(30, 158, 255, .2);
}
body.im-site .btn-default,
body.im-site .btn-castlewidget,
body.im-site .im-module a.btn-default {
  border-color: #42627e;
  background: #102238;
  color: #d3e5f6;
  text-shadow: none;
}
body.im-site .btn-default:hover,
body.im-site .btn-castlewidget:hover,
body.im-site .btn-castlewidget:focus {
  border-color: var(--im-cyan) !important;
  background: #173450 !important;
  color: #ffffff !important;
}
body.im-site .btn-success { background: #175144; border-color: #488e77; color: #d8f7ec; }
body.im-site .btn-danger { background: #5c2737; border-color: #a25b6d; color: #ffe7eb; }
body.im-site .btn-warning { background: #5c4725; border-color: #a28c5b; color: #fff1d5; }
body.im-site .btn-info { background: #173d5b; border-color: #447899; color: #dff3ff; }
body.im-site .btn-link { color: var(--im-cyan); }
body.im-site .btn-xs { min-height: 30px; padding: 5px 10px; font-size: 11px; }
body.im-site .btn-sm { min-height: 36px; padding: 8px 12px; font-size: 12px; }
body.im-site .btn-lg { min-height: 49px; padding: 13px 24px; font-size: 14px; }
body.im-site .btn.disabled,
body.im-site .btn[disabled],
body.im-site fieldset[disabled] .btn { opacity: .45; cursor: not-allowed; box-shadow: none; }
body.im-site .btn:focus-visible,
body.im-site .btn-castlewidget:focus-visible {
  outline: 2px solid var(--im-cyan) !important;
  outline-offset: 4px;
}

/* Status feedback never relies on colour alone: native messages remain intact. */
body.im-site .alert {
  padding: 17px 20px;
  margin: 0 0 22px;
  border-width: 1px 1px 1px 3px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body.im-site .alert-info { background: #0c2439; border-color: #386b90; color: #b7def8; }
body.im-site .alert-success { background: #102b29; border-color: #468774; color: #b8e7d5; }
body.im-site .alert-warning { background: #30291b; border-color: #8c7546; color: #edd6a3; }
body.im-site .alert-danger { background: #301b27; border-color: #975668; color: #f1b5c0; }
body.im-site .alert a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.im-site .alert strong { color: inherit; font-weight: 700; }
body.im-site .alert .close { color: inherit; opacity: .8; text-shadow: none; }
body.im-site .label,
body.im-site .badge {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .035em;
}
body.im-site .label-default,
body.im-site .badge { background: #1a2b40; border-color: #354b64; color: #b9cce0; }
body.im-site .label-success { background: #14382f; border-color: #306a57; color: #a9e4c8; }
body.im-site .label-danger { background: #422333; border-color: #794456; color: #f1afbb; }
body.im-site .label-warning { background: #41351e; border-color: #79633d; color: #e9cc8d; }
body.im-site .label-info,
body.im-site .label-primary { background: #173b5b; border-color: #37698e; color: #b7e3ff; }
body.im-site .module-requirements {
  padding: 17px 20px;
  margin: 22px 0 0;
  border: 1px solid #29445e;
  border-left: 3px solid #477da5;
  border-radius: 4px;
  background: rgba(15, 37, 58, .65);
  color: #a8bfd4;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}
body.im-site .module-requirements p { margin: 0 0 5px; }
body.im-site .module-requirements p:last-child { margin-bottom: 0; }

/* Shared data tables. JS may add .im-table-scroll without changing the data. */
body.im-site .im-table-scroll,
body.im-site .im-module .table-responsive {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 22px;
  border: 1px solid var(--im-line);
  border-radius: 5px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #345675 #08131f;
  scrollbar-width: thin;
}
body.im-site .im-table-scroll:focus-visible { outline: 2px solid var(--im-cyan); outline-offset: 3px; }
body.im-site .im-module .table,
body.im-site .rankings-table,
body.im-site .general-table-ui {
  width: 100%;
  border: 1px solid var(--im-line);
  border-collapse: collapse;
  border-spacing: 0;
  background: #081422;
  color: var(--im-text);
  font-size: 13px;
  line-height: 1.5;
}
body.im-site .im-table-scroll > table {
  margin: 0;
  border: 0;
}
body.im-site .im-module .table > thead > tr > th,
body.im-site .im-module .table > thead > tr > td,
body.im-site .im-module .rankings-table > tbody > tr:first-child > td,
body.im-site .im-module .rankings-table > tr:first-child > td,
body.im-site .im-module .general-table-ui > tbody > tr:first-child > td,
body.im-site .im-module .general-table-ui > tr:first-child > td {
  padding: 13px 15px;
  border-top: 0;
  border-bottom: 1px solid #3a5977;
  background: #102337;
  color: #a9c7e2;
  font-family: var(--im-font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .065em;
  text-transform: uppercase;
  vertical-align: middle;
}
body.im-site .im-module .table > tbody > tr > td,
body.im-site .im-module .table > tbody > tr > th,
body.im-site .rankings-table > tbody > tr > td,
body.im-site .rankings-table > tr > td,
body.im-site .general-table-ui > tbody > tr > td,
body.im-site .general-table-ui > tr > td {
  padding: 13px 15px;
  border-top: 0;
  border-bottom: 1px solid rgba(49, 74, 101, .62);
  color: #d2e1f0;
  font-size: 13px;
  vertical-align: middle;
}
body.im-site .im-module .table > tbody > tr:last-child > td,
body.im-site .rankings-table > tbody > tr:last-child > td,
body.im-site .general-table-ui > tbody > tr:last-child > td { border-bottom: 0; }
body.im-site .im-module .table-striped > tbody > tr:nth-of-type(odd),
body.im-site .general-table-ui > tbody > tr:nth-child(2n+2) > td { background: rgba(20, 41, 61, .48); }
body.im-site .im-module .table-hover > tbody > tr:hover,
body.im-site .rankings-table > tbody > tr:not(:first-child):hover,
body.im-site .general-table-ui > tbody > tr:not(:first-child):hover { background: rgba(29, 66, 98, .4); }
body.im-site .im-module .table-bordered,
body.im-site .im-module .table-bordered > tbody > tr > td,
body.im-site .im-module .table-bordered > thead > tr > th { border-color: var(--im-line); }
body.im-site .general-table-ui { min-width: 560px; table-layout: auto; }
body.im-site .general-table-ui img {
  width: 44px;
  height: auto;
  border: 1px solid #476582;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
body.im-site .general-table-ui td > .btn { white-space: nowrap; }
body.im-site .rankings_guild_logo,
body.im-site .rankings_guild_logo tr,
body.im-site .rankings_guild_logo tr td {
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  background: none !important;
  box-shadow: none;
}

/* Full rankings: all native categories, class filters and cached timestamps. */
body.im-site .rankings_menu {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  padding: 0 0 20px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--im-line);
  overflow: visible;
  text-align: left;
}
body.im-site .rankings_menu span { width: 100%; padding: 0 0 8px; font-size: 18px; }
body.im-site .rankings_menu a {
  flex: 0 1 auto;
  width: auto;
  min-width: 105px;
  padding: 9px 15px;
  margin: 0;
  border: 1px solid #2e4b68;
  border-radius: 4px;
  background: #0c1c30;
  color: #a9c1d9;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
body.im-site .rankings_menu a:hover { background: #16324e; border-color: #6693b5; color: #fff; }
body.im-site .rankings_menu a.active {
  border-color: #66b6ec;
  background: linear-gradient(180deg, #175784, #103552);
  box-shadow: inset 0 1px 0 rgba(174, 227, 255, .18);
  color: #e2f5ff;
}
body.im-site .rankings-table { min-width: 610px; }
body.im-site .rankings-table td { font-variant-numeric: tabular-nums; }
body.im-site .im-module .rankings-table td.rankings-table-place { width: 58px; color: #8fa8c2; font-family: var(--im-font-title); font-size: 21px; }
body.im-site .im-module .rankings-table > tbody > tr:nth-child(2) .rankings-table-place { color: #e8c47d; }
body.im-site .im-module .rankings-table > tbody > tr:nth-child(3) .rankings-table-place { color: #d5e2ef; }
body.im-site .im-module .rankings-table > tbody > tr:nth-child(4) .rankings-table-place { color: #cd9b7b; }
body.im-site .rankings-table a { color: #dceafa; font-weight: 600; }
body.im-site .rankings-table a:hover { color: var(--im-cyan); }
body.im-site .rankings-class-image {
  width: 38px;
  height: 38px;
  border: 1px solid #466682;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
body.im-site .rankings-gens-img { width: auto !important; height: 30px !important; }
body.im-site .online-status-indicator { width: 8px; height: 8px; margin-left: 7px; border: 0; box-shadow: none; vertical-align: middle; }
body.im-site .rankings-update-time { margin-top: 8px; color: var(--im-muted); font-size: 11px; text-align: right; }
body.im-site .rankings-class-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  width: 100%;
  padding: 5px 0 18px;
  margin: 0;
  border-radius: 0;
  list-style: none;
}
body.im-site .rankings-class-filter li { flex: 0 0 auto; margin: 0; }
body.im-site .rankings-class-filter-selection {
  display: block;
  width: 78px;
  min-height: 92px;
  padding: 9px 5px 7px;
  border: 1px solid #426684;
  border-radius: 5px;
  background: #10263b;
  color: #d4e6f4;
  font-size: 10px;
  line-height: 1.4;
  cursor: pointer;
}
body.im-site .rankings-class-filter-selection img {
  width: 40px;
  height: 40px;
  margin-bottom: 7px;
  border: 1px solid #6c8ba7;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;
}
body.im-site .rankings-class-filter-grayscale {
  border-color: #233b53;
  background: #0a1827;
  color: #92abc1;
  filter: grayscale(.85);
}
body.im-site .rankings-class-filter-selection:hover { border-color: #75bce7; color: #fff !important; filter: grayscale(0); }
body.im-site .rankings-class-filter-selection:focus-visible { outline: 2px solid var(--im-cyan); outline-offset: 3px; }

/* Common cards and the complete news list/detail view. */
body.im-site .panel-general,
body.im-site .panel-downloads,
body.im-site .panel-addstats,
body.im-site .panel-sidebar,
body.im-site .panel-news {
  border: 1px solid var(--im-line);
  border-radius: 5px;
  background: linear-gradient(145deg, #0e1d30, #081320);
  color: var(--im-text);
  box-shadow: inset 0 1px 0 rgba(167, 202, 230, .05);
}
body.im-site .panel-general,
body.im-site .panel-downloads,
body.im-site .panel-addstats { margin: 0 0 24px; }
body.im-site .panel-general > .panel-body,
body.im-site .panel-downloads > .panel-body,
body.im-site .panel-addstats > .panel-body { padding: 22px; }
body.im-site .panel-sidebar > .panel-heading {
  padding: 15px 18px;
  border: 0 !important;
  border-bottom: 1px solid var(--im-line) !important;
  border-radius: 4px 4px 0 0;
  background: #112239 !important;
  color: var(--im-silver) !important;
  font-family: var(--im-font-title);
}
body.im-site .panel-body .panel-title {
  padding-bottom: 14px;
  margin: 0 0 18px !important;
  border-color: var(--im-line);
  color: var(--im-silver);
  font-family: var(--im-font-title);
  font-size: 18px;
  line-height: 1.4;
}
body.im-site .panel-news { margin-bottom: 22px; overflow: hidden; }
body.im-site .panel-news > .panel-heading {
  padding: 21px 24px 17px;
  border-bottom: 1px solid rgba(60, 86, 112, .5);
  background: linear-gradient(90deg, rgba(25, 50, 77, .7), rgba(9, 22, 37, .2));
}
body.im-site .panel-news .panel-title { margin: 0; font-family: var(--im-font-title); font-size: 22px; font-weight: 600; line-height: 1.4; }
body.im-site .panel-news .panel-title a { color: #e4eff9; }
body.im-site .panel-news .panel-title a:hover { color: #9edfff; }
body.im-site .panel-news > .panel-body { padding: 24px; color: #b8ccdf; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
body.im-site .panel-news .panel-body p:last-child { margin-bottom: 0; }
body.im-site .panel-news .panel-body img { max-width: 100%; height: auto; border-radius: 4px; }
body.im-site .panel-news .panel-body iframe { max-width: 100%; }
body.im-site .panel-news .news-readmore {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  margin-top: 12px;
  border: 1px solid #365d7e;
  border-radius: 3px;
  background: #10293e;
  color: #b8e7ff;
  font-size: 12px;
  font-weight: 600;
}
body.im-site .panel-news > .panel-footer {
  display: flow-root;
  height: auto;
  min-height: 43px;
  padding: 13px 24px;
  border-top: 1px solid var(--im-line);
  background: #07121f;
  color: #869eb5;
  font-size: 11px;
  font-style: normal;
}
body.im-site .pagination > li > a,
body.im-site .pagination > li > span {
  min-width: 37px;
  min-height: 37px;
  padding: 8px 12px;
  border-color: #2a4762;
  background: #0b1b2d;
  color: #aac6df;
  text-align: center;
}
body.im-site .pagination > .active > a,
body.im-site .pagination > .active > span,
body.im-site .pagination > li > a:hover { border-color: #649dc4; background: #174f78; color: #fff; }
body.im-site .pagination > .disabled > a,
body.im-site .pagination > .disabled > span { background: #081422; color: #5d7389; }
body.im-site .well { border-color: var(--im-line); background: #0a192a; color: #b9cfe3; box-shadow: none; }
body.im-site .list-group-item { border-color: var(--im-line); background: #0c1a2b; color: #c6d9ea; }
body.im-site .list-group-item.active { background: #174466; border-color: #477d9f; color: #fff; }

/* Download cards include clients, patches and tools from the original module. */
body.im-site .panel-downloads .table { margin: 0; border: 0; min-width: 0; background: transparent; }
body.im-site .panel-downloads .im-table-scroll { margin: 0; border: 0; }
body.im-site .panel-downloads .table > tbody > tr > td { padding: 17px 10px; }
body.im-site .panel-downloads .table > tbody > tr > td:first-child { padding-left: 0; color: #e1edf8; font-weight: 600; }
body.im-site .panel-downloads .table > tbody > tr > td:last-child { padding-right: 0; }
body.im-site .download-description { display: inline-block; position: static; margin-top: 5px; color: #8fa9c1; font-size: 12px; font-weight: 400; line-height: 1.7; }
body.im-site .panel-downloads .btn { min-height: 36px; padding: 8px 14px; white-space: nowrap; }

/* Account landing tiles. JS adds the grid class without changing the links. */
body.im-site .im-usercp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0 !important;
}
body.im-site .im-usercp-grid::before,
body.im-site .im-usercp-grid::after,
body.im-site .im-character-grid::before,
body.im-site .im-character-grid::after { display: none; }
body.im-site .im-usercp-grid > .col-xs-3 { float: none; width: auto; padding: 0; margin: 0 !important; }
body.im-site .im-module .row > .col-xs-3.text-center > a,
body.im-site .im-usercp-grid > div > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 154px;
  height: 100%;
  padding: 21px 12px;
  border: 1px solid #304d68;
  border-radius: 5px;
  background: radial-gradient(ellipse at top, rgba(39, 78, 111, .38), transparent 75%), #0a1828;
  box-shadow: inset 0 1px 0 rgba(187, 214, 238, .07);
  color: #d2e5f5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}
body.im-site .im-module .row > .col-xs-3.text-center > a:hover,
body.im-site .im-usercp-grid > div > a:hover { border-color: #6aa9d4; background-color: #102941; color: #ffffff; }
body.im-site .im-module .row > .col-xs-3.text-center > a > br,
body.im-site .im-usercp-grid > div > a > br { display: none; }
body.im-site .im-module .row > .col-xs-3.text-center > a > img,
body.im-site .im-usercp-grid > div > a > img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .4)); }
body.im-site .panel-usercp { background: linear-gradient(145deg, #11263d, #071320); }
body.im-site .panel-usercp ul li { display: block; }
body.im-site .panel-usercp ul li a { display: block; padding: 8px 6px; color: #bfd6e9 !important; font-size: 12px; }
body.im-site .panel-usercp ul li a:hover { background: rgba(34, 76, 112, .35); color: #fff !important; }

/* My account details and the real character collection. */
body.im-site .myaccount-table { table-layout: auto; }
body.im-site .myaccount-table > tbody > tr > td { padding: 17px 20px !important; }
body.im-site .myaccount-table > tbody > tr > td:first-child { width: 34%; color: #9bb5ce; font-weight: 500; }
body.im-site .myaccount-table > tbody > tr > td:last-child { color: #dceaf8; overflow-wrap: anywhere; }
body.im-site .myaccount-table .btn { margin-left: 12px; }
body.im-site .im-character-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 15px; margin: 20px 0; }
body.im-site .im-character-grid > .col-xs-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  float: none;
  width: auto;
  padding: 19px 12px 15px;
  border: 1px solid var(--im-line);
  border-radius: 5px;
  background: radial-gradient(ellipse at top, #16314a, #0a1827 75%);
}
body.im-site .myaccount-character-name { margin: 0 0 9px; line-height: 1.5; }
body.im-site .myaccount-character-name a { color: #e1effb; font-size: 14px; font-weight: 600; }
body.im-site .myaccount-character-name .online-status-indicator { width: 8px; height: 8px; }
body.im-site .myaccount-character-block { padding: 4px; border: 1px solid #476986; border-radius: 5px; background: #0e2135; box-shadow: 0 3px 12px rgba(0, 0, 0, .25); }
body.im-site .myaccount-character-block img { width: 94px; height: 94px; border-radius: 3px; object-fit: cover; box-shadow: none; }
body.im-site .myaccount-character-block-location { margin: 9px 0 7px; color: #8faac4; font-size: 11px; line-height: 1.6; }
body.im-site .myaccount-character-block-level {
  position: static;
  display: inline-block;
  padding: 4px 11px;
  margin: 0 0 12px;
  border: 1px solid #355675;
  border-radius: 3px;
  background: #143451;
  color: #bfe6ff;
  font-size: 11px;
  line-height: 1.4;
}
body.im-site .myaccount-character-block-level::before { content: "Lv. "; }
body.im-site .im-character-grid .myaccount-character-name,
body.im-site .im-character-grid .myaccount-character-block-location,
body.im-site .im-character-grid .myaccount-character-block-level { margin: 0; }

/* Add stats keeps native field names, points and conditional Command fields. */
body.im-site .panel-addstats > .panel-body { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; }
body.im-site .panel-addstats > .panel-body::before,
body.im-site .panel-addstats > .panel-body::after { display: none; }
body.im-site .panel-addstats > .panel-body > .col-xs-3,
body.im-site .panel-addstats > .panel-body > .col-xs-9 { float: none; width: auto; }
body.im-site .panel-addstats .character-avatar img { width: 100px; height: 100px; margin-top: 8px; border: 1px solid #537796; border-radius: 5px; object-fit: cover; box-shadow: 0 3px 15px rgba(0, 0, 0, .3); }
body.im-site .panel-addstats .character-name { float: none; width: 100%; padding: 0 0 14px; margin: 0 0 20px !important; border-color: #345371; color: #e0eefb; font-family: var(--im-font-title); font-size: 23px; }
body.im-site .panel-addstats .col-xs-9 > .col-sm-10 { float: none; width: 100%; padding: 0; }
body.im-site .panel-addstats .form-horizontal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
body.im-site .panel-addstats .form-horizontal > .form-group:first-of-type,
body.im-site .panel-addstats .form-horizontal > .form-group:last-of-type { grid-column: 1 / -1; }
body.im-site .panel-addstats .form-horizontal > .form-group:first-of-type { padding: 10px 13px; border: 1px solid #2f526e; border-radius: 3px; background: #102a40; color: #a6daff; }
body.im-site .panel-addstats .control-label:empty { display: none !important; }
body.im-site .panel-addstats .form-group:last-of-type { margin-bottom: 0; }
body.im-site .panel-addstats .control-label { font-size: 12px; }

/* Public character and guild profile cards. Original class artwork is retained. */
body.im-site .profiles_player_card,
body.im-site .profiles_guild_card {
  position: relative;
  padding: 28px;
  border: 1px solid #46627b;
  border-radius: 6px;
  background-color: #091525;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  overflow: hidden;
}
body.im-site .profiles_player_card { min-height: 430px; background-position: 25% center; }
body.im-site .profiles_player_card::before,
body.im-site .profiles_guild_card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(3, 12, 24, .12), rgba(4, 14, 27, .83) 50%, rgba(4, 14, 27, .94));
  pointer-events: none;
}
body.im-site .profiles_player_content { position: relative; z-index: 1; float: right; width: 54%; min-width: 310px; }
body.im-site .profiles_player_table { border: 0; background: transparent; color: #d3e4f3; }
body.im-site .profiles_player_table .cname { padding: 0 0 9px; color: #eef7ff; font-size: clamp(23px, 3vw, 32px); overflow-wrap: anywhere; }
body.im-site .profiles_player_table .cclass { padding-bottom: 15px; color: #99c9e8; font-size: 12px; letter-spacing: .04em; }
body.im-site .profiles_player_table_info { margin-top: 8px; table-layout: auto; }
body.im-site .profiles_player_table_info tr td { padding: 9px 12px; border-bottom: 1px solid rgba(87, 119, 148, .27); font-size: 12px; }
body.im-site .profiles_player_table_info tr td:first-child { width: 50%; color: #91acc5; text-align: left; }
body.im-site .profiles_player_table_info tr td:last-child { color: #e2effa; font-weight: 600; text-align: right; }
body.im-site .profiles_player_table .isonline { color: #8fdec0 !important; }
body.im-site .profiles_player_table .isoffline { color: #dca8af !important; }
body.im-site .profiles_guild_card::before { background: rgba(3, 12, 23, .78); }
body.im-site .profiles_guild_card > * { position: relative; z-index: 1; }
body.im-site .profiles_guild_card .guild_name { display: block; margin: 0 0 20px; color: #e1f0fb; font-size: 30px; }
body.im-site .profiles_guild_card .guild_logo { display: inline-flex; padding: 13px; border: 1px solid #54718a; background: rgba(6, 19, 32, .8); box-shadow: 0 0 24px rgba(33, 111, 167, .14); }
body.im-site .profiles_guild_card .guild_logo img { max-width: 150px; box-shadow: none; image-rendering: pixelated; }
body.im-site .profiles_guild_card .table { border: 0; background: rgba(6, 17, 30, .48); table-layout: auto; }
body.im-site .profiles_guild_card .table tr td { padding: 12px; font-size: 12px; }
body.im-site .profiles_guild_card .guild_members { font-size: 22px; color: #d4e8f8; }
body.im-site .profiles_guild_card .guild_members_list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 21px 0 0; }
body.im-site .profiles_guild_card .guild_members_list::before,
body.im-site .profiles_guild_card .guild_members_list::after { display: none; }
body.im-site .profiles_guild_card .guild_members_list > div { float: none; width: auto; padding: 0; }
body.im-site .profiles_guild_card .guild_members_list a { display: block; padding: 9px 7px; border: 1px solid #2e4b66; background: rgba(12, 36, 55, .7); color: #d2e7f7; font-size: 12px; }
body.im-site .profiles_guild_card .guild_members_list a:hover { background: #173e5c; border-color: #70a3c6; }

/* Castle Siege: owner, alliance, information, countdown and schedule. */
body.im-site .castle-siege-block { min-width: 0; }
body.im-site .castle-siege-block h2 { margin-top: 0; }
body.im-site .castle-siege-block .castle-owner-panel,
body.im-site .castle-owner-widget {
  border: 1px solid #45617b;
  border-radius: 5px;
  background: linear-gradient(110deg, rgba(4, 14, 26, .94), rgba(4, 14, 26, .72)), url('../img/siege.webp') center / cover;
  box-shadow: inset 0 1px 0 rgba(170, 207, 239, .08);
  color: #c5daeb;
  text-shadow: none;
}
body.im-site .castle-siege-block .castle-owner-panel { padding: 17px; }
body.im-site .castle-siege-block .castle-owner-panel:hover,
body.im-site .castle-owner-widget:hover { filter: none; border-color: #6698bd; }
body.im-site .castle-siege-block .castle-owner-panel .panel-body .castle-owner-name,
body.im-site .castle-siege-block .castle-owner-panel .panel-body .castle-owner-name a { color: #dcefff; font-family: var(--im-font-title); font-size: 25px; }
body.im-site .castle-siege-block .castle-owner-panel .panel-body h4 { color: #a9d3ee !important; font-size: 14px; }
body.im-site .castle-siege-block .castle-owner-ally-title { padding-bottom: 11px; border-bottom: 1px solid #35506a; color: #9cbbd2; font-size: 11px; }
body.im-site .castle-siege-block .castle-owner-ally { padding: 10px 0; border-bottom: 1px solid rgba(59, 85, 109, .45); font-size: 12px; }
body.im-site .castle-siege-block #siegeTimer {
  padding: 22px 20px;
  border: 1px solid #365c7c;
  border-radius: 5px;
  background: linear-gradient(125deg, #122e48, #081827);
  color: #d9efff;
  font-size: clamp(25px, 4vw, 46px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  letter-spacing: .025em;
  text-align: center;
  overflow-wrap: anywhere;
}
body.im-site .castle-siege-block #siegeTimer span { color: #8fb9d7; font-size: .5em; font-weight: 400; }
body.im-site .castle-owner-widget .panel-title { color: #d5e8f7; font-family: var(--im-font-title); font-size: 22px; }
body.im-site .castle-owner-widget .panel-body span.alt { color: #9ccee9; }

/* Native donation gateway and voting share the same controls and feedback. */
body.im-site .im-module .thumbnail { padding: 18px; border: 1px solid #365a7a; border-radius: 5px; background: #10253b; }
body.im-site .im-module a.thumbnail:hover { border-color: #82c6ef; }
body.im-site .im-module a.thumbnail[href*="donation/"] { background: #eaf1f7; }
body.im-site .paypal-gateway-container { max-width: 640px; margin: 26px auto; }
body.im-site .paypal-gateway-content { padding: 28px; border: 1px solid #3a6689; border-radius: 6px; background: linear-gradient(135deg, #122840, #091623); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); color: #d8e8f5; }
body.im-site .paypal-gateway-logo { width: 220px; max-width: 100%; height: 75px; margin: 0 auto 24px; border-radius: 4px; background-color: #edf3fa; }
body.im-site .paypal-gateway-form { margin: 20px 0 26px; }
body.im-site .paypal-gateway-form div { max-width: 100%; padding: 0; color: #b4d3e9; font-size: 18px; font-weight: 400; line-height: 2.8; }
body.im-site .paypal-gateway-form input[type="text"] { width: 92px; height: 47px; padding: 8px 10px; border: 1px solid #82b9de; border-radius: 4px; color: #d9f1ff; font-size: 21px; text-align: center; }
body.im-site .paypal-gateway-form #result { color: #c2e7ff; font-weight: 700; }
body.im-site .paypal-gateway-continue input[type="submit"] { max-width: 100%; border-radius: 4px; cursor: pointer; }
body.im-site .paypal-gateway-continue input[type="submit"]:focus-visible { outline: 2px solid var(--im-cyan); outline-offset: 4px; }

/* Native home hooks remain styled if a module/plugin reuses them. */
body.im-site .home-news-block-header h2 { color: var(--im-silver); font-family: var(--im-font-title); font-size: 21px; font-style: normal !important; }
body.im-site .home-news-block-header a { color: var(--im-cyan); font-size: 12px; font-style: normal !important; }
body.im-site .home-news-block-article { padding: 10px 0; margin-top: 0; border-bottom: 1px solid var(--im-line); }
body.im-site .home-news-block-article-type { border-color: #3e688b !important; background: #112b42; color: #9bd8ff !important; font-size: 11px; }
body.im-site .home-news-block-article-date { color: #849eb6; font-size: 11px; }
body.im-site .event-schedule-open { color: #91dfbb; }
body.im-site .event-schedule-inprogress { color: #e3c484; }
body.im-site .panel-sidebar-events .smalltext { position: static; display: inline-block; margin-top: 4px; color: #8da7bf; font-size: 10px; }

/* Fluid module layouts. Data tables retain columns and scroll as a unit. */
@media (max-width: 1100px) {
  body.im-site .im-usercp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.im-site .profiles_player_content { width: 58%; }
  body.im-site .profiles_guild_card .guild_members_list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.im-site .im-module .page-title { padding-bottom: 15px; margin-bottom: 20px; font-size: 22px; }
  body.im-site .im-module .page-title:not(:first-child) { margin-top: 26px; font-size: 20px; }
  body.im-site .im-module > .col-xs-8.col-xs-offset-2,
  body.im-site .im-module-body > .col-xs-8.col-xs-offset-2 { max-width: none; margin: 20px 0 !important; }
  body.im-site .form-control,
  body.im-site input[type="text"],
  body.im-site input[type="password"],
  body.im-site input[type="email"],
  body.im-site input[type="number"],
  body.im-site input[type="search"] { font-size: 16px; }
  body.im-site .im-module .form-horizontal > .form-group:last-child .btn { width: 100%; }
  body.im-site .im-module .table:not(.profiles_player_table),
  body.im-site .rankings-table,
  body.im-site .general-table-ui { display: block; min-width: 0; max-width: 100%; overflow-x: auto; }
  body.im-site .rankings-table > tbody { display: table; min-width: 610px; width: 100%; }
  body.im-site .general-table-ui > tbody { display: table; min-width: 560px; width: 100%; }
  body.im-site .im-table-scroll > table,
  body.im-site .im-module .table-responsive > table { display: table; max-width: none; overflow: visible; }
  body.im-site .im-table-scroll > .rankings-table,
  body.im-site .im-module .table-responsive > .rankings-table { min-width: 610px; }
  body.im-site .im-table-scroll > .general-table-ui,
  body.im-site .im-module .table-responsive > .general-table-ui { min-width: 560px; }
  body.im-site .im-table-scroll > .rankings-table > tbody,
  body.im-site .im-table-scroll > .general-table-ui > tbody,
  body.im-site .im-module .table-responsive > .rankings-table > tbody,
  body.im-site .im-module .table-responsive > .general-table-ui > tbody { display: table-row-group; min-width: 0; }
  body.im-site .im-module .table > tbody > tr > td,
  body.im-site .rankings-table > tbody > tr > td { padding: 12px; font-size: 12px; }
  body.im-site .rankings-class-filter { flex-wrap: nowrap; justify-content: flex-start; padding: 0 1px 13px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #345675 #08131f; }
  body.im-site .rankings-class-filter-selection { width: 71px; min-height: 88px; }
  body.im-site .rankings_menu { gap: 6px; }
  body.im-site .rankings_menu a { flex: 1 0 auto; min-width: 91px; padding: 9px 11px; font-size: 11px; }
  body.im-site .panel-general > .panel-body,
  body.im-site .panel-downloads > .panel-body,
  body.im-site .panel-addstats > .panel-body { padding: 18px; }
  body.im-site .panel-news > .panel-heading,
  body.im-site .panel-news > .panel-body { padding: 18px; }
  body.im-site .panel-news .panel-title { font-size: 19px; }
  body.im-site .panel-news > .panel-footer { padding: 12px 18px; }
  body.im-site .im-usercp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  body.im-site .im-module .row > .col-xs-3.text-center > a,
  body.im-site .im-usercp-grid > div > a { min-height: 140px; padding: 18px 9px; font-size: 12px; }
  body.im-site .im-character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  body.im-site .im-character-grid > .col-xs-3 { padding: 16px 9px; }
  body.im-site .panel-addstats > .panel-body { grid-template-columns: 1fr; gap: 15px; }
  body.im-site .panel-addstats .character-avatar { text-align: left; }
  body.im-site .panel-addstats .character-avatar img { width: 70px; height: 70px; margin: 0; }
  body.im-site .panel-addstats .character-name { font-size: 21px; }
  body.im-site .panel-addstats .form-horizontal { gap: 0 16px; }
  body.im-site .im-module .form-horizontal > .panel-general > .panel-body > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-left: 0; margin-right: 0; }
  body.im-site .im-module .form-horizontal > .panel-general > .panel-body > .row::before,
  body.im-site .im-module .form-horizontal > .panel-general > .panel-body > .row::after { display: none; }
  body.im-site .im-module .form-horizontal > .panel-general > .panel-body > .row > .col-xs-4 { float: none; width: auto; padding: 0; }
  body.im-site .im-module .form-horizontal > .panel-general > .panel-body > .row:first-child { margin-bottom: 8px; color: #9eb9cf; font-size: 12px; }
  body.im-site .im-module .form-horizontal > .panel-general > .panel-body > .row > .col-xs-4:nth-child(3) { grid-column: 1 / -1; }
  body.im-site .im-module .form-horizontal > .panel-general .btn { width: 100%; }
  body.im-site .profiles_player_card,
  body.im-site .profiles_guild_card { padding: 20px; }
  body.im-site .profiles_player_card::before { background: rgba(4, 14, 27, .82); }
  body.im-site .profiles_player_content { float: none; width: 100%; min-width: 0; }
  body.im-site .profiles_player_table_info tr td { padding: 10px 9px; }
  body.im-site .profiles_guild_card > .row:first-child > .col-xs-6 { float: none; width: 100%; padding: 0 15px; }
  body.im-site .profiles_guild_card .guild_logo { margin-bottom: 22px; }
  body.im-site .profiles_guild_card .guild_name { font-size: 26px; }
  body.im-site .profiles_guild_card > .row > .col-xs-8.col-xs-offset-2 { float: none; width: 100%; margin-left: 0; }
  body.im-site .profiles_guild_card .table { display: table; }
  body.im-site .castle-siege-block .castle-owner-panel { padding: 10px; }
  body.im-site .castle-siege-block .castle-owner-panel > .panel-body > .row > .col-xs-4,
  body.im-site .castle-siege-block .castle-owner-panel > .panel-body > .row > .col-xs-8 { float: none; width: 100%; }
  body.im-site .castle-siege-block .castle-owner-panel > .panel-body > .row > .col-xs-8 { margin-top: 18px; }
  body.im-site .castle-siege-block h2 { font-size: 20px; }
  body.im-site .castle-siege-block #siegeTimer { padding: 17px 12px; }
  body.im-site .paypal-gateway-content { padding: 20px 16px; }
  body.im-site .paypal-gateway-form div { font-size: 16px; }
  body.im-site .home-news-block-article-title-container { white-space: normal; }
}
@media (max-width: 540px) {
  body.im-site .im-module .table.myaccount-table { display: table; }
  body.im-site .myaccount-table > tbody > tr { display: block; padding: 12px 15px; border-bottom: 1px solid var(--im-line); }
  body.im-site .myaccount-table > tbody > tr:last-child { border-bottom: 0; }
  body.im-site .myaccount-table > tbody > tr > td { display: block; width: 100% !important; padding: 4px 0 !important; border: 0; }
  body.im-site .myaccount-table > tbody > tr > td:first-child { font-size: 11px; }
  body.im-site .myaccount-table .btn { float: none !important; margin: 9px 0 0; }
  body.im-site .myaccount-table > tbody > tr > td:last-child:has(.btn) { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
  body.im-site .panel-downloads .table,
  body.im-site .panel-downloads .table > tbody { display: block; width: 100%; }
  body.im-site .panel-downloads .table > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--im-line); }
  body.im-site .panel-downloads .table > tbody > tr:last-child { border-bottom: 0; }
  body.im-site .panel-downloads .table > tbody > tr > td { display: block; width: auto !important; padding: 0; border: 0; text-align: left; }
  body.im-site .panel-downloads .table > tbody > tr > td:first-child { grid-column: 1 / -1; }
  body.im-site .panel-downloads .table > tbody > tr > td:nth-child(2) { align-self: center; color: #8faac3; }
  body.im-site .panel-downloads .table > tbody > tr > td:last-child { text-align: right; }
  body.im-site .panel-addstats .form-horizontal { grid-template-columns: 1fr; }
  body.im-site .profiles_guild_card { padding: 17px; }
  body.im-site .profiles_guild_card .guild_members_list { gap: 7px; }
  body.im-site .profiles_guild_card .guild_members_list a { padding: 8px 4px; font-size: 11px; }
  body.im-site .panel-news .panel-footer > .col-xs-6 { float: none; width: 100%; text-align: left; }
  body.im-site .panel-news .panel-footer > .col-xs-6 + .col-xs-6 { margin-top: 5px; }
  body.im-site .im-module .g-recaptcha { transform: scale(.89); transform-origin: left top; margin-bottom: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  body.im-site .im-module *,
  body.im-site .panel-news *,
  body.im-site .form-control,
  body.im-site .btn { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Template information and donation landings: no stock CMS placeholders. */
body.im-site .im-module a.im-btn { color: #e4f1ff; }
body.im-site .im-module a.im-btn-primary { color: #fff; }
body.im-site .im-info-hero {
  min-height: 240px;
  padding: 30px;
  margin-bottom: 24px;
  border: 1px solid #3f607e;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(4, 15, 28, .96), rgba(4, 15, 28, .87) 48%, rgba(4, 15, 28, .38)), url('../img/hero.webp') 65% 45% / cover;
}
body.im-site .im-info-hero-content { max-width: 570px; }
body.im-site .im-info-hero h2 { margin: 10px 0 14px; color: #e8f4ff; font-size: clamp(24px, 3vw, 35px); letter-spacing: .03em; }
body.im-site .im-info-hero p { max-width: 490px; margin: 0 0 23px; color: #aec7df; font-size: 13px; line-height: 1.8; }
body.im-site .im-info-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
body.im-site .im-info-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 22px; }
body.im-site .im-info-card .im-panel-heading h2 { margin: 0; color: #dceafa; font-size: 14px; }
body.im-site .im-info-details { margin: 0; }
body.im-site .im-info-detail-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid #263f57; }
body.im-site .im-info-detail-row:first-child { padding-top: 0; }
body.im-site .im-info-detail-row:last-child { padding-bottom: 0; border-bottom: 0; }
body.im-site .im-info-detail-row dt { flex: 0 0 42%; color: #8daac3; font-size: 12px; font-weight: 400; }
body.im-site .im-info-detail-row dd { margin: 0; color: #dfedfa; font-size: 13px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
body.im-site .im-info-links { padding: 6px 16px; }
body.im-site .im-info-link { display: grid; grid-template-columns: 35px minmax(0, 1fr) 15px; align-items: center; gap: 13px; padding: 17px 2px; border-bottom: 1px solid #263f57; }
body.im-site .im-info-link:last-child { border-bottom: 0; }
body.im-site .im-info-link-icon { display: flex; justify-content: center; align-items: center; width: 35px; height: 39px; border: 1px solid #335c7b; border-radius: 3px; background: #13304a; color: #9cd8fa; }
body.im-site .im-info-link-icon .im-icon { width: 19px; height: 19px; }
body.im-site .im-info-link-copy { display: flex; flex-direction: column; gap: 4px; }
body.im-site .im-info-link-copy strong { color: #d7eafa; font-size: 12px; font-weight: 600; }
body.im-site .im-info-link-copy > span { color: #8ea8c1; font-size: 11px; line-height: 1.65; }
body.im-site .im-info-link > .im-icon { width: 15px; height: 15px; color: #6f9abb; }
body.im-site .im-info-link:hover .im-info-link-copy strong { color: #b4e6ff; }
body.im-site .im-info-link:hover .im-info-link-icon { border-color: #82bce1; background: #1b405d; }
body.im-site .im-donation-intro { max-width: 650px; margin-bottom: 22px; color: #adc6de; }
body.im-site .im-payment-card { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 25px; max-width: 760px; padding: 26px; border: 1px solid #3c5f7f; border-radius: 5px; background: linear-gradient(135deg, #12283f, #0a1829); }
body.im-site .im-payment-logo { display: flex; justify-content: center; align-items: center; align-self: start; min-height: 95px; padding: 18px 12px; border: 1px solid #bfd0e0; border-radius: 4px; background: #edf3f8; }
body.im-site .im-payment-logo img { width: 130px; height: auto; max-width: 100%; }
body.im-site .im-payment-copy h2 { margin: 0 0 12px; font-family: var(--im-font-body); font-size: 22px; color: #e1f1fc; }
body.im-site .im-payment-copy p { margin: 0 0 18px; color: #a1bdd5; font-size: 13px; }
body.im-site .im-payment-copy .im-payment-note { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #89a5bd; }
body.im-site .im-payment-note .im-icon { width: 16px; height: 16px; }
body.im-site .im-donation-state { max-width: 780px; margin: 0 auto; padding: 39px 25px 34px; border: 1px solid #2d4b66; border-radius: 4px; background: radial-gradient(ellipse at top, #142e47, #0a192a 75%); text-align: center; }
body.im-site .im-donation-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; border: 1px solid #3e6a8a; border-radius: 4px; background: rgba(23, 56, 82, .65); color: #9bcce9; }
body.im-site .im-donation-state-icon .im-icon { width: 31px; height: 31px; }
body.im-site .im-donation-state h2 { max-width: 570px; margin: 22px auto 16px; font-size: 22px; color: #d4e7f6; }
body.im-site .im-donation-state p { max-width: 510px; margin: 0 auto 24px; color: #8faac2; font-size: 13px; }
body.im-site .im-donation-state .im-info-actions { justify-content: center; }
@media (max-width: 767px) {
  body.im-site .im-info-hero { min-height: 0; padding: 23px 20px; background-position: 70% center; }
  body.im-site .im-info-hero h2 { font-size: 26px; }
  body.im-site .im-info-grid { grid-template-columns: 1fr; gap: 18px; }
  body.im-site .im-info-detail-row dt { flex-basis: 42%; }
  body.im-site .im-payment-card { grid-template-columns: 1fr; gap: 20px; padding: 21px; }
  body.im-site .im-payment-logo { width: 150px; min-height: 85px; }
  body.im-site .im-donation-state { padding: 30px 18px; }
  body.im-site .im-donation-state h2 { font-size: 19px; }
}

/* Keep horizontal scrolling on the keyboard-accessible wrapper, rather than
   on both the native table and its wrapper on small screens. */
@media (max-width: 767px) {
  body.im-site .im-module .im-table-scroll > table:not(.profiles_player_table) {
    display: table;
    max-width: none;
    overflow: visible;
  }
  body.im-site .im-module .im-table-scroll > table.rankings-table { min-width: 610px; }
  body.im-site .im-module .im-table-scroll > table.general-table-ui { min-width: 560px; }
}
