/* WoT Replay Portal - light-grey look in the style of hjundaj.com, olive buttons #748441 (chosen 9-10.11.2026). */
:root {
  --bg: #d9dad4; --panel: #eeeeeb; --panel2: #e4e5e0; --line: #c8cac3; --head: #d2d4cd; --row: #dadbd5;
  --text: #262626; --muted: #666; --accent: #748441; --link: #5c6a2f; --win: #3a9d3e; --loss: #d1432e; --draw: #b49a1e;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 "Droid Sans", "Noto Sans", "Segoe UI", Arial, sans-serif; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3, .tab, .btn { text-transform: uppercase; letter-spacing: .02em; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Header like hjundaj.com: dark strip, white bar with logo and menu, banner. */
.top { background: #e8e9e4; }
.strip { background: #2a2a2a; color: #9a9a9a; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 5px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo:hover { text-decoration: none; }
/* Logo "hjundaj REPLAYS": dark letters on a transparent background, made by Filip (file 644x97, shown at half size so it stays sharp). */
.logo img { display: block; width: 322px; height: auto; margin: 6px 0; }
.top nav a, .top .linkbtn { color: #2a2a2a; margin-left: 18px; text-transform: uppercase; font-weight: 700; font-size: 14px; }
/* Banner in the style of the battle picture: rounded corners and a light dark shade from the left. */
.banner { height: 150px; border-radius: 8px; margin-bottom: 4px; background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,.12) 60%, rgba(0,0,0,.05)), url("/static/img/banner.jpg") right center / cover no-repeat; }
.banner { position: relative; }
.banner-back { position: absolute; left: 16px; bottom: 14px; padding: 7px 14px; border-radius: 4px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.banner-back:hover { background: #748441; border-color: #748441; color: #fff; text-decoration: none; }
@media (max-width: 600px) { .logo img { width: 230px; } .banner { height: 90px; } .banner-back { left: 10px; bottom: 10px; padding: 5px 10px; font-size: 11px; } }
.tagline { color: var(--muted); margin: 18px 0 12px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--panel); padding: 12px; border-radius: 6px; }
.filters input, .filters select { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 7px 8px; font: inherit; }
.filters input { flex: 1 1 200px; }
.reset { margin-left: 4px; }
.count { margin: 10px 0; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 4px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.back { display: inline-block; margin: 14px 0 -4px; color: var(--muted); font-weight: 600; }
.back:hover { color: var(--accent); text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.yt { background: #e62117; color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
/* Dark card, the same colours as the battle page it leads to. */
.card { --text: #e6e8ea; --muted: #9aa1a8; display: block; background: #24282c; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.25); overflow: hidden; color: var(--text); border: 1px solid #33383e; }
.card .card-meta { border-top: 1px solid #33383e; padding-top: 6px; }
.card:hover { text-decoration: none; border-color: var(--accent); }
.card-top { position: relative; height: 120px; color: #fff; background: #2a2f36 center/cover no-repeat; }
.card-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.85)); }
.tank-img { position: absolute; right: 6px; bottom: 18px; width: 120px; z-index: 1; filter: drop-shadow(0 2px 4px #000); }
.card-tank { position: absolute; left: 10px; bottom: 8px; z-index: 2; font-size: 15px; }
.badge { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.badge.win { background: var(--win); } .badge.loss { background: var(--loss); } .badge.draw { background: var(--draw); color: #111; } .badge.none { background: #555; }
.card-body { padding: 10px 12px 12px; }
/* Result as a thin stripe on top of the card instead of a "VICTORY" label. */
.card.res-win { border-top: 3px solid var(--win); } .card.res-loss { border-top: 3px solid var(--loss); } .card.res-draw { border-top: 3px solid var(--draw); }
/* The highlight: why this battle is worth watching (epic medal or the best number). */
.hl-chip { position: absolute; left: 8px; top: 8px; right: 8px; z-index: 2; display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100% - 16px);
  padding: 3px 9px; border-radius: 3px; background: rgba(15,17,19,.78); border: 1px solid rgba(232,178,92,.55); color: #f3c97a;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.hl-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-chip.medal { padding-left: 4px; }
.hl-chip img { width: 28px; height: 28px; margin: -4px 0; flex: 0 0 auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.card-line { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.card-line .card-player { flex: 1 1 auto; min-width: 0; }
.card-medals { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.card-medals img { width: 26px; height: 26px; }
.card-medals .more { font-size: 11px; color: var(--muted); margin-left: 2px; }

/* Hover: the tile widens and squeezes the others in its row (rows built by tiles.js). */
.grid.fx-push.ready { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 0; }
.grid.fx-push.ready > .card, .grid.fx-push.ready > .fx-filler { flex: 1 1 0; min-width: 0; margin-bottom: 14px; transition: flex-grow .25s ease; }
.grid.fx-push.ready > .fx-filler { visibility: hidden; }
.grid.fx-push.ready > .fx-break { flex-basis: 100%; height: 0; }
.grid.fx-push.ready .card-title, .grid.fx-push.ready .card-player, .grid.fx-push.ready .card-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .grid.fx-push.ready > .card:hover { flex-grow: 1.45; border-color: var(--accent); } }
.card-title { font-weight: 600; margin-bottom: 2px; }
.card-player { color: var(--muted); }
.clan { color: var(--muted); font-size: .9em; }
.card-stats { display: flex; justify-content: space-between; margin: 8px 0 6px; font-weight: 600; }
.card-stats i { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 400; }
.card-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.tt { color: var(--accent); font-weight: 700; font-size: .85em; }

.wn { font-weight: 700; }
.wn-none { color: var(--muted); } .wn-1 { color: #e0533d; } .wn-2 { color: #f2913a; } .wn-3 { color: #b8a200; }
.wn-4 { color: #3e9a1f; } .wn-5 { color: #3fa4e0; } .wn-6 { color: #b267e6; } .wn-7 { color: #e05fd1; }

.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 20px 0; }
.empty { background: var(--panel); padding: 24px; border-radius: 6px; color: var(--muted); }

.side .box { background: var(--panel); border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.06); padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--line); }
.side h2 { font-size: 15px; margin: -14px -16px 10px; padding: 8px 16px; background: var(--head); color: #262626; }

.hero { margin-top: 18px; border-radius: 8px; color: #fff; background: #2a2f36 center/cover no-repeat; overflow: hidden; }
.hero-in { display: flex; gap: 20px; align-items: center; padding: 28px 24px; background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.55)); flex-wrap: wrap; }
.hero-tank { width: 200px; max-width: 40%; filter: drop-shadow(0 3px 6px #000); }
.hero-in { padding-bottom: 12px; }
.hero-dl { margin-left: auto; align-self: flex-start; display: flex; flex-direction: column; gap: 8px; }
.hero-dl .btn { text-align: center; }
/* Light outlined button for dark backgrounds (Copy link next to Download). */
.btn.light { background: rgba(0,0,0,.25); color: #e6e8ea; border: 1px solid rgba(255,255,255,.45); padding: 7px 13px; }
.btn.light:hover { border-color: #fff; color: #fff; }
.hero-by { flex-basis: 100%; margin: 0; color: #c9ccd0; font-size: 13px; }
/* Views and downloads: small line icons drawn with the text colour. */
.ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-counts span { margin-left: 14px; white-space: nowrap; }
.card-views { margin-right: 10px; }
.card-views .ic { width: 13px; height: 13px; }

/* Battle page tabs: without JavaScript all panels are shown one under another. */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.tab { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 4px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.tab:hover { color: var(--text); text-decoration: none; }
.tabs-on .tab.active { background: var(--accent); color: #fff; }
.tab.video { margin-left: auto; color: #fff; background: #e62117; }
.tab.video:hover { filter: brightness(1.1); }
.panel { margin-bottom: 18px; }
.tabs-on ~ .panel:not(.active) { display: none; }
.tabs:not(.tabs-on) button.tab { display: none; }
.hero h1 { margin: 2px 0 4px; font-size: 26px; }
.hero-sub { margin: 0; font-size: 17px; }
.hero-meta { margin: 6px 0 0; color: #c9ccd0; }
.result { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.result.win { color: var(--win); } .result.loss { color: var(--loss); } .result.draw { color: var(--draw); } .result.none { color: var(--muted); }
.desc { background: var(--panel); padding: 12px 16px; border-radius: 6px; }
.actions { margin: 14px 0; display: flex; gap: 10px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--panel); border-radius: 6px; padding: 10px 12px; border: 1px solid var(--line); }
.stat-v { font-size: 20px; font-weight: 700; }
.stat-l { color: var(--muted); font-size: 13px; }

.teams { display: grid; grid-template-columns: 1fr; gap: 16px; }
.team { background: var(--panel); border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.06); padding: 10px 12px; overflow-x: auto; }
.team h3 { margin: -10px -12px 10px; padding: 8px 12px; font-size: 15px; background: var(--head); color: #262626; }
.team.ally h3 { border-left: 4px solid var(--win); } .team.enemy h3 { border-left: 4px solid var(--loss); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
td { padding: 4px 6px; border-bottom: 1px solid var(--row); white-space: nowrap; }
.n { text-align: right; }
tr.me td { background: rgba(116,132,65,.15); }
tr.dead td { opacity: .55; }
.yes { color: var(--win); font-weight: 700; }
tr.ally-row td:first-child { color: var(--win); }
.econ { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
table.sum td { border-bottom: 1px solid var(--row); }
table.sum tr.total td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line); }
table.sum tr.total.pos td.n { color: var(--win); } table.sum tr.total.neg td.n { color: var(--loss); }
.tank-cell { display: flex; align-items: center; gap: 6px; }
.tank-mini { width: 40px; height: auto; }

/* Signed-in parts: nav, forms, upload, lists */
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
form.inline { display: inline; margin-left: 18px; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.top .linkbtn { color: var(--muted); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.danger, .linkbtn.danger { background: transparent; color: var(--loss); border: 1px solid var(--loss); }
.linkbtn.danger { border: 0; }
.realms { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.box.page { background: var(--panel); border-radius: 6px; padding: 18px 20px; margin-top: 18px; border: 1px solid var(--line); }
.box.page h1 { margin-top: 0; font-size: 24px; }
[hidden] { display: none !important; }
.stack { display: grid; gap: 14px; max-width: 640px; }
.stack label { display: block; }
.stack input:not([type=checkbox]), .stack textarea { display: block; width: 100%; margin-top: 4px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 8px; font: inherit; }
.stack label.check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.stack .btn { justify-self: start; min-width: 140px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.preview { background: var(--panel2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 4px; display: grid; gap: 2px; }
.msg.err { color: var(--loss); } .msg.ok { color: var(--win); }
.msg:empty { display: none; }
.controls { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; margin: 16px 0; display: grid; gap: 10px; }
.controls summary { cursor: pointer; color: var(--accent); }
.controls details form { margin-top: 10px; }
table.list td { white-space: normal; }
.legal { max-width: 860px; }
.legal h2 { font-size: 18px; margin-top: 22px; }

.foot { margin-top: 40px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Personal Score tab: like the game's after-battle screen, in the Portal's colours ---------- */
.ps { --ps-bg: #1d2023; --ps-box: #24282c; --ps-line: #33383e; --ps-text: #e6e8ea; --ps-muted: #9aa1a8; --ps-hl: #b48be0;
  background: var(--ps-bg); color: var(--ps-text); border-radius: 8px; padding: 12px; display: grid; gap: 12px; }
.ps .clan { color: var(--ps-muted); }
.ps-banner { position: relative; border-radius: 6px; overflow: hidden; background: #2a2f36 center / cover no-repeat; }
.ps-banner-in { position: relative; display: flex; align-items: center; gap: 22px; padding: 14px 22px; min-height: 150px; background: linear-gradient(90deg, rgba(16,18,20,.9), rgba(16,18,20,.78)); }
.ps-banner.win .ps-banner-in { box-shadow: inset 0 -3px 0 var(--accent); }
.ps-banner.loss .ps-banner-in { box-shadow: inset 0 -3px 0 var(--loss); }
/* The result word is a huge, faint background behind the medals. */
.ps-result { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 0; pointer-events: none; overflow: hidden; white-space: nowrap;
  font-size: clamp(56px, 12vw, 150px); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .13; }
.ps-banner.win .ps-result, .ps-banner.win .ps-outcome { color: #a9c25c; } .ps-banner.loss .ps-result, .ps-banner.loss .ps-outcome { color: #e8705c; }
.ps-banner.draw .ps-result, .ps-banner.draw .ps-outcome { color: #d9c46a; }
.ps-big, .ps-main { position: relative; z-index: 1; }
.ps-big { margin: 0; flex: 0 0 auto; text-align: center; width: 130px; }
.ps-big-img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.7)); }
.ps-big figcaption { color: #d9b35c; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; }
.ps-main { flex: 1 1 auto; min-width: 0; }
.ps-outcome { font-size: 20px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ps-reason { color: var(--ps-muted); font-size: 12px; font-weight: 400; letter-spacing: .14em; }
.ps-medals { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.ps-medal { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); transition: transform .15s; }
.ps-medal:hover { transform: scale(1.15); }
@media (max-width: 600px) { .ps-banner-in { flex-direction: column; text-align: center; gap: 8px; } .ps-medals { justify-content: center; } .ps-outcome { font-size: 17px; } }
.ps-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ps-box); border: 1px solid var(--ps-line); border-radius: 6px; }
.ps-strip .ps-tile { text-align: center; padding: 10px 6px; border-right: 1px solid var(--ps-line); }
.ps-strip .ps-tile:last-child { border-right: 0; }
.ps-l { color: var(--ps-muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ps-v { font-size: 22px; font-weight: 700; line-height: 1.3; }
.ps-s { color: var(--ps-muted); font-size: 11px; }
.ps-tile.hl .ps-v { color: var(--ps-hl); }
.ps-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .ps-cols { grid-template-columns: 1fr; } .ps-strip { grid-template-columns: repeat(2, 1fr); } }
.ps-left, .ps-right { display: grid; gap: 12px; }
.ps-box, .ps-card { background: var(--ps-box); border: 1px solid var(--ps-line); border-radius: 6px; overflow: hidden; }
.ps-box { padding: 10px 12px; }
.ps-h { margin: 0 0 8px; font-size: 12px; letter-spacing: .16em; color: var(--ps-muted); }
.ps-card-top { position: relative; height: 150px; background: #2a2f36 center / cover no-repeat; }
.ps-card-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.85)); }
.ps-tank { position: absolute; right: 10px; bottom: 14px; width: 190px; z-index: 1; filter: drop-shadow(0 3px 6px #000); }
.ps-card-tank { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 17px; text-transform: uppercase; }
.ps-card-body { padding: 10px 12px 12px; }
.ps-player { font-size: 18px; font-weight: 700; }
.ps-marks { color: #d9b35c; margin-left: 6px; letter-spacing: 2px; }
.ps-meta { color: var(--ps-muted); font-size: 13px; margin-top: 2px; }
.ps-status { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; color: var(--ps-muted); }
.ps-status.alive { color: #a9c25c; } .ps-status.dead { color: #e8705c; }
.ps-status .wn { text-transform: none; }
.ps table { font-size: 13px; }
.ps th { color: var(--ps-muted); border-bottom-color: var(--ps-line); }
.ps td { border-bottom-color: var(--ps-line); }
.ps-econ td:first-child { color: var(--ps-muted); }
.ps-more { margin-top: 10px; }
.ps-more tr:last-child td, .ps-econ tbody tr:last-child td { border-bottom: 0; }
.ps .as { color: #6fb0e8; } .ps .own { color: #e8b25c; }
.ps-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 600px) { .ps-tiles { grid-template-columns: repeat(2, 1fr); } }
.ps-tiles .ps-tile { background: var(--ps-bg); border: 1px solid var(--ps-line); border-radius: 4px; padding: 8px 10px; }
.ps-tiles .ps-v { font-size: 20px; }
.ps-tile.wn .ps-v { color: inherit; }
.ps-enemies td { padding: 5px 6px; }
.ps-enemies tr.dead td:not(.ic) { opacity: .6; }
.ps-enemies .ic { width: 34px; text-align: center; color: #4a5056; position: relative; }
.ps-enemies .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ps-enemies th.ic { color: var(--ps-muted); }
.ps-enemies td.ic.on { color: #a9c25c; }
.ps-enemies td.ic.on:nth-child(5) { color: #e8a14a; } .ps-enemies td.ic.on:nth-child(6) { color: #e8b25c; } .ps-enemies td.ic.on:nth-child(7) { color: #e8705c; }
.ps-enemies .ic sub { font-size: 10px; font-weight: 700; position: absolute; right: 3px; bottom: 3px; }

/* ---------- Team Score tab: both teams side by side, like the game's team table, in the Portal's colours ---------- */
.ts { --ps-bg: #1d2023; --ps-box: #24282c; --ps-line: #33383e; --ps-text: #e6e8ea; --ps-muted: #9aa1a8;
  background: var(--ps-bg); color: var(--ps-text); border-radius: 8px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 1100px) { .ts { grid-template-columns: 1fr; } }
.ts-team { background: var(--ps-box); border: 1px solid var(--ps-line); border-radius: 6px; overflow-x: auto; }
.ts-h { margin: 0; padding: 9px 12px; font-size: 15px; letter-spacing: .08em; border-bottom: 1px solid var(--ps-line); }
.ts-team.ally .ts-h { color: #a9c25c; box-shadow: inset 4px 0 0 #a9c25c; } .ts-team.enemy .ts-h { color: #e8705c; box-shadow: inset 4px 0 0 #e8705c; }
.ts-table { font-size: 13px; }
.ts-table th { color: var(--ps-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-bottom-color: var(--ps-line); padding: 6px; }
.ts-table td { border-bottom-color: var(--ps-line); padding: 4px 6px; height: 34px; }
.ts-table tbody tr:last-child td { border-bottom: 0; }
.ts-table tr:hover td { background: rgba(255,255,255,.03); }
.ts-table tr.me td { background: rgba(116,132,65,.22); }
.ts-table tr.me .ts-nick { color: #e8b25c; font-weight: 700; }
.ts-table tr.dead td:not(.n):not(.sq) { opacity: .55; }
.ts-table .clan { color: var(--ps-muted); }
.ts-table .sq { width: 26px; padding-right: 0; }
.ts-sq { display: inline-block; min-width: 18px; padding: 1px 4px; border-radius: 3px; background: #3a4048; color: #d9dde1; font-size: 11px; font-weight: 700; text-align: center; }
.ts-name { white-space: nowrap; }
.ts-who { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.ts-medal { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-left: 4px; }
.ts-marks { color: #d9b35c; font-size: 10px; letter-spacing: 1px; margin-left: 3px; }
.ts-table .tank-cell { white-space: nowrap; }
.ts-table .tank-mini { width: 38px; }
.ts-table td.n { font-variant-numeric: tabular-nums; }
.ts-table .wn-3 { color: #d9c44a; } .ts-table .wn-4 { color: #7cc85a; }

/* ---------- Detailed Report tab: cards like the game's detailed report, economy on the right ---------- */
.dr-strip small { font-size: 12px; color: var(--ps-muted); font-weight: 400; }
/* Detailed Report: the game's report (statistics, time, credits, bonds, experience). */
.gr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .gr { grid-template-columns: 1fr; } }
.gr-col { display: grid; gap: 12px; }
.gr-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.gr-t td, .gr-t th { padding: 4px 6px; border-bottom: 1px dotted var(--ps-line); }
.gr-t th { font-size: 11px; font-weight: 400; letter-spacing: .06em; color: var(--ps-muted); border-bottom: 1px solid var(--ps-line); }
.gr-t td:first-child { color: #c9cdd1; }
.gr-t td.n, .gr-t th.n { text-align: right; white-space: nowrap; }
.gr-t tr.sub td:first-child { padding-left: 24px; color: var(--ps-muted); }
.gr-t tbody tr:last-child td { border-bottom: 0; }
.gr-t .gr-prem { color: #e8b25c; font-weight: 700; }
.gr-money td:nth-child(2), .gr-xp td:nth-child(2), .gr-xp td:nth-child(3) { color: var(--ps-muted); }
.gr-t td.fx, .gr-t th.fx { color: var(--ps-muted); font-size: 12px; }
.gr-xp td:nth-child(4), .gr-xp th:nth-child(4) { border-left: 1px solid var(--ps-line); }
.gr-money td:nth-child(3), .gr-money th:nth-child(3) { border-left: 1px solid var(--ps-line); }
.gr-t tr.cost td.n { color: #e8705c; }
.gr-t tr.total td { font-weight: 700; border-top: 1px solid var(--ps-line); color: var(--ps-text); }
.gr-t tr.total.pos td.n:last-child, .gr-xp tr.total td:nth-child(4) { color: #a9c25c; }
.gr-t tr.total.neg td.n:last-child { color: #e8705c; }
.dr-extra { margin: 6px 0 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ps-muted); border-top: 1px solid var(--ps-line); padding-top: 12px; }
.dr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.dr-card { background: var(--ps-bg); border: 1px solid var(--ps-line); border-left: 3px solid #e8705c; border-radius: 4px; padding: 8px 10px; }
.dr-card.ally { border-left-color: #a9c25c; }
.dr-card.killed { background: linear-gradient(90deg, rgba(232,112,92,.12), transparent 60%), var(--ps-bg); }
.dr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dr-tank { width: 52px; height: auto; flex: 0 0 auto; }
.dr-who { min-width: 0; flex: 1 1 auto; }
.dr-tname { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-pname { color: var(--ps-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-ally { color: #a9c25c; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.dr-kill { color: #e8705c; flex: 0 0 auto; }
.dr-kill svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.dr-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.dr-row.in { grid-template-columns: 2fr 1fr 1fr; margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--ps-line); }
.dr-st { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 5px; align-items: center; color: #4f565d; font-size: 12px; }
.dr-st svg { grid-row: span 2; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dr-st .dr-l { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ps-muted); opacity: .7; }
.dr-st b { color: #6b737a; font-weight: 700; white-space: nowrap; }
.dr-st b small { font-weight: 400; font-size: 10px; color: var(--ps-muted); }
.dr-st.on.out { color: #e8b25c; } .dr-st.on.out b { color: var(--ps-text); }
.dr-st.on.in { color: #e8705c; } .dr-st.on.in b { color: var(--ps-text); }
.dr-st.on .dr-l { opacity: 1; }
.dr-econ td { padding: 5px 6px; }
.dr-econ tr.cost td.n { color: #e8705c; }
.dr-econ tr.total td { font-weight: 700; border-top: 1px solid var(--ps-line); }
.dr-econ tr.total.pos td.n { color: #a9c25c; } .dr-econ tr.total.neg td.n { color: #e8705c; }
.dr-note { color: var(--ps-muted); font-size: 11px; margin: 0; }

/* "My replays": new videos and video notifications */
.newdot { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #c0392b; color: #fff; font-size: 11px; line-height: 18px; text-align: center; vertical-align: 1px; }
.tag.new, .tag.picked { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tag.new { background: #c0392b; color: #fff; }
.tag.picked { background: var(--accent); color: #fff; }
.emailform { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.emailform input { flex: 1 1 240px; padding: 8px 10px; }
.msg.ok { color: var(--win); }
