/* What goes inside the panel on every page (forms, tables, buttons, news, each page's own parts). The frame round it (banner, menu, boxes, footer) is layout.css. */
:root { --force-green: #2fb344; }   /* (green, the fifth force: its one color on the site; the exact green is the owner's choice. Discord and the list pictures use Colors.GreenRgb, the same value) */
html { background: #1e1e1e; }
body { background: #1e1e1e; color: #fff; font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0; }
a { color: #7fc4ee; }
a:hover { color: #fff; }

/* ---- what goes inside the panel ---- */
.PanelBody { color: #fff; overflow-wrap: break-word; }   /* (break-word, not anywhere: a long word still wraps, but table columns no longer split words in half to get narrow) */
.PanelBody h3 { color: #ffa733; margin: 14px 0 6px; }
.PanelBody p { line-height: 1.5; }
.center { text-align: center; }
.dim { color: #b0b0b0; font-size: 12px; }
input, select, textarea { background: #3a3a3a; color: #bfe0f5; border: 1px solid #6996b2; padding: 4px 6px; font: inherit; }
button, .btn { background: #3f3f3f; color: #fff; border: 1px solid #6996b2; padding: 5px 14px; cursor: pointer; border-radius: 3px; text-decoration: none; display: inline-block; font: inherit; margin: 0 6px 0 0; }
button:hover, .btn:hover { background: #505050; color: #fff; }
button.danger { border-color: #ff7a7a; color: #ffd0d0; } button.danger:hover { background: #7a2a2a; }
button.link { background: none; border: 0; color: #8fd0ff; text-decoration: underline; padding: 0 4px; margin: 0; }
form.inline { display: inline; }
.err { color: #ff7a7a; } .ok { color: #8fdc8f; } .warn { color: #ff9a5a; }
table { border-collapse: collapse; width: 100%; } td, th { padding: 5px 8px; border-bottom: 1px solid #555; text-align: left; font-size: 13px; } th { color: #ffa733; }
.field { margin: 10px 0; } .field label { display: inline-block; width: 150px; } .field label.check { width: auto; }
.news { margin: 14px 0; padding-top: 10px; border-top: 1px solid #555; } .news h3 { margin: 4px 0; } .news .date { color: #a0a0a0; font-size: 11px; }
.tank { margin: 12px 0; padding: 8px 0; border-top: 1px solid #555; position: relative; } .tank h3 { margin: 4px 0 8px; } .tank form { position: absolute; right: 0; top: 8px; }
.tank.staff-team form { position: static; }
/* a team invitation on My Tanks: its Accept and Decline sit under the text, in a row (as a tank's corner forms they lay on top of the heading and of each other: seen 2026-11-14) */
.tank.invite form { position: static; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 14px 4px 0; }
/* a tank that needs a name (its team is gone): the name box and Name it sit in a row under the explanation, wrapping on a narrow screen, and Delete this tank stays at the foot of the card
   (as corner forms, both forms were placed at the card's top right: over the heading and over each other, player report 241) */
.tank.needs-name form { position: static; }
.tank.needs-name > form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 8px; } .tank.needs-name > form input { min-width: 0; max-width: 100%; }
.tank.invite { border-top: 0; border-left: 4px solid #ffd84a; padding: 8px 0 8px 12px; }
.team-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 8px; } .team-tools form.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; } .team-tools form.inline:last-child { margin-left: auto; }
.pager a { margin-right: 16px; }
.filters label { margin: 0 6px 0 14px; } .filters label:first-child { margin-left: 0; }
.force { font-weight: bold; } .f0 { color: #ff5a5a; } .f1 { color: #5a9bff; } .f2 { color: #ffa030; } .f3 { color: #d070e8; } .f4 { color: var(--force-green); } .f7 { color: #9a9a9a; }   /* (f4: green; f7: no force, a boss: green, step 3) */
code, .cmd { background: #111; padding: 2px 6px; border-radius: 3px; color: #b2d4ea; }
ul { padding-left: 20px; } li { margin: 6px 0; }

table.nodes td, table.nodes th { font-size: 12px; }
/* the Bots page's settings: a row of counts a map, and a card a kind with its knobs */
.bot-count-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .bot-count-row input { width: 60px; } .bot-count-row button { margin: 0; }
.bot-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.bot-kind { padding: 10px 14px; border: 1px solid #444; border-radius: 10px; background: rgba(255, 255, 255, .02); }
.bot-kind h4 { margin: 0 0 4px; color: #ffa733; font-size: 16px; }
/* the staff bot pages: a row of jump links at the top of the page (not sticky: the page body scrolls inside a box with overflow, which stops sticky), and the message of an action inside the box it was pressed in */
.jump-bar { display: flex; gap: 6px 14px; overflow-x: auto; white-space: nowrap; margin: 8px 0; padding: 8px 10px; background: #2a2a2a; border: 1px solid #555; border-radius: 6px; }
.jump-bar a { flex: 0 0 auto; }
.today-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.learn-panel progress { width: 60%; max-width: 420px; vertical-align: middle; } .learn-log { max-height: 260px; overflow: auto; font-size: 11px; line-height: 1.4; padding: 6px 8px; margin: 8px 0; background: rgba(0, 0, 0, .35); border: 1px solid #333; white-space: pre-wrap; word-break: break-word; }
.learn-buttons form, form.inline-form { display: inline; } .learn-settings { margin: 10px 0 4px; line-height: 2; }
.today-row { padding: 8px 12px; border: 1px solid #444; border-radius: 8px; background: rgba(255, 255, 255, .02); }
.today-head { margin-bottom: 4px; } .today-detail { font-size: 12px; line-height: 1.45; color: #d8d8d8; } .today-links { margin-top: 6px; font-size: 12px; }
.today-changes { margin: 4px 0; padding-left: 18px; font-size: 12px; } .today-changes li { margin: 4px 0; }
.today-words summary, .playing-now > summary { cursor: pointer; } .today-words dl { margin: 6px 0; font-size: 12px; } .today-words dt { font-weight: bold; margin-top: 6px; } .today-words dd { margin: 0 0 0 14px; color: #c8c8c8; }
.bots-now-filters { display: flex; gap: 14px; align-items: center; margin: 6px 0; } .bots-now-table { font-size: 12px; } .bots-now-row { cursor: pointer; } .bots-now-row:hover, .bots-now-row.open { background: rgba(255, 255, 255, .05); }
.bots-now-lines td { background: rgba(0, 0, 0, .25); } .bots-now-lines ol { margin: 4px 0; padding-left: 22px; } .bots-now-lines li { margin: 2px 0; } .bots-now-lines code { white-space: pre-wrap; word-break: break-word; } #bots-now.stale .bots-now-table { opacity: .5; }
.playing-now > summary h3 { display: inline; } .adm-card.wide { grid-column: span 2; } .adm-card.wide span { font-size: 12px; }
.trial-switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 8px 0; } .trial-switches .trials-form { padding: 8px 12px; border: 1px solid #444; border-radius: 8px; background: rgba(255, 255, 255, .02); }
.bot-nav { line-height: 1.8; } details.more { margin: 4px 0 8px; } details.more > summary { cursor: pointer; font-size: 12px; color: #8fd0ff; }
/* the staff bar (StaffNav): groups and the current group's pages on a wide screen, one Staff menu on a phone */
.staff-nav { margin: 0 0 6px; }
.staff-groups { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.staff-groups a { padding: 4px 12px; border: 1px solid #4a6a80; border-radius: 14px; text-decoration: none; color: #8fd0ff; background: rgba(255, 255, 255, .04); }
.staff-groups a.here { background: rgba(105, 150, 178, .35); color: #fff; border-color: #8fd0ff; font-weight: bold; }
.staff-sub { margin: 8px 0 0; padding: 6px 10px; border-left: 3px solid #6996b2; line-height: 1.9; } .staff-sub a, .staff-sub strong { margin-right: 14px; white-space: nowrap; }
.staff-menu { display: none; border: 1px solid #4a6a80; border-radius: 8px; background: rgba(255, 255, 255, .04); } .staff-menu summary { cursor: pointer; padding: 9px 12px; font-size: 14px; }
.staff-menu-group { padding: 4px 12px 8px; } .staff-menu-group > span { display: block; font-size: 11px; color: #ffa733; text-transform: uppercase; letter-spacing: .05em; } .staff-menu-group a, .staff-menu-group strong { display: inline-block; margin: 2px 14px 2px 0; padding: 3px 0; }
.staff-nav .count { margin-left: 6px; padding: 0 7px; border-radius: 9px; font-style: normal; font-size: 11px; background: rgba(255, 255, 255, .12); color: #fff; } .staff-nav .count.err { background: #8a2a2a; }
.staff-purpose { margin: 4px 0 12px; font-size: 12px; color: #c8c8c8; }
@media (max-width: 700px) { .staff-bar { display: none; } .staff-menu { display: block; } }
.needs-you { margin: 0 0 12px; padding: 8px 12px; border: 1px solid #ff7a7a; border-left-width: 4px; border-radius: 6px; background: rgba(122, 42, 42, .25); } .needs-you.none { border-color: #4a6a80; background: rgba(255, 255, 255, .03); color: #b0b0b0; }
.needs-you ul { margin: 4px 0 0; padding-left: 18px; } .needs-you li { margin: 3px 0; } .needs-you b { color: #ffd0d0; }
@media (max-width: 700px) {
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: auto; }
  table.cards tr:first-child { display: none; }
  table.cards tr { margin: 0 0 10px; padding: 6px 10px; border: 1px solid #444; border-radius: 8px; background: rgba(255, 255, 255, .02); }
  table.cards td { border: 0; padding: 3px 0; font-size: 13px; }
  table.cards td[data-label]::before { content: attr(data-label) ": "; color: #ffa733; font-size: 11px; }
}
/* A grid that has to stay a grid (stars for each rank, the team board): on a phone it scrolls sideways inside its own box instead of being squeezed or cut off (the owner, 2026-11-30: "look for non mobile responsive pages"). */
@media (max-width: 700px) { table.scroll-x { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; } table.scroll-x th, table.scroll-x td { white-space: nowrap; } }
.staff-next { margin: 6px 0 14px; } .staff-addbar { margin: 0 0 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid #555; } .tab { padding: 6px 14px; border: 1px solid #555; border-bottom: 0; border-radius: 8px 8px 0 0; text-decoration: none; background: rgba(255, 255, 255, .03); } .tab.here { background: rgba(105, 150, 178, .3); color: #fff; border-color: #8fd0ff; }
button.link.danger, button.link.warn.danger { color: #ff7a7a; background: none; border: 0; }
.notice-box { margin: 8px 0; } .notice-box.ok { background: rgba(30, 74, 36, .55); } .notice-box.err { background: rgba(122, 42, 42, .45); }
.PanelBody h3[id], .PanelBody h4[id] { scroll-margin-top: 8px; }
.knob { display: grid; grid-template-columns: 120px 80px; gap: 2px 10px; align-items: center; margin: 8px 0; }
.knob label { width: auto; } .knob input { width: 80px; box-sizing: border-box; } .knob .dim { grid-column: 1 / -1; }
.knob.changed label { color: #ffd84a; } .knob.changed input { border-color: #ffd84a; }
/* Veteran weights, "Set a weight": the filters, a changed row, a pair that contradicts, a long help text folded under "more" */
.weight-filters { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 8px 0; }
.weight-filters label { width: auto; }
.set-weights tr.changed td:first-child { border-left: 3px solid #ffd84a; }
.set-weights .badge-changed { color: #ffd84a; font-size: 12px; }
.set-weights tr.pair-warning td:first-child { border-left: 3px solid #ff9a5a; }
.help-more summary { cursor: pointer; list-style: none; } .help-more summary::-webkit-details-marker { display: none; }
.help-more[open] summary .link { display: none; }

/* the tournament form: a label column and a column for the controls and their hints (it used to wrap under the labels) */
#tForm .field { display: grid; grid-template-columns: 150px 1fr; column-gap: 10px; align-items: start; margin: 12px 0; }
#tForm .field > label { width: auto; padding-top: 5px; }
#tForm .field .ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; line-height: 1.5; }
#tForm .field .ctl .dim { flex: 0 1 auto; }
#tForm .field .ctl input[type=checkbox] { margin: 0 4px 0 0; }

/* a tournament's Join: shown from a minute before the start (site.js adds .open at the time) and while it is on */
.joincell .when-open { display: none; } .joincell.open .when-open { display: inline; } .joincell.open .when-wait { display: none; }
button.joinnow { background: #2f7a2f; border-color: #8fdc8f; font-weight: bold; }
button.joinnow:hover { background: #3d9a3d; }
.tnext a.joinbtn { display: inline-block; padding: 1px 12px; border-radius: 10px; background: #2f7a2f; border: 1px solid #8fdc8f; color: #fff; text-decoration: none; font-weight: bold; text-shadow: 0 1px 2px #000; }
.tnext a.joinbtn:hover { background: #3d9a3d; }

/* the awards a tank carries, as the game draws them (cut from img/awards.png, the game's UI/Awards.png) */
i.award { display: inline-block; position: relative; background: url(/img/awards.png?v=20261127b) no-repeat; margin-right: 8px; vertical-align: middle; cursor: help; flex-shrink: 0; }   /* (flex-shrink: never squeezed below its own size in a flex row: in a narrow column the browser shrank the 29 px tank medal and cut its back off, the owner's screenshot 2026-11-16) */   /* at the picture's own size: scaled up it only blurs and blocks */
td.earned i.award { margin-right: 5px; }
.tank p.awards { min-height: 24px; margin: 6px 0; }
.award-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 6px 0; padding: 3px 10px 3px 6px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; }   /* (the tank's own awards on My Tanks: the picture and its name) */
.award-tag i.award { margin: 0; }
tr.secret td { color: #8a8a8a; font-style: italic; }   /* (the Achievements page: a secret one, shown as ??? until one of your tanks has it) */

/* ---- the game page (Game.cshtml): the header stays, the panels make way, and the game (served by its game server into the frame) slides up under it ---- */
#GameStage { width: 100%; margin: 8px auto 0; animation: game-in .45s ease-out both; }   /* (the game client scales its 1024-pixel screen into the room this gives it, src/fit.ts, and centres it) */
body.site-compact #GameStage { margin-top: 4px; }
#GameStage #app { padding: 0; }
#GameStage.leaving { animation: game-out .38s ease-in forwards; }
@keyframes game-in { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes game-out { to { opacity: 0; transform: translateY(48px); } }
/* the panels: slide out when Play is pressed (site.js), slide back in on the page the game hands back to (?back=1) */
#Columns.slide-out #Main { animation: main-out .35s ease-in forwards; }
#Columns.slide-out #Side { animation: side-out .35s ease-in forwards; }
#Columns.slide-in #Main { animation: main-in .5s ease-out both; }
#Columns.slide-in #Side { animation: side-in .5s ease-out .05s both; }
@keyframes main-out { to { opacity: 0; transform: translateX(-80px); } }
@keyframes side-out { to { opacity: 0; transform: translateX(80px); } }
@keyframes main-in { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: none; } }
@keyframes side-in { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #GameStage, #GameStage.leaving, #Columns.slide-out #Main, #Columns.slide-out #Side, #Columns.slide-in #Main, #Columns.slide-in #Side { animation-duration: 1ms; } }

/* ---- About µTanks ---- */
.about p { line-height: 1.6; margin: 0 0 12px; }
.about figure { margin: 16px 0 20px; }
.about figure img { display: block; max-width: 100%; height: auto; border: 1px solid #3a4a5c; box-shadow: 0 3px 10px rgba(0, 0, 0, .5); }
.about figcaption { margin-top: 8px; color: #b9c7d4; font-size: 12px; line-height: 1.5; }
.about .sig { font-style: italic; color: #ffd84a; }
.about .about-now { padding: 10px 14px; border-left: 3px solid #2e9aec; background: rgba(46, 154, 236, .08); border-radius: 4px; }

/* ---- The Team and Terms of Use ---- */
.team h3 { margin: 18px 0 6px; font-size: 14px; } .team h3:first-child { margin-top: 0; }
.team h3.studio { color: #ff3b30; } .team h3.support { color: #3d7fff; } .team h3.donors { color: #33c43a; }
.team ul { list-style: none; margin: 0; padding: 0; line-height: 1.55; }
.team ul.names { columns: 3; column-gap: 24px; }
.team .thanks { margin-top: 18px; line-height: 1.6; }
.terms { line-height: 1.6; }
.terms h3 { margin: 20px 0 6px; color: #ffd84a; font-size: 14px; } .terms h3:first-child { margin-top: 0; }
.terms h4 { margin: 12px 0 4px; color: #b9d8ee; font-size: 13px; }
.terms p { margin: 0 0 10px; } .terms ul, .terms ol { margin: 0 0 10px; padding-left: 22px; }
.terms ul.dash { list-style: '– '; }
.terms .toc a { color: #8fd0ff; }
/* the feedback form: labels beside the boxes, a wide message box, and a field only bots see */
.feedback .field { display: grid; grid-template-columns: 90px 1fr; column-gap: 10px; align-items: start; }
.feedback .field label { width: auto; padding-top: 5px; }
.feedback input, .feedback textarea { width: 100%; box-sizing: border-box; }
.feedback textarea { resize: vertical; }
.feedback .hp, form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* (a field only bots see: Feedback and Register) */
/* the Game News box when it has the live feed: more, shorter lines (the time over each) */
.rss.live a { font-size: 13px; margin-bottom: 8px; line-height: 1.35; }
/* the Play page: the battlefield from above on the left; the tank, the battlefield and the force on the right, the tank turning in the force's color (play.js) */
form.play { display: grid; grid-template-columns: 300px 1fr; gap: 6px 22px; align-items: start; }
.play-map img { display: block; width: 300px; height: 300px; image-rendering: pixelated; border: 1px solid #6996b2; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); background: #222; }
.play-map #mapNone { width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; border: 1px dashed #555; }
.play-map #mapNone[hidden], .play-map img[hidden] { display: none; }
.play-map .cap { margin-top: 6px; color: #bfe0f5; font-size: 12px; }
.play-pick .field { display: grid; grid-template-columns: 76px 1fr; align-items: center; margin: 0 0 10px; }
.play-pick .field label { width: auto; }
.play-pick select { width: 100%; box-sizing: border-box; }
.forces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }   /* (one row of four, so the Play button is in view on a laptop screen) */
.forces.five { display: flex; } .forces.five .force-btn { flex: 1 1 0; }   /* (a list with a battlefield that plays green: five in a row, four while the green button is hidden; green, step 3) */
.force-btn { margin: 0; padding: 5px 0; border: 2px solid transparent; border-radius: 4px; color: #fff; font: inherit; font-weight: bold; cursor: pointer; opacity: .55; text-shadow: 0 1px 2px #000; }
.force-btn.c0 { background: #b32424; } .force-btn.c1 { background: #2450b3; } .force-btn.c2 { background: #c97a12; } .force-btn.c3 { background: #84208a; } .force-btn.c4 { background: var(--force-green); }
.force-btn:hover { opacity: .85; }
.force-btn:disabled { opacity: .2; cursor: not-allowed; }
.team-color { margin: 6px 0; }
.force-btn.on { opacity: 1; border-color: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .45); }
.force-btn:focus-visible { outline: 2px solid #ffd84a; outline-offset: 1px; }
#tankSpin { display: block; margin: 4px auto 6px; width: 192px; height: 192px; image-rendering: pixelated; }
.play-go { display: block; width: 100%; margin: 12px 0 0; padding: 9px 0; font-size: 16px; font-weight: bold; cursor: pointer; }
.play-note { grid-column: 1 / -1; margin-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
@media (max-width: 700px) { form.play { grid-template-columns: 1fr; } }
/* under the turning tank: its rank and record on the battlefield and force picked, then its awards */
#tankAwards { text-align: center; margin: 0 0 10px; min-height: 44px; }
#tankAwards .record { color: #bfe0f5; font-size: 12px; margin-bottom: 5px; }
#tankAwards .awards { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 4px; }   /* (as .tank-awards: tops in a line, an even gap) */
#tankAwards .awards i.award { margin: 0; }
/* the Controls page: each action and its key boxes; the box waiting for a key glows */
.hotkeys h3 { margin: 16px 0 4px; color: #ffd84a; font-size: 13px; }
.hotkeys table { width: 100%; border-collapse: collapse; }
.hotkeys td { padding: 3px 0; border-bottom: 1px solid #333; }
.hotkeys td:first-child { width: 55%; }
.hk-slot { display: inline-flex; align-items: center; margin-right: 8px; }
.hk-key { min-width: 46px; margin: 0; padding: 3px 8px; font-weight: bold; text-align: center; }
.hk-key.empty { color: #777; border-style: dashed; font-weight: normal; }
.hk-key.listening { background: #2f5f7a; border-color: #ffd84a; color: #fff; }
.hk-clear { margin: 0 0 0 2px; padding: 0 5px; background: none; border: 0; color: #ff7a7a; font-size: 14px; }
.hk-clear:hover { background: none; color: #ff4a4a; }
.hk-note { min-height: 16px; margin-top: 10px; }
.hk-buttons { margin-top: 14px; }
/* a note only for phones and tablets (the Play page: the game needs a keyboard and a mouse) */
.only-small { display: none; }
@media (max-width: 760px), (pointer: coarse) { .only-small { display: block; } }
/* the 404 page: the smoking wreck beside the words (Pages/Status.cshtml, wreck.js) */
.wreck { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.wreck canvas { width: 360px; max-width: 100%; height: auto; }
.wreck div { flex: 1 1 240px; } .wreck h3 { font-size: 20px; margin-top: 0; }
/* the home page (Pages/Index.cshtml): the pitch and the way in, what is happening now, the last tournament, the team's news */
.home-hero h2 { margin: 2px 0 8px; font: 500 26px/1.2 'Jost', Verdana, sans-serif; color: #fff; }
.home-hero p { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.home-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.home-go .nl-big { display: inline-block; width: auto; padding: 9px 30px; font-size: 20px; border-radius: 22px; color: #fff; text-decoration: none; background: linear-gradient(180deg, #7ee35a 0, #43b52a 48%, #2a8c18 52%, #3aa424 100%); }
.home-go .btn { margin: 0; }
.home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 18px 0 0; }
.home-stat { padding: 10px 12px; border: 1px solid #555; border-radius: 6px; background: rgba(0, 0, 0, .25); text-align: center; }
.home-stat b { display: block; font: 500 28px/1.2 'Jost', Verdana, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.home-stat span { display: block; margin-top: 2px; font-size: 12px; color: #b0b0b0; }
/* today's tournament on the front page: a countdown, then a big Join now button (site.js) */
.home-today { margin: 12px 0 0; padding: 12px; border: 1px solid #8a7a2a; border-radius: 6px; background: rgba(0, 0, 0, .25); text-align: center; }
.home-today[hidden], .home-today [hidden] { display: none; }
.home-today-name { display: block; font-size: 13px; color: #d8d8d8; }
.home-today-clock { display: block; margin-top: 2px; font: 500 44px/1.15 'Jost', Verdana, sans-serif; color: #ffd700; font-variant-numeric: tabular-nums; }
.home-today-join { display: inline-block; margin: 8px 0 2px; padding: 14px 64px; border-radius: 34px; border: 1px solid #b6f5a0; font: bold 34px/1.1 'Jost', Verdana, sans-serif; letter-spacing: 1px; color: #fff; text-decoration: none; text-shadow: 0 2px 3px #000; background: linear-gradient(180deg, #7ee35a 0, #43b52a 48%, #2a8c18 52%, #3aa424 100%); box-shadow: 0 0 18px rgba(126, 227, 90, .45); }
.home-today-join:hover { filter: brightness(1.12); }
.home-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; margin: 20px 0 6px; padding-top: 14px; border-top: 1px solid #555; }
.home-now h3, .home-cup h3, .home-boss h3, .home-news > h3 { margin: 0 0 8px; color: #ffa733; }
.home-next { grid-column: 1 / -1; margin: 0; line-height: 1.6; }
.home-field { display: flex; gap: 14px; align-items: flex-start; }
.home-field img { display: block; width: 150px; height: 150px; image-rendering: pixelated; border: 1px solid #6996b2; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); background: #222; }
.home-field p { margin: 0 0 10px; line-height: 1.5; }
.home-feed .rss { position: static; width: auto; height: auto; padding: 0; background: none; overflow: visible; }
.home-feed .rss a { margin-bottom: 8px; }
/* a line of the game news (the home page's feed and the sidebar's Game News box) is plain words with its tanks' names as links (report 253: the whole line used to open the raw RSS); the feed itself has
   its own small link under the lines */
.rss .news-line { margin: 0 0 8px; color: #fff; font-size: 13px; line-height: 1.35; text-shadow: 0 1px 2px #000; }
.rss .news-line a.news-tank { display: inline; margin: 0; font-size: inherit; color: #fff; text-decoration: underline dotted rgba(255, 255, 255, .55); text-underline-offset: 2px; } .rss .news-line a.news-tank:hover { color: #ffb050; }
.home-rss { margin: 4px 0 0; font-size: 12px; }
.side-rss { margin: 2px 6px 4px; font-size: 12px; text-align: right; }
.home-cup { margin: 14px 0; padding-top: 12px; border-top: 1px solid #555; }
.home-cup p { margin: 0; line-height: 1.8; }
.home-cup .cup { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #333; } .home-cup .c1 { color: #ffc21a; } .home-cup .c2 { color: #c8c8f0; } .home-cup .c3 { color: #ff8c1a; }
.home-boss { margin: 14px 0; padding-top: 12px; border-top: 1px solid #555; }
.home-boss p { margin: 0 0 4px; line-height: 1.8; }
.home-news { margin-top: 10px; padding-top: 12px; border-top: 1px solid #555; }
.home-news .news { border-top: 0; padding-top: 0; }
@media (max-width: 700px) { .home-now { grid-template-columns: minmax(0, 1fr); }   /* (minmax: a long one-line row of awards scrolls instead of widening the column) */ .home-hero h2 { font-size: 22px; } }

/* ---- My Tanks: a tank's Achievements section (cards: icon, name, a line of story; the ones not yet earned are dimmed and say what to do) ---- */
.ach-box { margin: 10px 0 14px; }
.ach-box summary { cursor: pointer; margin: 0; font-size: 15px; font-weight: bold; letter-spacing: .04em; text-transform: uppercase; }   /* (shut by default: one line a tank, the count on it) */
.ach-box summary:focus-visible { outline: 2px solid #8fd0ff; outline-offset: 2px; }
.ach-box[open] summary { margin-bottom: 4px; }
.ach-count { margin-left: 8px; padding: 1px 9px; border-radius: 10px; background: rgba(255, 200, 60, .16); color: #f1c453; font-size: 12px; letter-spacing: 0; text-transform: none; }
.ach-all { margin: 0 0 8px; font-size: 12px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ach { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.ach-icon { grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); font-size: 20px; }
.ach-name { font-weight: bold; font-size: 14px; }
.ach-flavor { font-size: 12px; opacity: .8; line-height: 1.3; }
.ach.earned { border-color: #c9a227; background: linear-gradient(135deg, rgba(201, 162, 39, .22), rgba(201, 162, 39, .05)); box-shadow: 0 0 10px rgba(201, 162, 39, .18); }
.ach.earned .ach-icon { background: radial-gradient(circle, rgba(255, 215, 90, .45), rgba(201, 162, 39, .12)); }
.ach.earned .ach-name { color: #f4d77a; }
.ach.earned .ach-flavor { font-style: italic; }
.ach.locked { opacity: .5; }
.ach.locked .ach-icon { filter: grayscale(1); }
.ach.barred .ach-name { text-decoration: line-through; }

/* ---- the staff Admin page (Pages/Admin.cshtml): a strip to the other staff pages, status cards, then a panel a job; forms are fieldsets with required (*) and optional fields ---- */
.adm-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; margin: 0 0 14px; }
.adm-nav a { display: block; padding: 7px 10px; border: 1px solid #4a6a80; border-radius: 6px; background: rgba(255, 255, 255, .04); text-decoration: none; color: #8fd0ff; }
.adm-nav a:hover, .adm-nav a:focus-visible { background: rgba(105, 150, 178, .22); color: #fff; }
.adm-nav b { display: inline-block; font-size: 13px; color: #ffa733; } .adm-nav span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; color: #b0b0b0; }
.adm-nav .count { margin-left: 6px; padding: 0 7px; border-radius: 9px; font-style: normal; font-size: 11px; background: rgba(255, 255, 255, .12); color: #fff; } .adm-nav .count.err { background: #a42a2a; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0 0 6px; }
.adm-card { padding: 8px 10px; border-radius: 6px; border: 1px solid #555; background: rgba(0, 0, 0, .25); }
.adm-card b { display: block; font-size: 22px; color: #fff; } .adm-card span { font-size: 11px; color: #b0b0b0; line-height: 1.3; }
.adm-card.bad { border-color: #ff7a7a; } .adm-card.bad b { color: #ff7a7a; }
.adm-panel { overflow-x: auto; margin: 18px 0; padding: 4px 14px 14px; border: 1px solid #555; border-left: 4px solid #6996b2; border-radius: 6px; background: rgba(255, 255, 255, .02); }
.adm-panel > h3, .adm-panel summary h3.inl { margin: 10px 0 2px; } h3.inl { display: inline; }
.adm-panel .lede { margin: 2px 0 10px; color: #c8c8c8; font-size: 12px; }
.adm-panel summary { cursor: pointer; padding: 6px 0; }
.banner { margin: 8px 0; padding: 7px 12px; border-radius: 4px; border: 1px solid currentColor; background: rgba(0, 0, 0, .25); }
.badge { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 11px; border: 1px solid currentColor; white-space: nowrap; }
.badge.good { color: #8fdc8f; } .badge.mid { color: #ffd84a; } .badge.wait { color: #8fd0ff; } .badge.off { color: #999; } .badge.bad { color: #ff7a7a; }
td.acts form { margin: 0 4px 2px 0; } td.acts button, td.acts .btn { padding: 2px 10px; margin: 0; font-size: 12px; } td.acts select { padding: 2px 4px; }
button:disabled { opacity: .4; cursor: not-allowed; }
details.botedit summary { cursor: pointer; white-space: nowrap; }
details.botedit form { display: grid; gap: 4px; margin-top: 6px; } details.botedit label { display: flex; justify-content: space-between; gap: 8px; } details.botedit input { width: 52px; }
.adm-form fieldset { margin: 14px 0 0; padding: 8px 14px 14px; border: 1px solid #6996b2; border-radius: 6px; min-width: 0; }
.adm-form legend { padding: 0 8px; color: #ffa733; font-weight: bold; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; margin: 6px 0; } .fgrid.one { grid-template-columns: 1fr; }
.fld { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .fld label { width: auto; } .fld input, .fld select, .fld textarea { box-sizing: border-box; width: 100%; }
.fld .hint { margin: 0; }
.fxboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; margin: 6px 0; } .fxbox { display: flex; align-items: center; gap: 6px; width: auto; cursor: pointer; } .fxbox input { width: auto; }
.fld textarea { resize: vertical; }
.req { color: #ff7a7a; font-weight: bold; } .opt { color: #999; font-size: 11px; font-weight: normal; }
.hint { color: #b0b0b0; font-size: 11px; line-height: 1.3; } .help { margin: 8px 0; color: #b0b0b0; font-size: 12px; }
details.adv { margin: 8px 0; } details.adv summary { cursor: pointer; color: #8fd0ff; }
button.primary { background: linear-gradient(180deg, #7ee35a 0, #43b52a 48%, #2a8c18 52%, #3aa424 100%); border-color: #8fdc8f; font-weight: bold; text-shadow: 0 1px 2px #000; padding: 6px 20px; }
button.primary:hover { filter: brightness(1.12); }
.adm-twin { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 18px; align-items: start; }
@media (max-width: 1100px) { .adm-twin { grid-template-columns: 1fr; } }

/* ---- Most Wanted: a poster for each tank (MostWanted.cshtml, mostwanted.js draws the picture) ---- */
.week-switch { display: flex; gap: 8px; margin: 10px 0 4px; }
.week-switch a { padding: 4px 14px; border: 1px solid currentColor; border-radius: 4px; text-decoration: none; opacity: .7; }
.week-switch a.on { opacity: 1; font-weight: bold; }
.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 12px 0; }
.poster { background: #2a261e; border: 3px solid #6b5f45; border-radius: 4px; padding: 0 10px 10px; text-align: center; min-width: 0; }
.poster.hunted { border-color: #ffa733; background: #35291a; box-shadow: 0 0 0 2px #1e1e1e, 0 0 0 4px #c9a56a; }
.poster-band { margin: 0 -10px 6px; padding: 6px 0; font-family: var(--head, inherit); font-size: 20px; letter-spacing: 3px; color: #d9cfb6; background: #3b3426; }
.poster.hunted .poster-band { color: #1e1e1e; background: #ffa733; font-size: 24px; }
.poster canvas { display: block; width: 100%; max-width: 192px; height: auto; margin: 0 auto; background: #1e1e1e; border: 1px solid #4b4333; }
.poster-name { margin: 8px 0 2px; font-family: var(--head, inherit); font-size: 18px; color: #ffa733; overflow-wrap: anywhere; }
.poster-rank { margin: 2px 0; font-size: 13px; }
.poster-week { margin: 0 0 2px; font-size: 12px; }
.bounty-rules { margin: 18px 0; padding: 12px 16px; border: 1px solid var(--line, #2a3340); border-radius: 8px; }
.bounty-rules h3 { margin: 0 0 6px; }
.bounty-rules ul { margin: 0; padding-left: 20px; }
.bounty-rules li { margin: 4px 0; }
/* Most Wanted: the awards row under a poster's name (bounty block) */
.poster-awards { margin: 2px 0; min-height: 0; } .poster-awards .tank-awards { margin-left: 0; }   /* (centered by the poster's text-align; one line that scrolls when long, see .tank-awards) */
.poster-reward { margin: 6px 0 2px; min-height: 2.6em; }
.poster.hunted .poster-reward b { font-size: 15px; color: #fff; }
.poster-staff { margin-top: 8px; padding-top: 6px; border-top: 1px solid #4b4333; text-align: left; font-size: 12px; }
.poster-staff .bounty-form label { display: block; margin: 3px 0; }
.bounty-form label[hidden] { display: none; }   /* (mostwanted.js hides the fields the chosen reward does not need; "display: block" above would otherwise win over the hidden attribute) */
@media (max-width: 760px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .posters { grid-template-columns: minmax(0, 1fr); } }

/* a tank's awards beside its name (Pages/Shared/_TankAwards): the pictures at their own size, tight together, and the boss awards as a small count */
.tank-awards { display: inline-flex; align-items: flex-start; flex-wrap: wrap; gap: 4px; margin-left: 8px; vertical-align: middle; }   /* (tops in a line, the same 4 px between every picture: each picture is cut to its art, AwardCatalog.ArtBox; the owner, 2026-11-16) */
.tank-awards i.award { margin: 0; }
/* ...and always ONE line (the owner, 2026-12-05: "it should always keep it one line, if they need a side scroll then make a side scroll"; before that, 2026-11-30: "awards need to not be stacked"):
   the row never wraps. Outside a table (the side boxes, the home page, a tank's page, the Most Wanted posters) the row takes at most the width of what holds it and,
   when it does not fit, scrolls sideways itself, with a thin scrollbar, by touch on a phone.
   The 3 px above and below (taken back by the margins, so the line is as tall as before) leave room for the diamond bling's plus signs, which reach past a picture.
   Only the deliberate lists of awards keep wrapping: the Awards page's legend (.star-row), My Tanks' and the team page's tank cards (p.awards), and the award designer's line. */
.tank-awards { flex-wrap: nowrap; max-width: calc(100% - 8px); box-sizing: border-box; padding: 3px 0; margin-top: -3px; margin-bottom: -3px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent; }
p.awards > .tank-awards { flex-wrap: wrap; max-width: none; padding: 0; margin-top: 0; margin-bottom: 0; overflow: visible; }
/* In a TABLE the row is at its natural width and it is the table that scrolls (the owner, 2026-12-05: asked "Do you want the panel to scroll as one piece, with the name column
   pinned so names stay visible?", "yeah table is fine"): the table sits in a div.tbl-scroll that scrolls sideways inside its panel (one scrollbar, the rows move together),
   never the page. The awards are in a cell of their own (td.tk-aw) right after the name's cell (td.tk-name, or the cell that holds a.tk-pin on Top and Tournaments, whose
   markup tests and the Discord bot read), and the name's cell is pinned at the left (sticky) while the rest of the row, the awards first, scrolls under it; its heading too.
   The pinned cell is painted with the panel's own color (#232323, the panel's lower color; a row of yours keeps its tint as tr.me), only inside its border so the
   table's lines run on unbroken under it, above the pictures and their bling (z-index 3, the bling is 2). Every cell is one line (nowrap), so a scrolling table is
   not squeezed into tall columns ("Gold Plated Silver Cup" four lines tall). */
td .tank-awards { max-width: none; overflow: visible; }
td.tk-aw, th.tk-aw { padding-left: 0; } td.tk-aw .tank-awards { margin-left: 0; }   /* (the 8 px of the name's cell are the gap, as the row's margin was) */
.tbl-scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent; isolation: isolate; }
.tbl-scroll th, .tbl-scroll td { white-space: nowrap; }
.tbl-scroll .tk-name, .tbl-scroll td:has(> .tk-pin) { position: sticky; left: 0; z-index: 3; background: #232323; background-clip: padding-box; }
.tbl-scroll tr.me td.tk-name, .tbl-scroll tr.me td:has(> .tk-pin) { background: linear-gradient(rgba(255, 216, 74, .2), rgba(255, 216, 74, .2)), #232323; }
/* On a phone (700 px and less) the tables of cards (table.cards: a tournament's results, the Most Wanted claims) are no longer tables: nothing is pinned, the awards cell is
   a line of the card under the name, one line that scrolls sideways inside the card. The boards (Top, the Tournaments list) stay tables: the name's cell, pinned, holds the
   name and under it the rank line (which may wrap there), and the table scrolls as on a computer. */
@media (max-width: 700px) {
  .tbl-scroll table.cards td { position: static; white-space: normal; } .tbl-scroll table.cards td.tk-name { background: none; } .tbl-scroll table.cards tr.me td { background: rgba(255, 216, 74, .2); }
  .tbl-scroll table.cards td.tk-aw { padding: 0; }
  table.cards td .tank-awards { max-width: 100%; overflow-x: auto; }
  .tbl-scroll .top-board td:has(> .tk-pin) { white-space: normal; min-width: 120px; } .tbl-scroll .top-board .tk-pin { white-space: nowrap; }
}

/* the full-page notice for a special medal waiting to be put on a tank (Pages/Shared/_MedalNotice, wired in site.js) */
.mn-back { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; background: rgba(0, 0, 0, .82); overflow-y: auto; }
.mn-back[hidden] { display: none; }
.mn-panel { box-sizing: border-box; width: 100%; max-width: 420px; margin: auto; padding: 24px 20px 20px; text-align: center; color: #fff; font-family: 'Jost', 'Century Gothic', Verdana, sans-serif;
  background: linear-gradient(180deg, #2f2f2f 0, #262626 140px, #232323 100%); border: 2px solid #ffd84a; border-radius: 14px; box-shadow: 0 0 40px rgba(255, 216, 74, .35), 0 10px 30px rgba(0, 0, 0, .7); }
.mn-panel h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.2; font-weight: 500; color: #ffd84a; }
.mn-medals { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.mn-medals li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 17px; }
.mn-pic { display: inline-block; position: relative; }
.mn-pic i.award { position: absolute; left: 0; top: 0; margin: 0; cursor: default; transform: scale(3); transform-origin: 0 0; image-rendering: pixelated; }
.mn-panel p { margin: 0 0 18px; font-size: 16px; color: #e6e6e6; }
.mn-panel .nl-big { display: block; box-sizing: border-box; width: 100%; padding: 12px 0; font-size: 20px; }
.mn-later { display: inline-block; margin-top: 14px; font-size: 14px; color: #b0b0b0; }

/* ---- readable fields (UI critique 13): a light box with a bright border on the dark panel, a placeholder that can be read, and the rules as helper text under the field ---- */
.PanelBody input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]), .PanelBody select, .PanelBody textarea { background: #e9f2f9; color: #101820; border: 2px solid #8fd0ff; border-radius: 3px; }
.PanelBody input::placeholder, .PanelBody textarea::placeholder { color: #4a5560; opacity: 1; }
.PanelBody input:focus, .PanelBody select:focus, .PanelBody textarea:focus { outline: 2px solid #ffd84a; outline-offset: 1px; }
.PanelBody input[readonly] { background: #d3e3ef; }
.hint { color: #d6dde3; font-size: 12px; margin: -4px 0 10px 150px; line-height: 1.4; }
.nl-invite input { background: #e9f2f9; color: #101820; border: 2px solid #8fd0ff; }
.ok.notice { background: #1e4a24; border: 1px solid #8fdc8f; border-radius: 4px; color: #d6ffd6; padding: 10px 14px; font-size: 15px; font-weight: bold; }
.play-force-line { margin: 8px 0 0; color: #d6dde3; font-size: 12px; line-height: 1.4; }
#tankAwards .record { font-size: 14px !important; color: #fff !important; font-weight: bold; }
.tank-delete { margin: 10px 0 0; text-align: right; }
.tank-delete button { font-size: 11px; opacity: .8; }
.place-note { color: #d6dde3; margin: 4px 0 8px; }
tr.me td { background: rgba(255, 216, 74, .2); font-weight: bold; }
/* A battlefield's name with its small picture (Shared/_MapName.cshtml). */
a.map-name { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; } a.map-name img { width: 28px; height: 28px; border: 1px solid #555; border-radius: 3px; image-rendering: pixelated; flex: none; }
/* The Top Players table: a tank's awards never break over two lines (they have a cell of their own; the table scrolls sideways with the name's cell pinned, see .tbl-scroll); the name is in its force's color; on a phone two columns fold into the Tank cell (see Top.cshtml). */
.top-board a.tb-name { font-weight: bold; text-decoration: none; } .top-board a.tb-name.c0 { color: #ff5a5a; } .top-board a.tb-name.c1 { color: #5a9bff; } .top-board a.tb-name.c2 { color: #ffa030; } .top-board a.tb-name.c3 { color: #d070e8; } .top-board a.tb-name.c4 { color: var(--force-green); } .top-board a.tb-name:hover { text-decoration: underline; } .top-board .tb-rank { display: none; }
@media (max-width: 700px) {
  .top-board .tb-wide { display: none; }
  .top-board td { vertical-align: top; padding: 7px 6px; }
  .top-board a.tb-name { font-size: 14px; }
  .top-board .tb-rank { display: block; margin-top: 3px; font-weight: normal; color: #c4c9ce; font-size: 12px; }
}
.play-pick .play-force-line { grid-column: 1 / -1; }
/* the front page's folded old news ("From the archive") */
.news-archive { margin: 14px 0 6px; border-top: 1px solid #555; padding-top: 8px; } .news-archive > summary { cursor: pointer; font-size: 13px; color: #a0a0a0; } .news-archive > summary:hover { color: #fff; } .news-archive .news { margin: 10px 0; }

/* Continue with Google / Discord (Pages/Shared/_ExternalButtons) and the Sign-in methods box on Account: one line, the site's own glossy buttons, the provider's mark in front */
.sso { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 16px 0 0; } .sso form { margin: 0; } .sso .dim { margin-right: 4px; }
.sso-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #fff; white-space: nowrap; } .sso-btn svg { flex: none; }
.sso-discord:hover { border-color: #8891ff; }
.signin-methods { margin: 8px 0 18px; border-collapse: collapse; } .signin-methods td { padding: 6px 18px 6px 0; vertical-align: middle; } .signin-methods form { display: inline; margin: 0; }
/* sortable staff tables (AdminRecordings): the header links, the current sort in the heading color */
.staff-table th a { color: inherit; text-decoration: none; white-space: nowrap; } .staff-table th a:hover { text-decoration: underline; } .staff-table th a.sorted { color: #ffd27a; }
/* ---- tank statistics (Pages/Tank.cshtml): boxed panels in an auto-fill grid, a bar under each row, a stacked force bar on top ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.stat-panel { margin: 0; padding: 6px 12px 10px; border: 1px solid #6996b2; border-radius: 6px; min-width: 0; } .stat-panel legend { color: #ffa733; padding: 0 6px; }
.stat-panel td.num { text-align: right; white-space: nowrap; }
.stat-bar { height: 4px; margin-top: 3px; background: #333; } .stat-bar i { display: block; height: 100%; background: #ffa733; }
.stat-stack { display: flex; height: 10px; margin: 4px 0 6px; background: #333; } .stat-stack i { display: block; height: 100%; }
.stat-stack .bg0 { background: #ff5a5a; } .stat-stack .bg1 { background: #5a9bff; } .stat-stack .bg2 { background: #ffa030; } .stat-stack .bg3 { background: #d070e8; } .stat-stack .bg4 { background: var(--force-green); } .stat-stack .bg7 { background: #9a9a9a; }

/* The Raid Simulator page (RaidSim.cshtml, raidsim.js) */
.linklike { background: none; border: 0; padding: 0; margin: 0 6px; color: #7fb3ff; font: inherit; cursor: pointer; text-decoration: underline; }
.linklike:hover { color: #fff; }
.raidsim .field label { width: 170px; }
.raidsim .forces { display: inline-grid; grid-template-columns: repeat(4, 90px); gap: 6px; vertical-align: middle; }
.rs-rows { border: 1px solid #444; margin: 10px 0; padding: 6px 12px; }
.rs-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.rs-row select { min-width: 180px; }
.rs-row button { width: 28px; }
.rs-count { display: inline-block; min-width: 24px; text-align: center; font-weight: bold; }
.rs-diff { font-weight: bold; margin: 8px 0 0; }
.rs-card { border: 2px solid #ffd84a; background: #1a1a1a; padding: 4px 16px; margin: 14px 0; max-width: 560px; }

/* ---- the Play page's side actions: cards with an icon (Pages/Shared/_PlayActions) ---- */
.play-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.play .play-actions { grid-column: 1 / -1; }   /* (the Play form is a two-column grid: without this the cards sat in its 300px picture column, one on top of another) */
.play-card { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 14px; box-sizing: border-box; min-height: 64px; border-radius: 10px; border: 1px solid #5a7f99; background: linear-gradient(180deg, #3b4247, #2a2f33); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); color: #d8ecf8; text-decoration: none; }
a.play-card { flex-direction: row; align-items: center; gap: 14px; }
.play-card .pc-main { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.play-card:hover { border-color: #8fd0ff; color: #fff; }
button.play-card { flex-direction: row; align-items: center; gap: 14px; width: 100%; font: inherit; text-align: left; cursor: pointer; }   /* (the Watch card is a button inside a form) */
.play-actions form.watchform { display: contents; }
.play-actions .watcherr { grid-column: 1 / -1; }
.pc-icon { flex: none; width: 44px; height: 44px; color: #5cb8e6; }
.play-raid .pc-icon { color: #9be37f; }
.play-weekly { border-color: #9be37f; border-width: 2px; background: linear-gradient(180deg, #44503f, #2c3629); }   /* (the most prominent of the raid cards) */
.play-weekly .pc-icon { color: #ffd22a; }
.play-weekly:hover { border-color: #c4f5ae; }
.pc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-text b { font-size: 18px; color: #fff; }
.pc-text span { font-size: 13px; color: #a9bcc8; line-height: 1.35; }
.pc-sub { padding-left: 58px; font-size: 14px; }
@media (max-width: 600px) { .play-actions { grid-template-columns: 1fr; } .play-card { min-height: 56px; } .pc-icon { width: 36px; height: 36px; } .pc-sub { padding-left: 50px; } }

tr.changed td { background: #3a3a1c; }

/* a pop-up the site raises by itself (somebody applied to your team) */
dialog.site-alert { max-width: min(92vw, 420px); padding: 18px 22px; border: 2px solid #ffd84a; border-radius: 8px; background: #14181d; color: #e8e8e8; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7); }
dialog.site-alert::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog.site-alert p { margin: 8px 0; }
.alert-bell { display: inline-block; }
a.alert-link { font-weight: 700; }

/* the Teams page: Your teams and Start a team as cards (the Play page's play-card) */
.team-actions { max-width: 640px; }
.team-start .pc-icon, .pc-green .pc-icon { color: #9be37f; }

/* the team leaderboard (/Teams): a table that scrolls sideways on a phone instead of squeezing, the place and score columns kept narrow */
.table-scroll { overflow-x: auto; }
table.team-board { min-width: 560px; }
table.team-board td:first-child { color: #ffa733; font-weight: 700; width: 28px; }
table.team-board td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.team-weights input[type=number] { width: 7em; }
table.sortable th { cursor: pointer; user-select: none; } table.sortable th[data-dir="desc"]::after { content: " \25BE"; } table.sortable th[data-dir="asc"]::after { content: " \25B4"; }
table.spark td { border-bottom: 0; padding: 2px 8px; vertical-align: middle; }
/* the map contest (/MapContest, /AdminMapContest): each map's picture beside its name, text and rating form */
.contest-maps { display: flex; flex-direction: column; gap: 14px; }
.contest-map { display: flex; gap: 14px; align-items: flex-start; }
.contest-map > div { min-width: 0; flex: 1; }
img.map-pic { image-rendering: pixelated; border: 1px solid rgba(255,255,255,.25); background: #222; max-width: 100%; height: auto; }
.contest-rate label { margin-right: 8px; white-space: nowrap; }
@media (max-width: 520px) { .contest-map { flex-direction: column; } }

/* news posts with formatting (News/NewsText.cs): headings, lists, quotes, links inside a post; the staff form's guide and preview */
.news h4, .news h5, .news h6 { margin: 12px 0 4px; color: #fff; } .news h4 { font-size: 16px; } .news h5 { font-size: 14px; } .news h6 { font-size: 13px; }
.news ul, .news ol { margin: 6px 0 10px; padding-left: 22px; } .news li { margin: 3px 0; }
.news blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid #777; color: #ccc; }
.news hr { border: 0; border-top: 1px solid #555; margin: 12px 0; }
.news a { text-decoration: underline; }
.news-help table.news-marks { border-collapse: collapse; margin: 4px 0 10px; font-size: 12px; } .news-marks td { padding: 3px 10px 3px 0; vertical-align: top; } .news-marks code { white-space: nowrap; }
.news-preview { margin-top: 14px; padding: 10px 14px; border: 1px dashed #777; border-radius: 6px; } .news-preview .news { border-top: 0; margin: 0; padding-top: 0; }

/* The amethyst stars of Prestige level 10 (star levels 21 to 25; i.award.amy) have a sweep shimmer: a soft bright band that runs across the star from left to right, then rests
   (the owner, 2026-11-22: "I like the amethyst", "I like the sweep top one"). The rules between the two marks are the game's own, word for word: uTanksWebClient/src/game/shimmer.ts
   has the numbers (shimmerCss), and its test (tests/shimmer.test.ts) fails when this copy differs. Do not edit them here. */
/* amy-shimmer: begin */
.amy { position: relative; }
.amy::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; background: inherit; filter: brightness(0) invert(1); -webkit-mask-image: linear-gradient(120.96deg, transparent calc(50% - 1.29px), rgba(0, 0, 0, 0.75) 50%, transparent calc(50% + 1.29px)); mask-image: linear-gradient(120.96deg, transparent calc(50% - 1.29px), rgba(0, 0, 0, 0.75) 50%, transparent calc(50% + 1.29px)); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 60px 60px; mask-size: 60px 60px; -webkit-mask-position: -5.5px 0; mask-position: -5.5px 0; animation: amy-sweep 2500ms linear infinite; animation-delay: var(--amy-delay, 0ms); }
@keyframes amy-sweep { 0% { -webkit-mask-position: -49.5px 0; mask-position: -49.5px 0; } 37.2% { -webkit-mask-position: -5.5px 0; mask-position: -5.5px 0; } 100% { -webkit-mask-position: -5.5px 0; mask-position: -5.5px 0; } }
@media (prefers-reduced-motion: reduce) { .amy::after { display: none; animation: none; } }
/* amy-shimmer: end */

/* the row of star pictures inside a table cell (the Awards page's Diamond stars row): its own line under the words, wrapping inside the cell so it never runs over the next column (bug report 188) */
.tank-awards.star-row { display: flex; margin-left: 0; flex-wrap: wrap; gap: 2px 4px; max-width: 100%; margin-top: 4px; white-space: normal; margin-bottom: 0; padding: 0; overflow: visible; }   /* (a legend, not a tank's row: it keeps wrapping) */
/* The diamond medals (the tank medal, honor medal, sword, Recruiter, shield and cup of the fifth level; i.award.dmd) have the bling: four little white plus signs that flash at places on the picture
   (the owner, 2026-11-26: "Diamond 3 with + + + + bling (no sideways shine) this is the winner"). The rules between the two marks are the game's own, word for word: uTanksWebClient/src/game/shimmer.ts
   has the numbers (blingCss), and its test (tests/shimmer.test.ts) fails when this copy differs. Do not edit them here. */
/* dmd-bling: begin */
.dmd { position: relative; filter: drop-shadow(0 0 .4px rgba(10,30,50,.9)); }
.dmd::before, .dmd::after { content: ""; position: absolute; z-index: 2; width: 7px; height: 7px; margin: -3.5px; pointer-events: none; background: linear-gradient(#fff,#fff) 50% 50%/1px 7px no-repeat, linear-gradient(#fff,#fff) 50% 50%/7px 1px no-repeat, linear-gradient(#fff,#fff) 50% 50%/3px 3px no-repeat; filter: drop-shadow(0 0 .5px rgba(40,140,255,1)) drop-shadow(0 0 1px rgba(90,180,255,.8)); transform: scale(0); opacity: 0; animation: dmd-bling-a 2.4s linear infinite; animation-delay: var(--dmd-delay, 0ms); }
.dmd::after { animation-name: dmd-bling-b; animation-delay: calc(var(--dmd-delay, 0ms) - .45s); }
@keyframes dmd-bling-a { 0% { left: 22%; top: 22%; transform: scale(0); opacity: 0; } 6% { left: 22%; top: 22%; transform: scale(1); opacity: 1; } 12% { left: 22%; top: 22%; transform: scale(.6); opacity: 1; } 18% { left: 22%; top: 22%; transform: scale(0); opacity: 0; }
  33% { left: 74%; top: 40%; transform: scale(0); opacity: 0; } 39% { left: 74%; top: 40%; transform: scale(1); opacity: 1; } 45% { left: 74%; top: 40%; transform: scale(.6); opacity: 1; } 51% { left: 74%; top: 40%; transform: scale(0); opacity: 0; }
  66% { left: 40%; top: 80%; transform: scale(0); opacity: 0; } 72% { left: 40%; top: 80%; transform: scale(.8); opacity: 1; } 78% { left: 40%; top: 80%; transform: scale(.5); opacity: 1; } 84%, 100% { left: 40%; top: 80%; transform: scale(0); opacity: 0; } }
@keyframes dmd-bling-b { 0% { left: 62%; top: 12%; transform: scale(0); opacity: 0; } 6% { left: 62%; top: 12%; transform: scale(.8); opacity: 1; } 12% { left: 62%; top: 12%; transform: scale(.5); opacity: 1; } 18% { left: 62%; top: 12%; transform: scale(0); opacity: 0; }
  33% { left: 16%; top: 62%; transform: scale(0); opacity: 0; } 39% { left: 16%; top: 62%; transform: scale(1); opacity: 1; } 45% { left: 16%; top: 62%; transform: scale(.6); opacity: 1; } 51% { left: 16%; top: 62%; transform: scale(0); opacity: 0; }
  66% { left: 84%; top: 76%; transform: scale(0); opacity: 0; } 72% { left: 84%; top: 76%; transform: scale(1); opacity: 1; } 78% { left: 84%; top: 76%; transform: scale(.6); opacity: 1; } 84%, 100% { left: 84%; top: 76%; transform: scale(0); opacity: 0; } }
.dmd:nth-child(2n)::before { animation-delay: calc(var(--dmd-delay, 0ms) - .8s); } .dmd:nth-child(2n)::after { animation-delay: calc(var(--dmd-delay, 0ms) - 1.5s); } .dmd:nth-child(3n)::before { animation-delay: calc(var(--dmd-delay, 0ms) - 1.3s); } .dmd:nth-child(3n)::after { animation-delay: calc(var(--dmd-delay, 0ms) - .2s); }
@media (prefers-reduced-motion: reduce) { .dmd::before, .dmd::after { animation: none; display: none; } }
/* dmd-bling: end */

/* ---- Settings tabs and the message colors editor (Pages/Settings.cshtml, settings.js) ---- */
button.tab { margin: 0; font: inherit; color: inherit; cursor: pointer; } button.tab:hover { background: rgba(255, 255, 255, .1); } button.tab.here, button.tab[aria-selected="true"] { background: rgba(105, 150, 178, .3); color: #fff; border-color: #8fd0ff; }
.tabs[hidden], .tabpanel[hidden] { display: none; }
.logcolors { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 14px; margin: 6px 0; }
.lc-row { display: flex; align-items: center; gap: 8px; padding: 3px 6px; background: #161616; border-radius: 4px; cursor: pointer; min-width: 0; }
.lc-row input[type=color] { flex: none; width: 36px; height: 22px; padding: 0; border: 1px solid #6996b2; border-radius: 3px; background: none; cursor: pointer; }
.lc-sample { font-weight: bold; font-size: 13px; overflow-wrap: anywhere; }
.lc-paste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .lc-paste input { flex: 1 1 240px; min-width: 0; } .lc-paste button { margin: 0; }
.logexample { box-sizing: border-box; width: 224px; max-width: 100%; max-height: 336px; overflow-y: auto; margin: 6px 0 10px; padding: 8px 6px 4px 10px; background: linear-gradient(rgba(60, 62, 66, .5), rgba(34, 35, 38, .92)), #161616; border: 1px solid #555; font: bold 11px/1.25 Tahoma, Verdana, sans-serif; color: #fff; }
.mapchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-width: 620px; margin: 8px 0; }
.mc-chip { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 10px; border: 1px solid #6996b2; border-radius: 4px; cursor: pointer; font: bold 12px/1.2 Tahoma, Verdana, sans-serif; overflow: hidden; }
.mc-chip .mc-code { font: 12px/1.2 Consolas, monospace; text-transform: uppercase; }
.mc-chip input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.mc-chip:focus-within { outline: 2px solid #fff; outline-offset: 1px; }
.mappreview { display: block; width: 270px; max-width: 100%; height: auto; margin: 6px 0 10px; border: 1px solid #555; image-rendering: pixelated; }
.logexample div { margin: 0 0 3px; word-wrap: break-word; }

/* The award designer (Pages/AwardDesigner.cshtml, the owner, 2026-11-26): the line of awards as the site draws a tank's (Shared/_TankAwards) on the game's dark background at real size, 2x and 4x, pixelated (the
   scaled line sits in a box of the scaled size); the choices are labels with the little picture and the name. The bling's plus signs reach 3 px past a picture, so nothing round the pictures clips. */
.dsn-preview { position: sticky; top: 0; z-index: 5; background: #1e1e1e; padding: 4px 0 6px; }
.dsn-stage { background: #0c1116; border: 1px solid #555; border-radius: 6px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.dsn-size { display: flex; align-items: center; gap: 14px; } .dsn-size > .dim { width: 60px; flex: none; }
.dsn-zoom { flex: none; position: relative; image-rendering: pixelated; }
.dsn-line { transform-origin: 0 0; } .dsn-line .tank-awards { margin: 0; flex-wrap: nowrap; max-width: none; padding: 0; overflow: visible; }   /* (the whole line at its size, never a scrolling row: the stage scrolls) */
.dsn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 0; }
.dsn-link { width: 330px; max-width: 100%; box-sizing: border-box; }
.dsn-group { border: 1px solid #444; border-radius: 6px; margin: 0 0 8px; padding: 4px 8px 6px; } .dsn-group legend { padding: 0 6px; font-weight: bold; }
.dsn-opts { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.dsn-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px 2px 6px; background: rgba(255, 255, 255, .06); border-radius: 8px; cursor: pointer; }
.dsn-opt:hover, .dsn-opt:focus-within { background: rgba(255, 255, 255, .16); }
.dsn-opt input { margin: 0 2px 0 0; }
.dsn-pic { display: inline-flex; align-items: center; } .dsn-pic i.award { margin: 0; }
/* the order under the line: each chosen award between its two arrows; drag one onto another to take its place */
.dsn-order { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding-top: 4px; border-top: 1px solid #333; } .dsn-order > .dim { width: 60px; flex: none; }
.dsn-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 3px; background: rgba(255, 255, 255, .07); border-radius: 6px; cursor: grab; user-select: none; }
.dsn-chip.dragging { opacity: .4; } .dsn-chip:hover { background: rgba(255, 255, 255, .15); }
.dsn-mv { display: inline-block; min-width: 18px; padding: 4px 2px; text-align: center; font-size: 11px; line-height: 1; color: #ddd; text-decoration: none; border-radius: 4px; }
.dsn-mv:hover, .dsn-mv:focus-visible { background: rgba(255, 255, 255, .2); } .dsn-mv.off { opacity: .2; }
.dsn-reset { margin-left: 6px; }
/* /Shields and /ShieldPoints (the owner, 2026-11-28: shield points, bought shields, the suggestion box) */
.sp-intro { max-width: 760px; } .sp-intro ul { padding-left: 20px; } .sp-intro li { margin: 4px 0; }
.sp-shields { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 4px; } .sp-shield { display: inline-flex; align-items: center; gap: 6px; }
.sp-balance { color: #9fe39f; }
/* the µCredits coin (the owner, 2026-11-30): pixel art, drawn crisp at whole-number sizes only (16 or 32 px files, never scaled by the browser) */
img.coin { image-rendering: crisp-edges; image-rendering: pixelated; width: 16px; height: 16px; vertical-align: -3px; display: inline-block; }
img.coin.coin-32 { width: 32px; height: 32px; vertical-align: middle; margin-right: 4px; }
.tank-former { margin-top: -6px; }
.tank-note { font-size: 0.85em; }
.sv-rules li.warn, .sv-rules .warn { color: #f0b35a; }
.sv-detail { border: 1px solid rgba(255,255,255,0.15); padding: 8px 12px; margin: 12px 0; max-width: 820px; }
.sv-buy label { display: block; margin-top: 6px; }
.sv-confirm, .sv-anon { font-weight: normal; }
.sv-prices td.num, .sv-mine td.num { white-space: nowrap; }
.sv-team .sv-approved { font-weight: bold; }
.sv-team .sv-made { font-weight: bold; margin-left: 6px; }
.sp-fresh { background: rgba(63, 143, 63, .25); border: 1px solid #5c9e5c; border-radius: 6px; padding: 6px 10px; margin: 6px 0 10px; } .sp-fresh span { display: block; }
.sp-tanks button { display: inline-flex; align-items: center; gap: 6px; } .sp-tanks .tank-awards { margin-left: 0; }
.sp-suggest { display: flex; flex-direction: column; gap: 6px; max-width: 760px; margin-bottom: 10px; } .sp-suggest textarea { width: 100%; box-sizing: border-box; } .sp-suggest button { align-self: flex-start; }
.sp-text { white-space: pre-wrap; max-width: 420px; overflow-wrap: anywhere; } .sp-ideas td { overflow-wrap: anywhere; }
/* On a phone the ideas and the points history are not a table: each row is a block, the date a small line over it (three columns squeezed an idea to one word a line: the owner, 2026-11-30). */
@media (max-width: 700px) {
  .sp-ideas, .sp-ideas tbody, .sp-ideas tr, .sp-ideas td { display: block; width: auto; max-width: none; } .sp-ideas tr:first-child { display: none; }
  .sp-ideas tr { padding: 9px 0; border-bottom: 1px solid #444; } .sp-ideas td { padding: 2px 0; border: 0; }
  .sp-ideas td.sp-when { font-size: 12px; color: #9aa0a6; } .sp-ideas td.sp-what { margin-top: 4px; }
}
.sp-decide { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
