/* Game Monitor extras (Tni\Content\GameServers): the text block under the monitor and the page of each server.
   One structure for both themes; only the colours change. */
.tni-gs, .tni-gm-text {
  --gs-ink: #0B1535; --gs-muted: #4E5D78; --gs-line: #DCE4EE; --gs-card: #FFFFFF; --gs-soft: #F4F7FB;
  --gs-accent: #075DEB; --gs-accent2: #2F7CF6; --gs-voice: #7C5CFF; --gs-ok: #13804A; --gs-off: #8A97AB;
  color: var(--gs-ink);
}
html[data-theme=dark] .tni-gs, html[data-theme=dark] .tni-gm-text {
  --gs-ink: #F3F7FF; --gs-muted: #A9B8CF; --gs-line: #1E3A5F; --gs-card: #0A1729; --gs-soft: #0D1E35;
  --gs-accent: #4A90FF; --gs-accent2: #2F7CF6; --gs-voice: #A58BFF; --gs-ok: #2BD47D; --gs-off: #6F7E95;
}
.tni-gs a, .tni-gm-text a { color: var(--gs-accent); }
.tni-gs h1, .tni-gs h2, .tni-gs h3, .tni-gm-text h2, .tni-gm-text h3 { color: var(--gs-ink); }

/* ----- text block under the Game Monitor ----- */
.tni-gm-text { margin: 22px 0 0; padding: 26px 28px; border: 1px solid var(--gs-line); border-radius: 20px; background: var(--gs-card); }
.tni-gm-text__eyebrow { margin: 0 0 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .16em; color: var(--gs-accent); }
.tni-gm-text h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; font-weight: 800; }
.tni-gm-text__lead { margin: 0; max-width: 860px; font-size: 15px; line-height: 1.6; color: var(--gs-muted); }
.tni-gm-text__hosted { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--gs-soft); font-size: 14px; line-height: 1.5; }
.tni-gm-text__hosted::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--gs-ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gs-ok) 18%, transparent); }
.tni-gm-text__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; margin-top: 22px; }
.tni-gm-text h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.tni-gm-text__note { margin: 0 0 12px; font-size: 13px; color: var(--gs-muted); }
.tni-gm-rank { margin: 0; padding: 0; list-style: none; counter-reset: gmrank; }
.tni-gm-rank li { counter-increment: gmrank; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--gs-line); }
.tni-gm-rank li:first-child { border-top: 0; }
.tni-gm-rank li::before { content: counter(gmrank, decimal-leading-zero); font-family: ui-monospace, monospace; font-size: 12px; color: var(--gs-muted); }
.tni-gm-rank li:nth-child(-n+3)::before { color: var(--gs-accent); font-weight: 700; }
.tni-gm-rank__name { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tni-gm-rank__name a, .tni-gm-rank__name span:first-child { font-weight: 700; overflow-wrap: anywhere; text-decoration: none; color: var(--gs-ink); }
.tni-gm-rank__name a:hover { color: var(--gs-accent); text-decoration: underline; }
.tni-gm-rank__name small { font-size: 12px; color: var(--gs-muted); }
.tni-gm-rank__fig { text-align: right; font-size: 13px; color: var(--gs-muted); white-space: nowrap; }
.tni-gm-rank__fig strong { display: block; font-size: 17px; color: var(--gs-ink); }
.tni-gm-rank--voice .tni-gm-rank__fig strong { color: var(--gs-voice); }
.tni-gm-text__empty { margin: 0; padding: 14px; border-radius: 12px; background: var(--gs-soft); font-size: 14px; color: var(--gs-muted); }
.tni-gm-all { margin-top: 22px; border-top: 1px solid var(--gs-line); padding-top: 16px; }
.tni-gm-all > summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--gs-ink); list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px; }
.tni-gm-all > summary::-webkit-details-marker { display: none; }
.tni-gm-all > summary::after { content: '+'; margin-left: auto; font-size: 20px; color: var(--gs-accent); }
.tni-gm-all[open] > summary::after { content: '−'; }
.tni-gm-all ul { margin: 10px 0 0; padding: 0; list-style: none; columns: 2 300px; column-gap: 28px; }
.tni-gm-all li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--gs-line); font-size: 14px; }
.tni-gm-all li a, .tni-gm-all li > span:first-child { min-width: 0; overflow-wrap: anywhere; color: var(--gs-ink); text-decoration: none; }
.tni-gm-all li a:hover { color: var(--gs-accent); text-decoration: underline; }
.tni-gm-all li small { flex: none; color: var(--gs-muted); font-size: 12px; }
.tni-gm-all li.is-off small { color: var(--gs-off); }
@media (max-width: 860px) { .tni-gm-text__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tni-gm-text { padding: 20px 16px; border-radius: 16px; } .tni-gm-text h2 { font-size: 21px; } }

/* ----- page of one server ----- */
.tni-gs { max-width: 1180px; margin: 0 auto; padding: 8px 0 32px; }
.tni-gs__back { display: inline-flex; align-items: center; min-height: 40px; margin: 0 0 12px; font-weight: 600; text-decoration: none; }
.tni-gs__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: end; padding: 28px; border: 1px solid var(--gs-line); border-radius: 22px; background: var(--gs-card); }
.tni-gs__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gs-accent); }
.tni-gs__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--gs-ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gs-ok) 18%, transparent); }
.tni-gs__eyebrow.is-off i { background: var(--gs-off); box-shadow: none; }
.tni-gs h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.tni-gs__tag { margin: 8px 0 0; font-size: 15px; color: var(--gs-muted); overflow-wrap: anywhere; }
.tni-gs__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--gs-muted); }
.tni-gs__facts strong { color: var(--gs-ink); font-weight: 700; }
.tni-gs__facts code { padding: 2px 6px; border-radius: 6px; background: var(--gs-soft); color: var(--gs-ink); font-size: 13px; }
.tni-gs__actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 240px; }
.tni-gs__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--gs-line); background: var(--gs-soft); color: var(--gs-ink) !important; font-weight: 700; font-size: 15px; text-decoration: none !important; cursor: pointer; }
.tni-gs__btn--main { border-color: transparent; background: linear-gradient(135deg, #075DEB, #2F7CF6); color: #FFFFFF !important; }
.tni-gs__btn--main:hover { filter: brightness(1.06); }
.tni-gs__actions small { font-size: 12px; color: var(--gs-muted); text-align: center; }
.tni-gs__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.tni-gs__stat { padding: 16px 18px; border: 1px solid var(--gs-line); border-radius: 16px; background: var(--gs-card); }
.tni-gs__stat span { display: block; font-size: 12px; color: var(--gs-muted); }
.tni-gs__stat strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 800; color: var(--gs-ink); }
.tni-gs__stat:first-child strong { color: var(--gs-accent); }
.tni-gs__charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tni-gs__chart { padding: 18px 20px; border: 1px solid var(--gs-line); border-radius: 18px; background: var(--gs-card); }
.tni-gs__chart h2 { margin: 0 0 2px; font-size: 17px; font-weight: 800; }
.tni-gs__chart p { margin: 0 0 10px; font-size: 12.5px; color: var(--gs-muted); }
.tni-gs-chart { display: block; width: 100%; height: auto; }
.tni-gs-chart .g { stroke: var(--gs-line); stroke-width: 1; }
.tni-gs-chart .a { fill: var(--gs-muted); font-size: 11px; font-family: ui-monospace, monospace; }
.tni-gs-chart .b { fill: color-mix(in srgb, var(--gs-accent2) 55%, transparent); }
.tni-gs-chart .b:hover { fill: var(--gs-accent2); }
.tni-gs-chart .p { fill: none; stroke: var(--gs-accent); stroke-width: 2; stroke-linejoin: round; }
.tni-gs-chart .e { fill: var(--gs-muted); font-size: 14px; }
.tni-gs--voice .tni-gs-chart .b { fill: color-mix(in srgb, var(--gs-voice) 55%, transparent); }
.tni-gs--voice .tni-gs-chart .p { stroke: var(--gs-voice); }
.tni-gs__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 10px 2px 0; font-size: 12.5px; color: var(--gs-muted); }
.tni-gs__hosted { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--gs-soft); font-size: 14px; line-height: 1.5; }
.tni-gs__hosted::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--gs-ok); }
.tni-gs__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 16px 0 0; padding: 22px 24px; border-radius: 20px; background: linear-gradient(120deg, #075DEB, #2F7CF6); color: #FFFFFF; }
.tni-gs__cta > div { flex: 1 1 320px; }
.tni-gs__cta strong { display: block; font-size: 20px; line-height: 1.3; color: #FFFFFF; }
.tni-gs__cta span { display: block; margin-top: 4px; font-size: 14px; opacity: .9; }
.tni-gs__cta a { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px; background: #FFFFFF; color: #075DEB !important; font-weight: 800; text-decoration: none !important; }
.tni-gs__badge { margin: 16px 0 0; padding: 18px 20px; border: 1px solid var(--gs-line); border-radius: 18px; background: var(--gs-card); }
.tni-gs__badge h2 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.tni-gs__badge p { margin: 0 0 12px; font-size: 13.5px; color: var(--gs-muted); }
.tni-gs__badge-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tni-gs__badge img { display: block; max-width: 100%; height: auto; }
.tni-gs__badge textarea { flex: 1 1 280px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--gs-line); border-radius: 10px; background: var(--gs-soft); color: var(--gs-ink); font-family: ui-monospace, monospace; font-size: 12px; resize: vertical; }
.tni-gs__original { margin: 12px 2px 0; font-size: 12.5px; color: var(--gs-muted); overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .tni-gs__head { grid-template-columns: minmax(0, 1fr); }
  .tni-gs__actions { min-width: 0; }
  .tni-gs__charts { grid-template-columns: minmax(0, 1fr); }
  .tni-gs__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tni-gs__head { padding: 20px 16px; border-radius: 18px; }
  .tni-gs__stat { padding: 12px 14px; }
  .tni-gs__stat strong { font-size: 20px; }
  .tni-gs__chart { padding: 14px 12px; }
  .tni-gs__cta { padding: 18px 16px; }
  .tni-gs__cta a { width: 100%; justify-content: center; }
}

/* ----- monitor tabs: one scrolling line on phones ----- */
@media (max-width: 600px) {
  .tni-monitor-tabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; border-radius: 16px !important; -webkit-overflow-scrolling: touch; }
  .tni-monitor-tabs::-webkit-scrollbar { display: none; }
  .tni-monitor-tabs a { flex: none; white-space: nowrap; }
  .tni-monitor-tabs__live { flex: none; }
}

/* ----- DDoS page: figures and questions under the frame (Ddos::section) ----- */
.tni-dd-text .tni-dd-faq-title { margin: 0 0 16px; font-size: 22px; }
.tni-dd-text { border-radius: 14px; }
html[data-theme=dark] .tni-dd-text { --gs-card: #0a1828; --gs-line: #2c455e; }
.tni-dd-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 28px; }
.tni-dd-faq > div { padding: 0 0 14px; border-bottom: 1px solid var(--gs-line); }
.tni-dd-faq h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.tni-dd-faq p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gs-muted); }
#tni-dd-faq { scroll-margin-top: 100px; }

/* ----- Game Monitor: the slim list of every server under the monitor, in the monitor's own panel look ----- */
.tni-gm-all--slim { --gs-ink: #10152e; --gs-muted: #4a5d78; --gs-line: #d5dfeb; --gs-card: #ffffff; --gs-accent: #075deb; --gs-off: #8a97ab;
  margin: 0 20px 8px; padding: 4px 22px; border: 1px solid var(--gs-line); border-radius: 10px; background: var(--gs-card); }
html[data-theme=dark] .tni-gm-all--slim { --gs-ink: #f3f7ff; --gs-muted: #b1c6df; --gs-line: #2c455e; --gs-card: #0a1828; --gs-accent: #39adff; --gs-off: #6f7e95; }
.tni-gm-all--slim > summary { min-height: 52px; font-size: 14px; }
.tni-gm-all--slim[open] { padding-bottom: 16px; }
.tni-gm-all--slim a { color: var(--gs-ink); }
@media (max-width: 560px) { .tni-gm-all--slim { padding: 2px 14px; } }

/* Monthly place of a server (GameServers::place), above its figures. */
.tni-gs__place { display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 8px 14px 8px 8px; border: 1px solid var(--gs-line); border-radius: 999px; background: var(--gs-card); font-size: 14px; font-weight: 600; color: var(--gs-ink); }
.tni-gs__place span { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 999px; background: linear-gradient(135deg, #FFB547, #FF8A00); color: #1A1200; font-weight: 800; font-size: 14px; }
